gdb/breakpoint: make a copy of the "commands" command's argument
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4 argument.
5
6 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * ada-lang.c (ada_language_data): Delete.
9 (ada_language): Remove references to ada_language_data.
10 * c-lang.c (c_language_data): Delete.
11 (c_language): Remove references to c_language_data.
12 (cplus_language_data): Delete.
13 (cplus_language): Remove references to cplus_language_data.
14 (asm_language_data): Delete.
15 (asm_language): Remove references to asm_language_data.
16 (minimal_language_data): Delete.
17 (minimal_language): Remove references to minimal_language_data.
18 * d-lang.c (d_language_data): Delete.
19 (d_language): Remove references to d_language_data.
20 * f-lang.c (f_language_data): Delete.
21 (f_language): Remove references to f_language_data.
22 * go-lang.c (go_language_data): Delete.
23 (go_language): Remove references to go_language_data.
24 * language.c (unknown_language_data): Delete.
25 (unknown_language): Remove references to unknown_language_data.
26 (auto_language_data): Delete.
27 (auto_language): Remove references to auto_language_data.
28 * language.h (language_data): Delete struct.
29 (language_defn): No longer inherit from language_data.
30 * m2-lang.c (m2_language_data): Delete.
31 (m2_language): Remove references to m2_language_data.
32 * objc-lang.c (objc_language_data): Delete.
33 (objc_language): Remove references to objc_language_data.
34 * opencl-lang.c (opencl_language_data): Delete.
35 (opencl_language): Remove references to opencl_language_data.
36 * p-lang.c (pascal_language_data): Delete.
37 (pascal_language): Remove references to pascal_language_data.
38 * rust-lang.c (rust_language_data): Delete.
39 (rust_language): Remove references to rust_language_data.
40
41 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * ada-lang.c (ada_language_data): Remove la_op_print_tab
44 initializer.
45 (ada_language::opcode_print_table): New member function.
46 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
47 (c_language::opcode_print_table): New member function.
48 (cplus_language_data): Remove la_op_print_tab initializer.
49 (cplus_language::opcode_print_table): New member function.
50 (asm_language_data): Remove la_op_print_tab initializer.
51 (asm_language::opcode_print_table): New member function.
52 (minimal_language_data): Remove la_op_print_tab initializer.
53 (minimal_language::opcode_print_table): New member function.
54 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
55 (d_language::opcode_print_table): New member function.
56 * expprint.c (print_subexp_standard): Update call to
57 opcode_print_table.
58 (op_string): Likewise.
59 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
60 (f_language::opcode_print_table): New member function.
61 * go-lang.c (go_language_data): Remove la_op_print_tab
62 initializer.
63 (go_language::opcode_print_table): New member function.
64 * language.c (unknown_language_data): Remove la_op_print_tab
65 initializer.
66 (unknown_language::opcode_print_table): New member function.
67 (auto_language_data): Remove la_op_print_tab initializer.
68 (auto_language::opcode_print_table): New member function.
69 * language.h (language_data): Remove la_op_print_tab field.
70 (language_defn::opcode_print_table): Declare new member function.
71 * m2-lang.c (m2_language_data): Remove la_op_print_tab
72 initializer.
73 (m2_language::opcode_print_table): New member function.
74 * objc-lang.c (objc_language_data): Remove la_op_print_tab
75 initializer.
76 (objc_language::opcode_print_table): New member function.
77 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
78 initializer.
79 (opencl_language::opcode_print_table): New member function.
80 * p-lang.c (pascal_language_data): Remove la_op_print_tab
81 initializer.
82 (pascal_language::opcode_print_table): New member function.
83 * rust-lang.c (rust_language_data): Remove la_op_print_tab
84 initializer.
85 (rust_language::opcode_print_table): New member function.
86
87 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
88
89 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
90 (ada_language::expression_ops): New member function.
91 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
92 (c_language::expression_ops): New member function.
93 (cplus_language_data): Remove la_exp_desc initializer.
94 (cplus_language::expression_ops): New member function.
95 (asm_language_data): Remove la_exp_desc initializer.
96 (asm_language::expression_ops): New member function.
97 (minimal_language_data): Remove la_exp_desc initializer.
98 (minimal_language::expression_ops): New member function.
99 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
100 (d_language::expression_ops): New member function.
101 * eval.c (evaluate_subexp): Update call to expression_ops.
102 * expprint.c (print_subexp): Likewise.
103 (op_name): Likewise.
104 (dump_subexp_body): Likewise.
105 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
106 (f_language::expression_ops): New member function.
107 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
108 (go_language::expression_ops): New member function.
109 * language.c (language_defn::expression_ops): New function.
110 (unknown_language_data): Remove la_exp_desc initializer.
111 (auto_language_data): Likewise.
112 * language.h (language_data): Remove la_exp_desc field.
113 (language_defn::expression_ops): Declare new member function.
114 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
115 (m2_language::expression_ops): New member function.
116 * objc-lang.c (objc_language_data): Remove la_exp_desc
117 initializer.
118 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
119 initializer.
120 (opencl_language::expression_ops): New member function.
121 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
122 * parse.c (operator_length): Update call to expression_ops.
123 (exp_iterate): Likewise.
124 * rust-lang.c (rust_language_data): Remove la_exp_desc
125 initializer.
126 (ruse_language::expression_ops): New member function.
127
128 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
129
130 * ada-lang.c (ada_language_data): Remove la_varobj_ops
131 initializer.
132 (ada_language::varobj_ops): New member function.
133 * c-lang.c (c_language_data): Remove la_varobj_ops
134 initializer.
135 (cplus_language_data): Likewise.
136 (cplus_language::varobj_ops): New member function.
137 (asm_language_data): Remove la_varobj_ops initializer.
138 (minimal_language_data): Likewise.
139 * d-lang.c (d_language_data): Likewise.
140 * f-lang.c (f_language_data): Likewise.
141 * go-lang.c (go_language_data): Likewise.
142 * language.c (language_defn::varobj_ops): New function.
143 (unknown_language_data): Remove la_varobj_ops
144 initializer.
145 (auto_language_data): Likewise.
146 * language.h (language_data): Remove la_varobj_ops field.
147 (language_defn::varobj_ops): Declare new member function.
148 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
149 * objc-lang.c (objc_language_data): Likewise.
150 * opencl-lang.c (opencl_language_data): Likewise.
151 * p-lang.c (pascal_language_data): Likewise.
152 * rust-lang.c (rust_language_data): Likewise.
153 * varobj.c (varobj_create): Update call to varobj_ops.
154 * varobj.h (default_varobj_ops): Delete define.
155
156 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * ada-lang.c (ada_language_data): Remove la_macro_expansion
159 initializer.
160 * c-lang.c (c_language_data): Likewise.
161 (c_language::macro_expansion): New member function.
162 (cplus_language_data): Likewise.
163 (cplus_language::macro_expansion): New member function.
164 (asm_language_data): Likewise.
165 (asm_language::macro_expansion): New member function.
166 (minimal_language_data): Likewise.
167 (minimal_language::macro_expansion): New member function.
168 * d-lang.c (d_language_data): Remove la_macro_expansion
169 initializer.
170 * f-lang.c (f_language_data): Likewise.
171 * go-lang.c (go_language_data): Likewise.
172 * language.c (unknown_language_data): Likewise.
173 (auto_language_data): Likewise.
174 * language.h (language_data): Remove la_macro_expansion field.
175 (language_defn::macro_expansion): New member function.
176 * m2-lang.c (m2_language_data): Remove la_macro_expansion
177 initializer.
178 * objc-lang.c (objc_language_data): Likewise.
179 (objc_language::macro_expansion): New member function.
180 * opencl-lang.c (opencl_language_data): Likewise.
181 (opencl_language::macro_expansion): New member function.
182 * p-lang.c (pascal_language_data): Remove la_macro_expansion
183 initializer.
184 * rust-lang.c (rust_language_data): Likewise.
185 * symtab.c (default_collect_symbol_completion_matches_break_on):
186 Update call to macro_expansion.
187
188 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * ada-lang.c (ada_language_data): Remove la_array_ordering
191 initializer.
192 * c-lang.c (c_language_data): Likewise.
193 (cplus_language_data): Likewise.
194 (asm_language_data): Likewise.
195 (minimal_language_data): Likewise.
196 * d-lang.c (d_language_data): Likewise.
197 * dwarf2/read.c (read_array_order): Update for call to
198 array_ordering.
199 * f-lang.c (f_language_data): Remove la_array_ordering
200 initializer.
201 (f_language::array_ordering): New member function.
202 * go-lang.c (go_language_data): Remove la_array_ordering
203 initializer.
204 * language.c (unknown_language_data): Likewise.
205 (auto_language_data): Likewise.
206 * language.h (language_data): Delete la_array_ordering field.
207 (language_defn::array_ordering): New member function.
208 * m2-lang.c (m2_language_data): Remove la_array_ordering
209 initializer.
210 * objc-lang.c (objc_language_data): Likewise.
211 * opencl-lang.c (opencl_language_data): Likewise.
212 * p-lang.c (pascal_language_data): Likewise.
213 * rust-lang.c (rust_language_data): Likewise.
214
215 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
218 initializer.
219 * c-lang.c (c_language_data): Likewise.
220 (cplus_language_data): Likewise.
221 (asm_language_data): Likewise.
222 (minimal_language_data): Likewise.
223 * d-lang.c (d_language_data): Likewise.
224 * f-lang.c (f_language_data): Likewise.
225 (f_language::case_sensitivity): New member function.
226 * go-lang.c (go_language_data): Remove la_case_sensitivity
227 initializer.
228 * language.c (enum case_mode): Moved here from language.h.
229 (case_mode): Make static.
230 (show_case_command): Update for case_sensitivity being a method.
231 (set_case_command): Likewise.
232 (set_range_case): Likewise.
233 (unknown_language_data): Remove la_case_sensitivity initializer.
234 (auto_language_data): Likewise.
235 * language.h (case_mode): Delete, move enum declaration to
236 language.c.
237 (language_data): Delete la_case_sensitivity field.
238 (language_defn::case_sensitivity): New member function.
239 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
240 initializer.
241 * objc-lang.c (objc_language_data): Likewise.
242 * opencl-lang.c (opencl_language_data): Likewise.
243 * p-lang.c (pascal_language_data): Likewise.
244 * rust-lang.c (rust_language_data): Likewise.
245
246 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
247
248 * ada-lang.c (ada_language_data): Remove la_range_check
249 initializer.
250 * c-lang.c (c_language_data): Likewise.
251 (cplus_language_data): Likewise.
252 (asm_language_data): Likewise.
253 (minimal_language_data): Likewise.
254 * d-lang.c (d_language_data): Likewise.
255 * f-lang.c (f_language_data): Likewise.
256 (f_language::range_checking_on_by_default): New member function.
257 * go-lang.c (go_language_data): Remove la_range_check initializer.
258 * language.c (enum range_mode): Moved here from language.h.
259 (range_mode): Made static.
260 (show_range_command): Update to use
261 range_checking_on_by_default.
262 (set_range_command): Likewise.
263 (set_range_case): Likewise.
264 (unknown_language_data): Remove la_range_check initializer.
265 (auto_language_data): Likewise.
266 * language.h (range_mode): Delete. Enum definition moved to
267 language.c.
268 (language_data): Remove la_range_check field.
269 (language_defn::range_checking_on_by_default): New member
270 function.
271 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
272 (m2_language::range_checking_on_by_default): New member function.
273 * objc-lang.c (objc_language_data): Remove la_range_check
274 initializer.
275 * opencl-lang.c (opencl_language_data): Likewise.
276 * p-lang.c (pascal_language_data): Likewise.
277 (pascal_language::range_checking_on_by_default): New member
278 function.
279 * rust-lang.c (rust_language_data): Remove la_range_check
280 initializer.
281 (rust_language::range_checking_on_by_default): New member
282 function.
283
284 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * dwarf2/read.c (dwarf2_physname): Remove special case for
287 language_go.
288 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
289 member function.
290
291 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
292
293 * ada-lang.c (ada_language_data): Remove
294 la_store_sym_names_in_linkage_form_p initializer.
295 (ada_language::store_sym_names_in_linkage_form_p): New member
296 function.
297 * c-lang.c (c_language_data): Remove
298 la_store_sym_names_in_linkage_form_p initializer.
299 (c_language::store_sym_names_in_linkage_form_p): New member
300 function.
301 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
302 initializer.
303 (asm_language_data): Likewise.
304 (asm_language::store_sym_names_in_linkage_form_p): New member
305 function.
306 (minimal_language_data): Remove
307 la_store_sym_names_in_linkage_form_p initializer.
308 (minimal_language::store_sym_names_in_linkage_form_p): New member
309 function.
310 * d-lang.c (d_language_data): Remove
311 la_store_sym_names_in_linkage_form_p initializer.
312 * dwarf2/read.c (dwarf2_physname): Update call to
313 store_sym_names_in_linkage_form_p.
314 * f-lang.c (f_language_data): Remove
315 la_store_sym_names_in_linkage_form_p initializer.
316 * go-lang.c (go_language_data): Remove
317 la_store_sym_names_in_linkage_form_p initializer.
318 * language.c (unknown_language_data): Remove
319 la_store_sym_names_in_linkage_form_p initializer.
320 (unknown_language::store_sym_names_in_linkage_form_p): New member
321 function.
322 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
323 initializer.
324 (auto_language::store_sym_names_in_linkage_form_p): New member
325 function.
326 * language.h (language_data): Remove
327 la_store_sym_names_in_linkage_form_p member variable.
328 (language_defn::store_sym_names_in_linkage_form_p): New member
329 function.
330 * m2-lang.c (m2_language_data): Remove
331 la_store_sym_names_in_linkage_form_p initializer.
332 * objc-lang.c (objc_language_data): Likewise.
333 * opencl-lang.c (opencl_language_data): Likewise.
334 * p-lang.c (pascal_language_data): Likewise.
335 * rust-lang.c (rust_language_data): Likewise.
336
337 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
338
339 * ada-lang.c (ada_language_data): Remove string_lower_bound
340 initializer.
341 * c-lang.c (c_language_data): Likewise.
342 (cplus_language_data): Likewise.
343 (asm_language_data): Likewise.
344 (minimal_language_data): Likewise.
345 * d-lang.c (d_language_data): Likewise.
346 * f-lang.c (f_language_data): Likewise.
347 * go-lang.c (go_language_data): Likewise.
348 * language.c (unknown_language_data): Likewise.
349 (auto_language_data): Likewise.
350 * language.h (language_data): Remove string_lower_bound field.
351 (language_defn::string_lower_bound): New member function.
352 * m2-lang.c (m2_language_data): Remove string_lower_bound
353 initializer.
354 (m2_language::string_lower_bound): New member function.
355 * objc-lang.c (objc_language_data): Remove string_lower_bound
356 initializer.
357 * opencl-lang.c (opencl_language_data): Likewise.
358 * p-lang.c (pascal_language_data): Likewise.
359 * rust-lang.c (rust_language_data): Likewise.
360 * valops.c (value_cstring): Update call to string_lower_bound.
361 (value_string): Likewise.
362 * value.c (allocate_repeated_value): Likewise.
363
364 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
365
366 * valops.c (value_repeat): Fix incorrect argument name in comment.
367
368 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
369
370 * ada-lang.c (ada_language_data): Remove c_style_arrays
371 initializer.
372 (ada_language::c_style_arrays_p): New member fuction.
373 * c-lang.c (c_language_data): Remove c_style_arrays
374 initializer.
375 (cplus_language_data): Likewise.
376 (asm_language_data): Likewise.
377 (minimal_language_data): Likewise.
378 * d-lang.c (d_language_data): Likewise.
379 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
380 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
381 (f_language::c_style_arrays_p): New member function.
382 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
383 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
384 * language.c (unknown_language_data): Remove c_style_arrays
385 initializer.
386 (auto_language_data): Likewise.
387 * language.h (language_data): Remove c_style_arrays field.
388 (language_defn::c_style_arrays_p): New member function.
389 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
390 (m2_language::c_style_arrays_p): New member function.
391 * objc-lang.c (objc_language_data): Remove c_style_arrays
392 initializer.
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 * valarith.c (value_subscript): Update call to c_style_arrays_p,
397 and update local variable to a bool.
398 * valops.c (value_cast): Update call to c_style_arrays_p.
399 (value_array): Likewise.
400 * value.c (coerce_array): Likewise.
401
402 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
403
404 * ada-lang.c (ada_language_data): Remove la_language initializer.
405 * c-lang.c (c_language_data): Likewise.
406 (cplus_language_data): Likewise.
407 (asm_language_data): Likewise.
408 (minimal_language_data): Likewise.
409 * d-lang.c (d_language_data): Likewise.
410 * f-lang.c (f_language_data): Likewise.
411 * go-lang.c (go_language_data): Likewise.
412 * language.c (unknown_language_data): Likewise.
413 (auto_language_data): Likewise.
414 * language.h (language_data): Remove la_language field.
415 (language_defn::language_defn): Initialise la_language field.
416 (language_defn::la_language): New member variable.
417 * m2-lang.c (m2_language_data): Remove la_language field.
418 * objc-lang.c (objc_language_data): Likewise.
419 * opencl-lang.c (opencl_language_data): Likewise.
420 * p-lang.c (pascal_language_data): Likewise.
421 * rust-lang.c (rust_language_data): Likewise.
422
423 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
424
425 * ada-lang.c (ada_extensions): Delete, moved into
426 ada_language::filename_extensions.
427 (ada_language_data): Remove la_filename_extensions initializer.
428 (ada_language::filename_extensions): New member function.
429 * c-lang.c (c_extensions): Delete, moved into
430 c_language::filename_extensions.
431 (c_language_data): Remove la_filename_extensions initializer.
432 (c_language::filename_extensions): New member function.
433 (cplus_extensions): Delete, moved into
434 cplus_language::filename_extensions.
435 (cplus_language_data): Remove la_filename_extensions initializer.
436 (cplus_language::filename_extensions): New member function.
437 (asm_extensions): Delete, moved into
438 asm_language::filename_extensions.
439 (asm_language_data): Remove la_filename_extensions initializer.
440 (asm_language::filename_extensions): New member function.
441 (minimal_language_data): Remove la_filename_extensions
442 initializer.
443 * d-lang.c (d_extensions): Delete, moved into
444 d_language::filename_extensions.
445 (d_language_data): Remove la_filename_extensions initializer.
446 (d_language::filename_extensions): New member function.
447 * f-lang.c (f_extensions): Delete, moved into
448 f_language::filename_extensions.
449 (f_language_data): Remove la_filename_extensions initializer.
450 (f_language::filename_extensions): New member function.
451 * go-lang.c (go_language_data): Remove la_filename_extensions
452 initializer.
453 * language.c (add_set_language_command): Update now that
454 filename_extensions returns a vector.
455 (unknown_language_data): Remove la_filename_extensions
456 initializer.
457 (auto_language_data): Likewise.
458 * language.h (language_data): Remove la_filename_extensions field.
459 (language_defn::filename_extensions): New member function.
460 * m2-lang.c (m2_language_data): Remove la_filename_extensions
461 initializer.
462 * objc-lang.c (objc_extensions): Delete, moved into
463 objc_language::filename_extensions.
464 (objc_language_data): Remove la_filename_extensions initializer.
465 (objc_language::filename_extensions): New member function.
466 * opencl-lang.c (opencl_language_data): Remove
467 la_filename_extensions initializer.
468 * p-lang.c (pascal_extensions): Delete, moved into
469 pascal_language::filename_extensions.
470 (pascal_language_data): Remove la_filename_extensions initializer.
471 (pascal_language::filename_extensions): New member function.
472 * rust-lang.c (rust_extensions): Delete, moved into
473 rust_language::filename_extensions.
474 (rust_language_data): Remove la_filename_extensions initializer.
475 (rust_language::filename_extensions): New member function.
476 * symfile.c (add_filename_language): Add new assert.
477
478 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
479
480 * ada-lang.c (ada_language_data): Remove la_name and
481 la_natural_name initializers.
482 (ada_language::name): New member function.
483 (ada_language::natural_name): New member function.
484 * c-lang.c (c_language_data): Remove la_name and
485 la_natural_name initializers.
486 (c_language::name): New member function.
487 (c_language::natural_name): New member function.
488 (cplus_language_data): Remove la_name and
489 la_natural_name initializers.
490 (cplus_language::name): New member function.
491 (cplus_language::natural_name): New member function.
492 (asm_language_data): Remove la_name and
493 la_natural_name initializers.
494 (asm_language::name): New member function.
495 (asm_language::natural_name): New member function.
496 (minimal_language_data): Remove la_name and
497 la_natural_name initializers.
498 (minimal_language::name): New member function.
499 (minimal_language::natural_name): New member function.
500 * compile/compile.c (compile_to_object): Update call to
501 lanugage_defn::name.
502 * d-lang.c (d_language_data): Remove la_name and
503 la_natural_name initializers.
504 (d_language::name): New member function.
505 (d_language::natural_name): New member function.
506 * expprint.c (print_subexp_standard): Update call to
507 language_defn::name.
508 (dump_raw_expression): Likewise
509 (dump_prefix_expression): Likewise.
510 * f-lang.c (f_language_data): Remove la_name and
511 la_natural_name initializers.
512 (f_language::name): New member function.
513 (f_language::natural_name): New member function.
514 * go-lang.c (go_language_data): Remove la_name and
515 la_natural_name initializers.
516 (go_language::name): New member function.
517 (go_language::natural_name): New member function.
518 * language.c (show_language_command): Update call to
519 language_defn::name.
520 (set_language_command): Likewise.
521 (language_enum): Likewise.
522 (language_str): Likewise.
523 (add_set_language_command): Likewise, use
524 language_defn::natural_name in the doc string.
525 (unknown_language_data): Remove la_name and
526 la_natural_name initializers.
527 (unknown_language::name): New member function.
528 (unknown_language::natural_name): New member function.
529 (auto_language_data): Remove la_name and
530 la_natural_name initializers.
531 (auto_language::name): New member function.
532 (auto_language::natural_name): New member function.
533 (language_lookup_primitive_type_as_symbol): Update call to
534 language_defn::name.
535 * language.h (language_data): Remove la_name and la_natural_name
536 member variables.
537 (language_defn::name): New member function.
538 (language_defn::natural_name): New member function.
539 * m2-lang.c (m2_language_data): Remove la_name and
540 la_natural_name initializers.
541 (m2_language::name): New member function.
542 (m2_language::natural_name): New member function.
543 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
544 language_defn::natural_name.
545 * objc-lang.c (objc_language_data): Remove la_name and
546 la_natural_name initializers.
547 (objc_language::name): New member function.
548 (objc_language::natural_name): New member function.
549 * opencl-lang.c (opencl_language_data): Remove la_name and
550 la_natural_name initializers.
551 (opencl_language::name): New member function.
552 (opencl_language::natural_name): New member function.
553 * p-lang.c (pascal_language_data): Remove la_name and
554 la_natural_name initializers.
555 (pascal_language::name): New member function.
556 (pascal_language::natural_name): New member function.
557 * rust-lang.c (rust_language_data): Remove la_name and
558 la_natural_name initializers.
559 (rust_language::name): New member function.
560 (rust_language::natural_name): New member function.
561 * symtab.c (lookup_language_this): Update call to
562 language_defn::name.
563
564 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
565
566 * ada-lang.c (ada_language_data): Remove la_name_of_this
567 initializer.
568 * ax-gdb.c (gen_expr): Update call to name_of_this.
569 * c-exp.y (classify_name): Likewise.
570 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
571 (cplus_language_data): Likewise.
572 (cplus_language::name_of_this): New member function.
573 (asm_language_data): Remove la_name_of_this initializer.
574 (minimal_language_data): Likewise.
575 * d-lang.c (d_language_data): Likewise.
576 (d_language::name_of_this): New member function.
577 * expprint.c (print_subexp_standard): Update call to name_of_this.
578 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
579 * go-lang.c (go_language_data): Likewise.
580 * language.c (unknown_language_data): Likewise.
581 (unknown_language::name_of_this): New member function.
582 (auto_language_data): Remove la_name_of_this initializer.
583 (auto_language::name_of_this): New member function.
584 * language.h (language_data): Delete la_name_of_this member
585 variable.
586 (language_defn::name_of_this): New member function.
587 * m2-lang.c (m2_language_data): Remove la_name_of_this
588 initializer.
589 * objc-lang.c (objc_language_data): Likewise.
590 (objc_language::name_of_this): New member function.
591 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
592 initializer.
593 * p-lang.c (pascal_language_data): Likewise.
594 (pascal_language::name_of_this): New member function.
595 * rust-lang.c (rust_language_data): Remove la_name_of_this
596 initializer.
597 * symtab.c (lookup_language_this): Update call to name_of_this.
598 (lookup_symbol_aux): Likewise.
599 * valops.c (value_of_this): Likewise.
600
601 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
602
603 * ada-lang.c (ada_language_data): Remove
604 la_struct_too_deep_ellipsis initializer.
605 (ada_language::struct_too_deep_ellipsis): New member function.
606 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
607 initializer.
608 (cplus_language_data): Likewise.
609 (asm_language_data): Likewise.
610 (minimal_language_data): Likewise.
611 * cp-valprint.c (cp_print_value): Update call to
612 struct_too_deep_ellipsis.
613 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
614 initializer.
615 * f-lang.c (f_language_data): Likewise.
616 (f_language::struct_too_deep_ellipsis): New member function.
617 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
618 initializer.
619 * language.c (unknown_language_data): Likewise.
620 (auto_language_data): Likewise.
621 * language.h (language_data): Delete la_struct_too_deep_ellipsis
622 member variable.
623 (language_defn::struct_too_deep_ellipsis): New member function.
624 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
625 initializer.Q
626 * objc-lang.c (objc_language_data): Likewise.
627 * opencl-lang.c (opencl_language_data): Likewise.
628 * p-lang.c (pascal_language_data): Likewise.
629 * rust-lang.c (rust_language_data): Likewise.
630 * valprint.c (val_print_check_max_depth): Update call to
631 struct_too_deep_ellipsis.
632
633 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
634
635 * MAINTAINERS (Write After Approval): Add myself.
636
637 2020-09-15 Tom Tromey <tom@tromey.com>
638
639 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
640 Remove.
641
642 2020-09-15 Tom Tromey <tom@tromey.com>
643
644 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
645 and TYPE_CODE_METHODPTR cases.
646 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
647 (c_value_print_inner): Update.
648 * valprint.c (generic_value_print_memberptr): New function, from
649 c_value_print_memberptr.
650 (generic_value_print): Use it. Call cplus_print_method_ptr.
651
652 2020-09-15 Tom Tromey <tromey@adacore.com>
653
654 * python/python-internal.h (PyInt_FromLong): Remove define.
655 * python/py-value.c (convert_value_from_python): Use
656 gdb_py_object_from_longest.
657 * python/py-type.c (typy_get_code): Use
658 gdb_py_object_from_longest.
659 * python/py-symtab.c (salpy_get_line): Use
660 gdb_py_object_from_longest.
661 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
662 gdb_py_object_from_longest.
663 * python/py-record.c (recpy_gap_reason_code): Use
664 gdb_py_object_from_longest.
665 * python/py-record-btrace.c (recpy_bt_insn_size)
666 (recpy_bt_func_level, btpy_list_count): Use
667 gdb_py_object_from_longest.
668 * python/py-infthread.c (gdbpy_create_ptid_object): Use
669 gdb_py_object_from_longest. Fix error handling.
670 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
671 gdb_py_object_from_longest.
672 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
673 gdb_py_object_from_longest.
674 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
675 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
676 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
677
678 2020-09-15 Tom Tromey <tromey@adacore.com>
679
680 * python/python.c (gdbpy_parameter_value): Use
681 gdb_py_object_from_ulongest.
682
683 2020-09-15 Tom Tromey <tromey@adacore.com>
684
685 * python/py-infevents.c (create_register_changed_event_object):
686 Use gdb_py_object_from_longest.
687 * python/py-exitedevent.c (create_exited_event_object): Use
688 gdb_py_object_from_longest.
689
690 2020-09-15 Tom Tromey <tromey@adacore.com>
691
692 * python/python.c (gdbpy_parameter_value): Use
693 gdb_py_object_from_longest.
694 * python/py-type.c (convert_field, typy_range): Use
695 gdb_py_object_from_longest.
696 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
697 gdb_py_object_from_longest.
698 * python/py-lazy-string.c (stpy_get_length): Use
699 gdb_py_object_from_longest.
700 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
701 gdb_py_object_from_longest.
702 * python/py-infevents.c (create_memory_changed_event_object): Use
703 gdb_py_object_from_longest.
704 * python/py-inferior.c (infpy_get_num): Use
705 gdb_py_object_from_longest.
706 (infpy_get_pid): Likewise.
707
708 2020-09-15 Tom Tromey <tromey@adacore.com>
709
710 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
711 defines.
712 * python/py-value.c (valpy_long): Use
713 gdb_py_object_from_ulongest.
714 * python/py-symtab.c (salpy_get_pc): Use
715 gdb_py_object_from_ulongest.
716 (salpy_get_last): Likewise.
717 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
718 gdb_py_object_from_ulongest.
719 * python/py-lazy-string.c (stpy_get_address): Use
720 gdb_py_object_from_ulongest.
721 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
722 * python/py-arch.c (archpy_disassemble): Use
723 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
724 error handling.
725
726 2020-09-15 Tom Tromey <tromey@adacore.com>
727
728 * python/python-internal.h (gdb_py_long_from_longest): Remove
729 defines.
730 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
731 * python/py-type.c (convert_field, typy_get_sizeof): Use
732 gdb_py_object_from_longest.
733 * python/py-record-btrace.c (btpy_list_index): Use
734 gdb_py_object_from_longest.
735
736 2020-09-15 Tom Tromey <tromey@adacore.com>
737
738 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
739 * python/py-record.c (recpy_element_number): Use
740 gdb_py_object_from_longest.
741 (recpy_gap_number): Likewise.
742
743 2020-09-15 Tom Tromey <tromey@adacore.com>
744
745 * top.c (ui::ui): Update.
746 (highest_ui_num): Remove.
747 * top.h (struct ui) <num>: Remove.
748
749 2020-09-15 Tom Tromey <tromey@adacore.com>
750
751 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
752 * ui-style.c (ansi_regex_text): Now array.
753 * rust-exp.y (number_regex_text): Now array.
754 * linespec.c (linespec_quote_characters): Now array.
755 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
756 Now arrays.
757
758 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
759
760 * debuginfod-support.c (debuginfod_client_deleter): New.
761 (debuginfod_client_up): New.
762 (debuginfod_init): Return debuginfod_client_up.
763 (debuginfod_source_query): Adjust.
764 (debuginfod_debuginfo_query): Adjust.
765
766 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
767
768 * debuginfod-support.c (debuginfod_source_query): Use
769 make_unique_xstrdup.
770
771 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
772
773 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
774 with `type::instance_flags`.
775
776 2020-09-14 Michael Mullin <masmullin@gmail.com>
777
778 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
779 Remove baton parameter.
780
781 2020-09-14 Pedro Alves <pedro@palves.net>
782
783 * Makefile.in (SELFTESTS_SRCS): Add
784 unittests/enum-flags-selftests.c.
785 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
786 btrace_function_flags instead of enum btrace_function_flag.
787 * compile/compile-c-types.c (convert_qualified): Use
788 enum_flags::raw.
789 * compile/compile-cplus-symbols.c (convert_one_symbol)
790 (convert_symbol_bmsym):
791 * compile/compile-cplus-types.c (compile_cplus_convert_method)
792 (compile_cplus_convert_struct_or_union_methods)
793 (compile_cplus_instance::convert_qualified_base):
794 * go-exp.y (parse_string_or_char): Add cast to int.
795 * unittests/enum-flags-selftests.c: New file.
796 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
797 type to btrace_thread_flags from btrace_thread_flag.
798 (record_btrace_cancel_resume, record_btrace_step_thread): Change
799 local's type to btrace_thread_flags from btrace_thread_flag. Add
800 cast in DEBUG call.
801
802 2020-09-14 Pedro Alves <pedro@palves.net>
803
804 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
805 * gdbtypes.c (address_space_name_to_int): Rename to ...
806 (address_space_name_to_type_instance_flags): ... this.
807 (address_space_int_to_name): Rename to ...
808 (address_space_type_instance_flags_to_name): ... this.
809 * gdbtypes.h (address_space_name_to_int): Rename to ...
810 (address_space_name_to_type_instance_flags): ... this.
811 (address_space_int_to_name): Rename to ...
812 (address_space_type_instance_flags_to_name): ... this.
813 * type-stack.c (type_stack::insert): Adjust to rename.
814 * type-stack.h (type_stack::insert): Likewise.
815
816 2020-09-14 Pedro Alves <pedro@palves.net>
817 Andrew Burgess <andrew.burgess@embecosm.com>
818
819 * avr-tdep.c (avr_address_class_type_flags): Return
820 type_instance_flags.
821 (avr_address_class_type_flags_to_name): Take a
822 type_instance_flags.
823 (avr_address_class_name_to_type_flags): Return bool and take a
824 type_instance_flags.
825 * d-lang.c (build_d_types): Use type::set_instance_flags.
826 * ft32-tdep.c (ft32_address_class_type_flags): Return
827 type_instance_flags.
828 (ft32_address_class_type_flags_to_name): Take a
829 type_instance_flags.
830 (ft32_address_class_name_to_type_flags): Return bool and take a
831 type_instance_flags.
832 (ft32_gdbarch_init): Use type::set_instance_flags.
833 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
834 * gdbarch.h, gdbarch.c: Regenerate.
835 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
836 (address_class_name_to_type_flags): Use type_instance_flags and
837 bool.
838 * gdbtypes.c (address_space_name_to_int)
839 (address_space_int_to_name, make_qualified_type): Use
840 type_instance_flags.
841 (make_qualified_type): Use type_instance_flags and
842 type::set_instance_flags.
843 (make_type_with_address_space, make_cv_type, make_vector_type)
844 (check_typedef): Use type_instance_flags.
845 (recursive_dump_type): Cast type_instance_flags to unsigned for
846 printing.
847 (copy_type_recursive): Use type::set_instance_flags.
848 (gdbtypes_post_init): Use type::set_instance_flags.
849 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
850 <m_instance_flags>: ... this.
851 <instance_flags, set_instance_flags>: New methods.
852 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
853 (SET_TYPE_INSTANCE_FLAGS): New.
854 (address_space_name_to_int, address_space_int_to_name)
855 (make_type_with_address_space): Pass flags using
856 type_instance_flags instead of int.
857 * stabsread.c (cleanup_undefined_types_noname): Use
858 type::set_instance_flags.
859 * s390-tdep.c (s390_address_class_type_flags): Return
860 type_instance_flags.
861 (s390_address_class_type_flags_to_name): Take a
862 type_instance_flags.
863 (s390_address_class_name_to_type_flags): Return bool and take a
864 type_instance_flags.
865 * type-stack.c (type_stack::follow_types): Use
866 type_instance_flags.
867 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
868
869 2020-09-14 Tom Tromey <tromey@adacore.com>
870
871 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
872 * x86-tdep.c (x86_is_thunk_register_name)
873 (x86_in_indirect_branch_thunk): Update.
874 * sparc64-tdep.c (sparc64_fpu_register_names)
875 (sparc64_cp0_register_names, sparc64_register_names)
876 (sparc64_pseudo_register_names): Now const.
877 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
878 cp0_registers_num>: Now const.
879 * sparc-tdep.c (sparc_core_register_names)
880 (sparc32_fpu_register_names, sparc32_cp0_register_names)
881 (sparc32_pseudo_register_names): Now const.
882 (validate_tdesc_registers): Update.
883 * rust-lang.c (rust_extensions): Now const.
884 * p-lang.c (p_extensions): Now const.
885 * objc-lang.c (objc_extensions): Now const.
886 * nto-tdep.c (nto_thread_state_str): Now const.
887 * moxie-tdep.c (moxie_register_names): Now const.
888 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
889 Now const.
890 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
891 (mips_linux_reg_names): Now const.
892 (mips_gdbarch_init): Update.
893 * microblaze-tdep.c (microblaze_register_names): Now const.
894 * m68k-tdep.c (m68k_register_names): Now const.
895 * m32r-tdep.c (m32r_register_names): Now const.
896 * ia64-tdep.c (ia64_register_names): Now const.
897 * i386-tdep.h (struct gdbarch_tdep) <register_names,
898 ymmh_register_names, ymm16h_regnum, mpx_register_names,
899 k_register_names, zmmh_register_names, xmm_avx512_register_names,
900 ymm_avx512_register_names, pkeys_register_names>: Now const.
901 * i386-tdep.c (i386_register_names, i386_zmm_names)
902 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
903 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
904 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
905 * f-lang.c (f_extensions): Now const.
906 * d-lang.c (d_extensions): Now const.
907 * csky-tdep.c (csky_register_names): Now const.
908 * charset.c (default_charset_names, charset_enum): Now const.
909 (_initialize_charset): Update.
910 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
911 const.
912 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
913 (bsd_uthread_solib_loaded): Update.
914 (bsd_uthread_state): Now const.
915 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
916 (amd64_ymm_avx512_names, amd64_ymmh_names)
917 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
918 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
919 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
920 (amd64_dword_names): Now const.
921 * agent.c (can_use_agent_enum): Now const.
922 * ada-tasks.c (task_states, long_task_states): Now const.
923 * ada-lang.c (known_runtime_file_name_patterns)
924 (known_auxiliary_function_name_patterns, attribute_names)
925 (standard_exc, ada_extensions): Now const.
926
927 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
928
929 * bcache.h (struct bcache) <bcache>: Remove constructor.
930 <m_hash_function, m_compare_function>: Remove.
931 <~bcache>: Make virtual.
932 <compare>: Remove static method, introduce virtual method.
933 <default_hash>: Remove.
934 <hash>: New virtual method.
935 * bcache.c (bcache::expand_hash_table): Update.
936 (bcache::insert): Update.
937 (bcache::hash): New.
938 (bcache::compare): Update comment and parameter names.
939 * gdbtypes.c (types_deeply_equal): Update.
940 * psymtab.h (struct psymbol_bcache): New struct.
941 (class psymtab_storage) <psymtab_storage>: Make default.
942 <psymbol_cache>: Change type to psymbol_bcache.
943 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
944 (psymbol_hash): Change to...
945 (psymbol_bcache::hash): ... this.
946 (psymbol_compare): Change to...
947 (psymbol_bcache::compare): ... this.
948
949 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
950
951 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
952 checking for initial lwp.
953
954 2020-09-14 Tom Tromey <tromey@adacore.com>
955
956 * m68k-tdep.c (m68k_extract_return_value): Use
957 pointer_result_regnum.
958 (m68k_store_return_value): Likewise.
959 (m68k_reg_struct_return_p): Handle vectors and arrays.
960 (m68k_return_value): Handle arrays.
961 (m68k_svr4_return_value): Fix single-element aggregate handling.
962 Handle long double. Adjust for embedded ABI.
963 (m68k_svr4_init_abi): Set pointer_result_regnum.
964 (m68k_embedded_init_abi): New function.
965 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
966 (m68k_osabi_sniffer): New function.
967 (_initialize_m68k_tdep): Register osabi sniffer.
968 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
969 member.
970
971 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
972
973 * xml-support.c (xml_fetch_content_from_file): Replace xfree
974 with gdb::unique_xmalloc_ptr<char>.
975
976 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
977
978 * xml-support.h (xml_fetch_another): Change type to be a
979 function_view.
980 (xml_process_xincludes): Remove baton parameter.
981 (xml_fetch_content_from_file): Change baton parameter to
982 dirname.
983 * xml-support.c (struct xinclude_parsing_data)
984 <xinclude_parsing_data>: Remove baton parameter.
985 <fetcher_baton>: Remove.
986 (xinclude_start_include): Adjust.
987 (xml_process_xincludes): Adjust.
988 (xml_fetch_content_from_file): Replace baton parameter with
989 dirname.
990 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
991 (xml_init_syscalls_info): Use a lambda.
992 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
993 (file_read_description_xml): Use a lambda.
994 (fetch_available_features_from_target): Change baton parameter
995 to target_ops.
996 (target_read_description_xml): Use a lambda.
997 (target_fetch_description_xml): Use a lambda.
998 (string_read_description_xml): Update.
999
1000 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1001
1002 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1003 uses with type::endianity_is_not_default.
1004
1005 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1006
1007 * gdbtypes.h (struct type) <endianity_is_not_default,
1008 set_endianity_is_not_default>: New methods.
1009 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1010 type::endianity_is_not_default, change all write call sites to
1011 use type::set_endianity_is_not_default.
1012
1013 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1014
1015 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1016 uses with type::is_fixed_instance.
1017
1018 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1019
1020 * gdbtypes.h (struct type) <is_fixed_instance,
1021 set_is_fixed_instance>: New methods.
1022 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1023 write call sites to use type::set_is_fixed_instance.
1024
1025 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1026
1027 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1028 uses with type::is_gnu_ifunc.
1029
1030 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1031
1032 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1033 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1034 use type::set_is_gnu_ifunc.
1035
1036 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1037
1038 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1039 uses with type::stub_is_supported.
1040
1041 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1042
1043 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1044 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1045 use type::set_stub_is_supported.
1046
1047 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1048
1049 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1050 uses with type::is_vector.
1051
1052 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1053
1054 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1055 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1056 use type::set_is_vector.
1057
1058 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1059
1060 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1061 uses with type::has_varargs.
1062
1063 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1064
1065 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1066 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1067 use type::set_has_varargs.
1068
1069 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1070
1071 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1072 uses with type::is_prototyped.
1073
1074 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1075
1076 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1077 New methods.
1078 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1079 call sites to use type::set_is_prototyped.
1080
1081 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1082
1083 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1084 uses with type::target_is_stub.
1085
1086 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1087
1088 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1089 New methods.
1090 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1091 sites to use type::set_target_is_stub.
1092
1093 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1094
1095 * gdbtypes.h (TYPE_STUB): Remove, replace all
1096 uses with type::is_stub.
1097
1098 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1099
1100 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1101 (TYPE_STUB): Use type::is_stub, change all write call sites to
1102 use type::set_is_stub.
1103
1104 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1105
1106 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1107 type::has_no_signedness.
1108
1109 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1110
1111 * gdbtypes.h (struct type) <has_no_signedness,
1112 set_has_no_signedness>: New methods.
1113 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1114 call sites to use type::set_has_no_signedness.
1115
1116 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1117
1118 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1119 type::is_unsigned.
1120
1121 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1122
1123 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1124 methods.
1125 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1126 sites to use type::set_is_unsigned.
1127
1128 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1129 Adam Renquinha <arenquinha@cimeq.qc.ca>
1130
1131 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1132 pointer and stack frame offset when unwinding.
1133
1134 2020-09-13 Pedro Alves <pedro@palves.net>
1135
1136 * NEWS: Document "-break-insert --qualified".
1137 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1138
1139 2020-09-13 Pedro Alves <pedro@palves.net>
1140
1141 * linespec.c (classify_mtype, compare_msyms): Delete.
1142 (search_minsyms_for_name): Remove classification logic. Instead
1143 filter out trampoline symbols if we also found an external
1144 function of the same name.
1145
1146 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1147
1148 * NEWS: Create a new section for the next release branch.
1149 Rename the section of the current branch, now that it has
1150 been cut.
1151
1152 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1153
1154 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1155 * version.in: Bump version to 11.0.50.DATE-git.
1156
1157 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1158
1159 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1160
1161 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1162 Felix Willgerodt <Felix.Willgerodt@intel.com>
1163
1164 * gdbarch.sh: Added bfloat16 type.
1165 * gdbarch.c: Regenerated.
1166 * gdbarch.h: Regenerated.
1167 * gdbtypes.c (floatformats_bfloat16): New struct.
1168 (gdbtypes_post_init): Add builtin_bfloat16.
1169 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1170 (floatformats_bfloat16): New struct.
1171 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1172 (i386_ymm_type): Add field "v16_bfloat16"
1173 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1174 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1175 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1176 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1177 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1178 * features/i386/64bit-avx512.c: Regenerated.
1179 * features/i386/64bit-sse.xml: Add bfloat16 type.
1180 * features/i386/64bit-sse.c: Regenerated.
1181
1182 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1183
1184 * i386-tdep.c (i386_zmm_type): Fix field names.
1185 (i386_ymm_type): Fix field names.
1186
1187 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1188
1189 * breakpoint.c: Fix typo in the help message of the
1190 "set breakpoint condition-evaluation" command.
1191
1192 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1193
1194 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1195 * (nbsd_nat_target::pid_to_exec_file)
1196 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1197 (nbsd_nat_target::post_startup_inferior)
1198 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1199 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1200 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1201 * (nbsd_thread_lister): Remove.
1202
1203 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1204
1205 * fork-inferior.c (startup_inferior): Avoid double free.
1206
1207 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1208
1209 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1210 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1211
1212 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1213
1214 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1215 * netbsd-nat.c: Include <sys/ptrace.h>.
1216 * (netbsd_nat::enable_proc_events): Add.
1217
1218 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1219
1220 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1221 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1222 (netbsd_nat::for_each_thread): Add.
1223 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1224 "gdbsupport/common-debug.h".
1225 * (netbsd_nat::netbsd_thread_lister)
1226 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1227 (netbsd_nat::for_each_thread): Add.
1228
1229 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1230
1231 * netbsd-nat.h: Include <unistd.h>.
1232 * (netbsd_nat::pid_to_exec_file): Add.
1233 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1234 * (netbsd_nat::pid_to_exec_file) Add.
1235
1236 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1237
1238 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1239
1240 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1241
1242 * netbsd-nat.h: New file.
1243 * netbsd-nat.c: Likewise.
1244
1245 2020-09-09 Tom Tromey <tromey@adacore.com>
1246
1247 * ada-lang.c (remove_extra_symbols): Do not increment when
1248 removing an element
1249
1250 2020-09-08 Tom Tromey <tromey@adacore.com>
1251
1252 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1253
1254 2020-09-08 Tom Tromey <tromey@adacore.com>
1255
1256 PR win32/25302:
1257 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1258 (gdb_bfd_init_data): New function.
1259 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1260
1261 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1262
1263 * infrun.c (fetch_inferior_event): Use
1264 `switch_to_target_no_thread` to switch the target.
1265
1266 2020-09-06 Tom Tromey <tom@tromey.com>
1267
1268 * symfile.h (dwarf2_free_objfile): Don't declare.
1269
1270 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1271
1272 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1273 to match 16 byte real/complex type generated by Flang compiler.
1274
1275 2020-09-03 Tom de Vries <tdevries@suse.de>
1276
1277 PR breakpoint/26546
1278 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1279 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1280
1281 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1282
1283 * maint.c (index_digits): New function.
1284 (struct maint_print_section_data): Remove.
1285 (print_bfd_section_info): Remove print_data parameter, add arg
1286 and index_digits.
1287 (print_objfile_section_info): Likewise.
1288 (print_bfd_section_info_maybe_relocated): Likewise (plus
1289 objfile).
1290 (maintenance_info_sections): Adjust calls.
1291
1292 2020-09-02 Tom Tromey <tromey@adacore.com>
1293
1294 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1295 for null pointers.
1296 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1297
1298 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1299
1300 * bcache.h (struct bcache) <insert>: Change type of `added` to
1301 pointer to bool.
1302 * bcache.c (bcache::insert): Likewise.
1303 * gdbtypes.c (check_types_worklist): Adjust.
1304 * psymtab.c (add_psymbol_to_bcache): Adjust.
1305
1306 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1307
1308 * corelow.c (unordered_set): Include.
1309 (class core_target): Add field 'm_core_unavailable_mappings'.
1310 (core_target::build_file_mappings): Print only one warning
1311 per inaccessible file. Add unavailable/broken mappings
1312 to m_core_unavailable_mappings.
1313 (core_target::xfer_partial): Call...
1314 (core_target::xfer_memory_via_mappings): New method.
1315
1316 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1317
1318 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1319 type to bool.
1320
1321 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1322
1323 * dwarf2/read.c (struct field_info): Fix indentation.
1324
1325 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1326
1327 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1328 ordering in comment.
1329 * frame.c (frame_id_eq): Fix indentation.
1330
1331 2020-08-31 Scott Linder <scott@scottlinder.com>
1332 Simon Marchi <simon.marchi@efficios.com>
1333
1334 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1335 inline frame ids in outer frame.
1336
1337 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1338
1339 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1340 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1341 (outer_frame_id): Use FID_STACK_OUTER instead of
1342 FID_STACK_INVALID.
1343 (frame_id_p): Don't check for outer_frame_id.
1344
1345 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1346
1347 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1348 regnum/frame in value. Call allocate_value_lazy.
1349 * frame.c (frame_unwind_register_value): Use
1350 val_print_not_saved.
1351
1352 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1353
1354 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1355
1356 2020-08-29 Pedro Alves <pedro@palves.net>
1357
1358 * progspace.c (print_program_space): Use all_inferiors. Switch to
1359 the inferior before calling target_pid_to_str.
1360
1361 2020-08-28 Tom Tromey <tom@tromey.com>
1362
1363 * xcoffread.c (xcoff_end_psymtab): Update comment.
1364 * dbxread.c (dbx_end_psymtab): Update comment.
1365
1366 2020-08-28 Tom de Vries <tdevries@suse.de>
1367
1368 PR breakpoint/26544
1369 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1370 event_location.
1371 (create_breakpoint): Same.
1372 (base_breakpoint_decode_location): Same.
1373 (bkpt_create_sals_from_location): Same.
1374 (bkpt_decode_location): Same.
1375 (bkpt_probe_create_sals_from_location): Same.
1376 (bkpt_probe_decode_location): Same.
1377 (tracepoint_create_sals_from_location): Same.
1378 (tracepoint_decode_location): Same.
1379 (tracepoint_probe_decode_location): Same.
1380 (strace_marker_create_sals_from_location): Same.
1381 (strace_marker_decode_location): Same.
1382 (create_sals_from_location_default): Same.
1383 (decode_location_default): Same.
1384 * breakpoint.h (struct breakpoint_ops): Same.
1385 (create_breakpoint): Same.
1386 * linespec.h (decode_line_full): Same.
1387 * linespec.c (decode_line_full): Same. Throw error if
1388 result.size () == 0.
1389
1390 2020-08-27 Pedro Alves <pedro@palves.net>
1391
1392 PR gdb/26524
1393 * breakpoint.c (until_break_fsm) <location_breakpoint,
1394 caller_breakpoint>: Delete fields.
1395 <breakpoints>: New field.
1396 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1397 two individual breakpoints.
1398 (until_break_fsm::should_stop): Loop over breakpoints in the
1399 breakpoint vector.
1400 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1401 vector.
1402 (until_break_command): Handle location expanding into multiple
1403 sals.
1404
1405 2020-08-27 Pedro Alves <pedro@palves.net>
1406
1407 PR gdb/26523
1408 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1409 bp_until breakpoints user-specified locations. Update intro
1410 comment.
1411
1412 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1413
1414 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1415 gdb_bfd_sections): New.
1416 * maint.c (print_bfd_section_info): Change param type to
1417 maint_print_section_data.
1418 (print_objfile_section_info): Likewise.
1419 (print_bfd_section_info_maybe_relocated): Likewise.
1420 (maintenance_info_sections): Use gdb_bfd_sections.
1421
1422 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1423
1424 * MAINTAINERS: Add ARC target and maintainer.
1425
1426 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1427
1428 * configure.tgt: ARC support for GNU/Linux.
1429 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1430 * arc-linux-tdep.c: New file.
1431 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1432 * arc-tdep.c (arc_write_pc): Use it.
1433
1434 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1435
1436 * arc-tdep.c (arc_check_for_hardware_loop): New.
1437 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1438
1439 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1440
1441 * arc-tdep.h: Include "gdbarch.h".
1442
1443 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1444
1445 * arch/arc.h
1446 (arc_gdbarch_features): New class to stir the selection of target XML.
1447 (arc_create_target_description): Use FEATURES to choose XML target.
1448 (arc_lookup_target_description): Use arc_create_target_description
1449 to create _new_ target descriptions or return the already created
1450 ones if the FEATURES is the same.
1451 * arch/arc.c: Implementation of prototypes described above.
1452 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1453 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1454 * arc-tdep.c (*_feature_name): Make feature names consistent.
1455 (arc_register_feature): A new struct to hold information about
1456 registers of a particular target/feature.
1457 (arc_check_tdesc_feature): Check if XML provides registers in
1458 compliance with ARC_REGISTER_FEATURE structs.
1459 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1460 (determine_*_reg_feature_set): Which feature name to look for.
1461 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1462 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1463 to expected ISA enums to be used in arc_gdbarch_features structs.
1464 * features/Makefile (FEATURE_XMLFILES): Add new files.
1465 * gdb/features/arc/v1-aux.c: New file.
1466 * gdb/features/arc/v1-aux.xml: Likewise.
1467 * gdb/features/arc/v1-core.c: Likewise.
1468 * gdb/features/arc/v1-core.xml: Likewise.
1469 * gdb/features/arc/v2-aux.c: Likewise.
1470 * gdb/features/arc/v2-aux.xml: Likewise.
1471 * gdb/features/arc/v2-core.c: Likewise.
1472 * gdb/features/arc/v2-core.xml: Likewise.
1473 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1474
1475 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1476 Andrew Burgess <andrew.burgess@embecosm.com>
1477
1478 PR m2/26372
1479 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1480 an assert. Remove single element array indexing pattern as the
1481 MULTI_SUBSCRIPT support will handle this case too.
1482
1483 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1484
1485 * value.h (valprint_check_validity): Move declaration from
1486 here...
1487 * valprint.h (valprint_check_validity): ... to here.
1488
1489 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1490
1491 * debug.h: New file.
1492 * debug.c (debug_prefixed_vprintf): New function.
1493 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1494 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1495
1496 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1497
1498 * infrun.h (infrun_debug_printf_1): New function declaration.
1499 (infrun_debug_printf): New macro.
1500 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1501 throughout.
1502 (infrun_debug_printf): New function.
1503 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1504 (handle_jit_event): Likewise.
1505
1506 2020-08-21 Mark Wielaard <mark@klomp.org>
1507
1508 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1509
1510 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1511
1512 * frame.c (enum class frame_id_status): New.
1513 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1514 (fprintf_frame): Update.
1515 (compute_frame_id): Set frame id status to "computing" on entry.
1516 Set it back to "not_computed" on failure and to "computed" on
1517 success.
1518 (get_frame_id): Assert the frame id is not being computed.
1519 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1520 (create_new_frame): Likewise.
1521 (frame_cleanup_after_sniffer): Update assert.
1522
1523 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1524
1525 * regcache.c (pid_ptid_regcache_map): New type.
1526 (target_ptid_regcache_map): Remove.
1527 (target_pid_ptid_regcache_map): New type.
1528 (regcaches): Change type to target_pid_ptid_regcache_map.
1529 (get_thread_arch_aspace_regcache): Update.
1530 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1531 case.
1532 (regcaches_size): Update.
1533 (regcache_count): Update.
1534 (registers_changed_ptid_target_pid_test): New.
1535 (_initialize_regcache): Register new test.
1536
1537 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1538
1539 * regcache.c (regcache_count): New.
1540 (struct regcache_test_data): New.
1541 (regcache_test_data_up): New.
1542 (populate_regcaches_for_test): New.
1543 (regcaches_test): Remove.
1544 (get_thread_arch_aspace_regcache_test): New.
1545 (registers_changed_ptid_all_test): New.
1546 (registers_changed_ptid_target_test): New.
1547 (registers_changed_ptid_target_ptid_test): New.
1548 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1549 (_initialize_regcache): Register new tests.
1550
1551 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1552
1553 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1554 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1555 gdbarch and aspace parameter. Use current inferior's aspace.
1556 Validate regcache's arch value.
1557 (regcaches_test): Update.
1558
1559 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1560
1561 * regcache.c (regcaches_test): Call registers_changed.
1562
1563 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1564
1565 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1566
1567 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1568
1569 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1570 to find the end of prologue for flang compiled binaries.
1571 * arm-tdep.c (arm_skip_prologue): Likewise.
1572 * i386-tdep.c (i386_skip_prologue): Likewise.
1573 * producer.c (producer_is_llvm): New function.
1574 (producer_parsing_tests): Added new tests for clang/flang.
1575 * producer.h (producer_is_llvm): New declaration.
1576
1577 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1578
1579 * linux-nat.c (linux_nat_debug_printf): New function.
1580 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1581
1582 2020-08-18 Aaron Merey <amerey@redhat.com>
1583
1584 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1585 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1586 (CLIBS): Add DEBUGINFOD_LIBS.
1587
1588 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1589
1590 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1591 'gdbarch_num_regs'.
1592
1593 2020-08-17 Tom Tromey <tromey@adacore.com>
1594
1595 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1596 ada_get_decoded_value returns NULL.
1597
1598 2020-08-17 Tom Tromey <tromey@adacore.com>
1599
1600 * python/py-inferior.c (infpy_search_memory): Use
1601 gdb_py_object_from_ulongest.
1602 * python/py-infevents.c (create_inferior_call_event_object)
1603 (create_memory_changed_event_object): Use
1604 gdb_py_object_from_ulongest.
1605 * python/py-linetable.c (ltpy_entry_get_pc): Use
1606 gdb_py_object_from_ulongest.
1607
1608 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1609
1610 * loc.c (class symbol_needs_eval_context): Fix indentation.
1611
1612 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1613
1614 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1615 bool.
1616
1617 2020-08-17 Tom de Vries <tdevries@suse.de>
1618
1619 PR gdb/26393
1620 * gdbtypes.c (dump_dynamic_prop): New function.
1621 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1622
1623 2020-08-15 Tom de Vries <tdevries@suse.de>
1624
1625 PR backtrace/26390
1626 * stack.c (print_frame_args): Temporarily set the selected
1627 frame to FRAME while printing the frame's arguments.
1628
1629 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1630
1631 PR breakpoints/26385
1632 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1633 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1634
1635 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1636
1637 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1638 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1639 and >= to check return value instead of == -1 and != -1.
1640
1641 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1642
1643 * utils.h (class gdb_argv) <as_array_view>: New method.
1644 * utils.c (gdb_argv_as_array_view_test): New.
1645 (_initialize_utils): Register selftest.
1646 * maint.c (maintenance_selftest): Use the new method.
1647
1648 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1649
1650 * target.h (supports_dumpcore, dumpcore): New
1651 function declarations.
1652 * target.c (supports_dumpcore, dumpcore): New
1653 functions.
1654 * target-delegates.c: Rebuild.
1655 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1656 and target_dumpcore ().
1657
1658 2020-08-13 Aaron Merey <amerey@redhat.com>
1659
1660 * debuginfod-support.c: Replace global variables with user_data.
1661
1662 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1663
1664 * maint.c (maintenance_selftest): Split args and pass array_view
1665 to run_tests.
1666
1667 2020-08-12 Luis Machado <luis.machado@linaro.org>
1668
1669 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1670 type's length.
1671 Use %s and pulongest to print the length.
1672
1673 2020-08-12 Pedro Alves <palves@redhat.com>
1674
1675 * NEWS: Move "Multi-target debugging support" item to the
1676 "Changes since GDB 9" section.
1677
1678 2020-08-12 Pedro Alves <palves@redhat.com>
1679
1680 PR gdb/26336
1681 * progspace.c (program_space::remove_objfile): Invalidate the
1682 frame cache.
1683
1684 2020-08-11 Tom de Vries <tdevries@suse.de>
1685
1686 * MAINTAINERS: Mark ms1 as deleted.
1687
1688 2020-08-10 Luis Machado <luis.machado@linaro.org>
1689
1690 PR gdb/26310
1691
1692 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1693 act accordingly.
1694 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1695 movz/str/stur/stp skipping behavior.
1696
1697 2020-08-10 Luis Machado <luis.machado@linaro.org>
1698
1699 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1700 struct user_sve_header instead of struct sve_context.
1701
1702 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1703
1704 * read.h (dwarf2_fetch_die_loc_sect_off,
1705 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1706 `void *` parameter with function_view.
1707 * read.c (dwarf2_fetch_die_loc_sect_off,
1708 dwarf2_fetch_die_loc_cu_off): Likewise.
1709 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1710 (per_cu_dwarf_call): Adjust.
1711 (get_frame_address_in_block_wrapper): Remove.
1712 (indirect_synthetic_pointer): Adjust.
1713 (get_ax_pc): Remove.
1714 (dwarf2_compile_expr_to_ax): Adjust.
1715
1716 2020-08-08 Tom de Vries <tdevries@suse.de>
1717
1718 PR build/26344
1719 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1720 constructor.
1721 * regcache.c (get_thread_arch_aspace_regcache): Same.
1722
1723 2020-08-07 Tom Tromey <tromey@adacore.com>
1724
1725 * ravenscar-thread.c
1726 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1727 New method.
1728 (ravenscar_thread_target::wait): Check
1729 runtime_initialized.
1730 (ravenscar_thread_target::prepare_to_store)
1731 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1732 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1733 (ravenscar_thread_target::stopped_by_watchpoint)
1734 (ravenscar_thread_target::stopped_data_address)
1735 (ravenscar_thread_target::core_of_thread): Use
1736 scoped_restore_current_thread and
1737 set_base_thread_from_ravenscar_task.
1738
1739 2020-08-07 Tom Tromey <tromey@adacore.com>
1740
1741 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1742
1743 2020-08-07 Tom Tromey <tromey@adacore.com>
1744
1745 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1746 update_inferior_ptid before update_thread_list.
1747 (temporarily_change_regcache_ptid): New class.
1748 (ravenscar_thread_target::fetch_registers)
1749 (ravenscar_thread_target::store_registers)
1750 (ravenscar_thread_target::prepare_to_store): Use base thread when
1751 forwarding operation.
1752
1753 2020-08-07 Tom Tromey <tromey@adacore.com>
1754
1755 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1756 "is_pid" case.
1757
1758 2020-08-07 Tom Tromey <tromey@adacore.com>
1759
1760 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1761 New methods.
1762 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1763 first.
1764 (ravenscar_thread_target::add_thread): Rename from
1765 ravenscar_add_thread.
1766 (ravenscar_thread_target::update_thread_list): Use a lambda.
1767 (ravenscar_thread_target::xfer_partial): New method.
1768
1769 2020-08-07 Tom Tromey <tromey@adacore.com>
1770
1771 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1772 gdb::function_view.
1773 (iterate_over_live_ada_tasks): Change type of argument.
1774 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1775 of argument.
1776
1777 2020-08-07 Tom Tromey <tromey@adacore.com>
1778
1779 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1780 Remove.
1781 (ravenscar_thread_target::extra_thread_info): Remove.
1782 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1783 defer to target beneath for non-Ravenscar threads.
1784
1785 2020-08-07 Tom Tromey <tromey@adacore.com>
1786
1787 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1788 get_base_thread_from_ravenscar_task>: Now methods.
1789 <m_cpu_map>: New member.
1790 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1791 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1792 (ravenscar_thread_target::task_is_currently_active): Update.
1793 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1794 Now a method.
1795 (ravenscar_thread_target::add_active_thread): Put initial thread
1796 into the m_cpu_map.
1797
1798 2020-08-07 Tom Tromey <tromey@adacore.com>
1799
1800 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1801 event_ptid.
1802
1803 2020-08-07 Tom Tromey <tromey@adacore.com>
1804
1805 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1806 runtime_initialized.
1807
1808 2020-08-07 Tom Tromey <tromey@adacore.com>
1809
1810 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1811 add_active_thread.
1812 (ravenscar_thread_target::add_active_thread): Now public.
1813 (ravenscar_inferior_created): Call add_active_thread after pushing
1814 the target.
1815
1816 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1817
1818 * regcache.c (ptid_regcache_map): New type.
1819 (target_ptid_regcache_map): New type.
1820 (regcaches): Change type to target_ptid_regcache_map.
1821 (get_thread_arch_aspace_regcache): Update to regcaches' new
1822 type.
1823 (regcache_thread_ptid_changed): Likewise.
1824 (registers_changed_ptid): Likewise.
1825 (regcaches_size): Likewise.
1826 (regcaches_test): Update.
1827 (regcache_thread_ptid_changed): Update.
1828 * regcache.h (regcache_up): New type.
1829 * gdbsupport/ptid.h (hash_ptid): New struct.
1830
1831 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1832
1833 * observable.h (thread_ptid_changed): Add parameter
1834 `process_stratum_target *`.
1835 * infrun.c (infrun_thread_ptid_changed): Add parameter
1836 `process_stratum_target *` and use it.
1837 (selftests): New namespace.
1838 (infrun_thread_ptid_changed): New function.
1839 (_initialize_infrun): Register selftest.
1840 * regcache.c (regcache_thread_ptid_changed): Add parameter
1841 `process_stratum_target *` and use it.
1842 (regcache_thread_ptid_changed): New function.
1843 (_initialize_regcache): Register selftest.
1844 * thread.c (thread_change_ptid): Pass target to
1845 thread_ptid_changed observable.
1846
1847 2020-08-06 Caroline Tice <cmtice@google.com>
1848
1849 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1850 (struct dwp_sections): Update field comments. Add loclists and
1851 rnglists fields.
1852 (struct virtual_v2_dwo_sections): Rename struct to
1853 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1854 size & offset fields for loclists and rnglists.
1855 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1856 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1857 skipping dummy type units.
1858 (create_dwp_hash_table): Update the large comment above the function to
1859 discuss Version 5 DWP files as well, with references. Update all the
1860 version checks in the function to check for version 5 as well. Add new
1861 section at the end to create dwp hash table for version 5.
1862 (create_dwp_v2_section): Rename function to
1863 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1864 Add V5 to error message text.
1865 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1866 into calls to create_dwp_v2_or_v5_section.
1867 (create_dwo_unit_in_dwp_v5): New function.
1868 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1869 check for version2; add else clause to handle version 5.
1870 (open_and_init_dwo_file): Add code to check dwarf version & only call
1871 create_debug_types_hash_table (with sections.types) if version is not 5;
1872 else call create_debug_type_hash_table, with sections.info.
1873 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1874 version 5.
1875 (dwarf2_locate_v5_dwp_sections): New function.
1876 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1877 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1878
1879 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1880
1881 * regcache.h (class regcache): Remove friend
1882 registers_changed_ptid.
1883 <regcache_thread_ptid_changed>: Remove.
1884 <regcaches>: Remove.
1885 * regcache.c (regcache::regcaches): Rename to...
1886 (regcaches): ... this. Make static.
1887 (get_thread_arch_aspace_regcache): Update.
1888 (regcache::regcache_thread_ptid_changed): Rename to...
1889 (regcache_thread_ptid_changed): ... this. Update.
1890 (class regcache_access): Remove.
1891 (regcaches_test): Update.
1892 (_initialize_regcache): Update.
1893 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1894 <forward_list>.
1895
1896 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1897
1898 * regcache.h (class regcache) <current_regcache>: Rename to...
1899 <regcaches>: ... this. Move doc here.
1900 * regcache.c (regcache::current_regcache) Rename to...
1901 (regcache::regcaches): ... this. Move doc to header.
1902 (get_thread_arch_aspace_regcache): Update.
1903 (regcache::regcache_thread_ptid_changed): Update.
1904 (registers_changed_ptid): Update.
1905 (class regcache_access) <current_regcache_size>: Rename to...
1906 <regcaches_size>: ... this.
1907 (current_regcache_test): Rename to...
1908 (regcaches_test): ... this.
1909 (_initialize_regcache): Update.
1910
1911 2020-08-06 Victor Collod <vcollod@nvidia.com>
1912
1913 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1914
1915 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1916
1917 * corelow.c (core_target::build_file_mappings): Don't output
1918 null pathname in warning.
1919
1920 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1921
1922 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1923 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1924 gdb.dwarf2/dw2-single-line-discriminators.exp,
1925 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1926
1927 2020-08-05 Tom Tromey <tromey@adacore.com>
1928
1929 PR rust/26197:
1930 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1931 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1932 Fix off-by-one and type size errors in ordinary case.
1933
1934 2020-08-05 Tom de Vries <tdevries@suse.de>
1935
1936 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1937 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1938
1939 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1940
1941 * frame.h (frame_id_p): Return bool.
1942 (frame_id_artificial_p): Return bool.
1943 (frame_id_eq): Return bool.
1944 (has_stack_frames): Return bool.
1945 (get_selected_frame): Fix typo in comment.
1946 (get_frame_pc_if_available): Return bool.
1947 (get_frame_address_in_block_if_available): Return bool.
1948 (get_frame_func_if_available): Return bool.
1949 (read_frame_register_unsigned): Return bool.
1950 (get_frame_register_bytes): Return bool.
1951 (safe_frame_unwind_memory): Return bool.
1952 (deprecated_frame_register_read): Return bool.
1953 (frame_unwinder_is): Return bool.
1954 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1955 bool.
1956 <this_id::p>: Likewise.
1957 <prev_p>: Likewise.
1958 (frame_stash_add): Return bool.
1959 (get_frame_id): Use bool.
1960 (frame_id_build_special) Use bool.
1961 (frame_id_build_unavailable_stack): Use bool.
1962 (frame_id_build): Use bool.
1963 (frame_id_p): Return bool, use true/false instead of 1/0.
1964 (frame_id_artificial_p): Likewise.
1965 (frame_id_eq): Likewise.
1966 (frame_id_inner): Likewise.
1967 (get_frame_func_if_available): Likewise.
1968 (read_frame_register_unsigned): Likewise.
1969 (deprecated_frame_register_read): Likewise.
1970 (get_frame_register_bytes): Likewise.
1971 (has_stack_frames): Likewise.
1972 (inside_main_func): Likewise.
1973 (inside_entry_func): Likewise.
1974 (get_frame_pc_if_available): Likewise.
1975 (get_frame_address_in_block_if_available): Likewise.
1976 (frame_unwinder_is): Likewise.
1977 (safe_frame_unwind_memory): Likewise.
1978 (frame_unwind_arch): Likewise.
1979
1980 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1981
1982 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1983 type to cached_copy_status.
1984 (fprintf_frame): Adjust.
1985 (get_frame_func_if_available): Adjust.
1986 (frame_cleanup_after_sniffer): Adjust.
1987
1988 2020-08-04 Mark Wielaard <mark@klomp.org>
1989
1990 * MAINTAINERS (Write After Approval): Update email address.
1991
1992 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1993
1994 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1995 dynamic_prop::const_val.
1996
1997 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1998
1999 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2000 dynamic_prop::kind.
2001
2002 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2003
2004 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2005
2006 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2007
2008 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2009
2010 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2011 Jose E. Marchesi <jose.marchesi@oracle.com>
2012
2013 * configure.tgt: Add entry for bpf-*-*.
2014 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2015 (ALLDEPFILES): Add bpf-tdep.c.
2016 * bpf-tdep.c: New file.
2017 * MAINTAINERS: Add bpf target and maintainer.
2018 * NEWS: Mention the support for the new target.
2019
2020 2020-08-04 Tom de Vries <tdevries@suse.de>
2021
2022 PR symtab/23270
2023 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2024 Error.
2025
2026 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2027
2028 * syscalls/freebsd.xml: Regenerate.
2029
2030 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2031
2032 * syscalls/update-freebsd.sh: Fix usage and year range.
2033
2034 2020-08-03 Tom de Vries <tdevries@suse.de>
2035
2036 PR symtab/26333
2037 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2038 DW_LNE_lo_user/DW_LNE_hi_user range.
2039
2040 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2041
2042 PR ada/26318
2043 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2044 kind.
2045
2046 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2047
2048 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2049
2050 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2051
2052 * breakpoint.c (set_breakpoint_condition): Update the condition
2053 expressions after checking that the input condition string parses
2054 successfully and does not contain junk at the end.
2055
2056 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2057
2058 * breakpoint.c (set_breakpoint_condition): Update the
2059 condition string after parsing the new condition successfully.
2060
2061 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2062
2063 * proc-api.c (_STRUCTURED_PROC): Don't define.
2064 * proc-events.c: Likewise.
2065 * proc-flags.c: Likewise.
2066 * proc-why.c: Likewise.
2067 * procfs.c: Likewise.
2068
2069 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2070 * configure, config.in: Regenerate.
2071
2072 2020-07-30 Tom de Vries <tdevries@suse.de>
2073
2074 PR build/26320
2075 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2076 m_red/m_green/m_blue in a union.
2077
2078 2020-07-29 Tom de Vries <tdevries@suse.de>
2079
2080 PR tdep/26280
2081 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2082
2083 2020-07-28 Tom Tromey <tromey@adacore.com>
2084
2085 PR symtab/26270:
2086 * symtab.h (find_pc_partial_function_sym): Declare.
2087 * cli/cli-cmds.c (disassemble_command): Use
2088 find_pc_partial_function_sym. Check asm_demangle.
2089 * blockframe.c (cache_pc_function_sym): New global.
2090 (cache_pc_function_name): Remove.
2091 (clear_pc_function_cache): Update.
2092 (find_pc_partial_function_sym): New function, from
2093 find_pc_partial_function.
2094 (find_pc_partial_function): Rewrite using
2095 find_pc_partial_function_sym.
2096
2097 2020-07-28 Tom Tromey <tromey@adacore.com>
2098
2099 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2100 help. Add usage.
2101
2102 2020-07-28 Tom Tromey <tromey@adacore.com>
2103
2104 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2105 <DW_OP_GNU_variable_value>: Cast to address type.
2106
2107 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2108
2109 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2110 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2111 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2112 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2113 (nbsd_get_siginfo_type): New.
2114 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2115 (_initialize_nbsd_tdep): New.
2116
2117 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2118
2119 PR binutils/26301
2120 * configure: Regenerated.
2121
2122 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2123
2124 PR binutils/26301
2125 * configure: Regenerated.
2126
2127 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2128
2129 * python/py-frame.c: Remove 'user-regs.h' include.
2130 (frapy_read_register): Rewrite to make use of
2131 gdbpy_parse_register_id.
2132 * python/py-registers.c (gdbpy_parse_register_id): New function,
2133 moved here from python/py-unwind.c. Updated the return type, and
2134 also accepts register descriptor objects.
2135 * python/py-unwind.c: Remove 'user-regs.h' include.
2136 (pyuw_parse_register_id): Moved to python/py-registers.c.
2137 (unwind_infopy_add_saved_register): Update to use
2138 gdbpy_parse_register_id.
2139 (pending_framepy_read_register): Likewise.
2140 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2141
2142 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * python/py-registers.c: Add 'user-regs.h' include.
2145 (register_descriptor_iter_find): New function.
2146 (register_descriptor_iterator_object_methods): New static global
2147 methods array.
2148 (register_descriptor_iterator_object_type): Add pointer to methods
2149 array.
2150
2151 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2152
2153 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2154 for all architectures on FreeBSD 11.3 and later.
2155
2156 2020-07-27 Tom Tromey <tromey@adacore.com>
2157
2158 * gcore.h (load_corefile): Don't declare.
2159
2160 2020-07-27 Tom de Vries <tdevries@suse.de>
2161
2162 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2163 * config.in: Regenerate.
2164 * configure: Regenerate.
2165
2166 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2167
2168 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2169 ws2tcpip.h. When checking whether socklen_t type is defined, use
2170 ws2tcpip.h if it is available and sys/socket.h isn't.
2171 * configure: Regenerate.
2172 * config.in: Regenerate.
2173
2174 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2175
2176 PR fortran/23051
2177 PR fortran/26139
2178 * valops.c (value_ind): Pass address to
2179 readjust_indirect_value_type.
2180 * value.c (readjust_indirect_value_type): Make parameter
2181 non-const, and add extra address parameter. Resolve original type
2182 before using it.
2183 * value.h (readjust_indirect_value_type): Update function
2184 signature and comment.
2185
2186 2020-07-25 Tom de Vries <tdevries@suse.de>
2187
2188 PR symtab/26243
2189 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2190 entries.
2191
2192 2020-07-24 Aaron Merey <amerey@redhat.com>
2193
2194 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2195 * configure: Rebuild.
2196
2197 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2198
2199 PR corefiles/26294
2200 * corelow.c (_initialize_corelow): Add period to help text
2201 for "maintenance print core-file-backed-mappings".
2202
2203 2020-07-23 Pedro Alves <pedro@palves.net>
2204
2205 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2206 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2207 meanwhile.
2208 * frame.c (frame_cache_generation, get_frame_cache_generation):
2209 New.
2210 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2211 (get_prev_frame_if_no_cycle): On exception, don't touch
2212 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2213 * frame.h (get_frame_cache_generation): Declare.
2214
2215 2020-07-23 Tom de Vries <tdevries@suse.de>
2216
2217 PR tui/26282
2218 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2219 New default constructor.
2220
2221 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2222
2223 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2224 exclude non-statement entries.
2225
2226 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2227
2228 * NEWS (New commands): Mention new command
2229 "maintenance print core-file-backed-mappings".
2230
2231 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2232
2233 * corelow.c (gdbcmd.h): Include.
2234 (core_target::info_proc_mappings): New method.
2235 (get_current_core_target): New function.
2236 (maintenance_print_core_file_backed_mappings): New function.
2237 (_initialize_corelow): Add core-file-backed-mappings to
2238 "maint print" commands.
2239
2240 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2241
2242 * linux-tdep.c (dump_note_entry_p): New function.
2243 (linux_dump_mapping_p_ftype): New typedef.
2244 (linux_find_memory_regions_full): Add new parameter,
2245 should_dump_mapping_p.
2246 (linux_find_memory_regions): Adjust call to
2247 linux_find_memory_regions_full.
2248 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2249 call to linux_find_memory_regions_full.
2250
2251 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2252
2253 * corelow.c (solist.h, unordered_map): Include.
2254 (class core_target): Add field m_core_file_mappings and
2255 method build_file_mappings.
2256 (core_target::core_target): Call build_file_mappings.
2257 (core_target::~core_target): Free memory associated with
2258 m_core_file_mappings.
2259 (core_target::build_file_mappings): New method.
2260 (core_target::xfer_partial): Use m_core_file_mappings
2261 for memory transfers.
2262 * linux-tdep.c (linux_read_core_file_mappings): New
2263 function.
2264 (linux_core_info_proc_mappings): Rewrite to use
2265 linux_read_core_file_mappings.
2266 (linux_init_abi): Register linux_read_core_file_mappings.
2267
2268 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2269
2270 * arch-utils.c (default_read_core_file_mappings): New function.
2271 * arch-utils.c (default_read_core_file_mappings): Declare.
2272 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2273 * gdbarch.h, gdbarch.c: Regenerate.
2274
2275 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2276
2277 PR corefiles/25631
2278 * corelow.c (core_target:xfer_partial): Revise
2279 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2280 case after first checking the stratum beneath the core
2281 target.
2282 (has_all_memory): Return true.
2283 * target.c (raw_memory_xfer_partial): Revise comment
2284 regarding use of has_all_memory.
2285
2286 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2287
2288 * exec.h (section_table_xfer_memory): Revise declaration,
2289 replacing section name parameter with an optional callback
2290 predicate.
2291 * exec.c (section_table_xfer_memory): Likewise.
2292 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2293 of section_table_xfer_memory.
2294
2295 2020-07-22 Tom Tromey <tromey@adacore.com>
2296
2297 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2298 lookup_symbol_search_name.
2299
2300 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2301
2302 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2303 redundant local variable.
2304 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2305 reference, not pointer, update code accordingly.
2306
2307 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2308 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2309
2310 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2311 * jit.c (jit_breakpoint_re_set_internal): Use the
2312 `skip_jit_symbol_lookup` field.
2313
2314 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2315 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2316
2317 * jit.c (jit_read_descriptor): Define the descriptor address once,
2318 use twice.
2319 (jit_breakpoint_deleted): Move the declaration of the loop variable
2320 `iter` into the loop header.
2321 (jit_breakpoint_re_set_internal): Move the declaration of the local
2322 variable `objf_data` to the first point of definition.
2323 (jit_event_handler): Move the declaration of local variables
2324 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2325 Rename `objf` to `jited`.
2326
2327 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2328
2329 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2330 Remove.
2331 * jit.c (get_jiter_objfile_data): Update.
2332
2333 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2334 Simon Marchi <simon.marchi@polymtl.ca>
2335
2336 * jit.c (struct jit_program_space_data): Remove.
2337 (jit_program_space_key): Remove.
2338 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2339 stuff.
2340 (get_jit_program_space_data): Remove.
2341 (jit_breakpoint_deleted): Iterate on all of the program space's
2342 objfiles.
2343 (jit_inferior_init): Likewise.
2344 (jit_breakpoint_re_set_internal): Likewise. Also change return
2345 type to void.
2346 (jit_breakpoint_re_set): Pass current_program_space to
2347 jit_breakpoint_re_set_internal.
2348
2349 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2350
2351 * jit.h (struct jiter_objfile_data) <cached_code_address,
2352 jit_breakpoint>: Move to here from ...
2353 * jit.c (jit_program_space_data): ... here.
2354 (jiter_objfile_data::~jiter_objfile_data): Update.
2355 (jit_breakpoint_deleted): Update.
2356 (jit_breakpoint_re_set_internal): Update.
2357
2358 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2359
2360 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2361 checks.
2362 (jit_read_descriptor): Remove NULL check.
2363 (jit_event_handler): Add an assertion.
2364
2365 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2366
2367 * jit.h (struct jit_objfile_data): Split into...
2368 (struct jiter_objfile_data): ... this ...
2369 (struct jited_objfile_data): ... and this.
2370 * objfiles.h (struct objfile) <jit_data>: Remove.
2371 <jiter_data, jited_data>: New fields.
2372 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2373 (jiter_objfile_data::~jiter_objfile_data): ... this.
2374 (get_jit_objfile_data): Rename to ...
2375 (get_jiter_objfile_data): ... this.
2376 (add_objfile_entry): Update.
2377 (jit_read_descriptor): Use get_jiter_objfile_data.
2378 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2379 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2380 (jit_inferior_exit_hook): Use objfile's jited_data field.
2381
2382 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2383
2384 * jit.h: Forward-declare `struct minimal_symbol`.
2385 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2386 constructor, destructor, and an objfile* field.
2387 * jit.c (jit_objfile_data): Remove.
2388 (struct jit_objfile_data): Migrate from here to jit.h.
2389 (jit_objfile_data::~jit_objfile_data): New destructor
2390 implementation with code moved from free_objfile_data.
2391 (free_objfile_data): Delete.
2392 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2393 (jit_find_objf_with_entry_addr): Ditto.
2394 (jit_inferior_exit_hook): Ditto.
2395 (_initialize_jit): Remove the call to
2396 register_objfile_data_with_cleanup.
2397 * objfiles.h (struct objfile) <jit_data>: New field.
2398
2399 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2400
2401 * jit.h: Forward-declare `struct objfile`.
2402 (jit_event_handler): Add a second parameter, the JITer objfile.
2403 * jit.c (jit_read_descriptor): Change the signature to take the
2404 JITer objfile as an argument instead of the jit_program_space_data.
2405 (jit_inferior_init): Update the call to jit_read_descriptor.
2406 (jit_event_handler): Use the new JITer objfile argument when calling
2407 jit_read_descriptor.
2408 * breakpoint.c (handle_jit_event): Update the call to
2409 jit_event_handler to pass the JITer objfile.
2410
2411 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2412
2413 * gdbarch.c: Regenerate.
2414 * gdbarch.h: Regenerate.
2415 * gdbarch.sh (handle_segmentation_fault): Remove method.
2416 * infrun.c (handle_segmentation_fault): Remove.
2417 (print_signal_received_reason): Remove call to
2418 handle_segmentation_fault.
2419
2420 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2421
2422 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2423 Rename to sparc64_linux_report_signal_info and add siggnal
2424 argument.
2425 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2426 instead of sparc64_linux_handle_segmentation_fault.
2427
2428 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2429
2430 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2431 i386_linux_report_signal_info instead of
2432 i386_linux_handle_segmentation_fault.
2433 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2434 to i386_linux_report_signal_info and add siggnal argument.
2435 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2436 of i386_linux_handle_segmentation_fault.
2437 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2438 to i386_linux_report_signal_info and add siggnal argument.
2439
2440 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2441
2442 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2443 hook if present.
2444
2445 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2446
2447 * gdbarch.c: Regenerate.
2448 * gdbarch.h: Regenerate.
2449 * gdbarch.sh (report_signal_info): New method.
2450 * infrun.c (print_signal_received_reason): Invoke gdbarch
2451 report_signal_info hook if present.
2452
2453 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2454
2455 * python/py-registers.c : Add 'unordered_map' include.
2456 (gdbpy_new_reggroup): Renamed to...
2457 (gdbpy_get_reggroup): ...this. Update to only create register
2458 group descriptors when needed.
2459 (gdbpy_reggroup_iter_next): Update.
2460
2461 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2462
2463 * python/py-registers.c (gdbpy_register_object_data): New static
2464 global.
2465 (gdbpy_register_object_data_init): New function.
2466 (gdbpy_new_register_descriptor): Renamed to...
2467 (gdbpy_get_register_descriptor): ...this, and update to reuse
2468 existing register descriptors where possible.
2469 (gdbpy_register_descriptor_iter_next): Update.
2470 (gdbpy_initialize_registers): Register new gdbarch data.
2471
2472 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2473
2474 * linux-nat.c (stopped_pids): Make static.
2475
2476 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2477
2478 PR ada/26235
2479 * gdbtypes.c (ada_discrete_type_low_bound,
2480 ada_discrete_type_high_bound): Handle undefined bounds.
2481
2482 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2483
2484 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2485 declaration.
2486 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2487 function.
2488
2489 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2490
2491 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2492 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2493 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2494 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2495 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2496 method.
2497
2498 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2499
2500 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2501 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2502 which are deprecated in Guile 3.0.
2503 * configure.ac (try_guile_versions): Add "guile-3.0".
2504 * configure (try_guile_versions): Regenerate.
2505 * NEWS: Update entry.
2506
2507 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2508 Doug Evans <dje@google.com>
2509
2510 PR gdb/21104
2511 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2512 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2513 USING_GUILE_BEFORE_2_2.
2514 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2515 Change type to 'scm_t_port_type *'.
2516 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2517 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2518 parameter and honor it. Update callers.
2519 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2520 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2521 functions.
2522 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2523 USING_GUILE_BEFORE_2_2.
2524 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2525 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2526 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2527 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2528 and 'SCM_PORT_TYPE'.
2529 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2530 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2531 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2532 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2533 [!USING_GUILE_BEFORE_2_2]: New functions.
2534 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2535 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2536 'gdbscm_memory_port_read'.
2537 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2538 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2539 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2540 function.
2541 (ioscm_init_memory_port): Remove.
2542 (ioscm_init_memory_port_stream): New function
2543 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2544 function.
2545 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2546 Return scm_from_uint (0).
2547 (gdbscm_set_memory_port_read_buffer_size_x)
2548 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2549 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2550 Return scm_from_uint (0).
2551 (gdbscm_set_memory_port_write_buffer_size_x)
2552 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2553 * configure.ac (try_guile_versions): Add "guile-2.2".
2554 * configure: Regenerate.
2555 * NEWS: Add entry.
2556
2557 2020-07-18 Tom Tromey <tom@tromey.com>
2558
2559 * linux-nat.c (linux_multi_process): Remove.
2560 (linux_nat_target::supports_multi_process): Return true.
2561
2562 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2563
2564 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2565 (riscv_lookup_target_description): Return pointer out of
2566 unique_ptr.
2567 * target-descriptions.c (allocate_target_description): Add
2568 comment.
2569 (target_desc_deleter::operator()): Likewise.
2570 * target-descriptions.h (struct target_desc_deleter): Moved to
2571 gdbsupport/tdesc.h.
2572 (target_desc_up): Likewise.
2573
2574 2020-07-17 Tom Tromey <tromey@adacore.com>
2575
2576 * linux-nat.c (linux_nat_target::supports_non_stop)
2577 (linux_nat_target::always_non_stop_p): Use "true".
2578 (linux_nat_target::supports_disable_randomization): Use "true" and
2579 "false".
2580
2581 2020-07-16 Caroline Tice <cmtice@google.com>
2582
2583 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2584 (RNGLIST_HEADER_SIZE64): New constant definition.
2585 (struct dwop_section_names): Add rnglists_dwo.
2586 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2587 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2588 (struct dwo_sections): Add rnglists field.
2589 (read_attribut_reprocess): Add tag parameter.
2590 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2591 (cu_debug_rnglists_section): New function (decl & definition).
2592 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2593 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2594 die whose range is being checked; get rnglist section from
2595 cu_debug_rnglists_section, to get from either objfile or dwo file as
2596 appropriate. Add cases for DW_RLE_base_addressx,
2597 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2598 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2599 test inside if-condition and updating complaint message.
2600 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2601 dwarf2_rnglists_process.
2602 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2603 dwarf2_ranges_process.
2604 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2605 need_ranges_base and update comment appropriately. Also pass die tag
2606 to dwarf2_ranges_read.
2607 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2608 need_ranges_base and update comment appropriately. Also pass die tag
2609 to dwarf2_ranges_process.
2610 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2611 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2612 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2613 need_ranges_base and update comment appropriately. Also pass die tag
2614 to read_attribute_reprocess and dwarf2_ranges_read.
2615 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2616 and update function comment appropriately.
2617 (read_loclist_index): Call read_loclists_rnglists_header instead of
2618 read_loclist_header.
2619 (read_rnglist_index): New function.
2620 (read_attribute_reprocess): Add tag parameter. Add code for
2621 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2622 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2623
2624 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2625
2626 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2627 being resolved.
2628
2629 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 * arch-utils.c (show_architecture): Update formatting of messages.
2632
2633 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2634
2635 * gdbtypes.h (struct type) <bounds>: Handle array and string
2636 types.
2637 * ada-lang.c (assign_aggregate): Use type::bounds on
2638 array/string type.
2639 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2640 * c-varobj.c (c_number_of_children): Likewise.
2641 (c_describe_child): Likewise.
2642 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2643 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2644 (f_type_print_base): Likewise.
2645 * f-valprint.c (f77_array_offset_tbl): Likewise.
2646 (f77_get_upperbound): Likewise.
2647 (f77_print_array_1): Likewise.
2648 * guile/scm-type.c (gdbscm_type_range): Likewise.
2649 * m2-typeprint.c (m2_array): Likewise.
2650 (m2_is_long_set_of_type): Likewise.
2651 * m2-valprint.c (get_long_set_bounds): Likewise.
2652 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2653 * python/py-type.c (typy_range): Likewise.
2654 * rust-lang.c (rust_internal_print_type): Likewise.
2655 * type-stack.c (type_stack::follow_types): Likewise.
2656 * valarith.c (value_subscripted_rvalue): Likewise.
2657 * valops.c (value_cast): Likewise.
2658
2659 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2660
2661 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2662 callers to use the equivalent accessor methods.
2663
2664 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2665
2666 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2667 (struct type) <bit_stride>: New method.
2668 (TYPE_BIT_STRIDE): Remove.
2669 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2670
2671 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2672
2673 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2674 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2675 callers to use the equivalent accessor methods instead.
2676
2677 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2678
2679 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2680 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2681 callers to use the equivalent accessor methods instead.
2682
2683 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2684
2685 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2686 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2687 to use dynamic_prop::kind.
2688
2689 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2690
2691 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2692 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2693 to get the bound property's kind and check against
2694 PROP_UNDEFINED.
2695
2696 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2697
2698 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2699 all callers to use type::range_bounds followed by
2700 dynamic_prop::{low,high}.
2701
2702 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2703
2704 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2705 const_val, set_const_val, baton, set_locexpr, set_loclist,
2706 set_addr_offset, variant_parts, set_variant_parts,
2707 original_type, set_original_type>: New methods.
2708 <kind>: Rename to...
2709 <m_kind>: ... this. Update all users to use the new methods
2710 instead.
2711 <data>: Rename to...
2712 <m_data>: ... this. Update all users to use the new methods
2713 instead.
2714
2715 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2716
2717 * gdbtypes.c (get_discrete_bounds): Return failure if
2718 the range type's bounds are not both defined and constant
2719 values.
2720 (get_array_bounds): Update comment. Remove undefined bound check.
2721
2722 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2723
2724 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2725 the type::bounds method directly.
2726
2727 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2728
2729 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2730 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2731 are used to set the range type's bounds to use set_bounds.
2732
2733 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2734
2735 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2736
2737 2020-07-10 Pedro Alves <pedro@palves.net>
2738
2739 * gdbthread.h (inferior_ref): Define.
2740 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2741 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2742 * thread.c
2743 (scoped_restore_current_thread::restore):
2744 Adjust to gdb::ref_ptr.
2745 (scoped_restore_current_thread::~scoped_restore_current_thread):
2746 Remove manual decref handling.
2747 (scoped_restore_current_thread::scoped_restore_current_thread):
2748 Adjust to use
2749 inferior_ref::new_reference/thread_info_ref::new_reference.
2750 Incref the thread before calling get_frame_id instead of after.
2751 Let TARGET_CLOSE_ERROR propagate.
2752
2753 2020-07-10 Pedro Alves <pedro@palves.net>
2754
2755 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2756 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2757 NOT_AVAILABLE_ERROR.
2758 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2759 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2760
2761 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2762 Pedro Alves <pedro@palves.net>
2763
2764 PR gdb/26199
2765 * infrun.c (threads_are_resumed_pending_p): Delete.
2766 (do_target_wait): Remove threads_are_executing and
2767 threads_are_resumed_pending_p checks from the inferior_matches
2768 lambda. Update comments.
2769
2770 2020-07-10 Pedro Alves <pedro@palves.net>
2771
2772 PR gdb/26199
2773 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2774 executing threads.
2775
2776 2020-07-10 Pedro Alves <pedro@palves.net>
2777
2778 PR gdb/26199
2779 * infrun.c (handle_no_resumed): Handle multiple targets.
2780
2781 2020-07-10 Pedro Alves <pedro@palves.net>
2782
2783 PR gdb/26199
2784 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2785 target_is_async_p.
2786
2787 2020-07-10 Pedro Alves <pedro@palves.net>
2788
2789 PR gdb/26199
2790 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2791 threads, not all threads.
2792
2793 2020-07-10 Pedro Alves <pedro@palves.net>
2794
2795 PR gdb/26199
2796 * remote.c (remote_target::open_1): Pass remote target pointer as
2797 data to create_async_event_handler.
2798 (remote_async_inferior_event_handler): Mark async event handler
2799 before returning if the remote target still has either pending
2800 events or unacknowledged notifications.
2801
2802 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2803
2804 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2805 declaration.
2806 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2807 function.
2808
2809 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2810
2811 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2812 inferior_ptid.
2813
2814 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2815
2816 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2817 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2818 AT_FREEBSD_PS_STRINGS.
2819
2820 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2821
2822 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2823 of debugfile path on Windows.
2824
2825 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2826
2827 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2828 argument to 'data'.
2829
2830 2020-07-08 Tom Tromey <tromey@adacore.com>
2831
2832 * ada-lang.c (ada_exception_message_1): Use read_memory.
2833
2834 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2835
2836 PR python/22748
2837 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2838 special handling for inline frames.
2839 * findvar.c (value_of_register_lazy): Skip inline frames when
2840 creating lazy register values.
2841 * frame.c (frame_id_computed_p): Delete definition.
2842 * frame.h (frame_id_computed_p): Delete declaration.
2843
2844 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2845
2846 * NEWS: Mention additions to Python API.
2847 * python/py-arch.c (archpy_register_groups): New function.
2848 (arch_object_methods): Add 'register_groups' method.
2849 * python/py-registers.c (reggroup_iterator_object): New struct.
2850 (reggroup_object): New struct.
2851 (gdbpy_new_reggroup): New function.
2852 (gdbpy_reggroup_to_string): New function.
2853 (gdbpy_reggroup_name): New function.
2854 (gdbpy_reggroup_iter): New function.
2855 (gdbpy_reggroup_iter_next): New function.
2856 (gdbpy_new_reggroup_iterator): New function
2857 (gdbpy_initialize_registers): Register new types.
2858 (reggroup_iterator_object_type): Define new Python type.
2859 (gdbpy_reggroup_getset): New static global.
2860 (reggroup_object_type): Define new Python type.
2861 * python/python-internal.h
2862
2863 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2864
2865 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2866 * python/py-arch.c (archpy_registers): New function.
2867 (arch_object_methods): Add 'registers' method.
2868 * python/py-registers.c: New file.
2869 * python/python-internal.h
2870 (gdbpy_new_register_descriptor_iterator): Declare.
2871 (gdbpy_initialize_registers): Declare.
2872 * python/python.c (do_start_initialization): Call
2873 gdbpy_initialize_registers.
2874 * NEWS: Mention additions to the Python API.
2875
2876 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2877
2878 * NEWS: Mention new Python API method.
2879 * python/py-unwind.c (pending_framepy_architecture): New function.
2880 (pending_frame_object_methods): Add architecture method.
2881
2882 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2883
2884 * gdbarch.c: Regenerate.
2885 * gdbarch.h: Regenerate.
2886 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2887 (gdbarch_data): Use internal_error for the case where
2888 deprecated_set_gdbarch_data was originally needed.
2889 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2890 and use passed in obstack.
2891 (libunwind_frame_set_descr): Should no longer get back NULL from
2892 gdbarch_data.
2893 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2894 type.
2895 * user-regs.c (user_regs_init): Update parameters, and use passed
2896 in obstack.
2897 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2898 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2899
2900 2020-07-06 Tom de Vries <tdevries@suse.de>
2901
2902 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2903 End-Of-Sequence in lte_is_less_than.
2904 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2905 "gdb: Don't reorder line table entries too much when sorting".
2906
2907 2020-07-06 Tom de Vries <tdevries@suse.de>
2908
2909 PR tui/26205
2910 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2911
2912 2020-07-05 Tom de Vries <tdevries@suse.de>
2913
2914 PR build/26187
2915 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2916 std::uncaught_exceptions instead of deprecated
2917 std::uncaught_exception.
2918
2919 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2920
2921 * macroexp.h (macro_stringify): Return
2922 gdb::unique_xmalloc_ptr<char>.
2923 * macroexp.c (macro_stringify): Likewise.
2924 * macrotab.c (fixup_definition): Update.
2925
2926 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2927
2928 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2929 (lex_one_token): Update.
2930 * macroexp.c (struct macro_buffer) <release>: Return
2931 gdb::unique_xmalloc_ptr<char>.
2932 (macro_stringify): Update.
2933 (macro_expand): Update.
2934 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2935 * macroexp.h (macro_expand_next): Likewise.
2936
2937 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2938
2939 * macroexp.h (macro_lookup_ftype): Remove.
2940 (macro_expand, macro_expand_once, macro_expand_next): Remove
2941 lookup function parameters, add scope parameter.
2942 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2943 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2944 * macroscope.h (standard_macro_lookup): Change parameter type
2945 to macro_scope.
2946 * macroscope.c (standard_macro_lookup): Likewise.
2947 * c-exp.y (lex_one_token): Update.
2948 * macrocmd.c (macro_expand_command): Likewise.
2949 (macro_expand_once_command): Likewise.
2950
2951 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2952
2953 * inf-loop.c (inferior_event_handler): Remove client_data param.
2954 * inf-loop.h (inferior_event_handler): Likewise.
2955 * infcmd.c (step_1): Adjust.
2956 * infrun.c (proceed): Adjust.
2957 (fetch_inferior_event): Remove client_data param.
2958 (infrun_async_inferior_event_handler): Adjust.
2959 * infrun.h (fetch_inferior_event): Remove `void *` param.
2960 * linux-nat.c (handle_target_event): Adjust.
2961 * record-btrace.c (record_btrace_handle_async_inferior_event):
2962 Adjust.
2963 * record-full.c (record_full_async_inferior_event_handler):
2964 Adjust.
2965 * remote.c (remote_async_inferior_event_handler): Adjust.
2966
2967 2020-07-01 Tom Tromey <tom@tromey.com>
2968
2969 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2970 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2971
2972 2020-07-01 Tom Tromey <tom@tromey.com>
2973
2974 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2975 tui_gen_win_info.
2976 (tui_win_info::make_window): Merge with
2977 tui_gen_win_info::make_window.
2978 (tui_win_info::make_visible): Move from tui_gen_win_info.
2979 * tui/tui-win.c (tui_win_info::max_width): Move from
2980 tui_gen_win_info.
2981 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2982 type.
2983 <window_factory>: Likewise.
2984 * tui/tui-layout.c (tui_win_info::resize): Move from
2985 tui_gen_win_info.
2986 (make_standard_window): Change return type.
2987 (get_locator_window, tui_get_window_by_name): Likewise.
2988 (tui_layout_window::apply): Remove a cast.
2989 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2990 (struct tui_win_info): Merge with tui_gen_win_info.
2991 (struct tui_gen_win_info): Remove.
2992
2993 2020-07-01 Tom Tromey <tom@tromey.com>
2994
2995 * tui/tui-stack.h (struct tui_locator_window): Derive from
2996 tui_win_info.
2997 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2998 <can_box>: New method.
2999
3000 2020-07-01 Tom Tromey <tom@tromey.com>
3001
3002 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3003
3004 2020-07-01 Tom Tromey <tom@tromey.com>
3005
3006 * tui/tui-regs.c (tui_data_window::display_registers_from)
3007 (tui_data_window::display_registers_from)
3008 (tui_data_window::first_data_item_displayed)
3009 (tui_data_window::delete_data_content_windows): Update.
3010 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3011 Remove.
3012 (tui_data_window::check_register_values): Update.
3013 (tui_data_item_window::rerender): Add parameters. Update.
3014 (tui_data_item_window::refresh_window): Remove.
3015 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3016 virtual.
3017 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3018 tui_gen_win_info.
3019 <refresh_window, max_height, min_height>: Remove.
3020 <rerender>: Add parameters.
3021 <x, y, visible>: New members.
3022 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3023 <m_item_width>: New member.
3024
3025 2020-07-01 Tom Tromey <tom@tromey.com>
3026
3027 * tui/tui-regs.c (tui_data_window::show_register_group)
3028 (tui_data_window::check_register_values): Update.
3029 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3030 from item_no.
3031
3032 2020-07-01 Tom Tromey <tom@tromey.com>
3033
3034 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3035 useless "if".
3036
3037 2020-07-01 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3040 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3041
3042 2020-07-01 Tom Tromey <tom@tromey.com>
3043
3044 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3045 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3046 (struct tui_line_or_address): Move from tui-data.h.
3047 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3048 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3049 (tui_cmd_window, tui_source_window_base, tui_source_window)
3050 (tui_disasm_window): Don't declare.
3051 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3052 to tui-winsource.h.
3053 (SINGLE_KEY): Move to tui-stack.c.
3054
3055 2020-07-01 Tom Tromey <tom@tromey.com>
3056
3057 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3058 std::string.
3059 * tui/tui-regs.c (class tab_expansion_file): New.
3060 (tab_expansion_file::write): New method.
3061 (tui_register_format): Change return type. Use
3062 tab_expansion_file.
3063 (tui_get_register, tui_data_window::display_registers_from)
3064 (tui_data_item_window::rerender): Update.
3065 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3066 * tui/tui-io.c (tui_expand_tabs): Remove.
3067
3068 2020-07-01 Tom Tromey <tom@tromey.com>
3069
3070 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3071
3072 2020-07-01 Fangrui Song <maskray@google.com>
3073
3074 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3075
3076 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3077
3078 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3079 forms for DW_AT_associated and DW_AT_allocated attributes,
3080 which is already checked in function attr_to_dynamic_prop.
3081
3082 2020-06-30 Tom Tromey <tromey@adacore.com>
3083
3084 * dwarf2/read.c (quirk_rust_enum): Correctly call
3085 alloc_rust_variant for default-less enum.
3086
3087 2020-06-30 Tom Tromey <tromey@adacore.com>
3088
3089 PR build/26183:
3090 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3091 gdb::to_string.
3092
3093 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3094
3095 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3096 * gdbarch.h: Re-generate.
3097
3098 2020-06-28 Tom Tromey <tom@tromey.com>
3099
3100 * command.h (cmd_types): Remove.
3101 (cmd_type): Don't declare.
3102 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3103 typedef.
3104 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3105 * cli/cli-decode.c (cmd_type): Remove.
3106
3107 2020-06-27 Pedro Alves <palves@redhat.com>
3108
3109 * fork-child.c (prefork_hook): Adjust.
3110 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3111 Delete.
3112 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3113 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3114 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3115 Remove declarations.
3116 (struct inferior) <set_tty, tty>: New methods.
3117 (struct inferior) <terminal>: Rename to ...
3118 (struct inferior) <m_terminal>: ... this and make private.
3119 * main.c (captured_main_1): Adjust.
3120 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3121 (mi_cmd_inferior_tty_show): Adjust.
3122 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3123 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3124
3125 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3126
3127 * configure.ac: Add --enable-libctf: handle --disable-static
3128 properly.
3129 * acinclude.m4: sinclude ../config/enable.m4.
3130 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3131 (LIBCTF): Substitute in.
3132 (CTF_DEPS): New, likewise.
3133 (CLIBS): libctf needs symbols from libbfd: move earlier.
3134 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3135 flags.
3136 * ctfread.c: Surround in ENABLE_LIBCTF.
3137 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3138 * configure: Regenerate.
3139 * config.in: Likewise.
3140
3141 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3142
3143 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3144
3145 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3146
3147 * inferior.h (struct inferior) <terminal>: Change type to
3148 gdb::unique_xmalloc_ptr<char>.
3149 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3150 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3151 field, adjust to unique pointer.
3152 (get_inferior_io_terminal): Adjust to unique pointer.
3153
3154 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3155
3156 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3157 registers, not just the known core set of registers.
3158
3159 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3160
3161 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3162 fflags, frm, and fcsr registers.
3163 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3164 restore groups.
3165 (riscv_tdesc_unknown_reg): New function.
3166 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3167 tdesc_use_registers.
3168 * riscv-tdep.h (struct gdbarch_tdep): Add
3169 unknown_csrs_first_regnum, unknown_csrs_count,
3170 duplicate_fflags_regnum, duplicate_frm_regnum, and
3171 duplicate_fcsr_regnum fields.
3172
3173 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3174
3175 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3176 callback, use the callback (when not null) to help number unknown
3177 registers.
3178 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3179 (tdesc_use_registers): Add extra parameter to declaration.
3180
3181 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3182
3183 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3184 in the file.
3185 (class riscv_pending_register_alias): Likewise.
3186 (riscv_register_feature::register_info): Change 'required_p' field
3187 to 'required', and change its type. Add 'check' member function.
3188 (riscv_register_feature::register_info::check): Define new member
3189 function.
3190 (riscv_xreg_feature): Change initialisation of 'required' field.
3191 (riscv_freg_feature): Likewise.
3192 (riscv_virtual_feature): Likewise.
3193 (riscv_csr_feature): Likewise.
3194 (riscv_check_tdesc_feature): Take extra parameter, the csr
3195 tdesc_feature, rewrite the function to use the new
3196 riscv_register_feature::register_info::check function.
3197 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3198
3199 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3200
3201 * features/Makefile: Remove all references to the deleted files
3202 below.
3203 * features/riscv/32bit-csr.c: Deleted.
3204 * features/riscv/32bit-csr.xml: Deleted.
3205 * features/riscv/64bit-csr.c: Deleted.
3206 * features/riscv/64bit-csr.xml: Deleted.
3207 * features/riscv/rebuild-csr-xml.sh: Deleted.
3208
3209 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3210
3211 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3212 whitespace error for declaration of names member variable.
3213 (struct riscv_register_feature): Add new prefer_first_name member
3214 variable, and fix whitespace error in declaration of registers.
3215 (riscv_xreg_feature): Initialize prefer_first_name field.
3216 (riscv_freg_feature): Likewise.
3217 (riscv_virtual_feature): Likewise.
3218 (riscv_csr_feature): Likewise.
3219 (riscv_register_name): Expand on comments. Remove register name
3220 modifications for CSR and virtual registers.
3221
3222 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3223
3224 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3225 errors.
3226
3227 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3228
3229 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3230 riscv-opc.h.
3231 (class riscv_pending_register_alias): New class.
3232 (riscv_check_tdesc_feature): Take vector of pending aliases and
3233 populate it as appropriate.
3234 (riscv_setup_register_aliases): Delete.
3235 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3236 to riscv_check_tdesc_feature in all cases. Use the vector to
3237 create the register aliases.
3238
3239 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3240
3241 * sol2-tdep.c (sol2_static_transform_name): Remove.
3242 (sol2_init_abi): Don't register it.
3243 * gdbarch.sh (static_transform_name): Remove.
3244 * gdbarch.c, gdbarch.h: Regenerate.
3245
3246 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3247 gdbarch_static_transform_name.
3248 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3249 * stabsread.c (define_symbol) <'X'>: Remove.
3250 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3251 handling.
3252 <'V'>: Likewise.
3253 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3254 <'S'>: Remove call to gdbarch_static_transform_name.
3255
3256 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3257
3258 * procfs.c (procfs_pre_trace): New function.
3259 (procfs_target::create_inferior): Pass it to fork_inferior.
3260
3261 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3262
3263 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3264 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3265 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3266 sol2-tdep.o, sparc-sol2-tdep.o.
3267 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3268 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3269 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3270 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3271
3272 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3273
3274 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3275 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3276 Call sol2_init_abi.
3277 Remove calls to set_gdbarch_skip_solib_resolver,
3278 set_gdbarch_core_pid_to_str.
3279 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3280 (i386_sol2_static_transform_name): Remove.
3281 (i386_sol2_init_abi): Call sol2_init_abi.
3282 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3283 set_gdbarch_static_transform_name,
3284 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3285 Use sol2_sigtramp_p.
3286 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3287 (sol2_sigtramp_p): New function.
3288 (sol2_static_transform_name): New function.
3289 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3290 (sol2_init_abi): New function.
3291 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3292 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3293 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3294 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3295 (sparc_sol2_static_transform_name): Remove.
3296 (sparc32_sol2_init_abi): Call sol2_init_abi.
3297 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3298 set_gdbarch_static_transform_name,
3299 set_gdbarch_skip_solib_resolver,
3300 set_gdbarch_core_pid_to_str.
3301 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3302 (sparc_sol2_static_transform_name): Remove
3303 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3304 call sol2_sigtramp_p.
3305 (sparc64_sol2_init_abi): Call sol2_init_abi.
3306 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3307 set_gdbarch_static_transform_name,
3308 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3309
3310 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3311
3312 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3313 * exec.c (validate_exec_file): If from_tty, set both
3314 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3315 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3316 and from_tty, unconditionally ask a confirmation.
3317
3318 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3319
3320 * target-descriptions.c (tdesc_architecture_name): Protect against
3321 NULL pointer dereference.
3322 (maint_print_xml_tdesc_cmd): New function.
3323 (_initialize_target_descriptions): Register new 'maint print
3324 xml-tdesc' command and give it the filename completer.
3325 * NEWS: Mention new 'maint print xml-tdesc' command.
3326
3327 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 * target-descriptions.c (class tdesc_compatible_info): New class.
3330 (struct target_desc): Change type of compatible vector.
3331 (tdesc_compatible_p): Update for change in type of
3332 target_desc::compatible.
3333 (tdesc_compatible_info_list): New function.
3334 (tdesc_compatible_info_arch_name): New function.
3335 (tdesc_add_compatible): Update for change in type of
3336 target_desc::compatible.
3337 (print_c_tdesc::visit_pre): Likewise.
3338
3339 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3340
3341 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3342 whitespace to underscore.
3343 (maint_print_c_tdesc_cmd): Use fake filename for target
3344 descriptions that came from the target.
3345 (_initialize_target_descriptions): Add filename command completion
3346 for 'maint print c-tdesc'.
3347
3348 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3349
3350 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3351 lines.
3352
3353 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3354
3355 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3356 lines.
3357 (dwarf2_find_location_expression): Likewise.
3358 (call_site_parameter_matches): Likewise.
3359 (dwarf2_compile_expr_to_ax): Likewise.
3360 (disassemble_dwarf_expression): Likewise.
3361 (loclist_describe_location): Likewise.
3362
3363 2020-06-23 Pedro Alves <palves@redhat.com>
3364
3365 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3366 progspace-and-thread.h. Include scoped-mock-context.h instead.
3367 (register_to_value_test): Use scoped_mock_context.
3368 * regcache.c: Include "scoped-mock-context.h".
3369 (cooked_read_test): Don't error out if a target is already pushed.
3370 Use scoped_mock_context. Adjust.
3371 * scoped-mock-context.h: New file.
3372
3373 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3374
3375 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3376 initializer.
3377 (ada_language::is_string_type_p): New member function.
3378 * c-lang.c (c_language_data): Delete la_is_string_type_p
3379 initializer.
3380 (cplus_language_data): Likewise.
3381 (asm_language_data): Likewise.
3382 (minimal_language_data): Likewise.
3383 * d-lang.c (d_language_data): Likewise.
3384 * f-lang.c (f_is_string_type_p): Delete function, implementation
3385 moved to f_language::is_string_type_p.
3386 (f_language_data): Delete la_is_string_type_p initializer.
3387 (f_language::is_string_type_p): New member function,
3388 implementation from f_is_string_type_p.
3389 * go-lang.c (go_is_string_type_p): Delete function, implementation
3390 moved to go_language::is_string_type_p.
3391 (go_language_data): Delete la_is_string_type_p initializer.
3392 (go_language::is_string_type_p): New member function,
3393 implementation from go_is_string_type_p.
3394 * language.c (language_defn::is_string_type_p): Define new member
3395 function.
3396 (default_is_string_type_p): Make static, add comment copied from
3397 header file.
3398 (unknown_language_data): Delete la_is_string_type_p initializer.
3399 (unknown_language::is_string_type_p): New member function.
3400 (auto_language_data): Delete la_is_string_type_p initializer.
3401 (auto_language::is_string_type_p): New member function.
3402 * language.h (language_data): Delete la_is_string_type_p field.
3403 (language_defn::is_string_type_p): Declare new function.
3404 (default_is_string_type_p): Delete desclaration, move comment to
3405 definition.
3406 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3407 moved to m2_language::is_string_type_p.
3408 (m2_language_data): Delete la_is_string_type_p initializer.
3409 (m2_language::is_string_type_p): New member function,
3410 implementation from m2_is_string_type_p.
3411 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3412 initializer.
3413 * opencl-lang.c (opencl_language_data): Likewise.
3414 * p-lang.c (pascal_is_string_type_p): Delete function,
3415 implementation moved to pascal_language::is_string_type_p.
3416 (pascal_language_data): Delete la_is_string_type_p initializer.
3417 (pascal_language::is_string_type_p): New member function,
3418 implementation from pascal_is_string_type_p.
3419 * rust-lang.c (rust_is_string_type_p): Delete function,
3420 implementation moved to rust_language::is_string_type_p.
3421 (rust_language_data): Delete la_is_string_type_p initializer.
3422 (rust_language::is_string_type_p): New member function,
3423 implementation from rust_is_string_type_p.
3424 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3425 is_string_type_p.
3426
3427 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3428
3429 * ada-lang.c (ada_language_data): Delete la_print_typedef
3430 initializer.
3431 (ada_language::print_typedef): New member function.
3432 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3433 (cplus_language_data): Likewise.
3434 (asm_language_data): Likewise.
3435 (minimal_language_data): Likewise.
3436 * d-lang.c (d_language_data): Likewise.
3437 * f-lang.c (f_language_data): Likewise.
3438 (f_language::print_typedef): New member function.
3439 * go-lang.c (go_language_data): Delete la_print_typedef
3440 initializer.
3441 * language.c (language_defn::print_typedef): Define member
3442 function.
3443 (unknown_language_data): Delete la_print_typedef initializer.
3444 (unknown_language::print_typedef): New member function.
3445 (auto_language_data): Delete la_print_typedef initializer.
3446 (auto_language::print_typedef): New member function.
3447 * language.h (language_data): Delete la_print_typedef field.
3448 (language_defn::print_typedef): Declare new member function.
3449 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3450 (default_print_typedef): Delete declaration.
3451 * m2-lang.c (m2_language_data): Delete la_print_typedef
3452 initializer.
3453 (m2_language::print_typedef): New member function.
3454 * objc-lang.c (objc_language_data): Delete la_print_typedef
3455 initializer.
3456 * opencl-lang.c (opencl_language_data): Likewise.
3457 * p-lang.c (pascal_language_data): Likewise.
3458 (pascal_language::print_typedef): New member function.
3459 * rust-lang.c (rust_print_typedef): Delete function,
3460 implementation moved to rust_language::print_typedef.
3461 (rust_language): Delete la_print_typedef initializer.
3462 (rust_language::print_typedef): New member function,
3463 implementation from rust_print_typedef.
3464 * typeprint.c (default_print_typedef): Delete.
3465
3466 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3467
3468 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3469 (ada_language::printstr): New member function.
3470 * c-lang.c (c_language_data): Delete la_printstr initializer.
3471 (cplus_language_data): Likewise.
3472 (asm_language_data): Likewise.
3473 (minimal_language_data): Likewise.
3474 * d-lang.c (d_language_data): Likewise.
3475 * f-lang.c (f_printstr): Rename to f_language::printstr.
3476 (f_language_data): Delete la_printstr initializer.
3477 (f_language::printstr): New member function, implementation from
3478 f_printstr.
3479 * go-lang.c (go_language_data): Delete la_printstr initializer.
3480 * language.c (language_defn::printstr): Define new member
3481 function.
3482 (unk_lang_printstr): Delete.
3483 (unknown_language_data): Delete la_printstr initializer.
3484 (unknown_language::printstr): New member function.
3485 (auto_language_data): Delete la_printstr initializer.
3486 (auto_language::printstr): New member function.
3487 * language.h (language_data): Delete la_printstr field.
3488 (language_defn::printstr): Declare new member function.
3489 (LA_PRINT_STRING): Update call to printstr.
3490 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3491 (m2_language_data): Delete la_printstr initializer.
3492 (m2_language::printstr): New member function, implementation from
3493 m2_printstr.
3494 * objc-lang.c (objc_language_data): Delete la_printstr
3495 initializer.
3496 * opencl-lang.c (opencl_language_data): Likewise.
3497 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3498 (pascal_language_data): Delete la_printstr initializer.
3499 (pascal_language::printstr): New member function, implementation
3500 from pascal_printstr.
3501 * p-lang.h (pascal_printstr): Delete declaration.
3502 * rust-lang.c (rust_printstr): Update header comment.
3503 (rust_language_data): Delete la_printstr initializer.
3504 (rust_language::printstr): New member function.
3505
3506 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3507
3508 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3509 (ada_language::printchar): New member function.
3510 * c-lang.c (c_language_data): Delete la_printchar initializer.
3511 (cplus_language_data): Likewise.
3512 (asm_language_data): Likewise.
3513 (minimal_language_data): Likewise.
3514 * d-lang.c (d_language_data): Likewise.
3515 * f-lang.c (f_printchar): Rename to f_language::printchar.
3516 (f_language_data): Delete la_printchar initializer.
3517 (f_language::printchar): New member function, implementation from
3518 f_printchar.
3519 * go-lang.c (go_language_data): Delete la_printchar initializer.
3520 * language.c (unk_lang_printchar): Delete.
3521 (language_defn::printchar): Define new member function.
3522 (unknown_language_data): Delete la_printchar initializer.
3523 (unknown_language::printchar): New member function.
3524 (auto_language_data): Delete la_printchar initializer.
3525 (auto_language::printchar): New member function.
3526 * language.h (language_data): Delete la_printchar field.
3527 (language_defn::printchar): Declare new member function.
3528 (LA_PRINT_CHAR): Update call to printchar.
3529 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3530 (m2_language::printchar): New member function.
3531 * objc-lang.c (objc_language_data): Delete la_printchar
3532 initializer.
3533 * opencl-lang.c (opencl_language_data): Likewise.
3534 * p-lang.c (pascal_language_data): Delete la_printchar
3535 initializer.
3536 (pascal_language::printchar): New member function.
3537 * rust-lang.c (rust_printchar): Rename to
3538 rust_language::printchar.
3539 (rust_language_data): Delete la_printchar initializer.
3540 (rust_language::printchar): New member function, implementation
3541 from rust_printchar.
3542
3543 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3544
3545 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3546 (ada_language_data): Delete la_emitchar initializer.
3547 (ada_language::emitchar): New member function, implementation from
3548 emit_char.
3549 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3550 (cplus_language_data): Likewise.
3551 (asm_language_data): Likewise.
3552 (minimal_language_data): Likewise.
3553 * d-lang.c (d_language_data): Likewise.
3554 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3555 (f_language_data): Delete la_emitchar initializer.
3556 (f_language::emitchar): New member function, implementation from
3557 f_emit_char.
3558 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3559 * language.c (unk_lang_emit_char): Delete.
3560 (language_defn::emitchar): New member function definition.
3561 (unknown_language_data): Delete la_emitchar initializer.
3562 (unknown_language::emitchar): New member function.
3563 (auto_language_data): Delete la_emitchar initializer.
3564 (auto_language::emitchar): New member function.
3565 * language.h (language_data): Delete la_emitchar field.
3566 (language_defn::emitchar): New member field declaration.
3567 (LA_EMIT_CHAR): Update call to emitchar.
3568 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3569 (m2_language_data): Delete la_emitchar initializer.
3570 (m2_language::emitchar): New member function, implementation from
3571 m2_emit_char.
3572 * objc-lang.c (objc_language_data): Delete la_emitchar
3573 initializer.
3574 * opencl-lang.c (opencl_language_data): Likewise.
3575 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3576 (pascal_language_data): Delete la_emitchar initializer.
3577 (pascal_language::emitchar): New member function, implementation
3578 from pascal_emit_char.
3579 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3580 (rust_language_data): Delete la_emitchar initializer.
3581 (rust_language::emitchar): New member function, implementation
3582 from rust_emitchar.
3583
3584 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3585
3586 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3587 (ada_language_data): Delete la_post_parser initializer.
3588 (ada_language::post_parser): New member function.
3589 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3590 (cplus_language_data): Likewise.
3591 (asm_language_data): Likewise.
3592 (minimal_language_data): Likewise.
3593 * d-lang.c (d_language_data): Likewise.
3594 * f-lang.c (f_language_data): Likewise.
3595 * go-lang.c (go_language_data): Likewise.
3596 * language.c (unknown_language_data): Likewise.
3597 (auto_language_data): Likewise.
3598 * language.h (language_data): Delete la_post_parser field.
3599 (language_defn::post_parser): New member function.
3600 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3601 * objc-lang.c (objc_language_data): Likewise.
3602 * opencl-lang.c (opencl_language_data): Likewise.
3603 * p-lang.c (pascal_language_data): Likewise.
3604 * parse.c (parse_exp_in_context): Update call to post_parser.
3605 (null_post_parser): Delete definition.
3606 * parser-defs.h (null_post_parser): Delete declaration.
3607 * rust-lang.c (rust_language_data): Delete la_post_parser
3608 initializer.
3609
3610 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3611
3612 * ada-lang.c (parse): Rename to ada_language::parser.
3613 (ada_language_data): Delete la_parser initializer.
3614 (ada_language::parser): New member function, implementation from
3615 parse.
3616 * c-lang.c (c_language_data): Delete la_parser initializer.
3617 (cplus_language_data): Likewise.
3618 (asm_language_data): Likewise.
3619 (minimal_language_data): Likewise.
3620 * d-lang.c (d_language_data): Likewise.
3621 (d_language::parser): New member function.
3622 * f-lang.c (f_language_data): Delete la_parser initializer.
3623 (f_language::parser): New member function.
3624 * go-lang.c (go_language_data): Delete la_parser initializer.
3625 (go_language::parser): New member function.
3626 * language.c (unk_lang_parser): Delete.
3627 (language_defn::parser): Define new member function.
3628 (unknown_language_data): Delete la_parser initializer.
3629 (unknown_language::parser): New member function.
3630 (auto_language_data): Delete la_parser initializer.
3631 (auto_language::parser): New member function.
3632 * language.h (language_data): Delete la_parser field.
3633 (language_defn::parser): Declare new member function.
3634 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3635 (m2_language::parser): New member function.
3636 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3637 * opencl-lang.c (opencl_language_data): Likewise.
3638 * p-lang.c (pascal_language_data): Likewise.
3639 (pascal_language::parser): New member function.
3640 * parse.c (parse_exp_in_context): Update call to parser.
3641 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3642 (rust_language::parser): New member function.
3643
3644 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3645
3646 * top.c (print_gdb_configuration): Print --with-python-libdir
3647 configuration value.
3648
3649 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3650
3651 * NEWS: Mention change to the alias command.
3652
3653 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3654
3655 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3656 (alias_command_completer)
3657 (make_alias_options_def_group): New functions.
3658 (alias_opts, alias_option_defs): New struct and array.
3659 (alias_usage_error): Update usage.
3660 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3661 Use option framework.
3662 (_initialize_cli_cmds): Update alias command help.
3663 Update aliases command help.
3664 (show_user):
3665 Add NULL for new default_args lookup_cmd argument.
3666 (valid_command_p): Rename to validate_aliased_command.
3667 Add NULL for new default_args lookup_cmd argument. Verify that the
3668 aliased_command has no default args.
3669 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3670 (lookup_cmd_1, lookup_cmd): New argument default_args.
3671 (add_alias_cmd):
3672 Add NULL for new default_args lookup_cmd argument.
3673 (print_help_for_command): Show default args under the layout
3674 alias some_alias = some_aliased_cmd some_alias_default_arg.
3675 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3676 xfree default_args in destructor.
3677 * cli/cli-script.c (process_next_line, do_define_command):
3678 Add NULL for new default_args lookup_cmd argument.
3679 * command.h: Declare new default_args argument in lookup_cmd
3680 and lookup_cmd_1.
3681 * completer.c (complete_line_internal_1):
3682 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3683 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3684 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3685 Likewise.
3686 * infcmd.c (_initialize_infcmd): Likewise.
3687 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3688 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3689 * python/py-param.c (add_setshow_generic): Likewise.
3690 * remote.c (_initialize_remote): Likewise.
3691 * top.c (execute_command): Prepend default_args if command has some.
3692 (set_verbose):
3693 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3694 * tracepoint.c (validate_actionline, encode_actions_1):
3695 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3696
3697 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3698
3699 * jit.c (jit_read_descriptor): Use bool as the return type.
3700 (jit_breakpoint_re_set_internal): Use bool as the return type.
3701 Invert the return value logic; return true if the jit breakpoint
3702 has been successfully initialized.
3703 (jit_inferior_init): Update the call to
3704 jit_breakpoint_re_set_internal.
3705
3706 2020-06-22 Pedro Alves <palves@redhat.com>
3707
3708 PR gdb/25939
3709 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3710 Use the current inferior instead. Don't return
3711 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3712 wait again.
3713 * sol-thread.c (sol_thread_target::wait): Don't reference
3714 inferior_ptid.
3715 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3716 (sol_update_thread_list_callback): Use the current inferior's pid
3717 instead of inferior_ptid.
3718
3719 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3720
3721 * procfs.c: Cleanup many comments.
3722
3723 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3724 (AFTER_WATCHFLAG): Replace by value.
3725
3726 (MAIN_PROC_NAME_FORMAT): Inline ...
3727 (create_procinfo): ... here.
3728
3729 (procfs_debug_inferior): Remove SYS_exec handling.
3730 (syscall_is_exec): Likewise.
3731 (procfs_set_exec_trap): Likewise.
3732
3733 (syscall_is_lwp_exit): Inline in callers.
3734 (syscall_is_exit): Likewise.
3735 (syscall_is_exec): Likewise.
3736 (syscall_is_lwp_create): Likewise.
3737
3738 (invalidate_cache): Remove #if 0 code.
3739
3740 (make_signal_thread_runnable): Remove.
3741 (procfs_target::resume): Remove #if 0 code.
3742
3743 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3744
3745 PR gdb/25939
3746 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3747 call ...
3748 (procfs_target::create_inferior): ... here.
3749
3750 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3751
3752 * exec.c (validate_exec_file): Ensure the build-id is up to
3753 date by calling reopen_exec_file (that checks file timestamp
3754 to decide to re-read the file).
3755
3756 2020-06-18 Pedro Alves <palves@redhat.com>
3757
3758 PR gdb/25412
3759 * gdbthread.h (delete_thread, delete_thread_silent)
3760 (find_thread_ptid): Update comments.
3761 * thread.c (current_thread_): New global.
3762 (is_current_thread): Move higher, and reimplement.
3763 (inferior_thread): Reimplement.
3764 (set_thread_exited): Use bool. Add assertions.
3765 (add_thread_silent): Simplify thread-reuse handling by always
3766 calling delete_thread.
3767 (delete_thread): Remove intro comment.
3768 (find_thread_ptid): Skip exited threads.
3769 (switch_to_thread_no_regs): Write to current_thread_.
3770 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3771 INFERIOR_PTID. Clear current_thread_.
3772
3773 2020-06-18 Pedro Alves <palves@redhat.com>
3774
3775 * aix-thread.c (pd_update): Use switch_to_thread.
3776
3777 2020-06-18 Pedro Alves <palves@redhat.com>
3778
3779 * ravenscar-thread.c (ravenscar_thread_target): Update.
3780 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3781 (ravenscar_thread_target::add_active_thread): ... this. Don't
3782 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3783 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3784
3785 2020-06-18 Pedro Alves <palves@redhat.com>
3786
3787 * nat/windows-nat.c (current_windows_thread): Remove.
3788 * nat/windows-nat.h (current_windows_thread): Remove.
3789 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3790 Adjust.
3791 (display_selectors): Adjust to fetch the current
3792 windows_thread_info based on inferior_ptid.
3793 (fake_create_process): No longer write to current_windows_thread.
3794 (windows_nat_target::get_windows_debug_event):
3795 Don't set inferior_ptid or current_windows_thread.
3796 (windows_nat_target::wait): Adjust to not rely on
3797 current_windows_thread.
3798 (do_initial_windows_stuff): Now a method of windows_nat_target.
3799 Switch to the last_ptid thread.
3800 (windows_nat_target::attach): Adjust.
3801 (windows_nat_target::detach): Use switch_to_no_thread instead of
3802 writing to inferior_ptid directly.
3803 (windows_nat_target::create_inferior): Adjust.
3804
3805 2020-06-18 Pedro Alves <palves@redhat.com>
3806
3807 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3808
3809 2020-06-18 Pedro Alves <palves@redhat.com>
3810
3811 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3812 after creating it, instead of writing to inferior_ptid. Don't
3813 write to inferior_ptid.
3814
3815 2020-06-18 Pedro Alves <palves@redhat.com>
3816
3817 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3818
3819 2020-06-18 Pedro Alves <palves@redhat.com>
3820
3821 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3822 it, instead of writing to inferior_ptid.
3823
3824 2020-06-18 Pedro Alves <palves@redhat.com>
3825
3826 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3827 to inferior_ptid.
3828
3829 2020-06-18 Pedro Alves <palves@redhat.com>
3830
3831 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3832 instead of writing to inferior_ptid directly.
3833
3834 2020-06-18 Pedro Alves <palves@redhat.com>
3835
3836 * corelow.c (core_target::close): Use switch_to_no_thread instead
3837 of writing to inferior_ptid directly.
3838 (add_to_thread_list, core_target_open): Use switch_to_thread
3839 instead of writing to inferior_ptid directly.
3840
3841 2020-06-18 Pedro Alves <palves@redhat.com>
3842
3843 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3844 inferior_ptid.
3845 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3846 inferior_ptid.
3847 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3848 inferior_ptid directly.
3849 (darwin_nat_target::init_thread_list): Switch to thread, instead
3850 of writing to inferior_ptid.
3851 (darwin_nat_target::attach): Don't write to inferior_ptid.
3852 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3853
3854 2020-06-18 Pedro Alves <palves@redhat.com>
3855
3856 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3857 thread.
3858 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3859 Instead use switch_to_thread.
3860 (gnu_nat_target::detach): Use switch_to_no_thread
3861 instead of writing to inferior_ptid directly. Used passed-in
3862 inferior instead of looking up the inferior by pid.
3863
3864 2020-06-18 Pedro Alves <palves@redhat.com>
3865
3866 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3867 inferior_ptid.
3868
3869 2020-06-18 Pedro Alves <palves@redhat.com>
3870
3871 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3872 inferior_ptid.
3873 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3874 thread.
3875 (nto_procfs_target::detach): Avoid referencing
3876 inferior_ptid. Use switch_to_no_thread instead of writing to
3877 inferior_ptid directly.
3878 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3879 instead of writing to inferior_ptid directly.
3880 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3881 to thread.
3882
3883 2020-06-18 Pedro Alves <palves@redhat.com>
3884
3885 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3886 after creating it, instead of writing to inferior_ptid.
3887 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3888 to inferior_ptid directly.
3889 (gdbsim_target::wait): Don't write to inferior_ptid.
3890
3891 2020-06-18 Pedro Alves <palves@redhat.com>
3892
3893 * remote.c (remote_target::remote_notice_new_inferior): Use
3894 switch_to_thread instead of writing to inferior_ptid directly.
3895 (remote_target::add_current_inferior_and_thread): Use
3896 switch_to_no_thread instead of writing to inferior_ptid directly.
3897 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3898 and switch_to_thread instead of using set_current_inferior or
3899 writing to inferior_ptid directly.
3900
3901 2020-06-18 Pedro Alves <palves@redhat.com>
3902
3903 * tracectf.c (ctf_target_open): Switch to added thread instead of
3904 writing to inferior_ptid directly.
3905 (ctf_target::close): Use switch_to_no_thread instead of writing to
3906 inferior_ptid directly.
3907
3908 2020-06-18 Pedro Alves <palves@redhat.com>
3909
3910 * tracefile-tfile.c (tfile_target_open): Don't write to
3911 inferior_ptid directly, instead switch to added thread.
3912 (tfile_target::close): Use switch_to_no_thread instead of writing
3913 to inferior_ptid directly.
3914
3915 2020-06-18 Pedro Alves <palves@redhat.com>
3916
3917 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3918 (procfs_target::detach): Use switch_to_no_thread
3919 instead of writing to inferior_ptid directly.
3920 (do_attach): Change return type to void. Switch to the added
3921 thread.
3922 (procfs_target::create_inferior): Switch to the added thread.
3923 (procfs_do_thread_registers): Don't write to inferior_ptid.
3924
3925 2020-06-18 Pedro Alves <palves@redhat.com>
3926
3927 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3928 of writing to inferior_ptid.
3929 (scoped_restore_exited_inferior): Delete.
3930 (handle_vfork_child_exec_or_exit): Simplify using
3931 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3932 instead of writing to inferior_ptid.
3933 (THREAD_STOPPED_BY): Delete.
3934 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3935 (thread_stopped_by_hw_breakpoint): Delete.
3936 (save_waitstatus): Use
3937 scoped_restore_current_thread+switch_to_thread, and call
3938 target_stopped_by_watchpoint instead of
3939 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3940 instead of thread_stopped_by_sw_breakpoint, and
3941 target_stopped_by_hw_breakpoint instead of
3942 thread_stopped_by_hw_breakpoint.
3943 (handle_inferior_event)
3944 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3945 inferior_ptid directly, nor
3946 set_current_inferior/set_current_program_space. Use
3947 switch_to_thread / switch_to_inferior_no_thread instead.
3948
3949 2020-06-18 Pedro Alves <palves@redhat.com>
3950
3951 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3952 instead of writing to inferior_ptid.
3953
3954 2020-06-18 Pedro Alves <palves@redhat.com>
3955
3956 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3957 added thread.
3958 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3959 to the added thread.
3960 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3961 instead of writing to inferior_ptid.
3962
3963 2020-06-18 Pedro Alves <palves@redhat.com>
3964
3965 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3966 (register_to_value_test): Mock a program_space too. Heap-allocate
3967 the address space. Don't write to inferior_ptid. Use
3968 switch_to_thread instead.
3969
3970 2020-06-18 Pedro Alves <palves@redhat.com>
3971
3972 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3973 Delete.
3974 (find_signalled_thread()): New, factored out from
3975 linux_make_corefile_notes and adjusted to handle exited threads.
3976 (linux_make_corefile_notes): Adjust to use the new
3977 find_signalled_thread.
3978
3979 2020-06-18 Pedro Alves <palves@redhat.com>
3980
3981 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3982 of saving/restoring inferior_ptid.
3983
3984 2020-06-17 Tom Tromey <tom@tromey.com>
3985
3986 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3987 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3988 declare.
3989 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3990
3991 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3992
3993 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3994 of partial symtabs.
3995
3996 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3997
3998 * regformats/reg-arm.dat: Remove.
3999 * regformats/reg-bfin.dat: Remove.
4000 * regformats/reg-cris.dat: Remove.
4001 * regformats/reg-crisv32.dat: Remove.
4002 * regformats/reg-m32r.dat: Remove.
4003 * regformats/reg-tilegx.dat: Remove.
4004 * regformats/reg-tilegx32.dat: Remove.
4005
4006 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4007
4008 * features/Makefile (WHICH): Remove arm files.
4009 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4010 * regformats/arm/arm-with-neon.dat: Remove.
4011 * regformats/arm/arm-with-vfpv2.dat: Remove.
4012 * regformats/arm/arm-with-vfpv3.dat: Remove.
4013
4014 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4015
4016 * features/Makefile (XMLTOC): Remove rx.xml.
4017
4018 2020-06-17 Pedro Alves <palves@redhat.com>
4019
4020 * gdbthread.h (thread_control_state) <trap_expected> Update
4021 comments.
4022
4023 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4024
4025 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4026 ada_language::lookup_symbol_nonlocal.
4027 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4028 (ada_language::lookup_symbol_nonlocal): New member function,
4029 implementation from ada_lookup_symbol_nonlocal.
4030 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4031 initializer.
4032 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4033 initializer.
4034 (cplus_language::lookup_symbol_nonlocal): New member function.
4035 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4036 (minimal_language_data) Likewise.
4037 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4038 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4039 initializer.
4040 (d_language::lookup_symbol_nonlocal): New member function.
4041 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4042 initializer.
4043 (f_language::lookup_symbol_nonlocal): New member function.
4044 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4045 initializer.
4046 * language.c (unknown_language_data): Likewise.
4047 (auto_language_data): Likewise.
4048 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4049 field.
4050 (language_defn::lookup_symbol_nonlocal): New member function.
4051 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4052 initializer.
4053 * objc-lang.c (objc_language_data): Likewise.
4054 * opencl-lang.c (opencl_language_data): Likewise.
4055 * p-lang.c (pascal_language_data): Likewise.
4056 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4057 rust_language::lookup_symbol_nonlocal.
4058 (rust_language_data): Delete la_lookup_symbol_nonlocal
4059 initializer.
4060 (rust_language::lookup_symbol_nonlocal): New member function,
4061 implementation from rust_lookup_symbol_nonlocal.
4062 * symtab.c (lookup_symbol_aux): Update call to
4063 lookup_symbol_nonlocal.
4064 (basic_lookup_symbol_nonlocal): Rename to...
4065 (language_defn::lookup_symbol_nonlocal): ...this, and update
4066 header comment. Remove language_defn parameter, and replace with
4067 uses of `this'.
4068 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4069
4070 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4071
4072 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4073 initializer.
4074 (ada_language::value_print_inner): New member function.
4075 * c-lang.c (c_language_data): Delete la_value_print_inner
4076 initializer.
4077 (cplus_language_data): Likewise.
4078 (asm_language_data): Likewise.
4079 (minimal_language_data): Likewise.
4080 * d-lang.c (d_language_data): Likewise.
4081 (d_language::value_print_inner): New member function.
4082 * f-lang.c (f_language_data): Delete la_value_print_inner
4083 initializer.
4084 (f_language::value_print_inner): New member function.
4085 * f-lang.h (f_value_print_innner): Rename to...
4086 (f_value_print_inner): ...this (note spelling of 'inner').
4087 * f-valprint.c (f_value_print_innner): Rename to...
4088 (f_value_print_inner): ...this (note spelling of 'inner').
4089 * go-lang.c (go_language_data): Delete la_value_print_inner
4090 initializer.
4091 (go_language::value_print_inner): New member function.
4092 * language.c (language_defn::value_print_inner): Define new member
4093 function.
4094 (unk_lang_value_print_inner): Delete.
4095 (unknown_language_data): Delete la_value_print_inner initializer.
4096 (unknown_language::value_print_inner): New member function.
4097 (auto_language_data): Delete la_value_print_inner initializer.
4098 (auto_language::value_print_inner): New member function.
4099 * language.h (language_data): Delete la_value_print_inner field.
4100 (language_defn::value_print_inner): Delcare new member function.
4101 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4102 initializer.
4103 (m2_language::value_print_inner): New member function.
4104 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4105 initializer.
4106 * opencl-lang.c (opencl_language_data): Likewise.
4107 * p-lang.c (pascal_language_data): Likewise.
4108 (pascal_language::value_print_inner): New member function.
4109 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4110 initializer.
4111 (rust_language::value_print_inner): New member function.
4112 * valprint.c (do_val_print): Update call to value_print_inner.
4113
4114 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4115
4116 * ada-lang.c (ada_language_data): Delete la_value_print
4117 initializer.
4118 (ada_language::value_print): New member function.
4119 * c-lang.c (c_language_data): Delete la_value_print initializer.
4120 (cplus_language_data): Likewise.
4121 (asm_language_data): Likewise.
4122 (minimal_language_data): Likewise.
4123 * d-lang.c (d_language_data): Likewise.
4124 * f-lang.c (f_language_data): Likewise.
4125 * go-lang.c (go_language_data): Likewise.
4126 * language.c (unk_lang_value_print): Delete.
4127 (language_defn::value_print): Define new member function.
4128 (unknown_language_data): Delete la_value_print initializer.
4129 (unknown_language::value_print): New member function.
4130 (auto_language_data): Delete la_value_print initializer.
4131 (auto_language::value_print): New member function.
4132 * language.h (language_data): Delete la_value_print field.
4133 (language_defn::value_print): Declare new member function.
4134 (LA_VALUE_PRINT): Update call to value_print.
4135 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4136 * objc-lang.c (objc_language_data): Likewise.
4137 * opencl-lang.c (opencl_language_data): Likewise.
4138 * p-lang.c (pascal_language_data): Likewise.
4139 (pascal_language::value_print): New member function.
4140 * rust-lang.c (rust_language_data): Delete la_value_print
4141 initializer.
4142
4143 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4144
4145 * ada-lang.c (ada_watch_location_expression): Rename to
4146 ada_language::watch_location_expression.
4147 (ada_language_data): Delete la_watch_location_expression
4148 initializer.
4149 (ada_language::watch_location_expression): New member function,
4150 implementation from ada_watch_location_expression.
4151 * breakpoint.c (watch_command_1): Update call to
4152 watch_location_expression.
4153 * c-lang.c (c_watch_location_expression): Rename to
4154 language_defn::watch_location_expression.
4155 (c_language_data): Delete la_watch_location_expression
4156 initializer.
4157 (cplus_language_data): Likewise.
4158 (asm_language_data): Likewise.
4159 (minimal_language_data): Likewise.
4160 * c-lang.h (c_watch_location_expression): Delete declaration.
4161 * d-lang.c (d_language_data): Delete la_watch_location_expression
4162 initializer.
4163 * f-lang.c (f_language_data): Likewise.
4164 * go-lang.c (go_language_data): Likewise.
4165 * language.c (language_defn::watch_location_expression): Member
4166 function implementation from c_watch_location_expression.
4167 (unknown_language_data): Delete la_watch_location_expression
4168 initializer.
4169 (auto_language_data): Likewise.
4170 * language.h (language_data): Delete la_watch_location_expression
4171 field.
4172 (language_defn::watch_location_expression): Declare new member
4173 function.
4174 * m2-lang.c (m2_language_data): Delete
4175 la_watch_location_expression initializer.
4176 * objc-lang.c (objc_language_data): Likewise.
4177 * opencl-lang.c (opencl_language_data): Likewise.
4178 * p-lang.c (pascal_language_data): Likewise.
4179 * rust-lang.c (rust_watch_location_expression): Rename to
4180 rust_language::watch_location_expression.
4181 (rust_language_data): Delete la_watch_location_expression
4182 initializer.
4183 (rust_language::watch_location_expression): New member function,
4184 implementation from rust_watch_location_expression.
4185
4186 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4187
4188 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4189 ada_language::collect_symbol_completion_matches.
4190 (ada_language_data): Delete la_collect_symbol_completion_matches
4191 initializer.
4192 (ada_language::collect_symbol_completion_matches): New member
4193 function, implementation from
4194 ada_collect_symbol_completion_matches.
4195 * c-lang.c (c_language_data): Delete
4196 la_collect_symbol_completion_matches initializer.
4197 (cplus_language_data): Likewise.
4198 (asm_language_data): Likewise.
4199 (minimal_language_data): Likewise.
4200 * d-lang.c (d_language_data): Likewise.
4201 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4202 f_language::collect_symbol_completion_matches.
4203 (f_language_data): Delete la_collect_symbol_completion_matches
4204 initializer.
4205 (f_language::collect_symbol_completion_matches) New member
4206 function, implementation from f_collect_symbol_completion_matches.
4207 * go-lang.c (go_language_data): Delete
4208 la_collect_symbol_completion_matches initializer.
4209 * language.c (unknown_language_data): Likewise.
4210 (auto_language_data): Likewise.
4211 * language.h (language_data): Delete
4212 la_collect_symbol_completion_matches field.
4213 (language_defn::collect_symbol_completion_matches): New member
4214 function.
4215 * m2-lang.c (m2_language_data): Delete
4216 la_collect_symbol_completion_matches initializer.
4217 * objc-lang.c (objc_language_data): Likewise.
4218 * opencl-lang.c (opencl_language_data): Likewise.
4219 * p-lang.c (pascal_language_data): Likewise.
4220 * rust-lang.c (rust_language_data): Likewise.
4221 * symtab.c (default_collect_symbol_completion_matches): Delete.
4222 (collect_symbol_completion_matches): Update call to
4223 collect_symbol_completion_matches.
4224 (collect_symbol_completion_matches_type): Likewise.
4225 * symtab.h (default_collect_symbol_completion_matches): Delete
4226 declaration.
4227
4228 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4229
4230 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4231 (ada_language_data): Delete la_word_break_characters initializer.
4232 (ada_language::word_break_characters): New member function.
4233 * c-lang.c (c_language_data): Delete la_word_break_characters
4234 initializer.
4235 (cplus_language_data): Likewise.
4236 (asm_language_data): Likewise.
4237 (minimal_language_data): Likewise.
4238 * completer.c: Update global comment.
4239 (advance_to_expression_complete_word_point): Update call to
4240 word_break_characters.
4241 (complete_files_symbols): Likewise.
4242 (complete_line_internal_1): Likewise.
4243 (default_completer_handle_brkchars): Likewise.
4244 (skip_quoted_chars): Likewise.
4245 * d-lang.c (d_language_data): Delete la_word_break_characters
4246 initializer.
4247 * f-lang.c (f_word_break_characters): Delete.
4248 (f_language_data): Delete la_word_break_characters initializer.
4249 (f_language::word_break_characters): New member function.
4250 * go-lang.c (go_language_data): Delete la_word_break_characters
4251 initializer.
4252 * language.c (unknown_language_data): Likewise.
4253 (auto_language_data): Likewise.
4254 * language.h (default_word_break_characters): Move declaration to
4255 earlier in the file.
4256 (language_data): Delete la_word_break_characters field.
4257 (language_defn::word_break_characters): New member function.
4258 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4259 initializer.
4260 * objc-lang.c (objc_language_data): Likewise.
4261 * opencl-lang.c (opencl_language_data): Likewise.
4262 * p-lang.c (pascal_language_data): Likewise.
4263 * rust-lang.c (rust_language_data): Likewise.
4264
4265 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4266
4267 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4268 (ada_language_data): Delete la_get_symbol_name_matcher
4269 initializer.
4270 (language_defn::get_symbol_name_matcher_inner): New member
4271 function.
4272 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4273 initializer.
4274 (cplus_language_data): Likewise.
4275 (cplus_language::get_symbol_name_matcher_inner): New member
4276 function.
4277 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4278 (minimal_language_data): Likewise.
4279 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4280 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4281 initializer.
4282 * dictionary.c (iter_match_first_hashed): Update call to
4283 get_symbol_name_matcher.
4284 (iter_match_next_hashed): Likewise.
4285 (iter_match_next_linear): Likewise.
4286 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4287 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4288 initializer.
4289 (f_language::get_symbol_name_matcher_inner): New member function.
4290 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4291 initializer.
4292 * language.c (default_symbol_name_matcher): Update header comment,
4293 make static.
4294 (language_defn::get_symbol_name_matcher): New definition.
4295 (language_defn::get_symbol_name_matcher_inner): Likewise.
4296 (get_symbol_name_matcher): Delete.
4297 (unknown_language_data): Delete la_get_symbol_name_matcher
4298 initializer.
4299 (auto_language_data): Likewise.
4300 * language.h (language_data): Delete la_get_symbol_name_matcher
4301 field.
4302 (language_defn::get_symbol_name_matcher): New member function.
4303 (language_defn::get_symbol_name_matcher_inner): Likewise.
4304 (default_symbol_name_matcher): Delete declaration.
4305 * linespec.c (find_methods): Update call to
4306 get_symbol_name_matcher.
4307 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4308 initializer.
4309 * minsyms.c (lookup_minimal_symbol): Update call to
4310 get_symbol_name_matcher.
4311 (iterate_over_minimal_symbols): Likewise.
4312 * objc-lang.c (objc_language_data): Delete
4313 la_get_symbol_name_matcher initializer.
4314 * opencl-lang.c (opencl_language_data): Likewise.
4315 * p-lang.c (pascal_language_data): Likewise.
4316 * psymtab.c (psymbol_name_matches): Update call to
4317 get_symbol_name_matcher.
4318 * rust-lang.c (rust_language_data): Delete
4319 la_get_symbol_name_matcher initializer.
4320 * symtab.c (symbol_matches_search_name): Update call to
4321 get_symbol_name_matcher.
4322 (compare_symbol_name): Likewise.
4323
4324 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4325
4326 * ada-lang.c (ada_language_data): Delete la_compute_program
4327 initializer.
4328 * c-lang.c (c_language_data): Likewise.
4329 (c_language::compute_program): New member function.
4330 (cplus_language_data): Delete la_compute_program initializer.
4331 (cplus_language::compute_program): New member function.
4332 (asm_language_data): Delete la_compute_program initializer.
4333 (minimal_language_data): Likewise.
4334 * c-lang.h (c_compute_program): Update comment.
4335 (cplus_compute_program): Likewise.
4336 * compile/compile-c-support.c (c_compute_program): Likewise.
4337 (cplus_compute_program): Likewise.
4338 * compile/compile.c (compile_to_object): Update call to
4339 la_compute_program.
4340 * d-lang.c (d_language_data): Delete la_compute_program
4341 initializer.
4342 * f-lang.c (f_language_data): Likewise.
4343 * go-lang.c (go_language_data): Likewise.
4344 * language.c (unknown_language_data): Likewise.
4345 (auto_language_data): Likewise.
4346 * language.h (language_data): Delete la_compute_program field.
4347 (language_defn::compute_program): New member function.
4348 * m2-lang.c (m2_language_data): Delete la_compute_program
4349 initializer.
4350 * objc-lang.c (objc_language_data): Likewise.
4351 * opencl-lang.c (opencl_language_data): Likewise.
4352 * p-lang.c (pascal_language_data): Likewise.
4353 * rust-lang.c (rust_language_data): Likewise.
4354
4355 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4356
4357 * ada-lang.c (ada_language_data) Delete
4358 la_class_name_from_physname initializer.
4359 * c-lang.c (c_language_data): Likewise.
4360 (cplus_language_data): Likewise.
4361 (cplus_language::class_name_from_physname): New member function.
4362 (asm_language_data): Delete la_class_name_from_physname
4363 initializer.
4364 (minimal_language_data): Likewise.
4365 * d-lang.c (d_language_data): Likewise.
4366 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4367 method on language_defn class.
4368 (guess_full_die_structure_name): Likewise.
4369 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4370 initializer.
4371 * go-lang.c (go_language_data): Likewise.
4372 * language.c (language_class_name_from_physname): Delete.
4373 (unk_lang_class_name): Delete.
4374 (unknown_language_data): Delete la_class_name_from_physname
4375 initializer.
4376 (auto_language_data): Likewise.
4377 * language.h (language_data): Delete la_class_name_from_physname
4378 field.
4379 (language_defn::class_name_from_physname): New function.
4380 (language_class_name_from_physname): Delete declaration.
4381 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4382 initializer.
4383 * objc-lang.c (objc_language_data): Likewise.
4384 * opencl-lang.c (opencl_language_data): Likewise.
4385 * p-lang.c (pascal_language_data): Likewise.
4386 * rust-lang.c (rust_language_data): Likewise.
4387
4388 2020-06-16 Tom Tromey <tom@tromey.com>
4389
4390 * tui/tui-data.h (STATUS_NAME): New macro.
4391 * tui/tui-layout.c (tui_remove_some_windows)
4392 (initialize_known_windows, tui_register_window)
4393 (tui_layout_split::remove_windows, initialize_layouts)
4394 (tui_new_layout_command): Don't use hard-coded window names.
4395
4396 2020-06-16 Tom Tromey <tom@tromey.com>
4397
4398 PR tui/25348:
4399 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4400 tui_initialize_readline. Only run once. Call rl_initialize.
4401 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4402 tui_initialize_readline.
4403 * tui/tui-io.c (tui_setup_io): Call
4404 tui_ensure_readline_initialized.
4405 * tui/tui-interp.c (tui_interp::init): Update.
4406
4407 2020-06-16 Tom Tromey <tom@tromey.com>
4408
4409 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4410 Also preserve the status window.
4411
4412 2020-06-16 Tom Tromey <tom@tromey.com>
4413
4414 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4415 where m_window==nullptr.
4416
4417 2020-06-15 Tom Tromey <tromey@adacore.com>
4418
4419 * windows-nat.c (windows_nat::handle_output_debug_string):
4420 Update.
4421 (windows_nat::handle_ms_vc_exception): Update.
4422 * target.h (target_read_string): Change API.
4423 * target.c (target_read_string): Change API.
4424 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4425 Update.
4426 * solib-frv.c (frv_current_sos): Update.
4427 * solib-dsbt.c (dsbt_current_sos): Update.
4428 * solib-darwin.c (darwin_current_sos): Update.
4429 * linux-thread-db.c (inferior_has_bug): Update.
4430 * expprint.c (print_subexp_standard): Update.
4431 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4432 (ada_exception_message_1): Update.
4433
4434 2020-06-15 Tom Tromey <tromey@adacore.com>
4435
4436 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4437
4438 2020-06-15 Tom Tromey <tromey@adacore.com>
4439
4440 * valprint.c (read_string): Update comment.
4441 * target.c (MIN): Remove.
4442 (target_read_string): Rewrite.
4443
4444 2020-06-15 Tom Tromey <tromey@adacore.com>
4445
4446 * corefile.c (read_memory_string): Remove.
4447 * ada-valprint.c (ada_value_print_ptr): Update.
4448 * ada-lang.h (ada_tag_name): Change return type.
4449 * ada-lang.c (type_from_tag): Update.
4450 (ada_tag_name_from_tsd): Change return type. Use
4451 target_read_string.
4452 (ada_tag_name): Likewise.
4453 * gdbcore.h (read_memory_string): Don't declare.
4454
4455 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4456
4457 * symtab.c (rbreak_command): Ignore Windows drive colon.
4458
4459 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4460
4461 * NEWS: Mention removed GDBserver host support.
4462
4463 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4464
4465 * features/riscv/rebuild-csr-xml.sh: Updated.
4466
4467 2020-06-11 Tom Tromey <tom@tromey.com>
4468
4469 PR gdb/18318:
4470 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4471
4472 2020-06-09 Jonny Grant <jg@jguk.org>
4473 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4474
4475 * main.c (captured_main_1): Don't print new line after help.
4476 (print_gdb_help): add mailing list and IRC channel information
4477 to --help. Add new lines between items in the footer. Remove
4478 quotes around bug url.
4479
4480 2020-06-11 Keith Seitz <keiths@redhat.com>
4481
4482 PR gdb/21356
4483 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4484 Resolve typedefs for type length calculations.
4485
4486 2020-06-10 Tom de Vries <tdevries@suse.de>
4487
4488 PR ada/24713
4489 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4490 (write_psymbols): Enable .gdb_index for ada.
4491 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4492 ada.
4493
4494 2020-06-10 Tom de Vries <tdevries@suse.de>
4495
4496 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4497 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4498 namei" instead of "const char *name" argument.
4499 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4500 dw2_symtab_iter_init.
4501
4502 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4503
4504 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4505 to use type::field and field::type instead.
4506
4507 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4510 to use field::type instead.
4511
4512 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4513
4514 * gdbtypes.h (struct field) <type, set_type>: New methods.
4515 Rename `type` field to...
4516 <m_type>: ... this. Change references throughout to use type or
4517 set_type methods.
4518 (FIELD_TYPE): Use field::type. Change call sites that modify
4519 the field's type to use field::set_type instead.
4520
4521 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4522
4523 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4524 to use type::index_type instead.
4525
4526 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4527
4528 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4529 methods.
4530 (TYPE_INDEX_TYPE): Use type::index_type.
4531 * gdbtypes.c (create_array_type_with_stride): Likewise.
4532
4533 2020-06-07 Tom Tromey <tom@tromey.com>
4534
4535 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4536 parameter.
4537 (generic_value_print): Update.
4538
4539 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4540
4541 Revert commit 982a38f60b0.
4542 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4543
4544 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4545
4546 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4547 avoid use after free.
4548
4549 2020-06-05 Tom de Vries <tdevries@suse.de>
4550
4551 * NEWS: Fix typos.
4552
4553 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4554
4555 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4556 the per_bfd object.
4557 (dwarf2_read_debug_names): Likewise.
4558 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4559 object when re-using a per_bfd object with an index.
4560
4561 2020-06-03 Tom de Vries <tdevries@suse.de>
4562
4563 PR symtab/26046
4564 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4565 children for C++.
4566 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4567 DW_TAG_subprogram.
4568
4569 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4570
4571 * ada-lang.c (ada_language_data): Delete skip_trampoline
4572 initializer.
4573 * c-lang.c (c_language_data): Likewise.
4574 (cplus_language_data): Likewise.
4575 (cplus_language::skip_trampoline): New member function.
4576 (asm_language_data): Delete skip_trampoline initializer.
4577 (minimal_language_data): Likewise.
4578 * d-lang.c (d_language_data): Likewise.
4579 * f-lang.c (f_language_data): Likewise.
4580 * go-lang.c (go_language_data): Likewise.
4581 * language.c (unk_lang_trampoline): Delete function.
4582 (skip_language_trampoline): Update.
4583 (unknown_language_data): Delete skip_trampoline initializer.
4584 (auto_language_data): Likewise.
4585 * language.h (language_data): Delete skip_trampoline field.
4586 (language_defn::skip_trampoline): New function.
4587 * m2-lang.c (m2_language_data): Delete skip_trampoline
4588 initializer.
4589 * objc-lang.c (objc_skip_trampoline): Delete function, move
4590 implementation to objc_language::skip_trampoline.
4591 (objc_language_data): Delete skip_trampoline initializer.
4592 (objc_language::skip_trampoline): New member function with
4593 implementation from objc_skip_trampoline.
4594 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4595 initializer.
4596 * p-lang.c (pascal_language_data): Likewise.
4597 * rust-lang.c (rust_language_data): Likewise.
4598
4599 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4600
4601 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4602 (ada_language::demangle): New member function.
4603 * c-lang.c (c_language_data): Delete la_demangle initializer.
4604 (cplus_language_data): Delete la_demangle initializer.
4605 (cplus_language::demangle): New member function.
4606 (asm_language_data): Delete la_demangle initializer.
4607 (minimal_language_data): Delete la_demangle initializer.
4608 * d-lang.c (d_language_data): Delete la_demangle initializer.
4609 (d_language::demangle): New member function.
4610 * f-lang.c (f_language_data): Delete la_demangle initializer.
4611 (f_language::demangle): New member function.
4612 * go-lang.c (go_language_data): Delete la_demangle initializer.
4613 (go_language::demangle): New member function.
4614 * language.c (language_demangle): Update.
4615 (unk_lang_demangle): Delete.
4616 (unknown_language_data): Delete la_demangle initializer.
4617 (unknown_language::demangle): New member function.
4618 (auto_language_data): Delete la_demangle initializer.
4619 (auto_language::demangle): New member function.
4620 * language.h (language_data): Delete la_demangle field.
4621 (language_defn::demangle): New function.
4622 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4623 * objc-lang.c (objc_language_data): Delete la_demangle
4624 initializer.
4625 (objc_language::demangle): New member function.
4626 * opencl-lang.c (opencl_language_data): Delete la_demangle
4627 initializer.
4628 * p-lang.c (pascal_language_data): Likewise.
4629 * rust-lang.c (rust_language_data): Likewise.
4630 (rust_language::demangle): New member function.
4631
4632 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4633
4634 * ada-lang.c (ada_language_data): Delete la_print_type
4635 initializer.
4636 (ada_language::print_type): New member function.
4637 * c-lang.c (c_language_data): Delete la_print_type initializer.
4638 (c_language::print_type): New member function.
4639 (cplus_language_data): Delete la_print_type initializer.
4640 (cplus_language::print_type): New member function.
4641 (asm_language_data): Delete la_print_type initializer.
4642 (asm_language::print_type): New member function.
4643 (minimal_language_data): Delete la_print_type initializer.
4644 (minimal_language::print_type): New member function.
4645 * d-lang.c (d_language_data): Delete la_print_type initializer.
4646 (d_language::print_type): New member function.
4647 * f-lang.c (f_language_data): Delete la_print_type initializer.
4648 (f_language::print_type): New member function.
4649 * go-lang.c (go_language_data): Delete la_print_type initializer.
4650 (go_language::print_type): New member function.
4651 * language.c (unk_lang_print_type): Delete.
4652 (unknown_language_data): Delete la_print_type initializer.
4653 (unknown_language::print_type): New member function.
4654 (auto_language_data): Delete la_print_type initializer.
4655 (auto_language::print_type): New member function.
4656 * language.h (language_data): Delete la_print_type field.
4657 (language_defn::print_type): New function.
4658 (LA_PRINT_TYPE): Update.
4659 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4660 (m2_language::print_type): New member function.
4661 * objc-lang.c (objc_language_data): Delete la_print_type
4662 initializer.
4663 (objc_language::print_type): New member function.
4664 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4665 to opencl_language::print_type.
4666 (opencl_language_data): Delete la_print_type initializer.
4667 (opencl_language::print_type): New member function, implementation
4668 from opencl_print_type.
4669 * p-lang.c (pascal_language_data): Delete la_print_type
4670 initializer.
4671 (pascal_language::print_type): New member function.
4672 * rust-lang.c (rust_print_type): Delete, implementation moved to
4673 rust_language::print_type.
4674 (rust_language_data): Delete la_print_type initializer.
4675 (rust_language::print_type): New member function, implementation
4676 from rust_print_type.
4677
4678 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4679
4680 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4681 implementation moves to...
4682 (ada_language::sniff_from_mangled_name): ...here. Update return
4683 type.
4684 (ada_language_data): Delete la_sniff_from_mangled_name
4685 initializer.
4686 * c-lang.c (c_language_data): Likewise.
4687 (cplus_language_data): Likewise.
4688 (cplus_language::sniff_from_mangled_name): New member function,
4689 implementation taken from gdb_sniff_from_mangled_name.
4690 (asm_language_data): Delete la_sniff_from_mangled_name
4691 initializer.
4692 (minimal_language_data): Likewise.
4693 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4694 implementation moves to cplus_language::sniff_from_mangled_name.
4695 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4696 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4697 moves to...
4698 (d_language::sniff_from_mangled_name): ...here.
4699 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4700 * f-lang.c (f_language_data): Likewise.
4701 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4702 moves to...
4703 (go_language::sniff_from_mangled_name): ...here.
4704 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4705 * language.c (language_sniff_from_mangled_name): Delete.
4706 (unknown_language_data): Delete la_sniff_from_mangled_name
4707 initializer.
4708 (auto_language_data): Likewise.
4709 * language.h (language_data): Delete la_sniff_from_mangled_name
4710 field.
4711 (language_defn::sniff_from_mangled_name): New function.
4712 (language_sniff_from_mangled_name): Delete declaration.
4713 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4714 field.
4715 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4716 implementation moves to...
4717 (objc_language::sniff_from_mangled_name): ...here.
4718 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4719 * opencl-lang.c (opencl_language_data): Likewise.
4720 * p-lang.c (pascal_language_data): Likewise.
4721 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4722 implementation moves to...
4723 (rust_language::sniff_from_mangled_name): ...here.
4724 (rust_language_data): Delete la_sniff_from_mangled_name
4725 initializer.
4726 * symtab.c (symbol_find_demangled_name): Call
4727 sniff_from_mangled_name member function.
4728
4729 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4730
4731 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4732 initializer.
4733 * c-lang.c (c_language_data): Likewise.
4734 (cplus_language_data): Likewise.
4735 (cplus_language::search_name_hash): New member function.
4736 (asm_language_data): Delete la_search_name_hash initializer.
4737 (minimal_language_data): Likewise.
4738 * d-lang.c (d_language_data): Likewise.
4739 * dictionary.c (default_search_name_hash): Rename to...
4740 (language_defn::search_name_hash): ...this.
4741 * f-lang.c (f_language_data): Likewise.
4742 (f_language::search_name_hash): New member function.
4743 * go-lang.c (go_language_data): Delete la_search_name_hash
4744 initializer.
4745 * language.c (unknown_language_data): Likewise.
4746 (auto_language_data): Likewise.
4747 * language.h (struct language_data): Delete la_search_name_hash
4748 field.
4749 (language_defn::search_name_hash): Declare new member function.
4750 (default_search_name_hash): Delete declaration.
4751 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4752 initializer.
4753 * objc-lang.c (objc_language_data): Likewise.
4754 * opencl-lang.c (opencl_language_data): Likewise.
4755 * p-lang.c (pascal_language_data): Likewise.
4756 * rust-lang.c (rust_language_data): Likewise.
4757 * symtab.c (search_name_hash): Update call.
4758
4759 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4760
4761 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4762 initializer.
4763 * c-lang.c (class compile_instance): Declare.
4764 (c_language_data): Delete la_get_compile_instance initializer.
4765 (c_language::get_compile_instance): New member function.
4766 (cplus_language_data): Delete la_get_compile_instance initializer.
4767 (cplus_language::get_compile_instance): New member function.
4768 (asm_language_data): Delete la_get_compile_instance initializer.
4769 (minimal_language_data): Likewise.
4770 * c-lang.h (c_get_compile_context): Update comment.
4771 (cplus_get_compile_context): Update comment.
4772 * compile/compile.c (compile_to_object): Update calls, don't rely
4773 on function pointer being NULL.
4774 * d-lang.c (d_language_data): Delete la_get_compile_instance
4775 initializer.
4776 * f-lang.c (f_language_data): Likewise.
4777 * go-lang.c (go_language_data): Likewise.
4778 * language.c (unknown_language_data): Likewise.
4779 (auto_language_data): Likewise.
4780 * language.h (language_data): Delete la_get_compile_instance field.
4781 (language_defn::get_compile_instance): New member function.
4782 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4783 initializer.
4784 * objc-lang.c (objc_language_data): Likewise.
4785 * opencl-lang.c (opencl_language_data): Likewise.
4786 * p-lang.c (pascal_language_data): Likewise.
4787 * rust-lang.c (rust_language_data): Likewise.
4788
4789 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4790
4791 * ada-lang.c (ada_add_all_symbols): Update comment.
4792 (ada_iterate_over_symbols): Delete, move implementation to...
4793 (ada_language::iterate_over_symbols): ...here, a new member
4794 function, rewrite to use range based for loop.
4795 (ada_language_data): Delete la_iterate_over_symbols initializer.
4796 * c-lang.c (c_language_data): Likewise.
4797 (cplus_language_data): Likewise.
4798 (asm_language_data): Likewise.
4799 (minimal_language_data): Likewise.
4800 * d-lang.c (d_language_data): Likewise.
4801 * f-lang.c (f_language_data): Likewise.
4802 * go-lang.c (go_language_data): Likewise.
4803 * language.c (unknown_language_data): Likewise.
4804 (auto_language_data): Likewise.
4805 * language.h (language_data): Delete la_iterate_over_symbols field.
4806 (language_defn::iterate_over_symbols): New member function.
4807 (LA_ITERATE_OVER_SYMBOLS): Update.
4808 * linespec.c (iterate_over_all_matching_symtabs): Update.
4809 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4810 initializer.
4811 * objc-lang.c (objc_language_data): Likewise.
4812 * opencl-lang.c (opencl_language_data): Likewise.
4813 * p-lang.c (pascal_language_data): Likewise.
4814 * rust-lang.c (rust_language_data): Likewise.
4815
4816 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4817
4818 * ada-lang.c (ada_language_data): Delete
4819 la_lookup_transparent_type initializer.
4820 * c-lang.c (c_language_data): Likewise.
4821 (cplus_language_data): Likewise.
4822 (cplus_language::lookup_transparent_type): New member function.
4823 (asm_language_data): Delete la_lookup_transparent_type
4824 initializer.
4825 (minimal_language_data): Likewise.
4826 * d-lang.c (d_language_data): Likewise.
4827 * f-lang.c (f_language_data): Likewise.
4828 * go-lang.c (go_language_data): Likewise.
4829 * language.c (unknown_language_data): Likewise.
4830 (auto_language_data): Likewise.
4831 * language.h (struct language_data): Delete
4832 la_lookup_transparent_type field.
4833 (language_defn::lookup_transparent_type): New member function.
4834 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4835 initializer.
4836 * objc-lang.c (objc_language_data): Likewise.
4837 * opencl-lang.c (opencl_language_data): Likewise.
4838 * p-lang.c (pascal_language_data): Likewise.
4839 * rust-lang.c (rust_language_data): Likewise.
4840 * symtab.c (symbol_matches_domain): Update call.
4841
4842 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4843
4844 * ada-lang.c (ada_language_arch_info): Delete function, move
4845 implementation to...
4846 (ada_language::language_arch_info): ...here, a new member
4847 function.
4848 (ada_language_data): Delete la_language_arch_info.
4849 * c-lang.c (c_language_data): Likewise.
4850 (c_language::language_arch_info): New member function.
4851 (cplus_language_arch_info): Delete function, move
4852 implementation to...
4853 (cplus_language::language_arch_info): ...here, a new member
4854 function.
4855 (cplus_language_data): Delete la_language_arch_info.
4856 (asm_language_data): Likewise.
4857 (asm_language::language_arch_info): New member function.
4858 (minimal_language_data): Delete la_language_arch_info.
4859 (minimal_language::language_arch_info): New member function.
4860 * d-lang.c (d_language_arch_info): Delete function, move
4861 implementation to...
4862 (d_language::language_arch_info): ...here, a new member
4863 function.
4864 (d_language_data): Delete la_language_arch_info.
4865 * f-lang.c (f_language_arch_info): Delete function, move
4866 implementation to...
4867 (f_language::language_arch_info): ...here, a new member
4868 function.
4869 (f_language_data): Delete la_language_arch_info.
4870 * go-lang.c (go_language_arch_info): Delete function, move
4871 implementation to...
4872 (go_language::language_arch_info): ...here, a new member
4873 function.
4874 (go_language_data): Delete la_language_arch_info.
4875 * language.c (unknown_language_data): Likewise.
4876 (unknown_language::language_arch_info): New member function.
4877 (auto_language_data): Delete la_language_arch_info.
4878 (auto_language::language_arch_info): New member function.
4879 (language_gdbarch_post_init): Update call to
4880 la_language_arch_info.
4881 * language.h (language_data): Delete la_language_arch_info
4882 function pointer.
4883 (language_defn::language_arch_info): New function.
4884 * m2-lang.c (m2_language_arch_info): Delete function, move
4885 implementation to...
4886 (m2_language::language_arch_info): ...here, a new member
4887 function.
4888 (m2_language_data): Delete la_language_arch_info.
4889 * objc-lang.c (objc_language_arch_info): Delete function, move
4890 implementation to...
4891 (objc_language::language_arch_info): ...here, a new member
4892 function.
4893 (objc_language_data): Delete la_language_arch_info.
4894 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4895 implementation to...
4896 (opencl_language::language_arch_info): ...here, a new member
4897 function.
4898 (opencl_language_data): Delete la_language_arch_info.
4899 * p-lang.c (pascal_language_arch_info): Delete function, move
4900 implementation to...
4901 (pascal_language::language_arch_info): ...here, a new member
4902 function.
4903 (pascal_language_data): Delete la_language_arch_info.
4904 * rust-lang.c (rust_language_arch_info): Delete function, move
4905 implementation to...
4906 (rust_language::language_arch_info): ...here, a new member
4907 function.
4908 (rust_language_data): Delete la_language_arch_info.
4909
4910 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4911
4912 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4913 initializer.
4914 * c-lang.c (c_language_data): Likewise.
4915 (cplus_language_data): Likewise.
4916 (cplus_language::pass_by_reference_info): New method.
4917 (asm_language_data): Delete la_pass_by_reference initializer.
4918 (minimal_language_data): Likewise.
4919 * cp-abi.c (cp_pass_by_reference): Remove use of
4920 default_pass_by_reference.
4921 * d-lang.c (d_language_data): Likewise.
4922 * f-lang.c (f_language_data): Likewise.
4923 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4924 default_pass_by_reference.
4925 * go-lang.c (go_language_data): Likewise.
4926 * language.c (language_pass_by_reference): Update.
4927 (default_pass_by_reference): Delete.
4928 (unknown_language_data): Delete la_pass_by_reference
4929 initializer.
4930 (auto_language_data): Likewise.
4931 * language.h (struct language_data): Delete la_pass_by_reference
4932 field.
4933 (language_defn::pass_by_reference_info): New member function.
4934 (default_pass_by_reference): Delete declaration.
4935 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4936 initializer.
4937 * objc-lang.c (objc_language_data): Likewise.
4938 * opencl-lang.c (opencl_language_data): Likewise.
4939 * p-lang.c (pascal_language_data): Likewise.
4940 * rust-lang.c (rust_language_data): Likewise.
4941
4942 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4943
4944 * ada-lang.c (ada_read_var_value): Delete function, move
4945 implementation to...
4946 (ada_language::read_var_value): ...here.
4947 (ada_language_data): Delete la_read_var_value initializer.
4948 * c-lang.c (c_language_data): Likewise.
4949 (cplus_language_data): Likewise.
4950 (minimal_language_data): Likewise.
4951 * d-lang.c (d_language_data): Likewise.
4952 * f-lang.c (f_language_data): Likewise.
4953 * findvar.c (default_read_var_value): Rename to...
4954 (language_defn::read_var_value): ...this.
4955 * findvar.c (read_var_value): Update header comment, and change to
4956 call member function instead of function pointer.
4957 * go-lang.c (go_language_data): Likewise.
4958 * language.c (unknown_language_data): Delete la_read_var_value
4959 initializer.
4960 (auto_language_data): Likewise.
4961 * language.h (struct language_data): Delete la_read_var_value
4962 field.
4963 (language_defn::read_var_value): New member function.
4964 (default_read_var_value): Delete declaration.
4965 * m2-lang.c (m2_language_data): Delete la_read_var_value
4966 initializer.
4967 * objc-lang.c (objc_language_data): Likewise.
4968 * opencl-lang.c (opencl_language_data): Likewise.
4969 * p-lang.c (pascal_language_data): Likewise.
4970 * rust-lang.c (rust_language_data): Likewise.
4971 * value.h (default_read_var_value): Delete declaration.
4972
4973 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4974
4975 * ada-lang.c (ada_print_array_index): Delete function, move
4976 implementation to...
4977 (ada_language::print_array_index): ...here.
4978 (ada_language_data): Delete la_print_array_index initializer.
4979 * c-lang.c (c_language_data): Likewise.
4980 (cplus_language_data): Likewise.
4981 (minimal_language_data): Likewise.
4982 * d-lang.c (d_language_data): Likewise.
4983 * f-lang.c (f_language_data): Likewise.
4984 * go-lang.c (go_language_data): Likewise.
4985 * language.c (default_print_array_index): Delete function, move
4986 implementation to...
4987 (language_defn::print_array_index): ...here.
4988 (unknown_language_data): Delete la_print_array_index initializer.
4989 (auto_language_data): Likewise.
4990 * language.h (struct language_data): Delete la_print_array_index
4991 field.
4992 (language_defn::print_array_index): New member function.
4993 (LA_PRINT_ARRAY_INDEX): Update.
4994 (default_print_array_index): Delete declaration.
4995 * m2-lang.c (m2_language_data): Delete la_print_array_index
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 * gdb/ada-lang.c (ada_language_defn): Convert to...
5005 (ada_language_data): ...this.
5006 (class ada_language): New class.
5007 (ada_language_defn): New static global.
5008 * gdb/c-lang.c (c_language_defn): Convert to...
5009 (c_language_data): ...this.
5010 (class c_language): New class.
5011 (c_language_defn): New static global.
5012 (cplus_language_defn): Convert to...
5013 (cplus_language_data): ...this.
5014 (class cplus_language): New class.
5015 (cplus_language_defn): New static global.
5016 (asm_language_defn): Convert to...
5017 (asm_language_data): ...this.
5018 (class asm_language): New class.
5019 (asm_language_defn): New static global.
5020 (minimal_language_defn): Convert to...
5021 (minimal_language_data): ...this.
5022 (class minimal_language): New class.
5023 (minimal_language_defn): New static global.
5024 * gdb/d-lang.c (d_language_defn): Convert to...
5025 (d_language_data): ...this.
5026 (class d_language): New class.
5027 (d_language_defn): New static global.
5028 * gdb/f-lang.c (f_language_defn): Convert to...
5029 (f_language_data): ...this.
5030 (class f_language): New class.
5031 (f_language_defn): New static global.
5032 * gdb/go-lang.c (go_language_defn): Convert to...
5033 (go_language_data): ...this.
5034 (class go_language): New class.
5035 (go_language_defn): New static global.
5036 * gdb/language.c (unknown_language_defn): Remove declaration.
5037 (current_language): Initialize to nullptr, real initialization is
5038 moved to _initialize_language.
5039 (languages): Delete global.
5040 (language_defn::languages): Define.
5041 (set_language_command): Use language_defn::languages.
5042 (set_language): Likewise.
5043 (range_error): Likewise.
5044 (language_enum): Likewise.
5045 (language_def): Likewise.
5046 (add_set_language_command): Use language_def::languages for the
5047 language list, and language_def to lookup language pointers.
5048 (skip_language_trampoline): Use language_defn::languages.
5049 (unknown_language_defn): Convert to...
5050 (unknown_language_data): ...this.
5051 (class unknown_language): New class.
5052 (unknown_language_defn): New static global.
5053 (auto_language_defn): Convert to...
5054 (auto_language_data): ...this.
5055 (class auto_language): New class.
5056 (auto_language_defn): New static global.
5057 (language_gdbarch_post_init): Use language_defn::languages.
5058 (_initialize_language): Initialize current_language.
5059 * gdb/language.h (struct language_defn): Rename to...
5060 (struct language_data): ...this.
5061 (struct language_defn): New.
5062 (auto_language_defn): Delete.
5063 (unknown_language_defn): Delete.
5064 (minimal_language_defn): Delete.
5065 (ada_language_defn): Delete.
5066 (asm_language_defn): Delete.
5067 (c_language_defn): Delete.
5068 (cplus_language_defn): Delete.
5069 (d_language_defn): Delete.
5070 (f_language_defn): Delete.
5071 (go_language_defn): Delete.
5072 (m2_language_defn): Delete.
5073 (objc_language_defn): Delete.
5074 (opencl_language_defn): Delete.
5075 (pascal_language_defn): Delete.
5076 (rust_language_defn): Delete.
5077 * gdb/m2-lang.c (m2_language_defn): Convert to...
5078 (m2_language_data): ...this.
5079 (class m2_language): New class.
5080 (m2_language_defn): New static global.
5081 * gdb/objc-lang.c (objc_language_defn): Convert to...
5082 (objc_language_data): ...this.
5083 (class objc_language): New class.
5084 (objc_language_defn): New static global.
5085 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5086 (opencl_language_data): ...this.
5087 (class opencl_language): New class.
5088 (opencl_language_defn): New static global.
5089 * gdb/p-lang.c (pascal_language_defn): Convert to...
5090 (pascal_language_data): ...this.
5091 (class pascal_language): New class.
5092 (pascal_language_defn): New static global.
5093 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5094 language pointer, update comment format.
5095 * gdb/rust-lang.c (rust_language_defn): Convert to...
5096 (rust_language_data): ...this.
5097 (class rust_language): New class.
5098 (rust_language_defn): New static global.
5099
5100 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5101
5102 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5103 member variable.
5104 <m_stmt_at_address>: New member variable.
5105 (lnp_state_machine::record_line): Don't record some lines, update
5106 tracking of is_stmt at the same address.
5107 (lnp_state_machine::lnp_state_machine): Initialise new member
5108 variables.
5109
5110 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5111
5112 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5113 "-include gnu-nat-mig.h".
5114 * gnu-nat-mig.h: New file.
5115 * gnu-nat.c: Include "gnu-nat-mig.h".
5116 (exc_server, msg_reply_server, notify_server,
5117 process_reply_server): Remove declarations.
5118
5119 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5120
5121 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5122 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5123 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5124 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5125 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5126 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5127 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5128 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5129 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5130 to gnu_nat_target class.
5131 * gnu-nat.c: Likewise.
5132 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5133 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5134 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5135 object.
5136 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5137 instead of `gnu_target'.
5138
5139 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5140
5141 * i386-gnu-tdep.c: Include "gdbcore.h"
5142 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5143 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5144 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5145 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5146 i386_gnu_sigcontext_addr): New functions
5147 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5148 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5149 tdep.
5150
5151 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5152
5153 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5154 before fork_inferior call. Avoid calling it if target_is_pushed returns
5155 true.
5156
5157 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5158
5159 * gnu-nat.h (gnu_target): New variable declaration.
5160 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5161 gnu_target.
5162 * gnu-nat.c (gnu_target): New variable.
5163 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5164 add_thread_silent, and add_thread calls.
5165 (gnu_nat_target::create_inferior): Pass gnu_target to
5166 add_thread_silent, thread_change_ptid call.
5167 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5168 call.
5169
5170 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5171
5172 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5173 (gnu_nat_target::find_memory_regions): Remove unused
5174 `old_address' variable.
5175
5176 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5177
5178 * gnu-nat.c: Include "gdbarch.h".
5179
5180 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5181
5182 * reply_mig_hack.awk (Error return): Cast function through
5183 void *, to bypass compiler function call check.
5184
5185 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5186
5187 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5188 $(srcdir)/reply_mig_hack.awk.
5189
5190 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5191
5192 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5193
5194 2020-05-30 Jonny Grant <jg@jguk.org>
5195
5196 * configure.ac (ACX_BUGURL): change bug URL to https.
5197
5198 2020-05-30 Pedro Alves <palves@redhat.com>
5199
5200 * cp-support.c (replace_typedefs_template): New.
5201 (replace_typedefs_qualified_name): Handle
5202 DEMANGLE_COMPONENT_TEMPLATE.
5203
5204 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5205
5206 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5207 dwarf2/index-cache.h, dwarf2/index-write.c,
5208 dwarf2/index-write.h, dwarf2/line-header.c,
5209 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5210 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5211 variables and fields from `dwarf2_per_objfile` to just
5212 `per_objfile` throughout.
5213
5214 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5215
5216 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5217 <push_dwarf_reg_entry_value>: Add comment.
5218
5219 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5220 Keith Seitz <keiths@redhat.com>
5221
5222 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5223 instead of PyEval_ReleaseLock.
5224 (class gdbpy_gil): Move to earlier in file.
5225 (finalize_python): Set gdb_python_initialized.
5226 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5227 when not initialized.
5228
5229 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5230
5231 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5232 <push_dwarf_reg_entry_value>: Remove assert. Override
5233 per_objfile with caller_per_objfile.
5234
5235 2020-05-28 Tom de Vries <tdevries@suse.de>
5236
5237 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5238 PR gold/15646 workaround to symbol kind "type".
5239
5240 2020-05-27 Tom Tromey <tromey@adacore.com>
5241
5242 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5243
5244 2020-05-27 Tom Tromey <tromey@adacore.com>
5245
5246 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5247 Use htab_find_with_hash.
5248 <add_abbrev>: Remove "abbrev_number" parameter.
5249 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5250 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5251 (hash_abbrev): Add comment.
5252 (abbrev_table::lookup_abbrev): Move to header file.
5253 (abbrev_table::read): Update.
5254
5255 2020-05-27 Tom Tromey <tromey@adacore.com>
5256
5257 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5258 method.
5259 <canonical_name>: New member.
5260 <raw_name>: Rename from "name".
5261 (partial_die_info): Initialize canonical_name.
5262 (scan_partial_symbols): Check raw_name.
5263 (partial_die_parent_scope, partial_die_full_name)
5264 (add_partial_symbol, add_partial_subprogram)
5265 (add_partial_enumeration, load_partial_dies): Use "name" method.
5266 (partial_die_info::name): New method.
5267 (partial_die_info::read, guess_partial_die_structure_name)
5268 (partial_die_info::fixup): Update.
5269
5270 2020-05-27 Tom Tromey <tromey@adacore.com>
5271
5272 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5273 <get_ref_die_offset>: Inline.
5274 <get_ref_die_offset_complaint>: New method.
5275 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5276 (attribute::get_ref_die_offset_complaint): Rename from
5277 get_ref_die_offset. Just issue complaint.
5278
5279 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5280
5281 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5282
5283 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5284
5285 * exec.c (exec_file_attach): Use errno value of first openp failure.
5286
5287 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5288
5289 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5290 Don't close thread handle.
5291
5292 2020-05-27 Tom Tromey <tom@tromey.com>
5293 Simon Marchi <simon.marchi@efficios.com>
5294
5295 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5296 shared_ptr.
5297 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5298 member.
5299 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5300 dwarf2_per_bfd_objfile_data_key>: New globals.
5301 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5302 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5303 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5304 shared.
5305 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5306 short-circuit when sharing.
5307 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5308 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5309
5310 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5311
5312 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5313 to...
5314 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5315 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5316
5317 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5318
5319 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5320 build_name_components, find_name_components_bounds>:
5321 Add per_objfile parameter.
5322 (struct mapped_index) <symbol_name_at>: Likewise.
5323 (struct mapped_debug_names): Remove constructor.
5324 <dwarf2_per_objfile>: Remove field.
5325 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5326 (mapped_index_base::find_name_components_bounds,
5327 mapped_index_base::build_name_components,
5328 dw2_expand_symtabs_matching_symbol): Likewise.
5329 (class mock_mapped_index) <symbol_name_at>: Likewise.
5330 (check_match): Likewise.
5331 (check_find_bounds_finds): Likewise.
5332 (test_mapped_index_find_name_component_bounds): Update.
5333 (CHECK_MATCH): Update.
5334 (dw2_expand_symtabs_matching): Update.
5335 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5336 per_objfile parameter.
5337 <find_vec_in_debug_names>: Likewise.
5338 <m_per_objfile>: New field.
5339 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5340 parameter.
5341 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5342 (dw2_debug_names_iterator::next): Update.
5343 (dw2_debug_names_lookup_symbol): Update.
5344 (dw2_debug_names_expand_symtabs_for_function): Update.
5345 (dw2_debug_names_map_matching_symbols): Update.
5346 (dw2_debug_names_expand_symtabs_matching): Update.
5347 (dwarf2_read_debug_names): Update.
5348
5349 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5350
5351 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5352 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5353 move to dwarf2_per_objfile.
5354 <read_in_chain>: Remove.
5355 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5356 remove_all_cus, age_comp_units>: New methods.
5357 <m_dwarf2_cus>: New member.
5358 (struct dwarf2_per_cu_data) <cu>: Remove.
5359 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5360 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5361 moved to methods of dwarf2_per_objfile.
5362 (dwarf2_clear_marks): Remove.
5363 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5364 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5365 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5366 (dwarf2_per_objfile::remove_all_cus): New.
5367 (class free_cached_comp_units) <~free_cached_comp_units>:
5368 Update.
5369 (load_cu): Update.
5370 (dw2_do_instantiate_symtab): Adjust.
5371 (fill_in_sig_entry_from_dwo_entry): Adjust.
5372 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5373 (cutu_reader::cutu_reader): Likewise.
5374 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5375 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5376 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5377 and dwarf2_per_objfile::age_comp_units.
5378 (load_partial_comp_unit): Update.
5379 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5380 (process_queue): Likewise.
5381 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5382 backlink.
5383 (dwarf2_read_addr_index): Likewise.
5384 (follow_die_offset): Likewise.
5385 (dwarf2_fetch_die_loc_sect_off): Likewise.
5386 (dwarf2_fetch_constant_bytes): Likewise.
5387 (dwarf2_fetch_die_type_sect_off): Likewise.
5388 (follow_die_sig_1): Likewise.
5389 (load_full_type_unit): Likewise.
5390 (read_signatured_type): Likewise.
5391 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5392 (dwarf2_cu::~dwarf2_cu): Remove.
5393 (dwarf2_per_objfile::get_cu): New.
5394 (dwarf2_per_objfile::set_cu): New.
5395 (age_cached_comp_units): Rename to...
5396 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5397 to std::unordered_map.
5398 (free_one_cached_comp_unit): Rename to...
5399 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5400 to std::unordered_map.
5401 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5402 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5403 a dwarf2_per_objfile in data.
5404 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5405 (dwarf2_clear_marks): Remove.
5406
5407 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5408
5409 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5410 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5411 (init_tu_and_read_dwo_dies): Likewise.
5412 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5413 (cutu_reader::cutu_reader): Likewise.
5414 (load_partial_comp_unit): Likewise.
5415 (process_psymtab_comp_unit): Update.
5416 (build_type_psymtabs_1): Update.
5417 (process_skeletonless_type_unit): Update.
5418 (load_full_comp_unit): Update.
5419 (find_partial_die): Update.
5420 (dwarf2_read_addr_index): Update.
5421 (read_signatured_type): Update.
5422
5423 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5424
5425 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5426 m_header_read_in>: New fields.
5427 <get_header>: New method.
5428 * dwarf2/read.c (per_cu_header_read_in): Remove.
5429 (dwarf2_per_cu_data::get_header): New.
5430 (dwarf2_per_cu_data::addr_size): Update.
5431 (dwarf2_per_cu_data::offset_size): Update.
5432 (dwarf2_per_cu_data::ref_addr_size): Update.
5433
5434 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5435
5436 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5437 (dw2_do_instantiate_symtab): Update.
5438 (queue_and_load_all_dwo_tus): Change parameter from
5439 dwarf2_per_cu_data to dwarf2_cu.
5440 (dwarf2_fetch_die_loc_sect_off): Update.
5441 (dwarf2_fetch_constant_bytes): Update.
5442 (dwarf2_fetch_die_type_sect_off): Update.
5443
5444 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5445
5446 * dwarf2/read.c (process_full_comp_unit,
5447 process_full_type_unit): Remove per_cu, per_objfile paramters.
5448 Add dwarf2_cu parameter.
5449 (process_queue): Update.
5450
5451 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5452
5453 * dwarf2/read.c (create_cu_from_index_list): Replace
5454 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5455 (create_cus_from_index_list): Likewise.
5456 (create_cus_from_index): Likewise.
5457 (create_signatured_type_table_from_index): Likewise.
5458 (create_cus_from_debug_names_list): Likewise.
5459 (create_cus_from_debug_names): Likewise.
5460 (dwarf2_read_gdb_index): Update.
5461 (dwarf2_read_debug_names): Update.
5462
5463 2020-05-27 Tom Tromey <tom@tromey.com>
5464 Simon Marchi <simon.marchi@efficios.com>
5465
5466 * dwarf2/read.h (struct dwarf2_per_objfile)
5467 <get_type_for_signatured_type, set_type_for_signatured_type>:
5468 New methods.
5469 <m_type_map>: New member.
5470 (struct signatured_type) <type>: Remove.
5471 * dwarf2/read.c
5472 (dwarf2_per_objfile::get_type_for_signatured_type,
5473 dwarf2_per_objfile::set_type_for_signatured_type): New.
5474 (get_signatured_type): Use new methods.
5475
5476 2020-05-27 Tom Tromey <tom@tromey.com>
5477 Simon Marchi <simon.marchi@efficios.com>
5478
5479 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5480 (struct dwarf2_per_objfile) <type_units>: New member.
5481 <get_type_unit_group_unshareable>: New method.
5482 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5483 num_symtabs, symtabs>: Remove; move to
5484 type_unit_group_unshareable.
5485 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5486 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5487 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5488
5489 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5490
5491 * dwarf2/read.h (struct dwarf2_per_cu_data):
5492 <dwarf2_per_objfile>: Remove.
5493 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5494 dwarf2_per_objfile.
5495 (create_signatured_type_table_from_index): Likewise.
5496 (create_signatured_type_table_from_debug_names): Likewise.
5497 (create_debug_type_hash_table): Likewise.
5498 (fill_in_sig_entry_from_dwo_entry): Likewise.
5499 (create_type_unit_group): Likewise.
5500 (read_comp_units_from_section): Likewise.
5501 (create_cus_hash_table): Likewise.
5502
5503 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5504
5505 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5506 dwarf2_per_cu_data::dwarf2_per_objfile.
5507 (compute_compunit_symtab_includes): Likewise.
5508 (dwarf2_cu::start_symtab): Likewise.
5509
5510 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5511
5512 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5513 parameter.
5514 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5515 (read_namespace_alias): Update.
5516 (lookup_die_type): Update.
5517 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5518 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5519 Update.
5520 (disassemble_dwarf_expression): Update.
5521
5522 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5523
5524 * dwarf2/read.h (struct dwarf2_queue_item): Add
5525 dwarf2_per_objfile parameter, assign new parameter.
5526 <per_objfile>: New field.
5527 * dwarf2/read.c (free_one_cached_comp_unit): Add
5528 dwarf2_per_objfile parameter.
5529 (queue_comp_unit): Likewise.
5530 (dw2_do_instantiate_symtab): Update.
5531 (process_psymtab_comp_unit): Update.
5532 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5533 (process_imported_unit_die): Update.
5534 (queue_and_load_dwo_tu): Update.
5535 (follow_die_offset): Update.
5536 (follow_die_sig_1): Update.
5537
5538 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5539
5540 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5541 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5542 (read_call_site_scope): Assign per_objfile.
5543 (dwarf2_per_cu_data::objfile): Remove.
5544 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5545 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5546 dwarf2_per_objfile parameter.
5547 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5548 dwarf2_per_objfile parameter.
5549 (dwarf_expr_reg_to_entry_parameter): Add output
5550 dwarf2_per_objfile parameter.
5551 (locexpr_get_frame_base): Update.
5552 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5553 <push_dwarf_reg_entry_value>: Update.
5554 <call_site_to_target_addr>: Update.
5555 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5556 parameter.
5557 (value_of_dwarf_reg_entry): Update.
5558 (rw_pieced_value): Update.
5559 (indirect_synthetic_pointer): Update.
5560 (dwarf2_evaluate_property): Update.
5561 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5562 parameter.
5563 (locexpr_read_variable): Update.
5564 (locexpr_get_symbol_read_needs): Update.
5565 (loclist_read_variable): Update.
5566
5567 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5568
5569 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5570 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5571 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5572 parameter.
5573 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5574 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5575 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5576 parameter.
5577 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5578 sect_variable_value): Add dwarf2_per_objfile parameter.
5579 (class dwarf_evaluate_loc_desc) <dwarf_call,
5580 dwarf_variable_value>: Update.
5581 (fetch_const_value_from_synthetic_pointer): Add
5582 dwarf2_per_objfile parameter.
5583 (fetch_const_value_from_synthetic_pointer): Update.
5584 (coerced_pieced_ref): Update.
5585 (class symbol_needs_eval_context) <dwarf_call,
5586 dwarf_variable_value>: Update.
5587 (dwarf2_compile_expr_to_ax): Update.
5588
5589 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5592 parameter.
5593 (dwarf2_evaluate_loc_desc_full): Update.
5594
5595 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5596
5597 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5598 parameter.
5599 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5600 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5601 dwarf2_per_objfile parameter.
5602 (decode_debug_loc_dwo_addresses): Likewise.
5603 (dwarf2_find_location_expression): Update.
5604 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5605 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5606 parameter.
5607 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5608 parameter.
5609 (locexpr_describe_location_1): Likewise.
5610 (locexpr_describe_location): Update.
5611
5612 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5613
5614 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5615 Remove.
5616 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5617 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5618 (dwarf2_compile_property_to_c): Update.
5619 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5620 use text offset from objfile.
5621 (locexpr_tracepoint_var_ref): Update.
5622 (locexpr_generate_c_location): Update.
5623 (loclist_describe_location): Update.
5624 (loclist_tracepoint_var_ref): Update.
5625 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5626 dwarf2_per_objfile parameter.
5627 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5628 use text offset from objfile.
5629 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5630
5631 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5632
5633 * dwarf2/expr.h (struct dwarf_expr_context)
5634 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5635 <offset>: Remove.
5636 <per_objfile>: New member.
5637 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5638 dwarf2_per_objfile parameter. Don't set offset, set
5639 per_objfile.
5640 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5641 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5642 a dwarf2_per_objfile object instead of an offset.
5643 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5644 constructor.
5645 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5646 to dwarf2_expr_executor constructor. Don't set offset.
5647 (dwarf2_fetch_cfa_info): Update.
5648 (struct dwarf2_frame_cache) <text_offset>: Remove.
5649 <per_objfile>: New field.
5650 (dwarf2_frame_cache): Update.
5651 (dwarf2_frame_prev_register): Update.
5652 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5653 <dwarf_evaluate_loc_desc>: Add constructor.
5654 (dwarf2_evaluate_loc_desc_full): Update.
5655 (dwarf2_locexpr_baton_eval): Update.
5656 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5657 Add constructor.
5658 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5659
5660 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5661
5662 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5663 addr_sized_int_type>: Move to dwarf2_cu.
5664 <int_type>: Move to dwarf2_per_objfile.
5665 (struct dwarf2_per_objfile) <int_type>: Move here.
5666 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5667 addr_sized_int_type>: Move here.
5668 (read_func_scope): Update.
5669 (read_array_type): Update.
5670 (read_tag_string_type): Update.
5671 (attr_to_dynamic_prop): Update.
5672 (dwarf2_per_cu_data::int_type): Rename to...
5673 (dwarf2_per_objfile::int_type): ... this.
5674 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5675 (dwarf2_cu::addr_sized_int_type): ... this.
5676 (read_subrange_type): Update.
5677 (dwarf2_per_cu_data::addr_type): Rename to...
5678 (dwarf2_cu::addr_type): ... this.
5679 (set_die_type): Update.
5680
5681 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5682
5683 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5684 data through per_cu->cu.
5685
5686 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5687
5688 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5689 dwarf2_per_cu_data parameter fo dwarf2_cu.
5690 (lookup_dwo_type_unit): Likewise.
5691 (read_cutu_die_from_dwo): Likewise.
5692 (lookup_dwo_unit): Likewise.
5693 (open_and_init_dwo_file): Likewise.
5694 (lookup_dwo_cutu): Likewise.
5695 (lookup_dwo_comp_unit): Likewise.
5696 (lookup_dwo_type_unit): Likewise.
5697 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5698 (cutu_reader::cutu_reader): Update.
5699
5700 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5701
5702 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5703 parameter.
5704 (process_full_type_unit): Likewise.
5705 (process_queue): Update.
5706
5707 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5708
5709 * dwarf2/read.c (recursively_compute_inclusions): Add
5710 dwarf2_per_objfile parameter.
5711 (compute_compunit_symtab_includes): Likewise.
5712 (process_cu_includes): Update.
5713
5714 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5715
5716 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5717 parameter.
5718 (create_type_unit_group): Update.
5719 (process_psymtab_comp_unit_reader): Update.
5720 (build_type_psymtabs_reader): Update.
5721
5722 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5723
5724 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5725 object through m_this_cu->cu.
5726
5727 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5728
5729 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5730 the info parameter.
5731 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5732
5733 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5734
5735 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5736 per_objfile parameter.
5737 (load_full_type_unit): Add per_objfile parameter.
5738 (read_signatured_type): Likewise.
5739 (load_full_comp_unit): Likewise.
5740 (load_cu): Likewise.
5741 (dw2_do_instantiate_symtab): Likewise.
5742 (dw2_get_file_names): Likewise.
5743 (dw2_map_symtabs_matching_filename): Update.
5744 (dw_expand_symtabs_matching_file_matcher): Update.
5745 (dw2_map_symbol_filenames): Update.
5746 (process_psymtab_comp_unit): Add per_objfile parameter.
5747 (build_type_psymtabs_1): Update.
5748 (process_skeletonless_type_unit): Update.
5749 (dwarf2_build_psymtabs_hard): Update.
5750 (load_partial_comp_unit): Add per_objfile parameter.
5751 (scan_partial_symbols): Update.
5752 (load_full_comp_unit): Add per_objfile parameter.
5753 (process_imported_unit_die): Update.
5754 (create_cus_hash_table): Update.
5755 (find_partial_die): Update.
5756 (dwarf2_read_addr_index): Update.
5757 (follow_die_offset): Update.
5758 (dwarf2_fetch_die_loc_sect_off): Update.
5759 (dwarf2_fetch_constant_bytes): Update.
5760 (dwarf2_fetch_die_type_sect_off): Update.
5761 (follow_die_sig_1): Update.
5762 (load_full_type_unit): Add per_objfile parameter.
5763 (read_signatured_type): Likewise.
5764
5765 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5766
5767 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5768 of objfile_name.
5769
5770 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5771
5772 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5773 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5774 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5775 field.
5776 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5777 (create_cus_from_index): Update.
5778 (dwarf2_read_gdb_index): Update.
5779 (create_cus_from_debug_names): Update.
5780 (dwarf2_read_debug_names): Update.
5781 (get_abbrev_section_for_cu): Update.
5782 (create_all_comp_units): Update.
5783 (read_attribute_value): Update.
5784 (get_debug_line_section): Update.
5785 * dwarf2/index-cache.c (index_cache::store): Update.
5786 * dwarf2/index-write.c (save_gdb_index_command): Update.
5787 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5788
5789 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5790
5791 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5792 member.
5793 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5794 dwarf2_per_cu_data::per_bfd.
5795 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5796 (create_type_unit_group): Likewise.
5797 (queue_comp_unit): Remove reference to
5798 per_cu->dwarf2_per_objfile.
5799 (maybe_queue_comp_unit): Likewise.
5800 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5801 (create_cus_hash_table): Assign new field.
5802
5803 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5804
5805 * dwarf2/read.c: Replace
5806 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5807 dwarf2_cu->per_objfile throughout.
5808
5809 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5810
5811 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5812 parameter, don't use per_cu->dwarf2_per_objfile.
5813 (dw2_instantiate_symtab): Likewise.
5814 (dw2_find_last_source_symtab): Update.
5815 (dw2_map_expand_apply): Update.
5816 (dw2_lookup_symbol): Update.
5817 (dw2_expand_symtabs_for_function): Update.
5818 (dw2_expand_all_symtabs): Update.
5819 (dw2_expand_symtabs_with_fullname): Update.
5820 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5821 don't use per_cu->dwarf2_per_objfile.
5822 (dw2_expand_marked_cus): Update.
5823 (dw2_find_pc_sect_compunit_symtab): Update.
5824 (dw2_debug_names_lookup_symbol): Update.
5825 (dw2_debug_names_expand_symtabs_for_function): Update.
5826 (dw2_debug_names_map_matching_symbols): Update.
5827 (dwarf2_psymtab::expand_psymtab): Update.
5828
5829 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5830
5831 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5832 <per_objfile>: New member.
5833 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5834 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5835 call to dwarf2_cu.
5836 (cutu_reader::cutu_reader): Update.
5837 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5838
5839 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5840
5841 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5842 struct dwarf2_per_objfile.
5843 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5844 dwarf2_per_bfd.
5845 * dwarf2/read.c (set_die_type): Update.
5846 (get_die_type_at_offset): Update.
5847
5848 2020-05-27 Tom Tromey <tom@tromey.com>
5849 Simon Marchi <simon.marchi@efficios.com>
5850
5851 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5852 method.
5853 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5854 get_symtab, set_symtab>: New methods.
5855 <m_symtabs>: New field.
5856 (struct dwarf2_psymtab): Derive from partial_symtab.
5857 <readin_p, get_compunit_symtab>: Declare methods.
5858 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5859 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5860 New methods.
5861 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5862 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5863 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5864 (dw2_symtab_iter_next, dw2_print_stats)
5865 (dw2_expand_symtabs_with_fullname)
5866 (dw2_expand_symtabs_matching_one)
5867 (dw_expand_symtabs_matching_file_matcher)
5868 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5869 (dw2_debug_names_iterator::next)
5870 (dw2_debug_names_map_matching_symbols)
5871 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5872 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5873 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5874 New methods.
5875 (get_compunit_symtab, process_full_comp_unit)
5876 (process_full_type_unit): Update.
5877 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5878
5879 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5880
5881 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5882 then introduce a new dwarf2_per_objfile type.
5883 <read_line_string>: Move to the new dwarf2_per_objfile type.
5884 <objfile>: Likewise.
5885 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5886 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5887 dwarf2_per_objfile->per_bfd.
5888 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5889 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5890 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5891 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5892 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5893 (dwarf2_per_objfile::locate_sections): Rename to...
5894 (dwarf2_per_bfd::locate_sections): ... this.
5895 (dwarf2_per_objfile::get_cutu): Rename to...
5896 (dwarf2_per_bfd::get_cutu): ... this.
5897 (dwarf2_per_objfile::get_cu): Rename to...
5898 (dwarf2_per_bfd::get_cu): ... this.
5899 (dwarf2_per_objfile::get_tu): Rename to...
5900 (dwarf2_per_bfd::get_tu): ... this.
5901 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5902 (dwarf2_per_bfd::allocate_per_cu): ... this.
5903 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5904 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5905 (get_gdb_index_contents_ftype): Change parameter from
5906 dwarf2_per_objfile to dwarf2_per_bfd.
5907 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5908 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5909
5910 2020-05-27 Tom Tromey <tom@tromey.com>
5911 Simon Marchi <simon.marchi@efficios.com>
5912
5913 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5914 (allocate_piece_closure): Set "per_objfile" member.
5915 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5916 (locexpr_describe_location, loclist_describe_location): Use new
5917 member.
5918 * dwarf2/read.c (read_call_site_scope)
5919 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5920 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5921 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5922 handle_data_member_location): Set per_objfile member.
5923 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5924 member.
5925 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5926
5927 2020-05-27 Tom Tromey <tom@tromey.com>
5928
5929 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5930 allocate_signatured_type>: Declare new methods.
5931 <m_num_psymtabs>: New member.
5932 (struct dwarf2_per_cu_data) <index>: New member.
5933 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5934 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5935 (create_cu_from_index_list): Use allocate_per_cu.
5936 (create_signatured_type_table_from_index)
5937 (create_signatured_type_table_from_debug_names)
5938 (create_debug_type_hash_table, add_type_unit)
5939 (read_comp_units_from_section): Use allocate_signatured_type.
5940
5941 2020-05-27 Tom Tromey <tom@tromey.com>
5942
5943 * psymtab.c (partial_map_expand_apply)
5944 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5945 (psym_lookup_global_symbol_language)
5946 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5947 (psym_print_stats, psym_expand_symtabs_for_function)
5948 (psym_map_symbol_filenames, psym_map_matching_symbols)
5949 (psym_expand_symtabs_matching)
5950 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5951 (maintenance_check_psymtabs): Update.
5952 * psympriv.h (struct partial_symtab) <readin_p,
5953 get_compunit_symtab>: Add objfile parameter.
5954 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5955 Likewise.
5956 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5957 get_compunit_symtab>: Likewise.
5958 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5959
5960 2020-05-27 Tom Tromey <tom@tromey.com>
5961
5962 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5963 member.
5964 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5965 (create_cu_from_index_list)
5966 (create_signatured_type_table_from_index)
5967 (create_signatured_type_table_from_debug_names)
5968 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5969 (dwarf2_create_include_psymtab)
5970 (create_debug_type_hash_table, add_type_unit)
5971 (create_type_unit_group, read_comp_units_from_section)
5972 (dwarf2_compute_name, create_cus_hash_table)
5973 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5974 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5975 obstack.
5976 (dw2_get_real_path): Likewise. Change argument to
5977 dwarf2_per_objfile.
5978
5979 2020-05-27 Luis Machado <luis.machado@linaro.org>
5980
5981 PR tdep/26000
5982 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5983 for ldrd (immediate).
5984
5985 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5986
5987 * command.h: Add comment giving the name of class_tui.
5988 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5989 create the fake command for the help for class_tui.
5990
5991 2020-05-26 Tom Tromey <tromey@adacore.com>
5992
5993 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5994 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5995 (val_atr): New function.
5996 (value_val_atr): Use it.
5997 * ada-valprint.c (print_optional_low_bound): Change low bound
5998 handling for enums.
5999 (val_print_packed_array_elements): Don't call discrete_position.
6000 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6001 discrete_position for enum types.
6002 * language.c (default_print_array_index): Change type.
6003 * language.h (struct language_defn) <la_print_array_index>: Add
6004 index_type parameter, change type of index_value.
6005 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6006 (default_print_array_index): Update.
6007 * valprint.c (maybe_print_array_index): Don't call
6008 value_from_longest. Update.
6009 (value_print_array_elements): Don't call discrete_position.
6010
6011 2020-05-26 Tom Tromey <tromey@adacore.com>
6012
6013 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6014 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6015
6016 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6017
6018 PR gdb/13519
6019 * avr-tdep.c (avr_integer_to_address): Return data or code
6020 address accordingly to the second 'type' argument of the
6021 function.
6022
6023 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6024
6025 * infcmd.c, inferior.h: (construct_inferior_arguments):
6026 Moved function from here to gdbsupport/common-inferior.{h,cc}
6027
6028 2020-05-23 Tom Tromey <tom@tromey.com>
6029
6030 Revert commit eca1f90c:
6031 * NEWS: Remove entry for completion styling.
6032 * completer.c (_rl_completion_prefix_display_length): Move
6033 declaration later.
6034 (gdb_fnprint): Revert.
6035 (gdb_display_match_list_1): Likewise.
6036 * cli/cli-style.c (completion_prefix_style)
6037 (completion_difference_style, completion_suffix_style): Remove.
6038 (_initialize_cli_style): Revert.
6039 * cli/cli-style.h (completion_prefix_style)
6040 (completion_difference_style, completion_suffix_style): Don't
6041 declare.
6042
6043 2020-05-24 Pedro Alves <palves@redhat.com>
6044
6045 * symtab.c (completion_list_add_name): Return boolean indication
6046 of whether the symbol matched.
6047 (completion_list_add_symbol): Don't try to remove C++ aliases if
6048 the symbol didn't match in the first place.
6049 * symtab.h (completion_list_add_name): Return bool.
6050
6051 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6052
6053 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6054 type::field.
6055
6056 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6057
6058 GDB 9.2 released.
6059
6060 2020-05-23 Tom Tromey <tom@tromey.com>
6061
6062 * NEWS: Add entry for completion styling.
6063 * completer.c (_rl_completion_prefix_display_length): Move
6064 declaration earlier.
6065 (gdb_fnprint): Use completion_style.
6066 (gdb_display_match_list_1): Likewise.
6067 * cli/cli-style.c (completion_prefix_style)
6068 (completion_difference_style, completion_suffix_style): New
6069 globals.
6070 (_initialize_cli_style): Register new globals.
6071 * cli/cli-style.h (completion_prefix_style)
6072 (completion_difference_style, completion_suffix_style): Declare.
6073
6074 2020-05-23 Pedro Alves <palves@redhat.com>
6075
6076 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6077 (parse_escape): Use ISDIGIT instead of isdigit.
6078 (puts_debug): Use gdb_isprint instead of isprint.
6079 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6080 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6081 ISSPACE instead of isspace.
6082 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6083 instead of isspace.
6084 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6085 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6086 instead of isxdigit and ISDIGIT instead of isdigit.
6087
6088 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6089
6090 * gdbtypes.h (struct type) <field>: New method.
6091 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6092 or type::field.
6093
6094 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6095
6096 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6097 (TYPE_FIELDS): Use type::fields. Change all call sites that
6098 modify the propery to use type::set_fields instead.
6099
6100 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6101
6102 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6103 type::num_fields instead.
6104
6105 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6106
6107 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6108 methods.
6109 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6110 that modify the number of fields to use type::set_num_fields
6111 instead.
6112
6113 2020-05-22 Tom Tromey <tromey@adacore.com>
6114
6115 * compile/compile-object-load.h (munmap_list_free): Don't
6116 declare.
6117
6118 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6119
6120 * annotate.c (annotate_source_line): Update return type, add call
6121 to update current symtab and line.
6122 * annotate.h (annotate_source_line): Update return type, and
6123 extend header comment.
6124 * source.c (info_line_command): Check annotation_level before
6125 calling annotate_source_line.
6126 * stack.c (print_frame_info): If calling annotate_source_line
6127 returns true, then don't print any other source line information.
6128
6129 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6130
6131 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6132
6133 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6134
6135 * coffread.c (patch_type): Remove NULL check before xfree.
6136 * corefile.c (set_gnutarget): Likewise.
6137 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6138 * exec.c (build_section_table): Likewise.
6139 * remote.c (remote_target::pass_signals): Likewise.
6140 * utils.c (n_spaces): Likewise.
6141 * cli/cli-script.c (document_command): Likewise.
6142 * i386-windows-tdep.c (core_process_module_section): Likewise.
6143 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6144
6145 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6146
6147 * symfile.c (reread_symbols): Clear objfile's section_offsets
6148 vector and section indices, re-compute them by calling
6149 sym_offsets.
6150
6151 2020-05-20 Tom Tromey <tromey@adacore.com>
6152
6153 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6154 (desc_one_bound, desc_index_type): Compute field name.
6155
6156 2020-05-20 Tom de Vries <tdevries@suse.de>
6157
6158 PR symtab/25833
6159 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6160
6161 2020-05-20 Alan Modra <amodra@gmail.com>
6162
6163 PR 25993
6164 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6165 bfd_set_filename.
6166 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6167 passed to bfd_set_filename.
6168 * symfile-mem.c (add_vsyscall_page): Likewise for string
6169 passed to symbol_file_add_from_memory.
6170 (symbol_file_add_from_memory): Make name param a const char* and
6171 don't strdup.
6172
6173 2020-05-20 Alan Modra <amodra@gmail.com>
6174
6175 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6176 rather than accessing bfd->filename directly.
6177 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6178 and use bfd_section_name.
6179 * dwarf2/frame.c (decode_frame_entry): Likewise.
6180 * exec.c (exec_set_section_address): Likewise.
6181 * solib-aix.c (solib_aix_bfd_open): Likewise.
6182 * stap-probe.c (get_stap_base_address): Likewise.
6183 * symfile.c (reread_symbols): Likewise.
6184
6185 2020-05-19 Tom Tromey <tromey@adacore.com>
6186
6187 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6188
6189 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6190
6191 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6192
6193 2020-05-19 Pedro Alves <palves@redhat.com>
6194
6195 * NEWS (set exec-file-mismatch): Adjust entry.
6196 * exec.c: Include "build-id.h".
6197 (validate_exec_file): Try to match build IDs instead of filenames.
6198 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6199 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6200 and pass down 'warn_if_slow'.
6201 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6202 gdb_bfd_open_closure to pass it down.
6203 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6204
6205 2020-05-19 Pedro Alves <palves@redhat.com>
6206
6207 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6208 * target.c (target_fileio_open_1): Rename to target_fileio_open
6209 and make extern. Use bool.
6210 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6211 (target_fileio_read_alloc_1): Adjust.
6212 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6213 (target_fileio_open_warn_if_slow): Delete declaration.
6214
6215 2020-05-19 Pedro Alves <palves@redhat.com>
6216
6217 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6218 Adjust all callers.
6219
6220 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6221
6222 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6223 whether disp is negative.
6224
6225 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6226
6227 * symfile.h (struct symfile_segment_data)
6228 <~symfile_segment_data>: Remove.
6229 <segment_info>: Change to std::vector.
6230 * symfile.c (default_symfile_segments): Update.
6231 * elfread.c (elf_symfile_segments): Update.
6232
6233 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6234
6235 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6236 <segments>: New.
6237 <segment_bases, segment_sizes>: Remove.
6238 * symfile.c (default_symfile_segments): Update.
6239 * elfread.c (elf_symfile_segments): Update.
6240 * remote.c (remote_target::get_offsets): Update.
6241 * solib-target.c (solib_target_relocate_section_addresses):
6242 Update.
6243
6244 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6245
6246 * symfile.h (struct symfile_segment_data): Initialize fields.
6247 <~symfile_segment_data>: Add.
6248 (symfile_segment_data_up): New.
6249 (struct sym_fns) <sym_segments>: Return a
6250 symfile_segment_data_up.
6251 (default_symfile_segments): Return a symfile_segment_data_up.
6252 (free_symfile_segment_data): Remove.
6253 (get_symfile_segment_data): Return a symfile_segment_data_up.
6254 * symfile.c (default_symfile_segments): Likewise.
6255 (get_symfile_segment_data): Likewise.
6256 (free_symfile_segment_data): Remove.
6257 (symfile_find_segment_sections): Update.
6258 * elfread.c (elf_symfile_segments): Return a
6259 symfile_segment_data_up.
6260 * remote.c (remote_target::get_offsets): Update.
6261 * solib-target.c (solib_target_relocate_section_addresses):
6262 Update.
6263 * symfile-debug.c (debug_sym_segments): Return a
6264 symfile_segment_data_up.
6265
6266 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6267
6268 PR build/25981
6269 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6270 Hardcode register numbers.
6271
6272 PR build/25981
6273 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6274 procfs_find_LDT_entry): Remove.
6275 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6276 procfs_find_LDT_entry): Remove.
6277 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6278 Remove.
6279
6280 2020-05-17 Pedro Alves <palves@redhat.com>
6281 Andrew Burgess <andrew.burgess@embecosm.com>
6282 Keno Fischer <keno@juliacomputing.com>
6283
6284 PR gdb/25741
6285 * breakpoint.c (build_target_condition_list): Update comments.
6286 (build_target_command_list): Update comments and skip matching
6287 locations.
6288 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6289 a separate function. Simplify "set breakpoint auto-hw off"
6290 handling.
6291 (insert_breakpoints): Update comment.
6292 (tracepoint_locations_match): New parameter. For breakpoints,
6293 compare location types too, if the caller wants to.
6294 (handle_automatic_hardware_breakpoints): New functions.
6295 (bp_location_is_less_than): Also sort by location type and
6296 hardware breakpoint length.
6297 (update_global_location_list): Handle "set breakpoint auto-hw on"
6298 here.
6299 (update_breakpoint_locations): Ask breakpoint_locations_match to
6300 ignore location types.
6301
6302 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6303
6304 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6305 type::name instead.
6306
6307 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6308
6309 * gdbtypes.h (struct type) <name, set_name>: New methods.
6310 (TYPE_CODE): Use type::name. Change all call sites used to set
6311 the name to use type::set_name instead.
6312
6313 2020-05-16 Tom Tromey <tom@tromey.com>
6314
6315 * top.c (quit_force): Update.
6316 * infrun.c (handle_no_resumed): Update.
6317 * top.h (all_uis): New function.
6318 (ALL_UIS): Remove.
6319
6320 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6321
6322 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6323
6324 2020-05-16 Pedro Alves <palves@redhat.com>
6325
6326 * ia64-linux-nat.c
6327 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6328 Declare method.
6329 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6330
6331 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6332
6333 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6334 (sparc64_adi_info): Likewise.
6335
6336 2020-05-15 Tom Tromey <tom@tromey.com>
6337
6338 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6339 block_objfile.
6340 (lookup_objfile_from_block): Remove.
6341 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6342 (lookup_global_symbol): Use block_objfile.
6343 * symtab.h (lookup_objfile_from_block): Don't declare.
6344 * printcmd.c (clear_dangling_display_expressions): Use
6345 block_objfile.
6346 * parse.c (operator_check_standard): Use block_objfile.
6347
6348 2020-05-15 Tom Tromey <tom@tromey.com>
6349
6350 * language.c (language_alloc_type_symbol): Set
6351 SYMBOL_SECTION.
6352 * symtab.c (initialize_objfile_symbol): Remove.
6353 (allocate_symbol): Remove.
6354 (allocate_template_symbol): Remove.
6355 * dwarf2/read.c (fixup_go_packaging): Use "new".
6356 (new_symbol): Use "new".
6357 (read_variable): Don't call initialize_objfile_symbol. Use
6358 "new".
6359 (read_func_scope): Use "new".
6360 * xcoffread.c (process_xcoff_symbol): Don't call
6361 initialize_objfile_symbol.
6362 (SYMBOL_DUP): Remove.
6363 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6364 "new".
6365 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6366 (allocate_template_symbol): Don't declare.
6367 (struct symbol): Add copy constructor. Change defaults.
6368 * jit.c (finalize_symtab): Use "new".
6369 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6370 Use "new".
6371 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6372 (common_block_end): Use "new".
6373 * mdebugread.c (parse_symbol): Use "new".
6374 (new_symbol): Likewise.
6375
6376 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6377
6378 * NEWS: Mention changes to help and apropos.
6379
6380 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6381
6382 * command.h (enum command_class): Improve comments, document
6383 that class_alias is for user-defined aliases, give the class
6384 name for each class, remove unused class_xdb.
6385 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6386 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6387 by a precise class.
6388 * infcmd.c (_initialize_infcmd): Likewise.
6389 * reverse.c (_initialize_reverse): Likewise.
6390 * stack.c (_initialize_stack): Likewise.
6391 * symfile.c (_initialize_symfile): Likewise.
6392 * tracepoint.c (_initialize_tracepoint): Likewise.
6393
6394 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6395
6396 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6397 when their aliased command is traversed.
6398 (help_cmd): Add fput_command_names_styled call to
6399 output command name and aliases when command has an alias.
6400
6401 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6402
6403 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6404 * cli/cli-decode.c (help_cmd_list): Declare as static,
6405 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6406 a command together with the command.
6407 (fput_command_name_styled, fput_command_names_styled): New functions.
6408 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6409 fput_command_name_styled.
6410 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6411 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6412
6413 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6414
6415 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6416 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6417 * command.h (cmd_show_list): Likewise.
6418 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6419 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6420
6421 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6422
6423 * unittests/command-def-selftests.c (traverse_command_structure):
6424 Verify all commands of a list have the same prefix command and
6425 that only the top cmdlist commands have a null prefix.
6426
6427 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6428
6429 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6430 as prefix, not one of its aliases.
6431 (set_cmd_prefix): Remove.
6432 (do_add_cmd): Centralize the setting of the prefix of a command, when
6433 command is defined after its full chain of prefix commands.
6434 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6435 (add_setshow_cmd_full): Likewise.
6436 (update_prefix_field_of_prefixed_commands): New function.
6437 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6438 update_prefix_field_of_prefixed_commands.
6439 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6440 addresses of remote_set_cmdlist and remote_show_cmdlist given
6441 as argument, not the address of an argument.
6442 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6443 * gdb/remote.c (_initialize_remote): Likewise.
6444
6445 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6446
6447 * cli/cli-cmds.c (alias_command): Check for an existing alias
6448 using lookup_cmd_composition, as valid_command_p is too strict
6449 and forbids aliases that are the prefix of an existing alias
6450 or command.
6451 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6452 command is properly recognised as a valid command.
6453
6454 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6455
6456 * unittests/help-doc-selftests.c: Rename to
6457 unittests/command-def-selftests.c
6458 * unittests/command-def-selftests.c (help_doc_tests): Update some
6459 comments.
6460 (command_structure_tests, traverse_command_structure): New namespace
6461 and function.
6462 (command_structure_invariants_tests): New function.
6463 (_initialize_command_def_selftests) Renamed from
6464 _initialize_help_doc_selftests, register command_structure_invariants
6465 selftest.
6466
6467 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6468
6469 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6470 an alias of 'show'.
6471
6472 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6473
6474 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6475 ada_is_fixed_point_type. Update all callers.
6476 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6477 all callers.
6478 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6479 Update all callers.
6480 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6481 print_fixed_point_type. Update all callers.
6482 * ada-valprint.c (ada_value_print_num): Replace call to
6483 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6484
6485 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6486
6487 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6488 processors.
6489 (cpu_supports_bts): Add CV_AMD case.
6490
6491 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6492 Simon Marchi <simon.marchi@efficios.com>
6493
6494 * infrun.c (stop_all_threads): Collect multiple wait events at
6495 each pass.
6496
6497 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6498
6499 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6500 type::code instead.
6501
6502 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6503
6504 * gdbtypes.h (struct type) <code, set_code>: New methods.
6505 (TYPE_CODE): Use type::code. Change all call sites used to set
6506 the code to use type::set_code instead.
6507
6508 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6509 Tom de Vries <tdevries@suse.de>
6510 Pedro Alves <palves@redhat.com>
6511
6512 PR threads/25478
6513 * infrun.c (stop_all_threads): Do NOT ignore
6514 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6515 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6516 received.
6517 (handle_no_resumed): Remove code handling a live inferior with no
6518 threads.
6519 * remote.c (has_single_non_exited_thread): New.
6520 (remote_target::update_thread_list): Do not delete a thread if is
6521 the last thread of the process.
6522 * thread.c (thread_select): Call delete_exited_threads instead of
6523 prune_threads.
6524
6525 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6526
6527 * infrun.c (stop_all_threads): Enable/disable thread events of all
6528 targets. Move a debug message denoting the end of the function
6529 into the SCOPED_EXIT block.
6530
6531 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6532
6533 * process-stratum-target.h: Include <set>.
6534 (all_non_exited_process_targets, switch_to_target_no_thread): New
6535 function declarations.
6536 * process-stratum-target.c (all_non_exited_process_targets)
6537 (switch_to_target_no_thread): New function implementations.
6538
6539 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6540
6541 * infrun.c (handle_inferior_event): Extract out a piece of code
6542 into...
6543 (mark_non_executing_threads): ...this new function.
6544
6545 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6546
6547 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6548 use.
6549
6550 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6551
6552 * regcache.c (regcache_read_pc_protected): New function
6553 implementation that returns 0 if the PC cannot read via
6554 'regcache_read_pc'.
6555 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6556 instead of 'regcache_read_pc'.
6557 (keep_going_pass_signal): Ditto.
6558
6559 2020-05-13 Tom Tromey <tromey@adacore.com>
6560
6561 * ada-lang.c (align_value): Remove.
6562 (ada_template_to_fixed_record_type_1): Use align_up.
6563
6564 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6565
6566 * async-event.c: Update the copyright year.
6567 * async-event.h: Update the copyright year.
6568
6569 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6570
6571 * objfiles.h (is_addr_in_objfile,
6572 shared_objfile_contains_address_p): Return bool.
6573 * objfile.c (is_addr_in_objfile,
6574 shared_objfile_contains_address_p): Return bool.
6575
6576 2020-05-11 Tom Tromey <tromey@adacore.com>
6577
6578 * cli/cli-cmds.c (info_command): Restore.
6579 (_initialize_cli_cmds): Use add_prefix_command for "info".
6580 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6581
6582 2020-05-11 Tom Tromey <tromey@adacore.com>
6583
6584 * ada-lang.c (ada_value_primitive_field): Now public.
6585 * ada-lang.h (ada_value_primitive_field): Declare.
6586 * ada-valprint.c (print_field_values): Use
6587 ada_value_primitive_field for wrapper fields.
6588
6589 2020-05-11 Tom de Vries <tdevries@suse.de>
6590
6591 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6592 MODULE_DOMAIN.
6593
6594 2020-05-11 Tom de Vries <tdevries@suse.de>
6595
6596 PR symtab/25941
6597 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6598 with length 0, if not gdb-produced.
6599 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6600
6601 2020-05-09 Tom de Vries <tdevries@suse.de>
6602
6603 PR gdb/25955
6604 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6605 calculation.
6606
6607 2020-05-09 Tom Tromey <tom@tromey.com>
6608
6609 * top.c (server_command): Now bool.
6610 * top.h (server_command): Now bool.
6611
6612 2020-05-08 Tom Tromey <tromey@adacore.com>
6613
6614 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6615 already being processed.
6616
6617 2020-05-08 Tom Tromey <tom@tromey.com>
6618
6619 * printcmd.c (struct display) <next>: Remove.
6620 <display>: New constructor.
6621 <exp_string>: Now a std::string.
6622 <enabled_p>: Now a bool.
6623 (display_number): Move definition earlier.
6624 (displays): Rename from display_chain. Now a std::vector.
6625 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6626 (display_command): Update.
6627 (do_one_display, disable_display)
6628 (enable_disable_display_command, do_enable_disable_display):
6629 Update.
6630 (free_display): Remove.
6631 (clear_displays): Rewrite.
6632 (delete_display): Update.
6633 (map_display_numbers): Use function_view. Remove "data"
6634 parameter. Update.
6635 (do_delete_display): Remove.
6636 (undisplay_command): Update.
6637 (do_one_display, do_displays, disable_display)
6638 (info_display_command): Update.
6639 (do_enable_disable_display): Remove.
6640 (enable_disable_display_command)
6641 (clear_dangling_display_expressions): Update.
6642
6643 2020-05-08 Tom Tromey <tom@tromey.com>
6644
6645 * symtab.c (set_symbol_cache_size)
6646 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6647 (maintenance_print_symbol_cache_statistics): Update.
6648 * symmisc.c (print_symbol_bcache_statistics)
6649 (print_objfile_statistics, maintenance_print_objfiles)
6650 (maintenance_info_symtabs, maintenance_check_symtabs)
6651 (maintenance_expand_symtabs, maintenance_info_line_tables):
6652 Update.
6653 * symfile-debug.c (set_debug_symfile): Update.
6654 * source.c (forget_cached_source_info): Update.
6655 * python/python.c (gdbpy_progspaces): Update.
6656 * psymtab.c (maintenance_info_psymtabs): Update.
6657 * probe.c (parse_probes): Update.
6658 * linespec.c (iterate_over_all_matching_symtabs)
6659 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6660 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6661 * exec.c (exec_target::close): Update.
6662 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6663 * breakpoint.c (print_one_breakpoint_location)
6664 (create_longjmp_master_breakpoint)
6665 (create_std_terminate_master_breakpoint): Update.
6666 * progspace.c (program_spaces): Now a std::vector.
6667 (maybe_new_address_space): Update.
6668 (add_program_space): Remove.
6669 (program_space::program_space): Update.
6670 (remove_program_space): Update.
6671 (number_of_program_spaces): Remove.
6672 (print_program_space, update_address_spaces): Update.
6673 * progspace.h (program_spaces): Change type.
6674 (ALL_PSPACES): Remove.
6675 (number_of_program_spaces): Don't declare.
6676 (struct program_space) <next>: Remove.
6677
6678 2020-05-08 Tom Tromey <tom@tromey.com>
6679
6680 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6681 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6682 (enable_break): Update.
6683 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6684 (frv_fdpic_find_canonical_descriptor): Update.
6685 (frv_fetch_objfile_link_map): Update.
6686 * progspace.c (program_space::free_all_objfiles): Update.
6687 (program_space::solibs): New method.
6688 * progspace.h (struct program_space) <solibs>: New method.
6689 * solist.h (master_so_list): Don't declare.
6690 (ALL_SO_LIBS): Remove.
6691 * solib.h (so_list_head): Remove.
6692 (update_solib_list): Update comment.
6693 * solib.c (master_so_list): Remove.
6694 (solib_used, update_solib_list, solib_add)
6695 (info_sharedlibrary_command, clear_solib)
6696 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6697
6698 2020-05-08 Tom Tromey <tom@tromey.com>
6699
6700 * extension.c (extension_languages): Now a std::array.
6701 (ALL_EXTENSION_LANGUAGES): Remove.
6702 (get_ext_lang_defn, get_ext_lang_of_file)
6703 (eval_ext_lang_from_control_command): Update.
6704 (finish_ext_lang_initialization)
6705 (auto_load_ext_lang_scripts_for_objfile)
6706 (ext_lang_type_printers::ext_lang_type_printers)
6707 (apply_ext_lang_type_printers)
6708 (ext_lang_type_printers::~ext_lang_type_printers)
6709 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6710 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6711 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6712 (get_matching_xmethod_workers, ext_lang_colorize)
6713 (ext_lang_before_prompt): Update.
6714 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6715
6716 2020-05-08 Tom Tromey <tom@tromey.com>
6717
6718 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6719 overload.
6720 <swap_string, m_string>: Remove.
6721 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6722 Update.
6723 * stabsread.c (define_symbol, read_type): Update.
6724 * linespec.c (find_linespec_symbols): Update.
6725 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6726 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6727 * dbxread.c (read_dbx_symtab): Update.
6728 * cp-support.h (cp_canonicalize_string_full)
6729 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6730 Return unique_xmalloc_ptr.
6731 * cp-support.c (inspect_type): Update.
6732 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6733 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6734 Likewise.
6735 * c-typeprint.c (print_name_maybe_canonical): Update.
6736 * break-catch-throw.c (check_status_exception_catchpoint):
6737 Update.
6738
6739 2020-05-08 Tom de Vries <tdevries@suse.de>
6740
6741 * infrun.c (follow_fork): Copy current_line and current_symtab to
6742 child thread.
6743
6744 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6745
6746 * async-event.c (struct async_signal_handler, struct
6747 async_event_handler): Reformat, remove typedef.
6748
6749 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6750
6751 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6752 access thistype->main_type->dyn_prop_list directly.
6753
6754 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6755
6756 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6757 (remove_dyn_prop): Remove. Update all users to use
6758 type::remove_dyn_prop.
6759 * gdbtypes.c (remove_dyn_prop): Rename to...
6760 (type::remove_dyn_prop): ... this.
6761
6762 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6763
6764 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6765 (add_dyn_prop): Remove. Update all users to use
6766 type::add_dyn_prop.
6767 * gdbtypes.c (add_dyn_prop): Rename to...
6768 (type::add_dyn_prop): ... this.
6769
6770 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6771
6772 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6773 (get_dyn_prop): Remove. Update all users to use
6774 type::dyn_prop.
6775 * gdbtypes.c (get_dyn_prop): Rename to...
6776 (type::dyn_prop): ... this.
6777
6778 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6779
6780 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6781
6782 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6783
6784 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6785 instruction, skip it if it's there.
6786
6787 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6788
6789 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6790
6791 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6792
6793 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6794 * gdbtypes.c (recursive_dump_type): Remove use of
6795 TYPE_INCOMPLETE.
6796
6797 2020-05-03 Tom Tromey <tom@tromey.com>
6798
6799 * breakpoint.c (catch_command, tcatch_command): Remove.
6800 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6801 add_show_prefix_cmd.
6802 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6803 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6804 Remove.
6805 (add_internal_problem_command): Use add_basic_prefix_cmd,
6806 add_show_prefix_cmd.
6807 * mips-tdep.c (set_mipsfpu_command): Remove.
6808 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6809 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6810 (_initialize_index_cache): Use add_basic_prefix_cmd.
6811 * memattr.c (dummy_cmd): Remove.
6812 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6813 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6814 (_initialize_tui_win): Use add_basic_prefix_cmd,
6815 add_show_prefix_cmd.
6816 * cli/cli-logging.c (set_logging_command): Remove.
6817 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6818 add_show_prefix_cmd.
6819 (show_logging_command): Remove.
6820 * target.c (target_command): Remove.
6821 (add_target): Use add_basic_prefix_cmd.
6822
6823 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6824
6825 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6826
6827 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6828
6829 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6830 info_command.
6831
6832 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6833
6834 * nbsd-nat.c (nbsd_enable_proc_events)
6835 (nbsd_nat_target::post_startup_inferior): Add.
6836 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6837 (nbsd_nat_target::update_thread_list): Rewrite.
6838 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6839 "PTRACE_LWP_CREATE".
6840 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6841
6842 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6843
6844 * stack.c (_initialize_stack): Remove duplicated creation
6845 of "frame" command and "f" alias.
6846
6847 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6848
6849 PR gdb/18706
6850 * gdbtypes.c (check_typedef): Calculate size of array of
6851 stubbed type.
6852
6853 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6854
6855 PR gdb/15559
6856 * i386-tdep.c (i386_push_dummy_call): Call
6857 i386_thiscall_push_dummy_call.
6858 (i386_thiscall_push_dummy_call): New function.
6859 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6860 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6861 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6862
6863 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6864
6865 * gdbarch.sh (do_read): Add shellcheck disable directive for
6866 warning SC2162.
6867
6868 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6869
6870 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6871 "referenced but not assigned" warning.
6872
6873 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6874
6875 * gdbarch.sh: Remove code that sets fallbackdefault.
6876
6877 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6878
6879 * gdbarch.sh: Use shell operators && and || instead of
6880 -a and -o.
6881
6882 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6883
6884 * gdbarch.sh: Use $(...) instead of `...`.
6885
6886 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6887
6888 * gdbarch.sh: Use double quotes around variables.
6889
6890 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6891
6892 * gdbarch.sh: Use %s with printf, instead of variables in the
6893 format string.
6894
6895 2020-04-29 Tom Tromey <tromey@adacore.com>
6896
6897 PR ada/25875:
6898 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6899 type fields here.
6900 (read_enumeration_type): Call
6901 update_enumeration_type_from_children later. Update comments.
6902 (process_enumeration_scope): Don't create type fields.
6903
6904 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6905
6906 * nbsd-tdep.c: Include "xml-syscall.h".
6907 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6908
6909 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6910
6911 * nbsd-nat.c: Include "sys/wait.h".
6912 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6913 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6914 (nbsd_nat_target::remove_exec_catchpoint)
6915 (nbsd_nat_target::set_syscall_catchpoint): Add.
6916 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6917 (nbsd_nat_target::insert_exec_catchpoint)
6918 (nbsd_nat_target::remove_exec_catchpoint)
6919 (nbsd_nat_target::set_syscall_catchpoint): Add.
6920 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6921 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6922 `nbsd_get_syscall_number'.
6923
6924 2020-04-29 Tom Tromey <tom@tromey.com>
6925
6926 * stack.c (print_block_frame_labels): Remove.
6927
6928 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6929
6930 PR gdb/17320
6931 * ada-valprint.c (val_print_packed_array_elements): Move array
6932 end bracket to new line.
6933 (ada_val_print_string): Remove extra spaces before first array
6934 element.
6935 * c-valprint.c (c_value_print_array): Likewise.
6936 * m2-valprint.c (m2_print_array_contents): Likewise.
6937 (m2_value_print_inner): Likewise.
6938 * p-valprint.c (pascal_value_print_inner): Likewise.
6939 * valprint.c (generic_val_print_array): Likewise.
6940 (value_print_array_elements): Move first array element and array
6941 end bracket to new line.
6942
6943 2020-04-29 Tom de Vries <tdevries@suse.de>
6944
6945 PR symtab/25889
6946 * linespec.c (find_method): Fix ix calculation.
6947
6948 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6949
6950 * syscalls/update-netbsd.sh: New file.
6951 * syscalls/netbsd.xml: Regenerate.
6952 * data-directory/Makefile.in: Register `netbsd.xml' in
6953 `SYSCALLS_FILES'.
6954
6955 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6956
6957 * syscalls/update-freebsd.sh: Add double quotes.
6958
6959 2020-04-28 Tom Tromey <tom@tromey.com>
6960
6961 * NEWS: Update.
6962 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6963 (cmdpy_init): Allow class_tui.
6964
6965 2020-04-28 Mark Williams <mark@myosotissp.com>
6966
6967 PR gdb/24480
6968 * dwarf2read.c: Add missing assingments to list_in_scope when
6969 start_symtab was already called.
6970
6971 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6972
6973 PR gdb/25881
6974 * dwarf2/read.c (offset_map_type): Use
6975 gdb:hash_enum<sect_offset> as hash function.
6976
6977 2020-04-28 Tom de Vries <tdevries@suse.de>
6978
6979 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6980 with DW_AT_signature.
6981
6982 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6983
6984 * configure.ac: Remove check for fs_base/gs_base in
6985 user_regs_struct.
6986 * configure: Re-generate.
6987 * config.in: Re-generate.
6988 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6989 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6990 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6991
6992 2020-04-27 Luis Machado <luis.machado@linaro.org>
6993
6994 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6995 problematic inline frame unwinding situation.
6996 * frame.c (frame_id_computed_p): New function.
6997 * frame.h (frame_id_computed_p): New prototype.
6998
6999 2020-04-26 Tom Tromey <tom@tromey.com>
7000
7001 * command.h (enum command_class) <class_pseudo>: Remove.
7002
7003 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7004
7005 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7006 and whitespace.
7007
7008 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7009
7010 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7011 `PT_GET_PROCESS_STATE' block.
7012
7013 2020-04-24 Tom Tromey <tom@tromey.com>
7014
7015 * symtab.h (symbol_get_demangled_name): Don't declare.
7016 * symtab.c (symbol_get_demangled_name): Remove.
7017 (general_symbol_info::natural_name)
7018 (general_symbol_info::demangled_name): Update.
7019
7020 2020-04-24 Tom Tromey <tom@tromey.com>
7021
7022 PR rust/25025:
7023 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7024
7025 2020-04-24 Tom Tromey <tom@tromey.com>
7026
7027 PR symtab/12707:
7028 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7029 exists.
7030 (new_symbol): Likewise.
7031 * compile/compile-object-load.c (get_out_value_type): Use
7032 symbol_matches_search_name.
7033
7034 2020-04-24 Tom Tromey <tom@tromey.com>
7035
7036 * dwarf2/read.c (add_partial_symbol): Do not call
7037 compute_and_set_names.
7038
7039 2020-04-24 Tom Tromey <tom@tromey.com>
7040
7041 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7042 overload.
7043
7044 2020-04-24 Tom Tromey <tom@tromey.com>
7045
7046 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7047 (add_psymbol_to_list): New overload. Make old overload call new
7048 one.
7049 * psympriv.h (add_psymbol_to_list): New overload.
7050
7051 2020-04-24 Tom Tromey <tom@tromey.com>
7052
7053 * dwarf2/read.c (partial_die_info::read) <case
7054 DW_AT_linkage_name>: Use value_as_string.
7055 (dwarf2_string_attr): Use value_as_string.
7056 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7057 method.
7058 * dwarf2/attribute.c (attribute::value_as_string): New method.
7059
7060 2020-04-24 Tom Tromey <tom@tromey.com>
7061
7062 * symtab.c (general_symbol_info::natural_name)
7063 (general_symbol_info::demangled_name): Check for language_rust.
7064
7065 2020-04-24 Tom Tromey <tom@tromey.com>
7066
7067 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7068 (dwarf2_physname): ... from here.
7069 (partial_die_info::read): Add Rust "{" hack.
7070
7071 2020-04-24 Tom Tromey <tom@tromey.com>
7072
7073 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7074 method.
7075 (symbol_set_demangled_name): Don't declare.
7076 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7077 symbol_set_demangled_name.
7078 (general_symbol_info::set_language)
7079 (general_symbol_info::compute_and_set_names): Update.
7080 * minsyms.c (minimal_symbol_reader::install): Update.
7081 * dwarf2/read.c (new_symbol): Update.
7082
7083 2020-04-24 Tom Tromey <tromey@adacore.com>
7084
7085 PR python/23662:
7086 * python/py-type.c (convert_field): Handle
7087 FIELD_LOC_KIND_DWARF_BLOCK.
7088 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7089 (typy_get_dynamic): Nw function.
7090 (type_object_getset): Add "dynamic".
7091 * NEWS: Add entry.
7092
7093 2020-04-24 Tom Tromey <tromey@adacore.com>
7094
7095 * ada-typeprint.c (print_choices, print_variant_part)
7096 (print_record_field_types_dynamic): New functions.
7097 (print_record_field_types): Use print_record_field_types_dynamic.
7098
7099 2020-04-24 Tom Tromey <tromey@adacore.com>
7100
7101 * dwarf2/read.c (handle_data_member_location): New overload.
7102 (dwarf2_add_field): Use it.
7103 (decode_locdesc): Add "computed" parameter. Update comment.
7104 * gdbtypes.c (is_dynamic_type_internal): Also look for
7105 FIELD_LOC_KIND_DWARF_BLOCK.
7106 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7107 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7108 virtual base classes.
7109 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7110 FIELD_LOC_KIND_DWARF_BLOCK.
7111
7112 2020-04-24 Tom Tromey <tromey@adacore.com>
7113
7114 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7115 * gdbtypes.c (is_dynamic_type_internal): Check
7116 TYPE_HAS_DYNAMIC_LENGTH.
7117 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7118 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7119 New macros.
7120 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7121 constant.
7122
7123 2020-04-24 Tom Tromey <tromey@adacore.com>
7124
7125 * dwarf2/read.c (struct variant_field): Rewrite.
7126 (struct variant_part_builder): New.
7127 (struct nextfield): Remove "variant" field. Add "offset".
7128 (struct field_info): Add "current_variant_part" and
7129 "variant_parts".
7130 (alloc_discriminant_info): Remove.
7131 (alloc_rust_variant): New function.
7132 (quirk_rust_enum): Update.
7133 (dwarf2_add_field): Set "offset" member. Don't handle
7134 DW_TAG_variant_part.
7135 (offset_map_type): New typedef.
7136 (convert_variant_range, create_one_variant)
7137 (create_one_variant_part, create_variant_parts)
7138 (add_variant_property): New functions.
7139 (dwarf2_attach_fields_to_type): Call add_variant_property.
7140 (read_structure_type): Don't handle DW_TAG_variant_part.
7141 (handle_variant_part, handle_variant): New functions.
7142 (handle_struct_member_die): Use them.
7143 (process_structure_scope): Don't handle variant parts.
7144 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7145 (struct discriminant_info): Remove.
7146 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7147 (struct main_type) <flag_discriminated_union>: Remove.
7148 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7149 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7150 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7151 Update.
7152 * valops.c (value_union_variant): Remove.
7153 * value.h (value_union_variant): Don't declare.
7154
7155 2020-04-24 Tom Tromey <tromey@adacore.com>
7156
7157 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7158 (ada_value_primitive_packed_val): Update.
7159 * ada-valprint.c (ada_value_print_1): Update.
7160 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7161 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7162 just an address. Use evaluate_for_locexpr_baton.
7163 (dwarf2_evaluate_property): Update.
7164 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7165 array_view.
7166 * findvar.c (default_read_var_value): Update.
7167 * gdbtypes.c (compute_variant_fields_inner)
7168 (resolve_dynamic_type_internal): Update.
7169 (resolve_dynamic_type): Change type of valaddr parameter.
7170 * gdbtypes.h (resolve_dynamic_type): Update.
7171 * valarith.c (value_subscripted_rvalue): Update.
7172 * value.c (value_from_contents_and_address): Update.
7173
7174 2020-04-24 Tom Tromey <tromey@adacore.com>
7175
7176 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7177 "push_initial_value" parameter.
7178 (dwarf2_evaluate_property): Likewise.
7179 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7180
7181 2020-04-24 Tom Tromey <tromey@adacore.com>
7182
7183 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7184 (variant::matches, compute_variant_fields_recurse)
7185 (compute_variant_fields_inner, compute_variant_fields): New
7186 functions.
7187 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7188 Use resolved_type after type is made.
7189 (operator==): Add new cases.
7190 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7191 (struct discriminant_range, struct variant, struct variant_part):
7192 New.
7193 (union dynamic_prop_data) <variant_parts, original_type>: New
7194 members.
7195 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7196 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7197 constants.
7198 * value.c (unpack_bits_as_long): Now public.
7199 * value.h (unpack_bits_as_long): Declare.
7200
7201 2020-04-24 Tom Tromey <tromey@adacore.com>
7202
7203 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7204 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7205
7206 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7207
7208 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7209
7210 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7211
7212 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7213 (remove_fork_catchpoint, post_startup_inferior)
7214 (post_attach): Move...
7215 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7216 (remove_fork_catchpoint, post_startup_inferior)
7217 (post_attach): ...here.
7218 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7219 (remove_fork_catchpoint, post_startup_inferior)
7220 (post_attach): Move...
7221 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7222 (remove_fork_catchpoint, post_startup_inferior)
7223 (post_attach): ...here.
7224
7225 2020-04-24 Tom Tromey <tromey@adacore.com>
7226
7227 * nat/windows-nat.h (struct windows_thread_info)
7228 <pc_adjusted>: New member.
7229 * windows-nat.c (windows_fetch_one_register): Check
7230 pc_adjusted.
7231 (windows_nat_target::get_windows_debug_event)
7232 (windows_nat_target::wait): Set pc_adjusted.
7233
7234 2020-04-24 Tom de Vries <tdevries@suse.de>
7235
7236 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7237 Run gdb-add-index inside temp dir.
7238
7239 2020-04-23 Tom Tromey <tromey@adacore.com>
7240
7241 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7242 in loop.
7243
7244 2020-04-23 Luis Machado <luis.machado@linaro.org>
7245
7246 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7247 get_frame_register instead of gdbarch_unwind_pc.
7248
7249 2020-04-23 Tom de Vries <tdevries@suse.de>
7250
7251 * symtab.c (lookup_global_symbol): Prefer def over decl.
7252
7253 2020-04-23 Tom de Vries <tdevries@suse.de>
7254
7255 PR symtab/25807
7256 * block.c (best_symbol, better_symbol): Promote to external.
7257 * block.h (best_symbol, better_symbol): Declare.
7258 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7259 decl.
7260
7261 2020-04-23 Tom Tromey <tromey@adacore.com>
7262
7263 PR ada/25837:
7264 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7265 "const char *", not a "const std::string &".
7266 <name_and_matcher::operator==>: Update.
7267 * unittests/lookup_name_info-selftests.c: Change type of
7268 "result".
7269
7270 2020-04-23 Tom Tromey <tom@tromey.com>
7271
7272 * inferior.h (iterate_over_inferiors): Don't declare.
7273 * inferior.c (iterate_over_inferiors): Remove.
7274 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7275 Remove.
7276 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7277 use iterate_over_inferiors.
7278 (darwin_resume_inferior_it)
7279 (struct resume_inferior_threads_param)
7280 (darwin_resume_inferior_threads_it): Remove.
7281 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7282
7283 2020-04-23 Tom de Vries <tdevries@suse.de>
7284
7285 * blockframe.c (find_pc_partial_function): Use
7286 find_pc_sect_compunit_symtab rather than
7287 objfile->sf->qf->find_pc_sect_compunit_symtab.
7288
7289 2020-04-22 Tom de Vries <tdevries@suse.de>
7290
7291 PR symtab/25764
7292 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7293 in psymtabs.
7294
7295 2020-04-22 Tom de Vries <tdevries@suse.de>
7296
7297 PR symtab/25801
7298 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7299 symtabs.
7300
7301 2020-04-22 Tom de Vries <tdevries@suse.de>
7302
7303 PR symtab/25700
7304 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7305 CU if already created.
7306
7307 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7308
7309 * infrun.c (displaced_step_fixup): Switch to the event_thread
7310 before calling displaced_step_restore, not after.
7311
7312 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7313
7314 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7315 its inferior is not recorded by us.
7316 (record_btrace_target_open): Replace call to
7317 all_non_exited_threads () with call to current_inferior
7318 ()->non_exited_threads ().
7319 (record_btrace_target::stop_recording): Likewise.
7320 (record_btrace_target::close): Likewise.
7321 (record_btrace_target::wait): Likewise.
7322 (record_btrace_target::record_stop_replaying): Likewise.
7323
7324 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7325
7326 * btrace.c (btrace_enable): Throw an error on double enables and
7327 when enabling recording fails.
7328 (btrace_disable): Throw an error if the thread is not recorded.
7329
7330 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7331
7332 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7333 request if we do not have a thread_info.
7334
7335 2020-04-21 Tom de Vries <tdevries@suse.de>
7336
7337 PR gdb/25471
7338 * thread.c
7339 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7340 exception in get_frame_id.
7341
7342 2020-04-20 Tom Tromey <tromey@adacore.com>
7343
7344 * python/python.c (struct gdbpy_event): Mark move constructor as
7345 noexcept.
7346 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7347 constructor as noexcept.
7348 * completer.h (struct completion_result): Mark move constructor as
7349 noexcept.
7350 * completer.c (completion_result::completion_result): Use
7351 initialization style. Don't call reset_match_list.
7352
7353 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7354
7355 * MAINTAINERS (Write After Approval): Add myself.
7356
7357 2020-04-18 Tom Tromey <tom@tromey.com>
7358
7359 * windows-tdep.c (init_w32_command_list)
7360 (w32_prefix_command_valid): Restore.
7361 (_initialize_windows_tdep): Call init_w32_command_list.
7362
7363 2020-04-18 Tom Tromey <tom@tromey.com>
7364
7365 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7366 * value.c (value_fn_field): Update.
7367 * valops.c (find_function_in_inferior)
7368 (value_allocate_space_in_inferior): Update.
7369 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7370 Update.
7371 * tui/tui-source.c (tui_source_window::set_contents): Update.
7372 * symtab.c (lookup_global_or_static_symbol)
7373 (find_function_start_sal_1, skip_prologue_sal)
7374 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7375 * symmisc.c (dump_msymbols, dump_symtab_1)
7376 (maintenance_print_one_line_table): Update.
7377 * symfile.c (init_entry_point_info, section_is_mapped)
7378 (list_overlays_command, simple_read_overlay_table)
7379 (simple_overlay_update_1): Update.
7380 * stap-probe.c (handle_stap_probe): Update.
7381 * stabsread.c (dbx_init_float_type, define_symbol)
7382 (read_one_struct_field, read_enum_type, read_range_type): Update.
7383 * source.c (info_line_command): Update.
7384 * python/python.c (gdbpy_source_objfile_script)
7385 (gdbpy_execute_objfile_script): Update.
7386 * python/py-type.c (save_objfile_types): Update.
7387 * python/py-objfile.c (py_free_objfile): Update.
7388 * python/py-inferior.c (python_new_objfile): Update.
7389 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7390 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7391 (maintenance_check_psymtabs): Update.
7392 * printcmd.c (info_address_command): Update.
7393 * objfiles.h (struct objfile) <arch>: New method, from
7394 get_objfile_arch.
7395 (get_objfile_arch): Don't declare.
7396 * objfiles.c (get_objfile_arch): Remove.
7397 (filter_overlapping_sections): Update.
7398 * minsyms.c (msymbol_is_function): Update.
7399 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7400 (output_nondebug_symbol): Update.
7401 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7402 (mdebug_expand_psymtab): Update.
7403 * machoread.c (macho_add_oso_symfile): Update.
7404 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7405 Update.
7406 * linux-fork.c (checkpoint_command): Update.
7407 * linespec.c (convert_linespec_to_sals): Update.
7408 * jit.c (finalize_symtab): Update.
7409 * infrun.c (insert_exception_resume_from_probe): Update.
7410 * ia64-tdep.c (ia64_find_unwind_table): Update.
7411 * hppa-tdep.c (internalize_unwinds): Update.
7412 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7413 Update.
7414 * gcore.c (call_target_sbrk): Update.
7415 * elfread.c (record_minimal_symbol, elf_symtab_read)
7416 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7417 (elf_gnu_ifunc_resolve_by_got): Update.
7418 * dwarf2/read.c (create_addrmap_from_index)
7419 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7420 (read_debug_names_from_section)
7421 (process_psymtab_comp_unit_reader, add_partial_symbol)
7422 (add_partial_subprogram, process_full_comp_unit)
7423 (read_file_scope, read_func_scope, read_lexical_block_scope)
7424 (read_call_site_scope, dwarf2_ranges_read)
7425 (dwarf2_record_block_ranges, dwarf2_add_field)
7426 (mark_common_block_symbol_computed, read_tag_pointer_type)
7427 (read_tag_string_type, dwarf2_init_float_type)
7428 (dwarf2_init_complex_target_type, read_base_type)
7429 (partial_die_info::read, partial_die_info::read)
7430 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7431 (dwarf2_fetch_die_loc_sect_off): Update.
7432 * dwarf2/loc.c (dwarf2_find_location_expression)
7433 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7434 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7435 (dwarf2_loc_desc_get_symbol_read_needs)
7436 (locexpr_describe_location_piece, locexpr_describe_location_1)
7437 (loclist_describe_location): Update.
7438 * dwarf2/index-write.c (write_debug_names): Update.
7439 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7440 * dtrace-probe.c (dtrace_process_dof): Update.
7441 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7442 (process_one_symbol): Update.
7443 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7444 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7445 (coff_read_enum_type): Update.
7446 * cli/cli-cmds.c (edit_command, list_command): Update.
7447 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7448 * breakpoint.c (create_overlay_event_breakpoint)
7449 (create_longjmp_master_breakpoint)
7450 (create_std_terminate_master_breakpoint)
7451 (create_exception_master_breakpoint, get_sal_arch): Update.
7452 * block.c (block_gdbarch): Update.
7453 * annotate.c (annotate_source_line): Update.
7454
7455 2020-04-17 Tom Tromey <tromey@adacore.com>
7456
7457 * auto-load.c (show_auto_load_cmd): Remove.
7458 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7459 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7460 (maintenance_print_arc_command): Remove.
7461 * tui/tui-win.c (tui_command): Remove.
7462 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7463 * tui/tui-layout.c (tui_layout_command): Remove.
7464 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7465 * python/python.c (user_set_python, user_show_python): Remove.
7466 (_initialize_python): Use add_basic_prefix_cmd,
7467 add_show_prefix_cmd.
7468 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7469 (install_gdb_commands): Use add_basic_prefix_cmd,
7470 add_show_prefix_cmd.
7471 (info_guile_command): Remove.
7472 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7473 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7474 add_show_prefix_cmd.
7475 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7476 Remove do_set and do_show parameters.
7477 * cli/cli-style.c (set_style, show_style): Remove.
7478 (_initialize_cli_style): Use add_basic_prefix_cmd,
7479 add_show_prefix_cmd.
7480 (cli_style_option::add_setshow_commands): Remove do_set and
7481 do_show parameters.
7482 (cli_style_option::add_setshow_commands): Use
7483 add_basic_prefix_cmd, add_show_prefix_cmd.
7484 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7485 (set_style_name): Remove.
7486 * cli/cli-dump.c (dump_command, append_command): Remove.
7487 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7488 (tekhex_dump_command, binary_dump_command)
7489 (binary_append_command): Remove.
7490 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7491 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7492 (init_w32_command_list): Remove; move into ...
7493 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7494 * valprint.c (set_print, show_print, set_print_raw)
7495 (show_print_raw): Remove.
7496 (_initialize_valprint): Use add_basic_prefix_cmd,
7497 add_show_prefix_cmd.
7498 * typeprint.c (set_print_type, show_print_type): Remove.
7499 (_initialize_typeprint): Use add_basic_prefix_cmd,
7500 add_show_prefix_cmd.
7501 * record.c (set_record_command, show_record_command): Remove.
7502 (_initialize_record): Use add_basic_prefix_cmd,
7503 add_show_prefix_cmd.
7504 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7505 add_show_prefix_cmd.
7506 (info_command, show_command, set_debug, show_debug): Remove.
7507 * top.h (set_history, show_history): Don't declare.
7508 * top.c (set_history, show_history): Remove.
7509 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7510 (unset_tdesc_cmd): Remove.
7511 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7512 add_show_prefix_cmd.
7513 * symtab.c (info_module_command): Remove.
7514 (_initialize_symtab): Use add_basic_prefix_cmd.
7515 * symfile.c (overlay_command): Remove.
7516 (_initialize_symfile): Use add_basic_prefix_cmd.
7517 * sparc64-tdep.c (info_adi_command): Remove.
7518 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7519 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7520 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7521 add_show_prefix_cmd.
7522 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7523 (_initialize_serial): Use add_basic_prefix_cmd,
7524 add_show_prefix_cmd.
7525 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7526 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7527 add_show_prefix_cmd.
7528 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7529 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7530 add_show_prefix_cmd.
7531 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7532 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7533 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7534 add_show_prefix_cmd.
7535 * remote.c (remote_command, set_remote_cmd): Remove.
7536 (_initialize_remote): Use add_basic_prefix_cmd.
7537 * record-full.c (set_record_full_command)
7538 (show_record_full_command): Remove.
7539 (_initialize_record_full): Use add_basic_prefix_cmd,
7540 add_show_prefix_cmd.
7541 * record-btrace.c (cmd_set_record_btrace)
7542 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7543 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7544 (cmd_show_record_btrace_pt): Remove.
7545 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7546 add_show_prefix_cmd.
7547 * ravenscar-thread.c (set_ravenscar_command)
7548 (show_ravenscar_command): Remove.
7549 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7550 add_show_prefix_cmd.
7551 * mips-tdep.c (show_mips_command, set_mips_command)
7552 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7553 add_show_prefix_cmd.
7554 * maint.c (maintenance_command, maintenance_info_command)
7555 (maintenance_check_command, maintenance_print_command)
7556 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7557 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7558 add_show_prefix_cmd.
7559 (show_per_command_cmd): Remove.
7560 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7561 Remove.
7562 (maintenance_show_test_settings_cmd): Remove.
7563 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7564 add_show_prefix_cmd.
7565 * maint-test-options.c (maintenance_test_options_command):
7566 Remove.
7567 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7568 * macrocmd.c (macro_command): Remove
7569 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7570 * language.c (set_check, show_check): Remove.
7571 (_initialize_language): Use add_basic_prefix_cmd,
7572 add_show_prefix_cmd.
7573 * infcmd.c (unset_command): Remove.
7574 (_initialize_infcmd): Use add_basic_prefix_cmd.
7575 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7576 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7577 add_show_prefix_cmd.
7578 * go32-nat.c (go32_info_dos_command): Remove.
7579 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7580 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7581 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7582 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7583 (_initialize_frame): Use add_basic_prefix_cmd,
7584 add_show_prefix_cmd.
7585 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7586 (_initialize_dcache): Use add_basic_prefix_cmd,
7587 add_show_prefix_cmd.
7588 * cp-support.c (maint_cplus_command): Remove.
7589 (_initialize_cp_support): Use add_basic_prefix_cmd.
7590 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7591 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7592 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7593 add_basic_prefix_cmd, add_show_prefix_cmd.
7594 * breakpoint.c (save_command): Remove.
7595 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7596 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7597 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7598 add_show_prefix_cmd.
7599 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7600 (set_ada_command, show_ada_command): Remove.
7601 (_initialize_ada_language): Use add_basic_prefix_cmd,
7602 add_show_prefix_cmd.
7603 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7604
7605 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7606
7607 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7608 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7609
7610 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7611
7612 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7613 warning messages.
7614
7615 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7616
7617 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7618 import table is not at beginning of .idata section.
7619
7620 2020-04-16 Pedro Alves <palves@redhat.com>
7621
7622 * inferior.c (delete_inferior): Use delete operator directly
7623 instead of delete_program_space.
7624 * progspace.c (add_program_space): New, factored out from
7625 program_space::program_space.
7626 (remove_program_space): New, factored out from
7627 delete_program_space.
7628 (program_space::program_space): Remove intro comment. Rewrite.
7629 (program_space::~program_space): Remove intro comment. Call
7630 remove_program_space.
7631 (delete_program_space): Delete.
7632 * progspace.h (program_space::program_space): Make explicit. Move
7633 intro comment here, adjusted.
7634 (program_space::~program_space): Move intro comment here,
7635 adjusted.
7636 (delete_program_space): Remove.
7637
7638 2020-04-16 Tom Tromey <tromey@adacore.com>
7639
7640 * windows-nat.c (windows_nat::handle_access_violation): New
7641 function.
7642 * nat/windows-nat.h (handle_access_violation): Declare.
7643 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7644 windows-nat.c. Call handle_access_violation.
7645
7646 2020-04-16 Tom de Vries <tdevries@suse.de>
7647
7648 PR symtab/25791
7649 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7650 CUs without psymtab.
7651
7652 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7653
7654 * python/python.c (do_start_initialization): Don't call
7655 PyEval_InitThreads for Python 3.9 and beyond.
7656
7657 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7658
7659 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7660 thread functions.
7661 (obsd_nat_target::wait): Likewise.
7662
7663 2020-04-15 Tom Tromey <tromey@adacore.com>
7664
7665 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7666 (DEBUG_EXCEPT): Use debug_printf.
7667
7668 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7669
7670 * completer.c (class completion_tracker::completion_hash_entry)
7671 <hash_name>: New member function.
7672 (completion_tracker::discard_completions): New callback to hash a
7673 completion_hash_entry, pass this to htab_create_alloc.
7674
7675 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7676
7677 * windows-nat.c (windows_make_so): Warn rather than stopping with
7678 an error if realpath() fails.
7679
7680 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7681
7682 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7683 (nbsd_nat_target::info_proc): Add do_status.
7684
7685 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7686 Tom de Vries <tdevries@suse.de>
7687
7688 PR symtab/25718
7689 * psympriv.h (struct partial_symtab::read_symtab)
7690 (struct partial_symtab::expand_psymtab)
7691 (struct partial_symtab::read_dependencies): Update comments.
7692 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7693 read_symtab for includer.
7694 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7695 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7696 (struct dwarf2_include_psymtab::m_readin): Remove.
7697 (struct dwarf2_include_psymtab::includer): New member function.
7698 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7699
7700 2020-04-14 Tom de Vries <tdevries@suse.de>
7701
7702 PR symtab/25720
7703 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7704 with NULL symbol_matcher and lookup_name.
7705 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7706 and lookup_name.
7707 * dwarf2/read.c (dw2_expand_symtabs_matching)
7708 (dw2_debug_names_expand_symtabs_matching): Same.
7709 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7710 Make lookup_name a pointer. Update comment.
7711 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7712 lookup_name being a pointer.
7713 * symfile.c (expand_symtabs_matching): Same.
7714 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7715 * linespec.c (iterate_over_all_matching_symtabs): Same.
7716
7717 2020-04-13 Tom Tromey <tom@tromey.com>
7718
7719 * run-on-main-thread.c: Update include.
7720 * unittests/main-thread-selftests.c: Update include.
7721 * tui/tui-win.c: Update include.
7722 * tui/tui-io.c: Update include.
7723 * tui/tui-interp.c: Update include.
7724 * tui/tui-hooks.c: Update include.
7725 * top.h: Update include.
7726 * top.c: Update include.
7727 * ser-base.c: Update include.
7728 * remote.c: Update include.
7729 * remote-notif.c: Update include.
7730 * remote-fileio.c: Update include.
7731 * record-full.c: Update include.
7732 * record-btrace.c: Update include.
7733 * python/python.c: Update include.
7734 * posix-hdep.c: Update include.
7735 * mingw-hdep.c: Update include.
7736 * mi/mi-main.c: Update include.
7737 * mi/mi-interp.c: Update include.
7738 * main.c: Update include.
7739 * linux-nat.c: Update include.
7740 * interps.c: Update include.
7741 * infrun.c: Update include.
7742 * inf-loop.c: Update include.
7743 * event-top.c: Update include.
7744 * event-loop.c: Move to ../gdbsupport/.
7745 * event-loop.h: Move to ../gdbsupport/.
7746 * async-event.h: Update include.
7747 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7748
7749 2020-04-13 Tom Tromey <tom@tromey.com>
7750
7751 * tui/tui-win.c: Include async-event.h.
7752 * remote.c: Include async-event.h.
7753 * remote-notif.c: Include async-event.h.
7754 * record-full.c: Include async-event.h.
7755 * record-btrace.c: Include async-event.h.
7756 * infrun.c: Include async-event.h.
7757 * event-top.c: Include async-event.h.
7758 * event-loop.h: Move some declarations to async-event.h.
7759 * event-loop.c: Don't include ser-event.h or top.h. Move some
7760 code to async-event.c.
7761 * async-event.h: New file.
7762 * async-event.c: New file.
7763 * Makefile.in (COMMON_SFILES): Add async-event.c.
7764 (HFILES_NO_SRCDIR): Add async-event.h.
7765
7766 2020-04-13 Tom Tromey <tom@tromey.com>
7767
7768 * utils.c (flush_streams): New function.
7769 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7770
7771 2020-04-13 Tom Tromey <tom@tromey.com>
7772
7773 * event-loop.c (handle_file_event): Use warning, not
7774 printf_unfiltered.
7775
7776 2020-04-13 Tom Tromey <tom@tromey.com>
7777
7778 * event-loop.c: Include <chrono>.
7779
7780 2020-04-13 Tom Tromey <tom@tromey.com>
7781
7782 * gdb_select.h: Move to ../gdbsupport/.
7783 * event-loop.c: Update include path.
7784 * top.c: Update include path.
7785 * ser-base.c: Update include path.
7786 * ui-file.c: Update include path.
7787 * ser-tcp.c: Update include path.
7788 * guile/scm-ports.c: Update include path.
7789 * posix-hdep.c: Update include path.
7790 * ser-unix.c: Update include path.
7791 * gdb_usleep.c: Update include path.
7792 * mingw-hdep.c: Update include path.
7793 * inflow.c: Update include path.
7794 * infrun.c: Update include path.
7795 * event-top.c: Update include path.
7796
7797 2020-04-13 Tom Tromey <tom@tromey.com>
7798
7799 * configure: Rebuild.
7800 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7801
7802 2020-04-13 Tom Tromey <tom@tromey.com>
7803
7804 * event-loop.h (start_event_loop): Don't declare.
7805 * event-loop.c (start_event_loop): Move...
7806 * main.c (start_event_loop): ...here. Now static.
7807
7808 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7809
7810 * MAINTAINERS: Update my email address.
7811
7812 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7813
7814 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7815 IP_ALL.
7816
7817 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7818
7819 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7820 (nbsd_nat_target::info_proc): Add do_cmdline.
7821
7822 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7823
7824 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7825 (nbsd_nat_target::info_proc): Add do_cwd.
7826
7827 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7828
7829 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7830
7831 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7832
7833 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7834 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7835 (nbsd_nat_target::info_proc): New functions.
7836 * nbsd-nat.c (kinfo_get_vmmap): New function.
7837 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7838 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7839 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7840 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7841 functions.
7842 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7843 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7844 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7845 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7846 (KINFO_VME_FLAG_GROWS_DOWN): New.
7847
7848 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7849
7850 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7851 bit shift.
7852
7853 2020-04-10 Tom Tromey <tromey@adacore.com>
7854
7855 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7856
7857 2020-04-10 Tom Tromey <tromey@adacore.com>
7858
7859 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7860 separate debug files.
7861
7862 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7863
7864 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7865 Move to...
7866 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7867 ... here.
7868 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7869 Check for STATUS_WX86_BREAKPOINT.
7870 (windows_nat_target::wait): Same.
7871
7872 2020-04-10 Tom de Vries <tdevries@suse.de>
7873
7874 PR cli/25808
7875 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7876
7877 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7878
7879 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7880 (Write After Approval): Remove Tom de Vries.
7881
7882 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7883
7884 revert partially:
7885 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7886
7887 * buildsym.c (record_line): Fix undefined behavior and preserve
7888 lines at eof.
7889
7890 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7891
7892 * auxv.h (svr4_auxv_parse): New.
7893 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7894 and generic_auxv_parse.
7895 (svr4_auxv_parse): Add.
7896 * obsd-tdep.c: Include "auxv.h".
7897 (obsd_auxv_parse): Remove.
7898 (obsd_init_abi): Remove comment.
7899 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7900 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7901 * nbsd-tdep.c: Include "auxv.h".
7902 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7903
7904 2020-04-08 Tom Tromey <tromey@adacore.com>
7905
7906 * nat/windows-nat.h (last_wait_event): Don't declare.
7907 (wait_for_debug_event): Update comment.
7908 * nat/windows-nat.c (last_wait_event): Now static.
7909
7910 2020-04-08 Tom Tromey <tromey@adacore.com>
7911
7912 * windows-nat.c (wait_for_debug_event): Move to
7913 nat/windows-nat.c.
7914 * nat/windows-nat.h (wait_for_debug_event): Declare.
7915 * nat/windows-nat.c (wait_for_debug_event): Move from
7916 windows-nat.c. No longer static.
7917
7918 2020-04-08 Tom Tromey <tromey@adacore.com>
7919
7920 * windows-nat.c (get_windows_debug_event): Use
7921 fetch_pending_stop.
7922 * nat/windows-nat.h (fetch_pending_stop): Declare.
7923 * nat/windows-nat.c (fetch_pending_stop): New function.
7924
7925 2020-04-08 Tom Tromey <tromey@adacore.com>
7926
7927 * windows-nat.c (windows_continue): Use matching_pending_stop and
7928 continue_last_debug_event.
7929 * nat/windows-nat.h (matching_pending_stop)
7930 (continue_last_debug_event): Declare.
7931 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7932 (matching_pending_stop, continue_last_debug_event): New
7933 functions.
7934
7935 2020-04-08 Tom Tromey <tromey@adacore.com>
7936
7937 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7938 (handle_exception_result): Move to nat/windows-nat.h.
7939 (DEBUG_EXCEPTION_SIMPLE): Remove.
7940 (windows_nat::handle_ms_vc_exception): New function.
7941 (handle_exception): Move to nat/windows-nat.c.
7942 (get_windows_debug_event): Update.
7943 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7944 nat/windows-nat.c.
7945 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7946 (handle_exception_result): Move from windows-nat.c.
7947 (handle_exception): Declare.
7948 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7949 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7950 windows-nat.c.
7951
7952 2020-04-08 Tom Tromey <tromey@adacore.com>
7953
7954 * windows-nat.c (exception_count, event_count): Remove.
7955 (handle_exception, get_windows_debug_event)
7956 (do_initial_windows_stuff): Update.
7957
7958 2020-04-08 Tom Tromey <tromey@adacore.com>
7959
7960 * windows-nat.c (windows_nat::handle_load_dll)
7961 (windows_nat::handle_unload_dll): Rename. No longer static.
7962 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7963 Declare.
7964
7965 2020-04-08 Tom Tromey <tromey@adacore.com>
7966
7967 * complaints.h (stop_whining): Declare at top-level.
7968 (complaint): Don't declare stop_whining.
7969
7970 2020-04-08 Tom Tromey <tromey@adacore.com>
7971
7972 * windows-nat.c (windows_nat::handle_output_debug_string):
7973 Rename. No longer static.
7974 * nat/windows-nat.h (handle_output_debug_string): Declare.
7975
7976 2020-04-08 Tom Tromey <tromey@adacore.com>
7977
7978 * windows-nat.c (current_process_handle, current_process_id)
7979 (main_thread_id, last_sig, current_event, last_wait_event)
7980 (current_windows_thread, desired_stop_thread_id, pending_stops)
7981 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7982 (display_selectors, fake_create_process)
7983 (get_windows_debug_event): Update.
7984 * nat/windows-nat.h (current_process_handle, current_process_id)
7985 (main_thread_id, last_sig, current_event, last_wait_event)
7986 (current_windows_thread, desired_stop_thread_id, pending_stops)
7987 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7988 * nat/windows-nat.c (current_process_handle, current_process_id)
7989 (main_thread_id, last_sig, current_event, last_wait_event)
7990 (current_windows_thread, desired_stop_thread_id, pending_stops)
7991 (siginfo_er): New globals. Move from windows-nat.c.
7992
7993 2020-04-08 Tom Tromey <tromey@adacore.com>
7994
7995 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7996 (handle_load_dll): Update.
7997 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7998
7999 2020-04-08 Tom Tromey <tromey@adacore.com>
8000
8001 * windows-nat.c (enum thread_disposition_type): Move to
8002 nat/windows-nat.h.
8003 (windows_nat::thread_rec): Rename from thread_rec. No longer
8004 static.
8005 (windows_add_thread, windows_nat_target::fetch_registers)
8006 (windows_nat_target::store_registers, handle_exception)
8007 (windows_nat_target::resume, get_windows_debug_event)
8008 (windows_nat_target::get_tib_address)
8009 (windows_nat_target::thread_name)
8010 (windows_nat_target::thread_alive): Update.
8011 * nat/windows-nat.h (enum thread_disposition_type): Move from
8012 windows-nat.c.
8013 (thread_rec): Declare.
8014
8015 2020-04-08 Tom Tromey <tromey@adacore.com>
8016
8017 * windows-nat.c: Add "using namespace".
8018 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8019 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8020
8021 2020-04-08 Tom Tromey <tromey@adacore.com>
8022
8023 * nat/windows-nat.h (struct windows_thread_info): Declare
8024 destructor.
8025 * nat/windows-nat.c (~windows_thread_info): New.
8026
8027 2020-04-08 Tom Tromey <tromey@adacore.com>
8028
8029 PR gdb/22992
8030 * windows-nat.c (current_event): Update comment.
8031 (last_wait_event, desired_stop_thread_id): New globals.
8032 (struct pending_stop): New.
8033 (pending_stops): New global.
8034 (windows_nat_target) <stopped_by_sw_breakpoint>
8035 <supports_stopped_by_sw_breakpoint>: New methods.
8036 (windows_fetch_one_register): Add assertions. Adjust PC.
8037 (windows_continue): Handle pending stops. Suspend other threads
8038 when stepping. Use last_wait_event
8039 (wait_for_debug_event): New function.
8040 (get_windows_debug_event): Use wait_for_debug_event. Handle
8041 pending stops. Queue spurious stops.
8042 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8043 (windows_nat_target::kill): Use wait_for_debug_event.
8044 * nat/windows-nat.h (struct windows_thread_info)
8045 <stopped_at_software_breakpoint>: New field.
8046 * nat/windows-nat.c (windows_thread_info::resume): Clear
8047 stopped_at_software_breakpoint.
8048
8049 2020-04-08 Tom Tromey <tromey@adacore.com>
8050
8051 * windows-nat.c (enum thread_disposition_type): New.
8052 (thread_rec): Replace "get_context" parameter with "disposition";
8053 change type.
8054 (windows_add_thread, windows_nat_target::fetch_registers)
8055 (windows_nat_target::store_registers, handle_exception)
8056 (windows_nat_target::resume, get_windows_debug_event)
8057 (windows_nat_target::get_tib_address)
8058 (windows_nat_target::thread_name)
8059 (windows_nat_target::thread_alive): Update.
8060
8061 2020-04-08 Tom Tromey <tromey@adacore.com>
8062
8063 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8064 (windows_continue): Use windows_continue::resume.
8065 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8066 resume>: Declare new methods.
8067 * nat/windows-nat.c: New file.
8068 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8069
8070 2020-04-08 Tom Tromey <tromey@adacore.com>
8071
8072 * windows-nat.c (windows_add_thread, windows_delete_thread)
8073 (windows_nat_target::fetch_registers)
8074 (windows_nat_target::store_registers, fake_create_process)
8075 (windows_nat_target::resume, windows_nat_target::resume)
8076 (get_windows_debug_event, windows_nat_target::wait)
8077 (windows_nat_target::pid_to_str)
8078 (windows_nat_target::get_tib_address)
8079 (windows_nat_target::get_ada_task_ptid)
8080 (windows_nat_target::thread_name)
8081 (windows_nat_target::thread_alive): Use lwp, not tid.
8082
8083 2020-04-08 Tom Tromey <tromey@adacore.com>
8084
8085 * windows-nat.c (handle_exception)
8086 (windows_nat_target::thread_name): Update.
8087 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8088 <name>: Now unique_xmalloc_ptr.
8089
8090 2020-04-08 Tom Tromey <tromey@adacore.com>
8091
8092 * windows-nat.c (thread_rec)
8093 (windows_nat_target::fetch_registers): Update.
8094 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8095 Update comment.
8096 <debug_registers_changed, reload_context>: Now bool.
8097
8098 2020-04-08 Tom Tromey <tromey@adacore.com>
8099
8100 * windows-nat.c (windows_add_thread): Use new.
8101 (windows_init_thread_list, windows_delete_thread): Use delete.
8102 (get_windows_debug_event): Update.
8103 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8104 destructor, and initializers.
8105
8106 2020-04-08 Tom Tromey <tromey@adacore.com>
8107
8108 * windows-nat.c (struct windows_thread_info): Remove.
8109 * nat/windows-nat.h: New file.
8110
8111 2020-04-08 Tom Tromey <tromey@adacore.com>
8112
8113 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8114 (thread_rec, windows_add_thread, windows_delete_thread)
8115 (windows_continue): Update.
8116
8117 2020-04-08 Tom Tromey <tromey@adacore.com>
8118
8119 * windows-nat.c (struct windows_thread_info): Remove typedef.
8120 (thread_head): Remove.
8121 (thread_list): New global.
8122 (thread_rec, windows_add_thread, windows_init_thread_list)
8123 (windows_delete_thread, windows_continue): Update.
8124
8125 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8126
8127 * windows-tdep.h (windows_init_abi): Add comment.
8128 (cygwin_init_abi): New declaration.
8129 * windows-tdep.c: Split signal enumeration in two, one for
8130 Windows and one for Cygwin.
8131 (windows_gdb_signal_to_target): Only deal with signal of the
8132 Windows OS ABI.
8133 (cygwin_gdb_signal_to_target): New function.
8134 (windows_init_abi): Rename to windows_init_abi_common, don't set
8135 gdb_signal_to_target gdbarch method. Add new new function with
8136 this name.
8137 (cygwin_init_abi): New function.
8138 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8139 comment. Don't call windows_init_abi.
8140 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8141 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8142 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8143 i386_windows_init_abi_common, don't call windows_init_abi. Add
8144 a new function of this name.
8145 (i386_cygwin_init_abi): New function.
8146 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8147 OS ABI Cygwin.
8148
8149 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8150
8151 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8152 parameter.c.
8153 (dwarf2_read_gdb_index): Update.
8154
8155 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8156
8157 * nbsd-tdep.c: Include "objfiles.h".
8158 (nbsd_skip_solib_resolver): New.
8159 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8160
8161 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8162
8163 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8164 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8165 with DW_LLE_base_addressx are being emitted in DWARFv5.
8166 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8167 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8168 unsigned integer.
8169
8170 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8171
8172 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8173 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8174 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8175 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8176 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8177 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8178 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8179
8180
8181 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8182
8183 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8184 (read_loclist_index): New function definition.
8185 (lookup_loclist_base): New function definition.
8186 (read_loclist_header): New function definition.
8187 (dwarf2_cu): Add loclist_base and loclist_header field.
8188 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8189 (read_full_die_1): Read the value of DW_AT_loclists_base.
8190 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8191 (read_attribute_value): Handle DW_FORM_loclistx.
8192 (skip_one_die): Handle DW_FORM_loclistx.
8193 (loclist_header): New structure declaration.
8194 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8195
8196 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8197
8198 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8199 constructor. Remove `addr` parameter from other constructor and
8200 add `per_cu` parameter.
8201 * dwarf2/read.c (create_partial_symtab): Update.
8202
8203 2020-04-07 Tom de Vries <tdevries@suse.de>
8204
8205 PR symtab/25796
8206 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8207 (partial_die_info::fixup): Inherit has_const_value.
8208
8209 2020-04-07 Tom de Vries <tdevries@suse.de>
8210
8211 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8212 symbols without address.
8213
8214 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8215
8216 * nbsd-nat.h (struct thread_info): Add forward declaration.
8217 (nbsd_nat_target::thread_alive): Add.
8218 (nbsd_nat_target::thread_name): Likewise.
8219 (nbsd_nat_target::update_thread_list): Likewise.
8220 (update_thread_list::post_attach): Likewise.
8221 (post_attach::pid_to_str): Likewise.
8222 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8223 (nbsd_thread_lister): Add.
8224 (nbsd_nat_target::thread_alive): Likewise.
8225 (nbsd_nat_target::thread_name): Likewise.
8226 (nbsd_add_threads): Likewise.
8227 (update_thread_list::post_attach): Likewise.
8228 (nbsd_nat_target::update_thread_list): Likewise.
8229 (post_attach::pid_to_str): Likewise.
8230
8231 2020-04-06 Tom Tromey <tromey@adacore.com>
8232
8233 * ada-valprint.c (print_variant_part): Extract the variant field.
8234 (print_field_values): Use the field as the outer value when
8235 recursing.
8236
8237 2020-04-06 Tom Tromey <tromey@adacore.com>
8238
8239 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8240 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8241 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8242 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8243 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8244
8245 2020-04-06 Tom Tromey <tromey@adacore.com>
8246
8247 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8248 TYPE_CODE_ERROR.
8249
8250 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8251
8252 * nbsd-tdep.c: Include "gdbarch.h".
8253 Define enum with NetBSD signal numbers.
8254 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8255 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8256 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8257 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8258 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8259 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8260 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8261 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8262 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8263 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8264 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8265 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8266
8267 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8268
8269 PR gdb/25325
8270 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8271
8272 2020-04-03 Tom Tromey <tromey@adacore.com>
8273
8274 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8275 Read constant block.
8276
8277 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8278
8279 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8280 (gdb_bfd_get_full_section_contents): New declaration.
8281 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8282 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8283 gdb_bfd_get_full_section_contents.
8284
8285 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8286
8287 * exec.c (build_section_table): Replace internal_error with
8288 gdb_assert.
8289 (section_table_xfer_memory_partial): Likewise.
8290 * mdebugread.c (parse_partial_symbols): Likewise.
8291 * psymtab.c (lookup_partial_symbol): Likewise.
8292 * utils.c (wrap_here): Likewise.
8293
8294 2020-04-02 Tom Tromey <tromey@adacore.com>
8295
8296 * f-lang.c (build_fortran_types): Use arch_type to initialize
8297 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8298
8299 2020-04-02 Tom Tromey <tromey@adacore.com>
8300
8301 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8302 of attributes.
8303
8304 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8305 Bernd Edlinger <bernd.edlinger@hotmail.de>
8306 Tom Tromey <tromey@adacore.com>
8307
8308 * buildsym.c (buildsym_compunit::record_line): Remove
8309 deduplication code.
8310
8311 2020-04-02 Tom de Vries <tdevries@suse.de>
8312
8313 PR ada/24671
8314 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8315
8316 2020-04-02 Tom de Vries <tdevries@suse.de>
8317
8318 * dwarf2/read.c (dwarf2_gdb_index_functions,
8319 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8320 NULL.
8321 * psymtab.c (psym_lookup_global_symbol_language): New function.
8322 (psym_functions): Init psym_lookup_global_symbol_language with
8323 psym_lookup_global_symbol_language.
8324 * symfile-debug.c (debug_sym_quick_functions): Init
8325 lookup_global_symbol_language with NULL.
8326 * symfile.c (set_initial_language): Remove fixme comment.
8327 * symfile.h (struct quick_symbol_functions): Add
8328 lookup_global_symbol_language.
8329 * symtab.c (find_quick_global_symbol_language): New function.
8330 (find_main_name): Use find_quick_global_symbol_language.
8331
8332 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8333
8334 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8335
8336 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8337
8338 * buildsym.c (record_line): Fix undefined behavior and preserve
8339 lines at eof.
8340
8341 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8342
8343 * buildsym.c (record_line): Fix the resizing condition.
8344
8345 2020-04-01 Tom Tromey <tom@tromey.com>
8346
8347 * value.h (value_literal_complex): Add comment.
8348 * valops.c (value_literal_complex): Refer to value.h.
8349
8350 2020-04-01 Tom Tromey <tom@tromey.com>
8351
8352 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8353 (scalar_type): New rule, from typebase.
8354 (typebase): Use scalar_type. Recognize complex types.
8355 (field_name): Handle FLOAT_KEYWORD.
8356 (ident_tokens): Add _Complex and __complex__.
8357
8358 2020-04-01 Tom Tromey <tom@tromey.com>
8359
8360 PR exp/25299:
8361 * valarith.c (promotion_type, complex_binop): New functions.
8362 (scalar_binop): Handle complex numbers. Use promotion_type.
8363 (value_pos, value_neg, value_complement): Handle complex numbers.
8364
8365 2020-04-01 Tom Tromey <tom@tromey.com>
8366
8367 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8368 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8369 (parse_number): Handle complex numbers.
8370
8371 2020-04-01 Tom Tromey <tom@tromey.com>
8372
8373 * c-valprint.c (c_decorations): Change complex suffix to "i".
8374
8375 2020-04-01 Tom Tromey <tom@tromey.com>
8376
8377 * valprint.c (generic_value_print_complex): Use accessors.
8378 * value.h (value_real_part, value_imaginary_part): Declare.
8379 * valops.c (value_real_part, value_imaginary_part): New
8380 functions.
8381 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8382
8383 2020-04-01 Tom Tromey <tom@tromey.com>
8384
8385 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8386 (read_range_type): Update.
8387 * mdebugread.c (basic_type): Update.
8388 * go-lang.c (build_go_types): Use init_complex_type.
8389 * gdbtypes.h (struct main_type) <complex_type>: New member.
8390 (init_complex_type): Update.
8391 (arch_complex_type): Don't declare.
8392 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8393 Make name if none given. Use alloc_type_copy. Look for cached
8394 complex type.
8395 (arch_complex_type): Remove.
8396 (gdbtypes_post_init): Use init_complex_type.
8397 * f-lang.c (build_fortran_types): Use init_complex_type.
8398 * dwarf2/read.c (read_base_type): Update.
8399 * d-lang.c (build_d_types): Use init_complex_type.
8400 * ctfread.c (read_base_type): Update.
8401
8402 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8403
8404 * infrun.c (stop_all_threads): Update assertion, plus when
8405 stopping threads, take into account that we might be trying
8406 to stop an all-stop target.
8407 (stop_waiting): Call 'stop_all_threads' if there exists a
8408 non-stop target.
8409
8410 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8411
8412 * target.h (exists_non_stop_target): New function declaration.
8413 * target.c (exists_non_stop_target): New function.
8414
8415 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8416
8417 PR gdb/24789
8418 * eval.c (is_integral_or_integral_reference): New function.
8419 (evaluate_subexp_standard): Allow integer references in
8420 pointer arithmetic.
8421
8422 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8423
8424 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8425 check for no ptid in the stop reply when the target is non-stop.
8426
8427 2020-04-01 Tom Tromey <tromey@adacore.com>
8428
8429 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8430 "name" parameter to rvalue reference. Initialize m_name_holder.
8431 <lookup_name_info>: New overloads.
8432 <name>: Return gdb::string_view.
8433 <c_str>: New method.
8434 <make_ignore_params>: Update.
8435 <search_name_hash>: Update.
8436 <language_lookup_name>: Return const char *.
8437 <m_name>: Change type.
8438 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8439 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8440 (lookup_name_info::match_any): Update.
8441 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8442 Update.
8443 * minsyms.c (linkage_name_str): Update.
8444 * language.c (default_symbol_name_matcher): Update.
8445 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8446 Update.
8447 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8448 (ada_lookup_name_info::ada_lookup_name_info): Update.
8449 (literal_symbol_name_matcher): Update.
8450
8451 2020-04-01 Tom Tromey <tromey@adacore.com>
8452
8453 * psymtab.c (psymtab_search_name): Remove function.
8454 (psym_lookup_symbol): Create search name and lookup name here.
8455 (lookup_partial_symbol): Remove "name" parameter; add
8456 lookup_name.
8457 (psym_expand_symtabs_for_function): Update.
8458
8459 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8460
8461 PR tui/25597:
8462 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8463
8464 2020-03-31 Tom Tromey <tromey@adacore.com>
8465
8466 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8467 memcpy.
8468
8469 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8470
8471 * features/riscv/32bit-csr.xml: Regenerated.
8472 * features/riscv/64bit-csr.xml: Regenerated.
8473
8474 2020-03-30 Tom Tromey <tromey@adacore.com>
8475
8476 * ada-valprint.c (print_variant_part): Update.
8477 * ada-lang.h (ada_which_variant_applies): Update.
8478 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8479 outer_valaddr parameters; replace with "outer" value parameter.
8480 (to_fixed_variant_branch_type): Update.
8481
8482 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8483
8484 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8485 <list>. Remove inclusion of observable.h.
8486 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8487 (struct arch_lwp_info): New struct.
8488 (class ppc_linux_dreg_interface): New class.
8489 (struct ppc_linux_process_info): New struct.
8490 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8491 <low_new_clone, low_forget_process, low_prepare_to_resume>
8492 <copy_thread_dreg_state, mark_thread_stale>
8493 <mark_debug_registers_changed, register_hw_breakpoint>
8494 <clear_hw_breakpoint, register_wp, clear_wp>
8495 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8496 <num_memory_accesses, get_trigger_type>
8497 <create_watchpoint_request, hwdebug_point_cmp>
8498 <init_arch_lwp_info, get_arch_lwp_info>
8499 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8500 methods.
8501 <struct ptid_hash>: New inner struct.
8502 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8503 members.
8504 (saved_dabr_value, hwdebug_info, max_slots_number)
8505 (struct hw_break_tuple, struct thread_points, ppc_threads)
8506 (have_ptrace_hwdebug_interface)
8507 (hwdebug_find_thread_points_by_tid)
8508 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8509 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8510 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8511 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8512 use m_dreg_interface.
8513 (hwdebug_point_cmp): Change to...
8514 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8515 reference arguments instead of pointers.
8516 (ppc_linux_nat_target::ranged_break_num_registers): Use
8517 m_dreg_interface.
8518 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8519 m_dreg_interface. Call register_hw_breakpoint.
8520 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8521 m_dreg_interface. Call clear_hw_breakpoint.
8522 (get_trigger_type): Change to...
8523 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8524 comment.
8525 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8526 use m_dreg_interface. Call register_hw_breakpoint.
8527 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8528 use m_dreg_interface. Call clear_hw_breakpoint.
8529 (can_use_watchpoint_cond_accel): Change to...
8530 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8531 method. Update comment, use m_dreg_interface and
8532 m_process_info.
8533 (calculate_dvc): Change to...
8534 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8535 m_dreg_interface.
8536 (num_memory_accesses): Change to...
8537 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8538 (check_condition): Change to...
8539 (ppc_linux_nat_target::check_condition): ...this method.
8540 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8541 comment, use m_dreg_interface.
8542 (create_watchpoint_request): Change to...
8543 (ppc_linux_nat_target::create_watchpoint_request): ...this
8544 method. Use m_dreg_interface.
8545 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8546 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8547 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8548 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8549 (ppc_linux_nat_target::low_forget_process)
8550 (ppc_linux_nat_target::low_new_fork)
8551 (ppc_linux_nat_target::low_new_clone)
8552 (ppc_linux_nat_target::low_delete_thread)
8553 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8554 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8555 only call mark_thread_stale.
8556 (ppc_linux_thread_exit): Remove.
8557 (ppc_linux_nat_target::stopped_data_address): Change to...
8558 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8559 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8560 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8561 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8562 comment. Call low_stopped_data_address.
8563 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8564 m_dreg_interface.
8565 (ppc_linux_nat_target::masked_watch_num_registers): Use
8566 m_dreg_interface.
8567 (ppc_linux_nat_target::copy_thread_dreg_state)
8568 (ppc_linux_nat_target::mark_thread_stale)
8569 (ppc_linux_nat_target::mark_debug_registers_changed)
8570 (ppc_linux_nat_target::register_hw_breakpoint)
8571 (ppc_linux_nat_target::clear_hw_breakpoint)
8572 (ppc_linux_nat_target::register_wp)
8573 (ppc_linux_nat_target::clear_wp)
8574 (ppc_linux_nat_target::init_arch_lwp_info)
8575 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8576 (_initialize_ppc_linux_nat): Remove observer callback.
8577
8578 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8579
8580 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8581 (ppc_linux_nat_target::auxv_parse)
8582 (ppc_linux_nat_target::read_description)
8583 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8584 Move up.
8585
8586 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8587
8588 * linux-nat.h (low_new_clone): New method.
8589 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8590
8591 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8592
8593 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8594 (dbx_expand_psymtab): ... this.
8595 (start_psymtab): Update.
8596 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8597 (mdebug_expand_psymtab): ... this.
8598 (parse_partial_symbols): Update.
8599 (new_psymtab): Update.
8600 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8601 (xcoff_expand_psymtab): ... this.
8602 (xcoff_start_psymtab): Update.
8603
8604 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8605
8606 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8607 <expand_dependencies>: ... this.
8608 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8609 (partial_symtab::expand_dependencies): ... this.
8610 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8611 Update.
8612 (dwarf2_psymtab::expand_psymtab): Update.
8613 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8614 * mdebugread.c (psymtab_to_symtab_1): Update.
8615 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8616
8617 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8618
8619 * psympriv.h (discard_psymtab): Remove.
8620 * dbxread.c (dbx_end_psymtab): Update.
8621 * xcoffread.c (xcoff_end_psymtab): Update.
8622
8623 2020-03-28 Tom Tromey <tom@tromey.com>
8624
8625 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8626 comment.
8627
8628 2020-03-28 Tom Tromey <tom@tromey.com>
8629
8630 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8631
8632 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8633
8634 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8635
8636 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8637
8638 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8639
8640 2020-03-26 Tom Tromey <tom@tromey.com>
8641
8642 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8643 (mark_common_block_symbol_computed, read_tag_string_type)
8644 (attr_to_dynamic_prop, read_subrange_type): Update.
8645 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8646 to be methods on struct attribute.
8647 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8648 (read_call_site_scope, partial_die_info::read)
8649 (partial_die_info::read, lookup_die_type, follow_die_ref):
8650 Update.
8651 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8652 from dwarf2_get_ref_die_offset.
8653 (attribute::constant_value): New method, from
8654 dwarf2_get_attr_constant_value.
8655 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8656 Declare method.
8657 <constant_value>: New method.
8658
8659 2020-03-26 Tom Tromey <tom@tromey.com>
8660
8661 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8662 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8663 (dwarf_type_encoding_name): Move to stringify.c.
8664 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8665 * dwarf2/stringify.c: New file.
8666 * dwarf2/stringify.h: New file.
8667
8668 2020-03-26 Tom Tromey <tom@tromey.com>
8669
8670 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8671 Rewrite.
8672
8673 2020-03-26 Tom Tromey <tom@tromey.com>
8674
8675 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8676 methods.
8677 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8678 (lookup_ranges_base): Likewise.
8679 (read_cutu_die_from_dwo, read_full_die_1): Update.
8680
8681 2020-03-26 Tom Tromey <tom@tromey.com>
8682
8683 * dwarf2/read.c (read_import_statement, read_file_scope)
8684 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8685 (read_lexical_block_scope, read_call_site_scope)
8686 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8687 (handle_struct_member_die, process_structure_scope)
8688 (update_enumeration_type_from_children)
8689 (process_enumeration_scope, read_array_type, read_common_block)
8690 (read_namespace, read_module, read_subroutine_type): Update.
8691 (sibling_die): Remove.
8692
8693 2020-03-26 Tom Tromey <tom@tromey.com>
8694
8695 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8696 (build_type_psymtabs_reader, read_structure_type)
8697 (read_enumeration_type, read_full_die_1): Update.
8698 (dwarf2_attr_no_follow): Move to die.h.
8699 * dwarf2/die.h (struct die_info) <attr>: New method.
8700
8701 2020-03-26 Tom Tromey <tom@tromey.com>
8702
8703 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8704 <base_address>: Now an optional.
8705 (dwarf2_find_base_address, dwarf2_rnglists_process)
8706 (dwarf2_ranges_process, fill_in_loclist_baton)
8707 (dwarf2_symbol_mark_computed): Update.
8708
8709 2020-03-26 Tom Tromey <tom@tromey.com>
8710
8711 * dwarf2/read.c (struct die_info): Move to die.h.
8712 * dwarf2/die.h: New file.
8713
8714 2020-03-26 Tom Tromey <tom@tromey.com>
8715
8716 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8717 * dwarf2/read.c
8718 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8719 Move to line-header.c.
8720 (read_checked_initial_length_and_offset, read_formatted_entries):
8721 Likewise.
8722 (dwarf_decode_line_header): Split into two.
8723 * dwarf2/line-header.c
8724 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8725 Move from read.c.
8726 (read_checked_initial_length_and_offset, read_formatted_entries):
8727 Likewise.
8728 (dwarf_decode_line_header): New function, split from read.c.
8729
8730 2020-03-26 Tom Tromey <tom@tromey.com>
8731
8732 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8733 Declare method.
8734 * dwarf2/read.c (read_attribute_value): Update.
8735 (dwarf2_per_objfile::read_line_string): Rename from
8736 read_indirect_line_string.
8737 (read_formatted_entries): Update.
8738
8739 2020-03-26 Tom Tromey <tom@tromey.com>
8740
8741 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8742 variable.
8743
8744 2020-03-26 Tom Tromey <tom@tromey.com>
8745
8746 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8747 const.
8748 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8749 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8750 parameter const.
8751
8752 2020-03-26 Tom Tromey <tom@tromey.com>
8753
8754 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8755 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8756 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8757 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8758
8759 2020-03-26 Tom Tromey <tom@tromey.com>
8760
8761 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8762 file_names_size, file_full_name, file_file_name>: Use const.
8763 <file_name_at, file_names>: Add const overload.
8764 * dwarf2/line-header.c (line_header::file_file_name)
8765 (line_header::file_full_name): Update.
8766
8767 2020-03-26 Tom Tromey <tom@tromey.com>
8768
8769 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8770 (macro_start_file, consume_improper_spaces)
8771 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8772 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8773 (dwarf_decode_macros): Move to macro.c.
8774 * dwarf2/macro.c: New file.
8775 * dwarf2/macro.h: New file.
8776 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8777
8778 2020-03-26 Tom Tromey <tom@tromey.com>
8779
8780 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8781 method.
8782 * dwarf2/section.c: New method. From
8783 read_indirect_string_at_offset_from.
8784 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8785 (read_indirect_string_at_offset_from): Move to section.c.
8786 (read_indirect_string_at_offset): Rewrite.
8787 (read_indirect_line_string_at_offset): Remove.
8788 (read_indirect_string, read_indirect_line_string)
8789 (dwarf_decode_macro_bytes): Update.
8790
8791 2020-03-26 Tom Tromey <tom@tromey.com>
8792
8793 * dwarf2/section.h (struct dwarf2_section_info)
8794 <overload_complaint>: Declare.
8795 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8796 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8797 Rename from dwarf2_section_buffer_overflow_complaint.
8798 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8799 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8800
8801 2020-03-26 Tom Tromey <tom@tromey.com>
8802
8803 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8804 Declare.
8805 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8806 Move from read.c.
8807 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8808 to section.c.
8809
8810 2020-03-26 Tom Tromey <tom@tromey.com>
8811
8812 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8813
8814 2020-03-26 Tom Tromey <tom@tromey.com>
8815
8816 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8817 "builder".
8818 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8819 parameter.
8820 (dwarf_decode_macros): Update.
8821
8822 2020-03-26 Tom Tromey <tom@tromey.com>
8823
8824 * dwarf2/read.c (read_attribute_value): Update.
8825 (read_indirect_string_from_dwz): Move to dwz.c; change into
8826 method.
8827 (dwarf_decode_macro_bytes): Update.
8828 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8829 * dwarf2/dwz.c: New file.
8830 * Makefile.in (COMMON_SFILES): Add dwz.c.
8831
8832 2020-03-26 Tom Tromey <tom@tromey.com>
8833
8834 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8835 * dwarf2/read.c: Add include.
8836 * dwarf2/index-write.c: Add include.
8837 * dwarf2/index-cache.c: Add include.
8838 * dwarf2/dwz.h: New file.
8839
8840 2020-03-25 Tom Tromey <tom@tromey.com>
8841
8842 * compile/compile-object-load.c (get_out_value_type): Mention
8843 correct symbol name in error message.
8844
8845 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8846
8847 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8848
8849 2020-03-25 Tom de Vries <tdevries@suse.de>
8850
8851 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8852 * symmisc.c (dump_symtab_1): Print user and includes fields.
8853 (maintenance_info_symtabs): Same.
8854
8855 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8856
8857 PR gdb/25534
8858 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8859 (riscv_regcache_cooked_write): New function.
8860 (riscv_push_dummy_call): Use new function.
8861 (riscv_return_value): Likewise.
8862
8863 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8864
8865 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8866 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8867 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8868 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8869 * infrun.c (follow_fork): Likewise.
8870 (follow_fork_inferior): Likewise.
8871 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8872 * linux-nat.h (class linux_nat_target): Likewise.
8873 * remote.c (class remote_target) <follow_fork>: Likewise.
8874 (remote_target::follow_fork): Likewise.
8875 * target-delegates.c: Re-generate.
8876 * target.c (default_follow_fork): Likewise.
8877 (target_follow_fork): Likewise.
8878 * target.h (struct target_ops) <follow_fork>: Likewise.
8879 (target_follow_fork): Likewise.
8880
8881 2020-03-24 Tom de Vries <tdevries@suse.de>
8882
8883 * psymtab.c (maintenance_info_psymtabs): Print user field.
8884
8885 2020-03-20 Tom Tromey <tromey@adacore.com>
8886
8887 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8888 const.
8889 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8890 const.
8891
8892 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8893
8894 * ptrace.m4: Don't check for ptrace declaration.
8895 * config.in: Re-generate.
8896 * configure: Re-generate.
8897 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8898 not defined.
8899
8900 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8901
8902 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8903 `PTRACE_TYPE_RET'.
8904 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8905 * sparc-nat.c (gdb_ptrace): Likewise.
8906 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8907
8908 2020-03-20 Tom Tromey <tromey@adacore.com>
8909
8910 * c-exp.y (lex_one_token): Fix assert.
8911
8912 2020-03-20 Tom Tromey <tromey@adacore.com>
8913
8914 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8915 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8916 strncpy call.
8917
8918 2020-03-20 Tom Tromey <tromey@adacore.com>
8919
8920 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8921
8922 2020-03-20 Tom Tromey <tromey@adacore.com>
8923
8924 * ada-valprint.c (print_variant_part): Remove parameters; switch
8925 to value-based API.
8926 (print_field_values): Likewise.
8927 (ada_val_print_struct_union): Likewise.
8928 (ada_value_print_1): Update.
8929
8930 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8931
8932 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8933 nbsd_nat_target instead of inf_ptrace_target.
8934 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8935 nbsd_nat_target.
8936
8937 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8938
8939 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8940 it to the ptrace call.
8941 * (store_registers): Likewise.
8942
8943 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8944
8945 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8946 it to the ptrace call.
8947 * (store_registers): Likewise.
8948
8949 2020-03-19 Luis Machado <luis.machado@linaro.org>
8950
8951 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8952 valid, fetch vg value from ptrace.
8953
8954 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8955 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8956 * inf-ptrace.c: Likewise.
8957 * (gdb_ptrace): Add.
8958 * (inf_ptrace_target::resume): Update.
8959 * (inf_ptrace_target::xfer_partial): Likewise.
8960 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8961 * (inf_ptrace_peek_poke): Update.
8962
8963 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8964
8965 * x86-bsd-nat.c (gdb_ptrace): New.
8966 * (x86bsd_dr_set): Add new argument `ptid'.
8967 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8968 x86bsd_dr_set_addr): Update.
8969
8970 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8971
8972 * remote.c (remote_target::process_stop_reply): Handle events for
8973 all threads differently.
8974
8975 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8976
8977 * completer.c (completion_tracker::remove_completion): Define new
8978 function.
8979 * completer.h (completion_tracker::remove_completion): Declare new
8980 function.
8981 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8982 when adding a C++ function symbol.
8983
8984 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8985
8986 * completer.c (completion_tracker::completion_hash_entry): Define
8987 new class.
8988 (advance_to_filename_complete_word_point): Call
8989 recompute_lowest_common_denominator.
8990 (completion_tracker::completion_tracker): Call discard_completions
8991 to setup the hash table.
8992 (completion_tracker::discard_completions): Allow for being called
8993 from the constructor, pass new equal function, and element deleter
8994 when constructing the hash table. Initialise new class member
8995 variables.
8996 (completion_tracker::maybe_add_completion): Remove use of
8997 m_entries_vec, and store more information into m_entries_hash.
8998 (completion_tracker::recompute_lcd_visitor): New function, most
8999 content taken from...
9000 (completion_tracker::recompute_lowest_common_denominator):
9001 ...here, this now just visits each item in the hash calling the
9002 above visitor.
9003 (completion_tracker::build_completion_result): Remove use of
9004 m_entries_vec, call recompute_lowest_common_denominator.
9005 * completer.h (completion_tracker::have_completions): Remove use
9006 of m_entries_vec.
9007 (completion_tracker::completion_hash_entry): Declare new class.
9008 (completion_tracker::recompute_lowest_common_denominator): Change
9009 function signature.
9010 (completion_tracker::recompute_lcd_visitor): Declare new function.
9011 (completion_tracker::m_entries_vec): Delete.
9012 (completion_tracker::m_entries_hash): Initialize to NULL.
9013 (completion_tracker::m_lowest_common_denominator_valid): New
9014 member variable.
9015 (completion_tracker::m_lowest_common_denominator_max_length): New
9016 member variable.
9017
9018 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9019
9020 * regformats/regdef.h: Put reg in gdb namespace.
9021
9022 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9023
9024 * i386-bsd-nat.c (gdb_ptrace): New.
9025 * (i386bsd_fetch_inferior_registers,
9026 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9027 * (i386bsd_fetch_inferior_registers,
9028 i386bsd_store_inferior_registers) Use gdb_ptrace.
9029
9030 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9031
9032 * amd64-bsd-nat.c (gdb_ptrace): New.
9033 * (amd64bsd_fetch_inferior_registers,
9034 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9035 * (amd64bsd_fetch_inferior_registers,
9036 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9037
9038 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9039
9040 * user-regs.c (user_reg::read): Rename to...
9041 (user_reg::xread): ...this.
9042 * (append_user_reg): Rename argument `read' to `xread'.
9043 * (user_reg_add_builtin): Likewise.
9044 * (user_reg_add): Likewise.
9045 * (value_of_user_reg): Likewise.
9046
9047 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9048
9049 * sparc-nat.c (gdb_ptrace): New.
9050 * sparc-nat.c (sparc_fetch_inferior_registers)
9051 (sparc_store_inferior_registers) Remove obsolete comment.
9052 * sparc-nat.c (sparc_fetch_inferior_registers)
9053 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9054 * sparc-nat.c (sparc_fetch_inferior_registers)
9055 (sparc_store_inferior_registers) Use gdb_ptrace.
9056
9057 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9058
9059 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9060 it to the ptrace call.
9061 * sh-nbsd-nat.c (store_registers): Likewise.
9062
9063 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9064
9065 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9066 nbsd_nat_target instead of inf_ptrace_target.
9067 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9068 nbsd_nat_target.
9069
9070 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9071
9072 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9073
9074 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9075
9076 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9077 <sys/sysctl.h>.
9078 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9079
9080 2020-03-17 Tom de Vries <tdevries@suse.de>
9081
9082 PR gdb/23710
9083 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9084 fields.
9085 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9086 fields.
9087 (process_imported_unit_die): Skip import of c++ CUs.
9088
9089 2020-03-16 Tom Tromey <tom@tromey.com>
9090
9091 * p-valprint.c (pascal_object_print_value): Initialize
9092 base_value.
9093
9094 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9095 Shahab Vahedi <shahab@synopsys.com>
9096
9097 * Makefile.in: Add arch/arc.o
9098 * configure.tgt: Likewise.
9099 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9100 (_initialize_arc_tdep): Don't initialize old target descriptions.
9101 (arc_read_description): New function to cache target descriptions.
9102 * arc-tdep.h (arc_read_description): Add proto type.
9103 * arch/arc.c: New file.
9104 * arch/arc.h: Likewise.
9105 * features/Makefile: Replace old target descriptions with new.
9106 * features/arc-arcompact.c: Remove.
9107 * features/arc-arcompact.xml: Likewise.
9108 * features/arc-v2.c: Likewise
9109 * features/arc-v2.xml: Likewise
9110 * features/arc/aux-arcompact.xml: New file.
9111 * features/arc/aux-v2.xml: Likewise.
9112 * features/arc/core-arcompact.xml: Likewise.
9113 * features/arc/core-v2.xml: Likewise.
9114 * features/arc/aux-arcompact.c: Generate.
9115 * features/arc/aux-v2.c: Likewise.
9116 * features/arc/core-arcompact.c: Likewise.
9117 * features/arc/core-v2.c: Likewise.
9118 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9119
9120 2020-03-16 Tom Tromey <tromey@adacore.com>
9121
9122 PR gdb/25663:
9123 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9124 putting value into bcache.
9125
9126 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9127
9128 PR gdb/21500
9129 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9130 to...
9131 (amd64_windows_init_abi_common): ... this. Don't set size of
9132 long type.
9133 (amd64_windows_init_abi): New function.
9134 (amd64_cygwin_init_abi): New function.
9135 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9136 the Cygwin OS ABI.
9137 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9138 comment.
9139
9140 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9141
9142 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9143 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9144 (pe_import_directory_entry): New struct type.
9145 (is_linked_with_cygwin_dll): New function.
9146 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9147 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9148 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9149
9150 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9153 i386_cygwin_core_osabi_sniffer.
9154
9155 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * i386-cygwin-tdep.c: Rename to...
9158 * i386-windows-tdep.c: ... this.
9159 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9160 i386-windows-tdep.c.
9161 * configure.tgt: Likewise.
9162
9163 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9164
9165 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9166 * osabi.c (gdb_osabi_names): Add "Windows".
9167 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9168 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9169 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9170 i386_cygwin_osabi_sniffer.
9171 (_initialize_i386_cygwin_tdep): Register OS ABI
9172 GDB_OSABI_WINDOWS for i386.
9173 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9174 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9175 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9176 for x86-64.
9177 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9178 when the target matches '*-*-mingw*'.
9179
9180 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9181
9182 * defs.h (enum gdb_osabi): Move to...
9183 * osabi.h (enum gdb_osabi): ... here.
9184 * gdbarch.sh: Include osabi.h in gdbarch.h.
9185 * gdbarch.h: Re-generate.
9186
9187 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9188
9189 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9190 function.
9191 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9192
9193 2020-03-14 Tom Tromey <tom@tromey.com>
9194
9195 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9196 for C++.
9197 (c_type_print_modifier): Likewise. Add "language" parameter.
9198 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9199 (c_type_print_base_1): Update.
9200 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9201 constants.
9202 * type-stack.c (type_stack::insert): Handle tp_atomic and
9203 tp_restrict.
9204 (type_stack::follow_type_instance_flags): Likewise.
9205 (type_stack::follow_types): Likewise. Merge type-following code.
9206 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9207 (space_identifier, cv_with_space_id)
9208 (const_or_volatile_or_space_identifier_noopt)
9209 (const_or_volatile_or_space_identifier): Remove.
9210 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9211 rules.
9212 (ptr_operator, typebase): Update.
9213 (enum token_flag) <FLAG_C>: New constant.
9214 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9215 "_Atomic".
9216 (lex_one_token): Handle FLAG_C.
9217
9218 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9219
9220 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9221 it to the ptrace call.
9222 * m68k-bsd-nat.c (store_registers): Likewise.
9223
9224 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9225
9226 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9227 gdb_byte *.
9228 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9229 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9230 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9231
9232 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9233
9234 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9235 nbsd_nat_target instead of inf_ptrace_target.
9236 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9237 nbsd_nat_target.
9238
9239 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9240
9241 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9242 register_t.
9243
9244 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9245
9246 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9247 it to the ptrace call.
9248 * alpha-bsd-nat.c (store_registers): Likewise.
9249
9250 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9251
9252 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9253 includes.
9254 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9255 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9256 fill_fpregset): Likewise.
9257
9258 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9259
9260 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9261 nbsd_nat_target instead of inf_ptrace_target.
9262 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9263 nbsd_nat_target.
9264
9265 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9266
9267 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9268 register_t.
9269
9270 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9271
9272 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9273 it to the ptrace call.
9274 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9275 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9276 * arm-nbsd-nat.c (store_register): Likewise.
9277 * arm-nbsd-nat.c (store_regs): Likewise.
9278 * arm-nbsd-nat.c (store_fp_register): Likewise.
9279 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9280
9281 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9282
9283 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9284 nbsd_nat_target instead of inf_ptrace_target.
9285 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9286 nbsd_nat_target.
9287
9288 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9289
9290 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9291 it to the ptrace call.
9292 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9293
9294 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9295
9296 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9297 it to the ptrace call.
9298 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9299
9300 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9301
9302 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9303 gdb_byte *.
9304 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9305
9306 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9307
9308 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9309 instead of inf_ptrace_target.
9310 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9311 nbsd_nat_target.
9312
9313 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9314
9315 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9316 register_t.
9317
9318 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9319
9320 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9321 register_t.
9322
9323 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9324
9325 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9326 register_t.
9327
9328 2020-03-13 Tom Tromey <tom@tromey.com>
9329
9330 * value.h (val_print): Don't declare.
9331 * valprint.h (val_print_array_elements)
9332 (val_print_scalar_formatted, generic_val_print): Don't declare.
9333 * valprint.c (generic_val_print_array): Take a struct value.
9334 (generic_val_print_ptr, generic_val_print_memberptr)
9335 (generic_val_print_bool, generic_val_print_int)
9336 (generic_val_print_char, generic_val_print_complex)
9337 (generic_val_print): Remove.
9338 (generic_value_print): Update.
9339 (do_val_print): Remove unused parameters. Don't call
9340 la_val_print.
9341 (val_print): Remove.
9342 (common_val_print): Update. Don't call value_check_printable.
9343 (val_print_scalar_formatted, val_print_array_elements): Remove.
9344 * rust-lang.c (rust_val_print): Remove.
9345 (rust_language_defn): Update.
9346 * p-valprint.c (pascal_val_print): Remove.
9347 (pascal_value_print_inner): Update.
9348 (pascal_object_print_val_fields, pascal_object_print_val):
9349 Remove.
9350 (pascal_object_print_static_field): Update.
9351 * p-lang.h (pascal_val_print): Don't declare.
9352 * p-lang.c (pascal_language_defn): Update.
9353 * opencl-lang.c (opencl_language_defn): Update.
9354 * objc-lang.c (objc_language_defn): Update.
9355 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9356 * m2-lang.h (m2_val_print): Don't declare.
9357 * m2-lang.c (m2_language_defn): Update.
9358 * language.h (struct language_defn) <la_val_print>: Remove.
9359 * language.c (unk_lang_value_print_inner): Rename. Change
9360 argument types.
9361 (unknown_language_defn, auto_language_defn): Update.
9362 * go-valprint.c (go_val_print): Remove.
9363 * go-lang.h (go_val_print): Don't declare.
9364 * go-lang.c (go_language_defn): Update.
9365 * f-valprint.c (f_val_print): Remove.
9366 * f-lang.h (f_value_print): Don't declare.
9367 * f-lang.c (f_language_defn): Update.
9368 * d-valprint.c (d_val_print): Remove.
9369 * d-lang.h (d_value_print): Don't declare.
9370 * d-lang.c (d_language_defn): Update.
9371 * cp-valprint.c (cp_print_value_fields)
9372 (cp_print_value_fields_rtti, cp_print_value): Remove.
9373 (cp_print_static_field): Update.
9374 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9375 (c_val_print_struct, c_val_print_union, c_val_print_int)
9376 (c_val_print_memberptr, c_val_print): Remove.
9377 * c-lang.h (c_val_print_array, cp_print_value_fields)
9378 (cp_print_value_fields_rtti): Don't declare.
9379 * c-lang.c (c_language_defn, cplus_language_defn)
9380 (asm_language_defn, minimal_language_defn): Update.
9381 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9382 (ada_val_print_enum): Take a struct value.
9383 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9384 (ada_val_print): Remove.
9385 (ada_value_print_1): Update.
9386 (printable_val_type): Remove.
9387 * ada-lang.h (ada_val_print): Don't declare.
9388 * ada-lang.c (ada_language_defn): Update.
9389
9390 2020-03-13 Tom Tromey <tom@tromey.com>
9391
9392 * valprint.c (do_val_print): Update.
9393 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9394 a struct value.
9395 (value_to_value_object_no_release): Declare.
9396 * python/py-value.c (value_to_value_object_no_release): New
9397 function.
9398 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9399 struct value.
9400 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9401 function.
9402 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9403 a struct value.
9404 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9405 Declare.
9406 (gdbscm_apply_val_pretty_printer): Take a struct value.
9407 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9408 value.
9409 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9410 value.
9411 * extension-priv.h (struct extension_language_ops)
9412 <apply_val_pretty_printer>: Take a struct value.
9413 * cp-valprint.c (cp_print_value): Create a struct value.
9414 (cp_print_value): Update.
9415
9416 2020-03-13 Tom Tromey <tom@tromey.com>
9417
9418 * ada-valprint.c (print_field_values): Call common_val_print.
9419
9420 2020-03-13 Tom Tromey <tom@tromey.com>
9421
9422 * ada-valprint.c (val_print_packed_array_elements): Remove
9423 bitoffset and val parameters. Call common_val_print.
9424 (ada_val_print_string): Remove offset, address, and original_value
9425 parameters.
9426 (ada_val_print_array): Update.
9427 (ada_value_print_array): New function.
9428 (ada_value_print_1): Call it.
9429
9430 2020-03-13 Tom Tromey <tom@tromey.com>
9431
9432 * ada-valprint.c (ada_value_print): Use common_val_print.
9433
9434 2020-03-13 Tom Tromey <tom@tromey.com>
9435
9436 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9437
9438 2020-03-13 Tom Tromey <tom@tromey.com>
9439
9440 * ada-valprint.c (ada_value_print_num): New function.
9441 (ada_value_print_1): Use it.
9442
9443 2020-03-13 Tom Tromey <tom@tromey.com>
9444
9445 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9446
9447 2020-03-13 Tom Tromey <tom@tromey.com>
9448
9449 * ada-valprint.c (ada_value_print_ptr): New function.
9450 (ada_value_print_1): Use it.
9451
9452 2020-03-13 Tom Tromey <tom@tromey.com>
9453
9454 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9455 call common_val_print.
9456 (ada_val_print_1): Update.
9457 (ada_value_print_1): New function.
9458 (ada_value_print_inner): Rewrite.
9459
9460 2020-03-13 Tom Tromey <tom@tromey.com>
9461
9462 * cp-valprint.c (cp_print_value_fields): Update.
9463 (cp_print_value): New function.
9464
9465 2020-03-13 Tom Tromey <tom@tromey.com>
9466
9467 * m2-valprint.c (m2_value_print_inner): Use
9468 cp_print_value_fields.
9469 * cp-valprint.c (cp_print_value_fields): New function.
9470 * c-valprint.c (c_value_print_struct): New function.
9471 (c_value_print_inner): Use c_value_print_struct.
9472 * c-lang.h (cp_print_value_fields): Declare.
9473
9474 2020-03-13 Tom Tromey <tom@tromey.com>
9475
9476 * c-valprint.c (c_value_print_array): New function.
9477 (c_value_print_inner): Use it.
9478
9479 2020-03-13 Tom Tromey <tom@tromey.com>
9480
9481 * c-valprint.c (c_value_print_memberptr): New function.
9482 (c_value_print_inner): Use it.
9483
9484 2020-03-13 Tom Tromey <tom@tromey.com>
9485
9486 * c-valprint.c (c_value_print_int): New function.
9487 (c_value_print_inner): Use it.
9488
9489 2020-03-13 Tom Tromey <tom@tromey.com>
9490
9491 * c-valprint.c (c_value_print_ptr): New function.
9492 (c_value_print_inner): Use it.
9493
9494 2020-03-13 Tom Tromey <tom@tromey.com>
9495
9496 * c-valprint.c (c_value_print_inner): Rewrite.
9497
9498 2020-03-13 Tom Tromey <tom@tromey.com>
9499
9500 * valprint.c (generic_value_print_complex): New function.
9501 (generic_value_print): Use it.
9502
9503 2020-03-13 Tom Tromey <tom@tromey.com>
9504
9505 * valprint.c (generic_val_print_float): Don't call
9506 val_print_scalar_formatted.
9507 (generic_val_print, generic_value_print): Update.
9508
9509 2020-03-13 Tom Tromey <tom@tromey.com>
9510
9511 * valprint.c (generic_value_print_char): New function
9512 (generic_value_print): Use it.
9513
9514 2020-03-13 Tom Tromey <tom@tromey.com>
9515
9516 * valprint.c (generic_value_print_int): New function.
9517 (generic_value_print): Use it.
9518
9519 2020-03-13 Tom Tromey <tom@tromey.com>
9520
9521 * valprint.c (generic_value_print_bool): New function.
9522 (generic_value_print): Use it.
9523
9524 2020-03-13 Tom Tromey <tom@tromey.com>
9525
9526 * valprint.c (generic_val_print_func): Simplify.
9527 (generic_val_print, generic_value_print): Update.
9528
9529 2020-03-13 Tom Tromey <tom@tromey.com>
9530
9531 * valprint.c (generic_val_print_flags): Remove.
9532 (generic_val_print, generic_value_print): Update.
9533 (val_print_type_code_flags): Add original_value parameter.
9534
9535 2020-03-13 Tom Tromey <tom@tromey.com>
9536
9537 * valprint.c (generic_val_print): Update.
9538 (generic_value_print): Update.
9539 * valprint.c (generic_val_print_enum): Don't call
9540 val_print_scalar_formatted.
9541
9542 2020-03-13 Tom Tromey <tom@tromey.com>
9543
9544 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9545 * valprint.c (generic_value_print_ptr): New function.
9546
9547 2020-03-13 Tom Tromey <tom@tromey.com>
9548
9549 * valprint.c (generic_value_print): Rewrite.
9550
9551 2020-03-13 Tom Tromey <tom@tromey.com>
9552
9553 * p-valprint.c (pascal_object_print_value_fields)
9554 (pascal_object_print_value): New functions.
9555
9556 2020-03-13 Tom Tromey <tom@tromey.com>
9557
9558 * p-valprint.c (pascal_value_print_inner): Rewrite.
9559
9560 2020-03-13 Tom Tromey <tom@tromey.com>
9561
9562 * f-valprint.c (f_value_print_innner): Rewrite.
9563
9564 2020-03-13 Tom Tromey <tom@tromey.com>
9565
9566 * m2-valprint.c (m2_print_unbounded_array): New overload.
9567 (m2_print_unbounded_array): Update.
9568 (m2_print_array_contents): Take a struct value.
9569 (m2_value_print_inner): Rewrite.
9570
9571 2020-03-13 Tom Tromey <tom@tromey.com>
9572
9573 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9574 (d_value_print_inner): New function.
9575 * d-lang.h (d_value_print_inner): Declare.
9576 * d-lang.c (d_language_defn): Use d_value_print_inner.
9577
9578 2020-03-13 Tom Tromey <tom@tromey.com>
9579
9580 * go-valprint.c (go_value_print_inner): New function.
9581 * go-lang.h (go_value_print_inner): Declare.
9582 * go-lang.c (go_language_defn): Use go_value_print_inner.
9583
9584 2020-03-13 Tom Tromey <tom@tromey.com>
9585
9586 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9587 API.
9588 (rust_val_print): Rewrite.
9589 (rust_value_print_inner): New function, from rust_val_print.
9590 (rust_language_defn): Use rust_value_print_inner.
9591
9592 2020-03-13 Tom Tromey <tom@tromey.com>
9593
9594 * ada-valprint.c (ada_value_print_inner): New function.
9595 * ada-lang.h (ada_value_print_inner): Declare.
9596 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9597
9598 2020-03-13 Tom Tromey <tom@tromey.com>
9599
9600 * f-valprint.c (f_value_print_innner): New function.
9601 * f-lang.h (f_value_print_innner): Declare.
9602 * f-lang.c (f_language_defn): Use f_value_print_innner.
9603
9604 2020-03-13 Tom Tromey <tom@tromey.com>
9605
9606 * p-valprint.c (pascal_value_print_inner): New function.
9607 * p-lang.h (pascal_value_print_inner): Declare.
9608 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9609
9610 2020-03-13 Tom Tromey <tom@tromey.com>
9611
9612 * m2-valprint.c (m2_value_print_inner): New function.
9613 * m2-lang.h (m2_value_print_inner): Declare.
9614 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9615
9616 2020-03-13 Tom Tromey <tom@tromey.com>
9617
9618 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9619 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9620 * c-valprint.c (c_value_print_inner): New function.
9621 * c-lang.h (c_value_print_inner): Declare.
9622 * c-lang.c (c_language_defn, cplus_language_defn)
9623 (asm_language_defn, minimal_language_defn): Use
9624 c_value_print_inner.
9625
9626 2020-03-13 Tom Tromey <tom@tromey.com>
9627
9628 * p-valprint.c (pascal_object_print_value_fields): Now static.
9629 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9630
9631 2020-03-13 Tom Tromey <tom@tromey.com>
9632
9633 * c-valprint.c (c_val_print_array): Simplify.
9634
9635 2020-03-13 Tom Tromey <tom@tromey.com>
9636
9637 * valprint.c (value_print_array_elements): New function.
9638 * valprint.h (value_print_array_elements): Declare.
9639
9640 2020-03-13 Tom Tromey <tom@tromey.com>
9641
9642 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9643 * mips-tdep.c (mips_print_register): Use
9644 value_print_scalar_formatted.
9645
9646 2020-03-13 Tom Tromey <tom@tromey.com>
9647
9648 * valprint.h (value_print_scalar_formatted): Declare.
9649 * valprint.c (value_print_scalar_formatted): New function.
9650
9651 2020-03-13 Tom Tromey <tom@tromey.com>
9652
9653 * valprint.h (generic_value_print): Declare.
9654 * valprint.c (generic_value_print): New function.
9655
9656 2020-03-13 Tom Tromey <tom@tromey.com>
9657
9658 * valprint.c (do_val_print): Call la_value_print_inner, if
9659 available.
9660 * rust-lang.c (rust_language_defn): Update.
9661 * p-lang.c (pascal_language_defn): Update.
9662 * opencl-lang.c (opencl_language_defn): Update.
9663 * objc-lang.c (objc_language_defn): Update.
9664 * m2-lang.c (m2_language_defn): Update.
9665 * language.h (struct language_defn) <la_value_print_inner>: New
9666 member.
9667 * language.c (unknown_language_defn, auto_language_defn): Update.
9668 * go-lang.c (go_language_defn): Update.
9669 * f-lang.c (f_language_defn): Update.
9670 * d-lang.c (d_language_defn): Update.
9671 * c-lang.c (c_language_defn, cplus_language_defn)
9672 (asm_language_defn, minimal_language_defn): Update.
9673 * ada-lang.c (ada_language_defn): Update.
9674
9675 2020-03-13 Tom Tromey <tom@tromey.com>
9676
9677 * c-valprint.c (c_value_print): Use common_val_print.
9678
9679 2020-03-13 Tom Tromey <tom@tromey.com>
9680
9681 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9682
9683 2020-03-13 Tom Tromey <tom@tromey.com>
9684
9685 * f-valprint.c (f77_print_array_1, f_val_print): Use
9686 common_val_print.
9687
9688 2020-03-13 Tom Tromey <tom@tromey.com>
9689
9690 * riscv-tdep.c (riscv_print_one_register_info): Use
9691 common_val_print.
9692
9693 2020-03-13 Tom Tromey <tom@tromey.com>
9694
9695 * mi/mi-main.c (output_register): Use common_val_print.
9696
9697 2020-03-13 Tom Tromey <tom@tromey.com>
9698
9699 * infcmd.c (default_print_one_register_info): Use
9700 common_val_print.
9701
9702 2020-03-13 Tom Tromey <tom@tromey.com>
9703
9704 * valprint.h (common_val_print_checked): Declare.
9705 * valprint.c (common_val_print_checked): New function.
9706 * stack.c (print_frame_arg): Use common_val_print_checked.
9707
9708 2020-03-13 Tom Tromey <tom@tromey.com>
9709
9710 * valprint.c (do_val_print): New function, from val_print.
9711 (val_print): Use do_val_print.
9712 (common_val_print): Use do_val_print.
9713
9714 2020-03-13 Tom Tromey <tom@tromey.com>
9715
9716 * valprint.c (value_print): Use scoped_value_mark.
9717
9718 2020-03-13 Tom de Vries <tdevries@suse.de>
9719
9720 PR symtab/25646
9721 * psymtab.c (partial_symtab::partial_symtab): Don't set
9722 globals_offset and statics_offset. Push element onto
9723 current_global_psymbols and current_static_psymbols stacks.
9724 (concat): New function.
9725 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9726 element from current_global_psymbols and current_static_psymbols
9727 stacks. Concat popped elements to global_psymbols and
9728 static_symbols.
9729 (add_psymbol_to_list): Use current_global_psymbols and
9730 current_static_psymbols stacks.
9731 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9732 current_static_psymbols fields.
9733
9734 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9735
9736 * corelow.c (sniff_core_bfd): Remove.
9737 (class core_target) <m_core_vec>: Remove.
9738 (core_target::core_target): Update.
9739 (core_file_fns): Remove.
9740 (deprecated_add_core_fns): Remove.
9741 (default_core_sniffer): Remove.
9742 (sniff_core_bfd): Remove.
9743 (default_check_format): Remove.
9744 (gdb_check_format): Remove.
9745 (core_target_open): Update.
9746 (core_target::get_core_register_section): Update.
9747 (get_core_registers_cb): Update.
9748 (core_target::fetch_registers): Update.
9749 * gdbcore.h (struct core_fns): Remove.
9750 (deprecated_add_core_fns): Remove.
9751 (default_core_sniffer): Remove.
9752 (default_check_format): Remove.
9753
9754 2020-03-12 Tom Tromey <tom@tromey.com>
9755
9756 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9757 CORE_ADDR.
9758 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9759
9760 2020-03-12 Tom Tromey <tom@tromey.com>
9761
9762 * remote.c (remote_target::download_tracepoint)
9763 (remote_target::enable_tracepoint)
9764 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9765 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9766 sprintf_vma.
9767
9768 2020-03-12 Tom Tromey <tom@tromey.com>
9769
9770 * symfile-mem.c: Update CORE_ADDR size assert.
9771
9772 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9773
9774 * selftest.m4: Move to gdbsupport/.
9775 * acinclude.m4: Update path to selftest.m4.
9776
9777 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9778
9779 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9780 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9781 gdbarch-selfselftests.c and selftest-arch.c.
9782 (SUBDIR_UNITTESTS_OBS): Rename to...
9783 (SELFTESTS_OBS): ... this.
9784 (COMMON_SFILES): Remove disasm-selftests.c and
9785 gdbarch-selftests.c.
9786 * configure.ac: Don't add selftest-arch.{c,o} to
9787 CONFIG_{SRCS,OBS}.
9788 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9789 preprocessor conditions.
9790
9791 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9792
9793 * configure.ac: Don't source bfd/development.sh.
9794 * selftest.m4: Modify comment.
9795 * configure: Re-generate.
9796
9797 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9798
9799 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9800 not "true" or "false".
9801 * configure: Re-generate.
9802
9803 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9804
9805 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9806 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9807 renamed to arm_nbsd_supply_gregset.
9808 (fetch_register): Update to call arm_nbsd_supply_gregset.
9809 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9810 (arm_netbsd_nat_target::fetch_registers): Update.
9811 (fetch_elfcore_registers): Removed.
9812 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9813 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9814 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9815 not require NetBSD system headers.
9816 (arm_nbsd_regset): New struct.
9817 (arm_nbsd_iterate_over_regset_sections): New function.
9818 (arm_netbsd_init_abi_common): Updated to call
9819 set_gdbarch_iterate_over_regset_sections.
9820 * arm-nbsd-tdep.h: New file.
9821
9822 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9823
9824 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9825 recursion.
9826
9827 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9828
9829 * configure: Re-generate.
9830
9831 2020-03-11 Tom Tromey <tromey@adacore.com>
9832
9833 * ada-typeprint.c (print_choices): Fix comment.
9834
9835 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9836
9837 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9838 previous item in the list, when the list has no items.
9839
9840 2020-03-11 Tom de Vries <tdevries@suse.de>
9841
9842 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9843 PROP_LOCLIST handling code.
9844
9845 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9846
9847 * buildsym-legacy.c (record_line): Pass extra parameter to
9848 record_line.
9849 * buildsym.c (buildsym_compunit::record_line): Take an extra
9850 parameter, reduce duplication in the line table, and record the
9851 is_stmt flag in the line table.
9852 * buildsym.h (buildsym_compunit::record_line): Add extra
9853 parameter.
9854 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9855 non-statement lines.
9856 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9857 this to the symtab builder.
9858 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9859 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9860 through to dwarf_record_line_1.
9861 * infrun.c (process_event_stop_test): When stepping, don't stop at
9862 a non-statement instruction, and only refresh the step info when
9863 we land in the middle of a line's range. Also add an extra
9864 comment.
9865 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9866 field.
9867 * record-btrace.c (btrace_find_line_range): Only record lines
9868 marked as is-statement.
9869 * stack.c (frame_show_address): Show the frame address if we are
9870 in a non-statement sal.
9871 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9872 (maintenance_print_one_line_table): Print a header for the is_stmt
9873 column, and include is_stmt information in the output.
9874 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9875 preference to non-statements.
9876 (find_pcs_for_symtab_line): Prefer is-statement entries.
9877 (find_line_common): Likewise.
9878 * symtab.h (struct linetable_entry): Add is_stmt field.
9879 (struct symtab_and_line): Likewise.
9880 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9881 arranging the line table.
9882
9883 2020-03-07 Tom de Vries <tdevries@suse.de>
9884
9885 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9886 DIE.
9887
9888 2020-03-07 Tom Tromey <tom@tromey.com>
9889
9890 * valops.c (value_literal_complex): Remove obsolete comment.
9891 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9892 comment.
9893
9894 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9895
9896 * infrun.h: Forward-declare thread_info.
9897 (set_step_info): Add thread_info parameter, add doc.
9898 * infrun.c (set_step_info): Add thread_info parameter, move doc
9899 to header.
9900 * infrun.c (process_event_stop_test): Pass thread to
9901 set_step_info call.
9902 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9903 set_step_info.
9904 (prepare_one_step): Add thread_info parameter, pass it to
9905 set_step_frame and prepare_one_step (recursive) call.
9906 (step_1): Pass thread to prepare_one_step call.
9907 (step_command_fsm::should_stop): Pass thread to
9908 prepare_one_step.
9909 (until_next_fsm): Pass thread to set_step_frame call.
9910 (finish_command): Pass thread to set_step_info call.
9911
9912 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9913
9914 * windows-tdep.c (windows_solib_create_inferior_hook):
9915 Check if inferior is running.
9916
9917 2020-03-06 Tom de Vries <tdevries@suse.de>
9918
9919 * NEWS: Fix "the the".
9920 * ctfread.c: Same.
9921
9922 2020-03-06 Tom de Vries <tdevries@suse.de>
9923
9924 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9925
9926 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9927
9928 * .dir-locals.el: Add a comment referencing the other copies of
9929 this file.
9930
9931 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9932
9933 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9934 psargs.
9935
9936 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9937
9938 * .gitattributes: New file.
9939
9940 2020-03-04 Tom Tromey <tom@tromey.com>
9941
9942 * symmisc.c (print_symbol_bcache_statistics)
9943 (print_objfile_statistics): Update.
9944 * symfile.c (allocate_symtab): Use intern.
9945 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9946 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9947 macro_cache>: Remove.
9948 <string_cache>: New member.
9949 (struct objfile) <intern>: New methods.
9950 * elfread.c (elf_symtab_read): Use intern.
9951 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9952 (dwarf2_compute_name, dwarf2_physname)
9953 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9954 names.
9955 (guess_partial_die_structure_name): Update.
9956 (partial_die_info::fixup): Intern name.
9957 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9958 name.
9959 (dwarf2_name): Intern name. Update.
9960 * buildsym.c (buildsym_compunit::get_macro_table): Use
9961 string_cache.
9962
9963 2020-03-04 Tom Tromey <tom@tromey.com>
9964
9965 * jit.c (bfd_open_from_target_memory): Make "target" const.
9966 * corefile.c (gnutarget): Now const.
9967 * gdbcore.h (gnutarget): Now const.
9968
9969 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9970
9971 * NEWS: Mention support for WOW64 processes.
9972 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9973 (amd64_windows_segment_register_p): Remove static.
9974 (_initialize_amd64_windows_nat): Update.
9975 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9976 * i386-windows-nat.c (context_offset): Update.
9977 (i386_mappings): Rename and remove static.
9978 (i386_windows_segment_register_p): Remove static.
9979 (_initialize_i386_windows_nat): Update.
9980 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9981 (STATUS_WX86_SINGLE_STEP): New macro.
9982 (EnumProcessModulesEx): New macro.
9983 (Wow64SuspendThread): New macro.
9984 (Wow64GetThreadContext): New macro.
9985 (Wow64SetThreadContext): New macro.
9986 (Wow64GetThreadSelectorEntry): New macro.
9987 (windows_set_context_register_offsets): Add static.
9988 (windows_set_segment_register_p): Likewise.
9989 (windows_add_thread): Adapt for WOW64 processes.
9990 (windows_fetch_one_register): Likewise.
9991 (windows_nat_target::fetch_registers): Likewise.
9992 (windows_store_one_register): Likewise.
9993 (display_selector): Likewise.
9994 (display_selectors): Likewise.
9995 (handle_exception): Likewise.
9996 (windows_continue): Likewise.
9997 (windows_nat_target::resume): Likewise.
9998 (windows_add_all_dlls): Likewise.
9999 (do_initial_windows_stuff): Likewise.
10000 (windows_nat_target::attach): Likewise.
10001 (windows_get_exec_module_filename): Likewise.
10002 (windows_nat_target::create_inferior): Likewise.
10003 (windows_xfer_siginfo): Likewise.
10004 (_initialize_loadable): Initialize Wow64SuspendThread,
10005 Wow64GetThreadContext, Wow64SetThreadContext,
10006 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10007 * windows-nat.h (windows_set_context_register_offsets):
10008 Remove declaration.
10009 (windows_set_segment_register_p): Likewise.
10010 (i386_windows_segment_register_p): Add declaration.
10011 (amd64_windows_segment_register_p): Likewise.
10012
10013 2020-03-04 Luis Machado <luis.machado@linaro.org>
10014
10015 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10016 in "info registers" for AArch64/ARM.
10017
10018 The change caused "info registers" to not print GPR's.
10019
10020 gdb/ChangeLog:
10021
10022 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10023
10024 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10025 when reg->group is empty and reggroup is not.
10026
10027 2020-03-03 Tom Tromey <tromey@adacore.com>
10028
10029 * dwarf2/frame.c (struct dwarf2_frame_cache)
10030 <checked_tailcall_bottom, entry_cfa_sp_offset,
10031 entry_cfa_sp_offset_p>: Remove members.
10032 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10033 (dwarf2_frame_prev_register): Don't call
10034 dwarf2_tailcall_sniffer_first.
10035 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10036 * frame-unwind.c (add_unwinder): New fuction.
10037 (frame_unwind_init): Use it. Add tailcall unwinder.
10038
10039 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10040 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10041
10042 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10043 value should be printed as true.
10044
10045 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10046
10047 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10048 (windows_init_abi): Set and use windows_so_ops.
10049
10050 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10051
10052 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10053 when verifying if dealing with a convenience variable.
10054
10055 2020-03-03 Luis Machado <luis.machado@linaro.org>
10056
10057 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10058
10059 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10060
10061 * infrun.c (gdbarch_supports_displaced_stepping): New.
10062 (use_displaced_stepping): Break up conditions in smaller pieces.
10063 Use gdbarch_supports_displaced_stepping.
10064 (displaced_step_prepare_throw): Use
10065 gdbarch_supports_displaced_stepping.
10066
10067 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10068
10069 * NEWS: Mention new behaviour of the history filename.
10070 * top.c (write_history_p): Add comment.
10071 (show_write_history_p): Add header comment, give a different
10072 message when history writing is on, but the history filename is
10073 empty.
10074 (history_filename): Add comment.
10075 (history_filename_empty): New function.
10076 (show_history_filename): Add header comment, give a different
10077 message when the filename is empty.
10078 (init_history): Compare history_filename against nullptr, and only
10079 read history if the filename is not empty.
10080 (set_history_filename): Add header comment, and only make
10081 non-empty filenames absolute.
10082 (init_main): Make the filename argument to 'set history filename'
10083 optional.
10084
10085 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10086
10087 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10088 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10089 (fetch_fp_register): Update.
10090 (fetch_fp_regs): Update.
10091 (store_fp_register): Update.
10092 (store_fp_regs): Update.
10093 (arm_netbsd_nat_target::read_description): New function.
10094 (fetch_elfcore_registers): Update.
10095
10096 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10097
10098 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10099 general_thread if the stop reply is missing a thread-id.
10100 (remote_target::process_stop_reply): Use the first non-exited
10101 thread if the target didn't pass a thread-id.
10102 * infrun.c (do_target_wait): Move call to
10103 switch_to_inferior_no_thread to ....
10104 (do_target_wait_1): ... here.
10105
10106 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10107
10108 * debuginfod-support.c: Include defs.h first.
10109
10110 2020-02-28 Tom de Vries <tdevries@suse.de>
10111
10112 * symfile.c (set_initial_language): Use default language for lookup.
10113
10114 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10115
10116 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10117 reader variable, pass `this` to read_cutu_die_from_dwo.
10118
10119 2020-02-27 Aaron Merey <amerey@redhat.com>
10120
10121 * source.c (open_source_file): Check for nullptr when computing
10122 srcpath.
10123
10124 2020-02-27 Tom Tromey <tromey@adacore.com>
10125
10126 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10127 member.
10128 (dwarf2_add_field): Don't update nfields.
10129 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10130
10131 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10132
10133 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10134 abs.
10135
10136 2020-02-26 Tom Tromey <tom@tromey.com>
10137
10138 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10139 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10140 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10141 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10142 per_cu_data.
10143
10144 2020-02-26 Tom Tromey <tom@tromey.com>
10145
10146 * dwarf2/index-write.c (psym_index_map): Change type.
10147 (add_address_entry_worker, write_one_signatured_type)
10148 (recursively_count_psymbols, recursively_write_psymbols)
10149 (class debug_names, psyms_seen_size, write_gdbindex)
10150 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10151
10152 2020-02-26 Aaron Merey <amerey@redhat.com>
10153
10154 * Makefile.in: Handle optional debuginfod support.
10155 * NEWS: Update.
10156 * README: Add --with-debuginfod summary.
10157 * config.in: Regenerate.
10158 * configure: Regenerate.
10159 * configure.ac: Handle optional debuginfod support.
10160 * debuginfod-support.c: debuginfod helper functions.
10161 * debuginfod-support.h: Ditto.
10162 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10163 summary.
10164 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10165 when a dwz file cannot be found.
10166 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10167 debuginfo file cannot be found.
10168 * source.c (open_source_file): Query debuginfod servers when a
10169 source file cannot be found.
10170 * top.c (print_gdb_configuration): Include
10171 --{with,without}-debuginfod in the output.
10172
10173 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10174
10175 * thread.c (thr_try_catch_cmd): Print thread name.
10176
10177 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10178
10179 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10180 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10181 dwarf2_fetch_die_type_sect_off): Move to...
10182 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10183 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10184 dwarf2_fetch_die_type_sect_off): ... here.
10185 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10186 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10187 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10188
10189 2020-02-26 Tom de Vries <tdevries@suse.de>
10190
10191 PR gdb/25603
10192 * symfile.c (set_initial_language): Exit-early if
10193 language_mode == language_mode_manual.
10194
10195 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10196
10197 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10198 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10199 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10200
10201 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10202
10203 * gdbtypes.c (create_array_type_with_stride): Handle negative
10204 array strides.
10205 * valarith.c (value_subscripted_rvalue): Likewise.
10206
10207 2020-02-25 Luis Machado <luis.machado@linaro.org>
10208
10209 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10210
10211 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10212
10213 * loc.h (dwarf2_get_die_type): Move to...
10214 * read.h (dwarf2_get_die_type): ... here.
10215 * read.c (dwarf2_get_die_type): Move doc to header.
10216
10217 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10218
10219 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10220 'gnulib/Makefile.in' to the list.
10221
10222 2020-02-24 Tom Tromey <tom@tromey.com>
10223
10224 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10225 Remove.
10226 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10227 XOBNEWVEC.
10228
10229 2020-02-24 Tom Tromey <tom@tromey.com>
10230
10231 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10232 New method.
10233 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10234 (dw2_do_instantiate_symtab, dw2_get_file_names)
10235 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10236
10237 2020-02-24 Tom Tromey <tom@tromey.com>
10238
10239 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10240 make_scoped_restore.
10241 (dwarf2_psymtab::read_symtab): Don't clear
10242 reading_partial_symbols.
10243
10244 2020-02-24 Tom de Vries <tdevries@suse.de>
10245
10246 PR gdb/25592
10247 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10248
10249 2020-02-24 Tom de Vries <tdevries@suse.de>
10250
10251 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10252 commands layout next/prev/regs.
10253
10254 2020-02-22 Tom Tromey <tom@tromey.com>
10255
10256 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10257 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10258
10259 2020-02-22 Tom Tromey <tom@tromey.com>
10260
10261 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10262
10263 2020-02-22 Tom Tromey <tom@tromey.com>
10264
10265 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10266 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10267 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10268 * tui/tui.c (_initialize_tui): Add usage text.
10269
10270 2020-02-22 Tom Tromey <tom@tromey.com>
10271
10272 * tui/tui-win.c (tui_set_focus_command)
10273 (tui_set_win_height_command): Use error_no_arg.
10274 (_initialize_tui_win): Update help text.
10275 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10276
10277 2020-02-22 Tom Tromey <tom@tromey.com>
10278
10279 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10280 * tui/tui-disasm.h (struct tui_disasm_window)
10281 <display_start_addr>: Declare.
10282 * tui/tui-source.h (struct tui_source_window)
10283 <display_start_addr>: Declare.
10284 * tui/tui-winsource.h (struct tui_source_window_base)
10285 <show_source_line, display_start_addr>: New methods.
10286 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10287 Rename and move to protected section.
10288 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10289 (tui_source_window_base::do_erase_source_content): Update.
10290 (tui_source_window_base::show_source_line): Now a method.
10291 (tui_source_window_base::show_source_content)
10292 (tui_source_window_base::tui_source_window_base)
10293 (tui_source_window_base::rerender)
10294 (tui_source_window_base::refill)
10295 (tui_source_window_base::do_scroll_horizontal)
10296 (tui_source_window_base::set_is_exec_point_at)
10297 (tui_source_window_base::update_breakpoint_info)
10298 (tui_source_window_base::update_exec_info): Update.
10299 * tui/tui-source.c (tui_source_window::set_contents)
10300 (tui_source_window::showing_source_p)
10301 (tui_source_window::do_scroll_vertical)
10302 (tui_source_window::location_matches_p)
10303 (tui_source_window::line_is_displayed): Update.
10304 (tui_source_window::display_start_addr): New method.
10305 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10306 (tui_disasm_window::do_scroll_vertical)
10307 (tui_disasm_window::location_matches_p): Update.
10308 (tui_disasm_window::display_start_addr): New method.
10309
10310 2020-02-22 Tom Tromey <tom@tromey.com>
10311
10312 * NEWS: Add entry for gdb.register_window_type.
10313 * tui/tui-layout.h (window_factory): New typedef.
10314 (tui_register_window): Declare.
10315 * tui/tui-layout.c (saved_tui_windows): New global.
10316 (tui_apply_current_layout): Use it.
10317 (tui_register_window): New function.
10318 * python/python.c (do_start_initialization): Call
10319 gdbpy_initialize_tui.
10320 (python_GdbMethods): Add "register_window_type" function.
10321 * python/python-internal.h (gdbpy_register_tui_window)
10322 (gdbpy_initialize_tui): Declare.
10323 * python/py-tui.c: New file.
10324 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10325
10326 2020-02-22 Tom Tromey <tom@tromey.com>
10327
10328 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10329
10330 2020-02-22 Tom Tromey <tom@tromey.com>
10331
10332 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10333 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10334 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10335 (tui_set_win_focus_to): Move from tui-win.c.
10336
10337 2020-02-22 Tom Tromey <tom@tromey.com>
10338
10339 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10340 functions.
10341 (known_window_types): New global.
10342 (tui_get_window_by_name): Reimplement.
10343 (initialize_known_windows): New function.
10344 (validate_window_name): Rewrite.
10345 (_initialize_tui_layout): Call initialize_known_windows.
10346
10347 2020-02-22 Tom Tromey <tom@tromey.com>
10348
10349 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10350 Remove constants.
10351 * tui/tui-winsource.h (struct tui_source_window_base)
10352 <tui_source_window_base>: Remove parameter.
10353 * tui/tui-winsource.c
10354 (tui_source_window_base::tui_source_window_base): Remove
10355 parameter.
10356 (tui_source_window_base::refill): Update.
10357 * tui/tui-stack.h (struct tui_locator_window)
10358 <tui_locator_window>: Update.
10359 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10360 Default the constructor.
10361 * tui/tui-regs.h (struct tui_data_item_window)
10362 <tui_data_item_window>: Default the constructor.
10363 (struct tui_data_window) <tui_data_window>: Likewise.
10364 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10365 Default the constructor.
10366 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10367 Default the constructor.
10368 <type>: Remove.
10369 (struct tui_win_info) <tui_win_info>: Default the constructor.
10370 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10371 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10372 Default the constructor.
10373
10374 2020-02-22 Tom Tromey <tom@tromey.com>
10375
10376 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10377 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10378 * tui/tui-win.c (tui_resize_all): Don't call
10379 tui_delete_invisible_windows.
10380 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10381 done.
10382 (tui_set_layout): Update.
10383 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10384 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10385 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10386
10387 2020-02-22 Tom Tromey <tom@tromey.com>
10388
10389 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10390 correctly.
10391
10392 2020-02-22 Tom Tromey <tom@tromey.com>
10393
10394 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10395
10396 2020-02-22 Tom Tromey <tom@tromey.com>
10397
10398 * tui/tui-winsource.h (struct tui_source_window_iterator)
10399 <inner_iterator>: New etytypedef.
10400 <tui_source_window_iterator>: Take "end" parameter.
10401 <tui_source_window_iterator>: Take iterator.
10402 <operator*, advance>: Update.
10403 <m_iter>: Change type.
10404 <m_end>: New field.
10405 (struct tui_source_windows) <begin, end>: Update.
10406 * tui/tui-layout.c (tui_windows): New global.
10407 (tui_apply_current_layout): Clear tui_windows.
10408 (tui_layout_window::apply): Update tui_windows.
10409 * tui/tui-data.h (tui_windows): Declare.
10410 (all_tui_windows): Now inline function.
10411 (class tui_window_iterator, struct all_tui_windows): Remove.
10412
10413 2020-02-22 Tom Tromey <tom@tromey.com>
10414
10415 PR tui/17850:
10416 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10417 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10418 "height" argument.
10419 (class tui_layout_window) <get_sizes>: Likewise.
10420 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10421 argument.
10422 <get_sizes>: Add "height" argument.
10423 <m_vertical>: New field.
10424 * tui/tui-layout.c (tui_layout_split::clone): Update.
10425 (tui_layout_split::get_sizes): Add "height" argument.
10426 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10427 (tui_new_layout_command): Parse "-horizontal".
10428 (_initialize_tui_layout): Update help string.
10429 (tui_layout_split::specification): Add "-horizontal" when needed.
10430 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10431 argument.
10432 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10433 New methods.
10434
10435 2020-02-22 Tom Tromey <tom@tromey.com>
10436
10437 * tui/tui-layout.h (enum tui_adjust_result): New.
10438 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10439 (class tui_layout_window) <adjust_size>: Return
10440 tui_adjust_result. Rewrite.
10441 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10442 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10443
10444 2020-02-22 Tom Tromey <tom@tromey.com>
10445
10446 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10447 parameter and return types.
10448 (class tui_layout_base) <specification>: Add "depth".
10449 (class tui_layout_window) <specification>: Add "depth".
10450 (class tui_layout_split) <specification>: Add "depth".
10451 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10452 and return types.
10453 (tui_new_layout_command): Parse sub-layouts.
10454 (_initialize_tui_layout): Update help string.
10455 (tui_layout_window::specification): Add "depth".
10456 (add_layout_command): Update.
10457
10458 2020-02-22 Tom Tromey <tom@tromey.com>
10459
10460 * NEWS: Add "tui new-layout" item.
10461 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10462 Add new-layout command to help text.
10463 (validate_window_name): New function.
10464 (tui_new_layout_command): New function.
10465 (_initialize_tui_layout): Register "new-layout".
10466 (tui_layout_window::specification): New method.
10467 (tui_layout_window::specification): New method.
10468 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10469 method.
10470 (class tui_layout_window) <specification>: New method.
10471 (class tui_layout_split) <specification>: New method.
10472
10473 2020-02-22 Tom Tromey <tom@tromey.com>
10474
10475 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10476 * tui/tui-win.c (window_name_completer): Update comment.
10477 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10478 Declare method.
10479 (class tui_layout_window) <replace_window>: Likewise.
10480 (class tui_layout_split) <replace_window>: Likewise.
10481 (tui_set_layout): Don't declare.
10482 (tui_set_initial_layout): Declare function.
10483 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10484 (asm_regs_layout): New globals.
10485 (tui_current_layout, show_layout): Remove.
10486 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10487 (find_layout, tui_apply_layout): New function.
10488 (layout_completer): Remove.
10489 (tui_next_layout): Reimplement.
10490 (tui_next_layout_command): New function.
10491 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10492 (tui_regs_layout): Reimplement.
10493 (tui_regs_layout_command): New function.
10494 (extract_display_start_addr): Rewrite.
10495 (next_layout, prev_layout): Remove.
10496 (tui_layout_window::replace_window): New method.
10497 (tui_layout_split::replace_window): New method.
10498 (destroy_layout): New function.
10499 (layout_list): New global.
10500 (add_layout_command): New function.
10501 (initialize_layouts): Update.
10502 (tui_layout_command): New function.
10503 (_initialize_tui_layout): Install "layout" commands.
10504 * tui/tui-data.h (enum tui_layout_type): Remove.
10505 (tui_current_layout): Don't declare.
10506
10507 2020-02-22 Tom Tromey <tom@tromey.com>
10508
10509 * tui/tui-regs.c (tui_reg_layout): Remove.
10510 (tui_reg_command): Use tui_regs_layout.
10511 * tui/tui-layout.h (tui_reg_command): Declare.
10512 * tui/tui-layout.c (tui_reg_command): New function.
10513
10514 2020-02-22 Tom Tromey <tom@tromey.com>
10515
10516 * tui/tui.c (tui_rl_delete_other_windows): Call
10517 tui_remove_some_windows.
10518 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10519 Declare method.
10520 (class tui_layout_window) <remove_windows>: New method.
10521 (class tui_layout_split) <remove_windows>: Declare.
10522 (tui_remove_some_windows): Declare.
10523 * tui/tui-layout.c (tui_remove_some_windows): New function.
10524 (tui_layout_split::remove_windows): New method.
10525
10526 2020-02-22 Tom Tromey <tom@tromey.com>
10527
10528 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10529 * tui/tui-layout.h (tui_next_layout): Declare.
10530 * tui/tui-layout.c (tui_next_layout): New function.
10531
10532 2020-02-22 Tom Tromey <tom@tromey.com>
10533
10534 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10535 correct coordinates.
10536
10537 2020-02-22 Tom Tromey <tom@tromey.com>
10538
10539 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10540 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10541 DATA_WIN case.
10542
10543 2020-02-22 Tom Tromey <tom@tromey.com>
10544
10545 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10546 TUI_DISASM_WIN, not tui_win_list.
10547
10548 2020-02-22 Tom Tromey <tom@tromey.com>
10549
10550 * valprint.c (generic_val_print_enum_1)
10551 (val_print_type_code_flags): Style member names.
10552 * rust-lang.c (val_print_struct, rust_print_enum)
10553 (rust_print_struct_def, rust_internal_print_type): Style member
10554 names.
10555 * p-valprint.c (pascal_object_print_value_fields): Style member
10556 names. Only call fprintf_symbol_filtered for static members.
10557 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10558 * f-valprint.c (f_val_print): Style member names.
10559 * f-typeprint.c (f_type_print_base): Style member names.
10560 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10561 call fprintf_symbol_filtered for static members.
10562 (cp_print_class_member): Style member names.
10563 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10564 member names.
10565 * ada-valprint.c (ada_print_scalar): Style enum names.
10566 (ada_val_print_enum): Likewise.
10567 * ada-typeprint.c (print_enum_type): Style enum names.
10568
10569 2020-02-21 Tom Tromey <tom@tromey.com>
10570
10571 * psympriv.h (struct partial_symtab): Update comment.
10572
10573 2020-02-21 Tom Tromey <tromey@adacore.com>
10574
10575 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10576 type is CORE_ADDR.
10577
10578 2020-02-21 Tom de Vries <tdevries@suse.de>
10579
10580 PR gdb/25534
10581 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10582 if dependencies[i]->user != NULL.
10583
10584 2020-02-21 Ali Tamur <tamur@google.com>
10585
10586 * dwarf2/read.c (dwarf2_name): Add null check.
10587
10588 2020-02-20 Tom Tromey <tom@tromey.com>
10589
10590 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10591 ">=", in binary search.
10592 (dwarf2_find_containing_comp_unit): New overload.
10593 (run_test): New self-test.
10594 (_initialize_dwarf2_read): Register new test.
10595
10596 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10597
10598 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10599 * riscv-tdep.h: Likewise.
10600 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10601 rv32-only CSR.
10602 * features/riscv/64bit-csr.xml: Regenerated.
10603
10604 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10605 Tom Tromey <tom@tromey.com>
10606
10607 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10608 of 'fputc_unfiltered'.
10609 (putchar_unfiltered): Call 'fputc_unfiltered'.
10610 (fputc_unfiltered): Call 'fputs_unfiltered'.
10611
10612 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10613
10614 * config.in: Regenerate.
10615 * configure: Regenerate.
10616 * configure.ac: Add --with-python-libdir option.
10617 * main.c: Use WITH_PYTHON_LIBDIR.
10618
10619 2020-02-19 Tom Tromey <tom@tromey.com>
10620
10621 * symtab.c (general_symbol_info::compute_and_set_names): Use
10622 obstack_strndup. Simplify call to symbol_set_demangled_name.
10623
10624 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10625
10626 * dwarf2/read.c (allocate_signatured_type_table,
10627 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10628 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10629 Remove objfile parameter, update all callers.
10630
10631 2020-02-19 Doug Evans <dje@google.com>
10632
10633 PR rust/25535
10634 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10635 rust_enum_variant calculation.
10636
10637 2020-02-19 Tom Tromey <tromey@adacore.com>
10638
10639 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10640
10641 2020-02-19 Tom Tromey <tromey@adacore.com>
10642
10643 * ada-lang.c (cache_symbol): Use obstack_strdup.
10644
10645 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10646
10647 * configure: Regenerate.
10648
10649 2020-02-19 Tom Tromey <tromey@adacore.com>
10650
10651 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10652 NULL check.
10653
10654 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10655
10656 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10657
10658 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10659
10660 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10661 if GDBSERVER is not defined.
10662 (riscv_tdesc_cache): Likewise, also store const target_desc.
10663 (STATIC_IN_GDB): Define.
10664 (riscv_create_target_description): Update declaration with
10665 STATIC_IN_GDB.
10666 (riscv_lookup_target_description): New function, only define if
10667 GDBSERVER is not defined.
10668 * arch/riscv.h (riscv_create_target_description): Declare only
10669 when GDBSERVER is defined.
10670 (riscv_lookup_target_description): New declaration when GDBSERVER
10671 is not defined.
10672 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10673 (riscv_linux_read_features): ...this, and return
10674 riscv_gdbarch_features instead of target_desc.
10675 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10676 (riscv_linux_read_description): Rename to...
10677 (riscv_linux_read_features): ...this.
10678 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10679 Update to use riscv_gdbarch_features and
10680 riscv_lookup_target_description.
10681 * riscv-tdep.c (riscv_find_default_target_description): Use
10682 riscv_lookup_target_description instead of
10683 riscv_create_target_description.
10684
10685 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10686
10687 * valprint.c (generic_val_print_enum_1): When printing a flag
10688 enum with value 0 and there is no enumerator with value 0, print
10689 just "0" instead of "(unknown: 0x0)".
10690
10691 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10692
10693 * valprint.c (generic_val_print_enum_1): Print unknown part of
10694 flag enum in hex.
10695
10696 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10697
10698 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10699 flag enums to contain duplicate enumerators.
10700 * valprint.c (generic_val_print_enum_1): Update comment.
10701
10702 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10703
10704 * dwarf2/read.c: Include "count-one-bits.h".
10705 (update_enumeration_type_from_children): If an enumerator has
10706 multiple bits set, don't treat the enumeration as a "flag enum".
10707 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10708 of flag enums have 0 or 1 bit set.
10709
10710 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10711
10712 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10713 conversion.
10714 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10715 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10716 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10717 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10718 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10719
10720 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10721
10722 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10723
10724 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10725
10726 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10727 displaced_step_closure_up.
10728 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10729 (struct displaced_step_closure_up):
10730 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10731 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10732 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10733 Likewise.
10734 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10735 * gdbarch.c, gdbarch.h: Re-generate.
10736 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10737 displaced_step_closure_up.
10738 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10739 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10740 * infrun.h (displaced_step_closure_up): New type alias.
10741 (struct displaced_step_inferior_state) <step_closure>: Change
10742 type to displaced_step_closure_up.
10743 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10744 displaced_step_closure_up.
10745 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10746
10747 2020-02-14 Tom Tromey <tom@tromey.com>
10748
10749 * minidebug.c (gnu_debug_key): New global.
10750 (find_separate_debug_file_in_section): Use it.
10751
10752 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10753
10754 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10755 std::unique_ptr.
10756 * gdbarch.c: Re-generate.
10757 * gdbarch.h: Re-generate.
10758 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10759 change.
10760 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10761 type to std::unique_ptr.
10762 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10763 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10764 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10765 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10766 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10767 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10768 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10769 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10770 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10771
10772 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10773
10774 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10775 std::unique_ptr.
10776 (displaced_step_clear): Rename to...
10777 (displaced_step_reset): ... this. Just call displaced->reset ().
10778 (displaced_step_clear_cleanup): Rename to...
10779 (displaced_step_reset_cleanup): ... this.
10780 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10781 (displaced_step_fixup): Likewise.
10782 (resume_1): Likewise.
10783 (handle_inferior_event): Restore child's memory before calling
10784 displaced_step_fixup on the parent.
10785 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10786 to std::unique_ptr.
10787 <step_closure>: Change type to std::unique_ptr.
10788
10789 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10790
10791 * arm-tdep.c: Include count-one-bits.h.
10792 (cleanup_block_store_pc): Use count_one_bits.
10793 (cleanup_block_load_pc): Use count_one_bits.
10794 (arm_copy_block_xfer): Use count_one_bits.
10795 (thumb2_copy_block_xfer): Use count_one_bits.
10796 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10797 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10798 (thumb_get_next_pcs_raw): Use count_one_bits.
10799 (arm_get_next_pcs_raw): Use count_one_bits_l.
10800 * arch/arm.c (bitcount): Remove.
10801 * arch/arm.h (bitcount): Remove.
10802
10803 2020-02-14 Tom Tromey <tromey@adacore.com>
10804
10805 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10806 Update.
10807 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10808 * dwarf2/loc.c (call_site_find_chain_1): Return
10809 unique_xmalloc_ptr.
10810 (call_site_find_chain): Likewise.
10811
10812 2020-02-14 Richard Biener <rguenther@suse.de>
10813
10814 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10815 on expression with division operators.
10816
10817 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10818
10819 * MAINTAINERS (Write After Approval): Adding myself.
10820
10821 2020-02-12 Tom Tromey <tom@tromey.com>
10822
10823 * event-loop.c (event_data, gdb_event, event_handler_func):
10824 Remove.
10825
10826 2020-02-12 Tom Tromey <tom@tromey.com>
10827
10828 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10829 (dwarf2_frame_objfile_data): Add comment.
10830 (find_comp_unit, set_comp_unit): New functions.
10831 (dwarf2_frame_find_fde): Use find_comp_unit.
10832 (dwarf2_build_frame_info): Use set_comp_unit.
10833
10834 2020-02-12 Tom Tromey <tom@tromey.com>
10835
10836 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10837 (comp_unit): Don't initialize objfile.
10838 (execute_cfa_program): Add text_offset parameter.
10839 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10840 (dwarf2_frame_cache): Update.
10841 (dwarf2_build_frame_info): Don't set "objfile" member.
10842
10843 2020-02-12 Tom Tromey <tom@tromey.com>
10844
10845 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10846 (decode_frame_entry): Likewise.
10847 (dwarf2_build_frame_info): Update.
10848
10849 2020-02-12 Tom Tromey <tom@tromey.com>
10850
10851 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10852 (decode_frame_entry_1): Use the comp_unit obstack.
10853
10854 2020-02-12 Tom Tromey <tom@tromey.com>
10855
10856 * dwarf2/frame.c (struct comp_unit): Add initializers and
10857 constructor.
10858 (dwarf2_frame_objfile_data): Store a comp_unit.
10859 (dwarf2_frame_find_fde): Update.
10860 (dwarf2_build_frame_info): Use "new".
10861
10862 2020-02-12 Tom Tromey <tom@tromey.com>
10863
10864 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10865 (dwarf2_fde_table): Typedef for std::vector.
10866 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10867 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10868 (decode_frame_entry): Update.
10869 (dwarf2_build_frame_info): Use "new".
10870
10871 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10872
10873 * arm-tdep.c (arm_gdbarch_init): Update.
10874 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10875 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10876 have_neon, is_m>: Change to bool.
10877
10878 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10879
10880 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10881
10882 2020-02-12 Tom Tromey <tom@tromey.com>
10883
10884 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10885
10886 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10887
10888 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10889 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10890
10891 2020-02-11 Tom Tromey <tom@tromey.com>
10892
10893 * psymtab.h: Update comment.
10894
10895 2020-02-11 Tom Tromey <tom@tromey.com>
10896
10897 * gdb_obstack.h (struct auto_obstack): Use
10898 DISABLE_COPY_AND_ASSIGN.
10899
10900 2020-02-11 Tom Tromey <tom@tromey.com>
10901
10902 * dwarf2/frame.h (struct objfile): Don't forward declare.
10903
10904 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10905
10906 * cris-tdep.c (cris_supply_gregset): Change signature to match
10907 what struct regset expects.
10908 (cris_regset): New struct.
10909 (fetch_core_registers): Remove.
10910 (cris_iterate_over_regset_sections): New function.
10911 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10912 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10913
10914 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10915
10916 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10917 registers.
10918
10919 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10920
10921 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10922
10923 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10924
10925 * configure: Re-generate.
10926
10927 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10928
10929 * configure: Re-generate.
10930
10931 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10932
10933 * acinclude: Update warning.m4 path.
10934 * warning.m4: Move to gdbsupport.
10935
10936 2020-02-11 Tom Tromey <tromey@adacore.com>
10937
10938 * remote.c (remote_console_output): Update.
10939 * printcmd.c (printf_command): Update.
10940 * event-loop.c (gdb_wait_for_event): Update.
10941 * linux-nat.c (sigchld_handler): Update.
10942 * remote-sim.c (gdb_os_write_stdout): Update.
10943 (gdb_os_flush_stdout): Update.
10944 (gdb_os_flush_stderr): Update.
10945 (gdb_os_write_stderr): Update.
10946 * exceptions.c (print_exception): Update.
10947 * remote-fileio.c (remote_fileio_func_read): Update.
10948 (remote_fileio_func_write): Update.
10949 * tui/tui.c (tui_enable): Update.
10950 * tui/tui-interp.c (tui_interp::init): Update.
10951 * utils.c (init_page_info): Update.
10952 (putchar_unfiltered, fputc_unfiltered): Update.
10953 (gdb_flush): Update.
10954 (emit_style_escape): Update.
10955 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10956 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10957 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10958 (stderr_file::write): Update.
10959 (stderr_file::puts): Update.
10960 * ui-file.h (ui_file_isatty, ui_file_write)
10961 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10962 (ui_file_puts): Don't declare.
10963
10964 2020-02-10 Tom de Vries <tdevries@suse.de>
10965
10966 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10967 sentinel to char *.
10968
10969 2020-02-09 Tom de Vries <tdevries@suse.de>
10970
10971 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10972 filename if it matches "<artificial>".
10973
10974 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10975
10976 * windows-tdep.c (struct enum_value_name): New struct.
10977 (create_enum): New function.
10978 (windows_get_siginfo_type): Create and use enum types.
10979
10980 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10981
10982 * NEWS: Mention $_siginfo support for Windows.
10983 * windows-nat.c (handle_exception): Set siginfo_er.
10984 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10985 (windows_xfer_siginfo): New function.
10986 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10987 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10988 (init_windows_gdbarch_data): New function.
10989 (get_windows_gdbarch_data): New function.
10990 (windows_get_siginfo_type): New function.
10991 (windows_init_abi): Register windows_get_siginfo_type.
10992 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10993
10994 2020-02-08 Tom Tromey <tom@tromey.com>
10995
10996 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10997 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10998 <keep>: Declare method.
10999 <m_keep>: Remove member.
11000 <~cutu_reader>: Remove.
11001 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11002 (cutu_reader::cutu_reader): Update.
11003 (cutu_reader::keep): Rename from ~cutu_reader.
11004 (process_psymtab_comp_unit, build_type_psymtabs_1)
11005 (process_skeletonless_type_unit, load_partial_comp_unit)
11006 (load_full_comp_unit, dwarf2_read_addr_index)
11007 (read_signatured_type): Update.
11008
11009 2020-02-08 Tom Tromey <tom@tromey.com>
11010
11011 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11012 "want_partial_unit" parameter.
11013 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11014 Inline check for DW_TAG_partial_unit.
11015 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11016
11017 2020-02-08 Tom Tromey <tom@tromey.com>
11018
11019 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11020 read.c.
11021 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11022 read.c.
11023
11024 2020-02-08 Tom Tromey <tom@tromey.com>
11025
11026 * dwarf2/read.c (read_address): Move to comp-unit.c.
11027 (dwarf2_rnglists_process, dwarf2_ranges_process)
11028 (read_attribute_value, dwarf_decode_lines_1)
11029 (var_decode_location, decode_locdesc): Update.
11030 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11031 read.c. Remove "cu" parameter.
11032 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11033 method.
11034
11035 2020-02-08 Tom Tromey <tom@tromey.com>
11036
11037 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11038 (read_indirect_line_string): Update.
11039 * dwarf2/comp-unit.c (read_offset): Remove.
11040 (read_comp_unit_head): Update.
11041 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11042 method.
11043 (read_offset): Don't declare.
11044
11045 2020-02-08 Tom Tromey <tom@tromey.com>
11046
11047 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11048 * dwarf2/read.c (struct comp_unit_head): Move to
11049 dwarf2/comp-unit.h.
11050 (enum class rcuh_kind): Move to comp-unit.h.
11051 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11052 (read_comp_unit_head, error_check_comp_unit_head)
11053 (read_and_check_comp_unit_head): Move to comp-unit.c.
11054 (read_offset, dwarf_unit_type_name): Likewise.
11055 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11056 (cutu_reader::cutu_reader, read_call_site_scope)
11057 (find_partial_die, follow_die_offset): Update.
11058 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11059
11060 2020-02-08 Tom Tromey <tom@tromey.com>
11061
11062 * dwarf2/read.c (read_offset_1): Move to leb.c.
11063 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11064 (dwarf_decode_macro_bytes): Update.
11065 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11066 * dwarf2/leb.h (read_offset): Declare.
11067
11068 2020-02-08 Tom Tromey <tom@tromey.com>
11069
11070 * dwarf2/read.c (dwarf2_section_size): Remove.
11071 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11072 Update.
11073 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11074
11075 2020-02-08 Tom Tromey <tom@tromey.com>
11076
11077 * dwarf2/read.c (read_initial_length): Move to leb.c.
11078 * dwarf2/leb.h (read_initial_length): Declare.
11079 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11080 handle_nonstd parameter.
11081 * dwarf2/frame.c (read_initial_length): Remove.
11082 (decode_frame_entry_1): Update.
11083
11084 2020-02-08 Tom Tromey <tom@tromey.com>
11085
11086 * dwarf2/loc.c (dwarf2_find_location_expression)
11087 (dwarf_evaluate_loc_desc::get_tls_address)
11088 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11089 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11090 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11091 (dwarf2_compile_property_to_c)
11092 (dwarf2_loc_desc_get_symbol_read_needs)
11093 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11094 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11095 (loclist_describe_location, loclist_tracepoint_var_ref)
11096 (loclist_generate_c_location): Update.
11097 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11098 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11099 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11100 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11101 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11102 (dwarf2_per_cu_data::addr_size)
11103 (dwarf2_per_cu_data::ref_addr_size)
11104 (dwarf2_per_cu_data::text_offset)
11105 (dwarf2_per_cu_data::addr_type): Now methods.
11106 (per_cu_header_read_in): Make per_cu "const".
11107 (dwarf2_version): Remove.
11108 (dwarf2_per_cu_data::int_type): Now a method.
11109 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11110 (set_die_type, read_array_type, read_subrange_index_type)
11111 (read_tag_string_type, read_subrange_type): Update.
11112 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11113 offset_size, ref_addr_size, text_offset, addr_type, version,
11114 objfile, int_type, addr_sized_int_type>: Declare methods.
11115
11116 2020-02-08 Tom Tromey <tom@tromey.com>
11117
11118 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11119 Move earlier.
11120
11121 2020-02-08 Tom Tromey <tom@tromey.com>
11122
11123 * dwarf2/read.h (dwarf_line_debug): Declare.
11124 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11125 * dwarf2/read.c: Move line_header code to new files.
11126 (dwarf_line_debug): No longer static.
11127 * dwarf2/line-header.c: New file.
11128 * dwarf2/line-header.h: New file.
11129
11130 2020-02-08 Tom Tromey <tom@tromey.com>
11131
11132 * dwarf2/read.c (struct line_header) <file_full_name,
11133 file_file_name>: Return unique_xmalloc_ptr.
11134 (line_header::file_file_name): Update.
11135 (line_header::file_full_name): Update.
11136 (dw2_get_file_names_reader): Update.
11137 (macro_start_file): Update.
11138
11139 2020-02-08 Tom Tromey <tom@tromey.com>
11140
11141 * dwarf2/read.c (struct line_header) <file_full_name,
11142 file_file_name>: Declare methods.
11143 (dw2_get_file_names_reader): Update.
11144 (file_file_name): Now a method.
11145 (file_full_name): Likewise.
11146 (macro_start_file): Update.
11147
11148 2020-02-08 Tom Tromey <tom@tromey.com>
11149
11150 * dwarf2/read.c (dwarf_always_disassemble)
11151 (show_dwarf_always_disassemble): Move to loc.c.
11152 (_initialize_dwarf2_read): Move "always-disassemble" registration
11153 to loc.c.
11154 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11155 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11156 static.
11157 (show_dwarf_always_disassemble): Move from read.c.
11158 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11159
11160 2020-02-08 Tom Tromey <tom@tromey.com>
11161
11162 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11163 (create_quick_file_names_table): Return htab_up.
11164 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11165 Update.
11166 * dwarf2/read.h (struct dwarf2_per_objfile)
11167 <quick_file_names_table>: Now htab_up.
11168
11169 2020-02-08 Tom Tromey <tom@tromey.com>
11170
11171 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11172
11173 2020-02-08 Tom Tromey <tom@tromey.com>
11174
11175 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11176 Rewrite.
11177 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11178 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11179 (abbrev_table::abbrev_table): No longer inline.
11180 (ABBREV_HASH_SIZE): Remove.
11181 (abbrev_table::m_abbrevs): Now an htab_up.
11182
11183 2020-02-08 Tom Tromey <tom@tromey.com>
11184
11185 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11186 (cutu_reader): Update.
11187 (build_type_psymtabs_1): Update.
11188 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11189 (abbrev_table::alloc_abbrev): Update.
11190 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11191 (abbrev_table::read): New static method, renamed from
11192 abbrev_table_read_table.
11193 (abbrev_table::alloc_abbrev)
11194 (abbrev_table::add_abbrev): Now private.
11195 (abbrev_table::abbrev_table): Now private.
11196 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11197
11198 2020-02-08 Tom Tromey <tom@tromey.com>
11199
11200 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11201 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11202 htab_up.
11203
11204 2020-02-08 Tom Tromey <tom@tromey.com>
11205
11206 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11207 htab_up.
11208 (lookup_dwo_unit_in_dwp): Update.
11209 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11210 on obstack.
11211
11212 2020-02-08 Tom Tromey <tom@tromey.com>
11213
11214 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11215 obstack.
11216
11217 2020-02-08 Tom Tromey <tom@tromey.com>
11218
11219 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11220 line_header_hash.
11221 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11222 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11223 Change type to htab_up.
11224
11225 2020-02-08 Tom Tromey <tom@tromey.com>
11226
11227 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11228 htab_up. Don't allocate on obstack.
11229 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11230 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11231 Change type to htab_up.
11232
11233 2020-02-08 Tom Tromey <tom@tromey.com>
11234
11235 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11236 Change type to htab_up.
11237 * dwarf2/read.c (create_signatured_type_table_from_index)
11238 (create_signatured_type_table_from_debug_names)
11239 (create_all_type_units, add_type_unit)
11240 (lookup_dwo_signatured_type, lookup_signatured_type)
11241 (process_skeletonless_type_unit): Update.
11242 (create_debug_type_hash_table, create_debug_types_hash_table):
11243 Change type of types_htab.
11244 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11245 htab_up. Don't allocate on obstack.
11246 (create_cus_hash_table): Change type of cus_htab parameter.
11247 (struct dwo_file) <cus, tus>: Now htab_up.
11248 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11249 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11250 (queue_and_load_all_dwo_tus): Update.
11251 * dwarf2/index-write.c (write_gdbindex): Update.
11252 (write_debug_names): Update.
11253
11254 2020-02-08 Tom Tromey <tom@tromey.com>
11255
11256 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11257 dwarf2/read.c. Remove "next" member. Add constructor ntad
11258 destructor.
11259 (struct dwarf2_per_objfile) <queue>: New member.
11260 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11261 dwarf2/read.h.
11262 (dwarf2_queue, dwarf2_queue_tail): Remove.
11263 (class dwarf2_queue_guard): Add parameter to constructor. Use
11264 DISABLE_COPY_AND_ASSIGN.
11265 <m_per_objfile>: New member.
11266 <~dwarf2_queue_guard>: Rewrite.
11267 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11268 Update.
11269 (~dwarf2_queue_item): New.
11270
11271 2020-02-08 Tom Tromey <tom@tromey.com>
11272
11273 * dwarf2/read.c (struct die_info) <has_children>: New member.
11274 (dw2_get_file_names_reader): Remove has_children.
11275 (dw2_get_file_names): Update.
11276 (read_cutu_die_from_dwo): Remove has_children.
11277 (cutu_reader::init_tu_and_read_dwo_dies)
11278 (cutu_reader::cutu_reader): Update.
11279 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11280 Remove has_children.
11281 (build_type_psymtabs_1, process_skeletonless_type_unit)
11282 (load_partial_comp_unit, load_full_comp_unit): Update.
11283 (create_dwo_cu_reader): Remove has_children.
11284 (create_cus_hash_table, read_die_and_children): Update.
11285 (read_full_die_1,read_full_die): Remove has_children.
11286 (read_signatured_type): Update.
11287 (class cutu_reader) <has_children>: Remove.
11288
11289 2020-02-08 Tom Tromey <tom@tromey.com>
11290
11291 * dwarf2/expr.c: Rename from dwarf2expr.c.
11292 * dwarf2/expr.h: Rename from dwarf2expr.h.
11293 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11294 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11295 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11296 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11297 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11298 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11299 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11300 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11301 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11302 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11303 * dwarf2/loc.c: Rename from dwarf2loc.c.
11304 * dwarf2/loc.h: Rename from dwarf2loc.h.
11305 * dwarf2/read.c: Rename from dwarf2read.c.
11306 * dwarf2/read.h: Rename from dwarf2read.h.
11307 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11308 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11309 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11310 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11311 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11312 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11313 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11314 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11315 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11316 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11317 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11318 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11319 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11320 Update.
11321 * Makefile.in (COMMON_SFILES): Update.
11322 (HFILES_NO_SRCDIR): Update.
11323
11324 2020-02-08 Tom Tromey <tom@tromey.com>
11325
11326 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11327 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11328
11329 2020-02-08 Tom Tromey <tom@tromey.com>
11330
11331 * dwarf2read.h (struct die_info): Don't declare.
11332
11333 2020-02-08 Tom Tromey <tom@tromey.com>
11334
11335 * dwarf2read.h (die_info_ptr): Remove typedef.
11336
11337 2020-02-08 Tom Tromey <tom@tromey.com>
11338
11339 * dwarf2read.c (read_call_site_scope)
11340 (handle_data_member_location, dwarf2_add_member_fn)
11341 (mark_common_block_symbol_computed, read_common_block)
11342 (attr_to_dynamic_prop, partial_die_info::read)
11343 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11344 (dwarf2_symbol_mark_computed, set_die_type): Update.
11345 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11346 method.
11347 (attr_form_is_block): Don't declare.
11348 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11349
11350 2020-02-08 Tom Tromey <tom@tromey.com>
11351
11352 * dwarf2read.c (dwarf2_find_base_address, )
11353 (read_call_site_scope, rust_containing_type)
11354 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11355 (handle_data_member_location, dwarf2_add_member_fn)
11356 (get_alignment, read_structure_type, process_structure_scope)
11357 (mark_common_block_symbol_computed, read_common_block)
11358 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11359 (partial_die_info::read, read_attribute_value, new_symbol)
11360 (lookup_die_type, dwarf2_get_ref_die_offset)
11361 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11362 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11363 (dwarf2_symbol_mark_computed): Update.
11364 * dwarf2/attribute.h (struct attribute) <value_as_address,
11365 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11366 methods.
11367 (value_as_address, attr_form_is_section_offset)
11368 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11369 * dwarf2/attribute.c (attribute::value_as_address)
11370 (attribute::form_is_section_offset, attribute::form_is_constant)
11371 (attribute::form_is_ref): Now methods.
11372
11373 2020-02-08 Tom Tromey <tom@tromey.com>
11374
11375 * dwarf2read.c (struct attribute, DW_STRING)
11376 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11377 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11378 (attr_form_is_block, attr_form_is_section_offset)
11379 (attr_form_is_constant, attr_form_is_ref): Move.
11380 * dwarf2/attribute.h: New file.
11381 * dwarf2/attribute.c: New file, from dwarf2read.c.
11382 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11383
11384 2020-02-08 Tom Tromey <tom@tromey.com>
11385
11386 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11387 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11388 Move.
11389 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11390 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11391 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11392 abbrev.c.
11393 * dwarf2/abbrev.h: New file.
11394 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11395 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11396
11397 2020-02-08 Tom Tromey <tom@tromey.com>
11398
11399 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11400 (dwarf2_section_size, dwarf2_get_section_info)
11401 (create_signatured_type_table_from_debug_names)
11402 (create_addrmap_from_aranges, read_debug_names_from_section)
11403 (get_gdb_index_contents_from_section, read_comp_unit_head)
11404 (error_check_comp_unit_head, read_abbrev_offset)
11405 (create_debug_type_hash_table, init_cu_die_reader)
11406 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11407 (read_comp_units_from_section, create_cus_hash_table)
11408 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11409 (create_dwp_v2_section, dwarf2_rnglists_process)
11410 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11411 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11412 (read_indirect_string_from_dwz, read_addr_index_1)
11413 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11414 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11415 (fill_in_loclist_baton): Update.
11416 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11417 get_containing_section, get_bfd_owner, get_bfd_section,
11418 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11419 (dwarf2_read_section, get_section_name, get_section_file_name)
11420 (get_containing_section, get_section_bfd_owner)
11421 (get_section_bfd_section, get_section_name, get_section_file_name)
11422 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11423 declare.
11424 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11425 (dwarf2_section_info::get_bfd_owner)
11426 (dwarf2_section_info::get_bfd_section)
11427 (dwarf2_section_info::get_name)
11428 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11429 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11430 (dwarf2_section_info::read): Now methods.
11431 * dwarf-index-write.c (class debug_names): Update.
11432
11433 2020-02-08 Tom Tromey <tom@tromey.com>
11434
11435 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11436 Move to dwarf2/section.h.
11437 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11438 (get_section_bfd_section, get_section_name)
11439 (get_section_file_name, get_section_id, get_section_flags)
11440 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11441 dwarf2/section.c.
11442 * dwarf2/section.h: New file.
11443 * dwarf2/section.c: New file, from dwarf2read.c.
11444 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11445
11446 2020-02-08 Tom Tromey <tom@tromey.com>
11447
11448 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11449 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11450 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11451 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11452 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11453 * dwarf2/leb.h: New file, from dwarf2read.c.
11454 * dwarf2/leb.c: New file, from dwarf2read.c.
11455 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11456 Remove.
11457 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11458 (COMMON_SFILES): Add dwarf2/leb.c.
11459
11460 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11461
11462 GDB 9.1 released.
11463
11464 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11465
11466 PR gdb/25190:
11467 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11468 * gdb/remote.c (remote_console_output): Update.
11469 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11470 (ui_file_puts): ...this.
11471 * gdb/ui-file.h (ui_file_puts): Add declaration.
11472 * gdb/utils.c (emit_style_escape): Update.
11473 (flush_wrap_buffer): Update.
11474 (fputs_maybe_filtered): Update.
11475 (fputs_unfiltered): Add function.
11476
11477 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11478
11479 * gdb/event-loop.c (gdb_wait_for_event): Update.
11480 * gdb/printcmd.c (printf_command): Update.
11481 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11482 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11483 (gdb_os_flush_stderr): Update.
11484 * gdb/remote.c (remote_console_output): Update.
11485 * gdb/ui-file.c (gdb_flush): Rename to...
11486 (ui_file_flush): ...this.
11487 (stderr_file::write): Update.
11488 (stderr_file::puts): Update.
11489 * gdb/ui-file.h (gdb_flush): Rename to...
11490 (ui_file_flush): ...this.
11491 * gdb/utils.c (gdb_flush): Add function.
11492 * gdb/utils.h (gdb_flush): Add declaration.
11493
11494 2020-02-07 Tom Tromey <tromey@adacore.com>
11495
11496 PR breakpoints/24915:
11497 * source.c (find_and_open_source): Do not check basenames_may_differ.
11498
11499 2020-02-07 Tom Tromey <tom@tromey.com>
11500
11501 * README: Update gdbserver documentation.
11502 * gdbserver: Move to top level.
11503 * configure.tgt (build_gdbserver): Remove.
11504 * configure.ac: Remove --enable-gdbserver.
11505 * configure: Rebuild.
11506 * Makefile.in (distclean): Don't mention gdbserver.
11507
11508 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11509
11510 * source-cache.c (source_cache::ensure): Surround
11511 get_plain_source_lines with a try/catch.
11512 (source_cache::get_line_charpos): Get rid of try/catch
11513 and only check for the return value of "ensure".
11514 * tui/tui-source.c (tui_source_window::set_contents):
11515 Simplify "nlines" calculation.
11516
11517 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11518
11519 * MAINTAINERS (Write After Approval): Add myself.
11520
11521 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11522
11523 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11524 function call.
11525
11526 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11527
11528 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11529
11530 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11531
11532 * nat/riscv-linux-tdesc.h: New file.
11533 * nat/riscv-linux-tdesc.c: New file, taking code from...
11534 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11535 ... here.
11536 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11537 NATDEPFILES.
11538
11539 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11540
11541 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11542 we don't set the fake simulator ptid to the null_ptid.
11543
11544 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11545
11546 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11547 * gdbthread.h (class thread_info) <resumed>: Likewise.
11548 * infrun.c (resume_1): Likewise.
11549 (proceed): Likewise.
11550 (infrun_thread_stop_requested): Likewise.
11551 (stop_all_threads): Likewise.
11552 (handle_inferior_event): Likewise.
11553 (restart_threads): Likewise.
11554 (finish_step_over): Likewise.
11555 (keep_going_stepped_thread): Likewise.
11556 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11557 (linux_handle_extended_wait): Likewise.
11558 * record-btrace.c (get_thread_current_frame_id): Likewise.
11559 * record-full.c (record_full_wait_1): Likewise.
11560 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11561 * target.c (target_resume): Likewise.
11562 * thread.c (set_running_thread): Likewise.
11563
11564 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11565
11566 * f-valprint.c (f77_print_array_1): Changed datatype of index
11567 variable to LONGEST from int to enable it to contain bound
11568 values correctly.
11569
11570 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11571
11572 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11573 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11574 offsets according to FLEN determined.
11575 (riscv_linux_nat_target::read_description): Determine FLEN
11576 dynamically.
11577 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11578 according to FLEN determined.
11579 (riscv_linux_nat_target::store_registers): Likewise.
11580
11581 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11582
11583 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11584 when reg->group is empty and reggroup is not.
11585
11586 2020-01-31 Tom Tromey <tromey@adacore.com>
11587
11588 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11589 Call beneath target's mourn_inferior after unpushing.
11590
11591 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11592
11593 PR tui/9765
11594 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11595 have enough lines to fill the screen, still return the lowest
11596 address we found.
11597
11598 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11599
11600 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11601 '-', '<', and '>' commands.
11602
11603 2020-01-29 Pedro Alves <palves@redhat.com>
11604 Sergio Durigan Junior <sergiodj@redhat.com>
11605
11606 * infcmd.c (construct_inferior_arguments): Assert that
11607 'argc' is greater than 0.
11608
11609 2020-01-29 Luis Machado <luis.machado@linaro.org>
11610
11611 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11612 (BRK_INSN_MASK): Define to 0xd4200000.
11613 (aarch64_program_breakpoint_here_p): New function.
11614 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11615 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11616 breakpoint.c.
11617 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11618 breakpoint.h
11619 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11620 call gdbarch_program_breakpoint_here_p.
11621 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11622 default_program_breakpoint_here_p, changed return type to bool and
11623 simplified.
11624 * breakpoint.h (program_breakpoint_here): Moved prototype to
11625 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11626 return type to bool.
11627 * gdbarch.c: Regenerate.
11628 * gdbarch.h: Regenerate.
11629 * gdbarch.sh (program_breakpoint_here_p): New method.
11630 * infrun.c (handle_signal_stop): Call
11631 gdbarch_program_breakpoint_here_p.
11632
11633 2020-01-26 Tom Tromey <tom@tromey.com>
11634
11635 * ctfread.c (struct ctf_fp_info): Reindent.
11636 (_initialize_ctfread): Remove.
11637
11638 2020-01-26 Tom Tromey <tom@tromey.com>
11639
11640 * psymtab.c (partial_map_expand_apply)
11641 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11642 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11643 (psym_print_stats, psym_expand_symtabs_for_function)
11644 (psym_map_symbol_filenames, psym_map_matching_symbols)
11645 (psym_expand_symtabs_matching)
11646 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11647 (maintenance_check_psymtabs): Use new methods.
11648 * psympriv.h (struct partial_symtab) <readin_p,
11649 get_compunit_symtab>: New methods.
11650 <readin, compunit_symtab>: Remove members.
11651 (struct standard_psymtab): New.
11652 (struct legacy_psymtab): Derive from standard_psymtab.
11653 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11654 standard_psymtab.
11655 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11656
11657 2020-01-26 Tom Tromey <tom@tromey.com>
11658
11659 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11660 read_dependencies. Add assert.
11661 * psymtab.c (partial_symtab::read_dependencies): New method.
11662 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11663 method.
11664 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11665 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11666 read_dependencies.
11667 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11668 Add assert.
11669
11670 2020-01-26 Tom Tromey <tom@tromey.com>
11671
11672 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11673 Call expand_psymtab.
11674 (xcoff_read_symtab): Call expand_psymtab.
11675 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11676 legacy_expand_psymtab.
11677 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11678 method.
11679 (struct legacy_psymtab) <expand_psymtab>: Implement.
11680 <legacy_expand_psymtab>: New member.
11681 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11682 (parse_partial_symbols): Set legacy_expand_psymtab.
11683 (psymtab_to_symtab_1): Change argument order. Call
11684 expand_psymtab.
11685 (new_psymtab): Set legacy_expand_psymtab.
11686 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11687 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11688 expand_psymtab.
11689 (dwarf2_psymtab::expand_psymtab): Rename from
11690 psymtab_to_symtab_1. Call expand_psymtab.
11691 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11692 (dbx_end_psymtab): Likewise.
11693 (dbx_psymtab_to_symtab_1): Change argument order. Call
11694 expand_psymtab.
11695 (dbx_read_symtab): Call expand_psymtab.
11696 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11697 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11698 (ctf_psymtab::read_symtab): Call expand_psymtab.
11699
11700 2020-01-26 Tom Tromey <tom@tromey.com>
11701
11702 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11703 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11704 messages.
11705 * mdebugread.c (mdebug_read_symtab): Remove prints.
11706 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11707 assert.
11708 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11709
11710 2020-01-26 Tom Tromey <tom@tromey.com>
11711
11712 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11713 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11714 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11715 legacy_symtab.
11716 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11717 * psymtab.c (psymtab_to_symtab): Call method.
11718 (dump_psymtab): Update.
11719 * psympriv.h (struct partial_symtab): Add virtual destructor.
11720 <read_symtab>: New method.
11721 (struct legacy_symtab): New.
11722 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11723 (struct pst_map) <pst>: Now a legacy_psymtab.
11724 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11725 (new_psymtab): Use legacy_psymtab.
11726 * dwarf2read.h (struct dwarf2_psymtab): New.
11727 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11728 * dwarf2read.c (dwarf2_create_include_psymtab)
11729 (dwarf2_build_include_psymtabs, create_type_unit_group)
11730 (create_partial_symtab, process_psymtab_comp_unit_reader)
11731 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11732 (set_partial_user): Use dwarf2_psymtab.
11733 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11734 (psymtab_to_symtab_1, process_full_comp_unit)
11735 (process_full_type_unit, dwarf2_ranges_read)
11736 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11737 (dwarf_decode_lines): Use dwarf2_psymtab.
11738 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11739 (add_address_entry_worker, write_one_signatured_type)
11740 (recursively_count_psymbols, recursively_write_psymbols)
11741 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11742 (write_debug_names): Likewise.
11743 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11744 <pst>: Now a legacy_psymtab.
11745 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11746 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11747 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11748 * ctfread.c (struct ctf_psymtab): New.
11749 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11750 ctf_psymtab.
11751 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11752 (create_partial_symtab): Return a ctf_psymtab.
11753 (scan_partial_symbols): Update.
11754
11755 2020-01-26 Tom Tromey <tom@tromey.com>
11756
11757 * xcoffread.c (xcoff_start_psymtab): Use new.
11758 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11759 renamed from start_psymtab_common.
11760 * psympriv.h (struct partial_symtab): Add new constructor.
11761 (start_psymtab_common): Don't declare.
11762 * mdebugread.c (parse_partial_symbols): Use new.
11763 * dwarf2read.c (create_partial_symtab): Use new.
11764 * dbxread.c (start_psymtab): Use new.
11765 * ctfread.c (create_partial_symtab): Use new.
11766
11767 2020-01-26 Tom Tromey <tom@tromey.com>
11768
11769 * xcoffread.c (xcoff_end_psymtab): Use new.
11770 * psymtab.c (start_psymtab_common): Use new.
11771 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11772 Update.
11773 * psympriv.h (struct partial_symtab): Add parameters to
11774 constructor. Don't inline.
11775 (allocate_psymtab): Don't declare.
11776 * mdebugread.c (new_psymtab): Use new.
11777 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11778 * dbxread.c (dbx_end_psymtab): Use new.
11779
11780 2020-01-26 Tom Tromey <tom@tromey.com>
11781
11782 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11783 allocate_psymtab. Update documentation.
11784 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11785 allocate_psymtab. Do not use new.
11786 (allocate_psymtab): Use new. Update.
11787
11788 2020-01-26 Tom Tromey <tom@tromey.com>
11789
11790 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11791 * psymtab.c (psym_print_stats): Update.
11792 * psympriv.h (struct partial_symtab) <readin,
11793 psymtabs_addrmap_supported, anonymous>: Now bool.
11794 * mdebugread.c (psymtab_to_symtab_1): Update.
11795 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11796 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11797 (process_full_comp_unit, process_full_type_unit): Update.
11798 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11799 * ctfread.c (psymtab_to_symtab): Update.
11800
11801 2020-01-26 Tom Tromey <tom@tromey.com>
11802
11803 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11804 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11805 * psymtab.c (psymtab_storage): Delete psymtabs.
11806 (psymtab_storage::allocate_psymtab): Use new.
11807 (psymtab_storage::discard_psymtab): Use delete.
11808 * psympriv.h (struct partial_symtab): Add constructor and
11809 initializers.
11810
11811 2020-01-26 Tom Tromey <tom@tromey.com>
11812
11813 * machoread.c: Do not include psympriv.h.
11814
11815 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11816
11817 * NEWS: Mention the new option and the set/show commands.
11818
11819 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11820
11821 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11822 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11823 (validate_exec_file): New variables, enums, functions.
11824 (exec_file_locate_attach, print_section_info): Style the filenames.
11825 (_initialize_exec): Install show_exec_file_mismatch_command and
11826 set_exec_file_mismatch_command.
11827 * gdbcore.h (validate_exec_file): Declare.
11828 * infcmd.c (attach_command): Call validate_exec_file.
11829 * remote.c ( remote_target::remote_add_inferior): Likewise.
11830
11831 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11832
11833 * frame.c (find_frame_sal): Move call to get_next_frame into more
11834 inner scope.
11835 * inline-frame.c (inilne_state) <inline_state>: Update argument
11836 types.
11837 (inilne_state) <skipped_symbol>: Rename to...
11838 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11839 (skip_inline_frames): Build vector of skipped symbols and use this
11840 to reate the inline_state.
11841 (inline_skipped_symbol): Add a comment and some assertions, fetch
11842 skipped symbol from the list.
11843
11844 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11845
11846 * buildsym.c (lte_is_less_than): Delete.
11847 (buildsym_compunit::end_symtab_with_blockvector): Create local
11848 lambda function to sort line table entries, and use
11849 std::stable_sort instead of std::sort.
11850 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11851 markers when looking for a previous line.
11852
11853 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11854
11855 * dwarf2read.c (lnp_state_machine::record_line): Include
11856 end_sequence parameter in debug print out. Record the line if we
11857 are at an end_sequence marker even if it's not the start of a
11858 statement.
11859 * symmisc.c (maintenance_print_one_line_table): Print end of
11860 sequence markers with 'END' not '0'.
11861
11862 2020-01-24 Pedro Alves <palves@redhat.com>
11863
11864 PR gdb/25410
11865 * thread.c (scoped_restore_current_thread::restore): Use
11866 switch_to_inferior_no_thread.
11867 * exec.c: Include "progspace-and-thread.h".
11868 (add_target_sections, remove_target_sections):
11869 scoped_restore_current_pspace_and_thread instead of
11870 scoped_restore_current_thread.
11871 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11872 and aspace to the inferior before calling clone_program_space.
11873 Remove stale comment.
11874
11875 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11876
11877 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11878 (arm_netbsd_nat_target::fetch_registers): ...this.
11879 (arm_nbsd_nat_target::store_registers): Rename to...
11880 (arm_netbsd_nat_target::store_registers): ...this.
11881
11882 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11883
11884 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11885 register_t.
11886
11887 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11888
11889 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11890 Update comment.
11891 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11892 Likewise.
11893 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11894 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11895 the correct replacement (iterate_over_regset_sections).
11896 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11897 Update comment.
11898
11899 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11900
11901 PR gdb/23718
11902 * gdb/python/python.c (execute_gdb_command): Call
11903 async_enable_stdin in catch block.
11904
11905 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11906
11907 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11908 SWITCH_THRU_ALL_UIS.
11909
11910 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11911
11912 PR tui/9765
11913 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11914 comment, add extra parameter, and update to store previous symbol
11915 when appropriate.
11916 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11917 add extra parameter.
11918 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11919 remove unneeded parameter, add try/catch around gdb_print_insn,
11920 rewrite to add items to asm_lines vector.
11921 (tui_find_backward_disassembly_start_address): New function.
11922 (tui_find_disassembly_address): Updated throughout.
11923 (tui_disasm_window::set_contents): Update for changes to
11924 tui_disassemble.
11925 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11926 number of lines to scroll.
11927
11928 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11929
11930 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11931 (SECT_OFF_DATA): Likewise.
11932 (SECT_OFF_RODATA): Likewise.
11933 (SECT_OFF_TEXT): Likewise.
11934 (SECT_OFF_BSS): Likewise.
11935 (struct objfile) <text_section_offset, data_section_offset>: New
11936 methods.
11937 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11938 objfile::text_section_offset.
11939 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11940 * coffread.c (coff_symtab_read): Likewise.
11941 (enter_linenos): Likewise.
11942 (process_coff_symbol): Likewise.
11943 * ctfread.c (get_objfile_text_range): Likewise.
11944 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11945 Use objfile::data_section_offset.
11946 * dwarf2-frame.c (execute_cfa_program): Use
11947 objfile::text_section_offset.
11948 (dwarf2_frame_find_fde): Likewise.
11949 * dwarf2read.c (create_addrmap_from_index): Likewise.
11950 (create_addrmap_from_aranges): Likewise.
11951 (dw2_find_pc_sect_compunit_symtab): Likewise.
11952 (process_psymtab_comp_unit_reader): Likewise.
11953 (add_partial_symbol): Likewise.
11954 (add_partial_subprogram): Likewise.
11955 (process_full_comp_unit): Likewise.
11956 (read_file_scope): Likewise.
11957 (read_func_scope): Likewise.
11958 (read_lexical_block_scope): Likewise.
11959 (read_call_site_scope): Likewise.
11960 (dwarf2_rnglists_process): Likewise.
11961 (dwarf2_ranges_process): Likewise.
11962 (dwarf2_ranges_read): Likewise.
11963 (dwarf_decode_lines_1): Likewise.
11964 (new_symbol): Likewise.
11965 (dwarf2_fetch_die_loc_sect_off): Likewise.
11966 (dwarf2_per_cu_text_offset): Likewise.
11967 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11968 * hppa-tdep.c (read_unwind_info): Likewise.
11969 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11970 * psympriv.h (struct partial_symtab): Likewise.
11971 * psymtab.c (find_pc_sect_psymtab): Likewise.
11972 * solib-svr4.c (enable_break): Likewise.
11973 * stap-probe.c (relocate_address): Use
11974 objfile::data_section_offset.
11975 * xcoffread.c (enter_line_range): Use
11976 objfile::text_section_offset.
11977 (read_xcoff_symtab): Likewise.
11978
11979 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11980
11981 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11982 declaration to narrower scopes.
11983
11984 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11985
11986 * darwin-nat.h (struct darwin_exception_msg, enum
11987 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11988 Move up.
11989 (class darwin_nat_target) <wait_1, check_new_threads,
11990 decode_exception_message, decode_message, stop_inferior,
11991 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11992 * darwin-nat.c (darwin_check_new_threads): Rename to...
11993 (darwin_nat_target::check_new_threads): ... this.
11994 (darwin_suspend_inferior_it): Remove.
11995 (darwin_decode_exception_message): Rename to...
11996 (darwin_nat_target::decode_exception_message): ... this.
11997 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11998 (darwin_decode_message): Rename to...
11999 (darwin_nat_target::decode_message): ... this.
12000 (cancel_breakpoint): Rename to...
12001 (darwin_nat_target::cancel_breakpoint): ... this.
12002 (darwin_wait): Rename to...
12003 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12004 instead of iterate_over_inferiors.
12005 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12006 (darwin_stop_inferior): Rename to...
12007 (darwin_nat_target::stop_inferior): ... this.
12008 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12009 (darwin_init_thread_list): Rename to...
12010 (darwin_nat_target::init_thread_list): ... this.
12011 (darwin_ptrace_him): Rename to...
12012 (darwin_nat_target::ptrace_him): ... this.
12013 (darwin_nat_target::create_inferior): Pass lambda function to
12014 fork_inferior.
12015 (darwin_nat_target::detach): Call stop_inferior instead of
12016 darwin_stop_inferior.
12017 * fork-inferior.h (fork_inferior): Change init_trace_fun
12018 parameter to gdb::function_view.
12019 * fork-inferior.c (fork_inferior): Likewise.
12020
12021 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12022
12023 * i386-cygwin-tdep.c (core_process_module_section): Update.
12024 * windows-nat.c (struct lm_info_windows): Add text_offset.
12025 (windows_xfer_shared_libraries): Update.
12026 * windows-tdep.c (windows_xfer_shared_library):
12027 Add text_offset_cached argument.
12028 * windows-tdep.h (windows_xfer_shared_library): Update.
12029
12030 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12031
12032 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12033
12034 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12035
12036 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12037 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12038 replace with range-based for.
12039 (gdbsim_interrupt_inferior): Remove.
12040 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12041 with a range-based for. Inline code from
12042 gdbsim_interrupt_inferior.
12043
12044 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12045
12046 * infrun.c (proceed): Fix indentation.
12047
12048 2020-01-21 Tom Tromey <tromey@adacore.com>
12049
12050 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12051 * python/python.c (python_extension_ops): Update.
12052 (gdbpy_colorize): New function.
12053 * python/lib/gdb/__init__.py (colorize): New function.
12054 * extension.h (ext_lang_colorize): Declare.
12055 * extension.c (ext_lang_colorize): New function.
12056 * extension-priv.h (struct extension_language_ops) <colorize>: New
12057 member.
12058 * cli/cli-style.c (_initialize_cli_style): Update help text.
12059
12060 2020-01-21 Luis Machado <luis.machado@linaro.org>
12061
12062 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12063 <cond>: Change type to bool.
12064 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12065 (aarch64_displaced_step_cb): Likewise.
12066 (aarch64_displaced_step_tb): Likewise.
12067
12068 2020-01-21 Luis Machado <luis.machado@linaro.org>
12069
12070 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12071 output.
12072
12073 2020-01-21 Luis Machado <luis.machado@linaro.org>
12074
12075 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12076 <pc_adjust>: Adjust the documentation.
12077 (aarch64_displaced_step_fixup): Check if PC really moved before
12078 adjusting it.
12079
12080 2020-01-19 Tom Tromey <tom@tromey.com>
12081
12082 * disasm.c (~gdb_disassembler): New destructor.
12083 (gdb_buffered_insn_length): Call disassemble_free_target.
12084 * disasm.h (class gdb_disassembler): Declare destructor. Use
12085 DISABLE_COPY_AND_ASSIGN.
12086
12087 2020-01-19 Tom Tromey <tom@tromey.com>
12088
12089 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12090 (die_reader_func_ftype): Remove.
12091 (cutu_reader): New class.
12092 (dw2_get_file_names_reader): Remove "data" parameter.
12093 (dw2_get_file_names): Use cutu_reader.
12094 (create_debug_type_hash_table): Update.
12095 (read_cutu_die_from_dwo): Update comment.
12096 (lookup_dwo_unit): Add dwo_name parameter.
12097 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12098 die_reader_func_ftype and data parameters.
12099 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12100 Remove die_reader_func_ftype and data parameters.
12101 (~cutu_reader): New; from init_cutu_and_read_dies.
12102 (cutu_reader::cutu_reader): Rename from
12103 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12104 and data parameters.
12105 (init_cutu_and_read_dies_simple): Remove.
12106 (struct process_psymtab_comp_unit_data): Remove.
12107 (process_psymtab_comp_unit_reader): Remove data parameter; add
12108 want_partial_unit and pretend_language parameters.
12109 (process_psymtab_comp_unit): Use cutu_reader.
12110 (build_type_psymtabs_reader): Remove data parameter.
12111 (build_type_psymtabs_1): Use cutu_reader.
12112 (process_skeletonless_type_unit): Likewise.
12113 (load_partial_comp_unit_reader): Remove.
12114 (load_partial_comp_unit): Use cutu_reader.
12115 (load_full_comp_unit_reader): Remove.
12116 (load_full_comp_unit): Use cutu_reader.
12117 (struct create_dwo_cu_data): Remove.
12118 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12119 dwo_unit parameters.
12120 (create_cus_hash_table): Use cutu_reader.
12121 (struct dwarf2_read_addr_index_data): Remove.
12122 (dwarf2_read_addr_index_reader): Remove.
12123 (dwarf2_read_addr_index): Use cutu_reader.
12124 (read_signatured_type_reader): Remove.
12125 (read_signatured_type): Use cutu_reader.
12126
12127 2020-01-19 Tom Tromey <tom@tromey.com>
12128
12129 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12130 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12131 (tui_wrefresh): Declare.
12132 * tui/tui-wingeneral.c (suppress_output): New global.
12133 (tui_suppress_output, ~tui_suppress_output): New constructor and
12134 destructor.
12135 (tui_wrefresh): New function.
12136 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12137 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12138 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12139 method.
12140 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12141 tui_wrefresh.
12142 (tui_data_window::no_refresh): New method.
12143 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12144 (tui_reg_command): Use tui_suppress_output
12145 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12146 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12147 method.
12148 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12149
12150 2020-01-19 Tom Tromey <tom@tromey.com>
12151
12152 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12153 Handle case where symtab is null.
12154
12155 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12156
12157 * linux-fork.c (one_fork_p): Simplify.
12158
12159 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12160
12161 * top.c (struct qt_args): Remove.
12162 (kill_or_detach): Change return type to void, replace `void *`
12163 parameter with a proper one.
12164 (print_inferior_quit_action): Likewise.
12165 (quit_confirm): Use range-based for loop to iterate over inferiors.
12166 (quit_force): Likewise.
12167
12168 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12169
12170 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12171 `void *` parameter with proper parameters.
12172 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12173 (print_one_inferior): Change return type to void, replace `void *`
12174 parameter with proper parameters.
12175 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12176 inferiors.
12177 (get_other_inferior): Remove.
12178 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12179 inferiors.
12180
12181 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12182
12183 * mi/mi-interp.c (report_initial_inferior): Remove.
12184 (mi_interp::init): Use range-based for to iterate over inferiors.
12185
12186 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12187
12188 * python/py-inferior.c (build_inferior_list): Remove.
12189 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12190
12191 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12192
12193 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12194 (btrace_stitch_trace): Likewise.
12195 * charset.c (intermediate_encoding): Likewise (vaild).
12196 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12197 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12198 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12199
12200 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12201
12202 * windows-tdep.c (windows_get_tlb_type):
12203 Add rtl_user_process_parameters type.
12204
12205 2020-01-16 Pedro Alves <palves@redhat.com>
12206 Norbert Lange <nolange79@gmail.com>
12207
12208 PR build/24805
12209 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12210 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12211 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12212 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12213 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12214 (ps_plog): Redeclare exported functions with default visibility.
12215
12216 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12217
12218 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12219 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12220
12221 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12222
12223 * infcmd.c (post_create_inferior): Use get_thread_regcache
12224 instead of get_current_regcache.
12225
12226 2020-01-14 Tom Tromey <tom@tromey.com>
12227
12228 PR symtab/12535:
12229 * python/python.c (gdbpy_decode_line): Treat empty string the same
12230 as no argument.
12231
12232 2020-01-14 Tom Tromey <tom@tromey.com>
12233
12234 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12235
12236 2020-01-14 Tom Tromey <tom@tromey.com>
12237
12238 * nat/linux-btrace.c: Don't include <config.h>.
12239 * nat/linux-ptrace.c: Don't include <config.h>.
12240 * nat/x86-linux-dregs.c: Don't include <config.h>.
12241
12242 2020-01-14 Tom Tromey <tom@tromey.com>
12243
12244 * configure: Rebuild.
12245 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12246
12247 2020-01-14 Tom Tromey <tom@tromey.com>
12248
12249 * nat/x86-linux-dregs.c: Include configh.h.
12250 * nat/linux-ptrace.c: Include configh.h.
12251 * nat/linux-btrace.c: Include configh.h.
12252 * defs.h: Include config.h, bfd.h.
12253 * configure.ac: Don't source common.host.
12254 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12255 * configure: Rebuild.
12256 * acinclude.m4: Update path.
12257 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12258 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12259 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12260 (CLIBS): Add LIBSUPPORT.
12261 (CDEPS): Likewise.
12262 (COMMON_SFILES): Remove gdbsupport files.
12263 (HFILES_NO_SRCDIR): Likewise.
12264 (stamp-version): Update path to create-version.sh.
12265 (ALLDEPFILES): Remove gdbsupport files.
12266
12267 2020-01-14 Tom Tromey <tom@tromey.com>
12268
12269 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12270 USE_WIN32API when needed.
12271 * configure.ac (USE_WIN32API): Don't define.
12272 (WIN32LIBS): Use WIN32APILIBS.
12273 * configure: Rebuild.
12274
12275 2020-01-14 Tom Tromey <tom@tromey.com>
12276
12277 * configure: Rebuild.
12278 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12279
12280 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12281
12282 * skip.c (skip_function_command): Make skip w/o arguments use the
12283 name of the inlined function if pc is inside any inlined function.
12284
12285 2020-01-14 Luis Machado <luis.machado@linaro.org>
12286
12287 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12288 * infrun.c (resume_1): Likewise.
12289 (handle_inferior_event): Remove stale comment.
12290 * linux-nat.c (linux_nat_target::resume): Update comments.
12291 (save_stop_reason): Likewise.
12292 (linux_nat_filter_event): Likewise.
12293 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12294
12295 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12296
12297 * elfread.c (record_minimal_symbol): Set section index to 0 for
12298 non-allocatable sections.
12299
12300
12301 2020-01-13 Ali Tamur <tamur@google.com>
12302
12303 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12304 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12305 to gdb::optional. Update comments.
12306 (dwo_file): Update comments.
12307 (read_attribute): Update API to take an additional out parameter,
12308 need_reprocess. This is used to mark attributes that need other
12309 attributes (e.g. str_offsets_base) for correct computation which may not
12310 have been read yet.
12311 (read_attribute_reprocess): New function declaration.
12312 (read_addr_index): Likewise.
12313 (read_dwo_str_index): Likewise.
12314 (read_stub_str_index): Likewise.
12315 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12316 (lookup_addr_base): New function definition.
12317 (lookup_ranges_base): Likewise.
12318 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12319 lookup_ranges_base.
12320 (init_cutu_and_read_dies): Update comments.
12321 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12322 unit. This is used to inherit parent's str_offsets_base and addr_base.
12323 Update comments.
12324 (init_cutu_and_read_dies_simple): Reflect API changes.
12325 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12326 (create_cus_hash_table): Change API to take parent compile unit.
12327 Reflect API changes.
12328 (open_and_init_dwo_file): Reflect API changes.
12329 (dwarf2_get_pc_bounds): Update comments.
12330 (dwarf2_record_block_ranges): Likewise.
12331 (read_full_die_1): Change implementation to reprocess attributes that
12332 need str_offsets_base and addr_base.
12333 (partial_die_info::read): Likewise.
12334 (read_attribute_reprocess): New function definition.
12335 (read_attribute_value): Change API to take an additional out parameter,
12336 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12337 when a non-dwo compile unit has index based attributes.
12338 (read_attribute): Reflect API changes.
12339 (read_addr_index_1): Reflect API changes. Update comments.
12340 (dwarf2_read_addr_index_data): Reflect API changes.
12341 (dwarf2_read_addr_index): Likewise.
12342 (read_str_index): Change API and implementation. This becomes a helper
12343 to be used by the new string index related methods. Update error
12344 message and comments.
12345 (read_dwo_str_index): New function definition.
12346 (read_stub_str_index): Likewise.
12347 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12348 * symfile.h (dwarf2_debug_sections): Likewise.
12349 * xcoffread.c (dwarf2_debug_sections): Likewise.
12350
12351 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12352
12353 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12354 core_reg_sect type to gdb_byte *.
12355 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12356 * cris-tdep.c (fetch_core_registers): Likewise.
12357 * corelow.c (core_target::get_core_register_section): Change
12358 type of `contents` to gdb::byte_vector.
12359
12360 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12361
12362 * tui/tui-wingeneral.c (box_win): Position the title in the center
12363 of the border.
12364
12365 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12366
12367 * corelow.c (core_target::get_core_register_section): Use
12368 std::vector instead of alloca.
12369
12370 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12371
12372 * warning.m4: Add -Wmissing-declarations to build_warnings.
12373 * configure: Re-generate.
12374
12375 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12376
12377 * python/python.c (init__gdb_module): Add declaration.
12378
12379 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12380
12381 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12382 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12383 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12384 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12385 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12386 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12387 * ada-exp.y (_initialize_ada_exp): Add declaration.
12388 * ada-lang.c (_initialize_ada_language): Add declaration.
12389 * ada-tasks.c (_initialize_tasks): Add declaration.
12390 * agent.c (_initialize_agent): Add declaration.
12391 * aix-thread.c (_initialize_aix_thread): Add declaration.
12392 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12393 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12394 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12395 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12396 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12397 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12398 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12399 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12400 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12401 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12402 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12403 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12404 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12405 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12406 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12407 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12408 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12409 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12410 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12411 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12412 * annotate.c (_initialize_annotate): Add declaration.
12413 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12414 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12415 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12416 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12417 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12418 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12419 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12420 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12421 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12422 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12423 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12424 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12425 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12426 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12427 * auto-load.c (_initialize_auto_load): Add declaration.
12428 * auxv.c (_initialize_auxv): Add declaration.
12429 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12430 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12431 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12432 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12433 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12434 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12435 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12436 * breakpoint.c (_initialize_breakpoint): Add declaration.
12437 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12438 * btrace.c (_initialize_btrace): Add declaration.
12439 * charset.c (_initialize_charset): Add declaration.
12440 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12441 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12442 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12443 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12444 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12445 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12446 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12447 * coffread.c (_initialize_coffread): Add declaration.
12448 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12449 * compile/compile.c (_initialize_compile): Add declaration.
12450 * complaints.c (_initialize_complaints): Add declaration.
12451 * completer.c (_initialize_completer): Add declaration.
12452 * copying.c (_initialize_copying): Add declaration.
12453 * corefile.c (_initialize_core): Add declaration.
12454 * corelow.c (_initialize_corelow): Add declaration.
12455 * cp-abi.c (_initialize_cp_abi): Add declaration.
12456 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12457 * cp-support.c (_initialize_cp_support): Add declaration.
12458 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12459 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12460 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12461 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12462 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12463 * ctfread.c (_initialize_ctfread): Add declaration.
12464 * d-lang.c (_initialize_d_language): Add declaration.
12465 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12466 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12467 * dbxread.c (_initialize_dbxread): Add declaration.
12468 * dcache.c (_initialize_dcache): Add declaration.
12469 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12470 * disasm.c (_initialize_disasm): Add declaration.
12471 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12472 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12473 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12474 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12475 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12476 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12477 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12478 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12479 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12480 * elfread.c (_initialize_elfread): Add declaration.
12481 * exec.c (_initialize_exec): Add declaration.
12482 * extension.c (_initialize_extension): Add declaration.
12483 * f-lang.c (_initialize_f_language): Add declaration.
12484 * f-valprint.c (_initialize_f_valprint): Add declaration.
12485 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12486 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12487 * filesystem.c (_initialize_filesystem): Add declaration.
12488 * findcmd.c (_initialize_mem_search): Add declaration.
12489 * findvar.c (_initialize_findvar): Add declaration.
12490 * fork-child.c (_initialize_fork_child): Add declaration.
12491 * frame-base.c (_initialize_frame_base): Add declaration.
12492 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12493 * frame.c (_initialize_frame): Add declaration.
12494 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12495 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12496 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12497 * gcore.c (_initialize_gcore): Add declaration.
12498 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12499 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12500 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12501 * gdbarch.c (_initialize_gdbarch): Add declaration.
12502 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12503 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12504 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12505 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12506 * go-lang.c (_initialize_go_language): Add declaration.
12507 * go32-nat.c (_initialize_go32_nat): Add declaration.
12508 * guile/guile.c (_initialize_guile): Add declaration.
12509 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12510 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12511 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12512 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12513 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12514 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12515 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12516 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12517 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12518 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12519 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12520 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12521 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12522 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12523 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12524 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12525 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12526 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12527 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12528 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12529 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12530 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12531 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12532 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12533 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12534 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12535 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12536 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12537 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12538 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12539 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12540 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12541 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12542 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12543 * infcall.c (_initialize_infcall): Add declaration.
12544 * infcmd.c (_initialize_infcmd): Add declaration.
12545 * inflow.c (_initialize_inflow): Add declaration.
12546 * infrun.c (_initialize_infrun): Add declaration.
12547 * interps.c (_initialize_interpreter): Add declaration.
12548 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12549 * jit.c (_initialize_jit): Add declaration.
12550 * language.c (_initialize_language): Add declaration.
12551 * linux-fork.c (_initialize_linux_fork): Add declaration.
12552 * linux-nat.c (_initialize_linux_nat): Add declaration.
12553 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12554 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12555 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12556 * m2-lang.c (_initialize_m2_language): Add declaration.
12557 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12558 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12559 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12560 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12561 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12562 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12563 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12564 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12565 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12566 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12567 * machoread.c (_initialize_machoread): Add declaration.
12568 * macrocmd.c (_initialize_macrocmd): Add declaration.
12569 * macroscope.c (_initialize_macroscope): Add declaration.
12570 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12571 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12572 * maint.c (_initialize_maint_cmds): Add declaration.
12573 * mdebugread.c (_initialize_mdebugread): Add declaration.
12574 * memattr.c (_initialize_mem): Add declaration.
12575 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12576 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12577 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12578 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12579 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12580 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12581 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12582 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12583 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12584 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12585 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12586 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12587 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12588 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12589 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12590 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12591 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12592 * mipsread.c (_initialize_mipsread): Add declaration.
12593 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12594 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12595 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12596 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12597 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12598 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12599 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12600 * nto-procfs.c (_initialize_procfs): Add declaration.
12601 * objc-lang.c (_initialize_objc_language): Add declaration.
12602 * observable.c (_initialize_observer): Add declaration.
12603 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12604 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12605 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12606 * osabi.c (_initialize_gdb_osabi): Add declaration.
12607 * osdata.c (_initialize_osdata): Add declaration.
12608 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12609 * parse.c (_initialize_parse): Add declaration.
12610 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12611 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12612 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12613 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12614 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12615 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12616 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12617 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12618 * printcmd.c (_initialize_printcmd): Add declaration.
12619 * probe.c (_initialize_probe): Add declaration.
12620 * proc-api.c (_initialize_proc_api): Add declaration.
12621 * proc-events.c (_initialize_proc_events): Add declaration.
12622 * proc-service.c (_initialize_proc_service): Add declaration.
12623 * procfs.c (_initialize_procfs): Add declaration.
12624 * producer.c (_initialize_producer): Add declaration.
12625 * psymtab.c (_initialize_psymtab): Add declaration.
12626 * python/python.c (_initialize_python): Add declaration.
12627 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12628 * record-btrace.c (_initialize_record_btrace): Add declaration.
12629 * record-full.c (_initialize_record_full): Add declaration.
12630 * record.c (_initialize_record): Add declaration.
12631 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12632 * regcache.c (_initialize_regcache): Add declaration.
12633 * reggroups.c (_initialize_reggroup): Add declaration.
12634 * remote-notif.c (_initialize_notif): Add declaration.
12635 * remote-sim.c (_initialize_remote_sim): Add declaration.
12636 * remote.c (_initialize_remote): Add declaration.
12637 * reverse.c (_initialize_reverse): Add declaration.
12638 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12639 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12640 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12641 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12642 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12643 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12644 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12645 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12646 Add declaration.
12647 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12648 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12649 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12650 * rust-exp.y (_initialize_rust_exp): Add declaration.
12651 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12652 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12653 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12654 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12655 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12656 * score-tdep.c (_initialize_score_tdep): Add declaration.
12657 * ser-go32.c (_initialize_ser_dos): Add declaration.
12658 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12659 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12660 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12661 * ser-uds.c (_initialize_ser_socket): Add declaration.
12662 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12663 * serial.c (_initialize_serial): Add declaration.
12664 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12665 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12666 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12667 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12668 * skip.c (_initialize_step_skip): Add declaration.
12669 * sol-thread.c (_initialize_sol_thread): Add declaration.
12670 * solib-aix.c (_initialize_solib_aix): Add declaration.
12671 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12672 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12673 * solib-frv.c (_initialize_frv_solib): Add declaration.
12674 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12675 * solib-target.c (_initialize_solib_target): Add declaration.
12676 * solib.c (_initialize_solib): Add declaration.
12677 * source-cache.c (_initialize_source_cache): Add declaration.
12678 * source.c (_initialize_source): Add declaration.
12679 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12680 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12681 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12682 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12683 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12684 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12685 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12686 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12687 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12688 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12689 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12690 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12691 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12692 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12693 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12694 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12695 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12696 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12697 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12698 * stabsread.c (_initialize_stabsread): Add declaration.
12699 * stack.c (_initialize_stack): Add declaration.
12700 * stap-probe.c (_initialize_stap_probe): Add declaration.
12701 * std-regs.c (_initialize_frame_reg): Add declaration.
12702 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12703 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12704 * symfile.c (_initialize_symfile): Add declaration.
12705 * symmisc.c (_initialize_symmisc): Add declaration.
12706 * symtab.c (_initialize_symtab): Add declaration.
12707 * target.c (_initialize_target): Add declaration.
12708 * target-connection.c (_initialize_target_connection): Add
12709 declaration.
12710 * target-dcache.c (_initialize_target_dcache): Add declaration.
12711 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12712 * thread.c (_initialize_thread): Add declaration.
12713 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12714 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12715 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12716 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12717 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12718 * tracectf.c (_initialize_ctf): Add declaration.
12719 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12720 * tracefile.c (_initialize_tracefile): Add declaration.
12721 * tracepoint.c (_initialize_tracepoint): Add declaration.
12722 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12723 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12724 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12725 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12726 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12727 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12728 * tui/tui.c (_initialize_tui): Add declaration.
12729 * typeprint.c (_initialize_typeprint): Add declaration.
12730 * ui-style.c (_initialize_ui_style): Add declaration.
12731 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12732 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12733 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12734 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12735 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12736 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12737 * unittests/filtered_iterator-selftests.c
12738 (_initialize_filtered_iterator_selftests): Add declaration.
12739 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12740 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12741 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12742 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12743 * unittests/main-thread-selftests.c
12744 (_initialize_main_thread_selftests): Add declaration.
12745 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12746 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12747 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12748 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12749 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12750 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12751 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12752 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12753 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12754 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12755 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12756 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12757 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12758 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12759 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12760 declaration.
12761 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12762 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12763 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12764 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12765 * user-regs.c (_initialize_user_regs): Add declaration.
12766 * utils.c (_initialize_utils): Add declaration.
12767 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12768 * valops.c (_initialize_valops): Add declaration.
12769 * valprint.c (_initialize_valprint): Add declaration.
12770 * value.c (_initialize_values): Add declaration.
12771 * varobj.c (_initialize_varobj): Add declaration.
12772 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12773 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12774 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12775 * windows-nat.c (_initialize_windows_nat): Add declaration.
12776 (_initialize_check_for_gdb_ini): Add declaration.
12777 (_initialize_loadable): Add declaration.
12778 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12779 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12780 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12781 * xcoffread.c (_initialize_xcoffread): Add declaration.
12782 * xml-support.c (_initialize_xml_support): Add declaration.
12783 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12784 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12785 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12786 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12787
12788 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12789
12790 * regformats/regdat.sh: Generate declaration for init function.
12791
12792 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12793
12794 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12795 up.
12796 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12797 close_one_inferior>: New methods.
12798 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12799 pass down target to find_inferior_pid.
12800 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12801 Pass down target to find_inferior_ptid.
12802 (gdbsim_target::create_inferior): Pass down target to
12803 add_thread_silent.
12804 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12805 target down to find_inferior_ptid and switch_to_thread.
12806 (gdbsim_target::close): Update to call close_one_inferior.
12807 (struct resume_data): Remove.
12808 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12809 directly, rather than through a void pointer.
12810 (gdbsim_target::resume): Update to call resume_one_inferior.
12811
12812 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12813
12814 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12815
12816 2020-01-12 Pedro Alves <palves@redhat.com>
12817
12818 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12819 directly for the current inferior instead of
12820 discard_all_inferiors.
12821 (discard_all_inferiors): Delete.
12822
12823 2020-01-11 Tom Tromey <tom@tromey.com>
12824
12825 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12826 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12827 deprecated_safe_get_selected_frame.
12828
12829 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12830
12831 * inferior.c (print_inferior): Switch inferior before printing it.
12832
12833 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12834 Pedro Alves <palves@redhat.com>
12835
12836 * progspace-and-thread.c (switch_to_program_space_and_thread):
12837 Assert there's an inferior for PSPACE. Use
12838 switch_to_inferior_no_thread to switch the inferior too.
12839 * progspace.c (program_space::~program_space): Call
12840 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12841 (program_space::free_all_objfiles): Don't call clear_symtab_users
12842 here.
12843 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12844
12845 2020-01-10 Pedro Alves <palves@redhat.com>
12846
12847 * NEWS: Mention multi-target debugging, "info connections", and
12848 "add-inferior -no-connection".
12849
12850 2020-01-10 Pedro Alves <palves@redhat.com>
12851
12852 * infrun.c: Include "target-connection.h".
12853 (check_multi_target_resumption): New.
12854 (proceed): Call it.
12855 * target-connection.c (make_target_connection_string): Make
12856 extern.
12857 * target-connection.h (make_target_connection_string): Declare.
12858
12859 2020-01-10 Pedro Alves <palves@redhat.com>
12860
12861 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12862 * inferior.c (uiout_field_connection): New function.
12863 (print_inferior): Add new "connection-id" column.
12864 (add_inferior_command): Show connection number/string of added
12865 inferior.
12866 * process-stratum-target.h
12867 (process_stratum_target::connection_string): New virtual method.
12868 (process_stratum_target::connection_number): New field.
12869 * remote.c (remote_target::connection_string): New override.
12870 * target-connection.c: New file.
12871 * target-connection.h: New file.
12872 * target.c (decref_target): Remove process_stratum targets from
12873 the connection list.
12874 (target_stack::push): Add process_stratum targets to the
12875 connection list.
12876
12877 2020-01-10 Pedro Alves <palves@redhat.com>
12878
12879 Revert:
12880 2016-04-12 Pedro Alves <palves@redhat.com>
12881 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12882 Remove references to name.
12883 * serial.h (struct serial) <name>: Delete.
12884
12885 2020-01-10 Pedro Alves <palves@redhat.com>
12886
12887 * gdbarch-selftests.c (register_to_value_test): Remove "target
12888 already pushed" check.
12889
12890 2020-01-10 Pedro Alves <palves@redhat.com>
12891 John Baldwin <jhb@FreeBSD.org>
12892
12893 * aarch64-linux-nat.c
12894 (aarch64_linux_nat_target::thread_architecture): Adjust.
12895 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12896 (task_command_1): Likewise.
12897 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12898 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12899 (aix_thread_target::store_registers)
12900 (aix_thread_target::thread_alive): Adjust.
12901 * amd64-fbsd-tdep.c: Include "inferior.h".
12902 (amd64fbsd_get_thread_local_address): Pass down target.
12903 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12904 thread's gdbarch instead of target_gdbarch.
12905 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12906 get_last_target_status.
12907 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12908 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12909 inferiors.
12910 (update_inserted_breakpoint_locations): Skip if inferiors with no
12911 execution.
12912 (update_global_location_list): When handling moribund locations,
12913 find representative inferior for location's pspace, and use thread
12914 count of its process_stratum target.
12915 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12916 * bsd-uthread.c (bsd_uthread_target::wait): Use
12917 as_process_stratum_target and adjust thread_change_ptid and
12918 add_thread calls.
12919 (bsd_uthread_target::update_thread_list): Use
12920 as_process_stratum_target and adjust find_thread_ptid,
12921 thread_change_ptid and add_thread calls.
12922 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12923 find_thread_ptid call.
12924 * corelow.c (add_to_thread_list): Adjust add_thread call.
12925 (core_target_open): Adjust add_thread_silent and thread_count
12926 calls.
12927 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12928 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12929 * event-top.c (async_disconnect): Pop targets from all inferiors.
12930 * exec.c (add_target_sections): Push exec target on all inferiors
12931 sharing the program space.
12932 (remove_target_sections): Remove the exec target from all
12933 inferiors sharing the program space.
12934 (exec_on_vfork): New.
12935 * exec.h (exec_on_vfork): Declare.
12936 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12937 Pass it down.
12938 (fbsd_nat_target::update_thread_list): Adjust.
12939 (fbsd_nat_target::resume): Adjust.
12940 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12941 down.
12942 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12943 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12944 get_thread_arch_regcache call.
12945 * fork-child.c (gdb_startup_inferior): Pass target down to
12946 startup_inferior and set_executing.
12947 * gdbthread.h (struct process_stratum_target): Forward declare.
12948 (add_thread, add_thread_silent, add_thread_with_info)
12949 (in_thread_list): Add process_stratum_target parameter.
12950 (find_thread_ptid(inferior*, ptid_t)): New overload.
12951 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12952 parameter.
12953 (all_threads()): Delete overload.
12954 (all_threads, all_non_exited_threads): Add process_stratum_target
12955 parameter.
12956 (all_threads_safe): Use brace initialization.
12957 (thread_count): Add process_stratum_target parameter.
12958 (set_resumed, set_running, set_stop_requested, set_executing)
12959 (threads_are_executing, finish_thread_state): Add
12960 process_stratum_target parameter.
12961 (switch_to_thread): Use is_current_thread.
12962 * i386-fbsd-tdep.c: Include "inferior.h".
12963 (i386fbsd_get_thread_local_address): Pass down target.
12964 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12965 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12966 have_inferiors check.
12967 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12968 (inf_ptrace_target::attach): Adjust.
12969 * infcall.c (run_inferior_call): Adjust.
12970 * infcmd.c (run_command_1): Pass target to
12971 scoped_finish_thread_state.
12972 (proceed_thread_callback): Skip inferiors with no execution.
12973 (continue_command): Rename 'all_threads' local to avoid hiding
12974 'all_threads' function. Adjust get_last_target_status call.
12975 (prepare_one_step): Adjust set_running call.
12976 (signal_command): Use user_visible_resume_target. Compare thread
12977 pointers instead of inferior_ptid.
12978 (info_program_command): Adjust to pass down target.
12979 (attach_command): Mark target's 'thread_executing' flag.
12980 (stop_current_target_threads_ns): New, factored out from ...
12981 (interrupt_target_1): ... this. Switch inferior before making
12982 target calls.
12983 * inferior-iter.h
12984 (struct all_inferiors_iterator, struct all_inferiors_range)
12985 (struct all_inferiors_safe_range)
12986 (struct all_non_exited_inferiors_range): Filter on
12987 process_stratum_target too. Remove explicit.
12988 * inferior.c (inferior::inferior): Push dummy target on target
12989 stack.
12990 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12991 Add process_stratum_target parameter, and pass it down.
12992 (have_live_inferiors): Adjust.
12993 (switch_to_inferior_and_push_target): New.
12994 (add_inferior_command, clone_inferior_command): Handle
12995 "-no-connection" parameter. Use
12996 switch_to_inferior_and_push_target.
12997 (_initialize_inferior): Mention "-no-connection" option in
12998 the help of "add-inferior" and "clone-inferior" commands.
12999 * inferior.h: Include "process-stratum-target.h".
13000 (interrupt_target_1): Use bool.
13001 (struct inferior) <push_target, unpush_target, target_is_pushed,
13002 find_target_beneath, top_target, process_target, target_at,
13003 m_stack>: New.
13004 (discard_all_inferiors): Delete.
13005 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13006 (all_inferiors, all_non_exited_inferiors): Add
13007 process_stratum_target parameter.
13008 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13009 (target_last_proc_target): New global.
13010 (follow_fork_inferior): Push target on new inferior. Pass target
13011 to add_thread_silent. Call exec_on_vfork. Handle target's
13012 reference count.
13013 (follow_fork): Adjust get_last_target_status call. Also consider
13014 target.
13015 (follow_exec): Push target on new inferior.
13016 (struct execution_control_state) <target>: New field.
13017 (user_visible_resume_target): New.
13018 (do_target_resume): Call target_async.
13019 (resume_1): Set target's threads_executing flag. Consider resume
13020 target.
13021 (commit_resume_all_targets): New.
13022 (proceed): Also consider resume target. Skip threads of inferiors
13023 with no execution. Commit resumtion in all targets.
13024 (start_remote): Pass current inferior to wait_for_inferior.
13025 (infrun_thread_stop_requested): Consider target as well. Pass
13026 thread_info pointer to clear_inline_frame_state instead of ptid.
13027 (infrun_thread_thread_exit): Consider target as well.
13028 (random_pending_event_thread): New inferior parameter. Use it.
13029 (do_target_wait): Rename to ...
13030 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13031 down.
13032 (threads_are_resumed_pending_p, do_target_wait): New.
13033 (prepare_for_detach): Adjust calls.
13034 (wait_for_inferior): New inferior parameter. Handle it. Use
13035 do_target_wait_1 instead of do_target_wait.
13036 (fetch_inferior_event): Adjust. Switch to representative
13037 inferior. Pass target down.
13038 (set_last_target_status): Add process_stratum_target parameter.
13039 Save target in global.
13040 (get_last_target_status): Add process_stratum_target parameter and
13041 handle it.
13042 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13043 (context_switch): Check inferior_ptid == null_ptid before calling
13044 inferior_thread().
13045 (get_inferior_stop_soon): Pass down target.
13046 (wait_one): Rename to ...
13047 (poll_one_curr_target): ... this.
13048 (struct wait_one_event): New.
13049 (wait_one): New.
13050 (stop_all_threads): Adjust.
13051 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13052 event's target.
13053 (switch_back_to_stepped_thread): Also consider target.
13054 (print_stop_event): Update.
13055 (normal_stop): Update. Also consider the resume target.
13056 * infrun.h (wait_for_inferior): Remove declaration.
13057 (user_visible_resume_target): New declaration.
13058 (get_last_target_status, set_last_target_status): New
13059 process_stratum_target parameter.
13060 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13061 process_stratum_target parameter, and use it.
13062 (clear_inline_frame_state (thread_info*)): New.
13063 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13064 process_stratum_target parameter.
13065 (clear_inline_frame_state (thread_info*)): Declare.
13066 * linux-fork.c (delete_checkpoint_command): Pass target down to
13067 find_thread_ptid.
13068 (checkpoint_command): Adjust.
13069 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13070 instead of just tweaking inferior_ptid.
13071 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13072 (exit_lwp): Pass target down to find_thread_ptid.
13073 (attach_proc_task_lwp_callback): Pass target down to
13074 add_thread/set_running/set_executing.
13075 (linux_nat_target::attach): Pass target down to
13076 thread_change_ptid.
13077 (get_detach_signal): Pass target down to find_thread_ptid.
13078 Consider last target status's target.
13079 (linux_resume_one_lwp_throw, resume_lwp)
13080 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13081 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13082 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13083 (linux_nat_target::async_wait_fd): New.
13084 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13085 target down.
13086 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13087 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13088 * linux-thread-db.c (struct thread_db_info::process_target): New
13089 field.
13090 (add_thread_db_info): Save target.
13091 (get_thread_db_info): New process_stratum_target parameter. Also
13092 match target.
13093 (delete_thread_db_info): New process_stratum_target parameter.
13094 Also match target.
13095 (thread_from_lwp): Adjust to pass down target.
13096 (thread_db_notice_clone): Pass down target.
13097 (check_thread_db_callback): Pass down target.
13098 (try_thread_db_load_1): Always push the thread_db target.
13099 (try_thread_db_load, record_thread): Pass target down.
13100 (thread_db_target::detach): Pass target down. Always unpush the
13101 thread_db target.
13102 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13103 target down. Always unpush the thread_db target.
13104 (find_new_threads_callback, thread_db_find_new_threads_2)
13105 (thread_db_target::update_thread_list): Pass target down.
13106 (thread_db_target::pid_to_str): Pass current inferior down.
13107 (thread_db_target::get_thread_local_address): Pass target down.
13108 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13109 target down.
13110 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13111 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13112 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13113 (procfs_init_inferior): Rename to ...
13114 (procfs_target::procfs_init_inferior): ... this and adjust.
13115 (procfs_target::create_inferior, procfs_notice_thread)
13116 (procfs_do_thread_registers): Adjust.
13117 * ppc-fbsd-tdep.c: Include "inferior.h".
13118 (ppcfbsd_get_thread_local_address): Pass down target.
13119 * proc-service.c (ps_xfer_memory): Switch current inferior and
13120 program space as well.
13121 (get_ps_regcache): Pass target down.
13122 * process-stratum-target.c
13123 (process_stratum_target::thread_address_space)
13124 (process_stratum_target::thread_architecture): Pass target down.
13125 * process-stratum-target.h
13126 (process_stratum_target::threads_executing): New field.
13127 (as_process_stratum_target): New.
13128 * ravenscar-thread.c
13129 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13130 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13131 down.
13132 * record-btrace.c (record_btrace_target::info_record): Adjust.
13133 (record_btrace_target::record_method)
13134 (record_btrace_target::record_is_replaying)
13135 (record_btrace_target::fetch_registers)
13136 (get_thread_current_frame_id, record_btrace_target::resume)
13137 (record_btrace_target::wait, record_btrace_target::stop): Pass
13138 target down.
13139 * record-full.c (record_full_wait_1): Switch to event thread.
13140 Pass target down.
13141 * regcache.c (regcache::regcache)
13142 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13143 process_stratum_target parameter and handle it.
13144 (current_thread_target): New global.
13145 (get_thread_regcache): Add process_stratum_target parameter and
13146 handle it. Switch inferior before calling target method.
13147 (get_thread_regcache): Pass target down.
13148 (get_thread_regcache_for_ptid): Pass target down.
13149 (registers_changed_ptid): Add process_stratum_target parameter and
13150 handle it.
13151 (registers_changed_thread, registers_changed): Pass target down.
13152 (test_get_thread_arch_aspace_regcache): New.
13153 (current_regcache_test): Define a couple local test_target_ops
13154 instances and use them for testing.
13155 (readwrite_regcache): Pass process_stratum_target parameter.
13156 (cooked_read_test, cooked_write_test): Pass mock_target down.
13157 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13158 (get_thread_arch_aspace_regcache): Add process_stratum_target
13159 parameter.
13160 (regcache::target): New method.
13161 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13162 (regcache::registers_changed_ptid): Add process_stratum_target
13163 parameter.
13164 (regcache::m_target): New field.
13165 (registers_changed_ptid): Add process_stratum_target parameter.
13166 * remote.c (remote_state::supports_vCont_probed): New field.
13167 (remote_target::async_wait_fd): New method.
13168 (remote_unpush_and_throw): Add remote_target parameter.
13169 (get_current_remote_target): Adjust.
13170 (remote_target::remote_add_inferior): Push target.
13171 (remote_target::remote_add_thread)
13172 (remote_target::remote_notice_new_inferior)
13173 (get_remote_thread_info): Pass target down.
13174 (remote_target::update_thread_list): Skip threads of inferiors
13175 bound to other targets. (remote_target::close): Don't discard
13176 inferiors. (remote_target::add_current_inferior_and_thread)
13177 (remote_target::process_initial_stop_replies)
13178 (remote_target::start_remote)
13179 (remote_target::remote_serial_quit_handler): Pass down target.
13180 (remote_target::remote_unpush_target): New remote_target
13181 parameter. Unpush the target from all inferiors.
13182 (remote_target::remote_unpush_and_throw): New remote_target
13183 parameter. Pass it down.
13184 (remote_target::open_1): Check whether the current inferior has
13185 execution instead of checking whether any inferior is live. Pass
13186 target down.
13187 (remote_target::remote_detach_1): Pass down target. Use
13188 remote_unpush_target.
13189 (extended_remote_target::attach): Pass down target.
13190 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13191 (remote_target::append_resumption): Pass down target.
13192 (remote_target::append_pending_thread_resumptions)
13193 (remote_target::remote_resume_with_hc, remote_target::resume)
13194 (remote_target::commit_resume): Pass down target.
13195 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13196 (remote_target::interrupt_query)
13197 (remote_target::remove_new_fork_children)
13198 (remote_target::check_pending_events_prevent_wildcard_vcont)
13199 (remote_target::remote_parse_stop_reply)
13200 (remote_target::process_stop_reply): Pass down target.
13201 (first_remote_resumed_thread): New remote_target parameter. Pass
13202 it down.
13203 (remote_target::wait_as): Pass down target.
13204 (unpush_and_perror): New remote_target parameter. Pass it down.
13205 (remote_target::readchar, remote_target::remote_serial_write)
13206 (remote_target::getpkt_or_notif_sane_1)
13207 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13208 down target.
13209 (remote_target::mourn_inferior): Pass down target. Use
13210 remote_unpush_target.
13211 (remote_target::core_of_thread)
13212 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13213 (remote_target::pid_to_exec_file)
13214 (remote_target::thread_handle_to_thread_info): Pass down target.
13215 (remote_target::async_wait_fd): New.
13216 * riscv-fbsd-tdep.c: Include "inferior.h".
13217 (riscv_fbsd_get_thread_local_address): Pass down target.
13218 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13219 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13220 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13221 Adjust.
13222 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13223 * solib-svr4.c (enable_break): Pass down target.
13224 * spu-multiarch.c (parse_spufs_run): Pass down target.
13225 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13226 * target-delegates.c: Regenerate.
13227 * target.c (g_target_stack): Delete.
13228 (current_top_target): Return the current inferior's top target.
13229 (target_has_execution_1): Refer to the passed-in inferior's top
13230 target.
13231 (target_supports_terminal_ours): Check whether the initial
13232 inferior was already created.
13233 (decref_target): New.
13234 (target_stack::push): Incref/decref the target.
13235 (push_target, push_target, unpush_target): Adjust.
13236 (target_stack::unpush): Defref target.
13237 (target_is_pushed): Return bool. Adjust to refer to the current
13238 inferior's target stack.
13239 (dispose_inferior): Delete, and inline parts ...
13240 (target_preopen): ... here. Only dispose of the current inferior.
13241 (target_detach): Hold strong target reference while detaching.
13242 Pass target down.
13243 (target_thread_name): Add assertion.
13244 (target_resume): Pass down target.
13245 (target_ops::beneath, find_target_at): Adjust to refer to the
13246 current inferior's target stack.
13247 (get_dummy_target): New.
13248 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13249 has a thread running.
13250 (initialize_targets): Rename to ...
13251 (_initialize_target): ... this.
13252 * target.h: Include "gdbsupport/refcounted-object.h".
13253 (struct target_ops): Inherit refcounted_object.
13254 (target_ops::shortname, target_ops::longname): Make const.
13255 (target_ops::async_wait_fd): New method.
13256 (decref_target): Declare.
13257 (struct target_ops_ref_policy): New.
13258 (target_ops_ref): New typedef.
13259 (get_dummy_target): Declare function.
13260 (target_is_pushed): Return bool.
13261 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13262 (all_matching_threads_iterator::all_matching_threads_iterator):
13263 Handle filter target.
13264 * thread-iter.h (struct all_matching_threads_iterator, struct
13265 all_matching_threads_range, class all_non_exited_threads_range):
13266 Filter by target too. Remove explicit.
13267 * thread.c (threads_executing): Delete.
13268 (inferior_thread): Pass down current inferior.
13269 (clear_thread_inferior_resources): Pass down thread pointer
13270 instead of ptid_t.
13271 (add_thread_silent, add_thread_with_info, add_thread): Add
13272 process_stratum_target parameter. Use it for thread and inferior
13273 searches.
13274 (is_current_thread): New.
13275 (thread_info::deletable): Use it.
13276 (find_thread_ptid, thread_count, in_thread_list)
13277 (thread_change_ptid, set_resumed, set_running): New
13278 process_stratum_target parameter. Pass it down.
13279 (set_executing): New process_stratum_target parameter. Pass it
13280 down. Adjust reference to 'threads_executing'.
13281 (threads_are_executing): New process_stratum_target parameter.
13282 Adjust reference to 'threads_executing'.
13283 (set_stop_requested, finish_thread_state): New
13284 process_stratum_target parameter. Pass it down.
13285 (switch_to_thread): Also match inferior.
13286 (switch_to_thread): New process_stratum_target parameter. Pass it
13287 down.
13288 (update_threads_executing): Reimplement.
13289 * top.c (quit_force): Pop targets from all inferior.
13290 (gdb_init): Don't call initialize_targets.
13291 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13292 Declare.
13293 (windows_add_thread, windows_delete_thread): Adjust.
13294 (get_windows_debug_event): Rename to ...
13295 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13296 * tracefile-tfile.c (tfile_target_open): Pass down target.
13297 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13298 Forward declare.
13299 (switch_to_thread): Add process_stratum_target parameter.
13300 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13301 parameter. Use it.
13302 (mi_on_resume): Pass target down.
13303 * nat/fork-inferior.c (startup_inferior): Add
13304 process_stratum_target parameter. Pass it down.
13305 * nat/fork-inferior.h (startup_inferior): Add
13306 process_stratum_target parameter.
13307 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13308
13309 2020-01-10 Pedro Alves <palves@redhat.com>
13310
13311 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13312 directly. Instead find the first thread in the thread list and
13313 use switch_to_thread.
13314
13315 2020-01-10 Pedro Alves <palves@redhat.com>
13316
13317 * remote.c (remote_target::remote_add_inferior): Don't bind a
13318 process to the current inferior if the current inferior is already
13319 bound to a process.
13320
13321 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13322 Pedro Alves <palves@redhat.com>
13323
13324 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13325 If no process is specified, return null_ptid instead of
13326 inferior_ptid.
13327 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13328 TARGET_WAITKIND_SIGNALLED with no pid.
13329
13330 2020-01-10 Pedro Alves <palves@redhat.com>
13331
13332 * remote.c (first_remote_resumed_thread): New.
13333 (remote_target::wait_as): Use it as default event_ptid instead of
13334 inferior_ptid.
13335
13336 2020-01-10 Pedro Alves <palves@redhat.com>
13337
13338 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13339
13340 2020-01-10 Pedro Alves <palves@redhat.com>
13341
13342 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13343 not -1.
13344
13345 2020-01-10 Pedro Alves <palves@redhat.com>
13346
13347 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13348 ptid to get_last_target_status.
13349 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13350 ptid to get_last_target_status.
13351 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13352 get_last_target_status.
13353 (info_program_command): Don't pass a target_waitstatus to
13354 get_last_target_status.
13355 * infrun.c (init_wait_for_inferior): Use
13356 nullify_last_target_wait_ptid.
13357 (get_last_target_status): Handle nullptr arguments.
13358 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13359 (print_stop_event): Don't pass a ptid to get_last_target_status.
13360 (normal_stop): Don't pass a ptid to get_last_target_status.
13361 * infrun.h (get_last_target_status, set_last_target_status): Move
13362 comments here and update.
13363 (nullify_last_target_wait_ptid): Declare.
13364 * linux-fork.c (fork_load_infrun_state): Remove local extern
13365 declaration of nullify_last_target_wait_ptid.
13366 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13367 to get_last_target_status.
13368
13369 2020-01-10 Pedro Alves <palves@redhat.com>
13370
13371 * gdbthread.h (scoped_restore_current_thread)
13372 <dont_restore, restore, m_dont_restore>: Declare.
13373 * thread.c (thread_alive): Add assertion. Return bool.
13374 (switch_to_thread_if_alive): New.
13375 (prune_threads): Switch inferior/thread.
13376 (print_thread_info_1): Switch thread before calling target methods.
13377 (scoped_restore_current_thread::restore): New, factored out from
13378 ...
13379 (scoped_restore_current_thread::~scoped_restore_current_thread):
13380 ... this.
13381 (scoped_restore_current_thread::scoped_restore_current_thread):
13382 Add assertion.
13383 (thread_apply_all_command, thread_select): Use
13384 switch_to_thread_if_alive.
13385 * infrun.c (proceed, restart_threads, handle_signal_stop)
13386 (switch_back_to_stepped_thread): Switch current thread before
13387 calling target methods.
13388
13389 2020-01-10 Pedro Alves <palves@redhat.com>
13390
13391 * inferior.c (switch_to_inferior_no_thread): New function,
13392 factored out from ...
13393 (inferior_command): ... here.
13394 * inferior.h (switch_to_inferior_no_thread): Declare.
13395 * mi/mi-main.c (run_one_inferior): Use
13396 switch_to_inferior_no_thread.
13397
13398 2020-01-10 Pedro Alves <palves@redhat.com>
13399
13400 * infcmd.c (kill_command): Remove dead code.
13401
13402 2020-01-10 Pedro Alves <palves@redhat.com>
13403
13404 * remote.c (remote_target::mourn_inferior): No longer check
13405 whether the target is running.
13406
13407 2020-01-10 Pedro Alves <palves@redhat.com>
13408
13409 * corelow.c (core_target::has_execution): Change parameter type to
13410 inferior pointer.
13411 * inferior.c (number_of_live_inferiors): Use
13412 inferior::has_execution instead of target_has_execution_1.
13413 * inferior.h (inferior::has_execution): New.
13414 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13415 inferior::has_execution instead of target_has_execution_1.
13416 * process-stratum-target.c
13417 (process_stratum_target::has_execution): Change parameter type to
13418 inferior pointer. Check the inferior's PID instead of
13419 inferior_ptid.
13420 * process-stratum-target.h
13421 (process_stratum_target::has_execution): Change parameter type to
13422 inferior pointer.
13423 * record-full.c (record_full_core_target::has_execution): Change
13424 parameter type to inferior pointer.
13425 * target.c (target_has_execution_1): Change parameter type to
13426 inferior pointer.
13427 (target_has_execution_current): Adjust.
13428 * target.h (target_ops::has_execution): Change parameter type to
13429 inferior pointer.
13430 (target_has_execution_1): Change parameter type to inferior
13431 pointer. Change return type to bool.
13432 * tracefile.h (tracefile_target::has_execution): Change parameter
13433 type to inferior pointer.
13434
13435 2020-01-10 Pedro Alves <palves@redhat.com>
13436
13437 * exceptions.c (print_flush): Remove current_top_target() check.
13438
13439 2020-01-10 Pedro Alves <palves@redhat.com>
13440
13441 * remote.c (show_remote_exec_file): Show the current inferior's
13442 exec-file instead of the command variable's value.
13443
13444 2020-01-10 Pedro Alves <palves@redhat.com>
13445
13446 * record-full.c (record_full_resume_ptid): New global.
13447 (record_full_target::resume): Set it.
13448 (record_full_wait_1): Use record_full_resume_ptid instead of
13449 inferior_ptid.
13450
13451 2020-01-10 Pedro Alves <palves@redhat.com>
13452
13453 * gdbthread.h (scoped_restore_current_thread)
13454 <dont_restore, restore, m_dont_restore>: Declare.
13455 * thread.c (thread_alive): Add assertion. Return bool.
13456 (switch_to_thread_if_alive): New.
13457 (prune_threads): Switch inferior/thread.
13458 (print_thread_info_1): Switch thread before calling target methods.
13459 (scoped_restore_current_thread::restore): New, factored out from
13460 ...
13461 (scoped_restore_current_thread::~scoped_restore_current_thread):
13462 ... this.
13463 (scoped_restore_current_thread::scoped_restore_current_thread):
13464 Add assertion.
13465 (thread_apply_all_command, thread_select): Use
13466 switch_to_thread_if_alive.
13467
13468 2020-01-10 George Barrett <bob@bob131.so>
13469
13470 * stap-probe.c (stap_modify_semaphore): Don't check for null
13471 semaphores.
13472 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13473 for null semaphores.
13474
13475 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13476
13477 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13478 all source windows, and maintain horizontal scroll status while
13479 doing so.
13480
13481 2020-01-09 Tom Tromey <tom@tromey.com>
13482
13483 PR tui/18932:
13484 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13485 update_source_window, not print_source_lines.
13486
13487 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13488
13489 * tui/tui.c (tui_enable): Register tui hooks after calling
13490 tui_display_main.
13491
13492 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13493
13494 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13495
13496 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13497
13498 * thread.c (print_thread_info_1): Fix indentation.
13499
13500 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13501
13502 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13503 unique_xmalloc_ptr outside the if to always free the demangled name.
13504
13505 2020-01-08 Tom Tromey <tromey@adacore.com>
13506
13507 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13508 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13509 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13510 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13511 Remove.
13512 (section_offsets): New typedef.
13513 * symtab.c (fixup_section, get_msymbol_address): Update.
13514 * symmisc.c (dump_msymbols): Update.
13515 * symfile.h (relative_addr_info_to_section_offsets)
13516 (symfile_map_offsets_to_segments): Update.
13517 * symfile.c (build_section_addr_info_from_objfile)
13518 (init_objfile_sect_indices): Update.
13519 (struct place_section_arg): Change type of "offsets".
13520 (place_section): Update.
13521 (relative_addr_info_to_section_offsets): Change type of
13522 "section_offsets". Remove "num_sections" parameter.
13523 (default_symfile_offsets, syms_from_objfile_1)
13524 (set_objfile_default_section_offset): Update.
13525 (reread_symbols): No need to preserve section offsets by hand.
13526 (symfile_map_offsets_to_segments): Change type of "offsets".
13527 * stap-probe.c (relocate_address): Update.
13528 * stabsread.h (process_one_symbol): Update.
13529 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13530 (solib_target_relocate_section_addresses): Update.
13531 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13532 Update.
13533 * solib-frv.c (frv_relocate_main_executable): Update.
13534 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13535 * solib-aix.c (solib_aix_get_section_offsets): Change return
13536 type.
13537 (solib_aix_solib_create_inferior_hook): Update.
13538 * remote.c (remote_target::get_offsets): Update.
13539 * psymtab.c (find_pc_sect_psymtab): Update.
13540 * psympriv.h (struct partial_symbol) <address, text_low,
13541 text_high>: Update.
13542 * objfiles.h (obj_section_offset): Update.
13543 (struct objfile) <section_offsets>: Change type.
13544 <num_sections>: Remove.
13545 (objfile_relocate): Update.
13546 * objfiles.c (entry_point_address_query): Update
13547 (relocate_one_symbol): Change type of "section_offsets".
13548 (objfile_relocate1, objfile_relocate1): Change type of
13549 "new_offsets".
13550 (objfile_rebase1): Update.
13551 * mipsread.c (mipscoff_symfile_read): Update.
13552 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13553 parameter.
13554 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13555 (parse_external, psymtab_to_symtab_1): Update.
13556 * machoread.c (macho_symfile_offsets): Update.
13557 * ia64-tdep.c (ia64_find_unwind_table): Update.
13558 * hppa-tdep.c (read_unwind_info): Update.
13559 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13560 * dwarf2read.c (create_addrmap_from_index)
13561 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13562 (process_psymtab_comp_unit_reader, add_partial_symbol)
13563 (add_partial_subprogram, process_full_comp_unit)
13564 (read_file_scope, read_func_scope, read_lexical_block_scope)
13565 (read_call_site_scope, dwarf2_rnglists_process)
13566 (dwarf2_ranges_process, dwarf2_ranges_read)
13567 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13568 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13569 Update.
13570 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13571 Update.
13572 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13573 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13574 (process_one_symbol): Change type of "section_offsets".
13575 * ctfread.c (get_objfile_text_range): Update.
13576 * coffread.c (coff_symtab_read, enter_linenos)
13577 (process_coff_symbol): Update.
13578 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13579 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13580
13581 2020-01-08 Tom Tromey <tromey@adacore.com>
13582
13583 * dwarf2read.c (parse_macro_definition): Use std::string.
13584 (parse_macro_definition): Likewise.
13585
13586 2020-01-08 Tom Tromey <tromey@adacore.com>
13587
13588 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13589 (ATTR_ALLOC_CHUNK): Remove.
13590
13591 2020-01-08 Tom Tromey <tromey@adacore.com>
13592
13593 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13594
13595 2020-01-08 Tom Tromey <tromey@adacore.com>
13596
13597 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13598 (dwarf2_compute_name, open_dwo_file): Likewise.
13599 (process_enumeration_scope): Use std::vector.
13600 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13601 (partial_die_info::fixup, dwarf2_start_subfile)
13602 (guess_full_die_structure_name, dwarf2_name): Likewise.
13603 (determine_prefix): Update.
13604 (guess_full_die_structure_name): Make return type const.
13605 (partial_die_full_name): Return unique_xmalloc_ptr.
13606 (DW_FIELD_ALLOC_CHUNK): Remove.
13607
13608 2020-01-07 Tom Tromey <tromey@adacore.com>
13609
13610 PR build/24937:
13611 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13612
13613 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13614
13615 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13616
13617 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13618
13619 * stack.c (print_frame_info): Move disassemble_next_line code
13620 inside source_print block.
13621
13622 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13623
13624 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13625 gdb/signals.h, as we are now using native signal symbols.
13626
13627 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13628
13629 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13630 overflow by an early check of content vs threshold.
13631 * tui/tui-source.c (tui_source_window::line_is_displayed):
13632 Likewise.
13633
13634 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13635
13636 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13637
13638 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13639
13640 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13641 export table if no section contains it's RVA.
13642
13643 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13644
13645 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13646
13647 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13648
13649 * source.c (print_source_lines_base): Set last_line_listed.
13650
13651 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13652
13653 * tui/tui-disasm.c: Remove trailing spaces.
13654
13655 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13656 Pedro Alves <palves@redhat.com>
13657
13658 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13659 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13660 (windows_gdb_signal_to_target): New function, uses the above
13661 enumeration to convert GDB internal signal codes to equivalent
13662 Windows codes.
13663 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13664 * windows-nat.c: Include "gdb_wait.h".
13665 (get_windows_debug_event): Extract the fatal exception from the
13666 exit status and convert to the equivalent Posix signal number.
13667 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13668 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13669 * gdbsupport/gdb_wait.c: New file, implements
13670 windows_status_to_termsig.
13671 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13672 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13673
13674 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13675
13676 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13677 show_layout.
13678
13679 2020-01-05 Luis Machado <luis.machado@linaro.org>
13680
13681 * aarch64-linux-nat.c
13682 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13683 and bfd_mach_aarch64.
13684
13685 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13686
13687 * ui-file.c (stdio_file::can_emit_style_escape)
13688 (tee_file::can_emit_style_escape): Ensure style is used also on
13689 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13690 to gdb_stdout.
13691 * main.c (set_gdb_data_directory): Use file style to output the
13692 warning that the given pathname is not a directory.
13693 * top.c (show_history_filename, gdb_safe_append_history)
13694 (show_gdb_datadir): Use file style.
13695
13696 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13697
13698 * solib-target.c (struct lm_info_target):
13699 Change offsets to be a unique_xmalloc_ptr.
13700 (solib_target_relocate_section_addresses): Update.
13701
13702 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13703
13704 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13705
13706 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13707
13708 * MAINTAINERS (Write After Approval): Add myself.
13709
13710 2020-01-02 Luis Machado <luis.machado@linaro.org>
13711
13712 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13713 Cell BE architecture.
13714 * target.h (struct target_ops) <thread_architecture>: Likewise.
13715
13716 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13717
13718 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13719
13720 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13721
13722 * MAINTAINERS (Write After Approval): Add myself.
13723
13724 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13725
13726 * gdbarch.sh: Update copyright year range of generated files.
13727
13728 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13729
13730 Update copyright year range in all GDB files.
13731
13732 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13733
13734 * copyright.py: Convert to Python 3.
13735
13736 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13737
13738 * copyright.py: Adapt after move of gnulib directory from gdb
13739 directory to toplevel directory.
13740
13741 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13742
13743 * copyright.py (main): Exit if run from the wrong directory.
13744
13745 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13746
13747 * top.c (print_gdb_version): Change copyright year to 2020.
13748
13749 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13750
13751 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13752
13753 For older changes see ChangeLog-2019.
13754 \f
13755 Local Variables:
13756 mode: change-log
13757 left-margin: 8
13758 fill-column: 74
13759 version-control: never
13760 coding: utf-8
13761 End: