Assume KERN_PROC_PATHNAME is present on FreeBSD hosts.
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2
3 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4 sysctl and remove procfs fallback.
5
6 2020-09-16 John Baldwin <jhb@FreeBSD.org>
7
8 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
9 * fbsd-nat.h: Likewise.
10
11 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12
13 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
14 argument.
15
16 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
17
18 * ada-lang.c (ada_language_data): Delete.
19 (ada_language): Remove references to ada_language_data.
20 * c-lang.c (c_language_data): Delete.
21 (c_language): Remove references to c_language_data.
22 (cplus_language_data): Delete.
23 (cplus_language): Remove references to cplus_language_data.
24 (asm_language_data): Delete.
25 (asm_language): Remove references to asm_language_data.
26 (minimal_language_data): Delete.
27 (minimal_language): Remove references to minimal_language_data.
28 * d-lang.c (d_language_data): Delete.
29 (d_language): Remove references to d_language_data.
30 * f-lang.c (f_language_data): Delete.
31 (f_language): Remove references to f_language_data.
32 * go-lang.c (go_language_data): Delete.
33 (go_language): Remove references to go_language_data.
34 * language.c (unknown_language_data): Delete.
35 (unknown_language): Remove references to unknown_language_data.
36 (auto_language_data): Delete.
37 (auto_language): Remove references to auto_language_data.
38 * language.h (language_data): Delete struct.
39 (language_defn): No longer inherit from language_data.
40 * m2-lang.c (m2_language_data): Delete.
41 (m2_language): Remove references to m2_language_data.
42 * objc-lang.c (objc_language_data): Delete.
43 (objc_language): Remove references to objc_language_data.
44 * opencl-lang.c (opencl_language_data): Delete.
45 (opencl_language): Remove references to opencl_language_data.
46 * p-lang.c (pascal_language_data): Delete.
47 (pascal_language): Remove references to pascal_language_data.
48 * rust-lang.c (rust_language_data): Delete.
49 (rust_language): Remove references to rust_language_data.
50
51 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 * ada-lang.c (ada_language_data): Remove la_op_print_tab
54 initializer.
55 (ada_language::opcode_print_table): New member function.
56 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
57 (c_language::opcode_print_table): New member function.
58 (cplus_language_data): Remove la_op_print_tab initializer.
59 (cplus_language::opcode_print_table): New member function.
60 (asm_language_data): Remove la_op_print_tab initializer.
61 (asm_language::opcode_print_table): New member function.
62 (minimal_language_data): Remove la_op_print_tab initializer.
63 (minimal_language::opcode_print_table): New member function.
64 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
65 (d_language::opcode_print_table): New member function.
66 * expprint.c (print_subexp_standard): Update call to
67 opcode_print_table.
68 (op_string): Likewise.
69 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
70 (f_language::opcode_print_table): New member function.
71 * go-lang.c (go_language_data): Remove la_op_print_tab
72 initializer.
73 (go_language::opcode_print_table): New member function.
74 * language.c (unknown_language_data): Remove la_op_print_tab
75 initializer.
76 (unknown_language::opcode_print_table): New member function.
77 (auto_language_data): Remove la_op_print_tab initializer.
78 (auto_language::opcode_print_table): New member function.
79 * language.h (language_data): Remove la_op_print_tab field.
80 (language_defn::opcode_print_table): Declare new member function.
81 * m2-lang.c (m2_language_data): Remove la_op_print_tab
82 initializer.
83 (m2_language::opcode_print_table): New member function.
84 * objc-lang.c (objc_language_data): Remove la_op_print_tab
85 initializer.
86 (objc_language::opcode_print_table): New member function.
87 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
88 initializer.
89 (opencl_language::opcode_print_table): New member function.
90 * p-lang.c (pascal_language_data): Remove la_op_print_tab
91 initializer.
92 (pascal_language::opcode_print_table): New member function.
93 * rust-lang.c (rust_language_data): Remove la_op_print_tab
94 initializer.
95 (rust_language::opcode_print_table): New member function.
96
97 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
98
99 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
100 (ada_language::expression_ops): New member function.
101 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
102 (c_language::expression_ops): New member function.
103 (cplus_language_data): Remove la_exp_desc initializer.
104 (cplus_language::expression_ops): New member function.
105 (asm_language_data): Remove la_exp_desc initializer.
106 (asm_language::expression_ops): New member function.
107 (minimal_language_data): Remove la_exp_desc initializer.
108 (minimal_language::expression_ops): New member function.
109 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
110 (d_language::expression_ops): New member function.
111 * eval.c (evaluate_subexp): Update call to expression_ops.
112 * expprint.c (print_subexp): Likewise.
113 (op_name): Likewise.
114 (dump_subexp_body): Likewise.
115 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
116 (f_language::expression_ops): New member function.
117 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
118 (go_language::expression_ops): New member function.
119 * language.c (language_defn::expression_ops): New function.
120 (unknown_language_data): Remove la_exp_desc initializer.
121 (auto_language_data): Likewise.
122 * language.h (language_data): Remove la_exp_desc field.
123 (language_defn::expression_ops): Declare new member function.
124 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
125 (m2_language::expression_ops): New member function.
126 * objc-lang.c (objc_language_data): Remove la_exp_desc
127 initializer.
128 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
129 initializer.
130 (opencl_language::expression_ops): New member function.
131 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
132 * parse.c (operator_length): Update call to expression_ops.
133 (exp_iterate): Likewise.
134 * rust-lang.c (rust_language_data): Remove la_exp_desc
135 initializer.
136 (ruse_language::expression_ops): New member function.
137
138 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
139
140 * ada-lang.c (ada_language_data): Remove la_varobj_ops
141 initializer.
142 (ada_language::varobj_ops): New member function.
143 * c-lang.c (c_language_data): Remove la_varobj_ops
144 initializer.
145 (cplus_language_data): Likewise.
146 (cplus_language::varobj_ops): New member function.
147 (asm_language_data): Remove la_varobj_ops initializer.
148 (minimal_language_data): Likewise.
149 * d-lang.c (d_language_data): Likewise.
150 * f-lang.c (f_language_data): Likewise.
151 * go-lang.c (go_language_data): Likewise.
152 * language.c (language_defn::varobj_ops): New function.
153 (unknown_language_data): Remove la_varobj_ops
154 initializer.
155 (auto_language_data): Likewise.
156 * language.h (language_data): Remove la_varobj_ops field.
157 (language_defn::varobj_ops): Declare new member function.
158 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
159 * objc-lang.c (objc_language_data): Likewise.
160 * opencl-lang.c (opencl_language_data): Likewise.
161 * p-lang.c (pascal_language_data): Likewise.
162 * rust-lang.c (rust_language_data): Likewise.
163 * varobj.c (varobj_create): Update call to varobj_ops.
164 * varobj.h (default_varobj_ops): Delete define.
165
166 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
167
168 * ada-lang.c (ada_language_data): Remove la_macro_expansion
169 initializer.
170 * c-lang.c (c_language_data): Likewise.
171 (c_language::macro_expansion): New member function.
172 (cplus_language_data): Likewise.
173 (cplus_language::macro_expansion): New member function.
174 (asm_language_data): Likewise.
175 (asm_language::macro_expansion): New member function.
176 (minimal_language_data): Likewise.
177 (minimal_language::macro_expansion): New member function.
178 * d-lang.c (d_language_data): Remove la_macro_expansion
179 initializer.
180 * f-lang.c (f_language_data): Likewise.
181 * go-lang.c (go_language_data): Likewise.
182 * language.c (unknown_language_data): Likewise.
183 (auto_language_data): Likewise.
184 * language.h (language_data): Remove la_macro_expansion field.
185 (language_defn::macro_expansion): New member function.
186 * m2-lang.c (m2_language_data): Remove la_macro_expansion
187 initializer.
188 * objc-lang.c (objc_language_data): Likewise.
189 (objc_language::macro_expansion): New member function.
190 * opencl-lang.c (opencl_language_data): Likewise.
191 (opencl_language::macro_expansion): New member function.
192 * p-lang.c (pascal_language_data): Remove la_macro_expansion
193 initializer.
194 * rust-lang.c (rust_language_data): Likewise.
195 * symtab.c (default_collect_symbol_completion_matches_break_on):
196 Update call to macro_expansion.
197
198 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
199
200 * ada-lang.c (ada_language_data): Remove la_array_ordering
201 initializer.
202 * c-lang.c (c_language_data): Likewise.
203 (cplus_language_data): Likewise.
204 (asm_language_data): Likewise.
205 (minimal_language_data): Likewise.
206 * d-lang.c (d_language_data): Likewise.
207 * dwarf2/read.c (read_array_order): Update for call to
208 array_ordering.
209 * f-lang.c (f_language_data): Remove la_array_ordering
210 initializer.
211 (f_language::array_ordering): New member function.
212 * go-lang.c (go_language_data): Remove la_array_ordering
213 initializer.
214 * language.c (unknown_language_data): Likewise.
215 (auto_language_data): Likewise.
216 * language.h (language_data): Delete la_array_ordering field.
217 (language_defn::array_ordering): New member function.
218 * m2-lang.c (m2_language_data): Remove la_array_ordering
219 initializer.
220 * objc-lang.c (objc_language_data): Likewise.
221 * opencl-lang.c (opencl_language_data): Likewise.
222 * p-lang.c (pascal_language_data): Likewise.
223 * rust-lang.c (rust_language_data): Likewise.
224
225 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
226
227 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
228 initializer.
229 * c-lang.c (c_language_data): Likewise.
230 (cplus_language_data): Likewise.
231 (asm_language_data): Likewise.
232 (minimal_language_data): Likewise.
233 * d-lang.c (d_language_data): Likewise.
234 * f-lang.c (f_language_data): Likewise.
235 (f_language::case_sensitivity): New member function.
236 * go-lang.c (go_language_data): Remove la_case_sensitivity
237 initializer.
238 * language.c (enum case_mode): Moved here from language.h.
239 (case_mode): Make static.
240 (show_case_command): Update for case_sensitivity being a method.
241 (set_case_command): Likewise.
242 (set_range_case): Likewise.
243 (unknown_language_data): Remove la_case_sensitivity initializer.
244 (auto_language_data): Likewise.
245 * language.h (case_mode): Delete, move enum declaration to
246 language.c.
247 (language_data): Delete la_case_sensitivity field.
248 (language_defn::case_sensitivity): New member function.
249 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
250 initializer.
251 * objc-lang.c (objc_language_data): Likewise.
252 * opencl-lang.c (opencl_language_data): Likewise.
253 * p-lang.c (pascal_language_data): Likewise.
254 * rust-lang.c (rust_language_data): Likewise.
255
256 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
257
258 * ada-lang.c (ada_language_data): Remove la_range_check
259 initializer.
260 * c-lang.c (c_language_data): Likewise.
261 (cplus_language_data): Likewise.
262 (asm_language_data): Likewise.
263 (minimal_language_data): Likewise.
264 * d-lang.c (d_language_data): Likewise.
265 * f-lang.c (f_language_data): Likewise.
266 (f_language::range_checking_on_by_default): New member function.
267 * go-lang.c (go_language_data): Remove la_range_check initializer.
268 * language.c (enum range_mode): Moved here from language.h.
269 (range_mode): Made static.
270 (show_range_command): Update to use
271 range_checking_on_by_default.
272 (set_range_command): Likewise.
273 (set_range_case): Likewise.
274 (unknown_language_data): Remove la_range_check initializer.
275 (auto_language_data): Likewise.
276 * language.h (range_mode): Delete. Enum definition moved to
277 language.c.
278 (language_data): Remove la_range_check field.
279 (language_defn::range_checking_on_by_default): New member
280 function.
281 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
282 (m2_language::range_checking_on_by_default): New member function.
283 * objc-lang.c (objc_language_data): Remove la_range_check
284 initializer.
285 * opencl-lang.c (opencl_language_data): Likewise.
286 * p-lang.c (pascal_language_data): Likewise.
287 (pascal_language::range_checking_on_by_default): New member
288 function.
289 * rust-lang.c (rust_language_data): Remove la_range_check
290 initializer.
291 (rust_language::range_checking_on_by_default): New member
292 function.
293
294 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
295
296 * dwarf2/read.c (dwarf2_physname): Remove special case for
297 language_go.
298 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
299 member function.
300
301 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
302
303 * ada-lang.c (ada_language_data): Remove
304 la_store_sym_names_in_linkage_form_p initializer.
305 (ada_language::store_sym_names_in_linkage_form_p): New member
306 function.
307 * c-lang.c (c_language_data): Remove
308 la_store_sym_names_in_linkage_form_p initializer.
309 (c_language::store_sym_names_in_linkage_form_p): New member
310 function.
311 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
312 initializer.
313 (asm_language_data): Likewise.
314 (asm_language::store_sym_names_in_linkage_form_p): New member
315 function.
316 (minimal_language_data): Remove
317 la_store_sym_names_in_linkage_form_p initializer.
318 (minimal_language::store_sym_names_in_linkage_form_p): New member
319 function.
320 * d-lang.c (d_language_data): Remove
321 la_store_sym_names_in_linkage_form_p initializer.
322 * dwarf2/read.c (dwarf2_physname): Update call to
323 store_sym_names_in_linkage_form_p.
324 * f-lang.c (f_language_data): Remove
325 la_store_sym_names_in_linkage_form_p initializer.
326 * go-lang.c (go_language_data): Remove
327 la_store_sym_names_in_linkage_form_p initializer.
328 * language.c (unknown_language_data): Remove
329 la_store_sym_names_in_linkage_form_p initializer.
330 (unknown_language::store_sym_names_in_linkage_form_p): New member
331 function.
332 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
333 initializer.
334 (auto_language::store_sym_names_in_linkage_form_p): New member
335 function.
336 * language.h (language_data): Remove
337 la_store_sym_names_in_linkage_form_p member variable.
338 (language_defn::store_sym_names_in_linkage_form_p): New member
339 function.
340 * m2-lang.c (m2_language_data): Remove
341 la_store_sym_names_in_linkage_form_p initializer.
342 * objc-lang.c (objc_language_data): Likewise.
343 * opencl-lang.c (opencl_language_data): Likewise.
344 * p-lang.c (pascal_language_data): Likewise.
345 * rust-lang.c (rust_language_data): Likewise.
346
347 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
348
349 * ada-lang.c (ada_language_data): Remove string_lower_bound
350 initializer.
351 * c-lang.c (c_language_data): Likewise.
352 (cplus_language_data): Likewise.
353 (asm_language_data): Likewise.
354 (minimal_language_data): Likewise.
355 * d-lang.c (d_language_data): Likewise.
356 * f-lang.c (f_language_data): Likewise.
357 * go-lang.c (go_language_data): Likewise.
358 * language.c (unknown_language_data): Likewise.
359 (auto_language_data): Likewise.
360 * language.h (language_data): Remove string_lower_bound field.
361 (language_defn::string_lower_bound): New member function.
362 * m2-lang.c (m2_language_data): Remove string_lower_bound
363 initializer.
364 (m2_language::string_lower_bound): New member function.
365 * objc-lang.c (objc_language_data): Remove string_lower_bound
366 initializer.
367 * opencl-lang.c (opencl_language_data): Likewise.
368 * p-lang.c (pascal_language_data): Likewise.
369 * rust-lang.c (rust_language_data): Likewise.
370 * valops.c (value_cstring): Update call to string_lower_bound.
371 (value_string): Likewise.
372 * value.c (allocate_repeated_value): Likewise.
373
374 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * valops.c (value_repeat): Fix incorrect argument name in comment.
377
378 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
379
380 * ada-lang.c (ada_language_data): Remove c_style_arrays
381 initializer.
382 (ada_language::c_style_arrays_p): New member fuction.
383 * c-lang.c (c_language_data): Remove c_style_arrays
384 initializer.
385 (cplus_language_data): Likewise.
386 (asm_language_data): Likewise.
387 (minimal_language_data): Likewise.
388 * d-lang.c (d_language_data): Likewise.
389 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
390 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
391 (f_language::c_style_arrays_p): New member function.
392 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
393 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
394 * language.c (unknown_language_data): Remove c_style_arrays
395 initializer.
396 (auto_language_data): Likewise.
397 * language.h (language_data): Remove c_style_arrays field.
398 (language_defn::c_style_arrays_p): New member function.
399 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
400 (m2_language::c_style_arrays_p): New member function.
401 * objc-lang.c (objc_language_data): Remove c_style_arrays
402 initializer.
403 * opencl-lang.c (opencl_language_data): Likewise.
404 * p-lang.c (pascal_language_data): Likewise.
405 * rust-lang.c (rust_language_data): Likewise.
406 * valarith.c (value_subscript): Update call to c_style_arrays_p,
407 and update local variable to a bool.
408 * valops.c (value_cast): Update call to c_style_arrays_p.
409 (value_array): Likewise.
410 * value.c (coerce_array): Likewise.
411
412 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
413
414 * ada-lang.c (ada_language_data): Remove la_language initializer.
415 * c-lang.c (c_language_data): Likewise.
416 (cplus_language_data): Likewise.
417 (asm_language_data): Likewise.
418 (minimal_language_data): Likewise.
419 * d-lang.c (d_language_data): Likewise.
420 * f-lang.c (f_language_data): Likewise.
421 * go-lang.c (go_language_data): Likewise.
422 * language.c (unknown_language_data): Likewise.
423 (auto_language_data): Likewise.
424 * language.h (language_data): Remove la_language field.
425 (language_defn::language_defn): Initialise la_language field.
426 (language_defn::la_language): New member variable.
427 * m2-lang.c (m2_language_data): Remove la_language field.
428 * objc-lang.c (objc_language_data): Likewise.
429 * opencl-lang.c (opencl_language_data): Likewise.
430 * p-lang.c (pascal_language_data): Likewise.
431 * rust-lang.c (rust_language_data): Likewise.
432
433 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
434
435 * ada-lang.c (ada_extensions): Delete, moved into
436 ada_language::filename_extensions.
437 (ada_language_data): Remove la_filename_extensions initializer.
438 (ada_language::filename_extensions): New member function.
439 * c-lang.c (c_extensions): Delete, moved into
440 c_language::filename_extensions.
441 (c_language_data): Remove la_filename_extensions initializer.
442 (c_language::filename_extensions): New member function.
443 (cplus_extensions): Delete, moved into
444 cplus_language::filename_extensions.
445 (cplus_language_data): Remove la_filename_extensions initializer.
446 (cplus_language::filename_extensions): New member function.
447 (asm_extensions): Delete, moved into
448 asm_language::filename_extensions.
449 (asm_language_data): Remove la_filename_extensions initializer.
450 (asm_language::filename_extensions): New member function.
451 (minimal_language_data): Remove la_filename_extensions
452 initializer.
453 * d-lang.c (d_extensions): Delete, moved into
454 d_language::filename_extensions.
455 (d_language_data): Remove la_filename_extensions initializer.
456 (d_language::filename_extensions): New member function.
457 * f-lang.c (f_extensions): Delete, moved into
458 f_language::filename_extensions.
459 (f_language_data): Remove la_filename_extensions initializer.
460 (f_language::filename_extensions): New member function.
461 * go-lang.c (go_language_data): Remove la_filename_extensions
462 initializer.
463 * language.c (add_set_language_command): Update now that
464 filename_extensions returns a vector.
465 (unknown_language_data): Remove la_filename_extensions
466 initializer.
467 (auto_language_data): Likewise.
468 * language.h (language_data): Remove la_filename_extensions field.
469 (language_defn::filename_extensions): New member function.
470 * m2-lang.c (m2_language_data): Remove la_filename_extensions
471 initializer.
472 * objc-lang.c (objc_extensions): Delete, moved into
473 objc_language::filename_extensions.
474 (objc_language_data): Remove la_filename_extensions initializer.
475 (objc_language::filename_extensions): New member function.
476 * opencl-lang.c (opencl_language_data): Remove
477 la_filename_extensions initializer.
478 * p-lang.c (pascal_extensions): Delete, moved into
479 pascal_language::filename_extensions.
480 (pascal_language_data): Remove la_filename_extensions initializer.
481 (pascal_language::filename_extensions): New member function.
482 * rust-lang.c (rust_extensions): Delete, moved into
483 rust_language::filename_extensions.
484 (rust_language_data): Remove la_filename_extensions initializer.
485 (rust_language::filename_extensions): New member function.
486 * symfile.c (add_filename_language): Add new assert.
487
488 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
489
490 * ada-lang.c (ada_language_data): Remove la_name and
491 la_natural_name initializers.
492 (ada_language::name): New member function.
493 (ada_language::natural_name): New member function.
494 * c-lang.c (c_language_data): Remove la_name and
495 la_natural_name initializers.
496 (c_language::name): New member function.
497 (c_language::natural_name): New member function.
498 (cplus_language_data): Remove la_name and
499 la_natural_name initializers.
500 (cplus_language::name): New member function.
501 (cplus_language::natural_name): New member function.
502 (asm_language_data): Remove la_name and
503 la_natural_name initializers.
504 (asm_language::name): New member function.
505 (asm_language::natural_name): New member function.
506 (minimal_language_data): Remove la_name and
507 la_natural_name initializers.
508 (minimal_language::name): New member function.
509 (minimal_language::natural_name): New member function.
510 * compile/compile.c (compile_to_object): Update call to
511 lanugage_defn::name.
512 * d-lang.c (d_language_data): Remove la_name and
513 la_natural_name initializers.
514 (d_language::name): New member function.
515 (d_language::natural_name): New member function.
516 * expprint.c (print_subexp_standard): Update call to
517 language_defn::name.
518 (dump_raw_expression): Likewise
519 (dump_prefix_expression): Likewise.
520 * f-lang.c (f_language_data): Remove la_name and
521 la_natural_name initializers.
522 (f_language::name): New member function.
523 (f_language::natural_name): New member function.
524 * go-lang.c (go_language_data): Remove la_name and
525 la_natural_name initializers.
526 (go_language::name): New member function.
527 (go_language::natural_name): New member function.
528 * language.c (show_language_command): Update call to
529 language_defn::name.
530 (set_language_command): Likewise.
531 (language_enum): Likewise.
532 (language_str): Likewise.
533 (add_set_language_command): Likewise, use
534 language_defn::natural_name in the doc string.
535 (unknown_language_data): Remove la_name and
536 la_natural_name initializers.
537 (unknown_language::name): New member function.
538 (unknown_language::natural_name): New member function.
539 (auto_language_data): Remove la_name and
540 la_natural_name initializers.
541 (auto_language::name): New member function.
542 (auto_language::natural_name): New member function.
543 (language_lookup_primitive_type_as_symbol): Update call to
544 language_defn::name.
545 * language.h (language_data): Remove la_name and la_natural_name
546 member variables.
547 (language_defn::name): New member function.
548 (language_defn::natural_name): New member function.
549 * m2-lang.c (m2_language_data): Remove la_name and
550 la_natural_name initializers.
551 (m2_language::name): New member function.
552 (m2_language::natural_name): New member function.
553 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
554 language_defn::natural_name.
555 * objc-lang.c (objc_language_data): Remove la_name and
556 la_natural_name initializers.
557 (objc_language::name): New member function.
558 (objc_language::natural_name): New member function.
559 * opencl-lang.c (opencl_language_data): Remove la_name and
560 la_natural_name initializers.
561 (opencl_language::name): New member function.
562 (opencl_language::natural_name): New member function.
563 * p-lang.c (pascal_language_data): Remove la_name and
564 la_natural_name initializers.
565 (pascal_language::name): New member function.
566 (pascal_language::natural_name): New member function.
567 * rust-lang.c (rust_language_data): Remove la_name and
568 la_natural_name initializers.
569 (rust_language::name): New member function.
570 (rust_language::natural_name): New member function.
571 * symtab.c (lookup_language_this): Update call to
572 language_defn::name.
573
574 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
575
576 * ada-lang.c (ada_language_data): Remove la_name_of_this
577 initializer.
578 * ax-gdb.c (gen_expr): Update call to name_of_this.
579 * c-exp.y (classify_name): Likewise.
580 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
581 (cplus_language_data): Likewise.
582 (cplus_language::name_of_this): New member function.
583 (asm_language_data): Remove la_name_of_this initializer.
584 (minimal_language_data): Likewise.
585 * d-lang.c (d_language_data): Likewise.
586 (d_language::name_of_this): New member function.
587 * expprint.c (print_subexp_standard): Update call to name_of_this.
588 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
589 * go-lang.c (go_language_data): Likewise.
590 * language.c (unknown_language_data): Likewise.
591 (unknown_language::name_of_this): New member function.
592 (auto_language_data): Remove la_name_of_this initializer.
593 (auto_language::name_of_this): New member function.
594 * language.h (language_data): Delete la_name_of_this member
595 variable.
596 (language_defn::name_of_this): New member function.
597 * m2-lang.c (m2_language_data): Remove la_name_of_this
598 initializer.
599 * objc-lang.c (objc_language_data): Likewise.
600 (objc_language::name_of_this): New member function.
601 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
602 initializer.
603 * p-lang.c (pascal_language_data): Likewise.
604 (pascal_language::name_of_this): New member function.
605 * rust-lang.c (rust_language_data): Remove la_name_of_this
606 initializer.
607 * symtab.c (lookup_language_this): Update call to name_of_this.
608 (lookup_symbol_aux): Likewise.
609 * valops.c (value_of_this): Likewise.
610
611 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
612
613 * ada-lang.c (ada_language_data): Remove
614 la_struct_too_deep_ellipsis initializer.
615 (ada_language::struct_too_deep_ellipsis): New member function.
616 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
617 initializer.
618 (cplus_language_data): Likewise.
619 (asm_language_data): Likewise.
620 (minimal_language_data): Likewise.
621 * cp-valprint.c (cp_print_value): Update call to
622 struct_too_deep_ellipsis.
623 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
624 initializer.
625 * f-lang.c (f_language_data): Likewise.
626 (f_language::struct_too_deep_ellipsis): New member function.
627 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
628 initializer.
629 * language.c (unknown_language_data): Likewise.
630 (auto_language_data): Likewise.
631 * language.h (language_data): Delete la_struct_too_deep_ellipsis
632 member variable.
633 (language_defn::struct_too_deep_ellipsis): New member function.
634 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
635 initializer.Q
636 * objc-lang.c (objc_language_data): Likewise.
637 * opencl-lang.c (opencl_language_data): Likewise.
638 * p-lang.c (pascal_language_data): Likewise.
639 * rust-lang.c (rust_language_data): Likewise.
640 * valprint.c (val_print_check_max_depth): Update call to
641 struct_too_deep_ellipsis.
642
643 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
644
645 * MAINTAINERS (Write After Approval): Add myself.
646
647 2020-09-15 Tom Tromey <tom@tromey.com>
648
649 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
650 Remove.
651
652 2020-09-15 Tom Tromey <tom@tromey.com>
653
654 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
655 and TYPE_CODE_METHODPTR cases.
656 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
657 (c_value_print_inner): Update.
658 * valprint.c (generic_value_print_memberptr): New function, from
659 c_value_print_memberptr.
660 (generic_value_print): Use it. Call cplus_print_method_ptr.
661
662 2020-09-15 Tom Tromey <tromey@adacore.com>
663
664 * python/python-internal.h (PyInt_FromLong): Remove define.
665 * python/py-value.c (convert_value_from_python): Use
666 gdb_py_object_from_longest.
667 * python/py-type.c (typy_get_code): Use
668 gdb_py_object_from_longest.
669 * python/py-symtab.c (salpy_get_line): Use
670 gdb_py_object_from_longest.
671 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
672 gdb_py_object_from_longest.
673 * python/py-record.c (recpy_gap_reason_code): Use
674 gdb_py_object_from_longest.
675 * python/py-record-btrace.c (recpy_bt_insn_size)
676 (recpy_bt_func_level, btpy_list_count): Use
677 gdb_py_object_from_longest.
678 * python/py-infthread.c (gdbpy_create_ptid_object): Use
679 gdb_py_object_from_longest. Fix error handling.
680 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
681 gdb_py_object_from_longest.
682 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
683 gdb_py_object_from_longest.
684 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
685 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
686 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
687
688 2020-09-15 Tom Tromey <tromey@adacore.com>
689
690 * python/python.c (gdbpy_parameter_value): Use
691 gdb_py_object_from_ulongest.
692
693 2020-09-15 Tom Tromey <tromey@adacore.com>
694
695 * python/py-infevents.c (create_register_changed_event_object):
696 Use gdb_py_object_from_longest.
697 * python/py-exitedevent.c (create_exited_event_object): Use
698 gdb_py_object_from_longest.
699
700 2020-09-15 Tom Tromey <tromey@adacore.com>
701
702 * python/python.c (gdbpy_parameter_value): Use
703 gdb_py_object_from_longest.
704 * python/py-type.c (convert_field, typy_range): Use
705 gdb_py_object_from_longest.
706 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
707 gdb_py_object_from_longest.
708 * python/py-lazy-string.c (stpy_get_length): Use
709 gdb_py_object_from_longest.
710 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
711 gdb_py_object_from_longest.
712 * python/py-infevents.c (create_memory_changed_event_object): Use
713 gdb_py_object_from_longest.
714 * python/py-inferior.c (infpy_get_num): Use
715 gdb_py_object_from_longest.
716 (infpy_get_pid): Likewise.
717
718 2020-09-15 Tom Tromey <tromey@adacore.com>
719
720 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
721 defines.
722 * python/py-value.c (valpy_long): Use
723 gdb_py_object_from_ulongest.
724 * python/py-symtab.c (salpy_get_pc): Use
725 gdb_py_object_from_ulongest.
726 (salpy_get_last): Likewise.
727 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
728 gdb_py_object_from_ulongest.
729 * python/py-lazy-string.c (stpy_get_address): Use
730 gdb_py_object_from_ulongest.
731 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
732 * python/py-arch.c (archpy_disassemble): Use
733 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
734 error handling.
735
736 2020-09-15 Tom Tromey <tromey@adacore.com>
737
738 * python/python-internal.h (gdb_py_long_from_longest): Remove
739 defines.
740 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
741 * python/py-type.c (convert_field, typy_get_sizeof): Use
742 gdb_py_object_from_longest.
743 * python/py-record-btrace.c (btpy_list_index): Use
744 gdb_py_object_from_longest.
745
746 2020-09-15 Tom Tromey <tromey@adacore.com>
747
748 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
749 * python/py-record.c (recpy_element_number): Use
750 gdb_py_object_from_longest.
751 (recpy_gap_number): Likewise.
752
753 2020-09-15 Tom Tromey <tromey@adacore.com>
754
755 * top.c (ui::ui): Update.
756 (highest_ui_num): Remove.
757 * top.h (struct ui) <num>: Remove.
758
759 2020-09-15 Tom Tromey <tromey@adacore.com>
760
761 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
762 * ui-style.c (ansi_regex_text): Now array.
763 * rust-exp.y (number_regex_text): Now array.
764 * linespec.c (linespec_quote_characters): Now array.
765 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
766 Now arrays.
767
768 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
769
770 * debuginfod-support.c (debuginfod_client_deleter): New.
771 (debuginfod_client_up): New.
772 (debuginfod_init): Return debuginfod_client_up.
773 (debuginfod_source_query): Adjust.
774 (debuginfod_debuginfo_query): Adjust.
775
776 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
777
778 * debuginfod-support.c (debuginfod_source_query): Use
779 make_unique_xstrdup.
780
781 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
782
783 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
784 with `type::instance_flags`.
785
786 2020-09-14 Michael Mullin <masmullin@gmail.com>
787
788 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
789 Remove baton parameter.
790
791 2020-09-14 Pedro Alves <pedro@palves.net>
792
793 * Makefile.in (SELFTESTS_SRCS): Add
794 unittests/enum-flags-selftests.c.
795 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
796 btrace_function_flags instead of enum btrace_function_flag.
797 * compile/compile-c-types.c (convert_qualified): Use
798 enum_flags::raw.
799 * compile/compile-cplus-symbols.c (convert_one_symbol)
800 (convert_symbol_bmsym):
801 * compile/compile-cplus-types.c (compile_cplus_convert_method)
802 (compile_cplus_convert_struct_or_union_methods)
803 (compile_cplus_instance::convert_qualified_base):
804 * go-exp.y (parse_string_or_char): Add cast to int.
805 * unittests/enum-flags-selftests.c: New file.
806 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
807 type to btrace_thread_flags from btrace_thread_flag.
808 (record_btrace_cancel_resume, record_btrace_step_thread): Change
809 local's type to btrace_thread_flags from btrace_thread_flag. Add
810 cast in DEBUG call.
811
812 2020-09-14 Pedro Alves <pedro@palves.net>
813
814 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
815 * gdbtypes.c (address_space_name_to_int): Rename to ...
816 (address_space_name_to_type_instance_flags): ... this.
817 (address_space_int_to_name): Rename to ...
818 (address_space_type_instance_flags_to_name): ... this.
819 * gdbtypes.h (address_space_name_to_int): Rename to ...
820 (address_space_name_to_type_instance_flags): ... this.
821 (address_space_int_to_name): Rename to ...
822 (address_space_type_instance_flags_to_name): ... this.
823 * type-stack.c (type_stack::insert): Adjust to rename.
824 * type-stack.h (type_stack::insert): Likewise.
825
826 2020-09-14 Pedro Alves <pedro@palves.net>
827 Andrew Burgess <andrew.burgess@embecosm.com>
828
829 * avr-tdep.c (avr_address_class_type_flags): Return
830 type_instance_flags.
831 (avr_address_class_type_flags_to_name): Take a
832 type_instance_flags.
833 (avr_address_class_name_to_type_flags): Return bool and take a
834 type_instance_flags.
835 * d-lang.c (build_d_types): Use type::set_instance_flags.
836 * ft32-tdep.c (ft32_address_class_type_flags): Return
837 type_instance_flags.
838 (ft32_address_class_type_flags_to_name): Take a
839 type_instance_flags.
840 (ft32_address_class_name_to_type_flags): Return bool and take a
841 type_instance_flags.
842 (ft32_gdbarch_init): Use type::set_instance_flags.
843 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
844 * gdbarch.h, gdbarch.c: Regenerate.
845 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
846 (address_class_name_to_type_flags): Use type_instance_flags and
847 bool.
848 * gdbtypes.c (address_space_name_to_int)
849 (address_space_int_to_name, make_qualified_type): Use
850 type_instance_flags.
851 (make_qualified_type): Use type_instance_flags and
852 type::set_instance_flags.
853 (make_type_with_address_space, make_cv_type, make_vector_type)
854 (check_typedef): Use type_instance_flags.
855 (recursive_dump_type): Cast type_instance_flags to unsigned for
856 printing.
857 (copy_type_recursive): Use type::set_instance_flags.
858 (gdbtypes_post_init): Use type::set_instance_flags.
859 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
860 <m_instance_flags>: ... this.
861 <instance_flags, set_instance_flags>: New methods.
862 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
863 (SET_TYPE_INSTANCE_FLAGS): New.
864 (address_space_name_to_int, address_space_int_to_name)
865 (make_type_with_address_space): Pass flags using
866 type_instance_flags instead of int.
867 * stabsread.c (cleanup_undefined_types_noname): Use
868 type::set_instance_flags.
869 * s390-tdep.c (s390_address_class_type_flags): Return
870 type_instance_flags.
871 (s390_address_class_type_flags_to_name): Take a
872 type_instance_flags.
873 (s390_address_class_name_to_type_flags): Return bool and take a
874 type_instance_flags.
875 * type-stack.c (type_stack::follow_types): Use
876 type_instance_flags.
877 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
878
879 2020-09-14 Tom Tromey <tromey@adacore.com>
880
881 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
882 * x86-tdep.c (x86_is_thunk_register_name)
883 (x86_in_indirect_branch_thunk): Update.
884 * sparc64-tdep.c (sparc64_fpu_register_names)
885 (sparc64_cp0_register_names, sparc64_register_names)
886 (sparc64_pseudo_register_names): Now const.
887 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
888 cp0_registers_num>: Now const.
889 * sparc-tdep.c (sparc_core_register_names)
890 (sparc32_fpu_register_names, sparc32_cp0_register_names)
891 (sparc32_pseudo_register_names): Now const.
892 (validate_tdesc_registers): Update.
893 * rust-lang.c (rust_extensions): Now const.
894 * p-lang.c (p_extensions): Now const.
895 * objc-lang.c (objc_extensions): Now const.
896 * nto-tdep.c (nto_thread_state_str): Now const.
897 * moxie-tdep.c (moxie_register_names): Now const.
898 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
899 Now const.
900 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
901 (mips_linux_reg_names): Now const.
902 (mips_gdbarch_init): Update.
903 * microblaze-tdep.c (microblaze_register_names): Now const.
904 * m68k-tdep.c (m68k_register_names): Now const.
905 * m32r-tdep.c (m32r_register_names): Now const.
906 * ia64-tdep.c (ia64_register_names): Now const.
907 * i386-tdep.h (struct gdbarch_tdep) <register_names,
908 ymmh_register_names, ymm16h_regnum, mpx_register_names,
909 k_register_names, zmmh_register_names, xmm_avx512_register_names,
910 ymm_avx512_register_names, pkeys_register_names>: Now const.
911 * i386-tdep.c (i386_register_names, i386_zmm_names)
912 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
913 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
914 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
915 * f-lang.c (f_extensions): Now const.
916 * d-lang.c (d_extensions): Now const.
917 * csky-tdep.c (csky_register_names): Now const.
918 * charset.c (default_charset_names, charset_enum): Now const.
919 (_initialize_charset): Update.
920 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
921 const.
922 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
923 (bsd_uthread_solib_loaded): Update.
924 (bsd_uthread_state): Now const.
925 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
926 (amd64_ymm_avx512_names, amd64_ymmh_names)
927 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
928 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
929 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
930 (amd64_dword_names): Now const.
931 * agent.c (can_use_agent_enum): Now const.
932 * ada-tasks.c (task_states, long_task_states): Now const.
933 * ada-lang.c (known_runtime_file_name_patterns)
934 (known_auxiliary_function_name_patterns, attribute_names)
935 (standard_exc, ada_extensions): Now const.
936
937 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
938
939 * bcache.h (struct bcache) <bcache>: Remove constructor.
940 <m_hash_function, m_compare_function>: Remove.
941 <~bcache>: Make virtual.
942 <compare>: Remove static method, introduce virtual method.
943 <default_hash>: Remove.
944 <hash>: New virtual method.
945 * bcache.c (bcache::expand_hash_table): Update.
946 (bcache::insert): Update.
947 (bcache::hash): New.
948 (bcache::compare): Update comment and parameter names.
949 * gdbtypes.c (types_deeply_equal): Update.
950 * psymtab.h (struct psymbol_bcache): New struct.
951 (class psymtab_storage) <psymtab_storage>: Make default.
952 <psymbol_cache>: Change type to psymbol_bcache.
953 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
954 (psymbol_hash): Change to...
955 (psymbol_bcache::hash): ... this.
956 (psymbol_compare): Change to...
957 (psymbol_bcache::compare): ... this.
958
959 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
960
961 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
962 checking for initial lwp.
963
964 2020-09-14 Tom Tromey <tromey@adacore.com>
965
966 * m68k-tdep.c (m68k_extract_return_value): Use
967 pointer_result_regnum.
968 (m68k_store_return_value): Likewise.
969 (m68k_reg_struct_return_p): Handle vectors and arrays.
970 (m68k_return_value): Handle arrays.
971 (m68k_svr4_return_value): Fix single-element aggregate handling.
972 Handle long double. Adjust for embedded ABI.
973 (m68k_svr4_init_abi): Set pointer_result_regnum.
974 (m68k_embedded_init_abi): New function.
975 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
976 (m68k_osabi_sniffer): New function.
977 (_initialize_m68k_tdep): Register osabi sniffer.
978 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
979 member.
980
981 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
982
983 * xml-support.c (xml_fetch_content_from_file): Replace xfree
984 with gdb::unique_xmalloc_ptr<char>.
985
986 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
987
988 * xml-support.h (xml_fetch_another): Change type to be a
989 function_view.
990 (xml_process_xincludes): Remove baton parameter.
991 (xml_fetch_content_from_file): Change baton parameter to
992 dirname.
993 * xml-support.c (struct xinclude_parsing_data)
994 <xinclude_parsing_data>: Remove baton parameter.
995 <fetcher_baton>: Remove.
996 (xinclude_start_include): Adjust.
997 (xml_process_xincludes): Adjust.
998 (xml_fetch_content_from_file): Replace baton parameter with
999 dirname.
1000 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1001 (xml_init_syscalls_info): Use a lambda.
1002 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1003 (file_read_description_xml): Use a lambda.
1004 (fetch_available_features_from_target): Change baton parameter
1005 to target_ops.
1006 (target_read_description_xml): Use a lambda.
1007 (target_fetch_description_xml): Use a lambda.
1008 (string_read_description_xml): Update.
1009
1010 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1011
1012 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1013 uses with type::endianity_is_not_default.
1014
1015 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1016
1017 * gdbtypes.h (struct type) <endianity_is_not_default,
1018 set_endianity_is_not_default>: New methods.
1019 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1020 type::endianity_is_not_default, change all write call sites to
1021 use type::set_endianity_is_not_default.
1022
1023 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1024
1025 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1026 uses with type::is_fixed_instance.
1027
1028 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1029
1030 * gdbtypes.h (struct type) <is_fixed_instance,
1031 set_is_fixed_instance>: New methods.
1032 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1033 write call sites to use type::set_is_fixed_instance.
1034
1035 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1036
1037 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1038 uses with type::is_gnu_ifunc.
1039
1040 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1041
1042 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1043 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1044 use type::set_is_gnu_ifunc.
1045
1046 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1047
1048 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1049 uses with type::stub_is_supported.
1050
1051 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1052
1053 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1054 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1055 use type::set_stub_is_supported.
1056
1057 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1058
1059 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1060 uses with type::is_vector.
1061
1062 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1063
1064 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1065 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1066 use type::set_is_vector.
1067
1068 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1069
1070 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1071 uses with type::has_varargs.
1072
1073 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1074
1075 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1076 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1077 use type::set_has_varargs.
1078
1079 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1080
1081 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1082 uses with type::is_prototyped.
1083
1084 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1085
1086 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1087 New methods.
1088 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1089 call sites to use type::set_is_prototyped.
1090
1091 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1092
1093 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1094 uses with type::target_is_stub.
1095
1096 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1097
1098 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1099 New methods.
1100 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1101 sites to use type::set_target_is_stub.
1102
1103 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1104
1105 * gdbtypes.h (TYPE_STUB): Remove, replace all
1106 uses with type::is_stub.
1107
1108 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1109
1110 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1111 (TYPE_STUB): Use type::is_stub, change all write call sites to
1112 use type::set_is_stub.
1113
1114 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1115
1116 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1117 type::has_no_signedness.
1118
1119 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1120
1121 * gdbtypes.h (struct type) <has_no_signedness,
1122 set_has_no_signedness>: New methods.
1123 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1124 call sites to use type::set_has_no_signedness.
1125
1126 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1127
1128 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1129 type::is_unsigned.
1130
1131 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1132
1133 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1134 methods.
1135 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1136 sites to use type::set_is_unsigned.
1137
1138 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1139 Adam Renquinha <arenquinha@cimeq.qc.ca>
1140
1141 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1142 pointer and stack frame offset when unwinding.
1143
1144 2020-09-13 Pedro Alves <pedro@palves.net>
1145
1146 * NEWS: Document "-break-insert --qualified".
1147 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1148
1149 2020-09-13 Pedro Alves <pedro@palves.net>
1150
1151 * linespec.c (classify_mtype, compare_msyms): Delete.
1152 (search_minsyms_for_name): Remove classification logic. Instead
1153 filter out trampoline symbols if we also found an external
1154 function of the same name.
1155
1156 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1157
1158 * NEWS: Create a new section for the next release branch.
1159 Rename the section of the current branch, now that it has
1160 been cut.
1161
1162 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1163
1164 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1165 * version.in: Bump version to 11.0.50.DATE-git.
1166
1167 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1168
1169 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1170
1171 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1172 Felix Willgerodt <Felix.Willgerodt@intel.com>
1173
1174 * gdbarch.sh: Added bfloat16 type.
1175 * gdbarch.c: Regenerated.
1176 * gdbarch.h: Regenerated.
1177 * gdbtypes.c (floatformats_bfloat16): New struct.
1178 (gdbtypes_post_init): Add builtin_bfloat16.
1179 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1180 (floatformats_bfloat16): New struct.
1181 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1182 (i386_ymm_type): Add field "v16_bfloat16"
1183 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1184 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1185 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1186 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1187 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1188 * features/i386/64bit-avx512.c: Regenerated.
1189 * features/i386/64bit-sse.xml: Add bfloat16 type.
1190 * features/i386/64bit-sse.c: Regenerated.
1191
1192 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1193
1194 * i386-tdep.c (i386_zmm_type): Fix field names.
1195 (i386_ymm_type): Fix field names.
1196
1197 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1198
1199 * breakpoint.c: Fix typo in the help message of the
1200 "set breakpoint condition-evaluation" command.
1201
1202 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1203
1204 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1205 * (nbsd_nat_target::pid_to_exec_file)
1206 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1207 (nbsd_nat_target::post_startup_inferior)
1208 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1209 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1210 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1211 * (nbsd_thread_lister): Remove.
1212
1213 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1214
1215 * fork-inferior.c (startup_inferior): Avoid double free.
1216
1217 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1218
1219 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1220 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1221
1222 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1223
1224 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1225 * netbsd-nat.c: Include <sys/ptrace.h>.
1226 * (netbsd_nat::enable_proc_events): Add.
1227
1228 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1229
1230 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1231 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1232 (netbsd_nat::for_each_thread): Add.
1233 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1234 "gdbsupport/common-debug.h".
1235 * (netbsd_nat::netbsd_thread_lister)
1236 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1237 (netbsd_nat::for_each_thread): Add.
1238
1239 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1240
1241 * netbsd-nat.h: Include <unistd.h>.
1242 * (netbsd_nat::pid_to_exec_file): Add.
1243 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1244 * (netbsd_nat::pid_to_exec_file) Add.
1245
1246 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1247
1248 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1249
1250 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1251
1252 * netbsd-nat.h: New file.
1253 * netbsd-nat.c: Likewise.
1254
1255 2020-09-09 Tom Tromey <tromey@adacore.com>
1256
1257 * ada-lang.c (remove_extra_symbols): Do not increment when
1258 removing an element
1259
1260 2020-09-08 Tom Tromey <tromey@adacore.com>
1261
1262 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1263
1264 2020-09-08 Tom Tromey <tromey@adacore.com>
1265
1266 PR win32/25302:
1267 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1268 (gdb_bfd_init_data): New function.
1269 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1270
1271 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1272
1273 * infrun.c (fetch_inferior_event): Use
1274 `switch_to_target_no_thread` to switch the target.
1275
1276 2020-09-06 Tom Tromey <tom@tromey.com>
1277
1278 * symfile.h (dwarf2_free_objfile): Don't declare.
1279
1280 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1281
1282 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1283 to match 16 byte real/complex type generated by Flang compiler.
1284
1285 2020-09-03 Tom de Vries <tdevries@suse.de>
1286
1287 PR breakpoint/26546
1288 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1289 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1290
1291 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1292
1293 * maint.c (index_digits): New function.
1294 (struct maint_print_section_data): Remove.
1295 (print_bfd_section_info): Remove print_data parameter, add arg
1296 and index_digits.
1297 (print_objfile_section_info): Likewise.
1298 (print_bfd_section_info_maybe_relocated): Likewise (plus
1299 objfile).
1300 (maintenance_info_sections): Adjust calls.
1301
1302 2020-09-02 Tom Tromey <tromey@adacore.com>
1303
1304 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1305 for null pointers.
1306 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1307
1308 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1309
1310 * bcache.h (struct bcache) <insert>: Change type of `added` to
1311 pointer to bool.
1312 * bcache.c (bcache::insert): Likewise.
1313 * gdbtypes.c (check_types_worklist): Adjust.
1314 * psymtab.c (add_psymbol_to_bcache): Adjust.
1315
1316 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1317
1318 * corelow.c (unordered_set): Include.
1319 (class core_target): Add field 'm_core_unavailable_mappings'.
1320 (core_target::build_file_mappings): Print only one warning
1321 per inaccessible file. Add unavailable/broken mappings
1322 to m_core_unavailable_mappings.
1323 (core_target::xfer_partial): Call...
1324 (core_target::xfer_memory_via_mappings): New method.
1325
1326 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1327
1328 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1329 type to bool.
1330
1331 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1332
1333 * dwarf2/read.c (struct field_info): Fix indentation.
1334
1335 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1336
1337 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1338 ordering in comment.
1339 * frame.c (frame_id_eq): Fix indentation.
1340
1341 2020-08-31 Scott Linder <scott@scottlinder.com>
1342 Simon Marchi <simon.marchi@efficios.com>
1343
1344 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1345 inline frame ids in outer frame.
1346
1347 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1348
1349 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1350 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1351 (outer_frame_id): Use FID_STACK_OUTER instead of
1352 FID_STACK_INVALID.
1353 (frame_id_p): Don't check for outer_frame_id.
1354
1355 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1356
1357 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1358 regnum/frame in value. Call allocate_value_lazy.
1359 * frame.c (frame_unwind_register_value): Use
1360 val_print_not_saved.
1361
1362 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1363
1364 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1365
1366 2020-08-29 Pedro Alves <pedro@palves.net>
1367
1368 * progspace.c (print_program_space): Use all_inferiors. Switch to
1369 the inferior before calling target_pid_to_str.
1370
1371 2020-08-28 Tom Tromey <tom@tromey.com>
1372
1373 * xcoffread.c (xcoff_end_psymtab): Update comment.
1374 * dbxread.c (dbx_end_psymtab): Update comment.
1375
1376 2020-08-28 Tom de Vries <tdevries@suse.de>
1377
1378 PR breakpoint/26544
1379 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1380 event_location.
1381 (create_breakpoint): Same.
1382 (base_breakpoint_decode_location): Same.
1383 (bkpt_create_sals_from_location): Same.
1384 (bkpt_decode_location): Same.
1385 (bkpt_probe_create_sals_from_location): Same.
1386 (bkpt_probe_decode_location): Same.
1387 (tracepoint_create_sals_from_location): Same.
1388 (tracepoint_decode_location): Same.
1389 (tracepoint_probe_decode_location): Same.
1390 (strace_marker_create_sals_from_location): Same.
1391 (strace_marker_decode_location): Same.
1392 (create_sals_from_location_default): Same.
1393 (decode_location_default): Same.
1394 * breakpoint.h (struct breakpoint_ops): Same.
1395 (create_breakpoint): Same.
1396 * linespec.h (decode_line_full): Same.
1397 * linespec.c (decode_line_full): Same. Throw error if
1398 result.size () == 0.
1399
1400 2020-08-27 Pedro Alves <pedro@palves.net>
1401
1402 PR gdb/26524
1403 * breakpoint.c (until_break_fsm) <location_breakpoint,
1404 caller_breakpoint>: Delete fields.
1405 <breakpoints>: New field.
1406 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1407 two individual breakpoints.
1408 (until_break_fsm::should_stop): Loop over breakpoints in the
1409 breakpoint vector.
1410 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1411 vector.
1412 (until_break_command): Handle location expanding into multiple
1413 sals.
1414
1415 2020-08-27 Pedro Alves <pedro@palves.net>
1416
1417 PR gdb/26523
1418 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1419 bp_until breakpoints user-specified locations. Update intro
1420 comment.
1421
1422 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1423
1424 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1425 gdb_bfd_sections): New.
1426 * maint.c (print_bfd_section_info): Change param type to
1427 maint_print_section_data.
1428 (print_objfile_section_info): Likewise.
1429 (print_bfd_section_info_maybe_relocated): Likewise.
1430 (maintenance_info_sections): Use gdb_bfd_sections.
1431
1432 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1433
1434 * MAINTAINERS: Add ARC target and maintainer.
1435
1436 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1437
1438 * configure.tgt: ARC support for GNU/Linux.
1439 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1440 * arc-linux-tdep.c: New file.
1441 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1442 * arc-tdep.c (arc_write_pc): Use it.
1443
1444 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1445
1446 * arc-tdep.c (arc_check_for_hardware_loop): New.
1447 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1448
1449 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1450
1451 * arc-tdep.h: Include "gdbarch.h".
1452
1453 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1454
1455 * arch/arc.h
1456 (arc_gdbarch_features): New class to stir the selection of target XML.
1457 (arc_create_target_description): Use FEATURES to choose XML target.
1458 (arc_lookup_target_description): Use arc_create_target_description
1459 to create _new_ target descriptions or return the already created
1460 ones if the FEATURES is the same.
1461 * arch/arc.c: Implementation of prototypes described above.
1462 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1463 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1464 * arc-tdep.c (*_feature_name): Make feature names consistent.
1465 (arc_register_feature): A new struct to hold information about
1466 registers of a particular target/feature.
1467 (arc_check_tdesc_feature): Check if XML provides registers in
1468 compliance with ARC_REGISTER_FEATURE structs.
1469 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1470 (determine_*_reg_feature_set): Which feature name to look for.
1471 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1472 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1473 to expected ISA enums to be used in arc_gdbarch_features structs.
1474 * features/Makefile (FEATURE_XMLFILES): Add new files.
1475 * gdb/features/arc/v1-aux.c: New file.
1476 * gdb/features/arc/v1-aux.xml: Likewise.
1477 * gdb/features/arc/v1-core.c: Likewise.
1478 * gdb/features/arc/v1-core.xml: Likewise.
1479 * gdb/features/arc/v2-aux.c: Likewise.
1480 * gdb/features/arc/v2-aux.xml: Likewise.
1481 * gdb/features/arc/v2-core.c: Likewise.
1482 * gdb/features/arc/v2-core.xml: Likewise.
1483 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1484
1485 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1486 Andrew Burgess <andrew.burgess@embecosm.com>
1487
1488 PR m2/26372
1489 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1490 an assert. Remove single element array indexing pattern as the
1491 MULTI_SUBSCRIPT support will handle this case too.
1492
1493 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1494
1495 * value.h (valprint_check_validity): Move declaration from
1496 here...
1497 * valprint.h (valprint_check_validity): ... to here.
1498
1499 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1500
1501 * debug.h: New file.
1502 * debug.c (debug_prefixed_vprintf): New function.
1503 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1504 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1505
1506 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1507
1508 * infrun.h (infrun_debug_printf_1): New function declaration.
1509 (infrun_debug_printf): New macro.
1510 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1511 throughout.
1512 (infrun_debug_printf): New function.
1513 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1514 (handle_jit_event): Likewise.
1515
1516 2020-08-21 Mark Wielaard <mark@klomp.org>
1517
1518 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1519
1520 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1521
1522 * frame.c (enum class frame_id_status): New.
1523 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1524 (fprintf_frame): Update.
1525 (compute_frame_id): Set frame id status to "computing" on entry.
1526 Set it back to "not_computed" on failure and to "computed" on
1527 success.
1528 (get_frame_id): Assert the frame id is not being computed.
1529 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1530 (create_new_frame): Likewise.
1531 (frame_cleanup_after_sniffer): Update assert.
1532
1533 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1534
1535 * regcache.c (pid_ptid_regcache_map): New type.
1536 (target_ptid_regcache_map): Remove.
1537 (target_pid_ptid_regcache_map): New type.
1538 (regcaches): Change type to target_pid_ptid_regcache_map.
1539 (get_thread_arch_aspace_regcache): Update.
1540 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1541 case.
1542 (regcaches_size): Update.
1543 (regcache_count): Update.
1544 (registers_changed_ptid_target_pid_test): New.
1545 (_initialize_regcache): Register new test.
1546
1547 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1548
1549 * regcache.c (regcache_count): New.
1550 (struct regcache_test_data): New.
1551 (regcache_test_data_up): New.
1552 (populate_regcaches_for_test): New.
1553 (regcaches_test): Remove.
1554 (get_thread_arch_aspace_regcache_test): New.
1555 (registers_changed_ptid_all_test): New.
1556 (registers_changed_ptid_target_test): New.
1557 (registers_changed_ptid_target_ptid_test): New.
1558 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1559 (_initialize_regcache): Register new tests.
1560
1561 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1562
1563 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1564 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1565 gdbarch and aspace parameter. Use current inferior's aspace.
1566 Validate regcache's arch value.
1567 (regcaches_test): Update.
1568
1569 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1570
1571 * regcache.c (regcaches_test): Call registers_changed.
1572
1573 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1574
1575 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1576
1577 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1578
1579 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1580 to find the end of prologue for flang compiled binaries.
1581 * arm-tdep.c (arm_skip_prologue): Likewise.
1582 * i386-tdep.c (i386_skip_prologue): Likewise.
1583 * producer.c (producer_is_llvm): New function.
1584 (producer_parsing_tests): Added new tests for clang/flang.
1585 * producer.h (producer_is_llvm): New declaration.
1586
1587 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1588
1589 * linux-nat.c (linux_nat_debug_printf): New function.
1590 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1591
1592 2020-08-18 Aaron Merey <amerey@redhat.com>
1593
1594 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1595 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1596 (CLIBS): Add DEBUGINFOD_LIBS.
1597
1598 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1599
1600 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1601 'gdbarch_num_regs'.
1602
1603 2020-08-17 Tom Tromey <tromey@adacore.com>
1604
1605 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1606 ada_get_decoded_value returns NULL.
1607
1608 2020-08-17 Tom Tromey <tromey@adacore.com>
1609
1610 * python/py-inferior.c (infpy_search_memory): Use
1611 gdb_py_object_from_ulongest.
1612 * python/py-infevents.c (create_inferior_call_event_object)
1613 (create_memory_changed_event_object): Use
1614 gdb_py_object_from_ulongest.
1615 * python/py-linetable.c (ltpy_entry_get_pc): Use
1616 gdb_py_object_from_ulongest.
1617
1618 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1619
1620 * loc.c (class symbol_needs_eval_context): Fix indentation.
1621
1622 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1623
1624 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1625 bool.
1626
1627 2020-08-17 Tom de Vries <tdevries@suse.de>
1628
1629 PR gdb/26393
1630 * gdbtypes.c (dump_dynamic_prop): New function.
1631 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1632
1633 2020-08-15 Tom de Vries <tdevries@suse.de>
1634
1635 PR backtrace/26390
1636 * stack.c (print_frame_args): Temporarily set the selected
1637 frame to FRAME while printing the frame's arguments.
1638
1639 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1640
1641 PR breakpoints/26385
1642 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1643 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1644
1645 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1646
1647 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1648 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1649 and >= to check return value instead of == -1 and != -1.
1650
1651 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1652
1653 * utils.h (class gdb_argv) <as_array_view>: New method.
1654 * utils.c (gdb_argv_as_array_view_test): New.
1655 (_initialize_utils): Register selftest.
1656 * maint.c (maintenance_selftest): Use the new method.
1657
1658 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1659
1660 * target.h (supports_dumpcore, dumpcore): New
1661 function declarations.
1662 * target.c (supports_dumpcore, dumpcore): New
1663 functions.
1664 * target-delegates.c: Rebuild.
1665 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1666 and target_dumpcore ().
1667
1668 2020-08-13 Aaron Merey <amerey@redhat.com>
1669
1670 * debuginfod-support.c: Replace global variables with user_data.
1671
1672 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1673
1674 * maint.c (maintenance_selftest): Split args and pass array_view
1675 to run_tests.
1676
1677 2020-08-12 Luis Machado <luis.machado@linaro.org>
1678
1679 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1680 type's length.
1681 Use %s and pulongest to print the length.
1682
1683 2020-08-12 Pedro Alves <palves@redhat.com>
1684
1685 * NEWS: Move "Multi-target debugging support" item to the
1686 "Changes since GDB 9" section.
1687
1688 2020-08-12 Pedro Alves <palves@redhat.com>
1689
1690 PR gdb/26336
1691 * progspace.c (program_space::remove_objfile): Invalidate the
1692 frame cache.
1693
1694 2020-08-11 Tom de Vries <tdevries@suse.de>
1695
1696 * MAINTAINERS: Mark ms1 as deleted.
1697
1698 2020-08-10 Luis Machado <luis.machado@linaro.org>
1699
1700 PR gdb/26310
1701
1702 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1703 act accordingly.
1704 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1705 movz/str/stur/stp skipping behavior.
1706
1707 2020-08-10 Luis Machado <luis.machado@linaro.org>
1708
1709 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1710 struct user_sve_header instead of struct sve_context.
1711
1712 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1713
1714 * read.h (dwarf2_fetch_die_loc_sect_off,
1715 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1716 `void *` parameter with function_view.
1717 * read.c (dwarf2_fetch_die_loc_sect_off,
1718 dwarf2_fetch_die_loc_cu_off): Likewise.
1719 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1720 (per_cu_dwarf_call): Adjust.
1721 (get_frame_address_in_block_wrapper): Remove.
1722 (indirect_synthetic_pointer): Adjust.
1723 (get_ax_pc): Remove.
1724 (dwarf2_compile_expr_to_ax): Adjust.
1725
1726 2020-08-08 Tom de Vries <tdevries@suse.de>
1727
1728 PR build/26344
1729 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1730 constructor.
1731 * regcache.c (get_thread_arch_aspace_regcache): Same.
1732
1733 2020-08-07 Tom Tromey <tromey@adacore.com>
1734
1735 * ravenscar-thread.c
1736 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1737 New method.
1738 (ravenscar_thread_target::wait): Check
1739 runtime_initialized.
1740 (ravenscar_thread_target::prepare_to_store)
1741 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1742 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1743 (ravenscar_thread_target::stopped_by_watchpoint)
1744 (ravenscar_thread_target::stopped_data_address)
1745 (ravenscar_thread_target::core_of_thread): Use
1746 scoped_restore_current_thread and
1747 set_base_thread_from_ravenscar_task.
1748
1749 2020-08-07 Tom Tromey <tromey@adacore.com>
1750
1751 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1752
1753 2020-08-07 Tom Tromey <tromey@adacore.com>
1754
1755 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1756 update_inferior_ptid before update_thread_list.
1757 (temporarily_change_regcache_ptid): New class.
1758 (ravenscar_thread_target::fetch_registers)
1759 (ravenscar_thread_target::store_registers)
1760 (ravenscar_thread_target::prepare_to_store): Use base thread when
1761 forwarding operation.
1762
1763 2020-08-07 Tom Tromey <tromey@adacore.com>
1764
1765 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1766 "is_pid" case.
1767
1768 2020-08-07 Tom Tromey <tromey@adacore.com>
1769
1770 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1771 New methods.
1772 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1773 first.
1774 (ravenscar_thread_target::add_thread): Rename from
1775 ravenscar_add_thread.
1776 (ravenscar_thread_target::update_thread_list): Use a lambda.
1777 (ravenscar_thread_target::xfer_partial): New method.
1778
1779 2020-08-07 Tom Tromey <tromey@adacore.com>
1780
1781 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1782 gdb::function_view.
1783 (iterate_over_live_ada_tasks): Change type of argument.
1784 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1785 of argument.
1786
1787 2020-08-07 Tom Tromey <tromey@adacore.com>
1788
1789 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1790 Remove.
1791 (ravenscar_thread_target::extra_thread_info): Remove.
1792 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1793 defer to target beneath for non-Ravenscar threads.
1794
1795 2020-08-07 Tom Tromey <tromey@adacore.com>
1796
1797 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1798 get_base_thread_from_ravenscar_task>: Now methods.
1799 <m_cpu_map>: New member.
1800 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1801 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1802 (ravenscar_thread_target::task_is_currently_active): Update.
1803 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1804 Now a method.
1805 (ravenscar_thread_target::add_active_thread): Put initial thread
1806 into the m_cpu_map.
1807
1808 2020-08-07 Tom Tromey <tromey@adacore.com>
1809
1810 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1811 event_ptid.
1812
1813 2020-08-07 Tom Tromey <tromey@adacore.com>
1814
1815 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1816 runtime_initialized.
1817
1818 2020-08-07 Tom Tromey <tromey@adacore.com>
1819
1820 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1821 add_active_thread.
1822 (ravenscar_thread_target::add_active_thread): Now public.
1823 (ravenscar_inferior_created): Call add_active_thread after pushing
1824 the target.
1825
1826 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1827
1828 * regcache.c (ptid_regcache_map): New type.
1829 (target_ptid_regcache_map): New type.
1830 (regcaches): Change type to target_ptid_regcache_map.
1831 (get_thread_arch_aspace_regcache): Update to regcaches' new
1832 type.
1833 (regcache_thread_ptid_changed): Likewise.
1834 (registers_changed_ptid): Likewise.
1835 (regcaches_size): Likewise.
1836 (regcaches_test): Update.
1837 (regcache_thread_ptid_changed): Update.
1838 * regcache.h (regcache_up): New type.
1839 * gdbsupport/ptid.h (hash_ptid): New struct.
1840
1841 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1842
1843 * observable.h (thread_ptid_changed): Add parameter
1844 `process_stratum_target *`.
1845 * infrun.c (infrun_thread_ptid_changed): Add parameter
1846 `process_stratum_target *` and use it.
1847 (selftests): New namespace.
1848 (infrun_thread_ptid_changed): New function.
1849 (_initialize_infrun): Register selftest.
1850 * regcache.c (regcache_thread_ptid_changed): Add parameter
1851 `process_stratum_target *` and use it.
1852 (regcache_thread_ptid_changed): New function.
1853 (_initialize_regcache): Register selftest.
1854 * thread.c (thread_change_ptid): Pass target to
1855 thread_ptid_changed observable.
1856
1857 2020-08-06 Caroline Tice <cmtice@google.com>
1858
1859 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1860 (struct dwp_sections): Update field comments. Add loclists and
1861 rnglists fields.
1862 (struct virtual_v2_dwo_sections): Rename struct to
1863 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1864 size & offset fields for loclists and rnglists.
1865 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1866 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1867 skipping dummy type units.
1868 (create_dwp_hash_table): Update the large comment above the function to
1869 discuss Version 5 DWP files as well, with references. Update all the
1870 version checks in the function to check for version 5 as well. Add new
1871 section at the end to create dwp hash table for version 5.
1872 (create_dwp_v2_section): Rename function to
1873 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1874 Add V5 to error message text.
1875 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1876 into calls to create_dwp_v2_or_v5_section.
1877 (create_dwo_unit_in_dwp_v5): New function.
1878 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1879 check for version2; add else clause to handle version 5.
1880 (open_and_init_dwo_file): Add code to check dwarf version & only call
1881 create_debug_types_hash_table (with sections.types) if version is not 5;
1882 else call create_debug_type_hash_table, with sections.info.
1883 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1884 version 5.
1885 (dwarf2_locate_v5_dwp_sections): New function.
1886 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1887 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1888
1889 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1890
1891 * regcache.h (class regcache): Remove friend
1892 registers_changed_ptid.
1893 <regcache_thread_ptid_changed>: Remove.
1894 <regcaches>: Remove.
1895 * regcache.c (regcache::regcaches): Rename to...
1896 (regcaches): ... this. Make static.
1897 (get_thread_arch_aspace_regcache): Update.
1898 (regcache::regcache_thread_ptid_changed): Rename to...
1899 (regcache_thread_ptid_changed): ... this. Update.
1900 (class regcache_access): Remove.
1901 (regcaches_test): Update.
1902 (_initialize_regcache): Update.
1903 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1904 <forward_list>.
1905
1906 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1907
1908 * regcache.h (class regcache) <current_regcache>: Rename to...
1909 <regcaches>: ... this. Move doc here.
1910 * regcache.c (regcache::current_regcache) Rename to...
1911 (regcache::regcaches): ... this. Move doc to header.
1912 (get_thread_arch_aspace_regcache): Update.
1913 (regcache::regcache_thread_ptid_changed): Update.
1914 (registers_changed_ptid): Update.
1915 (class regcache_access) <current_regcache_size>: Rename to...
1916 <regcaches_size>: ... this.
1917 (current_regcache_test): Rename to...
1918 (regcaches_test): ... this.
1919 (_initialize_regcache): Update.
1920
1921 2020-08-06 Victor Collod <vcollod@nvidia.com>
1922
1923 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1924
1925 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1926
1927 * corelow.c (core_target::build_file_mappings): Don't output
1928 null pathname in warning.
1929
1930 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1931
1932 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1933 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1934 gdb.dwarf2/dw2-single-line-discriminators.exp,
1935 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1936
1937 2020-08-05 Tom Tromey <tromey@adacore.com>
1938
1939 PR rust/26197:
1940 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1941 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1942 Fix off-by-one and type size errors in ordinary case.
1943
1944 2020-08-05 Tom de Vries <tdevries@suse.de>
1945
1946 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1947 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1948
1949 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1950
1951 * frame.h (frame_id_p): Return bool.
1952 (frame_id_artificial_p): Return bool.
1953 (frame_id_eq): Return bool.
1954 (has_stack_frames): Return bool.
1955 (get_selected_frame): Fix typo in comment.
1956 (get_frame_pc_if_available): Return bool.
1957 (get_frame_address_in_block_if_available): Return bool.
1958 (get_frame_func_if_available): Return bool.
1959 (read_frame_register_unsigned): Return bool.
1960 (get_frame_register_bytes): Return bool.
1961 (safe_frame_unwind_memory): Return bool.
1962 (deprecated_frame_register_read): Return bool.
1963 (frame_unwinder_is): Return bool.
1964 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1965 bool.
1966 <this_id::p>: Likewise.
1967 <prev_p>: Likewise.
1968 (frame_stash_add): Return bool.
1969 (get_frame_id): Use bool.
1970 (frame_id_build_special) Use bool.
1971 (frame_id_build_unavailable_stack): Use bool.
1972 (frame_id_build): Use bool.
1973 (frame_id_p): Return bool, use true/false instead of 1/0.
1974 (frame_id_artificial_p): Likewise.
1975 (frame_id_eq): Likewise.
1976 (frame_id_inner): Likewise.
1977 (get_frame_func_if_available): Likewise.
1978 (read_frame_register_unsigned): Likewise.
1979 (deprecated_frame_register_read): Likewise.
1980 (get_frame_register_bytes): Likewise.
1981 (has_stack_frames): Likewise.
1982 (inside_main_func): Likewise.
1983 (inside_entry_func): Likewise.
1984 (get_frame_pc_if_available): Likewise.
1985 (get_frame_address_in_block_if_available): Likewise.
1986 (frame_unwinder_is): Likewise.
1987 (safe_frame_unwind_memory): Likewise.
1988 (frame_unwind_arch): Likewise.
1989
1990 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1991
1992 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1993 type to cached_copy_status.
1994 (fprintf_frame): Adjust.
1995 (get_frame_func_if_available): Adjust.
1996 (frame_cleanup_after_sniffer): Adjust.
1997
1998 2020-08-04 Mark Wielaard <mark@klomp.org>
1999
2000 * MAINTAINERS (Write After Approval): Update email address.
2001
2002 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2003
2004 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2005 dynamic_prop::const_val.
2006
2007 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2008
2009 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2010 dynamic_prop::kind.
2011
2012 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2013
2014 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2015
2016 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2017
2018 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2019
2020 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2021 Jose E. Marchesi <jose.marchesi@oracle.com>
2022
2023 * configure.tgt: Add entry for bpf-*-*.
2024 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2025 (ALLDEPFILES): Add bpf-tdep.c.
2026 * bpf-tdep.c: New file.
2027 * MAINTAINERS: Add bpf target and maintainer.
2028 * NEWS: Mention the support for the new target.
2029
2030 2020-08-04 Tom de Vries <tdevries@suse.de>
2031
2032 PR symtab/23270
2033 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2034 Error.
2035
2036 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2037
2038 * syscalls/freebsd.xml: Regenerate.
2039
2040 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2041
2042 * syscalls/update-freebsd.sh: Fix usage and year range.
2043
2044 2020-08-03 Tom de Vries <tdevries@suse.de>
2045
2046 PR symtab/26333
2047 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2048 DW_LNE_lo_user/DW_LNE_hi_user range.
2049
2050 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2051
2052 PR ada/26318
2053 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2054 kind.
2055
2056 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2057
2058 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2059
2060 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2061
2062 * breakpoint.c (set_breakpoint_condition): Update the condition
2063 expressions after checking that the input condition string parses
2064 successfully and does not contain junk at the end.
2065
2066 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2067
2068 * breakpoint.c (set_breakpoint_condition): Update the
2069 condition string after parsing the new condition successfully.
2070
2071 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2072
2073 * proc-api.c (_STRUCTURED_PROC): Don't define.
2074 * proc-events.c: Likewise.
2075 * proc-flags.c: Likewise.
2076 * proc-why.c: Likewise.
2077 * procfs.c: Likewise.
2078
2079 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2080 * configure, config.in: Regenerate.
2081
2082 2020-07-30 Tom de Vries <tdevries@suse.de>
2083
2084 PR build/26320
2085 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2086 m_red/m_green/m_blue in a union.
2087
2088 2020-07-29 Tom de Vries <tdevries@suse.de>
2089
2090 PR tdep/26280
2091 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2092
2093 2020-07-28 Tom Tromey <tromey@adacore.com>
2094
2095 PR symtab/26270:
2096 * symtab.h (find_pc_partial_function_sym): Declare.
2097 * cli/cli-cmds.c (disassemble_command): Use
2098 find_pc_partial_function_sym. Check asm_demangle.
2099 * blockframe.c (cache_pc_function_sym): New global.
2100 (cache_pc_function_name): Remove.
2101 (clear_pc_function_cache): Update.
2102 (find_pc_partial_function_sym): New function, from
2103 find_pc_partial_function.
2104 (find_pc_partial_function): Rewrite using
2105 find_pc_partial_function_sym.
2106
2107 2020-07-28 Tom Tromey <tromey@adacore.com>
2108
2109 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2110 help. Add usage.
2111
2112 2020-07-28 Tom Tromey <tromey@adacore.com>
2113
2114 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2115 <DW_OP_GNU_variable_value>: Cast to address type.
2116
2117 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2118
2119 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2120 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2121 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2122 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2123 (nbsd_get_siginfo_type): New.
2124 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2125 (_initialize_nbsd_tdep): New.
2126
2127 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2128
2129 PR binutils/26301
2130 * configure: Regenerated.
2131
2132 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2133
2134 PR binutils/26301
2135 * configure: Regenerated.
2136
2137 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * python/py-frame.c: Remove 'user-regs.h' include.
2140 (frapy_read_register): Rewrite to make use of
2141 gdbpy_parse_register_id.
2142 * python/py-registers.c (gdbpy_parse_register_id): New function,
2143 moved here from python/py-unwind.c. Updated the return type, and
2144 also accepts register descriptor objects.
2145 * python/py-unwind.c: Remove 'user-regs.h' include.
2146 (pyuw_parse_register_id): Moved to python/py-registers.c.
2147 (unwind_infopy_add_saved_register): Update to use
2148 gdbpy_parse_register_id.
2149 (pending_framepy_read_register): Likewise.
2150 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2151
2152 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2153
2154 * python/py-registers.c: Add 'user-regs.h' include.
2155 (register_descriptor_iter_find): New function.
2156 (register_descriptor_iterator_object_methods): New static global
2157 methods array.
2158 (register_descriptor_iterator_object_type): Add pointer to methods
2159 array.
2160
2161 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2162
2163 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2164 for all architectures on FreeBSD 11.3 and later.
2165
2166 2020-07-27 Tom Tromey <tromey@adacore.com>
2167
2168 * gcore.h (load_corefile): Don't declare.
2169
2170 2020-07-27 Tom de Vries <tdevries@suse.de>
2171
2172 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2173 * config.in: Regenerate.
2174 * configure: Regenerate.
2175
2176 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2177
2178 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2179 ws2tcpip.h. When checking whether socklen_t type is defined, use
2180 ws2tcpip.h if it is available and sys/socket.h isn't.
2181 * configure: Regenerate.
2182 * config.in: Regenerate.
2183
2184 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2185
2186 PR fortran/23051
2187 PR fortran/26139
2188 * valops.c (value_ind): Pass address to
2189 readjust_indirect_value_type.
2190 * value.c (readjust_indirect_value_type): Make parameter
2191 non-const, and add extra address parameter. Resolve original type
2192 before using it.
2193 * value.h (readjust_indirect_value_type): Update function
2194 signature and comment.
2195
2196 2020-07-25 Tom de Vries <tdevries@suse.de>
2197
2198 PR symtab/26243
2199 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2200 entries.
2201
2202 2020-07-24 Aaron Merey <amerey@redhat.com>
2203
2204 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2205 * configure: Rebuild.
2206
2207 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2208
2209 PR corefiles/26294
2210 * corelow.c (_initialize_corelow): Add period to help text
2211 for "maintenance print core-file-backed-mappings".
2212
2213 2020-07-23 Pedro Alves <pedro@palves.net>
2214
2215 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2216 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2217 meanwhile.
2218 * frame.c (frame_cache_generation, get_frame_cache_generation):
2219 New.
2220 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2221 (get_prev_frame_if_no_cycle): On exception, don't touch
2222 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2223 * frame.h (get_frame_cache_generation): Declare.
2224
2225 2020-07-23 Tom de Vries <tdevries@suse.de>
2226
2227 PR tui/26282
2228 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2229 New default constructor.
2230
2231 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2232
2233 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2234 exclude non-statement entries.
2235
2236 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2237
2238 * NEWS (New commands): Mention new command
2239 "maintenance print core-file-backed-mappings".
2240
2241 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2242
2243 * corelow.c (gdbcmd.h): Include.
2244 (core_target::info_proc_mappings): New method.
2245 (get_current_core_target): New function.
2246 (maintenance_print_core_file_backed_mappings): New function.
2247 (_initialize_corelow): Add core-file-backed-mappings to
2248 "maint print" commands.
2249
2250 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2251
2252 * linux-tdep.c (dump_note_entry_p): New function.
2253 (linux_dump_mapping_p_ftype): New typedef.
2254 (linux_find_memory_regions_full): Add new parameter,
2255 should_dump_mapping_p.
2256 (linux_find_memory_regions): Adjust call to
2257 linux_find_memory_regions_full.
2258 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2259 call to linux_find_memory_regions_full.
2260
2261 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2262
2263 * corelow.c (solist.h, unordered_map): Include.
2264 (class core_target): Add field m_core_file_mappings and
2265 method build_file_mappings.
2266 (core_target::core_target): Call build_file_mappings.
2267 (core_target::~core_target): Free memory associated with
2268 m_core_file_mappings.
2269 (core_target::build_file_mappings): New method.
2270 (core_target::xfer_partial): Use m_core_file_mappings
2271 for memory transfers.
2272 * linux-tdep.c (linux_read_core_file_mappings): New
2273 function.
2274 (linux_core_info_proc_mappings): Rewrite to use
2275 linux_read_core_file_mappings.
2276 (linux_init_abi): Register linux_read_core_file_mappings.
2277
2278 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2279
2280 * arch-utils.c (default_read_core_file_mappings): New function.
2281 * arch-utils.c (default_read_core_file_mappings): Declare.
2282 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2283 * gdbarch.h, gdbarch.c: Regenerate.
2284
2285 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2286
2287 PR corefiles/25631
2288 * corelow.c (core_target:xfer_partial): Revise
2289 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2290 case after first checking the stratum beneath the core
2291 target.
2292 (has_all_memory): Return true.
2293 * target.c (raw_memory_xfer_partial): Revise comment
2294 regarding use of has_all_memory.
2295
2296 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2297
2298 * exec.h (section_table_xfer_memory): Revise declaration,
2299 replacing section name parameter with an optional callback
2300 predicate.
2301 * exec.c (section_table_xfer_memory): Likewise.
2302 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2303 of section_table_xfer_memory.
2304
2305 2020-07-22 Tom Tromey <tromey@adacore.com>
2306
2307 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2308 lookup_symbol_search_name.
2309
2310 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2311
2312 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2313 redundant local variable.
2314 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2315 reference, not pointer, update code accordingly.
2316
2317 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2318 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2319
2320 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2321 * jit.c (jit_breakpoint_re_set_internal): Use the
2322 `skip_jit_symbol_lookup` field.
2323
2324 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2325 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2326
2327 * jit.c (jit_read_descriptor): Define the descriptor address once,
2328 use twice.
2329 (jit_breakpoint_deleted): Move the declaration of the loop variable
2330 `iter` into the loop header.
2331 (jit_breakpoint_re_set_internal): Move the declaration of the local
2332 variable `objf_data` to the first point of definition.
2333 (jit_event_handler): Move the declaration of local variables
2334 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2335 Rename `objf` to `jited`.
2336
2337 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2338
2339 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2340 Remove.
2341 * jit.c (get_jiter_objfile_data): Update.
2342
2343 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2344 Simon Marchi <simon.marchi@polymtl.ca>
2345
2346 * jit.c (struct jit_program_space_data): Remove.
2347 (jit_program_space_key): Remove.
2348 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2349 stuff.
2350 (get_jit_program_space_data): Remove.
2351 (jit_breakpoint_deleted): Iterate on all of the program space's
2352 objfiles.
2353 (jit_inferior_init): Likewise.
2354 (jit_breakpoint_re_set_internal): Likewise. Also change return
2355 type to void.
2356 (jit_breakpoint_re_set): Pass current_program_space to
2357 jit_breakpoint_re_set_internal.
2358
2359 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2360
2361 * jit.h (struct jiter_objfile_data) <cached_code_address,
2362 jit_breakpoint>: Move to here from ...
2363 * jit.c (jit_program_space_data): ... here.
2364 (jiter_objfile_data::~jiter_objfile_data): Update.
2365 (jit_breakpoint_deleted): Update.
2366 (jit_breakpoint_re_set_internal): Update.
2367
2368 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2369
2370 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2371 checks.
2372 (jit_read_descriptor): Remove NULL check.
2373 (jit_event_handler): Add an assertion.
2374
2375 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2376
2377 * jit.h (struct jit_objfile_data): Split into...
2378 (struct jiter_objfile_data): ... this ...
2379 (struct jited_objfile_data): ... and this.
2380 * objfiles.h (struct objfile) <jit_data>: Remove.
2381 <jiter_data, jited_data>: New fields.
2382 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2383 (jiter_objfile_data::~jiter_objfile_data): ... this.
2384 (get_jit_objfile_data): Rename to ...
2385 (get_jiter_objfile_data): ... this.
2386 (add_objfile_entry): Update.
2387 (jit_read_descriptor): Use get_jiter_objfile_data.
2388 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2389 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2390 (jit_inferior_exit_hook): Use objfile's jited_data field.
2391
2392 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2393
2394 * jit.h: Forward-declare `struct minimal_symbol`.
2395 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2396 constructor, destructor, and an objfile* field.
2397 * jit.c (jit_objfile_data): Remove.
2398 (struct jit_objfile_data): Migrate from here to jit.h.
2399 (jit_objfile_data::~jit_objfile_data): New destructor
2400 implementation with code moved from free_objfile_data.
2401 (free_objfile_data): Delete.
2402 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2403 (jit_find_objf_with_entry_addr): Ditto.
2404 (jit_inferior_exit_hook): Ditto.
2405 (_initialize_jit): Remove the call to
2406 register_objfile_data_with_cleanup.
2407 * objfiles.h (struct objfile) <jit_data>: New field.
2408
2409 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2410
2411 * jit.h: Forward-declare `struct objfile`.
2412 (jit_event_handler): Add a second parameter, the JITer objfile.
2413 * jit.c (jit_read_descriptor): Change the signature to take the
2414 JITer objfile as an argument instead of the jit_program_space_data.
2415 (jit_inferior_init): Update the call to jit_read_descriptor.
2416 (jit_event_handler): Use the new JITer objfile argument when calling
2417 jit_read_descriptor.
2418 * breakpoint.c (handle_jit_event): Update the call to
2419 jit_event_handler to pass the JITer objfile.
2420
2421 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2422
2423 * gdbarch.c: Regenerate.
2424 * gdbarch.h: Regenerate.
2425 * gdbarch.sh (handle_segmentation_fault): Remove method.
2426 * infrun.c (handle_segmentation_fault): Remove.
2427 (print_signal_received_reason): Remove call to
2428 handle_segmentation_fault.
2429
2430 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2431
2432 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2433 Rename to sparc64_linux_report_signal_info and add siggnal
2434 argument.
2435 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2436 instead of sparc64_linux_handle_segmentation_fault.
2437
2438 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2439
2440 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2441 i386_linux_report_signal_info instead of
2442 i386_linux_handle_segmentation_fault.
2443 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2444 to i386_linux_report_signal_info and add siggnal argument.
2445 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2446 of i386_linux_handle_segmentation_fault.
2447 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2448 to i386_linux_report_signal_info and add siggnal argument.
2449
2450 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2451
2452 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2453 hook if present.
2454
2455 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2456
2457 * gdbarch.c: Regenerate.
2458 * gdbarch.h: Regenerate.
2459 * gdbarch.sh (report_signal_info): New method.
2460 * infrun.c (print_signal_received_reason): Invoke gdbarch
2461 report_signal_info hook if present.
2462
2463 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2464
2465 * python/py-registers.c : Add 'unordered_map' include.
2466 (gdbpy_new_reggroup): Renamed to...
2467 (gdbpy_get_reggroup): ...this. Update to only create register
2468 group descriptors when needed.
2469 (gdbpy_reggroup_iter_next): Update.
2470
2471 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2472
2473 * python/py-registers.c (gdbpy_register_object_data): New static
2474 global.
2475 (gdbpy_register_object_data_init): New function.
2476 (gdbpy_new_register_descriptor): Renamed to...
2477 (gdbpy_get_register_descriptor): ...this, and update to reuse
2478 existing register descriptors where possible.
2479 (gdbpy_register_descriptor_iter_next): Update.
2480 (gdbpy_initialize_registers): Register new gdbarch data.
2481
2482 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2483
2484 * linux-nat.c (stopped_pids): Make static.
2485
2486 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2487
2488 PR ada/26235
2489 * gdbtypes.c (ada_discrete_type_low_bound,
2490 ada_discrete_type_high_bound): Handle undefined bounds.
2491
2492 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2493
2494 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2495 declaration.
2496 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2497 function.
2498
2499 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2500
2501 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2502 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2503 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2504 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2505 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2506 method.
2507
2508 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2509
2510 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2511 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2512 which are deprecated in Guile 3.0.
2513 * configure.ac (try_guile_versions): Add "guile-3.0".
2514 * configure (try_guile_versions): Regenerate.
2515 * NEWS: Update entry.
2516
2517 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2518 Doug Evans <dje@google.com>
2519
2520 PR gdb/21104
2521 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2522 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2523 USING_GUILE_BEFORE_2_2.
2524 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2525 Change type to 'scm_t_port_type *'.
2526 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2527 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2528 parameter and honor it. Update callers.
2529 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2530 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2531 functions.
2532 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2533 USING_GUILE_BEFORE_2_2.
2534 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2535 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2536 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2537 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2538 and 'SCM_PORT_TYPE'.
2539 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2540 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2541 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2542 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2543 [!USING_GUILE_BEFORE_2_2]: New functions.
2544 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2545 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2546 'gdbscm_memory_port_read'.
2547 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2548 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2549 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2550 function.
2551 (ioscm_init_memory_port): Remove.
2552 (ioscm_init_memory_port_stream): New function
2553 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2554 function.
2555 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2556 Return scm_from_uint (0).
2557 (gdbscm_set_memory_port_read_buffer_size_x)
2558 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2559 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2560 Return scm_from_uint (0).
2561 (gdbscm_set_memory_port_write_buffer_size_x)
2562 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2563 * configure.ac (try_guile_versions): Add "guile-2.2".
2564 * configure: Regenerate.
2565 * NEWS: Add entry.
2566
2567 2020-07-18 Tom Tromey <tom@tromey.com>
2568
2569 * linux-nat.c (linux_multi_process): Remove.
2570 (linux_nat_target::supports_multi_process): Return true.
2571
2572 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2575 (riscv_lookup_target_description): Return pointer out of
2576 unique_ptr.
2577 * target-descriptions.c (allocate_target_description): Add
2578 comment.
2579 (target_desc_deleter::operator()): Likewise.
2580 * target-descriptions.h (struct target_desc_deleter): Moved to
2581 gdbsupport/tdesc.h.
2582 (target_desc_up): Likewise.
2583
2584 2020-07-17 Tom Tromey <tromey@adacore.com>
2585
2586 * linux-nat.c (linux_nat_target::supports_non_stop)
2587 (linux_nat_target::always_non_stop_p): Use "true".
2588 (linux_nat_target::supports_disable_randomization): Use "true" and
2589 "false".
2590
2591 2020-07-16 Caroline Tice <cmtice@google.com>
2592
2593 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2594 (RNGLIST_HEADER_SIZE64): New constant definition.
2595 (struct dwop_section_names): Add rnglists_dwo.
2596 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2597 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2598 (struct dwo_sections): Add rnglists field.
2599 (read_attribut_reprocess): Add tag parameter.
2600 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2601 (cu_debug_rnglists_section): New function (decl & definition).
2602 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2603 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2604 die whose range is being checked; get rnglist section from
2605 cu_debug_rnglists_section, to get from either objfile or dwo file as
2606 appropriate. Add cases for DW_RLE_base_addressx,
2607 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2608 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2609 test inside if-condition and updating complaint message.
2610 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2611 dwarf2_rnglists_process.
2612 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2613 dwarf2_ranges_process.
2614 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2615 need_ranges_base and update comment appropriately. Also pass die tag
2616 to dwarf2_ranges_read.
2617 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2618 need_ranges_base and update comment appropriately. Also pass die tag
2619 to dwarf2_ranges_process.
2620 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2621 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2622 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2623 need_ranges_base and update comment appropriately. Also pass die tag
2624 to read_attribute_reprocess and dwarf2_ranges_read.
2625 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2626 and update function comment appropriately.
2627 (read_loclist_index): Call read_loclists_rnglists_header instead of
2628 read_loclist_header.
2629 (read_rnglist_index): New function.
2630 (read_attribute_reprocess): Add tag parameter. Add code for
2631 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2632 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2633
2634 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2635
2636 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2637 being resolved.
2638
2639 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2640
2641 * arch-utils.c (show_architecture): Update formatting of messages.
2642
2643 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2644
2645 * gdbtypes.h (struct type) <bounds>: Handle array and string
2646 types.
2647 * ada-lang.c (assign_aggregate): Use type::bounds on
2648 array/string type.
2649 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2650 * c-varobj.c (c_number_of_children): Likewise.
2651 (c_describe_child): Likewise.
2652 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2653 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2654 (f_type_print_base): Likewise.
2655 * f-valprint.c (f77_array_offset_tbl): Likewise.
2656 (f77_get_upperbound): Likewise.
2657 (f77_print_array_1): Likewise.
2658 * guile/scm-type.c (gdbscm_type_range): Likewise.
2659 * m2-typeprint.c (m2_array): Likewise.
2660 (m2_is_long_set_of_type): Likewise.
2661 * m2-valprint.c (get_long_set_bounds): Likewise.
2662 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2663 * python/py-type.c (typy_range): Likewise.
2664 * rust-lang.c (rust_internal_print_type): Likewise.
2665 * type-stack.c (type_stack::follow_types): Likewise.
2666 * valarith.c (value_subscripted_rvalue): Likewise.
2667 * valops.c (value_cast): Likewise.
2668
2669 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2670
2671 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2672 callers to use the equivalent accessor methods.
2673
2674 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2675
2676 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2677 (struct type) <bit_stride>: New method.
2678 (TYPE_BIT_STRIDE): Remove.
2679 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2680
2681 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2682
2683 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2684 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2685 callers to use the equivalent accessor methods instead.
2686
2687 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2688
2689 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2690 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2691 callers to use the equivalent accessor methods instead.
2692
2693 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2694
2695 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2696 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2697 to use dynamic_prop::kind.
2698
2699 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2700
2701 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2702 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2703 to get the bound property's kind and check against
2704 PROP_UNDEFINED.
2705
2706 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2707
2708 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2709 all callers to use type::range_bounds followed by
2710 dynamic_prop::{low,high}.
2711
2712 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2713
2714 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2715 const_val, set_const_val, baton, set_locexpr, set_loclist,
2716 set_addr_offset, variant_parts, set_variant_parts,
2717 original_type, set_original_type>: New methods.
2718 <kind>: Rename to...
2719 <m_kind>: ... this. Update all users to use the new methods
2720 instead.
2721 <data>: Rename to...
2722 <m_data>: ... this. Update all users to use the new methods
2723 instead.
2724
2725 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2726
2727 * gdbtypes.c (get_discrete_bounds): Return failure if
2728 the range type's bounds are not both defined and constant
2729 values.
2730 (get_array_bounds): Update comment. Remove undefined bound check.
2731
2732 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2733
2734 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2735 the type::bounds method directly.
2736
2737 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2738
2739 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2740 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2741 are used to set the range type's bounds to use set_bounds.
2742
2743 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2744
2745 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2746
2747 2020-07-10 Pedro Alves <pedro@palves.net>
2748
2749 * gdbthread.h (inferior_ref): Define.
2750 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2751 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2752 * thread.c
2753 (scoped_restore_current_thread::restore):
2754 Adjust to gdb::ref_ptr.
2755 (scoped_restore_current_thread::~scoped_restore_current_thread):
2756 Remove manual decref handling.
2757 (scoped_restore_current_thread::scoped_restore_current_thread):
2758 Adjust to use
2759 inferior_ref::new_reference/thread_info_ref::new_reference.
2760 Incref the thread before calling get_frame_id instead of after.
2761 Let TARGET_CLOSE_ERROR propagate.
2762
2763 2020-07-10 Pedro Alves <pedro@palves.net>
2764
2765 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2766 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2767 NOT_AVAILABLE_ERROR.
2768 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2769 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2770
2771 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2772 Pedro Alves <pedro@palves.net>
2773
2774 PR gdb/26199
2775 * infrun.c (threads_are_resumed_pending_p): Delete.
2776 (do_target_wait): Remove threads_are_executing and
2777 threads_are_resumed_pending_p checks from the inferior_matches
2778 lambda. Update comments.
2779
2780 2020-07-10 Pedro Alves <pedro@palves.net>
2781
2782 PR gdb/26199
2783 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2784 executing threads.
2785
2786 2020-07-10 Pedro Alves <pedro@palves.net>
2787
2788 PR gdb/26199
2789 * infrun.c (handle_no_resumed): Handle multiple targets.
2790
2791 2020-07-10 Pedro Alves <pedro@palves.net>
2792
2793 PR gdb/26199
2794 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2795 target_is_async_p.
2796
2797 2020-07-10 Pedro Alves <pedro@palves.net>
2798
2799 PR gdb/26199
2800 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2801 threads, not all threads.
2802
2803 2020-07-10 Pedro Alves <pedro@palves.net>
2804
2805 PR gdb/26199
2806 * remote.c (remote_target::open_1): Pass remote target pointer as
2807 data to create_async_event_handler.
2808 (remote_async_inferior_event_handler): Mark async event handler
2809 before returning if the remote target still has either pending
2810 events or unacknowledged notifications.
2811
2812 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2813
2814 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2815 declaration.
2816 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2817 function.
2818
2819 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2820
2821 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2822 inferior_ptid.
2823
2824 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2825
2826 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2827 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2828 AT_FREEBSD_PS_STRINGS.
2829
2830 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2831
2832 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2833 of debugfile path on Windows.
2834
2835 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2836
2837 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2838 argument to 'data'.
2839
2840 2020-07-08 Tom Tromey <tromey@adacore.com>
2841
2842 * ada-lang.c (ada_exception_message_1): Use read_memory.
2843
2844 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2845
2846 PR python/22748
2847 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2848 special handling for inline frames.
2849 * findvar.c (value_of_register_lazy): Skip inline frames when
2850 creating lazy register values.
2851 * frame.c (frame_id_computed_p): Delete definition.
2852 * frame.h (frame_id_computed_p): Delete declaration.
2853
2854 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2855
2856 * NEWS: Mention additions to Python API.
2857 * python/py-arch.c (archpy_register_groups): New function.
2858 (arch_object_methods): Add 'register_groups' method.
2859 * python/py-registers.c (reggroup_iterator_object): New struct.
2860 (reggroup_object): New struct.
2861 (gdbpy_new_reggroup): New function.
2862 (gdbpy_reggroup_to_string): New function.
2863 (gdbpy_reggroup_name): New function.
2864 (gdbpy_reggroup_iter): New function.
2865 (gdbpy_reggroup_iter_next): New function.
2866 (gdbpy_new_reggroup_iterator): New function
2867 (gdbpy_initialize_registers): Register new types.
2868 (reggroup_iterator_object_type): Define new Python type.
2869 (gdbpy_reggroup_getset): New static global.
2870 (reggroup_object_type): Define new Python type.
2871 * python/python-internal.h
2872
2873 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2874
2875 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2876 * python/py-arch.c (archpy_registers): New function.
2877 (arch_object_methods): Add 'registers' method.
2878 * python/py-registers.c: New file.
2879 * python/python-internal.h
2880 (gdbpy_new_register_descriptor_iterator): Declare.
2881 (gdbpy_initialize_registers): Declare.
2882 * python/python.c (do_start_initialization): Call
2883 gdbpy_initialize_registers.
2884 * NEWS: Mention additions to the Python API.
2885
2886 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2887
2888 * NEWS: Mention new Python API method.
2889 * python/py-unwind.c (pending_framepy_architecture): New function.
2890 (pending_frame_object_methods): Add architecture method.
2891
2892 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2893
2894 * gdbarch.c: Regenerate.
2895 * gdbarch.h: Regenerate.
2896 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2897 (gdbarch_data): Use internal_error for the case where
2898 deprecated_set_gdbarch_data was originally needed.
2899 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2900 and use passed in obstack.
2901 (libunwind_frame_set_descr): Should no longer get back NULL from
2902 gdbarch_data.
2903 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2904 type.
2905 * user-regs.c (user_regs_init): Update parameters, and use passed
2906 in obstack.
2907 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2908 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2909
2910 2020-07-06 Tom de Vries <tdevries@suse.de>
2911
2912 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2913 End-Of-Sequence in lte_is_less_than.
2914 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2915 "gdb: Don't reorder line table entries too much when sorting".
2916
2917 2020-07-06 Tom de Vries <tdevries@suse.de>
2918
2919 PR tui/26205
2920 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2921
2922 2020-07-05 Tom de Vries <tdevries@suse.de>
2923
2924 PR build/26187
2925 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2926 std::uncaught_exceptions instead of deprecated
2927 std::uncaught_exception.
2928
2929 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2930
2931 * macroexp.h (macro_stringify): Return
2932 gdb::unique_xmalloc_ptr<char>.
2933 * macroexp.c (macro_stringify): Likewise.
2934 * macrotab.c (fixup_definition): Update.
2935
2936 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2937
2938 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2939 (lex_one_token): Update.
2940 * macroexp.c (struct macro_buffer) <release>: Return
2941 gdb::unique_xmalloc_ptr<char>.
2942 (macro_stringify): Update.
2943 (macro_expand): Update.
2944 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2945 * macroexp.h (macro_expand_next): Likewise.
2946
2947 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2948
2949 * macroexp.h (macro_lookup_ftype): Remove.
2950 (macro_expand, macro_expand_once, macro_expand_next): Remove
2951 lookup function parameters, add scope parameter.
2952 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2953 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2954 * macroscope.h (standard_macro_lookup): Change parameter type
2955 to macro_scope.
2956 * macroscope.c (standard_macro_lookup): Likewise.
2957 * c-exp.y (lex_one_token): Update.
2958 * macrocmd.c (macro_expand_command): Likewise.
2959 (macro_expand_once_command): Likewise.
2960
2961 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2962
2963 * inf-loop.c (inferior_event_handler): Remove client_data param.
2964 * inf-loop.h (inferior_event_handler): Likewise.
2965 * infcmd.c (step_1): Adjust.
2966 * infrun.c (proceed): Adjust.
2967 (fetch_inferior_event): Remove client_data param.
2968 (infrun_async_inferior_event_handler): Adjust.
2969 * infrun.h (fetch_inferior_event): Remove `void *` param.
2970 * linux-nat.c (handle_target_event): Adjust.
2971 * record-btrace.c (record_btrace_handle_async_inferior_event):
2972 Adjust.
2973 * record-full.c (record_full_async_inferior_event_handler):
2974 Adjust.
2975 * remote.c (remote_async_inferior_event_handler): Adjust.
2976
2977 2020-07-01 Tom Tromey <tom@tromey.com>
2978
2979 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2980 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2981
2982 2020-07-01 Tom Tromey <tom@tromey.com>
2983
2984 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2985 tui_gen_win_info.
2986 (tui_win_info::make_window): Merge with
2987 tui_gen_win_info::make_window.
2988 (tui_win_info::make_visible): Move from tui_gen_win_info.
2989 * tui/tui-win.c (tui_win_info::max_width): Move from
2990 tui_gen_win_info.
2991 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2992 type.
2993 <window_factory>: Likewise.
2994 * tui/tui-layout.c (tui_win_info::resize): Move from
2995 tui_gen_win_info.
2996 (make_standard_window): Change return type.
2997 (get_locator_window, tui_get_window_by_name): Likewise.
2998 (tui_layout_window::apply): Remove a cast.
2999 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3000 (struct tui_win_info): Merge with tui_gen_win_info.
3001 (struct tui_gen_win_info): Remove.
3002
3003 2020-07-01 Tom Tromey <tom@tromey.com>
3004
3005 * tui/tui-stack.h (struct tui_locator_window): Derive from
3006 tui_win_info.
3007 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3008 <can_box>: New method.
3009
3010 2020-07-01 Tom Tromey <tom@tromey.com>
3011
3012 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3013
3014 2020-07-01 Tom Tromey <tom@tromey.com>
3015
3016 * tui/tui-regs.c (tui_data_window::display_registers_from)
3017 (tui_data_window::display_registers_from)
3018 (tui_data_window::first_data_item_displayed)
3019 (tui_data_window::delete_data_content_windows): Update.
3020 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3021 Remove.
3022 (tui_data_window::check_register_values): Update.
3023 (tui_data_item_window::rerender): Add parameters. Update.
3024 (tui_data_item_window::refresh_window): Remove.
3025 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3026 virtual.
3027 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3028 tui_gen_win_info.
3029 <refresh_window, max_height, min_height>: Remove.
3030 <rerender>: Add parameters.
3031 <x, y, visible>: New members.
3032 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3033 <m_item_width>: New member.
3034
3035 2020-07-01 Tom Tromey <tom@tromey.com>
3036
3037 * tui/tui-regs.c (tui_data_window::show_register_group)
3038 (tui_data_window::check_register_values): Update.
3039 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3040 from item_no.
3041
3042 2020-07-01 Tom Tromey <tom@tromey.com>
3043
3044 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3045 useless "if".
3046
3047 2020-07-01 Tom Tromey <tom@tromey.com>
3048
3049 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3050 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3051
3052 2020-07-01 Tom Tromey <tom@tromey.com>
3053
3054 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3055 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3056 (struct tui_line_or_address): Move from tui-data.h.
3057 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3058 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3059 (tui_cmd_window, tui_source_window_base, tui_source_window)
3060 (tui_disasm_window): Don't declare.
3061 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3062 to tui-winsource.h.
3063 (SINGLE_KEY): Move to tui-stack.c.
3064
3065 2020-07-01 Tom Tromey <tom@tromey.com>
3066
3067 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3068 std::string.
3069 * tui/tui-regs.c (class tab_expansion_file): New.
3070 (tab_expansion_file::write): New method.
3071 (tui_register_format): Change return type. Use
3072 tab_expansion_file.
3073 (tui_get_register, tui_data_window::display_registers_from)
3074 (tui_data_item_window::rerender): Update.
3075 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3076 * tui/tui-io.c (tui_expand_tabs): Remove.
3077
3078 2020-07-01 Tom Tromey <tom@tromey.com>
3079
3080 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3081
3082 2020-07-01 Fangrui Song <maskray@google.com>
3083
3084 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3085
3086 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3087
3088 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3089 forms for DW_AT_associated and DW_AT_allocated attributes,
3090 which is already checked in function attr_to_dynamic_prop.
3091
3092 2020-06-30 Tom Tromey <tromey@adacore.com>
3093
3094 * dwarf2/read.c (quirk_rust_enum): Correctly call
3095 alloc_rust_variant for default-less enum.
3096
3097 2020-06-30 Tom Tromey <tromey@adacore.com>
3098
3099 PR build/26183:
3100 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3101 gdb::to_string.
3102
3103 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3106 * gdbarch.h: Re-generate.
3107
3108 2020-06-28 Tom Tromey <tom@tromey.com>
3109
3110 * command.h (cmd_types): Remove.
3111 (cmd_type): Don't declare.
3112 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3113 typedef.
3114 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3115 * cli/cli-decode.c (cmd_type): Remove.
3116
3117 2020-06-27 Pedro Alves <palves@redhat.com>
3118
3119 * fork-child.c (prefork_hook): Adjust.
3120 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3121 Delete.
3122 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3123 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3124 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3125 Remove declarations.
3126 (struct inferior) <set_tty, tty>: New methods.
3127 (struct inferior) <terminal>: Rename to ...
3128 (struct inferior) <m_terminal>: ... this and make private.
3129 * main.c (captured_main_1): Adjust.
3130 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3131 (mi_cmd_inferior_tty_show): Adjust.
3132 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3133 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3134
3135 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3136
3137 * configure.ac: Add --enable-libctf: handle --disable-static
3138 properly.
3139 * acinclude.m4: sinclude ../config/enable.m4.
3140 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3141 (LIBCTF): Substitute in.
3142 (CTF_DEPS): New, likewise.
3143 (CLIBS): libctf needs symbols from libbfd: move earlier.
3144 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3145 flags.
3146 * ctfread.c: Surround in ENABLE_LIBCTF.
3147 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3148 * configure: Regenerate.
3149 * config.in: Likewise.
3150
3151 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3152
3153 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3154
3155 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3156
3157 * inferior.h (struct inferior) <terminal>: Change type to
3158 gdb::unique_xmalloc_ptr<char>.
3159 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3160 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3161 field, adjust to unique pointer.
3162 (get_inferior_io_terminal): Adjust to unique pointer.
3163
3164 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3165
3166 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3167 registers, not just the known core set of registers.
3168
3169 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3170
3171 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3172 fflags, frm, and fcsr registers.
3173 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3174 restore groups.
3175 (riscv_tdesc_unknown_reg): New function.
3176 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3177 tdesc_use_registers.
3178 * riscv-tdep.h (struct gdbarch_tdep): Add
3179 unknown_csrs_first_regnum, unknown_csrs_count,
3180 duplicate_fflags_regnum, duplicate_frm_regnum, and
3181 duplicate_fcsr_regnum fields.
3182
3183 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3184
3185 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3186 callback, use the callback (when not null) to help number unknown
3187 registers.
3188 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3189 (tdesc_use_registers): Add extra parameter to declaration.
3190
3191 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3192
3193 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3194 in the file.
3195 (class riscv_pending_register_alias): Likewise.
3196 (riscv_register_feature::register_info): Change 'required_p' field
3197 to 'required', and change its type. Add 'check' member function.
3198 (riscv_register_feature::register_info::check): Define new member
3199 function.
3200 (riscv_xreg_feature): Change initialisation of 'required' field.
3201 (riscv_freg_feature): Likewise.
3202 (riscv_virtual_feature): Likewise.
3203 (riscv_csr_feature): Likewise.
3204 (riscv_check_tdesc_feature): Take extra parameter, the csr
3205 tdesc_feature, rewrite the function to use the new
3206 riscv_register_feature::register_info::check function.
3207 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3208
3209 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3210
3211 * features/Makefile: Remove all references to the deleted files
3212 below.
3213 * features/riscv/32bit-csr.c: Deleted.
3214 * features/riscv/32bit-csr.xml: Deleted.
3215 * features/riscv/64bit-csr.c: Deleted.
3216 * features/riscv/64bit-csr.xml: Deleted.
3217 * features/riscv/rebuild-csr-xml.sh: Deleted.
3218
3219 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3220
3221 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3222 whitespace error for declaration of names member variable.
3223 (struct riscv_register_feature): Add new prefer_first_name member
3224 variable, and fix whitespace error in declaration of registers.
3225 (riscv_xreg_feature): Initialize prefer_first_name field.
3226 (riscv_freg_feature): Likewise.
3227 (riscv_virtual_feature): Likewise.
3228 (riscv_csr_feature): Likewise.
3229 (riscv_register_name): Expand on comments. Remove register name
3230 modifications for CSR and virtual registers.
3231
3232 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3233
3234 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3235 errors.
3236
3237 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3238
3239 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3240 riscv-opc.h.
3241 (class riscv_pending_register_alias): New class.
3242 (riscv_check_tdesc_feature): Take vector of pending aliases and
3243 populate it as appropriate.
3244 (riscv_setup_register_aliases): Delete.
3245 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3246 to riscv_check_tdesc_feature in all cases. Use the vector to
3247 create the register aliases.
3248
3249 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3250
3251 * sol2-tdep.c (sol2_static_transform_name): Remove.
3252 (sol2_init_abi): Don't register it.
3253 * gdbarch.sh (static_transform_name): Remove.
3254 * gdbarch.c, gdbarch.h: Regenerate.
3255
3256 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3257 gdbarch_static_transform_name.
3258 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3259 * stabsread.c (define_symbol) <'X'>: Remove.
3260 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3261 handling.
3262 <'V'>: Likewise.
3263 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3264 <'S'>: Remove call to gdbarch_static_transform_name.
3265
3266 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3267
3268 * procfs.c (procfs_pre_trace): New function.
3269 (procfs_target::create_inferior): Pass it to fork_inferior.
3270
3271 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3272
3273 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3274 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3275 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3276 sol2-tdep.o, sparc-sol2-tdep.o.
3277 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3278 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3279 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3280 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3281
3282 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3283
3284 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3285 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3286 Call sol2_init_abi.
3287 Remove calls to set_gdbarch_skip_solib_resolver,
3288 set_gdbarch_core_pid_to_str.
3289 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3290 (i386_sol2_static_transform_name): Remove.
3291 (i386_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, set_gdbarch_core_pid_to_str.
3295 Use sol2_sigtramp_p.
3296 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3297 (sol2_sigtramp_p): New function.
3298 (sol2_static_transform_name): New function.
3299 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3300 (sol2_init_abi): New function.
3301 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3302 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3303 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3304 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3305 (sparc_sol2_static_transform_name): Remove.
3306 (sparc32_sol2_init_abi): Call sol2_init_abi.
3307 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3308 set_gdbarch_static_transform_name,
3309 set_gdbarch_skip_solib_resolver,
3310 set_gdbarch_core_pid_to_str.
3311 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3312 (sparc_sol2_static_transform_name): Remove
3313 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3314 call sol2_sigtramp_p.
3315 (sparc64_sol2_init_abi): Call sol2_init_abi.
3316 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3317 set_gdbarch_static_transform_name,
3318 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3319
3320 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3321
3322 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3323 * exec.c (validate_exec_file): If from_tty, set both
3324 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3325 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3326 and from_tty, unconditionally ask a confirmation.
3327
3328 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3329
3330 * target-descriptions.c (tdesc_architecture_name): Protect against
3331 NULL pointer dereference.
3332 (maint_print_xml_tdesc_cmd): New function.
3333 (_initialize_target_descriptions): Register new 'maint print
3334 xml-tdesc' command and give it the filename completer.
3335 * NEWS: Mention new 'maint print xml-tdesc' command.
3336
3337 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3338
3339 * target-descriptions.c (class tdesc_compatible_info): New class.
3340 (struct target_desc): Change type of compatible vector.
3341 (tdesc_compatible_p): Update for change in type of
3342 target_desc::compatible.
3343 (tdesc_compatible_info_list): New function.
3344 (tdesc_compatible_info_arch_name): New function.
3345 (tdesc_add_compatible): Update for change in type of
3346 target_desc::compatible.
3347 (print_c_tdesc::visit_pre): Likewise.
3348
3349 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3350
3351 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3352 whitespace to underscore.
3353 (maint_print_c_tdesc_cmd): Use fake filename for target
3354 descriptions that came from the target.
3355 (_initialize_target_descriptions): Add filename command completion
3356 for 'maint print c-tdesc'.
3357
3358 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3359
3360 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3361 lines.
3362
3363 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3364
3365 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3366 lines.
3367 (dwarf2_find_location_expression): Likewise.
3368 (call_site_parameter_matches): Likewise.
3369 (dwarf2_compile_expr_to_ax): Likewise.
3370 (disassemble_dwarf_expression): Likewise.
3371 (loclist_describe_location): Likewise.
3372
3373 2020-06-23 Pedro Alves <palves@redhat.com>
3374
3375 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3376 progspace-and-thread.h. Include scoped-mock-context.h instead.
3377 (register_to_value_test): Use scoped_mock_context.
3378 * regcache.c: Include "scoped-mock-context.h".
3379 (cooked_read_test): Don't error out if a target is already pushed.
3380 Use scoped_mock_context. Adjust.
3381 * scoped-mock-context.h: New file.
3382
3383 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3384
3385 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3386 initializer.
3387 (ada_language::is_string_type_p): New member function.
3388 * c-lang.c (c_language_data): Delete la_is_string_type_p
3389 initializer.
3390 (cplus_language_data): Likewise.
3391 (asm_language_data): Likewise.
3392 (minimal_language_data): Likewise.
3393 * d-lang.c (d_language_data): Likewise.
3394 * f-lang.c (f_is_string_type_p): Delete function, implementation
3395 moved to f_language::is_string_type_p.
3396 (f_language_data): Delete la_is_string_type_p initializer.
3397 (f_language::is_string_type_p): New member function,
3398 implementation from f_is_string_type_p.
3399 * go-lang.c (go_is_string_type_p): Delete function, implementation
3400 moved to go_language::is_string_type_p.
3401 (go_language_data): Delete la_is_string_type_p initializer.
3402 (go_language::is_string_type_p): New member function,
3403 implementation from go_is_string_type_p.
3404 * language.c (language_defn::is_string_type_p): Define new member
3405 function.
3406 (default_is_string_type_p): Make static, add comment copied from
3407 header file.
3408 (unknown_language_data): Delete la_is_string_type_p initializer.
3409 (unknown_language::is_string_type_p): New member function.
3410 (auto_language_data): Delete la_is_string_type_p initializer.
3411 (auto_language::is_string_type_p): New member function.
3412 * language.h (language_data): Delete la_is_string_type_p field.
3413 (language_defn::is_string_type_p): Declare new function.
3414 (default_is_string_type_p): Delete desclaration, move comment to
3415 definition.
3416 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3417 moved to m2_language::is_string_type_p.
3418 (m2_language_data): Delete la_is_string_type_p initializer.
3419 (m2_language::is_string_type_p): New member function,
3420 implementation from m2_is_string_type_p.
3421 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3422 initializer.
3423 * opencl-lang.c (opencl_language_data): Likewise.
3424 * p-lang.c (pascal_is_string_type_p): Delete function,
3425 implementation moved to pascal_language::is_string_type_p.
3426 (pascal_language_data): Delete la_is_string_type_p initializer.
3427 (pascal_language::is_string_type_p): New member function,
3428 implementation from pascal_is_string_type_p.
3429 * rust-lang.c (rust_is_string_type_p): Delete function,
3430 implementation moved to rust_language::is_string_type_p.
3431 (rust_language_data): Delete la_is_string_type_p initializer.
3432 (rust_language::is_string_type_p): New member function,
3433 implementation from rust_is_string_type_p.
3434 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3435 is_string_type_p.
3436
3437 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3438
3439 * ada-lang.c (ada_language_data): Delete la_print_typedef
3440 initializer.
3441 (ada_language::print_typedef): New member function.
3442 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3443 (cplus_language_data): Likewise.
3444 (asm_language_data): Likewise.
3445 (minimal_language_data): Likewise.
3446 * d-lang.c (d_language_data): Likewise.
3447 * f-lang.c (f_language_data): Likewise.
3448 (f_language::print_typedef): New member function.
3449 * go-lang.c (go_language_data): Delete la_print_typedef
3450 initializer.
3451 * language.c (language_defn::print_typedef): Define member
3452 function.
3453 (unknown_language_data): Delete la_print_typedef initializer.
3454 (unknown_language::print_typedef): New member function.
3455 (auto_language_data): Delete la_print_typedef initializer.
3456 (auto_language::print_typedef): New member function.
3457 * language.h (language_data): Delete la_print_typedef field.
3458 (language_defn::print_typedef): Declare new member function.
3459 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3460 (default_print_typedef): Delete declaration.
3461 * m2-lang.c (m2_language_data): Delete la_print_typedef
3462 initializer.
3463 (m2_language::print_typedef): New member function.
3464 * objc-lang.c (objc_language_data): Delete la_print_typedef
3465 initializer.
3466 * opencl-lang.c (opencl_language_data): Likewise.
3467 * p-lang.c (pascal_language_data): Likewise.
3468 (pascal_language::print_typedef): New member function.
3469 * rust-lang.c (rust_print_typedef): Delete function,
3470 implementation moved to rust_language::print_typedef.
3471 (rust_language): Delete la_print_typedef initializer.
3472 (rust_language::print_typedef): New member function,
3473 implementation from rust_print_typedef.
3474 * typeprint.c (default_print_typedef): Delete.
3475
3476 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3477
3478 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3479 (ada_language::printstr): New member function.
3480 * c-lang.c (c_language_data): Delete la_printstr initializer.
3481 (cplus_language_data): Likewise.
3482 (asm_language_data): Likewise.
3483 (minimal_language_data): Likewise.
3484 * d-lang.c (d_language_data): Likewise.
3485 * f-lang.c (f_printstr): Rename to f_language::printstr.
3486 (f_language_data): Delete la_printstr initializer.
3487 (f_language::printstr): New member function, implementation from
3488 f_printstr.
3489 * go-lang.c (go_language_data): Delete la_printstr initializer.
3490 * language.c (language_defn::printstr): Define new member
3491 function.
3492 (unk_lang_printstr): Delete.
3493 (unknown_language_data): Delete la_printstr initializer.
3494 (unknown_language::printstr): New member function.
3495 (auto_language_data): Delete la_printstr initializer.
3496 (auto_language::printstr): New member function.
3497 * language.h (language_data): Delete la_printstr field.
3498 (language_defn::printstr): Declare new member function.
3499 (LA_PRINT_STRING): Update call to printstr.
3500 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3501 (m2_language_data): Delete la_printstr initializer.
3502 (m2_language::printstr): New member function, implementation from
3503 m2_printstr.
3504 * objc-lang.c (objc_language_data): Delete la_printstr
3505 initializer.
3506 * opencl-lang.c (opencl_language_data): Likewise.
3507 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3508 (pascal_language_data): Delete la_printstr initializer.
3509 (pascal_language::printstr): New member function, implementation
3510 from pascal_printstr.
3511 * p-lang.h (pascal_printstr): Delete declaration.
3512 * rust-lang.c (rust_printstr): Update header comment.
3513 (rust_language_data): Delete la_printstr initializer.
3514 (rust_language::printstr): New member function.
3515
3516 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3517
3518 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3519 (ada_language::printchar): New member function.
3520 * c-lang.c (c_language_data): Delete la_printchar initializer.
3521 (cplus_language_data): Likewise.
3522 (asm_language_data): Likewise.
3523 (minimal_language_data): Likewise.
3524 * d-lang.c (d_language_data): Likewise.
3525 * f-lang.c (f_printchar): Rename to f_language::printchar.
3526 (f_language_data): Delete la_printchar initializer.
3527 (f_language::printchar): New member function, implementation from
3528 f_printchar.
3529 * go-lang.c (go_language_data): Delete la_printchar initializer.
3530 * language.c (unk_lang_printchar): Delete.
3531 (language_defn::printchar): Define new member function.
3532 (unknown_language_data): Delete la_printchar initializer.
3533 (unknown_language::printchar): New member function.
3534 (auto_language_data): Delete la_printchar initializer.
3535 (auto_language::printchar): New member function.
3536 * language.h (language_data): Delete la_printchar field.
3537 (language_defn::printchar): Declare new member function.
3538 (LA_PRINT_CHAR): Update call to printchar.
3539 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3540 (m2_language::printchar): New member function.
3541 * objc-lang.c (objc_language_data): Delete la_printchar
3542 initializer.
3543 * opencl-lang.c (opencl_language_data): Likewise.
3544 * p-lang.c (pascal_language_data): Delete la_printchar
3545 initializer.
3546 (pascal_language::printchar): New member function.
3547 * rust-lang.c (rust_printchar): Rename to
3548 rust_language::printchar.
3549 (rust_language_data): Delete la_printchar initializer.
3550 (rust_language::printchar): New member function, implementation
3551 from rust_printchar.
3552
3553 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3554
3555 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3556 (ada_language_data): Delete la_emitchar initializer.
3557 (ada_language::emitchar): New member function, implementation from
3558 emit_char.
3559 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3560 (cplus_language_data): Likewise.
3561 (asm_language_data): Likewise.
3562 (minimal_language_data): Likewise.
3563 * d-lang.c (d_language_data): Likewise.
3564 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3565 (f_language_data): Delete la_emitchar initializer.
3566 (f_language::emitchar): New member function, implementation from
3567 f_emit_char.
3568 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3569 * language.c (unk_lang_emit_char): Delete.
3570 (language_defn::emitchar): New member function definition.
3571 (unknown_language_data): Delete la_emitchar initializer.
3572 (unknown_language::emitchar): New member function.
3573 (auto_language_data): Delete la_emitchar initializer.
3574 (auto_language::emitchar): New member function.
3575 * language.h (language_data): Delete la_emitchar field.
3576 (language_defn::emitchar): New member field declaration.
3577 (LA_EMIT_CHAR): Update call to emitchar.
3578 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3579 (m2_language_data): Delete la_emitchar initializer.
3580 (m2_language::emitchar): New member function, implementation from
3581 m2_emit_char.
3582 * objc-lang.c (objc_language_data): Delete la_emitchar
3583 initializer.
3584 * opencl-lang.c (opencl_language_data): Likewise.
3585 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3586 (pascal_language_data): Delete la_emitchar initializer.
3587 (pascal_language::emitchar): New member function, implementation
3588 from pascal_emit_char.
3589 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3590 (rust_language_data): Delete la_emitchar initializer.
3591 (rust_language::emitchar): New member function, implementation
3592 from rust_emitchar.
3593
3594 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3595
3596 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3597 (ada_language_data): Delete la_post_parser initializer.
3598 (ada_language::post_parser): New member function.
3599 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3600 (cplus_language_data): Likewise.
3601 (asm_language_data): Likewise.
3602 (minimal_language_data): Likewise.
3603 * d-lang.c (d_language_data): Likewise.
3604 * f-lang.c (f_language_data): Likewise.
3605 * go-lang.c (go_language_data): Likewise.
3606 * language.c (unknown_language_data): Likewise.
3607 (auto_language_data): Likewise.
3608 * language.h (language_data): Delete la_post_parser field.
3609 (language_defn::post_parser): New member function.
3610 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3611 * objc-lang.c (objc_language_data): Likewise.
3612 * opencl-lang.c (opencl_language_data): Likewise.
3613 * p-lang.c (pascal_language_data): Likewise.
3614 * parse.c (parse_exp_in_context): Update call to post_parser.
3615 (null_post_parser): Delete definition.
3616 * parser-defs.h (null_post_parser): Delete declaration.
3617 * rust-lang.c (rust_language_data): Delete la_post_parser
3618 initializer.
3619
3620 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3621
3622 * ada-lang.c (parse): Rename to ada_language::parser.
3623 (ada_language_data): Delete la_parser initializer.
3624 (ada_language::parser): New member function, implementation from
3625 parse.
3626 * c-lang.c (c_language_data): Delete la_parser initializer.
3627 (cplus_language_data): Likewise.
3628 (asm_language_data): Likewise.
3629 (minimal_language_data): Likewise.
3630 * d-lang.c (d_language_data): Likewise.
3631 (d_language::parser): New member function.
3632 * f-lang.c (f_language_data): Delete la_parser initializer.
3633 (f_language::parser): New member function.
3634 * go-lang.c (go_language_data): Delete la_parser initializer.
3635 (go_language::parser): New member function.
3636 * language.c (unk_lang_parser): Delete.
3637 (language_defn::parser): Define new member function.
3638 (unknown_language_data): Delete la_parser initializer.
3639 (unknown_language::parser): New member function.
3640 (auto_language_data): Delete la_parser initializer.
3641 (auto_language::parser): New member function.
3642 * language.h (language_data): Delete la_parser field.
3643 (language_defn::parser): Declare new member function.
3644 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3645 (m2_language::parser): New member function.
3646 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3647 * opencl-lang.c (opencl_language_data): Likewise.
3648 * p-lang.c (pascal_language_data): Likewise.
3649 (pascal_language::parser): New member function.
3650 * parse.c (parse_exp_in_context): Update call to parser.
3651 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3652 (rust_language::parser): New member function.
3653
3654 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3655
3656 * top.c (print_gdb_configuration): Print --with-python-libdir
3657 configuration value.
3658
3659 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3660
3661 * NEWS: Mention change to the alias command.
3662
3663 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3664
3665 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3666 (alias_command_completer)
3667 (make_alias_options_def_group): New functions.
3668 (alias_opts, alias_option_defs): New struct and array.
3669 (alias_usage_error): Update usage.
3670 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3671 Use option framework.
3672 (_initialize_cli_cmds): Update alias command help.
3673 Update aliases command help.
3674 (show_user):
3675 Add NULL for new default_args lookup_cmd argument.
3676 (valid_command_p): Rename to validate_aliased_command.
3677 Add NULL for new default_args lookup_cmd argument. Verify that the
3678 aliased_command has no default args.
3679 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3680 (lookup_cmd_1, lookup_cmd): New argument default_args.
3681 (add_alias_cmd):
3682 Add NULL for new default_args lookup_cmd argument.
3683 (print_help_for_command): Show default args under the layout
3684 alias some_alias = some_aliased_cmd some_alias_default_arg.
3685 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3686 xfree default_args in destructor.
3687 * cli/cli-script.c (process_next_line, do_define_command):
3688 Add NULL for new default_args lookup_cmd argument.
3689 * command.h: Declare new default_args argument in lookup_cmd
3690 and lookup_cmd_1.
3691 * completer.c (complete_line_internal_1):
3692 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3693 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3694 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3695 Likewise.
3696 * infcmd.c (_initialize_infcmd): Likewise.
3697 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3698 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3699 * python/py-param.c (add_setshow_generic): Likewise.
3700 * remote.c (_initialize_remote): Likewise.
3701 * top.c (execute_command): Prepend default_args if command has some.
3702 (set_verbose):
3703 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3704 * tracepoint.c (validate_actionline, encode_actions_1):
3705 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3706
3707 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3708
3709 * jit.c (jit_read_descriptor): Use bool as the return type.
3710 (jit_breakpoint_re_set_internal): Use bool as the return type.
3711 Invert the return value logic; return true if the jit breakpoint
3712 has been successfully initialized.
3713 (jit_inferior_init): Update the call to
3714 jit_breakpoint_re_set_internal.
3715
3716 2020-06-22 Pedro Alves <palves@redhat.com>
3717
3718 PR gdb/25939
3719 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3720 Use the current inferior instead. Don't return
3721 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3722 wait again.
3723 * sol-thread.c (sol_thread_target::wait): Don't reference
3724 inferior_ptid.
3725 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3726 (sol_update_thread_list_callback): Use the current inferior's pid
3727 instead of inferior_ptid.
3728
3729 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3730
3731 * procfs.c: Cleanup many comments.
3732
3733 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3734 (AFTER_WATCHFLAG): Replace by value.
3735
3736 (MAIN_PROC_NAME_FORMAT): Inline ...
3737 (create_procinfo): ... here.
3738
3739 (procfs_debug_inferior): Remove SYS_exec handling.
3740 (syscall_is_exec): Likewise.
3741 (procfs_set_exec_trap): Likewise.
3742
3743 (syscall_is_lwp_exit): Inline in callers.
3744 (syscall_is_exit): Likewise.
3745 (syscall_is_exec): Likewise.
3746 (syscall_is_lwp_create): Likewise.
3747
3748 (invalidate_cache): Remove #if 0 code.
3749
3750 (make_signal_thread_runnable): Remove.
3751 (procfs_target::resume): Remove #if 0 code.
3752
3753 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3754
3755 PR gdb/25939
3756 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3757 call ...
3758 (procfs_target::create_inferior): ... here.
3759
3760 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3761
3762 * exec.c (validate_exec_file): Ensure the build-id is up to
3763 date by calling reopen_exec_file (that checks file timestamp
3764 to decide to re-read the file).
3765
3766 2020-06-18 Pedro Alves <palves@redhat.com>
3767
3768 PR gdb/25412
3769 * gdbthread.h (delete_thread, delete_thread_silent)
3770 (find_thread_ptid): Update comments.
3771 * thread.c (current_thread_): New global.
3772 (is_current_thread): Move higher, and reimplement.
3773 (inferior_thread): Reimplement.
3774 (set_thread_exited): Use bool. Add assertions.
3775 (add_thread_silent): Simplify thread-reuse handling by always
3776 calling delete_thread.
3777 (delete_thread): Remove intro comment.
3778 (find_thread_ptid): Skip exited threads.
3779 (switch_to_thread_no_regs): Write to current_thread_.
3780 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3781 INFERIOR_PTID. Clear current_thread_.
3782
3783 2020-06-18 Pedro Alves <palves@redhat.com>
3784
3785 * aix-thread.c (pd_update): Use switch_to_thread.
3786
3787 2020-06-18 Pedro Alves <palves@redhat.com>
3788
3789 * ravenscar-thread.c (ravenscar_thread_target): Update.
3790 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3791 (ravenscar_thread_target::add_active_thread): ... this. Don't
3792 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3793 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3794
3795 2020-06-18 Pedro Alves <palves@redhat.com>
3796
3797 * nat/windows-nat.c (current_windows_thread): Remove.
3798 * nat/windows-nat.h (current_windows_thread): Remove.
3799 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3800 Adjust.
3801 (display_selectors): Adjust to fetch the current
3802 windows_thread_info based on inferior_ptid.
3803 (fake_create_process): No longer write to current_windows_thread.
3804 (windows_nat_target::get_windows_debug_event):
3805 Don't set inferior_ptid or current_windows_thread.
3806 (windows_nat_target::wait): Adjust to not rely on
3807 current_windows_thread.
3808 (do_initial_windows_stuff): Now a method of windows_nat_target.
3809 Switch to the last_ptid thread.
3810 (windows_nat_target::attach): Adjust.
3811 (windows_nat_target::detach): Use switch_to_no_thread instead of
3812 writing to inferior_ptid directly.
3813 (windows_nat_target::create_inferior): Adjust.
3814
3815 2020-06-18 Pedro Alves <palves@redhat.com>
3816
3817 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3818
3819 2020-06-18 Pedro Alves <palves@redhat.com>
3820
3821 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3822 after creating it, instead of writing to inferior_ptid. Don't
3823 write to inferior_ptid.
3824
3825 2020-06-18 Pedro Alves <palves@redhat.com>
3826
3827 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3828
3829 2020-06-18 Pedro Alves <palves@redhat.com>
3830
3831 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3832 it, instead of writing to inferior_ptid.
3833
3834 2020-06-18 Pedro Alves <palves@redhat.com>
3835
3836 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3837 to inferior_ptid.
3838
3839 2020-06-18 Pedro Alves <palves@redhat.com>
3840
3841 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3842 instead of writing to inferior_ptid directly.
3843
3844 2020-06-18 Pedro Alves <palves@redhat.com>
3845
3846 * corelow.c (core_target::close): Use switch_to_no_thread instead
3847 of writing to inferior_ptid directly.
3848 (add_to_thread_list, core_target_open): Use switch_to_thread
3849 instead of writing to inferior_ptid directly.
3850
3851 2020-06-18 Pedro Alves <palves@redhat.com>
3852
3853 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3854 inferior_ptid.
3855 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3856 inferior_ptid.
3857 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3858 inferior_ptid directly.
3859 (darwin_nat_target::init_thread_list): Switch to thread, instead
3860 of writing to inferior_ptid.
3861 (darwin_nat_target::attach): Don't write to inferior_ptid.
3862 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3863
3864 2020-06-18 Pedro Alves <palves@redhat.com>
3865
3866 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3867 thread.
3868 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3869 Instead use switch_to_thread.
3870 (gnu_nat_target::detach): Use switch_to_no_thread
3871 instead of writing to inferior_ptid directly. Used passed-in
3872 inferior instead of looking up the inferior by pid.
3873
3874 2020-06-18 Pedro Alves <palves@redhat.com>
3875
3876 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3877 inferior_ptid.
3878
3879 2020-06-18 Pedro Alves <palves@redhat.com>
3880
3881 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3882 inferior_ptid.
3883 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3884 thread.
3885 (nto_procfs_target::detach): Avoid referencing
3886 inferior_ptid. Use switch_to_no_thread instead of writing to
3887 inferior_ptid directly.
3888 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3889 instead of writing to inferior_ptid directly.
3890 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3891 to thread.
3892
3893 2020-06-18 Pedro Alves <palves@redhat.com>
3894
3895 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3896 after creating it, instead of writing to inferior_ptid.
3897 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3898 to inferior_ptid directly.
3899 (gdbsim_target::wait): Don't write to inferior_ptid.
3900
3901 2020-06-18 Pedro Alves <palves@redhat.com>
3902
3903 * remote.c (remote_target::remote_notice_new_inferior): Use
3904 switch_to_thread instead of writing to inferior_ptid directly.
3905 (remote_target::add_current_inferior_and_thread): Use
3906 switch_to_no_thread instead of writing to inferior_ptid directly.
3907 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3908 and switch_to_thread instead of using set_current_inferior or
3909 writing to inferior_ptid directly.
3910
3911 2020-06-18 Pedro Alves <palves@redhat.com>
3912
3913 * tracectf.c (ctf_target_open): Switch to added thread instead of
3914 writing to inferior_ptid directly.
3915 (ctf_target::close): Use switch_to_no_thread instead of writing to
3916 inferior_ptid directly.
3917
3918 2020-06-18 Pedro Alves <palves@redhat.com>
3919
3920 * tracefile-tfile.c (tfile_target_open): Don't write to
3921 inferior_ptid directly, instead switch to added thread.
3922 (tfile_target::close): Use switch_to_no_thread instead of writing
3923 to inferior_ptid directly.
3924
3925 2020-06-18 Pedro Alves <palves@redhat.com>
3926
3927 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3928 (procfs_target::detach): Use switch_to_no_thread
3929 instead of writing to inferior_ptid directly.
3930 (do_attach): Change return type to void. Switch to the added
3931 thread.
3932 (procfs_target::create_inferior): Switch to the added thread.
3933 (procfs_do_thread_registers): Don't write to inferior_ptid.
3934
3935 2020-06-18 Pedro Alves <palves@redhat.com>
3936
3937 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3938 of writing to inferior_ptid.
3939 (scoped_restore_exited_inferior): Delete.
3940 (handle_vfork_child_exec_or_exit): Simplify using
3941 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3942 instead of writing to inferior_ptid.
3943 (THREAD_STOPPED_BY): Delete.
3944 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3945 (thread_stopped_by_hw_breakpoint): Delete.
3946 (save_waitstatus): Use
3947 scoped_restore_current_thread+switch_to_thread, and call
3948 target_stopped_by_watchpoint instead of
3949 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3950 instead of thread_stopped_by_sw_breakpoint, and
3951 target_stopped_by_hw_breakpoint instead of
3952 thread_stopped_by_hw_breakpoint.
3953 (handle_inferior_event)
3954 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3955 inferior_ptid directly, nor
3956 set_current_inferior/set_current_program_space. Use
3957 switch_to_thread / switch_to_inferior_no_thread instead.
3958
3959 2020-06-18 Pedro Alves <palves@redhat.com>
3960
3961 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3962 instead of writing to inferior_ptid.
3963
3964 2020-06-18 Pedro Alves <palves@redhat.com>
3965
3966 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3967 added thread.
3968 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3969 to the added thread.
3970 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3971 instead of writing to inferior_ptid.
3972
3973 2020-06-18 Pedro Alves <palves@redhat.com>
3974
3975 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3976 (register_to_value_test): Mock a program_space too. Heap-allocate
3977 the address space. Don't write to inferior_ptid. Use
3978 switch_to_thread instead.
3979
3980 2020-06-18 Pedro Alves <palves@redhat.com>
3981
3982 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3983 Delete.
3984 (find_signalled_thread()): New, factored out from
3985 linux_make_corefile_notes and adjusted to handle exited threads.
3986 (linux_make_corefile_notes): Adjust to use the new
3987 find_signalled_thread.
3988
3989 2020-06-18 Pedro Alves <palves@redhat.com>
3990
3991 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3992 of saving/restoring inferior_ptid.
3993
3994 2020-06-17 Tom Tromey <tom@tromey.com>
3995
3996 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3997 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3998 declare.
3999 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4000
4001 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4004 of partial symtabs.
4005
4006 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4007
4008 * regformats/reg-arm.dat: Remove.
4009 * regformats/reg-bfin.dat: Remove.
4010 * regformats/reg-cris.dat: Remove.
4011 * regformats/reg-crisv32.dat: Remove.
4012 * regformats/reg-m32r.dat: Remove.
4013 * regformats/reg-tilegx.dat: Remove.
4014 * regformats/reg-tilegx32.dat: Remove.
4015
4016 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4017
4018 * features/Makefile (WHICH): Remove arm files.
4019 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4020 * regformats/arm/arm-with-neon.dat: Remove.
4021 * regformats/arm/arm-with-vfpv2.dat: Remove.
4022 * regformats/arm/arm-with-vfpv3.dat: Remove.
4023
4024 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * features/Makefile (XMLTOC): Remove rx.xml.
4027
4028 2020-06-17 Pedro Alves <palves@redhat.com>
4029
4030 * gdbthread.h (thread_control_state) <trap_expected> Update
4031 comments.
4032
4033 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4034
4035 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4036 ada_language::lookup_symbol_nonlocal.
4037 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4038 (ada_language::lookup_symbol_nonlocal): New member function,
4039 implementation from ada_lookup_symbol_nonlocal.
4040 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4041 initializer.
4042 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4043 initializer.
4044 (cplus_language::lookup_symbol_nonlocal): New member function.
4045 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4046 (minimal_language_data) Likewise.
4047 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4048 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4049 initializer.
4050 (d_language::lookup_symbol_nonlocal): New member function.
4051 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4052 initializer.
4053 (f_language::lookup_symbol_nonlocal): New member function.
4054 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4055 initializer.
4056 * language.c (unknown_language_data): Likewise.
4057 (auto_language_data): Likewise.
4058 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4059 field.
4060 (language_defn::lookup_symbol_nonlocal): New member function.
4061 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4062 initializer.
4063 * objc-lang.c (objc_language_data): Likewise.
4064 * opencl-lang.c (opencl_language_data): Likewise.
4065 * p-lang.c (pascal_language_data): Likewise.
4066 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4067 rust_language::lookup_symbol_nonlocal.
4068 (rust_language_data): Delete la_lookup_symbol_nonlocal
4069 initializer.
4070 (rust_language::lookup_symbol_nonlocal): New member function,
4071 implementation from rust_lookup_symbol_nonlocal.
4072 * symtab.c (lookup_symbol_aux): Update call to
4073 lookup_symbol_nonlocal.
4074 (basic_lookup_symbol_nonlocal): Rename to...
4075 (language_defn::lookup_symbol_nonlocal): ...this, and update
4076 header comment. Remove language_defn parameter, and replace with
4077 uses of `this'.
4078 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4079
4080 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4081
4082 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4083 initializer.
4084 (ada_language::value_print_inner): New member function.
4085 * c-lang.c (c_language_data): Delete la_value_print_inner
4086 initializer.
4087 (cplus_language_data): Likewise.
4088 (asm_language_data): Likewise.
4089 (minimal_language_data): Likewise.
4090 * d-lang.c (d_language_data): Likewise.
4091 (d_language::value_print_inner): New member function.
4092 * f-lang.c (f_language_data): Delete la_value_print_inner
4093 initializer.
4094 (f_language::value_print_inner): New member function.
4095 * f-lang.h (f_value_print_innner): Rename to...
4096 (f_value_print_inner): ...this (note spelling of 'inner').
4097 * f-valprint.c (f_value_print_innner): Rename to...
4098 (f_value_print_inner): ...this (note spelling of 'inner').
4099 * go-lang.c (go_language_data): Delete la_value_print_inner
4100 initializer.
4101 (go_language::value_print_inner): New member function.
4102 * language.c (language_defn::value_print_inner): Define new member
4103 function.
4104 (unk_lang_value_print_inner): Delete.
4105 (unknown_language_data): Delete la_value_print_inner initializer.
4106 (unknown_language::value_print_inner): New member function.
4107 (auto_language_data): Delete la_value_print_inner initializer.
4108 (auto_language::value_print_inner): New member function.
4109 * language.h (language_data): Delete la_value_print_inner field.
4110 (language_defn::value_print_inner): Delcare new member function.
4111 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4112 initializer.
4113 (m2_language::value_print_inner): New member function.
4114 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4115 initializer.
4116 * opencl-lang.c (opencl_language_data): Likewise.
4117 * p-lang.c (pascal_language_data): Likewise.
4118 (pascal_language::value_print_inner): New member function.
4119 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4120 initializer.
4121 (rust_language::value_print_inner): New member function.
4122 * valprint.c (do_val_print): Update call to value_print_inner.
4123
4124 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4125
4126 * ada-lang.c (ada_language_data): Delete la_value_print
4127 initializer.
4128 (ada_language::value_print): New member function.
4129 * c-lang.c (c_language_data): Delete la_value_print initializer.
4130 (cplus_language_data): Likewise.
4131 (asm_language_data): Likewise.
4132 (minimal_language_data): Likewise.
4133 * d-lang.c (d_language_data): Likewise.
4134 * f-lang.c (f_language_data): Likewise.
4135 * go-lang.c (go_language_data): Likewise.
4136 * language.c (unk_lang_value_print): Delete.
4137 (language_defn::value_print): Define new member function.
4138 (unknown_language_data): Delete la_value_print initializer.
4139 (unknown_language::value_print): New member function.
4140 (auto_language_data): Delete la_value_print initializer.
4141 (auto_language::value_print): New member function.
4142 * language.h (language_data): Delete la_value_print field.
4143 (language_defn::value_print): Declare new member function.
4144 (LA_VALUE_PRINT): Update call to value_print.
4145 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4146 * objc-lang.c (objc_language_data): Likewise.
4147 * opencl-lang.c (opencl_language_data): Likewise.
4148 * p-lang.c (pascal_language_data): Likewise.
4149 (pascal_language::value_print): New member function.
4150 * rust-lang.c (rust_language_data): Delete la_value_print
4151 initializer.
4152
4153 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4154
4155 * ada-lang.c (ada_watch_location_expression): Rename to
4156 ada_language::watch_location_expression.
4157 (ada_language_data): Delete la_watch_location_expression
4158 initializer.
4159 (ada_language::watch_location_expression): New member function,
4160 implementation from ada_watch_location_expression.
4161 * breakpoint.c (watch_command_1): Update call to
4162 watch_location_expression.
4163 * c-lang.c (c_watch_location_expression): Rename to
4164 language_defn::watch_location_expression.
4165 (c_language_data): Delete la_watch_location_expression
4166 initializer.
4167 (cplus_language_data): Likewise.
4168 (asm_language_data): Likewise.
4169 (minimal_language_data): Likewise.
4170 * c-lang.h (c_watch_location_expression): Delete declaration.
4171 * d-lang.c (d_language_data): Delete la_watch_location_expression
4172 initializer.
4173 * f-lang.c (f_language_data): Likewise.
4174 * go-lang.c (go_language_data): Likewise.
4175 * language.c (language_defn::watch_location_expression): Member
4176 function implementation from c_watch_location_expression.
4177 (unknown_language_data): Delete la_watch_location_expression
4178 initializer.
4179 (auto_language_data): Likewise.
4180 * language.h (language_data): Delete la_watch_location_expression
4181 field.
4182 (language_defn::watch_location_expression): Declare new member
4183 function.
4184 * m2-lang.c (m2_language_data): Delete
4185 la_watch_location_expression initializer.
4186 * objc-lang.c (objc_language_data): Likewise.
4187 * opencl-lang.c (opencl_language_data): Likewise.
4188 * p-lang.c (pascal_language_data): Likewise.
4189 * rust-lang.c (rust_watch_location_expression): Rename to
4190 rust_language::watch_location_expression.
4191 (rust_language_data): Delete la_watch_location_expression
4192 initializer.
4193 (rust_language::watch_location_expression): New member function,
4194 implementation from rust_watch_location_expression.
4195
4196 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4197
4198 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4199 ada_language::collect_symbol_completion_matches.
4200 (ada_language_data): Delete la_collect_symbol_completion_matches
4201 initializer.
4202 (ada_language::collect_symbol_completion_matches): New member
4203 function, implementation from
4204 ada_collect_symbol_completion_matches.
4205 * c-lang.c (c_language_data): Delete
4206 la_collect_symbol_completion_matches initializer.
4207 (cplus_language_data): Likewise.
4208 (asm_language_data): Likewise.
4209 (minimal_language_data): Likewise.
4210 * d-lang.c (d_language_data): Likewise.
4211 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4212 f_language::collect_symbol_completion_matches.
4213 (f_language_data): Delete la_collect_symbol_completion_matches
4214 initializer.
4215 (f_language::collect_symbol_completion_matches) New member
4216 function, implementation from f_collect_symbol_completion_matches.
4217 * go-lang.c (go_language_data): Delete
4218 la_collect_symbol_completion_matches initializer.
4219 * language.c (unknown_language_data): Likewise.
4220 (auto_language_data): Likewise.
4221 * language.h (language_data): Delete
4222 la_collect_symbol_completion_matches field.
4223 (language_defn::collect_symbol_completion_matches): New member
4224 function.
4225 * m2-lang.c (m2_language_data): Delete
4226 la_collect_symbol_completion_matches initializer.
4227 * objc-lang.c (objc_language_data): Likewise.
4228 * opencl-lang.c (opencl_language_data): Likewise.
4229 * p-lang.c (pascal_language_data): Likewise.
4230 * rust-lang.c (rust_language_data): Likewise.
4231 * symtab.c (default_collect_symbol_completion_matches): Delete.
4232 (collect_symbol_completion_matches): Update call to
4233 collect_symbol_completion_matches.
4234 (collect_symbol_completion_matches_type): Likewise.
4235 * symtab.h (default_collect_symbol_completion_matches): Delete
4236 declaration.
4237
4238 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4239
4240 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4241 (ada_language_data): Delete la_word_break_characters initializer.
4242 (ada_language::word_break_characters): New member function.
4243 * c-lang.c (c_language_data): Delete la_word_break_characters
4244 initializer.
4245 (cplus_language_data): Likewise.
4246 (asm_language_data): Likewise.
4247 (minimal_language_data): Likewise.
4248 * completer.c: Update global comment.
4249 (advance_to_expression_complete_word_point): Update call to
4250 word_break_characters.
4251 (complete_files_symbols): Likewise.
4252 (complete_line_internal_1): Likewise.
4253 (default_completer_handle_brkchars): Likewise.
4254 (skip_quoted_chars): Likewise.
4255 * d-lang.c (d_language_data): Delete la_word_break_characters
4256 initializer.
4257 * f-lang.c (f_word_break_characters): Delete.
4258 (f_language_data): Delete la_word_break_characters initializer.
4259 (f_language::word_break_characters): New member function.
4260 * go-lang.c (go_language_data): Delete la_word_break_characters
4261 initializer.
4262 * language.c (unknown_language_data): Likewise.
4263 (auto_language_data): Likewise.
4264 * language.h (default_word_break_characters): Move declaration to
4265 earlier in the file.
4266 (language_data): Delete la_word_break_characters field.
4267 (language_defn::word_break_characters): New member function.
4268 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4269 initializer.
4270 * objc-lang.c (objc_language_data): Likewise.
4271 * opencl-lang.c (opencl_language_data): Likewise.
4272 * p-lang.c (pascal_language_data): Likewise.
4273 * rust-lang.c (rust_language_data): Likewise.
4274
4275 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4276
4277 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4278 (ada_language_data): Delete la_get_symbol_name_matcher
4279 initializer.
4280 (language_defn::get_symbol_name_matcher_inner): New member
4281 function.
4282 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4283 initializer.
4284 (cplus_language_data): Likewise.
4285 (cplus_language::get_symbol_name_matcher_inner): New member
4286 function.
4287 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4288 (minimal_language_data): Likewise.
4289 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4290 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4291 initializer.
4292 * dictionary.c (iter_match_first_hashed): Update call to
4293 get_symbol_name_matcher.
4294 (iter_match_next_hashed): Likewise.
4295 (iter_match_next_linear): Likewise.
4296 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4297 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4298 initializer.
4299 (f_language::get_symbol_name_matcher_inner): New member function.
4300 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4301 initializer.
4302 * language.c (default_symbol_name_matcher): Update header comment,
4303 make static.
4304 (language_defn::get_symbol_name_matcher): New definition.
4305 (language_defn::get_symbol_name_matcher_inner): Likewise.
4306 (get_symbol_name_matcher): Delete.
4307 (unknown_language_data): Delete la_get_symbol_name_matcher
4308 initializer.
4309 (auto_language_data): Likewise.
4310 * language.h (language_data): Delete la_get_symbol_name_matcher
4311 field.
4312 (language_defn::get_symbol_name_matcher): New member function.
4313 (language_defn::get_symbol_name_matcher_inner): Likewise.
4314 (default_symbol_name_matcher): Delete declaration.
4315 * linespec.c (find_methods): Update call to
4316 get_symbol_name_matcher.
4317 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4318 initializer.
4319 * minsyms.c (lookup_minimal_symbol): Update call to
4320 get_symbol_name_matcher.
4321 (iterate_over_minimal_symbols): Likewise.
4322 * objc-lang.c (objc_language_data): Delete
4323 la_get_symbol_name_matcher initializer.
4324 * opencl-lang.c (opencl_language_data): Likewise.
4325 * p-lang.c (pascal_language_data): Likewise.
4326 * psymtab.c (psymbol_name_matches): Update call to
4327 get_symbol_name_matcher.
4328 * rust-lang.c (rust_language_data): Delete
4329 la_get_symbol_name_matcher initializer.
4330 * symtab.c (symbol_matches_search_name): Update call to
4331 get_symbol_name_matcher.
4332 (compare_symbol_name): Likewise.
4333
4334 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4335
4336 * ada-lang.c (ada_language_data): Delete la_compute_program
4337 initializer.
4338 * c-lang.c (c_language_data): Likewise.
4339 (c_language::compute_program): New member function.
4340 (cplus_language_data): Delete la_compute_program initializer.
4341 (cplus_language::compute_program): New member function.
4342 (asm_language_data): Delete la_compute_program initializer.
4343 (minimal_language_data): Likewise.
4344 * c-lang.h (c_compute_program): Update comment.
4345 (cplus_compute_program): Likewise.
4346 * compile/compile-c-support.c (c_compute_program): Likewise.
4347 (cplus_compute_program): Likewise.
4348 * compile/compile.c (compile_to_object): Update call to
4349 la_compute_program.
4350 * d-lang.c (d_language_data): Delete la_compute_program
4351 initializer.
4352 * f-lang.c (f_language_data): Likewise.
4353 * go-lang.c (go_language_data): Likewise.
4354 * language.c (unknown_language_data): Likewise.
4355 (auto_language_data): Likewise.
4356 * language.h (language_data): Delete la_compute_program field.
4357 (language_defn::compute_program): New member function.
4358 * m2-lang.c (m2_language_data): Delete la_compute_program
4359 initializer.
4360 * objc-lang.c (objc_language_data): Likewise.
4361 * opencl-lang.c (opencl_language_data): Likewise.
4362 * p-lang.c (pascal_language_data): Likewise.
4363 * rust-lang.c (rust_language_data): Likewise.
4364
4365 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4366
4367 * ada-lang.c (ada_language_data) Delete
4368 la_class_name_from_physname initializer.
4369 * c-lang.c (c_language_data): Likewise.
4370 (cplus_language_data): Likewise.
4371 (cplus_language::class_name_from_physname): New member function.
4372 (asm_language_data): Delete la_class_name_from_physname
4373 initializer.
4374 (minimal_language_data): Likewise.
4375 * d-lang.c (d_language_data): Likewise.
4376 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4377 method on language_defn class.
4378 (guess_full_die_structure_name): Likewise.
4379 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4380 initializer.
4381 * go-lang.c (go_language_data): Likewise.
4382 * language.c (language_class_name_from_physname): Delete.
4383 (unk_lang_class_name): Delete.
4384 (unknown_language_data): Delete la_class_name_from_physname
4385 initializer.
4386 (auto_language_data): Likewise.
4387 * language.h (language_data): Delete la_class_name_from_physname
4388 field.
4389 (language_defn::class_name_from_physname): New function.
4390 (language_class_name_from_physname): Delete declaration.
4391 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4392 initializer.
4393 * objc-lang.c (objc_language_data): Likewise.
4394 * opencl-lang.c (opencl_language_data): Likewise.
4395 * p-lang.c (pascal_language_data): Likewise.
4396 * rust-lang.c (rust_language_data): Likewise.
4397
4398 2020-06-16 Tom Tromey <tom@tromey.com>
4399
4400 * tui/tui-data.h (STATUS_NAME): New macro.
4401 * tui/tui-layout.c (tui_remove_some_windows)
4402 (initialize_known_windows, tui_register_window)
4403 (tui_layout_split::remove_windows, initialize_layouts)
4404 (tui_new_layout_command): Don't use hard-coded window names.
4405
4406 2020-06-16 Tom Tromey <tom@tromey.com>
4407
4408 PR tui/25348:
4409 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4410 tui_initialize_readline. Only run once. Call rl_initialize.
4411 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4412 tui_initialize_readline.
4413 * tui/tui-io.c (tui_setup_io): Call
4414 tui_ensure_readline_initialized.
4415 * tui/tui-interp.c (tui_interp::init): Update.
4416
4417 2020-06-16 Tom Tromey <tom@tromey.com>
4418
4419 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4420 Also preserve the status window.
4421
4422 2020-06-16 Tom Tromey <tom@tromey.com>
4423
4424 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4425 where m_window==nullptr.
4426
4427 2020-06-15 Tom Tromey <tromey@adacore.com>
4428
4429 * windows-nat.c (windows_nat::handle_output_debug_string):
4430 Update.
4431 (windows_nat::handle_ms_vc_exception): Update.
4432 * target.h (target_read_string): Change API.
4433 * target.c (target_read_string): Change API.
4434 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4435 Update.
4436 * solib-frv.c (frv_current_sos): Update.
4437 * solib-dsbt.c (dsbt_current_sos): Update.
4438 * solib-darwin.c (darwin_current_sos): Update.
4439 * linux-thread-db.c (inferior_has_bug): Update.
4440 * expprint.c (print_subexp_standard): Update.
4441 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4442 (ada_exception_message_1): Update.
4443
4444 2020-06-15 Tom Tromey <tromey@adacore.com>
4445
4446 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4447
4448 2020-06-15 Tom Tromey <tromey@adacore.com>
4449
4450 * valprint.c (read_string): Update comment.
4451 * target.c (MIN): Remove.
4452 (target_read_string): Rewrite.
4453
4454 2020-06-15 Tom Tromey <tromey@adacore.com>
4455
4456 * corefile.c (read_memory_string): Remove.
4457 * ada-valprint.c (ada_value_print_ptr): Update.
4458 * ada-lang.h (ada_tag_name): Change return type.
4459 * ada-lang.c (type_from_tag): Update.
4460 (ada_tag_name_from_tsd): Change return type. Use
4461 target_read_string.
4462 (ada_tag_name): Likewise.
4463 * gdbcore.h (read_memory_string): Don't declare.
4464
4465 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4466
4467 * symtab.c (rbreak_command): Ignore Windows drive colon.
4468
4469 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4470
4471 * NEWS: Mention removed GDBserver host support.
4472
4473 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4474
4475 * features/riscv/rebuild-csr-xml.sh: Updated.
4476
4477 2020-06-11 Tom Tromey <tom@tromey.com>
4478
4479 PR gdb/18318:
4480 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4481
4482 2020-06-09 Jonny Grant <jg@jguk.org>
4483 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4484
4485 * main.c (captured_main_1): Don't print new line after help.
4486 (print_gdb_help): add mailing list and IRC channel information
4487 to --help. Add new lines between items in the footer. Remove
4488 quotes around bug url.
4489
4490 2020-06-11 Keith Seitz <keiths@redhat.com>
4491
4492 PR gdb/21356
4493 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4494 Resolve typedefs for type length calculations.
4495
4496 2020-06-10 Tom de Vries <tdevries@suse.de>
4497
4498 PR ada/24713
4499 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4500 (write_psymbols): Enable .gdb_index for ada.
4501 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4502 ada.
4503
4504 2020-06-10 Tom de Vries <tdevries@suse.de>
4505
4506 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4507 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4508 namei" instead of "const char *name" argument.
4509 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4510 dw2_symtab_iter_init.
4511
4512 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4513
4514 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4515 to use type::field and field::type instead.
4516
4517 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4518
4519 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4520 to use field::type instead.
4521
4522 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4523
4524 * gdbtypes.h (struct field) <type, set_type>: New methods.
4525 Rename `type` field to...
4526 <m_type>: ... this. Change references throughout to use type or
4527 set_type methods.
4528 (FIELD_TYPE): Use field::type. Change call sites that modify
4529 the field's type to use field::set_type instead.
4530
4531 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4532
4533 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4534 to use type::index_type instead.
4535
4536 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4539 methods.
4540 (TYPE_INDEX_TYPE): Use type::index_type.
4541 * gdbtypes.c (create_array_type_with_stride): Likewise.
4542
4543 2020-06-07 Tom Tromey <tom@tromey.com>
4544
4545 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4546 parameter.
4547 (generic_value_print): Update.
4548
4549 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4550
4551 Revert commit 982a38f60b0.
4552 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4553
4554 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4555
4556 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4557 avoid use after free.
4558
4559 2020-06-05 Tom de Vries <tdevries@suse.de>
4560
4561 * NEWS: Fix typos.
4562
4563 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4566 the per_bfd object.
4567 (dwarf2_read_debug_names): Likewise.
4568 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4569 object when re-using a per_bfd object with an index.
4570
4571 2020-06-03 Tom de Vries <tdevries@suse.de>
4572
4573 PR symtab/26046
4574 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4575 children for C++.
4576 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4577 DW_TAG_subprogram.
4578
4579 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4580
4581 * ada-lang.c (ada_language_data): Delete skip_trampoline
4582 initializer.
4583 * c-lang.c (c_language_data): Likewise.
4584 (cplus_language_data): Likewise.
4585 (cplus_language::skip_trampoline): New member function.
4586 (asm_language_data): Delete skip_trampoline initializer.
4587 (minimal_language_data): Likewise.
4588 * d-lang.c (d_language_data): Likewise.
4589 * f-lang.c (f_language_data): Likewise.
4590 * go-lang.c (go_language_data): Likewise.
4591 * language.c (unk_lang_trampoline): Delete function.
4592 (skip_language_trampoline): Update.
4593 (unknown_language_data): Delete skip_trampoline initializer.
4594 (auto_language_data): Likewise.
4595 * language.h (language_data): Delete skip_trampoline field.
4596 (language_defn::skip_trampoline): New function.
4597 * m2-lang.c (m2_language_data): Delete skip_trampoline
4598 initializer.
4599 * objc-lang.c (objc_skip_trampoline): Delete function, move
4600 implementation to objc_language::skip_trampoline.
4601 (objc_language_data): Delete skip_trampoline initializer.
4602 (objc_language::skip_trampoline): New member function with
4603 implementation from objc_skip_trampoline.
4604 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4605 initializer.
4606 * p-lang.c (pascal_language_data): Likewise.
4607 * rust-lang.c (rust_language_data): Likewise.
4608
4609 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4610
4611 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4612 (ada_language::demangle): New member function.
4613 * c-lang.c (c_language_data): Delete la_demangle initializer.
4614 (cplus_language_data): Delete la_demangle initializer.
4615 (cplus_language::demangle): New member function.
4616 (asm_language_data): Delete la_demangle initializer.
4617 (minimal_language_data): Delete la_demangle initializer.
4618 * d-lang.c (d_language_data): Delete la_demangle initializer.
4619 (d_language::demangle): New member function.
4620 * f-lang.c (f_language_data): Delete la_demangle initializer.
4621 (f_language::demangle): New member function.
4622 * go-lang.c (go_language_data): Delete la_demangle initializer.
4623 (go_language::demangle): New member function.
4624 * language.c (language_demangle): Update.
4625 (unk_lang_demangle): Delete.
4626 (unknown_language_data): Delete la_demangle initializer.
4627 (unknown_language::demangle): New member function.
4628 (auto_language_data): Delete la_demangle initializer.
4629 (auto_language::demangle): New member function.
4630 * language.h (language_data): Delete la_demangle field.
4631 (language_defn::demangle): New function.
4632 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4633 * objc-lang.c (objc_language_data): Delete la_demangle
4634 initializer.
4635 (objc_language::demangle): New member function.
4636 * opencl-lang.c (opencl_language_data): Delete la_demangle
4637 initializer.
4638 * p-lang.c (pascal_language_data): Likewise.
4639 * rust-lang.c (rust_language_data): Likewise.
4640 (rust_language::demangle): New member function.
4641
4642 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4643
4644 * ada-lang.c (ada_language_data): Delete la_print_type
4645 initializer.
4646 (ada_language::print_type): New member function.
4647 * c-lang.c (c_language_data): Delete la_print_type initializer.
4648 (c_language::print_type): New member function.
4649 (cplus_language_data): Delete la_print_type initializer.
4650 (cplus_language::print_type): New member function.
4651 (asm_language_data): Delete la_print_type initializer.
4652 (asm_language::print_type): New member function.
4653 (minimal_language_data): Delete la_print_type initializer.
4654 (minimal_language::print_type): New member function.
4655 * d-lang.c (d_language_data): Delete la_print_type initializer.
4656 (d_language::print_type): New member function.
4657 * f-lang.c (f_language_data): Delete la_print_type initializer.
4658 (f_language::print_type): New member function.
4659 * go-lang.c (go_language_data): Delete la_print_type initializer.
4660 (go_language::print_type): New member function.
4661 * language.c (unk_lang_print_type): Delete.
4662 (unknown_language_data): Delete la_print_type initializer.
4663 (unknown_language::print_type): New member function.
4664 (auto_language_data): Delete la_print_type initializer.
4665 (auto_language::print_type): New member function.
4666 * language.h (language_data): Delete la_print_type field.
4667 (language_defn::print_type): New function.
4668 (LA_PRINT_TYPE): Update.
4669 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4670 (m2_language::print_type): New member function.
4671 * objc-lang.c (objc_language_data): Delete la_print_type
4672 initializer.
4673 (objc_language::print_type): New member function.
4674 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4675 to opencl_language::print_type.
4676 (opencl_language_data): Delete la_print_type initializer.
4677 (opencl_language::print_type): New member function, implementation
4678 from opencl_print_type.
4679 * p-lang.c (pascal_language_data): Delete la_print_type
4680 initializer.
4681 (pascal_language::print_type): New member function.
4682 * rust-lang.c (rust_print_type): Delete, implementation moved to
4683 rust_language::print_type.
4684 (rust_language_data): Delete la_print_type initializer.
4685 (rust_language::print_type): New member function, implementation
4686 from rust_print_type.
4687
4688 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4689
4690 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4691 implementation moves to...
4692 (ada_language::sniff_from_mangled_name): ...here. Update return
4693 type.
4694 (ada_language_data): Delete la_sniff_from_mangled_name
4695 initializer.
4696 * c-lang.c (c_language_data): Likewise.
4697 (cplus_language_data): Likewise.
4698 (cplus_language::sniff_from_mangled_name): New member function,
4699 implementation taken from gdb_sniff_from_mangled_name.
4700 (asm_language_data): Delete la_sniff_from_mangled_name
4701 initializer.
4702 (minimal_language_data): Likewise.
4703 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4704 implementation moves to cplus_language::sniff_from_mangled_name.
4705 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4706 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4707 moves to...
4708 (d_language::sniff_from_mangled_name): ...here.
4709 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4710 * f-lang.c (f_language_data): Likewise.
4711 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4712 moves to...
4713 (go_language::sniff_from_mangled_name): ...here.
4714 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4715 * language.c (language_sniff_from_mangled_name): Delete.
4716 (unknown_language_data): Delete la_sniff_from_mangled_name
4717 initializer.
4718 (auto_language_data): Likewise.
4719 * language.h (language_data): Delete la_sniff_from_mangled_name
4720 field.
4721 (language_defn::sniff_from_mangled_name): New function.
4722 (language_sniff_from_mangled_name): Delete declaration.
4723 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4724 field.
4725 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4726 implementation moves to...
4727 (objc_language::sniff_from_mangled_name): ...here.
4728 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4729 * opencl-lang.c (opencl_language_data): Likewise.
4730 * p-lang.c (pascal_language_data): Likewise.
4731 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4732 implementation moves to...
4733 (rust_language::sniff_from_mangled_name): ...here.
4734 (rust_language_data): Delete la_sniff_from_mangled_name
4735 initializer.
4736 * symtab.c (symbol_find_demangled_name): Call
4737 sniff_from_mangled_name member function.
4738
4739 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4740
4741 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4742 initializer.
4743 * c-lang.c (c_language_data): Likewise.
4744 (cplus_language_data): Likewise.
4745 (cplus_language::search_name_hash): New member function.
4746 (asm_language_data): Delete la_search_name_hash initializer.
4747 (minimal_language_data): Likewise.
4748 * d-lang.c (d_language_data): Likewise.
4749 * dictionary.c (default_search_name_hash): Rename to...
4750 (language_defn::search_name_hash): ...this.
4751 * f-lang.c (f_language_data): Likewise.
4752 (f_language::search_name_hash): New member function.
4753 * go-lang.c (go_language_data): Delete la_search_name_hash
4754 initializer.
4755 * language.c (unknown_language_data): Likewise.
4756 (auto_language_data): Likewise.
4757 * language.h (struct language_data): Delete la_search_name_hash
4758 field.
4759 (language_defn::search_name_hash): Declare new member function.
4760 (default_search_name_hash): Delete declaration.
4761 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4762 initializer.
4763 * objc-lang.c (objc_language_data): Likewise.
4764 * opencl-lang.c (opencl_language_data): Likewise.
4765 * p-lang.c (pascal_language_data): Likewise.
4766 * rust-lang.c (rust_language_data): Likewise.
4767 * symtab.c (search_name_hash): Update call.
4768
4769 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4770
4771 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4772 initializer.
4773 * c-lang.c (class compile_instance): Declare.
4774 (c_language_data): Delete la_get_compile_instance initializer.
4775 (c_language::get_compile_instance): New member function.
4776 (cplus_language_data): Delete la_get_compile_instance initializer.
4777 (cplus_language::get_compile_instance): New member function.
4778 (asm_language_data): Delete la_get_compile_instance initializer.
4779 (minimal_language_data): Likewise.
4780 * c-lang.h (c_get_compile_context): Update comment.
4781 (cplus_get_compile_context): Update comment.
4782 * compile/compile.c (compile_to_object): Update calls, don't rely
4783 on function pointer being NULL.
4784 * d-lang.c (d_language_data): Delete la_get_compile_instance
4785 initializer.
4786 * f-lang.c (f_language_data): Likewise.
4787 * go-lang.c (go_language_data): Likewise.
4788 * language.c (unknown_language_data): Likewise.
4789 (auto_language_data): Likewise.
4790 * language.h (language_data): Delete la_get_compile_instance field.
4791 (language_defn::get_compile_instance): New member function.
4792 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4793 initializer.
4794 * objc-lang.c (objc_language_data): Likewise.
4795 * opencl-lang.c (opencl_language_data): Likewise.
4796 * p-lang.c (pascal_language_data): Likewise.
4797 * rust-lang.c (rust_language_data): Likewise.
4798
4799 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4800
4801 * ada-lang.c (ada_add_all_symbols): Update comment.
4802 (ada_iterate_over_symbols): Delete, move implementation to...
4803 (ada_language::iterate_over_symbols): ...here, a new member
4804 function, rewrite to use range based for loop.
4805 (ada_language_data): Delete la_iterate_over_symbols initializer.
4806 * c-lang.c (c_language_data): Likewise.
4807 (cplus_language_data): Likewise.
4808 (asm_language_data): Likewise.
4809 (minimal_language_data): Likewise.
4810 * d-lang.c (d_language_data): Likewise.
4811 * f-lang.c (f_language_data): Likewise.
4812 * go-lang.c (go_language_data): Likewise.
4813 * language.c (unknown_language_data): Likewise.
4814 (auto_language_data): Likewise.
4815 * language.h (language_data): Delete la_iterate_over_symbols field.
4816 (language_defn::iterate_over_symbols): New member function.
4817 (LA_ITERATE_OVER_SYMBOLS): Update.
4818 * linespec.c (iterate_over_all_matching_symtabs): Update.
4819 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4820 initializer.
4821 * objc-lang.c (objc_language_data): Likewise.
4822 * opencl-lang.c (opencl_language_data): Likewise.
4823 * p-lang.c (pascal_language_data): Likewise.
4824 * rust-lang.c (rust_language_data): Likewise.
4825
4826 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4827
4828 * ada-lang.c (ada_language_data): Delete
4829 la_lookup_transparent_type initializer.
4830 * c-lang.c (c_language_data): Likewise.
4831 (cplus_language_data): Likewise.
4832 (cplus_language::lookup_transparent_type): New member function.
4833 (asm_language_data): Delete la_lookup_transparent_type
4834 initializer.
4835 (minimal_language_data): Likewise.
4836 * d-lang.c (d_language_data): Likewise.
4837 * f-lang.c (f_language_data): Likewise.
4838 * go-lang.c (go_language_data): Likewise.
4839 * language.c (unknown_language_data): Likewise.
4840 (auto_language_data): Likewise.
4841 * language.h (struct language_data): Delete
4842 la_lookup_transparent_type field.
4843 (language_defn::lookup_transparent_type): New member function.
4844 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4845 initializer.
4846 * objc-lang.c (objc_language_data): Likewise.
4847 * opencl-lang.c (opencl_language_data): Likewise.
4848 * p-lang.c (pascal_language_data): Likewise.
4849 * rust-lang.c (rust_language_data): Likewise.
4850 * symtab.c (symbol_matches_domain): Update call.
4851
4852 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4853
4854 * ada-lang.c (ada_language_arch_info): Delete function, move
4855 implementation to...
4856 (ada_language::language_arch_info): ...here, a new member
4857 function.
4858 (ada_language_data): Delete la_language_arch_info.
4859 * c-lang.c (c_language_data): Likewise.
4860 (c_language::language_arch_info): New member function.
4861 (cplus_language_arch_info): Delete function, move
4862 implementation to...
4863 (cplus_language::language_arch_info): ...here, a new member
4864 function.
4865 (cplus_language_data): Delete la_language_arch_info.
4866 (asm_language_data): Likewise.
4867 (asm_language::language_arch_info): New member function.
4868 (minimal_language_data): Delete la_language_arch_info.
4869 (minimal_language::language_arch_info): New member function.
4870 * d-lang.c (d_language_arch_info): Delete function, move
4871 implementation to...
4872 (d_language::language_arch_info): ...here, a new member
4873 function.
4874 (d_language_data): Delete la_language_arch_info.
4875 * f-lang.c (f_language_arch_info): Delete function, move
4876 implementation to...
4877 (f_language::language_arch_info): ...here, a new member
4878 function.
4879 (f_language_data): Delete la_language_arch_info.
4880 * go-lang.c (go_language_arch_info): Delete function, move
4881 implementation to...
4882 (go_language::language_arch_info): ...here, a new member
4883 function.
4884 (go_language_data): Delete la_language_arch_info.
4885 * language.c (unknown_language_data): Likewise.
4886 (unknown_language::language_arch_info): New member function.
4887 (auto_language_data): Delete la_language_arch_info.
4888 (auto_language::language_arch_info): New member function.
4889 (language_gdbarch_post_init): Update call to
4890 la_language_arch_info.
4891 * language.h (language_data): Delete la_language_arch_info
4892 function pointer.
4893 (language_defn::language_arch_info): New function.
4894 * m2-lang.c (m2_language_arch_info): Delete function, move
4895 implementation to...
4896 (m2_language::language_arch_info): ...here, a new member
4897 function.
4898 (m2_language_data): Delete la_language_arch_info.
4899 * objc-lang.c (objc_language_arch_info): Delete function, move
4900 implementation to...
4901 (objc_language::language_arch_info): ...here, a new member
4902 function.
4903 (objc_language_data): Delete la_language_arch_info.
4904 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4905 implementation to...
4906 (opencl_language::language_arch_info): ...here, a new member
4907 function.
4908 (opencl_language_data): Delete la_language_arch_info.
4909 * p-lang.c (pascal_language_arch_info): Delete function, move
4910 implementation to...
4911 (pascal_language::language_arch_info): ...here, a new member
4912 function.
4913 (pascal_language_data): Delete la_language_arch_info.
4914 * rust-lang.c (rust_language_arch_info): Delete function, move
4915 implementation to...
4916 (rust_language::language_arch_info): ...here, a new member
4917 function.
4918 (rust_language_data): Delete la_language_arch_info.
4919
4920 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4921
4922 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4923 initializer.
4924 * c-lang.c (c_language_data): Likewise.
4925 (cplus_language_data): Likewise.
4926 (cplus_language::pass_by_reference_info): New method.
4927 (asm_language_data): Delete la_pass_by_reference initializer.
4928 (minimal_language_data): Likewise.
4929 * cp-abi.c (cp_pass_by_reference): Remove use of
4930 default_pass_by_reference.
4931 * d-lang.c (d_language_data): Likewise.
4932 * f-lang.c (f_language_data): Likewise.
4933 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4934 default_pass_by_reference.
4935 * go-lang.c (go_language_data): Likewise.
4936 * language.c (language_pass_by_reference): Update.
4937 (default_pass_by_reference): Delete.
4938 (unknown_language_data): Delete la_pass_by_reference
4939 initializer.
4940 (auto_language_data): Likewise.
4941 * language.h (struct language_data): Delete la_pass_by_reference
4942 field.
4943 (language_defn::pass_by_reference_info): New member function.
4944 (default_pass_by_reference): Delete declaration.
4945 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4946 initializer.
4947 * objc-lang.c (objc_language_data): Likewise.
4948 * opencl-lang.c (opencl_language_data): Likewise.
4949 * p-lang.c (pascal_language_data): Likewise.
4950 * rust-lang.c (rust_language_data): Likewise.
4951
4952 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4953
4954 * ada-lang.c (ada_read_var_value): Delete function, move
4955 implementation to...
4956 (ada_language::read_var_value): ...here.
4957 (ada_language_data): Delete la_read_var_value initializer.
4958 * c-lang.c (c_language_data): Likewise.
4959 (cplus_language_data): Likewise.
4960 (minimal_language_data): Likewise.
4961 * d-lang.c (d_language_data): Likewise.
4962 * f-lang.c (f_language_data): Likewise.
4963 * findvar.c (default_read_var_value): Rename to...
4964 (language_defn::read_var_value): ...this.
4965 * findvar.c (read_var_value): Update header comment, and change to
4966 call member function instead of function pointer.
4967 * go-lang.c (go_language_data): Likewise.
4968 * language.c (unknown_language_data): Delete la_read_var_value
4969 initializer.
4970 (auto_language_data): Likewise.
4971 * language.h (struct language_data): Delete la_read_var_value
4972 field.
4973 (language_defn::read_var_value): New member function.
4974 (default_read_var_value): Delete declaration.
4975 * m2-lang.c (m2_language_data): Delete la_read_var_value
4976 initializer.
4977 * objc-lang.c (objc_language_data): Likewise.
4978 * opencl-lang.c (opencl_language_data): Likewise.
4979 * p-lang.c (pascal_language_data): Likewise.
4980 * rust-lang.c (rust_language_data): Likewise.
4981 * value.h (default_read_var_value): Delete declaration.
4982
4983 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4984
4985 * ada-lang.c (ada_print_array_index): Delete function, move
4986 implementation to...
4987 (ada_language::print_array_index): ...here.
4988 (ada_language_data): Delete la_print_array_index initializer.
4989 * c-lang.c (c_language_data): Likewise.
4990 (cplus_language_data): Likewise.
4991 (minimal_language_data): Likewise.
4992 * d-lang.c (d_language_data): Likewise.
4993 * f-lang.c (f_language_data): Likewise.
4994 * go-lang.c (go_language_data): Likewise.
4995 * language.c (default_print_array_index): Delete function, move
4996 implementation to...
4997 (language_defn::print_array_index): ...here.
4998 (unknown_language_data): Delete la_print_array_index initializer.
4999 (auto_language_data): Likewise.
5000 * language.h (struct language_data): Delete la_print_array_index
5001 field.
5002 (language_defn::print_array_index): New member function.
5003 (LA_PRINT_ARRAY_INDEX): Update.
5004 (default_print_array_index): Delete declaration.
5005 * m2-lang.c (m2_language_data): Delete la_print_array_index
5006 initializer.
5007 * objc-lang.c (objc_language_data): Likewise.
5008 * opencl-lang.c (opencl_language_data): Likewise.
5009 * p-lang.c (pascal_language_data): Likewise.
5010 * rust-lang.c (rust_language_data): Likewise.
5011
5012 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5013
5014 * gdb/ada-lang.c (ada_language_defn): Convert to...
5015 (ada_language_data): ...this.
5016 (class ada_language): New class.
5017 (ada_language_defn): New static global.
5018 * gdb/c-lang.c (c_language_defn): Convert to...
5019 (c_language_data): ...this.
5020 (class c_language): New class.
5021 (c_language_defn): New static global.
5022 (cplus_language_defn): Convert to...
5023 (cplus_language_data): ...this.
5024 (class cplus_language): New class.
5025 (cplus_language_defn): New static global.
5026 (asm_language_defn): Convert to...
5027 (asm_language_data): ...this.
5028 (class asm_language): New class.
5029 (asm_language_defn): New static global.
5030 (minimal_language_defn): Convert to...
5031 (minimal_language_data): ...this.
5032 (class minimal_language): New class.
5033 (minimal_language_defn): New static global.
5034 * gdb/d-lang.c (d_language_defn): Convert to...
5035 (d_language_data): ...this.
5036 (class d_language): New class.
5037 (d_language_defn): New static global.
5038 * gdb/f-lang.c (f_language_defn): Convert to...
5039 (f_language_data): ...this.
5040 (class f_language): New class.
5041 (f_language_defn): New static global.
5042 * gdb/go-lang.c (go_language_defn): Convert to...
5043 (go_language_data): ...this.
5044 (class go_language): New class.
5045 (go_language_defn): New static global.
5046 * gdb/language.c (unknown_language_defn): Remove declaration.
5047 (current_language): Initialize to nullptr, real initialization is
5048 moved to _initialize_language.
5049 (languages): Delete global.
5050 (language_defn::languages): Define.
5051 (set_language_command): Use language_defn::languages.
5052 (set_language): Likewise.
5053 (range_error): Likewise.
5054 (language_enum): Likewise.
5055 (language_def): Likewise.
5056 (add_set_language_command): Use language_def::languages for the
5057 language list, and language_def to lookup language pointers.
5058 (skip_language_trampoline): Use language_defn::languages.
5059 (unknown_language_defn): Convert to...
5060 (unknown_language_data): ...this.
5061 (class unknown_language): New class.
5062 (unknown_language_defn): New static global.
5063 (auto_language_defn): Convert to...
5064 (auto_language_data): ...this.
5065 (class auto_language): New class.
5066 (auto_language_defn): New static global.
5067 (language_gdbarch_post_init): Use language_defn::languages.
5068 (_initialize_language): Initialize current_language.
5069 * gdb/language.h (struct language_defn): Rename to...
5070 (struct language_data): ...this.
5071 (struct language_defn): New.
5072 (auto_language_defn): Delete.
5073 (unknown_language_defn): Delete.
5074 (minimal_language_defn): Delete.
5075 (ada_language_defn): Delete.
5076 (asm_language_defn): Delete.
5077 (c_language_defn): Delete.
5078 (cplus_language_defn): Delete.
5079 (d_language_defn): Delete.
5080 (f_language_defn): Delete.
5081 (go_language_defn): Delete.
5082 (m2_language_defn): Delete.
5083 (objc_language_defn): Delete.
5084 (opencl_language_defn): Delete.
5085 (pascal_language_defn): Delete.
5086 (rust_language_defn): Delete.
5087 * gdb/m2-lang.c (m2_language_defn): Convert to...
5088 (m2_language_data): ...this.
5089 (class m2_language): New class.
5090 (m2_language_defn): New static global.
5091 * gdb/objc-lang.c (objc_language_defn): Convert to...
5092 (objc_language_data): ...this.
5093 (class objc_language): New class.
5094 (objc_language_defn): New static global.
5095 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5096 (opencl_language_data): ...this.
5097 (class opencl_language): New class.
5098 (opencl_language_defn): New static global.
5099 * gdb/p-lang.c (pascal_language_defn): Convert to...
5100 (pascal_language_data): ...this.
5101 (class pascal_language): New class.
5102 (pascal_language_defn): New static global.
5103 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5104 language pointer, update comment format.
5105 * gdb/rust-lang.c (rust_language_defn): Convert to...
5106 (rust_language_data): ...this.
5107 (class rust_language): New class.
5108 (rust_language_defn): New static global.
5109
5110 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5111
5112 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5113 member variable.
5114 <m_stmt_at_address>: New member variable.
5115 (lnp_state_machine::record_line): Don't record some lines, update
5116 tracking of is_stmt at the same address.
5117 (lnp_state_machine::lnp_state_machine): Initialise new member
5118 variables.
5119
5120 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5121
5122 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5123 "-include gnu-nat-mig.h".
5124 * gnu-nat-mig.h: New file.
5125 * gnu-nat.c: Include "gnu-nat-mig.h".
5126 (exc_server, msg_reply_server, notify_server,
5127 process_reply_server): Remove declarations.
5128
5129 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5130
5131 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5132 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5133 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5134 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5135 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5136 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5137 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5138 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5139 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5140 to gnu_nat_target class.
5141 * gnu-nat.c: Likewise.
5142 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5143 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5144 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5145 object.
5146 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5147 instead of `gnu_target'.
5148
5149 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5150
5151 * i386-gnu-tdep.c: Include "gdbcore.h"
5152 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5153 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5154 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5155 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5156 i386_gnu_sigcontext_addr): New functions
5157 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5158 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5159 tdep.
5160
5161 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5162
5163 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5164 before fork_inferior call. Avoid calling it if target_is_pushed returns
5165 true.
5166
5167 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5168
5169 * gnu-nat.h (gnu_target): New variable declaration.
5170 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5171 gnu_target.
5172 * gnu-nat.c (gnu_target): New variable.
5173 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5174 add_thread_silent, and add_thread calls.
5175 (gnu_nat_target::create_inferior): Pass gnu_target to
5176 add_thread_silent, thread_change_ptid call.
5177 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5178 call.
5179
5180 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5181
5182 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5183 (gnu_nat_target::find_memory_regions): Remove unused
5184 `old_address' variable.
5185
5186 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5187
5188 * gnu-nat.c: Include "gdbarch.h".
5189
5190 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5191
5192 * reply_mig_hack.awk (Error return): Cast function through
5193 void *, to bypass compiler function call check.
5194
5195 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5196
5197 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5198 $(srcdir)/reply_mig_hack.awk.
5199
5200 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5201
5202 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5203
5204 2020-05-30 Jonny Grant <jg@jguk.org>
5205
5206 * configure.ac (ACX_BUGURL): change bug URL to https.
5207
5208 2020-05-30 Pedro Alves <palves@redhat.com>
5209
5210 * cp-support.c (replace_typedefs_template): New.
5211 (replace_typedefs_qualified_name): Handle
5212 DEMANGLE_COMPONENT_TEMPLATE.
5213
5214 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5215
5216 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5217 dwarf2/index-cache.h, dwarf2/index-write.c,
5218 dwarf2/index-write.h, dwarf2/line-header.c,
5219 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5220 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5221 variables and fields from `dwarf2_per_objfile` to just
5222 `per_objfile` throughout.
5223
5224 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5225
5226 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5227 <push_dwarf_reg_entry_value>: Add comment.
5228
5229 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5230 Keith Seitz <keiths@redhat.com>
5231
5232 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5233 instead of PyEval_ReleaseLock.
5234 (class gdbpy_gil): Move to earlier in file.
5235 (finalize_python): Set gdb_python_initialized.
5236 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5237 when not initialized.
5238
5239 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5240
5241 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5242 <push_dwarf_reg_entry_value>: Remove assert. Override
5243 per_objfile with caller_per_objfile.
5244
5245 2020-05-28 Tom de Vries <tdevries@suse.de>
5246
5247 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5248 PR gold/15646 workaround to symbol kind "type".
5249
5250 2020-05-27 Tom Tromey <tromey@adacore.com>
5251
5252 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5253
5254 2020-05-27 Tom Tromey <tromey@adacore.com>
5255
5256 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5257 Use htab_find_with_hash.
5258 <add_abbrev>: Remove "abbrev_number" parameter.
5259 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5260 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5261 (hash_abbrev): Add comment.
5262 (abbrev_table::lookup_abbrev): Move to header file.
5263 (abbrev_table::read): Update.
5264
5265 2020-05-27 Tom Tromey <tromey@adacore.com>
5266
5267 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5268 method.
5269 <canonical_name>: New member.
5270 <raw_name>: Rename from "name".
5271 (partial_die_info): Initialize canonical_name.
5272 (scan_partial_symbols): Check raw_name.
5273 (partial_die_parent_scope, partial_die_full_name)
5274 (add_partial_symbol, add_partial_subprogram)
5275 (add_partial_enumeration, load_partial_dies): Use "name" method.
5276 (partial_die_info::name): New method.
5277 (partial_die_info::read, guess_partial_die_structure_name)
5278 (partial_die_info::fixup): Update.
5279
5280 2020-05-27 Tom Tromey <tromey@adacore.com>
5281
5282 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5283 <get_ref_die_offset>: Inline.
5284 <get_ref_die_offset_complaint>: New method.
5285 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5286 (attribute::get_ref_die_offset_complaint): Rename from
5287 get_ref_die_offset. Just issue complaint.
5288
5289 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5290
5291 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5292
5293 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5294
5295 * exec.c (exec_file_attach): Use errno value of first openp failure.
5296
5297 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5298
5299 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5300 Don't close thread handle.
5301
5302 2020-05-27 Tom Tromey <tom@tromey.com>
5303 Simon Marchi <simon.marchi@efficios.com>
5304
5305 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5306 shared_ptr.
5307 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5308 member.
5309 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5310 dwarf2_per_bfd_objfile_data_key>: New globals.
5311 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5312 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5313 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5314 shared.
5315 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5316 short-circuit when sharing.
5317 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5318 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5319
5320 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5321
5322 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5323 to...
5324 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5325 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5326
5327 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5328
5329 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5330 build_name_components, find_name_components_bounds>:
5331 Add per_objfile parameter.
5332 (struct mapped_index) <symbol_name_at>: Likewise.
5333 (struct mapped_debug_names): Remove constructor.
5334 <dwarf2_per_objfile>: Remove field.
5335 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5336 (mapped_index_base::find_name_components_bounds,
5337 mapped_index_base::build_name_components,
5338 dw2_expand_symtabs_matching_symbol): Likewise.
5339 (class mock_mapped_index) <symbol_name_at>: Likewise.
5340 (check_match): Likewise.
5341 (check_find_bounds_finds): Likewise.
5342 (test_mapped_index_find_name_component_bounds): Update.
5343 (CHECK_MATCH): Update.
5344 (dw2_expand_symtabs_matching): Update.
5345 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5346 per_objfile parameter.
5347 <find_vec_in_debug_names>: Likewise.
5348 <m_per_objfile>: New field.
5349 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5350 parameter.
5351 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5352 (dw2_debug_names_iterator::next): Update.
5353 (dw2_debug_names_lookup_symbol): Update.
5354 (dw2_debug_names_expand_symtabs_for_function): Update.
5355 (dw2_debug_names_map_matching_symbols): Update.
5356 (dw2_debug_names_expand_symtabs_matching): Update.
5357 (dwarf2_read_debug_names): Update.
5358
5359 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5360
5361 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5362 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5363 move to dwarf2_per_objfile.
5364 <read_in_chain>: Remove.
5365 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5366 remove_all_cus, age_comp_units>: New methods.
5367 <m_dwarf2_cus>: New member.
5368 (struct dwarf2_per_cu_data) <cu>: Remove.
5369 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5370 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5371 moved to methods of dwarf2_per_objfile.
5372 (dwarf2_clear_marks): Remove.
5373 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5374 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5375 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5376 (dwarf2_per_objfile::remove_all_cus): New.
5377 (class free_cached_comp_units) <~free_cached_comp_units>:
5378 Update.
5379 (load_cu): Update.
5380 (dw2_do_instantiate_symtab): Adjust.
5381 (fill_in_sig_entry_from_dwo_entry): Adjust.
5382 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5383 (cutu_reader::cutu_reader): Likewise.
5384 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5385 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5386 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5387 and dwarf2_per_objfile::age_comp_units.
5388 (load_partial_comp_unit): Update.
5389 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5390 (process_queue): Likewise.
5391 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5392 backlink.
5393 (dwarf2_read_addr_index): Likewise.
5394 (follow_die_offset): Likewise.
5395 (dwarf2_fetch_die_loc_sect_off): Likewise.
5396 (dwarf2_fetch_constant_bytes): Likewise.
5397 (dwarf2_fetch_die_type_sect_off): Likewise.
5398 (follow_die_sig_1): Likewise.
5399 (load_full_type_unit): Likewise.
5400 (read_signatured_type): Likewise.
5401 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5402 (dwarf2_cu::~dwarf2_cu): Remove.
5403 (dwarf2_per_objfile::get_cu): New.
5404 (dwarf2_per_objfile::set_cu): New.
5405 (age_cached_comp_units): Rename to...
5406 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5407 to std::unordered_map.
5408 (free_one_cached_comp_unit): Rename to...
5409 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5410 to std::unordered_map.
5411 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5412 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5413 a dwarf2_per_objfile in data.
5414 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5415 (dwarf2_clear_marks): Remove.
5416
5417 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5418
5419 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5420 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5421 (init_tu_and_read_dwo_dies): Likewise.
5422 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5423 (cutu_reader::cutu_reader): Likewise.
5424 (load_partial_comp_unit): Likewise.
5425 (process_psymtab_comp_unit): Update.
5426 (build_type_psymtabs_1): Update.
5427 (process_skeletonless_type_unit): Update.
5428 (load_full_comp_unit): Update.
5429 (find_partial_die): Update.
5430 (dwarf2_read_addr_index): Update.
5431 (read_signatured_type): Update.
5432
5433 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5434
5435 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5436 m_header_read_in>: New fields.
5437 <get_header>: New method.
5438 * dwarf2/read.c (per_cu_header_read_in): Remove.
5439 (dwarf2_per_cu_data::get_header): New.
5440 (dwarf2_per_cu_data::addr_size): Update.
5441 (dwarf2_per_cu_data::offset_size): Update.
5442 (dwarf2_per_cu_data::ref_addr_size): Update.
5443
5444 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5445
5446 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5447 (dw2_do_instantiate_symtab): Update.
5448 (queue_and_load_all_dwo_tus): Change parameter from
5449 dwarf2_per_cu_data to dwarf2_cu.
5450 (dwarf2_fetch_die_loc_sect_off): Update.
5451 (dwarf2_fetch_constant_bytes): Update.
5452 (dwarf2_fetch_die_type_sect_off): Update.
5453
5454 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5455
5456 * dwarf2/read.c (process_full_comp_unit,
5457 process_full_type_unit): Remove per_cu, per_objfile paramters.
5458 Add dwarf2_cu parameter.
5459 (process_queue): Update.
5460
5461 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5462
5463 * dwarf2/read.c (create_cu_from_index_list): Replace
5464 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5465 (create_cus_from_index_list): Likewise.
5466 (create_cus_from_index): Likewise.
5467 (create_signatured_type_table_from_index): Likewise.
5468 (create_cus_from_debug_names_list): Likewise.
5469 (create_cus_from_debug_names): Likewise.
5470 (dwarf2_read_gdb_index): Update.
5471 (dwarf2_read_debug_names): Update.
5472
5473 2020-05-27 Tom Tromey <tom@tromey.com>
5474 Simon Marchi <simon.marchi@efficios.com>
5475
5476 * dwarf2/read.h (struct dwarf2_per_objfile)
5477 <get_type_for_signatured_type, set_type_for_signatured_type>:
5478 New methods.
5479 <m_type_map>: New member.
5480 (struct signatured_type) <type>: Remove.
5481 * dwarf2/read.c
5482 (dwarf2_per_objfile::get_type_for_signatured_type,
5483 dwarf2_per_objfile::set_type_for_signatured_type): New.
5484 (get_signatured_type): Use new methods.
5485
5486 2020-05-27 Tom Tromey <tom@tromey.com>
5487 Simon Marchi <simon.marchi@efficios.com>
5488
5489 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5490 (struct dwarf2_per_objfile) <type_units>: New member.
5491 <get_type_unit_group_unshareable>: New method.
5492 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5493 num_symtabs, symtabs>: Remove; move to
5494 type_unit_group_unshareable.
5495 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5496 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5497 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5498
5499 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5500
5501 * dwarf2/read.h (struct dwarf2_per_cu_data):
5502 <dwarf2_per_objfile>: Remove.
5503 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5504 dwarf2_per_objfile.
5505 (create_signatured_type_table_from_index): Likewise.
5506 (create_signatured_type_table_from_debug_names): Likewise.
5507 (create_debug_type_hash_table): Likewise.
5508 (fill_in_sig_entry_from_dwo_entry): Likewise.
5509 (create_type_unit_group): Likewise.
5510 (read_comp_units_from_section): Likewise.
5511 (create_cus_hash_table): Likewise.
5512
5513 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5514
5515 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5516 dwarf2_per_cu_data::dwarf2_per_objfile.
5517 (compute_compunit_symtab_includes): Likewise.
5518 (dwarf2_cu::start_symtab): Likewise.
5519
5520 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5521
5522 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5523 parameter.
5524 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5525 (read_namespace_alias): Update.
5526 (lookup_die_type): Update.
5527 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5528 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5529 Update.
5530 (disassemble_dwarf_expression): Update.
5531
5532 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5533
5534 * dwarf2/read.h (struct dwarf2_queue_item): Add
5535 dwarf2_per_objfile parameter, assign new parameter.
5536 <per_objfile>: New field.
5537 * dwarf2/read.c (free_one_cached_comp_unit): Add
5538 dwarf2_per_objfile parameter.
5539 (queue_comp_unit): Likewise.
5540 (dw2_do_instantiate_symtab): Update.
5541 (process_psymtab_comp_unit): Update.
5542 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5543 (process_imported_unit_die): Update.
5544 (queue_and_load_dwo_tu): Update.
5545 (follow_die_offset): Update.
5546 (follow_die_sig_1): Update.
5547
5548 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5549
5550 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5551 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5552 (read_call_site_scope): Assign per_objfile.
5553 (dwarf2_per_cu_data::objfile): Remove.
5554 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5555 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5556 dwarf2_per_objfile parameter.
5557 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5558 dwarf2_per_objfile parameter.
5559 (dwarf_expr_reg_to_entry_parameter): Add output
5560 dwarf2_per_objfile parameter.
5561 (locexpr_get_frame_base): Update.
5562 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5563 <push_dwarf_reg_entry_value>: Update.
5564 <call_site_to_target_addr>: Update.
5565 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5566 parameter.
5567 (value_of_dwarf_reg_entry): Update.
5568 (rw_pieced_value): Update.
5569 (indirect_synthetic_pointer): Update.
5570 (dwarf2_evaluate_property): Update.
5571 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5572 parameter.
5573 (locexpr_read_variable): Update.
5574 (locexpr_get_symbol_read_needs): Update.
5575 (loclist_read_variable): Update.
5576
5577 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5578
5579 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5580 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5581 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5582 parameter.
5583 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5584 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5585 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5586 parameter.
5587 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5588 sect_variable_value): Add dwarf2_per_objfile parameter.
5589 (class dwarf_evaluate_loc_desc) <dwarf_call,
5590 dwarf_variable_value>: Update.
5591 (fetch_const_value_from_synthetic_pointer): Add
5592 dwarf2_per_objfile parameter.
5593 (fetch_const_value_from_synthetic_pointer): Update.
5594 (coerced_pieced_ref): Update.
5595 (class symbol_needs_eval_context) <dwarf_call,
5596 dwarf_variable_value>: Update.
5597 (dwarf2_compile_expr_to_ax): Update.
5598
5599 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5600
5601 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5602 parameter.
5603 (dwarf2_evaluate_loc_desc_full): Update.
5604
5605 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5606
5607 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5608 parameter.
5609 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5610 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5611 dwarf2_per_objfile parameter.
5612 (decode_debug_loc_dwo_addresses): Likewise.
5613 (dwarf2_find_location_expression): Update.
5614 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5615 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5616 parameter.
5617 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5618 parameter.
5619 (locexpr_describe_location_1): Likewise.
5620 (locexpr_describe_location): Update.
5621
5622 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5623
5624 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5625 Remove.
5626 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5627 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5628 (dwarf2_compile_property_to_c): Update.
5629 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5630 use text offset from objfile.
5631 (locexpr_tracepoint_var_ref): Update.
5632 (locexpr_generate_c_location): Update.
5633 (loclist_describe_location): Update.
5634 (loclist_tracepoint_var_ref): Update.
5635 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5636 dwarf2_per_objfile parameter.
5637 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5638 use text offset from objfile.
5639 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5640
5641 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5642
5643 * dwarf2/expr.h (struct dwarf_expr_context)
5644 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5645 <offset>: Remove.
5646 <per_objfile>: New member.
5647 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5648 dwarf2_per_objfile parameter. Don't set offset, set
5649 per_objfile.
5650 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5651 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5652 a dwarf2_per_objfile object instead of an offset.
5653 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5654 constructor.
5655 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5656 to dwarf2_expr_executor constructor. Don't set offset.
5657 (dwarf2_fetch_cfa_info): Update.
5658 (struct dwarf2_frame_cache) <text_offset>: Remove.
5659 <per_objfile>: New field.
5660 (dwarf2_frame_cache): Update.
5661 (dwarf2_frame_prev_register): Update.
5662 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5663 <dwarf_evaluate_loc_desc>: Add constructor.
5664 (dwarf2_evaluate_loc_desc_full): Update.
5665 (dwarf2_locexpr_baton_eval): Update.
5666 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5667 Add constructor.
5668 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5669
5670 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5671
5672 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5673 addr_sized_int_type>: Move to dwarf2_cu.
5674 <int_type>: Move to dwarf2_per_objfile.
5675 (struct dwarf2_per_objfile) <int_type>: Move here.
5676 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5677 addr_sized_int_type>: Move here.
5678 (read_func_scope): Update.
5679 (read_array_type): Update.
5680 (read_tag_string_type): Update.
5681 (attr_to_dynamic_prop): Update.
5682 (dwarf2_per_cu_data::int_type): Rename to...
5683 (dwarf2_per_objfile::int_type): ... this.
5684 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5685 (dwarf2_cu::addr_sized_int_type): ... this.
5686 (read_subrange_type): Update.
5687 (dwarf2_per_cu_data::addr_type): Rename to...
5688 (dwarf2_cu::addr_type): ... this.
5689 (set_die_type): Update.
5690
5691 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5692
5693 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5694 data through per_cu->cu.
5695
5696 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5697
5698 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5699 dwarf2_per_cu_data parameter fo dwarf2_cu.
5700 (lookup_dwo_type_unit): Likewise.
5701 (read_cutu_die_from_dwo): Likewise.
5702 (lookup_dwo_unit): Likewise.
5703 (open_and_init_dwo_file): Likewise.
5704 (lookup_dwo_cutu): Likewise.
5705 (lookup_dwo_comp_unit): Likewise.
5706 (lookup_dwo_type_unit): Likewise.
5707 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5708 (cutu_reader::cutu_reader): Update.
5709
5710 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5711
5712 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5713 parameter.
5714 (process_full_type_unit): Likewise.
5715 (process_queue): Update.
5716
5717 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5718
5719 * dwarf2/read.c (recursively_compute_inclusions): Add
5720 dwarf2_per_objfile parameter.
5721 (compute_compunit_symtab_includes): Likewise.
5722 (process_cu_includes): Update.
5723
5724 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5725
5726 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5727 parameter.
5728 (create_type_unit_group): Update.
5729 (process_psymtab_comp_unit_reader): Update.
5730 (build_type_psymtabs_reader): Update.
5731
5732 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5733
5734 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5735 object through m_this_cu->cu.
5736
5737 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5738
5739 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5740 the info parameter.
5741 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5742
5743 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5744
5745 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5746 per_objfile parameter.
5747 (load_full_type_unit): Add per_objfile parameter.
5748 (read_signatured_type): Likewise.
5749 (load_full_comp_unit): Likewise.
5750 (load_cu): Likewise.
5751 (dw2_do_instantiate_symtab): Likewise.
5752 (dw2_get_file_names): Likewise.
5753 (dw2_map_symtabs_matching_filename): Update.
5754 (dw_expand_symtabs_matching_file_matcher): Update.
5755 (dw2_map_symbol_filenames): Update.
5756 (process_psymtab_comp_unit): Add per_objfile parameter.
5757 (build_type_psymtabs_1): Update.
5758 (process_skeletonless_type_unit): Update.
5759 (dwarf2_build_psymtabs_hard): Update.
5760 (load_partial_comp_unit): Add per_objfile parameter.
5761 (scan_partial_symbols): Update.
5762 (load_full_comp_unit): Add per_objfile parameter.
5763 (process_imported_unit_die): Update.
5764 (create_cus_hash_table): Update.
5765 (find_partial_die): Update.
5766 (dwarf2_read_addr_index): Update.
5767 (follow_die_offset): Update.
5768 (dwarf2_fetch_die_loc_sect_off): Update.
5769 (dwarf2_fetch_constant_bytes): Update.
5770 (dwarf2_fetch_die_type_sect_off): Update.
5771 (follow_die_sig_1): Update.
5772 (load_full_type_unit): Add per_objfile parameter.
5773 (read_signatured_type): Likewise.
5774
5775 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5776
5777 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5778 of objfile_name.
5779
5780 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5781
5782 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5783 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5784 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5785 field.
5786 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5787 (create_cus_from_index): Update.
5788 (dwarf2_read_gdb_index): Update.
5789 (create_cus_from_debug_names): Update.
5790 (dwarf2_read_debug_names): Update.
5791 (get_abbrev_section_for_cu): Update.
5792 (create_all_comp_units): Update.
5793 (read_attribute_value): Update.
5794 (get_debug_line_section): Update.
5795 * dwarf2/index-cache.c (index_cache::store): Update.
5796 * dwarf2/index-write.c (save_gdb_index_command): Update.
5797 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5798
5799 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5800
5801 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5802 member.
5803 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5804 dwarf2_per_cu_data::per_bfd.
5805 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5806 (create_type_unit_group): Likewise.
5807 (queue_comp_unit): Remove reference to
5808 per_cu->dwarf2_per_objfile.
5809 (maybe_queue_comp_unit): Likewise.
5810 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5811 (create_cus_hash_table): Assign new field.
5812
5813 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5814
5815 * dwarf2/read.c: Replace
5816 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5817 dwarf2_cu->per_objfile throughout.
5818
5819 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5820
5821 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5822 parameter, don't use per_cu->dwarf2_per_objfile.
5823 (dw2_instantiate_symtab): Likewise.
5824 (dw2_find_last_source_symtab): Update.
5825 (dw2_map_expand_apply): Update.
5826 (dw2_lookup_symbol): Update.
5827 (dw2_expand_symtabs_for_function): Update.
5828 (dw2_expand_all_symtabs): Update.
5829 (dw2_expand_symtabs_with_fullname): Update.
5830 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5831 don't use per_cu->dwarf2_per_objfile.
5832 (dw2_expand_marked_cus): Update.
5833 (dw2_find_pc_sect_compunit_symtab): Update.
5834 (dw2_debug_names_lookup_symbol): Update.
5835 (dw2_debug_names_expand_symtabs_for_function): Update.
5836 (dw2_debug_names_map_matching_symbols): Update.
5837 (dwarf2_psymtab::expand_psymtab): Update.
5838
5839 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5840
5841 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5842 <per_objfile>: New member.
5843 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5844 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5845 call to dwarf2_cu.
5846 (cutu_reader::cutu_reader): Update.
5847 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5848
5849 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5850
5851 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5852 struct dwarf2_per_objfile.
5853 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5854 dwarf2_per_bfd.
5855 * dwarf2/read.c (set_die_type): Update.
5856 (get_die_type_at_offset): Update.
5857
5858 2020-05-27 Tom Tromey <tom@tromey.com>
5859 Simon Marchi <simon.marchi@efficios.com>
5860
5861 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5862 method.
5863 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5864 get_symtab, set_symtab>: New methods.
5865 <m_symtabs>: New field.
5866 (struct dwarf2_psymtab): Derive from partial_symtab.
5867 <readin_p, get_compunit_symtab>: Declare methods.
5868 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5869 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5870 New methods.
5871 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5872 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5873 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5874 (dw2_symtab_iter_next, dw2_print_stats)
5875 (dw2_expand_symtabs_with_fullname)
5876 (dw2_expand_symtabs_matching_one)
5877 (dw_expand_symtabs_matching_file_matcher)
5878 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5879 (dw2_debug_names_iterator::next)
5880 (dw2_debug_names_map_matching_symbols)
5881 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5882 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5883 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5884 New methods.
5885 (get_compunit_symtab, process_full_comp_unit)
5886 (process_full_type_unit): Update.
5887 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5888
5889 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5890
5891 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5892 then introduce a new dwarf2_per_objfile type.
5893 <read_line_string>: Move to the new dwarf2_per_objfile type.
5894 <objfile>: Likewise.
5895 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5896 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5897 dwarf2_per_objfile->per_bfd.
5898 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5899 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5900 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5901 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5902 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5903 (dwarf2_per_objfile::locate_sections): Rename to...
5904 (dwarf2_per_bfd::locate_sections): ... this.
5905 (dwarf2_per_objfile::get_cutu): Rename to...
5906 (dwarf2_per_bfd::get_cutu): ... this.
5907 (dwarf2_per_objfile::get_cu): Rename to...
5908 (dwarf2_per_bfd::get_cu): ... this.
5909 (dwarf2_per_objfile::get_tu): Rename to...
5910 (dwarf2_per_bfd::get_tu): ... this.
5911 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5912 (dwarf2_per_bfd::allocate_per_cu): ... this.
5913 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5914 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5915 (get_gdb_index_contents_ftype): Change parameter from
5916 dwarf2_per_objfile to dwarf2_per_bfd.
5917 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5918 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5919
5920 2020-05-27 Tom Tromey <tom@tromey.com>
5921 Simon Marchi <simon.marchi@efficios.com>
5922
5923 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5924 (allocate_piece_closure): Set "per_objfile" member.
5925 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5926 (locexpr_describe_location, loclist_describe_location): Use new
5927 member.
5928 * dwarf2/read.c (read_call_site_scope)
5929 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5930 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5931 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5932 handle_data_member_location): Set per_objfile member.
5933 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5934 member.
5935 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5936
5937 2020-05-27 Tom Tromey <tom@tromey.com>
5938
5939 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5940 allocate_signatured_type>: Declare new methods.
5941 <m_num_psymtabs>: New member.
5942 (struct dwarf2_per_cu_data) <index>: New member.
5943 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5944 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5945 (create_cu_from_index_list): Use allocate_per_cu.
5946 (create_signatured_type_table_from_index)
5947 (create_signatured_type_table_from_debug_names)
5948 (create_debug_type_hash_table, add_type_unit)
5949 (read_comp_units_from_section): Use allocate_signatured_type.
5950
5951 2020-05-27 Tom Tromey <tom@tromey.com>
5952
5953 * psymtab.c (partial_map_expand_apply)
5954 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5955 (psym_lookup_global_symbol_language)
5956 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5957 (psym_print_stats, psym_expand_symtabs_for_function)
5958 (psym_map_symbol_filenames, psym_map_matching_symbols)
5959 (psym_expand_symtabs_matching)
5960 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5961 (maintenance_check_psymtabs): Update.
5962 * psympriv.h (struct partial_symtab) <readin_p,
5963 get_compunit_symtab>: Add objfile parameter.
5964 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5965 Likewise.
5966 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5967 get_compunit_symtab>: Likewise.
5968 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5969
5970 2020-05-27 Tom Tromey <tom@tromey.com>
5971
5972 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5973 member.
5974 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5975 (create_cu_from_index_list)
5976 (create_signatured_type_table_from_index)
5977 (create_signatured_type_table_from_debug_names)
5978 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5979 (dwarf2_create_include_psymtab)
5980 (create_debug_type_hash_table, add_type_unit)
5981 (create_type_unit_group, read_comp_units_from_section)
5982 (dwarf2_compute_name, create_cus_hash_table)
5983 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5984 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5985 obstack.
5986 (dw2_get_real_path): Likewise. Change argument to
5987 dwarf2_per_objfile.
5988
5989 2020-05-27 Luis Machado <luis.machado@linaro.org>
5990
5991 PR tdep/26000
5992 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5993 for ldrd (immediate).
5994
5995 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5996
5997 * command.h: Add comment giving the name of class_tui.
5998 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5999 create the fake command for the help for class_tui.
6000
6001 2020-05-26 Tom Tromey <tromey@adacore.com>
6002
6003 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6004 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6005 (val_atr): New function.
6006 (value_val_atr): Use it.
6007 * ada-valprint.c (print_optional_low_bound): Change low bound
6008 handling for enums.
6009 (val_print_packed_array_elements): Don't call discrete_position.
6010 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6011 discrete_position for enum types.
6012 * language.c (default_print_array_index): Change type.
6013 * language.h (struct language_defn) <la_print_array_index>: Add
6014 index_type parameter, change type of index_value.
6015 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6016 (default_print_array_index): Update.
6017 * valprint.c (maybe_print_array_index): Don't call
6018 value_from_longest. Update.
6019 (value_print_array_elements): Don't call discrete_position.
6020
6021 2020-05-26 Tom Tromey <tromey@adacore.com>
6022
6023 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6024 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6025
6026 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6027
6028 PR gdb/13519
6029 * avr-tdep.c (avr_integer_to_address): Return data or code
6030 address accordingly to the second 'type' argument of the
6031 function.
6032
6033 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6034
6035 * infcmd.c, inferior.h: (construct_inferior_arguments):
6036 Moved function from here to gdbsupport/common-inferior.{h,cc}
6037
6038 2020-05-23 Tom Tromey <tom@tromey.com>
6039
6040 Revert commit eca1f90c:
6041 * NEWS: Remove entry for completion styling.
6042 * completer.c (_rl_completion_prefix_display_length): Move
6043 declaration later.
6044 (gdb_fnprint): Revert.
6045 (gdb_display_match_list_1): Likewise.
6046 * cli/cli-style.c (completion_prefix_style)
6047 (completion_difference_style, completion_suffix_style): Remove.
6048 (_initialize_cli_style): Revert.
6049 * cli/cli-style.h (completion_prefix_style)
6050 (completion_difference_style, completion_suffix_style): Don't
6051 declare.
6052
6053 2020-05-24 Pedro Alves <palves@redhat.com>
6054
6055 * symtab.c (completion_list_add_name): Return boolean indication
6056 of whether the symbol matched.
6057 (completion_list_add_symbol): Don't try to remove C++ aliases if
6058 the symbol didn't match in the first place.
6059 * symtab.h (completion_list_add_name): Return bool.
6060
6061 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6062
6063 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6064 type::field.
6065
6066 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6067
6068 GDB 9.2 released.
6069
6070 2020-05-23 Tom Tromey <tom@tromey.com>
6071
6072 * NEWS: Add entry for completion styling.
6073 * completer.c (_rl_completion_prefix_display_length): Move
6074 declaration earlier.
6075 (gdb_fnprint): Use completion_style.
6076 (gdb_display_match_list_1): Likewise.
6077 * cli/cli-style.c (completion_prefix_style)
6078 (completion_difference_style, completion_suffix_style): New
6079 globals.
6080 (_initialize_cli_style): Register new globals.
6081 * cli/cli-style.h (completion_prefix_style)
6082 (completion_difference_style, completion_suffix_style): Declare.
6083
6084 2020-05-23 Pedro Alves <palves@redhat.com>
6085
6086 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6087 (parse_escape): Use ISDIGIT instead of isdigit.
6088 (puts_debug): Use gdb_isprint instead of isprint.
6089 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6090 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6091 ISSPACE instead of isspace.
6092 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6093 instead of isspace.
6094 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6095 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6096 instead of isxdigit and ISDIGIT instead of isdigit.
6097
6098 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6099
6100 * gdbtypes.h (struct type) <field>: New method.
6101 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6102 or type::field.
6103
6104 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6105
6106 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6107 (TYPE_FIELDS): Use type::fields. Change all call sites that
6108 modify the propery to use type::set_fields instead.
6109
6110 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6111
6112 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6113 type::num_fields instead.
6114
6115 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6116
6117 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6118 methods.
6119 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6120 that modify the number of fields to use type::set_num_fields
6121 instead.
6122
6123 2020-05-22 Tom Tromey <tromey@adacore.com>
6124
6125 * compile/compile-object-load.h (munmap_list_free): Don't
6126 declare.
6127
6128 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6129
6130 * annotate.c (annotate_source_line): Update return type, add call
6131 to update current symtab and line.
6132 * annotate.h (annotate_source_line): Update return type, and
6133 extend header comment.
6134 * source.c (info_line_command): Check annotation_level before
6135 calling annotate_source_line.
6136 * stack.c (print_frame_info): If calling annotate_source_line
6137 returns true, then don't print any other source line information.
6138
6139 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6140
6141 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6142
6143 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6144
6145 * coffread.c (patch_type): Remove NULL check before xfree.
6146 * corefile.c (set_gnutarget): Likewise.
6147 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6148 * exec.c (build_section_table): Likewise.
6149 * remote.c (remote_target::pass_signals): Likewise.
6150 * utils.c (n_spaces): Likewise.
6151 * cli/cli-script.c (document_command): Likewise.
6152 * i386-windows-tdep.c (core_process_module_section): Likewise.
6153 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6154
6155 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6156
6157 * symfile.c (reread_symbols): Clear objfile's section_offsets
6158 vector and section indices, re-compute them by calling
6159 sym_offsets.
6160
6161 2020-05-20 Tom Tromey <tromey@adacore.com>
6162
6163 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6164 (desc_one_bound, desc_index_type): Compute field name.
6165
6166 2020-05-20 Tom de Vries <tdevries@suse.de>
6167
6168 PR symtab/25833
6169 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6170
6171 2020-05-20 Alan Modra <amodra@gmail.com>
6172
6173 PR 25993
6174 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6175 bfd_set_filename.
6176 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6177 passed to bfd_set_filename.
6178 * symfile-mem.c (add_vsyscall_page): Likewise for string
6179 passed to symbol_file_add_from_memory.
6180 (symbol_file_add_from_memory): Make name param a const char* and
6181 don't strdup.
6182
6183 2020-05-20 Alan Modra <amodra@gmail.com>
6184
6185 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6186 rather than accessing bfd->filename directly.
6187 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6188 and use bfd_section_name.
6189 * dwarf2/frame.c (decode_frame_entry): Likewise.
6190 * exec.c (exec_set_section_address): Likewise.
6191 * solib-aix.c (solib_aix_bfd_open): Likewise.
6192 * stap-probe.c (get_stap_base_address): Likewise.
6193 * symfile.c (reread_symbols): Likewise.
6194
6195 2020-05-19 Tom Tromey <tromey@adacore.com>
6196
6197 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6198
6199 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6200
6201 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6202
6203 2020-05-19 Pedro Alves <palves@redhat.com>
6204
6205 * NEWS (set exec-file-mismatch): Adjust entry.
6206 * exec.c: Include "build-id.h".
6207 (validate_exec_file): Try to match build IDs instead of filenames.
6208 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6209 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6210 and pass down 'warn_if_slow'.
6211 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6212 gdb_bfd_open_closure to pass it down.
6213 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6214
6215 2020-05-19 Pedro Alves <palves@redhat.com>
6216
6217 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6218 * target.c (target_fileio_open_1): Rename to target_fileio_open
6219 and make extern. Use bool.
6220 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6221 (target_fileio_read_alloc_1): Adjust.
6222 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6223 (target_fileio_open_warn_if_slow): Delete declaration.
6224
6225 2020-05-19 Pedro Alves <palves@redhat.com>
6226
6227 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6228 Adjust all callers.
6229
6230 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6231
6232 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6233 whether disp is negative.
6234
6235 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6236
6237 * symfile.h (struct symfile_segment_data)
6238 <~symfile_segment_data>: Remove.
6239 <segment_info>: Change to std::vector.
6240 * symfile.c (default_symfile_segments): Update.
6241 * elfread.c (elf_symfile_segments): Update.
6242
6243 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6244
6245 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6246 <segments>: New.
6247 <segment_bases, segment_sizes>: Remove.
6248 * symfile.c (default_symfile_segments): Update.
6249 * elfread.c (elf_symfile_segments): Update.
6250 * remote.c (remote_target::get_offsets): Update.
6251 * solib-target.c (solib_target_relocate_section_addresses):
6252 Update.
6253
6254 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6255
6256 * symfile.h (struct symfile_segment_data): Initialize fields.
6257 <~symfile_segment_data>: Add.
6258 (symfile_segment_data_up): New.
6259 (struct sym_fns) <sym_segments>: Return a
6260 symfile_segment_data_up.
6261 (default_symfile_segments): Return a symfile_segment_data_up.
6262 (free_symfile_segment_data): Remove.
6263 (get_symfile_segment_data): Return a symfile_segment_data_up.
6264 * symfile.c (default_symfile_segments): Likewise.
6265 (get_symfile_segment_data): Likewise.
6266 (free_symfile_segment_data): Remove.
6267 (symfile_find_segment_sections): Update.
6268 * elfread.c (elf_symfile_segments): Return a
6269 symfile_segment_data_up.
6270 * remote.c (remote_target::get_offsets): Update.
6271 * solib-target.c (solib_target_relocate_section_addresses):
6272 Update.
6273 * symfile-debug.c (debug_sym_segments): Return a
6274 symfile_segment_data_up.
6275
6276 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6277
6278 PR build/25981
6279 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6280 Hardcode register numbers.
6281
6282 PR build/25981
6283 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6284 procfs_find_LDT_entry): Remove.
6285 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6286 procfs_find_LDT_entry): Remove.
6287 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6288 Remove.
6289
6290 2020-05-17 Pedro Alves <palves@redhat.com>
6291 Andrew Burgess <andrew.burgess@embecosm.com>
6292 Keno Fischer <keno@juliacomputing.com>
6293
6294 PR gdb/25741
6295 * breakpoint.c (build_target_condition_list): Update comments.
6296 (build_target_command_list): Update comments and skip matching
6297 locations.
6298 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6299 a separate function. Simplify "set breakpoint auto-hw off"
6300 handling.
6301 (insert_breakpoints): Update comment.
6302 (tracepoint_locations_match): New parameter. For breakpoints,
6303 compare location types too, if the caller wants to.
6304 (handle_automatic_hardware_breakpoints): New functions.
6305 (bp_location_is_less_than): Also sort by location type and
6306 hardware breakpoint length.
6307 (update_global_location_list): Handle "set breakpoint auto-hw on"
6308 here.
6309 (update_breakpoint_locations): Ask breakpoint_locations_match to
6310 ignore location types.
6311
6312 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6313
6314 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6315 type::name instead.
6316
6317 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6318
6319 * gdbtypes.h (struct type) <name, set_name>: New methods.
6320 (TYPE_CODE): Use type::name. Change all call sites used to set
6321 the name to use type::set_name instead.
6322
6323 2020-05-16 Tom Tromey <tom@tromey.com>
6324
6325 * top.c (quit_force): Update.
6326 * infrun.c (handle_no_resumed): Update.
6327 * top.h (all_uis): New function.
6328 (ALL_UIS): Remove.
6329
6330 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6331
6332 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6333
6334 2020-05-16 Pedro Alves <palves@redhat.com>
6335
6336 * ia64-linux-nat.c
6337 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6338 Declare method.
6339 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6340
6341 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6342
6343 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6344 (sparc64_adi_info): Likewise.
6345
6346 2020-05-15 Tom Tromey <tom@tromey.com>
6347
6348 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6349 block_objfile.
6350 (lookup_objfile_from_block): Remove.
6351 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6352 (lookup_global_symbol): Use block_objfile.
6353 * symtab.h (lookup_objfile_from_block): Don't declare.
6354 * printcmd.c (clear_dangling_display_expressions): Use
6355 block_objfile.
6356 * parse.c (operator_check_standard): Use block_objfile.
6357
6358 2020-05-15 Tom Tromey <tom@tromey.com>
6359
6360 * language.c (language_alloc_type_symbol): Set
6361 SYMBOL_SECTION.
6362 * symtab.c (initialize_objfile_symbol): Remove.
6363 (allocate_symbol): Remove.
6364 (allocate_template_symbol): Remove.
6365 * dwarf2/read.c (fixup_go_packaging): Use "new".
6366 (new_symbol): Use "new".
6367 (read_variable): Don't call initialize_objfile_symbol. Use
6368 "new".
6369 (read_func_scope): Use "new".
6370 * xcoffread.c (process_xcoff_symbol): Don't call
6371 initialize_objfile_symbol.
6372 (SYMBOL_DUP): Remove.
6373 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6374 "new".
6375 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6376 (allocate_template_symbol): Don't declare.
6377 (struct symbol): Add copy constructor. Change defaults.
6378 * jit.c (finalize_symtab): Use "new".
6379 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6380 Use "new".
6381 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6382 (common_block_end): Use "new".
6383 * mdebugread.c (parse_symbol): Use "new".
6384 (new_symbol): Likewise.
6385
6386 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6387
6388 * NEWS: Mention changes to help and apropos.
6389
6390 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6391
6392 * command.h (enum command_class): Improve comments, document
6393 that class_alias is for user-defined aliases, give the class
6394 name for each class, remove unused class_xdb.
6395 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6396 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6397 by a precise class.
6398 * infcmd.c (_initialize_infcmd): Likewise.
6399 * reverse.c (_initialize_reverse): Likewise.
6400 * stack.c (_initialize_stack): Likewise.
6401 * symfile.c (_initialize_symfile): Likewise.
6402 * tracepoint.c (_initialize_tracepoint): Likewise.
6403
6404 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6405
6406 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6407 when their aliased command is traversed.
6408 (help_cmd): Add fput_command_names_styled call to
6409 output command name and aliases when command has an alias.
6410
6411 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6412
6413 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6414 * cli/cli-decode.c (help_cmd_list): Declare as static,
6415 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6416 a command together with the command.
6417 (fput_command_name_styled, fput_command_names_styled): New functions.
6418 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6419 fput_command_name_styled.
6420 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6421 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6422
6423 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6424
6425 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6426 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6427 * command.h (cmd_show_list): Likewise.
6428 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6429 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6430
6431 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6432
6433 * unittests/command-def-selftests.c (traverse_command_structure):
6434 Verify all commands of a list have the same prefix command and
6435 that only the top cmdlist commands have a null prefix.
6436
6437 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6438
6439 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6440 as prefix, not one of its aliases.
6441 (set_cmd_prefix): Remove.
6442 (do_add_cmd): Centralize the setting of the prefix of a command, when
6443 command is defined after its full chain of prefix commands.
6444 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6445 (add_setshow_cmd_full): Likewise.
6446 (update_prefix_field_of_prefixed_commands): New function.
6447 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6448 update_prefix_field_of_prefixed_commands.
6449 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6450 addresses of remote_set_cmdlist and remote_show_cmdlist given
6451 as argument, not the address of an argument.
6452 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6453 * gdb/remote.c (_initialize_remote): Likewise.
6454
6455 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6456
6457 * cli/cli-cmds.c (alias_command): Check for an existing alias
6458 using lookup_cmd_composition, as valid_command_p is too strict
6459 and forbids aliases that are the prefix of an existing alias
6460 or command.
6461 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6462 command is properly recognised as a valid command.
6463
6464 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6465
6466 * unittests/help-doc-selftests.c: Rename to
6467 unittests/command-def-selftests.c
6468 * unittests/command-def-selftests.c (help_doc_tests): Update some
6469 comments.
6470 (command_structure_tests, traverse_command_structure): New namespace
6471 and function.
6472 (command_structure_invariants_tests): New function.
6473 (_initialize_command_def_selftests) Renamed from
6474 _initialize_help_doc_selftests, register command_structure_invariants
6475 selftest.
6476
6477 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6478
6479 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6480 an alias of 'show'.
6481
6482 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6483
6484 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6485 ada_is_fixed_point_type. Update all callers.
6486 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6487 all callers.
6488 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6489 Update all callers.
6490 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6491 print_fixed_point_type. Update all callers.
6492 * ada-valprint.c (ada_value_print_num): Replace call to
6493 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6494
6495 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6496
6497 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6498 processors.
6499 (cpu_supports_bts): Add CV_AMD case.
6500
6501 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6502 Simon Marchi <simon.marchi@efficios.com>
6503
6504 * infrun.c (stop_all_threads): Collect multiple wait events at
6505 each pass.
6506
6507 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6508
6509 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6510 type::code instead.
6511
6512 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6513
6514 * gdbtypes.h (struct type) <code, set_code>: New methods.
6515 (TYPE_CODE): Use type::code. Change all call sites used to set
6516 the code to use type::set_code instead.
6517
6518 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6519 Tom de Vries <tdevries@suse.de>
6520 Pedro Alves <palves@redhat.com>
6521
6522 PR threads/25478
6523 * infrun.c (stop_all_threads): Do NOT ignore
6524 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6525 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6526 received.
6527 (handle_no_resumed): Remove code handling a live inferior with no
6528 threads.
6529 * remote.c (has_single_non_exited_thread): New.
6530 (remote_target::update_thread_list): Do not delete a thread if is
6531 the last thread of the process.
6532 * thread.c (thread_select): Call delete_exited_threads instead of
6533 prune_threads.
6534
6535 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6536
6537 * infrun.c (stop_all_threads): Enable/disable thread events of all
6538 targets. Move a debug message denoting the end of the function
6539 into the SCOPED_EXIT block.
6540
6541 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6542
6543 * process-stratum-target.h: Include <set>.
6544 (all_non_exited_process_targets, switch_to_target_no_thread): New
6545 function declarations.
6546 * process-stratum-target.c (all_non_exited_process_targets)
6547 (switch_to_target_no_thread): New function implementations.
6548
6549 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6550
6551 * infrun.c (handle_inferior_event): Extract out a piece of code
6552 into...
6553 (mark_non_executing_threads): ...this new function.
6554
6555 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6556
6557 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6558 use.
6559
6560 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6561
6562 * regcache.c (regcache_read_pc_protected): New function
6563 implementation that returns 0 if the PC cannot read via
6564 'regcache_read_pc'.
6565 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6566 instead of 'regcache_read_pc'.
6567 (keep_going_pass_signal): Ditto.
6568
6569 2020-05-13 Tom Tromey <tromey@adacore.com>
6570
6571 * ada-lang.c (align_value): Remove.
6572 (ada_template_to_fixed_record_type_1): Use align_up.
6573
6574 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6575
6576 * async-event.c: Update the copyright year.
6577 * async-event.h: Update the copyright year.
6578
6579 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6580
6581 * objfiles.h (is_addr_in_objfile,
6582 shared_objfile_contains_address_p): Return bool.
6583 * objfile.c (is_addr_in_objfile,
6584 shared_objfile_contains_address_p): Return bool.
6585
6586 2020-05-11 Tom Tromey <tromey@adacore.com>
6587
6588 * cli/cli-cmds.c (info_command): Restore.
6589 (_initialize_cli_cmds): Use add_prefix_command for "info".
6590 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6591
6592 2020-05-11 Tom Tromey <tromey@adacore.com>
6593
6594 * ada-lang.c (ada_value_primitive_field): Now public.
6595 * ada-lang.h (ada_value_primitive_field): Declare.
6596 * ada-valprint.c (print_field_values): Use
6597 ada_value_primitive_field for wrapper fields.
6598
6599 2020-05-11 Tom de Vries <tdevries@suse.de>
6600
6601 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6602 MODULE_DOMAIN.
6603
6604 2020-05-11 Tom de Vries <tdevries@suse.de>
6605
6606 PR symtab/25941
6607 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6608 with length 0, if not gdb-produced.
6609 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6610
6611 2020-05-09 Tom de Vries <tdevries@suse.de>
6612
6613 PR gdb/25955
6614 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6615 calculation.
6616
6617 2020-05-09 Tom Tromey <tom@tromey.com>
6618
6619 * top.c (server_command): Now bool.
6620 * top.h (server_command): Now bool.
6621
6622 2020-05-08 Tom Tromey <tromey@adacore.com>
6623
6624 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6625 already being processed.
6626
6627 2020-05-08 Tom Tromey <tom@tromey.com>
6628
6629 * printcmd.c (struct display) <next>: Remove.
6630 <display>: New constructor.
6631 <exp_string>: Now a std::string.
6632 <enabled_p>: Now a bool.
6633 (display_number): Move definition earlier.
6634 (displays): Rename from display_chain. Now a std::vector.
6635 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6636 (display_command): Update.
6637 (do_one_display, disable_display)
6638 (enable_disable_display_command, do_enable_disable_display):
6639 Update.
6640 (free_display): Remove.
6641 (clear_displays): Rewrite.
6642 (delete_display): Update.
6643 (map_display_numbers): Use function_view. Remove "data"
6644 parameter. Update.
6645 (do_delete_display): Remove.
6646 (undisplay_command): Update.
6647 (do_one_display, do_displays, disable_display)
6648 (info_display_command): Update.
6649 (do_enable_disable_display): Remove.
6650 (enable_disable_display_command)
6651 (clear_dangling_display_expressions): Update.
6652
6653 2020-05-08 Tom Tromey <tom@tromey.com>
6654
6655 * symtab.c (set_symbol_cache_size)
6656 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6657 (maintenance_print_symbol_cache_statistics): Update.
6658 * symmisc.c (print_symbol_bcache_statistics)
6659 (print_objfile_statistics, maintenance_print_objfiles)
6660 (maintenance_info_symtabs, maintenance_check_symtabs)
6661 (maintenance_expand_symtabs, maintenance_info_line_tables):
6662 Update.
6663 * symfile-debug.c (set_debug_symfile): Update.
6664 * source.c (forget_cached_source_info): Update.
6665 * python/python.c (gdbpy_progspaces): Update.
6666 * psymtab.c (maintenance_info_psymtabs): Update.
6667 * probe.c (parse_probes): Update.
6668 * linespec.c (iterate_over_all_matching_symtabs)
6669 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6670 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6671 * exec.c (exec_target::close): Update.
6672 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6673 * breakpoint.c (print_one_breakpoint_location)
6674 (create_longjmp_master_breakpoint)
6675 (create_std_terminate_master_breakpoint): Update.
6676 * progspace.c (program_spaces): Now a std::vector.
6677 (maybe_new_address_space): Update.
6678 (add_program_space): Remove.
6679 (program_space::program_space): Update.
6680 (remove_program_space): Update.
6681 (number_of_program_spaces): Remove.
6682 (print_program_space, update_address_spaces): Update.
6683 * progspace.h (program_spaces): Change type.
6684 (ALL_PSPACES): Remove.
6685 (number_of_program_spaces): Don't declare.
6686 (struct program_space) <next>: Remove.
6687
6688 2020-05-08 Tom Tromey <tom@tromey.com>
6689
6690 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6691 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6692 (enable_break): Update.
6693 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6694 (frv_fdpic_find_canonical_descriptor): Update.
6695 (frv_fetch_objfile_link_map): Update.
6696 * progspace.c (program_space::free_all_objfiles): Update.
6697 (program_space::solibs): New method.
6698 * progspace.h (struct program_space) <solibs>: New method.
6699 * solist.h (master_so_list): Don't declare.
6700 (ALL_SO_LIBS): Remove.
6701 * solib.h (so_list_head): Remove.
6702 (update_solib_list): Update comment.
6703 * solib.c (master_so_list): Remove.
6704 (solib_used, update_solib_list, solib_add)
6705 (info_sharedlibrary_command, clear_solib)
6706 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6707
6708 2020-05-08 Tom Tromey <tom@tromey.com>
6709
6710 * extension.c (extension_languages): Now a std::array.
6711 (ALL_EXTENSION_LANGUAGES): Remove.
6712 (get_ext_lang_defn, get_ext_lang_of_file)
6713 (eval_ext_lang_from_control_command): Update.
6714 (finish_ext_lang_initialization)
6715 (auto_load_ext_lang_scripts_for_objfile)
6716 (ext_lang_type_printers::ext_lang_type_printers)
6717 (apply_ext_lang_type_printers)
6718 (ext_lang_type_printers::~ext_lang_type_printers)
6719 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6720 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6721 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6722 (get_matching_xmethod_workers, ext_lang_colorize)
6723 (ext_lang_before_prompt): Update.
6724 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6725
6726 2020-05-08 Tom Tromey <tom@tromey.com>
6727
6728 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6729 overload.
6730 <swap_string, m_string>: Remove.
6731 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6732 Update.
6733 * stabsread.c (define_symbol, read_type): Update.
6734 * linespec.c (find_linespec_symbols): Update.
6735 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6736 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6737 * dbxread.c (read_dbx_symtab): Update.
6738 * cp-support.h (cp_canonicalize_string_full)
6739 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6740 Return unique_xmalloc_ptr.
6741 * cp-support.c (inspect_type): Update.
6742 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6743 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6744 Likewise.
6745 * c-typeprint.c (print_name_maybe_canonical): Update.
6746 * break-catch-throw.c (check_status_exception_catchpoint):
6747 Update.
6748
6749 2020-05-08 Tom de Vries <tdevries@suse.de>
6750
6751 * infrun.c (follow_fork): Copy current_line and current_symtab to
6752 child thread.
6753
6754 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6755
6756 * async-event.c (struct async_signal_handler, struct
6757 async_event_handler): Reformat, remove typedef.
6758
6759 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6760
6761 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6762 access thistype->main_type->dyn_prop_list directly.
6763
6764 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6765
6766 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6767 (remove_dyn_prop): Remove. Update all users to use
6768 type::remove_dyn_prop.
6769 * gdbtypes.c (remove_dyn_prop): Rename to...
6770 (type::remove_dyn_prop): ... this.
6771
6772 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6773
6774 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6775 (add_dyn_prop): Remove. Update all users to use
6776 type::add_dyn_prop.
6777 * gdbtypes.c (add_dyn_prop): Rename to...
6778 (type::add_dyn_prop): ... this.
6779
6780 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6781
6782 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6783 (get_dyn_prop): Remove. Update all users to use
6784 type::dyn_prop.
6785 * gdbtypes.c (get_dyn_prop): Rename to...
6786 (type::dyn_prop): ... this.
6787
6788 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6789
6790 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6791
6792 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6793
6794 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6795 instruction, skip it if it's there.
6796
6797 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6798
6799 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6800
6801 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6802
6803 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6804 * gdbtypes.c (recursive_dump_type): Remove use of
6805 TYPE_INCOMPLETE.
6806
6807 2020-05-03 Tom Tromey <tom@tromey.com>
6808
6809 * breakpoint.c (catch_command, tcatch_command): Remove.
6810 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6811 add_show_prefix_cmd.
6812 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6813 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6814 Remove.
6815 (add_internal_problem_command): Use add_basic_prefix_cmd,
6816 add_show_prefix_cmd.
6817 * mips-tdep.c (set_mipsfpu_command): Remove.
6818 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6819 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6820 (_initialize_index_cache): Use add_basic_prefix_cmd.
6821 * memattr.c (dummy_cmd): Remove.
6822 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6823 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6824 (_initialize_tui_win): Use add_basic_prefix_cmd,
6825 add_show_prefix_cmd.
6826 * cli/cli-logging.c (set_logging_command): Remove.
6827 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6828 add_show_prefix_cmd.
6829 (show_logging_command): Remove.
6830 * target.c (target_command): Remove.
6831 (add_target): Use add_basic_prefix_cmd.
6832
6833 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6834
6835 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6836
6837 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6838
6839 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6840 info_command.
6841
6842 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6843
6844 * nbsd-nat.c (nbsd_enable_proc_events)
6845 (nbsd_nat_target::post_startup_inferior): Add.
6846 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6847 (nbsd_nat_target::update_thread_list): Rewrite.
6848 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6849 "PTRACE_LWP_CREATE".
6850 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6851
6852 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6853
6854 * stack.c (_initialize_stack): Remove duplicated creation
6855 of "frame" command and "f" alias.
6856
6857 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6858
6859 PR gdb/18706
6860 * gdbtypes.c (check_typedef): Calculate size of array of
6861 stubbed type.
6862
6863 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6864
6865 PR gdb/15559
6866 * i386-tdep.c (i386_push_dummy_call): Call
6867 i386_thiscall_push_dummy_call.
6868 (i386_thiscall_push_dummy_call): New function.
6869 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6870 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6871 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6872
6873 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6874
6875 * gdbarch.sh (do_read): Add shellcheck disable directive for
6876 warning SC2162.
6877
6878 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6879
6880 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6881 "referenced but not assigned" warning.
6882
6883 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6884
6885 * gdbarch.sh: Remove code that sets fallbackdefault.
6886
6887 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6888
6889 * gdbarch.sh: Use shell operators && and || instead of
6890 -a and -o.
6891
6892 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6893
6894 * gdbarch.sh: Use $(...) instead of `...`.
6895
6896 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6897
6898 * gdbarch.sh: Use double quotes around variables.
6899
6900 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6901
6902 * gdbarch.sh: Use %s with printf, instead of variables in the
6903 format string.
6904
6905 2020-04-29 Tom Tromey <tromey@adacore.com>
6906
6907 PR ada/25875:
6908 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6909 type fields here.
6910 (read_enumeration_type): Call
6911 update_enumeration_type_from_children later. Update comments.
6912 (process_enumeration_scope): Don't create type fields.
6913
6914 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6915
6916 * nbsd-tdep.c: Include "xml-syscall.h".
6917 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6918
6919 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6920
6921 * nbsd-nat.c: Include "sys/wait.h".
6922 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6923 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6924 (nbsd_nat_target::remove_exec_catchpoint)
6925 (nbsd_nat_target::set_syscall_catchpoint): Add.
6926 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6927 (nbsd_nat_target::insert_exec_catchpoint)
6928 (nbsd_nat_target::remove_exec_catchpoint)
6929 (nbsd_nat_target::set_syscall_catchpoint): Add.
6930 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6931 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6932 `nbsd_get_syscall_number'.
6933
6934 2020-04-29 Tom Tromey <tom@tromey.com>
6935
6936 * stack.c (print_block_frame_labels): Remove.
6937
6938 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6939
6940 PR gdb/17320
6941 * ada-valprint.c (val_print_packed_array_elements): Move array
6942 end bracket to new line.
6943 (ada_val_print_string): Remove extra spaces before first array
6944 element.
6945 * c-valprint.c (c_value_print_array): Likewise.
6946 * m2-valprint.c (m2_print_array_contents): Likewise.
6947 (m2_value_print_inner): Likewise.
6948 * p-valprint.c (pascal_value_print_inner): Likewise.
6949 * valprint.c (generic_val_print_array): Likewise.
6950 (value_print_array_elements): Move first array element and array
6951 end bracket to new line.
6952
6953 2020-04-29 Tom de Vries <tdevries@suse.de>
6954
6955 PR symtab/25889
6956 * linespec.c (find_method): Fix ix calculation.
6957
6958 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6959
6960 * syscalls/update-netbsd.sh: New file.
6961 * syscalls/netbsd.xml: Regenerate.
6962 * data-directory/Makefile.in: Register `netbsd.xml' in
6963 `SYSCALLS_FILES'.
6964
6965 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6966
6967 * syscalls/update-freebsd.sh: Add double quotes.
6968
6969 2020-04-28 Tom Tromey <tom@tromey.com>
6970
6971 * NEWS: Update.
6972 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6973 (cmdpy_init): Allow class_tui.
6974
6975 2020-04-28 Mark Williams <mark@myosotissp.com>
6976
6977 PR gdb/24480
6978 * dwarf2read.c: Add missing assingments to list_in_scope when
6979 start_symtab was already called.
6980
6981 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6982
6983 PR gdb/25881
6984 * dwarf2/read.c (offset_map_type): Use
6985 gdb:hash_enum<sect_offset> as hash function.
6986
6987 2020-04-28 Tom de Vries <tdevries@suse.de>
6988
6989 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6990 with DW_AT_signature.
6991
6992 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6993
6994 * configure.ac: Remove check for fs_base/gs_base in
6995 user_regs_struct.
6996 * configure: Re-generate.
6997 * config.in: Re-generate.
6998 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6999 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7000 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7001
7002 2020-04-27 Luis Machado <luis.machado@linaro.org>
7003
7004 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7005 problematic inline frame unwinding situation.
7006 * frame.c (frame_id_computed_p): New function.
7007 * frame.h (frame_id_computed_p): New prototype.
7008
7009 2020-04-26 Tom Tromey <tom@tromey.com>
7010
7011 * command.h (enum command_class) <class_pseudo>: Remove.
7012
7013 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7014
7015 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7016 and whitespace.
7017
7018 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7019
7020 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7021 `PT_GET_PROCESS_STATE' block.
7022
7023 2020-04-24 Tom Tromey <tom@tromey.com>
7024
7025 * symtab.h (symbol_get_demangled_name): Don't declare.
7026 * symtab.c (symbol_get_demangled_name): Remove.
7027 (general_symbol_info::natural_name)
7028 (general_symbol_info::demangled_name): Update.
7029
7030 2020-04-24 Tom Tromey <tom@tromey.com>
7031
7032 PR rust/25025:
7033 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7034
7035 2020-04-24 Tom Tromey <tom@tromey.com>
7036
7037 PR symtab/12707:
7038 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7039 exists.
7040 (new_symbol): Likewise.
7041 * compile/compile-object-load.c (get_out_value_type): Use
7042 symbol_matches_search_name.
7043
7044 2020-04-24 Tom Tromey <tom@tromey.com>
7045
7046 * dwarf2/read.c (add_partial_symbol): Do not call
7047 compute_and_set_names.
7048
7049 2020-04-24 Tom Tromey <tom@tromey.com>
7050
7051 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7052 overload.
7053
7054 2020-04-24 Tom Tromey <tom@tromey.com>
7055
7056 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7057 (add_psymbol_to_list): New overload. Make old overload call new
7058 one.
7059 * psympriv.h (add_psymbol_to_list): New overload.
7060
7061 2020-04-24 Tom Tromey <tom@tromey.com>
7062
7063 * dwarf2/read.c (partial_die_info::read) <case
7064 DW_AT_linkage_name>: Use value_as_string.
7065 (dwarf2_string_attr): Use value_as_string.
7066 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7067 method.
7068 * dwarf2/attribute.c (attribute::value_as_string): New method.
7069
7070 2020-04-24 Tom Tromey <tom@tromey.com>
7071
7072 * symtab.c (general_symbol_info::natural_name)
7073 (general_symbol_info::demangled_name): Check for language_rust.
7074
7075 2020-04-24 Tom Tromey <tom@tromey.com>
7076
7077 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7078 (dwarf2_physname): ... from here.
7079 (partial_die_info::read): Add Rust "{" hack.
7080
7081 2020-04-24 Tom Tromey <tom@tromey.com>
7082
7083 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7084 method.
7085 (symbol_set_demangled_name): Don't declare.
7086 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7087 symbol_set_demangled_name.
7088 (general_symbol_info::set_language)
7089 (general_symbol_info::compute_and_set_names): Update.
7090 * minsyms.c (minimal_symbol_reader::install): Update.
7091 * dwarf2/read.c (new_symbol): Update.
7092
7093 2020-04-24 Tom Tromey <tromey@adacore.com>
7094
7095 PR python/23662:
7096 * python/py-type.c (convert_field): Handle
7097 FIELD_LOC_KIND_DWARF_BLOCK.
7098 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7099 (typy_get_dynamic): Nw function.
7100 (type_object_getset): Add "dynamic".
7101 * NEWS: Add entry.
7102
7103 2020-04-24 Tom Tromey <tromey@adacore.com>
7104
7105 * ada-typeprint.c (print_choices, print_variant_part)
7106 (print_record_field_types_dynamic): New functions.
7107 (print_record_field_types): Use print_record_field_types_dynamic.
7108
7109 2020-04-24 Tom Tromey <tromey@adacore.com>
7110
7111 * dwarf2/read.c (handle_data_member_location): New overload.
7112 (dwarf2_add_field): Use it.
7113 (decode_locdesc): Add "computed" parameter. Update comment.
7114 * gdbtypes.c (is_dynamic_type_internal): Also look for
7115 FIELD_LOC_KIND_DWARF_BLOCK.
7116 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7117 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7118 virtual base classes.
7119 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7120 FIELD_LOC_KIND_DWARF_BLOCK.
7121
7122 2020-04-24 Tom Tromey <tromey@adacore.com>
7123
7124 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7125 * gdbtypes.c (is_dynamic_type_internal): Check
7126 TYPE_HAS_DYNAMIC_LENGTH.
7127 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7128 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7129 New macros.
7130 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7131 constant.
7132
7133 2020-04-24 Tom Tromey <tromey@adacore.com>
7134
7135 * dwarf2/read.c (struct variant_field): Rewrite.
7136 (struct variant_part_builder): New.
7137 (struct nextfield): Remove "variant" field. Add "offset".
7138 (struct field_info): Add "current_variant_part" and
7139 "variant_parts".
7140 (alloc_discriminant_info): Remove.
7141 (alloc_rust_variant): New function.
7142 (quirk_rust_enum): Update.
7143 (dwarf2_add_field): Set "offset" member. Don't handle
7144 DW_TAG_variant_part.
7145 (offset_map_type): New typedef.
7146 (convert_variant_range, create_one_variant)
7147 (create_one_variant_part, create_variant_parts)
7148 (add_variant_property): New functions.
7149 (dwarf2_attach_fields_to_type): Call add_variant_property.
7150 (read_structure_type): Don't handle DW_TAG_variant_part.
7151 (handle_variant_part, handle_variant): New functions.
7152 (handle_struct_member_die): Use them.
7153 (process_structure_scope): Don't handle variant parts.
7154 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7155 (struct discriminant_info): Remove.
7156 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7157 (struct main_type) <flag_discriminated_union>: Remove.
7158 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7159 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7160 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7161 Update.
7162 * valops.c (value_union_variant): Remove.
7163 * value.h (value_union_variant): Don't declare.
7164
7165 2020-04-24 Tom Tromey <tromey@adacore.com>
7166
7167 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7168 (ada_value_primitive_packed_val): Update.
7169 * ada-valprint.c (ada_value_print_1): Update.
7170 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7171 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7172 just an address. Use evaluate_for_locexpr_baton.
7173 (dwarf2_evaluate_property): Update.
7174 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7175 array_view.
7176 * findvar.c (default_read_var_value): Update.
7177 * gdbtypes.c (compute_variant_fields_inner)
7178 (resolve_dynamic_type_internal): Update.
7179 (resolve_dynamic_type): Change type of valaddr parameter.
7180 * gdbtypes.h (resolve_dynamic_type): Update.
7181 * valarith.c (value_subscripted_rvalue): Update.
7182 * value.c (value_from_contents_and_address): Update.
7183
7184 2020-04-24 Tom Tromey <tromey@adacore.com>
7185
7186 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7187 "push_initial_value" parameter.
7188 (dwarf2_evaluate_property): Likewise.
7189 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7190
7191 2020-04-24 Tom Tromey <tromey@adacore.com>
7192
7193 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7194 (variant::matches, compute_variant_fields_recurse)
7195 (compute_variant_fields_inner, compute_variant_fields): New
7196 functions.
7197 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7198 Use resolved_type after type is made.
7199 (operator==): Add new cases.
7200 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7201 (struct discriminant_range, struct variant, struct variant_part):
7202 New.
7203 (union dynamic_prop_data) <variant_parts, original_type>: New
7204 members.
7205 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7206 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7207 constants.
7208 * value.c (unpack_bits_as_long): Now public.
7209 * value.h (unpack_bits_as_long): Declare.
7210
7211 2020-04-24 Tom Tromey <tromey@adacore.com>
7212
7213 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7214 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7215
7216 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7217
7218 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7219
7220 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7221
7222 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7223 (remove_fork_catchpoint, post_startup_inferior)
7224 (post_attach): Move...
7225 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7226 (remove_fork_catchpoint, post_startup_inferior)
7227 (post_attach): ...here.
7228 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7229 (remove_fork_catchpoint, post_startup_inferior)
7230 (post_attach): Move...
7231 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7232 (remove_fork_catchpoint, post_startup_inferior)
7233 (post_attach): ...here.
7234
7235 2020-04-24 Tom Tromey <tromey@adacore.com>
7236
7237 * nat/windows-nat.h (struct windows_thread_info)
7238 <pc_adjusted>: New member.
7239 * windows-nat.c (windows_fetch_one_register): Check
7240 pc_adjusted.
7241 (windows_nat_target::get_windows_debug_event)
7242 (windows_nat_target::wait): Set pc_adjusted.
7243
7244 2020-04-24 Tom de Vries <tdevries@suse.de>
7245
7246 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7247 Run gdb-add-index inside temp dir.
7248
7249 2020-04-23 Tom Tromey <tromey@adacore.com>
7250
7251 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7252 in loop.
7253
7254 2020-04-23 Luis Machado <luis.machado@linaro.org>
7255
7256 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7257 get_frame_register instead of gdbarch_unwind_pc.
7258
7259 2020-04-23 Tom de Vries <tdevries@suse.de>
7260
7261 * symtab.c (lookup_global_symbol): Prefer def over decl.
7262
7263 2020-04-23 Tom de Vries <tdevries@suse.de>
7264
7265 PR symtab/25807
7266 * block.c (best_symbol, better_symbol): Promote to external.
7267 * block.h (best_symbol, better_symbol): Declare.
7268 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7269 decl.
7270
7271 2020-04-23 Tom Tromey <tromey@adacore.com>
7272
7273 PR ada/25837:
7274 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7275 "const char *", not a "const std::string &".
7276 <name_and_matcher::operator==>: Update.
7277 * unittests/lookup_name_info-selftests.c: Change type of
7278 "result".
7279
7280 2020-04-23 Tom Tromey <tom@tromey.com>
7281
7282 * inferior.h (iterate_over_inferiors): Don't declare.
7283 * inferior.c (iterate_over_inferiors): Remove.
7284 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7285 Remove.
7286 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7287 use iterate_over_inferiors.
7288 (darwin_resume_inferior_it)
7289 (struct resume_inferior_threads_param)
7290 (darwin_resume_inferior_threads_it): Remove.
7291 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7292
7293 2020-04-23 Tom de Vries <tdevries@suse.de>
7294
7295 * blockframe.c (find_pc_partial_function): Use
7296 find_pc_sect_compunit_symtab rather than
7297 objfile->sf->qf->find_pc_sect_compunit_symtab.
7298
7299 2020-04-22 Tom de Vries <tdevries@suse.de>
7300
7301 PR symtab/25764
7302 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7303 in psymtabs.
7304
7305 2020-04-22 Tom de Vries <tdevries@suse.de>
7306
7307 PR symtab/25801
7308 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7309 symtabs.
7310
7311 2020-04-22 Tom de Vries <tdevries@suse.de>
7312
7313 PR symtab/25700
7314 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7315 CU if already created.
7316
7317 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7318
7319 * infrun.c (displaced_step_fixup): Switch to the event_thread
7320 before calling displaced_step_restore, not after.
7321
7322 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7323
7324 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7325 its inferior is not recorded by us.
7326 (record_btrace_target_open): Replace call to
7327 all_non_exited_threads () with call to current_inferior
7328 ()->non_exited_threads ().
7329 (record_btrace_target::stop_recording): Likewise.
7330 (record_btrace_target::close): Likewise.
7331 (record_btrace_target::wait): Likewise.
7332 (record_btrace_target::record_stop_replaying): Likewise.
7333
7334 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7335
7336 * btrace.c (btrace_enable): Throw an error on double enables and
7337 when enabling recording fails.
7338 (btrace_disable): Throw an error if the thread is not recorded.
7339
7340 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7341
7342 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7343 request if we do not have a thread_info.
7344
7345 2020-04-21 Tom de Vries <tdevries@suse.de>
7346
7347 PR gdb/25471
7348 * thread.c
7349 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7350 exception in get_frame_id.
7351
7352 2020-04-20 Tom Tromey <tromey@adacore.com>
7353
7354 * python/python.c (struct gdbpy_event): Mark move constructor as
7355 noexcept.
7356 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7357 constructor as noexcept.
7358 * completer.h (struct completion_result): Mark move constructor as
7359 noexcept.
7360 * completer.c (completion_result::completion_result): Use
7361 initialization style. Don't call reset_match_list.
7362
7363 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7364
7365 * MAINTAINERS (Write After Approval): Add myself.
7366
7367 2020-04-18 Tom Tromey <tom@tromey.com>
7368
7369 * windows-tdep.c (init_w32_command_list)
7370 (w32_prefix_command_valid): Restore.
7371 (_initialize_windows_tdep): Call init_w32_command_list.
7372
7373 2020-04-18 Tom Tromey <tom@tromey.com>
7374
7375 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7376 * value.c (value_fn_field): Update.
7377 * valops.c (find_function_in_inferior)
7378 (value_allocate_space_in_inferior): Update.
7379 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7380 Update.
7381 * tui/tui-source.c (tui_source_window::set_contents): Update.
7382 * symtab.c (lookup_global_or_static_symbol)
7383 (find_function_start_sal_1, skip_prologue_sal)
7384 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7385 * symmisc.c (dump_msymbols, dump_symtab_1)
7386 (maintenance_print_one_line_table): Update.
7387 * symfile.c (init_entry_point_info, section_is_mapped)
7388 (list_overlays_command, simple_read_overlay_table)
7389 (simple_overlay_update_1): Update.
7390 * stap-probe.c (handle_stap_probe): Update.
7391 * stabsread.c (dbx_init_float_type, define_symbol)
7392 (read_one_struct_field, read_enum_type, read_range_type): Update.
7393 * source.c (info_line_command): Update.
7394 * python/python.c (gdbpy_source_objfile_script)
7395 (gdbpy_execute_objfile_script): Update.
7396 * python/py-type.c (save_objfile_types): Update.
7397 * python/py-objfile.c (py_free_objfile): Update.
7398 * python/py-inferior.c (python_new_objfile): Update.
7399 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7400 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7401 (maintenance_check_psymtabs): Update.
7402 * printcmd.c (info_address_command): Update.
7403 * objfiles.h (struct objfile) <arch>: New method, from
7404 get_objfile_arch.
7405 (get_objfile_arch): Don't declare.
7406 * objfiles.c (get_objfile_arch): Remove.
7407 (filter_overlapping_sections): Update.
7408 * minsyms.c (msymbol_is_function): Update.
7409 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7410 (output_nondebug_symbol): Update.
7411 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7412 (mdebug_expand_psymtab): Update.
7413 * machoread.c (macho_add_oso_symfile): Update.
7414 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7415 Update.
7416 * linux-fork.c (checkpoint_command): Update.
7417 * linespec.c (convert_linespec_to_sals): Update.
7418 * jit.c (finalize_symtab): Update.
7419 * infrun.c (insert_exception_resume_from_probe): Update.
7420 * ia64-tdep.c (ia64_find_unwind_table): Update.
7421 * hppa-tdep.c (internalize_unwinds): Update.
7422 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7423 Update.
7424 * gcore.c (call_target_sbrk): Update.
7425 * elfread.c (record_minimal_symbol, elf_symtab_read)
7426 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7427 (elf_gnu_ifunc_resolve_by_got): Update.
7428 * dwarf2/read.c (create_addrmap_from_index)
7429 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7430 (read_debug_names_from_section)
7431 (process_psymtab_comp_unit_reader, add_partial_symbol)
7432 (add_partial_subprogram, process_full_comp_unit)
7433 (read_file_scope, read_func_scope, read_lexical_block_scope)
7434 (read_call_site_scope, dwarf2_ranges_read)
7435 (dwarf2_record_block_ranges, dwarf2_add_field)
7436 (mark_common_block_symbol_computed, read_tag_pointer_type)
7437 (read_tag_string_type, dwarf2_init_float_type)
7438 (dwarf2_init_complex_target_type, read_base_type)
7439 (partial_die_info::read, partial_die_info::read)
7440 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7441 (dwarf2_fetch_die_loc_sect_off): Update.
7442 * dwarf2/loc.c (dwarf2_find_location_expression)
7443 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7444 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7445 (dwarf2_loc_desc_get_symbol_read_needs)
7446 (locexpr_describe_location_piece, locexpr_describe_location_1)
7447 (loclist_describe_location): Update.
7448 * dwarf2/index-write.c (write_debug_names): Update.
7449 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7450 * dtrace-probe.c (dtrace_process_dof): Update.
7451 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7452 (process_one_symbol): Update.
7453 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7454 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7455 (coff_read_enum_type): Update.
7456 * cli/cli-cmds.c (edit_command, list_command): Update.
7457 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7458 * breakpoint.c (create_overlay_event_breakpoint)
7459 (create_longjmp_master_breakpoint)
7460 (create_std_terminate_master_breakpoint)
7461 (create_exception_master_breakpoint, get_sal_arch): Update.
7462 * block.c (block_gdbarch): Update.
7463 * annotate.c (annotate_source_line): Update.
7464
7465 2020-04-17 Tom Tromey <tromey@adacore.com>
7466
7467 * auto-load.c (show_auto_load_cmd): Remove.
7468 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7469 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7470 (maintenance_print_arc_command): Remove.
7471 * tui/tui-win.c (tui_command): Remove.
7472 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7473 * tui/tui-layout.c (tui_layout_command): Remove.
7474 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7475 * python/python.c (user_set_python, user_show_python): Remove.
7476 (_initialize_python): Use add_basic_prefix_cmd,
7477 add_show_prefix_cmd.
7478 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7479 (install_gdb_commands): Use add_basic_prefix_cmd,
7480 add_show_prefix_cmd.
7481 (info_guile_command): Remove.
7482 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7483 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7484 add_show_prefix_cmd.
7485 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7486 Remove do_set and do_show parameters.
7487 * cli/cli-style.c (set_style, show_style): Remove.
7488 (_initialize_cli_style): Use add_basic_prefix_cmd,
7489 add_show_prefix_cmd.
7490 (cli_style_option::add_setshow_commands): Remove do_set and
7491 do_show parameters.
7492 (cli_style_option::add_setshow_commands): Use
7493 add_basic_prefix_cmd, add_show_prefix_cmd.
7494 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7495 (set_style_name): Remove.
7496 * cli/cli-dump.c (dump_command, append_command): Remove.
7497 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7498 (tekhex_dump_command, binary_dump_command)
7499 (binary_append_command): Remove.
7500 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7501 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7502 (init_w32_command_list): Remove; move into ...
7503 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7504 * valprint.c (set_print, show_print, set_print_raw)
7505 (show_print_raw): Remove.
7506 (_initialize_valprint): Use add_basic_prefix_cmd,
7507 add_show_prefix_cmd.
7508 * typeprint.c (set_print_type, show_print_type): Remove.
7509 (_initialize_typeprint): Use add_basic_prefix_cmd,
7510 add_show_prefix_cmd.
7511 * record.c (set_record_command, show_record_command): Remove.
7512 (_initialize_record): Use add_basic_prefix_cmd,
7513 add_show_prefix_cmd.
7514 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7515 add_show_prefix_cmd.
7516 (info_command, show_command, set_debug, show_debug): Remove.
7517 * top.h (set_history, show_history): Don't declare.
7518 * top.c (set_history, show_history): Remove.
7519 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7520 (unset_tdesc_cmd): Remove.
7521 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7522 add_show_prefix_cmd.
7523 * symtab.c (info_module_command): Remove.
7524 (_initialize_symtab): Use add_basic_prefix_cmd.
7525 * symfile.c (overlay_command): Remove.
7526 (_initialize_symfile): Use add_basic_prefix_cmd.
7527 * sparc64-tdep.c (info_adi_command): Remove.
7528 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7529 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7530 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7531 add_show_prefix_cmd.
7532 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7533 (_initialize_serial): Use add_basic_prefix_cmd,
7534 add_show_prefix_cmd.
7535 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7536 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7537 add_show_prefix_cmd.
7538 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7539 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7540 add_show_prefix_cmd.
7541 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7542 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7543 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7544 add_show_prefix_cmd.
7545 * remote.c (remote_command, set_remote_cmd): Remove.
7546 (_initialize_remote): Use add_basic_prefix_cmd.
7547 * record-full.c (set_record_full_command)
7548 (show_record_full_command): Remove.
7549 (_initialize_record_full): Use add_basic_prefix_cmd,
7550 add_show_prefix_cmd.
7551 * record-btrace.c (cmd_set_record_btrace)
7552 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7553 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7554 (cmd_show_record_btrace_pt): Remove.
7555 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7556 add_show_prefix_cmd.
7557 * ravenscar-thread.c (set_ravenscar_command)
7558 (show_ravenscar_command): Remove.
7559 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7560 add_show_prefix_cmd.
7561 * mips-tdep.c (show_mips_command, set_mips_command)
7562 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7563 add_show_prefix_cmd.
7564 * maint.c (maintenance_command, maintenance_info_command)
7565 (maintenance_check_command, maintenance_print_command)
7566 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7567 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7568 add_show_prefix_cmd.
7569 (show_per_command_cmd): Remove.
7570 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7571 Remove.
7572 (maintenance_show_test_settings_cmd): Remove.
7573 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7574 add_show_prefix_cmd.
7575 * maint-test-options.c (maintenance_test_options_command):
7576 Remove.
7577 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7578 * macrocmd.c (macro_command): Remove
7579 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7580 * language.c (set_check, show_check): Remove.
7581 (_initialize_language): Use add_basic_prefix_cmd,
7582 add_show_prefix_cmd.
7583 * infcmd.c (unset_command): Remove.
7584 (_initialize_infcmd): Use add_basic_prefix_cmd.
7585 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7586 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7587 add_show_prefix_cmd.
7588 * go32-nat.c (go32_info_dos_command): Remove.
7589 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7590 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7591 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7592 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7593 (_initialize_frame): Use add_basic_prefix_cmd,
7594 add_show_prefix_cmd.
7595 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7596 (_initialize_dcache): Use add_basic_prefix_cmd,
7597 add_show_prefix_cmd.
7598 * cp-support.c (maint_cplus_command): Remove.
7599 (_initialize_cp_support): Use add_basic_prefix_cmd.
7600 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7601 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7602 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7603 add_basic_prefix_cmd, add_show_prefix_cmd.
7604 * breakpoint.c (save_command): Remove.
7605 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7606 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7607 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7608 add_show_prefix_cmd.
7609 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7610 (set_ada_command, show_ada_command): Remove.
7611 (_initialize_ada_language): Use add_basic_prefix_cmd,
7612 add_show_prefix_cmd.
7613 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7614
7615 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7616
7617 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7618 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7619
7620 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7621
7622 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7623 warning messages.
7624
7625 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7626
7627 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7628 import table is not at beginning of .idata section.
7629
7630 2020-04-16 Pedro Alves <palves@redhat.com>
7631
7632 * inferior.c (delete_inferior): Use delete operator directly
7633 instead of delete_program_space.
7634 * progspace.c (add_program_space): New, factored out from
7635 program_space::program_space.
7636 (remove_program_space): New, factored out from
7637 delete_program_space.
7638 (program_space::program_space): Remove intro comment. Rewrite.
7639 (program_space::~program_space): Remove intro comment. Call
7640 remove_program_space.
7641 (delete_program_space): Delete.
7642 * progspace.h (program_space::program_space): Make explicit. Move
7643 intro comment here, adjusted.
7644 (program_space::~program_space): Move intro comment here,
7645 adjusted.
7646 (delete_program_space): Remove.
7647
7648 2020-04-16 Tom Tromey <tromey@adacore.com>
7649
7650 * windows-nat.c (windows_nat::handle_access_violation): New
7651 function.
7652 * nat/windows-nat.h (handle_access_violation): Declare.
7653 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7654 windows-nat.c. Call handle_access_violation.
7655
7656 2020-04-16 Tom de Vries <tdevries@suse.de>
7657
7658 PR symtab/25791
7659 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7660 CUs without psymtab.
7661
7662 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7663
7664 * python/python.c (do_start_initialization): Don't call
7665 PyEval_InitThreads for Python 3.9 and beyond.
7666
7667 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7668
7669 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7670 thread functions.
7671 (obsd_nat_target::wait): Likewise.
7672
7673 2020-04-15 Tom Tromey <tromey@adacore.com>
7674
7675 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7676 (DEBUG_EXCEPT): Use debug_printf.
7677
7678 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7679
7680 * completer.c (class completion_tracker::completion_hash_entry)
7681 <hash_name>: New member function.
7682 (completion_tracker::discard_completions): New callback to hash a
7683 completion_hash_entry, pass this to htab_create_alloc.
7684
7685 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7686
7687 * windows-nat.c (windows_make_so): Warn rather than stopping with
7688 an error if realpath() fails.
7689
7690 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7691
7692 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7693 (nbsd_nat_target::info_proc): Add do_status.
7694
7695 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7696 Tom de Vries <tdevries@suse.de>
7697
7698 PR symtab/25718
7699 * psympriv.h (struct partial_symtab::read_symtab)
7700 (struct partial_symtab::expand_psymtab)
7701 (struct partial_symtab::read_dependencies): Update comments.
7702 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7703 read_symtab for includer.
7704 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7705 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7706 (struct dwarf2_include_psymtab::m_readin): Remove.
7707 (struct dwarf2_include_psymtab::includer): New member function.
7708 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7709
7710 2020-04-14 Tom de Vries <tdevries@suse.de>
7711
7712 PR symtab/25720
7713 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7714 with NULL symbol_matcher and lookup_name.
7715 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7716 and lookup_name.
7717 * dwarf2/read.c (dw2_expand_symtabs_matching)
7718 (dw2_debug_names_expand_symtabs_matching): Same.
7719 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7720 Make lookup_name a pointer. Update comment.
7721 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7722 lookup_name being a pointer.
7723 * symfile.c (expand_symtabs_matching): Same.
7724 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7725 * linespec.c (iterate_over_all_matching_symtabs): Same.
7726
7727 2020-04-13 Tom Tromey <tom@tromey.com>
7728
7729 * run-on-main-thread.c: Update include.
7730 * unittests/main-thread-selftests.c: Update include.
7731 * tui/tui-win.c: Update include.
7732 * tui/tui-io.c: Update include.
7733 * tui/tui-interp.c: Update include.
7734 * tui/tui-hooks.c: Update include.
7735 * top.h: Update include.
7736 * top.c: Update include.
7737 * ser-base.c: Update include.
7738 * remote.c: Update include.
7739 * remote-notif.c: Update include.
7740 * remote-fileio.c: Update include.
7741 * record-full.c: Update include.
7742 * record-btrace.c: Update include.
7743 * python/python.c: Update include.
7744 * posix-hdep.c: Update include.
7745 * mingw-hdep.c: Update include.
7746 * mi/mi-main.c: Update include.
7747 * mi/mi-interp.c: Update include.
7748 * main.c: Update include.
7749 * linux-nat.c: Update include.
7750 * interps.c: Update include.
7751 * infrun.c: Update include.
7752 * inf-loop.c: Update include.
7753 * event-top.c: Update include.
7754 * event-loop.c: Move to ../gdbsupport/.
7755 * event-loop.h: Move to ../gdbsupport/.
7756 * async-event.h: Update include.
7757 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7758
7759 2020-04-13 Tom Tromey <tom@tromey.com>
7760
7761 * tui/tui-win.c: Include async-event.h.
7762 * remote.c: Include async-event.h.
7763 * remote-notif.c: Include async-event.h.
7764 * record-full.c: Include async-event.h.
7765 * record-btrace.c: Include async-event.h.
7766 * infrun.c: Include async-event.h.
7767 * event-top.c: Include async-event.h.
7768 * event-loop.h: Move some declarations to async-event.h.
7769 * event-loop.c: Don't include ser-event.h or top.h. Move some
7770 code to async-event.c.
7771 * async-event.h: New file.
7772 * async-event.c: New file.
7773 * Makefile.in (COMMON_SFILES): Add async-event.c.
7774 (HFILES_NO_SRCDIR): Add async-event.h.
7775
7776 2020-04-13 Tom Tromey <tom@tromey.com>
7777
7778 * utils.c (flush_streams): New function.
7779 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7780
7781 2020-04-13 Tom Tromey <tom@tromey.com>
7782
7783 * event-loop.c (handle_file_event): Use warning, not
7784 printf_unfiltered.
7785
7786 2020-04-13 Tom Tromey <tom@tromey.com>
7787
7788 * event-loop.c: Include <chrono>.
7789
7790 2020-04-13 Tom Tromey <tom@tromey.com>
7791
7792 * gdb_select.h: Move to ../gdbsupport/.
7793 * event-loop.c: Update include path.
7794 * top.c: Update include path.
7795 * ser-base.c: Update include path.
7796 * ui-file.c: Update include path.
7797 * ser-tcp.c: Update include path.
7798 * guile/scm-ports.c: Update include path.
7799 * posix-hdep.c: Update include path.
7800 * ser-unix.c: Update include path.
7801 * gdb_usleep.c: Update include path.
7802 * mingw-hdep.c: Update include path.
7803 * inflow.c: Update include path.
7804 * infrun.c: Update include path.
7805 * event-top.c: Update include path.
7806
7807 2020-04-13 Tom Tromey <tom@tromey.com>
7808
7809 * configure: Rebuild.
7810 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7811
7812 2020-04-13 Tom Tromey <tom@tromey.com>
7813
7814 * event-loop.h (start_event_loop): Don't declare.
7815 * event-loop.c (start_event_loop): Move...
7816 * main.c (start_event_loop): ...here. Now static.
7817
7818 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7819
7820 * MAINTAINERS: Update my email address.
7821
7822 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7823
7824 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7825 IP_ALL.
7826
7827 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7828
7829 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7830 (nbsd_nat_target::info_proc): Add do_cmdline.
7831
7832 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7833
7834 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7835 (nbsd_nat_target::info_proc): Add do_cwd.
7836
7837 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7838
7839 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7840
7841 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7842
7843 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7844 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7845 (nbsd_nat_target::info_proc): New functions.
7846 * nbsd-nat.c (kinfo_get_vmmap): New function.
7847 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7848 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7849 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7850 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7851 functions.
7852 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7853 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7854 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7855 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7856 (KINFO_VME_FLAG_GROWS_DOWN): New.
7857
7858 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7859
7860 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7861 bit shift.
7862
7863 2020-04-10 Tom Tromey <tromey@adacore.com>
7864
7865 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7866
7867 2020-04-10 Tom Tromey <tromey@adacore.com>
7868
7869 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7870 separate debug files.
7871
7872 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7873
7874 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7875 Move to...
7876 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7877 ... here.
7878 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7879 Check for STATUS_WX86_BREAKPOINT.
7880 (windows_nat_target::wait): Same.
7881
7882 2020-04-10 Tom de Vries <tdevries@suse.de>
7883
7884 PR cli/25808
7885 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7886
7887 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7888
7889 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7890 (Write After Approval): Remove Tom de Vries.
7891
7892 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7893
7894 revert partially:
7895 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7896
7897 * buildsym.c (record_line): Fix undefined behavior and preserve
7898 lines at eof.
7899
7900 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7901
7902 * auxv.h (svr4_auxv_parse): New.
7903 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7904 and generic_auxv_parse.
7905 (svr4_auxv_parse): Add.
7906 * obsd-tdep.c: Include "auxv.h".
7907 (obsd_auxv_parse): Remove.
7908 (obsd_init_abi): Remove comment.
7909 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7910 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7911 * nbsd-tdep.c: Include "auxv.h".
7912 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7913
7914 2020-04-08 Tom Tromey <tromey@adacore.com>
7915
7916 * nat/windows-nat.h (last_wait_event): Don't declare.
7917 (wait_for_debug_event): Update comment.
7918 * nat/windows-nat.c (last_wait_event): Now static.
7919
7920 2020-04-08 Tom Tromey <tromey@adacore.com>
7921
7922 * windows-nat.c (wait_for_debug_event): Move to
7923 nat/windows-nat.c.
7924 * nat/windows-nat.h (wait_for_debug_event): Declare.
7925 * nat/windows-nat.c (wait_for_debug_event): Move from
7926 windows-nat.c. No longer static.
7927
7928 2020-04-08 Tom Tromey <tromey@adacore.com>
7929
7930 * windows-nat.c (get_windows_debug_event): Use
7931 fetch_pending_stop.
7932 * nat/windows-nat.h (fetch_pending_stop): Declare.
7933 * nat/windows-nat.c (fetch_pending_stop): New function.
7934
7935 2020-04-08 Tom Tromey <tromey@adacore.com>
7936
7937 * windows-nat.c (windows_continue): Use matching_pending_stop and
7938 continue_last_debug_event.
7939 * nat/windows-nat.h (matching_pending_stop)
7940 (continue_last_debug_event): Declare.
7941 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7942 (matching_pending_stop, continue_last_debug_event): New
7943 functions.
7944
7945 2020-04-08 Tom Tromey <tromey@adacore.com>
7946
7947 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7948 (handle_exception_result): Move to nat/windows-nat.h.
7949 (DEBUG_EXCEPTION_SIMPLE): Remove.
7950 (windows_nat::handle_ms_vc_exception): New function.
7951 (handle_exception): Move to nat/windows-nat.c.
7952 (get_windows_debug_event): Update.
7953 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7954 nat/windows-nat.c.
7955 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7956 (handle_exception_result): Move from windows-nat.c.
7957 (handle_exception): Declare.
7958 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7959 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7960 windows-nat.c.
7961
7962 2020-04-08 Tom Tromey <tromey@adacore.com>
7963
7964 * windows-nat.c (exception_count, event_count): Remove.
7965 (handle_exception, get_windows_debug_event)
7966 (do_initial_windows_stuff): Update.
7967
7968 2020-04-08 Tom Tromey <tromey@adacore.com>
7969
7970 * windows-nat.c (windows_nat::handle_load_dll)
7971 (windows_nat::handle_unload_dll): Rename. No longer static.
7972 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7973 Declare.
7974
7975 2020-04-08 Tom Tromey <tromey@adacore.com>
7976
7977 * complaints.h (stop_whining): Declare at top-level.
7978 (complaint): Don't declare stop_whining.
7979
7980 2020-04-08 Tom Tromey <tromey@adacore.com>
7981
7982 * windows-nat.c (windows_nat::handle_output_debug_string):
7983 Rename. No longer static.
7984 * nat/windows-nat.h (handle_output_debug_string): Declare.
7985
7986 2020-04-08 Tom Tromey <tromey@adacore.com>
7987
7988 * windows-nat.c (current_process_handle, current_process_id)
7989 (main_thread_id, last_sig, current_event, last_wait_event)
7990 (current_windows_thread, desired_stop_thread_id, pending_stops)
7991 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7992 (display_selectors, fake_create_process)
7993 (get_windows_debug_event): Update.
7994 * nat/windows-nat.h (current_process_handle, current_process_id)
7995 (main_thread_id, last_sig, current_event, last_wait_event)
7996 (current_windows_thread, desired_stop_thread_id, pending_stops)
7997 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7998 * nat/windows-nat.c (current_process_handle, current_process_id)
7999 (main_thread_id, last_sig, current_event, last_wait_event)
8000 (current_windows_thread, desired_stop_thread_id, pending_stops)
8001 (siginfo_er): New globals. Move from windows-nat.c.
8002
8003 2020-04-08 Tom Tromey <tromey@adacore.com>
8004
8005 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8006 (handle_load_dll): Update.
8007 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8008
8009 2020-04-08 Tom Tromey <tromey@adacore.com>
8010
8011 * windows-nat.c (enum thread_disposition_type): Move to
8012 nat/windows-nat.h.
8013 (windows_nat::thread_rec): Rename from thread_rec. No longer
8014 static.
8015 (windows_add_thread, windows_nat_target::fetch_registers)
8016 (windows_nat_target::store_registers, handle_exception)
8017 (windows_nat_target::resume, get_windows_debug_event)
8018 (windows_nat_target::get_tib_address)
8019 (windows_nat_target::thread_name)
8020 (windows_nat_target::thread_alive): Update.
8021 * nat/windows-nat.h (enum thread_disposition_type): Move from
8022 windows-nat.c.
8023 (thread_rec): Declare.
8024
8025 2020-04-08 Tom Tromey <tromey@adacore.com>
8026
8027 * windows-nat.c: Add "using namespace".
8028 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8029 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8030
8031 2020-04-08 Tom Tromey <tromey@adacore.com>
8032
8033 * nat/windows-nat.h (struct windows_thread_info): Declare
8034 destructor.
8035 * nat/windows-nat.c (~windows_thread_info): New.
8036
8037 2020-04-08 Tom Tromey <tromey@adacore.com>
8038
8039 PR gdb/22992
8040 * windows-nat.c (current_event): Update comment.
8041 (last_wait_event, desired_stop_thread_id): New globals.
8042 (struct pending_stop): New.
8043 (pending_stops): New global.
8044 (windows_nat_target) <stopped_by_sw_breakpoint>
8045 <supports_stopped_by_sw_breakpoint>: New methods.
8046 (windows_fetch_one_register): Add assertions. Adjust PC.
8047 (windows_continue): Handle pending stops. Suspend other threads
8048 when stepping. Use last_wait_event
8049 (wait_for_debug_event): New function.
8050 (get_windows_debug_event): Use wait_for_debug_event. Handle
8051 pending stops. Queue spurious stops.
8052 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8053 (windows_nat_target::kill): Use wait_for_debug_event.
8054 * nat/windows-nat.h (struct windows_thread_info)
8055 <stopped_at_software_breakpoint>: New field.
8056 * nat/windows-nat.c (windows_thread_info::resume): Clear
8057 stopped_at_software_breakpoint.
8058
8059 2020-04-08 Tom Tromey <tromey@adacore.com>
8060
8061 * windows-nat.c (enum thread_disposition_type): New.
8062 (thread_rec): Replace "get_context" parameter with "disposition";
8063 change type.
8064 (windows_add_thread, windows_nat_target::fetch_registers)
8065 (windows_nat_target::store_registers, handle_exception)
8066 (windows_nat_target::resume, get_windows_debug_event)
8067 (windows_nat_target::get_tib_address)
8068 (windows_nat_target::thread_name)
8069 (windows_nat_target::thread_alive): Update.
8070
8071 2020-04-08 Tom Tromey <tromey@adacore.com>
8072
8073 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8074 (windows_continue): Use windows_continue::resume.
8075 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8076 resume>: Declare new methods.
8077 * nat/windows-nat.c: New file.
8078 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8079
8080 2020-04-08 Tom Tromey <tromey@adacore.com>
8081
8082 * windows-nat.c (windows_add_thread, windows_delete_thread)
8083 (windows_nat_target::fetch_registers)
8084 (windows_nat_target::store_registers, fake_create_process)
8085 (windows_nat_target::resume, windows_nat_target::resume)
8086 (get_windows_debug_event, windows_nat_target::wait)
8087 (windows_nat_target::pid_to_str)
8088 (windows_nat_target::get_tib_address)
8089 (windows_nat_target::get_ada_task_ptid)
8090 (windows_nat_target::thread_name)
8091 (windows_nat_target::thread_alive): Use lwp, not tid.
8092
8093 2020-04-08 Tom Tromey <tromey@adacore.com>
8094
8095 * windows-nat.c (handle_exception)
8096 (windows_nat_target::thread_name): Update.
8097 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8098 <name>: Now unique_xmalloc_ptr.
8099
8100 2020-04-08 Tom Tromey <tromey@adacore.com>
8101
8102 * windows-nat.c (thread_rec)
8103 (windows_nat_target::fetch_registers): Update.
8104 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8105 Update comment.
8106 <debug_registers_changed, reload_context>: Now bool.
8107
8108 2020-04-08 Tom Tromey <tromey@adacore.com>
8109
8110 * windows-nat.c (windows_add_thread): Use new.
8111 (windows_init_thread_list, windows_delete_thread): Use delete.
8112 (get_windows_debug_event): Update.
8113 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8114 destructor, and initializers.
8115
8116 2020-04-08 Tom Tromey <tromey@adacore.com>
8117
8118 * windows-nat.c (struct windows_thread_info): Remove.
8119 * nat/windows-nat.h: New file.
8120
8121 2020-04-08 Tom Tromey <tromey@adacore.com>
8122
8123 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8124 (thread_rec, windows_add_thread, windows_delete_thread)
8125 (windows_continue): Update.
8126
8127 2020-04-08 Tom Tromey <tromey@adacore.com>
8128
8129 * windows-nat.c (struct windows_thread_info): Remove typedef.
8130 (thread_head): Remove.
8131 (thread_list): New global.
8132 (thread_rec, windows_add_thread, windows_init_thread_list)
8133 (windows_delete_thread, windows_continue): Update.
8134
8135 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8136
8137 * windows-tdep.h (windows_init_abi): Add comment.
8138 (cygwin_init_abi): New declaration.
8139 * windows-tdep.c: Split signal enumeration in two, one for
8140 Windows and one for Cygwin.
8141 (windows_gdb_signal_to_target): Only deal with signal of the
8142 Windows OS ABI.
8143 (cygwin_gdb_signal_to_target): New function.
8144 (windows_init_abi): Rename to windows_init_abi_common, don't set
8145 gdb_signal_to_target gdbarch method. Add new new function with
8146 this name.
8147 (cygwin_init_abi): New function.
8148 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8149 comment. Don't call windows_init_abi.
8150 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8151 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8152 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8153 i386_windows_init_abi_common, don't call windows_init_abi. Add
8154 a new function of this name.
8155 (i386_cygwin_init_abi): New function.
8156 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8157 OS ABI Cygwin.
8158
8159 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8160
8161 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8162 parameter.c.
8163 (dwarf2_read_gdb_index): Update.
8164
8165 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8166
8167 * nbsd-tdep.c: Include "objfiles.h".
8168 (nbsd_skip_solib_resolver): New.
8169 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8170
8171 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8172
8173 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8174 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8175 with DW_LLE_base_addressx are being emitted in DWARFv5.
8176 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8177 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8178 unsigned integer.
8179
8180 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8181
8182 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8183 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8184 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8185 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8186 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8187 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8188 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8189
8190
8191 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8192
8193 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8194 (read_loclist_index): New function definition.
8195 (lookup_loclist_base): New function definition.
8196 (read_loclist_header): New function definition.
8197 (dwarf2_cu): Add loclist_base and loclist_header field.
8198 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8199 (read_full_die_1): Read the value of DW_AT_loclists_base.
8200 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8201 (read_attribute_value): Handle DW_FORM_loclistx.
8202 (skip_one_die): Handle DW_FORM_loclistx.
8203 (loclist_header): New structure declaration.
8204 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8205
8206 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8207
8208 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8209 constructor. Remove `addr` parameter from other constructor and
8210 add `per_cu` parameter.
8211 * dwarf2/read.c (create_partial_symtab): Update.
8212
8213 2020-04-07 Tom de Vries <tdevries@suse.de>
8214
8215 PR symtab/25796
8216 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8217 (partial_die_info::fixup): Inherit has_const_value.
8218
8219 2020-04-07 Tom de Vries <tdevries@suse.de>
8220
8221 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8222 symbols without address.
8223
8224 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8225
8226 * nbsd-nat.h (struct thread_info): Add forward declaration.
8227 (nbsd_nat_target::thread_alive): Add.
8228 (nbsd_nat_target::thread_name): Likewise.
8229 (nbsd_nat_target::update_thread_list): Likewise.
8230 (update_thread_list::post_attach): Likewise.
8231 (post_attach::pid_to_str): Likewise.
8232 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8233 (nbsd_thread_lister): Add.
8234 (nbsd_nat_target::thread_alive): Likewise.
8235 (nbsd_nat_target::thread_name): Likewise.
8236 (nbsd_add_threads): Likewise.
8237 (update_thread_list::post_attach): Likewise.
8238 (nbsd_nat_target::update_thread_list): Likewise.
8239 (post_attach::pid_to_str): Likewise.
8240
8241 2020-04-06 Tom Tromey <tromey@adacore.com>
8242
8243 * ada-valprint.c (print_variant_part): Extract the variant field.
8244 (print_field_values): Use the field as the outer value when
8245 recursing.
8246
8247 2020-04-06 Tom Tromey <tromey@adacore.com>
8248
8249 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8250 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8251 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8252 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8253 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8254
8255 2020-04-06 Tom Tromey <tromey@adacore.com>
8256
8257 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8258 TYPE_CODE_ERROR.
8259
8260 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8261
8262 * nbsd-tdep.c: Include "gdbarch.h".
8263 Define enum with NetBSD signal numbers.
8264 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8265 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8266 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8267 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8268 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8269 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8270 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8271 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8272 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8273 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8274 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8275 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8276
8277 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8278
8279 PR gdb/25325
8280 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8281
8282 2020-04-03 Tom Tromey <tromey@adacore.com>
8283
8284 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8285 Read constant block.
8286
8287 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8288
8289 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8290 (gdb_bfd_get_full_section_contents): New declaration.
8291 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8292 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8293 gdb_bfd_get_full_section_contents.
8294
8295 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8296
8297 * exec.c (build_section_table): Replace internal_error with
8298 gdb_assert.
8299 (section_table_xfer_memory_partial): Likewise.
8300 * mdebugread.c (parse_partial_symbols): Likewise.
8301 * psymtab.c (lookup_partial_symbol): Likewise.
8302 * utils.c (wrap_here): Likewise.
8303
8304 2020-04-02 Tom Tromey <tromey@adacore.com>
8305
8306 * f-lang.c (build_fortran_types): Use arch_type to initialize
8307 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8308
8309 2020-04-02 Tom Tromey <tromey@adacore.com>
8310
8311 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8312 of attributes.
8313
8314 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8315 Bernd Edlinger <bernd.edlinger@hotmail.de>
8316 Tom Tromey <tromey@adacore.com>
8317
8318 * buildsym.c (buildsym_compunit::record_line): Remove
8319 deduplication code.
8320
8321 2020-04-02 Tom de Vries <tdevries@suse.de>
8322
8323 PR ada/24671
8324 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8325
8326 2020-04-02 Tom de Vries <tdevries@suse.de>
8327
8328 * dwarf2/read.c (dwarf2_gdb_index_functions,
8329 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8330 NULL.
8331 * psymtab.c (psym_lookup_global_symbol_language): New function.
8332 (psym_functions): Init psym_lookup_global_symbol_language with
8333 psym_lookup_global_symbol_language.
8334 * symfile-debug.c (debug_sym_quick_functions): Init
8335 lookup_global_symbol_language with NULL.
8336 * symfile.c (set_initial_language): Remove fixme comment.
8337 * symfile.h (struct quick_symbol_functions): Add
8338 lookup_global_symbol_language.
8339 * symtab.c (find_quick_global_symbol_language): New function.
8340 (find_main_name): Use find_quick_global_symbol_language.
8341
8342 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8343
8344 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8345
8346 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8347
8348 * buildsym.c (record_line): Fix undefined behavior and preserve
8349 lines at eof.
8350
8351 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8352
8353 * buildsym.c (record_line): Fix the resizing condition.
8354
8355 2020-04-01 Tom Tromey <tom@tromey.com>
8356
8357 * value.h (value_literal_complex): Add comment.
8358 * valops.c (value_literal_complex): Refer to value.h.
8359
8360 2020-04-01 Tom Tromey <tom@tromey.com>
8361
8362 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8363 (scalar_type): New rule, from typebase.
8364 (typebase): Use scalar_type. Recognize complex types.
8365 (field_name): Handle FLOAT_KEYWORD.
8366 (ident_tokens): Add _Complex and __complex__.
8367
8368 2020-04-01 Tom Tromey <tom@tromey.com>
8369
8370 PR exp/25299:
8371 * valarith.c (promotion_type, complex_binop): New functions.
8372 (scalar_binop): Handle complex numbers. Use promotion_type.
8373 (value_pos, value_neg, value_complement): Handle complex numbers.
8374
8375 2020-04-01 Tom Tromey <tom@tromey.com>
8376
8377 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8378 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8379 (parse_number): Handle complex numbers.
8380
8381 2020-04-01 Tom Tromey <tom@tromey.com>
8382
8383 * c-valprint.c (c_decorations): Change complex suffix to "i".
8384
8385 2020-04-01 Tom Tromey <tom@tromey.com>
8386
8387 * valprint.c (generic_value_print_complex): Use accessors.
8388 * value.h (value_real_part, value_imaginary_part): Declare.
8389 * valops.c (value_real_part, value_imaginary_part): New
8390 functions.
8391 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8392
8393 2020-04-01 Tom Tromey <tom@tromey.com>
8394
8395 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8396 (read_range_type): Update.
8397 * mdebugread.c (basic_type): Update.
8398 * go-lang.c (build_go_types): Use init_complex_type.
8399 * gdbtypes.h (struct main_type) <complex_type>: New member.
8400 (init_complex_type): Update.
8401 (arch_complex_type): Don't declare.
8402 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8403 Make name if none given. Use alloc_type_copy. Look for cached
8404 complex type.
8405 (arch_complex_type): Remove.
8406 (gdbtypes_post_init): Use init_complex_type.
8407 * f-lang.c (build_fortran_types): Use init_complex_type.
8408 * dwarf2/read.c (read_base_type): Update.
8409 * d-lang.c (build_d_types): Use init_complex_type.
8410 * ctfread.c (read_base_type): Update.
8411
8412 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8413
8414 * infrun.c (stop_all_threads): Update assertion, plus when
8415 stopping threads, take into account that we might be trying
8416 to stop an all-stop target.
8417 (stop_waiting): Call 'stop_all_threads' if there exists a
8418 non-stop target.
8419
8420 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8421
8422 * target.h (exists_non_stop_target): New function declaration.
8423 * target.c (exists_non_stop_target): New function.
8424
8425 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8426
8427 PR gdb/24789
8428 * eval.c (is_integral_or_integral_reference): New function.
8429 (evaluate_subexp_standard): Allow integer references in
8430 pointer arithmetic.
8431
8432 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8433
8434 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8435 check for no ptid in the stop reply when the target is non-stop.
8436
8437 2020-04-01 Tom Tromey <tromey@adacore.com>
8438
8439 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8440 "name" parameter to rvalue reference. Initialize m_name_holder.
8441 <lookup_name_info>: New overloads.
8442 <name>: Return gdb::string_view.
8443 <c_str>: New method.
8444 <make_ignore_params>: Update.
8445 <search_name_hash>: Update.
8446 <language_lookup_name>: Return const char *.
8447 <m_name>: Change type.
8448 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8449 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8450 (lookup_name_info::match_any): Update.
8451 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8452 Update.
8453 * minsyms.c (linkage_name_str): Update.
8454 * language.c (default_symbol_name_matcher): Update.
8455 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8456 Update.
8457 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8458 (ada_lookup_name_info::ada_lookup_name_info): Update.
8459 (literal_symbol_name_matcher): Update.
8460
8461 2020-04-01 Tom Tromey <tromey@adacore.com>
8462
8463 * psymtab.c (psymtab_search_name): Remove function.
8464 (psym_lookup_symbol): Create search name and lookup name here.
8465 (lookup_partial_symbol): Remove "name" parameter; add
8466 lookup_name.
8467 (psym_expand_symtabs_for_function): Update.
8468
8469 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8470
8471 PR tui/25597:
8472 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8473
8474 2020-03-31 Tom Tromey <tromey@adacore.com>
8475
8476 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8477 memcpy.
8478
8479 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8480
8481 * features/riscv/32bit-csr.xml: Regenerated.
8482 * features/riscv/64bit-csr.xml: Regenerated.
8483
8484 2020-03-30 Tom Tromey <tromey@adacore.com>
8485
8486 * ada-valprint.c (print_variant_part): Update.
8487 * ada-lang.h (ada_which_variant_applies): Update.
8488 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8489 outer_valaddr parameters; replace with "outer" value parameter.
8490 (to_fixed_variant_branch_type): Update.
8491
8492 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8493
8494 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8495 <list>. Remove inclusion of observable.h.
8496 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8497 (struct arch_lwp_info): New struct.
8498 (class ppc_linux_dreg_interface): New class.
8499 (struct ppc_linux_process_info): New struct.
8500 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8501 <low_new_clone, low_forget_process, low_prepare_to_resume>
8502 <copy_thread_dreg_state, mark_thread_stale>
8503 <mark_debug_registers_changed, register_hw_breakpoint>
8504 <clear_hw_breakpoint, register_wp, clear_wp>
8505 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8506 <num_memory_accesses, get_trigger_type>
8507 <create_watchpoint_request, hwdebug_point_cmp>
8508 <init_arch_lwp_info, get_arch_lwp_info>
8509 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8510 methods.
8511 <struct ptid_hash>: New inner struct.
8512 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8513 members.
8514 (saved_dabr_value, hwdebug_info, max_slots_number)
8515 (struct hw_break_tuple, struct thread_points, ppc_threads)
8516 (have_ptrace_hwdebug_interface)
8517 (hwdebug_find_thread_points_by_tid)
8518 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8519 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8520 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8521 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8522 use m_dreg_interface.
8523 (hwdebug_point_cmp): Change to...
8524 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8525 reference arguments instead of pointers.
8526 (ppc_linux_nat_target::ranged_break_num_registers): Use
8527 m_dreg_interface.
8528 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8529 m_dreg_interface. Call register_hw_breakpoint.
8530 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8531 m_dreg_interface. Call clear_hw_breakpoint.
8532 (get_trigger_type): Change to...
8533 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8534 comment.
8535 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8536 use m_dreg_interface. Call register_hw_breakpoint.
8537 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8538 use m_dreg_interface. Call clear_hw_breakpoint.
8539 (can_use_watchpoint_cond_accel): Change to...
8540 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8541 method. Update comment, use m_dreg_interface and
8542 m_process_info.
8543 (calculate_dvc): Change to...
8544 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8545 m_dreg_interface.
8546 (num_memory_accesses): Change to...
8547 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8548 (check_condition): Change to...
8549 (ppc_linux_nat_target::check_condition): ...this method.
8550 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8551 comment, use m_dreg_interface.
8552 (create_watchpoint_request): Change to...
8553 (ppc_linux_nat_target::create_watchpoint_request): ...this
8554 method. Use m_dreg_interface.
8555 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8556 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8557 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8558 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8559 (ppc_linux_nat_target::low_forget_process)
8560 (ppc_linux_nat_target::low_new_fork)
8561 (ppc_linux_nat_target::low_new_clone)
8562 (ppc_linux_nat_target::low_delete_thread)
8563 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8564 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8565 only call mark_thread_stale.
8566 (ppc_linux_thread_exit): Remove.
8567 (ppc_linux_nat_target::stopped_data_address): Change to...
8568 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8569 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8570 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8571 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8572 comment. Call low_stopped_data_address.
8573 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8574 m_dreg_interface.
8575 (ppc_linux_nat_target::masked_watch_num_registers): Use
8576 m_dreg_interface.
8577 (ppc_linux_nat_target::copy_thread_dreg_state)
8578 (ppc_linux_nat_target::mark_thread_stale)
8579 (ppc_linux_nat_target::mark_debug_registers_changed)
8580 (ppc_linux_nat_target::register_hw_breakpoint)
8581 (ppc_linux_nat_target::clear_hw_breakpoint)
8582 (ppc_linux_nat_target::register_wp)
8583 (ppc_linux_nat_target::clear_wp)
8584 (ppc_linux_nat_target::init_arch_lwp_info)
8585 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8586 (_initialize_ppc_linux_nat): Remove observer callback.
8587
8588 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8589
8590 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8591 (ppc_linux_nat_target::auxv_parse)
8592 (ppc_linux_nat_target::read_description)
8593 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8594 Move up.
8595
8596 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8597
8598 * linux-nat.h (low_new_clone): New method.
8599 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8600
8601 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8602
8603 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8604 (dbx_expand_psymtab): ... this.
8605 (start_psymtab): Update.
8606 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8607 (mdebug_expand_psymtab): ... this.
8608 (parse_partial_symbols): Update.
8609 (new_psymtab): Update.
8610 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8611 (xcoff_expand_psymtab): ... this.
8612 (xcoff_start_psymtab): Update.
8613
8614 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8615
8616 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8617 <expand_dependencies>: ... this.
8618 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8619 (partial_symtab::expand_dependencies): ... this.
8620 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8621 Update.
8622 (dwarf2_psymtab::expand_psymtab): Update.
8623 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8624 * mdebugread.c (psymtab_to_symtab_1): Update.
8625 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8626
8627 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8628
8629 * psympriv.h (discard_psymtab): Remove.
8630 * dbxread.c (dbx_end_psymtab): Update.
8631 * xcoffread.c (xcoff_end_psymtab): Update.
8632
8633 2020-03-28 Tom Tromey <tom@tromey.com>
8634
8635 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8636 comment.
8637
8638 2020-03-28 Tom Tromey <tom@tromey.com>
8639
8640 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8641
8642 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8643
8644 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8645
8646 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8647
8648 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8649
8650 2020-03-26 Tom Tromey <tom@tromey.com>
8651
8652 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8653 (mark_common_block_symbol_computed, read_tag_string_type)
8654 (attr_to_dynamic_prop, read_subrange_type): Update.
8655 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8656 to be methods on struct attribute.
8657 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8658 (read_call_site_scope, partial_die_info::read)
8659 (partial_die_info::read, lookup_die_type, follow_die_ref):
8660 Update.
8661 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8662 from dwarf2_get_ref_die_offset.
8663 (attribute::constant_value): New method, from
8664 dwarf2_get_attr_constant_value.
8665 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8666 Declare method.
8667 <constant_value>: New method.
8668
8669 2020-03-26 Tom Tromey <tom@tromey.com>
8670
8671 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8672 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8673 (dwarf_type_encoding_name): Move to stringify.c.
8674 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8675 * dwarf2/stringify.c: New file.
8676 * dwarf2/stringify.h: New file.
8677
8678 2020-03-26 Tom Tromey <tom@tromey.com>
8679
8680 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8681 Rewrite.
8682
8683 2020-03-26 Tom Tromey <tom@tromey.com>
8684
8685 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8686 methods.
8687 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8688 (lookup_ranges_base): Likewise.
8689 (read_cutu_die_from_dwo, read_full_die_1): Update.
8690
8691 2020-03-26 Tom Tromey <tom@tromey.com>
8692
8693 * dwarf2/read.c (read_import_statement, read_file_scope)
8694 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8695 (read_lexical_block_scope, read_call_site_scope)
8696 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8697 (handle_struct_member_die, process_structure_scope)
8698 (update_enumeration_type_from_children)
8699 (process_enumeration_scope, read_array_type, read_common_block)
8700 (read_namespace, read_module, read_subroutine_type): Update.
8701 (sibling_die): Remove.
8702
8703 2020-03-26 Tom Tromey <tom@tromey.com>
8704
8705 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8706 (build_type_psymtabs_reader, read_structure_type)
8707 (read_enumeration_type, read_full_die_1): Update.
8708 (dwarf2_attr_no_follow): Move to die.h.
8709 * dwarf2/die.h (struct die_info) <attr>: New method.
8710
8711 2020-03-26 Tom Tromey <tom@tromey.com>
8712
8713 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8714 <base_address>: Now an optional.
8715 (dwarf2_find_base_address, dwarf2_rnglists_process)
8716 (dwarf2_ranges_process, fill_in_loclist_baton)
8717 (dwarf2_symbol_mark_computed): Update.
8718
8719 2020-03-26 Tom Tromey <tom@tromey.com>
8720
8721 * dwarf2/read.c (struct die_info): Move to die.h.
8722 * dwarf2/die.h: New file.
8723
8724 2020-03-26 Tom Tromey <tom@tromey.com>
8725
8726 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8727 * dwarf2/read.c
8728 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8729 Move to line-header.c.
8730 (read_checked_initial_length_and_offset, read_formatted_entries):
8731 Likewise.
8732 (dwarf_decode_line_header): Split into two.
8733 * dwarf2/line-header.c
8734 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8735 Move from read.c.
8736 (read_checked_initial_length_and_offset, read_formatted_entries):
8737 Likewise.
8738 (dwarf_decode_line_header): New function, split from read.c.
8739
8740 2020-03-26 Tom Tromey <tom@tromey.com>
8741
8742 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8743 Declare method.
8744 * dwarf2/read.c (read_attribute_value): Update.
8745 (dwarf2_per_objfile::read_line_string): Rename from
8746 read_indirect_line_string.
8747 (read_formatted_entries): Update.
8748
8749 2020-03-26 Tom Tromey <tom@tromey.com>
8750
8751 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8752 variable.
8753
8754 2020-03-26 Tom Tromey <tom@tromey.com>
8755
8756 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8757 const.
8758 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8759 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8760 parameter const.
8761
8762 2020-03-26 Tom Tromey <tom@tromey.com>
8763
8764 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8765 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8766 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8767 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8768
8769 2020-03-26 Tom Tromey <tom@tromey.com>
8770
8771 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8772 file_names_size, file_full_name, file_file_name>: Use const.
8773 <file_name_at, file_names>: Add const overload.
8774 * dwarf2/line-header.c (line_header::file_file_name)
8775 (line_header::file_full_name): Update.
8776
8777 2020-03-26 Tom Tromey <tom@tromey.com>
8778
8779 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8780 (macro_start_file, consume_improper_spaces)
8781 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8782 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8783 (dwarf_decode_macros): Move to macro.c.
8784 * dwarf2/macro.c: New file.
8785 * dwarf2/macro.h: New file.
8786 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8787
8788 2020-03-26 Tom Tromey <tom@tromey.com>
8789
8790 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8791 method.
8792 * dwarf2/section.c: New method. From
8793 read_indirect_string_at_offset_from.
8794 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8795 (read_indirect_string_at_offset_from): Move to section.c.
8796 (read_indirect_string_at_offset): Rewrite.
8797 (read_indirect_line_string_at_offset): Remove.
8798 (read_indirect_string, read_indirect_line_string)
8799 (dwarf_decode_macro_bytes): Update.
8800
8801 2020-03-26 Tom Tromey <tom@tromey.com>
8802
8803 * dwarf2/section.h (struct dwarf2_section_info)
8804 <overload_complaint>: Declare.
8805 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8806 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8807 Rename from dwarf2_section_buffer_overflow_complaint.
8808 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8809 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8810
8811 2020-03-26 Tom Tromey <tom@tromey.com>
8812
8813 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8814 Declare.
8815 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8816 Move from read.c.
8817 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8818 to section.c.
8819
8820 2020-03-26 Tom Tromey <tom@tromey.com>
8821
8822 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8823
8824 2020-03-26 Tom Tromey <tom@tromey.com>
8825
8826 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8827 "builder".
8828 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8829 parameter.
8830 (dwarf_decode_macros): Update.
8831
8832 2020-03-26 Tom Tromey <tom@tromey.com>
8833
8834 * dwarf2/read.c (read_attribute_value): Update.
8835 (read_indirect_string_from_dwz): Move to dwz.c; change into
8836 method.
8837 (dwarf_decode_macro_bytes): Update.
8838 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8839 * dwarf2/dwz.c: New file.
8840 * Makefile.in (COMMON_SFILES): Add dwz.c.
8841
8842 2020-03-26 Tom Tromey <tom@tromey.com>
8843
8844 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8845 * dwarf2/read.c: Add include.
8846 * dwarf2/index-write.c: Add include.
8847 * dwarf2/index-cache.c: Add include.
8848 * dwarf2/dwz.h: New file.
8849
8850 2020-03-25 Tom Tromey <tom@tromey.com>
8851
8852 * compile/compile-object-load.c (get_out_value_type): Mention
8853 correct symbol name in error message.
8854
8855 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8856
8857 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8858
8859 2020-03-25 Tom de Vries <tdevries@suse.de>
8860
8861 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8862 * symmisc.c (dump_symtab_1): Print user and includes fields.
8863 (maintenance_info_symtabs): Same.
8864
8865 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8866
8867 PR gdb/25534
8868 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8869 (riscv_regcache_cooked_write): New function.
8870 (riscv_push_dummy_call): Use new function.
8871 (riscv_return_value): Likewise.
8872
8873 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8874
8875 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8876 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8877 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8878 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8879 * infrun.c (follow_fork): Likewise.
8880 (follow_fork_inferior): Likewise.
8881 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8882 * linux-nat.h (class linux_nat_target): Likewise.
8883 * remote.c (class remote_target) <follow_fork>: Likewise.
8884 (remote_target::follow_fork): Likewise.
8885 * target-delegates.c: Re-generate.
8886 * target.c (default_follow_fork): Likewise.
8887 (target_follow_fork): Likewise.
8888 * target.h (struct target_ops) <follow_fork>: Likewise.
8889 (target_follow_fork): Likewise.
8890
8891 2020-03-24 Tom de Vries <tdevries@suse.de>
8892
8893 * psymtab.c (maintenance_info_psymtabs): Print user field.
8894
8895 2020-03-20 Tom Tromey <tromey@adacore.com>
8896
8897 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8898 const.
8899 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8900 const.
8901
8902 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8903
8904 * ptrace.m4: Don't check for ptrace declaration.
8905 * config.in: Re-generate.
8906 * configure: Re-generate.
8907 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8908 not defined.
8909
8910 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8911
8912 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8913 `PTRACE_TYPE_RET'.
8914 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8915 * sparc-nat.c (gdb_ptrace): Likewise.
8916 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8917
8918 2020-03-20 Tom Tromey <tromey@adacore.com>
8919
8920 * c-exp.y (lex_one_token): Fix assert.
8921
8922 2020-03-20 Tom Tromey <tromey@adacore.com>
8923
8924 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8925 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8926 strncpy call.
8927
8928 2020-03-20 Tom Tromey <tromey@adacore.com>
8929
8930 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8931
8932 2020-03-20 Tom Tromey <tromey@adacore.com>
8933
8934 * ada-valprint.c (print_variant_part): Remove parameters; switch
8935 to value-based API.
8936 (print_field_values): Likewise.
8937 (ada_val_print_struct_union): Likewise.
8938 (ada_value_print_1): Update.
8939
8940 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8941
8942 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8943 nbsd_nat_target instead of inf_ptrace_target.
8944 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8945 nbsd_nat_target.
8946
8947 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8948
8949 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8950 it to the ptrace call.
8951 * (store_registers): Likewise.
8952
8953 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8954
8955 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8956 it to the ptrace call.
8957 * (store_registers): Likewise.
8958
8959 2020-03-19 Luis Machado <luis.machado@linaro.org>
8960
8961 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8962 valid, fetch vg value from ptrace.
8963
8964 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8965 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8966 * inf-ptrace.c: Likewise.
8967 * (gdb_ptrace): Add.
8968 * (inf_ptrace_target::resume): Update.
8969 * (inf_ptrace_target::xfer_partial): Likewise.
8970 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8971 * (inf_ptrace_peek_poke): Update.
8972
8973 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8974
8975 * x86-bsd-nat.c (gdb_ptrace): New.
8976 * (x86bsd_dr_set): Add new argument `ptid'.
8977 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8978 x86bsd_dr_set_addr): Update.
8979
8980 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8981
8982 * remote.c (remote_target::process_stop_reply): Handle events for
8983 all threads differently.
8984
8985 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8986
8987 * completer.c (completion_tracker::remove_completion): Define new
8988 function.
8989 * completer.h (completion_tracker::remove_completion): Declare new
8990 function.
8991 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8992 when adding a C++ function symbol.
8993
8994 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8995
8996 * completer.c (completion_tracker::completion_hash_entry): Define
8997 new class.
8998 (advance_to_filename_complete_word_point): Call
8999 recompute_lowest_common_denominator.
9000 (completion_tracker::completion_tracker): Call discard_completions
9001 to setup the hash table.
9002 (completion_tracker::discard_completions): Allow for being called
9003 from the constructor, pass new equal function, and element deleter
9004 when constructing the hash table. Initialise new class member
9005 variables.
9006 (completion_tracker::maybe_add_completion): Remove use of
9007 m_entries_vec, and store more information into m_entries_hash.
9008 (completion_tracker::recompute_lcd_visitor): New function, most
9009 content taken from...
9010 (completion_tracker::recompute_lowest_common_denominator):
9011 ...here, this now just visits each item in the hash calling the
9012 above visitor.
9013 (completion_tracker::build_completion_result): Remove use of
9014 m_entries_vec, call recompute_lowest_common_denominator.
9015 * completer.h (completion_tracker::have_completions): Remove use
9016 of m_entries_vec.
9017 (completion_tracker::completion_hash_entry): Declare new class.
9018 (completion_tracker::recompute_lowest_common_denominator): Change
9019 function signature.
9020 (completion_tracker::recompute_lcd_visitor): Declare new function.
9021 (completion_tracker::m_entries_vec): Delete.
9022 (completion_tracker::m_entries_hash): Initialize to NULL.
9023 (completion_tracker::m_lowest_common_denominator_valid): New
9024 member variable.
9025 (completion_tracker::m_lowest_common_denominator_max_length): New
9026 member variable.
9027
9028 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9029
9030 * regformats/regdef.h: Put reg in gdb namespace.
9031
9032 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9033
9034 * i386-bsd-nat.c (gdb_ptrace): New.
9035 * (i386bsd_fetch_inferior_registers,
9036 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9037 * (i386bsd_fetch_inferior_registers,
9038 i386bsd_store_inferior_registers) Use gdb_ptrace.
9039
9040 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9041
9042 * amd64-bsd-nat.c (gdb_ptrace): New.
9043 * (amd64bsd_fetch_inferior_registers,
9044 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9045 * (amd64bsd_fetch_inferior_registers,
9046 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9047
9048 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9049
9050 * user-regs.c (user_reg::read): Rename to...
9051 (user_reg::xread): ...this.
9052 * (append_user_reg): Rename argument `read' to `xread'.
9053 * (user_reg_add_builtin): Likewise.
9054 * (user_reg_add): Likewise.
9055 * (value_of_user_reg): Likewise.
9056
9057 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9058
9059 * sparc-nat.c (gdb_ptrace): New.
9060 * sparc-nat.c (sparc_fetch_inferior_registers)
9061 (sparc_store_inferior_registers) Remove obsolete comment.
9062 * sparc-nat.c (sparc_fetch_inferior_registers)
9063 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9064 * sparc-nat.c (sparc_fetch_inferior_registers)
9065 (sparc_store_inferior_registers) Use gdb_ptrace.
9066
9067 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9068
9069 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9070 it to the ptrace call.
9071 * sh-nbsd-nat.c (store_registers): Likewise.
9072
9073 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9074
9075 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9076 nbsd_nat_target instead of inf_ptrace_target.
9077 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9078 nbsd_nat_target.
9079
9080 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9081
9082 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9083
9084 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9085
9086 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9087 <sys/sysctl.h>.
9088 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9089
9090 2020-03-17 Tom de Vries <tdevries@suse.de>
9091
9092 PR gdb/23710
9093 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9094 fields.
9095 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9096 fields.
9097 (process_imported_unit_die): Skip import of c++ CUs.
9098
9099 2020-03-16 Tom Tromey <tom@tromey.com>
9100
9101 * p-valprint.c (pascal_object_print_value): Initialize
9102 base_value.
9103
9104 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9105 Shahab Vahedi <shahab@synopsys.com>
9106
9107 * Makefile.in: Add arch/arc.o
9108 * configure.tgt: Likewise.
9109 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9110 (_initialize_arc_tdep): Don't initialize old target descriptions.
9111 (arc_read_description): New function to cache target descriptions.
9112 * arc-tdep.h (arc_read_description): Add proto type.
9113 * arch/arc.c: New file.
9114 * arch/arc.h: Likewise.
9115 * features/Makefile: Replace old target descriptions with new.
9116 * features/arc-arcompact.c: Remove.
9117 * features/arc-arcompact.xml: Likewise.
9118 * features/arc-v2.c: Likewise
9119 * features/arc-v2.xml: Likewise
9120 * features/arc/aux-arcompact.xml: New file.
9121 * features/arc/aux-v2.xml: Likewise.
9122 * features/arc/core-arcompact.xml: Likewise.
9123 * features/arc/core-v2.xml: Likewise.
9124 * features/arc/aux-arcompact.c: Generate.
9125 * features/arc/aux-v2.c: Likewise.
9126 * features/arc/core-arcompact.c: Likewise.
9127 * features/arc/core-v2.c: Likewise.
9128 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9129
9130 2020-03-16 Tom Tromey <tromey@adacore.com>
9131
9132 PR gdb/25663:
9133 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9134 putting value into bcache.
9135
9136 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9137
9138 PR gdb/21500
9139 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9140 to...
9141 (amd64_windows_init_abi_common): ... this. Don't set size of
9142 long type.
9143 (amd64_windows_init_abi): New function.
9144 (amd64_cygwin_init_abi): New function.
9145 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9146 the Cygwin OS ABI.
9147 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9148 comment.
9149
9150 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9153 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9154 (pe_import_directory_entry): New struct type.
9155 (is_linked_with_cygwin_dll): New function.
9156 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9157 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9158 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9159
9160 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9161
9162 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9163 i386_cygwin_core_osabi_sniffer.
9164
9165 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9166
9167 * i386-cygwin-tdep.c: Rename to...
9168 * i386-windows-tdep.c: ... this.
9169 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9170 i386-windows-tdep.c.
9171 * configure.tgt: Likewise.
9172
9173 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9174
9175 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9176 * osabi.c (gdb_osabi_names): Add "Windows".
9177 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9178 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9179 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9180 i386_cygwin_osabi_sniffer.
9181 (_initialize_i386_cygwin_tdep): Register OS ABI
9182 GDB_OSABI_WINDOWS for i386.
9183 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9184 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9185 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9186 for x86-64.
9187 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9188 when the target matches '*-*-mingw*'.
9189
9190 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9191
9192 * defs.h (enum gdb_osabi): Move to...
9193 * osabi.h (enum gdb_osabi): ... here.
9194 * gdbarch.sh: Include osabi.h in gdbarch.h.
9195 * gdbarch.h: Re-generate.
9196
9197 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9198
9199 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9200 function.
9201 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9202
9203 2020-03-14 Tom Tromey <tom@tromey.com>
9204
9205 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9206 for C++.
9207 (c_type_print_modifier): Likewise. Add "language" parameter.
9208 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9209 (c_type_print_base_1): Update.
9210 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9211 constants.
9212 * type-stack.c (type_stack::insert): Handle tp_atomic and
9213 tp_restrict.
9214 (type_stack::follow_type_instance_flags): Likewise.
9215 (type_stack::follow_types): Likewise. Merge type-following code.
9216 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9217 (space_identifier, cv_with_space_id)
9218 (const_or_volatile_or_space_identifier_noopt)
9219 (const_or_volatile_or_space_identifier): Remove.
9220 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9221 rules.
9222 (ptr_operator, typebase): Update.
9223 (enum token_flag) <FLAG_C>: New constant.
9224 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9225 "_Atomic".
9226 (lex_one_token): Handle FLAG_C.
9227
9228 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9229
9230 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9231 it to the ptrace call.
9232 * m68k-bsd-nat.c (store_registers): Likewise.
9233
9234 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9235
9236 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9237 gdb_byte *.
9238 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9239 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9240 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9241
9242 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9243
9244 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9245 nbsd_nat_target instead of inf_ptrace_target.
9246 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9247 nbsd_nat_target.
9248
9249 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9250
9251 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9252 register_t.
9253
9254 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9255
9256 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9257 it to the ptrace call.
9258 * alpha-bsd-nat.c (store_registers): Likewise.
9259
9260 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9261
9262 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9263 includes.
9264 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9265 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9266 fill_fpregset): Likewise.
9267
9268 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9269
9270 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9271 nbsd_nat_target instead of inf_ptrace_target.
9272 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9273 nbsd_nat_target.
9274
9275 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9276
9277 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9278 register_t.
9279
9280 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9281
9282 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9283 it to the ptrace call.
9284 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9285 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9286 * arm-nbsd-nat.c (store_register): Likewise.
9287 * arm-nbsd-nat.c (store_regs): Likewise.
9288 * arm-nbsd-nat.c (store_fp_register): Likewise.
9289 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9290
9291 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9292
9293 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9294 nbsd_nat_target instead of inf_ptrace_target.
9295 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9296 nbsd_nat_target.
9297
9298 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9299
9300 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9301 it to the ptrace call.
9302 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9303
9304 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9305
9306 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9307 it to the ptrace call.
9308 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9309
9310 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9311
9312 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9313 gdb_byte *.
9314 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9315
9316 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9317
9318 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9319 instead of inf_ptrace_target.
9320 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9321 nbsd_nat_target.
9322
9323 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9324
9325 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9326 register_t.
9327
9328 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9329
9330 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9331 register_t.
9332
9333 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9334
9335 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9336 register_t.
9337
9338 2020-03-13 Tom Tromey <tom@tromey.com>
9339
9340 * value.h (val_print): Don't declare.
9341 * valprint.h (val_print_array_elements)
9342 (val_print_scalar_formatted, generic_val_print): Don't declare.
9343 * valprint.c (generic_val_print_array): Take a struct value.
9344 (generic_val_print_ptr, generic_val_print_memberptr)
9345 (generic_val_print_bool, generic_val_print_int)
9346 (generic_val_print_char, generic_val_print_complex)
9347 (generic_val_print): Remove.
9348 (generic_value_print): Update.
9349 (do_val_print): Remove unused parameters. Don't call
9350 la_val_print.
9351 (val_print): Remove.
9352 (common_val_print): Update. Don't call value_check_printable.
9353 (val_print_scalar_formatted, val_print_array_elements): Remove.
9354 * rust-lang.c (rust_val_print): Remove.
9355 (rust_language_defn): Update.
9356 * p-valprint.c (pascal_val_print): Remove.
9357 (pascal_value_print_inner): Update.
9358 (pascal_object_print_val_fields, pascal_object_print_val):
9359 Remove.
9360 (pascal_object_print_static_field): Update.
9361 * p-lang.h (pascal_val_print): Don't declare.
9362 * p-lang.c (pascal_language_defn): Update.
9363 * opencl-lang.c (opencl_language_defn): Update.
9364 * objc-lang.c (objc_language_defn): Update.
9365 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9366 * m2-lang.h (m2_val_print): Don't declare.
9367 * m2-lang.c (m2_language_defn): Update.
9368 * language.h (struct language_defn) <la_val_print>: Remove.
9369 * language.c (unk_lang_value_print_inner): Rename. Change
9370 argument types.
9371 (unknown_language_defn, auto_language_defn): Update.
9372 * go-valprint.c (go_val_print): Remove.
9373 * go-lang.h (go_val_print): Don't declare.
9374 * go-lang.c (go_language_defn): Update.
9375 * f-valprint.c (f_val_print): Remove.
9376 * f-lang.h (f_value_print): Don't declare.
9377 * f-lang.c (f_language_defn): Update.
9378 * d-valprint.c (d_val_print): Remove.
9379 * d-lang.h (d_value_print): Don't declare.
9380 * d-lang.c (d_language_defn): Update.
9381 * cp-valprint.c (cp_print_value_fields)
9382 (cp_print_value_fields_rtti, cp_print_value): Remove.
9383 (cp_print_static_field): Update.
9384 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9385 (c_val_print_struct, c_val_print_union, c_val_print_int)
9386 (c_val_print_memberptr, c_val_print): Remove.
9387 * c-lang.h (c_val_print_array, cp_print_value_fields)
9388 (cp_print_value_fields_rtti): Don't declare.
9389 * c-lang.c (c_language_defn, cplus_language_defn)
9390 (asm_language_defn, minimal_language_defn): Update.
9391 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9392 (ada_val_print_enum): Take a struct value.
9393 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9394 (ada_val_print): Remove.
9395 (ada_value_print_1): Update.
9396 (printable_val_type): Remove.
9397 * ada-lang.h (ada_val_print): Don't declare.
9398 * ada-lang.c (ada_language_defn): Update.
9399
9400 2020-03-13 Tom Tromey <tom@tromey.com>
9401
9402 * valprint.c (do_val_print): Update.
9403 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9404 a struct value.
9405 (value_to_value_object_no_release): Declare.
9406 * python/py-value.c (value_to_value_object_no_release): New
9407 function.
9408 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9409 struct value.
9410 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9411 function.
9412 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9413 a struct value.
9414 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9415 Declare.
9416 (gdbscm_apply_val_pretty_printer): Take a struct value.
9417 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9418 value.
9419 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9420 value.
9421 * extension-priv.h (struct extension_language_ops)
9422 <apply_val_pretty_printer>: Take a struct value.
9423 * cp-valprint.c (cp_print_value): Create a struct value.
9424 (cp_print_value): Update.
9425
9426 2020-03-13 Tom Tromey <tom@tromey.com>
9427
9428 * ada-valprint.c (print_field_values): Call common_val_print.
9429
9430 2020-03-13 Tom Tromey <tom@tromey.com>
9431
9432 * ada-valprint.c (val_print_packed_array_elements): Remove
9433 bitoffset and val parameters. Call common_val_print.
9434 (ada_val_print_string): Remove offset, address, and original_value
9435 parameters.
9436 (ada_val_print_array): Update.
9437 (ada_value_print_array): New function.
9438 (ada_value_print_1): Call it.
9439
9440 2020-03-13 Tom Tromey <tom@tromey.com>
9441
9442 * ada-valprint.c (ada_value_print): Use common_val_print.
9443
9444 2020-03-13 Tom Tromey <tom@tromey.com>
9445
9446 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9447
9448 2020-03-13 Tom Tromey <tom@tromey.com>
9449
9450 * ada-valprint.c (ada_value_print_num): New function.
9451 (ada_value_print_1): Use it.
9452
9453 2020-03-13 Tom Tromey <tom@tromey.com>
9454
9455 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9456
9457 2020-03-13 Tom Tromey <tom@tromey.com>
9458
9459 * ada-valprint.c (ada_value_print_ptr): New function.
9460 (ada_value_print_1): Use it.
9461
9462 2020-03-13 Tom Tromey <tom@tromey.com>
9463
9464 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9465 call common_val_print.
9466 (ada_val_print_1): Update.
9467 (ada_value_print_1): New function.
9468 (ada_value_print_inner): Rewrite.
9469
9470 2020-03-13 Tom Tromey <tom@tromey.com>
9471
9472 * cp-valprint.c (cp_print_value_fields): Update.
9473 (cp_print_value): New function.
9474
9475 2020-03-13 Tom Tromey <tom@tromey.com>
9476
9477 * m2-valprint.c (m2_value_print_inner): Use
9478 cp_print_value_fields.
9479 * cp-valprint.c (cp_print_value_fields): New function.
9480 * c-valprint.c (c_value_print_struct): New function.
9481 (c_value_print_inner): Use c_value_print_struct.
9482 * c-lang.h (cp_print_value_fields): Declare.
9483
9484 2020-03-13 Tom Tromey <tom@tromey.com>
9485
9486 * c-valprint.c (c_value_print_array): 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_memberptr): New function.
9492 (c_value_print_inner): Use it.
9493
9494 2020-03-13 Tom Tromey <tom@tromey.com>
9495
9496 * c-valprint.c (c_value_print_int): New function.
9497 (c_value_print_inner): Use it.
9498
9499 2020-03-13 Tom Tromey <tom@tromey.com>
9500
9501 * c-valprint.c (c_value_print_ptr): New function.
9502 (c_value_print_inner): Use it.
9503
9504 2020-03-13 Tom Tromey <tom@tromey.com>
9505
9506 * c-valprint.c (c_value_print_inner): Rewrite.
9507
9508 2020-03-13 Tom Tromey <tom@tromey.com>
9509
9510 * valprint.c (generic_value_print_complex): New function.
9511 (generic_value_print): Use it.
9512
9513 2020-03-13 Tom Tromey <tom@tromey.com>
9514
9515 * valprint.c (generic_val_print_float): Don't call
9516 val_print_scalar_formatted.
9517 (generic_val_print, generic_value_print): Update.
9518
9519 2020-03-13 Tom Tromey <tom@tromey.com>
9520
9521 * valprint.c (generic_value_print_char): New function
9522 (generic_value_print): Use it.
9523
9524 2020-03-13 Tom Tromey <tom@tromey.com>
9525
9526 * valprint.c (generic_value_print_int): New function.
9527 (generic_value_print): Use it.
9528
9529 2020-03-13 Tom Tromey <tom@tromey.com>
9530
9531 * valprint.c (generic_value_print_bool): New function.
9532 (generic_value_print): Use it.
9533
9534 2020-03-13 Tom Tromey <tom@tromey.com>
9535
9536 * valprint.c (generic_val_print_func): Simplify.
9537 (generic_val_print, generic_value_print): Update.
9538
9539 2020-03-13 Tom Tromey <tom@tromey.com>
9540
9541 * valprint.c (generic_val_print_flags): Remove.
9542 (generic_val_print, generic_value_print): Update.
9543 (val_print_type_code_flags): Add original_value parameter.
9544
9545 2020-03-13 Tom Tromey <tom@tromey.com>
9546
9547 * valprint.c (generic_val_print): Update.
9548 (generic_value_print): Update.
9549 * valprint.c (generic_val_print_enum): Don't call
9550 val_print_scalar_formatted.
9551
9552 2020-03-13 Tom Tromey <tom@tromey.com>
9553
9554 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9555 * valprint.c (generic_value_print_ptr): New function.
9556
9557 2020-03-13 Tom Tromey <tom@tromey.com>
9558
9559 * valprint.c (generic_value_print): Rewrite.
9560
9561 2020-03-13 Tom Tromey <tom@tromey.com>
9562
9563 * p-valprint.c (pascal_object_print_value_fields)
9564 (pascal_object_print_value): New functions.
9565
9566 2020-03-13 Tom Tromey <tom@tromey.com>
9567
9568 * p-valprint.c (pascal_value_print_inner): Rewrite.
9569
9570 2020-03-13 Tom Tromey <tom@tromey.com>
9571
9572 * f-valprint.c (f_value_print_innner): Rewrite.
9573
9574 2020-03-13 Tom Tromey <tom@tromey.com>
9575
9576 * m2-valprint.c (m2_print_unbounded_array): New overload.
9577 (m2_print_unbounded_array): Update.
9578 (m2_print_array_contents): Take a struct value.
9579 (m2_value_print_inner): Rewrite.
9580
9581 2020-03-13 Tom Tromey <tom@tromey.com>
9582
9583 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9584 (d_value_print_inner): New function.
9585 * d-lang.h (d_value_print_inner): Declare.
9586 * d-lang.c (d_language_defn): Use d_value_print_inner.
9587
9588 2020-03-13 Tom Tromey <tom@tromey.com>
9589
9590 * go-valprint.c (go_value_print_inner): New function.
9591 * go-lang.h (go_value_print_inner): Declare.
9592 * go-lang.c (go_language_defn): Use go_value_print_inner.
9593
9594 2020-03-13 Tom Tromey <tom@tromey.com>
9595
9596 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9597 API.
9598 (rust_val_print): Rewrite.
9599 (rust_value_print_inner): New function, from rust_val_print.
9600 (rust_language_defn): Use rust_value_print_inner.
9601
9602 2020-03-13 Tom Tromey <tom@tromey.com>
9603
9604 * ada-valprint.c (ada_value_print_inner): New function.
9605 * ada-lang.h (ada_value_print_inner): Declare.
9606 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9607
9608 2020-03-13 Tom Tromey <tom@tromey.com>
9609
9610 * f-valprint.c (f_value_print_innner): New function.
9611 * f-lang.h (f_value_print_innner): Declare.
9612 * f-lang.c (f_language_defn): Use f_value_print_innner.
9613
9614 2020-03-13 Tom Tromey <tom@tromey.com>
9615
9616 * p-valprint.c (pascal_value_print_inner): New function.
9617 * p-lang.h (pascal_value_print_inner): Declare.
9618 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9619
9620 2020-03-13 Tom Tromey <tom@tromey.com>
9621
9622 * m2-valprint.c (m2_value_print_inner): New function.
9623 * m2-lang.h (m2_value_print_inner): Declare.
9624 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9625
9626 2020-03-13 Tom Tromey <tom@tromey.com>
9627
9628 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9629 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9630 * c-valprint.c (c_value_print_inner): New function.
9631 * c-lang.h (c_value_print_inner): Declare.
9632 * c-lang.c (c_language_defn, cplus_language_defn)
9633 (asm_language_defn, minimal_language_defn): Use
9634 c_value_print_inner.
9635
9636 2020-03-13 Tom Tromey <tom@tromey.com>
9637
9638 * p-valprint.c (pascal_object_print_value_fields): Now static.
9639 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9640
9641 2020-03-13 Tom Tromey <tom@tromey.com>
9642
9643 * c-valprint.c (c_val_print_array): Simplify.
9644
9645 2020-03-13 Tom Tromey <tom@tromey.com>
9646
9647 * valprint.c (value_print_array_elements): New function.
9648 * valprint.h (value_print_array_elements): Declare.
9649
9650 2020-03-13 Tom Tromey <tom@tromey.com>
9651
9652 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9653 * mips-tdep.c (mips_print_register): Use
9654 value_print_scalar_formatted.
9655
9656 2020-03-13 Tom Tromey <tom@tromey.com>
9657
9658 * valprint.h (value_print_scalar_formatted): Declare.
9659 * valprint.c (value_print_scalar_formatted): New function.
9660
9661 2020-03-13 Tom Tromey <tom@tromey.com>
9662
9663 * valprint.h (generic_value_print): Declare.
9664 * valprint.c (generic_value_print): New function.
9665
9666 2020-03-13 Tom Tromey <tom@tromey.com>
9667
9668 * valprint.c (do_val_print): Call la_value_print_inner, if
9669 available.
9670 * rust-lang.c (rust_language_defn): Update.
9671 * p-lang.c (pascal_language_defn): Update.
9672 * opencl-lang.c (opencl_language_defn): Update.
9673 * objc-lang.c (objc_language_defn): Update.
9674 * m2-lang.c (m2_language_defn): Update.
9675 * language.h (struct language_defn) <la_value_print_inner>: New
9676 member.
9677 * language.c (unknown_language_defn, auto_language_defn): Update.
9678 * go-lang.c (go_language_defn): Update.
9679 * f-lang.c (f_language_defn): Update.
9680 * d-lang.c (d_language_defn): Update.
9681 * c-lang.c (c_language_defn, cplus_language_defn)
9682 (asm_language_defn, minimal_language_defn): Update.
9683 * ada-lang.c (ada_language_defn): Update.
9684
9685 2020-03-13 Tom Tromey <tom@tromey.com>
9686
9687 * c-valprint.c (c_value_print): Use common_val_print.
9688
9689 2020-03-13 Tom Tromey <tom@tromey.com>
9690
9691 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9692
9693 2020-03-13 Tom Tromey <tom@tromey.com>
9694
9695 * f-valprint.c (f77_print_array_1, f_val_print): Use
9696 common_val_print.
9697
9698 2020-03-13 Tom Tromey <tom@tromey.com>
9699
9700 * riscv-tdep.c (riscv_print_one_register_info): Use
9701 common_val_print.
9702
9703 2020-03-13 Tom Tromey <tom@tromey.com>
9704
9705 * mi/mi-main.c (output_register): Use common_val_print.
9706
9707 2020-03-13 Tom Tromey <tom@tromey.com>
9708
9709 * infcmd.c (default_print_one_register_info): Use
9710 common_val_print.
9711
9712 2020-03-13 Tom Tromey <tom@tromey.com>
9713
9714 * valprint.h (common_val_print_checked): Declare.
9715 * valprint.c (common_val_print_checked): New function.
9716 * stack.c (print_frame_arg): Use common_val_print_checked.
9717
9718 2020-03-13 Tom Tromey <tom@tromey.com>
9719
9720 * valprint.c (do_val_print): New function, from val_print.
9721 (val_print): Use do_val_print.
9722 (common_val_print): Use do_val_print.
9723
9724 2020-03-13 Tom Tromey <tom@tromey.com>
9725
9726 * valprint.c (value_print): Use scoped_value_mark.
9727
9728 2020-03-13 Tom de Vries <tdevries@suse.de>
9729
9730 PR symtab/25646
9731 * psymtab.c (partial_symtab::partial_symtab): Don't set
9732 globals_offset and statics_offset. Push element onto
9733 current_global_psymbols and current_static_psymbols stacks.
9734 (concat): New function.
9735 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9736 element from current_global_psymbols and current_static_psymbols
9737 stacks. Concat popped elements to global_psymbols and
9738 static_symbols.
9739 (add_psymbol_to_list): Use current_global_psymbols and
9740 current_static_psymbols stacks.
9741 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9742 current_static_psymbols fields.
9743
9744 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9745
9746 * corelow.c (sniff_core_bfd): Remove.
9747 (class core_target) <m_core_vec>: Remove.
9748 (core_target::core_target): Update.
9749 (core_file_fns): Remove.
9750 (deprecated_add_core_fns): Remove.
9751 (default_core_sniffer): Remove.
9752 (sniff_core_bfd): Remove.
9753 (default_check_format): Remove.
9754 (gdb_check_format): Remove.
9755 (core_target_open): Update.
9756 (core_target::get_core_register_section): Update.
9757 (get_core_registers_cb): Update.
9758 (core_target::fetch_registers): Update.
9759 * gdbcore.h (struct core_fns): Remove.
9760 (deprecated_add_core_fns): Remove.
9761 (default_core_sniffer): Remove.
9762 (default_check_format): Remove.
9763
9764 2020-03-12 Tom Tromey <tom@tromey.com>
9765
9766 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9767 CORE_ADDR.
9768 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9769
9770 2020-03-12 Tom Tromey <tom@tromey.com>
9771
9772 * remote.c (remote_target::download_tracepoint)
9773 (remote_target::enable_tracepoint)
9774 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9775 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9776 sprintf_vma.
9777
9778 2020-03-12 Tom Tromey <tom@tromey.com>
9779
9780 * symfile-mem.c: Update CORE_ADDR size assert.
9781
9782 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * selftest.m4: Move to gdbsupport/.
9785 * acinclude.m4: Update path to selftest.m4.
9786
9787 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9788
9789 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9790 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9791 gdbarch-selfselftests.c and selftest-arch.c.
9792 (SUBDIR_UNITTESTS_OBS): Rename to...
9793 (SELFTESTS_OBS): ... this.
9794 (COMMON_SFILES): Remove disasm-selftests.c and
9795 gdbarch-selftests.c.
9796 * configure.ac: Don't add selftest-arch.{c,o} to
9797 CONFIG_{SRCS,OBS}.
9798 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9799 preprocessor conditions.
9800
9801 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9802
9803 * configure.ac: Don't source bfd/development.sh.
9804 * selftest.m4: Modify comment.
9805 * configure: Re-generate.
9806
9807 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9808
9809 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9810 not "true" or "false".
9811 * configure: Re-generate.
9812
9813 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9814
9815 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9816 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9817 renamed to arm_nbsd_supply_gregset.
9818 (fetch_register): Update to call arm_nbsd_supply_gregset.
9819 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9820 (arm_netbsd_nat_target::fetch_registers): Update.
9821 (fetch_elfcore_registers): Removed.
9822 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9823 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9824 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9825 not require NetBSD system headers.
9826 (arm_nbsd_regset): New struct.
9827 (arm_nbsd_iterate_over_regset_sections): New function.
9828 (arm_netbsd_init_abi_common): Updated to call
9829 set_gdbarch_iterate_over_regset_sections.
9830 * arm-nbsd-tdep.h: New file.
9831
9832 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9833
9834 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9835 recursion.
9836
9837 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9838
9839 * configure: Re-generate.
9840
9841 2020-03-11 Tom Tromey <tromey@adacore.com>
9842
9843 * ada-typeprint.c (print_choices): Fix comment.
9844
9845 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9846
9847 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9848 previous item in the list, when the list has no items.
9849
9850 2020-03-11 Tom de Vries <tdevries@suse.de>
9851
9852 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9853 PROP_LOCLIST handling code.
9854
9855 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9856
9857 * buildsym-legacy.c (record_line): Pass extra parameter to
9858 record_line.
9859 * buildsym.c (buildsym_compunit::record_line): Take an extra
9860 parameter, reduce duplication in the line table, and record the
9861 is_stmt flag in the line table.
9862 * buildsym.h (buildsym_compunit::record_line): Add extra
9863 parameter.
9864 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9865 non-statement lines.
9866 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9867 this to the symtab builder.
9868 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9869 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9870 through to dwarf_record_line_1.
9871 * infrun.c (process_event_stop_test): When stepping, don't stop at
9872 a non-statement instruction, and only refresh the step info when
9873 we land in the middle of a line's range. Also add an extra
9874 comment.
9875 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9876 field.
9877 * record-btrace.c (btrace_find_line_range): Only record lines
9878 marked as is-statement.
9879 * stack.c (frame_show_address): Show the frame address if we are
9880 in a non-statement sal.
9881 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9882 (maintenance_print_one_line_table): Print a header for the is_stmt
9883 column, and include is_stmt information in the output.
9884 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9885 preference to non-statements.
9886 (find_pcs_for_symtab_line): Prefer is-statement entries.
9887 (find_line_common): Likewise.
9888 * symtab.h (struct linetable_entry): Add is_stmt field.
9889 (struct symtab_and_line): Likewise.
9890 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9891 arranging the line table.
9892
9893 2020-03-07 Tom de Vries <tdevries@suse.de>
9894
9895 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9896 DIE.
9897
9898 2020-03-07 Tom Tromey <tom@tromey.com>
9899
9900 * valops.c (value_literal_complex): Remove obsolete comment.
9901 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9902 comment.
9903
9904 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9905
9906 * infrun.h: Forward-declare thread_info.
9907 (set_step_info): Add thread_info parameter, add doc.
9908 * infrun.c (set_step_info): Add thread_info parameter, move doc
9909 to header.
9910 * infrun.c (process_event_stop_test): Pass thread to
9911 set_step_info call.
9912 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9913 set_step_info.
9914 (prepare_one_step): Add thread_info parameter, pass it to
9915 set_step_frame and prepare_one_step (recursive) call.
9916 (step_1): Pass thread to prepare_one_step call.
9917 (step_command_fsm::should_stop): Pass thread to
9918 prepare_one_step.
9919 (until_next_fsm): Pass thread to set_step_frame call.
9920 (finish_command): Pass thread to set_step_info call.
9921
9922 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9923
9924 * windows-tdep.c (windows_solib_create_inferior_hook):
9925 Check if inferior is running.
9926
9927 2020-03-06 Tom de Vries <tdevries@suse.de>
9928
9929 * NEWS: Fix "the the".
9930 * ctfread.c: Same.
9931
9932 2020-03-06 Tom de Vries <tdevries@suse.de>
9933
9934 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9935
9936 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9937
9938 * .dir-locals.el: Add a comment referencing the other copies of
9939 this file.
9940
9941 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9942
9943 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9944 psargs.
9945
9946 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9947
9948 * .gitattributes: New file.
9949
9950 2020-03-04 Tom Tromey <tom@tromey.com>
9951
9952 * symmisc.c (print_symbol_bcache_statistics)
9953 (print_objfile_statistics): Update.
9954 * symfile.c (allocate_symtab): Use intern.
9955 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9956 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9957 macro_cache>: Remove.
9958 <string_cache>: New member.
9959 (struct objfile) <intern>: New methods.
9960 * elfread.c (elf_symtab_read): Use intern.
9961 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9962 (dwarf2_compute_name, dwarf2_physname)
9963 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9964 names.
9965 (guess_partial_die_structure_name): Update.
9966 (partial_die_info::fixup): Intern name.
9967 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9968 name.
9969 (dwarf2_name): Intern name. Update.
9970 * buildsym.c (buildsym_compunit::get_macro_table): Use
9971 string_cache.
9972
9973 2020-03-04 Tom Tromey <tom@tromey.com>
9974
9975 * jit.c (bfd_open_from_target_memory): Make "target" const.
9976 * corefile.c (gnutarget): Now const.
9977 * gdbcore.h (gnutarget): Now const.
9978
9979 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9980
9981 * NEWS: Mention support for WOW64 processes.
9982 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9983 (amd64_windows_segment_register_p): Remove static.
9984 (_initialize_amd64_windows_nat): Update.
9985 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9986 * i386-windows-nat.c (context_offset): Update.
9987 (i386_mappings): Rename and remove static.
9988 (i386_windows_segment_register_p): Remove static.
9989 (_initialize_i386_windows_nat): Update.
9990 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9991 (STATUS_WX86_SINGLE_STEP): New macro.
9992 (EnumProcessModulesEx): New macro.
9993 (Wow64SuspendThread): New macro.
9994 (Wow64GetThreadContext): New macro.
9995 (Wow64SetThreadContext): New macro.
9996 (Wow64GetThreadSelectorEntry): New macro.
9997 (windows_set_context_register_offsets): Add static.
9998 (windows_set_segment_register_p): Likewise.
9999 (windows_add_thread): Adapt for WOW64 processes.
10000 (windows_fetch_one_register): Likewise.
10001 (windows_nat_target::fetch_registers): Likewise.
10002 (windows_store_one_register): Likewise.
10003 (display_selector): Likewise.
10004 (display_selectors): Likewise.
10005 (handle_exception): Likewise.
10006 (windows_continue): Likewise.
10007 (windows_nat_target::resume): Likewise.
10008 (windows_add_all_dlls): Likewise.
10009 (do_initial_windows_stuff): Likewise.
10010 (windows_nat_target::attach): Likewise.
10011 (windows_get_exec_module_filename): Likewise.
10012 (windows_nat_target::create_inferior): Likewise.
10013 (windows_xfer_siginfo): Likewise.
10014 (_initialize_loadable): Initialize Wow64SuspendThread,
10015 Wow64GetThreadContext, Wow64SetThreadContext,
10016 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10017 * windows-nat.h (windows_set_context_register_offsets):
10018 Remove declaration.
10019 (windows_set_segment_register_p): Likewise.
10020 (i386_windows_segment_register_p): Add declaration.
10021 (amd64_windows_segment_register_p): Likewise.
10022
10023 2020-03-04 Luis Machado <luis.machado@linaro.org>
10024
10025 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10026 in "info registers" for AArch64/ARM.
10027
10028 The change caused "info registers" to not print GPR's.
10029
10030 gdb/ChangeLog:
10031
10032 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10033
10034 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10035 when reg->group is empty and reggroup is not.
10036
10037 2020-03-03 Tom Tromey <tromey@adacore.com>
10038
10039 * dwarf2/frame.c (struct dwarf2_frame_cache)
10040 <checked_tailcall_bottom, entry_cfa_sp_offset,
10041 entry_cfa_sp_offset_p>: Remove members.
10042 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10043 (dwarf2_frame_prev_register): Don't call
10044 dwarf2_tailcall_sniffer_first.
10045 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10046 * frame-unwind.c (add_unwinder): New fuction.
10047 (frame_unwind_init): Use it. Add tailcall unwinder.
10048
10049 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10050 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10051
10052 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10053 value should be printed as true.
10054
10055 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10056
10057 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10058 (windows_init_abi): Set and use windows_so_ops.
10059
10060 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10061
10062 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10063 when verifying if dealing with a convenience variable.
10064
10065 2020-03-03 Luis Machado <luis.machado@linaro.org>
10066
10067 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10068
10069 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10070
10071 * infrun.c (gdbarch_supports_displaced_stepping): New.
10072 (use_displaced_stepping): Break up conditions in smaller pieces.
10073 Use gdbarch_supports_displaced_stepping.
10074 (displaced_step_prepare_throw): Use
10075 gdbarch_supports_displaced_stepping.
10076
10077 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10078
10079 * NEWS: Mention new behaviour of the history filename.
10080 * top.c (write_history_p): Add comment.
10081 (show_write_history_p): Add header comment, give a different
10082 message when history writing is on, but the history filename is
10083 empty.
10084 (history_filename): Add comment.
10085 (history_filename_empty): New function.
10086 (show_history_filename): Add header comment, give a different
10087 message when the filename is empty.
10088 (init_history): Compare history_filename against nullptr, and only
10089 read history if the filename is not empty.
10090 (set_history_filename): Add header comment, and only make
10091 non-empty filenames absolute.
10092 (init_main): Make the filename argument to 'set history filename'
10093 optional.
10094
10095 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10096
10097 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10098 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10099 (fetch_fp_register): Update.
10100 (fetch_fp_regs): Update.
10101 (store_fp_register): Update.
10102 (store_fp_regs): Update.
10103 (arm_netbsd_nat_target::read_description): New function.
10104 (fetch_elfcore_registers): Update.
10105
10106 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10107
10108 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10109 general_thread if the stop reply is missing a thread-id.
10110 (remote_target::process_stop_reply): Use the first non-exited
10111 thread if the target didn't pass a thread-id.
10112 * infrun.c (do_target_wait): Move call to
10113 switch_to_inferior_no_thread to ....
10114 (do_target_wait_1): ... here.
10115
10116 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10117
10118 * debuginfod-support.c: Include defs.h first.
10119
10120 2020-02-28 Tom de Vries <tdevries@suse.de>
10121
10122 * symfile.c (set_initial_language): Use default language for lookup.
10123
10124 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10125
10126 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10127 reader variable, pass `this` to read_cutu_die_from_dwo.
10128
10129 2020-02-27 Aaron Merey <amerey@redhat.com>
10130
10131 * source.c (open_source_file): Check for nullptr when computing
10132 srcpath.
10133
10134 2020-02-27 Tom Tromey <tromey@adacore.com>
10135
10136 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10137 member.
10138 (dwarf2_add_field): Don't update nfields.
10139 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10140
10141 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10142
10143 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10144 abs.
10145
10146 2020-02-26 Tom Tromey <tom@tromey.com>
10147
10148 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10149 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10150 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10151 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10152 per_cu_data.
10153
10154 2020-02-26 Tom Tromey <tom@tromey.com>
10155
10156 * dwarf2/index-write.c (psym_index_map): Change type.
10157 (add_address_entry_worker, write_one_signatured_type)
10158 (recursively_count_psymbols, recursively_write_psymbols)
10159 (class debug_names, psyms_seen_size, write_gdbindex)
10160 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10161
10162 2020-02-26 Aaron Merey <amerey@redhat.com>
10163
10164 * Makefile.in: Handle optional debuginfod support.
10165 * NEWS: Update.
10166 * README: Add --with-debuginfod summary.
10167 * config.in: Regenerate.
10168 * configure: Regenerate.
10169 * configure.ac: Handle optional debuginfod support.
10170 * debuginfod-support.c: debuginfod helper functions.
10171 * debuginfod-support.h: Ditto.
10172 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10173 summary.
10174 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10175 when a dwz file cannot be found.
10176 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10177 debuginfo file cannot be found.
10178 * source.c (open_source_file): Query debuginfod servers when a
10179 source file cannot be found.
10180 * top.c (print_gdb_configuration): Include
10181 --{with,without}-debuginfod in the output.
10182
10183 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10184
10185 * thread.c (thr_try_catch_cmd): Print thread name.
10186
10187 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10188
10189 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10190 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10191 dwarf2_fetch_die_type_sect_off): Move to...
10192 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10193 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10194 dwarf2_fetch_die_type_sect_off): ... here.
10195 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10196 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10197 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10198
10199 2020-02-26 Tom de Vries <tdevries@suse.de>
10200
10201 PR gdb/25603
10202 * symfile.c (set_initial_language): Exit-early if
10203 language_mode == language_mode_manual.
10204
10205 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10206
10207 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10208 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10209 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10210
10211 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10212
10213 * gdbtypes.c (create_array_type_with_stride): Handle negative
10214 array strides.
10215 * valarith.c (value_subscripted_rvalue): Likewise.
10216
10217 2020-02-25 Luis Machado <luis.machado@linaro.org>
10218
10219 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10220
10221 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10222
10223 * loc.h (dwarf2_get_die_type): Move to...
10224 * read.h (dwarf2_get_die_type): ... here.
10225 * read.c (dwarf2_get_die_type): Move doc to header.
10226
10227 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10228
10229 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10230 'gnulib/Makefile.in' to the list.
10231
10232 2020-02-24 Tom Tromey <tom@tromey.com>
10233
10234 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10235 Remove.
10236 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10237 XOBNEWVEC.
10238
10239 2020-02-24 Tom Tromey <tom@tromey.com>
10240
10241 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10242 New method.
10243 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10244 (dw2_do_instantiate_symtab, dw2_get_file_names)
10245 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10246
10247 2020-02-24 Tom Tromey <tom@tromey.com>
10248
10249 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10250 make_scoped_restore.
10251 (dwarf2_psymtab::read_symtab): Don't clear
10252 reading_partial_symbols.
10253
10254 2020-02-24 Tom de Vries <tdevries@suse.de>
10255
10256 PR gdb/25592
10257 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10258
10259 2020-02-24 Tom de Vries <tdevries@suse.de>
10260
10261 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10262 commands layout next/prev/regs.
10263
10264 2020-02-22 Tom Tromey <tom@tromey.com>
10265
10266 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10267 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10268
10269 2020-02-22 Tom Tromey <tom@tromey.com>
10270
10271 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10272
10273 2020-02-22 Tom Tromey <tom@tromey.com>
10274
10275 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10276 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10277 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10278 * tui/tui.c (_initialize_tui): Add usage text.
10279
10280 2020-02-22 Tom Tromey <tom@tromey.com>
10281
10282 * tui/tui-win.c (tui_set_focus_command)
10283 (tui_set_win_height_command): Use error_no_arg.
10284 (_initialize_tui_win): Update help text.
10285 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10286
10287 2020-02-22 Tom Tromey <tom@tromey.com>
10288
10289 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10290 * tui/tui-disasm.h (struct tui_disasm_window)
10291 <display_start_addr>: Declare.
10292 * tui/tui-source.h (struct tui_source_window)
10293 <display_start_addr>: Declare.
10294 * tui/tui-winsource.h (struct tui_source_window_base)
10295 <show_source_line, display_start_addr>: New methods.
10296 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10297 Rename and move to protected section.
10298 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10299 (tui_source_window_base::do_erase_source_content): Update.
10300 (tui_source_window_base::show_source_line): Now a method.
10301 (tui_source_window_base::show_source_content)
10302 (tui_source_window_base::tui_source_window_base)
10303 (tui_source_window_base::rerender)
10304 (tui_source_window_base::refill)
10305 (tui_source_window_base::do_scroll_horizontal)
10306 (tui_source_window_base::set_is_exec_point_at)
10307 (tui_source_window_base::update_breakpoint_info)
10308 (tui_source_window_base::update_exec_info): Update.
10309 * tui/tui-source.c (tui_source_window::set_contents)
10310 (tui_source_window::showing_source_p)
10311 (tui_source_window::do_scroll_vertical)
10312 (tui_source_window::location_matches_p)
10313 (tui_source_window::line_is_displayed): Update.
10314 (tui_source_window::display_start_addr): New method.
10315 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10316 (tui_disasm_window::do_scroll_vertical)
10317 (tui_disasm_window::location_matches_p): Update.
10318 (tui_disasm_window::display_start_addr): New method.
10319
10320 2020-02-22 Tom Tromey <tom@tromey.com>
10321
10322 * NEWS: Add entry for gdb.register_window_type.
10323 * tui/tui-layout.h (window_factory): New typedef.
10324 (tui_register_window): Declare.
10325 * tui/tui-layout.c (saved_tui_windows): New global.
10326 (tui_apply_current_layout): Use it.
10327 (tui_register_window): New function.
10328 * python/python.c (do_start_initialization): Call
10329 gdbpy_initialize_tui.
10330 (python_GdbMethods): Add "register_window_type" function.
10331 * python/python-internal.h (gdbpy_register_tui_window)
10332 (gdbpy_initialize_tui): Declare.
10333 * python/py-tui.c: New file.
10334 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10335
10336 2020-02-22 Tom Tromey <tom@tromey.com>
10337
10338 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10339
10340 2020-02-22 Tom Tromey <tom@tromey.com>
10341
10342 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10343 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10344 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10345 (tui_set_win_focus_to): Move from tui-win.c.
10346
10347 2020-02-22 Tom Tromey <tom@tromey.com>
10348
10349 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10350 functions.
10351 (known_window_types): New global.
10352 (tui_get_window_by_name): Reimplement.
10353 (initialize_known_windows): New function.
10354 (validate_window_name): Rewrite.
10355 (_initialize_tui_layout): Call initialize_known_windows.
10356
10357 2020-02-22 Tom Tromey <tom@tromey.com>
10358
10359 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10360 Remove constants.
10361 * tui/tui-winsource.h (struct tui_source_window_base)
10362 <tui_source_window_base>: Remove parameter.
10363 * tui/tui-winsource.c
10364 (tui_source_window_base::tui_source_window_base): Remove
10365 parameter.
10366 (tui_source_window_base::refill): Update.
10367 * tui/tui-stack.h (struct tui_locator_window)
10368 <tui_locator_window>: Update.
10369 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10370 Default the constructor.
10371 * tui/tui-regs.h (struct tui_data_item_window)
10372 <tui_data_item_window>: Default the constructor.
10373 (struct tui_data_window) <tui_data_window>: Likewise.
10374 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10375 Default the constructor.
10376 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10377 Default the constructor.
10378 <type>: Remove.
10379 (struct tui_win_info) <tui_win_info>: Default the constructor.
10380 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10381 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10382 Default the constructor.
10383
10384 2020-02-22 Tom Tromey <tom@tromey.com>
10385
10386 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10387 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10388 * tui/tui-win.c (tui_resize_all): Don't call
10389 tui_delete_invisible_windows.
10390 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10391 done.
10392 (tui_set_layout): Update.
10393 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10394 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10395 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10396
10397 2020-02-22 Tom Tromey <tom@tromey.com>
10398
10399 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10400 correctly.
10401
10402 2020-02-22 Tom Tromey <tom@tromey.com>
10403
10404 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10405
10406 2020-02-22 Tom Tromey <tom@tromey.com>
10407
10408 * tui/tui-winsource.h (struct tui_source_window_iterator)
10409 <inner_iterator>: New etytypedef.
10410 <tui_source_window_iterator>: Take "end" parameter.
10411 <tui_source_window_iterator>: Take iterator.
10412 <operator*, advance>: Update.
10413 <m_iter>: Change type.
10414 <m_end>: New field.
10415 (struct tui_source_windows) <begin, end>: Update.
10416 * tui/tui-layout.c (tui_windows): New global.
10417 (tui_apply_current_layout): Clear tui_windows.
10418 (tui_layout_window::apply): Update tui_windows.
10419 * tui/tui-data.h (tui_windows): Declare.
10420 (all_tui_windows): Now inline function.
10421 (class tui_window_iterator, struct all_tui_windows): Remove.
10422
10423 2020-02-22 Tom Tromey <tom@tromey.com>
10424
10425 PR tui/17850:
10426 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10427 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10428 "height" argument.
10429 (class tui_layout_window) <get_sizes>: Likewise.
10430 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10431 argument.
10432 <get_sizes>: Add "height" argument.
10433 <m_vertical>: New field.
10434 * tui/tui-layout.c (tui_layout_split::clone): Update.
10435 (tui_layout_split::get_sizes): Add "height" argument.
10436 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10437 (tui_new_layout_command): Parse "-horizontal".
10438 (_initialize_tui_layout): Update help string.
10439 (tui_layout_split::specification): Add "-horizontal" when needed.
10440 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10441 argument.
10442 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10443 New methods.
10444
10445 2020-02-22 Tom Tromey <tom@tromey.com>
10446
10447 * tui/tui-layout.h (enum tui_adjust_result): New.
10448 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10449 (class tui_layout_window) <adjust_size>: Return
10450 tui_adjust_result. Rewrite.
10451 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10452 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10453
10454 2020-02-22 Tom Tromey <tom@tromey.com>
10455
10456 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10457 parameter and return types.
10458 (class tui_layout_base) <specification>: Add "depth".
10459 (class tui_layout_window) <specification>: Add "depth".
10460 (class tui_layout_split) <specification>: Add "depth".
10461 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10462 and return types.
10463 (tui_new_layout_command): Parse sub-layouts.
10464 (_initialize_tui_layout): Update help string.
10465 (tui_layout_window::specification): Add "depth".
10466 (add_layout_command): Update.
10467
10468 2020-02-22 Tom Tromey <tom@tromey.com>
10469
10470 * NEWS: Add "tui new-layout" item.
10471 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10472 Add new-layout command to help text.
10473 (validate_window_name): New function.
10474 (tui_new_layout_command): New function.
10475 (_initialize_tui_layout): Register "new-layout".
10476 (tui_layout_window::specification): New method.
10477 (tui_layout_window::specification): New method.
10478 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10479 method.
10480 (class tui_layout_window) <specification>: New method.
10481 (class tui_layout_split) <specification>: New method.
10482
10483 2020-02-22 Tom Tromey <tom@tromey.com>
10484
10485 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10486 * tui/tui-win.c (window_name_completer): Update comment.
10487 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10488 Declare method.
10489 (class tui_layout_window) <replace_window>: Likewise.
10490 (class tui_layout_split) <replace_window>: Likewise.
10491 (tui_set_layout): Don't declare.
10492 (tui_set_initial_layout): Declare function.
10493 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10494 (asm_regs_layout): New globals.
10495 (tui_current_layout, show_layout): Remove.
10496 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10497 (find_layout, tui_apply_layout): New function.
10498 (layout_completer): Remove.
10499 (tui_next_layout): Reimplement.
10500 (tui_next_layout_command): New function.
10501 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10502 (tui_regs_layout): Reimplement.
10503 (tui_regs_layout_command): New function.
10504 (extract_display_start_addr): Rewrite.
10505 (next_layout, prev_layout): Remove.
10506 (tui_layout_window::replace_window): New method.
10507 (tui_layout_split::replace_window): New method.
10508 (destroy_layout): New function.
10509 (layout_list): New global.
10510 (add_layout_command): New function.
10511 (initialize_layouts): Update.
10512 (tui_layout_command): New function.
10513 (_initialize_tui_layout): Install "layout" commands.
10514 * tui/tui-data.h (enum tui_layout_type): Remove.
10515 (tui_current_layout): Don't declare.
10516
10517 2020-02-22 Tom Tromey <tom@tromey.com>
10518
10519 * tui/tui-regs.c (tui_reg_layout): Remove.
10520 (tui_reg_command): Use tui_regs_layout.
10521 * tui/tui-layout.h (tui_reg_command): Declare.
10522 * tui/tui-layout.c (tui_reg_command): New function.
10523
10524 2020-02-22 Tom Tromey <tom@tromey.com>
10525
10526 * tui/tui.c (tui_rl_delete_other_windows): Call
10527 tui_remove_some_windows.
10528 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10529 Declare method.
10530 (class tui_layout_window) <remove_windows>: New method.
10531 (class tui_layout_split) <remove_windows>: Declare.
10532 (tui_remove_some_windows): Declare.
10533 * tui/tui-layout.c (tui_remove_some_windows): New function.
10534 (tui_layout_split::remove_windows): New method.
10535
10536 2020-02-22 Tom Tromey <tom@tromey.com>
10537
10538 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10539 * tui/tui-layout.h (tui_next_layout): Declare.
10540 * tui/tui-layout.c (tui_next_layout): New function.
10541
10542 2020-02-22 Tom Tromey <tom@tromey.com>
10543
10544 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10545 correct coordinates.
10546
10547 2020-02-22 Tom Tromey <tom@tromey.com>
10548
10549 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10550 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10551 DATA_WIN case.
10552
10553 2020-02-22 Tom Tromey <tom@tromey.com>
10554
10555 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10556 TUI_DISASM_WIN, not tui_win_list.
10557
10558 2020-02-22 Tom Tromey <tom@tromey.com>
10559
10560 * valprint.c (generic_val_print_enum_1)
10561 (val_print_type_code_flags): Style member names.
10562 * rust-lang.c (val_print_struct, rust_print_enum)
10563 (rust_print_struct_def, rust_internal_print_type): Style member
10564 names.
10565 * p-valprint.c (pascal_object_print_value_fields): Style member
10566 names. Only call fprintf_symbol_filtered for static members.
10567 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10568 * f-valprint.c (f_val_print): Style member names.
10569 * f-typeprint.c (f_type_print_base): Style member names.
10570 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10571 call fprintf_symbol_filtered for static members.
10572 (cp_print_class_member): Style member names.
10573 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10574 member names.
10575 * ada-valprint.c (ada_print_scalar): Style enum names.
10576 (ada_val_print_enum): Likewise.
10577 * ada-typeprint.c (print_enum_type): Style enum names.
10578
10579 2020-02-21 Tom Tromey <tom@tromey.com>
10580
10581 * psympriv.h (struct partial_symtab): Update comment.
10582
10583 2020-02-21 Tom Tromey <tromey@adacore.com>
10584
10585 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10586 type is CORE_ADDR.
10587
10588 2020-02-21 Tom de Vries <tdevries@suse.de>
10589
10590 PR gdb/25534
10591 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10592 if dependencies[i]->user != NULL.
10593
10594 2020-02-21 Ali Tamur <tamur@google.com>
10595
10596 * dwarf2/read.c (dwarf2_name): Add null check.
10597
10598 2020-02-20 Tom Tromey <tom@tromey.com>
10599
10600 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10601 ">=", in binary search.
10602 (dwarf2_find_containing_comp_unit): New overload.
10603 (run_test): New self-test.
10604 (_initialize_dwarf2_read): Register new test.
10605
10606 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10607
10608 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10609 * riscv-tdep.h: Likewise.
10610 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10611 rv32-only CSR.
10612 * features/riscv/64bit-csr.xml: Regenerated.
10613
10614 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10615 Tom Tromey <tom@tromey.com>
10616
10617 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10618 of 'fputc_unfiltered'.
10619 (putchar_unfiltered): Call 'fputc_unfiltered'.
10620 (fputc_unfiltered): Call 'fputs_unfiltered'.
10621
10622 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10623
10624 * config.in: Regenerate.
10625 * configure: Regenerate.
10626 * configure.ac: Add --with-python-libdir option.
10627 * main.c: Use WITH_PYTHON_LIBDIR.
10628
10629 2020-02-19 Tom Tromey <tom@tromey.com>
10630
10631 * symtab.c (general_symbol_info::compute_and_set_names): Use
10632 obstack_strndup. Simplify call to symbol_set_demangled_name.
10633
10634 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10635
10636 * dwarf2/read.c (allocate_signatured_type_table,
10637 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10638 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10639 Remove objfile parameter, update all callers.
10640
10641 2020-02-19 Doug Evans <dje@google.com>
10642
10643 PR rust/25535
10644 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10645 rust_enum_variant calculation.
10646
10647 2020-02-19 Tom Tromey <tromey@adacore.com>
10648
10649 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10650
10651 2020-02-19 Tom Tromey <tromey@adacore.com>
10652
10653 * ada-lang.c (cache_symbol): Use obstack_strdup.
10654
10655 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10656
10657 * configure: Regenerate.
10658
10659 2020-02-19 Tom Tromey <tromey@adacore.com>
10660
10661 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10662 NULL check.
10663
10664 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10665
10666 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10667
10668 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10669
10670 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10671 if GDBSERVER is not defined.
10672 (riscv_tdesc_cache): Likewise, also store const target_desc.
10673 (STATIC_IN_GDB): Define.
10674 (riscv_create_target_description): Update declaration with
10675 STATIC_IN_GDB.
10676 (riscv_lookup_target_description): New function, only define if
10677 GDBSERVER is not defined.
10678 * arch/riscv.h (riscv_create_target_description): Declare only
10679 when GDBSERVER is defined.
10680 (riscv_lookup_target_description): New declaration when GDBSERVER
10681 is not defined.
10682 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10683 (riscv_linux_read_features): ...this, and return
10684 riscv_gdbarch_features instead of target_desc.
10685 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10686 (riscv_linux_read_description): Rename to...
10687 (riscv_linux_read_features): ...this.
10688 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10689 Update to use riscv_gdbarch_features and
10690 riscv_lookup_target_description.
10691 * riscv-tdep.c (riscv_find_default_target_description): Use
10692 riscv_lookup_target_description instead of
10693 riscv_create_target_description.
10694
10695 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10696
10697 * valprint.c (generic_val_print_enum_1): When printing a flag
10698 enum with value 0 and there is no enumerator with value 0, print
10699 just "0" instead of "(unknown: 0x0)".
10700
10701 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10702
10703 * valprint.c (generic_val_print_enum_1): Print unknown part of
10704 flag enum in hex.
10705
10706 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10707
10708 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10709 flag enums to contain duplicate enumerators.
10710 * valprint.c (generic_val_print_enum_1): Update comment.
10711
10712 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10713
10714 * dwarf2/read.c: Include "count-one-bits.h".
10715 (update_enumeration_type_from_children): If an enumerator has
10716 multiple bits set, don't treat the enumeration as a "flag enum".
10717 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10718 of flag enums have 0 or 1 bit set.
10719
10720 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10721
10722 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10723 conversion.
10724 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10725 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10726 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10727 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10728 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10729
10730 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10731
10732 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10733
10734 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10735
10736 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10737 displaced_step_closure_up.
10738 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10739 (struct displaced_step_closure_up):
10740 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10741 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10742 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10743 Likewise.
10744 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10745 * gdbarch.c, gdbarch.h: Re-generate.
10746 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10747 displaced_step_closure_up.
10748 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10749 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10750 * infrun.h (displaced_step_closure_up): New type alias.
10751 (struct displaced_step_inferior_state) <step_closure>: Change
10752 type to displaced_step_closure_up.
10753 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10754 displaced_step_closure_up.
10755 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10756
10757 2020-02-14 Tom Tromey <tom@tromey.com>
10758
10759 * minidebug.c (gnu_debug_key): New global.
10760 (find_separate_debug_file_in_section): Use it.
10761
10762 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10763
10764 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10765 std::unique_ptr.
10766 * gdbarch.c: Re-generate.
10767 * gdbarch.h: Re-generate.
10768 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10769 change.
10770 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10771 type to std::unique_ptr.
10772 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10773 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10774 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10775 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10776 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10777 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10778 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10779 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10780 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10781
10782 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10783
10784 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10785 std::unique_ptr.
10786 (displaced_step_clear): Rename to...
10787 (displaced_step_reset): ... this. Just call displaced->reset ().
10788 (displaced_step_clear_cleanup): Rename to...
10789 (displaced_step_reset_cleanup): ... this.
10790 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10791 (displaced_step_fixup): Likewise.
10792 (resume_1): Likewise.
10793 (handle_inferior_event): Restore child's memory before calling
10794 displaced_step_fixup on the parent.
10795 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10796 to std::unique_ptr.
10797 <step_closure>: Change type to std::unique_ptr.
10798
10799 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10800
10801 * arm-tdep.c: Include count-one-bits.h.
10802 (cleanup_block_store_pc): Use count_one_bits.
10803 (cleanup_block_load_pc): Use count_one_bits.
10804 (arm_copy_block_xfer): Use count_one_bits.
10805 (thumb2_copy_block_xfer): Use count_one_bits.
10806 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10807 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10808 (thumb_get_next_pcs_raw): Use count_one_bits.
10809 (arm_get_next_pcs_raw): Use count_one_bits_l.
10810 * arch/arm.c (bitcount): Remove.
10811 * arch/arm.h (bitcount): Remove.
10812
10813 2020-02-14 Tom Tromey <tromey@adacore.com>
10814
10815 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10816 Update.
10817 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10818 * dwarf2/loc.c (call_site_find_chain_1): Return
10819 unique_xmalloc_ptr.
10820 (call_site_find_chain): Likewise.
10821
10822 2020-02-14 Richard Biener <rguenther@suse.de>
10823
10824 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10825 on expression with division operators.
10826
10827 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10828
10829 * MAINTAINERS (Write After Approval): Adding myself.
10830
10831 2020-02-12 Tom Tromey <tom@tromey.com>
10832
10833 * event-loop.c (event_data, gdb_event, event_handler_func):
10834 Remove.
10835
10836 2020-02-12 Tom Tromey <tom@tromey.com>
10837
10838 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10839 (dwarf2_frame_objfile_data): Add comment.
10840 (find_comp_unit, set_comp_unit): New functions.
10841 (dwarf2_frame_find_fde): Use find_comp_unit.
10842 (dwarf2_build_frame_info): Use set_comp_unit.
10843
10844 2020-02-12 Tom Tromey <tom@tromey.com>
10845
10846 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10847 (comp_unit): Don't initialize objfile.
10848 (execute_cfa_program): Add text_offset parameter.
10849 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10850 (dwarf2_frame_cache): Update.
10851 (dwarf2_build_frame_info): Don't set "objfile" member.
10852
10853 2020-02-12 Tom Tromey <tom@tromey.com>
10854
10855 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10856 (decode_frame_entry): Likewise.
10857 (dwarf2_build_frame_info): Update.
10858
10859 2020-02-12 Tom Tromey <tom@tromey.com>
10860
10861 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10862 (decode_frame_entry_1): Use the comp_unit obstack.
10863
10864 2020-02-12 Tom Tromey <tom@tromey.com>
10865
10866 * dwarf2/frame.c (struct comp_unit): Add initializers and
10867 constructor.
10868 (dwarf2_frame_objfile_data): Store a comp_unit.
10869 (dwarf2_frame_find_fde): Update.
10870 (dwarf2_build_frame_info): Use "new".
10871
10872 2020-02-12 Tom Tromey <tom@tromey.com>
10873
10874 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10875 (dwarf2_fde_table): Typedef for std::vector.
10876 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10877 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10878 (decode_frame_entry): Update.
10879 (dwarf2_build_frame_info): Use "new".
10880
10881 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10882
10883 * arm-tdep.c (arm_gdbarch_init): Update.
10884 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10885 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10886 have_neon, is_m>: Change to bool.
10887
10888 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10889
10890 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10891
10892 2020-02-12 Tom Tromey <tom@tromey.com>
10893
10894 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10895
10896 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10897
10898 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10899 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10900
10901 2020-02-11 Tom Tromey <tom@tromey.com>
10902
10903 * psymtab.h: Update comment.
10904
10905 2020-02-11 Tom Tromey <tom@tromey.com>
10906
10907 * gdb_obstack.h (struct auto_obstack): Use
10908 DISABLE_COPY_AND_ASSIGN.
10909
10910 2020-02-11 Tom Tromey <tom@tromey.com>
10911
10912 * dwarf2/frame.h (struct objfile): Don't forward declare.
10913
10914 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10915
10916 * cris-tdep.c (cris_supply_gregset): Change signature to match
10917 what struct regset expects.
10918 (cris_regset): New struct.
10919 (fetch_core_registers): Remove.
10920 (cris_iterate_over_regset_sections): New function.
10921 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10922 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10923
10924 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10925
10926 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10927 registers.
10928
10929 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10930
10931 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10932
10933 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10934
10935 * configure: Re-generate.
10936
10937 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10938
10939 * configure: Re-generate.
10940
10941 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10942
10943 * acinclude: Update warning.m4 path.
10944 * warning.m4: Move to gdbsupport.
10945
10946 2020-02-11 Tom Tromey <tromey@adacore.com>
10947
10948 * remote.c (remote_console_output): Update.
10949 * printcmd.c (printf_command): Update.
10950 * event-loop.c (gdb_wait_for_event): Update.
10951 * linux-nat.c (sigchld_handler): Update.
10952 * remote-sim.c (gdb_os_write_stdout): Update.
10953 (gdb_os_flush_stdout): Update.
10954 (gdb_os_flush_stderr): Update.
10955 (gdb_os_write_stderr): Update.
10956 * exceptions.c (print_exception): Update.
10957 * remote-fileio.c (remote_fileio_func_read): Update.
10958 (remote_fileio_func_write): Update.
10959 * tui/tui.c (tui_enable): Update.
10960 * tui/tui-interp.c (tui_interp::init): Update.
10961 * utils.c (init_page_info): Update.
10962 (putchar_unfiltered, fputc_unfiltered): Update.
10963 (gdb_flush): Update.
10964 (emit_style_escape): Update.
10965 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10966 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10967 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10968 (stderr_file::write): Update.
10969 (stderr_file::puts): Update.
10970 * ui-file.h (ui_file_isatty, ui_file_write)
10971 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10972 (ui_file_puts): Don't declare.
10973
10974 2020-02-10 Tom de Vries <tdevries@suse.de>
10975
10976 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10977 sentinel to char *.
10978
10979 2020-02-09 Tom de Vries <tdevries@suse.de>
10980
10981 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10982 filename if it matches "<artificial>".
10983
10984 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10985
10986 * windows-tdep.c (struct enum_value_name): New struct.
10987 (create_enum): New function.
10988 (windows_get_siginfo_type): Create and use enum types.
10989
10990 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10991
10992 * NEWS: Mention $_siginfo support for Windows.
10993 * windows-nat.c (handle_exception): Set siginfo_er.
10994 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10995 (windows_xfer_siginfo): New function.
10996 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10997 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10998 (init_windows_gdbarch_data): New function.
10999 (get_windows_gdbarch_data): New function.
11000 (windows_get_siginfo_type): New function.
11001 (windows_init_abi): Register windows_get_siginfo_type.
11002 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11003
11004 2020-02-08 Tom Tromey <tom@tromey.com>
11005
11006 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11007 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11008 <keep>: Declare method.
11009 <m_keep>: Remove member.
11010 <~cutu_reader>: Remove.
11011 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11012 (cutu_reader::cutu_reader): Update.
11013 (cutu_reader::keep): Rename from ~cutu_reader.
11014 (process_psymtab_comp_unit, build_type_psymtabs_1)
11015 (process_skeletonless_type_unit, load_partial_comp_unit)
11016 (load_full_comp_unit, dwarf2_read_addr_index)
11017 (read_signatured_type): Update.
11018
11019 2020-02-08 Tom Tromey <tom@tromey.com>
11020
11021 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11022 "want_partial_unit" parameter.
11023 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11024 Inline check for DW_TAG_partial_unit.
11025 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11026
11027 2020-02-08 Tom Tromey <tom@tromey.com>
11028
11029 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11030 read.c.
11031 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11032 read.c.
11033
11034 2020-02-08 Tom Tromey <tom@tromey.com>
11035
11036 * dwarf2/read.c (read_address): Move to comp-unit.c.
11037 (dwarf2_rnglists_process, dwarf2_ranges_process)
11038 (read_attribute_value, dwarf_decode_lines_1)
11039 (var_decode_location, decode_locdesc): Update.
11040 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11041 read.c. Remove "cu" parameter.
11042 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11043 method.
11044
11045 2020-02-08 Tom Tromey <tom@tromey.com>
11046
11047 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11048 (read_indirect_line_string): Update.
11049 * dwarf2/comp-unit.c (read_offset): Remove.
11050 (read_comp_unit_head): Update.
11051 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11052 method.
11053 (read_offset): Don't declare.
11054
11055 2020-02-08 Tom Tromey <tom@tromey.com>
11056
11057 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11058 * dwarf2/read.c (struct comp_unit_head): Move to
11059 dwarf2/comp-unit.h.
11060 (enum class rcuh_kind): Move to comp-unit.h.
11061 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11062 (read_comp_unit_head, error_check_comp_unit_head)
11063 (read_and_check_comp_unit_head): Move to comp-unit.c.
11064 (read_offset, dwarf_unit_type_name): Likewise.
11065 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11066 (cutu_reader::cutu_reader, read_call_site_scope)
11067 (find_partial_die, follow_die_offset): Update.
11068 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11069
11070 2020-02-08 Tom Tromey <tom@tromey.com>
11071
11072 * dwarf2/read.c (read_offset_1): Move to leb.c.
11073 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11074 (dwarf_decode_macro_bytes): Update.
11075 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11076 * dwarf2/leb.h (read_offset): Declare.
11077
11078 2020-02-08 Tom Tromey <tom@tromey.com>
11079
11080 * dwarf2/read.c (dwarf2_section_size): Remove.
11081 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11082 Update.
11083 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11084
11085 2020-02-08 Tom Tromey <tom@tromey.com>
11086
11087 * dwarf2/read.c (read_initial_length): Move to leb.c.
11088 * dwarf2/leb.h (read_initial_length): Declare.
11089 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11090 handle_nonstd parameter.
11091 * dwarf2/frame.c (read_initial_length): Remove.
11092 (decode_frame_entry_1): Update.
11093
11094 2020-02-08 Tom Tromey <tom@tromey.com>
11095
11096 * dwarf2/loc.c (dwarf2_find_location_expression)
11097 (dwarf_evaluate_loc_desc::get_tls_address)
11098 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11099 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11100 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11101 (dwarf2_compile_property_to_c)
11102 (dwarf2_loc_desc_get_symbol_read_needs)
11103 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11104 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11105 (loclist_describe_location, loclist_tracepoint_var_ref)
11106 (loclist_generate_c_location): Update.
11107 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11108 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11109 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11110 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11111 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11112 (dwarf2_per_cu_data::addr_size)
11113 (dwarf2_per_cu_data::ref_addr_size)
11114 (dwarf2_per_cu_data::text_offset)
11115 (dwarf2_per_cu_data::addr_type): Now methods.
11116 (per_cu_header_read_in): Make per_cu "const".
11117 (dwarf2_version): Remove.
11118 (dwarf2_per_cu_data::int_type): Now a method.
11119 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11120 (set_die_type, read_array_type, read_subrange_index_type)
11121 (read_tag_string_type, read_subrange_type): Update.
11122 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11123 offset_size, ref_addr_size, text_offset, addr_type, version,
11124 objfile, int_type, addr_sized_int_type>: Declare methods.
11125
11126 2020-02-08 Tom Tromey <tom@tromey.com>
11127
11128 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11129 Move earlier.
11130
11131 2020-02-08 Tom Tromey <tom@tromey.com>
11132
11133 * dwarf2/read.h (dwarf_line_debug): Declare.
11134 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11135 * dwarf2/read.c: Move line_header code to new files.
11136 (dwarf_line_debug): No longer static.
11137 * dwarf2/line-header.c: New file.
11138 * dwarf2/line-header.h: New file.
11139
11140 2020-02-08 Tom Tromey <tom@tromey.com>
11141
11142 * dwarf2/read.c (struct line_header) <file_full_name,
11143 file_file_name>: Return unique_xmalloc_ptr.
11144 (line_header::file_file_name): Update.
11145 (line_header::file_full_name): Update.
11146 (dw2_get_file_names_reader): Update.
11147 (macro_start_file): Update.
11148
11149 2020-02-08 Tom Tromey <tom@tromey.com>
11150
11151 * dwarf2/read.c (struct line_header) <file_full_name,
11152 file_file_name>: Declare methods.
11153 (dw2_get_file_names_reader): Update.
11154 (file_file_name): Now a method.
11155 (file_full_name): Likewise.
11156 (macro_start_file): Update.
11157
11158 2020-02-08 Tom Tromey <tom@tromey.com>
11159
11160 * dwarf2/read.c (dwarf_always_disassemble)
11161 (show_dwarf_always_disassemble): Move to loc.c.
11162 (_initialize_dwarf2_read): Move "always-disassemble" registration
11163 to loc.c.
11164 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11165 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11166 static.
11167 (show_dwarf_always_disassemble): Move from read.c.
11168 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11169
11170 2020-02-08 Tom Tromey <tom@tromey.com>
11171
11172 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11173 (create_quick_file_names_table): Return htab_up.
11174 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11175 Update.
11176 * dwarf2/read.h (struct dwarf2_per_objfile)
11177 <quick_file_names_table>: Now htab_up.
11178
11179 2020-02-08 Tom Tromey <tom@tromey.com>
11180
11181 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11182
11183 2020-02-08 Tom Tromey <tom@tromey.com>
11184
11185 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11186 Rewrite.
11187 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11188 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11189 (abbrev_table::abbrev_table): No longer inline.
11190 (ABBREV_HASH_SIZE): Remove.
11191 (abbrev_table::m_abbrevs): Now an htab_up.
11192
11193 2020-02-08 Tom Tromey <tom@tromey.com>
11194
11195 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11196 (cutu_reader): Update.
11197 (build_type_psymtabs_1): Update.
11198 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11199 (abbrev_table::alloc_abbrev): Update.
11200 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11201 (abbrev_table::read): New static method, renamed from
11202 abbrev_table_read_table.
11203 (abbrev_table::alloc_abbrev)
11204 (abbrev_table::add_abbrev): Now private.
11205 (abbrev_table::abbrev_table): Now private.
11206 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11207
11208 2020-02-08 Tom Tromey <tom@tromey.com>
11209
11210 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11211 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11212 htab_up.
11213
11214 2020-02-08 Tom Tromey <tom@tromey.com>
11215
11216 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11217 htab_up.
11218 (lookup_dwo_unit_in_dwp): Update.
11219 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11220 on obstack.
11221
11222 2020-02-08 Tom Tromey <tom@tromey.com>
11223
11224 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11225 obstack.
11226
11227 2020-02-08 Tom Tromey <tom@tromey.com>
11228
11229 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11230 line_header_hash.
11231 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11232 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11233 Change type to htab_up.
11234
11235 2020-02-08 Tom Tromey <tom@tromey.com>
11236
11237 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11238 htab_up. Don't allocate on obstack.
11239 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11240 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11241 Change type to htab_up.
11242
11243 2020-02-08 Tom Tromey <tom@tromey.com>
11244
11245 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11246 Change type to htab_up.
11247 * dwarf2/read.c (create_signatured_type_table_from_index)
11248 (create_signatured_type_table_from_debug_names)
11249 (create_all_type_units, add_type_unit)
11250 (lookup_dwo_signatured_type, lookup_signatured_type)
11251 (process_skeletonless_type_unit): Update.
11252 (create_debug_type_hash_table, create_debug_types_hash_table):
11253 Change type of types_htab.
11254 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11255 htab_up. Don't allocate on obstack.
11256 (create_cus_hash_table): Change type of cus_htab parameter.
11257 (struct dwo_file) <cus, tus>: Now htab_up.
11258 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11259 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11260 (queue_and_load_all_dwo_tus): Update.
11261 * dwarf2/index-write.c (write_gdbindex): Update.
11262 (write_debug_names): Update.
11263
11264 2020-02-08 Tom Tromey <tom@tromey.com>
11265
11266 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11267 dwarf2/read.c. Remove "next" member. Add constructor ntad
11268 destructor.
11269 (struct dwarf2_per_objfile) <queue>: New member.
11270 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11271 dwarf2/read.h.
11272 (dwarf2_queue, dwarf2_queue_tail): Remove.
11273 (class dwarf2_queue_guard): Add parameter to constructor. Use
11274 DISABLE_COPY_AND_ASSIGN.
11275 <m_per_objfile>: New member.
11276 <~dwarf2_queue_guard>: Rewrite.
11277 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11278 Update.
11279 (~dwarf2_queue_item): New.
11280
11281 2020-02-08 Tom Tromey <tom@tromey.com>
11282
11283 * dwarf2/read.c (struct die_info) <has_children>: New member.
11284 (dw2_get_file_names_reader): Remove has_children.
11285 (dw2_get_file_names): Update.
11286 (read_cutu_die_from_dwo): Remove has_children.
11287 (cutu_reader::init_tu_and_read_dwo_dies)
11288 (cutu_reader::cutu_reader): Update.
11289 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11290 Remove has_children.
11291 (build_type_psymtabs_1, process_skeletonless_type_unit)
11292 (load_partial_comp_unit, load_full_comp_unit): Update.
11293 (create_dwo_cu_reader): Remove has_children.
11294 (create_cus_hash_table, read_die_and_children): Update.
11295 (read_full_die_1,read_full_die): Remove has_children.
11296 (read_signatured_type): Update.
11297 (class cutu_reader) <has_children>: Remove.
11298
11299 2020-02-08 Tom Tromey <tom@tromey.com>
11300
11301 * dwarf2/expr.c: Rename from dwarf2expr.c.
11302 * dwarf2/expr.h: Rename from dwarf2expr.h.
11303 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11304 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11305 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11306 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11307 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11308 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11309 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11310 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11311 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11312 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11313 * dwarf2/loc.c: Rename from dwarf2loc.c.
11314 * dwarf2/loc.h: Rename from dwarf2loc.h.
11315 * dwarf2/read.c: Rename from dwarf2read.c.
11316 * dwarf2/read.h: Rename from dwarf2read.h.
11317 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11318 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11319 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11320 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11321 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11322 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11323 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11324 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11325 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11326 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11327 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11328 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11329 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11330 Update.
11331 * Makefile.in (COMMON_SFILES): Update.
11332 (HFILES_NO_SRCDIR): Update.
11333
11334 2020-02-08 Tom Tromey <tom@tromey.com>
11335
11336 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11337 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11338
11339 2020-02-08 Tom Tromey <tom@tromey.com>
11340
11341 * dwarf2read.h (struct die_info): Don't declare.
11342
11343 2020-02-08 Tom Tromey <tom@tromey.com>
11344
11345 * dwarf2read.h (die_info_ptr): Remove typedef.
11346
11347 2020-02-08 Tom Tromey <tom@tromey.com>
11348
11349 * dwarf2read.c (read_call_site_scope)
11350 (handle_data_member_location, dwarf2_add_member_fn)
11351 (mark_common_block_symbol_computed, read_common_block)
11352 (attr_to_dynamic_prop, partial_die_info::read)
11353 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11354 (dwarf2_symbol_mark_computed, set_die_type): Update.
11355 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11356 method.
11357 (attr_form_is_block): Don't declare.
11358 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11359
11360 2020-02-08 Tom Tromey <tom@tromey.com>
11361
11362 * dwarf2read.c (dwarf2_find_base_address, )
11363 (read_call_site_scope, rust_containing_type)
11364 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11365 (handle_data_member_location, dwarf2_add_member_fn)
11366 (get_alignment, read_structure_type, process_structure_scope)
11367 (mark_common_block_symbol_computed, read_common_block)
11368 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11369 (partial_die_info::read, read_attribute_value, new_symbol)
11370 (lookup_die_type, dwarf2_get_ref_die_offset)
11371 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11372 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11373 (dwarf2_symbol_mark_computed): Update.
11374 * dwarf2/attribute.h (struct attribute) <value_as_address,
11375 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11376 methods.
11377 (value_as_address, attr_form_is_section_offset)
11378 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11379 * dwarf2/attribute.c (attribute::value_as_address)
11380 (attribute::form_is_section_offset, attribute::form_is_constant)
11381 (attribute::form_is_ref): Now methods.
11382
11383 2020-02-08 Tom Tromey <tom@tromey.com>
11384
11385 * dwarf2read.c (struct attribute, DW_STRING)
11386 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11387 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11388 (attr_form_is_block, attr_form_is_section_offset)
11389 (attr_form_is_constant, attr_form_is_ref): Move.
11390 * dwarf2/attribute.h: New file.
11391 * dwarf2/attribute.c: New file, from dwarf2read.c.
11392 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11393
11394 2020-02-08 Tom Tromey <tom@tromey.com>
11395
11396 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11397 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11398 Move.
11399 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11400 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11401 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11402 abbrev.c.
11403 * dwarf2/abbrev.h: New file.
11404 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11405 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11406
11407 2020-02-08 Tom Tromey <tom@tromey.com>
11408
11409 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11410 (dwarf2_section_size, dwarf2_get_section_info)
11411 (create_signatured_type_table_from_debug_names)
11412 (create_addrmap_from_aranges, read_debug_names_from_section)
11413 (get_gdb_index_contents_from_section, read_comp_unit_head)
11414 (error_check_comp_unit_head, read_abbrev_offset)
11415 (create_debug_type_hash_table, init_cu_die_reader)
11416 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11417 (read_comp_units_from_section, create_cus_hash_table)
11418 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11419 (create_dwp_v2_section, dwarf2_rnglists_process)
11420 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11421 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11422 (read_indirect_string_from_dwz, read_addr_index_1)
11423 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11424 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11425 (fill_in_loclist_baton): Update.
11426 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11427 get_containing_section, get_bfd_owner, get_bfd_section,
11428 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11429 (dwarf2_read_section, get_section_name, get_section_file_name)
11430 (get_containing_section, get_section_bfd_owner)
11431 (get_section_bfd_section, get_section_name, get_section_file_name)
11432 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11433 declare.
11434 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11435 (dwarf2_section_info::get_bfd_owner)
11436 (dwarf2_section_info::get_bfd_section)
11437 (dwarf2_section_info::get_name)
11438 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11439 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11440 (dwarf2_section_info::read): Now methods.
11441 * dwarf-index-write.c (class debug_names): Update.
11442
11443 2020-02-08 Tom Tromey <tom@tromey.com>
11444
11445 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11446 Move to dwarf2/section.h.
11447 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11448 (get_section_bfd_section, get_section_name)
11449 (get_section_file_name, get_section_id, get_section_flags)
11450 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11451 dwarf2/section.c.
11452 * dwarf2/section.h: New file.
11453 * dwarf2/section.c: New file, from dwarf2read.c.
11454 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11455
11456 2020-02-08 Tom Tromey <tom@tromey.com>
11457
11458 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11459 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11460 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11461 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11462 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11463 * dwarf2/leb.h: New file, from dwarf2read.c.
11464 * dwarf2/leb.c: New file, from dwarf2read.c.
11465 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11466 Remove.
11467 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11468 (COMMON_SFILES): Add dwarf2/leb.c.
11469
11470 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11471
11472 GDB 9.1 released.
11473
11474 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11475
11476 PR gdb/25190:
11477 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11478 * gdb/remote.c (remote_console_output): Update.
11479 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11480 (ui_file_puts): ...this.
11481 * gdb/ui-file.h (ui_file_puts): Add declaration.
11482 * gdb/utils.c (emit_style_escape): Update.
11483 (flush_wrap_buffer): Update.
11484 (fputs_maybe_filtered): Update.
11485 (fputs_unfiltered): Add function.
11486
11487 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11488
11489 * gdb/event-loop.c (gdb_wait_for_event): Update.
11490 * gdb/printcmd.c (printf_command): Update.
11491 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11492 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11493 (gdb_os_flush_stderr): Update.
11494 * gdb/remote.c (remote_console_output): Update.
11495 * gdb/ui-file.c (gdb_flush): Rename to...
11496 (ui_file_flush): ...this.
11497 (stderr_file::write): Update.
11498 (stderr_file::puts): Update.
11499 * gdb/ui-file.h (gdb_flush): Rename to...
11500 (ui_file_flush): ...this.
11501 * gdb/utils.c (gdb_flush): Add function.
11502 * gdb/utils.h (gdb_flush): Add declaration.
11503
11504 2020-02-07 Tom Tromey <tromey@adacore.com>
11505
11506 PR breakpoints/24915:
11507 * source.c (find_and_open_source): Do not check basenames_may_differ.
11508
11509 2020-02-07 Tom Tromey <tom@tromey.com>
11510
11511 * README: Update gdbserver documentation.
11512 * gdbserver: Move to top level.
11513 * configure.tgt (build_gdbserver): Remove.
11514 * configure.ac: Remove --enable-gdbserver.
11515 * configure: Rebuild.
11516 * Makefile.in (distclean): Don't mention gdbserver.
11517
11518 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11519
11520 * source-cache.c (source_cache::ensure): Surround
11521 get_plain_source_lines with a try/catch.
11522 (source_cache::get_line_charpos): Get rid of try/catch
11523 and only check for the return value of "ensure".
11524 * tui/tui-source.c (tui_source_window::set_contents):
11525 Simplify "nlines" calculation.
11526
11527 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11528
11529 * MAINTAINERS (Write After Approval): Add myself.
11530
11531 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11532
11533 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11534 function call.
11535
11536 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11537
11538 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11539
11540 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11541
11542 * nat/riscv-linux-tdesc.h: New file.
11543 * nat/riscv-linux-tdesc.c: New file, taking code from...
11544 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11545 ... here.
11546 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11547 NATDEPFILES.
11548
11549 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11550
11551 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11552 we don't set the fake simulator ptid to the null_ptid.
11553
11554 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11555
11556 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11557 * gdbthread.h (class thread_info) <resumed>: Likewise.
11558 * infrun.c (resume_1): Likewise.
11559 (proceed): Likewise.
11560 (infrun_thread_stop_requested): Likewise.
11561 (stop_all_threads): Likewise.
11562 (handle_inferior_event): Likewise.
11563 (restart_threads): Likewise.
11564 (finish_step_over): Likewise.
11565 (keep_going_stepped_thread): Likewise.
11566 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11567 (linux_handle_extended_wait): Likewise.
11568 * record-btrace.c (get_thread_current_frame_id): Likewise.
11569 * record-full.c (record_full_wait_1): Likewise.
11570 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11571 * target.c (target_resume): Likewise.
11572 * thread.c (set_running_thread): Likewise.
11573
11574 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11575
11576 * f-valprint.c (f77_print_array_1): Changed datatype of index
11577 variable to LONGEST from int to enable it to contain bound
11578 values correctly.
11579
11580 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11581
11582 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11583 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11584 offsets according to FLEN determined.
11585 (riscv_linux_nat_target::read_description): Determine FLEN
11586 dynamically.
11587 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11588 according to FLEN determined.
11589 (riscv_linux_nat_target::store_registers): Likewise.
11590
11591 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11592
11593 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11594 when reg->group is empty and reggroup is not.
11595
11596 2020-01-31 Tom Tromey <tromey@adacore.com>
11597
11598 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11599 Call beneath target's mourn_inferior after unpushing.
11600
11601 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11602
11603 PR tui/9765
11604 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11605 have enough lines to fill the screen, still return the lowest
11606 address we found.
11607
11608 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11609
11610 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11611 '-', '<', and '>' commands.
11612
11613 2020-01-29 Pedro Alves <palves@redhat.com>
11614 Sergio Durigan Junior <sergiodj@redhat.com>
11615
11616 * infcmd.c (construct_inferior_arguments): Assert that
11617 'argc' is greater than 0.
11618
11619 2020-01-29 Luis Machado <luis.machado@linaro.org>
11620
11621 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11622 (BRK_INSN_MASK): Define to 0xd4200000.
11623 (aarch64_program_breakpoint_here_p): New function.
11624 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11625 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11626 breakpoint.c.
11627 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11628 breakpoint.h
11629 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11630 call gdbarch_program_breakpoint_here_p.
11631 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11632 default_program_breakpoint_here_p, changed return type to bool and
11633 simplified.
11634 * breakpoint.h (program_breakpoint_here): Moved prototype to
11635 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11636 return type to bool.
11637 * gdbarch.c: Regenerate.
11638 * gdbarch.h: Regenerate.
11639 * gdbarch.sh (program_breakpoint_here_p): New method.
11640 * infrun.c (handle_signal_stop): Call
11641 gdbarch_program_breakpoint_here_p.
11642
11643 2020-01-26 Tom Tromey <tom@tromey.com>
11644
11645 * ctfread.c (struct ctf_fp_info): Reindent.
11646 (_initialize_ctfread): Remove.
11647
11648 2020-01-26 Tom Tromey <tom@tromey.com>
11649
11650 * psymtab.c (partial_map_expand_apply)
11651 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11652 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11653 (psym_print_stats, psym_expand_symtabs_for_function)
11654 (psym_map_symbol_filenames, psym_map_matching_symbols)
11655 (psym_expand_symtabs_matching)
11656 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11657 (maintenance_check_psymtabs): Use new methods.
11658 * psympriv.h (struct partial_symtab) <readin_p,
11659 get_compunit_symtab>: New methods.
11660 <readin, compunit_symtab>: Remove members.
11661 (struct standard_psymtab): New.
11662 (struct legacy_psymtab): Derive from standard_psymtab.
11663 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11664 standard_psymtab.
11665 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11666
11667 2020-01-26 Tom Tromey <tom@tromey.com>
11668
11669 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11670 read_dependencies. Add assert.
11671 * psymtab.c (partial_symtab::read_dependencies): New method.
11672 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11673 method.
11674 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11675 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11676 read_dependencies.
11677 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11678 Add assert.
11679
11680 2020-01-26 Tom Tromey <tom@tromey.com>
11681
11682 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11683 Call expand_psymtab.
11684 (xcoff_read_symtab): Call expand_psymtab.
11685 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11686 legacy_expand_psymtab.
11687 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11688 method.
11689 (struct legacy_psymtab) <expand_psymtab>: Implement.
11690 <legacy_expand_psymtab>: New member.
11691 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11692 (parse_partial_symbols): Set legacy_expand_psymtab.
11693 (psymtab_to_symtab_1): Change argument order. Call
11694 expand_psymtab.
11695 (new_psymtab): Set legacy_expand_psymtab.
11696 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11697 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11698 expand_psymtab.
11699 (dwarf2_psymtab::expand_psymtab): Rename from
11700 psymtab_to_symtab_1. Call expand_psymtab.
11701 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11702 (dbx_end_psymtab): Likewise.
11703 (dbx_psymtab_to_symtab_1): Change argument order. Call
11704 expand_psymtab.
11705 (dbx_read_symtab): Call expand_psymtab.
11706 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11707 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11708 (ctf_psymtab::read_symtab): Call expand_psymtab.
11709
11710 2020-01-26 Tom Tromey <tom@tromey.com>
11711
11712 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11713 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11714 messages.
11715 * mdebugread.c (mdebug_read_symtab): Remove prints.
11716 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11717 assert.
11718 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11719
11720 2020-01-26 Tom Tromey <tom@tromey.com>
11721
11722 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11723 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11724 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11725 legacy_symtab.
11726 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11727 * psymtab.c (psymtab_to_symtab): Call method.
11728 (dump_psymtab): Update.
11729 * psympriv.h (struct partial_symtab): Add virtual destructor.
11730 <read_symtab>: New method.
11731 (struct legacy_symtab): New.
11732 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11733 (struct pst_map) <pst>: Now a legacy_psymtab.
11734 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11735 (new_psymtab): Use legacy_psymtab.
11736 * dwarf2read.h (struct dwarf2_psymtab): New.
11737 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11738 * dwarf2read.c (dwarf2_create_include_psymtab)
11739 (dwarf2_build_include_psymtabs, create_type_unit_group)
11740 (create_partial_symtab, process_psymtab_comp_unit_reader)
11741 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11742 (set_partial_user): Use dwarf2_psymtab.
11743 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11744 (psymtab_to_symtab_1, process_full_comp_unit)
11745 (process_full_type_unit, dwarf2_ranges_read)
11746 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11747 (dwarf_decode_lines): Use dwarf2_psymtab.
11748 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11749 (add_address_entry_worker, write_one_signatured_type)
11750 (recursively_count_psymbols, recursively_write_psymbols)
11751 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11752 (write_debug_names): Likewise.
11753 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11754 <pst>: Now a legacy_psymtab.
11755 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11756 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11757 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11758 * ctfread.c (struct ctf_psymtab): New.
11759 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11760 ctf_psymtab.
11761 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11762 (create_partial_symtab): Return a ctf_psymtab.
11763 (scan_partial_symbols): Update.
11764
11765 2020-01-26 Tom Tromey <tom@tromey.com>
11766
11767 * xcoffread.c (xcoff_start_psymtab): Use new.
11768 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11769 renamed from start_psymtab_common.
11770 * psympriv.h (struct partial_symtab): Add new constructor.
11771 (start_psymtab_common): Don't declare.
11772 * mdebugread.c (parse_partial_symbols): Use new.
11773 * dwarf2read.c (create_partial_symtab): Use new.
11774 * dbxread.c (start_psymtab): Use new.
11775 * ctfread.c (create_partial_symtab): Use new.
11776
11777 2020-01-26 Tom Tromey <tom@tromey.com>
11778
11779 * xcoffread.c (xcoff_end_psymtab): Use new.
11780 * psymtab.c (start_psymtab_common): Use new.
11781 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11782 Update.
11783 * psympriv.h (struct partial_symtab): Add parameters to
11784 constructor. Don't inline.
11785 (allocate_psymtab): Don't declare.
11786 * mdebugread.c (new_psymtab): Use new.
11787 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11788 * dbxread.c (dbx_end_psymtab): Use new.
11789
11790 2020-01-26 Tom Tromey <tom@tromey.com>
11791
11792 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11793 allocate_psymtab. Update documentation.
11794 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11795 allocate_psymtab. Do not use new.
11796 (allocate_psymtab): Use new. Update.
11797
11798 2020-01-26 Tom Tromey <tom@tromey.com>
11799
11800 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11801 * psymtab.c (psym_print_stats): Update.
11802 * psympriv.h (struct partial_symtab) <readin,
11803 psymtabs_addrmap_supported, anonymous>: Now bool.
11804 * mdebugread.c (psymtab_to_symtab_1): Update.
11805 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11806 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11807 (process_full_comp_unit, process_full_type_unit): Update.
11808 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11809 * ctfread.c (psymtab_to_symtab): Update.
11810
11811 2020-01-26 Tom Tromey <tom@tromey.com>
11812
11813 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11814 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11815 * psymtab.c (psymtab_storage): Delete psymtabs.
11816 (psymtab_storage::allocate_psymtab): Use new.
11817 (psymtab_storage::discard_psymtab): Use delete.
11818 * psympriv.h (struct partial_symtab): Add constructor and
11819 initializers.
11820
11821 2020-01-26 Tom Tromey <tom@tromey.com>
11822
11823 * machoread.c: Do not include psympriv.h.
11824
11825 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11826
11827 * NEWS: Mention the new option and the set/show commands.
11828
11829 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11830
11831 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11832 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11833 (validate_exec_file): New variables, enums, functions.
11834 (exec_file_locate_attach, print_section_info): Style the filenames.
11835 (_initialize_exec): Install show_exec_file_mismatch_command and
11836 set_exec_file_mismatch_command.
11837 * gdbcore.h (validate_exec_file): Declare.
11838 * infcmd.c (attach_command): Call validate_exec_file.
11839 * remote.c ( remote_target::remote_add_inferior): Likewise.
11840
11841 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11842
11843 * frame.c (find_frame_sal): Move call to get_next_frame into more
11844 inner scope.
11845 * inline-frame.c (inilne_state) <inline_state>: Update argument
11846 types.
11847 (inilne_state) <skipped_symbol>: Rename to...
11848 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11849 (skip_inline_frames): Build vector of skipped symbols and use this
11850 to reate the inline_state.
11851 (inline_skipped_symbol): Add a comment and some assertions, fetch
11852 skipped symbol from the list.
11853
11854 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11855
11856 * buildsym.c (lte_is_less_than): Delete.
11857 (buildsym_compunit::end_symtab_with_blockvector): Create local
11858 lambda function to sort line table entries, and use
11859 std::stable_sort instead of std::sort.
11860 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11861 markers when looking for a previous line.
11862
11863 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11864
11865 * dwarf2read.c (lnp_state_machine::record_line): Include
11866 end_sequence parameter in debug print out. Record the line if we
11867 are at an end_sequence marker even if it's not the start of a
11868 statement.
11869 * symmisc.c (maintenance_print_one_line_table): Print end of
11870 sequence markers with 'END' not '0'.
11871
11872 2020-01-24 Pedro Alves <palves@redhat.com>
11873
11874 PR gdb/25410
11875 * thread.c (scoped_restore_current_thread::restore): Use
11876 switch_to_inferior_no_thread.
11877 * exec.c: Include "progspace-and-thread.h".
11878 (add_target_sections, remove_target_sections):
11879 scoped_restore_current_pspace_and_thread instead of
11880 scoped_restore_current_thread.
11881 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11882 and aspace to the inferior before calling clone_program_space.
11883 Remove stale comment.
11884
11885 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11886
11887 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11888 (arm_netbsd_nat_target::fetch_registers): ...this.
11889 (arm_nbsd_nat_target::store_registers): Rename to...
11890 (arm_netbsd_nat_target::store_registers): ...this.
11891
11892 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11893
11894 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11895 register_t.
11896
11897 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11898
11899 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11900 Update comment.
11901 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11902 Likewise.
11903 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11904 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11905 the correct replacement (iterate_over_regset_sections).
11906 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11907 Update comment.
11908
11909 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11910
11911 PR gdb/23718
11912 * gdb/python/python.c (execute_gdb_command): Call
11913 async_enable_stdin in catch block.
11914
11915 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11916
11917 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11918 SWITCH_THRU_ALL_UIS.
11919
11920 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11921
11922 PR tui/9765
11923 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11924 comment, add extra parameter, and update to store previous symbol
11925 when appropriate.
11926 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11927 add extra parameter.
11928 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11929 remove unneeded parameter, add try/catch around gdb_print_insn,
11930 rewrite to add items to asm_lines vector.
11931 (tui_find_backward_disassembly_start_address): New function.
11932 (tui_find_disassembly_address): Updated throughout.
11933 (tui_disasm_window::set_contents): Update for changes to
11934 tui_disassemble.
11935 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11936 number of lines to scroll.
11937
11938 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11939
11940 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11941 (SECT_OFF_DATA): Likewise.
11942 (SECT_OFF_RODATA): Likewise.
11943 (SECT_OFF_TEXT): Likewise.
11944 (SECT_OFF_BSS): Likewise.
11945 (struct objfile) <text_section_offset, data_section_offset>: New
11946 methods.
11947 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11948 objfile::text_section_offset.
11949 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11950 * coffread.c (coff_symtab_read): Likewise.
11951 (enter_linenos): Likewise.
11952 (process_coff_symbol): Likewise.
11953 * ctfread.c (get_objfile_text_range): Likewise.
11954 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11955 Use objfile::data_section_offset.
11956 * dwarf2-frame.c (execute_cfa_program): Use
11957 objfile::text_section_offset.
11958 (dwarf2_frame_find_fde): Likewise.
11959 * dwarf2read.c (create_addrmap_from_index): Likewise.
11960 (create_addrmap_from_aranges): Likewise.
11961 (dw2_find_pc_sect_compunit_symtab): Likewise.
11962 (process_psymtab_comp_unit_reader): Likewise.
11963 (add_partial_symbol): Likewise.
11964 (add_partial_subprogram): Likewise.
11965 (process_full_comp_unit): Likewise.
11966 (read_file_scope): Likewise.
11967 (read_func_scope): Likewise.
11968 (read_lexical_block_scope): Likewise.
11969 (read_call_site_scope): Likewise.
11970 (dwarf2_rnglists_process): Likewise.
11971 (dwarf2_ranges_process): Likewise.
11972 (dwarf2_ranges_read): Likewise.
11973 (dwarf_decode_lines_1): Likewise.
11974 (new_symbol): Likewise.
11975 (dwarf2_fetch_die_loc_sect_off): Likewise.
11976 (dwarf2_per_cu_text_offset): Likewise.
11977 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11978 * hppa-tdep.c (read_unwind_info): Likewise.
11979 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11980 * psympriv.h (struct partial_symtab): Likewise.
11981 * psymtab.c (find_pc_sect_psymtab): Likewise.
11982 * solib-svr4.c (enable_break): Likewise.
11983 * stap-probe.c (relocate_address): Use
11984 objfile::data_section_offset.
11985 * xcoffread.c (enter_line_range): Use
11986 objfile::text_section_offset.
11987 (read_xcoff_symtab): Likewise.
11988
11989 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11990
11991 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11992 declaration to narrower scopes.
11993
11994 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11995
11996 * darwin-nat.h (struct darwin_exception_msg, enum
11997 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11998 Move up.
11999 (class darwin_nat_target) <wait_1, check_new_threads,
12000 decode_exception_message, decode_message, stop_inferior,
12001 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12002 * darwin-nat.c (darwin_check_new_threads): Rename to...
12003 (darwin_nat_target::check_new_threads): ... this.
12004 (darwin_suspend_inferior_it): Remove.
12005 (darwin_decode_exception_message): Rename to...
12006 (darwin_nat_target::decode_exception_message): ... this.
12007 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12008 (darwin_decode_message): Rename to...
12009 (darwin_nat_target::decode_message): ... this.
12010 (cancel_breakpoint): Rename to...
12011 (darwin_nat_target::cancel_breakpoint): ... this.
12012 (darwin_wait): Rename to...
12013 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12014 instead of iterate_over_inferiors.
12015 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12016 (darwin_stop_inferior): Rename to...
12017 (darwin_nat_target::stop_inferior): ... this.
12018 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12019 (darwin_init_thread_list): Rename to...
12020 (darwin_nat_target::init_thread_list): ... this.
12021 (darwin_ptrace_him): Rename to...
12022 (darwin_nat_target::ptrace_him): ... this.
12023 (darwin_nat_target::create_inferior): Pass lambda function to
12024 fork_inferior.
12025 (darwin_nat_target::detach): Call stop_inferior instead of
12026 darwin_stop_inferior.
12027 * fork-inferior.h (fork_inferior): Change init_trace_fun
12028 parameter to gdb::function_view.
12029 * fork-inferior.c (fork_inferior): Likewise.
12030
12031 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12032
12033 * i386-cygwin-tdep.c (core_process_module_section): Update.
12034 * windows-nat.c (struct lm_info_windows): Add text_offset.
12035 (windows_xfer_shared_libraries): Update.
12036 * windows-tdep.c (windows_xfer_shared_library):
12037 Add text_offset_cached argument.
12038 * windows-tdep.h (windows_xfer_shared_library): Update.
12039
12040 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12041
12042 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12043
12044 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12045
12046 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12047 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12048 replace with range-based for.
12049 (gdbsim_interrupt_inferior): Remove.
12050 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12051 with a range-based for. Inline code from
12052 gdbsim_interrupt_inferior.
12053
12054 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12055
12056 * infrun.c (proceed): Fix indentation.
12057
12058 2020-01-21 Tom Tromey <tromey@adacore.com>
12059
12060 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12061 * python/python.c (python_extension_ops): Update.
12062 (gdbpy_colorize): New function.
12063 * python/lib/gdb/__init__.py (colorize): New function.
12064 * extension.h (ext_lang_colorize): Declare.
12065 * extension.c (ext_lang_colorize): New function.
12066 * extension-priv.h (struct extension_language_ops) <colorize>: New
12067 member.
12068 * cli/cli-style.c (_initialize_cli_style): Update help text.
12069
12070 2020-01-21 Luis Machado <luis.machado@linaro.org>
12071
12072 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12073 <cond>: Change type to bool.
12074 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12075 (aarch64_displaced_step_cb): Likewise.
12076 (aarch64_displaced_step_tb): Likewise.
12077
12078 2020-01-21 Luis Machado <luis.machado@linaro.org>
12079
12080 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12081 output.
12082
12083 2020-01-21 Luis Machado <luis.machado@linaro.org>
12084
12085 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12086 <pc_adjust>: Adjust the documentation.
12087 (aarch64_displaced_step_fixup): Check if PC really moved before
12088 adjusting it.
12089
12090 2020-01-19 Tom Tromey <tom@tromey.com>
12091
12092 * disasm.c (~gdb_disassembler): New destructor.
12093 (gdb_buffered_insn_length): Call disassemble_free_target.
12094 * disasm.h (class gdb_disassembler): Declare destructor. Use
12095 DISABLE_COPY_AND_ASSIGN.
12096
12097 2020-01-19 Tom Tromey <tom@tromey.com>
12098
12099 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12100 (die_reader_func_ftype): Remove.
12101 (cutu_reader): New class.
12102 (dw2_get_file_names_reader): Remove "data" parameter.
12103 (dw2_get_file_names): Use cutu_reader.
12104 (create_debug_type_hash_table): Update.
12105 (read_cutu_die_from_dwo): Update comment.
12106 (lookup_dwo_unit): Add dwo_name parameter.
12107 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12108 die_reader_func_ftype and data parameters.
12109 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12110 Remove die_reader_func_ftype and data parameters.
12111 (~cutu_reader): New; from init_cutu_and_read_dies.
12112 (cutu_reader::cutu_reader): Rename from
12113 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12114 and data parameters.
12115 (init_cutu_and_read_dies_simple): Remove.
12116 (struct process_psymtab_comp_unit_data): Remove.
12117 (process_psymtab_comp_unit_reader): Remove data parameter; add
12118 want_partial_unit and pretend_language parameters.
12119 (process_psymtab_comp_unit): Use cutu_reader.
12120 (build_type_psymtabs_reader): Remove data parameter.
12121 (build_type_psymtabs_1): Use cutu_reader.
12122 (process_skeletonless_type_unit): Likewise.
12123 (load_partial_comp_unit_reader): Remove.
12124 (load_partial_comp_unit): Use cutu_reader.
12125 (load_full_comp_unit_reader): Remove.
12126 (load_full_comp_unit): Use cutu_reader.
12127 (struct create_dwo_cu_data): Remove.
12128 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12129 dwo_unit parameters.
12130 (create_cus_hash_table): Use cutu_reader.
12131 (struct dwarf2_read_addr_index_data): Remove.
12132 (dwarf2_read_addr_index_reader): Remove.
12133 (dwarf2_read_addr_index): Use cutu_reader.
12134 (read_signatured_type_reader): Remove.
12135 (read_signatured_type): Use cutu_reader.
12136
12137 2020-01-19 Tom Tromey <tom@tromey.com>
12138
12139 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12140 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12141 (tui_wrefresh): Declare.
12142 * tui/tui-wingeneral.c (suppress_output): New global.
12143 (tui_suppress_output, ~tui_suppress_output): New constructor and
12144 destructor.
12145 (tui_wrefresh): New function.
12146 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12147 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12148 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12149 method.
12150 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12151 tui_wrefresh.
12152 (tui_data_window::no_refresh): New method.
12153 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12154 (tui_reg_command): Use tui_suppress_output
12155 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12156 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12157 method.
12158 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12159
12160 2020-01-19 Tom Tromey <tom@tromey.com>
12161
12162 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12163 Handle case where symtab is null.
12164
12165 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12166
12167 * linux-fork.c (one_fork_p): Simplify.
12168
12169 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12170
12171 * top.c (struct qt_args): Remove.
12172 (kill_or_detach): Change return type to void, replace `void *`
12173 parameter with a proper one.
12174 (print_inferior_quit_action): Likewise.
12175 (quit_confirm): Use range-based for loop to iterate over inferiors.
12176 (quit_force): Likewise.
12177
12178 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12179
12180 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12181 `void *` parameter with proper parameters.
12182 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12183 (print_one_inferior): Change return type to void, replace `void *`
12184 parameter with proper parameters.
12185 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12186 inferiors.
12187 (get_other_inferior): Remove.
12188 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12189 inferiors.
12190
12191 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12192
12193 * mi/mi-interp.c (report_initial_inferior): Remove.
12194 (mi_interp::init): Use range-based for to iterate over inferiors.
12195
12196 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12197
12198 * python/py-inferior.c (build_inferior_list): Remove.
12199 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12200
12201 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12202
12203 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12204 (btrace_stitch_trace): Likewise.
12205 * charset.c (intermediate_encoding): Likewise (vaild).
12206 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12207 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12208 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12209
12210 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12211
12212 * windows-tdep.c (windows_get_tlb_type):
12213 Add rtl_user_process_parameters type.
12214
12215 2020-01-16 Pedro Alves <palves@redhat.com>
12216 Norbert Lange <nolange79@gmail.com>
12217
12218 PR build/24805
12219 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12220 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12221 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12222 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12223 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12224 (ps_plog): Redeclare exported functions with default visibility.
12225
12226 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12227
12228 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12229 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12230
12231 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12232
12233 * infcmd.c (post_create_inferior): Use get_thread_regcache
12234 instead of get_current_regcache.
12235
12236 2020-01-14 Tom Tromey <tom@tromey.com>
12237
12238 PR symtab/12535:
12239 * python/python.c (gdbpy_decode_line): Treat empty string the same
12240 as no argument.
12241
12242 2020-01-14 Tom Tromey <tom@tromey.com>
12243
12244 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12245
12246 2020-01-14 Tom Tromey <tom@tromey.com>
12247
12248 * nat/linux-btrace.c: Don't include <config.h>.
12249 * nat/linux-ptrace.c: Don't include <config.h>.
12250 * nat/x86-linux-dregs.c: Don't include <config.h>.
12251
12252 2020-01-14 Tom Tromey <tom@tromey.com>
12253
12254 * configure: Rebuild.
12255 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12256
12257 2020-01-14 Tom Tromey <tom@tromey.com>
12258
12259 * nat/x86-linux-dregs.c: Include configh.h.
12260 * nat/linux-ptrace.c: Include configh.h.
12261 * nat/linux-btrace.c: Include configh.h.
12262 * defs.h: Include config.h, bfd.h.
12263 * configure.ac: Don't source common.host.
12264 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12265 * configure: Rebuild.
12266 * acinclude.m4: Update path.
12267 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12268 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12269 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12270 (CLIBS): Add LIBSUPPORT.
12271 (CDEPS): Likewise.
12272 (COMMON_SFILES): Remove gdbsupport files.
12273 (HFILES_NO_SRCDIR): Likewise.
12274 (stamp-version): Update path to create-version.sh.
12275 (ALLDEPFILES): Remove gdbsupport files.
12276
12277 2020-01-14 Tom Tromey <tom@tromey.com>
12278
12279 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12280 USE_WIN32API when needed.
12281 * configure.ac (USE_WIN32API): Don't define.
12282 (WIN32LIBS): Use WIN32APILIBS.
12283 * configure: Rebuild.
12284
12285 2020-01-14 Tom Tromey <tom@tromey.com>
12286
12287 * configure: Rebuild.
12288 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12289
12290 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12291
12292 * skip.c (skip_function_command): Make skip w/o arguments use the
12293 name of the inlined function if pc is inside any inlined function.
12294
12295 2020-01-14 Luis Machado <luis.machado@linaro.org>
12296
12297 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12298 * infrun.c (resume_1): Likewise.
12299 (handle_inferior_event): Remove stale comment.
12300 * linux-nat.c (linux_nat_target::resume): Update comments.
12301 (save_stop_reason): Likewise.
12302 (linux_nat_filter_event): Likewise.
12303 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12304
12305 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12306
12307 * elfread.c (record_minimal_symbol): Set section index to 0 for
12308 non-allocatable sections.
12309
12310
12311 2020-01-13 Ali Tamur <tamur@google.com>
12312
12313 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12314 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12315 to gdb::optional. Update comments.
12316 (dwo_file): Update comments.
12317 (read_attribute): Update API to take an additional out parameter,
12318 need_reprocess. This is used to mark attributes that need other
12319 attributes (e.g. str_offsets_base) for correct computation which may not
12320 have been read yet.
12321 (read_attribute_reprocess): New function declaration.
12322 (read_addr_index): Likewise.
12323 (read_dwo_str_index): Likewise.
12324 (read_stub_str_index): Likewise.
12325 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12326 (lookup_addr_base): New function definition.
12327 (lookup_ranges_base): Likewise.
12328 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12329 lookup_ranges_base.
12330 (init_cutu_and_read_dies): Update comments.
12331 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12332 unit. This is used to inherit parent's str_offsets_base and addr_base.
12333 Update comments.
12334 (init_cutu_and_read_dies_simple): Reflect API changes.
12335 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12336 (create_cus_hash_table): Change API to take parent compile unit.
12337 Reflect API changes.
12338 (open_and_init_dwo_file): Reflect API changes.
12339 (dwarf2_get_pc_bounds): Update comments.
12340 (dwarf2_record_block_ranges): Likewise.
12341 (read_full_die_1): Change implementation to reprocess attributes that
12342 need str_offsets_base and addr_base.
12343 (partial_die_info::read): Likewise.
12344 (read_attribute_reprocess): New function definition.
12345 (read_attribute_value): Change API to take an additional out parameter,
12346 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12347 when a non-dwo compile unit has index based attributes.
12348 (read_attribute): Reflect API changes.
12349 (read_addr_index_1): Reflect API changes. Update comments.
12350 (dwarf2_read_addr_index_data): Reflect API changes.
12351 (dwarf2_read_addr_index): Likewise.
12352 (read_str_index): Change API and implementation. This becomes a helper
12353 to be used by the new string index related methods. Update error
12354 message and comments.
12355 (read_dwo_str_index): New function definition.
12356 (read_stub_str_index): Likewise.
12357 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12358 * symfile.h (dwarf2_debug_sections): Likewise.
12359 * xcoffread.c (dwarf2_debug_sections): Likewise.
12360
12361 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12362
12363 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12364 core_reg_sect type to gdb_byte *.
12365 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12366 * cris-tdep.c (fetch_core_registers): Likewise.
12367 * corelow.c (core_target::get_core_register_section): Change
12368 type of `contents` to gdb::byte_vector.
12369
12370 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12371
12372 * tui/tui-wingeneral.c (box_win): Position the title in the center
12373 of the border.
12374
12375 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12376
12377 * corelow.c (core_target::get_core_register_section): Use
12378 std::vector instead of alloca.
12379
12380 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12381
12382 * warning.m4: Add -Wmissing-declarations to build_warnings.
12383 * configure: Re-generate.
12384
12385 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12386
12387 * python/python.c (init__gdb_module): Add declaration.
12388
12389 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12390
12391 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12392 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12393 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12394 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12395 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12396 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12397 * ada-exp.y (_initialize_ada_exp): Add declaration.
12398 * ada-lang.c (_initialize_ada_language): Add declaration.
12399 * ada-tasks.c (_initialize_tasks): Add declaration.
12400 * agent.c (_initialize_agent): Add declaration.
12401 * aix-thread.c (_initialize_aix_thread): Add declaration.
12402 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12403 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12404 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12405 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12406 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12407 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12408 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12409 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12410 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12411 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12412 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12413 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12414 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12415 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12416 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12417 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12418 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12419 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12420 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12421 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12422 * annotate.c (_initialize_annotate): Add declaration.
12423 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12424 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12425 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12426 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12427 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12428 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12429 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12430 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12431 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12432 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12433 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12434 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12435 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12436 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12437 * auto-load.c (_initialize_auto_load): Add declaration.
12438 * auxv.c (_initialize_auxv): Add declaration.
12439 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12440 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12441 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12442 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12443 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12444 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12445 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12446 * breakpoint.c (_initialize_breakpoint): Add declaration.
12447 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12448 * btrace.c (_initialize_btrace): Add declaration.
12449 * charset.c (_initialize_charset): Add declaration.
12450 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12451 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12452 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12453 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12454 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12455 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12456 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12457 * coffread.c (_initialize_coffread): Add declaration.
12458 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12459 * compile/compile.c (_initialize_compile): Add declaration.
12460 * complaints.c (_initialize_complaints): Add declaration.
12461 * completer.c (_initialize_completer): Add declaration.
12462 * copying.c (_initialize_copying): Add declaration.
12463 * corefile.c (_initialize_core): Add declaration.
12464 * corelow.c (_initialize_corelow): Add declaration.
12465 * cp-abi.c (_initialize_cp_abi): Add declaration.
12466 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12467 * cp-support.c (_initialize_cp_support): Add declaration.
12468 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12469 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12470 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12471 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12472 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12473 * ctfread.c (_initialize_ctfread): Add declaration.
12474 * d-lang.c (_initialize_d_language): Add declaration.
12475 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12476 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12477 * dbxread.c (_initialize_dbxread): Add declaration.
12478 * dcache.c (_initialize_dcache): Add declaration.
12479 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12480 * disasm.c (_initialize_disasm): Add declaration.
12481 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12482 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12483 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12484 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12485 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12486 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12487 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12488 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12489 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12490 * elfread.c (_initialize_elfread): Add declaration.
12491 * exec.c (_initialize_exec): Add declaration.
12492 * extension.c (_initialize_extension): Add declaration.
12493 * f-lang.c (_initialize_f_language): Add declaration.
12494 * f-valprint.c (_initialize_f_valprint): Add declaration.
12495 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12496 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12497 * filesystem.c (_initialize_filesystem): Add declaration.
12498 * findcmd.c (_initialize_mem_search): Add declaration.
12499 * findvar.c (_initialize_findvar): Add declaration.
12500 * fork-child.c (_initialize_fork_child): Add declaration.
12501 * frame-base.c (_initialize_frame_base): Add declaration.
12502 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12503 * frame.c (_initialize_frame): Add declaration.
12504 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12505 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12506 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12507 * gcore.c (_initialize_gcore): Add declaration.
12508 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12509 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12510 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12511 * gdbarch.c (_initialize_gdbarch): Add declaration.
12512 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12513 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12514 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12515 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12516 * go-lang.c (_initialize_go_language): Add declaration.
12517 * go32-nat.c (_initialize_go32_nat): Add declaration.
12518 * guile/guile.c (_initialize_guile): Add declaration.
12519 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12520 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12521 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12522 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12523 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12524 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12525 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12526 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12527 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12528 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12529 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12530 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12531 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12532 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12533 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12534 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12535 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12536 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12537 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12538 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12539 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12540 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12541 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12542 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12543 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12544 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12545 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12546 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12547 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12548 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12549 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12550 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12551 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12552 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12553 * infcall.c (_initialize_infcall): Add declaration.
12554 * infcmd.c (_initialize_infcmd): Add declaration.
12555 * inflow.c (_initialize_inflow): Add declaration.
12556 * infrun.c (_initialize_infrun): Add declaration.
12557 * interps.c (_initialize_interpreter): Add declaration.
12558 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12559 * jit.c (_initialize_jit): Add declaration.
12560 * language.c (_initialize_language): Add declaration.
12561 * linux-fork.c (_initialize_linux_fork): Add declaration.
12562 * linux-nat.c (_initialize_linux_nat): Add declaration.
12563 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12564 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12565 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12566 * m2-lang.c (_initialize_m2_language): Add declaration.
12567 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12568 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12569 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12570 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12571 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12572 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12573 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12574 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12575 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12576 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12577 * machoread.c (_initialize_machoread): Add declaration.
12578 * macrocmd.c (_initialize_macrocmd): Add declaration.
12579 * macroscope.c (_initialize_macroscope): Add declaration.
12580 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12581 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12582 * maint.c (_initialize_maint_cmds): Add declaration.
12583 * mdebugread.c (_initialize_mdebugread): Add declaration.
12584 * memattr.c (_initialize_mem): Add declaration.
12585 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12586 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12587 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12588 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12589 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12590 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12591 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12592 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12593 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12594 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12595 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12596 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12597 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12598 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12599 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12600 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12601 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12602 * mipsread.c (_initialize_mipsread): Add declaration.
12603 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12604 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12605 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12606 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12607 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12608 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12609 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12610 * nto-procfs.c (_initialize_procfs): Add declaration.
12611 * objc-lang.c (_initialize_objc_language): Add declaration.
12612 * observable.c (_initialize_observer): Add declaration.
12613 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12614 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12615 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12616 * osabi.c (_initialize_gdb_osabi): Add declaration.
12617 * osdata.c (_initialize_osdata): Add declaration.
12618 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12619 * parse.c (_initialize_parse): Add declaration.
12620 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12621 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12622 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12623 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12624 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12625 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12626 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12627 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12628 * printcmd.c (_initialize_printcmd): Add declaration.
12629 * probe.c (_initialize_probe): Add declaration.
12630 * proc-api.c (_initialize_proc_api): Add declaration.
12631 * proc-events.c (_initialize_proc_events): Add declaration.
12632 * proc-service.c (_initialize_proc_service): Add declaration.
12633 * procfs.c (_initialize_procfs): Add declaration.
12634 * producer.c (_initialize_producer): Add declaration.
12635 * psymtab.c (_initialize_psymtab): Add declaration.
12636 * python/python.c (_initialize_python): Add declaration.
12637 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12638 * record-btrace.c (_initialize_record_btrace): Add declaration.
12639 * record-full.c (_initialize_record_full): Add declaration.
12640 * record.c (_initialize_record): Add declaration.
12641 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12642 * regcache.c (_initialize_regcache): Add declaration.
12643 * reggroups.c (_initialize_reggroup): Add declaration.
12644 * remote-notif.c (_initialize_notif): Add declaration.
12645 * remote-sim.c (_initialize_remote_sim): Add declaration.
12646 * remote.c (_initialize_remote): Add declaration.
12647 * reverse.c (_initialize_reverse): Add declaration.
12648 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12649 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12650 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12651 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12652 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12653 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12654 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12655 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12656 Add declaration.
12657 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12658 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12659 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12660 * rust-exp.y (_initialize_rust_exp): Add declaration.
12661 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12662 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12663 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12664 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12665 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12666 * score-tdep.c (_initialize_score_tdep): Add declaration.
12667 * ser-go32.c (_initialize_ser_dos): Add declaration.
12668 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12669 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12670 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12671 * ser-uds.c (_initialize_ser_socket): Add declaration.
12672 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12673 * serial.c (_initialize_serial): Add declaration.
12674 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12675 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12676 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12677 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12678 * skip.c (_initialize_step_skip): Add declaration.
12679 * sol-thread.c (_initialize_sol_thread): Add declaration.
12680 * solib-aix.c (_initialize_solib_aix): Add declaration.
12681 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12682 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12683 * solib-frv.c (_initialize_frv_solib): Add declaration.
12684 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12685 * solib-target.c (_initialize_solib_target): Add declaration.
12686 * solib.c (_initialize_solib): Add declaration.
12687 * source-cache.c (_initialize_source_cache): Add declaration.
12688 * source.c (_initialize_source): Add declaration.
12689 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12690 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12691 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12692 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12693 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12694 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12695 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12696 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12697 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12698 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12699 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12700 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12701 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12702 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12703 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12704 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12705 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12706 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12707 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12708 * stabsread.c (_initialize_stabsread): Add declaration.
12709 * stack.c (_initialize_stack): Add declaration.
12710 * stap-probe.c (_initialize_stap_probe): Add declaration.
12711 * std-regs.c (_initialize_frame_reg): Add declaration.
12712 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12713 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12714 * symfile.c (_initialize_symfile): Add declaration.
12715 * symmisc.c (_initialize_symmisc): Add declaration.
12716 * symtab.c (_initialize_symtab): Add declaration.
12717 * target.c (_initialize_target): Add declaration.
12718 * target-connection.c (_initialize_target_connection): Add
12719 declaration.
12720 * target-dcache.c (_initialize_target_dcache): Add declaration.
12721 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12722 * thread.c (_initialize_thread): Add declaration.
12723 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12724 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12725 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12726 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12727 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12728 * tracectf.c (_initialize_ctf): Add declaration.
12729 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12730 * tracefile.c (_initialize_tracefile): Add declaration.
12731 * tracepoint.c (_initialize_tracepoint): Add declaration.
12732 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12733 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12734 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12735 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12736 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12737 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12738 * tui/tui.c (_initialize_tui): Add declaration.
12739 * typeprint.c (_initialize_typeprint): Add declaration.
12740 * ui-style.c (_initialize_ui_style): Add declaration.
12741 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12742 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12743 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12744 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12745 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12746 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12747 * unittests/filtered_iterator-selftests.c
12748 (_initialize_filtered_iterator_selftests): Add declaration.
12749 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12750 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12751 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12752 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12753 * unittests/main-thread-selftests.c
12754 (_initialize_main_thread_selftests): Add declaration.
12755 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12756 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12757 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12758 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12759 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12760 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12761 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12762 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12763 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12764 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12765 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12766 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12767 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12768 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12769 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12770 declaration.
12771 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12772 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12773 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12774 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12775 * user-regs.c (_initialize_user_regs): Add declaration.
12776 * utils.c (_initialize_utils): Add declaration.
12777 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12778 * valops.c (_initialize_valops): Add declaration.
12779 * valprint.c (_initialize_valprint): Add declaration.
12780 * value.c (_initialize_values): Add declaration.
12781 * varobj.c (_initialize_varobj): Add declaration.
12782 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12783 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12784 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12785 * windows-nat.c (_initialize_windows_nat): Add declaration.
12786 (_initialize_check_for_gdb_ini): Add declaration.
12787 (_initialize_loadable): Add declaration.
12788 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12789 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12790 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12791 * xcoffread.c (_initialize_xcoffread): Add declaration.
12792 * xml-support.c (_initialize_xml_support): Add declaration.
12793 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12794 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12795 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12796 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12797
12798 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12799
12800 * regformats/regdat.sh: Generate declaration for init function.
12801
12802 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12803
12804 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12805 up.
12806 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12807 close_one_inferior>: New methods.
12808 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12809 pass down target to find_inferior_pid.
12810 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12811 Pass down target to find_inferior_ptid.
12812 (gdbsim_target::create_inferior): Pass down target to
12813 add_thread_silent.
12814 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12815 target down to find_inferior_ptid and switch_to_thread.
12816 (gdbsim_target::close): Update to call close_one_inferior.
12817 (struct resume_data): Remove.
12818 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12819 directly, rather than through a void pointer.
12820 (gdbsim_target::resume): Update to call resume_one_inferior.
12821
12822 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12823
12824 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12825
12826 2020-01-12 Pedro Alves <palves@redhat.com>
12827
12828 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12829 directly for the current inferior instead of
12830 discard_all_inferiors.
12831 (discard_all_inferiors): Delete.
12832
12833 2020-01-11 Tom Tromey <tom@tromey.com>
12834
12835 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12836 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12837 deprecated_safe_get_selected_frame.
12838
12839 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12840
12841 * inferior.c (print_inferior): Switch inferior before printing it.
12842
12843 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12844 Pedro Alves <palves@redhat.com>
12845
12846 * progspace-and-thread.c (switch_to_program_space_and_thread):
12847 Assert there's an inferior for PSPACE. Use
12848 switch_to_inferior_no_thread to switch the inferior too.
12849 * progspace.c (program_space::~program_space): Call
12850 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12851 (program_space::free_all_objfiles): Don't call clear_symtab_users
12852 here.
12853 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12854
12855 2020-01-10 Pedro Alves <palves@redhat.com>
12856
12857 * NEWS: Mention multi-target debugging, "info connections", and
12858 "add-inferior -no-connection".
12859
12860 2020-01-10 Pedro Alves <palves@redhat.com>
12861
12862 * infrun.c: Include "target-connection.h".
12863 (check_multi_target_resumption): New.
12864 (proceed): Call it.
12865 * target-connection.c (make_target_connection_string): Make
12866 extern.
12867 * target-connection.h (make_target_connection_string): Declare.
12868
12869 2020-01-10 Pedro Alves <palves@redhat.com>
12870
12871 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12872 * inferior.c (uiout_field_connection): New function.
12873 (print_inferior): Add new "connection-id" column.
12874 (add_inferior_command): Show connection number/string of added
12875 inferior.
12876 * process-stratum-target.h
12877 (process_stratum_target::connection_string): New virtual method.
12878 (process_stratum_target::connection_number): New field.
12879 * remote.c (remote_target::connection_string): New override.
12880 * target-connection.c: New file.
12881 * target-connection.h: New file.
12882 * target.c (decref_target): Remove process_stratum targets from
12883 the connection list.
12884 (target_stack::push): Add process_stratum targets to the
12885 connection list.
12886
12887 2020-01-10 Pedro Alves <palves@redhat.com>
12888
12889 Revert:
12890 2016-04-12 Pedro Alves <palves@redhat.com>
12891 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12892 Remove references to name.
12893 * serial.h (struct serial) <name>: Delete.
12894
12895 2020-01-10 Pedro Alves <palves@redhat.com>
12896
12897 * gdbarch-selftests.c (register_to_value_test): Remove "target
12898 already pushed" check.
12899
12900 2020-01-10 Pedro Alves <palves@redhat.com>
12901 John Baldwin <jhb@FreeBSD.org>
12902
12903 * aarch64-linux-nat.c
12904 (aarch64_linux_nat_target::thread_architecture): Adjust.
12905 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12906 (task_command_1): Likewise.
12907 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12908 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12909 (aix_thread_target::store_registers)
12910 (aix_thread_target::thread_alive): Adjust.
12911 * amd64-fbsd-tdep.c: Include "inferior.h".
12912 (amd64fbsd_get_thread_local_address): Pass down target.
12913 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12914 thread's gdbarch instead of target_gdbarch.
12915 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12916 get_last_target_status.
12917 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12918 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12919 inferiors.
12920 (update_inserted_breakpoint_locations): Skip if inferiors with no
12921 execution.
12922 (update_global_location_list): When handling moribund locations,
12923 find representative inferior for location's pspace, and use thread
12924 count of its process_stratum target.
12925 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12926 * bsd-uthread.c (bsd_uthread_target::wait): Use
12927 as_process_stratum_target and adjust thread_change_ptid and
12928 add_thread calls.
12929 (bsd_uthread_target::update_thread_list): Use
12930 as_process_stratum_target and adjust find_thread_ptid,
12931 thread_change_ptid and add_thread calls.
12932 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12933 find_thread_ptid call.
12934 * corelow.c (add_to_thread_list): Adjust add_thread call.
12935 (core_target_open): Adjust add_thread_silent and thread_count
12936 calls.
12937 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12938 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12939 * event-top.c (async_disconnect): Pop targets from all inferiors.
12940 * exec.c (add_target_sections): Push exec target on all inferiors
12941 sharing the program space.
12942 (remove_target_sections): Remove the exec target from all
12943 inferiors sharing the program space.
12944 (exec_on_vfork): New.
12945 * exec.h (exec_on_vfork): Declare.
12946 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12947 Pass it down.
12948 (fbsd_nat_target::update_thread_list): Adjust.
12949 (fbsd_nat_target::resume): Adjust.
12950 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12951 down.
12952 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12953 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12954 get_thread_arch_regcache call.
12955 * fork-child.c (gdb_startup_inferior): Pass target down to
12956 startup_inferior and set_executing.
12957 * gdbthread.h (struct process_stratum_target): Forward declare.
12958 (add_thread, add_thread_silent, add_thread_with_info)
12959 (in_thread_list): Add process_stratum_target parameter.
12960 (find_thread_ptid(inferior*, ptid_t)): New overload.
12961 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12962 parameter.
12963 (all_threads()): Delete overload.
12964 (all_threads, all_non_exited_threads): Add process_stratum_target
12965 parameter.
12966 (all_threads_safe): Use brace initialization.
12967 (thread_count): Add process_stratum_target parameter.
12968 (set_resumed, set_running, set_stop_requested, set_executing)
12969 (threads_are_executing, finish_thread_state): Add
12970 process_stratum_target parameter.
12971 (switch_to_thread): Use is_current_thread.
12972 * i386-fbsd-tdep.c: Include "inferior.h".
12973 (i386fbsd_get_thread_local_address): Pass down target.
12974 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12975 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12976 have_inferiors check.
12977 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12978 (inf_ptrace_target::attach): Adjust.
12979 * infcall.c (run_inferior_call): Adjust.
12980 * infcmd.c (run_command_1): Pass target to
12981 scoped_finish_thread_state.
12982 (proceed_thread_callback): Skip inferiors with no execution.
12983 (continue_command): Rename 'all_threads' local to avoid hiding
12984 'all_threads' function. Adjust get_last_target_status call.
12985 (prepare_one_step): Adjust set_running call.
12986 (signal_command): Use user_visible_resume_target. Compare thread
12987 pointers instead of inferior_ptid.
12988 (info_program_command): Adjust to pass down target.
12989 (attach_command): Mark target's 'thread_executing' flag.
12990 (stop_current_target_threads_ns): New, factored out from ...
12991 (interrupt_target_1): ... this. Switch inferior before making
12992 target calls.
12993 * inferior-iter.h
12994 (struct all_inferiors_iterator, struct all_inferiors_range)
12995 (struct all_inferiors_safe_range)
12996 (struct all_non_exited_inferiors_range): Filter on
12997 process_stratum_target too. Remove explicit.
12998 * inferior.c (inferior::inferior): Push dummy target on target
12999 stack.
13000 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13001 Add process_stratum_target parameter, and pass it down.
13002 (have_live_inferiors): Adjust.
13003 (switch_to_inferior_and_push_target): New.
13004 (add_inferior_command, clone_inferior_command): Handle
13005 "-no-connection" parameter. Use
13006 switch_to_inferior_and_push_target.
13007 (_initialize_inferior): Mention "-no-connection" option in
13008 the help of "add-inferior" and "clone-inferior" commands.
13009 * inferior.h: Include "process-stratum-target.h".
13010 (interrupt_target_1): Use bool.
13011 (struct inferior) <push_target, unpush_target, target_is_pushed,
13012 find_target_beneath, top_target, process_target, target_at,
13013 m_stack>: New.
13014 (discard_all_inferiors): Delete.
13015 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13016 (all_inferiors, all_non_exited_inferiors): Add
13017 process_stratum_target parameter.
13018 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13019 (target_last_proc_target): New global.
13020 (follow_fork_inferior): Push target on new inferior. Pass target
13021 to add_thread_silent. Call exec_on_vfork. Handle target's
13022 reference count.
13023 (follow_fork): Adjust get_last_target_status call. Also consider
13024 target.
13025 (follow_exec): Push target on new inferior.
13026 (struct execution_control_state) <target>: New field.
13027 (user_visible_resume_target): New.
13028 (do_target_resume): Call target_async.
13029 (resume_1): Set target's threads_executing flag. Consider resume
13030 target.
13031 (commit_resume_all_targets): New.
13032 (proceed): Also consider resume target. Skip threads of inferiors
13033 with no execution. Commit resumtion in all targets.
13034 (start_remote): Pass current inferior to wait_for_inferior.
13035 (infrun_thread_stop_requested): Consider target as well. Pass
13036 thread_info pointer to clear_inline_frame_state instead of ptid.
13037 (infrun_thread_thread_exit): Consider target as well.
13038 (random_pending_event_thread): New inferior parameter. Use it.
13039 (do_target_wait): Rename to ...
13040 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13041 down.
13042 (threads_are_resumed_pending_p, do_target_wait): New.
13043 (prepare_for_detach): Adjust calls.
13044 (wait_for_inferior): New inferior parameter. Handle it. Use
13045 do_target_wait_1 instead of do_target_wait.
13046 (fetch_inferior_event): Adjust. Switch to representative
13047 inferior. Pass target down.
13048 (set_last_target_status): Add process_stratum_target parameter.
13049 Save target in global.
13050 (get_last_target_status): Add process_stratum_target parameter and
13051 handle it.
13052 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13053 (context_switch): Check inferior_ptid == null_ptid before calling
13054 inferior_thread().
13055 (get_inferior_stop_soon): Pass down target.
13056 (wait_one): Rename to ...
13057 (poll_one_curr_target): ... this.
13058 (struct wait_one_event): New.
13059 (wait_one): New.
13060 (stop_all_threads): Adjust.
13061 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13062 event's target.
13063 (switch_back_to_stepped_thread): Also consider target.
13064 (print_stop_event): Update.
13065 (normal_stop): Update. Also consider the resume target.
13066 * infrun.h (wait_for_inferior): Remove declaration.
13067 (user_visible_resume_target): New declaration.
13068 (get_last_target_status, set_last_target_status): New
13069 process_stratum_target parameter.
13070 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13071 process_stratum_target parameter, and use it.
13072 (clear_inline_frame_state (thread_info*)): New.
13073 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13074 process_stratum_target parameter.
13075 (clear_inline_frame_state (thread_info*)): Declare.
13076 * linux-fork.c (delete_checkpoint_command): Pass target down to
13077 find_thread_ptid.
13078 (checkpoint_command): Adjust.
13079 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13080 instead of just tweaking inferior_ptid.
13081 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13082 (exit_lwp): Pass target down to find_thread_ptid.
13083 (attach_proc_task_lwp_callback): Pass target down to
13084 add_thread/set_running/set_executing.
13085 (linux_nat_target::attach): Pass target down to
13086 thread_change_ptid.
13087 (get_detach_signal): Pass target down to find_thread_ptid.
13088 Consider last target status's target.
13089 (linux_resume_one_lwp_throw, resume_lwp)
13090 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13091 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13092 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13093 (linux_nat_target::async_wait_fd): New.
13094 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13095 target down.
13096 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13097 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13098 * linux-thread-db.c (struct thread_db_info::process_target): New
13099 field.
13100 (add_thread_db_info): Save target.
13101 (get_thread_db_info): New process_stratum_target parameter. Also
13102 match target.
13103 (delete_thread_db_info): New process_stratum_target parameter.
13104 Also match target.
13105 (thread_from_lwp): Adjust to pass down target.
13106 (thread_db_notice_clone): Pass down target.
13107 (check_thread_db_callback): Pass down target.
13108 (try_thread_db_load_1): Always push the thread_db target.
13109 (try_thread_db_load, record_thread): Pass target down.
13110 (thread_db_target::detach): Pass target down. Always unpush the
13111 thread_db target.
13112 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13113 target down. Always unpush the thread_db target.
13114 (find_new_threads_callback, thread_db_find_new_threads_2)
13115 (thread_db_target::update_thread_list): Pass target down.
13116 (thread_db_target::pid_to_str): Pass current inferior down.
13117 (thread_db_target::get_thread_local_address): Pass target down.
13118 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13119 target down.
13120 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13121 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13122 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13123 (procfs_init_inferior): Rename to ...
13124 (procfs_target::procfs_init_inferior): ... this and adjust.
13125 (procfs_target::create_inferior, procfs_notice_thread)
13126 (procfs_do_thread_registers): Adjust.
13127 * ppc-fbsd-tdep.c: Include "inferior.h".
13128 (ppcfbsd_get_thread_local_address): Pass down target.
13129 * proc-service.c (ps_xfer_memory): Switch current inferior and
13130 program space as well.
13131 (get_ps_regcache): Pass target down.
13132 * process-stratum-target.c
13133 (process_stratum_target::thread_address_space)
13134 (process_stratum_target::thread_architecture): Pass target down.
13135 * process-stratum-target.h
13136 (process_stratum_target::threads_executing): New field.
13137 (as_process_stratum_target): New.
13138 * ravenscar-thread.c
13139 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13140 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13141 down.
13142 * record-btrace.c (record_btrace_target::info_record): Adjust.
13143 (record_btrace_target::record_method)
13144 (record_btrace_target::record_is_replaying)
13145 (record_btrace_target::fetch_registers)
13146 (get_thread_current_frame_id, record_btrace_target::resume)
13147 (record_btrace_target::wait, record_btrace_target::stop): Pass
13148 target down.
13149 * record-full.c (record_full_wait_1): Switch to event thread.
13150 Pass target down.
13151 * regcache.c (regcache::regcache)
13152 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13153 process_stratum_target parameter and handle it.
13154 (current_thread_target): New global.
13155 (get_thread_regcache): Add process_stratum_target parameter and
13156 handle it. Switch inferior before calling target method.
13157 (get_thread_regcache): Pass target down.
13158 (get_thread_regcache_for_ptid): Pass target down.
13159 (registers_changed_ptid): Add process_stratum_target parameter and
13160 handle it.
13161 (registers_changed_thread, registers_changed): Pass target down.
13162 (test_get_thread_arch_aspace_regcache): New.
13163 (current_regcache_test): Define a couple local test_target_ops
13164 instances and use them for testing.
13165 (readwrite_regcache): Pass process_stratum_target parameter.
13166 (cooked_read_test, cooked_write_test): Pass mock_target down.
13167 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13168 (get_thread_arch_aspace_regcache): Add process_stratum_target
13169 parameter.
13170 (regcache::target): New method.
13171 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13172 (regcache::registers_changed_ptid): Add process_stratum_target
13173 parameter.
13174 (regcache::m_target): New field.
13175 (registers_changed_ptid): Add process_stratum_target parameter.
13176 * remote.c (remote_state::supports_vCont_probed): New field.
13177 (remote_target::async_wait_fd): New method.
13178 (remote_unpush_and_throw): Add remote_target parameter.
13179 (get_current_remote_target): Adjust.
13180 (remote_target::remote_add_inferior): Push target.
13181 (remote_target::remote_add_thread)
13182 (remote_target::remote_notice_new_inferior)
13183 (get_remote_thread_info): Pass target down.
13184 (remote_target::update_thread_list): Skip threads of inferiors
13185 bound to other targets. (remote_target::close): Don't discard
13186 inferiors. (remote_target::add_current_inferior_and_thread)
13187 (remote_target::process_initial_stop_replies)
13188 (remote_target::start_remote)
13189 (remote_target::remote_serial_quit_handler): Pass down target.
13190 (remote_target::remote_unpush_target): New remote_target
13191 parameter. Unpush the target from all inferiors.
13192 (remote_target::remote_unpush_and_throw): New remote_target
13193 parameter. Pass it down.
13194 (remote_target::open_1): Check whether the current inferior has
13195 execution instead of checking whether any inferior is live. Pass
13196 target down.
13197 (remote_target::remote_detach_1): Pass down target. Use
13198 remote_unpush_target.
13199 (extended_remote_target::attach): Pass down target.
13200 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13201 (remote_target::append_resumption): Pass down target.
13202 (remote_target::append_pending_thread_resumptions)
13203 (remote_target::remote_resume_with_hc, remote_target::resume)
13204 (remote_target::commit_resume): Pass down target.
13205 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13206 (remote_target::interrupt_query)
13207 (remote_target::remove_new_fork_children)
13208 (remote_target::check_pending_events_prevent_wildcard_vcont)
13209 (remote_target::remote_parse_stop_reply)
13210 (remote_target::process_stop_reply): Pass down target.
13211 (first_remote_resumed_thread): New remote_target parameter. Pass
13212 it down.
13213 (remote_target::wait_as): Pass down target.
13214 (unpush_and_perror): New remote_target parameter. Pass it down.
13215 (remote_target::readchar, remote_target::remote_serial_write)
13216 (remote_target::getpkt_or_notif_sane_1)
13217 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13218 down target.
13219 (remote_target::mourn_inferior): Pass down target. Use
13220 remote_unpush_target.
13221 (remote_target::core_of_thread)
13222 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13223 (remote_target::pid_to_exec_file)
13224 (remote_target::thread_handle_to_thread_info): Pass down target.
13225 (remote_target::async_wait_fd): New.
13226 * riscv-fbsd-tdep.c: Include "inferior.h".
13227 (riscv_fbsd_get_thread_local_address): Pass down target.
13228 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13229 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13230 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13231 Adjust.
13232 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13233 * solib-svr4.c (enable_break): Pass down target.
13234 * spu-multiarch.c (parse_spufs_run): Pass down target.
13235 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13236 * target-delegates.c: Regenerate.
13237 * target.c (g_target_stack): Delete.
13238 (current_top_target): Return the current inferior's top target.
13239 (target_has_execution_1): Refer to the passed-in inferior's top
13240 target.
13241 (target_supports_terminal_ours): Check whether the initial
13242 inferior was already created.
13243 (decref_target): New.
13244 (target_stack::push): Incref/decref the target.
13245 (push_target, push_target, unpush_target): Adjust.
13246 (target_stack::unpush): Defref target.
13247 (target_is_pushed): Return bool. Adjust to refer to the current
13248 inferior's target stack.
13249 (dispose_inferior): Delete, and inline parts ...
13250 (target_preopen): ... here. Only dispose of the current inferior.
13251 (target_detach): Hold strong target reference while detaching.
13252 Pass target down.
13253 (target_thread_name): Add assertion.
13254 (target_resume): Pass down target.
13255 (target_ops::beneath, find_target_at): Adjust to refer to the
13256 current inferior's target stack.
13257 (get_dummy_target): New.
13258 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13259 has a thread running.
13260 (initialize_targets): Rename to ...
13261 (_initialize_target): ... this.
13262 * target.h: Include "gdbsupport/refcounted-object.h".
13263 (struct target_ops): Inherit refcounted_object.
13264 (target_ops::shortname, target_ops::longname): Make const.
13265 (target_ops::async_wait_fd): New method.
13266 (decref_target): Declare.
13267 (struct target_ops_ref_policy): New.
13268 (target_ops_ref): New typedef.
13269 (get_dummy_target): Declare function.
13270 (target_is_pushed): Return bool.
13271 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13272 (all_matching_threads_iterator::all_matching_threads_iterator):
13273 Handle filter target.
13274 * thread-iter.h (struct all_matching_threads_iterator, struct
13275 all_matching_threads_range, class all_non_exited_threads_range):
13276 Filter by target too. Remove explicit.
13277 * thread.c (threads_executing): Delete.
13278 (inferior_thread): Pass down current inferior.
13279 (clear_thread_inferior_resources): Pass down thread pointer
13280 instead of ptid_t.
13281 (add_thread_silent, add_thread_with_info, add_thread): Add
13282 process_stratum_target parameter. Use it for thread and inferior
13283 searches.
13284 (is_current_thread): New.
13285 (thread_info::deletable): Use it.
13286 (find_thread_ptid, thread_count, in_thread_list)
13287 (thread_change_ptid, set_resumed, set_running): New
13288 process_stratum_target parameter. Pass it down.
13289 (set_executing): New process_stratum_target parameter. Pass it
13290 down. Adjust reference to 'threads_executing'.
13291 (threads_are_executing): New process_stratum_target parameter.
13292 Adjust reference to 'threads_executing'.
13293 (set_stop_requested, finish_thread_state): New
13294 process_stratum_target parameter. Pass it down.
13295 (switch_to_thread): Also match inferior.
13296 (switch_to_thread): New process_stratum_target parameter. Pass it
13297 down.
13298 (update_threads_executing): Reimplement.
13299 * top.c (quit_force): Pop targets from all inferior.
13300 (gdb_init): Don't call initialize_targets.
13301 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13302 Declare.
13303 (windows_add_thread, windows_delete_thread): Adjust.
13304 (get_windows_debug_event): Rename to ...
13305 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13306 * tracefile-tfile.c (tfile_target_open): Pass down target.
13307 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13308 Forward declare.
13309 (switch_to_thread): Add process_stratum_target parameter.
13310 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13311 parameter. Use it.
13312 (mi_on_resume): Pass target down.
13313 * nat/fork-inferior.c (startup_inferior): Add
13314 process_stratum_target parameter. Pass it down.
13315 * nat/fork-inferior.h (startup_inferior): Add
13316 process_stratum_target parameter.
13317 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13318
13319 2020-01-10 Pedro Alves <palves@redhat.com>
13320
13321 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13322 directly. Instead find the first thread in the thread list and
13323 use switch_to_thread.
13324
13325 2020-01-10 Pedro Alves <palves@redhat.com>
13326
13327 * remote.c (remote_target::remote_add_inferior): Don't bind a
13328 process to the current inferior if the current inferior is already
13329 bound to a process.
13330
13331 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13332 Pedro Alves <palves@redhat.com>
13333
13334 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13335 If no process is specified, return null_ptid instead of
13336 inferior_ptid.
13337 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13338 TARGET_WAITKIND_SIGNALLED with no pid.
13339
13340 2020-01-10 Pedro Alves <palves@redhat.com>
13341
13342 * remote.c (first_remote_resumed_thread): New.
13343 (remote_target::wait_as): Use it as default event_ptid instead of
13344 inferior_ptid.
13345
13346 2020-01-10 Pedro Alves <palves@redhat.com>
13347
13348 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13349
13350 2020-01-10 Pedro Alves <palves@redhat.com>
13351
13352 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13353 not -1.
13354
13355 2020-01-10 Pedro Alves <palves@redhat.com>
13356
13357 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13358 ptid to get_last_target_status.
13359 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13360 ptid to get_last_target_status.
13361 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13362 get_last_target_status.
13363 (info_program_command): Don't pass a target_waitstatus to
13364 get_last_target_status.
13365 * infrun.c (init_wait_for_inferior): Use
13366 nullify_last_target_wait_ptid.
13367 (get_last_target_status): Handle nullptr arguments.
13368 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13369 (print_stop_event): Don't pass a ptid to get_last_target_status.
13370 (normal_stop): Don't pass a ptid to get_last_target_status.
13371 * infrun.h (get_last_target_status, set_last_target_status): Move
13372 comments here and update.
13373 (nullify_last_target_wait_ptid): Declare.
13374 * linux-fork.c (fork_load_infrun_state): Remove local extern
13375 declaration of nullify_last_target_wait_ptid.
13376 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13377 to get_last_target_status.
13378
13379 2020-01-10 Pedro Alves <palves@redhat.com>
13380
13381 * gdbthread.h (scoped_restore_current_thread)
13382 <dont_restore, restore, m_dont_restore>: Declare.
13383 * thread.c (thread_alive): Add assertion. Return bool.
13384 (switch_to_thread_if_alive): New.
13385 (prune_threads): Switch inferior/thread.
13386 (print_thread_info_1): Switch thread before calling target methods.
13387 (scoped_restore_current_thread::restore): New, factored out from
13388 ...
13389 (scoped_restore_current_thread::~scoped_restore_current_thread):
13390 ... this.
13391 (scoped_restore_current_thread::scoped_restore_current_thread):
13392 Add assertion.
13393 (thread_apply_all_command, thread_select): Use
13394 switch_to_thread_if_alive.
13395 * infrun.c (proceed, restart_threads, handle_signal_stop)
13396 (switch_back_to_stepped_thread): Switch current thread before
13397 calling target methods.
13398
13399 2020-01-10 Pedro Alves <palves@redhat.com>
13400
13401 * inferior.c (switch_to_inferior_no_thread): New function,
13402 factored out from ...
13403 (inferior_command): ... here.
13404 * inferior.h (switch_to_inferior_no_thread): Declare.
13405 * mi/mi-main.c (run_one_inferior): Use
13406 switch_to_inferior_no_thread.
13407
13408 2020-01-10 Pedro Alves <palves@redhat.com>
13409
13410 * infcmd.c (kill_command): Remove dead code.
13411
13412 2020-01-10 Pedro Alves <palves@redhat.com>
13413
13414 * remote.c (remote_target::mourn_inferior): No longer check
13415 whether the target is running.
13416
13417 2020-01-10 Pedro Alves <palves@redhat.com>
13418
13419 * corelow.c (core_target::has_execution): Change parameter type to
13420 inferior pointer.
13421 * inferior.c (number_of_live_inferiors): Use
13422 inferior::has_execution instead of target_has_execution_1.
13423 * inferior.h (inferior::has_execution): New.
13424 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13425 inferior::has_execution instead of target_has_execution_1.
13426 * process-stratum-target.c
13427 (process_stratum_target::has_execution): Change parameter type to
13428 inferior pointer. Check the inferior's PID instead of
13429 inferior_ptid.
13430 * process-stratum-target.h
13431 (process_stratum_target::has_execution): Change parameter type to
13432 inferior pointer.
13433 * record-full.c (record_full_core_target::has_execution): Change
13434 parameter type to inferior pointer.
13435 * target.c (target_has_execution_1): Change parameter type to
13436 inferior pointer.
13437 (target_has_execution_current): Adjust.
13438 * target.h (target_ops::has_execution): Change parameter type to
13439 inferior pointer.
13440 (target_has_execution_1): Change parameter type to inferior
13441 pointer. Change return type to bool.
13442 * tracefile.h (tracefile_target::has_execution): Change parameter
13443 type to inferior pointer.
13444
13445 2020-01-10 Pedro Alves <palves@redhat.com>
13446
13447 * exceptions.c (print_flush): Remove current_top_target() check.
13448
13449 2020-01-10 Pedro Alves <palves@redhat.com>
13450
13451 * remote.c (show_remote_exec_file): Show the current inferior's
13452 exec-file instead of the command variable's value.
13453
13454 2020-01-10 Pedro Alves <palves@redhat.com>
13455
13456 * record-full.c (record_full_resume_ptid): New global.
13457 (record_full_target::resume): Set it.
13458 (record_full_wait_1): Use record_full_resume_ptid instead of
13459 inferior_ptid.
13460
13461 2020-01-10 Pedro Alves <palves@redhat.com>
13462
13463 * gdbthread.h (scoped_restore_current_thread)
13464 <dont_restore, restore, m_dont_restore>: Declare.
13465 * thread.c (thread_alive): Add assertion. Return bool.
13466 (switch_to_thread_if_alive): New.
13467 (prune_threads): Switch inferior/thread.
13468 (print_thread_info_1): Switch thread before calling target methods.
13469 (scoped_restore_current_thread::restore): New, factored out from
13470 ...
13471 (scoped_restore_current_thread::~scoped_restore_current_thread):
13472 ... this.
13473 (scoped_restore_current_thread::scoped_restore_current_thread):
13474 Add assertion.
13475 (thread_apply_all_command, thread_select): Use
13476 switch_to_thread_if_alive.
13477
13478 2020-01-10 George Barrett <bob@bob131.so>
13479
13480 * stap-probe.c (stap_modify_semaphore): Don't check for null
13481 semaphores.
13482 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13483 for null semaphores.
13484
13485 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13486
13487 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13488 all source windows, and maintain horizontal scroll status while
13489 doing so.
13490
13491 2020-01-09 Tom Tromey <tom@tromey.com>
13492
13493 PR tui/18932:
13494 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13495 update_source_window, not print_source_lines.
13496
13497 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13498
13499 * tui/tui.c (tui_enable): Register tui hooks after calling
13500 tui_display_main.
13501
13502 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13503
13504 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13505
13506 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13507
13508 * thread.c (print_thread_info_1): Fix indentation.
13509
13510 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13511
13512 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13513 unique_xmalloc_ptr outside the if to always free the demangled name.
13514
13515 2020-01-08 Tom Tromey <tromey@adacore.com>
13516
13517 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13518 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13519 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13520 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13521 Remove.
13522 (section_offsets): New typedef.
13523 * symtab.c (fixup_section, get_msymbol_address): Update.
13524 * symmisc.c (dump_msymbols): Update.
13525 * symfile.h (relative_addr_info_to_section_offsets)
13526 (symfile_map_offsets_to_segments): Update.
13527 * symfile.c (build_section_addr_info_from_objfile)
13528 (init_objfile_sect_indices): Update.
13529 (struct place_section_arg): Change type of "offsets".
13530 (place_section): Update.
13531 (relative_addr_info_to_section_offsets): Change type of
13532 "section_offsets". Remove "num_sections" parameter.
13533 (default_symfile_offsets, syms_from_objfile_1)
13534 (set_objfile_default_section_offset): Update.
13535 (reread_symbols): No need to preserve section offsets by hand.
13536 (symfile_map_offsets_to_segments): Change type of "offsets".
13537 * stap-probe.c (relocate_address): Update.
13538 * stabsread.h (process_one_symbol): Update.
13539 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13540 (solib_target_relocate_section_addresses): Update.
13541 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13542 Update.
13543 * solib-frv.c (frv_relocate_main_executable): Update.
13544 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13545 * solib-aix.c (solib_aix_get_section_offsets): Change return
13546 type.
13547 (solib_aix_solib_create_inferior_hook): Update.
13548 * remote.c (remote_target::get_offsets): Update.
13549 * psymtab.c (find_pc_sect_psymtab): Update.
13550 * psympriv.h (struct partial_symbol) <address, text_low,
13551 text_high>: Update.
13552 * objfiles.h (obj_section_offset): Update.
13553 (struct objfile) <section_offsets>: Change type.
13554 <num_sections>: Remove.
13555 (objfile_relocate): Update.
13556 * objfiles.c (entry_point_address_query): Update
13557 (relocate_one_symbol): Change type of "section_offsets".
13558 (objfile_relocate1, objfile_relocate1): Change type of
13559 "new_offsets".
13560 (objfile_rebase1): Update.
13561 * mipsread.c (mipscoff_symfile_read): Update.
13562 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13563 parameter.
13564 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13565 (parse_external, psymtab_to_symtab_1): Update.
13566 * machoread.c (macho_symfile_offsets): Update.
13567 * ia64-tdep.c (ia64_find_unwind_table): Update.
13568 * hppa-tdep.c (read_unwind_info): Update.
13569 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13570 * dwarf2read.c (create_addrmap_from_index)
13571 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13572 (process_psymtab_comp_unit_reader, add_partial_symbol)
13573 (add_partial_subprogram, process_full_comp_unit)
13574 (read_file_scope, read_func_scope, read_lexical_block_scope)
13575 (read_call_site_scope, dwarf2_rnglists_process)
13576 (dwarf2_ranges_process, dwarf2_ranges_read)
13577 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13578 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13579 Update.
13580 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13581 Update.
13582 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13583 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13584 (process_one_symbol): Change type of "section_offsets".
13585 * ctfread.c (get_objfile_text_range): Update.
13586 * coffread.c (coff_symtab_read, enter_linenos)
13587 (process_coff_symbol): Update.
13588 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13589 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13590
13591 2020-01-08 Tom Tromey <tromey@adacore.com>
13592
13593 * dwarf2read.c (parse_macro_definition): Use std::string.
13594 (parse_macro_definition): Likewise.
13595
13596 2020-01-08 Tom Tromey <tromey@adacore.com>
13597
13598 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13599 (ATTR_ALLOC_CHUNK): Remove.
13600
13601 2020-01-08 Tom Tromey <tromey@adacore.com>
13602
13603 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13604
13605 2020-01-08 Tom Tromey <tromey@adacore.com>
13606
13607 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13608 (dwarf2_compute_name, open_dwo_file): Likewise.
13609 (process_enumeration_scope): Use std::vector.
13610 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13611 (partial_die_info::fixup, dwarf2_start_subfile)
13612 (guess_full_die_structure_name, dwarf2_name): Likewise.
13613 (determine_prefix): Update.
13614 (guess_full_die_structure_name): Make return type const.
13615 (partial_die_full_name): Return unique_xmalloc_ptr.
13616 (DW_FIELD_ALLOC_CHUNK): Remove.
13617
13618 2020-01-07 Tom Tromey <tromey@adacore.com>
13619
13620 PR build/24937:
13621 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13622
13623 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13624
13625 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13626
13627 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13628
13629 * stack.c (print_frame_info): Move disassemble_next_line code
13630 inside source_print block.
13631
13632 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13633
13634 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13635 gdb/signals.h, as we are now using native signal symbols.
13636
13637 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13638
13639 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13640 overflow by an early check of content vs threshold.
13641 * tui/tui-source.c (tui_source_window::line_is_displayed):
13642 Likewise.
13643
13644 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13645
13646 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13647
13648 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13649
13650 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13651 export table if no section contains it's RVA.
13652
13653 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13654
13655 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13656
13657 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13658
13659 * source.c (print_source_lines_base): Set last_line_listed.
13660
13661 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13662
13663 * tui/tui-disasm.c: Remove trailing spaces.
13664
13665 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13666 Pedro Alves <palves@redhat.com>
13667
13668 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13669 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13670 (windows_gdb_signal_to_target): New function, uses the above
13671 enumeration to convert GDB internal signal codes to equivalent
13672 Windows codes.
13673 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13674 * windows-nat.c: Include "gdb_wait.h".
13675 (get_windows_debug_event): Extract the fatal exception from the
13676 exit status and convert to the equivalent Posix signal number.
13677 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13678 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13679 * gdbsupport/gdb_wait.c: New file, implements
13680 windows_status_to_termsig.
13681 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13682 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13683
13684 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13685
13686 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13687 show_layout.
13688
13689 2020-01-05 Luis Machado <luis.machado@linaro.org>
13690
13691 * aarch64-linux-nat.c
13692 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13693 and bfd_mach_aarch64.
13694
13695 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13696
13697 * ui-file.c (stdio_file::can_emit_style_escape)
13698 (tee_file::can_emit_style_escape): Ensure style is used also on
13699 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13700 to gdb_stdout.
13701 * main.c (set_gdb_data_directory): Use file style to output the
13702 warning that the given pathname is not a directory.
13703 * top.c (show_history_filename, gdb_safe_append_history)
13704 (show_gdb_datadir): Use file style.
13705
13706 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13707
13708 * solib-target.c (struct lm_info_target):
13709 Change offsets to be a unique_xmalloc_ptr.
13710 (solib_target_relocate_section_addresses): Update.
13711
13712 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13713
13714 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13715
13716 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13717
13718 * MAINTAINERS (Write After Approval): Add myself.
13719
13720 2020-01-02 Luis Machado <luis.machado@linaro.org>
13721
13722 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13723 Cell BE architecture.
13724 * target.h (struct target_ops) <thread_architecture>: Likewise.
13725
13726 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13727
13728 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13729
13730 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13731
13732 * MAINTAINERS (Write After Approval): Add myself.
13733
13734 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13735
13736 * gdbarch.sh: Update copyright year range of generated files.
13737
13738 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13739
13740 Update copyright year range in all GDB files.
13741
13742 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13743
13744 * copyright.py: Convert to Python 3.
13745
13746 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13747
13748 * copyright.py: Adapt after move of gnulib directory from gdb
13749 directory to toplevel directory.
13750
13751 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13752
13753 * copyright.py (main): Exit if run from the wrong directory.
13754
13755 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13756
13757 * top.c (print_gdb_version): Change copyright year to 2020.
13758
13759 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13760
13761 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13762
13763 For older changes see ChangeLog-2019.
13764 \f
13765 Local Variables:
13766 mode: change-log
13767 left-margin: 8
13768 fill-column: 74
13769 version-control: never
13770 coding: utf-8
13771 End: