]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
elf/x86-64: Adjust relocation for PE/x86-64 inputs
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * ada-lang.c (ada_language_data): Delete.
4 (ada_language): Remove references to ada_language_data.
5 * c-lang.c (c_language_data): Delete.
6 (c_language): Remove references to c_language_data.
7 (cplus_language_data): Delete.
8 (cplus_language): Remove references to cplus_language_data.
9 (asm_language_data): Delete.
10 (asm_language): Remove references to asm_language_data.
11 (minimal_language_data): Delete.
12 (minimal_language): Remove references to minimal_language_data.
13 * d-lang.c (d_language_data): Delete.
14 (d_language): Remove references to d_language_data.
15 * f-lang.c (f_language_data): Delete.
16 (f_language): Remove references to f_language_data.
17 * go-lang.c (go_language_data): Delete.
18 (go_language): Remove references to go_language_data.
19 * language.c (unknown_language_data): Delete.
20 (unknown_language): Remove references to unknown_language_data.
21 (auto_language_data): Delete.
22 (auto_language): Remove references to auto_language_data.
23 * language.h (language_data): Delete struct.
24 (language_defn): No longer inherit from language_data.
25 * m2-lang.c (m2_language_data): Delete.
26 (m2_language): Remove references to m2_language_data.
27 * objc-lang.c (objc_language_data): Delete.
28 (objc_language): Remove references to objc_language_data.
29 * opencl-lang.c (opencl_language_data): Delete.
30 (opencl_language): Remove references to opencl_language_data.
31 * p-lang.c (pascal_language_data): Delete.
32 (pascal_language): Remove references to pascal_language_data.
33 * rust-lang.c (rust_language_data): Delete.
34 (rust_language): Remove references to rust_language_data.
35
36 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
37
38 * ada-lang.c (ada_language_data): Remove la_op_print_tab
39 initializer.
40 (ada_language::opcode_print_table): New member function.
41 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
42 (c_language::opcode_print_table): New member function.
43 (cplus_language_data): Remove la_op_print_tab initializer.
44 (cplus_language::opcode_print_table): New member function.
45 (asm_language_data): Remove la_op_print_tab initializer.
46 (asm_language::opcode_print_table): New member function.
47 (minimal_language_data): Remove la_op_print_tab initializer.
48 (minimal_language::opcode_print_table): New member function.
49 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
50 (d_language::opcode_print_table): New member function.
51 * expprint.c (print_subexp_standard): Update call to
52 opcode_print_table.
53 (op_string): Likewise.
54 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
55 (f_language::opcode_print_table): New member function.
56 * go-lang.c (go_language_data): Remove la_op_print_tab
57 initializer.
58 (go_language::opcode_print_table): New member function.
59 * language.c (unknown_language_data): Remove la_op_print_tab
60 initializer.
61 (unknown_language::opcode_print_table): New member function.
62 (auto_language_data): Remove la_op_print_tab initializer.
63 (auto_language::opcode_print_table): New member function.
64 * language.h (language_data): Remove la_op_print_tab field.
65 (language_defn::opcode_print_table): Declare new member function.
66 * m2-lang.c (m2_language_data): Remove la_op_print_tab
67 initializer.
68 (m2_language::opcode_print_table): New member function.
69 * objc-lang.c (objc_language_data): Remove la_op_print_tab
70 initializer.
71 (objc_language::opcode_print_table): New member function.
72 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
73 initializer.
74 (opencl_language::opcode_print_table): New member function.
75 * p-lang.c (pascal_language_data): Remove la_op_print_tab
76 initializer.
77 (pascal_language::opcode_print_table): New member function.
78 * rust-lang.c (rust_language_data): Remove la_op_print_tab
79 initializer.
80 (rust_language::opcode_print_table): New member function.
81
82 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
85 (ada_language::expression_ops): New member function.
86 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
87 (c_language::expression_ops): New member function.
88 (cplus_language_data): Remove la_exp_desc initializer.
89 (cplus_language::expression_ops): New member function.
90 (asm_language_data): Remove la_exp_desc initializer.
91 (asm_language::expression_ops): New member function.
92 (minimal_language_data): Remove la_exp_desc initializer.
93 (minimal_language::expression_ops): New member function.
94 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
95 (d_language::expression_ops): New member function.
96 * eval.c (evaluate_subexp): Update call to expression_ops.
97 * expprint.c (print_subexp): Likewise.
98 (op_name): Likewise.
99 (dump_subexp_body): Likewise.
100 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
101 (f_language::expression_ops): New member function.
102 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
103 (go_language::expression_ops): New member function.
104 * language.c (language_defn::expression_ops): New function.
105 (unknown_language_data): Remove la_exp_desc initializer.
106 (auto_language_data): Likewise.
107 * language.h (language_data): Remove la_exp_desc field.
108 (language_defn::expression_ops): Declare new member function.
109 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
110 (m2_language::expression_ops): New member function.
111 * objc-lang.c (objc_language_data): Remove la_exp_desc
112 initializer.
113 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
114 initializer.
115 (opencl_language::expression_ops): New member function.
116 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
117 * parse.c (operator_length): Update call to expression_ops.
118 (exp_iterate): Likewise.
119 * rust-lang.c (rust_language_data): Remove la_exp_desc
120 initializer.
121 (ruse_language::expression_ops): New member function.
122
123 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * ada-lang.c (ada_language_data): Remove la_varobj_ops
126 initializer.
127 (ada_language::varobj_ops): New member function.
128 * c-lang.c (c_language_data): Remove la_varobj_ops
129 initializer.
130 (cplus_language_data): Likewise.
131 (cplus_language::varobj_ops): New member function.
132 (asm_language_data): Remove la_varobj_ops initializer.
133 (minimal_language_data): Likewise.
134 * d-lang.c (d_language_data): Likewise.
135 * f-lang.c (f_language_data): Likewise.
136 * go-lang.c (go_language_data): Likewise.
137 * language.c (language_defn::varobj_ops): New function.
138 (unknown_language_data): Remove la_varobj_ops
139 initializer.
140 (auto_language_data): Likewise.
141 * language.h (language_data): Remove la_varobj_ops field.
142 (language_defn::varobj_ops): Declare new member function.
143 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
144 * objc-lang.c (objc_language_data): Likewise.
145 * opencl-lang.c (opencl_language_data): Likewise.
146 * p-lang.c (pascal_language_data): Likewise.
147 * rust-lang.c (rust_language_data): Likewise.
148 * varobj.c (varobj_create): Update call to varobj_ops.
149 * varobj.h (default_varobj_ops): Delete define.
150
151 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * ada-lang.c (ada_language_data): Remove la_macro_expansion
154 initializer.
155 * c-lang.c (c_language_data): Likewise.
156 (c_language::macro_expansion): New member function.
157 (cplus_language_data): Likewise.
158 (cplus_language::macro_expansion): New member function.
159 (asm_language_data): Likewise.
160 (asm_language::macro_expansion): New member function.
161 (minimal_language_data): Likewise.
162 (minimal_language::macro_expansion): New member function.
163 * d-lang.c (d_language_data): Remove la_macro_expansion
164 initializer.
165 * f-lang.c (f_language_data): Likewise.
166 * go-lang.c (go_language_data): Likewise.
167 * language.c (unknown_language_data): Likewise.
168 (auto_language_data): Likewise.
169 * language.h (language_data): Remove la_macro_expansion field.
170 (language_defn::macro_expansion): New member function.
171 * m2-lang.c (m2_language_data): Remove la_macro_expansion
172 initializer.
173 * objc-lang.c (objc_language_data): Likewise.
174 (objc_language::macro_expansion): New member function.
175 * opencl-lang.c (opencl_language_data): Likewise.
176 (opencl_language::macro_expansion): New member function.
177 * p-lang.c (pascal_language_data): Remove la_macro_expansion
178 initializer.
179 * rust-lang.c (rust_language_data): Likewise.
180 * symtab.c (default_collect_symbol_completion_matches_break_on):
181 Update call to macro_expansion.
182
183 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
184
185 * ada-lang.c (ada_language_data): Remove la_array_ordering
186 initializer.
187 * c-lang.c (c_language_data): Likewise.
188 (cplus_language_data): Likewise.
189 (asm_language_data): Likewise.
190 (minimal_language_data): Likewise.
191 * d-lang.c (d_language_data): Likewise.
192 * dwarf2/read.c (read_array_order): Update for call to
193 array_ordering.
194 * f-lang.c (f_language_data): Remove la_array_ordering
195 initializer.
196 (f_language::array_ordering): New member function.
197 * go-lang.c (go_language_data): Remove la_array_ordering
198 initializer.
199 * language.c (unknown_language_data): Likewise.
200 (auto_language_data): Likewise.
201 * language.h (language_data): Delete la_array_ordering field.
202 (language_defn::array_ordering): New member function.
203 * m2-lang.c (m2_language_data): Remove la_array_ordering
204 initializer.
205 * objc-lang.c (objc_language_data): Likewise.
206 * opencl-lang.c (opencl_language_data): Likewise.
207 * p-lang.c (pascal_language_data): Likewise.
208 * rust-lang.c (rust_language_data): Likewise.
209
210 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
211
212 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
213 initializer.
214 * c-lang.c (c_language_data): Likewise.
215 (cplus_language_data): Likewise.
216 (asm_language_data): Likewise.
217 (minimal_language_data): Likewise.
218 * d-lang.c (d_language_data): Likewise.
219 * f-lang.c (f_language_data): Likewise.
220 (f_language::case_sensitivity): New member function.
221 * go-lang.c (go_language_data): Remove la_case_sensitivity
222 initializer.
223 * language.c (enum case_mode): Moved here from language.h.
224 (case_mode): Make static.
225 (show_case_command): Update for case_sensitivity being a method.
226 (set_case_command): Likewise.
227 (set_range_case): Likewise.
228 (unknown_language_data): Remove la_case_sensitivity initializer.
229 (auto_language_data): Likewise.
230 * language.h (case_mode): Delete, move enum declaration to
231 language.c.
232 (language_data): Delete la_case_sensitivity field.
233 (language_defn::case_sensitivity): New member function.
234 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
235 initializer.
236 * objc-lang.c (objc_language_data): Likewise.
237 * opencl-lang.c (opencl_language_data): Likewise.
238 * p-lang.c (pascal_language_data): Likewise.
239 * rust-lang.c (rust_language_data): Likewise.
240
241 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
242
243 * ada-lang.c (ada_language_data): Remove la_range_check
244 initializer.
245 * c-lang.c (c_language_data): Likewise.
246 (cplus_language_data): Likewise.
247 (asm_language_data): Likewise.
248 (minimal_language_data): Likewise.
249 * d-lang.c (d_language_data): Likewise.
250 * f-lang.c (f_language_data): Likewise.
251 (f_language::range_checking_on_by_default): New member function.
252 * go-lang.c (go_language_data): Remove la_range_check initializer.
253 * language.c (enum range_mode): Moved here from language.h.
254 (range_mode): Made static.
255 (show_range_command): Update to use
256 range_checking_on_by_default.
257 (set_range_command): Likewise.
258 (set_range_case): Likewise.
259 (unknown_language_data): Remove la_range_check initializer.
260 (auto_language_data): Likewise.
261 * language.h (range_mode): Delete. Enum definition moved to
262 language.c.
263 (language_data): Remove la_range_check field.
264 (language_defn::range_checking_on_by_default): New member
265 function.
266 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
267 (m2_language::range_checking_on_by_default): New member function.
268 * objc-lang.c (objc_language_data): Remove la_range_check
269 initializer.
270 * opencl-lang.c (opencl_language_data): Likewise.
271 * p-lang.c (pascal_language_data): Likewise.
272 (pascal_language::range_checking_on_by_default): New member
273 function.
274 * rust-lang.c (rust_language_data): Remove la_range_check
275 initializer.
276 (rust_language::range_checking_on_by_default): New member
277 function.
278
279 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
280
281 * dwarf2/read.c (dwarf2_physname): Remove special case for
282 language_go.
283 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
284 member function.
285
286 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
287
288 * ada-lang.c (ada_language_data): Remove
289 la_store_sym_names_in_linkage_form_p initializer.
290 (ada_language::store_sym_names_in_linkage_form_p): New member
291 function.
292 * c-lang.c (c_language_data): Remove
293 la_store_sym_names_in_linkage_form_p initializer.
294 (c_language::store_sym_names_in_linkage_form_p): New member
295 function.
296 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
297 initializer.
298 (asm_language_data): Likewise.
299 (asm_language::store_sym_names_in_linkage_form_p): New member
300 function.
301 (minimal_language_data): Remove
302 la_store_sym_names_in_linkage_form_p initializer.
303 (minimal_language::store_sym_names_in_linkage_form_p): New member
304 function.
305 * d-lang.c (d_language_data): Remove
306 la_store_sym_names_in_linkage_form_p initializer.
307 * dwarf2/read.c (dwarf2_physname): Update call to
308 store_sym_names_in_linkage_form_p.
309 * f-lang.c (f_language_data): Remove
310 la_store_sym_names_in_linkage_form_p initializer.
311 * go-lang.c (go_language_data): Remove
312 la_store_sym_names_in_linkage_form_p initializer.
313 * language.c (unknown_language_data): Remove
314 la_store_sym_names_in_linkage_form_p initializer.
315 (unknown_language::store_sym_names_in_linkage_form_p): New member
316 function.
317 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
318 initializer.
319 (auto_language::store_sym_names_in_linkage_form_p): New member
320 function.
321 * language.h (language_data): Remove
322 la_store_sym_names_in_linkage_form_p member variable.
323 (language_defn::store_sym_names_in_linkage_form_p): New member
324 function.
325 * m2-lang.c (m2_language_data): Remove
326 la_store_sym_names_in_linkage_form_p initializer.
327 * objc-lang.c (objc_language_data): Likewise.
328 * opencl-lang.c (opencl_language_data): Likewise.
329 * p-lang.c (pascal_language_data): Likewise.
330 * rust-lang.c (rust_language_data): Likewise.
331
332 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * ada-lang.c (ada_language_data): Remove string_lower_bound
335 initializer.
336 * c-lang.c (c_language_data): Likewise.
337 (cplus_language_data): Likewise.
338 (asm_language_data): Likewise.
339 (minimal_language_data): Likewise.
340 * d-lang.c (d_language_data): Likewise.
341 * f-lang.c (f_language_data): Likewise.
342 * go-lang.c (go_language_data): Likewise.
343 * language.c (unknown_language_data): Likewise.
344 (auto_language_data): Likewise.
345 * language.h (language_data): Remove string_lower_bound field.
346 (language_defn::string_lower_bound): New member function.
347 * m2-lang.c (m2_language_data): Remove string_lower_bound
348 initializer.
349 (m2_language::string_lower_bound): New member function.
350 * objc-lang.c (objc_language_data): Remove string_lower_bound
351 initializer.
352 * opencl-lang.c (opencl_language_data): Likewise.
353 * p-lang.c (pascal_language_data): Likewise.
354 * rust-lang.c (rust_language_data): Likewise.
355 * valops.c (value_cstring): Update call to string_lower_bound.
356 (value_string): Likewise.
357 * value.c (allocate_repeated_value): Likewise.
358
359 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
360
361 * valops.c (value_repeat): Fix incorrect argument name in comment.
362
363 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
364
365 * ada-lang.c (ada_language_data): Remove c_style_arrays
366 initializer.
367 (ada_language::c_style_arrays_p): New member fuction.
368 * c-lang.c (c_language_data): Remove c_style_arrays
369 initializer.
370 (cplus_language_data): Likewise.
371 (asm_language_data): Likewise.
372 (minimal_language_data): Likewise.
373 * d-lang.c (d_language_data): Likewise.
374 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
375 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
376 (f_language::c_style_arrays_p): New member function.
377 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
378 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
379 * language.c (unknown_language_data): Remove c_style_arrays
380 initializer.
381 (auto_language_data): Likewise.
382 * language.h (language_data): Remove c_style_arrays field.
383 (language_defn::c_style_arrays_p): New member function.
384 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
385 (m2_language::c_style_arrays_p): New member function.
386 * objc-lang.c (objc_language_data): Remove c_style_arrays
387 initializer.
388 * opencl-lang.c (opencl_language_data): Likewise.
389 * p-lang.c (pascal_language_data): Likewise.
390 * rust-lang.c (rust_language_data): Likewise.
391 * valarith.c (value_subscript): Update call to c_style_arrays_p,
392 and update local variable to a bool.
393 * valops.c (value_cast): Update call to c_style_arrays_p.
394 (value_array): Likewise.
395 * value.c (coerce_array): Likewise.
396
397 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
398
399 * ada-lang.c (ada_language_data): Remove la_language initializer.
400 * c-lang.c (c_language_data): Likewise.
401 (cplus_language_data): Likewise.
402 (asm_language_data): Likewise.
403 (minimal_language_data): Likewise.
404 * d-lang.c (d_language_data): Likewise.
405 * f-lang.c (f_language_data): Likewise.
406 * go-lang.c (go_language_data): Likewise.
407 * language.c (unknown_language_data): Likewise.
408 (auto_language_data): Likewise.
409 * language.h (language_data): Remove la_language field.
410 (language_defn::language_defn): Initialise la_language field.
411 (language_defn::la_language): New member variable.
412 * m2-lang.c (m2_language_data): Remove la_language field.
413 * objc-lang.c (objc_language_data): Likewise.
414 * opencl-lang.c (opencl_language_data): Likewise.
415 * p-lang.c (pascal_language_data): Likewise.
416 * rust-lang.c (rust_language_data): Likewise.
417
418 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
419
420 * ada-lang.c (ada_extensions): Delete, moved into
421 ada_language::filename_extensions.
422 (ada_language_data): Remove la_filename_extensions initializer.
423 (ada_language::filename_extensions): New member function.
424 * c-lang.c (c_extensions): Delete, moved into
425 c_language::filename_extensions.
426 (c_language_data): Remove la_filename_extensions initializer.
427 (c_language::filename_extensions): New member function.
428 (cplus_extensions): Delete, moved into
429 cplus_language::filename_extensions.
430 (cplus_language_data): Remove la_filename_extensions initializer.
431 (cplus_language::filename_extensions): New member function.
432 (asm_extensions): Delete, moved into
433 asm_language::filename_extensions.
434 (asm_language_data): Remove la_filename_extensions initializer.
435 (asm_language::filename_extensions): New member function.
436 (minimal_language_data): Remove la_filename_extensions
437 initializer.
438 * d-lang.c (d_extensions): Delete, moved into
439 d_language::filename_extensions.
440 (d_language_data): Remove la_filename_extensions initializer.
441 (d_language::filename_extensions): New member function.
442 * f-lang.c (f_extensions): Delete, moved into
443 f_language::filename_extensions.
444 (f_language_data): Remove la_filename_extensions initializer.
445 (f_language::filename_extensions): New member function.
446 * go-lang.c (go_language_data): Remove la_filename_extensions
447 initializer.
448 * language.c (add_set_language_command): Update now that
449 filename_extensions returns a vector.
450 (unknown_language_data): Remove la_filename_extensions
451 initializer.
452 (auto_language_data): Likewise.
453 * language.h (language_data): Remove la_filename_extensions field.
454 (language_defn::filename_extensions): New member function.
455 * m2-lang.c (m2_language_data): Remove la_filename_extensions
456 initializer.
457 * objc-lang.c (objc_extensions): Delete, moved into
458 objc_language::filename_extensions.
459 (objc_language_data): Remove la_filename_extensions initializer.
460 (objc_language::filename_extensions): New member function.
461 * opencl-lang.c (opencl_language_data): Remove
462 la_filename_extensions initializer.
463 * p-lang.c (pascal_extensions): Delete, moved into
464 pascal_language::filename_extensions.
465 (pascal_language_data): Remove la_filename_extensions initializer.
466 (pascal_language::filename_extensions): New member function.
467 * rust-lang.c (rust_extensions): Delete, moved into
468 rust_language::filename_extensions.
469 (rust_language_data): Remove la_filename_extensions initializer.
470 (rust_language::filename_extensions): New member function.
471 * symfile.c (add_filename_language): Add new assert.
472
473 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
474
475 * ada-lang.c (ada_language_data): Remove la_name and
476 la_natural_name initializers.
477 (ada_language::name): New member function.
478 (ada_language::natural_name): New member function.
479 * c-lang.c (c_language_data): Remove la_name and
480 la_natural_name initializers.
481 (c_language::name): New member function.
482 (c_language::natural_name): New member function.
483 (cplus_language_data): Remove la_name and
484 la_natural_name initializers.
485 (cplus_language::name): New member function.
486 (cplus_language::natural_name): New member function.
487 (asm_language_data): Remove la_name and
488 la_natural_name initializers.
489 (asm_language::name): New member function.
490 (asm_language::natural_name): New member function.
491 (minimal_language_data): Remove la_name and
492 la_natural_name initializers.
493 (minimal_language::name): New member function.
494 (minimal_language::natural_name): New member function.
495 * compile/compile.c (compile_to_object): Update call to
496 lanugage_defn::name.
497 * d-lang.c (d_language_data): Remove la_name and
498 la_natural_name initializers.
499 (d_language::name): New member function.
500 (d_language::natural_name): New member function.
501 * expprint.c (print_subexp_standard): Update call to
502 language_defn::name.
503 (dump_raw_expression): Likewise
504 (dump_prefix_expression): Likewise.
505 * f-lang.c (f_language_data): Remove la_name and
506 la_natural_name initializers.
507 (f_language::name): New member function.
508 (f_language::natural_name): New member function.
509 * go-lang.c (go_language_data): Remove la_name and
510 la_natural_name initializers.
511 (go_language::name): New member function.
512 (go_language::natural_name): New member function.
513 * language.c (show_language_command): Update call to
514 language_defn::name.
515 (set_language_command): Likewise.
516 (language_enum): Likewise.
517 (language_str): Likewise.
518 (add_set_language_command): Likewise, use
519 language_defn::natural_name in the doc string.
520 (unknown_language_data): Remove la_name and
521 la_natural_name initializers.
522 (unknown_language::name): New member function.
523 (unknown_language::natural_name): New member function.
524 (auto_language_data): Remove la_name and
525 la_natural_name initializers.
526 (auto_language::name): New member function.
527 (auto_language::natural_name): New member function.
528 (language_lookup_primitive_type_as_symbol): Update call to
529 language_defn::name.
530 * language.h (language_data): Remove la_name and la_natural_name
531 member variables.
532 (language_defn::name): New member function.
533 (language_defn::natural_name): New member function.
534 * m2-lang.c (m2_language_data): Remove la_name and
535 la_natural_name initializers.
536 (m2_language::name): New member function.
537 (m2_language::natural_name): New member function.
538 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
539 language_defn::natural_name.
540 * objc-lang.c (objc_language_data): Remove la_name and
541 la_natural_name initializers.
542 (objc_language::name): New member function.
543 (objc_language::natural_name): New member function.
544 * opencl-lang.c (opencl_language_data): Remove la_name and
545 la_natural_name initializers.
546 (opencl_language::name): New member function.
547 (opencl_language::natural_name): New member function.
548 * p-lang.c (pascal_language_data): Remove la_name and
549 la_natural_name initializers.
550 (pascal_language::name): New member function.
551 (pascal_language::natural_name): New member function.
552 * rust-lang.c (rust_language_data): Remove la_name and
553 la_natural_name initializers.
554 (rust_language::name): New member function.
555 (rust_language::natural_name): New member function.
556 * symtab.c (lookup_language_this): Update call to
557 language_defn::name.
558
559 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
560
561 * ada-lang.c (ada_language_data): Remove la_name_of_this
562 initializer.
563 * ax-gdb.c (gen_expr): Update call to name_of_this.
564 * c-exp.y (classify_name): Likewise.
565 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
566 (cplus_language_data): Likewise.
567 (cplus_language::name_of_this): New member function.
568 (asm_language_data): Remove la_name_of_this initializer.
569 (minimal_language_data): Likewise.
570 * d-lang.c (d_language_data): Likewise.
571 (d_language::name_of_this): New member function.
572 * expprint.c (print_subexp_standard): Update call to name_of_this.
573 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
574 * go-lang.c (go_language_data): Likewise.
575 * language.c (unknown_language_data): Likewise.
576 (unknown_language::name_of_this): New member function.
577 (auto_language_data): Remove la_name_of_this initializer.
578 (auto_language::name_of_this): New member function.
579 * language.h (language_data): Delete la_name_of_this member
580 variable.
581 (language_defn::name_of_this): New member function.
582 * m2-lang.c (m2_language_data): Remove la_name_of_this
583 initializer.
584 * objc-lang.c (objc_language_data): Likewise.
585 (objc_language::name_of_this): New member function.
586 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
587 initializer.
588 * p-lang.c (pascal_language_data): Likewise.
589 (pascal_language::name_of_this): New member function.
590 * rust-lang.c (rust_language_data): Remove la_name_of_this
591 initializer.
592 * symtab.c (lookup_language_this): Update call to name_of_this.
593 (lookup_symbol_aux): Likewise.
594 * valops.c (value_of_this): Likewise.
595
596 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
597
598 * ada-lang.c (ada_language_data): Remove
599 la_struct_too_deep_ellipsis initializer.
600 (ada_language::struct_too_deep_ellipsis): New member function.
601 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
602 initializer.
603 (cplus_language_data): Likewise.
604 (asm_language_data): Likewise.
605 (minimal_language_data): Likewise.
606 * cp-valprint.c (cp_print_value): Update call to
607 struct_too_deep_ellipsis.
608 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
609 initializer.
610 * f-lang.c (f_language_data): Likewise.
611 (f_language::struct_too_deep_ellipsis): New member function.
612 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
613 initializer.
614 * language.c (unknown_language_data): Likewise.
615 (auto_language_data): Likewise.
616 * language.h (language_data): Delete la_struct_too_deep_ellipsis
617 member variable.
618 (language_defn::struct_too_deep_ellipsis): New member function.
619 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
620 initializer.Q
621 * objc-lang.c (objc_language_data): Likewise.
622 * opencl-lang.c (opencl_language_data): Likewise.
623 * p-lang.c (pascal_language_data): Likewise.
624 * rust-lang.c (rust_language_data): Likewise.
625 * valprint.c (val_print_check_max_depth): Update call to
626 struct_too_deep_ellipsis.
627
628 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
629
630 * MAINTAINERS (Write After Approval): Add myself.
631
632 2020-09-15 Tom Tromey <tom@tromey.com>
633
634 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
635 Remove.
636
637 2020-09-15 Tom Tromey <tom@tromey.com>
638
639 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
640 and TYPE_CODE_METHODPTR cases.
641 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
642 (c_value_print_inner): Update.
643 * valprint.c (generic_value_print_memberptr): New function, from
644 c_value_print_memberptr.
645 (generic_value_print): Use it. Call cplus_print_method_ptr.
646
647 2020-09-15 Tom Tromey <tromey@adacore.com>
648
649 * python/python-internal.h (PyInt_FromLong): Remove define.
650 * python/py-value.c (convert_value_from_python): Use
651 gdb_py_object_from_longest.
652 * python/py-type.c (typy_get_code): Use
653 gdb_py_object_from_longest.
654 * python/py-symtab.c (salpy_get_line): Use
655 gdb_py_object_from_longest.
656 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
657 gdb_py_object_from_longest.
658 * python/py-record.c (recpy_gap_reason_code): Use
659 gdb_py_object_from_longest.
660 * python/py-record-btrace.c (recpy_bt_insn_size)
661 (recpy_bt_func_level, btpy_list_count): Use
662 gdb_py_object_from_longest.
663 * python/py-infthread.c (gdbpy_create_ptid_object): Use
664 gdb_py_object_from_longest. Fix error handling.
665 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
666 gdb_py_object_from_longest.
667 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
668 gdb_py_object_from_longest.
669 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
670 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
671 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
672
673 2020-09-15 Tom Tromey <tromey@adacore.com>
674
675 * python/python.c (gdbpy_parameter_value): Use
676 gdb_py_object_from_ulongest.
677
678 2020-09-15 Tom Tromey <tromey@adacore.com>
679
680 * python/py-infevents.c (create_register_changed_event_object):
681 Use gdb_py_object_from_longest.
682 * python/py-exitedevent.c (create_exited_event_object): Use
683 gdb_py_object_from_longest.
684
685 2020-09-15 Tom Tromey <tromey@adacore.com>
686
687 * python/python.c (gdbpy_parameter_value): Use
688 gdb_py_object_from_longest.
689 * python/py-type.c (convert_field, typy_range): Use
690 gdb_py_object_from_longest.
691 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
692 gdb_py_object_from_longest.
693 * python/py-lazy-string.c (stpy_get_length): Use
694 gdb_py_object_from_longest.
695 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
696 gdb_py_object_from_longest.
697 * python/py-infevents.c (create_memory_changed_event_object): Use
698 gdb_py_object_from_longest.
699 * python/py-inferior.c (infpy_get_num): Use
700 gdb_py_object_from_longest.
701 (infpy_get_pid): Likewise.
702
703 2020-09-15 Tom Tromey <tromey@adacore.com>
704
705 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
706 defines.
707 * python/py-value.c (valpy_long): Use
708 gdb_py_object_from_ulongest.
709 * python/py-symtab.c (salpy_get_pc): Use
710 gdb_py_object_from_ulongest.
711 (salpy_get_last): Likewise.
712 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
713 gdb_py_object_from_ulongest.
714 * python/py-lazy-string.c (stpy_get_address): Use
715 gdb_py_object_from_ulongest.
716 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
717 * python/py-arch.c (archpy_disassemble): Use
718 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
719 error handling.
720
721 2020-09-15 Tom Tromey <tromey@adacore.com>
722
723 * python/python-internal.h (gdb_py_long_from_longest): Remove
724 defines.
725 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
726 * python/py-type.c (convert_field, typy_get_sizeof): Use
727 gdb_py_object_from_longest.
728 * python/py-record-btrace.c (btpy_list_index): Use
729 gdb_py_object_from_longest.
730
731 2020-09-15 Tom Tromey <tromey@adacore.com>
732
733 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
734 * python/py-record.c (recpy_element_number): Use
735 gdb_py_object_from_longest.
736 (recpy_gap_number): Likewise.
737
738 2020-09-15 Tom Tromey <tromey@adacore.com>
739
740 * top.c (ui::ui): Update.
741 (highest_ui_num): Remove.
742 * top.h (struct ui) <num>: Remove.
743
744 2020-09-15 Tom Tromey <tromey@adacore.com>
745
746 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
747 * ui-style.c (ansi_regex_text): Now array.
748 * rust-exp.y (number_regex_text): Now array.
749 * linespec.c (linespec_quote_characters): Now array.
750 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
751 Now arrays.
752
753 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
754
755 * debuginfod-support.c (debuginfod_client_deleter): New.
756 (debuginfod_client_up): New.
757 (debuginfod_init): Return debuginfod_client_up.
758 (debuginfod_source_query): Adjust.
759 (debuginfod_debuginfo_query): Adjust.
760
761 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
762
763 * debuginfod-support.c (debuginfod_source_query): Use
764 make_unique_xstrdup.
765
766 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
767
768 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
769 with `type::instance_flags`.
770
771 2020-09-14 Michael Mullin <masmullin@gmail.com>
772
773 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
774 Remove baton parameter.
775
776 2020-09-14 Pedro Alves <pedro@palves.net>
777
778 * Makefile.in (SELFTESTS_SRCS): Add
779 unittests/enum-flags-selftests.c.
780 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
781 btrace_function_flags instead of enum btrace_function_flag.
782 * compile/compile-c-types.c (convert_qualified): Use
783 enum_flags::raw.
784 * compile/compile-cplus-symbols.c (convert_one_symbol)
785 (convert_symbol_bmsym):
786 * compile/compile-cplus-types.c (compile_cplus_convert_method)
787 (compile_cplus_convert_struct_or_union_methods)
788 (compile_cplus_instance::convert_qualified_base):
789 * go-exp.y (parse_string_or_char): Add cast to int.
790 * unittests/enum-flags-selftests.c: New file.
791 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
792 type to btrace_thread_flags from btrace_thread_flag.
793 (record_btrace_cancel_resume, record_btrace_step_thread): Change
794 local's type to btrace_thread_flags from btrace_thread_flag. Add
795 cast in DEBUG call.
796
797 2020-09-14 Pedro Alves <pedro@palves.net>
798
799 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
800 * gdbtypes.c (address_space_name_to_int): Rename to ...
801 (address_space_name_to_type_instance_flags): ... this.
802 (address_space_int_to_name): Rename to ...
803 (address_space_type_instance_flags_to_name): ... this.
804 * gdbtypes.h (address_space_name_to_int): Rename to ...
805 (address_space_name_to_type_instance_flags): ... this.
806 (address_space_int_to_name): Rename to ...
807 (address_space_type_instance_flags_to_name): ... this.
808 * type-stack.c (type_stack::insert): Adjust to rename.
809 * type-stack.h (type_stack::insert): Likewise.
810
811 2020-09-14 Pedro Alves <pedro@palves.net>
812 Andrew Burgess <andrew.burgess@embecosm.com>
813
814 * avr-tdep.c (avr_address_class_type_flags): Return
815 type_instance_flags.
816 (avr_address_class_type_flags_to_name): Take a
817 type_instance_flags.
818 (avr_address_class_name_to_type_flags): Return bool and take a
819 type_instance_flags.
820 * d-lang.c (build_d_types): Use type::set_instance_flags.
821 * ft32-tdep.c (ft32_address_class_type_flags): Return
822 type_instance_flags.
823 (ft32_address_class_type_flags_to_name): Take a
824 type_instance_flags.
825 (ft32_address_class_name_to_type_flags): Return bool and take a
826 type_instance_flags.
827 (ft32_gdbarch_init): Use type::set_instance_flags.
828 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
829 * gdbarch.h, gdbarch.c: Regenerate.
830 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
831 (address_class_name_to_type_flags): Use type_instance_flags and
832 bool.
833 * gdbtypes.c (address_space_name_to_int)
834 (address_space_int_to_name, make_qualified_type): Use
835 type_instance_flags.
836 (make_qualified_type): Use type_instance_flags and
837 type::set_instance_flags.
838 (make_type_with_address_space, make_cv_type, make_vector_type)
839 (check_typedef): Use type_instance_flags.
840 (recursive_dump_type): Cast type_instance_flags to unsigned for
841 printing.
842 (copy_type_recursive): Use type::set_instance_flags.
843 (gdbtypes_post_init): Use type::set_instance_flags.
844 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
845 <m_instance_flags>: ... this.
846 <instance_flags, set_instance_flags>: New methods.
847 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
848 (SET_TYPE_INSTANCE_FLAGS): New.
849 (address_space_name_to_int, address_space_int_to_name)
850 (make_type_with_address_space): Pass flags using
851 type_instance_flags instead of int.
852 * stabsread.c (cleanup_undefined_types_noname): Use
853 type::set_instance_flags.
854 * s390-tdep.c (s390_address_class_type_flags): Return
855 type_instance_flags.
856 (s390_address_class_type_flags_to_name): Take a
857 type_instance_flags.
858 (s390_address_class_name_to_type_flags): Return bool and take a
859 type_instance_flags.
860 * type-stack.c (type_stack::follow_types): Use
861 type_instance_flags.
862 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
863
864 2020-09-14 Tom Tromey <tromey@adacore.com>
865
866 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
867 * x86-tdep.c (x86_is_thunk_register_name)
868 (x86_in_indirect_branch_thunk): Update.
869 * sparc64-tdep.c (sparc64_fpu_register_names)
870 (sparc64_cp0_register_names, sparc64_register_names)
871 (sparc64_pseudo_register_names): Now const.
872 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
873 cp0_registers_num>: Now const.
874 * sparc-tdep.c (sparc_core_register_names)
875 (sparc32_fpu_register_names, sparc32_cp0_register_names)
876 (sparc32_pseudo_register_names): Now const.
877 (validate_tdesc_registers): Update.
878 * rust-lang.c (rust_extensions): Now const.
879 * p-lang.c (p_extensions): Now const.
880 * objc-lang.c (objc_extensions): Now const.
881 * nto-tdep.c (nto_thread_state_str): Now const.
882 * moxie-tdep.c (moxie_register_names): Now const.
883 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
884 Now const.
885 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
886 (mips_linux_reg_names): Now const.
887 (mips_gdbarch_init): Update.
888 * microblaze-tdep.c (microblaze_register_names): Now const.
889 * m68k-tdep.c (m68k_register_names): Now const.
890 * m32r-tdep.c (m32r_register_names): Now const.
891 * ia64-tdep.c (ia64_register_names): Now const.
892 * i386-tdep.h (struct gdbarch_tdep) <register_names,
893 ymmh_register_names, ymm16h_regnum, mpx_register_names,
894 k_register_names, zmmh_register_names, xmm_avx512_register_names,
895 ymm_avx512_register_names, pkeys_register_names>: Now const.
896 * i386-tdep.c (i386_register_names, i386_zmm_names)
897 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
898 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
899 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
900 * f-lang.c (f_extensions): Now const.
901 * d-lang.c (d_extensions): Now const.
902 * csky-tdep.c (csky_register_names): Now const.
903 * charset.c (default_charset_names, charset_enum): Now const.
904 (_initialize_charset): Update.
905 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
906 const.
907 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
908 (bsd_uthread_solib_loaded): Update.
909 (bsd_uthread_state): Now const.
910 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
911 (amd64_ymm_avx512_names, amd64_ymmh_names)
912 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
913 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
914 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
915 (amd64_dword_names): Now const.
916 * agent.c (can_use_agent_enum): Now const.
917 * ada-tasks.c (task_states, long_task_states): Now const.
918 * ada-lang.c (known_runtime_file_name_patterns)
919 (known_auxiliary_function_name_patterns, attribute_names)
920 (standard_exc, ada_extensions): Now const.
921
922 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
923
924 * bcache.h (struct bcache) <bcache>: Remove constructor.
925 <m_hash_function, m_compare_function>: Remove.
926 <~bcache>: Make virtual.
927 <compare>: Remove static method, introduce virtual method.
928 <default_hash>: Remove.
929 <hash>: New virtual method.
930 * bcache.c (bcache::expand_hash_table): Update.
931 (bcache::insert): Update.
932 (bcache::hash): New.
933 (bcache::compare): Update comment and parameter names.
934 * gdbtypes.c (types_deeply_equal): Update.
935 * psymtab.h (struct psymbol_bcache): New struct.
936 (class psymtab_storage) <psymtab_storage>: Make default.
937 <psymbol_cache>: Change type to psymbol_bcache.
938 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
939 (psymbol_hash): Change to...
940 (psymbol_bcache::hash): ... this.
941 (psymbol_compare): Change to...
942 (psymbol_bcache::compare): ... this.
943
944 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
945
946 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
947 checking for initial lwp.
948
949 2020-09-14 Tom Tromey <tromey@adacore.com>
950
951 * m68k-tdep.c (m68k_extract_return_value): Use
952 pointer_result_regnum.
953 (m68k_store_return_value): Likewise.
954 (m68k_reg_struct_return_p): Handle vectors and arrays.
955 (m68k_return_value): Handle arrays.
956 (m68k_svr4_return_value): Fix single-element aggregate handling.
957 Handle long double. Adjust for embedded ABI.
958 (m68k_svr4_init_abi): Set pointer_result_regnum.
959 (m68k_embedded_init_abi): New function.
960 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
961 (m68k_osabi_sniffer): New function.
962 (_initialize_m68k_tdep): Register osabi sniffer.
963 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
964 member.
965
966 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
967
968 * xml-support.c (xml_fetch_content_from_file): Replace xfree
969 with gdb::unique_xmalloc_ptr<char>.
970
971 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
972
973 * xml-support.h (xml_fetch_another): Change type to be a
974 function_view.
975 (xml_process_xincludes): Remove baton parameter.
976 (xml_fetch_content_from_file): Change baton parameter to
977 dirname.
978 * xml-support.c (struct xinclude_parsing_data)
979 <xinclude_parsing_data>: Remove baton parameter.
980 <fetcher_baton>: Remove.
981 (xinclude_start_include): Adjust.
982 (xml_process_xincludes): Adjust.
983 (xml_fetch_content_from_file): Replace baton parameter with
984 dirname.
985 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
986 (xml_init_syscalls_info): Use a lambda.
987 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
988 (file_read_description_xml): Use a lambda.
989 (fetch_available_features_from_target): Change baton parameter
990 to target_ops.
991 (target_read_description_xml): Use a lambda.
992 (target_fetch_description_xml): Use a lambda.
993 (string_read_description_xml): Update.
994
995 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
996
997 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
998 uses with type::endianity_is_not_default.
999
1000 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1001
1002 * gdbtypes.h (struct type) <endianity_is_not_default,
1003 set_endianity_is_not_default>: New methods.
1004 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1005 type::endianity_is_not_default, change all write call sites to
1006 use type::set_endianity_is_not_default.
1007
1008 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1009
1010 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1011 uses with type::is_fixed_instance.
1012
1013 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1014
1015 * gdbtypes.h (struct type) <is_fixed_instance,
1016 set_is_fixed_instance>: New methods.
1017 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1018 write call sites to use type::set_is_fixed_instance.
1019
1020 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1021
1022 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1023 uses with type::is_gnu_ifunc.
1024
1025 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1026
1027 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1028 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1029 use type::set_is_gnu_ifunc.
1030
1031 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1032
1033 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1034 uses with type::stub_is_supported.
1035
1036 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1037
1038 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1039 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1040 use type::set_stub_is_supported.
1041
1042 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1043
1044 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1045 uses with type::is_vector.
1046
1047 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1048
1049 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1050 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1051 use type::set_is_vector.
1052
1053 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1054
1055 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1056 uses with type::has_varargs.
1057
1058 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1059
1060 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1061 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1062 use type::set_has_varargs.
1063
1064 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1065
1066 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1067 uses with type::is_prototyped.
1068
1069 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1070
1071 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1072 New methods.
1073 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1074 call sites to use type::set_is_prototyped.
1075
1076 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1077
1078 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1079 uses with type::target_is_stub.
1080
1081 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1082
1083 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1084 New methods.
1085 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1086 sites to use type::set_target_is_stub.
1087
1088 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1089
1090 * gdbtypes.h (TYPE_STUB): Remove, replace all
1091 uses with type::is_stub.
1092
1093 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1094
1095 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1096 (TYPE_STUB): Use type::is_stub, change all write call sites to
1097 use type::set_is_stub.
1098
1099 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1100
1101 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1102 type::has_no_signedness.
1103
1104 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1105
1106 * gdbtypes.h (struct type) <has_no_signedness,
1107 set_has_no_signedness>: New methods.
1108 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1109 call sites to use type::set_has_no_signedness.
1110
1111 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1112
1113 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1114 type::is_unsigned.
1115
1116 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1117
1118 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1119 methods.
1120 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1121 sites to use type::set_is_unsigned.
1122
1123 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1124 Adam Renquinha <arenquinha@cimeq.qc.ca>
1125
1126 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1127 pointer and stack frame offset when unwinding.
1128
1129 2020-09-13 Pedro Alves <pedro@palves.net>
1130
1131 * NEWS: Document "-break-insert --qualified".
1132 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1133
1134 2020-09-13 Pedro Alves <pedro@palves.net>
1135
1136 * linespec.c (classify_mtype, compare_msyms): Delete.
1137 (search_minsyms_for_name): Remove classification logic. Instead
1138 filter out trampoline symbols if we also found an external
1139 function of the same name.
1140
1141 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1142
1143 * NEWS: Create a new section for the next release branch.
1144 Rename the section of the current branch, now that it has
1145 been cut.
1146
1147 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1148
1149 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1150 * version.in: Bump version to 11.0.50.DATE-git.
1151
1152 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1153
1154 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1155
1156 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1157 Felix Willgerodt <Felix.Willgerodt@intel.com>
1158
1159 * gdbarch.sh: Added bfloat16 type.
1160 * gdbarch.c: Regenerated.
1161 * gdbarch.h: Regenerated.
1162 * gdbtypes.c (floatformats_bfloat16): New struct.
1163 (gdbtypes_post_init): Add builtin_bfloat16.
1164 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1165 (floatformats_bfloat16): New struct.
1166 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1167 (i386_ymm_type): Add field "v16_bfloat16"
1168 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1169 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1170 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1171 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1172 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1173 * features/i386/64bit-avx512.c: Regenerated.
1174 * features/i386/64bit-sse.xml: Add bfloat16 type.
1175 * features/i386/64bit-sse.c: Regenerated.
1176
1177 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1178
1179 * i386-tdep.c (i386_zmm_type): Fix field names.
1180 (i386_ymm_type): Fix field names.
1181
1182 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1183
1184 * breakpoint.c: Fix typo in the help message of the
1185 "set breakpoint condition-evaluation" command.
1186
1187 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1188
1189 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1190 * (nbsd_nat_target::pid_to_exec_file)
1191 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1192 (nbsd_nat_target::post_startup_inferior)
1193 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1194 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1195 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1196 * (nbsd_thread_lister): Remove.
1197
1198 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1199
1200 * fork-inferior.c (startup_inferior): Avoid double free.
1201
1202 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1203
1204 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1205 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1206
1207 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1208
1209 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1210 * netbsd-nat.c: Include <sys/ptrace.h>.
1211 * (netbsd_nat::enable_proc_events): Add.
1212
1213 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1214
1215 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1216 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1217 (netbsd_nat::for_each_thread): Add.
1218 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1219 "gdbsupport/common-debug.h".
1220 * (netbsd_nat::netbsd_thread_lister)
1221 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1222 (netbsd_nat::for_each_thread): Add.
1223
1224 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1225
1226 * netbsd-nat.h: Include <unistd.h>.
1227 * (netbsd_nat::pid_to_exec_file): Add.
1228 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1229 * (netbsd_nat::pid_to_exec_file) Add.
1230
1231 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1232
1233 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1234
1235 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1236
1237 * netbsd-nat.h: New file.
1238 * netbsd-nat.c: Likewise.
1239
1240 2020-09-09 Tom Tromey <tromey@adacore.com>
1241
1242 * ada-lang.c (remove_extra_symbols): Do not increment when
1243 removing an element
1244
1245 2020-09-08 Tom Tromey <tromey@adacore.com>
1246
1247 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1248
1249 2020-09-08 Tom Tromey <tromey@adacore.com>
1250
1251 PR win32/25302:
1252 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1253 (gdb_bfd_init_data): New function.
1254 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1255
1256 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1257
1258 * infrun.c (fetch_inferior_event): Use
1259 `switch_to_target_no_thread` to switch the target.
1260
1261 2020-09-06 Tom Tromey <tom@tromey.com>
1262
1263 * symfile.h (dwarf2_free_objfile): Don't declare.
1264
1265 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1266
1267 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1268 to match 16 byte real/complex type generated by Flang compiler.
1269
1270 2020-09-03 Tom de Vries <tdevries@suse.de>
1271
1272 PR breakpoint/26546
1273 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1274 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1275
1276 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1277
1278 * maint.c (index_digits): New function.
1279 (struct maint_print_section_data): Remove.
1280 (print_bfd_section_info): Remove print_data parameter, add arg
1281 and index_digits.
1282 (print_objfile_section_info): Likewise.
1283 (print_bfd_section_info_maybe_relocated): Likewise (plus
1284 objfile).
1285 (maintenance_info_sections): Adjust calls.
1286
1287 2020-09-02 Tom Tromey <tromey@adacore.com>
1288
1289 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1290 for null pointers.
1291 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1292
1293 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1294
1295 * bcache.h (struct bcache) <insert>: Change type of `added` to
1296 pointer to bool.
1297 * bcache.c (bcache::insert): Likewise.
1298 * gdbtypes.c (check_types_worklist): Adjust.
1299 * psymtab.c (add_psymbol_to_bcache): Adjust.
1300
1301 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1302
1303 * corelow.c (unordered_set): Include.
1304 (class core_target): Add field 'm_core_unavailable_mappings'.
1305 (core_target::build_file_mappings): Print only one warning
1306 per inaccessible file. Add unavailable/broken mappings
1307 to m_core_unavailable_mappings.
1308 (core_target::xfer_partial): Call...
1309 (core_target::xfer_memory_via_mappings): New method.
1310
1311 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1312
1313 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1314 type to bool.
1315
1316 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1317
1318 * dwarf2/read.c (struct field_info): Fix indentation.
1319
1320 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1321
1322 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1323 ordering in comment.
1324 * frame.c (frame_id_eq): Fix indentation.
1325
1326 2020-08-31 Scott Linder <scott@scottlinder.com>
1327 Simon Marchi <simon.marchi@efficios.com>
1328
1329 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1330 inline frame ids in outer frame.
1331
1332 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1333
1334 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1335 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1336 (outer_frame_id): Use FID_STACK_OUTER instead of
1337 FID_STACK_INVALID.
1338 (frame_id_p): Don't check for outer_frame_id.
1339
1340 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1341
1342 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1343 regnum/frame in value. Call allocate_value_lazy.
1344 * frame.c (frame_unwind_register_value): Use
1345 val_print_not_saved.
1346
1347 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1348
1349 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1350
1351 2020-08-29 Pedro Alves <pedro@palves.net>
1352
1353 * progspace.c (print_program_space): Use all_inferiors. Switch to
1354 the inferior before calling target_pid_to_str.
1355
1356 2020-08-28 Tom Tromey <tom@tromey.com>
1357
1358 * xcoffread.c (xcoff_end_psymtab): Update comment.
1359 * dbxread.c (dbx_end_psymtab): Update comment.
1360
1361 2020-08-28 Tom de Vries <tdevries@suse.de>
1362
1363 PR breakpoint/26544
1364 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1365 event_location.
1366 (create_breakpoint): Same.
1367 (base_breakpoint_decode_location): Same.
1368 (bkpt_create_sals_from_location): Same.
1369 (bkpt_decode_location): Same.
1370 (bkpt_probe_create_sals_from_location): Same.
1371 (bkpt_probe_decode_location): Same.
1372 (tracepoint_create_sals_from_location): Same.
1373 (tracepoint_decode_location): Same.
1374 (tracepoint_probe_decode_location): Same.
1375 (strace_marker_create_sals_from_location): Same.
1376 (strace_marker_decode_location): Same.
1377 (create_sals_from_location_default): Same.
1378 (decode_location_default): Same.
1379 * breakpoint.h (struct breakpoint_ops): Same.
1380 (create_breakpoint): Same.
1381 * linespec.h (decode_line_full): Same.
1382 * linespec.c (decode_line_full): Same. Throw error if
1383 result.size () == 0.
1384
1385 2020-08-27 Pedro Alves <pedro@palves.net>
1386
1387 PR gdb/26524
1388 * breakpoint.c (until_break_fsm) <location_breakpoint,
1389 caller_breakpoint>: Delete fields.
1390 <breakpoints>: New field.
1391 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1392 two individual breakpoints.
1393 (until_break_fsm::should_stop): Loop over breakpoints in the
1394 breakpoint vector.
1395 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1396 vector.
1397 (until_break_command): Handle location expanding into multiple
1398 sals.
1399
1400 2020-08-27 Pedro Alves <pedro@palves.net>
1401
1402 PR gdb/26523
1403 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1404 bp_until breakpoints user-specified locations. Update intro
1405 comment.
1406
1407 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1408
1409 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1410 gdb_bfd_sections): New.
1411 * maint.c (print_bfd_section_info): Change param type to
1412 maint_print_section_data.
1413 (print_objfile_section_info): Likewise.
1414 (print_bfd_section_info_maybe_relocated): Likewise.
1415 (maintenance_info_sections): Use gdb_bfd_sections.
1416
1417 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1418
1419 * MAINTAINERS: Add ARC target and maintainer.
1420
1421 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1422
1423 * configure.tgt: ARC support for GNU/Linux.
1424 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1425 * arc-linux-tdep.c: New file.
1426 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1427 * arc-tdep.c (arc_write_pc): Use it.
1428
1429 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1430
1431 * arc-tdep.c (arc_check_for_hardware_loop): New.
1432 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1433
1434 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1435
1436 * arc-tdep.h: Include "gdbarch.h".
1437
1438 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1439
1440 * arch/arc.h
1441 (arc_gdbarch_features): New class to stir the selection of target XML.
1442 (arc_create_target_description): Use FEATURES to choose XML target.
1443 (arc_lookup_target_description): Use arc_create_target_description
1444 to create _new_ target descriptions or return the already created
1445 ones if the FEATURES is the same.
1446 * arch/arc.c: Implementation of prototypes described above.
1447 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1448 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1449 * arc-tdep.c (*_feature_name): Make feature names consistent.
1450 (arc_register_feature): A new struct to hold information about
1451 registers of a particular target/feature.
1452 (arc_check_tdesc_feature): Check if XML provides registers in
1453 compliance with ARC_REGISTER_FEATURE structs.
1454 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1455 (determine_*_reg_feature_set): Which feature name to look for.
1456 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1457 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1458 to expected ISA enums to be used in arc_gdbarch_features structs.
1459 * features/Makefile (FEATURE_XMLFILES): Add new files.
1460 * gdb/features/arc/v1-aux.c: New file.
1461 * gdb/features/arc/v1-aux.xml: Likewise.
1462 * gdb/features/arc/v1-core.c: Likewise.
1463 * gdb/features/arc/v1-core.xml: Likewise.
1464 * gdb/features/arc/v2-aux.c: Likewise.
1465 * gdb/features/arc/v2-aux.xml: Likewise.
1466 * gdb/features/arc/v2-core.c: Likewise.
1467 * gdb/features/arc/v2-core.xml: Likewise.
1468 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1469
1470 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1471 Andrew Burgess <andrew.burgess@embecosm.com>
1472
1473 PR m2/26372
1474 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1475 an assert. Remove single element array indexing pattern as the
1476 MULTI_SUBSCRIPT support will handle this case too.
1477
1478 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1479
1480 * value.h (valprint_check_validity): Move declaration from
1481 here...
1482 * valprint.h (valprint_check_validity): ... to here.
1483
1484 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1485
1486 * debug.h: New file.
1487 * debug.c (debug_prefixed_vprintf): New function.
1488 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1489 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1490
1491 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1492
1493 * infrun.h (infrun_debug_printf_1): New function declaration.
1494 (infrun_debug_printf): New macro.
1495 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1496 throughout.
1497 (infrun_debug_printf): New function.
1498 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1499 (handle_jit_event): Likewise.
1500
1501 2020-08-21 Mark Wielaard <mark@klomp.org>
1502
1503 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1504
1505 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1506
1507 * frame.c (enum class frame_id_status): New.
1508 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1509 (fprintf_frame): Update.
1510 (compute_frame_id): Set frame id status to "computing" on entry.
1511 Set it back to "not_computed" on failure and to "computed" on
1512 success.
1513 (get_frame_id): Assert the frame id is not being computed.
1514 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1515 (create_new_frame): Likewise.
1516 (frame_cleanup_after_sniffer): Update assert.
1517
1518 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1519
1520 * regcache.c (pid_ptid_regcache_map): New type.
1521 (target_ptid_regcache_map): Remove.
1522 (target_pid_ptid_regcache_map): New type.
1523 (regcaches): Change type to target_pid_ptid_regcache_map.
1524 (get_thread_arch_aspace_regcache): Update.
1525 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1526 case.
1527 (regcaches_size): Update.
1528 (regcache_count): Update.
1529 (registers_changed_ptid_target_pid_test): New.
1530 (_initialize_regcache): Register new test.
1531
1532 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1533
1534 * regcache.c (regcache_count): New.
1535 (struct regcache_test_data): New.
1536 (regcache_test_data_up): New.
1537 (populate_regcaches_for_test): New.
1538 (regcaches_test): Remove.
1539 (get_thread_arch_aspace_regcache_test): New.
1540 (registers_changed_ptid_all_test): New.
1541 (registers_changed_ptid_target_test): New.
1542 (registers_changed_ptid_target_ptid_test): New.
1543 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1544 (_initialize_regcache): Register new tests.
1545
1546 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1547
1548 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1549 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1550 gdbarch and aspace parameter. Use current inferior's aspace.
1551 Validate regcache's arch value.
1552 (regcaches_test): Update.
1553
1554 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1555
1556 * regcache.c (regcaches_test): Call registers_changed.
1557
1558 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1559
1560 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1561
1562 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1563
1564 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1565 to find the end of prologue for flang compiled binaries.
1566 * arm-tdep.c (arm_skip_prologue): Likewise.
1567 * i386-tdep.c (i386_skip_prologue): Likewise.
1568 * producer.c (producer_is_llvm): New function.
1569 (producer_parsing_tests): Added new tests for clang/flang.
1570 * producer.h (producer_is_llvm): New declaration.
1571
1572 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1573
1574 * linux-nat.c (linux_nat_debug_printf): New function.
1575 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1576
1577 2020-08-18 Aaron Merey <amerey@redhat.com>
1578
1579 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1580 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1581 (CLIBS): Add DEBUGINFOD_LIBS.
1582
1583 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1584
1585 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1586 'gdbarch_num_regs'.
1587
1588 2020-08-17 Tom Tromey <tromey@adacore.com>
1589
1590 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1591 ada_get_decoded_value returns NULL.
1592
1593 2020-08-17 Tom Tromey <tromey@adacore.com>
1594
1595 * python/py-inferior.c (infpy_search_memory): Use
1596 gdb_py_object_from_ulongest.
1597 * python/py-infevents.c (create_inferior_call_event_object)
1598 (create_memory_changed_event_object): Use
1599 gdb_py_object_from_ulongest.
1600 * python/py-linetable.c (ltpy_entry_get_pc): Use
1601 gdb_py_object_from_ulongest.
1602
1603 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1604
1605 * loc.c (class symbol_needs_eval_context): Fix indentation.
1606
1607 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1608
1609 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1610 bool.
1611
1612 2020-08-17 Tom de Vries <tdevries@suse.de>
1613
1614 PR gdb/26393
1615 * gdbtypes.c (dump_dynamic_prop): New function.
1616 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1617
1618 2020-08-15 Tom de Vries <tdevries@suse.de>
1619
1620 PR backtrace/26390
1621 * stack.c (print_frame_args): Temporarily set the selected
1622 frame to FRAME while printing the frame's arguments.
1623
1624 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1625
1626 PR breakpoints/26385
1627 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1628 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1629
1630 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1631
1632 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1633 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1634 and >= to check return value instead of == -1 and != -1.
1635
1636 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1637
1638 * utils.h (class gdb_argv) <as_array_view>: New method.
1639 * utils.c (gdb_argv_as_array_view_test): New.
1640 (_initialize_utils): Register selftest.
1641 * maint.c (maintenance_selftest): Use the new method.
1642
1643 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1644
1645 * target.h (supports_dumpcore, dumpcore): New
1646 function declarations.
1647 * target.c (supports_dumpcore, dumpcore): New
1648 functions.
1649 * target-delegates.c: Rebuild.
1650 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1651 and target_dumpcore ().
1652
1653 2020-08-13 Aaron Merey <amerey@redhat.com>
1654
1655 * debuginfod-support.c: Replace global variables with user_data.
1656
1657 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1658
1659 * maint.c (maintenance_selftest): Split args and pass array_view
1660 to run_tests.
1661
1662 2020-08-12 Luis Machado <luis.machado@linaro.org>
1663
1664 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1665 type's length.
1666 Use %s and pulongest to print the length.
1667
1668 2020-08-12 Pedro Alves <palves@redhat.com>
1669
1670 * NEWS: Move "Multi-target debugging support" item to the
1671 "Changes since GDB 9" section.
1672
1673 2020-08-12 Pedro Alves <palves@redhat.com>
1674
1675 PR gdb/26336
1676 * progspace.c (program_space::remove_objfile): Invalidate the
1677 frame cache.
1678
1679 2020-08-11 Tom de Vries <tdevries@suse.de>
1680
1681 * MAINTAINERS: Mark ms1 as deleted.
1682
1683 2020-08-10 Luis Machado <luis.machado@linaro.org>
1684
1685 PR gdb/26310
1686
1687 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1688 act accordingly.
1689 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1690 movz/str/stur/stp skipping behavior.
1691
1692 2020-08-10 Luis Machado <luis.machado@linaro.org>
1693
1694 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1695 struct user_sve_header instead of struct sve_context.
1696
1697 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1698
1699 * read.h (dwarf2_fetch_die_loc_sect_off,
1700 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1701 `void *` parameter with function_view.
1702 * read.c (dwarf2_fetch_die_loc_sect_off,
1703 dwarf2_fetch_die_loc_cu_off): Likewise.
1704 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1705 (per_cu_dwarf_call): Adjust.
1706 (get_frame_address_in_block_wrapper): Remove.
1707 (indirect_synthetic_pointer): Adjust.
1708 (get_ax_pc): Remove.
1709 (dwarf2_compile_expr_to_ax): Adjust.
1710
1711 2020-08-08 Tom de Vries <tdevries@suse.de>
1712
1713 PR build/26344
1714 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1715 constructor.
1716 * regcache.c (get_thread_arch_aspace_regcache): Same.
1717
1718 2020-08-07 Tom Tromey <tromey@adacore.com>
1719
1720 * ravenscar-thread.c
1721 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1722 New method.
1723 (ravenscar_thread_target::wait): Check
1724 runtime_initialized.
1725 (ravenscar_thread_target::prepare_to_store)
1726 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1727 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1728 (ravenscar_thread_target::stopped_by_watchpoint)
1729 (ravenscar_thread_target::stopped_data_address)
1730 (ravenscar_thread_target::core_of_thread): Use
1731 scoped_restore_current_thread and
1732 set_base_thread_from_ravenscar_task.
1733
1734 2020-08-07 Tom Tromey <tromey@adacore.com>
1735
1736 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1737
1738 2020-08-07 Tom Tromey <tromey@adacore.com>
1739
1740 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1741 update_inferior_ptid before update_thread_list.
1742 (temporarily_change_regcache_ptid): New class.
1743 (ravenscar_thread_target::fetch_registers)
1744 (ravenscar_thread_target::store_registers)
1745 (ravenscar_thread_target::prepare_to_store): Use base thread when
1746 forwarding operation.
1747
1748 2020-08-07 Tom Tromey <tromey@adacore.com>
1749
1750 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1751 "is_pid" case.
1752
1753 2020-08-07 Tom Tromey <tromey@adacore.com>
1754
1755 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1756 New methods.
1757 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1758 first.
1759 (ravenscar_thread_target::add_thread): Rename from
1760 ravenscar_add_thread.
1761 (ravenscar_thread_target::update_thread_list): Use a lambda.
1762 (ravenscar_thread_target::xfer_partial): New method.
1763
1764 2020-08-07 Tom Tromey <tromey@adacore.com>
1765
1766 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1767 gdb::function_view.
1768 (iterate_over_live_ada_tasks): Change type of argument.
1769 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1770 of argument.
1771
1772 2020-08-07 Tom Tromey <tromey@adacore.com>
1773
1774 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1775 Remove.
1776 (ravenscar_thread_target::extra_thread_info): Remove.
1777 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1778 defer to target beneath for non-Ravenscar threads.
1779
1780 2020-08-07 Tom Tromey <tromey@adacore.com>
1781
1782 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1783 get_base_thread_from_ravenscar_task>: Now methods.
1784 <m_cpu_map>: New member.
1785 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1786 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1787 (ravenscar_thread_target::task_is_currently_active): Update.
1788 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1789 Now a method.
1790 (ravenscar_thread_target::add_active_thread): Put initial thread
1791 into the m_cpu_map.
1792
1793 2020-08-07 Tom Tromey <tromey@adacore.com>
1794
1795 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1796 event_ptid.
1797
1798 2020-08-07 Tom Tromey <tromey@adacore.com>
1799
1800 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1801 runtime_initialized.
1802
1803 2020-08-07 Tom Tromey <tromey@adacore.com>
1804
1805 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1806 add_active_thread.
1807 (ravenscar_thread_target::add_active_thread): Now public.
1808 (ravenscar_inferior_created): Call add_active_thread after pushing
1809 the target.
1810
1811 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1812
1813 * regcache.c (ptid_regcache_map): New type.
1814 (target_ptid_regcache_map): New type.
1815 (regcaches): Change type to target_ptid_regcache_map.
1816 (get_thread_arch_aspace_regcache): Update to regcaches' new
1817 type.
1818 (regcache_thread_ptid_changed): Likewise.
1819 (registers_changed_ptid): Likewise.
1820 (regcaches_size): Likewise.
1821 (regcaches_test): Update.
1822 (regcache_thread_ptid_changed): Update.
1823 * regcache.h (regcache_up): New type.
1824 * gdbsupport/ptid.h (hash_ptid): New struct.
1825
1826 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1827
1828 * observable.h (thread_ptid_changed): Add parameter
1829 `process_stratum_target *`.
1830 * infrun.c (infrun_thread_ptid_changed): Add parameter
1831 `process_stratum_target *` and use it.
1832 (selftests): New namespace.
1833 (infrun_thread_ptid_changed): New function.
1834 (_initialize_infrun): Register selftest.
1835 * regcache.c (regcache_thread_ptid_changed): Add parameter
1836 `process_stratum_target *` and use it.
1837 (regcache_thread_ptid_changed): New function.
1838 (_initialize_regcache): Register selftest.
1839 * thread.c (thread_change_ptid): Pass target to
1840 thread_ptid_changed observable.
1841
1842 2020-08-06 Caroline Tice <cmtice@google.com>
1843
1844 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1845 (struct dwp_sections): Update field comments. Add loclists and
1846 rnglists fields.
1847 (struct virtual_v2_dwo_sections): Rename struct to
1848 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1849 size & offset fields for loclists and rnglists.
1850 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1851 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1852 skipping dummy type units.
1853 (create_dwp_hash_table): Update the large comment above the function to
1854 discuss Version 5 DWP files as well, with references. Update all the
1855 version checks in the function to check for version 5 as well. Add new
1856 section at the end to create dwp hash table for version 5.
1857 (create_dwp_v2_section): Rename function to
1858 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1859 Add V5 to error message text.
1860 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1861 into calls to create_dwp_v2_or_v5_section.
1862 (create_dwo_unit_in_dwp_v5): New function.
1863 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1864 check for version2; add else clause to handle version 5.
1865 (open_and_init_dwo_file): Add code to check dwarf version & only call
1866 create_debug_types_hash_table (with sections.types) if version is not 5;
1867 else call create_debug_type_hash_table, with sections.info.
1868 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1869 version 5.
1870 (dwarf2_locate_v5_dwp_sections): New function.
1871 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1872 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1873
1874 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * regcache.h (class regcache): Remove friend
1877 registers_changed_ptid.
1878 <regcache_thread_ptid_changed>: Remove.
1879 <regcaches>: Remove.
1880 * regcache.c (regcache::regcaches): Rename to...
1881 (regcaches): ... this. Make static.
1882 (get_thread_arch_aspace_regcache): Update.
1883 (regcache::regcache_thread_ptid_changed): Rename to...
1884 (regcache_thread_ptid_changed): ... this. Update.
1885 (class regcache_access): Remove.
1886 (regcaches_test): Update.
1887 (_initialize_regcache): Update.
1888 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1889 <forward_list>.
1890
1891 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1892
1893 * regcache.h (class regcache) <current_regcache>: Rename to...
1894 <regcaches>: ... this. Move doc here.
1895 * regcache.c (regcache::current_regcache) Rename to...
1896 (regcache::regcaches): ... this. Move doc to header.
1897 (get_thread_arch_aspace_regcache): Update.
1898 (regcache::regcache_thread_ptid_changed): Update.
1899 (registers_changed_ptid): Update.
1900 (class regcache_access) <current_regcache_size>: Rename to...
1901 <regcaches_size>: ... this.
1902 (current_regcache_test): Rename to...
1903 (regcaches_test): ... this.
1904 (_initialize_regcache): Update.
1905
1906 2020-08-06 Victor Collod <vcollod@nvidia.com>
1907
1908 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1909
1910 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1911
1912 * corelow.c (core_target::build_file_mappings): Don't output
1913 null pathname in warning.
1914
1915 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1916
1917 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1918 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1919 gdb.dwarf2/dw2-single-line-discriminators.exp,
1920 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1921
1922 2020-08-05 Tom Tromey <tromey@adacore.com>
1923
1924 PR rust/26197:
1925 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1926 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1927 Fix off-by-one and type size errors in ordinary case.
1928
1929 2020-08-05 Tom de Vries <tdevries@suse.de>
1930
1931 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1932 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1933
1934 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1935
1936 * frame.h (frame_id_p): Return bool.
1937 (frame_id_artificial_p): Return bool.
1938 (frame_id_eq): Return bool.
1939 (has_stack_frames): Return bool.
1940 (get_selected_frame): Fix typo in comment.
1941 (get_frame_pc_if_available): Return bool.
1942 (get_frame_address_in_block_if_available): Return bool.
1943 (get_frame_func_if_available): Return bool.
1944 (read_frame_register_unsigned): Return bool.
1945 (get_frame_register_bytes): Return bool.
1946 (safe_frame_unwind_memory): Return bool.
1947 (deprecated_frame_register_read): Return bool.
1948 (frame_unwinder_is): Return bool.
1949 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1950 bool.
1951 <this_id::p>: Likewise.
1952 <prev_p>: Likewise.
1953 (frame_stash_add): Return bool.
1954 (get_frame_id): Use bool.
1955 (frame_id_build_special) Use bool.
1956 (frame_id_build_unavailable_stack): Use bool.
1957 (frame_id_build): Use bool.
1958 (frame_id_p): Return bool, use true/false instead of 1/0.
1959 (frame_id_artificial_p): Likewise.
1960 (frame_id_eq): Likewise.
1961 (frame_id_inner): Likewise.
1962 (get_frame_func_if_available): Likewise.
1963 (read_frame_register_unsigned): Likewise.
1964 (deprecated_frame_register_read): Likewise.
1965 (get_frame_register_bytes): Likewise.
1966 (has_stack_frames): Likewise.
1967 (inside_main_func): Likewise.
1968 (inside_entry_func): Likewise.
1969 (get_frame_pc_if_available): Likewise.
1970 (get_frame_address_in_block_if_available): Likewise.
1971 (frame_unwinder_is): Likewise.
1972 (safe_frame_unwind_memory): Likewise.
1973 (frame_unwind_arch): Likewise.
1974
1975 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1976
1977 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1978 type to cached_copy_status.
1979 (fprintf_frame): Adjust.
1980 (get_frame_func_if_available): Adjust.
1981 (frame_cleanup_after_sniffer): Adjust.
1982
1983 2020-08-04 Mark Wielaard <mark@klomp.org>
1984
1985 * MAINTAINERS (Write After Approval): Update email address.
1986
1987 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1988
1989 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1990 dynamic_prop::const_val.
1991
1992 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1993
1994 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1995 dynamic_prop::kind.
1996
1997 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1998
1999 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2000
2001 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2002
2003 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2004
2005 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2006 Jose E. Marchesi <jose.marchesi@oracle.com>
2007
2008 * configure.tgt: Add entry for bpf-*-*.
2009 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2010 (ALLDEPFILES): Add bpf-tdep.c.
2011 * bpf-tdep.c: New file.
2012 * MAINTAINERS: Add bpf target and maintainer.
2013 * NEWS: Mention the support for the new target.
2014
2015 2020-08-04 Tom de Vries <tdevries@suse.de>
2016
2017 PR symtab/23270
2018 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2019 Error.
2020
2021 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2022
2023 * syscalls/freebsd.xml: Regenerate.
2024
2025 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2026
2027 * syscalls/update-freebsd.sh: Fix usage and year range.
2028
2029 2020-08-03 Tom de Vries <tdevries@suse.de>
2030
2031 PR symtab/26333
2032 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2033 DW_LNE_lo_user/DW_LNE_hi_user range.
2034
2035 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2036
2037 PR ada/26318
2038 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2039 kind.
2040
2041 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2042
2043 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2044
2045 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2046
2047 * breakpoint.c (set_breakpoint_condition): Update the condition
2048 expressions after checking that the input condition string parses
2049 successfully and does not contain junk at the end.
2050
2051 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2052
2053 * breakpoint.c (set_breakpoint_condition): Update the
2054 condition string after parsing the new condition successfully.
2055
2056 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2057
2058 * proc-api.c (_STRUCTURED_PROC): Don't define.
2059 * proc-events.c: Likewise.
2060 * proc-flags.c: Likewise.
2061 * proc-why.c: Likewise.
2062 * procfs.c: Likewise.
2063
2064 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2065 * configure, config.in: Regenerate.
2066
2067 2020-07-30 Tom de Vries <tdevries@suse.de>
2068
2069 PR build/26320
2070 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2071 m_red/m_green/m_blue in a union.
2072
2073 2020-07-29 Tom de Vries <tdevries@suse.de>
2074
2075 PR tdep/26280
2076 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2077
2078 2020-07-28 Tom Tromey <tromey@adacore.com>
2079
2080 PR symtab/26270:
2081 * symtab.h (find_pc_partial_function_sym): Declare.
2082 * cli/cli-cmds.c (disassemble_command): Use
2083 find_pc_partial_function_sym. Check asm_demangle.
2084 * blockframe.c (cache_pc_function_sym): New global.
2085 (cache_pc_function_name): Remove.
2086 (clear_pc_function_cache): Update.
2087 (find_pc_partial_function_sym): New function, from
2088 find_pc_partial_function.
2089 (find_pc_partial_function): Rewrite using
2090 find_pc_partial_function_sym.
2091
2092 2020-07-28 Tom Tromey <tromey@adacore.com>
2093
2094 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2095 help. Add usage.
2096
2097 2020-07-28 Tom Tromey <tromey@adacore.com>
2098
2099 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2100 <DW_OP_GNU_variable_value>: Cast to address type.
2101
2102 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2103
2104 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2105 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2106 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2107 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2108 (nbsd_get_siginfo_type): New.
2109 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2110 (_initialize_nbsd_tdep): New.
2111
2112 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2113
2114 PR binutils/26301
2115 * configure: Regenerated.
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 Andrew Burgess <andrew.burgess@embecosm.com>
2123
2124 * python/py-frame.c: Remove 'user-regs.h' include.
2125 (frapy_read_register): Rewrite to make use of
2126 gdbpy_parse_register_id.
2127 * python/py-registers.c (gdbpy_parse_register_id): New function,
2128 moved here from python/py-unwind.c. Updated the return type, and
2129 also accepts register descriptor objects.
2130 * python/py-unwind.c: Remove 'user-regs.h' include.
2131 (pyuw_parse_register_id): Moved to python/py-registers.c.
2132 (unwind_infopy_add_saved_register): Update to use
2133 gdbpy_parse_register_id.
2134 (pending_framepy_read_register): Likewise.
2135 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2136
2137 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * python/py-registers.c: Add 'user-regs.h' include.
2140 (register_descriptor_iter_find): New function.
2141 (register_descriptor_iterator_object_methods): New static global
2142 methods array.
2143 (register_descriptor_iterator_object_type): Add pointer to methods
2144 array.
2145
2146 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2147
2148 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2149 for all architectures on FreeBSD 11.3 and later.
2150
2151 2020-07-27 Tom Tromey <tromey@adacore.com>
2152
2153 * gcore.h (load_corefile): Don't declare.
2154
2155 2020-07-27 Tom de Vries <tdevries@suse.de>
2156
2157 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2158 * config.in: Regenerate.
2159 * configure: Regenerate.
2160
2161 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2162
2163 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2164 ws2tcpip.h. When checking whether socklen_t type is defined, use
2165 ws2tcpip.h if it is available and sys/socket.h isn't.
2166 * configure: Regenerate.
2167 * config.in: Regenerate.
2168
2169 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 PR fortran/23051
2172 PR fortran/26139
2173 * valops.c (value_ind): Pass address to
2174 readjust_indirect_value_type.
2175 * value.c (readjust_indirect_value_type): Make parameter
2176 non-const, and add extra address parameter. Resolve original type
2177 before using it.
2178 * value.h (readjust_indirect_value_type): Update function
2179 signature and comment.
2180
2181 2020-07-25 Tom de Vries <tdevries@suse.de>
2182
2183 PR symtab/26243
2184 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2185 entries.
2186
2187 2020-07-24 Aaron Merey <amerey@redhat.com>
2188
2189 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2190 * configure: Rebuild.
2191
2192 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2193
2194 PR corefiles/26294
2195 * corelow.c (_initialize_corelow): Add period to help text
2196 for "maintenance print core-file-backed-mappings".
2197
2198 2020-07-23 Pedro Alves <pedro@palves.net>
2199
2200 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2201 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2202 meanwhile.
2203 * frame.c (frame_cache_generation, get_frame_cache_generation):
2204 New.
2205 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2206 (get_prev_frame_if_no_cycle): On exception, don't touch
2207 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2208 * frame.h (get_frame_cache_generation): Declare.
2209
2210 2020-07-23 Tom de Vries <tdevries@suse.de>
2211
2212 PR tui/26282
2213 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2214 New default constructor.
2215
2216 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2217
2218 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2219 exclude non-statement entries.
2220
2221 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2222
2223 * NEWS (New commands): Mention new command
2224 "maintenance print core-file-backed-mappings".
2225
2226 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2227
2228 * corelow.c (gdbcmd.h): Include.
2229 (core_target::info_proc_mappings): New method.
2230 (get_current_core_target): New function.
2231 (maintenance_print_core_file_backed_mappings): New function.
2232 (_initialize_corelow): Add core-file-backed-mappings to
2233 "maint print" commands.
2234
2235 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2236
2237 * linux-tdep.c (dump_note_entry_p): New function.
2238 (linux_dump_mapping_p_ftype): New typedef.
2239 (linux_find_memory_regions_full): Add new parameter,
2240 should_dump_mapping_p.
2241 (linux_find_memory_regions): Adjust call to
2242 linux_find_memory_regions_full.
2243 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2244 call to linux_find_memory_regions_full.
2245
2246 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2247
2248 * corelow.c (solist.h, unordered_map): Include.
2249 (class core_target): Add field m_core_file_mappings and
2250 method build_file_mappings.
2251 (core_target::core_target): Call build_file_mappings.
2252 (core_target::~core_target): Free memory associated with
2253 m_core_file_mappings.
2254 (core_target::build_file_mappings): New method.
2255 (core_target::xfer_partial): Use m_core_file_mappings
2256 for memory transfers.
2257 * linux-tdep.c (linux_read_core_file_mappings): New
2258 function.
2259 (linux_core_info_proc_mappings): Rewrite to use
2260 linux_read_core_file_mappings.
2261 (linux_init_abi): Register linux_read_core_file_mappings.
2262
2263 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2264
2265 * arch-utils.c (default_read_core_file_mappings): New function.
2266 * arch-utils.c (default_read_core_file_mappings): Declare.
2267 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2268 * gdbarch.h, gdbarch.c: Regenerate.
2269
2270 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2271
2272 PR corefiles/25631
2273 * corelow.c (core_target:xfer_partial): Revise
2274 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2275 case after first checking the stratum beneath the core
2276 target.
2277 (has_all_memory): Return true.
2278 * target.c (raw_memory_xfer_partial): Revise comment
2279 regarding use of has_all_memory.
2280
2281 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2282
2283 * exec.h (section_table_xfer_memory): Revise declaration,
2284 replacing section name parameter with an optional callback
2285 predicate.
2286 * exec.c (section_table_xfer_memory): Likewise.
2287 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2288 of section_table_xfer_memory.
2289
2290 2020-07-22 Tom Tromey <tromey@adacore.com>
2291
2292 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2293 lookup_symbol_search_name.
2294
2295 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2296
2297 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2298 redundant local variable.
2299 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2300 reference, not pointer, update code accordingly.
2301
2302 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2303 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2304
2305 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2306 * jit.c (jit_breakpoint_re_set_internal): Use the
2307 `skip_jit_symbol_lookup` field.
2308
2309 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2310 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2311
2312 * jit.c (jit_read_descriptor): Define the descriptor address once,
2313 use twice.
2314 (jit_breakpoint_deleted): Move the declaration of the loop variable
2315 `iter` into the loop header.
2316 (jit_breakpoint_re_set_internal): Move the declaration of the local
2317 variable `objf_data` to the first point of definition.
2318 (jit_event_handler): Move the declaration of local variables
2319 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2320 Rename `objf` to `jited`.
2321
2322 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2323
2324 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2325 Remove.
2326 * jit.c (get_jiter_objfile_data): Update.
2327
2328 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2329 Simon Marchi <simon.marchi@polymtl.ca>
2330
2331 * jit.c (struct jit_program_space_data): Remove.
2332 (jit_program_space_key): Remove.
2333 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2334 stuff.
2335 (get_jit_program_space_data): Remove.
2336 (jit_breakpoint_deleted): Iterate on all of the program space's
2337 objfiles.
2338 (jit_inferior_init): Likewise.
2339 (jit_breakpoint_re_set_internal): Likewise. Also change return
2340 type to void.
2341 (jit_breakpoint_re_set): Pass current_program_space to
2342 jit_breakpoint_re_set_internal.
2343
2344 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2345
2346 * jit.h (struct jiter_objfile_data) <cached_code_address,
2347 jit_breakpoint>: Move to here from ...
2348 * jit.c (jit_program_space_data): ... here.
2349 (jiter_objfile_data::~jiter_objfile_data): Update.
2350 (jit_breakpoint_deleted): Update.
2351 (jit_breakpoint_re_set_internal): Update.
2352
2353 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2354
2355 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2356 checks.
2357 (jit_read_descriptor): Remove NULL check.
2358 (jit_event_handler): Add an assertion.
2359
2360 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2361
2362 * jit.h (struct jit_objfile_data): Split into...
2363 (struct jiter_objfile_data): ... this ...
2364 (struct jited_objfile_data): ... and this.
2365 * objfiles.h (struct objfile) <jit_data>: Remove.
2366 <jiter_data, jited_data>: New fields.
2367 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2368 (jiter_objfile_data::~jiter_objfile_data): ... this.
2369 (get_jit_objfile_data): Rename to ...
2370 (get_jiter_objfile_data): ... this.
2371 (add_objfile_entry): Update.
2372 (jit_read_descriptor): Use get_jiter_objfile_data.
2373 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2374 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2375 (jit_inferior_exit_hook): Use objfile's jited_data field.
2376
2377 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2378
2379 * jit.h: Forward-declare `struct minimal_symbol`.
2380 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2381 constructor, destructor, and an objfile* field.
2382 * jit.c (jit_objfile_data): Remove.
2383 (struct jit_objfile_data): Migrate from here to jit.h.
2384 (jit_objfile_data::~jit_objfile_data): New destructor
2385 implementation with code moved from free_objfile_data.
2386 (free_objfile_data): Delete.
2387 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2388 (jit_find_objf_with_entry_addr): Ditto.
2389 (jit_inferior_exit_hook): Ditto.
2390 (_initialize_jit): Remove the call to
2391 register_objfile_data_with_cleanup.
2392 * objfiles.h (struct objfile) <jit_data>: New field.
2393
2394 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2395
2396 * jit.h: Forward-declare `struct objfile`.
2397 (jit_event_handler): Add a second parameter, the JITer objfile.
2398 * jit.c (jit_read_descriptor): Change the signature to take the
2399 JITer objfile as an argument instead of the jit_program_space_data.
2400 (jit_inferior_init): Update the call to jit_read_descriptor.
2401 (jit_event_handler): Use the new JITer objfile argument when calling
2402 jit_read_descriptor.
2403 * breakpoint.c (handle_jit_event): Update the call to
2404 jit_event_handler to pass the JITer objfile.
2405
2406 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2407
2408 * gdbarch.c: Regenerate.
2409 * gdbarch.h: Regenerate.
2410 * gdbarch.sh (handle_segmentation_fault): Remove method.
2411 * infrun.c (handle_segmentation_fault): Remove.
2412 (print_signal_received_reason): Remove call to
2413 handle_segmentation_fault.
2414
2415 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2416
2417 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2418 Rename to sparc64_linux_report_signal_info and add siggnal
2419 argument.
2420 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2421 instead of sparc64_linux_handle_segmentation_fault.
2422
2423 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2424
2425 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2426 i386_linux_report_signal_info instead of
2427 i386_linux_handle_segmentation_fault.
2428 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2429 to i386_linux_report_signal_info and add siggnal argument.
2430 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2431 of i386_linux_handle_segmentation_fault.
2432 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2433 to i386_linux_report_signal_info and add siggnal argument.
2434
2435 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2436
2437 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2438 hook if present.
2439
2440 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2441
2442 * gdbarch.c: Regenerate.
2443 * gdbarch.h: Regenerate.
2444 * gdbarch.sh (report_signal_info): New method.
2445 * infrun.c (print_signal_received_reason): Invoke gdbarch
2446 report_signal_info hook if present.
2447
2448 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2449
2450 * python/py-registers.c : Add 'unordered_map' include.
2451 (gdbpy_new_reggroup): Renamed to...
2452 (gdbpy_get_reggroup): ...this. Update to only create register
2453 group descriptors when needed.
2454 (gdbpy_reggroup_iter_next): Update.
2455
2456 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2457
2458 * python/py-registers.c (gdbpy_register_object_data): New static
2459 global.
2460 (gdbpy_register_object_data_init): New function.
2461 (gdbpy_new_register_descriptor): Renamed to...
2462 (gdbpy_get_register_descriptor): ...this, and update to reuse
2463 existing register descriptors where possible.
2464 (gdbpy_register_descriptor_iter_next): Update.
2465 (gdbpy_initialize_registers): Register new gdbarch data.
2466
2467 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2468
2469 * linux-nat.c (stopped_pids): Make static.
2470
2471 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2472
2473 PR ada/26235
2474 * gdbtypes.c (ada_discrete_type_low_bound,
2475 ada_discrete_type_high_bound): Handle undefined bounds.
2476
2477 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2478
2479 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2480 declaration.
2481 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2482 function.
2483
2484 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2485
2486 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2487 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2488 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2489 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2490 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2491 method.
2492
2493 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2494
2495 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2496 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2497 which are deprecated in Guile 3.0.
2498 * configure.ac (try_guile_versions): Add "guile-3.0".
2499 * configure (try_guile_versions): Regenerate.
2500 * NEWS: Update entry.
2501
2502 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2503 Doug Evans <dje@google.com>
2504
2505 PR gdb/21104
2506 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2507 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2508 USING_GUILE_BEFORE_2_2.
2509 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2510 Change type to 'scm_t_port_type *'.
2511 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2512 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2513 parameter and honor it. Update callers.
2514 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2515 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2516 functions.
2517 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2518 USING_GUILE_BEFORE_2_2.
2519 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2520 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2521 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2522 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2523 and 'SCM_PORT_TYPE'.
2524 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2525 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2526 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2527 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2528 [!USING_GUILE_BEFORE_2_2]: New functions.
2529 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2530 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2531 'gdbscm_memory_port_read'.
2532 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2533 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2534 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2535 function.
2536 (ioscm_init_memory_port): Remove.
2537 (ioscm_init_memory_port_stream): New function
2538 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2539 function.
2540 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2541 Return scm_from_uint (0).
2542 (gdbscm_set_memory_port_read_buffer_size_x)
2543 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2544 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2545 Return scm_from_uint (0).
2546 (gdbscm_set_memory_port_write_buffer_size_x)
2547 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2548 * configure.ac (try_guile_versions): Add "guile-2.2".
2549 * configure: Regenerate.
2550 * NEWS: Add entry.
2551
2552 2020-07-18 Tom Tromey <tom@tromey.com>
2553
2554 * linux-nat.c (linux_multi_process): Remove.
2555 (linux_nat_target::supports_multi_process): Return true.
2556
2557 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2558
2559 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2560 (riscv_lookup_target_description): Return pointer out of
2561 unique_ptr.
2562 * target-descriptions.c (allocate_target_description): Add
2563 comment.
2564 (target_desc_deleter::operator()): Likewise.
2565 * target-descriptions.h (struct target_desc_deleter): Moved to
2566 gdbsupport/tdesc.h.
2567 (target_desc_up): Likewise.
2568
2569 2020-07-17 Tom Tromey <tromey@adacore.com>
2570
2571 * linux-nat.c (linux_nat_target::supports_non_stop)
2572 (linux_nat_target::always_non_stop_p): Use "true".
2573 (linux_nat_target::supports_disable_randomization): Use "true" and
2574 "false".
2575
2576 2020-07-16 Caroline Tice <cmtice@google.com>
2577
2578 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2579 (RNGLIST_HEADER_SIZE64): New constant definition.
2580 (struct dwop_section_names): Add rnglists_dwo.
2581 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2582 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2583 (struct dwo_sections): Add rnglists field.
2584 (read_attribut_reprocess): Add tag parameter.
2585 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2586 (cu_debug_rnglists_section): New function (decl & definition).
2587 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2588 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2589 die whose range is being checked; get rnglist section from
2590 cu_debug_rnglists_section, to get from either objfile or dwo file as
2591 appropriate. Add cases for DW_RLE_base_addressx,
2592 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2593 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2594 test inside if-condition and updating complaint message.
2595 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2596 dwarf2_rnglists_process.
2597 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2598 dwarf2_ranges_process.
2599 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2600 need_ranges_base and update comment appropriately. Also pass die tag
2601 to dwarf2_ranges_read.
2602 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2603 need_ranges_base and update comment appropriately. Also pass die tag
2604 to dwarf2_ranges_process.
2605 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2606 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2607 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2608 need_ranges_base and update comment appropriately. Also pass die tag
2609 to read_attribute_reprocess and dwarf2_ranges_read.
2610 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2611 and update function comment appropriately.
2612 (read_loclist_index): Call read_loclists_rnglists_header instead of
2613 read_loclist_header.
2614 (read_rnglist_index): New function.
2615 (read_attribute_reprocess): Add tag parameter. Add code for
2616 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2617 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2618
2619 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2620
2621 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2622 being resolved.
2623
2624 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2625
2626 * arch-utils.c (show_architecture): Update formatting of messages.
2627
2628 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2629
2630 * gdbtypes.h (struct type) <bounds>: Handle array and string
2631 types.
2632 * ada-lang.c (assign_aggregate): Use type::bounds on
2633 array/string type.
2634 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2635 * c-varobj.c (c_number_of_children): Likewise.
2636 (c_describe_child): Likewise.
2637 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2638 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2639 (f_type_print_base): Likewise.
2640 * f-valprint.c (f77_array_offset_tbl): Likewise.
2641 (f77_get_upperbound): Likewise.
2642 (f77_print_array_1): Likewise.
2643 * guile/scm-type.c (gdbscm_type_range): Likewise.
2644 * m2-typeprint.c (m2_array): Likewise.
2645 (m2_is_long_set_of_type): Likewise.
2646 * m2-valprint.c (get_long_set_bounds): Likewise.
2647 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2648 * python/py-type.c (typy_range): Likewise.
2649 * rust-lang.c (rust_internal_print_type): Likewise.
2650 * type-stack.c (type_stack::follow_types): Likewise.
2651 * valarith.c (value_subscripted_rvalue): Likewise.
2652 * valops.c (value_cast): Likewise.
2653
2654 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2655
2656 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2657 callers to use the equivalent accessor methods.
2658
2659 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2660
2661 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2662 (struct type) <bit_stride>: New method.
2663 (TYPE_BIT_STRIDE): Remove.
2664 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2665
2666 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2667
2668 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2669 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2670 callers to use the equivalent accessor methods instead.
2671
2672 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2673
2674 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2675 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2676 callers to use the equivalent accessor methods instead.
2677
2678 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2679
2680 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2681 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2682 to use dynamic_prop::kind.
2683
2684 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2685
2686 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2687 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2688 to get the bound property's kind and check against
2689 PROP_UNDEFINED.
2690
2691 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2692
2693 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2694 all callers to use type::range_bounds followed by
2695 dynamic_prop::{low,high}.
2696
2697 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2698
2699 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2700 const_val, set_const_val, baton, set_locexpr, set_loclist,
2701 set_addr_offset, variant_parts, set_variant_parts,
2702 original_type, set_original_type>: New methods.
2703 <kind>: Rename to...
2704 <m_kind>: ... this. Update all users to use the new methods
2705 instead.
2706 <data>: Rename to...
2707 <m_data>: ... this. Update all users to use the new methods
2708 instead.
2709
2710 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2711
2712 * gdbtypes.c (get_discrete_bounds): Return failure if
2713 the range type's bounds are not both defined and constant
2714 values.
2715 (get_array_bounds): Update comment. Remove undefined bound check.
2716
2717 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2718
2719 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2720 the type::bounds method directly.
2721
2722 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2723
2724 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2725 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2726 are used to set the range type's bounds to use set_bounds.
2727
2728 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2729
2730 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2731
2732 2020-07-10 Pedro Alves <pedro@palves.net>
2733
2734 * gdbthread.h (inferior_ref): Define.
2735 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2736 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2737 * thread.c
2738 (scoped_restore_current_thread::restore):
2739 Adjust to gdb::ref_ptr.
2740 (scoped_restore_current_thread::~scoped_restore_current_thread):
2741 Remove manual decref handling.
2742 (scoped_restore_current_thread::scoped_restore_current_thread):
2743 Adjust to use
2744 inferior_ref::new_reference/thread_info_ref::new_reference.
2745 Incref the thread before calling get_frame_id instead of after.
2746 Let TARGET_CLOSE_ERROR propagate.
2747
2748 2020-07-10 Pedro Alves <pedro@palves.net>
2749
2750 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2751 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2752 NOT_AVAILABLE_ERROR.
2753 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2754 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2755
2756 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2757 Pedro Alves <pedro@palves.net>
2758
2759 PR gdb/26199
2760 * infrun.c (threads_are_resumed_pending_p): Delete.
2761 (do_target_wait): Remove threads_are_executing and
2762 threads_are_resumed_pending_p checks from the inferior_matches
2763 lambda. Update comments.
2764
2765 2020-07-10 Pedro Alves <pedro@palves.net>
2766
2767 PR gdb/26199
2768 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2769 executing threads.
2770
2771 2020-07-10 Pedro Alves <pedro@palves.net>
2772
2773 PR gdb/26199
2774 * infrun.c (handle_no_resumed): Handle multiple targets.
2775
2776 2020-07-10 Pedro Alves <pedro@palves.net>
2777
2778 PR gdb/26199
2779 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2780 target_is_async_p.
2781
2782 2020-07-10 Pedro Alves <pedro@palves.net>
2783
2784 PR gdb/26199
2785 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2786 threads, not all threads.
2787
2788 2020-07-10 Pedro Alves <pedro@palves.net>
2789
2790 PR gdb/26199
2791 * remote.c (remote_target::open_1): Pass remote target pointer as
2792 data to create_async_event_handler.
2793 (remote_async_inferior_event_handler): Mark async event handler
2794 before returning if the remote target still has either pending
2795 events or unacknowledged notifications.
2796
2797 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2798
2799 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2800 declaration.
2801 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2802 function.
2803
2804 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2805
2806 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2807 inferior_ptid.
2808
2809 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2810
2811 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2812 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2813 AT_FREEBSD_PS_STRINGS.
2814
2815 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2816
2817 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2818 of debugfile path on Windows.
2819
2820 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2821
2822 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2823 argument to 'data'.
2824
2825 2020-07-08 Tom Tromey <tromey@adacore.com>
2826
2827 * ada-lang.c (ada_exception_message_1): Use read_memory.
2828
2829 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2830
2831 PR python/22748
2832 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2833 special handling for inline frames.
2834 * findvar.c (value_of_register_lazy): Skip inline frames when
2835 creating lazy register values.
2836 * frame.c (frame_id_computed_p): Delete definition.
2837 * frame.h (frame_id_computed_p): Delete declaration.
2838
2839 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2840
2841 * NEWS: Mention additions to Python API.
2842 * python/py-arch.c (archpy_register_groups): New function.
2843 (arch_object_methods): Add 'register_groups' method.
2844 * python/py-registers.c (reggroup_iterator_object): New struct.
2845 (reggroup_object): New struct.
2846 (gdbpy_new_reggroup): New function.
2847 (gdbpy_reggroup_to_string): New function.
2848 (gdbpy_reggroup_name): New function.
2849 (gdbpy_reggroup_iter): New function.
2850 (gdbpy_reggroup_iter_next): New function.
2851 (gdbpy_new_reggroup_iterator): New function
2852 (gdbpy_initialize_registers): Register new types.
2853 (reggroup_iterator_object_type): Define new Python type.
2854 (gdbpy_reggroup_getset): New static global.
2855 (reggroup_object_type): Define new Python type.
2856 * python/python-internal.h
2857
2858 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2859
2860 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2861 * python/py-arch.c (archpy_registers): New function.
2862 (arch_object_methods): Add 'registers' method.
2863 * python/py-registers.c: New file.
2864 * python/python-internal.h
2865 (gdbpy_new_register_descriptor_iterator): Declare.
2866 (gdbpy_initialize_registers): Declare.
2867 * python/python.c (do_start_initialization): Call
2868 gdbpy_initialize_registers.
2869 * NEWS: Mention additions to the Python API.
2870
2871 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2872
2873 * NEWS: Mention new Python API method.
2874 * python/py-unwind.c (pending_framepy_architecture): New function.
2875 (pending_frame_object_methods): Add architecture method.
2876
2877 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2878
2879 * gdbarch.c: Regenerate.
2880 * gdbarch.h: Regenerate.
2881 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2882 (gdbarch_data): Use internal_error for the case where
2883 deprecated_set_gdbarch_data was originally needed.
2884 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2885 and use passed in obstack.
2886 (libunwind_frame_set_descr): Should no longer get back NULL from
2887 gdbarch_data.
2888 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2889 type.
2890 * user-regs.c (user_regs_init): Update parameters, and use passed
2891 in obstack.
2892 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2893 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2894
2895 2020-07-06 Tom de Vries <tdevries@suse.de>
2896
2897 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2898 End-Of-Sequence in lte_is_less_than.
2899 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2900 "gdb: Don't reorder line table entries too much when sorting".
2901
2902 2020-07-06 Tom de Vries <tdevries@suse.de>
2903
2904 PR tui/26205
2905 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2906
2907 2020-07-05 Tom de Vries <tdevries@suse.de>
2908
2909 PR build/26187
2910 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2911 std::uncaught_exceptions instead of deprecated
2912 std::uncaught_exception.
2913
2914 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2915
2916 * macroexp.h (macro_stringify): Return
2917 gdb::unique_xmalloc_ptr<char>.
2918 * macroexp.c (macro_stringify): Likewise.
2919 * macrotab.c (fixup_definition): Update.
2920
2921 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2922
2923 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2924 (lex_one_token): Update.
2925 * macroexp.c (struct macro_buffer) <release>: Return
2926 gdb::unique_xmalloc_ptr<char>.
2927 (macro_stringify): Update.
2928 (macro_expand): Update.
2929 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2930 * macroexp.h (macro_expand_next): Likewise.
2931
2932 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2933
2934 * macroexp.h (macro_lookup_ftype): Remove.
2935 (macro_expand, macro_expand_once, macro_expand_next): Remove
2936 lookup function parameters, add scope parameter.
2937 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2938 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2939 * macroscope.h (standard_macro_lookup): Change parameter type
2940 to macro_scope.
2941 * macroscope.c (standard_macro_lookup): Likewise.
2942 * c-exp.y (lex_one_token): Update.
2943 * macrocmd.c (macro_expand_command): Likewise.
2944 (macro_expand_once_command): Likewise.
2945
2946 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * inf-loop.c (inferior_event_handler): Remove client_data param.
2949 * inf-loop.h (inferior_event_handler): Likewise.
2950 * infcmd.c (step_1): Adjust.
2951 * infrun.c (proceed): Adjust.
2952 (fetch_inferior_event): Remove client_data param.
2953 (infrun_async_inferior_event_handler): Adjust.
2954 * infrun.h (fetch_inferior_event): Remove `void *` param.
2955 * linux-nat.c (handle_target_event): Adjust.
2956 * record-btrace.c (record_btrace_handle_async_inferior_event):
2957 Adjust.
2958 * record-full.c (record_full_async_inferior_event_handler):
2959 Adjust.
2960 * remote.c (remote_async_inferior_event_handler): Adjust.
2961
2962 2020-07-01 Tom Tromey <tom@tromey.com>
2963
2964 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2965 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2966
2967 2020-07-01 Tom Tromey <tom@tromey.com>
2968
2969 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2970 tui_gen_win_info.
2971 (tui_win_info::make_window): Merge with
2972 tui_gen_win_info::make_window.
2973 (tui_win_info::make_visible): Move from tui_gen_win_info.
2974 * tui/tui-win.c (tui_win_info::max_width): Move from
2975 tui_gen_win_info.
2976 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2977 type.
2978 <window_factory>: Likewise.
2979 * tui/tui-layout.c (tui_win_info::resize): Move from
2980 tui_gen_win_info.
2981 (make_standard_window): Change return type.
2982 (get_locator_window, tui_get_window_by_name): Likewise.
2983 (tui_layout_window::apply): Remove a cast.
2984 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2985 (struct tui_win_info): Merge with tui_gen_win_info.
2986 (struct tui_gen_win_info): Remove.
2987
2988 2020-07-01 Tom Tromey <tom@tromey.com>
2989
2990 * tui/tui-stack.h (struct tui_locator_window): Derive from
2991 tui_win_info.
2992 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2993 <can_box>: New method.
2994
2995 2020-07-01 Tom Tromey <tom@tromey.com>
2996
2997 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2998
2999 2020-07-01 Tom Tromey <tom@tromey.com>
3000
3001 * tui/tui-regs.c (tui_data_window::display_registers_from)
3002 (tui_data_window::display_registers_from)
3003 (tui_data_window::first_data_item_displayed)
3004 (tui_data_window::delete_data_content_windows): Update.
3005 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3006 Remove.
3007 (tui_data_window::check_register_values): Update.
3008 (tui_data_item_window::rerender): Add parameters. Update.
3009 (tui_data_item_window::refresh_window): Remove.
3010 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3011 virtual.
3012 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3013 tui_gen_win_info.
3014 <refresh_window, max_height, min_height>: Remove.
3015 <rerender>: Add parameters.
3016 <x, y, visible>: New members.
3017 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3018 <m_item_width>: New member.
3019
3020 2020-07-01 Tom Tromey <tom@tromey.com>
3021
3022 * tui/tui-regs.c (tui_data_window::show_register_group)
3023 (tui_data_window::check_register_values): Update.
3024 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3025 from item_no.
3026
3027 2020-07-01 Tom Tromey <tom@tromey.com>
3028
3029 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3030 useless "if".
3031
3032 2020-07-01 Tom Tromey <tom@tromey.com>
3033
3034 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3035 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3036
3037 2020-07-01 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3040 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3041 (struct tui_line_or_address): Move from tui-data.h.
3042 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3043 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3044 (tui_cmd_window, tui_source_window_base, tui_source_window)
3045 (tui_disasm_window): Don't declare.
3046 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3047 to tui-winsource.h.
3048 (SINGLE_KEY): Move to tui-stack.c.
3049
3050 2020-07-01 Tom Tromey <tom@tromey.com>
3051
3052 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3053 std::string.
3054 * tui/tui-regs.c (class tab_expansion_file): New.
3055 (tab_expansion_file::write): New method.
3056 (tui_register_format): Change return type. Use
3057 tab_expansion_file.
3058 (tui_get_register, tui_data_window::display_registers_from)
3059 (tui_data_item_window::rerender): Update.
3060 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3061 * tui/tui-io.c (tui_expand_tabs): Remove.
3062
3063 2020-07-01 Tom Tromey <tom@tromey.com>
3064
3065 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3066
3067 2020-07-01 Fangrui Song <maskray@google.com>
3068
3069 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3070
3071 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3072
3073 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3074 forms for DW_AT_associated and DW_AT_allocated attributes,
3075 which is already checked in function attr_to_dynamic_prop.
3076
3077 2020-06-30 Tom Tromey <tromey@adacore.com>
3078
3079 * dwarf2/read.c (quirk_rust_enum): Correctly call
3080 alloc_rust_variant for default-less enum.
3081
3082 2020-06-30 Tom Tromey <tromey@adacore.com>
3083
3084 PR build/26183:
3085 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3086 gdb::to_string.
3087
3088 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3089
3090 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3091 * gdbarch.h: Re-generate.
3092
3093 2020-06-28 Tom Tromey <tom@tromey.com>
3094
3095 * command.h (cmd_types): Remove.
3096 (cmd_type): Don't declare.
3097 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3098 typedef.
3099 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3100 * cli/cli-decode.c (cmd_type): Remove.
3101
3102 2020-06-27 Pedro Alves <palves@redhat.com>
3103
3104 * fork-child.c (prefork_hook): Adjust.
3105 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3106 Delete.
3107 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3108 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3109 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3110 Remove declarations.
3111 (struct inferior) <set_tty, tty>: New methods.
3112 (struct inferior) <terminal>: Rename to ...
3113 (struct inferior) <m_terminal>: ... this and make private.
3114 * main.c (captured_main_1): Adjust.
3115 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3116 (mi_cmd_inferior_tty_show): Adjust.
3117 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3118 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3119
3120 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3121
3122 * configure.ac: Add --enable-libctf: handle --disable-static
3123 properly.
3124 * acinclude.m4: sinclude ../config/enable.m4.
3125 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3126 (LIBCTF): Substitute in.
3127 (CTF_DEPS): New, likewise.
3128 (CLIBS): libctf needs symbols from libbfd: move earlier.
3129 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3130 flags.
3131 * ctfread.c: Surround in ENABLE_LIBCTF.
3132 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3133 * configure: Regenerate.
3134 * config.in: Likewise.
3135
3136 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3137
3138 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3139
3140 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3141
3142 * inferior.h (struct inferior) <terminal>: Change type to
3143 gdb::unique_xmalloc_ptr<char>.
3144 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3145 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3146 field, adjust to unique pointer.
3147 (get_inferior_io_terminal): Adjust to unique pointer.
3148
3149 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3150
3151 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3152 registers, not just the known core set of registers.
3153
3154 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3155
3156 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3157 fflags, frm, and fcsr registers.
3158 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3159 restore groups.
3160 (riscv_tdesc_unknown_reg): New function.
3161 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3162 tdesc_use_registers.
3163 * riscv-tdep.h (struct gdbarch_tdep): Add
3164 unknown_csrs_first_regnum, unknown_csrs_count,
3165 duplicate_fflags_regnum, duplicate_frm_regnum, and
3166 duplicate_fcsr_regnum fields.
3167
3168 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3169
3170 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3171 callback, use the callback (when not null) to help number unknown
3172 registers.
3173 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3174 (tdesc_use_registers): Add extra parameter to declaration.
3175
3176 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3177
3178 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3179 in the file.
3180 (class riscv_pending_register_alias): Likewise.
3181 (riscv_register_feature::register_info): Change 'required_p' field
3182 to 'required', and change its type. Add 'check' member function.
3183 (riscv_register_feature::register_info::check): Define new member
3184 function.
3185 (riscv_xreg_feature): Change initialisation of 'required' field.
3186 (riscv_freg_feature): Likewise.
3187 (riscv_virtual_feature): Likewise.
3188 (riscv_csr_feature): Likewise.
3189 (riscv_check_tdesc_feature): Take extra parameter, the csr
3190 tdesc_feature, rewrite the function to use the new
3191 riscv_register_feature::register_info::check function.
3192 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3193
3194 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3195
3196 * features/Makefile: Remove all references to the deleted files
3197 below.
3198 * features/riscv/32bit-csr.c: Deleted.
3199 * features/riscv/32bit-csr.xml: Deleted.
3200 * features/riscv/64bit-csr.c: Deleted.
3201 * features/riscv/64bit-csr.xml: Deleted.
3202 * features/riscv/rebuild-csr-xml.sh: Deleted.
3203
3204 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3207 whitespace error for declaration of names member variable.
3208 (struct riscv_register_feature): Add new prefer_first_name member
3209 variable, and fix whitespace error in declaration of registers.
3210 (riscv_xreg_feature): Initialize prefer_first_name field.
3211 (riscv_freg_feature): Likewise.
3212 (riscv_virtual_feature): Likewise.
3213 (riscv_csr_feature): Likewise.
3214 (riscv_register_name): Expand on comments. Remove register name
3215 modifications for CSR and virtual registers.
3216
3217 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3218
3219 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3220 errors.
3221
3222 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3223
3224 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3225 riscv-opc.h.
3226 (class riscv_pending_register_alias): New class.
3227 (riscv_check_tdesc_feature): Take vector of pending aliases and
3228 populate it as appropriate.
3229 (riscv_setup_register_aliases): Delete.
3230 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3231 to riscv_check_tdesc_feature in all cases. Use the vector to
3232 create the register aliases.
3233
3234 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3235
3236 * sol2-tdep.c (sol2_static_transform_name): Remove.
3237 (sol2_init_abi): Don't register it.
3238 * gdbarch.sh (static_transform_name): Remove.
3239 * gdbarch.c, gdbarch.h: Regenerate.
3240
3241 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3242 gdbarch_static_transform_name.
3243 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3244 * stabsread.c (define_symbol) <'X'>: Remove.
3245 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3246 handling.
3247 <'V'>: Likewise.
3248 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3249 <'S'>: Remove call to gdbarch_static_transform_name.
3250
3251 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3252
3253 * procfs.c (procfs_pre_trace): New function.
3254 (procfs_target::create_inferior): Pass it to fork_inferior.
3255
3256 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3257
3258 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3259 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3260 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3261 sol2-tdep.o, sparc-sol2-tdep.o.
3262 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3263 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3264 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3265 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3266
3267 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3268
3269 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3270 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3271 Call sol2_init_abi.
3272 Remove calls to set_gdbarch_skip_solib_resolver,
3273 set_gdbarch_core_pid_to_str.
3274 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3275 (i386_sol2_static_transform_name): Remove.
3276 (i386_sol2_init_abi): Call sol2_init_abi.
3277 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3278 set_gdbarch_static_transform_name,
3279 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3280 Use sol2_sigtramp_p.
3281 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3282 (sol2_sigtramp_p): New function.
3283 (sol2_static_transform_name): New function.
3284 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3285 (sol2_init_abi): New function.
3286 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3287 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3288 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3289 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3290 (sparc_sol2_static_transform_name): Remove.
3291 (sparc32_sol2_init_abi): Call sol2_init_abi.
3292 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3293 set_gdbarch_static_transform_name,
3294 set_gdbarch_skip_solib_resolver,
3295 set_gdbarch_core_pid_to_str.
3296 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3297 (sparc_sol2_static_transform_name): Remove
3298 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3299 call sol2_sigtramp_p.
3300 (sparc64_sol2_init_abi): Call sol2_init_abi.
3301 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3302 set_gdbarch_static_transform_name,
3303 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3304
3305 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3306
3307 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3308 * exec.c (validate_exec_file): If from_tty, set both
3309 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3310 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3311 and from_tty, unconditionally ask a confirmation.
3312
3313 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * target-descriptions.c (tdesc_architecture_name): Protect against
3316 NULL pointer dereference.
3317 (maint_print_xml_tdesc_cmd): New function.
3318 (_initialize_target_descriptions): Register new 'maint print
3319 xml-tdesc' command and give it the filename completer.
3320 * NEWS: Mention new 'maint print xml-tdesc' command.
3321
3322 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3323
3324 * target-descriptions.c (class tdesc_compatible_info): New class.
3325 (struct target_desc): Change type of compatible vector.
3326 (tdesc_compatible_p): Update for change in type of
3327 target_desc::compatible.
3328 (tdesc_compatible_info_list): New function.
3329 (tdesc_compatible_info_arch_name): New function.
3330 (tdesc_add_compatible): Update for change in type of
3331 target_desc::compatible.
3332 (print_c_tdesc::visit_pre): Likewise.
3333
3334 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3335
3336 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3337 whitespace to underscore.
3338 (maint_print_c_tdesc_cmd): Use fake filename for target
3339 descriptions that came from the target.
3340 (_initialize_target_descriptions): Add filename command completion
3341 for 'maint print c-tdesc'.
3342
3343 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3344
3345 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3346 lines.
3347
3348 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3349
3350 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3351 lines.
3352 (dwarf2_find_location_expression): Likewise.
3353 (call_site_parameter_matches): Likewise.
3354 (dwarf2_compile_expr_to_ax): Likewise.
3355 (disassemble_dwarf_expression): Likewise.
3356 (loclist_describe_location): Likewise.
3357
3358 2020-06-23 Pedro Alves <palves@redhat.com>
3359
3360 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3361 progspace-and-thread.h. Include scoped-mock-context.h instead.
3362 (register_to_value_test): Use scoped_mock_context.
3363 * regcache.c: Include "scoped-mock-context.h".
3364 (cooked_read_test): Don't error out if a target is already pushed.
3365 Use scoped_mock_context. Adjust.
3366 * scoped-mock-context.h: New file.
3367
3368 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3371 initializer.
3372 (ada_language::is_string_type_p): New member function.
3373 * c-lang.c (c_language_data): Delete la_is_string_type_p
3374 initializer.
3375 (cplus_language_data): Likewise.
3376 (asm_language_data): Likewise.
3377 (minimal_language_data): Likewise.
3378 * d-lang.c (d_language_data): Likewise.
3379 * f-lang.c (f_is_string_type_p): Delete function, implementation
3380 moved to f_language::is_string_type_p.
3381 (f_language_data): Delete la_is_string_type_p initializer.
3382 (f_language::is_string_type_p): New member function,
3383 implementation from f_is_string_type_p.
3384 * go-lang.c (go_is_string_type_p): Delete function, implementation
3385 moved to go_language::is_string_type_p.
3386 (go_language_data): Delete la_is_string_type_p initializer.
3387 (go_language::is_string_type_p): New member function,
3388 implementation from go_is_string_type_p.
3389 * language.c (language_defn::is_string_type_p): Define new member
3390 function.
3391 (default_is_string_type_p): Make static, add comment copied from
3392 header file.
3393 (unknown_language_data): Delete la_is_string_type_p initializer.
3394 (unknown_language::is_string_type_p): New member function.
3395 (auto_language_data): Delete la_is_string_type_p initializer.
3396 (auto_language::is_string_type_p): New member function.
3397 * language.h (language_data): Delete la_is_string_type_p field.
3398 (language_defn::is_string_type_p): Declare new function.
3399 (default_is_string_type_p): Delete desclaration, move comment to
3400 definition.
3401 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3402 moved to m2_language::is_string_type_p.
3403 (m2_language_data): Delete la_is_string_type_p initializer.
3404 (m2_language::is_string_type_p): New member function,
3405 implementation from m2_is_string_type_p.
3406 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3407 initializer.
3408 * opencl-lang.c (opencl_language_data): Likewise.
3409 * p-lang.c (pascal_is_string_type_p): Delete function,
3410 implementation moved to pascal_language::is_string_type_p.
3411 (pascal_language_data): Delete la_is_string_type_p initializer.
3412 (pascal_language::is_string_type_p): New member function,
3413 implementation from pascal_is_string_type_p.
3414 * rust-lang.c (rust_is_string_type_p): Delete function,
3415 implementation moved to rust_language::is_string_type_p.
3416 (rust_language_data): Delete la_is_string_type_p initializer.
3417 (rust_language::is_string_type_p): New member function,
3418 implementation from rust_is_string_type_p.
3419 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3420 is_string_type_p.
3421
3422 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3423
3424 * ada-lang.c (ada_language_data): Delete la_print_typedef
3425 initializer.
3426 (ada_language::print_typedef): New member function.
3427 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3428 (cplus_language_data): Likewise.
3429 (asm_language_data): Likewise.
3430 (minimal_language_data): Likewise.
3431 * d-lang.c (d_language_data): Likewise.
3432 * f-lang.c (f_language_data): Likewise.
3433 (f_language::print_typedef): New member function.
3434 * go-lang.c (go_language_data): Delete la_print_typedef
3435 initializer.
3436 * language.c (language_defn::print_typedef): Define member
3437 function.
3438 (unknown_language_data): Delete la_print_typedef initializer.
3439 (unknown_language::print_typedef): New member function.
3440 (auto_language_data): Delete la_print_typedef initializer.
3441 (auto_language::print_typedef): New member function.
3442 * language.h (language_data): Delete la_print_typedef field.
3443 (language_defn::print_typedef): Declare new member function.
3444 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3445 (default_print_typedef): Delete declaration.
3446 * m2-lang.c (m2_language_data): Delete la_print_typedef
3447 initializer.
3448 (m2_language::print_typedef): New member function.
3449 * objc-lang.c (objc_language_data): Delete la_print_typedef
3450 initializer.
3451 * opencl-lang.c (opencl_language_data): Likewise.
3452 * p-lang.c (pascal_language_data): Likewise.
3453 (pascal_language::print_typedef): New member function.
3454 * rust-lang.c (rust_print_typedef): Delete function,
3455 implementation moved to rust_language::print_typedef.
3456 (rust_language): Delete la_print_typedef initializer.
3457 (rust_language::print_typedef): New member function,
3458 implementation from rust_print_typedef.
3459 * typeprint.c (default_print_typedef): Delete.
3460
3461 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3462
3463 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3464 (ada_language::printstr): New member function.
3465 * c-lang.c (c_language_data): Delete la_printstr initializer.
3466 (cplus_language_data): Likewise.
3467 (asm_language_data): Likewise.
3468 (minimal_language_data): Likewise.
3469 * d-lang.c (d_language_data): Likewise.
3470 * f-lang.c (f_printstr): Rename to f_language::printstr.
3471 (f_language_data): Delete la_printstr initializer.
3472 (f_language::printstr): New member function, implementation from
3473 f_printstr.
3474 * go-lang.c (go_language_data): Delete la_printstr initializer.
3475 * language.c (language_defn::printstr): Define new member
3476 function.
3477 (unk_lang_printstr): Delete.
3478 (unknown_language_data): Delete la_printstr initializer.
3479 (unknown_language::printstr): New member function.
3480 (auto_language_data): Delete la_printstr initializer.
3481 (auto_language::printstr): New member function.
3482 * language.h (language_data): Delete la_printstr field.
3483 (language_defn::printstr): Declare new member function.
3484 (LA_PRINT_STRING): Update call to printstr.
3485 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3486 (m2_language_data): Delete la_printstr initializer.
3487 (m2_language::printstr): New member function, implementation from
3488 m2_printstr.
3489 * objc-lang.c (objc_language_data): Delete la_printstr
3490 initializer.
3491 * opencl-lang.c (opencl_language_data): Likewise.
3492 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3493 (pascal_language_data): Delete la_printstr initializer.
3494 (pascal_language::printstr): New member function, implementation
3495 from pascal_printstr.
3496 * p-lang.h (pascal_printstr): Delete declaration.
3497 * rust-lang.c (rust_printstr): Update header comment.
3498 (rust_language_data): Delete la_printstr initializer.
3499 (rust_language::printstr): New member function.
3500
3501 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3504 (ada_language::printchar): New member function.
3505 * c-lang.c (c_language_data): Delete la_printchar initializer.
3506 (cplus_language_data): Likewise.
3507 (asm_language_data): Likewise.
3508 (minimal_language_data): Likewise.
3509 * d-lang.c (d_language_data): Likewise.
3510 * f-lang.c (f_printchar): Rename to f_language::printchar.
3511 (f_language_data): Delete la_printchar initializer.
3512 (f_language::printchar): New member function, implementation from
3513 f_printchar.
3514 * go-lang.c (go_language_data): Delete la_printchar initializer.
3515 * language.c (unk_lang_printchar): Delete.
3516 (language_defn::printchar): Define new member function.
3517 (unknown_language_data): Delete la_printchar initializer.
3518 (unknown_language::printchar): New member function.
3519 (auto_language_data): Delete la_printchar initializer.
3520 (auto_language::printchar): New member function.
3521 * language.h (language_data): Delete la_printchar field.
3522 (language_defn::printchar): Declare new member function.
3523 (LA_PRINT_CHAR): Update call to printchar.
3524 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3525 (m2_language::printchar): New member function.
3526 * objc-lang.c (objc_language_data): Delete la_printchar
3527 initializer.
3528 * opencl-lang.c (opencl_language_data): Likewise.
3529 * p-lang.c (pascal_language_data): Delete la_printchar
3530 initializer.
3531 (pascal_language::printchar): New member function.
3532 * rust-lang.c (rust_printchar): Rename to
3533 rust_language::printchar.
3534 (rust_language_data): Delete la_printchar initializer.
3535 (rust_language::printchar): New member function, implementation
3536 from rust_printchar.
3537
3538 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3539
3540 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3541 (ada_language_data): Delete la_emitchar initializer.
3542 (ada_language::emitchar): New member function, implementation from
3543 emit_char.
3544 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3545 (cplus_language_data): Likewise.
3546 (asm_language_data): Likewise.
3547 (minimal_language_data): Likewise.
3548 * d-lang.c (d_language_data): Likewise.
3549 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3550 (f_language_data): Delete la_emitchar initializer.
3551 (f_language::emitchar): New member function, implementation from
3552 f_emit_char.
3553 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3554 * language.c (unk_lang_emit_char): Delete.
3555 (language_defn::emitchar): New member function definition.
3556 (unknown_language_data): Delete la_emitchar initializer.
3557 (unknown_language::emitchar): New member function.
3558 (auto_language_data): Delete la_emitchar initializer.
3559 (auto_language::emitchar): New member function.
3560 * language.h (language_data): Delete la_emitchar field.
3561 (language_defn::emitchar): New member field declaration.
3562 (LA_EMIT_CHAR): Update call to emitchar.
3563 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3564 (m2_language_data): Delete la_emitchar initializer.
3565 (m2_language::emitchar): New member function, implementation from
3566 m2_emit_char.
3567 * objc-lang.c (objc_language_data): Delete la_emitchar
3568 initializer.
3569 * opencl-lang.c (opencl_language_data): Likewise.
3570 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3571 (pascal_language_data): Delete la_emitchar initializer.
3572 (pascal_language::emitchar): New member function, implementation
3573 from pascal_emit_char.
3574 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3575 (rust_language_data): Delete la_emitchar initializer.
3576 (rust_language::emitchar): New member function, implementation
3577 from rust_emitchar.
3578
3579 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3580
3581 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3582 (ada_language_data): Delete la_post_parser initializer.
3583 (ada_language::post_parser): New member function.
3584 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3585 (cplus_language_data): Likewise.
3586 (asm_language_data): Likewise.
3587 (minimal_language_data): Likewise.
3588 * d-lang.c (d_language_data): Likewise.
3589 * f-lang.c (f_language_data): Likewise.
3590 * go-lang.c (go_language_data): Likewise.
3591 * language.c (unknown_language_data): Likewise.
3592 (auto_language_data): Likewise.
3593 * language.h (language_data): Delete la_post_parser field.
3594 (language_defn::post_parser): New member function.
3595 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3596 * objc-lang.c (objc_language_data): Likewise.
3597 * opencl-lang.c (opencl_language_data): Likewise.
3598 * p-lang.c (pascal_language_data): Likewise.
3599 * parse.c (parse_exp_in_context): Update call to post_parser.
3600 (null_post_parser): Delete definition.
3601 * parser-defs.h (null_post_parser): Delete declaration.
3602 * rust-lang.c (rust_language_data): Delete la_post_parser
3603 initializer.
3604
3605 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3606
3607 * ada-lang.c (parse): Rename to ada_language::parser.
3608 (ada_language_data): Delete la_parser initializer.
3609 (ada_language::parser): New member function, implementation from
3610 parse.
3611 * c-lang.c (c_language_data): Delete la_parser initializer.
3612 (cplus_language_data): Likewise.
3613 (asm_language_data): Likewise.
3614 (minimal_language_data): Likewise.
3615 * d-lang.c (d_language_data): Likewise.
3616 (d_language::parser): New member function.
3617 * f-lang.c (f_language_data): Delete la_parser initializer.
3618 (f_language::parser): New member function.
3619 * go-lang.c (go_language_data): Delete la_parser initializer.
3620 (go_language::parser): New member function.
3621 * language.c (unk_lang_parser): Delete.
3622 (language_defn::parser): Define new member function.
3623 (unknown_language_data): Delete la_parser initializer.
3624 (unknown_language::parser): New member function.
3625 (auto_language_data): Delete la_parser initializer.
3626 (auto_language::parser): New member function.
3627 * language.h (language_data): Delete la_parser field.
3628 (language_defn::parser): Declare new member function.
3629 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3630 (m2_language::parser): New member function.
3631 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3632 * opencl-lang.c (opencl_language_data): Likewise.
3633 * p-lang.c (pascal_language_data): Likewise.
3634 (pascal_language::parser): New member function.
3635 * parse.c (parse_exp_in_context): Update call to parser.
3636 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3637 (rust_language::parser): New member function.
3638
3639 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3640
3641 * top.c (print_gdb_configuration): Print --with-python-libdir
3642 configuration value.
3643
3644 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3645
3646 * NEWS: Mention change to the alias command.
3647
3648 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3649
3650 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3651 (alias_command_completer)
3652 (make_alias_options_def_group): New functions.
3653 (alias_opts, alias_option_defs): New struct and array.
3654 (alias_usage_error): Update usage.
3655 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3656 Use option framework.
3657 (_initialize_cli_cmds): Update alias command help.
3658 Update aliases command help.
3659 (show_user):
3660 Add NULL for new default_args lookup_cmd argument.
3661 (valid_command_p): Rename to validate_aliased_command.
3662 Add NULL for new default_args lookup_cmd argument. Verify that the
3663 aliased_command has no default args.
3664 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3665 (lookup_cmd_1, lookup_cmd): New argument default_args.
3666 (add_alias_cmd):
3667 Add NULL for new default_args lookup_cmd argument.
3668 (print_help_for_command): Show default args under the layout
3669 alias some_alias = some_aliased_cmd some_alias_default_arg.
3670 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3671 xfree default_args in destructor.
3672 * cli/cli-script.c (process_next_line, do_define_command):
3673 Add NULL for new default_args lookup_cmd argument.
3674 * command.h: Declare new default_args argument in lookup_cmd
3675 and lookup_cmd_1.
3676 * completer.c (complete_line_internal_1):
3677 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3678 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3679 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3680 Likewise.
3681 * infcmd.c (_initialize_infcmd): Likewise.
3682 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3683 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3684 * python/py-param.c (add_setshow_generic): Likewise.
3685 * remote.c (_initialize_remote): Likewise.
3686 * top.c (execute_command): Prepend default_args if command has some.
3687 (set_verbose):
3688 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3689 * tracepoint.c (validate_actionline, encode_actions_1):
3690 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3691
3692 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3693
3694 * jit.c (jit_read_descriptor): Use bool as the return type.
3695 (jit_breakpoint_re_set_internal): Use bool as the return type.
3696 Invert the return value logic; return true if the jit breakpoint
3697 has been successfully initialized.
3698 (jit_inferior_init): Update the call to
3699 jit_breakpoint_re_set_internal.
3700
3701 2020-06-22 Pedro Alves <palves@redhat.com>
3702
3703 PR gdb/25939
3704 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3705 Use the current inferior instead. Don't return
3706 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3707 wait again.
3708 * sol-thread.c (sol_thread_target::wait): Don't reference
3709 inferior_ptid.
3710 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3711 (sol_update_thread_list_callback): Use the current inferior's pid
3712 instead of inferior_ptid.
3713
3714 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3715
3716 * procfs.c: Cleanup many comments.
3717
3718 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3719 (AFTER_WATCHFLAG): Replace by value.
3720
3721 (MAIN_PROC_NAME_FORMAT): Inline ...
3722 (create_procinfo): ... here.
3723
3724 (procfs_debug_inferior): Remove SYS_exec handling.
3725 (syscall_is_exec): Likewise.
3726 (procfs_set_exec_trap): Likewise.
3727
3728 (syscall_is_lwp_exit): Inline in callers.
3729 (syscall_is_exit): Likewise.
3730 (syscall_is_exec): Likewise.
3731 (syscall_is_lwp_create): Likewise.
3732
3733 (invalidate_cache): Remove #if 0 code.
3734
3735 (make_signal_thread_runnable): Remove.
3736 (procfs_target::resume): Remove #if 0 code.
3737
3738 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3739
3740 PR gdb/25939
3741 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3742 call ...
3743 (procfs_target::create_inferior): ... here.
3744
3745 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3746
3747 * exec.c (validate_exec_file): Ensure the build-id is up to
3748 date by calling reopen_exec_file (that checks file timestamp
3749 to decide to re-read the file).
3750
3751 2020-06-18 Pedro Alves <palves@redhat.com>
3752
3753 PR gdb/25412
3754 * gdbthread.h (delete_thread, delete_thread_silent)
3755 (find_thread_ptid): Update comments.
3756 * thread.c (current_thread_): New global.
3757 (is_current_thread): Move higher, and reimplement.
3758 (inferior_thread): Reimplement.
3759 (set_thread_exited): Use bool. Add assertions.
3760 (add_thread_silent): Simplify thread-reuse handling by always
3761 calling delete_thread.
3762 (delete_thread): Remove intro comment.
3763 (find_thread_ptid): Skip exited threads.
3764 (switch_to_thread_no_regs): Write to current_thread_.
3765 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3766 INFERIOR_PTID. Clear current_thread_.
3767
3768 2020-06-18 Pedro Alves <palves@redhat.com>
3769
3770 * aix-thread.c (pd_update): Use switch_to_thread.
3771
3772 2020-06-18 Pedro Alves <palves@redhat.com>
3773
3774 * ravenscar-thread.c (ravenscar_thread_target): Update.
3775 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3776 (ravenscar_thread_target::add_active_thread): ... this. Don't
3777 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3778 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3779
3780 2020-06-18 Pedro Alves <palves@redhat.com>
3781
3782 * nat/windows-nat.c (current_windows_thread): Remove.
3783 * nat/windows-nat.h (current_windows_thread): Remove.
3784 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3785 Adjust.
3786 (display_selectors): Adjust to fetch the current
3787 windows_thread_info based on inferior_ptid.
3788 (fake_create_process): No longer write to current_windows_thread.
3789 (windows_nat_target::get_windows_debug_event):
3790 Don't set inferior_ptid or current_windows_thread.
3791 (windows_nat_target::wait): Adjust to not rely on
3792 current_windows_thread.
3793 (do_initial_windows_stuff): Now a method of windows_nat_target.
3794 Switch to the last_ptid thread.
3795 (windows_nat_target::attach): Adjust.
3796 (windows_nat_target::detach): Use switch_to_no_thread instead of
3797 writing to inferior_ptid directly.
3798 (windows_nat_target::create_inferior): Adjust.
3799
3800 2020-06-18 Pedro Alves <palves@redhat.com>
3801
3802 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3803
3804 2020-06-18 Pedro Alves <palves@redhat.com>
3805
3806 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3807 after creating it, instead of writing to inferior_ptid. Don't
3808 write to inferior_ptid.
3809
3810 2020-06-18 Pedro Alves <palves@redhat.com>
3811
3812 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3813
3814 2020-06-18 Pedro Alves <palves@redhat.com>
3815
3816 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3817 it, instead of writing to inferior_ptid.
3818
3819 2020-06-18 Pedro Alves <palves@redhat.com>
3820
3821 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3822 to inferior_ptid.
3823
3824 2020-06-18 Pedro Alves <palves@redhat.com>
3825
3826 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3827 instead of writing to inferior_ptid directly.
3828
3829 2020-06-18 Pedro Alves <palves@redhat.com>
3830
3831 * corelow.c (core_target::close): Use switch_to_no_thread instead
3832 of writing to inferior_ptid directly.
3833 (add_to_thread_list, core_target_open): Use switch_to_thread
3834 instead of writing to inferior_ptid directly.
3835
3836 2020-06-18 Pedro Alves <palves@redhat.com>
3837
3838 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3839 inferior_ptid.
3840 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3841 inferior_ptid.
3842 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3843 inferior_ptid directly.
3844 (darwin_nat_target::init_thread_list): Switch to thread, instead
3845 of writing to inferior_ptid.
3846 (darwin_nat_target::attach): Don't write to inferior_ptid.
3847 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3848
3849 2020-06-18 Pedro Alves <palves@redhat.com>
3850
3851 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3852 thread.
3853 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3854 Instead use switch_to_thread.
3855 (gnu_nat_target::detach): Use switch_to_no_thread
3856 instead of writing to inferior_ptid directly. Used passed-in
3857 inferior instead of looking up the inferior by pid.
3858
3859 2020-06-18 Pedro Alves <palves@redhat.com>
3860
3861 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3862 inferior_ptid.
3863
3864 2020-06-18 Pedro Alves <palves@redhat.com>
3865
3866 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3867 inferior_ptid.
3868 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3869 thread.
3870 (nto_procfs_target::detach): Avoid referencing
3871 inferior_ptid. Use switch_to_no_thread instead of writing to
3872 inferior_ptid directly.
3873 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3874 instead of writing to inferior_ptid directly.
3875 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3876 to thread.
3877
3878 2020-06-18 Pedro Alves <palves@redhat.com>
3879
3880 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3881 after creating it, instead of writing to inferior_ptid.
3882 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3883 to inferior_ptid directly.
3884 (gdbsim_target::wait): Don't write to inferior_ptid.
3885
3886 2020-06-18 Pedro Alves <palves@redhat.com>
3887
3888 * remote.c (remote_target::remote_notice_new_inferior): Use
3889 switch_to_thread instead of writing to inferior_ptid directly.
3890 (remote_target::add_current_inferior_and_thread): Use
3891 switch_to_no_thread instead of writing to inferior_ptid directly.
3892 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3893 and switch_to_thread instead of using set_current_inferior or
3894 writing to inferior_ptid directly.
3895
3896 2020-06-18 Pedro Alves <palves@redhat.com>
3897
3898 * tracectf.c (ctf_target_open): Switch to added thread instead of
3899 writing to inferior_ptid directly.
3900 (ctf_target::close): Use switch_to_no_thread instead of writing to
3901 inferior_ptid directly.
3902
3903 2020-06-18 Pedro Alves <palves@redhat.com>
3904
3905 * tracefile-tfile.c (tfile_target_open): Don't write to
3906 inferior_ptid directly, instead switch to added thread.
3907 (tfile_target::close): Use switch_to_no_thread instead of writing
3908 to inferior_ptid directly.
3909
3910 2020-06-18 Pedro Alves <palves@redhat.com>
3911
3912 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3913 (procfs_target::detach): Use switch_to_no_thread
3914 instead of writing to inferior_ptid directly.
3915 (do_attach): Change return type to void. Switch to the added
3916 thread.
3917 (procfs_target::create_inferior): Switch to the added thread.
3918 (procfs_do_thread_registers): Don't write to inferior_ptid.
3919
3920 2020-06-18 Pedro Alves <palves@redhat.com>
3921
3922 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3923 of writing to inferior_ptid.
3924 (scoped_restore_exited_inferior): Delete.
3925 (handle_vfork_child_exec_or_exit): Simplify using
3926 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3927 instead of writing to inferior_ptid.
3928 (THREAD_STOPPED_BY): Delete.
3929 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3930 (thread_stopped_by_hw_breakpoint): Delete.
3931 (save_waitstatus): Use
3932 scoped_restore_current_thread+switch_to_thread, and call
3933 target_stopped_by_watchpoint instead of
3934 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3935 instead of thread_stopped_by_sw_breakpoint, and
3936 target_stopped_by_hw_breakpoint instead of
3937 thread_stopped_by_hw_breakpoint.
3938 (handle_inferior_event)
3939 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3940 inferior_ptid directly, nor
3941 set_current_inferior/set_current_program_space. Use
3942 switch_to_thread / switch_to_inferior_no_thread instead.
3943
3944 2020-06-18 Pedro Alves <palves@redhat.com>
3945
3946 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3947 instead of writing to inferior_ptid.
3948
3949 2020-06-18 Pedro Alves <palves@redhat.com>
3950
3951 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3952 added thread.
3953 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3954 to the added thread.
3955 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3956 instead of writing to inferior_ptid.
3957
3958 2020-06-18 Pedro Alves <palves@redhat.com>
3959
3960 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3961 (register_to_value_test): Mock a program_space too. Heap-allocate
3962 the address space. Don't write to inferior_ptid. Use
3963 switch_to_thread instead.
3964
3965 2020-06-18 Pedro Alves <palves@redhat.com>
3966
3967 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3968 Delete.
3969 (find_signalled_thread()): New, factored out from
3970 linux_make_corefile_notes and adjusted to handle exited threads.
3971 (linux_make_corefile_notes): Adjust to use the new
3972 find_signalled_thread.
3973
3974 2020-06-18 Pedro Alves <palves@redhat.com>
3975
3976 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3977 of saving/restoring inferior_ptid.
3978
3979 2020-06-17 Tom Tromey <tom@tromey.com>
3980
3981 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3982 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3983 declare.
3984 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3985
3986 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3989 of partial symtabs.
3990
3991 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3992
3993 * regformats/reg-arm.dat: Remove.
3994 * regformats/reg-bfin.dat: Remove.
3995 * regformats/reg-cris.dat: Remove.
3996 * regformats/reg-crisv32.dat: Remove.
3997 * regformats/reg-m32r.dat: Remove.
3998 * regformats/reg-tilegx.dat: Remove.
3999 * regformats/reg-tilegx32.dat: Remove.
4000
4001 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * features/Makefile (WHICH): Remove arm files.
4004 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4005 * regformats/arm/arm-with-neon.dat: Remove.
4006 * regformats/arm/arm-with-vfpv2.dat: Remove.
4007 * regformats/arm/arm-with-vfpv3.dat: Remove.
4008
4009 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * features/Makefile (XMLTOC): Remove rx.xml.
4012
4013 2020-06-17 Pedro Alves <palves@redhat.com>
4014
4015 * gdbthread.h (thread_control_state) <trap_expected> Update
4016 comments.
4017
4018 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4019
4020 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4021 ada_language::lookup_symbol_nonlocal.
4022 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4023 (ada_language::lookup_symbol_nonlocal): New member function,
4024 implementation from ada_lookup_symbol_nonlocal.
4025 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4026 initializer.
4027 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4028 initializer.
4029 (cplus_language::lookup_symbol_nonlocal): New member function.
4030 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4031 (minimal_language_data) Likewise.
4032 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4033 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4034 initializer.
4035 (d_language::lookup_symbol_nonlocal): New member function.
4036 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4037 initializer.
4038 (f_language::lookup_symbol_nonlocal): New member function.
4039 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4040 initializer.
4041 * language.c (unknown_language_data): Likewise.
4042 (auto_language_data): Likewise.
4043 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4044 field.
4045 (language_defn::lookup_symbol_nonlocal): New member function.
4046 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4047 initializer.
4048 * objc-lang.c (objc_language_data): Likewise.
4049 * opencl-lang.c (opencl_language_data): Likewise.
4050 * p-lang.c (pascal_language_data): Likewise.
4051 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4052 rust_language::lookup_symbol_nonlocal.
4053 (rust_language_data): Delete la_lookup_symbol_nonlocal
4054 initializer.
4055 (rust_language::lookup_symbol_nonlocal): New member function,
4056 implementation from rust_lookup_symbol_nonlocal.
4057 * symtab.c (lookup_symbol_aux): Update call to
4058 lookup_symbol_nonlocal.
4059 (basic_lookup_symbol_nonlocal): Rename to...
4060 (language_defn::lookup_symbol_nonlocal): ...this, and update
4061 header comment. Remove language_defn parameter, and replace with
4062 uses of `this'.
4063 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4064
4065 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4066
4067 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4068 initializer.
4069 (ada_language::value_print_inner): New member function.
4070 * c-lang.c (c_language_data): Delete la_value_print_inner
4071 initializer.
4072 (cplus_language_data): Likewise.
4073 (asm_language_data): Likewise.
4074 (minimal_language_data): Likewise.
4075 * d-lang.c (d_language_data): Likewise.
4076 (d_language::value_print_inner): New member function.
4077 * f-lang.c (f_language_data): Delete la_value_print_inner
4078 initializer.
4079 (f_language::value_print_inner): New member function.
4080 * f-lang.h (f_value_print_innner): Rename to...
4081 (f_value_print_inner): ...this (note spelling of 'inner').
4082 * f-valprint.c (f_value_print_innner): Rename to...
4083 (f_value_print_inner): ...this (note spelling of 'inner').
4084 * go-lang.c (go_language_data): Delete la_value_print_inner
4085 initializer.
4086 (go_language::value_print_inner): New member function.
4087 * language.c (language_defn::value_print_inner): Define new member
4088 function.
4089 (unk_lang_value_print_inner): Delete.
4090 (unknown_language_data): Delete la_value_print_inner initializer.
4091 (unknown_language::value_print_inner): New member function.
4092 (auto_language_data): Delete la_value_print_inner initializer.
4093 (auto_language::value_print_inner): New member function.
4094 * language.h (language_data): Delete la_value_print_inner field.
4095 (language_defn::value_print_inner): Delcare new member function.
4096 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4097 initializer.
4098 (m2_language::value_print_inner): New member function.
4099 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4100 initializer.
4101 * opencl-lang.c (opencl_language_data): Likewise.
4102 * p-lang.c (pascal_language_data): Likewise.
4103 (pascal_language::value_print_inner): New member function.
4104 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4105 initializer.
4106 (rust_language::value_print_inner): New member function.
4107 * valprint.c (do_val_print): Update call to value_print_inner.
4108
4109 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4110
4111 * ada-lang.c (ada_language_data): Delete la_value_print
4112 initializer.
4113 (ada_language::value_print): New member function.
4114 * c-lang.c (c_language_data): Delete la_value_print initializer.
4115 (cplus_language_data): Likewise.
4116 (asm_language_data): Likewise.
4117 (minimal_language_data): Likewise.
4118 * d-lang.c (d_language_data): Likewise.
4119 * f-lang.c (f_language_data): Likewise.
4120 * go-lang.c (go_language_data): Likewise.
4121 * language.c (unk_lang_value_print): Delete.
4122 (language_defn::value_print): Define new member function.
4123 (unknown_language_data): Delete la_value_print initializer.
4124 (unknown_language::value_print): New member function.
4125 (auto_language_data): Delete la_value_print initializer.
4126 (auto_language::value_print): New member function.
4127 * language.h (language_data): Delete la_value_print field.
4128 (language_defn::value_print): Declare new member function.
4129 (LA_VALUE_PRINT): Update call to value_print.
4130 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4131 * objc-lang.c (objc_language_data): Likewise.
4132 * opencl-lang.c (opencl_language_data): Likewise.
4133 * p-lang.c (pascal_language_data): Likewise.
4134 (pascal_language::value_print): New member function.
4135 * rust-lang.c (rust_language_data): Delete la_value_print
4136 initializer.
4137
4138 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4139
4140 * ada-lang.c (ada_watch_location_expression): Rename to
4141 ada_language::watch_location_expression.
4142 (ada_language_data): Delete la_watch_location_expression
4143 initializer.
4144 (ada_language::watch_location_expression): New member function,
4145 implementation from ada_watch_location_expression.
4146 * breakpoint.c (watch_command_1): Update call to
4147 watch_location_expression.
4148 * c-lang.c (c_watch_location_expression): Rename to
4149 language_defn::watch_location_expression.
4150 (c_language_data): Delete la_watch_location_expression
4151 initializer.
4152 (cplus_language_data): Likewise.
4153 (asm_language_data): Likewise.
4154 (minimal_language_data): Likewise.
4155 * c-lang.h (c_watch_location_expression): Delete declaration.
4156 * d-lang.c (d_language_data): Delete la_watch_location_expression
4157 initializer.
4158 * f-lang.c (f_language_data): Likewise.
4159 * go-lang.c (go_language_data): Likewise.
4160 * language.c (language_defn::watch_location_expression): Member
4161 function implementation from c_watch_location_expression.
4162 (unknown_language_data): Delete la_watch_location_expression
4163 initializer.
4164 (auto_language_data): Likewise.
4165 * language.h (language_data): Delete la_watch_location_expression
4166 field.
4167 (language_defn::watch_location_expression): Declare new member
4168 function.
4169 * m2-lang.c (m2_language_data): Delete
4170 la_watch_location_expression initializer.
4171 * objc-lang.c (objc_language_data): Likewise.
4172 * opencl-lang.c (opencl_language_data): Likewise.
4173 * p-lang.c (pascal_language_data): Likewise.
4174 * rust-lang.c (rust_watch_location_expression): Rename to
4175 rust_language::watch_location_expression.
4176 (rust_language_data): Delete la_watch_location_expression
4177 initializer.
4178 (rust_language::watch_location_expression): New member function,
4179 implementation from rust_watch_location_expression.
4180
4181 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4182
4183 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4184 ada_language::collect_symbol_completion_matches.
4185 (ada_language_data): Delete la_collect_symbol_completion_matches
4186 initializer.
4187 (ada_language::collect_symbol_completion_matches): New member
4188 function, implementation from
4189 ada_collect_symbol_completion_matches.
4190 * c-lang.c (c_language_data): Delete
4191 la_collect_symbol_completion_matches initializer.
4192 (cplus_language_data): Likewise.
4193 (asm_language_data): Likewise.
4194 (minimal_language_data): Likewise.
4195 * d-lang.c (d_language_data): Likewise.
4196 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4197 f_language::collect_symbol_completion_matches.
4198 (f_language_data): Delete la_collect_symbol_completion_matches
4199 initializer.
4200 (f_language::collect_symbol_completion_matches) New member
4201 function, implementation from f_collect_symbol_completion_matches.
4202 * go-lang.c (go_language_data): Delete
4203 la_collect_symbol_completion_matches initializer.
4204 * language.c (unknown_language_data): Likewise.
4205 (auto_language_data): Likewise.
4206 * language.h (language_data): Delete
4207 la_collect_symbol_completion_matches field.
4208 (language_defn::collect_symbol_completion_matches): New member
4209 function.
4210 * m2-lang.c (m2_language_data): Delete
4211 la_collect_symbol_completion_matches initializer.
4212 * objc-lang.c (objc_language_data): Likewise.
4213 * opencl-lang.c (opencl_language_data): Likewise.
4214 * p-lang.c (pascal_language_data): Likewise.
4215 * rust-lang.c (rust_language_data): Likewise.
4216 * symtab.c (default_collect_symbol_completion_matches): Delete.
4217 (collect_symbol_completion_matches): Update call to
4218 collect_symbol_completion_matches.
4219 (collect_symbol_completion_matches_type): Likewise.
4220 * symtab.h (default_collect_symbol_completion_matches): Delete
4221 declaration.
4222
4223 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4224
4225 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4226 (ada_language_data): Delete la_word_break_characters initializer.
4227 (ada_language::word_break_characters): New member function.
4228 * c-lang.c (c_language_data): Delete la_word_break_characters
4229 initializer.
4230 (cplus_language_data): Likewise.
4231 (asm_language_data): Likewise.
4232 (minimal_language_data): Likewise.
4233 * completer.c: Update global comment.
4234 (advance_to_expression_complete_word_point): Update call to
4235 word_break_characters.
4236 (complete_files_symbols): Likewise.
4237 (complete_line_internal_1): Likewise.
4238 (default_completer_handle_brkchars): Likewise.
4239 (skip_quoted_chars): Likewise.
4240 * d-lang.c (d_language_data): Delete la_word_break_characters
4241 initializer.
4242 * f-lang.c (f_word_break_characters): Delete.
4243 (f_language_data): Delete la_word_break_characters initializer.
4244 (f_language::word_break_characters): New member function.
4245 * go-lang.c (go_language_data): Delete la_word_break_characters
4246 initializer.
4247 * language.c (unknown_language_data): Likewise.
4248 (auto_language_data): Likewise.
4249 * language.h (default_word_break_characters): Move declaration to
4250 earlier in the file.
4251 (language_data): Delete la_word_break_characters field.
4252 (language_defn::word_break_characters): New member function.
4253 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4254 initializer.
4255 * objc-lang.c (objc_language_data): Likewise.
4256 * opencl-lang.c (opencl_language_data): Likewise.
4257 * p-lang.c (pascal_language_data): Likewise.
4258 * rust-lang.c (rust_language_data): Likewise.
4259
4260 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4261
4262 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4263 (ada_language_data): Delete la_get_symbol_name_matcher
4264 initializer.
4265 (language_defn::get_symbol_name_matcher_inner): New member
4266 function.
4267 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4268 initializer.
4269 (cplus_language_data): Likewise.
4270 (cplus_language::get_symbol_name_matcher_inner): New member
4271 function.
4272 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4273 (minimal_language_data): Likewise.
4274 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4275 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4276 initializer.
4277 * dictionary.c (iter_match_first_hashed): Update call to
4278 get_symbol_name_matcher.
4279 (iter_match_next_hashed): Likewise.
4280 (iter_match_next_linear): Likewise.
4281 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4282 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4283 initializer.
4284 (f_language::get_symbol_name_matcher_inner): New member function.
4285 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4286 initializer.
4287 * language.c (default_symbol_name_matcher): Update header comment,
4288 make static.
4289 (language_defn::get_symbol_name_matcher): New definition.
4290 (language_defn::get_symbol_name_matcher_inner): Likewise.
4291 (get_symbol_name_matcher): Delete.
4292 (unknown_language_data): Delete la_get_symbol_name_matcher
4293 initializer.
4294 (auto_language_data): Likewise.
4295 * language.h (language_data): Delete la_get_symbol_name_matcher
4296 field.
4297 (language_defn::get_symbol_name_matcher): New member function.
4298 (language_defn::get_symbol_name_matcher_inner): Likewise.
4299 (default_symbol_name_matcher): Delete declaration.
4300 * linespec.c (find_methods): Update call to
4301 get_symbol_name_matcher.
4302 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4303 initializer.
4304 * minsyms.c (lookup_minimal_symbol): Update call to
4305 get_symbol_name_matcher.
4306 (iterate_over_minimal_symbols): Likewise.
4307 * objc-lang.c (objc_language_data): Delete
4308 la_get_symbol_name_matcher initializer.
4309 * opencl-lang.c (opencl_language_data): Likewise.
4310 * p-lang.c (pascal_language_data): Likewise.
4311 * psymtab.c (psymbol_name_matches): Update call to
4312 get_symbol_name_matcher.
4313 * rust-lang.c (rust_language_data): Delete
4314 la_get_symbol_name_matcher initializer.
4315 * symtab.c (symbol_matches_search_name): Update call to
4316 get_symbol_name_matcher.
4317 (compare_symbol_name): Likewise.
4318
4319 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4320
4321 * ada-lang.c (ada_language_data): Delete la_compute_program
4322 initializer.
4323 * c-lang.c (c_language_data): Likewise.
4324 (c_language::compute_program): New member function.
4325 (cplus_language_data): Delete la_compute_program initializer.
4326 (cplus_language::compute_program): New member function.
4327 (asm_language_data): Delete la_compute_program initializer.
4328 (minimal_language_data): Likewise.
4329 * c-lang.h (c_compute_program): Update comment.
4330 (cplus_compute_program): Likewise.
4331 * compile/compile-c-support.c (c_compute_program): Likewise.
4332 (cplus_compute_program): Likewise.
4333 * compile/compile.c (compile_to_object): Update call to
4334 la_compute_program.
4335 * d-lang.c (d_language_data): Delete la_compute_program
4336 initializer.
4337 * f-lang.c (f_language_data): Likewise.
4338 * go-lang.c (go_language_data): Likewise.
4339 * language.c (unknown_language_data): Likewise.
4340 (auto_language_data): Likewise.
4341 * language.h (language_data): Delete la_compute_program field.
4342 (language_defn::compute_program): New member function.
4343 * m2-lang.c (m2_language_data): Delete la_compute_program
4344 initializer.
4345 * objc-lang.c (objc_language_data): Likewise.
4346 * opencl-lang.c (opencl_language_data): Likewise.
4347 * p-lang.c (pascal_language_data): Likewise.
4348 * rust-lang.c (rust_language_data): Likewise.
4349
4350 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4351
4352 * ada-lang.c (ada_language_data) Delete
4353 la_class_name_from_physname initializer.
4354 * c-lang.c (c_language_data): Likewise.
4355 (cplus_language_data): Likewise.
4356 (cplus_language::class_name_from_physname): New member function.
4357 (asm_language_data): Delete la_class_name_from_physname
4358 initializer.
4359 (minimal_language_data): Likewise.
4360 * d-lang.c (d_language_data): Likewise.
4361 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4362 method on language_defn class.
4363 (guess_full_die_structure_name): Likewise.
4364 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4365 initializer.
4366 * go-lang.c (go_language_data): Likewise.
4367 * language.c (language_class_name_from_physname): Delete.
4368 (unk_lang_class_name): Delete.
4369 (unknown_language_data): Delete la_class_name_from_physname
4370 initializer.
4371 (auto_language_data): Likewise.
4372 * language.h (language_data): Delete la_class_name_from_physname
4373 field.
4374 (language_defn::class_name_from_physname): New function.
4375 (language_class_name_from_physname): Delete declaration.
4376 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4377 initializer.
4378 * objc-lang.c (objc_language_data): Likewise.
4379 * opencl-lang.c (opencl_language_data): Likewise.
4380 * p-lang.c (pascal_language_data): Likewise.
4381 * rust-lang.c (rust_language_data): Likewise.
4382
4383 2020-06-16 Tom Tromey <tom@tromey.com>
4384
4385 * tui/tui-data.h (STATUS_NAME): New macro.
4386 * tui/tui-layout.c (tui_remove_some_windows)
4387 (initialize_known_windows, tui_register_window)
4388 (tui_layout_split::remove_windows, initialize_layouts)
4389 (tui_new_layout_command): Don't use hard-coded window names.
4390
4391 2020-06-16 Tom Tromey <tom@tromey.com>
4392
4393 PR tui/25348:
4394 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4395 tui_initialize_readline. Only run once. Call rl_initialize.
4396 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4397 tui_initialize_readline.
4398 * tui/tui-io.c (tui_setup_io): Call
4399 tui_ensure_readline_initialized.
4400 * tui/tui-interp.c (tui_interp::init): Update.
4401
4402 2020-06-16 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4405 Also preserve the status window.
4406
4407 2020-06-16 Tom Tromey <tom@tromey.com>
4408
4409 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4410 where m_window==nullptr.
4411
4412 2020-06-15 Tom Tromey <tromey@adacore.com>
4413
4414 * windows-nat.c (windows_nat::handle_output_debug_string):
4415 Update.
4416 (windows_nat::handle_ms_vc_exception): Update.
4417 * target.h (target_read_string): Change API.
4418 * target.c (target_read_string): Change API.
4419 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4420 Update.
4421 * solib-frv.c (frv_current_sos): Update.
4422 * solib-dsbt.c (dsbt_current_sos): Update.
4423 * solib-darwin.c (darwin_current_sos): Update.
4424 * linux-thread-db.c (inferior_has_bug): Update.
4425 * expprint.c (print_subexp_standard): Update.
4426 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4427 (ada_exception_message_1): Update.
4428
4429 2020-06-15 Tom Tromey <tromey@adacore.com>
4430
4431 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4432
4433 2020-06-15 Tom Tromey <tromey@adacore.com>
4434
4435 * valprint.c (read_string): Update comment.
4436 * target.c (MIN): Remove.
4437 (target_read_string): Rewrite.
4438
4439 2020-06-15 Tom Tromey <tromey@adacore.com>
4440
4441 * corefile.c (read_memory_string): Remove.
4442 * ada-valprint.c (ada_value_print_ptr): Update.
4443 * ada-lang.h (ada_tag_name): Change return type.
4444 * ada-lang.c (type_from_tag): Update.
4445 (ada_tag_name_from_tsd): Change return type. Use
4446 target_read_string.
4447 (ada_tag_name): Likewise.
4448 * gdbcore.h (read_memory_string): Don't declare.
4449
4450 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4451
4452 * symtab.c (rbreak_command): Ignore Windows drive colon.
4453
4454 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4455
4456 * NEWS: Mention removed GDBserver host support.
4457
4458 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4459
4460 * features/riscv/rebuild-csr-xml.sh: Updated.
4461
4462 2020-06-11 Tom Tromey <tom@tromey.com>
4463
4464 PR gdb/18318:
4465 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4466
4467 2020-06-09 Jonny Grant <jg@jguk.org>
4468 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4469
4470 * main.c (captured_main_1): Don't print new line after help.
4471 (print_gdb_help): add mailing list and IRC channel information
4472 to --help. Add new lines between items in the footer. Remove
4473 quotes around bug url.
4474
4475 2020-06-11 Keith Seitz <keiths@redhat.com>
4476
4477 PR gdb/21356
4478 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4479 Resolve typedefs for type length calculations.
4480
4481 2020-06-10 Tom de Vries <tdevries@suse.de>
4482
4483 PR ada/24713
4484 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4485 (write_psymbols): Enable .gdb_index for ada.
4486 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4487 ada.
4488
4489 2020-06-10 Tom de Vries <tdevries@suse.de>
4490
4491 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4492 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4493 namei" instead of "const char *name" argument.
4494 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4495 dw2_symtab_iter_init.
4496
4497 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4498
4499 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4500 to use type::field and field::type instead.
4501
4502 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4503
4504 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4505 to use field::type instead.
4506
4507 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * gdbtypes.h (struct field) <type, set_type>: New methods.
4510 Rename `type` field to...
4511 <m_type>: ... this. Change references throughout to use type or
4512 set_type methods.
4513 (FIELD_TYPE): Use field::type. Change call sites that modify
4514 the field's type to use field::set_type instead.
4515
4516 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4519 to use type::index_type instead.
4520
4521 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4522
4523 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4524 methods.
4525 (TYPE_INDEX_TYPE): Use type::index_type.
4526 * gdbtypes.c (create_array_type_with_stride): Likewise.
4527
4528 2020-06-07 Tom Tromey <tom@tromey.com>
4529
4530 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4531 parameter.
4532 (generic_value_print): Update.
4533
4534 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4535
4536 Revert commit 982a38f60b0.
4537 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4538
4539 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4540
4541 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4542 avoid use after free.
4543
4544 2020-06-05 Tom de Vries <tdevries@suse.de>
4545
4546 * NEWS: Fix typos.
4547
4548 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4551 the per_bfd object.
4552 (dwarf2_read_debug_names): Likewise.
4553 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4554 object when re-using a per_bfd object with an index.
4555
4556 2020-06-03 Tom de Vries <tdevries@suse.de>
4557
4558 PR symtab/26046
4559 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4560 children for C++.
4561 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4562 DW_TAG_subprogram.
4563
4564 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4565
4566 * ada-lang.c (ada_language_data): Delete skip_trampoline
4567 initializer.
4568 * c-lang.c (c_language_data): Likewise.
4569 (cplus_language_data): Likewise.
4570 (cplus_language::skip_trampoline): New member function.
4571 (asm_language_data): Delete skip_trampoline initializer.
4572 (minimal_language_data): Likewise.
4573 * d-lang.c (d_language_data): Likewise.
4574 * f-lang.c (f_language_data): Likewise.
4575 * go-lang.c (go_language_data): Likewise.
4576 * language.c (unk_lang_trampoline): Delete function.
4577 (skip_language_trampoline): Update.
4578 (unknown_language_data): Delete skip_trampoline initializer.
4579 (auto_language_data): Likewise.
4580 * language.h (language_data): Delete skip_trampoline field.
4581 (language_defn::skip_trampoline): New function.
4582 * m2-lang.c (m2_language_data): Delete skip_trampoline
4583 initializer.
4584 * objc-lang.c (objc_skip_trampoline): Delete function, move
4585 implementation to objc_language::skip_trampoline.
4586 (objc_language_data): Delete skip_trampoline initializer.
4587 (objc_language::skip_trampoline): New member function with
4588 implementation from objc_skip_trampoline.
4589 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4590 initializer.
4591 * p-lang.c (pascal_language_data): Likewise.
4592 * rust-lang.c (rust_language_data): Likewise.
4593
4594 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4595
4596 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4597 (ada_language::demangle): New member function.
4598 * c-lang.c (c_language_data): Delete la_demangle initializer.
4599 (cplus_language_data): Delete la_demangle initializer.
4600 (cplus_language::demangle): New member function.
4601 (asm_language_data): Delete la_demangle initializer.
4602 (minimal_language_data): Delete la_demangle initializer.
4603 * d-lang.c (d_language_data): Delete la_demangle initializer.
4604 (d_language::demangle): New member function.
4605 * f-lang.c (f_language_data): Delete la_demangle initializer.
4606 (f_language::demangle): New member function.
4607 * go-lang.c (go_language_data): Delete la_demangle initializer.
4608 (go_language::demangle): New member function.
4609 * language.c (language_demangle): Update.
4610 (unk_lang_demangle): Delete.
4611 (unknown_language_data): Delete la_demangle initializer.
4612 (unknown_language::demangle): New member function.
4613 (auto_language_data): Delete la_demangle initializer.
4614 (auto_language::demangle): New member function.
4615 * language.h (language_data): Delete la_demangle field.
4616 (language_defn::demangle): New function.
4617 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4618 * objc-lang.c (objc_language_data): Delete la_demangle
4619 initializer.
4620 (objc_language::demangle): New member function.
4621 * opencl-lang.c (opencl_language_data): Delete la_demangle
4622 initializer.
4623 * p-lang.c (pascal_language_data): Likewise.
4624 * rust-lang.c (rust_language_data): Likewise.
4625 (rust_language::demangle): New member function.
4626
4627 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4628
4629 * ada-lang.c (ada_language_data): Delete la_print_type
4630 initializer.
4631 (ada_language::print_type): New member function.
4632 * c-lang.c (c_language_data): Delete la_print_type initializer.
4633 (c_language::print_type): New member function.
4634 (cplus_language_data): Delete la_print_type initializer.
4635 (cplus_language::print_type): New member function.
4636 (asm_language_data): Delete la_print_type initializer.
4637 (asm_language::print_type): New member function.
4638 (minimal_language_data): Delete la_print_type initializer.
4639 (minimal_language::print_type): New member function.
4640 * d-lang.c (d_language_data): Delete la_print_type initializer.
4641 (d_language::print_type): New member function.
4642 * f-lang.c (f_language_data): Delete la_print_type initializer.
4643 (f_language::print_type): New member function.
4644 * go-lang.c (go_language_data): Delete la_print_type initializer.
4645 (go_language::print_type): New member function.
4646 * language.c (unk_lang_print_type): Delete.
4647 (unknown_language_data): Delete la_print_type initializer.
4648 (unknown_language::print_type): New member function.
4649 (auto_language_data): Delete la_print_type initializer.
4650 (auto_language::print_type): New member function.
4651 * language.h (language_data): Delete la_print_type field.
4652 (language_defn::print_type): New function.
4653 (LA_PRINT_TYPE): Update.
4654 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4655 (m2_language::print_type): New member function.
4656 * objc-lang.c (objc_language_data): Delete la_print_type
4657 initializer.
4658 (objc_language::print_type): New member function.
4659 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4660 to opencl_language::print_type.
4661 (opencl_language_data): Delete la_print_type initializer.
4662 (opencl_language::print_type): New member function, implementation
4663 from opencl_print_type.
4664 * p-lang.c (pascal_language_data): Delete la_print_type
4665 initializer.
4666 (pascal_language::print_type): New member function.
4667 * rust-lang.c (rust_print_type): Delete, implementation moved to
4668 rust_language::print_type.
4669 (rust_language_data): Delete la_print_type initializer.
4670 (rust_language::print_type): New member function, implementation
4671 from rust_print_type.
4672
4673 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4674
4675 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4676 implementation moves to...
4677 (ada_language::sniff_from_mangled_name): ...here. Update return
4678 type.
4679 (ada_language_data): Delete la_sniff_from_mangled_name
4680 initializer.
4681 * c-lang.c (c_language_data): Likewise.
4682 (cplus_language_data): Likewise.
4683 (cplus_language::sniff_from_mangled_name): New member function,
4684 implementation taken from gdb_sniff_from_mangled_name.
4685 (asm_language_data): Delete la_sniff_from_mangled_name
4686 initializer.
4687 (minimal_language_data): Likewise.
4688 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4689 implementation moves to cplus_language::sniff_from_mangled_name.
4690 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4691 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4692 moves to...
4693 (d_language::sniff_from_mangled_name): ...here.
4694 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4695 * f-lang.c (f_language_data): Likewise.
4696 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4697 moves to...
4698 (go_language::sniff_from_mangled_name): ...here.
4699 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4700 * language.c (language_sniff_from_mangled_name): Delete.
4701 (unknown_language_data): Delete la_sniff_from_mangled_name
4702 initializer.
4703 (auto_language_data): Likewise.
4704 * language.h (language_data): Delete la_sniff_from_mangled_name
4705 field.
4706 (language_defn::sniff_from_mangled_name): New function.
4707 (language_sniff_from_mangled_name): Delete declaration.
4708 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4709 field.
4710 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4711 implementation moves to...
4712 (objc_language::sniff_from_mangled_name): ...here.
4713 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4714 * opencl-lang.c (opencl_language_data): Likewise.
4715 * p-lang.c (pascal_language_data): Likewise.
4716 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4717 implementation moves to...
4718 (rust_language::sniff_from_mangled_name): ...here.
4719 (rust_language_data): Delete la_sniff_from_mangled_name
4720 initializer.
4721 * symtab.c (symbol_find_demangled_name): Call
4722 sniff_from_mangled_name member function.
4723
4724 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4725
4726 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4727 initializer.
4728 * c-lang.c (c_language_data): Likewise.
4729 (cplus_language_data): Likewise.
4730 (cplus_language::search_name_hash): New member function.
4731 (asm_language_data): Delete la_search_name_hash initializer.
4732 (minimal_language_data): Likewise.
4733 * d-lang.c (d_language_data): Likewise.
4734 * dictionary.c (default_search_name_hash): Rename to...
4735 (language_defn::search_name_hash): ...this.
4736 * f-lang.c (f_language_data): Likewise.
4737 (f_language::search_name_hash): New member function.
4738 * go-lang.c (go_language_data): Delete la_search_name_hash
4739 initializer.
4740 * language.c (unknown_language_data): Likewise.
4741 (auto_language_data): Likewise.
4742 * language.h (struct language_data): Delete la_search_name_hash
4743 field.
4744 (language_defn::search_name_hash): Declare new member function.
4745 (default_search_name_hash): Delete declaration.
4746 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4747 initializer.
4748 * objc-lang.c (objc_language_data): Likewise.
4749 * opencl-lang.c (opencl_language_data): Likewise.
4750 * p-lang.c (pascal_language_data): Likewise.
4751 * rust-lang.c (rust_language_data): Likewise.
4752 * symtab.c (search_name_hash): Update call.
4753
4754 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4755
4756 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4757 initializer.
4758 * c-lang.c (class compile_instance): Declare.
4759 (c_language_data): Delete la_get_compile_instance initializer.
4760 (c_language::get_compile_instance): New member function.
4761 (cplus_language_data): Delete la_get_compile_instance initializer.
4762 (cplus_language::get_compile_instance): New member function.
4763 (asm_language_data): Delete la_get_compile_instance initializer.
4764 (minimal_language_data): Likewise.
4765 * c-lang.h (c_get_compile_context): Update comment.
4766 (cplus_get_compile_context): Update comment.
4767 * compile/compile.c (compile_to_object): Update calls, don't rely
4768 on function pointer being NULL.
4769 * d-lang.c (d_language_data): Delete la_get_compile_instance
4770 initializer.
4771 * f-lang.c (f_language_data): Likewise.
4772 * go-lang.c (go_language_data): Likewise.
4773 * language.c (unknown_language_data): Likewise.
4774 (auto_language_data): Likewise.
4775 * language.h (language_data): Delete la_get_compile_instance field.
4776 (language_defn::get_compile_instance): New member function.
4777 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4778 initializer.
4779 * objc-lang.c (objc_language_data): Likewise.
4780 * opencl-lang.c (opencl_language_data): Likewise.
4781 * p-lang.c (pascal_language_data): Likewise.
4782 * rust-lang.c (rust_language_data): Likewise.
4783
4784 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4785
4786 * ada-lang.c (ada_add_all_symbols): Update comment.
4787 (ada_iterate_over_symbols): Delete, move implementation to...
4788 (ada_language::iterate_over_symbols): ...here, a new member
4789 function, rewrite to use range based for loop.
4790 (ada_language_data): Delete la_iterate_over_symbols initializer.
4791 * c-lang.c (c_language_data): Likewise.
4792 (cplus_language_data): Likewise.
4793 (asm_language_data): Likewise.
4794 (minimal_language_data): Likewise.
4795 * d-lang.c (d_language_data): Likewise.
4796 * f-lang.c (f_language_data): Likewise.
4797 * go-lang.c (go_language_data): Likewise.
4798 * language.c (unknown_language_data): Likewise.
4799 (auto_language_data): Likewise.
4800 * language.h (language_data): Delete la_iterate_over_symbols field.
4801 (language_defn::iterate_over_symbols): New member function.
4802 (LA_ITERATE_OVER_SYMBOLS): Update.
4803 * linespec.c (iterate_over_all_matching_symtabs): Update.
4804 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4805 initializer.
4806 * objc-lang.c (objc_language_data): Likewise.
4807 * opencl-lang.c (opencl_language_data): Likewise.
4808 * p-lang.c (pascal_language_data): Likewise.
4809 * rust-lang.c (rust_language_data): Likewise.
4810
4811 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4812
4813 * ada-lang.c (ada_language_data): Delete
4814 la_lookup_transparent_type initializer.
4815 * c-lang.c (c_language_data): Likewise.
4816 (cplus_language_data): Likewise.
4817 (cplus_language::lookup_transparent_type): New member function.
4818 (asm_language_data): Delete la_lookup_transparent_type
4819 initializer.
4820 (minimal_language_data): Likewise.
4821 * d-lang.c (d_language_data): Likewise.
4822 * f-lang.c (f_language_data): Likewise.
4823 * go-lang.c (go_language_data): Likewise.
4824 * language.c (unknown_language_data): Likewise.
4825 (auto_language_data): Likewise.
4826 * language.h (struct language_data): Delete
4827 la_lookup_transparent_type field.
4828 (language_defn::lookup_transparent_type): New member function.
4829 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4830 initializer.
4831 * objc-lang.c (objc_language_data): Likewise.
4832 * opencl-lang.c (opencl_language_data): Likewise.
4833 * p-lang.c (pascal_language_data): Likewise.
4834 * rust-lang.c (rust_language_data): Likewise.
4835 * symtab.c (symbol_matches_domain): Update call.
4836
4837 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4838
4839 * ada-lang.c (ada_language_arch_info): Delete function, move
4840 implementation to...
4841 (ada_language::language_arch_info): ...here, a new member
4842 function.
4843 (ada_language_data): Delete la_language_arch_info.
4844 * c-lang.c (c_language_data): Likewise.
4845 (c_language::language_arch_info): New member function.
4846 (cplus_language_arch_info): Delete function, move
4847 implementation to...
4848 (cplus_language::language_arch_info): ...here, a new member
4849 function.
4850 (cplus_language_data): Delete la_language_arch_info.
4851 (asm_language_data): Likewise.
4852 (asm_language::language_arch_info): New member function.
4853 (minimal_language_data): Delete la_language_arch_info.
4854 (minimal_language::language_arch_info): New member function.
4855 * d-lang.c (d_language_arch_info): Delete function, move
4856 implementation to...
4857 (d_language::language_arch_info): ...here, a new member
4858 function.
4859 (d_language_data): Delete la_language_arch_info.
4860 * f-lang.c (f_language_arch_info): Delete function, move
4861 implementation to...
4862 (f_language::language_arch_info): ...here, a new member
4863 function.
4864 (f_language_data): Delete la_language_arch_info.
4865 * go-lang.c (go_language_arch_info): Delete function, move
4866 implementation to...
4867 (go_language::language_arch_info): ...here, a new member
4868 function.
4869 (go_language_data): Delete la_language_arch_info.
4870 * language.c (unknown_language_data): Likewise.
4871 (unknown_language::language_arch_info): New member function.
4872 (auto_language_data): Delete la_language_arch_info.
4873 (auto_language::language_arch_info): New member function.
4874 (language_gdbarch_post_init): Update call to
4875 la_language_arch_info.
4876 * language.h (language_data): Delete la_language_arch_info
4877 function pointer.
4878 (language_defn::language_arch_info): New function.
4879 * m2-lang.c (m2_language_arch_info): Delete function, move
4880 implementation to...
4881 (m2_language::language_arch_info): ...here, a new member
4882 function.
4883 (m2_language_data): Delete la_language_arch_info.
4884 * objc-lang.c (objc_language_arch_info): Delete function, move
4885 implementation to...
4886 (objc_language::language_arch_info): ...here, a new member
4887 function.
4888 (objc_language_data): Delete la_language_arch_info.
4889 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4890 implementation to...
4891 (opencl_language::language_arch_info): ...here, a new member
4892 function.
4893 (opencl_language_data): Delete la_language_arch_info.
4894 * p-lang.c (pascal_language_arch_info): Delete function, move
4895 implementation to...
4896 (pascal_language::language_arch_info): ...here, a new member
4897 function.
4898 (pascal_language_data): Delete la_language_arch_info.
4899 * rust-lang.c (rust_language_arch_info): Delete function, move
4900 implementation to...
4901 (rust_language::language_arch_info): ...here, a new member
4902 function.
4903 (rust_language_data): Delete la_language_arch_info.
4904
4905 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4906
4907 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4908 initializer.
4909 * c-lang.c (c_language_data): Likewise.
4910 (cplus_language_data): Likewise.
4911 (cplus_language::pass_by_reference_info): New method.
4912 (asm_language_data): Delete la_pass_by_reference initializer.
4913 (minimal_language_data): Likewise.
4914 * cp-abi.c (cp_pass_by_reference): Remove use of
4915 default_pass_by_reference.
4916 * d-lang.c (d_language_data): Likewise.
4917 * f-lang.c (f_language_data): Likewise.
4918 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4919 default_pass_by_reference.
4920 * go-lang.c (go_language_data): Likewise.
4921 * language.c (language_pass_by_reference): Update.
4922 (default_pass_by_reference): Delete.
4923 (unknown_language_data): Delete la_pass_by_reference
4924 initializer.
4925 (auto_language_data): Likewise.
4926 * language.h (struct language_data): Delete la_pass_by_reference
4927 field.
4928 (language_defn::pass_by_reference_info): New member function.
4929 (default_pass_by_reference): Delete declaration.
4930 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4931 initializer.
4932 * objc-lang.c (objc_language_data): Likewise.
4933 * opencl-lang.c (opencl_language_data): Likewise.
4934 * p-lang.c (pascal_language_data): Likewise.
4935 * rust-lang.c (rust_language_data): Likewise.
4936
4937 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4938
4939 * ada-lang.c (ada_read_var_value): Delete function, move
4940 implementation to...
4941 (ada_language::read_var_value): ...here.
4942 (ada_language_data): Delete la_read_var_value initializer.
4943 * c-lang.c (c_language_data): Likewise.
4944 (cplus_language_data): Likewise.
4945 (minimal_language_data): Likewise.
4946 * d-lang.c (d_language_data): Likewise.
4947 * f-lang.c (f_language_data): Likewise.
4948 * findvar.c (default_read_var_value): Rename to...
4949 (language_defn::read_var_value): ...this.
4950 * findvar.c (read_var_value): Update header comment, and change to
4951 call member function instead of function pointer.
4952 * go-lang.c (go_language_data): Likewise.
4953 * language.c (unknown_language_data): Delete la_read_var_value
4954 initializer.
4955 (auto_language_data): Likewise.
4956 * language.h (struct language_data): Delete la_read_var_value
4957 field.
4958 (language_defn::read_var_value): New member function.
4959 (default_read_var_value): Delete declaration.
4960 * m2-lang.c (m2_language_data): Delete la_read_var_value
4961 initializer.
4962 * objc-lang.c (objc_language_data): Likewise.
4963 * opencl-lang.c (opencl_language_data): Likewise.
4964 * p-lang.c (pascal_language_data): Likewise.
4965 * rust-lang.c (rust_language_data): Likewise.
4966 * value.h (default_read_var_value): Delete declaration.
4967
4968 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4969
4970 * ada-lang.c (ada_print_array_index): Delete function, move
4971 implementation to...
4972 (ada_language::print_array_index): ...here.
4973 (ada_language_data): Delete la_print_array_index initializer.
4974 * c-lang.c (c_language_data): Likewise.
4975 (cplus_language_data): Likewise.
4976 (minimal_language_data): Likewise.
4977 * d-lang.c (d_language_data): Likewise.
4978 * f-lang.c (f_language_data): Likewise.
4979 * go-lang.c (go_language_data): Likewise.
4980 * language.c (default_print_array_index): Delete function, move
4981 implementation to...
4982 (language_defn::print_array_index): ...here.
4983 (unknown_language_data): Delete la_print_array_index initializer.
4984 (auto_language_data): Likewise.
4985 * language.h (struct language_data): Delete la_print_array_index
4986 field.
4987 (language_defn::print_array_index): New member function.
4988 (LA_PRINT_ARRAY_INDEX): Update.
4989 (default_print_array_index): Delete declaration.
4990 * m2-lang.c (m2_language_data): Delete la_print_array_index
4991 initializer.
4992 * objc-lang.c (objc_language_data): Likewise.
4993 * opencl-lang.c (opencl_language_data): Likewise.
4994 * p-lang.c (pascal_language_data): Likewise.
4995 * rust-lang.c (rust_language_data): Likewise.
4996
4997 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4998
4999 * gdb/ada-lang.c (ada_language_defn): Convert to...
5000 (ada_language_data): ...this.
5001 (class ada_language): New class.
5002 (ada_language_defn): New static global.
5003 * gdb/c-lang.c (c_language_defn): Convert to...
5004 (c_language_data): ...this.
5005 (class c_language): New class.
5006 (c_language_defn): New static global.
5007 (cplus_language_defn): Convert to...
5008 (cplus_language_data): ...this.
5009 (class cplus_language): New class.
5010 (cplus_language_defn): New static global.
5011 (asm_language_defn): Convert to...
5012 (asm_language_data): ...this.
5013 (class asm_language): New class.
5014 (asm_language_defn): New static global.
5015 (minimal_language_defn): Convert to...
5016 (minimal_language_data): ...this.
5017 (class minimal_language): New class.
5018 (minimal_language_defn): New static global.
5019 * gdb/d-lang.c (d_language_defn): Convert to...
5020 (d_language_data): ...this.
5021 (class d_language): New class.
5022 (d_language_defn): New static global.
5023 * gdb/f-lang.c (f_language_defn): Convert to...
5024 (f_language_data): ...this.
5025 (class f_language): New class.
5026 (f_language_defn): New static global.
5027 * gdb/go-lang.c (go_language_defn): Convert to...
5028 (go_language_data): ...this.
5029 (class go_language): New class.
5030 (go_language_defn): New static global.
5031 * gdb/language.c (unknown_language_defn): Remove declaration.
5032 (current_language): Initialize to nullptr, real initialization is
5033 moved to _initialize_language.
5034 (languages): Delete global.
5035 (language_defn::languages): Define.
5036 (set_language_command): Use language_defn::languages.
5037 (set_language): Likewise.
5038 (range_error): Likewise.
5039 (language_enum): Likewise.
5040 (language_def): Likewise.
5041 (add_set_language_command): Use language_def::languages for the
5042 language list, and language_def to lookup language pointers.
5043 (skip_language_trampoline): Use language_defn::languages.
5044 (unknown_language_defn): Convert to...
5045 (unknown_language_data): ...this.
5046 (class unknown_language): New class.
5047 (unknown_language_defn): New static global.
5048 (auto_language_defn): Convert to...
5049 (auto_language_data): ...this.
5050 (class auto_language): New class.
5051 (auto_language_defn): New static global.
5052 (language_gdbarch_post_init): Use language_defn::languages.
5053 (_initialize_language): Initialize current_language.
5054 * gdb/language.h (struct language_defn): Rename to...
5055 (struct language_data): ...this.
5056 (struct language_defn): New.
5057 (auto_language_defn): Delete.
5058 (unknown_language_defn): Delete.
5059 (minimal_language_defn): Delete.
5060 (ada_language_defn): Delete.
5061 (asm_language_defn): Delete.
5062 (c_language_defn): Delete.
5063 (cplus_language_defn): Delete.
5064 (d_language_defn): Delete.
5065 (f_language_defn): Delete.
5066 (go_language_defn): Delete.
5067 (m2_language_defn): Delete.
5068 (objc_language_defn): Delete.
5069 (opencl_language_defn): Delete.
5070 (pascal_language_defn): Delete.
5071 (rust_language_defn): Delete.
5072 * gdb/m2-lang.c (m2_language_defn): Convert to...
5073 (m2_language_data): ...this.
5074 (class m2_language): New class.
5075 (m2_language_defn): New static global.
5076 * gdb/objc-lang.c (objc_language_defn): Convert to...
5077 (objc_language_data): ...this.
5078 (class objc_language): New class.
5079 (objc_language_defn): New static global.
5080 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5081 (opencl_language_data): ...this.
5082 (class opencl_language): New class.
5083 (opencl_language_defn): New static global.
5084 * gdb/p-lang.c (pascal_language_defn): Convert to...
5085 (pascal_language_data): ...this.
5086 (class pascal_language): New class.
5087 (pascal_language_defn): New static global.
5088 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5089 language pointer, update comment format.
5090 * gdb/rust-lang.c (rust_language_defn): Convert to...
5091 (rust_language_data): ...this.
5092 (class rust_language): New class.
5093 (rust_language_defn): New static global.
5094
5095 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5096
5097 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5098 member variable.
5099 <m_stmt_at_address>: New member variable.
5100 (lnp_state_machine::record_line): Don't record some lines, update
5101 tracking of is_stmt at the same address.
5102 (lnp_state_machine::lnp_state_machine): Initialise new member
5103 variables.
5104
5105 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5106
5107 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5108 "-include gnu-nat-mig.h".
5109 * gnu-nat-mig.h: New file.
5110 * gnu-nat.c: Include "gnu-nat-mig.h".
5111 (exc_server, msg_reply_server, notify_server,
5112 process_reply_server): Remove declarations.
5113
5114 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5115
5116 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5117 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5118 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5119 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5120 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5121 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5122 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5123 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5124 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5125 to gnu_nat_target class.
5126 * gnu-nat.c: Likewise.
5127 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5128 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5129 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5130 object.
5131 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5132 instead of `gnu_target'.
5133
5134 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5135
5136 * i386-gnu-tdep.c: Include "gdbcore.h"
5137 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5138 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5139 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5140 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5141 i386_gnu_sigcontext_addr): New functions
5142 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5143 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5144 tdep.
5145
5146 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5147
5148 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5149 before fork_inferior call. Avoid calling it if target_is_pushed returns
5150 true.
5151
5152 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5153
5154 * gnu-nat.h (gnu_target): New variable declaration.
5155 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5156 gnu_target.
5157 * gnu-nat.c (gnu_target): New variable.
5158 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5159 add_thread_silent, and add_thread calls.
5160 (gnu_nat_target::create_inferior): Pass gnu_target to
5161 add_thread_silent, thread_change_ptid call.
5162 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5163 call.
5164
5165 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5166
5167 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5168 (gnu_nat_target::find_memory_regions): Remove unused
5169 `old_address' variable.
5170
5171 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5172
5173 * gnu-nat.c: Include "gdbarch.h".
5174
5175 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5176
5177 * reply_mig_hack.awk (Error return): Cast function through
5178 void *, to bypass compiler function call check.
5179
5180 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5181
5182 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5183 $(srcdir)/reply_mig_hack.awk.
5184
5185 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5186
5187 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5188
5189 2020-05-30 Jonny Grant <jg@jguk.org>
5190
5191 * configure.ac (ACX_BUGURL): change bug URL to https.
5192
5193 2020-05-30 Pedro Alves <palves@redhat.com>
5194
5195 * cp-support.c (replace_typedefs_template): New.
5196 (replace_typedefs_qualified_name): Handle
5197 DEMANGLE_COMPONENT_TEMPLATE.
5198
5199 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5200
5201 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5202 dwarf2/index-cache.h, dwarf2/index-write.c,
5203 dwarf2/index-write.h, dwarf2/line-header.c,
5204 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5205 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5206 variables and fields from `dwarf2_per_objfile` to just
5207 `per_objfile` throughout.
5208
5209 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5210
5211 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5212 <push_dwarf_reg_entry_value>: Add comment.
5213
5214 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5215 Keith Seitz <keiths@redhat.com>
5216
5217 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5218 instead of PyEval_ReleaseLock.
5219 (class gdbpy_gil): Move to earlier in file.
5220 (finalize_python): Set gdb_python_initialized.
5221 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5222 when not initialized.
5223
5224 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5225
5226 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5227 <push_dwarf_reg_entry_value>: Remove assert. Override
5228 per_objfile with caller_per_objfile.
5229
5230 2020-05-28 Tom de Vries <tdevries@suse.de>
5231
5232 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5233 PR gold/15646 workaround to symbol kind "type".
5234
5235 2020-05-27 Tom Tromey <tromey@adacore.com>
5236
5237 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5238
5239 2020-05-27 Tom Tromey <tromey@adacore.com>
5240
5241 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5242 Use htab_find_with_hash.
5243 <add_abbrev>: Remove "abbrev_number" parameter.
5244 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5245 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5246 (hash_abbrev): Add comment.
5247 (abbrev_table::lookup_abbrev): Move to header file.
5248 (abbrev_table::read): Update.
5249
5250 2020-05-27 Tom Tromey <tromey@adacore.com>
5251
5252 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5253 method.
5254 <canonical_name>: New member.
5255 <raw_name>: Rename from "name".
5256 (partial_die_info): Initialize canonical_name.
5257 (scan_partial_symbols): Check raw_name.
5258 (partial_die_parent_scope, partial_die_full_name)
5259 (add_partial_symbol, add_partial_subprogram)
5260 (add_partial_enumeration, load_partial_dies): Use "name" method.
5261 (partial_die_info::name): New method.
5262 (partial_die_info::read, guess_partial_die_structure_name)
5263 (partial_die_info::fixup): Update.
5264
5265 2020-05-27 Tom Tromey <tromey@adacore.com>
5266
5267 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5268 <get_ref_die_offset>: Inline.
5269 <get_ref_die_offset_complaint>: New method.
5270 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5271 (attribute::get_ref_die_offset_complaint): Rename from
5272 get_ref_die_offset. Just issue complaint.
5273
5274 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5275
5276 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5277
5278 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5279
5280 * exec.c (exec_file_attach): Use errno value of first openp failure.
5281
5282 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5283
5284 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5285 Don't close thread handle.
5286
5287 2020-05-27 Tom Tromey <tom@tromey.com>
5288 Simon Marchi <simon.marchi@efficios.com>
5289
5290 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5291 shared_ptr.
5292 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5293 member.
5294 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5295 dwarf2_per_bfd_objfile_data_key>: New globals.
5296 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5297 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5298 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5299 shared.
5300 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5301 short-circuit when sharing.
5302 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5303 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5304
5305 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5306
5307 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5308 to...
5309 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5310 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5311
5312 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5313
5314 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5315 build_name_components, find_name_components_bounds>:
5316 Add per_objfile parameter.
5317 (struct mapped_index) <symbol_name_at>: Likewise.
5318 (struct mapped_debug_names): Remove constructor.
5319 <dwarf2_per_objfile>: Remove field.
5320 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5321 (mapped_index_base::find_name_components_bounds,
5322 mapped_index_base::build_name_components,
5323 dw2_expand_symtabs_matching_symbol): Likewise.
5324 (class mock_mapped_index) <symbol_name_at>: Likewise.
5325 (check_match): Likewise.
5326 (check_find_bounds_finds): Likewise.
5327 (test_mapped_index_find_name_component_bounds): Update.
5328 (CHECK_MATCH): Update.
5329 (dw2_expand_symtabs_matching): Update.
5330 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5331 per_objfile parameter.
5332 <find_vec_in_debug_names>: Likewise.
5333 <m_per_objfile>: New field.
5334 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5335 parameter.
5336 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5337 (dw2_debug_names_iterator::next): Update.
5338 (dw2_debug_names_lookup_symbol): Update.
5339 (dw2_debug_names_expand_symtabs_for_function): Update.
5340 (dw2_debug_names_map_matching_symbols): Update.
5341 (dw2_debug_names_expand_symtabs_matching): Update.
5342 (dwarf2_read_debug_names): Update.
5343
5344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5345
5346 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5347 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5348 move to dwarf2_per_objfile.
5349 <read_in_chain>: Remove.
5350 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5351 remove_all_cus, age_comp_units>: New methods.
5352 <m_dwarf2_cus>: New member.
5353 (struct dwarf2_per_cu_data) <cu>: Remove.
5354 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5355 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5356 moved to methods of dwarf2_per_objfile.
5357 (dwarf2_clear_marks): Remove.
5358 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5359 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5360 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5361 (dwarf2_per_objfile::remove_all_cus): New.
5362 (class free_cached_comp_units) <~free_cached_comp_units>:
5363 Update.
5364 (load_cu): Update.
5365 (dw2_do_instantiate_symtab): Adjust.
5366 (fill_in_sig_entry_from_dwo_entry): Adjust.
5367 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5368 (cutu_reader::cutu_reader): Likewise.
5369 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5370 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5371 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5372 and dwarf2_per_objfile::age_comp_units.
5373 (load_partial_comp_unit): Update.
5374 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5375 (process_queue): Likewise.
5376 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5377 backlink.
5378 (dwarf2_read_addr_index): Likewise.
5379 (follow_die_offset): Likewise.
5380 (dwarf2_fetch_die_loc_sect_off): Likewise.
5381 (dwarf2_fetch_constant_bytes): Likewise.
5382 (dwarf2_fetch_die_type_sect_off): Likewise.
5383 (follow_die_sig_1): Likewise.
5384 (load_full_type_unit): Likewise.
5385 (read_signatured_type): Likewise.
5386 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5387 (dwarf2_cu::~dwarf2_cu): Remove.
5388 (dwarf2_per_objfile::get_cu): New.
5389 (dwarf2_per_objfile::set_cu): New.
5390 (age_cached_comp_units): Rename to...
5391 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5392 to std::unordered_map.
5393 (free_one_cached_comp_unit): Rename to...
5394 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5395 to std::unordered_map.
5396 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5397 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5398 a dwarf2_per_objfile in data.
5399 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5400 (dwarf2_clear_marks): Remove.
5401
5402 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5403
5404 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5405 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5406 (init_tu_and_read_dwo_dies): Likewise.
5407 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5408 (cutu_reader::cutu_reader): Likewise.
5409 (load_partial_comp_unit): Likewise.
5410 (process_psymtab_comp_unit): Update.
5411 (build_type_psymtabs_1): Update.
5412 (process_skeletonless_type_unit): Update.
5413 (load_full_comp_unit): Update.
5414 (find_partial_die): Update.
5415 (dwarf2_read_addr_index): Update.
5416 (read_signatured_type): Update.
5417
5418 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5419
5420 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5421 m_header_read_in>: New fields.
5422 <get_header>: New method.
5423 * dwarf2/read.c (per_cu_header_read_in): Remove.
5424 (dwarf2_per_cu_data::get_header): New.
5425 (dwarf2_per_cu_data::addr_size): Update.
5426 (dwarf2_per_cu_data::offset_size): Update.
5427 (dwarf2_per_cu_data::ref_addr_size): Update.
5428
5429 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5430
5431 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5432 (dw2_do_instantiate_symtab): Update.
5433 (queue_and_load_all_dwo_tus): Change parameter from
5434 dwarf2_per_cu_data to dwarf2_cu.
5435 (dwarf2_fetch_die_loc_sect_off): Update.
5436 (dwarf2_fetch_constant_bytes): Update.
5437 (dwarf2_fetch_die_type_sect_off): Update.
5438
5439 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5440
5441 * dwarf2/read.c (process_full_comp_unit,
5442 process_full_type_unit): Remove per_cu, per_objfile paramters.
5443 Add dwarf2_cu parameter.
5444 (process_queue): Update.
5445
5446 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5447
5448 * dwarf2/read.c (create_cu_from_index_list): Replace
5449 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5450 (create_cus_from_index_list): Likewise.
5451 (create_cus_from_index): Likewise.
5452 (create_signatured_type_table_from_index): Likewise.
5453 (create_cus_from_debug_names_list): Likewise.
5454 (create_cus_from_debug_names): Likewise.
5455 (dwarf2_read_gdb_index): Update.
5456 (dwarf2_read_debug_names): Update.
5457
5458 2020-05-27 Tom Tromey <tom@tromey.com>
5459 Simon Marchi <simon.marchi@efficios.com>
5460
5461 * dwarf2/read.h (struct dwarf2_per_objfile)
5462 <get_type_for_signatured_type, set_type_for_signatured_type>:
5463 New methods.
5464 <m_type_map>: New member.
5465 (struct signatured_type) <type>: Remove.
5466 * dwarf2/read.c
5467 (dwarf2_per_objfile::get_type_for_signatured_type,
5468 dwarf2_per_objfile::set_type_for_signatured_type): New.
5469 (get_signatured_type): Use new methods.
5470
5471 2020-05-27 Tom Tromey <tom@tromey.com>
5472 Simon Marchi <simon.marchi@efficios.com>
5473
5474 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5475 (struct dwarf2_per_objfile) <type_units>: New member.
5476 <get_type_unit_group_unshareable>: New method.
5477 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5478 num_symtabs, symtabs>: Remove; move to
5479 type_unit_group_unshareable.
5480 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5481 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5482 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5483
5484 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5485
5486 * dwarf2/read.h (struct dwarf2_per_cu_data):
5487 <dwarf2_per_objfile>: Remove.
5488 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5489 dwarf2_per_objfile.
5490 (create_signatured_type_table_from_index): Likewise.
5491 (create_signatured_type_table_from_debug_names): Likewise.
5492 (create_debug_type_hash_table): Likewise.
5493 (fill_in_sig_entry_from_dwo_entry): Likewise.
5494 (create_type_unit_group): Likewise.
5495 (read_comp_units_from_section): Likewise.
5496 (create_cus_hash_table): Likewise.
5497
5498 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5499
5500 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5501 dwarf2_per_cu_data::dwarf2_per_objfile.
5502 (compute_compunit_symtab_includes): Likewise.
5503 (dwarf2_cu::start_symtab): Likewise.
5504
5505 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5506
5507 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5508 parameter.
5509 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5510 (read_namespace_alias): Update.
5511 (lookup_die_type): Update.
5512 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5513 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5514 Update.
5515 (disassemble_dwarf_expression): Update.
5516
5517 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5518
5519 * dwarf2/read.h (struct dwarf2_queue_item): Add
5520 dwarf2_per_objfile parameter, assign new parameter.
5521 <per_objfile>: New field.
5522 * dwarf2/read.c (free_one_cached_comp_unit): Add
5523 dwarf2_per_objfile parameter.
5524 (queue_comp_unit): Likewise.
5525 (dw2_do_instantiate_symtab): Update.
5526 (process_psymtab_comp_unit): Update.
5527 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5528 (process_imported_unit_die): Update.
5529 (queue_and_load_dwo_tu): Update.
5530 (follow_die_offset): Update.
5531 (follow_die_sig_1): Update.
5532
5533 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5534
5535 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5536 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5537 (read_call_site_scope): Assign per_objfile.
5538 (dwarf2_per_cu_data::objfile): Remove.
5539 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5540 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5541 dwarf2_per_objfile parameter.
5542 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5543 dwarf2_per_objfile parameter.
5544 (dwarf_expr_reg_to_entry_parameter): Add output
5545 dwarf2_per_objfile parameter.
5546 (locexpr_get_frame_base): Update.
5547 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5548 <push_dwarf_reg_entry_value>: Update.
5549 <call_site_to_target_addr>: Update.
5550 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5551 parameter.
5552 (value_of_dwarf_reg_entry): Update.
5553 (rw_pieced_value): Update.
5554 (indirect_synthetic_pointer): Update.
5555 (dwarf2_evaluate_property): Update.
5556 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5557 parameter.
5558 (locexpr_read_variable): Update.
5559 (locexpr_get_symbol_read_needs): Update.
5560 (loclist_read_variable): Update.
5561
5562 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5563
5564 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5565 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5566 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5567 parameter.
5568 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5569 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5570 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5571 parameter.
5572 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5573 sect_variable_value): Add dwarf2_per_objfile parameter.
5574 (class dwarf_evaluate_loc_desc) <dwarf_call,
5575 dwarf_variable_value>: Update.
5576 (fetch_const_value_from_synthetic_pointer): Add
5577 dwarf2_per_objfile parameter.
5578 (fetch_const_value_from_synthetic_pointer): Update.
5579 (coerced_pieced_ref): Update.
5580 (class symbol_needs_eval_context) <dwarf_call,
5581 dwarf_variable_value>: Update.
5582 (dwarf2_compile_expr_to_ax): Update.
5583
5584 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5585
5586 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5587 parameter.
5588 (dwarf2_evaluate_loc_desc_full): Update.
5589
5590 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5591
5592 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5593 parameter.
5594 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5595 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5596 dwarf2_per_objfile parameter.
5597 (decode_debug_loc_dwo_addresses): Likewise.
5598 (dwarf2_find_location_expression): Update.
5599 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5600 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5601 parameter.
5602 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5603 parameter.
5604 (locexpr_describe_location_1): Likewise.
5605 (locexpr_describe_location): Update.
5606
5607 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5608
5609 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5610 Remove.
5611 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5612 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5613 (dwarf2_compile_property_to_c): Update.
5614 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5615 use text offset from objfile.
5616 (locexpr_tracepoint_var_ref): Update.
5617 (locexpr_generate_c_location): Update.
5618 (loclist_describe_location): Update.
5619 (loclist_tracepoint_var_ref): Update.
5620 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5621 dwarf2_per_objfile parameter.
5622 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5623 use text offset from objfile.
5624 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5625
5626 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5627
5628 * dwarf2/expr.h (struct dwarf_expr_context)
5629 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5630 <offset>: Remove.
5631 <per_objfile>: New member.
5632 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5633 dwarf2_per_objfile parameter. Don't set offset, set
5634 per_objfile.
5635 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5636 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5637 a dwarf2_per_objfile object instead of an offset.
5638 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5639 constructor.
5640 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5641 to dwarf2_expr_executor constructor. Don't set offset.
5642 (dwarf2_fetch_cfa_info): Update.
5643 (struct dwarf2_frame_cache) <text_offset>: Remove.
5644 <per_objfile>: New field.
5645 (dwarf2_frame_cache): Update.
5646 (dwarf2_frame_prev_register): Update.
5647 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5648 <dwarf_evaluate_loc_desc>: Add constructor.
5649 (dwarf2_evaluate_loc_desc_full): Update.
5650 (dwarf2_locexpr_baton_eval): Update.
5651 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5652 Add constructor.
5653 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5654
5655 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5656
5657 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5658 addr_sized_int_type>: Move to dwarf2_cu.
5659 <int_type>: Move to dwarf2_per_objfile.
5660 (struct dwarf2_per_objfile) <int_type>: Move here.
5661 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5662 addr_sized_int_type>: Move here.
5663 (read_func_scope): Update.
5664 (read_array_type): Update.
5665 (read_tag_string_type): Update.
5666 (attr_to_dynamic_prop): Update.
5667 (dwarf2_per_cu_data::int_type): Rename to...
5668 (dwarf2_per_objfile::int_type): ... this.
5669 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5670 (dwarf2_cu::addr_sized_int_type): ... this.
5671 (read_subrange_type): Update.
5672 (dwarf2_per_cu_data::addr_type): Rename to...
5673 (dwarf2_cu::addr_type): ... this.
5674 (set_die_type): Update.
5675
5676 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5677
5678 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5679 data through per_cu->cu.
5680
5681 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5682
5683 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5684 dwarf2_per_cu_data parameter fo dwarf2_cu.
5685 (lookup_dwo_type_unit): Likewise.
5686 (read_cutu_die_from_dwo): Likewise.
5687 (lookup_dwo_unit): Likewise.
5688 (open_and_init_dwo_file): Likewise.
5689 (lookup_dwo_cutu): Likewise.
5690 (lookup_dwo_comp_unit): Likewise.
5691 (lookup_dwo_type_unit): Likewise.
5692 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5693 (cutu_reader::cutu_reader): Update.
5694
5695 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5696
5697 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5698 parameter.
5699 (process_full_type_unit): Likewise.
5700 (process_queue): Update.
5701
5702 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5703
5704 * dwarf2/read.c (recursively_compute_inclusions): Add
5705 dwarf2_per_objfile parameter.
5706 (compute_compunit_symtab_includes): Likewise.
5707 (process_cu_includes): Update.
5708
5709 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5710
5711 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5712 parameter.
5713 (create_type_unit_group): Update.
5714 (process_psymtab_comp_unit_reader): Update.
5715 (build_type_psymtabs_reader): Update.
5716
5717 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5718
5719 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5720 object through m_this_cu->cu.
5721
5722 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5723
5724 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5725 the info parameter.
5726 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5727
5728 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5729
5730 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5731 per_objfile parameter.
5732 (load_full_type_unit): Add per_objfile parameter.
5733 (read_signatured_type): Likewise.
5734 (load_full_comp_unit): Likewise.
5735 (load_cu): Likewise.
5736 (dw2_do_instantiate_symtab): Likewise.
5737 (dw2_get_file_names): Likewise.
5738 (dw2_map_symtabs_matching_filename): Update.
5739 (dw_expand_symtabs_matching_file_matcher): Update.
5740 (dw2_map_symbol_filenames): Update.
5741 (process_psymtab_comp_unit): Add per_objfile parameter.
5742 (build_type_psymtabs_1): Update.
5743 (process_skeletonless_type_unit): Update.
5744 (dwarf2_build_psymtabs_hard): Update.
5745 (load_partial_comp_unit): Add per_objfile parameter.
5746 (scan_partial_symbols): Update.
5747 (load_full_comp_unit): Add per_objfile parameter.
5748 (process_imported_unit_die): Update.
5749 (create_cus_hash_table): Update.
5750 (find_partial_die): Update.
5751 (dwarf2_read_addr_index): Update.
5752 (follow_die_offset): Update.
5753 (dwarf2_fetch_die_loc_sect_off): Update.
5754 (dwarf2_fetch_constant_bytes): Update.
5755 (dwarf2_fetch_die_type_sect_off): Update.
5756 (follow_die_sig_1): Update.
5757 (load_full_type_unit): Add per_objfile parameter.
5758 (read_signatured_type): Likewise.
5759
5760 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5761
5762 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5763 of objfile_name.
5764
5765 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5766
5767 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5768 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5769 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5770 field.
5771 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5772 (create_cus_from_index): Update.
5773 (dwarf2_read_gdb_index): Update.
5774 (create_cus_from_debug_names): Update.
5775 (dwarf2_read_debug_names): Update.
5776 (get_abbrev_section_for_cu): Update.
5777 (create_all_comp_units): Update.
5778 (read_attribute_value): Update.
5779 (get_debug_line_section): Update.
5780 * dwarf2/index-cache.c (index_cache::store): Update.
5781 * dwarf2/index-write.c (save_gdb_index_command): Update.
5782 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5783
5784 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5785
5786 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5787 member.
5788 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5789 dwarf2_per_cu_data::per_bfd.
5790 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5791 (create_type_unit_group): Likewise.
5792 (queue_comp_unit): Remove reference to
5793 per_cu->dwarf2_per_objfile.
5794 (maybe_queue_comp_unit): Likewise.
5795 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5796 (create_cus_hash_table): Assign new field.
5797
5798 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5799
5800 * dwarf2/read.c: Replace
5801 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5802 dwarf2_cu->per_objfile throughout.
5803
5804 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5805
5806 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5807 parameter, don't use per_cu->dwarf2_per_objfile.
5808 (dw2_instantiate_symtab): Likewise.
5809 (dw2_find_last_source_symtab): Update.
5810 (dw2_map_expand_apply): Update.
5811 (dw2_lookup_symbol): Update.
5812 (dw2_expand_symtabs_for_function): Update.
5813 (dw2_expand_all_symtabs): Update.
5814 (dw2_expand_symtabs_with_fullname): Update.
5815 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5816 don't use per_cu->dwarf2_per_objfile.
5817 (dw2_expand_marked_cus): Update.
5818 (dw2_find_pc_sect_compunit_symtab): Update.
5819 (dw2_debug_names_lookup_symbol): Update.
5820 (dw2_debug_names_expand_symtabs_for_function): Update.
5821 (dw2_debug_names_map_matching_symbols): Update.
5822 (dwarf2_psymtab::expand_psymtab): Update.
5823
5824 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5825
5826 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5827 <per_objfile>: New member.
5828 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5829 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5830 call to dwarf2_cu.
5831 (cutu_reader::cutu_reader): Update.
5832 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5833
5834 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5835
5836 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5837 struct dwarf2_per_objfile.
5838 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5839 dwarf2_per_bfd.
5840 * dwarf2/read.c (set_die_type): Update.
5841 (get_die_type_at_offset): Update.
5842
5843 2020-05-27 Tom Tromey <tom@tromey.com>
5844 Simon Marchi <simon.marchi@efficios.com>
5845
5846 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5847 method.
5848 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5849 get_symtab, set_symtab>: New methods.
5850 <m_symtabs>: New field.
5851 (struct dwarf2_psymtab): Derive from partial_symtab.
5852 <readin_p, get_compunit_symtab>: Declare methods.
5853 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5854 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5855 New methods.
5856 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5857 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5858 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5859 (dw2_symtab_iter_next, dw2_print_stats)
5860 (dw2_expand_symtabs_with_fullname)
5861 (dw2_expand_symtabs_matching_one)
5862 (dw_expand_symtabs_matching_file_matcher)
5863 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5864 (dw2_debug_names_iterator::next)
5865 (dw2_debug_names_map_matching_symbols)
5866 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5867 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5868 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5869 New methods.
5870 (get_compunit_symtab, process_full_comp_unit)
5871 (process_full_type_unit): Update.
5872 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5873
5874 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5875
5876 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5877 then introduce a new dwarf2_per_objfile type.
5878 <read_line_string>: Move to the new dwarf2_per_objfile type.
5879 <objfile>: Likewise.
5880 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5881 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5882 dwarf2_per_objfile->per_bfd.
5883 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5884 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5885 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5886 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5887 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5888 (dwarf2_per_objfile::locate_sections): Rename to...
5889 (dwarf2_per_bfd::locate_sections): ... this.
5890 (dwarf2_per_objfile::get_cutu): Rename to...
5891 (dwarf2_per_bfd::get_cutu): ... this.
5892 (dwarf2_per_objfile::get_cu): Rename to...
5893 (dwarf2_per_bfd::get_cu): ... this.
5894 (dwarf2_per_objfile::get_tu): Rename to...
5895 (dwarf2_per_bfd::get_tu): ... this.
5896 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5897 (dwarf2_per_bfd::allocate_per_cu): ... this.
5898 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5899 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5900 (get_gdb_index_contents_ftype): Change parameter from
5901 dwarf2_per_objfile to dwarf2_per_bfd.
5902 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5903 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5904
5905 2020-05-27 Tom Tromey <tom@tromey.com>
5906 Simon Marchi <simon.marchi@efficios.com>
5907
5908 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5909 (allocate_piece_closure): Set "per_objfile" member.
5910 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5911 (locexpr_describe_location, loclist_describe_location): Use new
5912 member.
5913 * dwarf2/read.c (read_call_site_scope)
5914 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5915 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5916 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5917 handle_data_member_location): Set per_objfile member.
5918 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5919 member.
5920 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5921
5922 2020-05-27 Tom Tromey <tom@tromey.com>
5923
5924 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5925 allocate_signatured_type>: Declare new methods.
5926 <m_num_psymtabs>: New member.
5927 (struct dwarf2_per_cu_data) <index>: New member.
5928 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5929 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5930 (create_cu_from_index_list): Use allocate_per_cu.
5931 (create_signatured_type_table_from_index)
5932 (create_signatured_type_table_from_debug_names)
5933 (create_debug_type_hash_table, add_type_unit)
5934 (read_comp_units_from_section): Use allocate_signatured_type.
5935
5936 2020-05-27 Tom Tromey <tom@tromey.com>
5937
5938 * psymtab.c (partial_map_expand_apply)
5939 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5940 (psym_lookup_global_symbol_language)
5941 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5942 (psym_print_stats, psym_expand_symtabs_for_function)
5943 (psym_map_symbol_filenames, psym_map_matching_symbols)
5944 (psym_expand_symtabs_matching)
5945 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5946 (maintenance_check_psymtabs): Update.
5947 * psympriv.h (struct partial_symtab) <readin_p,
5948 get_compunit_symtab>: Add objfile parameter.
5949 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5950 Likewise.
5951 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5952 get_compunit_symtab>: Likewise.
5953 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5954
5955 2020-05-27 Tom Tromey <tom@tromey.com>
5956
5957 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5958 member.
5959 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5960 (create_cu_from_index_list)
5961 (create_signatured_type_table_from_index)
5962 (create_signatured_type_table_from_debug_names)
5963 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5964 (dwarf2_create_include_psymtab)
5965 (create_debug_type_hash_table, add_type_unit)
5966 (create_type_unit_group, read_comp_units_from_section)
5967 (dwarf2_compute_name, create_cus_hash_table)
5968 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5969 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5970 obstack.
5971 (dw2_get_real_path): Likewise. Change argument to
5972 dwarf2_per_objfile.
5973
5974 2020-05-27 Luis Machado <luis.machado@linaro.org>
5975
5976 PR tdep/26000
5977 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5978 for ldrd (immediate).
5979
5980 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5981
5982 * command.h: Add comment giving the name of class_tui.
5983 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5984 create the fake command for the help for class_tui.
5985
5986 2020-05-26 Tom Tromey <tromey@adacore.com>
5987
5988 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5989 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5990 (val_atr): New function.
5991 (value_val_atr): Use it.
5992 * ada-valprint.c (print_optional_low_bound): Change low bound
5993 handling for enums.
5994 (val_print_packed_array_elements): Don't call discrete_position.
5995 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5996 discrete_position for enum types.
5997 * language.c (default_print_array_index): Change type.
5998 * language.h (struct language_defn) <la_print_array_index>: Add
5999 index_type parameter, change type of index_value.
6000 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6001 (default_print_array_index): Update.
6002 * valprint.c (maybe_print_array_index): Don't call
6003 value_from_longest. Update.
6004 (value_print_array_elements): Don't call discrete_position.
6005
6006 2020-05-26 Tom Tromey <tromey@adacore.com>
6007
6008 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6009 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6010
6011 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6012
6013 PR gdb/13519
6014 * avr-tdep.c (avr_integer_to_address): Return data or code
6015 address accordingly to the second 'type' argument of the
6016 function.
6017
6018 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6019
6020 * infcmd.c, inferior.h: (construct_inferior_arguments):
6021 Moved function from here to gdbsupport/common-inferior.{h,cc}
6022
6023 2020-05-23 Tom Tromey <tom@tromey.com>
6024
6025 Revert commit eca1f90c:
6026 * NEWS: Remove entry for completion styling.
6027 * completer.c (_rl_completion_prefix_display_length): Move
6028 declaration later.
6029 (gdb_fnprint): Revert.
6030 (gdb_display_match_list_1): Likewise.
6031 * cli/cli-style.c (completion_prefix_style)
6032 (completion_difference_style, completion_suffix_style): Remove.
6033 (_initialize_cli_style): Revert.
6034 * cli/cli-style.h (completion_prefix_style)
6035 (completion_difference_style, completion_suffix_style): Don't
6036 declare.
6037
6038 2020-05-24 Pedro Alves <palves@redhat.com>
6039
6040 * symtab.c (completion_list_add_name): Return boolean indication
6041 of whether the symbol matched.
6042 (completion_list_add_symbol): Don't try to remove C++ aliases if
6043 the symbol didn't match in the first place.
6044 * symtab.h (completion_list_add_name): Return bool.
6045
6046 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6047
6048 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6049 type::field.
6050
6051 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6052
6053 GDB 9.2 released.
6054
6055 2020-05-23 Tom Tromey <tom@tromey.com>
6056
6057 * NEWS: Add entry for completion styling.
6058 * completer.c (_rl_completion_prefix_display_length): Move
6059 declaration earlier.
6060 (gdb_fnprint): Use completion_style.
6061 (gdb_display_match_list_1): Likewise.
6062 * cli/cli-style.c (completion_prefix_style)
6063 (completion_difference_style, completion_suffix_style): New
6064 globals.
6065 (_initialize_cli_style): Register new globals.
6066 * cli/cli-style.h (completion_prefix_style)
6067 (completion_difference_style, completion_suffix_style): Declare.
6068
6069 2020-05-23 Pedro Alves <palves@redhat.com>
6070
6071 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6072 (parse_escape): Use ISDIGIT instead of isdigit.
6073 (puts_debug): Use gdb_isprint instead of isprint.
6074 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6075 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6076 ISSPACE instead of isspace.
6077 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6078 instead of isspace.
6079 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6080 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6081 instead of isxdigit and ISDIGIT instead of isdigit.
6082
6083 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6084
6085 * gdbtypes.h (struct type) <field>: New method.
6086 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6087 or type::field.
6088
6089 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6090
6091 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6092 (TYPE_FIELDS): Use type::fields. Change all call sites that
6093 modify the propery to use type::set_fields instead.
6094
6095 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6096
6097 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6098 type::num_fields instead.
6099
6100 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6101
6102 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6103 methods.
6104 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6105 that modify the number of fields to use type::set_num_fields
6106 instead.
6107
6108 2020-05-22 Tom Tromey <tromey@adacore.com>
6109
6110 * compile/compile-object-load.h (munmap_list_free): Don't
6111 declare.
6112
6113 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6114
6115 * annotate.c (annotate_source_line): Update return type, add call
6116 to update current symtab and line.
6117 * annotate.h (annotate_source_line): Update return type, and
6118 extend header comment.
6119 * source.c (info_line_command): Check annotation_level before
6120 calling annotate_source_line.
6121 * stack.c (print_frame_info): If calling annotate_source_line
6122 returns true, then don't print any other source line information.
6123
6124 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6125
6126 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6127
6128 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6129
6130 * coffread.c (patch_type): Remove NULL check before xfree.
6131 * corefile.c (set_gnutarget): Likewise.
6132 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6133 * exec.c (build_section_table): Likewise.
6134 * remote.c (remote_target::pass_signals): Likewise.
6135 * utils.c (n_spaces): Likewise.
6136 * cli/cli-script.c (document_command): Likewise.
6137 * i386-windows-tdep.c (core_process_module_section): Likewise.
6138 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6139
6140 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6141
6142 * symfile.c (reread_symbols): Clear objfile's section_offsets
6143 vector and section indices, re-compute them by calling
6144 sym_offsets.
6145
6146 2020-05-20 Tom Tromey <tromey@adacore.com>
6147
6148 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6149 (desc_one_bound, desc_index_type): Compute field name.
6150
6151 2020-05-20 Tom de Vries <tdevries@suse.de>
6152
6153 PR symtab/25833
6154 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6155
6156 2020-05-20 Alan Modra <amodra@gmail.com>
6157
6158 PR 25993
6159 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6160 bfd_set_filename.
6161 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6162 passed to bfd_set_filename.
6163 * symfile-mem.c (add_vsyscall_page): Likewise for string
6164 passed to symbol_file_add_from_memory.
6165 (symbol_file_add_from_memory): Make name param a const char* and
6166 don't strdup.
6167
6168 2020-05-20 Alan Modra <amodra@gmail.com>
6169
6170 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6171 rather than accessing bfd->filename directly.
6172 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6173 and use bfd_section_name.
6174 * dwarf2/frame.c (decode_frame_entry): Likewise.
6175 * exec.c (exec_set_section_address): Likewise.
6176 * solib-aix.c (solib_aix_bfd_open): Likewise.
6177 * stap-probe.c (get_stap_base_address): Likewise.
6178 * symfile.c (reread_symbols): Likewise.
6179
6180 2020-05-19 Tom Tromey <tromey@adacore.com>
6181
6182 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6183
6184 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6185
6186 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6187
6188 2020-05-19 Pedro Alves <palves@redhat.com>
6189
6190 * NEWS (set exec-file-mismatch): Adjust entry.
6191 * exec.c: Include "build-id.h".
6192 (validate_exec_file): Try to match build IDs instead of filenames.
6193 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6194 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6195 and pass down 'warn_if_slow'.
6196 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6197 gdb_bfd_open_closure to pass it down.
6198 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6199
6200 2020-05-19 Pedro Alves <palves@redhat.com>
6201
6202 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6203 * target.c (target_fileio_open_1): Rename to target_fileio_open
6204 and make extern. Use bool.
6205 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6206 (target_fileio_read_alloc_1): Adjust.
6207 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6208 (target_fileio_open_warn_if_slow): Delete declaration.
6209
6210 2020-05-19 Pedro Alves <palves@redhat.com>
6211
6212 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6213 Adjust all callers.
6214
6215 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6216
6217 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6218 whether disp is negative.
6219
6220 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6221
6222 * symfile.h (struct symfile_segment_data)
6223 <~symfile_segment_data>: Remove.
6224 <segment_info>: Change to std::vector.
6225 * symfile.c (default_symfile_segments): Update.
6226 * elfread.c (elf_symfile_segments): Update.
6227
6228 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6229
6230 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6231 <segments>: New.
6232 <segment_bases, segment_sizes>: Remove.
6233 * symfile.c (default_symfile_segments): Update.
6234 * elfread.c (elf_symfile_segments): Update.
6235 * remote.c (remote_target::get_offsets): Update.
6236 * solib-target.c (solib_target_relocate_section_addresses):
6237 Update.
6238
6239 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6240
6241 * symfile.h (struct symfile_segment_data): Initialize fields.
6242 <~symfile_segment_data>: Add.
6243 (symfile_segment_data_up): New.
6244 (struct sym_fns) <sym_segments>: Return a
6245 symfile_segment_data_up.
6246 (default_symfile_segments): Return a symfile_segment_data_up.
6247 (free_symfile_segment_data): Remove.
6248 (get_symfile_segment_data): Return a symfile_segment_data_up.
6249 * symfile.c (default_symfile_segments): Likewise.
6250 (get_symfile_segment_data): Likewise.
6251 (free_symfile_segment_data): Remove.
6252 (symfile_find_segment_sections): Update.
6253 * elfread.c (elf_symfile_segments): Return a
6254 symfile_segment_data_up.
6255 * remote.c (remote_target::get_offsets): Update.
6256 * solib-target.c (solib_target_relocate_section_addresses):
6257 Update.
6258 * symfile-debug.c (debug_sym_segments): Return a
6259 symfile_segment_data_up.
6260
6261 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6262
6263 PR build/25981
6264 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6265 Hardcode register numbers.
6266
6267 PR build/25981
6268 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6269 procfs_find_LDT_entry): Remove.
6270 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6271 procfs_find_LDT_entry): Remove.
6272 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6273 Remove.
6274
6275 2020-05-17 Pedro Alves <palves@redhat.com>
6276 Andrew Burgess <andrew.burgess@embecosm.com>
6277 Keno Fischer <keno@juliacomputing.com>
6278
6279 PR gdb/25741
6280 * breakpoint.c (build_target_condition_list): Update comments.
6281 (build_target_command_list): Update comments and skip matching
6282 locations.
6283 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6284 a separate function. Simplify "set breakpoint auto-hw off"
6285 handling.
6286 (insert_breakpoints): Update comment.
6287 (tracepoint_locations_match): New parameter. For breakpoints,
6288 compare location types too, if the caller wants to.
6289 (handle_automatic_hardware_breakpoints): New functions.
6290 (bp_location_is_less_than): Also sort by location type and
6291 hardware breakpoint length.
6292 (update_global_location_list): Handle "set breakpoint auto-hw on"
6293 here.
6294 (update_breakpoint_locations): Ask breakpoint_locations_match to
6295 ignore location types.
6296
6297 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6298
6299 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6300 type::name instead.
6301
6302 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6303
6304 * gdbtypes.h (struct type) <name, set_name>: New methods.
6305 (TYPE_CODE): Use type::name. Change all call sites used to set
6306 the name to use type::set_name instead.
6307
6308 2020-05-16 Tom Tromey <tom@tromey.com>
6309
6310 * top.c (quit_force): Update.
6311 * infrun.c (handle_no_resumed): Update.
6312 * top.h (all_uis): New function.
6313 (ALL_UIS): Remove.
6314
6315 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6316
6317 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6318
6319 2020-05-16 Pedro Alves <palves@redhat.com>
6320
6321 * ia64-linux-nat.c
6322 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6323 Declare method.
6324 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6325
6326 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6327
6328 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6329 (sparc64_adi_info): Likewise.
6330
6331 2020-05-15 Tom Tromey <tom@tromey.com>
6332
6333 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6334 block_objfile.
6335 (lookup_objfile_from_block): Remove.
6336 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6337 (lookup_global_symbol): Use block_objfile.
6338 * symtab.h (lookup_objfile_from_block): Don't declare.
6339 * printcmd.c (clear_dangling_display_expressions): Use
6340 block_objfile.
6341 * parse.c (operator_check_standard): Use block_objfile.
6342
6343 2020-05-15 Tom Tromey <tom@tromey.com>
6344
6345 * language.c (language_alloc_type_symbol): Set
6346 SYMBOL_SECTION.
6347 * symtab.c (initialize_objfile_symbol): Remove.
6348 (allocate_symbol): Remove.
6349 (allocate_template_symbol): Remove.
6350 * dwarf2/read.c (fixup_go_packaging): Use "new".
6351 (new_symbol): Use "new".
6352 (read_variable): Don't call initialize_objfile_symbol. Use
6353 "new".
6354 (read_func_scope): Use "new".
6355 * xcoffread.c (process_xcoff_symbol): Don't call
6356 initialize_objfile_symbol.
6357 (SYMBOL_DUP): Remove.
6358 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6359 "new".
6360 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6361 (allocate_template_symbol): Don't declare.
6362 (struct symbol): Add copy constructor. Change defaults.
6363 * jit.c (finalize_symtab): Use "new".
6364 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6365 Use "new".
6366 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6367 (common_block_end): Use "new".
6368 * mdebugread.c (parse_symbol): Use "new".
6369 (new_symbol): Likewise.
6370
6371 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6372
6373 * NEWS: Mention changes to help and apropos.
6374
6375 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6376
6377 * command.h (enum command_class): Improve comments, document
6378 that class_alias is for user-defined aliases, give the class
6379 name for each class, remove unused class_xdb.
6380 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6381 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6382 by a precise class.
6383 * infcmd.c (_initialize_infcmd): Likewise.
6384 * reverse.c (_initialize_reverse): Likewise.
6385 * stack.c (_initialize_stack): Likewise.
6386 * symfile.c (_initialize_symfile): Likewise.
6387 * tracepoint.c (_initialize_tracepoint): Likewise.
6388
6389 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6390
6391 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6392 when their aliased command is traversed.
6393 (help_cmd): Add fput_command_names_styled call to
6394 output command name and aliases when command has an alias.
6395
6396 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6397
6398 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6399 * cli/cli-decode.c (help_cmd_list): Declare as static,
6400 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6401 a command together with the command.
6402 (fput_command_name_styled, fput_command_names_styled): New functions.
6403 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6404 fput_command_name_styled.
6405 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6406 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6407
6408 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6409
6410 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6411 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6412 * command.h (cmd_show_list): Likewise.
6413 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6414 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6415
6416 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6417
6418 * unittests/command-def-selftests.c (traverse_command_structure):
6419 Verify all commands of a list have the same prefix command and
6420 that only the top cmdlist commands have a null prefix.
6421
6422 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6423
6424 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6425 as prefix, not one of its aliases.
6426 (set_cmd_prefix): Remove.
6427 (do_add_cmd): Centralize the setting of the prefix of a command, when
6428 command is defined after its full chain of prefix commands.
6429 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6430 (add_setshow_cmd_full): Likewise.
6431 (update_prefix_field_of_prefixed_commands): New function.
6432 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6433 update_prefix_field_of_prefixed_commands.
6434 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6435 addresses of remote_set_cmdlist and remote_show_cmdlist given
6436 as argument, not the address of an argument.
6437 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6438 * gdb/remote.c (_initialize_remote): Likewise.
6439
6440 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6441
6442 * cli/cli-cmds.c (alias_command): Check for an existing alias
6443 using lookup_cmd_composition, as valid_command_p is too strict
6444 and forbids aliases that are the prefix of an existing alias
6445 or command.
6446 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6447 command is properly recognised as a valid command.
6448
6449 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6450
6451 * unittests/help-doc-selftests.c: Rename to
6452 unittests/command-def-selftests.c
6453 * unittests/command-def-selftests.c (help_doc_tests): Update some
6454 comments.
6455 (command_structure_tests, traverse_command_structure): New namespace
6456 and function.
6457 (command_structure_invariants_tests): New function.
6458 (_initialize_command_def_selftests) Renamed from
6459 _initialize_help_doc_selftests, register command_structure_invariants
6460 selftest.
6461
6462 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6463
6464 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6465 an alias of 'show'.
6466
6467 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6468
6469 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6470 ada_is_fixed_point_type. Update all callers.
6471 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6472 all callers.
6473 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6474 Update all callers.
6475 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6476 print_fixed_point_type. Update all callers.
6477 * ada-valprint.c (ada_value_print_num): Replace call to
6478 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6479
6480 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6481
6482 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6483 processors.
6484 (cpu_supports_bts): Add CV_AMD case.
6485
6486 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6487 Simon Marchi <simon.marchi@efficios.com>
6488
6489 * infrun.c (stop_all_threads): Collect multiple wait events at
6490 each pass.
6491
6492 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6493
6494 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6495 type::code instead.
6496
6497 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6498
6499 * gdbtypes.h (struct type) <code, set_code>: New methods.
6500 (TYPE_CODE): Use type::code. Change all call sites used to set
6501 the code to use type::set_code instead.
6502
6503 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6504 Tom de Vries <tdevries@suse.de>
6505 Pedro Alves <palves@redhat.com>
6506
6507 PR threads/25478
6508 * infrun.c (stop_all_threads): Do NOT ignore
6509 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6510 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6511 received.
6512 (handle_no_resumed): Remove code handling a live inferior with no
6513 threads.
6514 * remote.c (has_single_non_exited_thread): New.
6515 (remote_target::update_thread_list): Do not delete a thread if is
6516 the last thread of the process.
6517 * thread.c (thread_select): Call delete_exited_threads instead of
6518 prune_threads.
6519
6520 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6521
6522 * infrun.c (stop_all_threads): Enable/disable thread events of all
6523 targets. Move a debug message denoting the end of the function
6524 into the SCOPED_EXIT block.
6525
6526 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6527
6528 * process-stratum-target.h: Include <set>.
6529 (all_non_exited_process_targets, switch_to_target_no_thread): New
6530 function declarations.
6531 * process-stratum-target.c (all_non_exited_process_targets)
6532 (switch_to_target_no_thread): New function implementations.
6533
6534 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6535
6536 * infrun.c (handle_inferior_event): Extract out a piece of code
6537 into...
6538 (mark_non_executing_threads): ...this new function.
6539
6540 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6541
6542 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6543 use.
6544
6545 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6546
6547 * regcache.c (regcache_read_pc_protected): New function
6548 implementation that returns 0 if the PC cannot read via
6549 'regcache_read_pc'.
6550 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6551 instead of 'regcache_read_pc'.
6552 (keep_going_pass_signal): Ditto.
6553
6554 2020-05-13 Tom Tromey <tromey@adacore.com>
6555
6556 * ada-lang.c (align_value): Remove.
6557 (ada_template_to_fixed_record_type_1): Use align_up.
6558
6559 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6560
6561 * async-event.c: Update the copyright year.
6562 * async-event.h: Update the copyright year.
6563
6564 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6565
6566 * objfiles.h (is_addr_in_objfile,
6567 shared_objfile_contains_address_p): Return bool.
6568 * objfile.c (is_addr_in_objfile,
6569 shared_objfile_contains_address_p): Return bool.
6570
6571 2020-05-11 Tom Tromey <tromey@adacore.com>
6572
6573 * cli/cli-cmds.c (info_command): Restore.
6574 (_initialize_cli_cmds): Use add_prefix_command for "info".
6575 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6576
6577 2020-05-11 Tom Tromey <tromey@adacore.com>
6578
6579 * ada-lang.c (ada_value_primitive_field): Now public.
6580 * ada-lang.h (ada_value_primitive_field): Declare.
6581 * ada-valprint.c (print_field_values): Use
6582 ada_value_primitive_field for wrapper fields.
6583
6584 2020-05-11 Tom de Vries <tdevries@suse.de>
6585
6586 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6587 MODULE_DOMAIN.
6588
6589 2020-05-11 Tom de Vries <tdevries@suse.de>
6590
6591 PR symtab/25941
6592 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6593 with length 0, if not gdb-produced.
6594 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6595
6596 2020-05-09 Tom de Vries <tdevries@suse.de>
6597
6598 PR gdb/25955
6599 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6600 calculation.
6601
6602 2020-05-09 Tom Tromey <tom@tromey.com>
6603
6604 * top.c (server_command): Now bool.
6605 * top.h (server_command): Now bool.
6606
6607 2020-05-08 Tom Tromey <tromey@adacore.com>
6608
6609 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6610 already being processed.
6611
6612 2020-05-08 Tom Tromey <tom@tromey.com>
6613
6614 * printcmd.c (struct display) <next>: Remove.
6615 <display>: New constructor.
6616 <exp_string>: Now a std::string.
6617 <enabled_p>: Now a bool.
6618 (display_number): Move definition earlier.
6619 (displays): Rename from display_chain. Now a std::vector.
6620 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6621 (display_command): Update.
6622 (do_one_display, disable_display)
6623 (enable_disable_display_command, do_enable_disable_display):
6624 Update.
6625 (free_display): Remove.
6626 (clear_displays): Rewrite.
6627 (delete_display): Update.
6628 (map_display_numbers): Use function_view. Remove "data"
6629 parameter. Update.
6630 (do_delete_display): Remove.
6631 (undisplay_command): Update.
6632 (do_one_display, do_displays, disable_display)
6633 (info_display_command): Update.
6634 (do_enable_disable_display): Remove.
6635 (enable_disable_display_command)
6636 (clear_dangling_display_expressions): Update.
6637
6638 2020-05-08 Tom Tromey <tom@tromey.com>
6639
6640 * symtab.c (set_symbol_cache_size)
6641 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6642 (maintenance_print_symbol_cache_statistics): Update.
6643 * symmisc.c (print_symbol_bcache_statistics)
6644 (print_objfile_statistics, maintenance_print_objfiles)
6645 (maintenance_info_symtabs, maintenance_check_symtabs)
6646 (maintenance_expand_symtabs, maintenance_info_line_tables):
6647 Update.
6648 * symfile-debug.c (set_debug_symfile): Update.
6649 * source.c (forget_cached_source_info): Update.
6650 * python/python.c (gdbpy_progspaces): Update.
6651 * psymtab.c (maintenance_info_psymtabs): Update.
6652 * probe.c (parse_probes): Update.
6653 * linespec.c (iterate_over_all_matching_symtabs)
6654 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6655 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6656 * exec.c (exec_target::close): Update.
6657 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6658 * breakpoint.c (print_one_breakpoint_location)
6659 (create_longjmp_master_breakpoint)
6660 (create_std_terminate_master_breakpoint): Update.
6661 * progspace.c (program_spaces): Now a std::vector.
6662 (maybe_new_address_space): Update.
6663 (add_program_space): Remove.
6664 (program_space::program_space): Update.
6665 (remove_program_space): Update.
6666 (number_of_program_spaces): Remove.
6667 (print_program_space, update_address_spaces): Update.
6668 * progspace.h (program_spaces): Change type.
6669 (ALL_PSPACES): Remove.
6670 (number_of_program_spaces): Don't declare.
6671 (struct program_space) <next>: Remove.
6672
6673 2020-05-08 Tom Tromey <tom@tromey.com>
6674
6675 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6676 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6677 (enable_break): Update.
6678 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6679 (frv_fdpic_find_canonical_descriptor): Update.
6680 (frv_fetch_objfile_link_map): Update.
6681 * progspace.c (program_space::free_all_objfiles): Update.
6682 (program_space::solibs): New method.
6683 * progspace.h (struct program_space) <solibs>: New method.
6684 * solist.h (master_so_list): Don't declare.
6685 (ALL_SO_LIBS): Remove.
6686 * solib.h (so_list_head): Remove.
6687 (update_solib_list): Update comment.
6688 * solib.c (master_so_list): Remove.
6689 (solib_used, update_solib_list, solib_add)
6690 (info_sharedlibrary_command, clear_solib)
6691 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6692
6693 2020-05-08 Tom Tromey <tom@tromey.com>
6694
6695 * extension.c (extension_languages): Now a std::array.
6696 (ALL_EXTENSION_LANGUAGES): Remove.
6697 (get_ext_lang_defn, get_ext_lang_of_file)
6698 (eval_ext_lang_from_control_command): Update.
6699 (finish_ext_lang_initialization)
6700 (auto_load_ext_lang_scripts_for_objfile)
6701 (ext_lang_type_printers::ext_lang_type_printers)
6702 (apply_ext_lang_type_printers)
6703 (ext_lang_type_printers::~ext_lang_type_printers)
6704 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6705 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6706 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6707 (get_matching_xmethod_workers, ext_lang_colorize)
6708 (ext_lang_before_prompt): Update.
6709 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6710
6711 2020-05-08 Tom Tromey <tom@tromey.com>
6712
6713 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6714 overload.
6715 <swap_string, m_string>: Remove.
6716 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6717 Update.
6718 * stabsread.c (define_symbol, read_type): Update.
6719 * linespec.c (find_linespec_symbols): Update.
6720 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6721 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6722 * dbxread.c (read_dbx_symtab): Update.
6723 * cp-support.h (cp_canonicalize_string_full)
6724 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6725 Return unique_xmalloc_ptr.
6726 * cp-support.c (inspect_type): Update.
6727 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6728 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6729 Likewise.
6730 * c-typeprint.c (print_name_maybe_canonical): Update.
6731 * break-catch-throw.c (check_status_exception_catchpoint):
6732 Update.
6733
6734 2020-05-08 Tom de Vries <tdevries@suse.de>
6735
6736 * infrun.c (follow_fork): Copy current_line and current_symtab to
6737 child thread.
6738
6739 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6740
6741 * async-event.c (struct async_signal_handler, struct
6742 async_event_handler): Reformat, remove typedef.
6743
6744 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6745
6746 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6747 access thistype->main_type->dyn_prop_list directly.
6748
6749 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6750
6751 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6752 (remove_dyn_prop): Remove. Update all users to use
6753 type::remove_dyn_prop.
6754 * gdbtypes.c (remove_dyn_prop): Rename to...
6755 (type::remove_dyn_prop): ... this.
6756
6757 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6758
6759 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6760 (add_dyn_prop): Remove. Update all users to use
6761 type::add_dyn_prop.
6762 * gdbtypes.c (add_dyn_prop): Rename to...
6763 (type::add_dyn_prop): ... this.
6764
6765 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6766
6767 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6768 (get_dyn_prop): Remove. Update all users to use
6769 type::dyn_prop.
6770 * gdbtypes.c (get_dyn_prop): Rename to...
6771 (type::dyn_prop): ... this.
6772
6773 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6774
6775 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6776
6777 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6778
6779 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6780 instruction, skip it if it's there.
6781
6782 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6783
6784 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6785
6786 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6787
6788 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6789 * gdbtypes.c (recursive_dump_type): Remove use of
6790 TYPE_INCOMPLETE.
6791
6792 2020-05-03 Tom Tromey <tom@tromey.com>
6793
6794 * breakpoint.c (catch_command, tcatch_command): Remove.
6795 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6796 add_show_prefix_cmd.
6797 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6798 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6799 Remove.
6800 (add_internal_problem_command): Use add_basic_prefix_cmd,
6801 add_show_prefix_cmd.
6802 * mips-tdep.c (set_mipsfpu_command): Remove.
6803 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6804 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6805 (_initialize_index_cache): Use add_basic_prefix_cmd.
6806 * memattr.c (dummy_cmd): Remove.
6807 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6808 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6809 (_initialize_tui_win): Use add_basic_prefix_cmd,
6810 add_show_prefix_cmd.
6811 * cli/cli-logging.c (set_logging_command): Remove.
6812 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6813 add_show_prefix_cmd.
6814 (show_logging_command): Remove.
6815 * target.c (target_command): Remove.
6816 (add_target): Use add_basic_prefix_cmd.
6817
6818 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6819
6820 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6821
6822 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6823
6824 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6825 info_command.
6826
6827 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6828
6829 * nbsd-nat.c (nbsd_enable_proc_events)
6830 (nbsd_nat_target::post_startup_inferior): Add.
6831 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6832 (nbsd_nat_target::update_thread_list): Rewrite.
6833 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6834 "PTRACE_LWP_CREATE".
6835 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6836
6837 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6838
6839 * stack.c (_initialize_stack): Remove duplicated creation
6840 of "frame" command and "f" alias.
6841
6842 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6843
6844 PR gdb/18706
6845 * gdbtypes.c (check_typedef): Calculate size of array of
6846 stubbed type.
6847
6848 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6849
6850 PR gdb/15559
6851 * i386-tdep.c (i386_push_dummy_call): Call
6852 i386_thiscall_push_dummy_call.
6853 (i386_thiscall_push_dummy_call): New function.
6854 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6855 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6856 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6857
6858 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6859
6860 * gdbarch.sh (do_read): Add shellcheck disable directive for
6861 warning SC2162.
6862
6863 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6864
6865 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6866 "referenced but not assigned" warning.
6867
6868 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6869
6870 * gdbarch.sh: Remove code that sets fallbackdefault.
6871
6872 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6873
6874 * gdbarch.sh: Use shell operators && and || instead of
6875 -a and -o.
6876
6877 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6878
6879 * gdbarch.sh: Use $(...) instead of `...`.
6880
6881 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6882
6883 * gdbarch.sh: Use double quotes around variables.
6884
6885 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6886
6887 * gdbarch.sh: Use %s with printf, instead of variables in the
6888 format string.
6889
6890 2020-04-29 Tom Tromey <tromey@adacore.com>
6891
6892 PR ada/25875:
6893 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6894 type fields here.
6895 (read_enumeration_type): Call
6896 update_enumeration_type_from_children later. Update comments.
6897 (process_enumeration_scope): Don't create type fields.
6898
6899 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6900
6901 * nbsd-tdep.c: Include "xml-syscall.h".
6902 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6903
6904 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6905
6906 * nbsd-nat.c: Include "sys/wait.h".
6907 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6908 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6909 (nbsd_nat_target::remove_exec_catchpoint)
6910 (nbsd_nat_target::set_syscall_catchpoint): Add.
6911 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6912 (nbsd_nat_target::insert_exec_catchpoint)
6913 (nbsd_nat_target::remove_exec_catchpoint)
6914 (nbsd_nat_target::set_syscall_catchpoint): Add.
6915 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6916 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6917 `nbsd_get_syscall_number'.
6918
6919 2020-04-29 Tom Tromey <tom@tromey.com>
6920
6921 * stack.c (print_block_frame_labels): Remove.
6922
6923 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6924
6925 PR gdb/17320
6926 * ada-valprint.c (val_print_packed_array_elements): Move array
6927 end bracket to new line.
6928 (ada_val_print_string): Remove extra spaces before first array
6929 element.
6930 * c-valprint.c (c_value_print_array): Likewise.
6931 * m2-valprint.c (m2_print_array_contents): Likewise.
6932 (m2_value_print_inner): Likewise.
6933 * p-valprint.c (pascal_value_print_inner): Likewise.
6934 * valprint.c (generic_val_print_array): Likewise.
6935 (value_print_array_elements): Move first array element and array
6936 end bracket to new line.
6937
6938 2020-04-29 Tom de Vries <tdevries@suse.de>
6939
6940 PR symtab/25889
6941 * linespec.c (find_method): Fix ix calculation.
6942
6943 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6944
6945 * syscalls/update-netbsd.sh: New file.
6946 * syscalls/netbsd.xml: Regenerate.
6947 * data-directory/Makefile.in: Register `netbsd.xml' in
6948 `SYSCALLS_FILES'.
6949
6950 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6951
6952 * syscalls/update-freebsd.sh: Add double quotes.
6953
6954 2020-04-28 Tom Tromey <tom@tromey.com>
6955
6956 * NEWS: Update.
6957 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6958 (cmdpy_init): Allow class_tui.
6959
6960 2020-04-28 Mark Williams <mark@myosotissp.com>
6961
6962 PR gdb/24480
6963 * dwarf2read.c: Add missing assingments to list_in_scope when
6964 start_symtab was already called.
6965
6966 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6967
6968 PR gdb/25881
6969 * dwarf2/read.c (offset_map_type): Use
6970 gdb:hash_enum<sect_offset> as hash function.
6971
6972 2020-04-28 Tom de Vries <tdevries@suse.de>
6973
6974 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6975 with DW_AT_signature.
6976
6977 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6978
6979 * configure.ac: Remove check for fs_base/gs_base in
6980 user_regs_struct.
6981 * configure: Re-generate.
6982 * config.in: Re-generate.
6983 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6984 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6985 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6986
6987 2020-04-27 Luis Machado <luis.machado@linaro.org>
6988
6989 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6990 problematic inline frame unwinding situation.
6991 * frame.c (frame_id_computed_p): New function.
6992 * frame.h (frame_id_computed_p): New prototype.
6993
6994 2020-04-26 Tom Tromey <tom@tromey.com>
6995
6996 * command.h (enum command_class) <class_pseudo>: Remove.
6997
6998 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6999
7000 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7001 and whitespace.
7002
7003 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7004
7005 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7006 `PT_GET_PROCESS_STATE' block.
7007
7008 2020-04-24 Tom Tromey <tom@tromey.com>
7009
7010 * symtab.h (symbol_get_demangled_name): Don't declare.
7011 * symtab.c (symbol_get_demangled_name): Remove.
7012 (general_symbol_info::natural_name)
7013 (general_symbol_info::demangled_name): Update.
7014
7015 2020-04-24 Tom Tromey <tom@tromey.com>
7016
7017 PR rust/25025:
7018 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7019
7020 2020-04-24 Tom Tromey <tom@tromey.com>
7021
7022 PR symtab/12707:
7023 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7024 exists.
7025 (new_symbol): Likewise.
7026 * compile/compile-object-load.c (get_out_value_type): Use
7027 symbol_matches_search_name.
7028
7029 2020-04-24 Tom Tromey <tom@tromey.com>
7030
7031 * dwarf2/read.c (add_partial_symbol): Do not call
7032 compute_and_set_names.
7033
7034 2020-04-24 Tom Tromey <tom@tromey.com>
7035
7036 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7037 overload.
7038
7039 2020-04-24 Tom Tromey <tom@tromey.com>
7040
7041 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7042 (add_psymbol_to_list): New overload. Make old overload call new
7043 one.
7044 * psympriv.h (add_psymbol_to_list): New overload.
7045
7046 2020-04-24 Tom Tromey <tom@tromey.com>
7047
7048 * dwarf2/read.c (partial_die_info::read) <case
7049 DW_AT_linkage_name>: Use value_as_string.
7050 (dwarf2_string_attr): Use value_as_string.
7051 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7052 method.
7053 * dwarf2/attribute.c (attribute::value_as_string): New method.
7054
7055 2020-04-24 Tom Tromey <tom@tromey.com>
7056
7057 * symtab.c (general_symbol_info::natural_name)
7058 (general_symbol_info::demangled_name): Check for language_rust.
7059
7060 2020-04-24 Tom Tromey <tom@tromey.com>
7061
7062 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7063 (dwarf2_physname): ... from here.
7064 (partial_die_info::read): Add Rust "{" hack.
7065
7066 2020-04-24 Tom Tromey <tom@tromey.com>
7067
7068 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7069 method.
7070 (symbol_set_demangled_name): Don't declare.
7071 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7072 symbol_set_demangled_name.
7073 (general_symbol_info::set_language)
7074 (general_symbol_info::compute_and_set_names): Update.
7075 * minsyms.c (minimal_symbol_reader::install): Update.
7076 * dwarf2/read.c (new_symbol): Update.
7077
7078 2020-04-24 Tom Tromey <tromey@adacore.com>
7079
7080 PR python/23662:
7081 * python/py-type.c (convert_field): Handle
7082 FIELD_LOC_KIND_DWARF_BLOCK.
7083 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7084 (typy_get_dynamic): Nw function.
7085 (type_object_getset): Add "dynamic".
7086 * NEWS: Add entry.
7087
7088 2020-04-24 Tom Tromey <tromey@adacore.com>
7089
7090 * ada-typeprint.c (print_choices, print_variant_part)
7091 (print_record_field_types_dynamic): New functions.
7092 (print_record_field_types): Use print_record_field_types_dynamic.
7093
7094 2020-04-24 Tom Tromey <tromey@adacore.com>
7095
7096 * dwarf2/read.c (handle_data_member_location): New overload.
7097 (dwarf2_add_field): Use it.
7098 (decode_locdesc): Add "computed" parameter. Update comment.
7099 * gdbtypes.c (is_dynamic_type_internal): Also look for
7100 FIELD_LOC_KIND_DWARF_BLOCK.
7101 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7102 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7103 virtual base classes.
7104 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7105 FIELD_LOC_KIND_DWARF_BLOCK.
7106
7107 2020-04-24 Tom Tromey <tromey@adacore.com>
7108
7109 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7110 * gdbtypes.c (is_dynamic_type_internal): Check
7111 TYPE_HAS_DYNAMIC_LENGTH.
7112 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7113 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7114 New macros.
7115 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7116 constant.
7117
7118 2020-04-24 Tom Tromey <tromey@adacore.com>
7119
7120 * dwarf2/read.c (struct variant_field): Rewrite.
7121 (struct variant_part_builder): New.
7122 (struct nextfield): Remove "variant" field. Add "offset".
7123 (struct field_info): Add "current_variant_part" and
7124 "variant_parts".
7125 (alloc_discriminant_info): Remove.
7126 (alloc_rust_variant): New function.
7127 (quirk_rust_enum): Update.
7128 (dwarf2_add_field): Set "offset" member. Don't handle
7129 DW_TAG_variant_part.
7130 (offset_map_type): New typedef.
7131 (convert_variant_range, create_one_variant)
7132 (create_one_variant_part, create_variant_parts)
7133 (add_variant_property): New functions.
7134 (dwarf2_attach_fields_to_type): Call add_variant_property.
7135 (read_structure_type): Don't handle DW_TAG_variant_part.
7136 (handle_variant_part, handle_variant): New functions.
7137 (handle_struct_member_die): Use them.
7138 (process_structure_scope): Don't handle variant parts.
7139 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7140 (struct discriminant_info): Remove.
7141 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7142 (struct main_type) <flag_discriminated_union>: Remove.
7143 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7144 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7145 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7146 Update.
7147 * valops.c (value_union_variant): Remove.
7148 * value.h (value_union_variant): Don't declare.
7149
7150 2020-04-24 Tom Tromey <tromey@adacore.com>
7151
7152 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7153 (ada_value_primitive_packed_val): Update.
7154 * ada-valprint.c (ada_value_print_1): Update.
7155 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7156 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7157 just an address. Use evaluate_for_locexpr_baton.
7158 (dwarf2_evaluate_property): Update.
7159 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7160 array_view.
7161 * findvar.c (default_read_var_value): Update.
7162 * gdbtypes.c (compute_variant_fields_inner)
7163 (resolve_dynamic_type_internal): Update.
7164 (resolve_dynamic_type): Change type of valaddr parameter.
7165 * gdbtypes.h (resolve_dynamic_type): Update.
7166 * valarith.c (value_subscripted_rvalue): Update.
7167 * value.c (value_from_contents_and_address): Update.
7168
7169 2020-04-24 Tom Tromey <tromey@adacore.com>
7170
7171 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7172 "push_initial_value" parameter.
7173 (dwarf2_evaluate_property): Likewise.
7174 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7175
7176 2020-04-24 Tom Tromey <tromey@adacore.com>
7177
7178 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7179 (variant::matches, compute_variant_fields_recurse)
7180 (compute_variant_fields_inner, compute_variant_fields): New
7181 functions.
7182 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7183 Use resolved_type after type is made.
7184 (operator==): Add new cases.
7185 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7186 (struct discriminant_range, struct variant, struct variant_part):
7187 New.
7188 (union dynamic_prop_data) <variant_parts, original_type>: New
7189 members.
7190 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7191 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7192 constants.
7193 * value.c (unpack_bits_as_long): Now public.
7194 * value.h (unpack_bits_as_long): Declare.
7195
7196 2020-04-24 Tom Tromey <tromey@adacore.com>
7197
7198 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7199 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7200
7201 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7202
7203 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7204
7205 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7206
7207 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7208 (remove_fork_catchpoint, post_startup_inferior)
7209 (post_attach): Move...
7210 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7211 (remove_fork_catchpoint, post_startup_inferior)
7212 (post_attach): ...here.
7213 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7214 (remove_fork_catchpoint, post_startup_inferior)
7215 (post_attach): Move...
7216 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7217 (remove_fork_catchpoint, post_startup_inferior)
7218 (post_attach): ...here.
7219
7220 2020-04-24 Tom Tromey <tromey@adacore.com>
7221
7222 * nat/windows-nat.h (struct windows_thread_info)
7223 <pc_adjusted>: New member.
7224 * windows-nat.c (windows_fetch_one_register): Check
7225 pc_adjusted.
7226 (windows_nat_target::get_windows_debug_event)
7227 (windows_nat_target::wait): Set pc_adjusted.
7228
7229 2020-04-24 Tom de Vries <tdevries@suse.de>
7230
7231 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7232 Run gdb-add-index inside temp dir.
7233
7234 2020-04-23 Tom Tromey <tromey@adacore.com>
7235
7236 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7237 in loop.
7238
7239 2020-04-23 Luis Machado <luis.machado@linaro.org>
7240
7241 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7242 get_frame_register instead of gdbarch_unwind_pc.
7243
7244 2020-04-23 Tom de Vries <tdevries@suse.de>
7245
7246 * symtab.c (lookup_global_symbol): Prefer def over decl.
7247
7248 2020-04-23 Tom de Vries <tdevries@suse.de>
7249
7250 PR symtab/25807
7251 * block.c (best_symbol, better_symbol): Promote to external.
7252 * block.h (best_symbol, better_symbol): Declare.
7253 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7254 decl.
7255
7256 2020-04-23 Tom Tromey <tromey@adacore.com>
7257
7258 PR ada/25837:
7259 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7260 "const char *", not a "const std::string &".
7261 <name_and_matcher::operator==>: Update.
7262 * unittests/lookup_name_info-selftests.c: Change type of
7263 "result".
7264
7265 2020-04-23 Tom Tromey <tom@tromey.com>
7266
7267 * inferior.h (iterate_over_inferiors): Don't declare.
7268 * inferior.c (iterate_over_inferiors): Remove.
7269 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7270 Remove.
7271 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7272 use iterate_over_inferiors.
7273 (darwin_resume_inferior_it)
7274 (struct resume_inferior_threads_param)
7275 (darwin_resume_inferior_threads_it): Remove.
7276 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7277
7278 2020-04-23 Tom de Vries <tdevries@suse.de>
7279
7280 * blockframe.c (find_pc_partial_function): Use
7281 find_pc_sect_compunit_symtab rather than
7282 objfile->sf->qf->find_pc_sect_compunit_symtab.
7283
7284 2020-04-22 Tom de Vries <tdevries@suse.de>
7285
7286 PR symtab/25764
7287 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7288 in psymtabs.
7289
7290 2020-04-22 Tom de Vries <tdevries@suse.de>
7291
7292 PR symtab/25801
7293 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7294 symtabs.
7295
7296 2020-04-22 Tom de Vries <tdevries@suse.de>
7297
7298 PR symtab/25700
7299 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7300 CU if already created.
7301
7302 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7303
7304 * infrun.c (displaced_step_fixup): Switch to the event_thread
7305 before calling displaced_step_restore, not after.
7306
7307 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7308
7309 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7310 its inferior is not recorded by us.
7311 (record_btrace_target_open): Replace call to
7312 all_non_exited_threads () with call to current_inferior
7313 ()->non_exited_threads ().
7314 (record_btrace_target::stop_recording): Likewise.
7315 (record_btrace_target::close): Likewise.
7316 (record_btrace_target::wait): Likewise.
7317 (record_btrace_target::record_stop_replaying): Likewise.
7318
7319 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7320
7321 * btrace.c (btrace_enable): Throw an error on double enables and
7322 when enabling recording fails.
7323 (btrace_disable): Throw an error if the thread is not recorded.
7324
7325 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7326
7327 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7328 request if we do not have a thread_info.
7329
7330 2020-04-21 Tom de Vries <tdevries@suse.de>
7331
7332 PR gdb/25471
7333 * thread.c
7334 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7335 exception in get_frame_id.
7336
7337 2020-04-20 Tom Tromey <tromey@adacore.com>
7338
7339 * python/python.c (struct gdbpy_event): Mark move constructor as
7340 noexcept.
7341 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7342 constructor as noexcept.
7343 * completer.h (struct completion_result): Mark move constructor as
7344 noexcept.
7345 * completer.c (completion_result::completion_result): Use
7346 initialization style. Don't call reset_match_list.
7347
7348 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7349
7350 * MAINTAINERS (Write After Approval): Add myself.
7351
7352 2020-04-18 Tom Tromey <tom@tromey.com>
7353
7354 * windows-tdep.c (init_w32_command_list)
7355 (w32_prefix_command_valid): Restore.
7356 (_initialize_windows_tdep): Call init_w32_command_list.
7357
7358 2020-04-18 Tom Tromey <tom@tromey.com>
7359
7360 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7361 * value.c (value_fn_field): Update.
7362 * valops.c (find_function_in_inferior)
7363 (value_allocate_space_in_inferior): Update.
7364 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7365 Update.
7366 * tui/tui-source.c (tui_source_window::set_contents): Update.
7367 * symtab.c (lookup_global_or_static_symbol)
7368 (find_function_start_sal_1, skip_prologue_sal)
7369 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7370 * symmisc.c (dump_msymbols, dump_symtab_1)
7371 (maintenance_print_one_line_table): Update.
7372 * symfile.c (init_entry_point_info, section_is_mapped)
7373 (list_overlays_command, simple_read_overlay_table)
7374 (simple_overlay_update_1): Update.
7375 * stap-probe.c (handle_stap_probe): Update.
7376 * stabsread.c (dbx_init_float_type, define_symbol)
7377 (read_one_struct_field, read_enum_type, read_range_type): Update.
7378 * source.c (info_line_command): Update.
7379 * python/python.c (gdbpy_source_objfile_script)
7380 (gdbpy_execute_objfile_script): Update.
7381 * python/py-type.c (save_objfile_types): Update.
7382 * python/py-objfile.c (py_free_objfile): Update.
7383 * python/py-inferior.c (python_new_objfile): Update.
7384 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7385 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7386 (maintenance_check_psymtabs): Update.
7387 * printcmd.c (info_address_command): Update.
7388 * objfiles.h (struct objfile) <arch>: New method, from
7389 get_objfile_arch.
7390 (get_objfile_arch): Don't declare.
7391 * objfiles.c (get_objfile_arch): Remove.
7392 (filter_overlapping_sections): Update.
7393 * minsyms.c (msymbol_is_function): Update.
7394 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7395 (output_nondebug_symbol): Update.
7396 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7397 (mdebug_expand_psymtab): Update.
7398 * machoread.c (macho_add_oso_symfile): Update.
7399 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7400 Update.
7401 * linux-fork.c (checkpoint_command): Update.
7402 * linespec.c (convert_linespec_to_sals): Update.
7403 * jit.c (finalize_symtab): Update.
7404 * infrun.c (insert_exception_resume_from_probe): Update.
7405 * ia64-tdep.c (ia64_find_unwind_table): Update.
7406 * hppa-tdep.c (internalize_unwinds): Update.
7407 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7408 Update.
7409 * gcore.c (call_target_sbrk): Update.
7410 * elfread.c (record_minimal_symbol, elf_symtab_read)
7411 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7412 (elf_gnu_ifunc_resolve_by_got): Update.
7413 * dwarf2/read.c (create_addrmap_from_index)
7414 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7415 (read_debug_names_from_section)
7416 (process_psymtab_comp_unit_reader, add_partial_symbol)
7417 (add_partial_subprogram, process_full_comp_unit)
7418 (read_file_scope, read_func_scope, read_lexical_block_scope)
7419 (read_call_site_scope, dwarf2_ranges_read)
7420 (dwarf2_record_block_ranges, dwarf2_add_field)
7421 (mark_common_block_symbol_computed, read_tag_pointer_type)
7422 (read_tag_string_type, dwarf2_init_float_type)
7423 (dwarf2_init_complex_target_type, read_base_type)
7424 (partial_die_info::read, partial_die_info::read)
7425 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7426 (dwarf2_fetch_die_loc_sect_off): Update.
7427 * dwarf2/loc.c (dwarf2_find_location_expression)
7428 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7429 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7430 (dwarf2_loc_desc_get_symbol_read_needs)
7431 (locexpr_describe_location_piece, locexpr_describe_location_1)
7432 (loclist_describe_location): Update.
7433 * dwarf2/index-write.c (write_debug_names): Update.
7434 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7435 * dtrace-probe.c (dtrace_process_dof): Update.
7436 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7437 (process_one_symbol): Update.
7438 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7439 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7440 (coff_read_enum_type): Update.
7441 * cli/cli-cmds.c (edit_command, list_command): Update.
7442 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7443 * breakpoint.c (create_overlay_event_breakpoint)
7444 (create_longjmp_master_breakpoint)
7445 (create_std_terminate_master_breakpoint)
7446 (create_exception_master_breakpoint, get_sal_arch): Update.
7447 * block.c (block_gdbarch): Update.
7448 * annotate.c (annotate_source_line): Update.
7449
7450 2020-04-17 Tom Tromey <tromey@adacore.com>
7451
7452 * auto-load.c (show_auto_load_cmd): Remove.
7453 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7454 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7455 (maintenance_print_arc_command): Remove.
7456 * tui/tui-win.c (tui_command): Remove.
7457 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7458 * tui/tui-layout.c (tui_layout_command): Remove.
7459 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7460 * python/python.c (user_set_python, user_show_python): Remove.
7461 (_initialize_python): Use add_basic_prefix_cmd,
7462 add_show_prefix_cmd.
7463 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7464 (install_gdb_commands): Use add_basic_prefix_cmd,
7465 add_show_prefix_cmd.
7466 (info_guile_command): Remove.
7467 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7468 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7469 add_show_prefix_cmd.
7470 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7471 Remove do_set and do_show parameters.
7472 * cli/cli-style.c (set_style, show_style): Remove.
7473 (_initialize_cli_style): Use add_basic_prefix_cmd,
7474 add_show_prefix_cmd.
7475 (cli_style_option::add_setshow_commands): Remove do_set and
7476 do_show parameters.
7477 (cli_style_option::add_setshow_commands): Use
7478 add_basic_prefix_cmd, add_show_prefix_cmd.
7479 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7480 (set_style_name): Remove.
7481 * cli/cli-dump.c (dump_command, append_command): Remove.
7482 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7483 (tekhex_dump_command, binary_dump_command)
7484 (binary_append_command): Remove.
7485 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7486 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7487 (init_w32_command_list): Remove; move into ...
7488 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7489 * valprint.c (set_print, show_print, set_print_raw)
7490 (show_print_raw): Remove.
7491 (_initialize_valprint): Use add_basic_prefix_cmd,
7492 add_show_prefix_cmd.
7493 * typeprint.c (set_print_type, show_print_type): Remove.
7494 (_initialize_typeprint): Use add_basic_prefix_cmd,
7495 add_show_prefix_cmd.
7496 * record.c (set_record_command, show_record_command): Remove.
7497 (_initialize_record): Use add_basic_prefix_cmd,
7498 add_show_prefix_cmd.
7499 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7500 add_show_prefix_cmd.
7501 (info_command, show_command, set_debug, show_debug): Remove.
7502 * top.h (set_history, show_history): Don't declare.
7503 * top.c (set_history, show_history): Remove.
7504 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7505 (unset_tdesc_cmd): Remove.
7506 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7507 add_show_prefix_cmd.
7508 * symtab.c (info_module_command): Remove.
7509 (_initialize_symtab): Use add_basic_prefix_cmd.
7510 * symfile.c (overlay_command): Remove.
7511 (_initialize_symfile): Use add_basic_prefix_cmd.
7512 * sparc64-tdep.c (info_adi_command): Remove.
7513 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7514 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7515 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7516 add_show_prefix_cmd.
7517 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7518 (_initialize_serial): Use add_basic_prefix_cmd,
7519 add_show_prefix_cmd.
7520 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7521 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7522 add_show_prefix_cmd.
7523 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7524 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7525 add_show_prefix_cmd.
7526 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7527 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7528 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7529 add_show_prefix_cmd.
7530 * remote.c (remote_command, set_remote_cmd): Remove.
7531 (_initialize_remote): Use add_basic_prefix_cmd.
7532 * record-full.c (set_record_full_command)
7533 (show_record_full_command): Remove.
7534 (_initialize_record_full): Use add_basic_prefix_cmd,
7535 add_show_prefix_cmd.
7536 * record-btrace.c (cmd_set_record_btrace)
7537 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7538 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7539 (cmd_show_record_btrace_pt): Remove.
7540 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7541 add_show_prefix_cmd.
7542 * ravenscar-thread.c (set_ravenscar_command)
7543 (show_ravenscar_command): Remove.
7544 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7545 add_show_prefix_cmd.
7546 * mips-tdep.c (show_mips_command, set_mips_command)
7547 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7548 add_show_prefix_cmd.
7549 * maint.c (maintenance_command, maintenance_info_command)
7550 (maintenance_check_command, maintenance_print_command)
7551 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7552 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7553 add_show_prefix_cmd.
7554 (show_per_command_cmd): Remove.
7555 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7556 Remove.
7557 (maintenance_show_test_settings_cmd): Remove.
7558 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7559 add_show_prefix_cmd.
7560 * maint-test-options.c (maintenance_test_options_command):
7561 Remove.
7562 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7563 * macrocmd.c (macro_command): Remove
7564 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7565 * language.c (set_check, show_check): Remove.
7566 (_initialize_language): Use add_basic_prefix_cmd,
7567 add_show_prefix_cmd.
7568 * infcmd.c (unset_command): Remove.
7569 (_initialize_infcmd): Use add_basic_prefix_cmd.
7570 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7571 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7572 add_show_prefix_cmd.
7573 * go32-nat.c (go32_info_dos_command): Remove.
7574 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7575 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7576 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7577 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7578 (_initialize_frame): Use add_basic_prefix_cmd,
7579 add_show_prefix_cmd.
7580 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7581 (_initialize_dcache): Use add_basic_prefix_cmd,
7582 add_show_prefix_cmd.
7583 * cp-support.c (maint_cplus_command): Remove.
7584 (_initialize_cp_support): Use add_basic_prefix_cmd.
7585 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7586 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7587 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7588 add_basic_prefix_cmd, add_show_prefix_cmd.
7589 * breakpoint.c (save_command): Remove.
7590 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7591 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7592 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7593 add_show_prefix_cmd.
7594 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7595 (set_ada_command, show_ada_command): Remove.
7596 (_initialize_ada_language): Use add_basic_prefix_cmd,
7597 add_show_prefix_cmd.
7598 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7599
7600 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7601
7602 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7603 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7604
7605 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7606
7607 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7608 warning messages.
7609
7610 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7611
7612 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7613 import table is not at beginning of .idata section.
7614
7615 2020-04-16 Pedro Alves <palves@redhat.com>
7616
7617 * inferior.c (delete_inferior): Use delete operator directly
7618 instead of delete_program_space.
7619 * progspace.c (add_program_space): New, factored out from
7620 program_space::program_space.
7621 (remove_program_space): New, factored out from
7622 delete_program_space.
7623 (program_space::program_space): Remove intro comment. Rewrite.
7624 (program_space::~program_space): Remove intro comment. Call
7625 remove_program_space.
7626 (delete_program_space): Delete.
7627 * progspace.h (program_space::program_space): Make explicit. Move
7628 intro comment here, adjusted.
7629 (program_space::~program_space): Move intro comment here,
7630 adjusted.
7631 (delete_program_space): Remove.
7632
7633 2020-04-16 Tom Tromey <tromey@adacore.com>
7634
7635 * windows-nat.c (windows_nat::handle_access_violation): New
7636 function.
7637 * nat/windows-nat.h (handle_access_violation): Declare.
7638 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7639 windows-nat.c. Call handle_access_violation.
7640
7641 2020-04-16 Tom de Vries <tdevries@suse.de>
7642
7643 PR symtab/25791
7644 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7645 CUs without psymtab.
7646
7647 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7648
7649 * python/python.c (do_start_initialization): Don't call
7650 PyEval_InitThreads for Python 3.9 and beyond.
7651
7652 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7653
7654 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7655 thread functions.
7656 (obsd_nat_target::wait): Likewise.
7657
7658 2020-04-15 Tom Tromey <tromey@adacore.com>
7659
7660 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7661 (DEBUG_EXCEPT): Use debug_printf.
7662
7663 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7664
7665 * completer.c (class completion_tracker::completion_hash_entry)
7666 <hash_name>: New member function.
7667 (completion_tracker::discard_completions): New callback to hash a
7668 completion_hash_entry, pass this to htab_create_alloc.
7669
7670 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7671
7672 * windows-nat.c (windows_make_so): Warn rather than stopping with
7673 an error if realpath() fails.
7674
7675 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7676
7677 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7678 (nbsd_nat_target::info_proc): Add do_status.
7679
7680 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7681 Tom de Vries <tdevries@suse.de>
7682
7683 PR symtab/25718
7684 * psympriv.h (struct partial_symtab::read_symtab)
7685 (struct partial_symtab::expand_psymtab)
7686 (struct partial_symtab::read_dependencies): Update comments.
7687 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7688 read_symtab for includer.
7689 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7690 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7691 (struct dwarf2_include_psymtab::m_readin): Remove.
7692 (struct dwarf2_include_psymtab::includer): New member function.
7693 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7694
7695 2020-04-14 Tom de Vries <tdevries@suse.de>
7696
7697 PR symtab/25720
7698 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7699 with NULL symbol_matcher and lookup_name.
7700 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7701 and lookup_name.
7702 * dwarf2/read.c (dw2_expand_symtabs_matching)
7703 (dw2_debug_names_expand_symtabs_matching): Same.
7704 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7705 Make lookup_name a pointer. Update comment.
7706 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7707 lookup_name being a pointer.
7708 * symfile.c (expand_symtabs_matching): Same.
7709 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7710 * linespec.c (iterate_over_all_matching_symtabs): Same.
7711
7712 2020-04-13 Tom Tromey <tom@tromey.com>
7713
7714 * run-on-main-thread.c: Update include.
7715 * unittests/main-thread-selftests.c: Update include.
7716 * tui/tui-win.c: Update include.
7717 * tui/tui-io.c: Update include.
7718 * tui/tui-interp.c: Update include.
7719 * tui/tui-hooks.c: Update include.
7720 * top.h: Update include.
7721 * top.c: Update include.
7722 * ser-base.c: Update include.
7723 * remote.c: Update include.
7724 * remote-notif.c: Update include.
7725 * remote-fileio.c: Update include.
7726 * record-full.c: Update include.
7727 * record-btrace.c: Update include.
7728 * python/python.c: Update include.
7729 * posix-hdep.c: Update include.
7730 * mingw-hdep.c: Update include.
7731 * mi/mi-main.c: Update include.
7732 * mi/mi-interp.c: Update include.
7733 * main.c: Update include.
7734 * linux-nat.c: Update include.
7735 * interps.c: Update include.
7736 * infrun.c: Update include.
7737 * inf-loop.c: Update include.
7738 * event-top.c: Update include.
7739 * event-loop.c: Move to ../gdbsupport/.
7740 * event-loop.h: Move to ../gdbsupport/.
7741 * async-event.h: Update include.
7742 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7743
7744 2020-04-13 Tom Tromey <tom@tromey.com>
7745
7746 * tui/tui-win.c: Include async-event.h.
7747 * remote.c: Include async-event.h.
7748 * remote-notif.c: Include async-event.h.
7749 * record-full.c: Include async-event.h.
7750 * record-btrace.c: Include async-event.h.
7751 * infrun.c: Include async-event.h.
7752 * event-top.c: Include async-event.h.
7753 * event-loop.h: Move some declarations to async-event.h.
7754 * event-loop.c: Don't include ser-event.h or top.h. Move some
7755 code to async-event.c.
7756 * async-event.h: New file.
7757 * async-event.c: New file.
7758 * Makefile.in (COMMON_SFILES): Add async-event.c.
7759 (HFILES_NO_SRCDIR): Add async-event.h.
7760
7761 2020-04-13 Tom Tromey <tom@tromey.com>
7762
7763 * utils.c (flush_streams): New function.
7764 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7765
7766 2020-04-13 Tom Tromey <tom@tromey.com>
7767
7768 * event-loop.c (handle_file_event): Use warning, not
7769 printf_unfiltered.
7770
7771 2020-04-13 Tom Tromey <tom@tromey.com>
7772
7773 * event-loop.c: Include <chrono>.
7774
7775 2020-04-13 Tom Tromey <tom@tromey.com>
7776
7777 * gdb_select.h: Move to ../gdbsupport/.
7778 * event-loop.c: Update include path.
7779 * top.c: Update include path.
7780 * ser-base.c: Update include path.
7781 * ui-file.c: Update include path.
7782 * ser-tcp.c: Update include path.
7783 * guile/scm-ports.c: Update include path.
7784 * posix-hdep.c: Update include path.
7785 * ser-unix.c: Update include path.
7786 * gdb_usleep.c: Update include path.
7787 * mingw-hdep.c: Update include path.
7788 * inflow.c: Update include path.
7789 * infrun.c: Update include path.
7790 * event-top.c: Update include path.
7791
7792 2020-04-13 Tom Tromey <tom@tromey.com>
7793
7794 * configure: Rebuild.
7795 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7796
7797 2020-04-13 Tom Tromey <tom@tromey.com>
7798
7799 * event-loop.h (start_event_loop): Don't declare.
7800 * event-loop.c (start_event_loop): Move...
7801 * main.c (start_event_loop): ...here. Now static.
7802
7803 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7804
7805 * MAINTAINERS: Update my email address.
7806
7807 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7808
7809 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7810 IP_ALL.
7811
7812 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7813
7814 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7815 (nbsd_nat_target::info_proc): Add do_cmdline.
7816
7817 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7818
7819 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7820 (nbsd_nat_target::info_proc): Add do_cwd.
7821
7822 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7823
7824 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7825
7826 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7827
7828 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7829 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7830 (nbsd_nat_target::info_proc): New functions.
7831 * nbsd-nat.c (kinfo_get_vmmap): New function.
7832 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7833 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7834 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7835 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7836 functions.
7837 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7838 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7839 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7840 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7841 (KINFO_VME_FLAG_GROWS_DOWN): New.
7842
7843 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7844
7845 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7846 bit shift.
7847
7848 2020-04-10 Tom Tromey <tromey@adacore.com>
7849
7850 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7851
7852 2020-04-10 Tom Tromey <tromey@adacore.com>
7853
7854 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7855 separate debug files.
7856
7857 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7858
7859 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7860 Move to...
7861 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7862 ... here.
7863 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7864 Check for STATUS_WX86_BREAKPOINT.
7865 (windows_nat_target::wait): Same.
7866
7867 2020-04-10 Tom de Vries <tdevries@suse.de>
7868
7869 PR cli/25808
7870 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7871
7872 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7873
7874 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7875 (Write After Approval): Remove Tom de Vries.
7876
7877 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7878
7879 revert partially:
7880 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7881
7882 * buildsym.c (record_line): Fix undefined behavior and preserve
7883 lines at eof.
7884
7885 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7886
7887 * auxv.h (svr4_auxv_parse): New.
7888 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7889 and generic_auxv_parse.
7890 (svr4_auxv_parse): Add.
7891 * obsd-tdep.c: Include "auxv.h".
7892 (obsd_auxv_parse): Remove.
7893 (obsd_init_abi): Remove comment.
7894 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7895 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7896 * nbsd-tdep.c: Include "auxv.h".
7897 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7898
7899 2020-04-08 Tom Tromey <tromey@adacore.com>
7900
7901 * nat/windows-nat.h (last_wait_event): Don't declare.
7902 (wait_for_debug_event): Update comment.
7903 * nat/windows-nat.c (last_wait_event): Now static.
7904
7905 2020-04-08 Tom Tromey <tromey@adacore.com>
7906
7907 * windows-nat.c (wait_for_debug_event): Move to
7908 nat/windows-nat.c.
7909 * nat/windows-nat.h (wait_for_debug_event): Declare.
7910 * nat/windows-nat.c (wait_for_debug_event): Move from
7911 windows-nat.c. No longer static.
7912
7913 2020-04-08 Tom Tromey <tromey@adacore.com>
7914
7915 * windows-nat.c (get_windows_debug_event): Use
7916 fetch_pending_stop.
7917 * nat/windows-nat.h (fetch_pending_stop): Declare.
7918 * nat/windows-nat.c (fetch_pending_stop): New function.
7919
7920 2020-04-08 Tom Tromey <tromey@adacore.com>
7921
7922 * windows-nat.c (windows_continue): Use matching_pending_stop and
7923 continue_last_debug_event.
7924 * nat/windows-nat.h (matching_pending_stop)
7925 (continue_last_debug_event): Declare.
7926 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7927 (matching_pending_stop, continue_last_debug_event): New
7928 functions.
7929
7930 2020-04-08 Tom Tromey <tromey@adacore.com>
7931
7932 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7933 (handle_exception_result): Move to nat/windows-nat.h.
7934 (DEBUG_EXCEPTION_SIMPLE): Remove.
7935 (windows_nat::handle_ms_vc_exception): New function.
7936 (handle_exception): Move to nat/windows-nat.c.
7937 (get_windows_debug_event): Update.
7938 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7939 nat/windows-nat.c.
7940 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7941 (handle_exception_result): Move from windows-nat.c.
7942 (handle_exception): Declare.
7943 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7944 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7945 windows-nat.c.
7946
7947 2020-04-08 Tom Tromey <tromey@adacore.com>
7948
7949 * windows-nat.c (exception_count, event_count): Remove.
7950 (handle_exception, get_windows_debug_event)
7951 (do_initial_windows_stuff): Update.
7952
7953 2020-04-08 Tom Tromey <tromey@adacore.com>
7954
7955 * windows-nat.c (windows_nat::handle_load_dll)
7956 (windows_nat::handle_unload_dll): Rename. No longer static.
7957 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7958 Declare.
7959
7960 2020-04-08 Tom Tromey <tromey@adacore.com>
7961
7962 * complaints.h (stop_whining): Declare at top-level.
7963 (complaint): Don't declare stop_whining.
7964
7965 2020-04-08 Tom Tromey <tromey@adacore.com>
7966
7967 * windows-nat.c (windows_nat::handle_output_debug_string):
7968 Rename. No longer static.
7969 * nat/windows-nat.h (handle_output_debug_string): Declare.
7970
7971 2020-04-08 Tom Tromey <tromey@adacore.com>
7972
7973 * windows-nat.c (current_process_handle, current_process_id)
7974 (main_thread_id, last_sig, current_event, last_wait_event)
7975 (current_windows_thread, desired_stop_thread_id, pending_stops)
7976 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7977 (display_selectors, fake_create_process)
7978 (get_windows_debug_event): Update.
7979 * nat/windows-nat.h (current_process_handle, current_process_id)
7980 (main_thread_id, last_sig, current_event, last_wait_event)
7981 (current_windows_thread, desired_stop_thread_id, pending_stops)
7982 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7983 * nat/windows-nat.c (current_process_handle, current_process_id)
7984 (main_thread_id, last_sig, current_event, last_wait_event)
7985 (current_windows_thread, desired_stop_thread_id, pending_stops)
7986 (siginfo_er): New globals. Move from windows-nat.c.
7987
7988 2020-04-08 Tom Tromey <tromey@adacore.com>
7989
7990 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7991 (handle_load_dll): Update.
7992 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7993
7994 2020-04-08 Tom Tromey <tromey@adacore.com>
7995
7996 * windows-nat.c (enum thread_disposition_type): Move to
7997 nat/windows-nat.h.
7998 (windows_nat::thread_rec): Rename from thread_rec. No longer
7999 static.
8000 (windows_add_thread, windows_nat_target::fetch_registers)
8001 (windows_nat_target::store_registers, handle_exception)
8002 (windows_nat_target::resume, get_windows_debug_event)
8003 (windows_nat_target::get_tib_address)
8004 (windows_nat_target::thread_name)
8005 (windows_nat_target::thread_alive): Update.
8006 * nat/windows-nat.h (enum thread_disposition_type): Move from
8007 windows-nat.c.
8008 (thread_rec): Declare.
8009
8010 2020-04-08 Tom Tromey <tromey@adacore.com>
8011
8012 * windows-nat.c: Add "using namespace".
8013 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8014 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8015
8016 2020-04-08 Tom Tromey <tromey@adacore.com>
8017
8018 * nat/windows-nat.h (struct windows_thread_info): Declare
8019 destructor.
8020 * nat/windows-nat.c (~windows_thread_info): New.
8021
8022 2020-04-08 Tom Tromey <tromey@adacore.com>
8023
8024 PR gdb/22992
8025 * windows-nat.c (current_event): Update comment.
8026 (last_wait_event, desired_stop_thread_id): New globals.
8027 (struct pending_stop): New.
8028 (pending_stops): New global.
8029 (windows_nat_target) <stopped_by_sw_breakpoint>
8030 <supports_stopped_by_sw_breakpoint>: New methods.
8031 (windows_fetch_one_register): Add assertions. Adjust PC.
8032 (windows_continue): Handle pending stops. Suspend other threads
8033 when stepping. Use last_wait_event
8034 (wait_for_debug_event): New function.
8035 (get_windows_debug_event): Use wait_for_debug_event. Handle
8036 pending stops. Queue spurious stops.
8037 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8038 (windows_nat_target::kill): Use wait_for_debug_event.
8039 * nat/windows-nat.h (struct windows_thread_info)
8040 <stopped_at_software_breakpoint>: New field.
8041 * nat/windows-nat.c (windows_thread_info::resume): Clear
8042 stopped_at_software_breakpoint.
8043
8044 2020-04-08 Tom Tromey <tromey@adacore.com>
8045
8046 * windows-nat.c (enum thread_disposition_type): New.
8047 (thread_rec): Replace "get_context" parameter with "disposition";
8048 change type.
8049 (windows_add_thread, windows_nat_target::fetch_registers)
8050 (windows_nat_target::store_registers, handle_exception)
8051 (windows_nat_target::resume, get_windows_debug_event)
8052 (windows_nat_target::get_tib_address)
8053 (windows_nat_target::thread_name)
8054 (windows_nat_target::thread_alive): Update.
8055
8056 2020-04-08 Tom Tromey <tromey@adacore.com>
8057
8058 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8059 (windows_continue): Use windows_continue::resume.
8060 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8061 resume>: Declare new methods.
8062 * nat/windows-nat.c: New file.
8063 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8064
8065 2020-04-08 Tom Tromey <tromey@adacore.com>
8066
8067 * windows-nat.c (windows_add_thread, windows_delete_thread)
8068 (windows_nat_target::fetch_registers)
8069 (windows_nat_target::store_registers, fake_create_process)
8070 (windows_nat_target::resume, windows_nat_target::resume)
8071 (get_windows_debug_event, windows_nat_target::wait)
8072 (windows_nat_target::pid_to_str)
8073 (windows_nat_target::get_tib_address)
8074 (windows_nat_target::get_ada_task_ptid)
8075 (windows_nat_target::thread_name)
8076 (windows_nat_target::thread_alive): Use lwp, not tid.
8077
8078 2020-04-08 Tom Tromey <tromey@adacore.com>
8079
8080 * windows-nat.c (handle_exception)
8081 (windows_nat_target::thread_name): Update.
8082 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8083 <name>: Now unique_xmalloc_ptr.
8084
8085 2020-04-08 Tom Tromey <tromey@adacore.com>
8086
8087 * windows-nat.c (thread_rec)
8088 (windows_nat_target::fetch_registers): Update.
8089 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8090 Update comment.
8091 <debug_registers_changed, reload_context>: Now bool.
8092
8093 2020-04-08 Tom Tromey <tromey@adacore.com>
8094
8095 * windows-nat.c (windows_add_thread): Use new.
8096 (windows_init_thread_list, windows_delete_thread): Use delete.
8097 (get_windows_debug_event): Update.
8098 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8099 destructor, and initializers.
8100
8101 2020-04-08 Tom Tromey <tromey@adacore.com>
8102
8103 * windows-nat.c (struct windows_thread_info): Remove.
8104 * nat/windows-nat.h: New file.
8105
8106 2020-04-08 Tom Tromey <tromey@adacore.com>
8107
8108 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8109 (thread_rec, windows_add_thread, windows_delete_thread)
8110 (windows_continue): Update.
8111
8112 2020-04-08 Tom Tromey <tromey@adacore.com>
8113
8114 * windows-nat.c (struct windows_thread_info): Remove typedef.
8115 (thread_head): Remove.
8116 (thread_list): New global.
8117 (thread_rec, windows_add_thread, windows_init_thread_list)
8118 (windows_delete_thread, windows_continue): Update.
8119
8120 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8121
8122 * windows-tdep.h (windows_init_abi): Add comment.
8123 (cygwin_init_abi): New declaration.
8124 * windows-tdep.c: Split signal enumeration in two, one for
8125 Windows and one for Cygwin.
8126 (windows_gdb_signal_to_target): Only deal with signal of the
8127 Windows OS ABI.
8128 (cygwin_gdb_signal_to_target): New function.
8129 (windows_init_abi): Rename to windows_init_abi_common, don't set
8130 gdb_signal_to_target gdbarch method. Add new new function with
8131 this name.
8132 (cygwin_init_abi): New function.
8133 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8134 comment. Don't call windows_init_abi.
8135 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8136 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8137 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8138 i386_windows_init_abi_common, don't call windows_init_abi. Add
8139 a new function of this name.
8140 (i386_cygwin_init_abi): New function.
8141 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8142 OS ABI Cygwin.
8143
8144 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8145
8146 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8147 parameter.c.
8148 (dwarf2_read_gdb_index): Update.
8149
8150 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8151
8152 * nbsd-tdep.c: Include "objfiles.h".
8153 (nbsd_skip_solib_resolver): New.
8154 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8155
8156 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8157
8158 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8159 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8160 with DW_LLE_base_addressx are being emitted in DWARFv5.
8161 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8162 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8163 unsigned integer.
8164
8165 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8166
8167 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8168 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8169 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8170 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8171 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8172 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8173 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8174
8175
8176 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8177
8178 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8179 (read_loclist_index): New function definition.
8180 (lookup_loclist_base): New function definition.
8181 (read_loclist_header): New function definition.
8182 (dwarf2_cu): Add loclist_base and loclist_header field.
8183 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8184 (read_full_die_1): Read the value of DW_AT_loclists_base.
8185 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8186 (read_attribute_value): Handle DW_FORM_loclistx.
8187 (skip_one_die): Handle DW_FORM_loclistx.
8188 (loclist_header): New structure declaration.
8189 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8190
8191 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8192
8193 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8194 constructor. Remove `addr` parameter from other constructor and
8195 add `per_cu` parameter.
8196 * dwarf2/read.c (create_partial_symtab): Update.
8197
8198 2020-04-07 Tom de Vries <tdevries@suse.de>
8199
8200 PR symtab/25796
8201 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8202 (partial_die_info::fixup): Inherit has_const_value.
8203
8204 2020-04-07 Tom de Vries <tdevries@suse.de>
8205
8206 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8207 symbols without address.
8208
8209 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8210
8211 * nbsd-nat.h (struct thread_info): Add forward declaration.
8212 (nbsd_nat_target::thread_alive): Add.
8213 (nbsd_nat_target::thread_name): Likewise.
8214 (nbsd_nat_target::update_thread_list): Likewise.
8215 (update_thread_list::post_attach): Likewise.
8216 (post_attach::pid_to_str): Likewise.
8217 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8218 (nbsd_thread_lister): Add.
8219 (nbsd_nat_target::thread_alive): Likewise.
8220 (nbsd_nat_target::thread_name): Likewise.
8221 (nbsd_add_threads): Likewise.
8222 (update_thread_list::post_attach): Likewise.
8223 (nbsd_nat_target::update_thread_list): Likewise.
8224 (post_attach::pid_to_str): Likewise.
8225
8226 2020-04-06 Tom Tromey <tromey@adacore.com>
8227
8228 * ada-valprint.c (print_variant_part): Extract the variant field.
8229 (print_field_values): Use the field as the outer value when
8230 recursing.
8231
8232 2020-04-06 Tom Tromey <tromey@adacore.com>
8233
8234 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8235 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8236 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8237 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8238 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8239
8240 2020-04-06 Tom Tromey <tromey@adacore.com>
8241
8242 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8243 TYPE_CODE_ERROR.
8244
8245 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8246
8247 * nbsd-tdep.c: Include "gdbarch.h".
8248 Define enum with NetBSD signal numbers.
8249 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8250 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8251 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8252 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8253 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8254 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8255 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8256 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8257 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8258 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8259 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8260 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8261
8262 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8263
8264 PR gdb/25325
8265 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8266
8267 2020-04-03 Tom Tromey <tromey@adacore.com>
8268
8269 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8270 Read constant block.
8271
8272 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8273
8274 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8275 (gdb_bfd_get_full_section_contents): New declaration.
8276 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8277 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8278 gdb_bfd_get_full_section_contents.
8279
8280 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8281
8282 * exec.c (build_section_table): Replace internal_error with
8283 gdb_assert.
8284 (section_table_xfer_memory_partial): Likewise.
8285 * mdebugread.c (parse_partial_symbols): Likewise.
8286 * psymtab.c (lookup_partial_symbol): Likewise.
8287 * utils.c (wrap_here): Likewise.
8288
8289 2020-04-02 Tom Tromey <tromey@adacore.com>
8290
8291 * f-lang.c (build_fortran_types): Use arch_type to initialize
8292 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8293
8294 2020-04-02 Tom Tromey <tromey@adacore.com>
8295
8296 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8297 of attributes.
8298
8299 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8300 Bernd Edlinger <bernd.edlinger@hotmail.de>
8301 Tom Tromey <tromey@adacore.com>
8302
8303 * buildsym.c (buildsym_compunit::record_line): Remove
8304 deduplication code.
8305
8306 2020-04-02 Tom de Vries <tdevries@suse.de>
8307
8308 PR ada/24671
8309 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8310
8311 2020-04-02 Tom de Vries <tdevries@suse.de>
8312
8313 * dwarf2/read.c (dwarf2_gdb_index_functions,
8314 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8315 NULL.
8316 * psymtab.c (psym_lookup_global_symbol_language): New function.
8317 (psym_functions): Init psym_lookup_global_symbol_language with
8318 psym_lookup_global_symbol_language.
8319 * symfile-debug.c (debug_sym_quick_functions): Init
8320 lookup_global_symbol_language with NULL.
8321 * symfile.c (set_initial_language): Remove fixme comment.
8322 * symfile.h (struct quick_symbol_functions): Add
8323 lookup_global_symbol_language.
8324 * symtab.c (find_quick_global_symbol_language): New function.
8325 (find_main_name): Use find_quick_global_symbol_language.
8326
8327 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8328
8329 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8330
8331 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8332
8333 * buildsym.c (record_line): Fix undefined behavior and preserve
8334 lines at eof.
8335
8336 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8337
8338 * buildsym.c (record_line): Fix the resizing condition.
8339
8340 2020-04-01 Tom Tromey <tom@tromey.com>
8341
8342 * value.h (value_literal_complex): Add comment.
8343 * valops.c (value_literal_complex): Refer to value.h.
8344
8345 2020-04-01 Tom Tromey <tom@tromey.com>
8346
8347 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8348 (scalar_type): New rule, from typebase.
8349 (typebase): Use scalar_type. Recognize complex types.
8350 (field_name): Handle FLOAT_KEYWORD.
8351 (ident_tokens): Add _Complex and __complex__.
8352
8353 2020-04-01 Tom Tromey <tom@tromey.com>
8354
8355 PR exp/25299:
8356 * valarith.c (promotion_type, complex_binop): New functions.
8357 (scalar_binop): Handle complex numbers. Use promotion_type.
8358 (value_pos, value_neg, value_complement): Handle complex numbers.
8359
8360 2020-04-01 Tom Tromey <tom@tromey.com>
8361
8362 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8363 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8364 (parse_number): Handle complex numbers.
8365
8366 2020-04-01 Tom Tromey <tom@tromey.com>
8367
8368 * c-valprint.c (c_decorations): Change complex suffix to "i".
8369
8370 2020-04-01 Tom Tromey <tom@tromey.com>
8371
8372 * valprint.c (generic_value_print_complex): Use accessors.
8373 * value.h (value_real_part, value_imaginary_part): Declare.
8374 * valops.c (value_real_part, value_imaginary_part): New
8375 functions.
8376 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8377
8378 2020-04-01 Tom Tromey <tom@tromey.com>
8379
8380 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8381 (read_range_type): Update.
8382 * mdebugread.c (basic_type): Update.
8383 * go-lang.c (build_go_types): Use init_complex_type.
8384 * gdbtypes.h (struct main_type) <complex_type>: New member.
8385 (init_complex_type): Update.
8386 (arch_complex_type): Don't declare.
8387 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8388 Make name if none given. Use alloc_type_copy. Look for cached
8389 complex type.
8390 (arch_complex_type): Remove.
8391 (gdbtypes_post_init): Use init_complex_type.
8392 * f-lang.c (build_fortran_types): Use init_complex_type.
8393 * dwarf2/read.c (read_base_type): Update.
8394 * d-lang.c (build_d_types): Use init_complex_type.
8395 * ctfread.c (read_base_type): Update.
8396
8397 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8398
8399 * infrun.c (stop_all_threads): Update assertion, plus when
8400 stopping threads, take into account that we might be trying
8401 to stop an all-stop target.
8402 (stop_waiting): Call 'stop_all_threads' if there exists a
8403 non-stop target.
8404
8405 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8406
8407 * target.h (exists_non_stop_target): New function declaration.
8408 * target.c (exists_non_stop_target): New function.
8409
8410 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8411
8412 PR gdb/24789
8413 * eval.c (is_integral_or_integral_reference): New function.
8414 (evaluate_subexp_standard): Allow integer references in
8415 pointer arithmetic.
8416
8417 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8418
8419 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8420 check for no ptid in the stop reply when the target is non-stop.
8421
8422 2020-04-01 Tom Tromey <tromey@adacore.com>
8423
8424 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8425 "name" parameter to rvalue reference. Initialize m_name_holder.
8426 <lookup_name_info>: New overloads.
8427 <name>: Return gdb::string_view.
8428 <c_str>: New method.
8429 <make_ignore_params>: Update.
8430 <search_name_hash>: Update.
8431 <language_lookup_name>: Return const char *.
8432 <m_name>: Change type.
8433 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8434 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8435 (lookup_name_info::match_any): Update.
8436 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8437 Update.
8438 * minsyms.c (linkage_name_str): Update.
8439 * language.c (default_symbol_name_matcher): Update.
8440 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8441 Update.
8442 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8443 (ada_lookup_name_info::ada_lookup_name_info): Update.
8444 (literal_symbol_name_matcher): Update.
8445
8446 2020-04-01 Tom Tromey <tromey@adacore.com>
8447
8448 * psymtab.c (psymtab_search_name): Remove function.
8449 (psym_lookup_symbol): Create search name and lookup name here.
8450 (lookup_partial_symbol): Remove "name" parameter; add
8451 lookup_name.
8452 (psym_expand_symtabs_for_function): Update.
8453
8454 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8455
8456 PR tui/25597:
8457 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8458
8459 2020-03-31 Tom Tromey <tromey@adacore.com>
8460
8461 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8462 memcpy.
8463
8464 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8465
8466 * features/riscv/32bit-csr.xml: Regenerated.
8467 * features/riscv/64bit-csr.xml: Regenerated.
8468
8469 2020-03-30 Tom Tromey <tromey@adacore.com>
8470
8471 * ada-valprint.c (print_variant_part): Update.
8472 * ada-lang.h (ada_which_variant_applies): Update.
8473 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8474 outer_valaddr parameters; replace with "outer" value parameter.
8475 (to_fixed_variant_branch_type): Update.
8476
8477 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8478
8479 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8480 <list>. Remove inclusion of observable.h.
8481 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8482 (struct arch_lwp_info): New struct.
8483 (class ppc_linux_dreg_interface): New class.
8484 (struct ppc_linux_process_info): New struct.
8485 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8486 <low_new_clone, low_forget_process, low_prepare_to_resume>
8487 <copy_thread_dreg_state, mark_thread_stale>
8488 <mark_debug_registers_changed, register_hw_breakpoint>
8489 <clear_hw_breakpoint, register_wp, clear_wp>
8490 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8491 <num_memory_accesses, get_trigger_type>
8492 <create_watchpoint_request, hwdebug_point_cmp>
8493 <init_arch_lwp_info, get_arch_lwp_info>
8494 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8495 methods.
8496 <struct ptid_hash>: New inner struct.
8497 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8498 members.
8499 (saved_dabr_value, hwdebug_info, max_slots_number)
8500 (struct hw_break_tuple, struct thread_points, ppc_threads)
8501 (have_ptrace_hwdebug_interface)
8502 (hwdebug_find_thread_points_by_tid)
8503 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8504 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8505 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8506 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8507 use m_dreg_interface.
8508 (hwdebug_point_cmp): Change to...
8509 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8510 reference arguments instead of pointers.
8511 (ppc_linux_nat_target::ranged_break_num_registers): Use
8512 m_dreg_interface.
8513 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8514 m_dreg_interface. Call register_hw_breakpoint.
8515 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8516 m_dreg_interface. Call clear_hw_breakpoint.
8517 (get_trigger_type): Change to...
8518 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8519 comment.
8520 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8521 use m_dreg_interface. Call register_hw_breakpoint.
8522 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8523 use m_dreg_interface. Call clear_hw_breakpoint.
8524 (can_use_watchpoint_cond_accel): Change to...
8525 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8526 method. Update comment, use m_dreg_interface and
8527 m_process_info.
8528 (calculate_dvc): Change to...
8529 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8530 m_dreg_interface.
8531 (num_memory_accesses): Change to...
8532 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8533 (check_condition): Change to...
8534 (ppc_linux_nat_target::check_condition): ...this method.
8535 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8536 comment, use m_dreg_interface.
8537 (create_watchpoint_request): Change to...
8538 (ppc_linux_nat_target::create_watchpoint_request): ...this
8539 method. Use m_dreg_interface.
8540 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8541 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8542 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8543 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8544 (ppc_linux_nat_target::low_forget_process)
8545 (ppc_linux_nat_target::low_new_fork)
8546 (ppc_linux_nat_target::low_new_clone)
8547 (ppc_linux_nat_target::low_delete_thread)
8548 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8549 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8550 only call mark_thread_stale.
8551 (ppc_linux_thread_exit): Remove.
8552 (ppc_linux_nat_target::stopped_data_address): Change to...
8553 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8554 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8555 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8556 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8557 comment. Call low_stopped_data_address.
8558 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8559 m_dreg_interface.
8560 (ppc_linux_nat_target::masked_watch_num_registers): Use
8561 m_dreg_interface.
8562 (ppc_linux_nat_target::copy_thread_dreg_state)
8563 (ppc_linux_nat_target::mark_thread_stale)
8564 (ppc_linux_nat_target::mark_debug_registers_changed)
8565 (ppc_linux_nat_target::register_hw_breakpoint)
8566 (ppc_linux_nat_target::clear_hw_breakpoint)
8567 (ppc_linux_nat_target::register_wp)
8568 (ppc_linux_nat_target::clear_wp)
8569 (ppc_linux_nat_target::init_arch_lwp_info)
8570 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8571 (_initialize_ppc_linux_nat): Remove observer callback.
8572
8573 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8574
8575 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8576 (ppc_linux_nat_target::auxv_parse)
8577 (ppc_linux_nat_target::read_description)
8578 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8579 Move up.
8580
8581 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8582
8583 * linux-nat.h (low_new_clone): New method.
8584 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8585
8586 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8587
8588 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8589 (dbx_expand_psymtab): ... this.
8590 (start_psymtab): Update.
8591 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8592 (mdebug_expand_psymtab): ... this.
8593 (parse_partial_symbols): Update.
8594 (new_psymtab): Update.
8595 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8596 (xcoff_expand_psymtab): ... this.
8597 (xcoff_start_psymtab): Update.
8598
8599 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8600
8601 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8602 <expand_dependencies>: ... this.
8603 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8604 (partial_symtab::expand_dependencies): ... this.
8605 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8606 Update.
8607 (dwarf2_psymtab::expand_psymtab): Update.
8608 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8609 * mdebugread.c (psymtab_to_symtab_1): Update.
8610 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8611
8612 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8613
8614 * psympriv.h (discard_psymtab): Remove.
8615 * dbxread.c (dbx_end_psymtab): Update.
8616 * xcoffread.c (xcoff_end_psymtab): Update.
8617
8618 2020-03-28 Tom Tromey <tom@tromey.com>
8619
8620 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8621 comment.
8622
8623 2020-03-28 Tom Tromey <tom@tromey.com>
8624
8625 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8626
8627 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8628
8629 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8630
8631 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8632
8633 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8634
8635 2020-03-26 Tom Tromey <tom@tromey.com>
8636
8637 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8638 (mark_common_block_symbol_computed, read_tag_string_type)
8639 (attr_to_dynamic_prop, read_subrange_type): Update.
8640 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8641 to be methods on struct attribute.
8642 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8643 (read_call_site_scope, partial_die_info::read)
8644 (partial_die_info::read, lookup_die_type, follow_die_ref):
8645 Update.
8646 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8647 from dwarf2_get_ref_die_offset.
8648 (attribute::constant_value): New method, from
8649 dwarf2_get_attr_constant_value.
8650 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8651 Declare method.
8652 <constant_value>: New method.
8653
8654 2020-03-26 Tom Tromey <tom@tromey.com>
8655
8656 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8657 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8658 (dwarf_type_encoding_name): Move to stringify.c.
8659 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8660 * dwarf2/stringify.c: New file.
8661 * dwarf2/stringify.h: New file.
8662
8663 2020-03-26 Tom Tromey <tom@tromey.com>
8664
8665 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8666 Rewrite.
8667
8668 2020-03-26 Tom Tromey <tom@tromey.com>
8669
8670 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8671 methods.
8672 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8673 (lookup_ranges_base): Likewise.
8674 (read_cutu_die_from_dwo, read_full_die_1): Update.
8675
8676 2020-03-26 Tom Tromey <tom@tromey.com>
8677
8678 * dwarf2/read.c (read_import_statement, read_file_scope)
8679 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8680 (read_lexical_block_scope, read_call_site_scope)
8681 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8682 (handle_struct_member_die, process_structure_scope)
8683 (update_enumeration_type_from_children)
8684 (process_enumeration_scope, read_array_type, read_common_block)
8685 (read_namespace, read_module, read_subroutine_type): Update.
8686 (sibling_die): Remove.
8687
8688 2020-03-26 Tom Tromey <tom@tromey.com>
8689
8690 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8691 (build_type_psymtabs_reader, read_structure_type)
8692 (read_enumeration_type, read_full_die_1): Update.
8693 (dwarf2_attr_no_follow): Move to die.h.
8694 * dwarf2/die.h (struct die_info) <attr>: New method.
8695
8696 2020-03-26 Tom Tromey <tom@tromey.com>
8697
8698 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8699 <base_address>: Now an optional.
8700 (dwarf2_find_base_address, dwarf2_rnglists_process)
8701 (dwarf2_ranges_process, fill_in_loclist_baton)
8702 (dwarf2_symbol_mark_computed): Update.
8703
8704 2020-03-26 Tom Tromey <tom@tromey.com>
8705
8706 * dwarf2/read.c (struct die_info): Move to die.h.
8707 * dwarf2/die.h: New file.
8708
8709 2020-03-26 Tom Tromey <tom@tromey.com>
8710
8711 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8712 * dwarf2/read.c
8713 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8714 Move to line-header.c.
8715 (read_checked_initial_length_and_offset, read_formatted_entries):
8716 Likewise.
8717 (dwarf_decode_line_header): Split into two.
8718 * dwarf2/line-header.c
8719 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8720 Move from read.c.
8721 (read_checked_initial_length_and_offset, read_formatted_entries):
8722 Likewise.
8723 (dwarf_decode_line_header): New function, split from read.c.
8724
8725 2020-03-26 Tom Tromey <tom@tromey.com>
8726
8727 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8728 Declare method.
8729 * dwarf2/read.c (read_attribute_value): Update.
8730 (dwarf2_per_objfile::read_line_string): Rename from
8731 read_indirect_line_string.
8732 (read_formatted_entries): Update.
8733
8734 2020-03-26 Tom Tromey <tom@tromey.com>
8735
8736 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8737 variable.
8738
8739 2020-03-26 Tom Tromey <tom@tromey.com>
8740
8741 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8742 const.
8743 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8744 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8745 parameter const.
8746
8747 2020-03-26 Tom Tromey <tom@tromey.com>
8748
8749 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8750 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8751 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8752 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8753
8754 2020-03-26 Tom Tromey <tom@tromey.com>
8755
8756 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8757 file_names_size, file_full_name, file_file_name>: Use const.
8758 <file_name_at, file_names>: Add const overload.
8759 * dwarf2/line-header.c (line_header::file_file_name)
8760 (line_header::file_full_name): Update.
8761
8762 2020-03-26 Tom Tromey <tom@tromey.com>
8763
8764 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8765 (macro_start_file, consume_improper_spaces)
8766 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8767 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8768 (dwarf_decode_macros): Move to macro.c.
8769 * dwarf2/macro.c: New file.
8770 * dwarf2/macro.h: New file.
8771 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8772
8773 2020-03-26 Tom Tromey <tom@tromey.com>
8774
8775 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8776 method.
8777 * dwarf2/section.c: New method. From
8778 read_indirect_string_at_offset_from.
8779 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8780 (read_indirect_string_at_offset_from): Move to section.c.
8781 (read_indirect_string_at_offset): Rewrite.
8782 (read_indirect_line_string_at_offset): Remove.
8783 (read_indirect_string, read_indirect_line_string)
8784 (dwarf_decode_macro_bytes): Update.
8785
8786 2020-03-26 Tom Tromey <tom@tromey.com>
8787
8788 * dwarf2/section.h (struct dwarf2_section_info)
8789 <overload_complaint>: Declare.
8790 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8791 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8792 Rename from dwarf2_section_buffer_overflow_complaint.
8793 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8794 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8795
8796 2020-03-26 Tom Tromey <tom@tromey.com>
8797
8798 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8799 Declare.
8800 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8801 Move from read.c.
8802 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8803 to section.c.
8804
8805 2020-03-26 Tom Tromey <tom@tromey.com>
8806
8807 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8808
8809 2020-03-26 Tom Tromey <tom@tromey.com>
8810
8811 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8812 "builder".
8813 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8814 parameter.
8815 (dwarf_decode_macros): Update.
8816
8817 2020-03-26 Tom Tromey <tom@tromey.com>
8818
8819 * dwarf2/read.c (read_attribute_value): Update.
8820 (read_indirect_string_from_dwz): Move to dwz.c; change into
8821 method.
8822 (dwarf_decode_macro_bytes): Update.
8823 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8824 * dwarf2/dwz.c: New file.
8825 * Makefile.in (COMMON_SFILES): Add dwz.c.
8826
8827 2020-03-26 Tom Tromey <tom@tromey.com>
8828
8829 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8830 * dwarf2/read.c: Add include.
8831 * dwarf2/index-write.c: Add include.
8832 * dwarf2/index-cache.c: Add include.
8833 * dwarf2/dwz.h: New file.
8834
8835 2020-03-25 Tom Tromey <tom@tromey.com>
8836
8837 * compile/compile-object-load.c (get_out_value_type): Mention
8838 correct symbol name in error message.
8839
8840 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8841
8842 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8843
8844 2020-03-25 Tom de Vries <tdevries@suse.de>
8845
8846 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8847 * symmisc.c (dump_symtab_1): Print user and includes fields.
8848 (maintenance_info_symtabs): Same.
8849
8850 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8851
8852 PR gdb/25534
8853 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8854 (riscv_regcache_cooked_write): New function.
8855 (riscv_push_dummy_call): Use new function.
8856 (riscv_return_value): Likewise.
8857
8858 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8859
8860 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8861 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8862 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8863 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8864 * infrun.c (follow_fork): Likewise.
8865 (follow_fork_inferior): Likewise.
8866 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8867 * linux-nat.h (class linux_nat_target): Likewise.
8868 * remote.c (class remote_target) <follow_fork>: Likewise.
8869 (remote_target::follow_fork): Likewise.
8870 * target-delegates.c: Re-generate.
8871 * target.c (default_follow_fork): Likewise.
8872 (target_follow_fork): Likewise.
8873 * target.h (struct target_ops) <follow_fork>: Likewise.
8874 (target_follow_fork): Likewise.
8875
8876 2020-03-24 Tom de Vries <tdevries@suse.de>
8877
8878 * psymtab.c (maintenance_info_psymtabs): Print user field.
8879
8880 2020-03-20 Tom Tromey <tromey@adacore.com>
8881
8882 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8883 const.
8884 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8885 const.
8886
8887 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8888
8889 * ptrace.m4: Don't check for ptrace declaration.
8890 * config.in: Re-generate.
8891 * configure: Re-generate.
8892 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8893 not defined.
8894
8895 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8896
8897 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8898 `PTRACE_TYPE_RET'.
8899 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8900 * sparc-nat.c (gdb_ptrace): Likewise.
8901 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8902
8903 2020-03-20 Tom Tromey <tromey@adacore.com>
8904
8905 * c-exp.y (lex_one_token): Fix assert.
8906
8907 2020-03-20 Tom Tromey <tromey@adacore.com>
8908
8909 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8910 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8911 strncpy call.
8912
8913 2020-03-20 Tom Tromey <tromey@adacore.com>
8914
8915 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8916
8917 2020-03-20 Tom Tromey <tromey@adacore.com>
8918
8919 * ada-valprint.c (print_variant_part): Remove parameters; switch
8920 to value-based API.
8921 (print_field_values): Likewise.
8922 (ada_val_print_struct_union): Likewise.
8923 (ada_value_print_1): Update.
8924
8925 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8926
8927 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8928 nbsd_nat_target instead of inf_ptrace_target.
8929 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8930 nbsd_nat_target.
8931
8932 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8933
8934 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8935 it to the ptrace call.
8936 * (store_registers): Likewise.
8937
8938 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8939
8940 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8941 it to the ptrace call.
8942 * (store_registers): Likewise.
8943
8944 2020-03-19 Luis Machado <luis.machado@linaro.org>
8945
8946 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8947 valid, fetch vg value from ptrace.
8948
8949 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8950 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8951 * inf-ptrace.c: Likewise.
8952 * (gdb_ptrace): Add.
8953 * (inf_ptrace_target::resume): Update.
8954 * (inf_ptrace_target::xfer_partial): Likewise.
8955 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8956 * (inf_ptrace_peek_poke): Update.
8957
8958 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8959
8960 * x86-bsd-nat.c (gdb_ptrace): New.
8961 * (x86bsd_dr_set): Add new argument `ptid'.
8962 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8963 x86bsd_dr_set_addr): Update.
8964
8965 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8966
8967 * remote.c (remote_target::process_stop_reply): Handle events for
8968 all threads differently.
8969
8970 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8971
8972 * completer.c (completion_tracker::remove_completion): Define new
8973 function.
8974 * completer.h (completion_tracker::remove_completion): Declare new
8975 function.
8976 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8977 when adding a C++ function symbol.
8978
8979 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8980
8981 * completer.c (completion_tracker::completion_hash_entry): Define
8982 new class.
8983 (advance_to_filename_complete_word_point): Call
8984 recompute_lowest_common_denominator.
8985 (completion_tracker::completion_tracker): Call discard_completions
8986 to setup the hash table.
8987 (completion_tracker::discard_completions): Allow for being called
8988 from the constructor, pass new equal function, and element deleter
8989 when constructing the hash table. Initialise new class member
8990 variables.
8991 (completion_tracker::maybe_add_completion): Remove use of
8992 m_entries_vec, and store more information into m_entries_hash.
8993 (completion_tracker::recompute_lcd_visitor): New function, most
8994 content taken from...
8995 (completion_tracker::recompute_lowest_common_denominator):
8996 ...here, this now just visits each item in the hash calling the
8997 above visitor.
8998 (completion_tracker::build_completion_result): Remove use of
8999 m_entries_vec, call recompute_lowest_common_denominator.
9000 * completer.h (completion_tracker::have_completions): Remove use
9001 of m_entries_vec.
9002 (completion_tracker::completion_hash_entry): Declare new class.
9003 (completion_tracker::recompute_lowest_common_denominator): Change
9004 function signature.
9005 (completion_tracker::recompute_lcd_visitor): Declare new function.
9006 (completion_tracker::m_entries_vec): Delete.
9007 (completion_tracker::m_entries_hash): Initialize to NULL.
9008 (completion_tracker::m_lowest_common_denominator_valid): New
9009 member variable.
9010 (completion_tracker::m_lowest_common_denominator_max_length): New
9011 member variable.
9012
9013 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9014
9015 * regformats/regdef.h: Put reg in gdb namespace.
9016
9017 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9018
9019 * i386-bsd-nat.c (gdb_ptrace): New.
9020 * (i386bsd_fetch_inferior_registers,
9021 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9022 * (i386bsd_fetch_inferior_registers,
9023 i386bsd_store_inferior_registers) Use gdb_ptrace.
9024
9025 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9026
9027 * amd64-bsd-nat.c (gdb_ptrace): New.
9028 * (amd64bsd_fetch_inferior_registers,
9029 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9030 * (amd64bsd_fetch_inferior_registers,
9031 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9032
9033 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9034
9035 * user-regs.c (user_reg::read): Rename to...
9036 (user_reg::xread): ...this.
9037 * (append_user_reg): Rename argument `read' to `xread'.
9038 * (user_reg_add_builtin): Likewise.
9039 * (user_reg_add): Likewise.
9040 * (value_of_user_reg): Likewise.
9041
9042 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9043
9044 * sparc-nat.c (gdb_ptrace): New.
9045 * sparc-nat.c (sparc_fetch_inferior_registers)
9046 (sparc_store_inferior_registers) Remove obsolete comment.
9047 * sparc-nat.c (sparc_fetch_inferior_registers)
9048 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9049 * sparc-nat.c (sparc_fetch_inferior_registers)
9050 (sparc_store_inferior_registers) Use gdb_ptrace.
9051
9052 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9053
9054 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9055 it to the ptrace call.
9056 * sh-nbsd-nat.c (store_registers): Likewise.
9057
9058 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9059
9060 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9061 nbsd_nat_target instead of inf_ptrace_target.
9062 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9063 nbsd_nat_target.
9064
9065 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9066
9067 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9068
9069 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9070
9071 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9072 <sys/sysctl.h>.
9073 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9074
9075 2020-03-17 Tom de Vries <tdevries@suse.de>
9076
9077 PR gdb/23710
9078 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9079 fields.
9080 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9081 fields.
9082 (process_imported_unit_die): Skip import of c++ CUs.
9083
9084 2020-03-16 Tom Tromey <tom@tromey.com>
9085
9086 * p-valprint.c (pascal_object_print_value): Initialize
9087 base_value.
9088
9089 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9090 Shahab Vahedi <shahab@synopsys.com>
9091
9092 * Makefile.in: Add arch/arc.o
9093 * configure.tgt: Likewise.
9094 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9095 (_initialize_arc_tdep): Don't initialize old target descriptions.
9096 (arc_read_description): New function to cache target descriptions.
9097 * arc-tdep.h (arc_read_description): Add proto type.
9098 * arch/arc.c: New file.
9099 * arch/arc.h: Likewise.
9100 * features/Makefile: Replace old target descriptions with new.
9101 * features/arc-arcompact.c: Remove.
9102 * features/arc-arcompact.xml: Likewise.
9103 * features/arc-v2.c: Likewise
9104 * features/arc-v2.xml: Likewise
9105 * features/arc/aux-arcompact.xml: New file.
9106 * features/arc/aux-v2.xml: Likewise.
9107 * features/arc/core-arcompact.xml: Likewise.
9108 * features/arc/core-v2.xml: Likewise.
9109 * features/arc/aux-arcompact.c: Generate.
9110 * features/arc/aux-v2.c: Likewise.
9111 * features/arc/core-arcompact.c: Likewise.
9112 * features/arc/core-v2.c: Likewise.
9113 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9114
9115 2020-03-16 Tom Tromey <tromey@adacore.com>
9116
9117 PR gdb/25663:
9118 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9119 putting value into bcache.
9120
9121 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9122
9123 PR gdb/21500
9124 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9125 to...
9126 (amd64_windows_init_abi_common): ... this. Don't set size of
9127 long type.
9128 (amd64_windows_init_abi): New function.
9129 (amd64_cygwin_init_abi): New function.
9130 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9131 the Cygwin OS ABI.
9132 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9133 comment.
9134
9135 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9136
9137 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9138 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9139 (pe_import_directory_entry): New struct type.
9140 (is_linked_with_cygwin_dll): New function.
9141 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9142 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9143 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9144
9145 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9146
9147 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9148 i386_cygwin_core_osabi_sniffer.
9149
9150 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * i386-cygwin-tdep.c: Rename to...
9153 * i386-windows-tdep.c: ... this.
9154 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9155 i386-windows-tdep.c.
9156 * configure.tgt: Likewise.
9157
9158 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9159
9160 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9161 * osabi.c (gdb_osabi_names): Add "Windows".
9162 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9163 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9164 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9165 i386_cygwin_osabi_sniffer.
9166 (_initialize_i386_cygwin_tdep): Register OS ABI
9167 GDB_OSABI_WINDOWS for i386.
9168 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9169 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9170 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9171 for x86-64.
9172 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9173 when the target matches '*-*-mingw*'.
9174
9175 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9176
9177 * defs.h (enum gdb_osabi): Move to...
9178 * osabi.h (enum gdb_osabi): ... here.
9179 * gdbarch.sh: Include osabi.h in gdbarch.h.
9180 * gdbarch.h: Re-generate.
9181
9182 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9183
9184 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9185 function.
9186 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9187
9188 2020-03-14 Tom Tromey <tom@tromey.com>
9189
9190 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9191 for C++.
9192 (c_type_print_modifier): Likewise. Add "language" parameter.
9193 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9194 (c_type_print_base_1): Update.
9195 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9196 constants.
9197 * type-stack.c (type_stack::insert): Handle tp_atomic and
9198 tp_restrict.
9199 (type_stack::follow_type_instance_flags): Likewise.
9200 (type_stack::follow_types): Likewise. Merge type-following code.
9201 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9202 (space_identifier, cv_with_space_id)
9203 (const_or_volatile_or_space_identifier_noopt)
9204 (const_or_volatile_or_space_identifier): Remove.
9205 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9206 rules.
9207 (ptr_operator, typebase): Update.
9208 (enum token_flag) <FLAG_C>: New constant.
9209 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9210 "_Atomic".
9211 (lex_one_token): Handle FLAG_C.
9212
9213 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9214
9215 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9216 it to the ptrace call.
9217 * m68k-bsd-nat.c (store_registers): Likewise.
9218
9219 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9220
9221 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9222 gdb_byte *.
9223 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9224 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9225 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9226
9227 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9228
9229 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9230 nbsd_nat_target instead of inf_ptrace_target.
9231 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9232 nbsd_nat_target.
9233
9234 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9235
9236 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9237 register_t.
9238
9239 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9240
9241 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9242 it to the ptrace call.
9243 * alpha-bsd-nat.c (store_registers): Likewise.
9244
9245 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9246
9247 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9248 includes.
9249 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9250 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9251 fill_fpregset): Likewise.
9252
9253 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9254
9255 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9256 nbsd_nat_target instead of inf_ptrace_target.
9257 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9258 nbsd_nat_target.
9259
9260 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9261
9262 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9263 register_t.
9264
9265 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9266
9267 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9268 it to the ptrace call.
9269 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9270 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9271 * arm-nbsd-nat.c (store_register): Likewise.
9272 * arm-nbsd-nat.c (store_regs): Likewise.
9273 * arm-nbsd-nat.c (store_fp_register): Likewise.
9274 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9275
9276 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9277
9278 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9279 nbsd_nat_target instead of inf_ptrace_target.
9280 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9281 nbsd_nat_target.
9282
9283 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9284
9285 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9286 it to the ptrace call.
9287 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9288
9289 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9290
9291 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9292 it to the ptrace call.
9293 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9294
9295 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9296
9297 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9298 gdb_byte *.
9299 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9300
9301 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9302
9303 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9304 instead of inf_ptrace_target.
9305 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9306 nbsd_nat_target.
9307
9308 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9309
9310 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9311 register_t.
9312
9313 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9314
9315 * ppc-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 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9321 register_t.
9322
9323 2020-03-13 Tom Tromey <tom@tromey.com>
9324
9325 * value.h (val_print): Don't declare.
9326 * valprint.h (val_print_array_elements)
9327 (val_print_scalar_formatted, generic_val_print): Don't declare.
9328 * valprint.c (generic_val_print_array): Take a struct value.
9329 (generic_val_print_ptr, generic_val_print_memberptr)
9330 (generic_val_print_bool, generic_val_print_int)
9331 (generic_val_print_char, generic_val_print_complex)
9332 (generic_val_print): Remove.
9333 (generic_value_print): Update.
9334 (do_val_print): Remove unused parameters. Don't call
9335 la_val_print.
9336 (val_print): Remove.
9337 (common_val_print): Update. Don't call value_check_printable.
9338 (val_print_scalar_formatted, val_print_array_elements): Remove.
9339 * rust-lang.c (rust_val_print): Remove.
9340 (rust_language_defn): Update.
9341 * p-valprint.c (pascal_val_print): Remove.
9342 (pascal_value_print_inner): Update.
9343 (pascal_object_print_val_fields, pascal_object_print_val):
9344 Remove.
9345 (pascal_object_print_static_field): Update.
9346 * p-lang.h (pascal_val_print): Don't declare.
9347 * p-lang.c (pascal_language_defn): Update.
9348 * opencl-lang.c (opencl_language_defn): Update.
9349 * objc-lang.c (objc_language_defn): Update.
9350 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9351 * m2-lang.h (m2_val_print): Don't declare.
9352 * m2-lang.c (m2_language_defn): Update.
9353 * language.h (struct language_defn) <la_val_print>: Remove.
9354 * language.c (unk_lang_value_print_inner): Rename. Change
9355 argument types.
9356 (unknown_language_defn, auto_language_defn): Update.
9357 * go-valprint.c (go_val_print): Remove.
9358 * go-lang.h (go_val_print): Don't declare.
9359 * go-lang.c (go_language_defn): Update.
9360 * f-valprint.c (f_val_print): Remove.
9361 * f-lang.h (f_value_print): Don't declare.
9362 * f-lang.c (f_language_defn): Update.
9363 * d-valprint.c (d_val_print): Remove.
9364 * d-lang.h (d_value_print): Don't declare.
9365 * d-lang.c (d_language_defn): Update.
9366 * cp-valprint.c (cp_print_value_fields)
9367 (cp_print_value_fields_rtti, cp_print_value): Remove.
9368 (cp_print_static_field): Update.
9369 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9370 (c_val_print_struct, c_val_print_union, c_val_print_int)
9371 (c_val_print_memberptr, c_val_print): Remove.
9372 * c-lang.h (c_val_print_array, cp_print_value_fields)
9373 (cp_print_value_fields_rtti): Don't declare.
9374 * c-lang.c (c_language_defn, cplus_language_defn)
9375 (asm_language_defn, minimal_language_defn): Update.
9376 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9377 (ada_val_print_enum): Take a struct value.
9378 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9379 (ada_val_print): Remove.
9380 (ada_value_print_1): Update.
9381 (printable_val_type): Remove.
9382 * ada-lang.h (ada_val_print): Don't declare.
9383 * ada-lang.c (ada_language_defn): Update.
9384
9385 2020-03-13 Tom Tromey <tom@tromey.com>
9386
9387 * valprint.c (do_val_print): Update.
9388 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9389 a struct value.
9390 (value_to_value_object_no_release): Declare.
9391 * python/py-value.c (value_to_value_object_no_release): New
9392 function.
9393 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9394 struct value.
9395 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9396 function.
9397 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9398 a struct value.
9399 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9400 Declare.
9401 (gdbscm_apply_val_pretty_printer): Take a struct value.
9402 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9403 value.
9404 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9405 value.
9406 * extension-priv.h (struct extension_language_ops)
9407 <apply_val_pretty_printer>: Take a struct value.
9408 * cp-valprint.c (cp_print_value): Create a struct value.
9409 (cp_print_value): Update.
9410
9411 2020-03-13 Tom Tromey <tom@tromey.com>
9412
9413 * ada-valprint.c (print_field_values): Call common_val_print.
9414
9415 2020-03-13 Tom Tromey <tom@tromey.com>
9416
9417 * ada-valprint.c (val_print_packed_array_elements): Remove
9418 bitoffset and val parameters. Call common_val_print.
9419 (ada_val_print_string): Remove offset, address, and original_value
9420 parameters.
9421 (ada_val_print_array): Update.
9422 (ada_value_print_array): New function.
9423 (ada_value_print_1): Call it.
9424
9425 2020-03-13 Tom Tromey <tom@tromey.com>
9426
9427 * ada-valprint.c (ada_value_print): Use common_val_print.
9428
9429 2020-03-13 Tom Tromey <tom@tromey.com>
9430
9431 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9432
9433 2020-03-13 Tom Tromey <tom@tromey.com>
9434
9435 * ada-valprint.c (ada_value_print_num): New function.
9436 (ada_value_print_1): Use it.
9437
9438 2020-03-13 Tom Tromey <tom@tromey.com>
9439
9440 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9441
9442 2020-03-13 Tom Tromey <tom@tromey.com>
9443
9444 * ada-valprint.c (ada_value_print_ptr): New function.
9445 (ada_value_print_1): Use it.
9446
9447 2020-03-13 Tom Tromey <tom@tromey.com>
9448
9449 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9450 call common_val_print.
9451 (ada_val_print_1): Update.
9452 (ada_value_print_1): New function.
9453 (ada_value_print_inner): Rewrite.
9454
9455 2020-03-13 Tom Tromey <tom@tromey.com>
9456
9457 * cp-valprint.c (cp_print_value_fields): Update.
9458 (cp_print_value): New function.
9459
9460 2020-03-13 Tom Tromey <tom@tromey.com>
9461
9462 * m2-valprint.c (m2_value_print_inner): Use
9463 cp_print_value_fields.
9464 * cp-valprint.c (cp_print_value_fields): New function.
9465 * c-valprint.c (c_value_print_struct): New function.
9466 (c_value_print_inner): Use c_value_print_struct.
9467 * c-lang.h (cp_print_value_fields): Declare.
9468
9469 2020-03-13 Tom Tromey <tom@tromey.com>
9470
9471 * c-valprint.c (c_value_print_array): New function.
9472 (c_value_print_inner): Use it.
9473
9474 2020-03-13 Tom Tromey <tom@tromey.com>
9475
9476 * c-valprint.c (c_value_print_memberptr): 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_int): 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_ptr): 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_inner): Rewrite.
9492
9493 2020-03-13 Tom Tromey <tom@tromey.com>
9494
9495 * valprint.c (generic_value_print_complex): New function.
9496 (generic_value_print): Use it.
9497
9498 2020-03-13 Tom Tromey <tom@tromey.com>
9499
9500 * valprint.c (generic_val_print_float): Don't call
9501 val_print_scalar_formatted.
9502 (generic_val_print, generic_value_print): Update.
9503
9504 2020-03-13 Tom Tromey <tom@tromey.com>
9505
9506 * valprint.c (generic_value_print_char): New function
9507 (generic_value_print): Use it.
9508
9509 2020-03-13 Tom Tromey <tom@tromey.com>
9510
9511 * valprint.c (generic_value_print_int): 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_bool): New function.
9517 (generic_value_print): Use it.
9518
9519 2020-03-13 Tom Tromey <tom@tromey.com>
9520
9521 * valprint.c (generic_val_print_func): Simplify.
9522 (generic_val_print, generic_value_print): Update.
9523
9524 2020-03-13 Tom Tromey <tom@tromey.com>
9525
9526 * valprint.c (generic_val_print_flags): Remove.
9527 (generic_val_print, generic_value_print): Update.
9528 (val_print_type_code_flags): Add original_value parameter.
9529
9530 2020-03-13 Tom Tromey <tom@tromey.com>
9531
9532 * valprint.c (generic_val_print): Update.
9533 (generic_value_print): Update.
9534 * valprint.c (generic_val_print_enum): Don't call
9535 val_print_scalar_formatted.
9536
9537 2020-03-13 Tom Tromey <tom@tromey.com>
9538
9539 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9540 * valprint.c (generic_value_print_ptr): New function.
9541
9542 2020-03-13 Tom Tromey <tom@tromey.com>
9543
9544 * valprint.c (generic_value_print): Rewrite.
9545
9546 2020-03-13 Tom Tromey <tom@tromey.com>
9547
9548 * p-valprint.c (pascal_object_print_value_fields)
9549 (pascal_object_print_value): New functions.
9550
9551 2020-03-13 Tom Tromey <tom@tromey.com>
9552
9553 * p-valprint.c (pascal_value_print_inner): Rewrite.
9554
9555 2020-03-13 Tom Tromey <tom@tromey.com>
9556
9557 * f-valprint.c (f_value_print_innner): Rewrite.
9558
9559 2020-03-13 Tom Tromey <tom@tromey.com>
9560
9561 * m2-valprint.c (m2_print_unbounded_array): New overload.
9562 (m2_print_unbounded_array): Update.
9563 (m2_print_array_contents): Take a struct value.
9564 (m2_value_print_inner): Rewrite.
9565
9566 2020-03-13 Tom Tromey <tom@tromey.com>
9567
9568 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9569 (d_value_print_inner): New function.
9570 * d-lang.h (d_value_print_inner): Declare.
9571 * d-lang.c (d_language_defn): Use d_value_print_inner.
9572
9573 2020-03-13 Tom Tromey <tom@tromey.com>
9574
9575 * go-valprint.c (go_value_print_inner): New function.
9576 * go-lang.h (go_value_print_inner): Declare.
9577 * go-lang.c (go_language_defn): Use go_value_print_inner.
9578
9579 2020-03-13 Tom Tromey <tom@tromey.com>
9580
9581 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9582 API.
9583 (rust_val_print): Rewrite.
9584 (rust_value_print_inner): New function, from rust_val_print.
9585 (rust_language_defn): Use rust_value_print_inner.
9586
9587 2020-03-13 Tom Tromey <tom@tromey.com>
9588
9589 * ada-valprint.c (ada_value_print_inner): New function.
9590 * ada-lang.h (ada_value_print_inner): Declare.
9591 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9592
9593 2020-03-13 Tom Tromey <tom@tromey.com>
9594
9595 * f-valprint.c (f_value_print_innner): New function.
9596 * f-lang.h (f_value_print_innner): Declare.
9597 * f-lang.c (f_language_defn): Use f_value_print_innner.
9598
9599 2020-03-13 Tom Tromey <tom@tromey.com>
9600
9601 * p-valprint.c (pascal_value_print_inner): New function.
9602 * p-lang.h (pascal_value_print_inner): Declare.
9603 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9604
9605 2020-03-13 Tom Tromey <tom@tromey.com>
9606
9607 * m2-valprint.c (m2_value_print_inner): New function.
9608 * m2-lang.h (m2_value_print_inner): Declare.
9609 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9610
9611 2020-03-13 Tom Tromey <tom@tromey.com>
9612
9613 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9614 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9615 * c-valprint.c (c_value_print_inner): New function.
9616 * c-lang.h (c_value_print_inner): Declare.
9617 * c-lang.c (c_language_defn, cplus_language_defn)
9618 (asm_language_defn, minimal_language_defn): Use
9619 c_value_print_inner.
9620
9621 2020-03-13 Tom Tromey <tom@tromey.com>
9622
9623 * p-valprint.c (pascal_object_print_value_fields): Now static.
9624 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9625
9626 2020-03-13 Tom Tromey <tom@tromey.com>
9627
9628 * c-valprint.c (c_val_print_array): Simplify.
9629
9630 2020-03-13 Tom Tromey <tom@tromey.com>
9631
9632 * valprint.c (value_print_array_elements): New function.
9633 * valprint.h (value_print_array_elements): Declare.
9634
9635 2020-03-13 Tom Tromey <tom@tromey.com>
9636
9637 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9638 * mips-tdep.c (mips_print_register): Use
9639 value_print_scalar_formatted.
9640
9641 2020-03-13 Tom Tromey <tom@tromey.com>
9642
9643 * valprint.h (value_print_scalar_formatted): Declare.
9644 * valprint.c (value_print_scalar_formatted): New function.
9645
9646 2020-03-13 Tom Tromey <tom@tromey.com>
9647
9648 * valprint.h (generic_value_print): Declare.
9649 * valprint.c (generic_value_print): New function.
9650
9651 2020-03-13 Tom Tromey <tom@tromey.com>
9652
9653 * valprint.c (do_val_print): Call la_value_print_inner, if
9654 available.
9655 * rust-lang.c (rust_language_defn): Update.
9656 * p-lang.c (pascal_language_defn): Update.
9657 * opencl-lang.c (opencl_language_defn): Update.
9658 * objc-lang.c (objc_language_defn): Update.
9659 * m2-lang.c (m2_language_defn): Update.
9660 * language.h (struct language_defn) <la_value_print_inner>: New
9661 member.
9662 * language.c (unknown_language_defn, auto_language_defn): Update.
9663 * go-lang.c (go_language_defn): Update.
9664 * f-lang.c (f_language_defn): Update.
9665 * d-lang.c (d_language_defn): Update.
9666 * c-lang.c (c_language_defn, cplus_language_defn)
9667 (asm_language_defn, minimal_language_defn): Update.
9668 * ada-lang.c (ada_language_defn): Update.
9669
9670 2020-03-13 Tom Tromey <tom@tromey.com>
9671
9672 * c-valprint.c (c_value_print): Use common_val_print.
9673
9674 2020-03-13 Tom Tromey <tom@tromey.com>
9675
9676 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9677
9678 2020-03-13 Tom Tromey <tom@tromey.com>
9679
9680 * f-valprint.c (f77_print_array_1, f_val_print): Use
9681 common_val_print.
9682
9683 2020-03-13 Tom Tromey <tom@tromey.com>
9684
9685 * riscv-tdep.c (riscv_print_one_register_info): Use
9686 common_val_print.
9687
9688 2020-03-13 Tom Tromey <tom@tromey.com>
9689
9690 * mi/mi-main.c (output_register): Use common_val_print.
9691
9692 2020-03-13 Tom Tromey <tom@tromey.com>
9693
9694 * infcmd.c (default_print_one_register_info): Use
9695 common_val_print.
9696
9697 2020-03-13 Tom Tromey <tom@tromey.com>
9698
9699 * valprint.h (common_val_print_checked): Declare.
9700 * valprint.c (common_val_print_checked): New function.
9701 * stack.c (print_frame_arg): Use common_val_print_checked.
9702
9703 2020-03-13 Tom Tromey <tom@tromey.com>
9704
9705 * valprint.c (do_val_print): New function, from val_print.
9706 (val_print): Use do_val_print.
9707 (common_val_print): Use do_val_print.
9708
9709 2020-03-13 Tom Tromey <tom@tromey.com>
9710
9711 * valprint.c (value_print): Use scoped_value_mark.
9712
9713 2020-03-13 Tom de Vries <tdevries@suse.de>
9714
9715 PR symtab/25646
9716 * psymtab.c (partial_symtab::partial_symtab): Don't set
9717 globals_offset and statics_offset. Push element onto
9718 current_global_psymbols and current_static_psymbols stacks.
9719 (concat): New function.
9720 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9721 element from current_global_psymbols and current_static_psymbols
9722 stacks. Concat popped elements to global_psymbols and
9723 static_symbols.
9724 (add_psymbol_to_list): Use current_global_psymbols and
9725 current_static_psymbols stacks.
9726 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9727 current_static_psymbols fields.
9728
9729 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9730
9731 * corelow.c (sniff_core_bfd): Remove.
9732 (class core_target) <m_core_vec>: Remove.
9733 (core_target::core_target): Update.
9734 (core_file_fns): Remove.
9735 (deprecated_add_core_fns): Remove.
9736 (default_core_sniffer): Remove.
9737 (sniff_core_bfd): Remove.
9738 (default_check_format): Remove.
9739 (gdb_check_format): Remove.
9740 (core_target_open): Update.
9741 (core_target::get_core_register_section): Update.
9742 (get_core_registers_cb): Update.
9743 (core_target::fetch_registers): Update.
9744 * gdbcore.h (struct core_fns): Remove.
9745 (deprecated_add_core_fns): Remove.
9746 (default_core_sniffer): Remove.
9747 (default_check_format): Remove.
9748
9749 2020-03-12 Tom Tromey <tom@tromey.com>
9750
9751 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9752 CORE_ADDR.
9753 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9754
9755 2020-03-12 Tom Tromey <tom@tromey.com>
9756
9757 * remote.c (remote_target::download_tracepoint)
9758 (remote_target::enable_tracepoint)
9759 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9760 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9761 sprintf_vma.
9762
9763 2020-03-12 Tom Tromey <tom@tromey.com>
9764
9765 * symfile-mem.c: Update CORE_ADDR size assert.
9766
9767 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9768
9769 * selftest.m4: Move to gdbsupport/.
9770 * acinclude.m4: Update path to selftest.m4.
9771
9772 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9773
9774 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9775 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9776 gdbarch-selfselftests.c and selftest-arch.c.
9777 (SUBDIR_UNITTESTS_OBS): Rename to...
9778 (SELFTESTS_OBS): ... this.
9779 (COMMON_SFILES): Remove disasm-selftests.c and
9780 gdbarch-selftests.c.
9781 * configure.ac: Don't add selftest-arch.{c,o} to
9782 CONFIG_{SRCS,OBS}.
9783 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9784 preprocessor conditions.
9785
9786 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9787
9788 * configure.ac: Don't source bfd/development.sh.
9789 * selftest.m4: Modify comment.
9790 * configure: Re-generate.
9791
9792 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9793
9794 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9795 not "true" or "false".
9796 * configure: Re-generate.
9797
9798 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9799
9800 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9801 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9802 renamed to arm_nbsd_supply_gregset.
9803 (fetch_register): Update to call arm_nbsd_supply_gregset.
9804 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9805 (arm_netbsd_nat_target::fetch_registers): Update.
9806 (fetch_elfcore_registers): Removed.
9807 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9808 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9809 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9810 not require NetBSD system headers.
9811 (arm_nbsd_regset): New struct.
9812 (arm_nbsd_iterate_over_regset_sections): New function.
9813 (arm_netbsd_init_abi_common): Updated to call
9814 set_gdbarch_iterate_over_regset_sections.
9815 * arm-nbsd-tdep.h: New file.
9816
9817 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9818
9819 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9820 recursion.
9821
9822 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9823
9824 * configure: Re-generate.
9825
9826 2020-03-11 Tom Tromey <tromey@adacore.com>
9827
9828 * ada-typeprint.c (print_choices): Fix comment.
9829
9830 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9831
9832 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9833 previous item in the list, when the list has no items.
9834
9835 2020-03-11 Tom de Vries <tdevries@suse.de>
9836
9837 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9838 PROP_LOCLIST handling code.
9839
9840 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9841
9842 * buildsym-legacy.c (record_line): Pass extra parameter to
9843 record_line.
9844 * buildsym.c (buildsym_compunit::record_line): Take an extra
9845 parameter, reduce duplication in the line table, and record the
9846 is_stmt flag in the line table.
9847 * buildsym.h (buildsym_compunit::record_line): Add extra
9848 parameter.
9849 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9850 non-statement lines.
9851 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9852 this to the symtab builder.
9853 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9854 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9855 through to dwarf_record_line_1.
9856 * infrun.c (process_event_stop_test): When stepping, don't stop at
9857 a non-statement instruction, and only refresh the step info when
9858 we land in the middle of a line's range. Also add an extra
9859 comment.
9860 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9861 field.
9862 * record-btrace.c (btrace_find_line_range): Only record lines
9863 marked as is-statement.
9864 * stack.c (frame_show_address): Show the frame address if we are
9865 in a non-statement sal.
9866 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9867 (maintenance_print_one_line_table): Print a header for the is_stmt
9868 column, and include is_stmt information in the output.
9869 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9870 preference to non-statements.
9871 (find_pcs_for_symtab_line): Prefer is-statement entries.
9872 (find_line_common): Likewise.
9873 * symtab.h (struct linetable_entry): Add is_stmt field.
9874 (struct symtab_and_line): Likewise.
9875 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9876 arranging the line table.
9877
9878 2020-03-07 Tom de Vries <tdevries@suse.de>
9879
9880 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9881 DIE.
9882
9883 2020-03-07 Tom Tromey <tom@tromey.com>
9884
9885 * valops.c (value_literal_complex): Remove obsolete comment.
9886 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9887 comment.
9888
9889 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9890
9891 * infrun.h: Forward-declare thread_info.
9892 (set_step_info): Add thread_info parameter, add doc.
9893 * infrun.c (set_step_info): Add thread_info parameter, move doc
9894 to header.
9895 * infrun.c (process_event_stop_test): Pass thread to
9896 set_step_info call.
9897 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9898 set_step_info.
9899 (prepare_one_step): Add thread_info parameter, pass it to
9900 set_step_frame and prepare_one_step (recursive) call.
9901 (step_1): Pass thread to prepare_one_step call.
9902 (step_command_fsm::should_stop): Pass thread to
9903 prepare_one_step.
9904 (until_next_fsm): Pass thread to set_step_frame call.
9905 (finish_command): Pass thread to set_step_info call.
9906
9907 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9908
9909 * windows-tdep.c (windows_solib_create_inferior_hook):
9910 Check if inferior is running.
9911
9912 2020-03-06 Tom de Vries <tdevries@suse.de>
9913
9914 * NEWS: Fix "the the".
9915 * ctfread.c: Same.
9916
9917 2020-03-06 Tom de Vries <tdevries@suse.de>
9918
9919 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9920
9921 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9922
9923 * .dir-locals.el: Add a comment referencing the other copies of
9924 this file.
9925
9926 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9927
9928 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9929 psargs.
9930
9931 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9932
9933 * .gitattributes: New file.
9934
9935 2020-03-04 Tom Tromey <tom@tromey.com>
9936
9937 * symmisc.c (print_symbol_bcache_statistics)
9938 (print_objfile_statistics): Update.
9939 * symfile.c (allocate_symtab): Use intern.
9940 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9941 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9942 macro_cache>: Remove.
9943 <string_cache>: New member.
9944 (struct objfile) <intern>: New methods.
9945 * elfread.c (elf_symtab_read): Use intern.
9946 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9947 (dwarf2_compute_name, dwarf2_physname)
9948 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9949 names.
9950 (guess_partial_die_structure_name): Update.
9951 (partial_die_info::fixup): Intern name.
9952 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9953 name.
9954 (dwarf2_name): Intern name. Update.
9955 * buildsym.c (buildsym_compunit::get_macro_table): Use
9956 string_cache.
9957
9958 2020-03-04 Tom Tromey <tom@tromey.com>
9959
9960 * jit.c (bfd_open_from_target_memory): Make "target" const.
9961 * corefile.c (gnutarget): Now const.
9962 * gdbcore.h (gnutarget): Now const.
9963
9964 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9965
9966 * NEWS: Mention support for WOW64 processes.
9967 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9968 (amd64_windows_segment_register_p): Remove static.
9969 (_initialize_amd64_windows_nat): Update.
9970 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9971 * i386-windows-nat.c (context_offset): Update.
9972 (i386_mappings): Rename and remove static.
9973 (i386_windows_segment_register_p): Remove static.
9974 (_initialize_i386_windows_nat): Update.
9975 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9976 (STATUS_WX86_SINGLE_STEP): New macro.
9977 (EnumProcessModulesEx): New macro.
9978 (Wow64SuspendThread): New macro.
9979 (Wow64GetThreadContext): New macro.
9980 (Wow64SetThreadContext): New macro.
9981 (Wow64GetThreadSelectorEntry): New macro.
9982 (windows_set_context_register_offsets): Add static.
9983 (windows_set_segment_register_p): Likewise.
9984 (windows_add_thread): Adapt for WOW64 processes.
9985 (windows_fetch_one_register): Likewise.
9986 (windows_nat_target::fetch_registers): Likewise.
9987 (windows_store_one_register): Likewise.
9988 (display_selector): Likewise.
9989 (display_selectors): Likewise.
9990 (handle_exception): Likewise.
9991 (windows_continue): Likewise.
9992 (windows_nat_target::resume): Likewise.
9993 (windows_add_all_dlls): Likewise.
9994 (do_initial_windows_stuff): Likewise.
9995 (windows_nat_target::attach): Likewise.
9996 (windows_get_exec_module_filename): Likewise.
9997 (windows_nat_target::create_inferior): Likewise.
9998 (windows_xfer_siginfo): Likewise.
9999 (_initialize_loadable): Initialize Wow64SuspendThread,
10000 Wow64GetThreadContext, Wow64SetThreadContext,
10001 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10002 * windows-nat.h (windows_set_context_register_offsets):
10003 Remove declaration.
10004 (windows_set_segment_register_p): Likewise.
10005 (i386_windows_segment_register_p): Add declaration.
10006 (amd64_windows_segment_register_p): Likewise.
10007
10008 2020-03-04 Luis Machado <luis.machado@linaro.org>
10009
10010 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10011 in "info registers" for AArch64/ARM.
10012
10013 The change caused "info registers" to not print GPR's.
10014
10015 gdb/ChangeLog:
10016
10017 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10018
10019 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10020 when reg->group is empty and reggroup is not.
10021
10022 2020-03-03 Tom Tromey <tromey@adacore.com>
10023
10024 * dwarf2/frame.c (struct dwarf2_frame_cache)
10025 <checked_tailcall_bottom, entry_cfa_sp_offset,
10026 entry_cfa_sp_offset_p>: Remove members.
10027 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10028 (dwarf2_frame_prev_register): Don't call
10029 dwarf2_tailcall_sniffer_first.
10030 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10031 * frame-unwind.c (add_unwinder): New fuction.
10032 (frame_unwind_init): Use it. Add tailcall unwinder.
10033
10034 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10035 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10036
10037 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10038 value should be printed as true.
10039
10040 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10041
10042 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10043 (windows_init_abi): Set and use windows_so_ops.
10044
10045 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10046
10047 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10048 when verifying if dealing with a convenience variable.
10049
10050 2020-03-03 Luis Machado <luis.machado@linaro.org>
10051
10052 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10053
10054 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10055
10056 * infrun.c (gdbarch_supports_displaced_stepping): New.
10057 (use_displaced_stepping): Break up conditions in smaller pieces.
10058 Use gdbarch_supports_displaced_stepping.
10059 (displaced_step_prepare_throw): Use
10060 gdbarch_supports_displaced_stepping.
10061
10062 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10063
10064 * NEWS: Mention new behaviour of the history filename.
10065 * top.c (write_history_p): Add comment.
10066 (show_write_history_p): Add header comment, give a different
10067 message when history writing is on, but the history filename is
10068 empty.
10069 (history_filename): Add comment.
10070 (history_filename_empty): New function.
10071 (show_history_filename): Add header comment, give a different
10072 message when the filename is empty.
10073 (init_history): Compare history_filename against nullptr, and only
10074 read history if the filename is not empty.
10075 (set_history_filename): Add header comment, and only make
10076 non-empty filenames absolute.
10077 (init_main): Make the filename argument to 'set history filename'
10078 optional.
10079
10080 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10081
10082 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10083 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10084 (fetch_fp_register): Update.
10085 (fetch_fp_regs): Update.
10086 (store_fp_register): Update.
10087 (store_fp_regs): Update.
10088 (arm_netbsd_nat_target::read_description): New function.
10089 (fetch_elfcore_registers): Update.
10090
10091 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10092
10093 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10094 general_thread if the stop reply is missing a thread-id.
10095 (remote_target::process_stop_reply): Use the first non-exited
10096 thread if the target didn't pass a thread-id.
10097 * infrun.c (do_target_wait): Move call to
10098 switch_to_inferior_no_thread to ....
10099 (do_target_wait_1): ... here.
10100
10101 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10102
10103 * debuginfod-support.c: Include defs.h first.
10104
10105 2020-02-28 Tom de Vries <tdevries@suse.de>
10106
10107 * symfile.c (set_initial_language): Use default language for lookup.
10108
10109 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10110
10111 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10112 reader variable, pass `this` to read_cutu_die_from_dwo.
10113
10114 2020-02-27 Aaron Merey <amerey@redhat.com>
10115
10116 * source.c (open_source_file): Check for nullptr when computing
10117 srcpath.
10118
10119 2020-02-27 Tom Tromey <tromey@adacore.com>
10120
10121 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10122 member.
10123 (dwarf2_add_field): Don't update nfields.
10124 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10125
10126 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10127
10128 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10129 abs.
10130
10131 2020-02-26 Tom Tromey <tom@tromey.com>
10132
10133 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10134 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10135 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10136 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10137 per_cu_data.
10138
10139 2020-02-26 Tom Tromey <tom@tromey.com>
10140
10141 * dwarf2/index-write.c (psym_index_map): Change type.
10142 (add_address_entry_worker, write_one_signatured_type)
10143 (recursively_count_psymbols, recursively_write_psymbols)
10144 (class debug_names, psyms_seen_size, write_gdbindex)
10145 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10146
10147 2020-02-26 Aaron Merey <amerey@redhat.com>
10148
10149 * Makefile.in: Handle optional debuginfod support.
10150 * NEWS: Update.
10151 * README: Add --with-debuginfod summary.
10152 * config.in: Regenerate.
10153 * configure: Regenerate.
10154 * configure.ac: Handle optional debuginfod support.
10155 * debuginfod-support.c: debuginfod helper functions.
10156 * debuginfod-support.h: Ditto.
10157 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10158 summary.
10159 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10160 when a dwz file cannot be found.
10161 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10162 debuginfo file cannot be found.
10163 * source.c (open_source_file): Query debuginfod servers when a
10164 source file cannot be found.
10165 * top.c (print_gdb_configuration): Include
10166 --{with,without}-debuginfod in the output.
10167
10168 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10169
10170 * thread.c (thr_try_catch_cmd): Print thread name.
10171
10172 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10173
10174 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10175 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10176 dwarf2_fetch_die_type_sect_off): Move to...
10177 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10178 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10179 dwarf2_fetch_die_type_sect_off): ... here.
10180 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10181 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10182 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10183
10184 2020-02-26 Tom de Vries <tdevries@suse.de>
10185
10186 PR gdb/25603
10187 * symfile.c (set_initial_language): Exit-early if
10188 language_mode == language_mode_manual.
10189
10190 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10191
10192 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10193 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10194 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10195
10196 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10197
10198 * gdbtypes.c (create_array_type_with_stride): Handle negative
10199 array strides.
10200 * valarith.c (value_subscripted_rvalue): Likewise.
10201
10202 2020-02-25 Luis Machado <luis.machado@linaro.org>
10203
10204 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10205
10206 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10207
10208 * loc.h (dwarf2_get_die_type): Move to...
10209 * read.h (dwarf2_get_die_type): ... here.
10210 * read.c (dwarf2_get_die_type): Move doc to header.
10211
10212 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10213
10214 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10215 'gnulib/Makefile.in' to the list.
10216
10217 2020-02-24 Tom Tromey <tom@tromey.com>
10218
10219 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10220 Remove.
10221 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10222 XOBNEWVEC.
10223
10224 2020-02-24 Tom Tromey <tom@tromey.com>
10225
10226 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10227 New method.
10228 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10229 (dw2_do_instantiate_symtab, dw2_get_file_names)
10230 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10231
10232 2020-02-24 Tom Tromey <tom@tromey.com>
10233
10234 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10235 make_scoped_restore.
10236 (dwarf2_psymtab::read_symtab): Don't clear
10237 reading_partial_symbols.
10238
10239 2020-02-24 Tom de Vries <tdevries@suse.de>
10240
10241 PR gdb/25592
10242 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10243
10244 2020-02-24 Tom de Vries <tdevries@suse.de>
10245
10246 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10247 commands layout next/prev/regs.
10248
10249 2020-02-22 Tom Tromey <tom@tromey.com>
10250
10251 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10252 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10253
10254 2020-02-22 Tom Tromey <tom@tromey.com>
10255
10256 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10257
10258 2020-02-22 Tom Tromey <tom@tromey.com>
10259
10260 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10261 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10262 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10263 * tui/tui.c (_initialize_tui): Add usage text.
10264
10265 2020-02-22 Tom Tromey <tom@tromey.com>
10266
10267 * tui/tui-win.c (tui_set_focus_command)
10268 (tui_set_win_height_command): Use error_no_arg.
10269 (_initialize_tui_win): Update help text.
10270 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10271
10272 2020-02-22 Tom Tromey <tom@tromey.com>
10273
10274 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10275 * tui/tui-disasm.h (struct tui_disasm_window)
10276 <display_start_addr>: Declare.
10277 * tui/tui-source.h (struct tui_source_window)
10278 <display_start_addr>: Declare.
10279 * tui/tui-winsource.h (struct tui_source_window_base)
10280 <show_source_line, display_start_addr>: New methods.
10281 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10282 Rename and move to protected section.
10283 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10284 (tui_source_window_base::do_erase_source_content): Update.
10285 (tui_source_window_base::show_source_line): Now a method.
10286 (tui_source_window_base::show_source_content)
10287 (tui_source_window_base::tui_source_window_base)
10288 (tui_source_window_base::rerender)
10289 (tui_source_window_base::refill)
10290 (tui_source_window_base::do_scroll_horizontal)
10291 (tui_source_window_base::set_is_exec_point_at)
10292 (tui_source_window_base::update_breakpoint_info)
10293 (tui_source_window_base::update_exec_info): Update.
10294 * tui/tui-source.c (tui_source_window::set_contents)
10295 (tui_source_window::showing_source_p)
10296 (tui_source_window::do_scroll_vertical)
10297 (tui_source_window::location_matches_p)
10298 (tui_source_window::line_is_displayed): Update.
10299 (tui_source_window::display_start_addr): New method.
10300 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10301 (tui_disasm_window::do_scroll_vertical)
10302 (tui_disasm_window::location_matches_p): Update.
10303 (tui_disasm_window::display_start_addr): New method.
10304
10305 2020-02-22 Tom Tromey <tom@tromey.com>
10306
10307 * NEWS: Add entry for gdb.register_window_type.
10308 * tui/tui-layout.h (window_factory): New typedef.
10309 (tui_register_window): Declare.
10310 * tui/tui-layout.c (saved_tui_windows): New global.
10311 (tui_apply_current_layout): Use it.
10312 (tui_register_window): New function.
10313 * python/python.c (do_start_initialization): Call
10314 gdbpy_initialize_tui.
10315 (python_GdbMethods): Add "register_window_type" function.
10316 * python/python-internal.h (gdbpy_register_tui_window)
10317 (gdbpy_initialize_tui): Declare.
10318 * python/py-tui.c: New file.
10319 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10320
10321 2020-02-22 Tom Tromey <tom@tromey.com>
10322
10323 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10324
10325 2020-02-22 Tom Tromey <tom@tromey.com>
10326
10327 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10328 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10329 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10330 (tui_set_win_focus_to): Move from tui-win.c.
10331
10332 2020-02-22 Tom Tromey <tom@tromey.com>
10333
10334 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10335 functions.
10336 (known_window_types): New global.
10337 (tui_get_window_by_name): Reimplement.
10338 (initialize_known_windows): New function.
10339 (validate_window_name): Rewrite.
10340 (_initialize_tui_layout): Call initialize_known_windows.
10341
10342 2020-02-22 Tom Tromey <tom@tromey.com>
10343
10344 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10345 Remove constants.
10346 * tui/tui-winsource.h (struct tui_source_window_base)
10347 <tui_source_window_base>: Remove parameter.
10348 * tui/tui-winsource.c
10349 (tui_source_window_base::tui_source_window_base): Remove
10350 parameter.
10351 (tui_source_window_base::refill): Update.
10352 * tui/tui-stack.h (struct tui_locator_window)
10353 <tui_locator_window>: Update.
10354 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10355 Default the constructor.
10356 * tui/tui-regs.h (struct tui_data_item_window)
10357 <tui_data_item_window>: Default the constructor.
10358 (struct tui_data_window) <tui_data_window>: Likewise.
10359 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10360 Default the constructor.
10361 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10362 Default the constructor.
10363 <type>: Remove.
10364 (struct tui_win_info) <tui_win_info>: Default the constructor.
10365 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10366 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10367 Default the constructor.
10368
10369 2020-02-22 Tom Tromey <tom@tromey.com>
10370
10371 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10372 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10373 * tui/tui-win.c (tui_resize_all): Don't call
10374 tui_delete_invisible_windows.
10375 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10376 done.
10377 (tui_set_layout): Update.
10378 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10379 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10380 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10381
10382 2020-02-22 Tom Tromey <tom@tromey.com>
10383
10384 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10385 correctly.
10386
10387 2020-02-22 Tom Tromey <tom@tromey.com>
10388
10389 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10390
10391 2020-02-22 Tom Tromey <tom@tromey.com>
10392
10393 * tui/tui-winsource.h (struct tui_source_window_iterator)
10394 <inner_iterator>: New etytypedef.
10395 <tui_source_window_iterator>: Take "end" parameter.
10396 <tui_source_window_iterator>: Take iterator.
10397 <operator*, advance>: Update.
10398 <m_iter>: Change type.
10399 <m_end>: New field.
10400 (struct tui_source_windows) <begin, end>: Update.
10401 * tui/tui-layout.c (tui_windows): New global.
10402 (tui_apply_current_layout): Clear tui_windows.
10403 (tui_layout_window::apply): Update tui_windows.
10404 * tui/tui-data.h (tui_windows): Declare.
10405 (all_tui_windows): Now inline function.
10406 (class tui_window_iterator, struct all_tui_windows): Remove.
10407
10408 2020-02-22 Tom Tromey <tom@tromey.com>
10409
10410 PR tui/17850:
10411 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10412 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10413 "height" argument.
10414 (class tui_layout_window) <get_sizes>: Likewise.
10415 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10416 argument.
10417 <get_sizes>: Add "height" argument.
10418 <m_vertical>: New field.
10419 * tui/tui-layout.c (tui_layout_split::clone): Update.
10420 (tui_layout_split::get_sizes): Add "height" argument.
10421 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10422 (tui_new_layout_command): Parse "-horizontal".
10423 (_initialize_tui_layout): Update help string.
10424 (tui_layout_split::specification): Add "-horizontal" when needed.
10425 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10426 argument.
10427 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10428 New methods.
10429
10430 2020-02-22 Tom Tromey <tom@tromey.com>
10431
10432 * tui/tui-layout.h (enum tui_adjust_result): New.
10433 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10434 (class tui_layout_window) <adjust_size>: Return
10435 tui_adjust_result. Rewrite.
10436 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10437 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10438
10439 2020-02-22 Tom Tromey <tom@tromey.com>
10440
10441 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10442 parameter and return types.
10443 (class tui_layout_base) <specification>: Add "depth".
10444 (class tui_layout_window) <specification>: Add "depth".
10445 (class tui_layout_split) <specification>: Add "depth".
10446 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10447 and return types.
10448 (tui_new_layout_command): Parse sub-layouts.
10449 (_initialize_tui_layout): Update help string.
10450 (tui_layout_window::specification): Add "depth".
10451 (add_layout_command): Update.
10452
10453 2020-02-22 Tom Tromey <tom@tromey.com>
10454
10455 * NEWS: Add "tui new-layout" item.
10456 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10457 Add new-layout command to help text.
10458 (validate_window_name): New function.
10459 (tui_new_layout_command): New function.
10460 (_initialize_tui_layout): Register "new-layout".
10461 (tui_layout_window::specification): New method.
10462 (tui_layout_window::specification): New method.
10463 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10464 method.
10465 (class tui_layout_window) <specification>: New method.
10466 (class tui_layout_split) <specification>: New method.
10467
10468 2020-02-22 Tom Tromey <tom@tromey.com>
10469
10470 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10471 * tui/tui-win.c (window_name_completer): Update comment.
10472 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10473 Declare method.
10474 (class tui_layout_window) <replace_window>: Likewise.
10475 (class tui_layout_split) <replace_window>: Likewise.
10476 (tui_set_layout): Don't declare.
10477 (tui_set_initial_layout): Declare function.
10478 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10479 (asm_regs_layout): New globals.
10480 (tui_current_layout, show_layout): Remove.
10481 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10482 (find_layout, tui_apply_layout): New function.
10483 (layout_completer): Remove.
10484 (tui_next_layout): Reimplement.
10485 (tui_next_layout_command): New function.
10486 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10487 (tui_regs_layout): Reimplement.
10488 (tui_regs_layout_command): New function.
10489 (extract_display_start_addr): Rewrite.
10490 (next_layout, prev_layout): Remove.
10491 (tui_layout_window::replace_window): New method.
10492 (tui_layout_split::replace_window): New method.
10493 (destroy_layout): New function.
10494 (layout_list): New global.
10495 (add_layout_command): New function.
10496 (initialize_layouts): Update.
10497 (tui_layout_command): New function.
10498 (_initialize_tui_layout): Install "layout" commands.
10499 * tui/tui-data.h (enum tui_layout_type): Remove.
10500 (tui_current_layout): Don't declare.
10501
10502 2020-02-22 Tom Tromey <tom@tromey.com>
10503
10504 * tui/tui-regs.c (tui_reg_layout): Remove.
10505 (tui_reg_command): Use tui_regs_layout.
10506 * tui/tui-layout.h (tui_reg_command): Declare.
10507 * tui/tui-layout.c (tui_reg_command): New function.
10508
10509 2020-02-22 Tom Tromey <tom@tromey.com>
10510
10511 * tui/tui.c (tui_rl_delete_other_windows): Call
10512 tui_remove_some_windows.
10513 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10514 Declare method.
10515 (class tui_layout_window) <remove_windows>: New method.
10516 (class tui_layout_split) <remove_windows>: Declare.
10517 (tui_remove_some_windows): Declare.
10518 * tui/tui-layout.c (tui_remove_some_windows): New function.
10519 (tui_layout_split::remove_windows): New method.
10520
10521 2020-02-22 Tom Tromey <tom@tromey.com>
10522
10523 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10524 * tui/tui-layout.h (tui_next_layout): Declare.
10525 * tui/tui-layout.c (tui_next_layout): New function.
10526
10527 2020-02-22 Tom Tromey <tom@tromey.com>
10528
10529 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10530 correct coordinates.
10531
10532 2020-02-22 Tom Tromey <tom@tromey.com>
10533
10534 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10535 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10536 DATA_WIN case.
10537
10538 2020-02-22 Tom Tromey <tom@tromey.com>
10539
10540 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10541 TUI_DISASM_WIN, not tui_win_list.
10542
10543 2020-02-22 Tom Tromey <tom@tromey.com>
10544
10545 * valprint.c (generic_val_print_enum_1)
10546 (val_print_type_code_flags): Style member names.
10547 * rust-lang.c (val_print_struct, rust_print_enum)
10548 (rust_print_struct_def, rust_internal_print_type): Style member
10549 names.
10550 * p-valprint.c (pascal_object_print_value_fields): Style member
10551 names. Only call fprintf_symbol_filtered for static members.
10552 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10553 * f-valprint.c (f_val_print): Style member names.
10554 * f-typeprint.c (f_type_print_base): Style member names.
10555 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10556 call fprintf_symbol_filtered for static members.
10557 (cp_print_class_member): Style member names.
10558 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10559 member names.
10560 * ada-valprint.c (ada_print_scalar): Style enum names.
10561 (ada_val_print_enum): Likewise.
10562 * ada-typeprint.c (print_enum_type): Style enum names.
10563
10564 2020-02-21 Tom Tromey <tom@tromey.com>
10565
10566 * psympriv.h (struct partial_symtab): Update comment.
10567
10568 2020-02-21 Tom Tromey <tromey@adacore.com>
10569
10570 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10571 type is CORE_ADDR.
10572
10573 2020-02-21 Tom de Vries <tdevries@suse.de>
10574
10575 PR gdb/25534
10576 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10577 if dependencies[i]->user != NULL.
10578
10579 2020-02-21 Ali Tamur <tamur@google.com>
10580
10581 * dwarf2/read.c (dwarf2_name): Add null check.
10582
10583 2020-02-20 Tom Tromey <tom@tromey.com>
10584
10585 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10586 ">=", in binary search.
10587 (dwarf2_find_containing_comp_unit): New overload.
10588 (run_test): New self-test.
10589 (_initialize_dwarf2_read): Register new test.
10590
10591 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10592
10593 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10594 * riscv-tdep.h: Likewise.
10595 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10596 rv32-only CSR.
10597 * features/riscv/64bit-csr.xml: Regenerated.
10598
10599 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10600 Tom Tromey <tom@tromey.com>
10601
10602 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10603 of 'fputc_unfiltered'.
10604 (putchar_unfiltered): Call 'fputc_unfiltered'.
10605 (fputc_unfiltered): Call 'fputs_unfiltered'.
10606
10607 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10608
10609 * config.in: Regenerate.
10610 * configure: Regenerate.
10611 * configure.ac: Add --with-python-libdir option.
10612 * main.c: Use WITH_PYTHON_LIBDIR.
10613
10614 2020-02-19 Tom Tromey <tom@tromey.com>
10615
10616 * symtab.c (general_symbol_info::compute_and_set_names): Use
10617 obstack_strndup. Simplify call to symbol_set_demangled_name.
10618
10619 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10620
10621 * dwarf2/read.c (allocate_signatured_type_table,
10622 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10623 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10624 Remove objfile parameter, update all callers.
10625
10626 2020-02-19 Doug Evans <dje@google.com>
10627
10628 PR rust/25535
10629 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10630 rust_enum_variant calculation.
10631
10632 2020-02-19 Tom Tromey <tromey@adacore.com>
10633
10634 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10635
10636 2020-02-19 Tom Tromey <tromey@adacore.com>
10637
10638 * ada-lang.c (cache_symbol): Use obstack_strdup.
10639
10640 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10641
10642 * configure: Regenerate.
10643
10644 2020-02-19 Tom Tromey <tromey@adacore.com>
10645
10646 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10647 NULL check.
10648
10649 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10650
10651 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10652
10653 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10654
10655 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10656 if GDBSERVER is not defined.
10657 (riscv_tdesc_cache): Likewise, also store const target_desc.
10658 (STATIC_IN_GDB): Define.
10659 (riscv_create_target_description): Update declaration with
10660 STATIC_IN_GDB.
10661 (riscv_lookup_target_description): New function, only define if
10662 GDBSERVER is not defined.
10663 * arch/riscv.h (riscv_create_target_description): Declare only
10664 when GDBSERVER is defined.
10665 (riscv_lookup_target_description): New declaration when GDBSERVER
10666 is not defined.
10667 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10668 (riscv_linux_read_features): ...this, and return
10669 riscv_gdbarch_features instead of target_desc.
10670 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10671 (riscv_linux_read_description): Rename to...
10672 (riscv_linux_read_features): ...this.
10673 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10674 Update to use riscv_gdbarch_features and
10675 riscv_lookup_target_description.
10676 * riscv-tdep.c (riscv_find_default_target_description): Use
10677 riscv_lookup_target_description instead of
10678 riscv_create_target_description.
10679
10680 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10681
10682 * valprint.c (generic_val_print_enum_1): When printing a flag
10683 enum with value 0 and there is no enumerator with value 0, print
10684 just "0" instead of "(unknown: 0x0)".
10685
10686 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10687
10688 * valprint.c (generic_val_print_enum_1): Print unknown part of
10689 flag enum in hex.
10690
10691 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10692
10693 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10694 flag enums to contain duplicate enumerators.
10695 * valprint.c (generic_val_print_enum_1): Update comment.
10696
10697 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10698
10699 * dwarf2/read.c: Include "count-one-bits.h".
10700 (update_enumeration_type_from_children): If an enumerator has
10701 multiple bits set, don't treat the enumeration as a "flag enum".
10702 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10703 of flag enums have 0 or 1 bit set.
10704
10705 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10706
10707 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10708 conversion.
10709 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10710 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10711 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10712 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10713 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10714
10715 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10716
10717 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10718
10719 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10720
10721 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10722 displaced_step_closure_up.
10723 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10724 (struct displaced_step_closure_up):
10725 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10726 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10727 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10728 Likewise.
10729 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10730 * gdbarch.c, gdbarch.h: Re-generate.
10731 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10732 displaced_step_closure_up.
10733 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10734 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10735 * infrun.h (displaced_step_closure_up): New type alias.
10736 (struct displaced_step_inferior_state) <step_closure>: Change
10737 type to displaced_step_closure_up.
10738 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10739 displaced_step_closure_up.
10740 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10741
10742 2020-02-14 Tom Tromey <tom@tromey.com>
10743
10744 * minidebug.c (gnu_debug_key): New global.
10745 (find_separate_debug_file_in_section): Use it.
10746
10747 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10748
10749 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10750 std::unique_ptr.
10751 * gdbarch.c: Re-generate.
10752 * gdbarch.h: Re-generate.
10753 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10754 change.
10755 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10756 type to std::unique_ptr.
10757 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10758 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10759 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10760 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10761 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10762 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10763 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10764 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10765 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10766
10767 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10768
10769 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10770 std::unique_ptr.
10771 (displaced_step_clear): Rename to...
10772 (displaced_step_reset): ... this. Just call displaced->reset ().
10773 (displaced_step_clear_cleanup): Rename to...
10774 (displaced_step_reset_cleanup): ... this.
10775 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10776 (displaced_step_fixup): Likewise.
10777 (resume_1): Likewise.
10778 (handle_inferior_event): Restore child's memory before calling
10779 displaced_step_fixup on the parent.
10780 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10781 to std::unique_ptr.
10782 <step_closure>: Change type to std::unique_ptr.
10783
10784 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10785
10786 * arm-tdep.c: Include count-one-bits.h.
10787 (cleanup_block_store_pc): Use count_one_bits.
10788 (cleanup_block_load_pc): Use count_one_bits.
10789 (arm_copy_block_xfer): Use count_one_bits.
10790 (thumb2_copy_block_xfer): Use count_one_bits.
10791 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10792 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10793 (thumb_get_next_pcs_raw): Use count_one_bits.
10794 (arm_get_next_pcs_raw): Use count_one_bits_l.
10795 * arch/arm.c (bitcount): Remove.
10796 * arch/arm.h (bitcount): Remove.
10797
10798 2020-02-14 Tom Tromey <tromey@adacore.com>
10799
10800 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10801 Update.
10802 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10803 * dwarf2/loc.c (call_site_find_chain_1): Return
10804 unique_xmalloc_ptr.
10805 (call_site_find_chain): Likewise.
10806
10807 2020-02-14 Richard Biener <rguenther@suse.de>
10808
10809 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10810 on expression with division operators.
10811
10812 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10813
10814 * MAINTAINERS (Write After Approval): Adding myself.
10815
10816 2020-02-12 Tom Tromey <tom@tromey.com>
10817
10818 * event-loop.c (event_data, gdb_event, event_handler_func):
10819 Remove.
10820
10821 2020-02-12 Tom Tromey <tom@tromey.com>
10822
10823 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10824 (dwarf2_frame_objfile_data): Add comment.
10825 (find_comp_unit, set_comp_unit): New functions.
10826 (dwarf2_frame_find_fde): Use find_comp_unit.
10827 (dwarf2_build_frame_info): Use set_comp_unit.
10828
10829 2020-02-12 Tom Tromey <tom@tromey.com>
10830
10831 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10832 (comp_unit): Don't initialize objfile.
10833 (execute_cfa_program): Add text_offset parameter.
10834 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10835 (dwarf2_frame_cache): Update.
10836 (dwarf2_build_frame_info): Don't set "objfile" member.
10837
10838 2020-02-12 Tom Tromey <tom@tromey.com>
10839
10840 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10841 (decode_frame_entry): Likewise.
10842 (dwarf2_build_frame_info): Update.
10843
10844 2020-02-12 Tom Tromey <tom@tromey.com>
10845
10846 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10847 (decode_frame_entry_1): Use the comp_unit obstack.
10848
10849 2020-02-12 Tom Tromey <tom@tromey.com>
10850
10851 * dwarf2/frame.c (struct comp_unit): Add initializers and
10852 constructor.
10853 (dwarf2_frame_objfile_data): Store a comp_unit.
10854 (dwarf2_frame_find_fde): Update.
10855 (dwarf2_build_frame_info): Use "new".
10856
10857 2020-02-12 Tom Tromey <tom@tromey.com>
10858
10859 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10860 (dwarf2_fde_table): Typedef for std::vector.
10861 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10862 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10863 (decode_frame_entry): Update.
10864 (dwarf2_build_frame_info): Use "new".
10865
10866 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10867
10868 * arm-tdep.c (arm_gdbarch_init): Update.
10869 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10870 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10871 have_neon, is_m>: Change to bool.
10872
10873 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10874
10875 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10876
10877 2020-02-12 Tom Tromey <tom@tromey.com>
10878
10879 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10880
10881 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10882
10883 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10884 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10885
10886 2020-02-11 Tom Tromey <tom@tromey.com>
10887
10888 * psymtab.h: Update comment.
10889
10890 2020-02-11 Tom Tromey <tom@tromey.com>
10891
10892 * gdb_obstack.h (struct auto_obstack): Use
10893 DISABLE_COPY_AND_ASSIGN.
10894
10895 2020-02-11 Tom Tromey <tom@tromey.com>
10896
10897 * dwarf2/frame.h (struct objfile): Don't forward declare.
10898
10899 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10900
10901 * cris-tdep.c (cris_supply_gregset): Change signature to match
10902 what struct regset expects.
10903 (cris_regset): New struct.
10904 (fetch_core_registers): Remove.
10905 (cris_iterate_over_regset_sections): New function.
10906 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10907 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10908
10909 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10910
10911 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10912 registers.
10913
10914 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10915
10916 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10917
10918 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10919
10920 * configure: Re-generate.
10921
10922 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10923
10924 * configure: Re-generate.
10925
10926 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10927
10928 * acinclude: Update warning.m4 path.
10929 * warning.m4: Move to gdbsupport.
10930
10931 2020-02-11 Tom Tromey <tromey@adacore.com>
10932
10933 * remote.c (remote_console_output): Update.
10934 * printcmd.c (printf_command): Update.
10935 * event-loop.c (gdb_wait_for_event): Update.
10936 * linux-nat.c (sigchld_handler): Update.
10937 * remote-sim.c (gdb_os_write_stdout): Update.
10938 (gdb_os_flush_stdout): Update.
10939 (gdb_os_flush_stderr): Update.
10940 (gdb_os_write_stderr): Update.
10941 * exceptions.c (print_exception): Update.
10942 * remote-fileio.c (remote_fileio_func_read): Update.
10943 (remote_fileio_func_write): Update.
10944 * tui/tui.c (tui_enable): Update.
10945 * tui/tui-interp.c (tui_interp::init): Update.
10946 * utils.c (init_page_info): Update.
10947 (putchar_unfiltered, fputc_unfiltered): Update.
10948 (gdb_flush): Update.
10949 (emit_style_escape): Update.
10950 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10951 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10952 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10953 (stderr_file::write): Update.
10954 (stderr_file::puts): Update.
10955 * ui-file.h (ui_file_isatty, ui_file_write)
10956 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10957 (ui_file_puts): Don't declare.
10958
10959 2020-02-10 Tom de Vries <tdevries@suse.de>
10960
10961 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10962 sentinel to char *.
10963
10964 2020-02-09 Tom de Vries <tdevries@suse.de>
10965
10966 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10967 filename if it matches "<artificial>".
10968
10969 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10970
10971 * windows-tdep.c (struct enum_value_name): New struct.
10972 (create_enum): New function.
10973 (windows_get_siginfo_type): Create and use enum types.
10974
10975 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10976
10977 * NEWS: Mention $_siginfo support for Windows.
10978 * windows-nat.c (handle_exception): Set siginfo_er.
10979 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10980 (windows_xfer_siginfo): New function.
10981 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10982 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10983 (init_windows_gdbarch_data): New function.
10984 (get_windows_gdbarch_data): New function.
10985 (windows_get_siginfo_type): New function.
10986 (windows_init_abi): Register windows_get_siginfo_type.
10987 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10988
10989 2020-02-08 Tom Tromey <tom@tromey.com>
10990
10991 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10992 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10993 <keep>: Declare method.
10994 <m_keep>: Remove member.
10995 <~cutu_reader>: Remove.
10996 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10997 (cutu_reader::cutu_reader): Update.
10998 (cutu_reader::keep): Rename from ~cutu_reader.
10999 (process_psymtab_comp_unit, build_type_psymtabs_1)
11000 (process_skeletonless_type_unit, load_partial_comp_unit)
11001 (load_full_comp_unit, dwarf2_read_addr_index)
11002 (read_signatured_type): Update.
11003
11004 2020-02-08 Tom Tromey <tom@tromey.com>
11005
11006 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11007 "want_partial_unit" parameter.
11008 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11009 Inline check for DW_TAG_partial_unit.
11010 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11011
11012 2020-02-08 Tom Tromey <tom@tromey.com>
11013
11014 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11015 read.c.
11016 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11017 read.c.
11018
11019 2020-02-08 Tom Tromey <tom@tromey.com>
11020
11021 * dwarf2/read.c (read_address): Move to comp-unit.c.
11022 (dwarf2_rnglists_process, dwarf2_ranges_process)
11023 (read_attribute_value, dwarf_decode_lines_1)
11024 (var_decode_location, decode_locdesc): Update.
11025 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11026 read.c. Remove "cu" parameter.
11027 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11028 method.
11029
11030 2020-02-08 Tom Tromey <tom@tromey.com>
11031
11032 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11033 (read_indirect_line_string): Update.
11034 * dwarf2/comp-unit.c (read_offset): Remove.
11035 (read_comp_unit_head): Update.
11036 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11037 method.
11038 (read_offset): Don't declare.
11039
11040 2020-02-08 Tom Tromey <tom@tromey.com>
11041
11042 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11043 * dwarf2/read.c (struct comp_unit_head): Move to
11044 dwarf2/comp-unit.h.
11045 (enum class rcuh_kind): Move to comp-unit.h.
11046 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11047 (read_comp_unit_head, error_check_comp_unit_head)
11048 (read_and_check_comp_unit_head): Move to comp-unit.c.
11049 (read_offset, dwarf_unit_type_name): Likewise.
11050 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11051 (cutu_reader::cutu_reader, read_call_site_scope)
11052 (find_partial_die, follow_die_offset): Update.
11053 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11054
11055 2020-02-08 Tom Tromey <tom@tromey.com>
11056
11057 * dwarf2/read.c (read_offset_1): Move to leb.c.
11058 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11059 (dwarf_decode_macro_bytes): Update.
11060 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11061 * dwarf2/leb.h (read_offset): Declare.
11062
11063 2020-02-08 Tom Tromey <tom@tromey.com>
11064
11065 * dwarf2/read.c (dwarf2_section_size): Remove.
11066 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11067 Update.
11068 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11069
11070 2020-02-08 Tom Tromey <tom@tromey.com>
11071
11072 * dwarf2/read.c (read_initial_length): Move to leb.c.
11073 * dwarf2/leb.h (read_initial_length): Declare.
11074 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11075 handle_nonstd parameter.
11076 * dwarf2/frame.c (read_initial_length): Remove.
11077 (decode_frame_entry_1): Update.
11078
11079 2020-02-08 Tom Tromey <tom@tromey.com>
11080
11081 * dwarf2/loc.c (dwarf2_find_location_expression)
11082 (dwarf_evaluate_loc_desc::get_tls_address)
11083 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11084 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11085 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11086 (dwarf2_compile_property_to_c)
11087 (dwarf2_loc_desc_get_symbol_read_needs)
11088 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11089 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11090 (loclist_describe_location, loclist_tracepoint_var_ref)
11091 (loclist_generate_c_location): Update.
11092 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11093 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11094 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11095 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11096 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11097 (dwarf2_per_cu_data::addr_size)
11098 (dwarf2_per_cu_data::ref_addr_size)
11099 (dwarf2_per_cu_data::text_offset)
11100 (dwarf2_per_cu_data::addr_type): Now methods.
11101 (per_cu_header_read_in): Make per_cu "const".
11102 (dwarf2_version): Remove.
11103 (dwarf2_per_cu_data::int_type): Now a method.
11104 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11105 (set_die_type, read_array_type, read_subrange_index_type)
11106 (read_tag_string_type, read_subrange_type): Update.
11107 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11108 offset_size, ref_addr_size, text_offset, addr_type, version,
11109 objfile, int_type, addr_sized_int_type>: Declare methods.
11110
11111 2020-02-08 Tom Tromey <tom@tromey.com>
11112
11113 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11114 Move earlier.
11115
11116 2020-02-08 Tom Tromey <tom@tromey.com>
11117
11118 * dwarf2/read.h (dwarf_line_debug): Declare.
11119 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11120 * dwarf2/read.c: Move line_header code to new files.
11121 (dwarf_line_debug): No longer static.
11122 * dwarf2/line-header.c: New file.
11123 * dwarf2/line-header.h: New file.
11124
11125 2020-02-08 Tom Tromey <tom@tromey.com>
11126
11127 * dwarf2/read.c (struct line_header) <file_full_name,
11128 file_file_name>: Return unique_xmalloc_ptr.
11129 (line_header::file_file_name): Update.
11130 (line_header::file_full_name): Update.
11131 (dw2_get_file_names_reader): Update.
11132 (macro_start_file): Update.
11133
11134 2020-02-08 Tom Tromey <tom@tromey.com>
11135
11136 * dwarf2/read.c (struct line_header) <file_full_name,
11137 file_file_name>: Declare methods.
11138 (dw2_get_file_names_reader): Update.
11139 (file_file_name): Now a method.
11140 (file_full_name): Likewise.
11141 (macro_start_file): Update.
11142
11143 2020-02-08 Tom Tromey <tom@tromey.com>
11144
11145 * dwarf2/read.c (dwarf_always_disassemble)
11146 (show_dwarf_always_disassemble): Move to loc.c.
11147 (_initialize_dwarf2_read): Move "always-disassemble" registration
11148 to loc.c.
11149 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11150 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11151 static.
11152 (show_dwarf_always_disassemble): Move from read.c.
11153 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11154
11155 2020-02-08 Tom Tromey <tom@tromey.com>
11156
11157 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11158 (create_quick_file_names_table): Return htab_up.
11159 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11160 Update.
11161 * dwarf2/read.h (struct dwarf2_per_objfile)
11162 <quick_file_names_table>: Now htab_up.
11163
11164 2020-02-08 Tom Tromey <tom@tromey.com>
11165
11166 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11167
11168 2020-02-08 Tom Tromey <tom@tromey.com>
11169
11170 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11171 Rewrite.
11172 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11173 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11174 (abbrev_table::abbrev_table): No longer inline.
11175 (ABBREV_HASH_SIZE): Remove.
11176 (abbrev_table::m_abbrevs): Now an htab_up.
11177
11178 2020-02-08 Tom Tromey <tom@tromey.com>
11179
11180 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11181 (cutu_reader): Update.
11182 (build_type_psymtabs_1): Update.
11183 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11184 (abbrev_table::alloc_abbrev): Update.
11185 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11186 (abbrev_table::read): New static method, renamed from
11187 abbrev_table_read_table.
11188 (abbrev_table::alloc_abbrev)
11189 (abbrev_table::add_abbrev): Now private.
11190 (abbrev_table::abbrev_table): Now private.
11191 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11192
11193 2020-02-08 Tom Tromey <tom@tromey.com>
11194
11195 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11196 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11197 htab_up.
11198
11199 2020-02-08 Tom Tromey <tom@tromey.com>
11200
11201 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11202 htab_up.
11203 (lookup_dwo_unit_in_dwp): Update.
11204 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11205 on obstack.
11206
11207 2020-02-08 Tom Tromey <tom@tromey.com>
11208
11209 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11210 obstack.
11211
11212 2020-02-08 Tom Tromey <tom@tromey.com>
11213
11214 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11215 line_header_hash.
11216 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11217 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11218 Change type to htab_up.
11219
11220 2020-02-08 Tom Tromey <tom@tromey.com>
11221
11222 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11223 htab_up. Don't allocate on obstack.
11224 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11225 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11226 Change type to htab_up.
11227
11228 2020-02-08 Tom Tromey <tom@tromey.com>
11229
11230 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11231 Change type to htab_up.
11232 * dwarf2/read.c (create_signatured_type_table_from_index)
11233 (create_signatured_type_table_from_debug_names)
11234 (create_all_type_units, add_type_unit)
11235 (lookup_dwo_signatured_type, lookup_signatured_type)
11236 (process_skeletonless_type_unit): Update.
11237 (create_debug_type_hash_table, create_debug_types_hash_table):
11238 Change type of types_htab.
11239 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11240 htab_up. Don't allocate on obstack.
11241 (create_cus_hash_table): Change type of cus_htab parameter.
11242 (struct dwo_file) <cus, tus>: Now htab_up.
11243 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11244 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11245 (queue_and_load_all_dwo_tus): Update.
11246 * dwarf2/index-write.c (write_gdbindex): Update.
11247 (write_debug_names): Update.
11248
11249 2020-02-08 Tom Tromey <tom@tromey.com>
11250
11251 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11252 dwarf2/read.c. Remove "next" member. Add constructor ntad
11253 destructor.
11254 (struct dwarf2_per_objfile) <queue>: New member.
11255 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11256 dwarf2/read.h.
11257 (dwarf2_queue, dwarf2_queue_tail): Remove.
11258 (class dwarf2_queue_guard): Add parameter to constructor. Use
11259 DISABLE_COPY_AND_ASSIGN.
11260 <m_per_objfile>: New member.
11261 <~dwarf2_queue_guard>: Rewrite.
11262 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11263 Update.
11264 (~dwarf2_queue_item): New.
11265
11266 2020-02-08 Tom Tromey <tom@tromey.com>
11267
11268 * dwarf2/read.c (struct die_info) <has_children>: New member.
11269 (dw2_get_file_names_reader): Remove has_children.
11270 (dw2_get_file_names): Update.
11271 (read_cutu_die_from_dwo): Remove has_children.
11272 (cutu_reader::init_tu_and_read_dwo_dies)
11273 (cutu_reader::cutu_reader): Update.
11274 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11275 Remove has_children.
11276 (build_type_psymtabs_1, process_skeletonless_type_unit)
11277 (load_partial_comp_unit, load_full_comp_unit): Update.
11278 (create_dwo_cu_reader): Remove has_children.
11279 (create_cus_hash_table, read_die_and_children): Update.
11280 (read_full_die_1,read_full_die): Remove has_children.
11281 (read_signatured_type): Update.
11282 (class cutu_reader) <has_children>: Remove.
11283
11284 2020-02-08 Tom Tromey <tom@tromey.com>
11285
11286 * dwarf2/expr.c: Rename from dwarf2expr.c.
11287 * dwarf2/expr.h: Rename from dwarf2expr.h.
11288 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11289 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11290 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11291 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11292 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11293 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11294 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11295 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11296 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11297 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11298 * dwarf2/loc.c: Rename from dwarf2loc.c.
11299 * dwarf2/loc.h: Rename from dwarf2loc.h.
11300 * dwarf2/read.c: Rename from dwarf2read.c.
11301 * dwarf2/read.h: Rename from dwarf2read.h.
11302 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11303 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11304 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11305 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11306 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11307 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11308 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11309 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11310 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11311 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11312 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11313 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11314 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11315 Update.
11316 * Makefile.in (COMMON_SFILES): Update.
11317 (HFILES_NO_SRCDIR): Update.
11318
11319 2020-02-08 Tom Tromey <tom@tromey.com>
11320
11321 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11322 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11323
11324 2020-02-08 Tom Tromey <tom@tromey.com>
11325
11326 * dwarf2read.h (struct die_info): Don't declare.
11327
11328 2020-02-08 Tom Tromey <tom@tromey.com>
11329
11330 * dwarf2read.h (die_info_ptr): Remove typedef.
11331
11332 2020-02-08 Tom Tromey <tom@tromey.com>
11333
11334 * dwarf2read.c (read_call_site_scope)
11335 (handle_data_member_location, dwarf2_add_member_fn)
11336 (mark_common_block_symbol_computed, read_common_block)
11337 (attr_to_dynamic_prop, partial_die_info::read)
11338 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11339 (dwarf2_symbol_mark_computed, set_die_type): Update.
11340 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11341 method.
11342 (attr_form_is_block): Don't declare.
11343 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11344
11345 2020-02-08 Tom Tromey <tom@tromey.com>
11346
11347 * dwarf2read.c (dwarf2_find_base_address, )
11348 (read_call_site_scope, rust_containing_type)
11349 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11350 (handle_data_member_location, dwarf2_add_member_fn)
11351 (get_alignment, read_structure_type, process_structure_scope)
11352 (mark_common_block_symbol_computed, read_common_block)
11353 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11354 (partial_die_info::read, read_attribute_value, new_symbol)
11355 (lookup_die_type, dwarf2_get_ref_die_offset)
11356 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11357 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11358 (dwarf2_symbol_mark_computed): Update.
11359 * dwarf2/attribute.h (struct attribute) <value_as_address,
11360 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11361 methods.
11362 (value_as_address, attr_form_is_section_offset)
11363 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11364 * dwarf2/attribute.c (attribute::value_as_address)
11365 (attribute::form_is_section_offset, attribute::form_is_constant)
11366 (attribute::form_is_ref): Now methods.
11367
11368 2020-02-08 Tom Tromey <tom@tromey.com>
11369
11370 * dwarf2read.c (struct attribute, DW_STRING)
11371 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11372 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11373 (attr_form_is_block, attr_form_is_section_offset)
11374 (attr_form_is_constant, attr_form_is_ref): Move.
11375 * dwarf2/attribute.h: New file.
11376 * dwarf2/attribute.c: New file, from dwarf2read.c.
11377 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11378
11379 2020-02-08 Tom Tromey <tom@tromey.com>
11380
11381 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11382 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11383 Move.
11384 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11385 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11386 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11387 abbrev.c.
11388 * dwarf2/abbrev.h: New file.
11389 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11390 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11391
11392 2020-02-08 Tom Tromey <tom@tromey.com>
11393
11394 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11395 (dwarf2_section_size, dwarf2_get_section_info)
11396 (create_signatured_type_table_from_debug_names)
11397 (create_addrmap_from_aranges, read_debug_names_from_section)
11398 (get_gdb_index_contents_from_section, read_comp_unit_head)
11399 (error_check_comp_unit_head, read_abbrev_offset)
11400 (create_debug_type_hash_table, init_cu_die_reader)
11401 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11402 (read_comp_units_from_section, create_cus_hash_table)
11403 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11404 (create_dwp_v2_section, dwarf2_rnglists_process)
11405 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11406 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11407 (read_indirect_string_from_dwz, read_addr_index_1)
11408 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11409 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11410 (fill_in_loclist_baton): Update.
11411 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11412 get_containing_section, get_bfd_owner, get_bfd_section,
11413 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11414 (dwarf2_read_section, get_section_name, get_section_file_name)
11415 (get_containing_section, get_section_bfd_owner)
11416 (get_section_bfd_section, get_section_name, get_section_file_name)
11417 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11418 declare.
11419 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11420 (dwarf2_section_info::get_bfd_owner)
11421 (dwarf2_section_info::get_bfd_section)
11422 (dwarf2_section_info::get_name)
11423 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11424 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11425 (dwarf2_section_info::read): Now methods.
11426 * dwarf-index-write.c (class debug_names): Update.
11427
11428 2020-02-08 Tom Tromey <tom@tromey.com>
11429
11430 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11431 Move to dwarf2/section.h.
11432 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11433 (get_section_bfd_section, get_section_name)
11434 (get_section_file_name, get_section_id, get_section_flags)
11435 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11436 dwarf2/section.c.
11437 * dwarf2/section.h: New file.
11438 * dwarf2/section.c: New file, from dwarf2read.c.
11439 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11440
11441 2020-02-08 Tom Tromey <tom@tromey.com>
11442
11443 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11444 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11445 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11446 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11447 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11448 * dwarf2/leb.h: New file, from dwarf2read.c.
11449 * dwarf2/leb.c: New file, from dwarf2read.c.
11450 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11451 Remove.
11452 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11453 (COMMON_SFILES): Add dwarf2/leb.c.
11454
11455 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11456
11457 GDB 9.1 released.
11458
11459 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11460
11461 PR gdb/25190:
11462 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11463 * gdb/remote.c (remote_console_output): Update.
11464 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11465 (ui_file_puts): ...this.
11466 * gdb/ui-file.h (ui_file_puts): Add declaration.
11467 * gdb/utils.c (emit_style_escape): Update.
11468 (flush_wrap_buffer): Update.
11469 (fputs_maybe_filtered): Update.
11470 (fputs_unfiltered): Add function.
11471
11472 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11473
11474 * gdb/event-loop.c (gdb_wait_for_event): Update.
11475 * gdb/printcmd.c (printf_command): Update.
11476 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11477 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11478 (gdb_os_flush_stderr): Update.
11479 * gdb/remote.c (remote_console_output): Update.
11480 * gdb/ui-file.c (gdb_flush): Rename to...
11481 (ui_file_flush): ...this.
11482 (stderr_file::write): Update.
11483 (stderr_file::puts): Update.
11484 * gdb/ui-file.h (gdb_flush): Rename to...
11485 (ui_file_flush): ...this.
11486 * gdb/utils.c (gdb_flush): Add function.
11487 * gdb/utils.h (gdb_flush): Add declaration.
11488
11489 2020-02-07 Tom Tromey <tromey@adacore.com>
11490
11491 PR breakpoints/24915:
11492 * source.c (find_and_open_source): Do not check basenames_may_differ.
11493
11494 2020-02-07 Tom Tromey <tom@tromey.com>
11495
11496 * README: Update gdbserver documentation.
11497 * gdbserver: Move to top level.
11498 * configure.tgt (build_gdbserver): Remove.
11499 * configure.ac: Remove --enable-gdbserver.
11500 * configure: Rebuild.
11501 * Makefile.in (distclean): Don't mention gdbserver.
11502
11503 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11504
11505 * source-cache.c (source_cache::ensure): Surround
11506 get_plain_source_lines with a try/catch.
11507 (source_cache::get_line_charpos): Get rid of try/catch
11508 and only check for the return value of "ensure".
11509 * tui/tui-source.c (tui_source_window::set_contents):
11510 Simplify "nlines" calculation.
11511
11512 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11513
11514 * MAINTAINERS (Write After Approval): Add myself.
11515
11516 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11517
11518 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11519 function call.
11520
11521 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11522
11523 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11524
11525 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11526
11527 * nat/riscv-linux-tdesc.h: New file.
11528 * nat/riscv-linux-tdesc.c: New file, taking code from...
11529 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11530 ... here.
11531 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11532 NATDEPFILES.
11533
11534 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11535
11536 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11537 we don't set the fake simulator ptid to the null_ptid.
11538
11539 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11540
11541 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11542 * gdbthread.h (class thread_info) <resumed>: Likewise.
11543 * infrun.c (resume_1): Likewise.
11544 (proceed): Likewise.
11545 (infrun_thread_stop_requested): Likewise.
11546 (stop_all_threads): Likewise.
11547 (handle_inferior_event): Likewise.
11548 (restart_threads): Likewise.
11549 (finish_step_over): Likewise.
11550 (keep_going_stepped_thread): Likewise.
11551 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11552 (linux_handle_extended_wait): Likewise.
11553 * record-btrace.c (get_thread_current_frame_id): Likewise.
11554 * record-full.c (record_full_wait_1): Likewise.
11555 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11556 * target.c (target_resume): Likewise.
11557 * thread.c (set_running_thread): Likewise.
11558
11559 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11560
11561 * f-valprint.c (f77_print_array_1): Changed datatype of index
11562 variable to LONGEST from int to enable it to contain bound
11563 values correctly.
11564
11565 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11566
11567 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11568 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11569 offsets according to FLEN determined.
11570 (riscv_linux_nat_target::read_description): Determine FLEN
11571 dynamically.
11572 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11573 according to FLEN determined.
11574 (riscv_linux_nat_target::store_registers): Likewise.
11575
11576 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11577
11578 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11579 when reg->group is empty and reggroup is not.
11580
11581 2020-01-31 Tom Tromey <tromey@adacore.com>
11582
11583 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11584 Call beneath target's mourn_inferior after unpushing.
11585
11586 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11587
11588 PR tui/9765
11589 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11590 have enough lines to fill the screen, still return the lowest
11591 address we found.
11592
11593 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11594
11595 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11596 '-', '<', and '>' commands.
11597
11598 2020-01-29 Pedro Alves <palves@redhat.com>
11599 Sergio Durigan Junior <sergiodj@redhat.com>
11600
11601 * infcmd.c (construct_inferior_arguments): Assert that
11602 'argc' is greater than 0.
11603
11604 2020-01-29 Luis Machado <luis.machado@linaro.org>
11605
11606 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11607 (BRK_INSN_MASK): Define to 0xd4200000.
11608 (aarch64_program_breakpoint_here_p): New function.
11609 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11610 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11611 breakpoint.c.
11612 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11613 breakpoint.h
11614 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11615 call gdbarch_program_breakpoint_here_p.
11616 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11617 default_program_breakpoint_here_p, changed return type to bool and
11618 simplified.
11619 * breakpoint.h (program_breakpoint_here): Moved prototype to
11620 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11621 return type to bool.
11622 * gdbarch.c: Regenerate.
11623 * gdbarch.h: Regenerate.
11624 * gdbarch.sh (program_breakpoint_here_p): New method.
11625 * infrun.c (handle_signal_stop): Call
11626 gdbarch_program_breakpoint_here_p.
11627
11628 2020-01-26 Tom Tromey <tom@tromey.com>
11629
11630 * ctfread.c (struct ctf_fp_info): Reindent.
11631 (_initialize_ctfread): Remove.
11632
11633 2020-01-26 Tom Tromey <tom@tromey.com>
11634
11635 * psymtab.c (partial_map_expand_apply)
11636 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11637 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11638 (psym_print_stats, psym_expand_symtabs_for_function)
11639 (psym_map_symbol_filenames, psym_map_matching_symbols)
11640 (psym_expand_symtabs_matching)
11641 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11642 (maintenance_check_psymtabs): Use new methods.
11643 * psympriv.h (struct partial_symtab) <readin_p,
11644 get_compunit_symtab>: New methods.
11645 <readin, compunit_symtab>: Remove members.
11646 (struct standard_psymtab): New.
11647 (struct legacy_psymtab): Derive from standard_psymtab.
11648 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11649 standard_psymtab.
11650 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11651
11652 2020-01-26 Tom Tromey <tom@tromey.com>
11653
11654 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11655 read_dependencies. Add assert.
11656 * psymtab.c (partial_symtab::read_dependencies): New method.
11657 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11658 method.
11659 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11660 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11661 read_dependencies.
11662 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11663 Add assert.
11664
11665 2020-01-26 Tom Tromey <tom@tromey.com>
11666
11667 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11668 Call expand_psymtab.
11669 (xcoff_read_symtab): Call expand_psymtab.
11670 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11671 legacy_expand_psymtab.
11672 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11673 method.
11674 (struct legacy_psymtab) <expand_psymtab>: Implement.
11675 <legacy_expand_psymtab>: New member.
11676 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11677 (parse_partial_symbols): Set legacy_expand_psymtab.
11678 (psymtab_to_symtab_1): Change argument order. Call
11679 expand_psymtab.
11680 (new_psymtab): Set legacy_expand_psymtab.
11681 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11682 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11683 expand_psymtab.
11684 (dwarf2_psymtab::expand_psymtab): Rename from
11685 psymtab_to_symtab_1. Call expand_psymtab.
11686 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11687 (dbx_end_psymtab): Likewise.
11688 (dbx_psymtab_to_symtab_1): Change argument order. Call
11689 expand_psymtab.
11690 (dbx_read_symtab): Call expand_psymtab.
11691 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11692 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11693 (ctf_psymtab::read_symtab): Call expand_psymtab.
11694
11695 2020-01-26 Tom Tromey <tom@tromey.com>
11696
11697 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11698 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11699 messages.
11700 * mdebugread.c (mdebug_read_symtab): Remove prints.
11701 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11702 assert.
11703 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11704
11705 2020-01-26 Tom Tromey <tom@tromey.com>
11706
11707 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11708 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11709 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11710 legacy_symtab.
11711 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11712 * psymtab.c (psymtab_to_symtab): Call method.
11713 (dump_psymtab): Update.
11714 * psympriv.h (struct partial_symtab): Add virtual destructor.
11715 <read_symtab>: New method.
11716 (struct legacy_symtab): New.
11717 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11718 (struct pst_map) <pst>: Now a legacy_psymtab.
11719 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11720 (new_psymtab): Use legacy_psymtab.
11721 * dwarf2read.h (struct dwarf2_psymtab): New.
11722 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11723 * dwarf2read.c (dwarf2_create_include_psymtab)
11724 (dwarf2_build_include_psymtabs, create_type_unit_group)
11725 (create_partial_symtab, process_psymtab_comp_unit_reader)
11726 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11727 (set_partial_user): Use dwarf2_psymtab.
11728 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11729 (psymtab_to_symtab_1, process_full_comp_unit)
11730 (process_full_type_unit, dwarf2_ranges_read)
11731 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11732 (dwarf_decode_lines): Use dwarf2_psymtab.
11733 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11734 (add_address_entry_worker, write_one_signatured_type)
11735 (recursively_count_psymbols, recursively_write_psymbols)
11736 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11737 (write_debug_names): Likewise.
11738 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11739 <pst>: Now a legacy_psymtab.
11740 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11741 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11742 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11743 * ctfread.c (struct ctf_psymtab): New.
11744 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11745 ctf_psymtab.
11746 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11747 (create_partial_symtab): Return a ctf_psymtab.
11748 (scan_partial_symbols): Update.
11749
11750 2020-01-26 Tom Tromey <tom@tromey.com>
11751
11752 * xcoffread.c (xcoff_start_psymtab): Use new.
11753 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11754 renamed from start_psymtab_common.
11755 * psympriv.h (struct partial_symtab): Add new constructor.
11756 (start_psymtab_common): Don't declare.
11757 * mdebugread.c (parse_partial_symbols): Use new.
11758 * dwarf2read.c (create_partial_symtab): Use new.
11759 * dbxread.c (start_psymtab): Use new.
11760 * ctfread.c (create_partial_symtab): Use new.
11761
11762 2020-01-26 Tom Tromey <tom@tromey.com>
11763
11764 * xcoffread.c (xcoff_end_psymtab): Use new.
11765 * psymtab.c (start_psymtab_common): Use new.
11766 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11767 Update.
11768 * psympriv.h (struct partial_symtab): Add parameters to
11769 constructor. Don't inline.
11770 (allocate_psymtab): Don't declare.
11771 * mdebugread.c (new_psymtab): Use new.
11772 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11773 * dbxread.c (dbx_end_psymtab): Use new.
11774
11775 2020-01-26 Tom Tromey <tom@tromey.com>
11776
11777 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11778 allocate_psymtab. Update documentation.
11779 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11780 allocate_psymtab. Do not use new.
11781 (allocate_psymtab): Use new. Update.
11782
11783 2020-01-26 Tom Tromey <tom@tromey.com>
11784
11785 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11786 * psymtab.c (psym_print_stats): Update.
11787 * psympriv.h (struct partial_symtab) <readin,
11788 psymtabs_addrmap_supported, anonymous>: Now bool.
11789 * mdebugread.c (psymtab_to_symtab_1): Update.
11790 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11791 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11792 (process_full_comp_unit, process_full_type_unit): Update.
11793 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11794 * ctfread.c (psymtab_to_symtab): Update.
11795
11796 2020-01-26 Tom Tromey <tom@tromey.com>
11797
11798 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11799 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11800 * psymtab.c (psymtab_storage): Delete psymtabs.
11801 (psymtab_storage::allocate_psymtab): Use new.
11802 (psymtab_storage::discard_psymtab): Use delete.
11803 * psympriv.h (struct partial_symtab): Add constructor and
11804 initializers.
11805
11806 2020-01-26 Tom Tromey <tom@tromey.com>
11807
11808 * machoread.c: Do not include psympriv.h.
11809
11810 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11811
11812 * NEWS: Mention the new option and the set/show commands.
11813
11814 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11815
11816 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11817 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11818 (validate_exec_file): New variables, enums, functions.
11819 (exec_file_locate_attach, print_section_info): Style the filenames.
11820 (_initialize_exec): Install show_exec_file_mismatch_command and
11821 set_exec_file_mismatch_command.
11822 * gdbcore.h (validate_exec_file): Declare.
11823 * infcmd.c (attach_command): Call validate_exec_file.
11824 * remote.c ( remote_target::remote_add_inferior): Likewise.
11825
11826 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11827
11828 * frame.c (find_frame_sal): Move call to get_next_frame into more
11829 inner scope.
11830 * inline-frame.c (inilne_state) <inline_state>: Update argument
11831 types.
11832 (inilne_state) <skipped_symbol>: Rename to...
11833 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11834 (skip_inline_frames): Build vector of skipped symbols and use this
11835 to reate the inline_state.
11836 (inline_skipped_symbol): Add a comment and some assertions, fetch
11837 skipped symbol from the list.
11838
11839 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11840
11841 * buildsym.c (lte_is_less_than): Delete.
11842 (buildsym_compunit::end_symtab_with_blockvector): Create local
11843 lambda function to sort line table entries, and use
11844 std::stable_sort instead of std::sort.
11845 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11846 markers when looking for a previous line.
11847
11848 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11849
11850 * dwarf2read.c (lnp_state_machine::record_line): Include
11851 end_sequence parameter in debug print out. Record the line if we
11852 are at an end_sequence marker even if it's not the start of a
11853 statement.
11854 * symmisc.c (maintenance_print_one_line_table): Print end of
11855 sequence markers with 'END' not '0'.
11856
11857 2020-01-24 Pedro Alves <palves@redhat.com>
11858
11859 PR gdb/25410
11860 * thread.c (scoped_restore_current_thread::restore): Use
11861 switch_to_inferior_no_thread.
11862 * exec.c: Include "progspace-and-thread.h".
11863 (add_target_sections, remove_target_sections):
11864 scoped_restore_current_pspace_and_thread instead of
11865 scoped_restore_current_thread.
11866 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11867 and aspace to the inferior before calling clone_program_space.
11868 Remove stale comment.
11869
11870 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11871
11872 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11873 (arm_netbsd_nat_target::fetch_registers): ...this.
11874 (arm_nbsd_nat_target::store_registers): Rename to...
11875 (arm_netbsd_nat_target::store_registers): ...this.
11876
11877 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11878
11879 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11880 register_t.
11881
11882 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11883
11884 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11885 Update comment.
11886 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11887 Likewise.
11888 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11889 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11890 the correct replacement (iterate_over_regset_sections).
11891 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11892 Update comment.
11893
11894 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11895
11896 PR gdb/23718
11897 * gdb/python/python.c (execute_gdb_command): Call
11898 async_enable_stdin in catch block.
11899
11900 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11901
11902 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11903 SWITCH_THRU_ALL_UIS.
11904
11905 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11906
11907 PR tui/9765
11908 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11909 comment, add extra parameter, and update to store previous symbol
11910 when appropriate.
11911 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11912 add extra parameter.
11913 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11914 remove unneeded parameter, add try/catch around gdb_print_insn,
11915 rewrite to add items to asm_lines vector.
11916 (tui_find_backward_disassembly_start_address): New function.
11917 (tui_find_disassembly_address): Updated throughout.
11918 (tui_disasm_window::set_contents): Update for changes to
11919 tui_disassemble.
11920 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11921 number of lines to scroll.
11922
11923 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11924
11925 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11926 (SECT_OFF_DATA): Likewise.
11927 (SECT_OFF_RODATA): Likewise.
11928 (SECT_OFF_TEXT): Likewise.
11929 (SECT_OFF_BSS): Likewise.
11930 (struct objfile) <text_section_offset, data_section_offset>: New
11931 methods.
11932 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11933 objfile::text_section_offset.
11934 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11935 * coffread.c (coff_symtab_read): Likewise.
11936 (enter_linenos): Likewise.
11937 (process_coff_symbol): Likewise.
11938 * ctfread.c (get_objfile_text_range): Likewise.
11939 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11940 Use objfile::data_section_offset.
11941 * dwarf2-frame.c (execute_cfa_program): Use
11942 objfile::text_section_offset.
11943 (dwarf2_frame_find_fde): Likewise.
11944 * dwarf2read.c (create_addrmap_from_index): Likewise.
11945 (create_addrmap_from_aranges): Likewise.
11946 (dw2_find_pc_sect_compunit_symtab): Likewise.
11947 (process_psymtab_comp_unit_reader): Likewise.
11948 (add_partial_symbol): Likewise.
11949 (add_partial_subprogram): Likewise.
11950 (process_full_comp_unit): Likewise.
11951 (read_file_scope): Likewise.
11952 (read_func_scope): Likewise.
11953 (read_lexical_block_scope): Likewise.
11954 (read_call_site_scope): Likewise.
11955 (dwarf2_rnglists_process): Likewise.
11956 (dwarf2_ranges_process): Likewise.
11957 (dwarf2_ranges_read): Likewise.
11958 (dwarf_decode_lines_1): Likewise.
11959 (new_symbol): Likewise.
11960 (dwarf2_fetch_die_loc_sect_off): Likewise.
11961 (dwarf2_per_cu_text_offset): Likewise.
11962 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11963 * hppa-tdep.c (read_unwind_info): Likewise.
11964 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11965 * psympriv.h (struct partial_symtab): Likewise.
11966 * psymtab.c (find_pc_sect_psymtab): Likewise.
11967 * solib-svr4.c (enable_break): Likewise.
11968 * stap-probe.c (relocate_address): Use
11969 objfile::data_section_offset.
11970 * xcoffread.c (enter_line_range): Use
11971 objfile::text_section_offset.
11972 (read_xcoff_symtab): Likewise.
11973
11974 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11975
11976 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11977 declaration to narrower scopes.
11978
11979 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11980
11981 * darwin-nat.h (struct darwin_exception_msg, enum
11982 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11983 Move up.
11984 (class darwin_nat_target) <wait_1, check_new_threads,
11985 decode_exception_message, decode_message, stop_inferior,
11986 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11987 * darwin-nat.c (darwin_check_new_threads): Rename to...
11988 (darwin_nat_target::check_new_threads): ... this.
11989 (darwin_suspend_inferior_it): Remove.
11990 (darwin_decode_exception_message): Rename to...
11991 (darwin_nat_target::decode_exception_message): ... this.
11992 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11993 (darwin_decode_message): Rename to...
11994 (darwin_nat_target::decode_message): ... this.
11995 (cancel_breakpoint): Rename to...
11996 (darwin_nat_target::cancel_breakpoint): ... this.
11997 (darwin_wait): Rename to...
11998 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11999 instead of iterate_over_inferiors.
12000 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12001 (darwin_stop_inferior): Rename to...
12002 (darwin_nat_target::stop_inferior): ... this.
12003 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12004 (darwin_init_thread_list): Rename to...
12005 (darwin_nat_target::init_thread_list): ... this.
12006 (darwin_ptrace_him): Rename to...
12007 (darwin_nat_target::ptrace_him): ... this.
12008 (darwin_nat_target::create_inferior): Pass lambda function to
12009 fork_inferior.
12010 (darwin_nat_target::detach): Call stop_inferior instead of
12011 darwin_stop_inferior.
12012 * fork-inferior.h (fork_inferior): Change init_trace_fun
12013 parameter to gdb::function_view.
12014 * fork-inferior.c (fork_inferior): Likewise.
12015
12016 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12017
12018 * i386-cygwin-tdep.c (core_process_module_section): Update.
12019 * windows-nat.c (struct lm_info_windows): Add text_offset.
12020 (windows_xfer_shared_libraries): Update.
12021 * windows-tdep.c (windows_xfer_shared_library):
12022 Add text_offset_cached argument.
12023 * windows-tdep.h (windows_xfer_shared_library): Update.
12024
12025 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12026
12027 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12028
12029 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12030
12031 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12032 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12033 replace with range-based for.
12034 (gdbsim_interrupt_inferior): Remove.
12035 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12036 with a range-based for. Inline code from
12037 gdbsim_interrupt_inferior.
12038
12039 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12040
12041 * infrun.c (proceed): Fix indentation.
12042
12043 2020-01-21 Tom Tromey <tromey@adacore.com>
12044
12045 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12046 * python/python.c (python_extension_ops): Update.
12047 (gdbpy_colorize): New function.
12048 * python/lib/gdb/__init__.py (colorize): New function.
12049 * extension.h (ext_lang_colorize): Declare.
12050 * extension.c (ext_lang_colorize): New function.
12051 * extension-priv.h (struct extension_language_ops) <colorize>: New
12052 member.
12053 * cli/cli-style.c (_initialize_cli_style): Update help text.
12054
12055 2020-01-21 Luis Machado <luis.machado@linaro.org>
12056
12057 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12058 <cond>: Change type to bool.
12059 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12060 (aarch64_displaced_step_cb): Likewise.
12061 (aarch64_displaced_step_tb): Likewise.
12062
12063 2020-01-21 Luis Machado <luis.machado@linaro.org>
12064
12065 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12066 output.
12067
12068 2020-01-21 Luis Machado <luis.machado@linaro.org>
12069
12070 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12071 <pc_adjust>: Adjust the documentation.
12072 (aarch64_displaced_step_fixup): Check if PC really moved before
12073 adjusting it.
12074
12075 2020-01-19 Tom Tromey <tom@tromey.com>
12076
12077 * disasm.c (~gdb_disassembler): New destructor.
12078 (gdb_buffered_insn_length): Call disassemble_free_target.
12079 * disasm.h (class gdb_disassembler): Declare destructor. Use
12080 DISABLE_COPY_AND_ASSIGN.
12081
12082 2020-01-19 Tom Tromey <tom@tromey.com>
12083
12084 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12085 (die_reader_func_ftype): Remove.
12086 (cutu_reader): New class.
12087 (dw2_get_file_names_reader): Remove "data" parameter.
12088 (dw2_get_file_names): Use cutu_reader.
12089 (create_debug_type_hash_table): Update.
12090 (read_cutu_die_from_dwo): Update comment.
12091 (lookup_dwo_unit): Add dwo_name parameter.
12092 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12093 die_reader_func_ftype and data parameters.
12094 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12095 Remove die_reader_func_ftype and data parameters.
12096 (~cutu_reader): New; from init_cutu_and_read_dies.
12097 (cutu_reader::cutu_reader): Rename from
12098 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12099 and data parameters.
12100 (init_cutu_and_read_dies_simple): Remove.
12101 (struct process_psymtab_comp_unit_data): Remove.
12102 (process_psymtab_comp_unit_reader): Remove data parameter; add
12103 want_partial_unit and pretend_language parameters.
12104 (process_psymtab_comp_unit): Use cutu_reader.
12105 (build_type_psymtabs_reader): Remove data parameter.
12106 (build_type_psymtabs_1): Use cutu_reader.
12107 (process_skeletonless_type_unit): Likewise.
12108 (load_partial_comp_unit_reader): Remove.
12109 (load_partial_comp_unit): Use cutu_reader.
12110 (load_full_comp_unit_reader): Remove.
12111 (load_full_comp_unit): Use cutu_reader.
12112 (struct create_dwo_cu_data): Remove.
12113 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12114 dwo_unit parameters.
12115 (create_cus_hash_table): Use cutu_reader.
12116 (struct dwarf2_read_addr_index_data): Remove.
12117 (dwarf2_read_addr_index_reader): Remove.
12118 (dwarf2_read_addr_index): Use cutu_reader.
12119 (read_signatured_type_reader): Remove.
12120 (read_signatured_type): Use cutu_reader.
12121
12122 2020-01-19 Tom Tromey <tom@tromey.com>
12123
12124 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12125 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12126 (tui_wrefresh): Declare.
12127 * tui/tui-wingeneral.c (suppress_output): New global.
12128 (tui_suppress_output, ~tui_suppress_output): New constructor and
12129 destructor.
12130 (tui_wrefresh): New function.
12131 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12132 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12133 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12134 method.
12135 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12136 tui_wrefresh.
12137 (tui_data_window::no_refresh): New method.
12138 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12139 (tui_reg_command): Use tui_suppress_output
12140 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12141 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12142 method.
12143 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12144
12145 2020-01-19 Tom Tromey <tom@tromey.com>
12146
12147 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12148 Handle case where symtab is null.
12149
12150 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12151
12152 * linux-fork.c (one_fork_p): Simplify.
12153
12154 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12155
12156 * top.c (struct qt_args): Remove.
12157 (kill_or_detach): Change return type to void, replace `void *`
12158 parameter with a proper one.
12159 (print_inferior_quit_action): Likewise.
12160 (quit_confirm): Use range-based for loop to iterate over inferiors.
12161 (quit_force): Likewise.
12162
12163 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12164
12165 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12166 `void *` parameter with proper parameters.
12167 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12168 (print_one_inferior): Change return type to void, replace `void *`
12169 parameter with proper parameters.
12170 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12171 inferiors.
12172 (get_other_inferior): Remove.
12173 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12174 inferiors.
12175
12176 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12177
12178 * mi/mi-interp.c (report_initial_inferior): Remove.
12179 (mi_interp::init): Use range-based for to iterate over inferiors.
12180
12181 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12182
12183 * python/py-inferior.c (build_inferior_list): Remove.
12184 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12185
12186 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12187
12188 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12189 (btrace_stitch_trace): Likewise.
12190 * charset.c (intermediate_encoding): Likewise (vaild).
12191 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12192 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12193 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12194
12195 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12196
12197 * windows-tdep.c (windows_get_tlb_type):
12198 Add rtl_user_process_parameters type.
12199
12200 2020-01-16 Pedro Alves <palves@redhat.com>
12201 Norbert Lange <nolange79@gmail.com>
12202
12203 PR build/24805
12204 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12205 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12206 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12207 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12208 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12209 (ps_plog): Redeclare exported functions with default visibility.
12210
12211 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12212
12213 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12214 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12215
12216 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12217
12218 * infcmd.c (post_create_inferior): Use get_thread_regcache
12219 instead of get_current_regcache.
12220
12221 2020-01-14 Tom Tromey <tom@tromey.com>
12222
12223 PR symtab/12535:
12224 * python/python.c (gdbpy_decode_line): Treat empty string the same
12225 as no argument.
12226
12227 2020-01-14 Tom Tromey <tom@tromey.com>
12228
12229 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12230
12231 2020-01-14 Tom Tromey <tom@tromey.com>
12232
12233 * nat/linux-btrace.c: Don't include <config.h>.
12234 * nat/linux-ptrace.c: Don't include <config.h>.
12235 * nat/x86-linux-dregs.c: Don't include <config.h>.
12236
12237 2020-01-14 Tom Tromey <tom@tromey.com>
12238
12239 * configure: Rebuild.
12240 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12241
12242 2020-01-14 Tom Tromey <tom@tromey.com>
12243
12244 * nat/x86-linux-dregs.c: Include configh.h.
12245 * nat/linux-ptrace.c: Include configh.h.
12246 * nat/linux-btrace.c: Include configh.h.
12247 * defs.h: Include config.h, bfd.h.
12248 * configure.ac: Don't source common.host.
12249 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12250 * configure: Rebuild.
12251 * acinclude.m4: Update path.
12252 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12253 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12254 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12255 (CLIBS): Add LIBSUPPORT.
12256 (CDEPS): Likewise.
12257 (COMMON_SFILES): Remove gdbsupport files.
12258 (HFILES_NO_SRCDIR): Likewise.
12259 (stamp-version): Update path to create-version.sh.
12260 (ALLDEPFILES): Remove gdbsupport files.
12261
12262 2020-01-14 Tom Tromey <tom@tromey.com>
12263
12264 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12265 USE_WIN32API when needed.
12266 * configure.ac (USE_WIN32API): Don't define.
12267 (WIN32LIBS): Use WIN32APILIBS.
12268 * configure: Rebuild.
12269
12270 2020-01-14 Tom Tromey <tom@tromey.com>
12271
12272 * configure: Rebuild.
12273 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12274
12275 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12276
12277 * skip.c (skip_function_command): Make skip w/o arguments use the
12278 name of the inlined function if pc is inside any inlined function.
12279
12280 2020-01-14 Luis Machado <luis.machado@linaro.org>
12281
12282 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12283 * infrun.c (resume_1): Likewise.
12284 (handle_inferior_event): Remove stale comment.
12285 * linux-nat.c (linux_nat_target::resume): Update comments.
12286 (save_stop_reason): Likewise.
12287 (linux_nat_filter_event): Likewise.
12288 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12289
12290 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12291
12292 * elfread.c (record_minimal_symbol): Set section index to 0 for
12293 non-allocatable sections.
12294
12295
12296 2020-01-13 Ali Tamur <tamur@google.com>
12297
12298 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12299 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12300 to gdb::optional. Update comments.
12301 (dwo_file): Update comments.
12302 (read_attribute): Update API to take an additional out parameter,
12303 need_reprocess. This is used to mark attributes that need other
12304 attributes (e.g. str_offsets_base) for correct computation which may not
12305 have been read yet.
12306 (read_attribute_reprocess): New function declaration.
12307 (read_addr_index): Likewise.
12308 (read_dwo_str_index): Likewise.
12309 (read_stub_str_index): Likewise.
12310 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12311 (lookup_addr_base): New function definition.
12312 (lookup_ranges_base): Likewise.
12313 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12314 lookup_ranges_base.
12315 (init_cutu_and_read_dies): Update comments.
12316 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12317 unit. This is used to inherit parent's str_offsets_base and addr_base.
12318 Update comments.
12319 (init_cutu_and_read_dies_simple): Reflect API changes.
12320 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12321 (create_cus_hash_table): Change API to take parent compile unit.
12322 Reflect API changes.
12323 (open_and_init_dwo_file): Reflect API changes.
12324 (dwarf2_get_pc_bounds): Update comments.
12325 (dwarf2_record_block_ranges): Likewise.
12326 (read_full_die_1): Change implementation to reprocess attributes that
12327 need str_offsets_base and addr_base.
12328 (partial_die_info::read): Likewise.
12329 (read_attribute_reprocess): New function definition.
12330 (read_attribute_value): Change API to take an additional out parameter,
12331 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12332 when a non-dwo compile unit has index based attributes.
12333 (read_attribute): Reflect API changes.
12334 (read_addr_index_1): Reflect API changes. Update comments.
12335 (dwarf2_read_addr_index_data): Reflect API changes.
12336 (dwarf2_read_addr_index): Likewise.
12337 (read_str_index): Change API and implementation. This becomes a helper
12338 to be used by the new string index related methods. Update error
12339 message and comments.
12340 (read_dwo_str_index): New function definition.
12341 (read_stub_str_index): Likewise.
12342 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12343 * symfile.h (dwarf2_debug_sections): Likewise.
12344 * xcoffread.c (dwarf2_debug_sections): Likewise.
12345
12346 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12347
12348 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12349 core_reg_sect type to gdb_byte *.
12350 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12351 * cris-tdep.c (fetch_core_registers): Likewise.
12352 * corelow.c (core_target::get_core_register_section): Change
12353 type of `contents` to gdb::byte_vector.
12354
12355 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12356
12357 * tui/tui-wingeneral.c (box_win): Position the title in the center
12358 of the border.
12359
12360 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12361
12362 * corelow.c (core_target::get_core_register_section): Use
12363 std::vector instead of alloca.
12364
12365 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12366
12367 * warning.m4: Add -Wmissing-declarations to build_warnings.
12368 * configure: Re-generate.
12369
12370 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12371
12372 * python/python.c (init__gdb_module): Add declaration.
12373
12374 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12375
12376 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12377 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12378 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12379 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12380 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12381 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12382 * ada-exp.y (_initialize_ada_exp): Add declaration.
12383 * ada-lang.c (_initialize_ada_language): Add declaration.
12384 * ada-tasks.c (_initialize_tasks): Add declaration.
12385 * agent.c (_initialize_agent): Add declaration.
12386 * aix-thread.c (_initialize_aix_thread): Add declaration.
12387 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12388 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12389 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12390 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12391 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12392 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12393 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12394 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12395 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12396 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12397 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12398 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12399 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12400 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12401 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12402 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12403 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12404 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12405 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12406 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12407 * annotate.c (_initialize_annotate): Add declaration.
12408 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12409 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12410 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12411 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12412 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12413 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12414 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12415 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12416 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12417 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12418 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12419 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12420 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12421 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12422 * auto-load.c (_initialize_auto_load): Add declaration.
12423 * auxv.c (_initialize_auxv): Add declaration.
12424 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12425 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12426 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12427 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12428 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12429 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12430 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12431 * breakpoint.c (_initialize_breakpoint): Add declaration.
12432 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12433 * btrace.c (_initialize_btrace): Add declaration.
12434 * charset.c (_initialize_charset): Add declaration.
12435 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12436 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12437 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12438 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12439 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12440 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12441 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12442 * coffread.c (_initialize_coffread): Add declaration.
12443 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12444 * compile/compile.c (_initialize_compile): Add declaration.
12445 * complaints.c (_initialize_complaints): Add declaration.
12446 * completer.c (_initialize_completer): Add declaration.
12447 * copying.c (_initialize_copying): Add declaration.
12448 * corefile.c (_initialize_core): Add declaration.
12449 * corelow.c (_initialize_corelow): Add declaration.
12450 * cp-abi.c (_initialize_cp_abi): Add declaration.
12451 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12452 * cp-support.c (_initialize_cp_support): Add declaration.
12453 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12454 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12455 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12456 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12457 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12458 * ctfread.c (_initialize_ctfread): Add declaration.
12459 * d-lang.c (_initialize_d_language): Add declaration.
12460 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12461 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12462 * dbxread.c (_initialize_dbxread): Add declaration.
12463 * dcache.c (_initialize_dcache): Add declaration.
12464 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12465 * disasm.c (_initialize_disasm): Add declaration.
12466 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12467 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12468 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12469 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12470 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12471 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12472 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12473 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12474 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12475 * elfread.c (_initialize_elfread): Add declaration.
12476 * exec.c (_initialize_exec): Add declaration.
12477 * extension.c (_initialize_extension): Add declaration.
12478 * f-lang.c (_initialize_f_language): Add declaration.
12479 * f-valprint.c (_initialize_f_valprint): Add declaration.
12480 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12481 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12482 * filesystem.c (_initialize_filesystem): Add declaration.
12483 * findcmd.c (_initialize_mem_search): Add declaration.
12484 * findvar.c (_initialize_findvar): Add declaration.
12485 * fork-child.c (_initialize_fork_child): Add declaration.
12486 * frame-base.c (_initialize_frame_base): Add declaration.
12487 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12488 * frame.c (_initialize_frame): Add declaration.
12489 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12490 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12491 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12492 * gcore.c (_initialize_gcore): Add declaration.
12493 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12494 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12495 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12496 * gdbarch.c (_initialize_gdbarch): Add declaration.
12497 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12498 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12499 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12500 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12501 * go-lang.c (_initialize_go_language): Add declaration.
12502 * go32-nat.c (_initialize_go32_nat): Add declaration.
12503 * guile/guile.c (_initialize_guile): Add declaration.
12504 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12505 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12506 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12507 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12508 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12509 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12510 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12511 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12512 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12513 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12514 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12515 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12516 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12517 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12518 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12519 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12520 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12521 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12522 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12523 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12524 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12525 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12526 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12527 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12528 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12529 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12530 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12531 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12532 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12533 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12534 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12535 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12536 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12537 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12538 * infcall.c (_initialize_infcall): Add declaration.
12539 * infcmd.c (_initialize_infcmd): Add declaration.
12540 * inflow.c (_initialize_inflow): Add declaration.
12541 * infrun.c (_initialize_infrun): Add declaration.
12542 * interps.c (_initialize_interpreter): Add declaration.
12543 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12544 * jit.c (_initialize_jit): Add declaration.
12545 * language.c (_initialize_language): Add declaration.
12546 * linux-fork.c (_initialize_linux_fork): Add declaration.
12547 * linux-nat.c (_initialize_linux_nat): Add declaration.
12548 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12549 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12550 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12551 * m2-lang.c (_initialize_m2_language): Add declaration.
12552 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12553 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12554 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12555 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12556 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12557 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12558 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12559 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12560 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12561 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12562 * machoread.c (_initialize_machoread): Add declaration.
12563 * macrocmd.c (_initialize_macrocmd): Add declaration.
12564 * macroscope.c (_initialize_macroscope): Add declaration.
12565 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12566 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12567 * maint.c (_initialize_maint_cmds): Add declaration.
12568 * mdebugread.c (_initialize_mdebugread): Add declaration.
12569 * memattr.c (_initialize_mem): Add declaration.
12570 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12571 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12572 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12573 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12574 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12575 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12576 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12577 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12578 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12579 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12580 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12581 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12582 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12583 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12584 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12585 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12586 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12587 * mipsread.c (_initialize_mipsread): Add declaration.
12588 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12589 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12590 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12591 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12592 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12593 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12594 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12595 * nto-procfs.c (_initialize_procfs): Add declaration.
12596 * objc-lang.c (_initialize_objc_language): Add declaration.
12597 * observable.c (_initialize_observer): Add declaration.
12598 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12599 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12600 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12601 * osabi.c (_initialize_gdb_osabi): Add declaration.
12602 * osdata.c (_initialize_osdata): Add declaration.
12603 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12604 * parse.c (_initialize_parse): Add declaration.
12605 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12606 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12607 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12608 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12609 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12610 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12611 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12612 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12613 * printcmd.c (_initialize_printcmd): Add declaration.
12614 * probe.c (_initialize_probe): Add declaration.
12615 * proc-api.c (_initialize_proc_api): Add declaration.
12616 * proc-events.c (_initialize_proc_events): Add declaration.
12617 * proc-service.c (_initialize_proc_service): Add declaration.
12618 * procfs.c (_initialize_procfs): Add declaration.
12619 * producer.c (_initialize_producer): Add declaration.
12620 * psymtab.c (_initialize_psymtab): Add declaration.
12621 * python/python.c (_initialize_python): Add declaration.
12622 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12623 * record-btrace.c (_initialize_record_btrace): Add declaration.
12624 * record-full.c (_initialize_record_full): Add declaration.
12625 * record.c (_initialize_record): Add declaration.
12626 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12627 * regcache.c (_initialize_regcache): Add declaration.
12628 * reggroups.c (_initialize_reggroup): Add declaration.
12629 * remote-notif.c (_initialize_notif): Add declaration.
12630 * remote-sim.c (_initialize_remote_sim): Add declaration.
12631 * remote.c (_initialize_remote): Add declaration.
12632 * reverse.c (_initialize_reverse): Add declaration.
12633 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12634 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12635 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12636 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12637 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12638 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12639 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12640 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12641 Add declaration.
12642 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12643 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12644 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12645 * rust-exp.y (_initialize_rust_exp): Add declaration.
12646 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12647 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12648 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12649 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12650 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12651 * score-tdep.c (_initialize_score_tdep): Add declaration.
12652 * ser-go32.c (_initialize_ser_dos): Add declaration.
12653 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12654 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12655 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12656 * ser-uds.c (_initialize_ser_socket): Add declaration.
12657 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12658 * serial.c (_initialize_serial): Add declaration.
12659 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12660 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12661 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12662 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12663 * skip.c (_initialize_step_skip): Add declaration.
12664 * sol-thread.c (_initialize_sol_thread): Add declaration.
12665 * solib-aix.c (_initialize_solib_aix): Add declaration.
12666 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12667 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12668 * solib-frv.c (_initialize_frv_solib): Add declaration.
12669 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12670 * solib-target.c (_initialize_solib_target): Add declaration.
12671 * solib.c (_initialize_solib): Add declaration.
12672 * source-cache.c (_initialize_source_cache): Add declaration.
12673 * source.c (_initialize_source): Add declaration.
12674 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12675 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12676 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12677 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12678 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12679 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12680 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12681 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12682 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12683 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12684 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12685 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12686 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12687 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12688 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12689 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12690 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12691 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12692 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12693 * stabsread.c (_initialize_stabsread): Add declaration.
12694 * stack.c (_initialize_stack): Add declaration.
12695 * stap-probe.c (_initialize_stap_probe): Add declaration.
12696 * std-regs.c (_initialize_frame_reg): Add declaration.
12697 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12698 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12699 * symfile.c (_initialize_symfile): Add declaration.
12700 * symmisc.c (_initialize_symmisc): Add declaration.
12701 * symtab.c (_initialize_symtab): Add declaration.
12702 * target.c (_initialize_target): Add declaration.
12703 * target-connection.c (_initialize_target_connection): Add
12704 declaration.
12705 * target-dcache.c (_initialize_target_dcache): Add declaration.
12706 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12707 * thread.c (_initialize_thread): Add declaration.
12708 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12709 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12710 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12711 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12712 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12713 * tracectf.c (_initialize_ctf): Add declaration.
12714 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12715 * tracefile.c (_initialize_tracefile): Add declaration.
12716 * tracepoint.c (_initialize_tracepoint): Add declaration.
12717 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12718 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12719 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12720 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12721 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12722 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12723 * tui/tui.c (_initialize_tui): Add declaration.
12724 * typeprint.c (_initialize_typeprint): Add declaration.
12725 * ui-style.c (_initialize_ui_style): Add declaration.
12726 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12727 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12728 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12729 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12730 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12731 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12732 * unittests/filtered_iterator-selftests.c
12733 (_initialize_filtered_iterator_selftests): Add declaration.
12734 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12735 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12736 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12737 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12738 * unittests/main-thread-selftests.c
12739 (_initialize_main_thread_selftests): Add declaration.
12740 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12741 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12742 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12743 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12744 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12745 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12746 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12747 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12748 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12749 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12750 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12751 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12752 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12753 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12754 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12755 declaration.
12756 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12757 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12758 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12759 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12760 * user-regs.c (_initialize_user_regs): Add declaration.
12761 * utils.c (_initialize_utils): Add declaration.
12762 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12763 * valops.c (_initialize_valops): Add declaration.
12764 * valprint.c (_initialize_valprint): Add declaration.
12765 * value.c (_initialize_values): Add declaration.
12766 * varobj.c (_initialize_varobj): Add declaration.
12767 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12768 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12769 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12770 * windows-nat.c (_initialize_windows_nat): Add declaration.
12771 (_initialize_check_for_gdb_ini): Add declaration.
12772 (_initialize_loadable): Add declaration.
12773 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12774 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12775 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12776 * xcoffread.c (_initialize_xcoffread): Add declaration.
12777 * xml-support.c (_initialize_xml_support): Add declaration.
12778 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12779 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12780 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12781 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12782
12783 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12784
12785 * regformats/regdat.sh: Generate declaration for init function.
12786
12787 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12788
12789 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12790 up.
12791 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12792 close_one_inferior>: New methods.
12793 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12794 pass down target to find_inferior_pid.
12795 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12796 Pass down target to find_inferior_ptid.
12797 (gdbsim_target::create_inferior): Pass down target to
12798 add_thread_silent.
12799 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12800 target down to find_inferior_ptid and switch_to_thread.
12801 (gdbsim_target::close): Update to call close_one_inferior.
12802 (struct resume_data): Remove.
12803 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12804 directly, rather than through a void pointer.
12805 (gdbsim_target::resume): Update to call resume_one_inferior.
12806
12807 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12808
12809 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12810
12811 2020-01-12 Pedro Alves <palves@redhat.com>
12812
12813 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12814 directly for the current inferior instead of
12815 discard_all_inferiors.
12816 (discard_all_inferiors): Delete.
12817
12818 2020-01-11 Tom Tromey <tom@tromey.com>
12819
12820 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12821 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12822 deprecated_safe_get_selected_frame.
12823
12824 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12825
12826 * inferior.c (print_inferior): Switch inferior before printing it.
12827
12828 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12829 Pedro Alves <palves@redhat.com>
12830
12831 * progspace-and-thread.c (switch_to_program_space_and_thread):
12832 Assert there's an inferior for PSPACE. Use
12833 switch_to_inferior_no_thread to switch the inferior too.
12834 * progspace.c (program_space::~program_space): Call
12835 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12836 (program_space::free_all_objfiles): Don't call clear_symtab_users
12837 here.
12838 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12839
12840 2020-01-10 Pedro Alves <palves@redhat.com>
12841
12842 * NEWS: Mention multi-target debugging, "info connections", and
12843 "add-inferior -no-connection".
12844
12845 2020-01-10 Pedro Alves <palves@redhat.com>
12846
12847 * infrun.c: Include "target-connection.h".
12848 (check_multi_target_resumption): New.
12849 (proceed): Call it.
12850 * target-connection.c (make_target_connection_string): Make
12851 extern.
12852 * target-connection.h (make_target_connection_string): Declare.
12853
12854 2020-01-10 Pedro Alves <palves@redhat.com>
12855
12856 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12857 * inferior.c (uiout_field_connection): New function.
12858 (print_inferior): Add new "connection-id" column.
12859 (add_inferior_command): Show connection number/string of added
12860 inferior.
12861 * process-stratum-target.h
12862 (process_stratum_target::connection_string): New virtual method.
12863 (process_stratum_target::connection_number): New field.
12864 * remote.c (remote_target::connection_string): New override.
12865 * target-connection.c: New file.
12866 * target-connection.h: New file.
12867 * target.c (decref_target): Remove process_stratum targets from
12868 the connection list.
12869 (target_stack::push): Add process_stratum targets to the
12870 connection list.
12871
12872 2020-01-10 Pedro Alves <palves@redhat.com>
12873
12874 Revert:
12875 2016-04-12 Pedro Alves <palves@redhat.com>
12876 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12877 Remove references to name.
12878 * serial.h (struct serial) <name>: Delete.
12879
12880 2020-01-10 Pedro Alves <palves@redhat.com>
12881
12882 * gdbarch-selftests.c (register_to_value_test): Remove "target
12883 already pushed" check.
12884
12885 2020-01-10 Pedro Alves <palves@redhat.com>
12886 John Baldwin <jhb@FreeBSD.org>
12887
12888 * aarch64-linux-nat.c
12889 (aarch64_linux_nat_target::thread_architecture): Adjust.
12890 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12891 (task_command_1): Likewise.
12892 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12893 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12894 (aix_thread_target::store_registers)
12895 (aix_thread_target::thread_alive): Adjust.
12896 * amd64-fbsd-tdep.c: Include "inferior.h".
12897 (amd64fbsd_get_thread_local_address): Pass down target.
12898 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12899 thread's gdbarch instead of target_gdbarch.
12900 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12901 get_last_target_status.
12902 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12903 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12904 inferiors.
12905 (update_inserted_breakpoint_locations): Skip if inferiors with no
12906 execution.
12907 (update_global_location_list): When handling moribund locations,
12908 find representative inferior for location's pspace, and use thread
12909 count of its process_stratum target.
12910 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12911 * bsd-uthread.c (bsd_uthread_target::wait): Use
12912 as_process_stratum_target and adjust thread_change_ptid and
12913 add_thread calls.
12914 (bsd_uthread_target::update_thread_list): Use
12915 as_process_stratum_target and adjust find_thread_ptid,
12916 thread_change_ptid and add_thread calls.
12917 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12918 find_thread_ptid call.
12919 * corelow.c (add_to_thread_list): Adjust add_thread call.
12920 (core_target_open): Adjust add_thread_silent and thread_count
12921 calls.
12922 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12923 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12924 * event-top.c (async_disconnect): Pop targets from all inferiors.
12925 * exec.c (add_target_sections): Push exec target on all inferiors
12926 sharing the program space.
12927 (remove_target_sections): Remove the exec target from all
12928 inferiors sharing the program space.
12929 (exec_on_vfork): New.
12930 * exec.h (exec_on_vfork): Declare.
12931 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12932 Pass it down.
12933 (fbsd_nat_target::update_thread_list): Adjust.
12934 (fbsd_nat_target::resume): Adjust.
12935 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12936 down.
12937 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12938 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12939 get_thread_arch_regcache call.
12940 * fork-child.c (gdb_startup_inferior): Pass target down to
12941 startup_inferior and set_executing.
12942 * gdbthread.h (struct process_stratum_target): Forward declare.
12943 (add_thread, add_thread_silent, add_thread_with_info)
12944 (in_thread_list): Add process_stratum_target parameter.
12945 (find_thread_ptid(inferior*, ptid_t)): New overload.
12946 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12947 parameter.
12948 (all_threads()): Delete overload.
12949 (all_threads, all_non_exited_threads): Add process_stratum_target
12950 parameter.
12951 (all_threads_safe): Use brace initialization.
12952 (thread_count): Add process_stratum_target parameter.
12953 (set_resumed, set_running, set_stop_requested, set_executing)
12954 (threads_are_executing, finish_thread_state): Add
12955 process_stratum_target parameter.
12956 (switch_to_thread): Use is_current_thread.
12957 * i386-fbsd-tdep.c: Include "inferior.h".
12958 (i386fbsd_get_thread_local_address): Pass down target.
12959 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12960 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12961 have_inferiors check.
12962 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12963 (inf_ptrace_target::attach): Adjust.
12964 * infcall.c (run_inferior_call): Adjust.
12965 * infcmd.c (run_command_1): Pass target to
12966 scoped_finish_thread_state.
12967 (proceed_thread_callback): Skip inferiors with no execution.
12968 (continue_command): Rename 'all_threads' local to avoid hiding
12969 'all_threads' function. Adjust get_last_target_status call.
12970 (prepare_one_step): Adjust set_running call.
12971 (signal_command): Use user_visible_resume_target. Compare thread
12972 pointers instead of inferior_ptid.
12973 (info_program_command): Adjust to pass down target.
12974 (attach_command): Mark target's 'thread_executing' flag.
12975 (stop_current_target_threads_ns): New, factored out from ...
12976 (interrupt_target_1): ... this. Switch inferior before making
12977 target calls.
12978 * inferior-iter.h
12979 (struct all_inferiors_iterator, struct all_inferiors_range)
12980 (struct all_inferiors_safe_range)
12981 (struct all_non_exited_inferiors_range): Filter on
12982 process_stratum_target too. Remove explicit.
12983 * inferior.c (inferior::inferior): Push dummy target on target
12984 stack.
12985 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12986 Add process_stratum_target parameter, and pass it down.
12987 (have_live_inferiors): Adjust.
12988 (switch_to_inferior_and_push_target): New.
12989 (add_inferior_command, clone_inferior_command): Handle
12990 "-no-connection" parameter. Use
12991 switch_to_inferior_and_push_target.
12992 (_initialize_inferior): Mention "-no-connection" option in
12993 the help of "add-inferior" and "clone-inferior" commands.
12994 * inferior.h: Include "process-stratum-target.h".
12995 (interrupt_target_1): Use bool.
12996 (struct inferior) <push_target, unpush_target, target_is_pushed,
12997 find_target_beneath, top_target, process_target, target_at,
12998 m_stack>: New.
12999 (discard_all_inferiors): Delete.
13000 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13001 (all_inferiors, all_non_exited_inferiors): Add
13002 process_stratum_target parameter.
13003 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13004 (target_last_proc_target): New global.
13005 (follow_fork_inferior): Push target on new inferior. Pass target
13006 to add_thread_silent. Call exec_on_vfork. Handle target's
13007 reference count.
13008 (follow_fork): Adjust get_last_target_status call. Also consider
13009 target.
13010 (follow_exec): Push target on new inferior.
13011 (struct execution_control_state) <target>: New field.
13012 (user_visible_resume_target): New.
13013 (do_target_resume): Call target_async.
13014 (resume_1): Set target's threads_executing flag. Consider resume
13015 target.
13016 (commit_resume_all_targets): New.
13017 (proceed): Also consider resume target. Skip threads of inferiors
13018 with no execution. Commit resumtion in all targets.
13019 (start_remote): Pass current inferior to wait_for_inferior.
13020 (infrun_thread_stop_requested): Consider target as well. Pass
13021 thread_info pointer to clear_inline_frame_state instead of ptid.
13022 (infrun_thread_thread_exit): Consider target as well.
13023 (random_pending_event_thread): New inferior parameter. Use it.
13024 (do_target_wait): Rename to ...
13025 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13026 down.
13027 (threads_are_resumed_pending_p, do_target_wait): New.
13028 (prepare_for_detach): Adjust calls.
13029 (wait_for_inferior): New inferior parameter. Handle it. Use
13030 do_target_wait_1 instead of do_target_wait.
13031 (fetch_inferior_event): Adjust. Switch to representative
13032 inferior. Pass target down.
13033 (set_last_target_status): Add process_stratum_target parameter.
13034 Save target in global.
13035 (get_last_target_status): Add process_stratum_target parameter and
13036 handle it.
13037 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13038 (context_switch): Check inferior_ptid == null_ptid before calling
13039 inferior_thread().
13040 (get_inferior_stop_soon): Pass down target.
13041 (wait_one): Rename to ...
13042 (poll_one_curr_target): ... this.
13043 (struct wait_one_event): New.
13044 (wait_one): New.
13045 (stop_all_threads): Adjust.
13046 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13047 event's target.
13048 (switch_back_to_stepped_thread): Also consider target.
13049 (print_stop_event): Update.
13050 (normal_stop): Update. Also consider the resume target.
13051 * infrun.h (wait_for_inferior): Remove declaration.
13052 (user_visible_resume_target): New declaration.
13053 (get_last_target_status, set_last_target_status): New
13054 process_stratum_target parameter.
13055 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13056 process_stratum_target parameter, and use it.
13057 (clear_inline_frame_state (thread_info*)): New.
13058 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13059 process_stratum_target parameter.
13060 (clear_inline_frame_state (thread_info*)): Declare.
13061 * linux-fork.c (delete_checkpoint_command): Pass target down to
13062 find_thread_ptid.
13063 (checkpoint_command): Adjust.
13064 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13065 instead of just tweaking inferior_ptid.
13066 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13067 (exit_lwp): Pass target down to find_thread_ptid.
13068 (attach_proc_task_lwp_callback): Pass target down to
13069 add_thread/set_running/set_executing.
13070 (linux_nat_target::attach): Pass target down to
13071 thread_change_ptid.
13072 (get_detach_signal): Pass target down to find_thread_ptid.
13073 Consider last target status's target.
13074 (linux_resume_one_lwp_throw, resume_lwp)
13075 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13076 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13077 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13078 (linux_nat_target::async_wait_fd): New.
13079 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13080 target down.
13081 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13082 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13083 * linux-thread-db.c (struct thread_db_info::process_target): New
13084 field.
13085 (add_thread_db_info): Save target.
13086 (get_thread_db_info): New process_stratum_target parameter. Also
13087 match target.
13088 (delete_thread_db_info): New process_stratum_target parameter.
13089 Also match target.
13090 (thread_from_lwp): Adjust to pass down target.
13091 (thread_db_notice_clone): Pass down target.
13092 (check_thread_db_callback): Pass down target.
13093 (try_thread_db_load_1): Always push the thread_db target.
13094 (try_thread_db_load, record_thread): Pass target down.
13095 (thread_db_target::detach): Pass target down. Always unpush the
13096 thread_db target.
13097 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13098 target down. Always unpush the thread_db target.
13099 (find_new_threads_callback, thread_db_find_new_threads_2)
13100 (thread_db_target::update_thread_list): Pass target down.
13101 (thread_db_target::pid_to_str): Pass current inferior down.
13102 (thread_db_target::get_thread_local_address): Pass target down.
13103 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13104 target down.
13105 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13106 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13107 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13108 (procfs_init_inferior): Rename to ...
13109 (procfs_target::procfs_init_inferior): ... this and adjust.
13110 (procfs_target::create_inferior, procfs_notice_thread)
13111 (procfs_do_thread_registers): Adjust.
13112 * ppc-fbsd-tdep.c: Include "inferior.h".
13113 (ppcfbsd_get_thread_local_address): Pass down target.
13114 * proc-service.c (ps_xfer_memory): Switch current inferior and
13115 program space as well.
13116 (get_ps_regcache): Pass target down.
13117 * process-stratum-target.c
13118 (process_stratum_target::thread_address_space)
13119 (process_stratum_target::thread_architecture): Pass target down.
13120 * process-stratum-target.h
13121 (process_stratum_target::threads_executing): New field.
13122 (as_process_stratum_target): New.
13123 * ravenscar-thread.c
13124 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13125 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13126 down.
13127 * record-btrace.c (record_btrace_target::info_record): Adjust.
13128 (record_btrace_target::record_method)
13129 (record_btrace_target::record_is_replaying)
13130 (record_btrace_target::fetch_registers)
13131 (get_thread_current_frame_id, record_btrace_target::resume)
13132 (record_btrace_target::wait, record_btrace_target::stop): Pass
13133 target down.
13134 * record-full.c (record_full_wait_1): Switch to event thread.
13135 Pass target down.
13136 * regcache.c (regcache::regcache)
13137 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13138 process_stratum_target parameter and handle it.
13139 (current_thread_target): New global.
13140 (get_thread_regcache): Add process_stratum_target parameter and
13141 handle it. Switch inferior before calling target method.
13142 (get_thread_regcache): Pass target down.
13143 (get_thread_regcache_for_ptid): Pass target down.
13144 (registers_changed_ptid): Add process_stratum_target parameter and
13145 handle it.
13146 (registers_changed_thread, registers_changed): Pass target down.
13147 (test_get_thread_arch_aspace_regcache): New.
13148 (current_regcache_test): Define a couple local test_target_ops
13149 instances and use them for testing.
13150 (readwrite_regcache): Pass process_stratum_target parameter.
13151 (cooked_read_test, cooked_write_test): Pass mock_target down.
13152 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13153 (get_thread_arch_aspace_regcache): Add process_stratum_target
13154 parameter.
13155 (regcache::target): New method.
13156 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13157 (regcache::registers_changed_ptid): Add process_stratum_target
13158 parameter.
13159 (regcache::m_target): New field.
13160 (registers_changed_ptid): Add process_stratum_target parameter.
13161 * remote.c (remote_state::supports_vCont_probed): New field.
13162 (remote_target::async_wait_fd): New method.
13163 (remote_unpush_and_throw): Add remote_target parameter.
13164 (get_current_remote_target): Adjust.
13165 (remote_target::remote_add_inferior): Push target.
13166 (remote_target::remote_add_thread)
13167 (remote_target::remote_notice_new_inferior)
13168 (get_remote_thread_info): Pass target down.
13169 (remote_target::update_thread_list): Skip threads of inferiors
13170 bound to other targets. (remote_target::close): Don't discard
13171 inferiors. (remote_target::add_current_inferior_and_thread)
13172 (remote_target::process_initial_stop_replies)
13173 (remote_target::start_remote)
13174 (remote_target::remote_serial_quit_handler): Pass down target.
13175 (remote_target::remote_unpush_target): New remote_target
13176 parameter. Unpush the target from all inferiors.
13177 (remote_target::remote_unpush_and_throw): New remote_target
13178 parameter. Pass it down.
13179 (remote_target::open_1): Check whether the current inferior has
13180 execution instead of checking whether any inferior is live. Pass
13181 target down.
13182 (remote_target::remote_detach_1): Pass down target. Use
13183 remote_unpush_target.
13184 (extended_remote_target::attach): Pass down target.
13185 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13186 (remote_target::append_resumption): Pass down target.
13187 (remote_target::append_pending_thread_resumptions)
13188 (remote_target::remote_resume_with_hc, remote_target::resume)
13189 (remote_target::commit_resume): Pass down target.
13190 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13191 (remote_target::interrupt_query)
13192 (remote_target::remove_new_fork_children)
13193 (remote_target::check_pending_events_prevent_wildcard_vcont)
13194 (remote_target::remote_parse_stop_reply)
13195 (remote_target::process_stop_reply): Pass down target.
13196 (first_remote_resumed_thread): New remote_target parameter. Pass
13197 it down.
13198 (remote_target::wait_as): Pass down target.
13199 (unpush_and_perror): New remote_target parameter. Pass it down.
13200 (remote_target::readchar, remote_target::remote_serial_write)
13201 (remote_target::getpkt_or_notif_sane_1)
13202 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13203 down target.
13204 (remote_target::mourn_inferior): Pass down target. Use
13205 remote_unpush_target.
13206 (remote_target::core_of_thread)
13207 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13208 (remote_target::pid_to_exec_file)
13209 (remote_target::thread_handle_to_thread_info): Pass down target.
13210 (remote_target::async_wait_fd): New.
13211 * riscv-fbsd-tdep.c: Include "inferior.h".
13212 (riscv_fbsd_get_thread_local_address): Pass down target.
13213 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13214 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13215 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13216 Adjust.
13217 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13218 * solib-svr4.c (enable_break): Pass down target.
13219 * spu-multiarch.c (parse_spufs_run): Pass down target.
13220 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13221 * target-delegates.c: Regenerate.
13222 * target.c (g_target_stack): Delete.
13223 (current_top_target): Return the current inferior's top target.
13224 (target_has_execution_1): Refer to the passed-in inferior's top
13225 target.
13226 (target_supports_terminal_ours): Check whether the initial
13227 inferior was already created.
13228 (decref_target): New.
13229 (target_stack::push): Incref/decref the target.
13230 (push_target, push_target, unpush_target): Adjust.
13231 (target_stack::unpush): Defref target.
13232 (target_is_pushed): Return bool. Adjust to refer to the current
13233 inferior's target stack.
13234 (dispose_inferior): Delete, and inline parts ...
13235 (target_preopen): ... here. Only dispose of the current inferior.
13236 (target_detach): Hold strong target reference while detaching.
13237 Pass target down.
13238 (target_thread_name): Add assertion.
13239 (target_resume): Pass down target.
13240 (target_ops::beneath, find_target_at): Adjust to refer to the
13241 current inferior's target stack.
13242 (get_dummy_target): New.
13243 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13244 has a thread running.
13245 (initialize_targets): Rename to ...
13246 (_initialize_target): ... this.
13247 * target.h: Include "gdbsupport/refcounted-object.h".
13248 (struct target_ops): Inherit refcounted_object.
13249 (target_ops::shortname, target_ops::longname): Make const.
13250 (target_ops::async_wait_fd): New method.
13251 (decref_target): Declare.
13252 (struct target_ops_ref_policy): New.
13253 (target_ops_ref): New typedef.
13254 (get_dummy_target): Declare function.
13255 (target_is_pushed): Return bool.
13256 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13257 (all_matching_threads_iterator::all_matching_threads_iterator):
13258 Handle filter target.
13259 * thread-iter.h (struct all_matching_threads_iterator, struct
13260 all_matching_threads_range, class all_non_exited_threads_range):
13261 Filter by target too. Remove explicit.
13262 * thread.c (threads_executing): Delete.
13263 (inferior_thread): Pass down current inferior.
13264 (clear_thread_inferior_resources): Pass down thread pointer
13265 instead of ptid_t.
13266 (add_thread_silent, add_thread_with_info, add_thread): Add
13267 process_stratum_target parameter. Use it for thread and inferior
13268 searches.
13269 (is_current_thread): New.
13270 (thread_info::deletable): Use it.
13271 (find_thread_ptid, thread_count, in_thread_list)
13272 (thread_change_ptid, set_resumed, set_running): New
13273 process_stratum_target parameter. Pass it down.
13274 (set_executing): New process_stratum_target parameter. Pass it
13275 down. Adjust reference to 'threads_executing'.
13276 (threads_are_executing): New process_stratum_target parameter.
13277 Adjust reference to 'threads_executing'.
13278 (set_stop_requested, finish_thread_state): New
13279 process_stratum_target parameter. Pass it down.
13280 (switch_to_thread): Also match inferior.
13281 (switch_to_thread): New process_stratum_target parameter. Pass it
13282 down.
13283 (update_threads_executing): Reimplement.
13284 * top.c (quit_force): Pop targets from all inferior.
13285 (gdb_init): Don't call initialize_targets.
13286 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13287 Declare.
13288 (windows_add_thread, windows_delete_thread): Adjust.
13289 (get_windows_debug_event): Rename to ...
13290 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13291 * tracefile-tfile.c (tfile_target_open): Pass down target.
13292 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13293 Forward declare.
13294 (switch_to_thread): Add process_stratum_target parameter.
13295 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13296 parameter. Use it.
13297 (mi_on_resume): Pass target down.
13298 * nat/fork-inferior.c (startup_inferior): Add
13299 process_stratum_target parameter. Pass it down.
13300 * nat/fork-inferior.h (startup_inferior): Add
13301 process_stratum_target parameter.
13302 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13303
13304 2020-01-10 Pedro Alves <palves@redhat.com>
13305
13306 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13307 directly. Instead find the first thread in the thread list and
13308 use switch_to_thread.
13309
13310 2020-01-10 Pedro Alves <palves@redhat.com>
13311
13312 * remote.c (remote_target::remote_add_inferior): Don't bind a
13313 process to the current inferior if the current inferior is already
13314 bound to a process.
13315
13316 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13317 Pedro Alves <palves@redhat.com>
13318
13319 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13320 If no process is specified, return null_ptid instead of
13321 inferior_ptid.
13322 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13323 TARGET_WAITKIND_SIGNALLED with no pid.
13324
13325 2020-01-10 Pedro Alves <palves@redhat.com>
13326
13327 * remote.c (first_remote_resumed_thread): New.
13328 (remote_target::wait_as): Use it as default event_ptid instead of
13329 inferior_ptid.
13330
13331 2020-01-10 Pedro Alves <palves@redhat.com>
13332
13333 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13334
13335 2020-01-10 Pedro Alves <palves@redhat.com>
13336
13337 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13338 not -1.
13339
13340 2020-01-10 Pedro Alves <palves@redhat.com>
13341
13342 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13343 ptid to get_last_target_status.
13344 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13345 ptid to get_last_target_status.
13346 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13347 get_last_target_status.
13348 (info_program_command): Don't pass a target_waitstatus to
13349 get_last_target_status.
13350 * infrun.c (init_wait_for_inferior): Use
13351 nullify_last_target_wait_ptid.
13352 (get_last_target_status): Handle nullptr arguments.
13353 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13354 (print_stop_event): Don't pass a ptid to get_last_target_status.
13355 (normal_stop): Don't pass a ptid to get_last_target_status.
13356 * infrun.h (get_last_target_status, set_last_target_status): Move
13357 comments here and update.
13358 (nullify_last_target_wait_ptid): Declare.
13359 * linux-fork.c (fork_load_infrun_state): Remove local extern
13360 declaration of nullify_last_target_wait_ptid.
13361 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13362 to get_last_target_status.
13363
13364 2020-01-10 Pedro Alves <palves@redhat.com>
13365
13366 * gdbthread.h (scoped_restore_current_thread)
13367 <dont_restore, restore, m_dont_restore>: Declare.
13368 * thread.c (thread_alive): Add assertion. Return bool.
13369 (switch_to_thread_if_alive): New.
13370 (prune_threads): Switch inferior/thread.
13371 (print_thread_info_1): Switch thread before calling target methods.
13372 (scoped_restore_current_thread::restore): New, factored out from
13373 ...
13374 (scoped_restore_current_thread::~scoped_restore_current_thread):
13375 ... this.
13376 (scoped_restore_current_thread::scoped_restore_current_thread):
13377 Add assertion.
13378 (thread_apply_all_command, thread_select): Use
13379 switch_to_thread_if_alive.
13380 * infrun.c (proceed, restart_threads, handle_signal_stop)
13381 (switch_back_to_stepped_thread): Switch current thread before
13382 calling target methods.
13383
13384 2020-01-10 Pedro Alves <palves@redhat.com>
13385
13386 * inferior.c (switch_to_inferior_no_thread): New function,
13387 factored out from ...
13388 (inferior_command): ... here.
13389 * inferior.h (switch_to_inferior_no_thread): Declare.
13390 * mi/mi-main.c (run_one_inferior): Use
13391 switch_to_inferior_no_thread.
13392
13393 2020-01-10 Pedro Alves <palves@redhat.com>
13394
13395 * infcmd.c (kill_command): Remove dead code.
13396
13397 2020-01-10 Pedro Alves <palves@redhat.com>
13398
13399 * remote.c (remote_target::mourn_inferior): No longer check
13400 whether the target is running.
13401
13402 2020-01-10 Pedro Alves <palves@redhat.com>
13403
13404 * corelow.c (core_target::has_execution): Change parameter type to
13405 inferior pointer.
13406 * inferior.c (number_of_live_inferiors): Use
13407 inferior::has_execution instead of target_has_execution_1.
13408 * inferior.h (inferior::has_execution): New.
13409 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13410 inferior::has_execution instead of target_has_execution_1.
13411 * process-stratum-target.c
13412 (process_stratum_target::has_execution): Change parameter type to
13413 inferior pointer. Check the inferior's PID instead of
13414 inferior_ptid.
13415 * process-stratum-target.h
13416 (process_stratum_target::has_execution): Change parameter type to
13417 inferior pointer.
13418 * record-full.c (record_full_core_target::has_execution): Change
13419 parameter type to inferior pointer.
13420 * target.c (target_has_execution_1): Change parameter type to
13421 inferior pointer.
13422 (target_has_execution_current): Adjust.
13423 * target.h (target_ops::has_execution): Change parameter type to
13424 inferior pointer.
13425 (target_has_execution_1): Change parameter type to inferior
13426 pointer. Change return type to bool.
13427 * tracefile.h (tracefile_target::has_execution): Change parameter
13428 type to inferior pointer.
13429
13430 2020-01-10 Pedro Alves <palves@redhat.com>
13431
13432 * exceptions.c (print_flush): Remove current_top_target() check.
13433
13434 2020-01-10 Pedro Alves <palves@redhat.com>
13435
13436 * remote.c (show_remote_exec_file): Show the current inferior's
13437 exec-file instead of the command variable's value.
13438
13439 2020-01-10 Pedro Alves <palves@redhat.com>
13440
13441 * record-full.c (record_full_resume_ptid): New global.
13442 (record_full_target::resume): Set it.
13443 (record_full_wait_1): Use record_full_resume_ptid instead of
13444 inferior_ptid.
13445
13446 2020-01-10 Pedro Alves <palves@redhat.com>
13447
13448 * gdbthread.h (scoped_restore_current_thread)
13449 <dont_restore, restore, m_dont_restore>: Declare.
13450 * thread.c (thread_alive): Add assertion. Return bool.
13451 (switch_to_thread_if_alive): New.
13452 (prune_threads): Switch inferior/thread.
13453 (print_thread_info_1): Switch thread before calling target methods.
13454 (scoped_restore_current_thread::restore): New, factored out from
13455 ...
13456 (scoped_restore_current_thread::~scoped_restore_current_thread):
13457 ... this.
13458 (scoped_restore_current_thread::scoped_restore_current_thread):
13459 Add assertion.
13460 (thread_apply_all_command, thread_select): Use
13461 switch_to_thread_if_alive.
13462
13463 2020-01-10 George Barrett <bob@bob131.so>
13464
13465 * stap-probe.c (stap_modify_semaphore): Don't check for null
13466 semaphores.
13467 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13468 for null semaphores.
13469
13470 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13471
13472 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13473 all source windows, and maintain horizontal scroll status while
13474 doing so.
13475
13476 2020-01-09 Tom Tromey <tom@tromey.com>
13477
13478 PR tui/18932:
13479 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13480 update_source_window, not print_source_lines.
13481
13482 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13483
13484 * tui/tui.c (tui_enable): Register tui hooks after calling
13485 tui_display_main.
13486
13487 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13488
13489 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13490
13491 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13492
13493 * thread.c (print_thread_info_1): Fix indentation.
13494
13495 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13496
13497 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13498 unique_xmalloc_ptr outside the if to always free the demangled name.
13499
13500 2020-01-08 Tom Tromey <tromey@adacore.com>
13501
13502 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13503 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13504 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13505 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13506 Remove.
13507 (section_offsets): New typedef.
13508 * symtab.c (fixup_section, get_msymbol_address): Update.
13509 * symmisc.c (dump_msymbols): Update.
13510 * symfile.h (relative_addr_info_to_section_offsets)
13511 (symfile_map_offsets_to_segments): Update.
13512 * symfile.c (build_section_addr_info_from_objfile)
13513 (init_objfile_sect_indices): Update.
13514 (struct place_section_arg): Change type of "offsets".
13515 (place_section): Update.
13516 (relative_addr_info_to_section_offsets): Change type of
13517 "section_offsets". Remove "num_sections" parameter.
13518 (default_symfile_offsets, syms_from_objfile_1)
13519 (set_objfile_default_section_offset): Update.
13520 (reread_symbols): No need to preserve section offsets by hand.
13521 (symfile_map_offsets_to_segments): Change type of "offsets".
13522 * stap-probe.c (relocate_address): Update.
13523 * stabsread.h (process_one_symbol): Update.
13524 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13525 (solib_target_relocate_section_addresses): Update.
13526 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13527 Update.
13528 * solib-frv.c (frv_relocate_main_executable): Update.
13529 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13530 * solib-aix.c (solib_aix_get_section_offsets): Change return
13531 type.
13532 (solib_aix_solib_create_inferior_hook): Update.
13533 * remote.c (remote_target::get_offsets): Update.
13534 * psymtab.c (find_pc_sect_psymtab): Update.
13535 * psympriv.h (struct partial_symbol) <address, text_low,
13536 text_high>: Update.
13537 * objfiles.h (obj_section_offset): Update.
13538 (struct objfile) <section_offsets>: Change type.
13539 <num_sections>: Remove.
13540 (objfile_relocate): Update.
13541 * objfiles.c (entry_point_address_query): Update
13542 (relocate_one_symbol): Change type of "section_offsets".
13543 (objfile_relocate1, objfile_relocate1): Change type of
13544 "new_offsets".
13545 (objfile_rebase1): Update.
13546 * mipsread.c (mipscoff_symfile_read): Update.
13547 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13548 parameter.
13549 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13550 (parse_external, psymtab_to_symtab_1): Update.
13551 * machoread.c (macho_symfile_offsets): Update.
13552 * ia64-tdep.c (ia64_find_unwind_table): Update.
13553 * hppa-tdep.c (read_unwind_info): Update.
13554 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13555 * dwarf2read.c (create_addrmap_from_index)
13556 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13557 (process_psymtab_comp_unit_reader, add_partial_symbol)
13558 (add_partial_subprogram, process_full_comp_unit)
13559 (read_file_scope, read_func_scope, read_lexical_block_scope)
13560 (read_call_site_scope, dwarf2_rnglists_process)
13561 (dwarf2_ranges_process, dwarf2_ranges_read)
13562 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13563 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13564 Update.
13565 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13566 Update.
13567 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13568 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13569 (process_one_symbol): Change type of "section_offsets".
13570 * ctfread.c (get_objfile_text_range): Update.
13571 * coffread.c (coff_symtab_read, enter_linenos)
13572 (process_coff_symbol): Update.
13573 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13574 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13575
13576 2020-01-08 Tom Tromey <tromey@adacore.com>
13577
13578 * dwarf2read.c (parse_macro_definition): Use std::string.
13579 (parse_macro_definition): Likewise.
13580
13581 2020-01-08 Tom Tromey <tromey@adacore.com>
13582
13583 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13584 (ATTR_ALLOC_CHUNK): Remove.
13585
13586 2020-01-08 Tom Tromey <tromey@adacore.com>
13587
13588 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13589
13590 2020-01-08 Tom Tromey <tromey@adacore.com>
13591
13592 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13593 (dwarf2_compute_name, open_dwo_file): Likewise.
13594 (process_enumeration_scope): Use std::vector.
13595 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13596 (partial_die_info::fixup, dwarf2_start_subfile)
13597 (guess_full_die_structure_name, dwarf2_name): Likewise.
13598 (determine_prefix): Update.
13599 (guess_full_die_structure_name): Make return type const.
13600 (partial_die_full_name): Return unique_xmalloc_ptr.
13601 (DW_FIELD_ALLOC_CHUNK): Remove.
13602
13603 2020-01-07 Tom Tromey <tromey@adacore.com>
13604
13605 PR build/24937:
13606 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13607
13608 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13609
13610 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13611
13612 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13613
13614 * stack.c (print_frame_info): Move disassemble_next_line code
13615 inside source_print block.
13616
13617 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13618
13619 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13620 gdb/signals.h, as we are now using native signal symbols.
13621
13622 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13623
13624 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13625 overflow by an early check of content vs threshold.
13626 * tui/tui-source.c (tui_source_window::line_is_displayed):
13627 Likewise.
13628
13629 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13630
13631 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13632
13633 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13634
13635 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13636 export table if no section contains it's RVA.
13637
13638 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13639
13640 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13641
13642 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13643
13644 * source.c (print_source_lines_base): Set last_line_listed.
13645
13646 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13647
13648 * tui/tui-disasm.c: Remove trailing spaces.
13649
13650 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13651 Pedro Alves <palves@redhat.com>
13652
13653 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13654 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13655 (windows_gdb_signal_to_target): New function, uses the above
13656 enumeration to convert GDB internal signal codes to equivalent
13657 Windows codes.
13658 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13659 * windows-nat.c: Include "gdb_wait.h".
13660 (get_windows_debug_event): Extract the fatal exception from the
13661 exit status and convert to the equivalent Posix signal number.
13662 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13663 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13664 * gdbsupport/gdb_wait.c: New file, implements
13665 windows_status_to_termsig.
13666 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13667 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13668
13669 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13670
13671 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13672 show_layout.
13673
13674 2020-01-05 Luis Machado <luis.machado@linaro.org>
13675
13676 * aarch64-linux-nat.c
13677 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13678 and bfd_mach_aarch64.
13679
13680 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13681
13682 * ui-file.c (stdio_file::can_emit_style_escape)
13683 (tee_file::can_emit_style_escape): Ensure style is used also on
13684 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13685 to gdb_stdout.
13686 * main.c (set_gdb_data_directory): Use file style to output the
13687 warning that the given pathname is not a directory.
13688 * top.c (show_history_filename, gdb_safe_append_history)
13689 (show_gdb_datadir): Use file style.
13690
13691 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13692
13693 * solib-target.c (struct lm_info_target):
13694 Change offsets to be a unique_xmalloc_ptr.
13695 (solib_target_relocate_section_addresses): Update.
13696
13697 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13698
13699 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13700
13701 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13702
13703 * MAINTAINERS (Write After Approval): Add myself.
13704
13705 2020-01-02 Luis Machado <luis.machado@linaro.org>
13706
13707 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13708 Cell BE architecture.
13709 * target.h (struct target_ops) <thread_architecture>: Likewise.
13710
13711 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13712
13713 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13714
13715 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13716
13717 * MAINTAINERS (Write After Approval): Add myself.
13718
13719 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13720
13721 * gdbarch.sh: Update copyright year range of generated files.
13722
13723 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13724
13725 Update copyright year range in all GDB files.
13726
13727 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13728
13729 * copyright.py: Convert to Python 3.
13730
13731 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13732
13733 * copyright.py: Adapt after move of gnulib directory from gdb
13734 directory to toplevel directory.
13735
13736 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13737
13738 * copyright.py (main): Exit if run from the wrong directory.
13739
13740 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13741
13742 * top.c (print_gdb_version): Change copyright year to 2020.
13743
13744 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13745
13746 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13747
13748 For older changes see ChangeLog-2019.
13749 \f
13750 Local Variables:
13751 mode: change-log
13752 left-margin: 8
13753 fill-column: 74
13754 version-control: never
13755 coding: utf-8
13756 End: