Assume that PT_LWPINFO is always defined on FreeBSD hosts.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2
3 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4 * fbsd-nat.h: Likewise.
5
6 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7
8 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
9 argument.
10
11 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
12
13 * ada-lang.c (ada_language_data): Delete.
14 (ada_language): Remove references to ada_language_data.
15 * c-lang.c (c_language_data): Delete.
16 (c_language): Remove references to c_language_data.
17 (cplus_language_data): Delete.
18 (cplus_language): Remove references to cplus_language_data.
19 (asm_language_data): Delete.
20 (asm_language): Remove references to asm_language_data.
21 (minimal_language_data): Delete.
22 (minimal_language): Remove references to minimal_language_data.
23 * d-lang.c (d_language_data): Delete.
24 (d_language): Remove references to d_language_data.
25 * f-lang.c (f_language_data): Delete.
26 (f_language): Remove references to f_language_data.
27 * go-lang.c (go_language_data): Delete.
28 (go_language): Remove references to go_language_data.
29 * language.c (unknown_language_data): Delete.
30 (unknown_language): Remove references to unknown_language_data.
31 (auto_language_data): Delete.
32 (auto_language): Remove references to auto_language_data.
33 * language.h (language_data): Delete struct.
34 (language_defn): No longer inherit from language_data.
35 * m2-lang.c (m2_language_data): Delete.
36 (m2_language): Remove references to m2_language_data.
37 * objc-lang.c (objc_language_data): Delete.
38 (objc_language): Remove references to objc_language_data.
39 * opencl-lang.c (opencl_language_data): Delete.
40 (opencl_language): Remove references to opencl_language_data.
41 * p-lang.c (pascal_language_data): Delete.
42 (pascal_language): Remove references to pascal_language_data.
43 * rust-lang.c (rust_language_data): Delete.
44 (rust_language): Remove references to rust_language_data.
45
46 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
47
48 * ada-lang.c (ada_language_data): Remove la_op_print_tab
49 initializer.
50 (ada_language::opcode_print_table): New member function.
51 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
52 (c_language::opcode_print_table): New member function.
53 (cplus_language_data): Remove la_op_print_tab initializer.
54 (cplus_language::opcode_print_table): New member function.
55 (asm_language_data): Remove la_op_print_tab initializer.
56 (asm_language::opcode_print_table): New member function.
57 (minimal_language_data): Remove la_op_print_tab initializer.
58 (minimal_language::opcode_print_table): New member function.
59 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
60 (d_language::opcode_print_table): New member function.
61 * expprint.c (print_subexp_standard): Update call to
62 opcode_print_table.
63 (op_string): Likewise.
64 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
65 (f_language::opcode_print_table): New member function.
66 * go-lang.c (go_language_data): Remove la_op_print_tab
67 initializer.
68 (go_language::opcode_print_table): New member function.
69 * language.c (unknown_language_data): Remove la_op_print_tab
70 initializer.
71 (unknown_language::opcode_print_table): New member function.
72 (auto_language_data): Remove la_op_print_tab initializer.
73 (auto_language::opcode_print_table): New member function.
74 * language.h (language_data): Remove la_op_print_tab field.
75 (language_defn::opcode_print_table): Declare new member function.
76 * m2-lang.c (m2_language_data): Remove la_op_print_tab
77 initializer.
78 (m2_language::opcode_print_table): New member function.
79 * objc-lang.c (objc_language_data): Remove la_op_print_tab
80 initializer.
81 (objc_language::opcode_print_table): New member function.
82 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
83 initializer.
84 (opencl_language::opcode_print_table): New member function.
85 * p-lang.c (pascal_language_data): Remove la_op_print_tab
86 initializer.
87 (pascal_language::opcode_print_table): New member function.
88 * rust-lang.c (rust_language_data): Remove la_op_print_tab
89 initializer.
90 (rust_language::opcode_print_table): New member function.
91
92 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
93
94 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
95 (ada_language::expression_ops): New member function.
96 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
97 (c_language::expression_ops): New member function.
98 (cplus_language_data): Remove la_exp_desc initializer.
99 (cplus_language::expression_ops): New member function.
100 (asm_language_data): Remove la_exp_desc initializer.
101 (asm_language::expression_ops): New member function.
102 (minimal_language_data): Remove la_exp_desc initializer.
103 (minimal_language::expression_ops): New member function.
104 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
105 (d_language::expression_ops): New member function.
106 * eval.c (evaluate_subexp): Update call to expression_ops.
107 * expprint.c (print_subexp): Likewise.
108 (op_name): Likewise.
109 (dump_subexp_body): Likewise.
110 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
111 (f_language::expression_ops): New member function.
112 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
113 (go_language::expression_ops): New member function.
114 * language.c (language_defn::expression_ops): New function.
115 (unknown_language_data): Remove la_exp_desc initializer.
116 (auto_language_data): Likewise.
117 * language.h (language_data): Remove la_exp_desc field.
118 (language_defn::expression_ops): Declare new member function.
119 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
120 (m2_language::expression_ops): New member function.
121 * objc-lang.c (objc_language_data): Remove la_exp_desc
122 initializer.
123 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
124 initializer.
125 (opencl_language::expression_ops): New member function.
126 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
127 * parse.c (operator_length): Update call to expression_ops.
128 (exp_iterate): Likewise.
129 * rust-lang.c (rust_language_data): Remove la_exp_desc
130 initializer.
131 (ruse_language::expression_ops): New member function.
132
133 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 * ada-lang.c (ada_language_data): Remove la_varobj_ops
136 initializer.
137 (ada_language::varobj_ops): New member function.
138 * c-lang.c (c_language_data): Remove la_varobj_ops
139 initializer.
140 (cplus_language_data): Likewise.
141 (cplus_language::varobj_ops): New member function.
142 (asm_language_data): Remove la_varobj_ops initializer.
143 (minimal_language_data): Likewise.
144 * d-lang.c (d_language_data): Likewise.
145 * f-lang.c (f_language_data): Likewise.
146 * go-lang.c (go_language_data): Likewise.
147 * language.c (language_defn::varobj_ops): New function.
148 (unknown_language_data): Remove la_varobj_ops
149 initializer.
150 (auto_language_data): Likewise.
151 * language.h (language_data): Remove la_varobj_ops field.
152 (language_defn::varobj_ops): Declare new member function.
153 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
154 * objc-lang.c (objc_language_data): Likewise.
155 * opencl-lang.c (opencl_language_data): Likewise.
156 * p-lang.c (pascal_language_data): Likewise.
157 * rust-lang.c (rust_language_data): Likewise.
158 * varobj.c (varobj_create): Update call to varobj_ops.
159 * varobj.h (default_varobj_ops): Delete define.
160
161 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
162
163 * ada-lang.c (ada_language_data): Remove la_macro_expansion
164 initializer.
165 * c-lang.c (c_language_data): Likewise.
166 (c_language::macro_expansion): New member function.
167 (cplus_language_data): Likewise.
168 (cplus_language::macro_expansion): New member function.
169 (asm_language_data): Likewise.
170 (asm_language::macro_expansion): New member function.
171 (minimal_language_data): Likewise.
172 (minimal_language::macro_expansion): New member function.
173 * d-lang.c (d_language_data): Remove la_macro_expansion
174 initializer.
175 * f-lang.c (f_language_data): Likewise.
176 * go-lang.c (go_language_data): Likewise.
177 * language.c (unknown_language_data): Likewise.
178 (auto_language_data): Likewise.
179 * language.h (language_data): Remove la_macro_expansion field.
180 (language_defn::macro_expansion): New member function.
181 * m2-lang.c (m2_language_data): Remove la_macro_expansion
182 initializer.
183 * objc-lang.c (objc_language_data): Likewise.
184 (objc_language::macro_expansion): New member function.
185 * opencl-lang.c (opencl_language_data): Likewise.
186 (opencl_language::macro_expansion): New member function.
187 * p-lang.c (pascal_language_data): Remove la_macro_expansion
188 initializer.
189 * rust-lang.c (rust_language_data): Likewise.
190 * symtab.c (default_collect_symbol_completion_matches_break_on):
191 Update call to macro_expansion.
192
193 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
194
195 * ada-lang.c (ada_language_data): Remove la_array_ordering
196 initializer.
197 * c-lang.c (c_language_data): Likewise.
198 (cplus_language_data): Likewise.
199 (asm_language_data): Likewise.
200 (minimal_language_data): Likewise.
201 * d-lang.c (d_language_data): Likewise.
202 * dwarf2/read.c (read_array_order): Update for call to
203 array_ordering.
204 * f-lang.c (f_language_data): Remove la_array_ordering
205 initializer.
206 (f_language::array_ordering): New member function.
207 * go-lang.c (go_language_data): Remove la_array_ordering
208 initializer.
209 * language.c (unknown_language_data): Likewise.
210 (auto_language_data): Likewise.
211 * language.h (language_data): Delete la_array_ordering field.
212 (language_defn::array_ordering): New member function.
213 * m2-lang.c (m2_language_data): Remove la_array_ordering
214 initializer.
215 * objc-lang.c (objc_language_data): Likewise.
216 * opencl-lang.c (opencl_language_data): Likewise.
217 * p-lang.c (pascal_language_data): Likewise.
218 * rust-lang.c (rust_language_data): Likewise.
219
220 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
221
222 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
223 initializer.
224 * c-lang.c (c_language_data): Likewise.
225 (cplus_language_data): Likewise.
226 (asm_language_data): Likewise.
227 (minimal_language_data): Likewise.
228 * d-lang.c (d_language_data): Likewise.
229 * f-lang.c (f_language_data): Likewise.
230 (f_language::case_sensitivity): New member function.
231 * go-lang.c (go_language_data): Remove la_case_sensitivity
232 initializer.
233 * language.c (enum case_mode): Moved here from language.h.
234 (case_mode): Make static.
235 (show_case_command): Update for case_sensitivity being a method.
236 (set_case_command): Likewise.
237 (set_range_case): Likewise.
238 (unknown_language_data): Remove la_case_sensitivity initializer.
239 (auto_language_data): Likewise.
240 * language.h (case_mode): Delete, move enum declaration to
241 language.c.
242 (language_data): Delete la_case_sensitivity field.
243 (language_defn::case_sensitivity): New member function.
244 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
245 initializer.
246 * objc-lang.c (objc_language_data): Likewise.
247 * opencl-lang.c (opencl_language_data): Likewise.
248 * p-lang.c (pascal_language_data): Likewise.
249 * rust-lang.c (rust_language_data): Likewise.
250
251 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
252
253 * ada-lang.c (ada_language_data): Remove la_range_check
254 initializer.
255 * c-lang.c (c_language_data): Likewise.
256 (cplus_language_data): Likewise.
257 (asm_language_data): Likewise.
258 (minimal_language_data): Likewise.
259 * d-lang.c (d_language_data): Likewise.
260 * f-lang.c (f_language_data): Likewise.
261 (f_language::range_checking_on_by_default): New member function.
262 * go-lang.c (go_language_data): Remove la_range_check initializer.
263 * language.c (enum range_mode): Moved here from language.h.
264 (range_mode): Made static.
265 (show_range_command): Update to use
266 range_checking_on_by_default.
267 (set_range_command): Likewise.
268 (set_range_case): Likewise.
269 (unknown_language_data): Remove la_range_check initializer.
270 (auto_language_data): Likewise.
271 * language.h (range_mode): Delete. Enum definition moved to
272 language.c.
273 (language_data): Remove la_range_check field.
274 (language_defn::range_checking_on_by_default): New member
275 function.
276 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
277 (m2_language::range_checking_on_by_default): New member function.
278 * objc-lang.c (objc_language_data): Remove la_range_check
279 initializer.
280 * opencl-lang.c (opencl_language_data): Likewise.
281 * p-lang.c (pascal_language_data): Likewise.
282 (pascal_language::range_checking_on_by_default): New member
283 function.
284 * rust-lang.c (rust_language_data): Remove la_range_check
285 initializer.
286 (rust_language::range_checking_on_by_default): New member
287 function.
288
289 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * dwarf2/read.c (dwarf2_physname): Remove special case for
292 language_go.
293 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
294 member function.
295
296 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
297
298 * ada-lang.c (ada_language_data): Remove
299 la_store_sym_names_in_linkage_form_p initializer.
300 (ada_language::store_sym_names_in_linkage_form_p): New member
301 function.
302 * c-lang.c (c_language_data): Remove
303 la_store_sym_names_in_linkage_form_p initializer.
304 (c_language::store_sym_names_in_linkage_form_p): New member
305 function.
306 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
307 initializer.
308 (asm_language_data): Likewise.
309 (asm_language::store_sym_names_in_linkage_form_p): New member
310 function.
311 (minimal_language_data): Remove
312 la_store_sym_names_in_linkage_form_p initializer.
313 (minimal_language::store_sym_names_in_linkage_form_p): New member
314 function.
315 * d-lang.c (d_language_data): Remove
316 la_store_sym_names_in_linkage_form_p initializer.
317 * dwarf2/read.c (dwarf2_physname): Update call to
318 store_sym_names_in_linkage_form_p.
319 * f-lang.c (f_language_data): Remove
320 la_store_sym_names_in_linkage_form_p initializer.
321 * go-lang.c (go_language_data): Remove
322 la_store_sym_names_in_linkage_form_p initializer.
323 * language.c (unknown_language_data): Remove
324 la_store_sym_names_in_linkage_form_p initializer.
325 (unknown_language::store_sym_names_in_linkage_form_p): New member
326 function.
327 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
328 initializer.
329 (auto_language::store_sym_names_in_linkage_form_p): New member
330 function.
331 * language.h (language_data): Remove
332 la_store_sym_names_in_linkage_form_p member variable.
333 (language_defn::store_sym_names_in_linkage_form_p): New member
334 function.
335 * m2-lang.c (m2_language_data): Remove
336 la_store_sym_names_in_linkage_form_p initializer.
337 * objc-lang.c (objc_language_data): Likewise.
338 * opencl-lang.c (opencl_language_data): Likewise.
339 * p-lang.c (pascal_language_data): Likewise.
340 * rust-lang.c (rust_language_data): Likewise.
341
342 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
343
344 * ada-lang.c (ada_language_data): Remove string_lower_bound
345 initializer.
346 * c-lang.c (c_language_data): Likewise.
347 (cplus_language_data): Likewise.
348 (asm_language_data): Likewise.
349 (minimal_language_data): Likewise.
350 * d-lang.c (d_language_data): Likewise.
351 * f-lang.c (f_language_data): Likewise.
352 * go-lang.c (go_language_data): Likewise.
353 * language.c (unknown_language_data): Likewise.
354 (auto_language_data): Likewise.
355 * language.h (language_data): Remove string_lower_bound field.
356 (language_defn::string_lower_bound): New member function.
357 * m2-lang.c (m2_language_data): Remove string_lower_bound
358 initializer.
359 (m2_language::string_lower_bound): New member function.
360 * objc-lang.c (objc_language_data): Remove string_lower_bound
361 initializer.
362 * opencl-lang.c (opencl_language_data): Likewise.
363 * p-lang.c (pascal_language_data): Likewise.
364 * rust-lang.c (rust_language_data): Likewise.
365 * valops.c (value_cstring): Update call to string_lower_bound.
366 (value_string): Likewise.
367 * value.c (allocate_repeated_value): Likewise.
368
369 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
370
371 * valops.c (value_repeat): Fix incorrect argument name in comment.
372
373 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
374
375 * ada-lang.c (ada_language_data): Remove c_style_arrays
376 initializer.
377 (ada_language::c_style_arrays_p): New member fuction.
378 * c-lang.c (c_language_data): Remove c_style_arrays
379 initializer.
380 (cplus_language_data): Likewise.
381 (asm_language_data): Likewise.
382 (minimal_language_data): Likewise.
383 * d-lang.c (d_language_data): Likewise.
384 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
385 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
386 (f_language::c_style_arrays_p): New member function.
387 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
388 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
389 * language.c (unknown_language_data): Remove c_style_arrays
390 initializer.
391 (auto_language_data): Likewise.
392 * language.h (language_data): Remove c_style_arrays field.
393 (language_defn::c_style_arrays_p): New member function.
394 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
395 (m2_language::c_style_arrays_p): New member function.
396 * objc-lang.c (objc_language_data): Remove c_style_arrays
397 initializer.
398 * opencl-lang.c (opencl_language_data): Likewise.
399 * p-lang.c (pascal_language_data): Likewise.
400 * rust-lang.c (rust_language_data): Likewise.
401 * valarith.c (value_subscript): Update call to c_style_arrays_p,
402 and update local variable to a bool.
403 * valops.c (value_cast): Update call to c_style_arrays_p.
404 (value_array): Likewise.
405 * value.c (coerce_array): Likewise.
406
407 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
408
409 * ada-lang.c (ada_language_data): Remove la_language initializer.
410 * c-lang.c (c_language_data): Likewise.
411 (cplus_language_data): Likewise.
412 (asm_language_data): Likewise.
413 (minimal_language_data): Likewise.
414 * d-lang.c (d_language_data): Likewise.
415 * f-lang.c (f_language_data): Likewise.
416 * go-lang.c (go_language_data): Likewise.
417 * language.c (unknown_language_data): Likewise.
418 (auto_language_data): Likewise.
419 * language.h (language_data): Remove la_language field.
420 (language_defn::language_defn): Initialise la_language field.
421 (language_defn::la_language): New member variable.
422 * m2-lang.c (m2_language_data): Remove la_language field.
423 * objc-lang.c (objc_language_data): Likewise.
424 * opencl-lang.c (opencl_language_data): Likewise.
425 * p-lang.c (pascal_language_data): Likewise.
426 * rust-lang.c (rust_language_data): Likewise.
427
428 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
429
430 * ada-lang.c (ada_extensions): Delete, moved into
431 ada_language::filename_extensions.
432 (ada_language_data): Remove la_filename_extensions initializer.
433 (ada_language::filename_extensions): New member function.
434 * c-lang.c (c_extensions): Delete, moved into
435 c_language::filename_extensions.
436 (c_language_data): Remove la_filename_extensions initializer.
437 (c_language::filename_extensions): New member function.
438 (cplus_extensions): Delete, moved into
439 cplus_language::filename_extensions.
440 (cplus_language_data): Remove la_filename_extensions initializer.
441 (cplus_language::filename_extensions): New member function.
442 (asm_extensions): Delete, moved into
443 asm_language::filename_extensions.
444 (asm_language_data): Remove la_filename_extensions initializer.
445 (asm_language::filename_extensions): New member function.
446 (minimal_language_data): Remove la_filename_extensions
447 initializer.
448 * d-lang.c (d_extensions): Delete, moved into
449 d_language::filename_extensions.
450 (d_language_data): Remove la_filename_extensions initializer.
451 (d_language::filename_extensions): New member function.
452 * f-lang.c (f_extensions): Delete, moved into
453 f_language::filename_extensions.
454 (f_language_data): Remove la_filename_extensions initializer.
455 (f_language::filename_extensions): New member function.
456 * go-lang.c (go_language_data): Remove la_filename_extensions
457 initializer.
458 * language.c (add_set_language_command): Update now that
459 filename_extensions returns a vector.
460 (unknown_language_data): Remove la_filename_extensions
461 initializer.
462 (auto_language_data): Likewise.
463 * language.h (language_data): Remove la_filename_extensions field.
464 (language_defn::filename_extensions): New member function.
465 * m2-lang.c (m2_language_data): Remove la_filename_extensions
466 initializer.
467 * objc-lang.c (objc_extensions): Delete, moved into
468 objc_language::filename_extensions.
469 (objc_language_data): Remove la_filename_extensions initializer.
470 (objc_language::filename_extensions): New member function.
471 * opencl-lang.c (opencl_language_data): Remove
472 la_filename_extensions initializer.
473 * p-lang.c (pascal_extensions): Delete, moved into
474 pascal_language::filename_extensions.
475 (pascal_language_data): Remove la_filename_extensions initializer.
476 (pascal_language::filename_extensions): New member function.
477 * rust-lang.c (rust_extensions): Delete, moved into
478 rust_language::filename_extensions.
479 (rust_language_data): Remove la_filename_extensions initializer.
480 (rust_language::filename_extensions): New member function.
481 * symfile.c (add_filename_language): Add new assert.
482
483 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
484
485 * ada-lang.c (ada_language_data): Remove la_name and
486 la_natural_name initializers.
487 (ada_language::name): New member function.
488 (ada_language::natural_name): New member function.
489 * c-lang.c (c_language_data): Remove la_name and
490 la_natural_name initializers.
491 (c_language::name): New member function.
492 (c_language::natural_name): New member function.
493 (cplus_language_data): Remove la_name and
494 la_natural_name initializers.
495 (cplus_language::name): New member function.
496 (cplus_language::natural_name): New member function.
497 (asm_language_data): Remove la_name and
498 la_natural_name initializers.
499 (asm_language::name): New member function.
500 (asm_language::natural_name): New member function.
501 (minimal_language_data): Remove la_name and
502 la_natural_name initializers.
503 (minimal_language::name): New member function.
504 (minimal_language::natural_name): New member function.
505 * compile/compile.c (compile_to_object): Update call to
506 lanugage_defn::name.
507 * d-lang.c (d_language_data): Remove la_name and
508 la_natural_name initializers.
509 (d_language::name): New member function.
510 (d_language::natural_name): New member function.
511 * expprint.c (print_subexp_standard): Update call to
512 language_defn::name.
513 (dump_raw_expression): Likewise
514 (dump_prefix_expression): Likewise.
515 * f-lang.c (f_language_data): Remove la_name and
516 la_natural_name initializers.
517 (f_language::name): New member function.
518 (f_language::natural_name): New member function.
519 * go-lang.c (go_language_data): Remove la_name and
520 la_natural_name initializers.
521 (go_language::name): New member function.
522 (go_language::natural_name): New member function.
523 * language.c (show_language_command): Update call to
524 language_defn::name.
525 (set_language_command): Likewise.
526 (language_enum): Likewise.
527 (language_str): Likewise.
528 (add_set_language_command): Likewise, use
529 language_defn::natural_name in the doc string.
530 (unknown_language_data): Remove la_name and
531 la_natural_name initializers.
532 (unknown_language::name): New member function.
533 (unknown_language::natural_name): New member function.
534 (auto_language_data): Remove la_name and
535 la_natural_name initializers.
536 (auto_language::name): New member function.
537 (auto_language::natural_name): New member function.
538 (language_lookup_primitive_type_as_symbol): Update call to
539 language_defn::name.
540 * language.h (language_data): Remove la_name and la_natural_name
541 member variables.
542 (language_defn::name): New member function.
543 (language_defn::natural_name): New member function.
544 * m2-lang.c (m2_language_data): Remove la_name and
545 la_natural_name initializers.
546 (m2_language::name): New member function.
547 (m2_language::natural_name): New member function.
548 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
549 language_defn::natural_name.
550 * objc-lang.c (objc_language_data): Remove la_name and
551 la_natural_name initializers.
552 (objc_language::name): New member function.
553 (objc_language::natural_name): New member function.
554 * opencl-lang.c (opencl_language_data): Remove la_name and
555 la_natural_name initializers.
556 (opencl_language::name): New member function.
557 (opencl_language::natural_name): New member function.
558 * p-lang.c (pascal_language_data): Remove la_name and
559 la_natural_name initializers.
560 (pascal_language::name): New member function.
561 (pascal_language::natural_name): New member function.
562 * rust-lang.c (rust_language_data): Remove la_name and
563 la_natural_name initializers.
564 (rust_language::name): New member function.
565 (rust_language::natural_name): New member function.
566 * symtab.c (lookup_language_this): Update call to
567 language_defn::name.
568
569 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * ada-lang.c (ada_language_data): Remove la_name_of_this
572 initializer.
573 * ax-gdb.c (gen_expr): Update call to name_of_this.
574 * c-exp.y (classify_name): Likewise.
575 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
576 (cplus_language_data): Likewise.
577 (cplus_language::name_of_this): New member function.
578 (asm_language_data): Remove la_name_of_this initializer.
579 (minimal_language_data): Likewise.
580 * d-lang.c (d_language_data): Likewise.
581 (d_language::name_of_this): New member function.
582 * expprint.c (print_subexp_standard): Update call to name_of_this.
583 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
584 * go-lang.c (go_language_data): Likewise.
585 * language.c (unknown_language_data): Likewise.
586 (unknown_language::name_of_this): New member function.
587 (auto_language_data): Remove la_name_of_this initializer.
588 (auto_language::name_of_this): New member function.
589 * language.h (language_data): Delete la_name_of_this member
590 variable.
591 (language_defn::name_of_this): New member function.
592 * m2-lang.c (m2_language_data): Remove la_name_of_this
593 initializer.
594 * objc-lang.c (objc_language_data): Likewise.
595 (objc_language::name_of_this): New member function.
596 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
597 initializer.
598 * p-lang.c (pascal_language_data): Likewise.
599 (pascal_language::name_of_this): New member function.
600 * rust-lang.c (rust_language_data): Remove la_name_of_this
601 initializer.
602 * symtab.c (lookup_language_this): Update call to name_of_this.
603 (lookup_symbol_aux): Likewise.
604 * valops.c (value_of_this): Likewise.
605
606 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * ada-lang.c (ada_language_data): Remove
609 la_struct_too_deep_ellipsis initializer.
610 (ada_language::struct_too_deep_ellipsis): New member function.
611 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
612 initializer.
613 (cplus_language_data): Likewise.
614 (asm_language_data): Likewise.
615 (minimal_language_data): Likewise.
616 * cp-valprint.c (cp_print_value): Update call to
617 struct_too_deep_ellipsis.
618 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
619 initializer.
620 * f-lang.c (f_language_data): Likewise.
621 (f_language::struct_too_deep_ellipsis): New member function.
622 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
623 initializer.
624 * language.c (unknown_language_data): Likewise.
625 (auto_language_data): Likewise.
626 * language.h (language_data): Delete la_struct_too_deep_ellipsis
627 member variable.
628 (language_defn::struct_too_deep_ellipsis): New member function.
629 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
630 initializer.Q
631 * objc-lang.c (objc_language_data): Likewise.
632 * opencl-lang.c (opencl_language_data): Likewise.
633 * p-lang.c (pascal_language_data): Likewise.
634 * rust-lang.c (rust_language_data): Likewise.
635 * valprint.c (val_print_check_max_depth): Update call to
636 struct_too_deep_ellipsis.
637
638 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
639
640 * MAINTAINERS (Write After Approval): Add myself.
641
642 2020-09-15 Tom Tromey <tom@tromey.com>
643
644 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
645 Remove.
646
647 2020-09-15 Tom Tromey <tom@tromey.com>
648
649 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
650 and TYPE_CODE_METHODPTR cases.
651 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
652 (c_value_print_inner): Update.
653 * valprint.c (generic_value_print_memberptr): New function, from
654 c_value_print_memberptr.
655 (generic_value_print): Use it. Call cplus_print_method_ptr.
656
657 2020-09-15 Tom Tromey <tromey@adacore.com>
658
659 * python/python-internal.h (PyInt_FromLong): Remove define.
660 * python/py-value.c (convert_value_from_python): Use
661 gdb_py_object_from_longest.
662 * python/py-type.c (typy_get_code): Use
663 gdb_py_object_from_longest.
664 * python/py-symtab.c (salpy_get_line): Use
665 gdb_py_object_from_longest.
666 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
667 gdb_py_object_from_longest.
668 * python/py-record.c (recpy_gap_reason_code): Use
669 gdb_py_object_from_longest.
670 * python/py-record-btrace.c (recpy_bt_insn_size)
671 (recpy_bt_func_level, btpy_list_count): Use
672 gdb_py_object_from_longest.
673 * python/py-infthread.c (gdbpy_create_ptid_object): Use
674 gdb_py_object_from_longest. Fix error handling.
675 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
676 gdb_py_object_from_longest.
677 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
678 gdb_py_object_from_longest.
679 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
680 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
681 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
682
683 2020-09-15 Tom Tromey <tromey@adacore.com>
684
685 * python/python.c (gdbpy_parameter_value): Use
686 gdb_py_object_from_ulongest.
687
688 2020-09-15 Tom Tromey <tromey@adacore.com>
689
690 * python/py-infevents.c (create_register_changed_event_object):
691 Use gdb_py_object_from_longest.
692 * python/py-exitedevent.c (create_exited_event_object): Use
693 gdb_py_object_from_longest.
694
695 2020-09-15 Tom Tromey <tromey@adacore.com>
696
697 * python/python.c (gdbpy_parameter_value): Use
698 gdb_py_object_from_longest.
699 * python/py-type.c (convert_field, typy_range): Use
700 gdb_py_object_from_longest.
701 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
702 gdb_py_object_from_longest.
703 * python/py-lazy-string.c (stpy_get_length): Use
704 gdb_py_object_from_longest.
705 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
706 gdb_py_object_from_longest.
707 * python/py-infevents.c (create_memory_changed_event_object): Use
708 gdb_py_object_from_longest.
709 * python/py-inferior.c (infpy_get_num): Use
710 gdb_py_object_from_longest.
711 (infpy_get_pid): Likewise.
712
713 2020-09-15 Tom Tromey <tromey@adacore.com>
714
715 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
716 defines.
717 * python/py-value.c (valpy_long): Use
718 gdb_py_object_from_ulongest.
719 * python/py-symtab.c (salpy_get_pc): Use
720 gdb_py_object_from_ulongest.
721 (salpy_get_last): Likewise.
722 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
723 gdb_py_object_from_ulongest.
724 * python/py-lazy-string.c (stpy_get_address): Use
725 gdb_py_object_from_ulongest.
726 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
727 * python/py-arch.c (archpy_disassemble): Use
728 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
729 error handling.
730
731 2020-09-15 Tom Tromey <tromey@adacore.com>
732
733 * python/python-internal.h (gdb_py_long_from_longest): Remove
734 defines.
735 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
736 * python/py-type.c (convert_field, typy_get_sizeof): Use
737 gdb_py_object_from_longest.
738 * python/py-record-btrace.c (btpy_list_index): Use
739 gdb_py_object_from_longest.
740
741 2020-09-15 Tom Tromey <tromey@adacore.com>
742
743 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
744 * python/py-record.c (recpy_element_number): Use
745 gdb_py_object_from_longest.
746 (recpy_gap_number): Likewise.
747
748 2020-09-15 Tom Tromey <tromey@adacore.com>
749
750 * top.c (ui::ui): Update.
751 (highest_ui_num): Remove.
752 * top.h (struct ui) <num>: Remove.
753
754 2020-09-15 Tom Tromey <tromey@adacore.com>
755
756 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
757 * ui-style.c (ansi_regex_text): Now array.
758 * rust-exp.y (number_regex_text): Now array.
759 * linespec.c (linespec_quote_characters): Now array.
760 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
761 Now arrays.
762
763 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
764
765 * debuginfod-support.c (debuginfod_client_deleter): New.
766 (debuginfod_client_up): New.
767 (debuginfod_init): Return debuginfod_client_up.
768 (debuginfod_source_query): Adjust.
769 (debuginfod_debuginfo_query): Adjust.
770
771 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
772
773 * debuginfod-support.c (debuginfod_source_query): Use
774 make_unique_xstrdup.
775
776 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
777
778 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
779 with `type::instance_flags`.
780
781 2020-09-14 Michael Mullin <masmullin@gmail.com>
782
783 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
784 Remove baton parameter.
785
786 2020-09-14 Pedro Alves <pedro@palves.net>
787
788 * Makefile.in (SELFTESTS_SRCS): Add
789 unittests/enum-flags-selftests.c.
790 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
791 btrace_function_flags instead of enum btrace_function_flag.
792 * compile/compile-c-types.c (convert_qualified): Use
793 enum_flags::raw.
794 * compile/compile-cplus-symbols.c (convert_one_symbol)
795 (convert_symbol_bmsym):
796 * compile/compile-cplus-types.c (compile_cplus_convert_method)
797 (compile_cplus_convert_struct_or_union_methods)
798 (compile_cplus_instance::convert_qualified_base):
799 * go-exp.y (parse_string_or_char): Add cast to int.
800 * unittests/enum-flags-selftests.c: New file.
801 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
802 type to btrace_thread_flags from btrace_thread_flag.
803 (record_btrace_cancel_resume, record_btrace_step_thread): Change
804 local's type to btrace_thread_flags from btrace_thread_flag. Add
805 cast in DEBUG call.
806
807 2020-09-14 Pedro Alves <pedro@palves.net>
808
809 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
810 * gdbtypes.c (address_space_name_to_int): Rename to ...
811 (address_space_name_to_type_instance_flags): ... this.
812 (address_space_int_to_name): Rename to ...
813 (address_space_type_instance_flags_to_name): ... this.
814 * gdbtypes.h (address_space_name_to_int): Rename to ...
815 (address_space_name_to_type_instance_flags): ... this.
816 (address_space_int_to_name): Rename to ...
817 (address_space_type_instance_flags_to_name): ... this.
818 * type-stack.c (type_stack::insert): Adjust to rename.
819 * type-stack.h (type_stack::insert): Likewise.
820
821 2020-09-14 Pedro Alves <pedro@palves.net>
822 Andrew Burgess <andrew.burgess@embecosm.com>
823
824 * avr-tdep.c (avr_address_class_type_flags): Return
825 type_instance_flags.
826 (avr_address_class_type_flags_to_name): Take a
827 type_instance_flags.
828 (avr_address_class_name_to_type_flags): Return bool and take a
829 type_instance_flags.
830 * d-lang.c (build_d_types): Use type::set_instance_flags.
831 * ft32-tdep.c (ft32_address_class_type_flags): Return
832 type_instance_flags.
833 (ft32_address_class_type_flags_to_name): Take a
834 type_instance_flags.
835 (ft32_address_class_name_to_type_flags): Return bool and take a
836 type_instance_flags.
837 (ft32_gdbarch_init): Use type::set_instance_flags.
838 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
839 * gdbarch.h, gdbarch.c: Regenerate.
840 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
841 (address_class_name_to_type_flags): Use type_instance_flags and
842 bool.
843 * gdbtypes.c (address_space_name_to_int)
844 (address_space_int_to_name, make_qualified_type): Use
845 type_instance_flags.
846 (make_qualified_type): Use type_instance_flags and
847 type::set_instance_flags.
848 (make_type_with_address_space, make_cv_type, make_vector_type)
849 (check_typedef): Use type_instance_flags.
850 (recursive_dump_type): Cast type_instance_flags to unsigned for
851 printing.
852 (copy_type_recursive): Use type::set_instance_flags.
853 (gdbtypes_post_init): Use type::set_instance_flags.
854 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
855 <m_instance_flags>: ... this.
856 <instance_flags, set_instance_flags>: New methods.
857 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
858 (SET_TYPE_INSTANCE_FLAGS): New.
859 (address_space_name_to_int, address_space_int_to_name)
860 (make_type_with_address_space): Pass flags using
861 type_instance_flags instead of int.
862 * stabsread.c (cleanup_undefined_types_noname): Use
863 type::set_instance_flags.
864 * s390-tdep.c (s390_address_class_type_flags): Return
865 type_instance_flags.
866 (s390_address_class_type_flags_to_name): Take a
867 type_instance_flags.
868 (s390_address_class_name_to_type_flags): Return bool and take a
869 type_instance_flags.
870 * type-stack.c (type_stack::follow_types): Use
871 type_instance_flags.
872 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
873
874 2020-09-14 Tom Tromey <tromey@adacore.com>
875
876 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
877 * x86-tdep.c (x86_is_thunk_register_name)
878 (x86_in_indirect_branch_thunk): Update.
879 * sparc64-tdep.c (sparc64_fpu_register_names)
880 (sparc64_cp0_register_names, sparc64_register_names)
881 (sparc64_pseudo_register_names): Now const.
882 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
883 cp0_registers_num>: Now const.
884 * sparc-tdep.c (sparc_core_register_names)
885 (sparc32_fpu_register_names, sparc32_cp0_register_names)
886 (sparc32_pseudo_register_names): Now const.
887 (validate_tdesc_registers): Update.
888 * rust-lang.c (rust_extensions): Now const.
889 * p-lang.c (p_extensions): Now const.
890 * objc-lang.c (objc_extensions): Now const.
891 * nto-tdep.c (nto_thread_state_str): Now const.
892 * moxie-tdep.c (moxie_register_names): Now const.
893 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
894 Now const.
895 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
896 (mips_linux_reg_names): Now const.
897 (mips_gdbarch_init): Update.
898 * microblaze-tdep.c (microblaze_register_names): Now const.
899 * m68k-tdep.c (m68k_register_names): Now const.
900 * m32r-tdep.c (m32r_register_names): Now const.
901 * ia64-tdep.c (ia64_register_names): Now const.
902 * i386-tdep.h (struct gdbarch_tdep) <register_names,
903 ymmh_register_names, ymm16h_regnum, mpx_register_names,
904 k_register_names, zmmh_register_names, xmm_avx512_register_names,
905 ymm_avx512_register_names, pkeys_register_names>: Now const.
906 * i386-tdep.c (i386_register_names, i386_zmm_names)
907 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
908 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
909 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
910 * f-lang.c (f_extensions): Now const.
911 * d-lang.c (d_extensions): Now const.
912 * csky-tdep.c (csky_register_names): Now const.
913 * charset.c (default_charset_names, charset_enum): Now const.
914 (_initialize_charset): Update.
915 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
916 const.
917 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
918 (bsd_uthread_solib_loaded): Update.
919 (bsd_uthread_state): Now const.
920 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
921 (amd64_ymm_avx512_names, amd64_ymmh_names)
922 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
923 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
924 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
925 (amd64_dword_names): Now const.
926 * agent.c (can_use_agent_enum): Now const.
927 * ada-tasks.c (task_states, long_task_states): Now const.
928 * ada-lang.c (known_runtime_file_name_patterns)
929 (known_auxiliary_function_name_patterns, attribute_names)
930 (standard_exc, ada_extensions): Now const.
931
932 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
933
934 * bcache.h (struct bcache) <bcache>: Remove constructor.
935 <m_hash_function, m_compare_function>: Remove.
936 <~bcache>: Make virtual.
937 <compare>: Remove static method, introduce virtual method.
938 <default_hash>: Remove.
939 <hash>: New virtual method.
940 * bcache.c (bcache::expand_hash_table): Update.
941 (bcache::insert): Update.
942 (bcache::hash): New.
943 (bcache::compare): Update comment and parameter names.
944 * gdbtypes.c (types_deeply_equal): Update.
945 * psymtab.h (struct psymbol_bcache): New struct.
946 (class psymtab_storage) <psymtab_storage>: Make default.
947 <psymbol_cache>: Change type to psymbol_bcache.
948 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
949 (psymbol_hash): Change to...
950 (psymbol_bcache::hash): ... this.
951 (psymbol_compare): Change to...
952 (psymbol_bcache::compare): ... this.
953
954 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
955
956 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
957 checking for initial lwp.
958
959 2020-09-14 Tom Tromey <tromey@adacore.com>
960
961 * m68k-tdep.c (m68k_extract_return_value): Use
962 pointer_result_regnum.
963 (m68k_store_return_value): Likewise.
964 (m68k_reg_struct_return_p): Handle vectors and arrays.
965 (m68k_return_value): Handle arrays.
966 (m68k_svr4_return_value): Fix single-element aggregate handling.
967 Handle long double. Adjust for embedded ABI.
968 (m68k_svr4_init_abi): Set pointer_result_regnum.
969 (m68k_embedded_init_abi): New function.
970 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
971 (m68k_osabi_sniffer): New function.
972 (_initialize_m68k_tdep): Register osabi sniffer.
973 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
974 member.
975
976 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
977
978 * xml-support.c (xml_fetch_content_from_file): Replace xfree
979 with gdb::unique_xmalloc_ptr<char>.
980
981 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
982
983 * xml-support.h (xml_fetch_another): Change type to be a
984 function_view.
985 (xml_process_xincludes): Remove baton parameter.
986 (xml_fetch_content_from_file): Change baton parameter to
987 dirname.
988 * xml-support.c (struct xinclude_parsing_data)
989 <xinclude_parsing_data>: Remove baton parameter.
990 <fetcher_baton>: Remove.
991 (xinclude_start_include): Adjust.
992 (xml_process_xincludes): Adjust.
993 (xml_fetch_content_from_file): Replace baton parameter with
994 dirname.
995 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
996 (xml_init_syscalls_info): Use a lambda.
997 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
998 (file_read_description_xml): Use a lambda.
999 (fetch_available_features_from_target): Change baton parameter
1000 to target_ops.
1001 (target_read_description_xml): Use a lambda.
1002 (target_fetch_description_xml): Use a lambda.
1003 (string_read_description_xml): Update.
1004
1005 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1006
1007 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1008 uses with type::endianity_is_not_default.
1009
1010 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1011
1012 * gdbtypes.h (struct type) <endianity_is_not_default,
1013 set_endianity_is_not_default>: New methods.
1014 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1015 type::endianity_is_not_default, change all write call sites to
1016 use type::set_endianity_is_not_default.
1017
1018 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1019
1020 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1021 uses with type::is_fixed_instance.
1022
1023 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1024
1025 * gdbtypes.h (struct type) <is_fixed_instance,
1026 set_is_fixed_instance>: New methods.
1027 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1028 write call sites to use type::set_is_fixed_instance.
1029
1030 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1031
1032 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1033 uses with type::is_gnu_ifunc.
1034
1035 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1036
1037 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1038 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1039 use type::set_is_gnu_ifunc.
1040
1041 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1042
1043 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1044 uses with type::stub_is_supported.
1045
1046 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1047
1048 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1049 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1050 use type::set_stub_is_supported.
1051
1052 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1053
1054 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1055 uses with type::is_vector.
1056
1057 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1058
1059 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1060 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1061 use type::set_is_vector.
1062
1063 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1064
1065 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1066 uses with type::has_varargs.
1067
1068 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1069
1070 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1071 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1072 use type::set_has_varargs.
1073
1074 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1075
1076 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1077 uses with type::is_prototyped.
1078
1079 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1080
1081 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1082 New methods.
1083 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1084 call sites to use type::set_is_prototyped.
1085
1086 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1087
1088 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1089 uses with type::target_is_stub.
1090
1091 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1092
1093 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1094 New methods.
1095 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1096 sites to use type::set_target_is_stub.
1097
1098 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1099
1100 * gdbtypes.h (TYPE_STUB): Remove, replace all
1101 uses with type::is_stub.
1102
1103 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1104
1105 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1106 (TYPE_STUB): Use type::is_stub, change all write call sites to
1107 use type::set_is_stub.
1108
1109 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1110
1111 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1112 type::has_no_signedness.
1113
1114 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1115
1116 * gdbtypes.h (struct type) <has_no_signedness,
1117 set_has_no_signedness>: New methods.
1118 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1119 call sites to use type::set_has_no_signedness.
1120
1121 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1122
1123 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1124 type::is_unsigned.
1125
1126 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1127
1128 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1129 methods.
1130 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1131 sites to use type::set_is_unsigned.
1132
1133 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1134 Adam Renquinha <arenquinha@cimeq.qc.ca>
1135
1136 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1137 pointer and stack frame offset when unwinding.
1138
1139 2020-09-13 Pedro Alves <pedro@palves.net>
1140
1141 * NEWS: Document "-break-insert --qualified".
1142 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1143
1144 2020-09-13 Pedro Alves <pedro@palves.net>
1145
1146 * linespec.c (classify_mtype, compare_msyms): Delete.
1147 (search_minsyms_for_name): Remove classification logic. Instead
1148 filter out trampoline symbols if we also found an external
1149 function of the same name.
1150
1151 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1152
1153 * NEWS: Create a new section for the next release branch.
1154 Rename the section of the current branch, now that it has
1155 been cut.
1156
1157 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1158
1159 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1160 * version.in: Bump version to 11.0.50.DATE-git.
1161
1162 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1163
1164 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1165
1166 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1167 Felix Willgerodt <Felix.Willgerodt@intel.com>
1168
1169 * gdbarch.sh: Added bfloat16 type.
1170 * gdbarch.c: Regenerated.
1171 * gdbarch.h: Regenerated.
1172 * gdbtypes.c (floatformats_bfloat16): New struct.
1173 (gdbtypes_post_init): Add builtin_bfloat16.
1174 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1175 (floatformats_bfloat16): New struct.
1176 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1177 (i386_ymm_type): Add field "v16_bfloat16"
1178 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1179 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1180 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1181 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1182 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1183 * features/i386/64bit-avx512.c: Regenerated.
1184 * features/i386/64bit-sse.xml: Add bfloat16 type.
1185 * features/i386/64bit-sse.c: Regenerated.
1186
1187 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1188
1189 * i386-tdep.c (i386_zmm_type): Fix field names.
1190 (i386_ymm_type): Fix field names.
1191
1192 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1193
1194 * breakpoint.c: Fix typo in the help message of the
1195 "set breakpoint condition-evaluation" command.
1196
1197 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1198
1199 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1200 * (nbsd_nat_target::pid_to_exec_file)
1201 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1202 (nbsd_nat_target::post_startup_inferior)
1203 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1204 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1205 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1206 * (nbsd_thread_lister): Remove.
1207
1208 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1209
1210 * fork-inferior.c (startup_inferior): Avoid double free.
1211
1212 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1213
1214 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1215 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1216
1217 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1218
1219 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1220 * netbsd-nat.c: Include <sys/ptrace.h>.
1221 * (netbsd_nat::enable_proc_events): Add.
1222
1223 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1224
1225 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1226 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1227 (netbsd_nat::for_each_thread): Add.
1228 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1229 "gdbsupport/common-debug.h".
1230 * (netbsd_nat::netbsd_thread_lister)
1231 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1232 (netbsd_nat::for_each_thread): Add.
1233
1234 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1235
1236 * netbsd-nat.h: Include <unistd.h>.
1237 * (netbsd_nat::pid_to_exec_file): Add.
1238 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1239 * (netbsd_nat::pid_to_exec_file) Add.
1240
1241 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1242
1243 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1244
1245 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1246
1247 * netbsd-nat.h: New file.
1248 * netbsd-nat.c: Likewise.
1249
1250 2020-09-09 Tom Tromey <tromey@adacore.com>
1251
1252 * ada-lang.c (remove_extra_symbols): Do not increment when
1253 removing an element
1254
1255 2020-09-08 Tom Tromey <tromey@adacore.com>
1256
1257 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1258
1259 2020-09-08 Tom Tromey <tromey@adacore.com>
1260
1261 PR win32/25302:
1262 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1263 (gdb_bfd_init_data): New function.
1264 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1265
1266 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1267
1268 * infrun.c (fetch_inferior_event): Use
1269 `switch_to_target_no_thread` to switch the target.
1270
1271 2020-09-06 Tom Tromey <tom@tromey.com>
1272
1273 * symfile.h (dwarf2_free_objfile): Don't declare.
1274
1275 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1276
1277 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1278 to match 16 byte real/complex type generated by Flang compiler.
1279
1280 2020-09-03 Tom de Vries <tdevries@suse.de>
1281
1282 PR breakpoint/26546
1283 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1284 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1285
1286 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1287
1288 * maint.c (index_digits): New function.
1289 (struct maint_print_section_data): Remove.
1290 (print_bfd_section_info): Remove print_data parameter, add arg
1291 and index_digits.
1292 (print_objfile_section_info): Likewise.
1293 (print_bfd_section_info_maybe_relocated): Likewise (plus
1294 objfile).
1295 (maintenance_info_sections): Adjust calls.
1296
1297 2020-09-02 Tom Tromey <tromey@adacore.com>
1298
1299 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1300 for null pointers.
1301 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1302
1303 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1304
1305 * bcache.h (struct bcache) <insert>: Change type of `added` to
1306 pointer to bool.
1307 * bcache.c (bcache::insert): Likewise.
1308 * gdbtypes.c (check_types_worklist): Adjust.
1309 * psymtab.c (add_psymbol_to_bcache): Adjust.
1310
1311 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1312
1313 * corelow.c (unordered_set): Include.
1314 (class core_target): Add field 'm_core_unavailable_mappings'.
1315 (core_target::build_file_mappings): Print only one warning
1316 per inaccessible file. Add unavailable/broken mappings
1317 to m_core_unavailable_mappings.
1318 (core_target::xfer_partial): Call...
1319 (core_target::xfer_memory_via_mappings): New method.
1320
1321 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1322
1323 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1324 type to bool.
1325
1326 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1327
1328 * dwarf2/read.c (struct field_info): Fix indentation.
1329
1330 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1331
1332 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1333 ordering in comment.
1334 * frame.c (frame_id_eq): Fix indentation.
1335
1336 2020-08-31 Scott Linder <scott@scottlinder.com>
1337 Simon Marchi <simon.marchi@efficios.com>
1338
1339 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1340 inline frame ids in outer frame.
1341
1342 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1343
1344 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1345 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1346 (outer_frame_id): Use FID_STACK_OUTER instead of
1347 FID_STACK_INVALID.
1348 (frame_id_p): Don't check for outer_frame_id.
1349
1350 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1351
1352 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1353 regnum/frame in value. Call allocate_value_lazy.
1354 * frame.c (frame_unwind_register_value): Use
1355 val_print_not_saved.
1356
1357 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1358
1359 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1360
1361 2020-08-29 Pedro Alves <pedro@palves.net>
1362
1363 * progspace.c (print_program_space): Use all_inferiors. Switch to
1364 the inferior before calling target_pid_to_str.
1365
1366 2020-08-28 Tom Tromey <tom@tromey.com>
1367
1368 * xcoffread.c (xcoff_end_psymtab): Update comment.
1369 * dbxread.c (dbx_end_psymtab): Update comment.
1370
1371 2020-08-28 Tom de Vries <tdevries@suse.de>
1372
1373 PR breakpoint/26544
1374 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1375 event_location.
1376 (create_breakpoint): Same.
1377 (base_breakpoint_decode_location): Same.
1378 (bkpt_create_sals_from_location): Same.
1379 (bkpt_decode_location): Same.
1380 (bkpt_probe_create_sals_from_location): Same.
1381 (bkpt_probe_decode_location): Same.
1382 (tracepoint_create_sals_from_location): Same.
1383 (tracepoint_decode_location): Same.
1384 (tracepoint_probe_decode_location): Same.
1385 (strace_marker_create_sals_from_location): Same.
1386 (strace_marker_decode_location): Same.
1387 (create_sals_from_location_default): Same.
1388 (decode_location_default): Same.
1389 * breakpoint.h (struct breakpoint_ops): Same.
1390 (create_breakpoint): Same.
1391 * linespec.h (decode_line_full): Same.
1392 * linespec.c (decode_line_full): Same. Throw error if
1393 result.size () == 0.
1394
1395 2020-08-27 Pedro Alves <pedro@palves.net>
1396
1397 PR gdb/26524
1398 * breakpoint.c (until_break_fsm) <location_breakpoint,
1399 caller_breakpoint>: Delete fields.
1400 <breakpoints>: New field.
1401 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1402 two individual breakpoints.
1403 (until_break_fsm::should_stop): Loop over breakpoints in the
1404 breakpoint vector.
1405 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1406 vector.
1407 (until_break_command): Handle location expanding into multiple
1408 sals.
1409
1410 2020-08-27 Pedro Alves <pedro@palves.net>
1411
1412 PR gdb/26523
1413 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1414 bp_until breakpoints user-specified locations. Update intro
1415 comment.
1416
1417 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1418
1419 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1420 gdb_bfd_sections): New.
1421 * maint.c (print_bfd_section_info): Change param type to
1422 maint_print_section_data.
1423 (print_objfile_section_info): Likewise.
1424 (print_bfd_section_info_maybe_relocated): Likewise.
1425 (maintenance_info_sections): Use gdb_bfd_sections.
1426
1427 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1428
1429 * MAINTAINERS: Add ARC target and maintainer.
1430
1431 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1432
1433 * configure.tgt: ARC support for GNU/Linux.
1434 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1435 * arc-linux-tdep.c: New file.
1436 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1437 * arc-tdep.c (arc_write_pc): Use it.
1438
1439 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1440
1441 * arc-tdep.c (arc_check_for_hardware_loop): New.
1442 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1443
1444 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1445
1446 * arc-tdep.h: Include "gdbarch.h".
1447
1448 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1449
1450 * arch/arc.h
1451 (arc_gdbarch_features): New class to stir the selection of target XML.
1452 (arc_create_target_description): Use FEATURES to choose XML target.
1453 (arc_lookup_target_description): Use arc_create_target_description
1454 to create _new_ target descriptions or return the already created
1455 ones if the FEATURES is the same.
1456 * arch/arc.c: Implementation of prototypes described above.
1457 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1458 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1459 * arc-tdep.c (*_feature_name): Make feature names consistent.
1460 (arc_register_feature): A new struct to hold information about
1461 registers of a particular target/feature.
1462 (arc_check_tdesc_feature): Check if XML provides registers in
1463 compliance with ARC_REGISTER_FEATURE structs.
1464 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1465 (determine_*_reg_feature_set): Which feature name to look for.
1466 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1467 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1468 to expected ISA enums to be used in arc_gdbarch_features structs.
1469 * features/Makefile (FEATURE_XMLFILES): Add new files.
1470 * gdb/features/arc/v1-aux.c: New file.
1471 * gdb/features/arc/v1-aux.xml: Likewise.
1472 * gdb/features/arc/v1-core.c: Likewise.
1473 * gdb/features/arc/v1-core.xml: Likewise.
1474 * gdb/features/arc/v2-aux.c: Likewise.
1475 * gdb/features/arc/v2-aux.xml: Likewise.
1476 * gdb/features/arc/v2-core.c: Likewise.
1477 * gdb/features/arc/v2-core.xml: Likewise.
1478 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1479
1480 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1481 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 PR m2/26372
1484 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1485 an assert. Remove single element array indexing pattern as the
1486 MULTI_SUBSCRIPT support will handle this case too.
1487
1488 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1489
1490 * value.h (valprint_check_validity): Move declaration from
1491 here...
1492 * valprint.h (valprint_check_validity): ... to here.
1493
1494 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1495
1496 * debug.h: New file.
1497 * debug.c (debug_prefixed_vprintf): New function.
1498 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1499 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1500
1501 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1502
1503 * infrun.h (infrun_debug_printf_1): New function declaration.
1504 (infrun_debug_printf): New macro.
1505 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1506 throughout.
1507 (infrun_debug_printf): New function.
1508 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1509 (handle_jit_event): Likewise.
1510
1511 2020-08-21 Mark Wielaard <mark@klomp.org>
1512
1513 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1514
1515 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1516
1517 * frame.c (enum class frame_id_status): New.
1518 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1519 (fprintf_frame): Update.
1520 (compute_frame_id): Set frame id status to "computing" on entry.
1521 Set it back to "not_computed" on failure and to "computed" on
1522 success.
1523 (get_frame_id): Assert the frame id is not being computed.
1524 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1525 (create_new_frame): Likewise.
1526 (frame_cleanup_after_sniffer): Update assert.
1527
1528 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1529
1530 * regcache.c (pid_ptid_regcache_map): New type.
1531 (target_ptid_regcache_map): Remove.
1532 (target_pid_ptid_regcache_map): New type.
1533 (regcaches): Change type to target_pid_ptid_regcache_map.
1534 (get_thread_arch_aspace_regcache): Update.
1535 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1536 case.
1537 (regcaches_size): Update.
1538 (regcache_count): Update.
1539 (registers_changed_ptid_target_pid_test): New.
1540 (_initialize_regcache): Register new test.
1541
1542 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1543
1544 * regcache.c (regcache_count): New.
1545 (struct regcache_test_data): New.
1546 (regcache_test_data_up): New.
1547 (populate_regcaches_for_test): New.
1548 (regcaches_test): Remove.
1549 (get_thread_arch_aspace_regcache_test): New.
1550 (registers_changed_ptid_all_test): New.
1551 (registers_changed_ptid_target_test): New.
1552 (registers_changed_ptid_target_ptid_test): New.
1553 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1554 (_initialize_regcache): Register new tests.
1555
1556 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1557
1558 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1559 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1560 gdbarch and aspace parameter. Use current inferior's aspace.
1561 Validate regcache's arch value.
1562 (regcaches_test): Update.
1563
1564 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1565
1566 * regcache.c (regcaches_test): Call registers_changed.
1567
1568 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1569
1570 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1571
1572 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1573
1574 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1575 to find the end of prologue for flang compiled binaries.
1576 * arm-tdep.c (arm_skip_prologue): Likewise.
1577 * i386-tdep.c (i386_skip_prologue): Likewise.
1578 * producer.c (producer_is_llvm): New function.
1579 (producer_parsing_tests): Added new tests for clang/flang.
1580 * producer.h (producer_is_llvm): New declaration.
1581
1582 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1583
1584 * linux-nat.c (linux_nat_debug_printf): New function.
1585 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1586
1587 2020-08-18 Aaron Merey <amerey@redhat.com>
1588
1589 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1590 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1591 (CLIBS): Add DEBUGINFOD_LIBS.
1592
1593 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1594
1595 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1596 'gdbarch_num_regs'.
1597
1598 2020-08-17 Tom Tromey <tromey@adacore.com>
1599
1600 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1601 ada_get_decoded_value returns NULL.
1602
1603 2020-08-17 Tom Tromey <tromey@adacore.com>
1604
1605 * python/py-inferior.c (infpy_search_memory): Use
1606 gdb_py_object_from_ulongest.
1607 * python/py-infevents.c (create_inferior_call_event_object)
1608 (create_memory_changed_event_object): Use
1609 gdb_py_object_from_ulongest.
1610 * python/py-linetable.c (ltpy_entry_get_pc): Use
1611 gdb_py_object_from_ulongest.
1612
1613 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1614
1615 * loc.c (class symbol_needs_eval_context): Fix indentation.
1616
1617 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1618
1619 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1620 bool.
1621
1622 2020-08-17 Tom de Vries <tdevries@suse.de>
1623
1624 PR gdb/26393
1625 * gdbtypes.c (dump_dynamic_prop): New function.
1626 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1627
1628 2020-08-15 Tom de Vries <tdevries@suse.de>
1629
1630 PR backtrace/26390
1631 * stack.c (print_frame_args): Temporarily set the selected
1632 frame to FRAME while printing the frame's arguments.
1633
1634 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1635
1636 PR breakpoints/26385
1637 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1638 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1639
1640 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1641
1642 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1643 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1644 and >= to check return value instead of == -1 and != -1.
1645
1646 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1647
1648 * utils.h (class gdb_argv) <as_array_view>: New method.
1649 * utils.c (gdb_argv_as_array_view_test): New.
1650 (_initialize_utils): Register selftest.
1651 * maint.c (maintenance_selftest): Use the new method.
1652
1653 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1654
1655 * target.h (supports_dumpcore, dumpcore): New
1656 function declarations.
1657 * target.c (supports_dumpcore, dumpcore): New
1658 functions.
1659 * target-delegates.c: Rebuild.
1660 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1661 and target_dumpcore ().
1662
1663 2020-08-13 Aaron Merey <amerey@redhat.com>
1664
1665 * debuginfod-support.c: Replace global variables with user_data.
1666
1667 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1668
1669 * maint.c (maintenance_selftest): Split args and pass array_view
1670 to run_tests.
1671
1672 2020-08-12 Luis Machado <luis.machado@linaro.org>
1673
1674 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1675 type's length.
1676 Use %s and pulongest to print the length.
1677
1678 2020-08-12 Pedro Alves <palves@redhat.com>
1679
1680 * NEWS: Move "Multi-target debugging support" item to the
1681 "Changes since GDB 9" section.
1682
1683 2020-08-12 Pedro Alves <palves@redhat.com>
1684
1685 PR gdb/26336
1686 * progspace.c (program_space::remove_objfile): Invalidate the
1687 frame cache.
1688
1689 2020-08-11 Tom de Vries <tdevries@suse.de>
1690
1691 * MAINTAINERS: Mark ms1 as deleted.
1692
1693 2020-08-10 Luis Machado <luis.machado@linaro.org>
1694
1695 PR gdb/26310
1696
1697 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1698 act accordingly.
1699 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1700 movz/str/stur/stp skipping behavior.
1701
1702 2020-08-10 Luis Machado <luis.machado@linaro.org>
1703
1704 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1705 struct user_sve_header instead of struct sve_context.
1706
1707 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1708
1709 * read.h (dwarf2_fetch_die_loc_sect_off,
1710 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1711 `void *` parameter with function_view.
1712 * read.c (dwarf2_fetch_die_loc_sect_off,
1713 dwarf2_fetch_die_loc_cu_off): Likewise.
1714 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1715 (per_cu_dwarf_call): Adjust.
1716 (get_frame_address_in_block_wrapper): Remove.
1717 (indirect_synthetic_pointer): Adjust.
1718 (get_ax_pc): Remove.
1719 (dwarf2_compile_expr_to_ax): Adjust.
1720
1721 2020-08-08 Tom de Vries <tdevries@suse.de>
1722
1723 PR build/26344
1724 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1725 constructor.
1726 * regcache.c (get_thread_arch_aspace_regcache): Same.
1727
1728 2020-08-07 Tom Tromey <tromey@adacore.com>
1729
1730 * ravenscar-thread.c
1731 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1732 New method.
1733 (ravenscar_thread_target::wait): Check
1734 runtime_initialized.
1735 (ravenscar_thread_target::prepare_to_store)
1736 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1737 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1738 (ravenscar_thread_target::stopped_by_watchpoint)
1739 (ravenscar_thread_target::stopped_data_address)
1740 (ravenscar_thread_target::core_of_thread): Use
1741 scoped_restore_current_thread and
1742 set_base_thread_from_ravenscar_task.
1743
1744 2020-08-07 Tom Tromey <tromey@adacore.com>
1745
1746 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1747
1748 2020-08-07 Tom Tromey <tromey@adacore.com>
1749
1750 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1751 update_inferior_ptid before update_thread_list.
1752 (temporarily_change_regcache_ptid): New class.
1753 (ravenscar_thread_target::fetch_registers)
1754 (ravenscar_thread_target::store_registers)
1755 (ravenscar_thread_target::prepare_to_store): Use base thread when
1756 forwarding operation.
1757
1758 2020-08-07 Tom Tromey <tromey@adacore.com>
1759
1760 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1761 "is_pid" case.
1762
1763 2020-08-07 Tom Tromey <tromey@adacore.com>
1764
1765 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1766 New methods.
1767 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1768 first.
1769 (ravenscar_thread_target::add_thread): Rename from
1770 ravenscar_add_thread.
1771 (ravenscar_thread_target::update_thread_list): Use a lambda.
1772 (ravenscar_thread_target::xfer_partial): New method.
1773
1774 2020-08-07 Tom Tromey <tromey@adacore.com>
1775
1776 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1777 gdb::function_view.
1778 (iterate_over_live_ada_tasks): Change type of argument.
1779 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1780 of argument.
1781
1782 2020-08-07 Tom Tromey <tromey@adacore.com>
1783
1784 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1785 Remove.
1786 (ravenscar_thread_target::extra_thread_info): Remove.
1787 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1788 defer to target beneath for non-Ravenscar threads.
1789
1790 2020-08-07 Tom Tromey <tromey@adacore.com>
1791
1792 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1793 get_base_thread_from_ravenscar_task>: Now methods.
1794 <m_cpu_map>: New member.
1795 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1796 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1797 (ravenscar_thread_target::task_is_currently_active): Update.
1798 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1799 Now a method.
1800 (ravenscar_thread_target::add_active_thread): Put initial thread
1801 into the m_cpu_map.
1802
1803 2020-08-07 Tom Tromey <tromey@adacore.com>
1804
1805 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1806 event_ptid.
1807
1808 2020-08-07 Tom Tromey <tromey@adacore.com>
1809
1810 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1811 runtime_initialized.
1812
1813 2020-08-07 Tom Tromey <tromey@adacore.com>
1814
1815 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1816 add_active_thread.
1817 (ravenscar_thread_target::add_active_thread): Now public.
1818 (ravenscar_inferior_created): Call add_active_thread after pushing
1819 the target.
1820
1821 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1822
1823 * regcache.c (ptid_regcache_map): New type.
1824 (target_ptid_regcache_map): New type.
1825 (regcaches): Change type to target_ptid_regcache_map.
1826 (get_thread_arch_aspace_regcache): Update to regcaches' new
1827 type.
1828 (regcache_thread_ptid_changed): Likewise.
1829 (registers_changed_ptid): Likewise.
1830 (regcaches_size): Likewise.
1831 (regcaches_test): Update.
1832 (regcache_thread_ptid_changed): Update.
1833 * regcache.h (regcache_up): New type.
1834 * gdbsupport/ptid.h (hash_ptid): New struct.
1835
1836 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1837
1838 * observable.h (thread_ptid_changed): Add parameter
1839 `process_stratum_target *`.
1840 * infrun.c (infrun_thread_ptid_changed): Add parameter
1841 `process_stratum_target *` and use it.
1842 (selftests): New namespace.
1843 (infrun_thread_ptid_changed): New function.
1844 (_initialize_infrun): Register selftest.
1845 * regcache.c (regcache_thread_ptid_changed): Add parameter
1846 `process_stratum_target *` and use it.
1847 (regcache_thread_ptid_changed): New function.
1848 (_initialize_regcache): Register selftest.
1849 * thread.c (thread_change_ptid): Pass target to
1850 thread_ptid_changed observable.
1851
1852 2020-08-06 Caroline Tice <cmtice@google.com>
1853
1854 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1855 (struct dwp_sections): Update field comments. Add loclists and
1856 rnglists fields.
1857 (struct virtual_v2_dwo_sections): Rename struct to
1858 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1859 size & offset fields for loclists and rnglists.
1860 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1861 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1862 skipping dummy type units.
1863 (create_dwp_hash_table): Update the large comment above the function to
1864 discuss Version 5 DWP files as well, with references. Update all the
1865 version checks in the function to check for version 5 as well. Add new
1866 section at the end to create dwp hash table for version 5.
1867 (create_dwp_v2_section): Rename function to
1868 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1869 Add V5 to error message text.
1870 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1871 into calls to create_dwp_v2_or_v5_section.
1872 (create_dwo_unit_in_dwp_v5): New function.
1873 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1874 check for version2; add else clause to handle version 5.
1875 (open_and_init_dwo_file): Add code to check dwarf version & only call
1876 create_debug_types_hash_table (with sections.types) if version is not 5;
1877 else call create_debug_type_hash_table, with sections.info.
1878 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1879 version 5.
1880 (dwarf2_locate_v5_dwp_sections): New function.
1881 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1882 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1883
1884 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1885
1886 * regcache.h (class regcache): Remove friend
1887 registers_changed_ptid.
1888 <regcache_thread_ptid_changed>: Remove.
1889 <regcaches>: Remove.
1890 * regcache.c (regcache::regcaches): Rename to...
1891 (regcaches): ... this. Make static.
1892 (get_thread_arch_aspace_regcache): Update.
1893 (regcache::regcache_thread_ptid_changed): Rename to...
1894 (regcache_thread_ptid_changed): ... this. Update.
1895 (class regcache_access): Remove.
1896 (regcaches_test): Update.
1897 (_initialize_regcache): Update.
1898 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1899 <forward_list>.
1900
1901 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1902
1903 * regcache.h (class regcache) <current_regcache>: Rename to...
1904 <regcaches>: ... this. Move doc here.
1905 * regcache.c (regcache::current_regcache) Rename to...
1906 (regcache::regcaches): ... this. Move doc to header.
1907 (get_thread_arch_aspace_regcache): Update.
1908 (regcache::regcache_thread_ptid_changed): Update.
1909 (registers_changed_ptid): Update.
1910 (class regcache_access) <current_regcache_size>: Rename to...
1911 <regcaches_size>: ... this.
1912 (current_regcache_test): Rename to...
1913 (regcaches_test): ... this.
1914 (_initialize_regcache): Update.
1915
1916 2020-08-06 Victor Collod <vcollod@nvidia.com>
1917
1918 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1919
1920 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1921
1922 * corelow.c (core_target::build_file_mappings): Don't output
1923 null pathname in warning.
1924
1925 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1926
1927 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1928 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1929 gdb.dwarf2/dw2-single-line-discriminators.exp,
1930 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1931
1932 2020-08-05 Tom Tromey <tromey@adacore.com>
1933
1934 PR rust/26197:
1935 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1936 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1937 Fix off-by-one and type size errors in ordinary case.
1938
1939 2020-08-05 Tom de Vries <tdevries@suse.de>
1940
1941 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1942 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1943
1944 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1945
1946 * frame.h (frame_id_p): Return bool.
1947 (frame_id_artificial_p): Return bool.
1948 (frame_id_eq): Return bool.
1949 (has_stack_frames): Return bool.
1950 (get_selected_frame): Fix typo in comment.
1951 (get_frame_pc_if_available): Return bool.
1952 (get_frame_address_in_block_if_available): Return bool.
1953 (get_frame_func_if_available): Return bool.
1954 (read_frame_register_unsigned): Return bool.
1955 (get_frame_register_bytes): Return bool.
1956 (safe_frame_unwind_memory): Return bool.
1957 (deprecated_frame_register_read): Return bool.
1958 (frame_unwinder_is): Return bool.
1959 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1960 bool.
1961 <this_id::p>: Likewise.
1962 <prev_p>: Likewise.
1963 (frame_stash_add): Return bool.
1964 (get_frame_id): Use bool.
1965 (frame_id_build_special) Use bool.
1966 (frame_id_build_unavailable_stack): Use bool.
1967 (frame_id_build): Use bool.
1968 (frame_id_p): Return bool, use true/false instead of 1/0.
1969 (frame_id_artificial_p): Likewise.
1970 (frame_id_eq): Likewise.
1971 (frame_id_inner): Likewise.
1972 (get_frame_func_if_available): Likewise.
1973 (read_frame_register_unsigned): Likewise.
1974 (deprecated_frame_register_read): Likewise.
1975 (get_frame_register_bytes): Likewise.
1976 (has_stack_frames): Likewise.
1977 (inside_main_func): Likewise.
1978 (inside_entry_func): Likewise.
1979 (get_frame_pc_if_available): Likewise.
1980 (get_frame_address_in_block_if_available): Likewise.
1981 (frame_unwinder_is): Likewise.
1982 (safe_frame_unwind_memory): Likewise.
1983 (frame_unwind_arch): Likewise.
1984
1985 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1986
1987 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1988 type to cached_copy_status.
1989 (fprintf_frame): Adjust.
1990 (get_frame_func_if_available): Adjust.
1991 (frame_cleanup_after_sniffer): Adjust.
1992
1993 2020-08-04 Mark Wielaard <mark@klomp.org>
1994
1995 * MAINTAINERS (Write After Approval): Update email address.
1996
1997 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1998
1999 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2000 dynamic_prop::const_val.
2001
2002 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2003
2004 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2005 dynamic_prop::kind.
2006
2007 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2008
2009 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2010
2011 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2012
2013 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2014
2015 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2016 Jose E. Marchesi <jose.marchesi@oracle.com>
2017
2018 * configure.tgt: Add entry for bpf-*-*.
2019 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2020 (ALLDEPFILES): Add bpf-tdep.c.
2021 * bpf-tdep.c: New file.
2022 * MAINTAINERS: Add bpf target and maintainer.
2023 * NEWS: Mention the support for the new target.
2024
2025 2020-08-04 Tom de Vries <tdevries@suse.de>
2026
2027 PR symtab/23270
2028 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2029 Error.
2030
2031 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2032
2033 * syscalls/freebsd.xml: Regenerate.
2034
2035 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2036
2037 * syscalls/update-freebsd.sh: Fix usage and year range.
2038
2039 2020-08-03 Tom de Vries <tdevries@suse.de>
2040
2041 PR symtab/26333
2042 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2043 DW_LNE_lo_user/DW_LNE_hi_user range.
2044
2045 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2046
2047 PR ada/26318
2048 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2049 kind.
2050
2051 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2052
2053 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2054
2055 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2056
2057 * breakpoint.c (set_breakpoint_condition): Update the condition
2058 expressions after checking that the input condition string parses
2059 successfully and does not contain junk at the end.
2060
2061 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2062
2063 * breakpoint.c (set_breakpoint_condition): Update the
2064 condition string after parsing the new condition successfully.
2065
2066 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2067
2068 * proc-api.c (_STRUCTURED_PROC): Don't define.
2069 * proc-events.c: Likewise.
2070 * proc-flags.c: Likewise.
2071 * proc-why.c: Likewise.
2072 * procfs.c: Likewise.
2073
2074 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2075 * configure, config.in: Regenerate.
2076
2077 2020-07-30 Tom de Vries <tdevries@suse.de>
2078
2079 PR build/26320
2080 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2081 m_red/m_green/m_blue in a union.
2082
2083 2020-07-29 Tom de Vries <tdevries@suse.de>
2084
2085 PR tdep/26280
2086 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2087
2088 2020-07-28 Tom Tromey <tromey@adacore.com>
2089
2090 PR symtab/26270:
2091 * symtab.h (find_pc_partial_function_sym): Declare.
2092 * cli/cli-cmds.c (disassemble_command): Use
2093 find_pc_partial_function_sym. Check asm_demangle.
2094 * blockframe.c (cache_pc_function_sym): New global.
2095 (cache_pc_function_name): Remove.
2096 (clear_pc_function_cache): Update.
2097 (find_pc_partial_function_sym): New function, from
2098 find_pc_partial_function.
2099 (find_pc_partial_function): Rewrite using
2100 find_pc_partial_function_sym.
2101
2102 2020-07-28 Tom Tromey <tromey@adacore.com>
2103
2104 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2105 help. Add usage.
2106
2107 2020-07-28 Tom Tromey <tromey@adacore.com>
2108
2109 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2110 <DW_OP_GNU_variable_value>: Cast to address type.
2111
2112 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2113
2114 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2115 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2116 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2117 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2118 (nbsd_get_siginfo_type): New.
2119 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2120 (_initialize_nbsd_tdep): New.
2121
2122 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2123
2124 PR binutils/26301
2125 * configure: Regenerated.
2126
2127 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2128
2129 PR binutils/26301
2130 * configure: Regenerated.
2131
2132 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2133
2134 * python/py-frame.c: Remove 'user-regs.h' include.
2135 (frapy_read_register): Rewrite to make use of
2136 gdbpy_parse_register_id.
2137 * python/py-registers.c (gdbpy_parse_register_id): New function,
2138 moved here from python/py-unwind.c. Updated the return type, and
2139 also accepts register descriptor objects.
2140 * python/py-unwind.c: Remove 'user-regs.h' include.
2141 (pyuw_parse_register_id): Moved to python/py-registers.c.
2142 (unwind_infopy_add_saved_register): Update to use
2143 gdbpy_parse_register_id.
2144 (pending_framepy_read_register): Likewise.
2145 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2146
2147 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2148
2149 * python/py-registers.c: Add 'user-regs.h' include.
2150 (register_descriptor_iter_find): New function.
2151 (register_descriptor_iterator_object_methods): New static global
2152 methods array.
2153 (register_descriptor_iterator_object_type): Add pointer to methods
2154 array.
2155
2156 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2157
2158 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2159 for all architectures on FreeBSD 11.3 and later.
2160
2161 2020-07-27 Tom Tromey <tromey@adacore.com>
2162
2163 * gcore.h (load_corefile): Don't declare.
2164
2165 2020-07-27 Tom de Vries <tdevries@suse.de>
2166
2167 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2168 * config.in: Regenerate.
2169 * configure: Regenerate.
2170
2171 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2172
2173 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2174 ws2tcpip.h. When checking whether socklen_t type is defined, use
2175 ws2tcpip.h if it is available and sys/socket.h isn't.
2176 * configure: Regenerate.
2177 * config.in: Regenerate.
2178
2179 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2180
2181 PR fortran/23051
2182 PR fortran/26139
2183 * valops.c (value_ind): Pass address to
2184 readjust_indirect_value_type.
2185 * value.c (readjust_indirect_value_type): Make parameter
2186 non-const, and add extra address parameter. Resolve original type
2187 before using it.
2188 * value.h (readjust_indirect_value_type): Update function
2189 signature and comment.
2190
2191 2020-07-25 Tom de Vries <tdevries@suse.de>
2192
2193 PR symtab/26243
2194 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2195 entries.
2196
2197 2020-07-24 Aaron Merey <amerey@redhat.com>
2198
2199 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2200 * configure: Rebuild.
2201
2202 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2203
2204 PR corefiles/26294
2205 * corelow.c (_initialize_corelow): Add period to help text
2206 for "maintenance print core-file-backed-mappings".
2207
2208 2020-07-23 Pedro Alves <pedro@palves.net>
2209
2210 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2211 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2212 meanwhile.
2213 * frame.c (frame_cache_generation, get_frame_cache_generation):
2214 New.
2215 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2216 (get_prev_frame_if_no_cycle): On exception, don't touch
2217 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2218 * frame.h (get_frame_cache_generation): Declare.
2219
2220 2020-07-23 Tom de Vries <tdevries@suse.de>
2221
2222 PR tui/26282
2223 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2224 New default constructor.
2225
2226 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2227
2228 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2229 exclude non-statement entries.
2230
2231 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2232
2233 * NEWS (New commands): Mention new command
2234 "maintenance print core-file-backed-mappings".
2235
2236 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2237
2238 * corelow.c (gdbcmd.h): Include.
2239 (core_target::info_proc_mappings): New method.
2240 (get_current_core_target): New function.
2241 (maintenance_print_core_file_backed_mappings): New function.
2242 (_initialize_corelow): Add core-file-backed-mappings to
2243 "maint print" commands.
2244
2245 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2246
2247 * linux-tdep.c (dump_note_entry_p): New function.
2248 (linux_dump_mapping_p_ftype): New typedef.
2249 (linux_find_memory_regions_full): Add new parameter,
2250 should_dump_mapping_p.
2251 (linux_find_memory_regions): Adjust call to
2252 linux_find_memory_regions_full.
2253 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2254 call to linux_find_memory_regions_full.
2255
2256 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2257
2258 * corelow.c (solist.h, unordered_map): Include.
2259 (class core_target): Add field m_core_file_mappings and
2260 method build_file_mappings.
2261 (core_target::core_target): Call build_file_mappings.
2262 (core_target::~core_target): Free memory associated with
2263 m_core_file_mappings.
2264 (core_target::build_file_mappings): New method.
2265 (core_target::xfer_partial): Use m_core_file_mappings
2266 for memory transfers.
2267 * linux-tdep.c (linux_read_core_file_mappings): New
2268 function.
2269 (linux_core_info_proc_mappings): Rewrite to use
2270 linux_read_core_file_mappings.
2271 (linux_init_abi): Register linux_read_core_file_mappings.
2272
2273 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2274
2275 * arch-utils.c (default_read_core_file_mappings): New function.
2276 * arch-utils.c (default_read_core_file_mappings): Declare.
2277 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2278 * gdbarch.h, gdbarch.c: Regenerate.
2279
2280 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2281
2282 PR corefiles/25631
2283 * corelow.c (core_target:xfer_partial): Revise
2284 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2285 case after first checking the stratum beneath the core
2286 target.
2287 (has_all_memory): Return true.
2288 * target.c (raw_memory_xfer_partial): Revise comment
2289 regarding use of has_all_memory.
2290
2291 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2292
2293 * exec.h (section_table_xfer_memory): Revise declaration,
2294 replacing section name parameter with an optional callback
2295 predicate.
2296 * exec.c (section_table_xfer_memory): Likewise.
2297 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2298 of section_table_xfer_memory.
2299
2300 2020-07-22 Tom Tromey <tromey@adacore.com>
2301
2302 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2303 lookup_symbol_search_name.
2304
2305 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2306
2307 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2308 redundant local variable.
2309 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2310 reference, not pointer, update code accordingly.
2311
2312 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2313 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2314
2315 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2316 * jit.c (jit_breakpoint_re_set_internal): Use the
2317 `skip_jit_symbol_lookup` field.
2318
2319 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2320 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2321
2322 * jit.c (jit_read_descriptor): Define the descriptor address once,
2323 use twice.
2324 (jit_breakpoint_deleted): Move the declaration of the loop variable
2325 `iter` into the loop header.
2326 (jit_breakpoint_re_set_internal): Move the declaration of the local
2327 variable `objf_data` to the first point of definition.
2328 (jit_event_handler): Move the declaration of local variables
2329 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2330 Rename `objf` to `jited`.
2331
2332 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2333
2334 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2335 Remove.
2336 * jit.c (get_jiter_objfile_data): Update.
2337
2338 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2339 Simon Marchi <simon.marchi@polymtl.ca>
2340
2341 * jit.c (struct jit_program_space_data): Remove.
2342 (jit_program_space_key): Remove.
2343 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2344 stuff.
2345 (get_jit_program_space_data): Remove.
2346 (jit_breakpoint_deleted): Iterate on all of the program space's
2347 objfiles.
2348 (jit_inferior_init): Likewise.
2349 (jit_breakpoint_re_set_internal): Likewise. Also change return
2350 type to void.
2351 (jit_breakpoint_re_set): Pass current_program_space to
2352 jit_breakpoint_re_set_internal.
2353
2354 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2355
2356 * jit.h (struct jiter_objfile_data) <cached_code_address,
2357 jit_breakpoint>: Move to here from ...
2358 * jit.c (jit_program_space_data): ... here.
2359 (jiter_objfile_data::~jiter_objfile_data): Update.
2360 (jit_breakpoint_deleted): Update.
2361 (jit_breakpoint_re_set_internal): Update.
2362
2363 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2364
2365 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2366 checks.
2367 (jit_read_descriptor): Remove NULL check.
2368 (jit_event_handler): Add an assertion.
2369
2370 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2371
2372 * jit.h (struct jit_objfile_data): Split into...
2373 (struct jiter_objfile_data): ... this ...
2374 (struct jited_objfile_data): ... and this.
2375 * objfiles.h (struct objfile) <jit_data>: Remove.
2376 <jiter_data, jited_data>: New fields.
2377 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2378 (jiter_objfile_data::~jiter_objfile_data): ... this.
2379 (get_jit_objfile_data): Rename to ...
2380 (get_jiter_objfile_data): ... this.
2381 (add_objfile_entry): Update.
2382 (jit_read_descriptor): Use get_jiter_objfile_data.
2383 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2384 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2385 (jit_inferior_exit_hook): Use objfile's jited_data field.
2386
2387 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2388
2389 * jit.h: Forward-declare `struct minimal_symbol`.
2390 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2391 constructor, destructor, and an objfile* field.
2392 * jit.c (jit_objfile_data): Remove.
2393 (struct jit_objfile_data): Migrate from here to jit.h.
2394 (jit_objfile_data::~jit_objfile_data): New destructor
2395 implementation with code moved from free_objfile_data.
2396 (free_objfile_data): Delete.
2397 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2398 (jit_find_objf_with_entry_addr): Ditto.
2399 (jit_inferior_exit_hook): Ditto.
2400 (_initialize_jit): Remove the call to
2401 register_objfile_data_with_cleanup.
2402 * objfiles.h (struct objfile) <jit_data>: New field.
2403
2404 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2405
2406 * jit.h: Forward-declare `struct objfile`.
2407 (jit_event_handler): Add a second parameter, the JITer objfile.
2408 * jit.c (jit_read_descriptor): Change the signature to take the
2409 JITer objfile as an argument instead of the jit_program_space_data.
2410 (jit_inferior_init): Update the call to jit_read_descriptor.
2411 (jit_event_handler): Use the new JITer objfile argument when calling
2412 jit_read_descriptor.
2413 * breakpoint.c (handle_jit_event): Update the call to
2414 jit_event_handler to pass the JITer objfile.
2415
2416 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2417
2418 * gdbarch.c: Regenerate.
2419 * gdbarch.h: Regenerate.
2420 * gdbarch.sh (handle_segmentation_fault): Remove method.
2421 * infrun.c (handle_segmentation_fault): Remove.
2422 (print_signal_received_reason): Remove call to
2423 handle_segmentation_fault.
2424
2425 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2426
2427 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2428 Rename to sparc64_linux_report_signal_info and add siggnal
2429 argument.
2430 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2431 instead of sparc64_linux_handle_segmentation_fault.
2432
2433 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2434
2435 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2436 i386_linux_report_signal_info instead of
2437 i386_linux_handle_segmentation_fault.
2438 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2439 to i386_linux_report_signal_info and add siggnal argument.
2440 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2441 of i386_linux_handle_segmentation_fault.
2442 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2443 to i386_linux_report_signal_info and add siggnal argument.
2444
2445 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2446
2447 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2448 hook if present.
2449
2450 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2451
2452 * gdbarch.c: Regenerate.
2453 * gdbarch.h: Regenerate.
2454 * gdbarch.sh (report_signal_info): New method.
2455 * infrun.c (print_signal_received_reason): Invoke gdbarch
2456 report_signal_info hook if present.
2457
2458 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2459
2460 * python/py-registers.c : Add 'unordered_map' include.
2461 (gdbpy_new_reggroup): Renamed to...
2462 (gdbpy_get_reggroup): ...this. Update to only create register
2463 group descriptors when needed.
2464 (gdbpy_reggroup_iter_next): Update.
2465
2466 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2467
2468 * python/py-registers.c (gdbpy_register_object_data): New static
2469 global.
2470 (gdbpy_register_object_data_init): New function.
2471 (gdbpy_new_register_descriptor): Renamed to...
2472 (gdbpy_get_register_descriptor): ...this, and update to reuse
2473 existing register descriptors where possible.
2474 (gdbpy_register_descriptor_iter_next): Update.
2475 (gdbpy_initialize_registers): Register new gdbarch data.
2476
2477 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2478
2479 * linux-nat.c (stopped_pids): Make static.
2480
2481 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2482
2483 PR ada/26235
2484 * gdbtypes.c (ada_discrete_type_low_bound,
2485 ada_discrete_type_high_bound): Handle undefined bounds.
2486
2487 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2488
2489 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2490 declaration.
2491 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2492 function.
2493
2494 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2495
2496 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2497 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2498 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2499 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2500 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2501 method.
2502
2503 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2504
2505 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2506 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2507 which are deprecated in Guile 3.0.
2508 * configure.ac (try_guile_versions): Add "guile-3.0".
2509 * configure (try_guile_versions): Regenerate.
2510 * NEWS: Update entry.
2511
2512 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2513 Doug Evans <dje@google.com>
2514
2515 PR gdb/21104
2516 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2517 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2518 USING_GUILE_BEFORE_2_2.
2519 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2520 Change type to 'scm_t_port_type *'.
2521 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2522 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2523 parameter and honor it. Update callers.
2524 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2525 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2526 functions.
2527 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2528 USING_GUILE_BEFORE_2_2.
2529 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2530 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2531 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2532 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2533 and 'SCM_PORT_TYPE'.
2534 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2535 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2536 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2537 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2538 [!USING_GUILE_BEFORE_2_2]: New functions.
2539 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2540 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2541 'gdbscm_memory_port_read'.
2542 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2543 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2544 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2545 function.
2546 (ioscm_init_memory_port): Remove.
2547 (ioscm_init_memory_port_stream): New function
2548 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2549 function.
2550 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2551 Return scm_from_uint (0).
2552 (gdbscm_set_memory_port_read_buffer_size_x)
2553 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2554 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2555 Return scm_from_uint (0).
2556 (gdbscm_set_memory_port_write_buffer_size_x)
2557 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2558 * configure.ac (try_guile_versions): Add "guile-2.2".
2559 * configure: Regenerate.
2560 * NEWS: Add entry.
2561
2562 2020-07-18 Tom Tromey <tom@tromey.com>
2563
2564 * linux-nat.c (linux_multi_process): Remove.
2565 (linux_nat_target::supports_multi_process): Return true.
2566
2567 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2568
2569 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2570 (riscv_lookup_target_description): Return pointer out of
2571 unique_ptr.
2572 * target-descriptions.c (allocate_target_description): Add
2573 comment.
2574 (target_desc_deleter::operator()): Likewise.
2575 * target-descriptions.h (struct target_desc_deleter): Moved to
2576 gdbsupport/tdesc.h.
2577 (target_desc_up): Likewise.
2578
2579 2020-07-17 Tom Tromey <tromey@adacore.com>
2580
2581 * linux-nat.c (linux_nat_target::supports_non_stop)
2582 (linux_nat_target::always_non_stop_p): Use "true".
2583 (linux_nat_target::supports_disable_randomization): Use "true" and
2584 "false".
2585
2586 2020-07-16 Caroline Tice <cmtice@google.com>
2587
2588 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2589 (RNGLIST_HEADER_SIZE64): New constant definition.
2590 (struct dwop_section_names): Add rnglists_dwo.
2591 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2592 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2593 (struct dwo_sections): Add rnglists field.
2594 (read_attribut_reprocess): Add tag parameter.
2595 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2596 (cu_debug_rnglists_section): New function (decl & definition).
2597 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2598 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2599 die whose range is being checked; get rnglist section from
2600 cu_debug_rnglists_section, to get from either objfile or dwo file as
2601 appropriate. Add cases for DW_RLE_base_addressx,
2602 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2603 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2604 test inside if-condition and updating complaint message.
2605 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2606 dwarf2_rnglists_process.
2607 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2608 dwarf2_ranges_process.
2609 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2610 need_ranges_base and update comment appropriately. Also pass die tag
2611 to dwarf2_ranges_read.
2612 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2613 need_ranges_base and update comment appropriately. Also pass die tag
2614 to dwarf2_ranges_process.
2615 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2616 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2617 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2618 need_ranges_base and update comment appropriately. Also pass die tag
2619 to read_attribute_reprocess and dwarf2_ranges_read.
2620 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2621 and update function comment appropriately.
2622 (read_loclist_index): Call read_loclists_rnglists_header instead of
2623 read_loclist_header.
2624 (read_rnglist_index): New function.
2625 (read_attribute_reprocess): Add tag parameter. Add code for
2626 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2627 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2628
2629 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2632 being resolved.
2633
2634 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2635
2636 * arch-utils.c (show_architecture): Update formatting of messages.
2637
2638 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2639
2640 * gdbtypes.h (struct type) <bounds>: Handle array and string
2641 types.
2642 * ada-lang.c (assign_aggregate): Use type::bounds on
2643 array/string type.
2644 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2645 * c-varobj.c (c_number_of_children): Likewise.
2646 (c_describe_child): Likewise.
2647 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2648 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2649 (f_type_print_base): Likewise.
2650 * f-valprint.c (f77_array_offset_tbl): Likewise.
2651 (f77_get_upperbound): Likewise.
2652 (f77_print_array_1): Likewise.
2653 * guile/scm-type.c (gdbscm_type_range): Likewise.
2654 * m2-typeprint.c (m2_array): Likewise.
2655 (m2_is_long_set_of_type): Likewise.
2656 * m2-valprint.c (get_long_set_bounds): Likewise.
2657 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2658 * python/py-type.c (typy_range): Likewise.
2659 * rust-lang.c (rust_internal_print_type): Likewise.
2660 * type-stack.c (type_stack::follow_types): Likewise.
2661 * valarith.c (value_subscripted_rvalue): Likewise.
2662 * valops.c (value_cast): Likewise.
2663
2664 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2665
2666 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2667 callers to use the equivalent accessor methods.
2668
2669 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2670
2671 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2672 (struct type) <bit_stride>: New method.
2673 (TYPE_BIT_STRIDE): Remove.
2674 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2675
2676 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2677
2678 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2679 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2680 callers to use the equivalent accessor methods instead.
2681
2682 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2683
2684 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2685 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2686 callers to use the equivalent accessor methods instead.
2687
2688 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2689
2690 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2691 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2692 to use dynamic_prop::kind.
2693
2694 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2695
2696 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2697 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2698 to get the bound property's kind and check against
2699 PROP_UNDEFINED.
2700
2701 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2702
2703 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2704 all callers to use type::range_bounds followed by
2705 dynamic_prop::{low,high}.
2706
2707 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2708
2709 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2710 const_val, set_const_val, baton, set_locexpr, set_loclist,
2711 set_addr_offset, variant_parts, set_variant_parts,
2712 original_type, set_original_type>: New methods.
2713 <kind>: Rename to...
2714 <m_kind>: ... this. Update all users to use the new methods
2715 instead.
2716 <data>: Rename to...
2717 <m_data>: ... this. Update all users to use the new methods
2718 instead.
2719
2720 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2721
2722 * gdbtypes.c (get_discrete_bounds): Return failure if
2723 the range type's bounds are not both defined and constant
2724 values.
2725 (get_array_bounds): Update comment. Remove undefined bound check.
2726
2727 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2728
2729 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2730 the type::bounds method directly.
2731
2732 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2733
2734 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2735 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2736 are used to set the range type's bounds to use set_bounds.
2737
2738 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2739
2740 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2741
2742 2020-07-10 Pedro Alves <pedro@palves.net>
2743
2744 * gdbthread.h (inferior_ref): Define.
2745 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2746 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2747 * thread.c
2748 (scoped_restore_current_thread::restore):
2749 Adjust to gdb::ref_ptr.
2750 (scoped_restore_current_thread::~scoped_restore_current_thread):
2751 Remove manual decref handling.
2752 (scoped_restore_current_thread::scoped_restore_current_thread):
2753 Adjust to use
2754 inferior_ref::new_reference/thread_info_ref::new_reference.
2755 Incref the thread before calling get_frame_id instead of after.
2756 Let TARGET_CLOSE_ERROR propagate.
2757
2758 2020-07-10 Pedro Alves <pedro@palves.net>
2759
2760 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2761 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2762 NOT_AVAILABLE_ERROR.
2763 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2764 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2765
2766 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2767 Pedro Alves <pedro@palves.net>
2768
2769 PR gdb/26199
2770 * infrun.c (threads_are_resumed_pending_p): Delete.
2771 (do_target_wait): Remove threads_are_executing and
2772 threads_are_resumed_pending_p checks from the inferior_matches
2773 lambda. Update comments.
2774
2775 2020-07-10 Pedro Alves <pedro@palves.net>
2776
2777 PR gdb/26199
2778 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2779 executing threads.
2780
2781 2020-07-10 Pedro Alves <pedro@palves.net>
2782
2783 PR gdb/26199
2784 * infrun.c (handle_no_resumed): Handle multiple targets.
2785
2786 2020-07-10 Pedro Alves <pedro@palves.net>
2787
2788 PR gdb/26199
2789 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2790 target_is_async_p.
2791
2792 2020-07-10 Pedro Alves <pedro@palves.net>
2793
2794 PR gdb/26199
2795 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2796 threads, not all threads.
2797
2798 2020-07-10 Pedro Alves <pedro@palves.net>
2799
2800 PR gdb/26199
2801 * remote.c (remote_target::open_1): Pass remote target pointer as
2802 data to create_async_event_handler.
2803 (remote_async_inferior_event_handler): Mark async event handler
2804 before returning if the remote target still has either pending
2805 events or unacknowledged notifications.
2806
2807 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2808
2809 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2810 declaration.
2811 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2812 function.
2813
2814 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2815
2816 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2817 inferior_ptid.
2818
2819 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2820
2821 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2822 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2823 AT_FREEBSD_PS_STRINGS.
2824
2825 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2826
2827 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2828 of debugfile path on Windows.
2829
2830 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2831
2832 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2833 argument to 'data'.
2834
2835 2020-07-08 Tom Tromey <tromey@adacore.com>
2836
2837 * ada-lang.c (ada_exception_message_1): Use read_memory.
2838
2839 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2840
2841 PR python/22748
2842 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2843 special handling for inline frames.
2844 * findvar.c (value_of_register_lazy): Skip inline frames when
2845 creating lazy register values.
2846 * frame.c (frame_id_computed_p): Delete definition.
2847 * frame.h (frame_id_computed_p): Delete declaration.
2848
2849 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2850
2851 * NEWS: Mention additions to Python API.
2852 * python/py-arch.c (archpy_register_groups): New function.
2853 (arch_object_methods): Add 'register_groups' method.
2854 * python/py-registers.c (reggroup_iterator_object): New struct.
2855 (reggroup_object): New struct.
2856 (gdbpy_new_reggroup): New function.
2857 (gdbpy_reggroup_to_string): New function.
2858 (gdbpy_reggroup_name): New function.
2859 (gdbpy_reggroup_iter): New function.
2860 (gdbpy_reggroup_iter_next): New function.
2861 (gdbpy_new_reggroup_iterator): New function
2862 (gdbpy_initialize_registers): Register new types.
2863 (reggroup_iterator_object_type): Define new Python type.
2864 (gdbpy_reggroup_getset): New static global.
2865 (reggroup_object_type): Define new Python type.
2866 * python/python-internal.h
2867
2868 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2869
2870 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2871 * python/py-arch.c (archpy_registers): New function.
2872 (arch_object_methods): Add 'registers' method.
2873 * python/py-registers.c: New file.
2874 * python/python-internal.h
2875 (gdbpy_new_register_descriptor_iterator): Declare.
2876 (gdbpy_initialize_registers): Declare.
2877 * python/python.c (do_start_initialization): Call
2878 gdbpy_initialize_registers.
2879 * NEWS: Mention additions to the Python API.
2880
2881 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2882
2883 * NEWS: Mention new Python API method.
2884 * python/py-unwind.c (pending_framepy_architecture): New function.
2885 (pending_frame_object_methods): Add architecture method.
2886
2887 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2888
2889 * gdbarch.c: Regenerate.
2890 * gdbarch.h: Regenerate.
2891 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2892 (gdbarch_data): Use internal_error for the case where
2893 deprecated_set_gdbarch_data was originally needed.
2894 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2895 and use passed in obstack.
2896 (libunwind_frame_set_descr): Should no longer get back NULL from
2897 gdbarch_data.
2898 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2899 type.
2900 * user-regs.c (user_regs_init): Update parameters, and use passed
2901 in obstack.
2902 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2903 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2904
2905 2020-07-06 Tom de Vries <tdevries@suse.de>
2906
2907 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2908 End-Of-Sequence in lte_is_less_than.
2909 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2910 "gdb: Don't reorder line table entries too much when sorting".
2911
2912 2020-07-06 Tom de Vries <tdevries@suse.de>
2913
2914 PR tui/26205
2915 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2916
2917 2020-07-05 Tom de Vries <tdevries@suse.de>
2918
2919 PR build/26187
2920 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2921 std::uncaught_exceptions instead of deprecated
2922 std::uncaught_exception.
2923
2924 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2925
2926 * macroexp.h (macro_stringify): Return
2927 gdb::unique_xmalloc_ptr<char>.
2928 * macroexp.c (macro_stringify): Likewise.
2929 * macrotab.c (fixup_definition): Update.
2930
2931 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2932
2933 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2934 (lex_one_token): Update.
2935 * macroexp.c (struct macro_buffer) <release>: Return
2936 gdb::unique_xmalloc_ptr<char>.
2937 (macro_stringify): Update.
2938 (macro_expand): Update.
2939 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2940 * macroexp.h (macro_expand_next): Likewise.
2941
2942 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2943
2944 * macroexp.h (macro_lookup_ftype): Remove.
2945 (macro_expand, macro_expand_once, macro_expand_next): Remove
2946 lookup function parameters, add scope parameter.
2947 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2948 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2949 * macroscope.h (standard_macro_lookup): Change parameter type
2950 to macro_scope.
2951 * macroscope.c (standard_macro_lookup): Likewise.
2952 * c-exp.y (lex_one_token): Update.
2953 * macrocmd.c (macro_expand_command): Likewise.
2954 (macro_expand_once_command): Likewise.
2955
2956 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2957
2958 * inf-loop.c (inferior_event_handler): Remove client_data param.
2959 * inf-loop.h (inferior_event_handler): Likewise.
2960 * infcmd.c (step_1): Adjust.
2961 * infrun.c (proceed): Adjust.
2962 (fetch_inferior_event): Remove client_data param.
2963 (infrun_async_inferior_event_handler): Adjust.
2964 * infrun.h (fetch_inferior_event): Remove `void *` param.
2965 * linux-nat.c (handle_target_event): Adjust.
2966 * record-btrace.c (record_btrace_handle_async_inferior_event):
2967 Adjust.
2968 * record-full.c (record_full_async_inferior_event_handler):
2969 Adjust.
2970 * remote.c (remote_async_inferior_event_handler): Adjust.
2971
2972 2020-07-01 Tom Tromey <tom@tromey.com>
2973
2974 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2975 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2976
2977 2020-07-01 Tom Tromey <tom@tromey.com>
2978
2979 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2980 tui_gen_win_info.
2981 (tui_win_info::make_window): Merge with
2982 tui_gen_win_info::make_window.
2983 (tui_win_info::make_visible): Move from tui_gen_win_info.
2984 * tui/tui-win.c (tui_win_info::max_width): Move from
2985 tui_gen_win_info.
2986 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2987 type.
2988 <window_factory>: Likewise.
2989 * tui/tui-layout.c (tui_win_info::resize): Move from
2990 tui_gen_win_info.
2991 (make_standard_window): Change return type.
2992 (get_locator_window, tui_get_window_by_name): Likewise.
2993 (tui_layout_window::apply): Remove a cast.
2994 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2995 (struct tui_win_info): Merge with tui_gen_win_info.
2996 (struct tui_gen_win_info): Remove.
2997
2998 2020-07-01 Tom Tromey <tom@tromey.com>
2999
3000 * tui/tui-stack.h (struct tui_locator_window): Derive from
3001 tui_win_info.
3002 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3003 <can_box>: New method.
3004
3005 2020-07-01 Tom Tromey <tom@tromey.com>
3006
3007 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3008
3009 2020-07-01 Tom Tromey <tom@tromey.com>
3010
3011 * tui/tui-regs.c (tui_data_window::display_registers_from)
3012 (tui_data_window::display_registers_from)
3013 (tui_data_window::first_data_item_displayed)
3014 (tui_data_window::delete_data_content_windows): Update.
3015 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3016 Remove.
3017 (tui_data_window::check_register_values): Update.
3018 (tui_data_item_window::rerender): Add parameters. Update.
3019 (tui_data_item_window::refresh_window): Remove.
3020 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3021 virtual.
3022 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3023 tui_gen_win_info.
3024 <refresh_window, max_height, min_height>: Remove.
3025 <rerender>: Add parameters.
3026 <x, y, visible>: New members.
3027 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3028 <m_item_width>: New member.
3029
3030 2020-07-01 Tom Tromey <tom@tromey.com>
3031
3032 * tui/tui-regs.c (tui_data_window::show_register_group)
3033 (tui_data_window::check_register_values): Update.
3034 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3035 from item_no.
3036
3037 2020-07-01 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3040 useless "if".
3041
3042 2020-07-01 Tom Tromey <tom@tromey.com>
3043
3044 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3045 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3046
3047 2020-07-01 Tom Tromey <tom@tromey.com>
3048
3049 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3050 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3051 (struct tui_line_or_address): Move from tui-data.h.
3052 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3053 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3054 (tui_cmd_window, tui_source_window_base, tui_source_window)
3055 (tui_disasm_window): Don't declare.
3056 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3057 to tui-winsource.h.
3058 (SINGLE_KEY): Move to tui-stack.c.
3059
3060 2020-07-01 Tom Tromey <tom@tromey.com>
3061
3062 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3063 std::string.
3064 * tui/tui-regs.c (class tab_expansion_file): New.
3065 (tab_expansion_file::write): New method.
3066 (tui_register_format): Change return type. Use
3067 tab_expansion_file.
3068 (tui_get_register, tui_data_window::display_registers_from)
3069 (tui_data_item_window::rerender): Update.
3070 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3071 * tui/tui-io.c (tui_expand_tabs): Remove.
3072
3073 2020-07-01 Tom Tromey <tom@tromey.com>
3074
3075 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3076
3077 2020-07-01 Fangrui Song <maskray@google.com>
3078
3079 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3080
3081 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3082
3083 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3084 forms for DW_AT_associated and DW_AT_allocated attributes,
3085 which is already checked in function attr_to_dynamic_prop.
3086
3087 2020-06-30 Tom Tromey <tromey@adacore.com>
3088
3089 * dwarf2/read.c (quirk_rust_enum): Correctly call
3090 alloc_rust_variant for default-less enum.
3091
3092 2020-06-30 Tom Tromey <tromey@adacore.com>
3093
3094 PR build/26183:
3095 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3096 gdb::to_string.
3097
3098 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3099
3100 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3101 * gdbarch.h: Re-generate.
3102
3103 2020-06-28 Tom Tromey <tom@tromey.com>
3104
3105 * command.h (cmd_types): Remove.
3106 (cmd_type): Don't declare.
3107 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3108 typedef.
3109 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3110 * cli/cli-decode.c (cmd_type): Remove.
3111
3112 2020-06-27 Pedro Alves <palves@redhat.com>
3113
3114 * fork-child.c (prefork_hook): Adjust.
3115 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3116 Delete.
3117 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3118 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3119 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3120 Remove declarations.
3121 (struct inferior) <set_tty, tty>: New methods.
3122 (struct inferior) <terminal>: Rename to ...
3123 (struct inferior) <m_terminal>: ... this and make private.
3124 * main.c (captured_main_1): Adjust.
3125 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3126 (mi_cmd_inferior_tty_show): Adjust.
3127 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3128 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3129
3130 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3131
3132 * configure.ac: Add --enable-libctf: handle --disable-static
3133 properly.
3134 * acinclude.m4: sinclude ../config/enable.m4.
3135 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3136 (LIBCTF): Substitute in.
3137 (CTF_DEPS): New, likewise.
3138 (CLIBS): libctf needs symbols from libbfd: move earlier.
3139 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3140 flags.
3141 * ctfread.c: Surround in ENABLE_LIBCTF.
3142 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3143 * configure: Regenerate.
3144 * config.in: Likewise.
3145
3146 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3147
3148 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3149
3150 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3151
3152 * inferior.h (struct inferior) <terminal>: Change type to
3153 gdb::unique_xmalloc_ptr<char>.
3154 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3155 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3156 field, adjust to unique pointer.
3157 (get_inferior_io_terminal): Adjust to unique pointer.
3158
3159 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3160
3161 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3162 registers, not just the known core set of registers.
3163
3164 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3165
3166 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3167 fflags, frm, and fcsr registers.
3168 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3169 restore groups.
3170 (riscv_tdesc_unknown_reg): New function.
3171 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3172 tdesc_use_registers.
3173 * riscv-tdep.h (struct gdbarch_tdep): Add
3174 unknown_csrs_first_regnum, unknown_csrs_count,
3175 duplicate_fflags_regnum, duplicate_frm_regnum, and
3176 duplicate_fcsr_regnum fields.
3177
3178 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3179
3180 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3181 callback, use the callback (when not null) to help number unknown
3182 registers.
3183 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3184 (tdesc_use_registers): Add extra parameter to declaration.
3185
3186 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3187
3188 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3189 in the file.
3190 (class riscv_pending_register_alias): Likewise.
3191 (riscv_register_feature::register_info): Change 'required_p' field
3192 to 'required', and change its type. Add 'check' member function.
3193 (riscv_register_feature::register_info::check): Define new member
3194 function.
3195 (riscv_xreg_feature): Change initialisation of 'required' field.
3196 (riscv_freg_feature): Likewise.
3197 (riscv_virtual_feature): Likewise.
3198 (riscv_csr_feature): Likewise.
3199 (riscv_check_tdesc_feature): Take extra parameter, the csr
3200 tdesc_feature, rewrite the function to use the new
3201 riscv_register_feature::register_info::check function.
3202 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3203
3204 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * features/Makefile: Remove all references to the deleted files
3207 below.
3208 * features/riscv/32bit-csr.c: Deleted.
3209 * features/riscv/32bit-csr.xml: Deleted.
3210 * features/riscv/64bit-csr.c: Deleted.
3211 * features/riscv/64bit-csr.xml: Deleted.
3212 * features/riscv/rebuild-csr-xml.sh: Deleted.
3213
3214 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3215
3216 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3217 whitespace error for declaration of names member variable.
3218 (struct riscv_register_feature): Add new prefer_first_name member
3219 variable, and fix whitespace error in declaration of registers.
3220 (riscv_xreg_feature): Initialize prefer_first_name field.
3221 (riscv_freg_feature): Likewise.
3222 (riscv_virtual_feature): Likewise.
3223 (riscv_csr_feature): Likewise.
3224 (riscv_register_name): Expand on comments. Remove register name
3225 modifications for CSR and virtual registers.
3226
3227 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3228
3229 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3230 errors.
3231
3232 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3233
3234 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3235 riscv-opc.h.
3236 (class riscv_pending_register_alias): New class.
3237 (riscv_check_tdesc_feature): Take vector of pending aliases and
3238 populate it as appropriate.
3239 (riscv_setup_register_aliases): Delete.
3240 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3241 to riscv_check_tdesc_feature in all cases. Use the vector to
3242 create the register aliases.
3243
3244 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3245
3246 * sol2-tdep.c (sol2_static_transform_name): Remove.
3247 (sol2_init_abi): Don't register it.
3248 * gdbarch.sh (static_transform_name): Remove.
3249 * gdbarch.c, gdbarch.h: Regenerate.
3250
3251 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3252 gdbarch_static_transform_name.
3253 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3254 * stabsread.c (define_symbol) <'X'>: Remove.
3255 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3256 handling.
3257 <'V'>: Likewise.
3258 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3259 <'S'>: Remove call to gdbarch_static_transform_name.
3260
3261 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3262
3263 * procfs.c (procfs_pre_trace): New function.
3264 (procfs_target::create_inferior): Pass it to fork_inferior.
3265
3266 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3267
3268 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3269 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3270 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3271 sol2-tdep.o, sparc-sol2-tdep.o.
3272 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3273 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3274 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3275 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3276
3277 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3278
3279 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3280 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3281 Call sol2_init_abi.
3282 Remove calls to set_gdbarch_skip_solib_resolver,
3283 set_gdbarch_core_pid_to_str.
3284 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3285 (i386_sol2_static_transform_name): Remove.
3286 (i386_sol2_init_abi): Call sol2_init_abi.
3287 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3288 set_gdbarch_static_transform_name,
3289 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3290 Use sol2_sigtramp_p.
3291 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3292 (sol2_sigtramp_p): New function.
3293 (sol2_static_transform_name): New function.
3294 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3295 (sol2_init_abi): New function.
3296 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3297 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3298 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3299 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3300 (sparc_sol2_static_transform_name): Remove.
3301 (sparc32_sol2_init_abi): Call sol2_init_abi.
3302 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3303 set_gdbarch_static_transform_name,
3304 set_gdbarch_skip_solib_resolver,
3305 set_gdbarch_core_pid_to_str.
3306 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3307 (sparc_sol2_static_transform_name): Remove
3308 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3309 call sol2_sigtramp_p.
3310 (sparc64_sol2_init_abi): Call sol2_init_abi.
3311 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3312 set_gdbarch_static_transform_name,
3313 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3314
3315 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3316
3317 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3318 * exec.c (validate_exec_file): If from_tty, set both
3319 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3320 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3321 and from_tty, unconditionally ask a confirmation.
3322
3323 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3324
3325 * target-descriptions.c (tdesc_architecture_name): Protect against
3326 NULL pointer dereference.
3327 (maint_print_xml_tdesc_cmd): New function.
3328 (_initialize_target_descriptions): Register new 'maint print
3329 xml-tdesc' command and give it the filename completer.
3330 * NEWS: Mention new 'maint print xml-tdesc' command.
3331
3332 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3333
3334 * target-descriptions.c (class tdesc_compatible_info): New class.
3335 (struct target_desc): Change type of compatible vector.
3336 (tdesc_compatible_p): Update for change in type of
3337 target_desc::compatible.
3338 (tdesc_compatible_info_list): New function.
3339 (tdesc_compatible_info_arch_name): New function.
3340 (tdesc_add_compatible): Update for change in type of
3341 target_desc::compatible.
3342 (print_c_tdesc::visit_pre): Likewise.
3343
3344 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3345
3346 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3347 whitespace to underscore.
3348 (maint_print_c_tdesc_cmd): Use fake filename for target
3349 descriptions that came from the target.
3350 (_initialize_target_descriptions): Add filename command completion
3351 for 'maint print c-tdesc'.
3352
3353 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3354
3355 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3356 lines.
3357
3358 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3359
3360 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3361 lines.
3362 (dwarf2_find_location_expression): Likewise.
3363 (call_site_parameter_matches): Likewise.
3364 (dwarf2_compile_expr_to_ax): Likewise.
3365 (disassemble_dwarf_expression): Likewise.
3366 (loclist_describe_location): Likewise.
3367
3368 2020-06-23 Pedro Alves <palves@redhat.com>
3369
3370 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3371 progspace-and-thread.h. Include scoped-mock-context.h instead.
3372 (register_to_value_test): Use scoped_mock_context.
3373 * regcache.c: Include "scoped-mock-context.h".
3374 (cooked_read_test): Don't error out if a target is already pushed.
3375 Use scoped_mock_context. Adjust.
3376 * scoped-mock-context.h: New file.
3377
3378 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3379
3380 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3381 initializer.
3382 (ada_language::is_string_type_p): New member function.
3383 * c-lang.c (c_language_data): Delete la_is_string_type_p
3384 initializer.
3385 (cplus_language_data): Likewise.
3386 (asm_language_data): Likewise.
3387 (minimal_language_data): Likewise.
3388 * d-lang.c (d_language_data): Likewise.
3389 * f-lang.c (f_is_string_type_p): Delete function, implementation
3390 moved to f_language::is_string_type_p.
3391 (f_language_data): Delete la_is_string_type_p initializer.
3392 (f_language::is_string_type_p): New member function,
3393 implementation from f_is_string_type_p.
3394 * go-lang.c (go_is_string_type_p): Delete function, implementation
3395 moved to go_language::is_string_type_p.
3396 (go_language_data): Delete la_is_string_type_p initializer.
3397 (go_language::is_string_type_p): New member function,
3398 implementation from go_is_string_type_p.
3399 * language.c (language_defn::is_string_type_p): Define new member
3400 function.
3401 (default_is_string_type_p): Make static, add comment copied from
3402 header file.
3403 (unknown_language_data): Delete la_is_string_type_p initializer.
3404 (unknown_language::is_string_type_p): New member function.
3405 (auto_language_data): Delete la_is_string_type_p initializer.
3406 (auto_language::is_string_type_p): New member function.
3407 * language.h (language_data): Delete la_is_string_type_p field.
3408 (language_defn::is_string_type_p): Declare new function.
3409 (default_is_string_type_p): Delete desclaration, move comment to
3410 definition.
3411 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3412 moved to m2_language::is_string_type_p.
3413 (m2_language_data): Delete la_is_string_type_p initializer.
3414 (m2_language::is_string_type_p): New member function,
3415 implementation from m2_is_string_type_p.
3416 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3417 initializer.
3418 * opencl-lang.c (opencl_language_data): Likewise.
3419 * p-lang.c (pascal_is_string_type_p): Delete function,
3420 implementation moved to pascal_language::is_string_type_p.
3421 (pascal_language_data): Delete la_is_string_type_p initializer.
3422 (pascal_language::is_string_type_p): New member function,
3423 implementation from pascal_is_string_type_p.
3424 * rust-lang.c (rust_is_string_type_p): Delete function,
3425 implementation moved to rust_language::is_string_type_p.
3426 (rust_language_data): Delete la_is_string_type_p initializer.
3427 (rust_language::is_string_type_p): New member function,
3428 implementation from rust_is_string_type_p.
3429 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3430 is_string_type_p.
3431
3432 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3433
3434 * ada-lang.c (ada_language_data): Delete la_print_typedef
3435 initializer.
3436 (ada_language::print_typedef): New member function.
3437 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3438 (cplus_language_data): Likewise.
3439 (asm_language_data): Likewise.
3440 (minimal_language_data): Likewise.
3441 * d-lang.c (d_language_data): Likewise.
3442 * f-lang.c (f_language_data): Likewise.
3443 (f_language::print_typedef): New member function.
3444 * go-lang.c (go_language_data): Delete la_print_typedef
3445 initializer.
3446 * language.c (language_defn::print_typedef): Define member
3447 function.
3448 (unknown_language_data): Delete la_print_typedef initializer.
3449 (unknown_language::print_typedef): New member function.
3450 (auto_language_data): Delete la_print_typedef initializer.
3451 (auto_language::print_typedef): New member function.
3452 * language.h (language_data): Delete la_print_typedef field.
3453 (language_defn::print_typedef): Declare new member function.
3454 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3455 (default_print_typedef): Delete declaration.
3456 * m2-lang.c (m2_language_data): Delete la_print_typedef
3457 initializer.
3458 (m2_language::print_typedef): New member function.
3459 * objc-lang.c (objc_language_data): Delete la_print_typedef
3460 initializer.
3461 * opencl-lang.c (opencl_language_data): Likewise.
3462 * p-lang.c (pascal_language_data): Likewise.
3463 (pascal_language::print_typedef): New member function.
3464 * rust-lang.c (rust_print_typedef): Delete function,
3465 implementation moved to rust_language::print_typedef.
3466 (rust_language): Delete la_print_typedef initializer.
3467 (rust_language::print_typedef): New member function,
3468 implementation from rust_print_typedef.
3469 * typeprint.c (default_print_typedef): Delete.
3470
3471 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3472
3473 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3474 (ada_language::printstr): New member function.
3475 * c-lang.c (c_language_data): Delete la_printstr initializer.
3476 (cplus_language_data): Likewise.
3477 (asm_language_data): Likewise.
3478 (minimal_language_data): Likewise.
3479 * d-lang.c (d_language_data): Likewise.
3480 * f-lang.c (f_printstr): Rename to f_language::printstr.
3481 (f_language_data): Delete la_printstr initializer.
3482 (f_language::printstr): New member function, implementation from
3483 f_printstr.
3484 * go-lang.c (go_language_data): Delete la_printstr initializer.
3485 * language.c (language_defn::printstr): Define new member
3486 function.
3487 (unk_lang_printstr): Delete.
3488 (unknown_language_data): Delete la_printstr initializer.
3489 (unknown_language::printstr): New member function.
3490 (auto_language_data): Delete la_printstr initializer.
3491 (auto_language::printstr): New member function.
3492 * language.h (language_data): Delete la_printstr field.
3493 (language_defn::printstr): Declare new member function.
3494 (LA_PRINT_STRING): Update call to printstr.
3495 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3496 (m2_language_data): Delete la_printstr initializer.
3497 (m2_language::printstr): New member function, implementation from
3498 m2_printstr.
3499 * objc-lang.c (objc_language_data): Delete la_printstr
3500 initializer.
3501 * opencl-lang.c (opencl_language_data): Likewise.
3502 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3503 (pascal_language_data): Delete la_printstr initializer.
3504 (pascal_language::printstr): New member function, implementation
3505 from pascal_printstr.
3506 * p-lang.h (pascal_printstr): Delete declaration.
3507 * rust-lang.c (rust_printstr): Update header comment.
3508 (rust_language_data): Delete la_printstr initializer.
3509 (rust_language::printstr): New member function.
3510
3511 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3512
3513 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3514 (ada_language::printchar): New member function.
3515 * c-lang.c (c_language_data): Delete la_printchar initializer.
3516 (cplus_language_data): Likewise.
3517 (asm_language_data): Likewise.
3518 (minimal_language_data): Likewise.
3519 * d-lang.c (d_language_data): Likewise.
3520 * f-lang.c (f_printchar): Rename to f_language::printchar.
3521 (f_language_data): Delete la_printchar initializer.
3522 (f_language::printchar): New member function, implementation from
3523 f_printchar.
3524 * go-lang.c (go_language_data): Delete la_printchar initializer.
3525 * language.c (unk_lang_printchar): Delete.
3526 (language_defn::printchar): Define new member function.
3527 (unknown_language_data): Delete la_printchar initializer.
3528 (unknown_language::printchar): New member function.
3529 (auto_language_data): Delete la_printchar initializer.
3530 (auto_language::printchar): New member function.
3531 * language.h (language_data): Delete la_printchar field.
3532 (language_defn::printchar): Declare new member function.
3533 (LA_PRINT_CHAR): Update call to printchar.
3534 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3535 (m2_language::printchar): New member function.
3536 * objc-lang.c (objc_language_data): Delete la_printchar
3537 initializer.
3538 * opencl-lang.c (opencl_language_data): Likewise.
3539 * p-lang.c (pascal_language_data): Delete la_printchar
3540 initializer.
3541 (pascal_language::printchar): New member function.
3542 * rust-lang.c (rust_printchar): Rename to
3543 rust_language::printchar.
3544 (rust_language_data): Delete la_printchar initializer.
3545 (rust_language::printchar): New member function, implementation
3546 from rust_printchar.
3547
3548 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3549
3550 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3551 (ada_language_data): Delete la_emitchar initializer.
3552 (ada_language::emitchar): New member function, implementation from
3553 emit_char.
3554 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3555 (cplus_language_data): Likewise.
3556 (asm_language_data): Likewise.
3557 (minimal_language_data): Likewise.
3558 * d-lang.c (d_language_data): Likewise.
3559 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3560 (f_language_data): Delete la_emitchar initializer.
3561 (f_language::emitchar): New member function, implementation from
3562 f_emit_char.
3563 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3564 * language.c (unk_lang_emit_char): Delete.
3565 (language_defn::emitchar): New member function definition.
3566 (unknown_language_data): Delete la_emitchar initializer.
3567 (unknown_language::emitchar): New member function.
3568 (auto_language_data): Delete la_emitchar initializer.
3569 (auto_language::emitchar): New member function.
3570 * language.h (language_data): Delete la_emitchar field.
3571 (language_defn::emitchar): New member field declaration.
3572 (LA_EMIT_CHAR): Update call to emitchar.
3573 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3574 (m2_language_data): Delete la_emitchar initializer.
3575 (m2_language::emitchar): New member function, implementation from
3576 m2_emit_char.
3577 * objc-lang.c (objc_language_data): Delete la_emitchar
3578 initializer.
3579 * opencl-lang.c (opencl_language_data): Likewise.
3580 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3581 (pascal_language_data): Delete la_emitchar initializer.
3582 (pascal_language::emitchar): New member function, implementation
3583 from pascal_emit_char.
3584 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3585 (rust_language_data): Delete la_emitchar initializer.
3586 (rust_language::emitchar): New member function, implementation
3587 from rust_emitchar.
3588
3589 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3590
3591 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3592 (ada_language_data): Delete la_post_parser initializer.
3593 (ada_language::post_parser): New member function.
3594 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3595 (cplus_language_data): Likewise.
3596 (asm_language_data): Likewise.
3597 (minimal_language_data): Likewise.
3598 * d-lang.c (d_language_data): Likewise.
3599 * f-lang.c (f_language_data): Likewise.
3600 * go-lang.c (go_language_data): Likewise.
3601 * language.c (unknown_language_data): Likewise.
3602 (auto_language_data): Likewise.
3603 * language.h (language_data): Delete la_post_parser field.
3604 (language_defn::post_parser): New member function.
3605 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3606 * objc-lang.c (objc_language_data): Likewise.
3607 * opencl-lang.c (opencl_language_data): Likewise.
3608 * p-lang.c (pascal_language_data): Likewise.
3609 * parse.c (parse_exp_in_context): Update call to post_parser.
3610 (null_post_parser): Delete definition.
3611 * parser-defs.h (null_post_parser): Delete declaration.
3612 * rust-lang.c (rust_language_data): Delete la_post_parser
3613 initializer.
3614
3615 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3616
3617 * ada-lang.c (parse): Rename to ada_language::parser.
3618 (ada_language_data): Delete la_parser initializer.
3619 (ada_language::parser): New member function, implementation from
3620 parse.
3621 * c-lang.c (c_language_data): Delete la_parser initializer.
3622 (cplus_language_data): Likewise.
3623 (asm_language_data): Likewise.
3624 (minimal_language_data): Likewise.
3625 * d-lang.c (d_language_data): Likewise.
3626 (d_language::parser): New member function.
3627 * f-lang.c (f_language_data): Delete la_parser initializer.
3628 (f_language::parser): New member function.
3629 * go-lang.c (go_language_data): Delete la_parser initializer.
3630 (go_language::parser): New member function.
3631 * language.c (unk_lang_parser): Delete.
3632 (language_defn::parser): Define new member function.
3633 (unknown_language_data): Delete la_parser initializer.
3634 (unknown_language::parser): New member function.
3635 (auto_language_data): Delete la_parser initializer.
3636 (auto_language::parser): New member function.
3637 * language.h (language_data): Delete la_parser field.
3638 (language_defn::parser): Declare new member function.
3639 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3640 (m2_language::parser): New member function.
3641 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3642 * opencl-lang.c (opencl_language_data): Likewise.
3643 * p-lang.c (pascal_language_data): Likewise.
3644 (pascal_language::parser): New member function.
3645 * parse.c (parse_exp_in_context): Update call to parser.
3646 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3647 (rust_language::parser): New member function.
3648
3649 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3650
3651 * top.c (print_gdb_configuration): Print --with-python-libdir
3652 configuration value.
3653
3654 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3655
3656 * NEWS: Mention change to the alias command.
3657
3658 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3659
3660 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3661 (alias_command_completer)
3662 (make_alias_options_def_group): New functions.
3663 (alias_opts, alias_option_defs): New struct and array.
3664 (alias_usage_error): Update usage.
3665 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3666 Use option framework.
3667 (_initialize_cli_cmds): Update alias command help.
3668 Update aliases command help.
3669 (show_user):
3670 Add NULL for new default_args lookup_cmd argument.
3671 (valid_command_p): Rename to validate_aliased_command.
3672 Add NULL for new default_args lookup_cmd argument. Verify that the
3673 aliased_command has no default args.
3674 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3675 (lookup_cmd_1, lookup_cmd): New argument default_args.
3676 (add_alias_cmd):
3677 Add NULL for new default_args lookup_cmd argument.
3678 (print_help_for_command): Show default args under the layout
3679 alias some_alias = some_aliased_cmd some_alias_default_arg.
3680 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3681 xfree default_args in destructor.
3682 * cli/cli-script.c (process_next_line, do_define_command):
3683 Add NULL for new default_args lookup_cmd argument.
3684 * command.h: Declare new default_args argument in lookup_cmd
3685 and lookup_cmd_1.
3686 * completer.c (complete_line_internal_1):
3687 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3688 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3689 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3690 Likewise.
3691 * infcmd.c (_initialize_infcmd): Likewise.
3692 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3693 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3694 * python/py-param.c (add_setshow_generic): Likewise.
3695 * remote.c (_initialize_remote): Likewise.
3696 * top.c (execute_command): Prepend default_args if command has some.
3697 (set_verbose):
3698 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3699 * tracepoint.c (validate_actionline, encode_actions_1):
3700 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3701
3702 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3703
3704 * jit.c (jit_read_descriptor): Use bool as the return type.
3705 (jit_breakpoint_re_set_internal): Use bool as the return type.
3706 Invert the return value logic; return true if the jit breakpoint
3707 has been successfully initialized.
3708 (jit_inferior_init): Update the call to
3709 jit_breakpoint_re_set_internal.
3710
3711 2020-06-22 Pedro Alves <palves@redhat.com>
3712
3713 PR gdb/25939
3714 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3715 Use the current inferior instead. Don't return
3716 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3717 wait again.
3718 * sol-thread.c (sol_thread_target::wait): Don't reference
3719 inferior_ptid.
3720 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3721 (sol_update_thread_list_callback): Use the current inferior's pid
3722 instead of inferior_ptid.
3723
3724 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3725
3726 * procfs.c: Cleanup many comments.
3727
3728 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3729 (AFTER_WATCHFLAG): Replace by value.
3730
3731 (MAIN_PROC_NAME_FORMAT): Inline ...
3732 (create_procinfo): ... here.
3733
3734 (procfs_debug_inferior): Remove SYS_exec handling.
3735 (syscall_is_exec): Likewise.
3736 (procfs_set_exec_trap): Likewise.
3737
3738 (syscall_is_lwp_exit): Inline in callers.
3739 (syscall_is_exit): Likewise.
3740 (syscall_is_exec): Likewise.
3741 (syscall_is_lwp_create): Likewise.
3742
3743 (invalidate_cache): Remove #if 0 code.
3744
3745 (make_signal_thread_runnable): Remove.
3746 (procfs_target::resume): Remove #if 0 code.
3747
3748 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3749
3750 PR gdb/25939
3751 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3752 call ...
3753 (procfs_target::create_inferior): ... here.
3754
3755 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3756
3757 * exec.c (validate_exec_file): Ensure the build-id is up to
3758 date by calling reopen_exec_file (that checks file timestamp
3759 to decide to re-read the file).
3760
3761 2020-06-18 Pedro Alves <palves@redhat.com>
3762
3763 PR gdb/25412
3764 * gdbthread.h (delete_thread, delete_thread_silent)
3765 (find_thread_ptid): Update comments.
3766 * thread.c (current_thread_): New global.
3767 (is_current_thread): Move higher, and reimplement.
3768 (inferior_thread): Reimplement.
3769 (set_thread_exited): Use bool. Add assertions.
3770 (add_thread_silent): Simplify thread-reuse handling by always
3771 calling delete_thread.
3772 (delete_thread): Remove intro comment.
3773 (find_thread_ptid): Skip exited threads.
3774 (switch_to_thread_no_regs): Write to current_thread_.
3775 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3776 INFERIOR_PTID. Clear current_thread_.
3777
3778 2020-06-18 Pedro Alves <palves@redhat.com>
3779
3780 * aix-thread.c (pd_update): Use switch_to_thread.
3781
3782 2020-06-18 Pedro Alves <palves@redhat.com>
3783
3784 * ravenscar-thread.c (ravenscar_thread_target): Update.
3785 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3786 (ravenscar_thread_target::add_active_thread): ... this. Don't
3787 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3788 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3789
3790 2020-06-18 Pedro Alves <palves@redhat.com>
3791
3792 * nat/windows-nat.c (current_windows_thread): Remove.
3793 * nat/windows-nat.h (current_windows_thread): Remove.
3794 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3795 Adjust.
3796 (display_selectors): Adjust to fetch the current
3797 windows_thread_info based on inferior_ptid.
3798 (fake_create_process): No longer write to current_windows_thread.
3799 (windows_nat_target::get_windows_debug_event):
3800 Don't set inferior_ptid or current_windows_thread.
3801 (windows_nat_target::wait): Adjust to not rely on
3802 current_windows_thread.
3803 (do_initial_windows_stuff): Now a method of windows_nat_target.
3804 Switch to the last_ptid thread.
3805 (windows_nat_target::attach): Adjust.
3806 (windows_nat_target::detach): Use switch_to_no_thread instead of
3807 writing to inferior_ptid directly.
3808 (windows_nat_target::create_inferior): Adjust.
3809
3810 2020-06-18 Pedro Alves <palves@redhat.com>
3811
3812 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3813
3814 2020-06-18 Pedro Alves <palves@redhat.com>
3815
3816 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3817 after creating it, instead of writing to inferior_ptid. Don't
3818 write to inferior_ptid.
3819
3820 2020-06-18 Pedro Alves <palves@redhat.com>
3821
3822 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3823
3824 2020-06-18 Pedro Alves <palves@redhat.com>
3825
3826 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3827 it, instead of writing to inferior_ptid.
3828
3829 2020-06-18 Pedro Alves <palves@redhat.com>
3830
3831 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3832 to inferior_ptid.
3833
3834 2020-06-18 Pedro Alves <palves@redhat.com>
3835
3836 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3837 instead of writing to inferior_ptid directly.
3838
3839 2020-06-18 Pedro Alves <palves@redhat.com>
3840
3841 * corelow.c (core_target::close): Use switch_to_no_thread instead
3842 of writing to inferior_ptid directly.
3843 (add_to_thread_list, core_target_open): Use switch_to_thread
3844 instead of writing to inferior_ptid directly.
3845
3846 2020-06-18 Pedro Alves <palves@redhat.com>
3847
3848 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3849 inferior_ptid.
3850 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3851 inferior_ptid.
3852 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3853 inferior_ptid directly.
3854 (darwin_nat_target::init_thread_list): Switch to thread, instead
3855 of writing to inferior_ptid.
3856 (darwin_nat_target::attach): Don't write to inferior_ptid.
3857 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3858
3859 2020-06-18 Pedro Alves <palves@redhat.com>
3860
3861 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3862 thread.
3863 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3864 Instead use switch_to_thread.
3865 (gnu_nat_target::detach): Use switch_to_no_thread
3866 instead of writing to inferior_ptid directly. Used passed-in
3867 inferior instead of looking up the inferior by pid.
3868
3869 2020-06-18 Pedro Alves <palves@redhat.com>
3870
3871 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3872 inferior_ptid.
3873
3874 2020-06-18 Pedro Alves <palves@redhat.com>
3875
3876 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3877 inferior_ptid.
3878 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3879 thread.
3880 (nto_procfs_target::detach): Avoid referencing
3881 inferior_ptid. Use switch_to_no_thread instead of writing to
3882 inferior_ptid directly.
3883 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3884 instead of writing to inferior_ptid directly.
3885 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3886 to thread.
3887
3888 2020-06-18 Pedro Alves <palves@redhat.com>
3889
3890 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3891 after creating it, instead of writing to inferior_ptid.
3892 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3893 to inferior_ptid directly.
3894 (gdbsim_target::wait): Don't write to inferior_ptid.
3895
3896 2020-06-18 Pedro Alves <palves@redhat.com>
3897
3898 * remote.c (remote_target::remote_notice_new_inferior): Use
3899 switch_to_thread instead of writing to inferior_ptid directly.
3900 (remote_target::add_current_inferior_and_thread): Use
3901 switch_to_no_thread instead of writing to inferior_ptid directly.
3902 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3903 and switch_to_thread instead of using set_current_inferior or
3904 writing to inferior_ptid directly.
3905
3906 2020-06-18 Pedro Alves <palves@redhat.com>
3907
3908 * tracectf.c (ctf_target_open): Switch to added thread instead of
3909 writing to inferior_ptid directly.
3910 (ctf_target::close): Use switch_to_no_thread instead of writing to
3911 inferior_ptid directly.
3912
3913 2020-06-18 Pedro Alves <palves@redhat.com>
3914
3915 * tracefile-tfile.c (tfile_target_open): Don't write to
3916 inferior_ptid directly, instead switch to added thread.
3917 (tfile_target::close): Use switch_to_no_thread instead of writing
3918 to inferior_ptid directly.
3919
3920 2020-06-18 Pedro Alves <palves@redhat.com>
3921
3922 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3923 (procfs_target::detach): Use switch_to_no_thread
3924 instead of writing to inferior_ptid directly.
3925 (do_attach): Change return type to void. Switch to the added
3926 thread.
3927 (procfs_target::create_inferior): Switch to the added thread.
3928 (procfs_do_thread_registers): Don't write to inferior_ptid.
3929
3930 2020-06-18 Pedro Alves <palves@redhat.com>
3931
3932 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3933 of writing to inferior_ptid.
3934 (scoped_restore_exited_inferior): Delete.
3935 (handle_vfork_child_exec_or_exit): Simplify using
3936 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3937 instead of writing to inferior_ptid.
3938 (THREAD_STOPPED_BY): Delete.
3939 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3940 (thread_stopped_by_hw_breakpoint): Delete.
3941 (save_waitstatus): Use
3942 scoped_restore_current_thread+switch_to_thread, and call
3943 target_stopped_by_watchpoint instead of
3944 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3945 instead of thread_stopped_by_sw_breakpoint, and
3946 target_stopped_by_hw_breakpoint instead of
3947 thread_stopped_by_hw_breakpoint.
3948 (handle_inferior_event)
3949 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3950 inferior_ptid directly, nor
3951 set_current_inferior/set_current_program_space. Use
3952 switch_to_thread / switch_to_inferior_no_thread instead.
3953
3954 2020-06-18 Pedro Alves <palves@redhat.com>
3955
3956 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3957 instead of writing to inferior_ptid.
3958
3959 2020-06-18 Pedro Alves <palves@redhat.com>
3960
3961 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3962 added thread.
3963 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3964 to the added thread.
3965 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3966 instead of writing to inferior_ptid.
3967
3968 2020-06-18 Pedro Alves <palves@redhat.com>
3969
3970 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3971 (register_to_value_test): Mock a program_space too. Heap-allocate
3972 the address space. Don't write to inferior_ptid. Use
3973 switch_to_thread instead.
3974
3975 2020-06-18 Pedro Alves <palves@redhat.com>
3976
3977 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3978 Delete.
3979 (find_signalled_thread()): New, factored out from
3980 linux_make_corefile_notes and adjusted to handle exited threads.
3981 (linux_make_corefile_notes): Adjust to use the new
3982 find_signalled_thread.
3983
3984 2020-06-18 Pedro Alves <palves@redhat.com>
3985
3986 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3987 of saving/restoring inferior_ptid.
3988
3989 2020-06-17 Tom Tromey <tom@tromey.com>
3990
3991 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3992 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3993 declare.
3994 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3995
3996 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3997
3998 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3999 of partial symtabs.
4000
4001 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * regformats/reg-arm.dat: Remove.
4004 * regformats/reg-bfin.dat: Remove.
4005 * regformats/reg-cris.dat: Remove.
4006 * regformats/reg-crisv32.dat: Remove.
4007 * regformats/reg-m32r.dat: Remove.
4008 * regformats/reg-tilegx.dat: Remove.
4009 * regformats/reg-tilegx32.dat: Remove.
4010
4011 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4012
4013 * features/Makefile (WHICH): Remove arm files.
4014 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4015 * regformats/arm/arm-with-neon.dat: Remove.
4016 * regformats/arm/arm-with-vfpv2.dat: Remove.
4017 * regformats/arm/arm-with-vfpv3.dat: Remove.
4018
4019 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4020
4021 * features/Makefile (XMLTOC): Remove rx.xml.
4022
4023 2020-06-17 Pedro Alves <palves@redhat.com>
4024
4025 * gdbthread.h (thread_control_state) <trap_expected> Update
4026 comments.
4027
4028 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4029
4030 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4031 ada_language::lookup_symbol_nonlocal.
4032 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4033 (ada_language::lookup_symbol_nonlocal): New member function,
4034 implementation from ada_lookup_symbol_nonlocal.
4035 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4036 initializer.
4037 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4038 initializer.
4039 (cplus_language::lookup_symbol_nonlocal): New member function.
4040 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4041 (minimal_language_data) Likewise.
4042 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4043 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4044 initializer.
4045 (d_language::lookup_symbol_nonlocal): New member function.
4046 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4047 initializer.
4048 (f_language::lookup_symbol_nonlocal): New member function.
4049 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4050 initializer.
4051 * language.c (unknown_language_data): Likewise.
4052 (auto_language_data): Likewise.
4053 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4054 field.
4055 (language_defn::lookup_symbol_nonlocal): New member function.
4056 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4057 initializer.
4058 * objc-lang.c (objc_language_data): Likewise.
4059 * opencl-lang.c (opencl_language_data): Likewise.
4060 * p-lang.c (pascal_language_data): Likewise.
4061 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4062 rust_language::lookup_symbol_nonlocal.
4063 (rust_language_data): Delete la_lookup_symbol_nonlocal
4064 initializer.
4065 (rust_language::lookup_symbol_nonlocal): New member function,
4066 implementation from rust_lookup_symbol_nonlocal.
4067 * symtab.c (lookup_symbol_aux): Update call to
4068 lookup_symbol_nonlocal.
4069 (basic_lookup_symbol_nonlocal): Rename to...
4070 (language_defn::lookup_symbol_nonlocal): ...this, and update
4071 header comment. Remove language_defn parameter, and replace with
4072 uses of `this'.
4073 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4074
4075 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4076
4077 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4078 initializer.
4079 (ada_language::value_print_inner): New member function.
4080 * c-lang.c (c_language_data): Delete la_value_print_inner
4081 initializer.
4082 (cplus_language_data): Likewise.
4083 (asm_language_data): Likewise.
4084 (minimal_language_data): Likewise.
4085 * d-lang.c (d_language_data): Likewise.
4086 (d_language::value_print_inner): New member function.
4087 * f-lang.c (f_language_data): Delete la_value_print_inner
4088 initializer.
4089 (f_language::value_print_inner): New member function.
4090 * f-lang.h (f_value_print_innner): Rename to...
4091 (f_value_print_inner): ...this (note spelling of 'inner').
4092 * f-valprint.c (f_value_print_innner): Rename to...
4093 (f_value_print_inner): ...this (note spelling of 'inner').
4094 * go-lang.c (go_language_data): Delete la_value_print_inner
4095 initializer.
4096 (go_language::value_print_inner): New member function.
4097 * language.c (language_defn::value_print_inner): Define new member
4098 function.
4099 (unk_lang_value_print_inner): Delete.
4100 (unknown_language_data): Delete la_value_print_inner initializer.
4101 (unknown_language::value_print_inner): New member function.
4102 (auto_language_data): Delete la_value_print_inner initializer.
4103 (auto_language::value_print_inner): New member function.
4104 * language.h (language_data): Delete la_value_print_inner field.
4105 (language_defn::value_print_inner): Delcare new member function.
4106 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4107 initializer.
4108 (m2_language::value_print_inner): New member function.
4109 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4110 initializer.
4111 * opencl-lang.c (opencl_language_data): Likewise.
4112 * p-lang.c (pascal_language_data): Likewise.
4113 (pascal_language::value_print_inner): New member function.
4114 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4115 initializer.
4116 (rust_language::value_print_inner): New member function.
4117 * valprint.c (do_val_print): Update call to value_print_inner.
4118
4119 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4120
4121 * ada-lang.c (ada_language_data): Delete la_value_print
4122 initializer.
4123 (ada_language::value_print): New member function.
4124 * c-lang.c (c_language_data): Delete la_value_print initializer.
4125 (cplus_language_data): Likewise.
4126 (asm_language_data): Likewise.
4127 (minimal_language_data): Likewise.
4128 * d-lang.c (d_language_data): Likewise.
4129 * f-lang.c (f_language_data): Likewise.
4130 * go-lang.c (go_language_data): Likewise.
4131 * language.c (unk_lang_value_print): Delete.
4132 (language_defn::value_print): Define new member function.
4133 (unknown_language_data): Delete la_value_print initializer.
4134 (unknown_language::value_print): New member function.
4135 (auto_language_data): Delete la_value_print initializer.
4136 (auto_language::value_print): New member function.
4137 * language.h (language_data): Delete la_value_print field.
4138 (language_defn::value_print): Declare new member function.
4139 (LA_VALUE_PRINT): Update call to value_print.
4140 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4141 * objc-lang.c (objc_language_data): Likewise.
4142 * opencl-lang.c (opencl_language_data): Likewise.
4143 * p-lang.c (pascal_language_data): Likewise.
4144 (pascal_language::value_print): New member function.
4145 * rust-lang.c (rust_language_data): Delete la_value_print
4146 initializer.
4147
4148 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4149
4150 * ada-lang.c (ada_watch_location_expression): Rename to
4151 ada_language::watch_location_expression.
4152 (ada_language_data): Delete la_watch_location_expression
4153 initializer.
4154 (ada_language::watch_location_expression): New member function,
4155 implementation from ada_watch_location_expression.
4156 * breakpoint.c (watch_command_1): Update call to
4157 watch_location_expression.
4158 * c-lang.c (c_watch_location_expression): Rename to
4159 language_defn::watch_location_expression.
4160 (c_language_data): Delete la_watch_location_expression
4161 initializer.
4162 (cplus_language_data): Likewise.
4163 (asm_language_data): Likewise.
4164 (minimal_language_data): Likewise.
4165 * c-lang.h (c_watch_location_expression): Delete declaration.
4166 * d-lang.c (d_language_data): Delete la_watch_location_expression
4167 initializer.
4168 * f-lang.c (f_language_data): Likewise.
4169 * go-lang.c (go_language_data): Likewise.
4170 * language.c (language_defn::watch_location_expression): Member
4171 function implementation from c_watch_location_expression.
4172 (unknown_language_data): Delete la_watch_location_expression
4173 initializer.
4174 (auto_language_data): Likewise.
4175 * language.h (language_data): Delete la_watch_location_expression
4176 field.
4177 (language_defn::watch_location_expression): Declare new member
4178 function.
4179 * m2-lang.c (m2_language_data): Delete
4180 la_watch_location_expression initializer.
4181 * objc-lang.c (objc_language_data): Likewise.
4182 * opencl-lang.c (opencl_language_data): Likewise.
4183 * p-lang.c (pascal_language_data): Likewise.
4184 * rust-lang.c (rust_watch_location_expression): Rename to
4185 rust_language::watch_location_expression.
4186 (rust_language_data): Delete la_watch_location_expression
4187 initializer.
4188 (rust_language::watch_location_expression): New member function,
4189 implementation from rust_watch_location_expression.
4190
4191 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4192
4193 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4194 ada_language::collect_symbol_completion_matches.
4195 (ada_language_data): Delete la_collect_symbol_completion_matches
4196 initializer.
4197 (ada_language::collect_symbol_completion_matches): New member
4198 function, implementation from
4199 ada_collect_symbol_completion_matches.
4200 * c-lang.c (c_language_data): Delete
4201 la_collect_symbol_completion_matches initializer.
4202 (cplus_language_data): Likewise.
4203 (asm_language_data): Likewise.
4204 (minimal_language_data): Likewise.
4205 * d-lang.c (d_language_data): Likewise.
4206 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4207 f_language::collect_symbol_completion_matches.
4208 (f_language_data): Delete la_collect_symbol_completion_matches
4209 initializer.
4210 (f_language::collect_symbol_completion_matches) New member
4211 function, implementation from f_collect_symbol_completion_matches.
4212 * go-lang.c (go_language_data): Delete
4213 la_collect_symbol_completion_matches initializer.
4214 * language.c (unknown_language_data): Likewise.
4215 (auto_language_data): Likewise.
4216 * language.h (language_data): Delete
4217 la_collect_symbol_completion_matches field.
4218 (language_defn::collect_symbol_completion_matches): New member
4219 function.
4220 * m2-lang.c (m2_language_data): Delete
4221 la_collect_symbol_completion_matches initializer.
4222 * objc-lang.c (objc_language_data): Likewise.
4223 * opencl-lang.c (opencl_language_data): Likewise.
4224 * p-lang.c (pascal_language_data): Likewise.
4225 * rust-lang.c (rust_language_data): Likewise.
4226 * symtab.c (default_collect_symbol_completion_matches): Delete.
4227 (collect_symbol_completion_matches): Update call to
4228 collect_symbol_completion_matches.
4229 (collect_symbol_completion_matches_type): Likewise.
4230 * symtab.h (default_collect_symbol_completion_matches): Delete
4231 declaration.
4232
4233 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4236 (ada_language_data): Delete la_word_break_characters initializer.
4237 (ada_language::word_break_characters): New member function.
4238 * c-lang.c (c_language_data): Delete la_word_break_characters
4239 initializer.
4240 (cplus_language_data): Likewise.
4241 (asm_language_data): Likewise.
4242 (minimal_language_data): Likewise.
4243 * completer.c: Update global comment.
4244 (advance_to_expression_complete_word_point): Update call to
4245 word_break_characters.
4246 (complete_files_symbols): Likewise.
4247 (complete_line_internal_1): Likewise.
4248 (default_completer_handle_brkchars): Likewise.
4249 (skip_quoted_chars): Likewise.
4250 * d-lang.c (d_language_data): Delete la_word_break_characters
4251 initializer.
4252 * f-lang.c (f_word_break_characters): Delete.
4253 (f_language_data): Delete la_word_break_characters initializer.
4254 (f_language::word_break_characters): New member function.
4255 * go-lang.c (go_language_data): Delete la_word_break_characters
4256 initializer.
4257 * language.c (unknown_language_data): Likewise.
4258 (auto_language_data): Likewise.
4259 * language.h (default_word_break_characters): Move declaration to
4260 earlier in the file.
4261 (language_data): Delete la_word_break_characters field.
4262 (language_defn::word_break_characters): New member function.
4263 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4264 initializer.
4265 * objc-lang.c (objc_language_data): Likewise.
4266 * opencl-lang.c (opencl_language_data): Likewise.
4267 * p-lang.c (pascal_language_data): Likewise.
4268 * rust-lang.c (rust_language_data): Likewise.
4269
4270 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4271
4272 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4273 (ada_language_data): Delete la_get_symbol_name_matcher
4274 initializer.
4275 (language_defn::get_symbol_name_matcher_inner): New member
4276 function.
4277 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4278 initializer.
4279 (cplus_language_data): Likewise.
4280 (cplus_language::get_symbol_name_matcher_inner): New member
4281 function.
4282 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4283 (minimal_language_data): Likewise.
4284 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4285 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4286 initializer.
4287 * dictionary.c (iter_match_first_hashed): Update call to
4288 get_symbol_name_matcher.
4289 (iter_match_next_hashed): Likewise.
4290 (iter_match_next_linear): Likewise.
4291 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4292 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4293 initializer.
4294 (f_language::get_symbol_name_matcher_inner): New member function.
4295 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4296 initializer.
4297 * language.c (default_symbol_name_matcher): Update header comment,
4298 make static.
4299 (language_defn::get_symbol_name_matcher): New definition.
4300 (language_defn::get_symbol_name_matcher_inner): Likewise.
4301 (get_symbol_name_matcher): Delete.
4302 (unknown_language_data): Delete la_get_symbol_name_matcher
4303 initializer.
4304 (auto_language_data): Likewise.
4305 * language.h (language_data): Delete la_get_symbol_name_matcher
4306 field.
4307 (language_defn::get_symbol_name_matcher): New member function.
4308 (language_defn::get_symbol_name_matcher_inner): Likewise.
4309 (default_symbol_name_matcher): Delete declaration.
4310 * linespec.c (find_methods): Update call to
4311 get_symbol_name_matcher.
4312 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4313 initializer.
4314 * minsyms.c (lookup_minimal_symbol): Update call to
4315 get_symbol_name_matcher.
4316 (iterate_over_minimal_symbols): Likewise.
4317 * objc-lang.c (objc_language_data): Delete
4318 la_get_symbol_name_matcher initializer.
4319 * opencl-lang.c (opencl_language_data): Likewise.
4320 * p-lang.c (pascal_language_data): Likewise.
4321 * psymtab.c (psymbol_name_matches): Update call to
4322 get_symbol_name_matcher.
4323 * rust-lang.c (rust_language_data): Delete
4324 la_get_symbol_name_matcher initializer.
4325 * symtab.c (symbol_matches_search_name): Update call to
4326 get_symbol_name_matcher.
4327 (compare_symbol_name): Likewise.
4328
4329 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4330
4331 * ada-lang.c (ada_language_data): Delete la_compute_program
4332 initializer.
4333 * c-lang.c (c_language_data): Likewise.
4334 (c_language::compute_program): New member function.
4335 (cplus_language_data): Delete la_compute_program initializer.
4336 (cplus_language::compute_program): New member function.
4337 (asm_language_data): Delete la_compute_program initializer.
4338 (minimal_language_data): Likewise.
4339 * c-lang.h (c_compute_program): Update comment.
4340 (cplus_compute_program): Likewise.
4341 * compile/compile-c-support.c (c_compute_program): Likewise.
4342 (cplus_compute_program): Likewise.
4343 * compile/compile.c (compile_to_object): Update call to
4344 la_compute_program.
4345 * d-lang.c (d_language_data): Delete la_compute_program
4346 initializer.
4347 * f-lang.c (f_language_data): Likewise.
4348 * go-lang.c (go_language_data): Likewise.
4349 * language.c (unknown_language_data): Likewise.
4350 (auto_language_data): Likewise.
4351 * language.h (language_data): Delete la_compute_program field.
4352 (language_defn::compute_program): New member function.
4353 * m2-lang.c (m2_language_data): Delete la_compute_program
4354 initializer.
4355 * objc-lang.c (objc_language_data): Likewise.
4356 * opencl-lang.c (opencl_language_data): Likewise.
4357 * p-lang.c (pascal_language_data): Likewise.
4358 * rust-lang.c (rust_language_data): Likewise.
4359
4360 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4361
4362 * ada-lang.c (ada_language_data) Delete
4363 la_class_name_from_physname initializer.
4364 * c-lang.c (c_language_data): Likewise.
4365 (cplus_language_data): Likewise.
4366 (cplus_language::class_name_from_physname): New member function.
4367 (asm_language_data): Delete la_class_name_from_physname
4368 initializer.
4369 (minimal_language_data): Likewise.
4370 * d-lang.c (d_language_data): Likewise.
4371 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4372 method on language_defn class.
4373 (guess_full_die_structure_name): Likewise.
4374 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4375 initializer.
4376 * go-lang.c (go_language_data): Likewise.
4377 * language.c (language_class_name_from_physname): Delete.
4378 (unk_lang_class_name): Delete.
4379 (unknown_language_data): Delete la_class_name_from_physname
4380 initializer.
4381 (auto_language_data): Likewise.
4382 * language.h (language_data): Delete la_class_name_from_physname
4383 field.
4384 (language_defn::class_name_from_physname): New function.
4385 (language_class_name_from_physname): Delete declaration.
4386 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4387 initializer.
4388 * objc-lang.c (objc_language_data): Likewise.
4389 * opencl-lang.c (opencl_language_data): Likewise.
4390 * p-lang.c (pascal_language_data): Likewise.
4391 * rust-lang.c (rust_language_data): Likewise.
4392
4393 2020-06-16 Tom Tromey <tom@tromey.com>
4394
4395 * tui/tui-data.h (STATUS_NAME): New macro.
4396 * tui/tui-layout.c (tui_remove_some_windows)
4397 (initialize_known_windows, tui_register_window)
4398 (tui_layout_split::remove_windows, initialize_layouts)
4399 (tui_new_layout_command): Don't use hard-coded window names.
4400
4401 2020-06-16 Tom Tromey <tom@tromey.com>
4402
4403 PR tui/25348:
4404 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4405 tui_initialize_readline. Only run once. Call rl_initialize.
4406 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4407 tui_initialize_readline.
4408 * tui/tui-io.c (tui_setup_io): Call
4409 tui_ensure_readline_initialized.
4410 * tui/tui-interp.c (tui_interp::init): Update.
4411
4412 2020-06-16 Tom Tromey <tom@tromey.com>
4413
4414 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4415 Also preserve the status window.
4416
4417 2020-06-16 Tom Tromey <tom@tromey.com>
4418
4419 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4420 where m_window==nullptr.
4421
4422 2020-06-15 Tom Tromey <tromey@adacore.com>
4423
4424 * windows-nat.c (windows_nat::handle_output_debug_string):
4425 Update.
4426 (windows_nat::handle_ms_vc_exception): Update.
4427 * target.h (target_read_string): Change API.
4428 * target.c (target_read_string): Change API.
4429 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4430 Update.
4431 * solib-frv.c (frv_current_sos): Update.
4432 * solib-dsbt.c (dsbt_current_sos): Update.
4433 * solib-darwin.c (darwin_current_sos): Update.
4434 * linux-thread-db.c (inferior_has_bug): Update.
4435 * expprint.c (print_subexp_standard): Update.
4436 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4437 (ada_exception_message_1): Update.
4438
4439 2020-06-15 Tom Tromey <tromey@adacore.com>
4440
4441 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4442
4443 2020-06-15 Tom Tromey <tromey@adacore.com>
4444
4445 * valprint.c (read_string): Update comment.
4446 * target.c (MIN): Remove.
4447 (target_read_string): Rewrite.
4448
4449 2020-06-15 Tom Tromey <tromey@adacore.com>
4450
4451 * corefile.c (read_memory_string): Remove.
4452 * ada-valprint.c (ada_value_print_ptr): Update.
4453 * ada-lang.h (ada_tag_name): Change return type.
4454 * ada-lang.c (type_from_tag): Update.
4455 (ada_tag_name_from_tsd): Change return type. Use
4456 target_read_string.
4457 (ada_tag_name): Likewise.
4458 * gdbcore.h (read_memory_string): Don't declare.
4459
4460 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4461
4462 * symtab.c (rbreak_command): Ignore Windows drive colon.
4463
4464 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4465
4466 * NEWS: Mention removed GDBserver host support.
4467
4468 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4469
4470 * features/riscv/rebuild-csr-xml.sh: Updated.
4471
4472 2020-06-11 Tom Tromey <tom@tromey.com>
4473
4474 PR gdb/18318:
4475 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4476
4477 2020-06-09 Jonny Grant <jg@jguk.org>
4478 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4479
4480 * main.c (captured_main_1): Don't print new line after help.
4481 (print_gdb_help): add mailing list and IRC channel information
4482 to --help. Add new lines between items in the footer. Remove
4483 quotes around bug url.
4484
4485 2020-06-11 Keith Seitz <keiths@redhat.com>
4486
4487 PR gdb/21356
4488 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4489 Resolve typedefs for type length calculations.
4490
4491 2020-06-10 Tom de Vries <tdevries@suse.de>
4492
4493 PR ada/24713
4494 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4495 (write_psymbols): Enable .gdb_index for ada.
4496 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4497 ada.
4498
4499 2020-06-10 Tom de Vries <tdevries@suse.de>
4500
4501 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4502 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4503 namei" instead of "const char *name" argument.
4504 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4505 dw2_symtab_iter_init.
4506
4507 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4508
4509 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4510 to use type::field and field::type instead.
4511
4512 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4513
4514 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4515 to use field::type instead.
4516
4517 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4518
4519 * gdbtypes.h (struct field) <type, set_type>: New methods.
4520 Rename `type` field to...
4521 <m_type>: ... this. Change references throughout to use type or
4522 set_type methods.
4523 (FIELD_TYPE): Use field::type. Change call sites that modify
4524 the field's type to use field::set_type instead.
4525
4526 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4527
4528 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4529 to use type::index_type instead.
4530
4531 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4532
4533 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4534 methods.
4535 (TYPE_INDEX_TYPE): Use type::index_type.
4536 * gdbtypes.c (create_array_type_with_stride): Likewise.
4537
4538 2020-06-07 Tom Tromey <tom@tromey.com>
4539
4540 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4541 parameter.
4542 (generic_value_print): Update.
4543
4544 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4545
4546 Revert commit 982a38f60b0.
4547 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4548
4549 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4550
4551 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4552 avoid use after free.
4553
4554 2020-06-05 Tom de Vries <tdevries@suse.de>
4555
4556 * NEWS: Fix typos.
4557
4558 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4559
4560 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4561 the per_bfd object.
4562 (dwarf2_read_debug_names): Likewise.
4563 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4564 object when re-using a per_bfd object with an index.
4565
4566 2020-06-03 Tom de Vries <tdevries@suse.de>
4567
4568 PR symtab/26046
4569 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4570 children for C++.
4571 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4572 DW_TAG_subprogram.
4573
4574 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4575
4576 * ada-lang.c (ada_language_data): Delete skip_trampoline
4577 initializer.
4578 * c-lang.c (c_language_data): Likewise.
4579 (cplus_language_data): Likewise.
4580 (cplus_language::skip_trampoline): New member function.
4581 (asm_language_data): Delete skip_trampoline initializer.
4582 (minimal_language_data): Likewise.
4583 * d-lang.c (d_language_data): Likewise.
4584 * f-lang.c (f_language_data): Likewise.
4585 * go-lang.c (go_language_data): Likewise.
4586 * language.c (unk_lang_trampoline): Delete function.
4587 (skip_language_trampoline): Update.
4588 (unknown_language_data): Delete skip_trampoline initializer.
4589 (auto_language_data): Likewise.
4590 * language.h (language_data): Delete skip_trampoline field.
4591 (language_defn::skip_trampoline): New function.
4592 * m2-lang.c (m2_language_data): Delete skip_trampoline
4593 initializer.
4594 * objc-lang.c (objc_skip_trampoline): Delete function, move
4595 implementation to objc_language::skip_trampoline.
4596 (objc_language_data): Delete skip_trampoline initializer.
4597 (objc_language::skip_trampoline): New member function with
4598 implementation from objc_skip_trampoline.
4599 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4600 initializer.
4601 * p-lang.c (pascal_language_data): Likewise.
4602 * rust-lang.c (rust_language_data): Likewise.
4603
4604 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4605
4606 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4607 (ada_language::demangle): New member function.
4608 * c-lang.c (c_language_data): Delete la_demangle initializer.
4609 (cplus_language_data): Delete la_demangle initializer.
4610 (cplus_language::demangle): New member function.
4611 (asm_language_data): Delete la_demangle initializer.
4612 (minimal_language_data): Delete la_demangle initializer.
4613 * d-lang.c (d_language_data): Delete la_demangle initializer.
4614 (d_language::demangle): New member function.
4615 * f-lang.c (f_language_data): Delete la_demangle initializer.
4616 (f_language::demangle): New member function.
4617 * go-lang.c (go_language_data): Delete la_demangle initializer.
4618 (go_language::demangle): New member function.
4619 * language.c (language_demangle): Update.
4620 (unk_lang_demangle): Delete.
4621 (unknown_language_data): Delete la_demangle initializer.
4622 (unknown_language::demangle): New member function.
4623 (auto_language_data): Delete la_demangle initializer.
4624 (auto_language::demangle): New member function.
4625 * language.h (language_data): Delete la_demangle field.
4626 (language_defn::demangle): New function.
4627 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4628 * objc-lang.c (objc_language_data): Delete la_demangle
4629 initializer.
4630 (objc_language::demangle): New member function.
4631 * opencl-lang.c (opencl_language_data): Delete la_demangle
4632 initializer.
4633 * p-lang.c (pascal_language_data): Likewise.
4634 * rust-lang.c (rust_language_data): Likewise.
4635 (rust_language::demangle): New member function.
4636
4637 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4638
4639 * ada-lang.c (ada_language_data): Delete la_print_type
4640 initializer.
4641 (ada_language::print_type): New member function.
4642 * c-lang.c (c_language_data): Delete la_print_type initializer.
4643 (c_language::print_type): New member function.
4644 (cplus_language_data): Delete la_print_type initializer.
4645 (cplus_language::print_type): New member function.
4646 (asm_language_data): Delete la_print_type initializer.
4647 (asm_language::print_type): New member function.
4648 (minimal_language_data): Delete la_print_type initializer.
4649 (minimal_language::print_type): New member function.
4650 * d-lang.c (d_language_data): Delete la_print_type initializer.
4651 (d_language::print_type): New member function.
4652 * f-lang.c (f_language_data): Delete la_print_type initializer.
4653 (f_language::print_type): New member function.
4654 * go-lang.c (go_language_data): Delete la_print_type initializer.
4655 (go_language::print_type): New member function.
4656 * language.c (unk_lang_print_type): Delete.
4657 (unknown_language_data): Delete la_print_type initializer.
4658 (unknown_language::print_type): New member function.
4659 (auto_language_data): Delete la_print_type initializer.
4660 (auto_language::print_type): New member function.
4661 * language.h (language_data): Delete la_print_type field.
4662 (language_defn::print_type): New function.
4663 (LA_PRINT_TYPE): Update.
4664 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4665 (m2_language::print_type): New member function.
4666 * objc-lang.c (objc_language_data): Delete la_print_type
4667 initializer.
4668 (objc_language::print_type): New member function.
4669 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4670 to opencl_language::print_type.
4671 (opencl_language_data): Delete la_print_type initializer.
4672 (opencl_language::print_type): New member function, implementation
4673 from opencl_print_type.
4674 * p-lang.c (pascal_language_data): Delete la_print_type
4675 initializer.
4676 (pascal_language::print_type): New member function.
4677 * rust-lang.c (rust_print_type): Delete, implementation moved to
4678 rust_language::print_type.
4679 (rust_language_data): Delete la_print_type initializer.
4680 (rust_language::print_type): New member function, implementation
4681 from rust_print_type.
4682
4683 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4684
4685 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4686 implementation moves to...
4687 (ada_language::sniff_from_mangled_name): ...here. Update return
4688 type.
4689 (ada_language_data): Delete la_sniff_from_mangled_name
4690 initializer.
4691 * c-lang.c (c_language_data): Likewise.
4692 (cplus_language_data): Likewise.
4693 (cplus_language::sniff_from_mangled_name): New member function,
4694 implementation taken from gdb_sniff_from_mangled_name.
4695 (asm_language_data): Delete la_sniff_from_mangled_name
4696 initializer.
4697 (minimal_language_data): Likewise.
4698 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4699 implementation moves to cplus_language::sniff_from_mangled_name.
4700 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4701 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4702 moves to...
4703 (d_language::sniff_from_mangled_name): ...here.
4704 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4705 * f-lang.c (f_language_data): Likewise.
4706 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4707 moves to...
4708 (go_language::sniff_from_mangled_name): ...here.
4709 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4710 * language.c (language_sniff_from_mangled_name): Delete.
4711 (unknown_language_data): Delete la_sniff_from_mangled_name
4712 initializer.
4713 (auto_language_data): Likewise.
4714 * language.h (language_data): Delete la_sniff_from_mangled_name
4715 field.
4716 (language_defn::sniff_from_mangled_name): New function.
4717 (language_sniff_from_mangled_name): Delete declaration.
4718 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4719 field.
4720 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4721 implementation moves to...
4722 (objc_language::sniff_from_mangled_name): ...here.
4723 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4724 * opencl-lang.c (opencl_language_data): Likewise.
4725 * p-lang.c (pascal_language_data): Likewise.
4726 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4727 implementation moves to...
4728 (rust_language::sniff_from_mangled_name): ...here.
4729 (rust_language_data): Delete la_sniff_from_mangled_name
4730 initializer.
4731 * symtab.c (symbol_find_demangled_name): Call
4732 sniff_from_mangled_name member function.
4733
4734 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4735
4736 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4737 initializer.
4738 * c-lang.c (c_language_data): Likewise.
4739 (cplus_language_data): Likewise.
4740 (cplus_language::search_name_hash): New member function.
4741 (asm_language_data): Delete la_search_name_hash initializer.
4742 (minimal_language_data): Likewise.
4743 * d-lang.c (d_language_data): Likewise.
4744 * dictionary.c (default_search_name_hash): Rename to...
4745 (language_defn::search_name_hash): ...this.
4746 * f-lang.c (f_language_data): Likewise.
4747 (f_language::search_name_hash): New member function.
4748 * go-lang.c (go_language_data): Delete la_search_name_hash
4749 initializer.
4750 * language.c (unknown_language_data): Likewise.
4751 (auto_language_data): Likewise.
4752 * language.h (struct language_data): Delete la_search_name_hash
4753 field.
4754 (language_defn::search_name_hash): Declare new member function.
4755 (default_search_name_hash): Delete declaration.
4756 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4757 initializer.
4758 * objc-lang.c (objc_language_data): Likewise.
4759 * opencl-lang.c (opencl_language_data): Likewise.
4760 * p-lang.c (pascal_language_data): Likewise.
4761 * rust-lang.c (rust_language_data): Likewise.
4762 * symtab.c (search_name_hash): Update call.
4763
4764 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4765
4766 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4767 initializer.
4768 * c-lang.c (class compile_instance): Declare.
4769 (c_language_data): Delete la_get_compile_instance initializer.
4770 (c_language::get_compile_instance): New member function.
4771 (cplus_language_data): Delete la_get_compile_instance initializer.
4772 (cplus_language::get_compile_instance): New member function.
4773 (asm_language_data): Delete la_get_compile_instance initializer.
4774 (minimal_language_data): Likewise.
4775 * c-lang.h (c_get_compile_context): Update comment.
4776 (cplus_get_compile_context): Update comment.
4777 * compile/compile.c (compile_to_object): Update calls, don't rely
4778 on function pointer being NULL.
4779 * d-lang.c (d_language_data): Delete la_get_compile_instance
4780 initializer.
4781 * f-lang.c (f_language_data): Likewise.
4782 * go-lang.c (go_language_data): Likewise.
4783 * language.c (unknown_language_data): Likewise.
4784 (auto_language_data): Likewise.
4785 * language.h (language_data): Delete la_get_compile_instance field.
4786 (language_defn::get_compile_instance): New member function.
4787 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4788 initializer.
4789 * objc-lang.c (objc_language_data): Likewise.
4790 * opencl-lang.c (opencl_language_data): Likewise.
4791 * p-lang.c (pascal_language_data): Likewise.
4792 * rust-lang.c (rust_language_data): Likewise.
4793
4794 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4795
4796 * ada-lang.c (ada_add_all_symbols): Update comment.
4797 (ada_iterate_over_symbols): Delete, move implementation to...
4798 (ada_language::iterate_over_symbols): ...here, a new member
4799 function, rewrite to use range based for loop.
4800 (ada_language_data): Delete la_iterate_over_symbols initializer.
4801 * c-lang.c (c_language_data): Likewise.
4802 (cplus_language_data): Likewise.
4803 (asm_language_data): Likewise.
4804 (minimal_language_data): Likewise.
4805 * d-lang.c (d_language_data): Likewise.
4806 * f-lang.c (f_language_data): Likewise.
4807 * go-lang.c (go_language_data): Likewise.
4808 * language.c (unknown_language_data): Likewise.
4809 (auto_language_data): Likewise.
4810 * language.h (language_data): Delete la_iterate_over_symbols field.
4811 (language_defn::iterate_over_symbols): New member function.
4812 (LA_ITERATE_OVER_SYMBOLS): Update.
4813 * linespec.c (iterate_over_all_matching_symtabs): Update.
4814 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4815 initializer.
4816 * objc-lang.c (objc_language_data): Likewise.
4817 * opencl-lang.c (opencl_language_data): Likewise.
4818 * p-lang.c (pascal_language_data): Likewise.
4819 * rust-lang.c (rust_language_data): Likewise.
4820
4821 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4822
4823 * ada-lang.c (ada_language_data): Delete
4824 la_lookup_transparent_type initializer.
4825 * c-lang.c (c_language_data): Likewise.
4826 (cplus_language_data): Likewise.
4827 (cplus_language::lookup_transparent_type): New member function.
4828 (asm_language_data): Delete la_lookup_transparent_type
4829 initializer.
4830 (minimal_language_data): Likewise.
4831 * d-lang.c (d_language_data): Likewise.
4832 * f-lang.c (f_language_data): Likewise.
4833 * go-lang.c (go_language_data): Likewise.
4834 * language.c (unknown_language_data): Likewise.
4835 (auto_language_data): Likewise.
4836 * language.h (struct language_data): Delete
4837 la_lookup_transparent_type field.
4838 (language_defn::lookup_transparent_type): New member function.
4839 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4840 initializer.
4841 * objc-lang.c (objc_language_data): Likewise.
4842 * opencl-lang.c (opencl_language_data): Likewise.
4843 * p-lang.c (pascal_language_data): Likewise.
4844 * rust-lang.c (rust_language_data): Likewise.
4845 * symtab.c (symbol_matches_domain): Update call.
4846
4847 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4848
4849 * ada-lang.c (ada_language_arch_info): Delete function, move
4850 implementation to...
4851 (ada_language::language_arch_info): ...here, a new member
4852 function.
4853 (ada_language_data): Delete la_language_arch_info.
4854 * c-lang.c (c_language_data): Likewise.
4855 (c_language::language_arch_info): New member function.
4856 (cplus_language_arch_info): Delete function, move
4857 implementation to...
4858 (cplus_language::language_arch_info): ...here, a new member
4859 function.
4860 (cplus_language_data): Delete la_language_arch_info.
4861 (asm_language_data): Likewise.
4862 (asm_language::language_arch_info): New member function.
4863 (minimal_language_data): Delete la_language_arch_info.
4864 (minimal_language::language_arch_info): New member function.
4865 * d-lang.c (d_language_arch_info): Delete function, move
4866 implementation to...
4867 (d_language::language_arch_info): ...here, a new member
4868 function.
4869 (d_language_data): Delete la_language_arch_info.
4870 * f-lang.c (f_language_arch_info): Delete function, move
4871 implementation to...
4872 (f_language::language_arch_info): ...here, a new member
4873 function.
4874 (f_language_data): Delete la_language_arch_info.
4875 * go-lang.c (go_language_arch_info): Delete function, move
4876 implementation to...
4877 (go_language::language_arch_info): ...here, a new member
4878 function.
4879 (go_language_data): Delete la_language_arch_info.
4880 * language.c (unknown_language_data): Likewise.
4881 (unknown_language::language_arch_info): New member function.
4882 (auto_language_data): Delete la_language_arch_info.
4883 (auto_language::language_arch_info): New member function.
4884 (language_gdbarch_post_init): Update call to
4885 la_language_arch_info.
4886 * language.h (language_data): Delete la_language_arch_info
4887 function pointer.
4888 (language_defn::language_arch_info): New function.
4889 * m2-lang.c (m2_language_arch_info): Delete function, move
4890 implementation to...
4891 (m2_language::language_arch_info): ...here, a new member
4892 function.
4893 (m2_language_data): Delete la_language_arch_info.
4894 * objc-lang.c (objc_language_arch_info): Delete function, move
4895 implementation to...
4896 (objc_language::language_arch_info): ...here, a new member
4897 function.
4898 (objc_language_data): Delete la_language_arch_info.
4899 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4900 implementation to...
4901 (opencl_language::language_arch_info): ...here, a new member
4902 function.
4903 (opencl_language_data): Delete la_language_arch_info.
4904 * p-lang.c (pascal_language_arch_info): Delete function, move
4905 implementation to...
4906 (pascal_language::language_arch_info): ...here, a new member
4907 function.
4908 (pascal_language_data): Delete la_language_arch_info.
4909 * rust-lang.c (rust_language_arch_info): Delete function, move
4910 implementation to...
4911 (rust_language::language_arch_info): ...here, a new member
4912 function.
4913 (rust_language_data): Delete la_language_arch_info.
4914
4915 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4916
4917 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4918 initializer.
4919 * c-lang.c (c_language_data): Likewise.
4920 (cplus_language_data): Likewise.
4921 (cplus_language::pass_by_reference_info): New method.
4922 (asm_language_data): Delete la_pass_by_reference initializer.
4923 (minimal_language_data): Likewise.
4924 * cp-abi.c (cp_pass_by_reference): Remove use of
4925 default_pass_by_reference.
4926 * d-lang.c (d_language_data): Likewise.
4927 * f-lang.c (f_language_data): Likewise.
4928 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4929 default_pass_by_reference.
4930 * go-lang.c (go_language_data): Likewise.
4931 * language.c (language_pass_by_reference): Update.
4932 (default_pass_by_reference): Delete.
4933 (unknown_language_data): Delete la_pass_by_reference
4934 initializer.
4935 (auto_language_data): Likewise.
4936 * language.h (struct language_data): Delete la_pass_by_reference
4937 field.
4938 (language_defn::pass_by_reference_info): New member function.
4939 (default_pass_by_reference): Delete declaration.
4940 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4941 initializer.
4942 * objc-lang.c (objc_language_data): Likewise.
4943 * opencl-lang.c (opencl_language_data): Likewise.
4944 * p-lang.c (pascal_language_data): Likewise.
4945 * rust-lang.c (rust_language_data): Likewise.
4946
4947 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4948
4949 * ada-lang.c (ada_read_var_value): Delete function, move
4950 implementation to...
4951 (ada_language::read_var_value): ...here.
4952 (ada_language_data): Delete la_read_var_value initializer.
4953 * c-lang.c (c_language_data): Likewise.
4954 (cplus_language_data): Likewise.
4955 (minimal_language_data): Likewise.
4956 * d-lang.c (d_language_data): Likewise.
4957 * f-lang.c (f_language_data): Likewise.
4958 * findvar.c (default_read_var_value): Rename to...
4959 (language_defn::read_var_value): ...this.
4960 * findvar.c (read_var_value): Update header comment, and change to
4961 call member function instead of function pointer.
4962 * go-lang.c (go_language_data): Likewise.
4963 * language.c (unknown_language_data): Delete la_read_var_value
4964 initializer.
4965 (auto_language_data): Likewise.
4966 * language.h (struct language_data): Delete la_read_var_value
4967 field.
4968 (language_defn::read_var_value): New member function.
4969 (default_read_var_value): Delete declaration.
4970 * m2-lang.c (m2_language_data): Delete la_read_var_value
4971 initializer.
4972 * objc-lang.c (objc_language_data): Likewise.
4973 * opencl-lang.c (opencl_language_data): Likewise.
4974 * p-lang.c (pascal_language_data): Likewise.
4975 * rust-lang.c (rust_language_data): Likewise.
4976 * value.h (default_read_var_value): Delete declaration.
4977
4978 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4979
4980 * ada-lang.c (ada_print_array_index): Delete function, move
4981 implementation to...
4982 (ada_language::print_array_index): ...here.
4983 (ada_language_data): Delete la_print_array_index initializer.
4984 * c-lang.c (c_language_data): Likewise.
4985 (cplus_language_data): Likewise.
4986 (minimal_language_data): Likewise.
4987 * d-lang.c (d_language_data): Likewise.
4988 * f-lang.c (f_language_data): Likewise.
4989 * go-lang.c (go_language_data): Likewise.
4990 * language.c (default_print_array_index): Delete function, move
4991 implementation to...
4992 (language_defn::print_array_index): ...here.
4993 (unknown_language_data): Delete la_print_array_index initializer.
4994 (auto_language_data): Likewise.
4995 * language.h (struct language_data): Delete la_print_array_index
4996 field.
4997 (language_defn::print_array_index): New member function.
4998 (LA_PRINT_ARRAY_INDEX): Update.
4999 (default_print_array_index): Delete declaration.
5000 * m2-lang.c (m2_language_data): Delete la_print_array_index
5001 initializer.
5002 * objc-lang.c (objc_language_data): Likewise.
5003 * opencl-lang.c (opencl_language_data): Likewise.
5004 * p-lang.c (pascal_language_data): Likewise.
5005 * rust-lang.c (rust_language_data): Likewise.
5006
5007 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5008
5009 * gdb/ada-lang.c (ada_language_defn): Convert to...
5010 (ada_language_data): ...this.
5011 (class ada_language): New class.
5012 (ada_language_defn): New static global.
5013 * gdb/c-lang.c (c_language_defn): Convert to...
5014 (c_language_data): ...this.
5015 (class c_language): New class.
5016 (c_language_defn): New static global.
5017 (cplus_language_defn): Convert to...
5018 (cplus_language_data): ...this.
5019 (class cplus_language): New class.
5020 (cplus_language_defn): New static global.
5021 (asm_language_defn): Convert to...
5022 (asm_language_data): ...this.
5023 (class asm_language): New class.
5024 (asm_language_defn): New static global.
5025 (minimal_language_defn): Convert to...
5026 (minimal_language_data): ...this.
5027 (class minimal_language): New class.
5028 (minimal_language_defn): New static global.
5029 * gdb/d-lang.c (d_language_defn): Convert to...
5030 (d_language_data): ...this.
5031 (class d_language): New class.
5032 (d_language_defn): New static global.
5033 * gdb/f-lang.c (f_language_defn): Convert to...
5034 (f_language_data): ...this.
5035 (class f_language): New class.
5036 (f_language_defn): New static global.
5037 * gdb/go-lang.c (go_language_defn): Convert to...
5038 (go_language_data): ...this.
5039 (class go_language): New class.
5040 (go_language_defn): New static global.
5041 * gdb/language.c (unknown_language_defn): Remove declaration.
5042 (current_language): Initialize to nullptr, real initialization is
5043 moved to _initialize_language.
5044 (languages): Delete global.
5045 (language_defn::languages): Define.
5046 (set_language_command): Use language_defn::languages.
5047 (set_language): Likewise.
5048 (range_error): Likewise.
5049 (language_enum): Likewise.
5050 (language_def): Likewise.
5051 (add_set_language_command): Use language_def::languages for the
5052 language list, and language_def to lookup language pointers.
5053 (skip_language_trampoline): Use language_defn::languages.
5054 (unknown_language_defn): Convert to...
5055 (unknown_language_data): ...this.
5056 (class unknown_language): New class.
5057 (unknown_language_defn): New static global.
5058 (auto_language_defn): Convert to...
5059 (auto_language_data): ...this.
5060 (class auto_language): New class.
5061 (auto_language_defn): New static global.
5062 (language_gdbarch_post_init): Use language_defn::languages.
5063 (_initialize_language): Initialize current_language.
5064 * gdb/language.h (struct language_defn): Rename to...
5065 (struct language_data): ...this.
5066 (struct language_defn): New.
5067 (auto_language_defn): Delete.
5068 (unknown_language_defn): Delete.
5069 (minimal_language_defn): Delete.
5070 (ada_language_defn): Delete.
5071 (asm_language_defn): Delete.
5072 (c_language_defn): Delete.
5073 (cplus_language_defn): Delete.
5074 (d_language_defn): Delete.
5075 (f_language_defn): Delete.
5076 (go_language_defn): Delete.
5077 (m2_language_defn): Delete.
5078 (objc_language_defn): Delete.
5079 (opencl_language_defn): Delete.
5080 (pascal_language_defn): Delete.
5081 (rust_language_defn): Delete.
5082 * gdb/m2-lang.c (m2_language_defn): Convert to...
5083 (m2_language_data): ...this.
5084 (class m2_language): New class.
5085 (m2_language_defn): New static global.
5086 * gdb/objc-lang.c (objc_language_defn): Convert to...
5087 (objc_language_data): ...this.
5088 (class objc_language): New class.
5089 (objc_language_defn): New static global.
5090 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5091 (opencl_language_data): ...this.
5092 (class opencl_language): New class.
5093 (opencl_language_defn): New static global.
5094 * gdb/p-lang.c (pascal_language_defn): Convert to...
5095 (pascal_language_data): ...this.
5096 (class pascal_language): New class.
5097 (pascal_language_defn): New static global.
5098 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5099 language pointer, update comment format.
5100 * gdb/rust-lang.c (rust_language_defn): Convert to...
5101 (rust_language_data): ...this.
5102 (class rust_language): New class.
5103 (rust_language_defn): New static global.
5104
5105 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5106
5107 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5108 member variable.
5109 <m_stmt_at_address>: New member variable.
5110 (lnp_state_machine::record_line): Don't record some lines, update
5111 tracking of is_stmt at the same address.
5112 (lnp_state_machine::lnp_state_machine): Initialise new member
5113 variables.
5114
5115 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5116
5117 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5118 "-include gnu-nat-mig.h".
5119 * gnu-nat-mig.h: New file.
5120 * gnu-nat.c: Include "gnu-nat-mig.h".
5121 (exc_server, msg_reply_server, notify_server,
5122 process_reply_server): Remove declarations.
5123
5124 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5125
5126 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5127 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5128 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5129 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5130 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5131 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5132 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5133 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5134 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5135 to gnu_nat_target class.
5136 * gnu-nat.c: Likewise.
5137 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5138 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5139 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5140 object.
5141 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5142 instead of `gnu_target'.
5143
5144 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5145
5146 * i386-gnu-tdep.c: Include "gdbcore.h"
5147 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5148 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5149 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5150 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5151 i386_gnu_sigcontext_addr): New functions
5152 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5153 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5154 tdep.
5155
5156 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5157
5158 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5159 before fork_inferior call. Avoid calling it if target_is_pushed returns
5160 true.
5161
5162 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5163
5164 * gnu-nat.h (gnu_target): New variable declaration.
5165 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5166 gnu_target.
5167 * gnu-nat.c (gnu_target): New variable.
5168 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5169 add_thread_silent, and add_thread calls.
5170 (gnu_nat_target::create_inferior): Pass gnu_target to
5171 add_thread_silent, thread_change_ptid call.
5172 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5173 call.
5174
5175 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5176
5177 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5178 (gnu_nat_target::find_memory_regions): Remove unused
5179 `old_address' variable.
5180
5181 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5182
5183 * gnu-nat.c: Include "gdbarch.h".
5184
5185 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5186
5187 * reply_mig_hack.awk (Error return): Cast function through
5188 void *, to bypass compiler function call check.
5189
5190 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5191
5192 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5193 $(srcdir)/reply_mig_hack.awk.
5194
5195 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5196
5197 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5198
5199 2020-05-30 Jonny Grant <jg@jguk.org>
5200
5201 * configure.ac (ACX_BUGURL): change bug URL to https.
5202
5203 2020-05-30 Pedro Alves <palves@redhat.com>
5204
5205 * cp-support.c (replace_typedefs_template): New.
5206 (replace_typedefs_qualified_name): Handle
5207 DEMANGLE_COMPONENT_TEMPLATE.
5208
5209 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5210
5211 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5212 dwarf2/index-cache.h, dwarf2/index-write.c,
5213 dwarf2/index-write.h, dwarf2/line-header.c,
5214 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5215 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5216 variables and fields from `dwarf2_per_objfile` to just
5217 `per_objfile` throughout.
5218
5219 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5220
5221 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5222 <push_dwarf_reg_entry_value>: Add comment.
5223
5224 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5225 Keith Seitz <keiths@redhat.com>
5226
5227 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5228 instead of PyEval_ReleaseLock.
5229 (class gdbpy_gil): Move to earlier in file.
5230 (finalize_python): Set gdb_python_initialized.
5231 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5232 when not initialized.
5233
5234 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5235
5236 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5237 <push_dwarf_reg_entry_value>: Remove assert. Override
5238 per_objfile with caller_per_objfile.
5239
5240 2020-05-28 Tom de Vries <tdevries@suse.de>
5241
5242 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5243 PR gold/15646 workaround to symbol kind "type".
5244
5245 2020-05-27 Tom Tromey <tromey@adacore.com>
5246
5247 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5248
5249 2020-05-27 Tom Tromey <tromey@adacore.com>
5250
5251 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5252 Use htab_find_with_hash.
5253 <add_abbrev>: Remove "abbrev_number" parameter.
5254 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5255 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5256 (hash_abbrev): Add comment.
5257 (abbrev_table::lookup_abbrev): Move to header file.
5258 (abbrev_table::read): Update.
5259
5260 2020-05-27 Tom Tromey <tromey@adacore.com>
5261
5262 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5263 method.
5264 <canonical_name>: New member.
5265 <raw_name>: Rename from "name".
5266 (partial_die_info): Initialize canonical_name.
5267 (scan_partial_symbols): Check raw_name.
5268 (partial_die_parent_scope, partial_die_full_name)
5269 (add_partial_symbol, add_partial_subprogram)
5270 (add_partial_enumeration, load_partial_dies): Use "name" method.
5271 (partial_die_info::name): New method.
5272 (partial_die_info::read, guess_partial_die_structure_name)
5273 (partial_die_info::fixup): Update.
5274
5275 2020-05-27 Tom Tromey <tromey@adacore.com>
5276
5277 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5278 <get_ref_die_offset>: Inline.
5279 <get_ref_die_offset_complaint>: New method.
5280 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5281 (attribute::get_ref_die_offset_complaint): Rename from
5282 get_ref_die_offset. Just issue complaint.
5283
5284 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5285
5286 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5287
5288 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5289
5290 * exec.c (exec_file_attach): Use errno value of first openp failure.
5291
5292 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5293
5294 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5295 Don't close thread handle.
5296
5297 2020-05-27 Tom Tromey <tom@tromey.com>
5298 Simon Marchi <simon.marchi@efficios.com>
5299
5300 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5301 shared_ptr.
5302 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5303 member.
5304 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5305 dwarf2_per_bfd_objfile_data_key>: New globals.
5306 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5307 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5308 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5309 shared.
5310 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5311 short-circuit when sharing.
5312 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5313 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5314
5315 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5316
5317 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5318 to...
5319 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5320 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5321
5322 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5323
5324 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5325 build_name_components, find_name_components_bounds>:
5326 Add per_objfile parameter.
5327 (struct mapped_index) <symbol_name_at>: Likewise.
5328 (struct mapped_debug_names): Remove constructor.
5329 <dwarf2_per_objfile>: Remove field.
5330 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5331 (mapped_index_base::find_name_components_bounds,
5332 mapped_index_base::build_name_components,
5333 dw2_expand_symtabs_matching_symbol): Likewise.
5334 (class mock_mapped_index) <symbol_name_at>: Likewise.
5335 (check_match): Likewise.
5336 (check_find_bounds_finds): Likewise.
5337 (test_mapped_index_find_name_component_bounds): Update.
5338 (CHECK_MATCH): Update.
5339 (dw2_expand_symtabs_matching): Update.
5340 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5341 per_objfile parameter.
5342 <find_vec_in_debug_names>: Likewise.
5343 <m_per_objfile>: New field.
5344 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5345 parameter.
5346 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5347 (dw2_debug_names_iterator::next): Update.
5348 (dw2_debug_names_lookup_symbol): Update.
5349 (dw2_debug_names_expand_symtabs_for_function): Update.
5350 (dw2_debug_names_map_matching_symbols): Update.
5351 (dw2_debug_names_expand_symtabs_matching): Update.
5352 (dwarf2_read_debug_names): Update.
5353
5354 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5355
5356 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5357 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5358 move to dwarf2_per_objfile.
5359 <read_in_chain>: Remove.
5360 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5361 remove_all_cus, age_comp_units>: New methods.
5362 <m_dwarf2_cus>: New member.
5363 (struct dwarf2_per_cu_data) <cu>: Remove.
5364 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5365 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5366 moved to methods of dwarf2_per_objfile.
5367 (dwarf2_clear_marks): Remove.
5368 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5369 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5370 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5371 (dwarf2_per_objfile::remove_all_cus): New.
5372 (class free_cached_comp_units) <~free_cached_comp_units>:
5373 Update.
5374 (load_cu): Update.
5375 (dw2_do_instantiate_symtab): Adjust.
5376 (fill_in_sig_entry_from_dwo_entry): Adjust.
5377 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5378 (cutu_reader::cutu_reader): Likewise.
5379 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5380 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5381 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5382 and dwarf2_per_objfile::age_comp_units.
5383 (load_partial_comp_unit): Update.
5384 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5385 (process_queue): Likewise.
5386 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5387 backlink.
5388 (dwarf2_read_addr_index): Likewise.
5389 (follow_die_offset): Likewise.
5390 (dwarf2_fetch_die_loc_sect_off): Likewise.
5391 (dwarf2_fetch_constant_bytes): Likewise.
5392 (dwarf2_fetch_die_type_sect_off): Likewise.
5393 (follow_die_sig_1): Likewise.
5394 (load_full_type_unit): Likewise.
5395 (read_signatured_type): Likewise.
5396 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5397 (dwarf2_cu::~dwarf2_cu): Remove.
5398 (dwarf2_per_objfile::get_cu): New.
5399 (dwarf2_per_objfile::set_cu): New.
5400 (age_cached_comp_units): Rename to...
5401 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5402 to std::unordered_map.
5403 (free_one_cached_comp_unit): Rename to...
5404 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5405 to std::unordered_map.
5406 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5407 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5408 a dwarf2_per_objfile in data.
5409 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5410 (dwarf2_clear_marks): Remove.
5411
5412 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5413
5414 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5415 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5416 (init_tu_and_read_dwo_dies): Likewise.
5417 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5418 (cutu_reader::cutu_reader): Likewise.
5419 (load_partial_comp_unit): Likewise.
5420 (process_psymtab_comp_unit): Update.
5421 (build_type_psymtabs_1): Update.
5422 (process_skeletonless_type_unit): Update.
5423 (load_full_comp_unit): Update.
5424 (find_partial_die): Update.
5425 (dwarf2_read_addr_index): Update.
5426 (read_signatured_type): Update.
5427
5428 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5429
5430 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5431 m_header_read_in>: New fields.
5432 <get_header>: New method.
5433 * dwarf2/read.c (per_cu_header_read_in): Remove.
5434 (dwarf2_per_cu_data::get_header): New.
5435 (dwarf2_per_cu_data::addr_size): Update.
5436 (dwarf2_per_cu_data::offset_size): Update.
5437 (dwarf2_per_cu_data::ref_addr_size): Update.
5438
5439 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5440
5441 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5442 (dw2_do_instantiate_symtab): Update.
5443 (queue_and_load_all_dwo_tus): Change parameter from
5444 dwarf2_per_cu_data to dwarf2_cu.
5445 (dwarf2_fetch_die_loc_sect_off): Update.
5446 (dwarf2_fetch_constant_bytes): Update.
5447 (dwarf2_fetch_die_type_sect_off): Update.
5448
5449 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5450
5451 * dwarf2/read.c (process_full_comp_unit,
5452 process_full_type_unit): Remove per_cu, per_objfile paramters.
5453 Add dwarf2_cu parameter.
5454 (process_queue): Update.
5455
5456 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5457
5458 * dwarf2/read.c (create_cu_from_index_list): Replace
5459 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5460 (create_cus_from_index_list): Likewise.
5461 (create_cus_from_index): Likewise.
5462 (create_signatured_type_table_from_index): Likewise.
5463 (create_cus_from_debug_names_list): Likewise.
5464 (create_cus_from_debug_names): Likewise.
5465 (dwarf2_read_gdb_index): Update.
5466 (dwarf2_read_debug_names): Update.
5467
5468 2020-05-27 Tom Tromey <tom@tromey.com>
5469 Simon Marchi <simon.marchi@efficios.com>
5470
5471 * dwarf2/read.h (struct dwarf2_per_objfile)
5472 <get_type_for_signatured_type, set_type_for_signatured_type>:
5473 New methods.
5474 <m_type_map>: New member.
5475 (struct signatured_type) <type>: Remove.
5476 * dwarf2/read.c
5477 (dwarf2_per_objfile::get_type_for_signatured_type,
5478 dwarf2_per_objfile::set_type_for_signatured_type): New.
5479 (get_signatured_type): Use new methods.
5480
5481 2020-05-27 Tom Tromey <tom@tromey.com>
5482 Simon Marchi <simon.marchi@efficios.com>
5483
5484 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5485 (struct dwarf2_per_objfile) <type_units>: New member.
5486 <get_type_unit_group_unshareable>: New method.
5487 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5488 num_symtabs, symtabs>: Remove; move to
5489 type_unit_group_unshareable.
5490 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5491 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5492 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5493
5494 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5495
5496 * dwarf2/read.h (struct dwarf2_per_cu_data):
5497 <dwarf2_per_objfile>: Remove.
5498 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5499 dwarf2_per_objfile.
5500 (create_signatured_type_table_from_index): Likewise.
5501 (create_signatured_type_table_from_debug_names): Likewise.
5502 (create_debug_type_hash_table): Likewise.
5503 (fill_in_sig_entry_from_dwo_entry): Likewise.
5504 (create_type_unit_group): Likewise.
5505 (read_comp_units_from_section): Likewise.
5506 (create_cus_hash_table): Likewise.
5507
5508 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5509
5510 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5511 dwarf2_per_cu_data::dwarf2_per_objfile.
5512 (compute_compunit_symtab_includes): Likewise.
5513 (dwarf2_cu::start_symtab): Likewise.
5514
5515 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5516
5517 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5518 parameter.
5519 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5520 (read_namespace_alias): Update.
5521 (lookup_die_type): Update.
5522 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5523 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5524 Update.
5525 (disassemble_dwarf_expression): Update.
5526
5527 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5528
5529 * dwarf2/read.h (struct dwarf2_queue_item): Add
5530 dwarf2_per_objfile parameter, assign new parameter.
5531 <per_objfile>: New field.
5532 * dwarf2/read.c (free_one_cached_comp_unit): Add
5533 dwarf2_per_objfile parameter.
5534 (queue_comp_unit): Likewise.
5535 (dw2_do_instantiate_symtab): Update.
5536 (process_psymtab_comp_unit): Update.
5537 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5538 (process_imported_unit_die): Update.
5539 (queue_and_load_dwo_tu): Update.
5540 (follow_die_offset): Update.
5541 (follow_die_sig_1): Update.
5542
5543 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5544
5545 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5546 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5547 (read_call_site_scope): Assign per_objfile.
5548 (dwarf2_per_cu_data::objfile): Remove.
5549 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5550 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5551 dwarf2_per_objfile parameter.
5552 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5553 dwarf2_per_objfile parameter.
5554 (dwarf_expr_reg_to_entry_parameter): Add output
5555 dwarf2_per_objfile parameter.
5556 (locexpr_get_frame_base): Update.
5557 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5558 <push_dwarf_reg_entry_value>: Update.
5559 <call_site_to_target_addr>: Update.
5560 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5561 parameter.
5562 (value_of_dwarf_reg_entry): Update.
5563 (rw_pieced_value): Update.
5564 (indirect_synthetic_pointer): Update.
5565 (dwarf2_evaluate_property): Update.
5566 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5567 parameter.
5568 (locexpr_read_variable): Update.
5569 (locexpr_get_symbol_read_needs): Update.
5570 (loclist_read_variable): Update.
5571
5572 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5573
5574 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5575 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5576 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5577 parameter.
5578 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5579 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5580 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5581 parameter.
5582 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5583 sect_variable_value): Add dwarf2_per_objfile parameter.
5584 (class dwarf_evaluate_loc_desc) <dwarf_call,
5585 dwarf_variable_value>: Update.
5586 (fetch_const_value_from_synthetic_pointer): Add
5587 dwarf2_per_objfile parameter.
5588 (fetch_const_value_from_synthetic_pointer): Update.
5589 (coerced_pieced_ref): Update.
5590 (class symbol_needs_eval_context) <dwarf_call,
5591 dwarf_variable_value>: Update.
5592 (dwarf2_compile_expr_to_ax): Update.
5593
5594 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5595
5596 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5597 parameter.
5598 (dwarf2_evaluate_loc_desc_full): Update.
5599
5600 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5601
5602 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5603 parameter.
5604 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5605 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5606 dwarf2_per_objfile parameter.
5607 (decode_debug_loc_dwo_addresses): Likewise.
5608 (dwarf2_find_location_expression): Update.
5609 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5610 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5611 parameter.
5612 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5613 parameter.
5614 (locexpr_describe_location_1): Likewise.
5615 (locexpr_describe_location): Update.
5616
5617 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5618
5619 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5620 Remove.
5621 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5622 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5623 (dwarf2_compile_property_to_c): Update.
5624 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5625 use text offset from objfile.
5626 (locexpr_tracepoint_var_ref): Update.
5627 (locexpr_generate_c_location): Update.
5628 (loclist_describe_location): Update.
5629 (loclist_tracepoint_var_ref): Update.
5630 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5631 dwarf2_per_objfile parameter.
5632 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5633 use text offset from objfile.
5634 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5635
5636 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5637
5638 * dwarf2/expr.h (struct dwarf_expr_context)
5639 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5640 <offset>: Remove.
5641 <per_objfile>: New member.
5642 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5643 dwarf2_per_objfile parameter. Don't set offset, set
5644 per_objfile.
5645 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5646 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5647 a dwarf2_per_objfile object instead of an offset.
5648 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5649 constructor.
5650 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5651 to dwarf2_expr_executor constructor. Don't set offset.
5652 (dwarf2_fetch_cfa_info): Update.
5653 (struct dwarf2_frame_cache) <text_offset>: Remove.
5654 <per_objfile>: New field.
5655 (dwarf2_frame_cache): Update.
5656 (dwarf2_frame_prev_register): Update.
5657 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5658 <dwarf_evaluate_loc_desc>: Add constructor.
5659 (dwarf2_evaluate_loc_desc_full): Update.
5660 (dwarf2_locexpr_baton_eval): Update.
5661 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5662 Add constructor.
5663 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5664
5665 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5666
5667 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5668 addr_sized_int_type>: Move to dwarf2_cu.
5669 <int_type>: Move to dwarf2_per_objfile.
5670 (struct dwarf2_per_objfile) <int_type>: Move here.
5671 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5672 addr_sized_int_type>: Move here.
5673 (read_func_scope): Update.
5674 (read_array_type): Update.
5675 (read_tag_string_type): Update.
5676 (attr_to_dynamic_prop): Update.
5677 (dwarf2_per_cu_data::int_type): Rename to...
5678 (dwarf2_per_objfile::int_type): ... this.
5679 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5680 (dwarf2_cu::addr_sized_int_type): ... this.
5681 (read_subrange_type): Update.
5682 (dwarf2_per_cu_data::addr_type): Rename to...
5683 (dwarf2_cu::addr_type): ... this.
5684 (set_die_type): Update.
5685
5686 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5687
5688 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5689 data through per_cu->cu.
5690
5691 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5692
5693 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5694 dwarf2_per_cu_data parameter fo dwarf2_cu.
5695 (lookup_dwo_type_unit): Likewise.
5696 (read_cutu_die_from_dwo): Likewise.
5697 (lookup_dwo_unit): Likewise.
5698 (open_and_init_dwo_file): Likewise.
5699 (lookup_dwo_cutu): Likewise.
5700 (lookup_dwo_comp_unit): Likewise.
5701 (lookup_dwo_type_unit): Likewise.
5702 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5703 (cutu_reader::cutu_reader): Update.
5704
5705 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5706
5707 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5708 parameter.
5709 (process_full_type_unit): Likewise.
5710 (process_queue): Update.
5711
5712 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5713
5714 * dwarf2/read.c (recursively_compute_inclusions): Add
5715 dwarf2_per_objfile parameter.
5716 (compute_compunit_symtab_includes): Likewise.
5717 (process_cu_includes): Update.
5718
5719 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5720
5721 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5722 parameter.
5723 (create_type_unit_group): Update.
5724 (process_psymtab_comp_unit_reader): Update.
5725 (build_type_psymtabs_reader): Update.
5726
5727 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5728
5729 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5730 object through m_this_cu->cu.
5731
5732 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5733
5734 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5735 the info parameter.
5736 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5737
5738 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5739
5740 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5741 per_objfile parameter.
5742 (load_full_type_unit): Add per_objfile parameter.
5743 (read_signatured_type): Likewise.
5744 (load_full_comp_unit): Likewise.
5745 (load_cu): Likewise.
5746 (dw2_do_instantiate_symtab): Likewise.
5747 (dw2_get_file_names): Likewise.
5748 (dw2_map_symtabs_matching_filename): Update.
5749 (dw_expand_symtabs_matching_file_matcher): Update.
5750 (dw2_map_symbol_filenames): Update.
5751 (process_psymtab_comp_unit): Add per_objfile parameter.
5752 (build_type_psymtabs_1): Update.
5753 (process_skeletonless_type_unit): Update.
5754 (dwarf2_build_psymtabs_hard): Update.
5755 (load_partial_comp_unit): Add per_objfile parameter.
5756 (scan_partial_symbols): Update.
5757 (load_full_comp_unit): Add per_objfile parameter.
5758 (process_imported_unit_die): Update.
5759 (create_cus_hash_table): Update.
5760 (find_partial_die): Update.
5761 (dwarf2_read_addr_index): Update.
5762 (follow_die_offset): Update.
5763 (dwarf2_fetch_die_loc_sect_off): Update.
5764 (dwarf2_fetch_constant_bytes): Update.
5765 (dwarf2_fetch_die_type_sect_off): Update.
5766 (follow_die_sig_1): Update.
5767 (load_full_type_unit): Add per_objfile parameter.
5768 (read_signatured_type): Likewise.
5769
5770 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5771
5772 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5773 of objfile_name.
5774
5775 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5776
5777 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5778 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5779 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5780 field.
5781 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5782 (create_cus_from_index): Update.
5783 (dwarf2_read_gdb_index): Update.
5784 (create_cus_from_debug_names): Update.
5785 (dwarf2_read_debug_names): Update.
5786 (get_abbrev_section_for_cu): Update.
5787 (create_all_comp_units): Update.
5788 (read_attribute_value): Update.
5789 (get_debug_line_section): Update.
5790 * dwarf2/index-cache.c (index_cache::store): Update.
5791 * dwarf2/index-write.c (save_gdb_index_command): Update.
5792 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5793
5794 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5795
5796 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5797 member.
5798 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5799 dwarf2_per_cu_data::per_bfd.
5800 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5801 (create_type_unit_group): Likewise.
5802 (queue_comp_unit): Remove reference to
5803 per_cu->dwarf2_per_objfile.
5804 (maybe_queue_comp_unit): Likewise.
5805 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5806 (create_cus_hash_table): Assign new field.
5807
5808 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5809
5810 * dwarf2/read.c: Replace
5811 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5812 dwarf2_cu->per_objfile throughout.
5813
5814 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5815
5816 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5817 parameter, don't use per_cu->dwarf2_per_objfile.
5818 (dw2_instantiate_symtab): Likewise.
5819 (dw2_find_last_source_symtab): Update.
5820 (dw2_map_expand_apply): Update.
5821 (dw2_lookup_symbol): Update.
5822 (dw2_expand_symtabs_for_function): Update.
5823 (dw2_expand_all_symtabs): Update.
5824 (dw2_expand_symtabs_with_fullname): Update.
5825 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5826 don't use per_cu->dwarf2_per_objfile.
5827 (dw2_expand_marked_cus): Update.
5828 (dw2_find_pc_sect_compunit_symtab): Update.
5829 (dw2_debug_names_lookup_symbol): Update.
5830 (dw2_debug_names_expand_symtabs_for_function): Update.
5831 (dw2_debug_names_map_matching_symbols): Update.
5832 (dwarf2_psymtab::expand_psymtab): Update.
5833
5834 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5835
5836 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5837 <per_objfile>: New member.
5838 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5839 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5840 call to dwarf2_cu.
5841 (cutu_reader::cutu_reader): Update.
5842 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5843
5844 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5845
5846 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5847 struct dwarf2_per_objfile.
5848 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5849 dwarf2_per_bfd.
5850 * dwarf2/read.c (set_die_type): Update.
5851 (get_die_type_at_offset): Update.
5852
5853 2020-05-27 Tom Tromey <tom@tromey.com>
5854 Simon Marchi <simon.marchi@efficios.com>
5855
5856 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5857 method.
5858 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5859 get_symtab, set_symtab>: New methods.
5860 <m_symtabs>: New field.
5861 (struct dwarf2_psymtab): Derive from partial_symtab.
5862 <readin_p, get_compunit_symtab>: Declare methods.
5863 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5864 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5865 New methods.
5866 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5867 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5868 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5869 (dw2_symtab_iter_next, dw2_print_stats)
5870 (dw2_expand_symtabs_with_fullname)
5871 (dw2_expand_symtabs_matching_one)
5872 (dw_expand_symtabs_matching_file_matcher)
5873 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5874 (dw2_debug_names_iterator::next)
5875 (dw2_debug_names_map_matching_symbols)
5876 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5877 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5878 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5879 New methods.
5880 (get_compunit_symtab, process_full_comp_unit)
5881 (process_full_type_unit): Update.
5882 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5883
5884 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5885
5886 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5887 then introduce a new dwarf2_per_objfile type.
5888 <read_line_string>: Move to the new dwarf2_per_objfile type.
5889 <objfile>: Likewise.
5890 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5891 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5892 dwarf2_per_objfile->per_bfd.
5893 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5894 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5895 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5896 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5897 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5898 (dwarf2_per_objfile::locate_sections): Rename to...
5899 (dwarf2_per_bfd::locate_sections): ... this.
5900 (dwarf2_per_objfile::get_cutu): Rename to...
5901 (dwarf2_per_bfd::get_cutu): ... this.
5902 (dwarf2_per_objfile::get_cu): Rename to...
5903 (dwarf2_per_bfd::get_cu): ... this.
5904 (dwarf2_per_objfile::get_tu): Rename to...
5905 (dwarf2_per_bfd::get_tu): ... this.
5906 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5907 (dwarf2_per_bfd::allocate_per_cu): ... this.
5908 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5909 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5910 (get_gdb_index_contents_ftype): Change parameter from
5911 dwarf2_per_objfile to dwarf2_per_bfd.
5912 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5913 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5914
5915 2020-05-27 Tom Tromey <tom@tromey.com>
5916 Simon Marchi <simon.marchi@efficios.com>
5917
5918 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5919 (allocate_piece_closure): Set "per_objfile" member.
5920 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5921 (locexpr_describe_location, loclist_describe_location): Use new
5922 member.
5923 * dwarf2/read.c (read_call_site_scope)
5924 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5925 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5926 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5927 handle_data_member_location): Set per_objfile member.
5928 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5929 member.
5930 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5931
5932 2020-05-27 Tom Tromey <tom@tromey.com>
5933
5934 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5935 allocate_signatured_type>: Declare new methods.
5936 <m_num_psymtabs>: New member.
5937 (struct dwarf2_per_cu_data) <index>: New member.
5938 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5939 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5940 (create_cu_from_index_list): Use allocate_per_cu.
5941 (create_signatured_type_table_from_index)
5942 (create_signatured_type_table_from_debug_names)
5943 (create_debug_type_hash_table, add_type_unit)
5944 (read_comp_units_from_section): Use allocate_signatured_type.
5945
5946 2020-05-27 Tom Tromey <tom@tromey.com>
5947
5948 * psymtab.c (partial_map_expand_apply)
5949 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5950 (psym_lookup_global_symbol_language)
5951 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5952 (psym_print_stats, psym_expand_symtabs_for_function)
5953 (psym_map_symbol_filenames, psym_map_matching_symbols)
5954 (psym_expand_symtabs_matching)
5955 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5956 (maintenance_check_psymtabs): Update.
5957 * psympriv.h (struct partial_symtab) <readin_p,
5958 get_compunit_symtab>: Add objfile parameter.
5959 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5960 Likewise.
5961 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5962 get_compunit_symtab>: Likewise.
5963 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5964
5965 2020-05-27 Tom Tromey <tom@tromey.com>
5966
5967 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5968 member.
5969 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5970 (create_cu_from_index_list)
5971 (create_signatured_type_table_from_index)
5972 (create_signatured_type_table_from_debug_names)
5973 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5974 (dwarf2_create_include_psymtab)
5975 (create_debug_type_hash_table, add_type_unit)
5976 (create_type_unit_group, read_comp_units_from_section)
5977 (dwarf2_compute_name, create_cus_hash_table)
5978 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5979 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5980 obstack.
5981 (dw2_get_real_path): Likewise. Change argument to
5982 dwarf2_per_objfile.
5983
5984 2020-05-27 Luis Machado <luis.machado@linaro.org>
5985
5986 PR tdep/26000
5987 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5988 for ldrd (immediate).
5989
5990 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5991
5992 * command.h: Add comment giving the name of class_tui.
5993 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5994 create the fake command for the help for class_tui.
5995
5996 2020-05-26 Tom Tromey <tromey@adacore.com>
5997
5998 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5999 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6000 (val_atr): New function.
6001 (value_val_atr): Use it.
6002 * ada-valprint.c (print_optional_low_bound): Change low bound
6003 handling for enums.
6004 (val_print_packed_array_elements): Don't call discrete_position.
6005 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6006 discrete_position for enum types.
6007 * language.c (default_print_array_index): Change type.
6008 * language.h (struct language_defn) <la_print_array_index>: Add
6009 index_type parameter, change type of index_value.
6010 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6011 (default_print_array_index): Update.
6012 * valprint.c (maybe_print_array_index): Don't call
6013 value_from_longest. Update.
6014 (value_print_array_elements): Don't call discrete_position.
6015
6016 2020-05-26 Tom Tromey <tromey@adacore.com>
6017
6018 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6019 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6020
6021 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6022
6023 PR gdb/13519
6024 * avr-tdep.c (avr_integer_to_address): Return data or code
6025 address accordingly to the second 'type' argument of the
6026 function.
6027
6028 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6029
6030 * infcmd.c, inferior.h: (construct_inferior_arguments):
6031 Moved function from here to gdbsupport/common-inferior.{h,cc}
6032
6033 2020-05-23 Tom Tromey <tom@tromey.com>
6034
6035 Revert commit eca1f90c:
6036 * NEWS: Remove entry for completion styling.
6037 * completer.c (_rl_completion_prefix_display_length): Move
6038 declaration later.
6039 (gdb_fnprint): Revert.
6040 (gdb_display_match_list_1): Likewise.
6041 * cli/cli-style.c (completion_prefix_style)
6042 (completion_difference_style, completion_suffix_style): Remove.
6043 (_initialize_cli_style): Revert.
6044 * cli/cli-style.h (completion_prefix_style)
6045 (completion_difference_style, completion_suffix_style): Don't
6046 declare.
6047
6048 2020-05-24 Pedro Alves <palves@redhat.com>
6049
6050 * symtab.c (completion_list_add_name): Return boolean indication
6051 of whether the symbol matched.
6052 (completion_list_add_symbol): Don't try to remove C++ aliases if
6053 the symbol didn't match in the first place.
6054 * symtab.h (completion_list_add_name): Return bool.
6055
6056 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6057
6058 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6059 type::field.
6060
6061 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6062
6063 GDB 9.2 released.
6064
6065 2020-05-23 Tom Tromey <tom@tromey.com>
6066
6067 * NEWS: Add entry for completion styling.
6068 * completer.c (_rl_completion_prefix_display_length): Move
6069 declaration earlier.
6070 (gdb_fnprint): Use completion_style.
6071 (gdb_display_match_list_1): Likewise.
6072 * cli/cli-style.c (completion_prefix_style)
6073 (completion_difference_style, completion_suffix_style): New
6074 globals.
6075 (_initialize_cli_style): Register new globals.
6076 * cli/cli-style.h (completion_prefix_style)
6077 (completion_difference_style, completion_suffix_style): Declare.
6078
6079 2020-05-23 Pedro Alves <palves@redhat.com>
6080
6081 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6082 (parse_escape): Use ISDIGIT instead of isdigit.
6083 (puts_debug): Use gdb_isprint instead of isprint.
6084 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6085 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6086 ISSPACE instead of isspace.
6087 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6088 instead of isspace.
6089 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6090 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6091 instead of isxdigit and ISDIGIT instead of isdigit.
6092
6093 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6094
6095 * gdbtypes.h (struct type) <field>: New method.
6096 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6097 or type::field.
6098
6099 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6100
6101 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6102 (TYPE_FIELDS): Use type::fields. Change all call sites that
6103 modify the propery to use type::set_fields instead.
6104
6105 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6106
6107 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6108 type::num_fields instead.
6109
6110 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6111
6112 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6113 methods.
6114 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6115 that modify the number of fields to use type::set_num_fields
6116 instead.
6117
6118 2020-05-22 Tom Tromey <tromey@adacore.com>
6119
6120 * compile/compile-object-load.h (munmap_list_free): Don't
6121 declare.
6122
6123 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6124
6125 * annotate.c (annotate_source_line): Update return type, add call
6126 to update current symtab and line.
6127 * annotate.h (annotate_source_line): Update return type, and
6128 extend header comment.
6129 * source.c (info_line_command): Check annotation_level before
6130 calling annotate_source_line.
6131 * stack.c (print_frame_info): If calling annotate_source_line
6132 returns true, then don't print any other source line information.
6133
6134 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6135
6136 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6137
6138 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6139
6140 * coffread.c (patch_type): Remove NULL check before xfree.
6141 * corefile.c (set_gnutarget): Likewise.
6142 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6143 * exec.c (build_section_table): Likewise.
6144 * remote.c (remote_target::pass_signals): Likewise.
6145 * utils.c (n_spaces): Likewise.
6146 * cli/cli-script.c (document_command): Likewise.
6147 * i386-windows-tdep.c (core_process_module_section): Likewise.
6148 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6149
6150 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6151
6152 * symfile.c (reread_symbols): Clear objfile's section_offsets
6153 vector and section indices, re-compute them by calling
6154 sym_offsets.
6155
6156 2020-05-20 Tom Tromey <tromey@adacore.com>
6157
6158 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6159 (desc_one_bound, desc_index_type): Compute field name.
6160
6161 2020-05-20 Tom de Vries <tdevries@suse.de>
6162
6163 PR symtab/25833
6164 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6165
6166 2020-05-20 Alan Modra <amodra@gmail.com>
6167
6168 PR 25993
6169 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6170 bfd_set_filename.
6171 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6172 passed to bfd_set_filename.
6173 * symfile-mem.c (add_vsyscall_page): Likewise for string
6174 passed to symbol_file_add_from_memory.
6175 (symbol_file_add_from_memory): Make name param a const char* and
6176 don't strdup.
6177
6178 2020-05-20 Alan Modra <amodra@gmail.com>
6179
6180 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6181 rather than accessing bfd->filename directly.
6182 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6183 and use bfd_section_name.
6184 * dwarf2/frame.c (decode_frame_entry): Likewise.
6185 * exec.c (exec_set_section_address): Likewise.
6186 * solib-aix.c (solib_aix_bfd_open): Likewise.
6187 * stap-probe.c (get_stap_base_address): Likewise.
6188 * symfile.c (reread_symbols): Likewise.
6189
6190 2020-05-19 Tom Tromey <tromey@adacore.com>
6191
6192 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6193
6194 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6195
6196 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6197
6198 2020-05-19 Pedro Alves <palves@redhat.com>
6199
6200 * NEWS (set exec-file-mismatch): Adjust entry.
6201 * exec.c: Include "build-id.h".
6202 (validate_exec_file): Try to match build IDs instead of filenames.
6203 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6204 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6205 and pass down 'warn_if_slow'.
6206 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6207 gdb_bfd_open_closure to pass it down.
6208 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6209
6210 2020-05-19 Pedro Alves <palves@redhat.com>
6211
6212 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6213 * target.c (target_fileio_open_1): Rename to target_fileio_open
6214 and make extern. Use bool.
6215 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6216 (target_fileio_read_alloc_1): Adjust.
6217 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6218 (target_fileio_open_warn_if_slow): Delete declaration.
6219
6220 2020-05-19 Pedro Alves <palves@redhat.com>
6221
6222 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6223 Adjust all callers.
6224
6225 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6226
6227 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6228 whether disp is negative.
6229
6230 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6231
6232 * symfile.h (struct symfile_segment_data)
6233 <~symfile_segment_data>: Remove.
6234 <segment_info>: Change to std::vector.
6235 * symfile.c (default_symfile_segments): Update.
6236 * elfread.c (elf_symfile_segments): Update.
6237
6238 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6239
6240 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6241 <segments>: New.
6242 <segment_bases, segment_sizes>: Remove.
6243 * symfile.c (default_symfile_segments): Update.
6244 * elfread.c (elf_symfile_segments): Update.
6245 * remote.c (remote_target::get_offsets): Update.
6246 * solib-target.c (solib_target_relocate_section_addresses):
6247 Update.
6248
6249 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6250
6251 * symfile.h (struct symfile_segment_data): Initialize fields.
6252 <~symfile_segment_data>: Add.
6253 (symfile_segment_data_up): New.
6254 (struct sym_fns) <sym_segments>: Return a
6255 symfile_segment_data_up.
6256 (default_symfile_segments): Return a symfile_segment_data_up.
6257 (free_symfile_segment_data): Remove.
6258 (get_symfile_segment_data): Return a symfile_segment_data_up.
6259 * symfile.c (default_symfile_segments): Likewise.
6260 (get_symfile_segment_data): Likewise.
6261 (free_symfile_segment_data): Remove.
6262 (symfile_find_segment_sections): Update.
6263 * elfread.c (elf_symfile_segments): Return a
6264 symfile_segment_data_up.
6265 * remote.c (remote_target::get_offsets): Update.
6266 * solib-target.c (solib_target_relocate_section_addresses):
6267 Update.
6268 * symfile-debug.c (debug_sym_segments): Return a
6269 symfile_segment_data_up.
6270
6271 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6272
6273 PR build/25981
6274 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6275 Hardcode register numbers.
6276
6277 PR build/25981
6278 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6279 procfs_find_LDT_entry): Remove.
6280 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6281 procfs_find_LDT_entry): Remove.
6282 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6283 Remove.
6284
6285 2020-05-17 Pedro Alves <palves@redhat.com>
6286 Andrew Burgess <andrew.burgess@embecosm.com>
6287 Keno Fischer <keno@juliacomputing.com>
6288
6289 PR gdb/25741
6290 * breakpoint.c (build_target_condition_list): Update comments.
6291 (build_target_command_list): Update comments and skip matching
6292 locations.
6293 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6294 a separate function. Simplify "set breakpoint auto-hw off"
6295 handling.
6296 (insert_breakpoints): Update comment.
6297 (tracepoint_locations_match): New parameter. For breakpoints,
6298 compare location types too, if the caller wants to.
6299 (handle_automatic_hardware_breakpoints): New functions.
6300 (bp_location_is_less_than): Also sort by location type and
6301 hardware breakpoint length.
6302 (update_global_location_list): Handle "set breakpoint auto-hw on"
6303 here.
6304 (update_breakpoint_locations): Ask breakpoint_locations_match to
6305 ignore location types.
6306
6307 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6308
6309 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6310 type::name instead.
6311
6312 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6313
6314 * gdbtypes.h (struct type) <name, set_name>: New methods.
6315 (TYPE_CODE): Use type::name. Change all call sites used to set
6316 the name to use type::set_name instead.
6317
6318 2020-05-16 Tom Tromey <tom@tromey.com>
6319
6320 * top.c (quit_force): Update.
6321 * infrun.c (handle_no_resumed): Update.
6322 * top.h (all_uis): New function.
6323 (ALL_UIS): Remove.
6324
6325 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6326
6327 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6328
6329 2020-05-16 Pedro Alves <palves@redhat.com>
6330
6331 * ia64-linux-nat.c
6332 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6333 Declare method.
6334 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6335
6336 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6337
6338 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6339 (sparc64_adi_info): Likewise.
6340
6341 2020-05-15 Tom Tromey <tom@tromey.com>
6342
6343 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6344 block_objfile.
6345 (lookup_objfile_from_block): Remove.
6346 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6347 (lookup_global_symbol): Use block_objfile.
6348 * symtab.h (lookup_objfile_from_block): Don't declare.
6349 * printcmd.c (clear_dangling_display_expressions): Use
6350 block_objfile.
6351 * parse.c (operator_check_standard): Use block_objfile.
6352
6353 2020-05-15 Tom Tromey <tom@tromey.com>
6354
6355 * language.c (language_alloc_type_symbol): Set
6356 SYMBOL_SECTION.
6357 * symtab.c (initialize_objfile_symbol): Remove.
6358 (allocate_symbol): Remove.
6359 (allocate_template_symbol): Remove.
6360 * dwarf2/read.c (fixup_go_packaging): Use "new".
6361 (new_symbol): Use "new".
6362 (read_variable): Don't call initialize_objfile_symbol. Use
6363 "new".
6364 (read_func_scope): Use "new".
6365 * xcoffread.c (process_xcoff_symbol): Don't call
6366 initialize_objfile_symbol.
6367 (SYMBOL_DUP): Remove.
6368 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6369 "new".
6370 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6371 (allocate_template_symbol): Don't declare.
6372 (struct symbol): Add copy constructor. Change defaults.
6373 * jit.c (finalize_symtab): Use "new".
6374 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6375 Use "new".
6376 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6377 (common_block_end): Use "new".
6378 * mdebugread.c (parse_symbol): Use "new".
6379 (new_symbol): Likewise.
6380
6381 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6382
6383 * NEWS: Mention changes to help and apropos.
6384
6385 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6386
6387 * command.h (enum command_class): Improve comments, document
6388 that class_alias is for user-defined aliases, give the class
6389 name for each class, remove unused class_xdb.
6390 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6391 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6392 by a precise class.
6393 * infcmd.c (_initialize_infcmd): Likewise.
6394 * reverse.c (_initialize_reverse): Likewise.
6395 * stack.c (_initialize_stack): Likewise.
6396 * symfile.c (_initialize_symfile): Likewise.
6397 * tracepoint.c (_initialize_tracepoint): Likewise.
6398
6399 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6400
6401 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6402 when their aliased command is traversed.
6403 (help_cmd): Add fput_command_names_styled call to
6404 output command name and aliases when command has an alias.
6405
6406 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6407
6408 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6409 * cli/cli-decode.c (help_cmd_list): Declare as static,
6410 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6411 a command together with the command.
6412 (fput_command_name_styled, fput_command_names_styled): New functions.
6413 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6414 fput_command_name_styled.
6415 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6416 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6417
6418 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6419
6420 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6421 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6422 * command.h (cmd_show_list): Likewise.
6423 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6424 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6425
6426 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6427
6428 * unittests/command-def-selftests.c (traverse_command_structure):
6429 Verify all commands of a list have the same prefix command and
6430 that only the top cmdlist commands have a null prefix.
6431
6432 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6433
6434 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6435 as prefix, not one of its aliases.
6436 (set_cmd_prefix): Remove.
6437 (do_add_cmd): Centralize the setting of the prefix of a command, when
6438 command is defined after its full chain of prefix commands.
6439 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6440 (add_setshow_cmd_full): Likewise.
6441 (update_prefix_field_of_prefixed_commands): New function.
6442 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6443 update_prefix_field_of_prefixed_commands.
6444 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6445 addresses of remote_set_cmdlist and remote_show_cmdlist given
6446 as argument, not the address of an argument.
6447 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6448 * gdb/remote.c (_initialize_remote): Likewise.
6449
6450 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6451
6452 * cli/cli-cmds.c (alias_command): Check for an existing alias
6453 using lookup_cmd_composition, as valid_command_p is too strict
6454 and forbids aliases that are the prefix of an existing alias
6455 or command.
6456 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6457 command is properly recognised as a valid command.
6458
6459 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6460
6461 * unittests/help-doc-selftests.c: Rename to
6462 unittests/command-def-selftests.c
6463 * unittests/command-def-selftests.c (help_doc_tests): Update some
6464 comments.
6465 (command_structure_tests, traverse_command_structure): New namespace
6466 and function.
6467 (command_structure_invariants_tests): New function.
6468 (_initialize_command_def_selftests) Renamed from
6469 _initialize_help_doc_selftests, register command_structure_invariants
6470 selftest.
6471
6472 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6473
6474 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6475 an alias of 'show'.
6476
6477 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6478
6479 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6480 ada_is_fixed_point_type. Update all callers.
6481 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6482 all callers.
6483 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6484 Update all callers.
6485 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6486 print_fixed_point_type. Update all callers.
6487 * ada-valprint.c (ada_value_print_num): Replace call to
6488 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6489
6490 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6491
6492 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6493 processors.
6494 (cpu_supports_bts): Add CV_AMD case.
6495
6496 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6497 Simon Marchi <simon.marchi@efficios.com>
6498
6499 * infrun.c (stop_all_threads): Collect multiple wait events at
6500 each pass.
6501
6502 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6503
6504 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6505 type::code instead.
6506
6507 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6508
6509 * gdbtypes.h (struct type) <code, set_code>: New methods.
6510 (TYPE_CODE): Use type::code. Change all call sites used to set
6511 the code to use type::set_code instead.
6512
6513 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6514 Tom de Vries <tdevries@suse.de>
6515 Pedro Alves <palves@redhat.com>
6516
6517 PR threads/25478
6518 * infrun.c (stop_all_threads): Do NOT ignore
6519 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6520 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6521 received.
6522 (handle_no_resumed): Remove code handling a live inferior with no
6523 threads.
6524 * remote.c (has_single_non_exited_thread): New.
6525 (remote_target::update_thread_list): Do not delete a thread if is
6526 the last thread of the process.
6527 * thread.c (thread_select): Call delete_exited_threads instead of
6528 prune_threads.
6529
6530 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6531
6532 * infrun.c (stop_all_threads): Enable/disable thread events of all
6533 targets. Move a debug message denoting the end of the function
6534 into the SCOPED_EXIT block.
6535
6536 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6537
6538 * process-stratum-target.h: Include <set>.
6539 (all_non_exited_process_targets, switch_to_target_no_thread): New
6540 function declarations.
6541 * process-stratum-target.c (all_non_exited_process_targets)
6542 (switch_to_target_no_thread): New function implementations.
6543
6544 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6545
6546 * infrun.c (handle_inferior_event): Extract out a piece of code
6547 into...
6548 (mark_non_executing_threads): ...this new function.
6549
6550 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6551
6552 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6553 use.
6554
6555 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6556
6557 * regcache.c (regcache_read_pc_protected): New function
6558 implementation that returns 0 if the PC cannot read via
6559 'regcache_read_pc'.
6560 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6561 instead of 'regcache_read_pc'.
6562 (keep_going_pass_signal): Ditto.
6563
6564 2020-05-13 Tom Tromey <tromey@adacore.com>
6565
6566 * ada-lang.c (align_value): Remove.
6567 (ada_template_to_fixed_record_type_1): Use align_up.
6568
6569 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6570
6571 * async-event.c: Update the copyright year.
6572 * async-event.h: Update the copyright year.
6573
6574 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6575
6576 * objfiles.h (is_addr_in_objfile,
6577 shared_objfile_contains_address_p): Return bool.
6578 * objfile.c (is_addr_in_objfile,
6579 shared_objfile_contains_address_p): Return bool.
6580
6581 2020-05-11 Tom Tromey <tromey@adacore.com>
6582
6583 * cli/cli-cmds.c (info_command): Restore.
6584 (_initialize_cli_cmds): Use add_prefix_command for "info".
6585 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6586
6587 2020-05-11 Tom Tromey <tromey@adacore.com>
6588
6589 * ada-lang.c (ada_value_primitive_field): Now public.
6590 * ada-lang.h (ada_value_primitive_field): Declare.
6591 * ada-valprint.c (print_field_values): Use
6592 ada_value_primitive_field for wrapper fields.
6593
6594 2020-05-11 Tom de Vries <tdevries@suse.de>
6595
6596 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6597 MODULE_DOMAIN.
6598
6599 2020-05-11 Tom de Vries <tdevries@suse.de>
6600
6601 PR symtab/25941
6602 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6603 with length 0, if not gdb-produced.
6604 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6605
6606 2020-05-09 Tom de Vries <tdevries@suse.de>
6607
6608 PR gdb/25955
6609 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6610 calculation.
6611
6612 2020-05-09 Tom Tromey <tom@tromey.com>
6613
6614 * top.c (server_command): Now bool.
6615 * top.h (server_command): Now bool.
6616
6617 2020-05-08 Tom Tromey <tromey@adacore.com>
6618
6619 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6620 already being processed.
6621
6622 2020-05-08 Tom Tromey <tom@tromey.com>
6623
6624 * printcmd.c (struct display) <next>: Remove.
6625 <display>: New constructor.
6626 <exp_string>: Now a std::string.
6627 <enabled_p>: Now a bool.
6628 (display_number): Move definition earlier.
6629 (displays): Rename from display_chain. Now a std::vector.
6630 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6631 (display_command): Update.
6632 (do_one_display, disable_display)
6633 (enable_disable_display_command, do_enable_disable_display):
6634 Update.
6635 (free_display): Remove.
6636 (clear_displays): Rewrite.
6637 (delete_display): Update.
6638 (map_display_numbers): Use function_view. Remove "data"
6639 parameter. Update.
6640 (do_delete_display): Remove.
6641 (undisplay_command): Update.
6642 (do_one_display, do_displays, disable_display)
6643 (info_display_command): Update.
6644 (do_enable_disable_display): Remove.
6645 (enable_disable_display_command)
6646 (clear_dangling_display_expressions): Update.
6647
6648 2020-05-08 Tom Tromey <tom@tromey.com>
6649
6650 * symtab.c (set_symbol_cache_size)
6651 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6652 (maintenance_print_symbol_cache_statistics): Update.
6653 * symmisc.c (print_symbol_bcache_statistics)
6654 (print_objfile_statistics, maintenance_print_objfiles)
6655 (maintenance_info_symtabs, maintenance_check_symtabs)
6656 (maintenance_expand_symtabs, maintenance_info_line_tables):
6657 Update.
6658 * symfile-debug.c (set_debug_symfile): Update.
6659 * source.c (forget_cached_source_info): Update.
6660 * python/python.c (gdbpy_progspaces): Update.
6661 * psymtab.c (maintenance_info_psymtabs): Update.
6662 * probe.c (parse_probes): Update.
6663 * linespec.c (iterate_over_all_matching_symtabs)
6664 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6665 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6666 * exec.c (exec_target::close): Update.
6667 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6668 * breakpoint.c (print_one_breakpoint_location)
6669 (create_longjmp_master_breakpoint)
6670 (create_std_terminate_master_breakpoint): Update.
6671 * progspace.c (program_spaces): Now a std::vector.
6672 (maybe_new_address_space): Update.
6673 (add_program_space): Remove.
6674 (program_space::program_space): Update.
6675 (remove_program_space): Update.
6676 (number_of_program_spaces): Remove.
6677 (print_program_space, update_address_spaces): Update.
6678 * progspace.h (program_spaces): Change type.
6679 (ALL_PSPACES): Remove.
6680 (number_of_program_spaces): Don't declare.
6681 (struct program_space) <next>: Remove.
6682
6683 2020-05-08 Tom Tromey <tom@tromey.com>
6684
6685 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6686 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6687 (enable_break): Update.
6688 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6689 (frv_fdpic_find_canonical_descriptor): Update.
6690 (frv_fetch_objfile_link_map): Update.
6691 * progspace.c (program_space::free_all_objfiles): Update.
6692 (program_space::solibs): New method.
6693 * progspace.h (struct program_space) <solibs>: New method.
6694 * solist.h (master_so_list): Don't declare.
6695 (ALL_SO_LIBS): Remove.
6696 * solib.h (so_list_head): Remove.
6697 (update_solib_list): Update comment.
6698 * solib.c (master_so_list): Remove.
6699 (solib_used, update_solib_list, solib_add)
6700 (info_sharedlibrary_command, clear_solib)
6701 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6702
6703 2020-05-08 Tom Tromey <tom@tromey.com>
6704
6705 * extension.c (extension_languages): Now a std::array.
6706 (ALL_EXTENSION_LANGUAGES): Remove.
6707 (get_ext_lang_defn, get_ext_lang_of_file)
6708 (eval_ext_lang_from_control_command): Update.
6709 (finish_ext_lang_initialization)
6710 (auto_load_ext_lang_scripts_for_objfile)
6711 (ext_lang_type_printers::ext_lang_type_printers)
6712 (apply_ext_lang_type_printers)
6713 (ext_lang_type_printers::~ext_lang_type_printers)
6714 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6715 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6716 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6717 (get_matching_xmethod_workers, ext_lang_colorize)
6718 (ext_lang_before_prompt): Update.
6719 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6720
6721 2020-05-08 Tom Tromey <tom@tromey.com>
6722
6723 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6724 overload.
6725 <swap_string, m_string>: Remove.
6726 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6727 Update.
6728 * stabsread.c (define_symbol, read_type): Update.
6729 * linespec.c (find_linespec_symbols): Update.
6730 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6731 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6732 * dbxread.c (read_dbx_symtab): Update.
6733 * cp-support.h (cp_canonicalize_string_full)
6734 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6735 Return unique_xmalloc_ptr.
6736 * cp-support.c (inspect_type): Update.
6737 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6738 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6739 Likewise.
6740 * c-typeprint.c (print_name_maybe_canonical): Update.
6741 * break-catch-throw.c (check_status_exception_catchpoint):
6742 Update.
6743
6744 2020-05-08 Tom de Vries <tdevries@suse.de>
6745
6746 * infrun.c (follow_fork): Copy current_line and current_symtab to
6747 child thread.
6748
6749 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6750
6751 * async-event.c (struct async_signal_handler, struct
6752 async_event_handler): Reformat, remove typedef.
6753
6754 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6755
6756 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6757 access thistype->main_type->dyn_prop_list directly.
6758
6759 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6760
6761 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6762 (remove_dyn_prop): Remove. Update all users to use
6763 type::remove_dyn_prop.
6764 * gdbtypes.c (remove_dyn_prop): Rename to...
6765 (type::remove_dyn_prop): ... this.
6766
6767 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6768
6769 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6770 (add_dyn_prop): Remove. Update all users to use
6771 type::add_dyn_prop.
6772 * gdbtypes.c (add_dyn_prop): Rename to...
6773 (type::add_dyn_prop): ... this.
6774
6775 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6776
6777 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6778 (get_dyn_prop): Remove. Update all users to use
6779 type::dyn_prop.
6780 * gdbtypes.c (get_dyn_prop): Rename to...
6781 (type::dyn_prop): ... this.
6782
6783 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6784
6785 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6786
6787 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6788
6789 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6790 instruction, skip it if it's there.
6791
6792 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6793
6794 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6795
6796 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6797
6798 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6799 * gdbtypes.c (recursive_dump_type): Remove use of
6800 TYPE_INCOMPLETE.
6801
6802 2020-05-03 Tom Tromey <tom@tromey.com>
6803
6804 * breakpoint.c (catch_command, tcatch_command): Remove.
6805 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6806 add_show_prefix_cmd.
6807 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6808 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6809 Remove.
6810 (add_internal_problem_command): Use add_basic_prefix_cmd,
6811 add_show_prefix_cmd.
6812 * mips-tdep.c (set_mipsfpu_command): Remove.
6813 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6814 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6815 (_initialize_index_cache): Use add_basic_prefix_cmd.
6816 * memattr.c (dummy_cmd): Remove.
6817 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6818 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6819 (_initialize_tui_win): Use add_basic_prefix_cmd,
6820 add_show_prefix_cmd.
6821 * cli/cli-logging.c (set_logging_command): Remove.
6822 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6823 add_show_prefix_cmd.
6824 (show_logging_command): Remove.
6825 * target.c (target_command): Remove.
6826 (add_target): Use add_basic_prefix_cmd.
6827
6828 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6829
6830 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6831
6832 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6833
6834 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6835 info_command.
6836
6837 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6838
6839 * nbsd-nat.c (nbsd_enable_proc_events)
6840 (nbsd_nat_target::post_startup_inferior): Add.
6841 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6842 (nbsd_nat_target::update_thread_list): Rewrite.
6843 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6844 "PTRACE_LWP_CREATE".
6845 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6846
6847 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6848
6849 * stack.c (_initialize_stack): Remove duplicated creation
6850 of "frame" command and "f" alias.
6851
6852 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6853
6854 PR gdb/18706
6855 * gdbtypes.c (check_typedef): Calculate size of array of
6856 stubbed type.
6857
6858 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6859
6860 PR gdb/15559
6861 * i386-tdep.c (i386_push_dummy_call): Call
6862 i386_thiscall_push_dummy_call.
6863 (i386_thiscall_push_dummy_call): New function.
6864 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6865 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6866 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6867
6868 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6869
6870 * gdbarch.sh (do_read): Add shellcheck disable directive for
6871 warning SC2162.
6872
6873 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6874
6875 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6876 "referenced but not assigned" warning.
6877
6878 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6879
6880 * gdbarch.sh: Remove code that sets fallbackdefault.
6881
6882 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6883
6884 * gdbarch.sh: Use shell operators && and || instead of
6885 -a and -o.
6886
6887 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6888
6889 * gdbarch.sh: Use $(...) instead of `...`.
6890
6891 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6892
6893 * gdbarch.sh: Use double quotes around variables.
6894
6895 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6896
6897 * gdbarch.sh: Use %s with printf, instead of variables in the
6898 format string.
6899
6900 2020-04-29 Tom Tromey <tromey@adacore.com>
6901
6902 PR ada/25875:
6903 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6904 type fields here.
6905 (read_enumeration_type): Call
6906 update_enumeration_type_from_children later. Update comments.
6907 (process_enumeration_scope): Don't create type fields.
6908
6909 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6910
6911 * nbsd-tdep.c: Include "xml-syscall.h".
6912 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6913
6914 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6915
6916 * nbsd-nat.c: Include "sys/wait.h".
6917 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6918 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6919 (nbsd_nat_target::remove_exec_catchpoint)
6920 (nbsd_nat_target::set_syscall_catchpoint): Add.
6921 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6922 (nbsd_nat_target::insert_exec_catchpoint)
6923 (nbsd_nat_target::remove_exec_catchpoint)
6924 (nbsd_nat_target::set_syscall_catchpoint): Add.
6925 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6926 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6927 `nbsd_get_syscall_number'.
6928
6929 2020-04-29 Tom Tromey <tom@tromey.com>
6930
6931 * stack.c (print_block_frame_labels): Remove.
6932
6933 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6934
6935 PR gdb/17320
6936 * ada-valprint.c (val_print_packed_array_elements): Move array
6937 end bracket to new line.
6938 (ada_val_print_string): Remove extra spaces before first array
6939 element.
6940 * c-valprint.c (c_value_print_array): Likewise.
6941 * m2-valprint.c (m2_print_array_contents): Likewise.
6942 (m2_value_print_inner): Likewise.
6943 * p-valprint.c (pascal_value_print_inner): Likewise.
6944 * valprint.c (generic_val_print_array): Likewise.
6945 (value_print_array_elements): Move first array element and array
6946 end bracket to new line.
6947
6948 2020-04-29 Tom de Vries <tdevries@suse.de>
6949
6950 PR symtab/25889
6951 * linespec.c (find_method): Fix ix calculation.
6952
6953 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6954
6955 * syscalls/update-netbsd.sh: New file.
6956 * syscalls/netbsd.xml: Regenerate.
6957 * data-directory/Makefile.in: Register `netbsd.xml' in
6958 `SYSCALLS_FILES'.
6959
6960 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6961
6962 * syscalls/update-freebsd.sh: Add double quotes.
6963
6964 2020-04-28 Tom Tromey <tom@tromey.com>
6965
6966 * NEWS: Update.
6967 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6968 (cmdpy_init): Allow class_tui.
6969
6970 2020-04-28 Mark Williams <mark@myosotissp.com>
6971
6972 PR gdb/24480
6973 * dwarf2read.c: Add missing assingments to list_in_scope when
6974 start_symtab was already called.
6975
6976 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6977
6978 PR gdb/25881
6979 * dwarf2/read.c (offset_map_type): Use
6980 gdb:hash_enum<sect_offset> as hash function.
6981
6982 2020-04-28 Tom de Vries <tdevries@suse.de>
6983
6984 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6985 with DW_AT_signature.
6986
6987 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6988
6989 * configure.ac: Remove check for fs_base/gs_base in
6990 user_regs_struct.
6991 * configure: Re-generate.
6992 * config.in: Re-generate.
6993 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6994 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6995 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6996
6997 2020-04-27 Luis Machado <luis.machado@linaro.org>
6998
6999 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7000 problematic inline frame unwinding situation.
7001 * frame.c (frame_id_computed_p): New function.
7002 * frame.h (frame_id_computed_p): New prototype.
7003
7004 2020-04-26 Tom Tromey <tom@tromey.com>
7005
7006 * command.h (enum command_class) <class_pseudo>: Remove.
7007
7008 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7009
7010 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7011 and whitespace.
7012
7013 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7014
7015 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7016 `PT_GET_PROCESS_STATE' block.
7017
7018 2020-04-24 Tom Tromey <tom@tromey.com>
7019
7020 * symtab.h (symbol_get_demangled_name): Don't declare.
7021 * symtab.c (symbol_get_demangled_name): Remove.
7022 (general_symbol_info::natural_name)
7023 (general_symbol_info::demangled_name): Update.
7024
7025 2020-04-24 Tom Tromey <tom@tromey.com>
7026
7027 PR rust/25025:
7028 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7029
7030 2020-04-24 Tom Tromey <tom@tromey.com>
7031
7032 PR symtab/12707:
7033 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7034 exists.
7035 (new_symbol): Likewise.
7036 * compile/compile-object-load.c (get_out_value_type): Use
7037 symbol_matches_search_name.
7038
7039 2020-04-24 Tom Tromey <tom@tromey.com>
7040
7041 * dwarf2/read.c (add_partial_symbol): Do not call
7042 compute_and_set_names.
7043
7044 2020-04-24 Tom Tromey <tom@tromey.com>
7045
7046 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7047 overload.
7048
7049 2020-04-24 Tom Tromey <tom@tromey.com>
7050
7051 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7052 (add_psymbol_to_list): New overload. Make old overload call new
7053 one.
7054 * psympriv.h (add_psymbol_to_list): New overload.
7055
7056 2020-04-24 Tom Tromey <tom@tromey.com>
7057
7058 * dwarf2/read.c (partial_die_info::read) <case
7059 DW_AT_linkage_name>: Use value_as_string.
7060 (dwarf2_string_attr): Use value_as_string.
7061 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7062 method.
7063 * dwarf2/attribute.c (attribute::value_as_string): New method.
7064
7065 2020-04-24 Tom Tromey <tom@tromey.com>
7066
7067 * symtab.c (general_symbol_info::natural_name)
7068 (general_symbol_info::demangled_name): Check for language_rust.
7069
7070 2020-04-24 Tom Tromey <tom@tromey.com>
7071
7072 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7073 (dwarf2_physname): ... from here.
7074 (partial_die_info::read): Add Rust "{" hack.
7075
7076 2020-04-24 Tom Tromey <tom@tromey.com>
7077
7078 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7079 method.
7080 (symbol_set_demangled_name): Don't declare.
7081 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7082 symbol_set_demangled_name.
7083 (general_symbol_info::set_language)
7084 (general_symbol_info::compute_and_set_names): Update.
7085 * minsyms.c (minimal_symbol_reader::install): Update.
7086 * dwarf2/read.c (new_symbol): Update.
7087
7088 2020-04-24 Tom Tromey <tromey@adacore.com>
7089
7090 PR python/23662:
7091 * python/py-type.c (convert_field): Handle
7092 FIELD_LOC_KIND_DWARF_BLOCK.
7093 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7094 (typy_get_dynamic): Nw function.
7095 (type_object_getset): Add "dynamic".
7096 * NEWS: Add entry.
7097
7098 2020-04-24 Tom Tromey <tromey@adacore.com>
7099
7100 * ada-typeprint.c (print_choices, print_variant_part)
7101 (print_record_field_types_dynamic): New functions.
7102 (print_record_field_types): Use print_record_field_types_dynamic.
7103
7104 2020-04-24 Tom Tromey <tromey@adacore.com>
7105
7106 * dwarf2/read.c (handle_data_member_location): New overload.
7107 (dwarf2_add_field): Use it.
7108 (decode_locdesc): Add "computed" parameter. Update comment.
7109 * gdbtypes.c (is_dynamic_type_internal): Also look for
7110 FIELD_LOC_KIND_DWARF_BLOCK.
7111 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7112 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7113 virtual base classes.
7114 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7115 FIELD_LOC_KIND_DWARF_BLOCK.
7116
7117 2020-04-24 Tom Tromey <tromey@adacore.com>
7118
7119 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7120 * gdbtypes.c (is_dynamic_type_internal): Check
7121 TYPE_HAS_DYNAMIC_LENGTH.
7122 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7123 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7124 New macros.
7125 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7126 constant.
7127
7128 2020-04-24 Tom Tromey <tromey@adacore.com>
7129
7130 * dwarf2/read.c (struct variant_field): Rewrite.
7131 (struct variant_part_builder): New.
7132 (struct nextfield): Remove "variant" field. Add "offset".
7133 (struct field_info): Add "current_variant_part" and
7134 "variant_parts".
7135 (alloc_discriminant_info): Remove.
7136 (alloc_rust_variant): New function.
7137 (quirk_rust_enum): Update.
7138 (dwarf2_add_field): Set "offset" member. Don't handle
7139 DW_TAG_variant_part.
7140 (offset_map_type): New typedef.
7141 (convert_variant_range, create_one_variant)
7142 (create_one_variant_part, create_variant_parts)
7143 (add_variant_property): New functions.
7144 (dwarf2_attach_fields_to_type): Call add_variant_property.
7145 (read_structure_type): Don't handle DW_TAG_variant_part.
7146 (handle_variant_part, handle_variant): New functions.
7147 (handle_struct_member_die): Use them.
7148 (process_structure_scope): Don't handle variant parts.
7149 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7150 (struct discriminant_info): Remove.
7151 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7152 (struct main_type) <flag_discriminated_union>: Remove.
7153 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7154 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7155 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7156 Update.
7157 * valops.c (value_union_variant): Remove.
7158 * value.h (value_union_variant): Don't declare.
7159
7160 2020-04-24 Tom Tromey <tromey@adacore.com>
7161
7162 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7163 (ada_value_primitive_packed_val): Update.
7164 * ada-valprint.c (ada_value_print_1): Update.
7165 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7166 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7167 just an address. Use evaluate_for_locexpr_baton.
7168 (dwarf2_evaluate_property): Update.
7169 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7170 array_view.
7171 * findvar.c (default_read_var_value): Update.
7172 * gdbtypes.c (compute_variant_fields_inner)
7173 (resolve_dynamic_type_internal): Update.
7174 (resolve_dynamic_type): Change type of valaddr parameter.
7175 * gdbtypes.h (resolve_dynamic_type): Update.
7176 * valarith.c (value_subscripted_rvalue): Update.
7177 * value.c (value_from_contents_and_address): Update.
7178
7179 2020-04-24 Tom Tromey <tromey@adacore.com>
7180
7181 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7182 "push_initial_value" parameter.
7183 (dwarf2_evaluate_property): Likewise.
7184 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7185
7186 2020-04-24 Tom Tromey <tromey@adacore.com>
7187
7188 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7189 (variant::matches, compute_variant_fields_recurse)
7190 (compute_variant_fields_inner, compute_variant_fields): New
7191 functions.
7192 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7193 Use resolved_type after type is made.
7194 (operator==): Add new cases.
7195 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7196 (struct discriminant_range, struct variant, struct variant_part):
7197 New.
7198 (union dynamic_prop_data) <variant_parts, original_type>: New
7199 members.
7200 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7201 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7202 constants.
7203 * value.c (unpack_bits_as_long): Now public.
7204 * value.h (unpack_bits_as_long): Declare.
7205
7206 2020-04-24 Tom Tromey <tromey@adacore.com>
7207
7208 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7209 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7210
7211 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7212
7213 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7214
7215 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7216
7217 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7218 (remove_fork_catchpoint, post_startup_inferior)
7219 (post_attach): Move...
7220 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7221 (remove_fork_catchpoint, post_startup_inferior)
7222 (post_attach): ...here.
7223 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7224 (remove_fork_catchpoint, post_startup_inferior)
7225 (post_attach): Move...
7226 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7227 (remove_fork_catchpoint, post_startup_inferior)
7228 (post_attach): ...here.
7229
7230 2020-04-24 Tom Tromey <tromey@adacore.com>
7231
7232 * nat/windows-nat.h (struct windows_thread_info)
7233 <pc_adjusted>: New member.
7234 * windows-nat.c (windows_fetch_one_register): Check
7235 pc_adjusted.
7236 (windows_nat_target::get_windows_debug_event)
7237 (windows_nat_target::wait): Set pc_adjusted.
7238
7239 2020-04-24 Tom de Vries <tdevries@suse.de>
7240
7241 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7242 Run gdb-add-index inside temp dir.
7243
7244 2020-04-23 Tom Tromey <tromey@adacore.com>
7245
7246 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7247 in loop.
7248
7249 2020-04-23 Luis Machado <luis.machado@linaro.org>
7250
7251 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7252 get_frame_register instead of gdbarch_unwind_pc.
7253
7254 2020-04-23 Tom de Vries <tdevries@suse.de>
7255
7256 * symtab.c (lookup_global_symbol): Prefer def over decl.
7257
7258 2020-04-23 Tom de Vries <tdevries@suse.de>
7259
7260 PR symtab/25807
7261 * block.c (best_symbol, better_symbol): Promote to external.
7262 * block.h (best_symbol, better_symbol): Declare.
7263 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7264 decl.
7265
7266 2020-04-23 Tom Tromey <tromey@adacore.com>
7267
7268 PR ada/25837:
7269 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7270 "const char *", not a "const std::string &".
7271 <name_and_matcher::operator==>: Update.
7272 * unittests/lookup_name_info-selftests.c: Change type of
7273 "result".
7274
7275 2020-04-23 Tom Tromey <tom@tromey.com>
7276
7277 * inferior.h (iterate_over_inferiors): Don't declare.
7278 * inferior.c (iterate_over_inferiors): Remove.
7279 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7280 Remove.
7281 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7282 use iterate_over_inferiors.
7283 (darwin_resume_inferior_it)
7284 (struct resume_inferior_threads_param)
7285 (darwin_resume_inferior_threads_it): Remove.
7286 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7287
7288 2020-04-23 Tom de Vries <tdevries@suse.de>
7289
7290 * blockframe.c (find_pc_partial_function): Use
7291 find_pc_sect_compunit_symtab rather than
7292 objfile->sf->qf->find_pc_sect_compunit_symtab.
7293
7294 2020-04-22 Tom de Vries <tdevries@suse.de>
7295
7296 PR symtab/25764
7297 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7298 in psymtabs.
7299
7300 2020-04-22 Tom de Vries <tdevries@suse.de>
7301
7302 PR symtab/25801
7303 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7304 symtabs.
7305
7306 2020-04-22 Tom de Vries <tdevries@suse.de>
7307
7308 PR symtab/25700
7309 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7310 CU if already created.
7311
7312 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7313
7314 * infrun.c (displaced_step_fixup): Switch to the event_thread
7315 before calling displaced_step_restore, not after.
7316
7317 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7318
7319 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7320 its inferior is not recorded by us.
7321 (record_btrace_target_open): Replace call to
7322 all_non_exited_threads () with call to current_inferior
7323 ()->non_exited_threads ().
7324 (record_btrace_target::stop_recording): Likewise.
7325 (record_btrace_target::close): Likewise.
7326 (record_btrace_target::wait): Likewise.
7327 (record_btrace_target::record_stop_replaying): Likewise.
7328
7329 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7330
7331 * btrace.c (btrace_enable): Throw an error on double enables and
7332 when enabling recording fails.
7333 (btrace_disable): Throw an error if the thread is not recorded.
7334
7335 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7336
7337 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7338 request if we do not have a thread_info.
7339
7340 2020-04-21 Tom de Vries <tdevries@suse.de>
7341
7342 PR gdb/25471
7343 * thread.c
7344 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7345 exception in get_frame_id.
7346
7347 2020-04-20 Tom Tromey <tromey@adacore.com>
7348
7349 * python/python.c (struct gdbpy_event): Mark move constructor as
7350 noexcept.
7351 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7352 constructor as noexcept.
7353 * completer.h (struct completion_result): Mark move constructor as
7354 noexcept.
7355 * completer.c (completion_result::completion_result): Use
7356 initialization style. Don't call reset_match_list.
7357
7358 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7359
7360 * MAINTAINERS (Write After Approval): Add myself.
7361
7362 2020-04-18 Tom Tromey <tom@tromey.com>
7363
7364 * windows-tdep.c (init_w32_command_list)
7365 (w32_prefix_command_valid): Restore.
7366 (_initialize_windows_tdep): Call init_w32_command_list.
7367
7368 2020-04-18 Tom Tromey <tom@tromey.com>
7369
7370 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7371 * value.c (value_fn_field): Update.
7372 * valops.c (find_function_in_inferior)
7373 (value_allocate_space_in_inferior): Update.
7374 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7375 Update.
7376 * tui/tui-source.c (tui_source_window::set_contents): Update.
7377 * symtab.c (lookup_global_or_static_symbol)
7378 (find_function_start_sal_1, skip_prologue_sal)
7379 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7380 * symmisc.c (dump_msymbols, dump_symtab_1)
7381 (maintenance_print_one_line_table): Update.
7382 * symfile.c (init_entry_point_info, section_is_mapped)
7383 (list_overlays_command, simple_read_overlay_table)
7384 (simple_overlay_update_1): Update.
7385 * stap-probe.c (handle_stap_probe): Update.
7386 * stabsread.c (dbx_init_float_type, define_symbol)
7387 (read_one_struct_field, read_enum_type, read_range_type): Update.
7388 * source.c (info_line_command): Update.
7389 * python/python.c (gdbpy_source_objfile_script)
7390 (gdbpy_execute_objfile_script): Update.
7391 * python/py-type.c (save_objfile_types): Update.
7392 * python/py-objfile.c (py_free_objfile): Update.
7393 * python/py-inferior.c (python_new_objfile): Update.
7394 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7395 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7396 (maintenance_check_psymtabs): Update.
7397 * printcmd.c (info_address_command): Update.
7398 * objfiles.h (struct objfile) <arch>: New method, from
7399 get_objfile_arch.
7400 (get_objfile_arch): Don't declare.
7401 * objfiles.c (get_objfile_arch): Remove.
7402 (filter_overlapping_sections): Update.
7403 * minsyms.c (msymbol_is_function): Update.
7404 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7405 (output_nondebug_symbol): Update.
7406 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7407 (mdebug_expand_psymtab): Update.
7408 * machoread.c (macho_add_oso_symfile): Update.
7409 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7410 Update.
7411 * linux-fork.c (checkpoint_command): Update.
7412 * linespec.c (convert_linespec_to_sals): Update.
7413 * jit.c (finalize_symtab): Update.
7414 * infrun.c (insert_exception_resume_from_probe): Update.
7415 * ia64-tdep.c (ia64_find_unwind_table): Update.
7416 * hppa-tdep.c (internalize_unwinds): Update.
7417 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7418 Update.
7419 * gcore.c (call_target_sbrk): Update.
7420 * elfread.c (record_minimal_symbol, elf_symtab_read)
7421 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7422 (elf_gnu_ifunc_resolve_by_got): Update.
7423 * dwarf2/read.c (create_addrmap_from_index)
7424 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7425 (read_debug_names_from_section)
7426 (process_psymtab_comp_unit_reader, add_partial_symbol)
7427 (add_partial_subprogram, process_full_comp_unit)
7428 (read_file_scope, read_func_scope, read_lexical_block_scope)
7429 (read_call_site_scope, dwarf2_ranges_read)
7430 (dwarf2_record_block_ranges, dwarf2_add_field)
7431 (mark_common_block_symbol_computed, read_tag_pointer_type)
7432 (read_tag_string_type, dwarf2_init_float_type)
7433 (dwarf2_init_complex_target_type, read_base_type)
7434 (partial_die_info::read, partial_die_info::read)
7435 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7436 (dwarf2_fetch_die_loc_sect_off): Update.
7437 * dwarf2/loc.c (dwarf2_find_location_expression)
7438 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7439 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7440 (dwarf2_loc_desc_get_symbol_read_needs)
7441 (locexpr_describe_location_piece, locexpr_describe_location_1)
7442 (loclist_describe_location): Update.
7443 * dwarf2/index-write.c (write_debug_names): Update.
7444 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7445 * dtrace-probe.c (dtrace_process_dof): Update.
7446 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7447 (process_one_symbol): Update.
7448 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7449 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7450 (coff_read_enum_type): Update.
7451 * cli/cli-cmds.c (edit_command, list_command): Update.
7452 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7453 * breakpoint.c (create_overlay_event_breakpoint)
7454 (create_longjmp_master_breakpoint)
7455 (create_std_terminate_master_breakpoint)
7456 (create_exception_master_breakpoint, get_sal_arch): Update.
7457 * block.c (block_gdbarch): Update.
7458 * annotate.c (annotate_source_line): Update.
7459
7460 2020-04-17 Tom Tromey <tromey@adacore.com>
7461
7462 * auto-load.c (show_auto_load_cmd): Remove.
7463 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7464 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7465 (maintenance_print_arc_command): Remove.
7466 * tui/tui-win.c (tui_command): Remove.
7467 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7468 * tui/tui-layout.c (tui_layout_command): Remove.
7469 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7470 * python/python.c (user_set_python, user_show_python): Remove.
7471 (_initialize_python): Use add_basic_prefix_cmd,
7472 add_show_prefix_cmd.
7473 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7474 (install_gdb_commands): Use add_basic_prefix_cmd,
7475 add_show_prefix_cmd.
7476 (info_guile_command): Remove.
7477 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7478 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7479 add_show_prefix_cmd.
7480 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7481 Remove do_set and do_show parameters.
7482 * cli/cli-style.c (set_style, show_style): Remove.
7483 (_initialize_cli_style): Use add_basic_prefix_cmd,
7484 add_show_prefix_cmd.
7485 (cli_style_option::add_setshow_commands): Remove do_set and
7486 do_show parameters.
7487 (cli_style_option::add_setshow_commands): Use
7488 add_basic_prefix_cmd, add_show_prefix_cmd.
7489 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7490 (set_style_name): Remove.
7491 * cli/cli-dump.c (dump_command, append_command): Remove.
7492 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7493 (tekhex_dump_command, binary_dump_command)
7494 (binary_append_command): Remove.
7495 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7496 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7497 (init_w32_command_list): Remove; move into ...
7498 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7499 * valprint.c (set_print, show_print, set_print_raw)
7500 (show_print_raw): Remove.
7501 (_initialize_valprint): Use add_basic_prefix_cmd,
7502 add_show_prefix_cmd.
7503 * typeprint.c (set_print_type, show_print_type): Remove.
7504 (_initialize_typeprint): Use add_basic_prefix_cmd,
7505 add_show_prefix_cmd.
7506 * record.c (set_record_command, show_record_command): Remove.
7507 (_initialize_record): Use add_basic_prefix_cmd,
7508 add_show_prefix_cmd.
7509 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7510 add_show_prefix_cmd.
7511 (info_command, show_command, set_debug, show_debug): Remove.
7512 * top.h (set_history, show_history): Don't declare.
7513 * top.c (set_history, show_history): Remove.
7514 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7515 (unset_tdesc_cmd): Remove.
7516 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7517 add_show_prefix_cmd.
7518 * symtab.c (info_module_command): Remove.
7519 (_initialize_symtab): Use add_basic_prefix_cmd.
7520 * symfile.c (overlay_command): Remove.
7521 (_initialize_symfile): Use add_basic_prefix_cmd.
7522 * sparc64-tdep.c (info_adi_command): Remove.
7523 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7524 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7525 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7526 add_show_prefix_cmd.
7527 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7528 (_initialize_serial): Use add_basic_prefix_cmd,
7529 add_show_prefix_cmd.
7530 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7531 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7532 add_show_prefix_cmd.
7533 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7534 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7535 add_show_prefix_cmd.
7536 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7537 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7538 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7539 add_show_prefix_cmd.
7540 * remote.c (remote_command, set_remote_cmd): Remove.
7541 (_initialize_remote): Use add_basic_prefix_cmd.
7542 * record-full.c (set_record_full_command)
7543 (show_record_full_command): Remove.
7544 (_initialize_record_full): Use add_basic_prefix_cmd,
7545 add_show_prefix_cmd.
7546 * record-btrace.c (cmd_set_record_btrace)
7547 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7548 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7549 (cmd_show_record_btrace_pt): Remove.
7550 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7551 add_show_prefix_cmd.
7552 * ravenscar-thread.c (set_ravenscar_command)
7553 (show_ravenscar_command): Remove.
7554 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7555 add_show_prefix_cmd.
7556 * mips-tdep.c (show_mips_command, set_mips_command)
7557 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7558 add_show_prefix_cmd.
7559 * maint.c (maintenance_command, maintenance_info_command)
7560 (maintenance_check_command, maintenance_print_command)
7561 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7562 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7563 add_show_prefix_cmd.
7564 (show_per_command_cmd): Remove.
7565 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7566 Remove.
7567 (maintenance_show_test_settings_cmd): Remove.
7568 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7569 add_show_prefix_cmd.
7570 * maint-test-options.c (maintenance_test_options_command):
7571 Remove.
7572 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7573 * macrocmd.c (macro_command): Remove
7574 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7575 * language.c (set_check, show_check): Remove.
7576 (_initialize_language): Use add_basic_prefix_cmd,
7577 add_show_prefix_cmd.
7578 * infcmd.c (unset_command): Remove.
7579 (_initialize_infcmd): Use add_basic_prefix_cmd.
7580 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7581 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7582 add_show_prefix_cmd.
7583 * go32-nat.c (go32_info_dos_command): Remove.
7584 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7585 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7586 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7587 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7588 (_initialize_frame): Use add_basic_prefix_cmd,
7589 add_show_prefix_cmd.
7590 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7591 (_initialize_dcache): Use add_basic_prefix_cmd,
7592 add_show_prefix_cmd.
7593 * cp-support.c (maint_cplus_command): Remove.
7594 (_initialize_cp_support): Use add_basic_prefix_cmd.
7595 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7596 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7597 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7598 add_basic_prefix_cmd, add_show_prefix_cmd.
7599 * breakpoint.c (save_command): Remove.
7600 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7601 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7602 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7603 add_show_prefix_cmd.
7604 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7605 (set_ada_command, show_ada_command): Remove.
7606 (_initialize_ada_language): Use add_basic_prefix_cmd,
7607 add_show_prefix_cmd.
7608 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7609
7610 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7611
7612 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7613 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7614
7615 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7616
7617 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7618 warning messages.
7619
7620 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7621
7622 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7623 import table is not at beginning of .idata section.
7624
7625 2020-04-16 Pedro Alves <palves@redhat.com>
7626
7627 * inferior.c (delete_inferior): Use delete operator directly
7628 instead of delete_program_space.
7629 * progspace.c (add_program_space): New, factored out from
7630 program_space::program_space.
7631 (remove_program_space): New, factored out from
7632 delete_program_space.
7633 (program_space::program_space): Remove intro comment. Rewrite.
7634 (program_space::~program_space): Remove intro comment. Call
7635 remove_program_space.
7636 (delete_program_space): Delete.
7637 * progspace.h (program_space::program_space): Make explicit. Move
7638 intro comment here, adjusted.
7639 (program_space::~program_space): Move intro comment here,
7640 adjusted.
7641 (delete_program_space): Remove.
7642
7643 2020-04-16 Tom Tromey <tromey@adacore.com>
7644
7645 * windows-nat.c (windows_nat::handle_access_violation): New
7646 function.
7647 * nat/windows-nat.h (handle_access_violation): Declare.
7648 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7649 windows-nat.c. Call handle_access_violation.
7650
7651 2020-04-16 Tom de Vries <tdevries@suse.de>
7652
7653 PR symtab/25791
7654 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7655 CUs without psymtab.
7656
7657 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7658
7659 * python/python.c (do_start_initialization): Don't call
7660 PyEval_InitThreads for Python 3.9 and beyond.
7661
7662 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7663
7664 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7665 thread functions.
7666 (obsd_nat_target::wait): Likewise.
7667
7668 2020-04-15 Tom Tromey <tromey@adacore.com>
7669
7670 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7671 (DEBUG_EXCEPT): Use debug_printf.
7672
7673 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7674
7675 * completer.c (class completion_tracker::completion_hash_entry)
7676 <hash_name>: New member function.
7677 (completion_tracker::discard_completions): New callback to hash a
7678 completion_hash_entry, pass this to htab_create_alloc.
7679
7680 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7681
7682 * windows-nat.c (windows_make_so): Warn rather than stopping with
7683 an error if realpath() fails.
7684
7685 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7686
7687 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7688 (nbsd_nat_target::info_proc): Add do_status.
7689
7690 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7691 Tom de Vries <tdevries@suse.de>
7692
7693 PR symtab/25718
7694 * psympriv.h (struct partial_symtab::read_symtab)
7695 (struct partial_symtab::expand_psymtab)
7696 (struct partial_symtab::read_dependencies): Update comments.
7697 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7698 read_symtab for includer.
7699 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7700 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7701 (struct dwarf2_include_psymtab::m_readin): Remove.
7702 (struct dwarf2_include_psymtab::includer): New member function.
7703 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7704
7705 2020-04-14 Tom de Vries <tdevries@suse.de>
7706
7707 PR symtab/25720
7708 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7709 with NULL symbol_matcher and lookup_name.
7710 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7711 and lookup_name.
7712 * dwarf2/read.c (dw2_expand_symtabs_matching)
7713 (dw2_debug_names_expand_symtabs_matching): Same.
7714 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7715 Make lookup_name a pointer. Update comment.
7716 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7717 lookup_name being a pointer.
7718 * symfile.c (expand_symtabs_matching): Same.
7719 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7720 * linespec.c (iterate_over_all_matching_symtabs): Same.
7721
7722 2020-04-13 Tom Tromey <tom@tromey.com>
7723
7724 * run-on-main-thread.c: Update include.
7725 * unittests/main-thread-selftests.c: Update include.
7726 * tui/tui-win.c: Update include.
7727 * tui/tui-io.c: Update include.
7728 * tui/tui-interp.c: Update include.
7729 * tui/tui-hooks.c: Update include.
7730 * top.h: Update include.
7731 * top.c: Update include.
7732 * ser-base.c: Update include.
7733 * remote.c: Update include.
7734 * remote-notif.c: Update include.
7735 * remote-fileio.c: Update include.
7736 * record-full.c: Update include.
7737 * record-btrace.c: Update include.
7738 * python/python.c: Update include.
7739 * posix-hdep.c: Update include.
7740 * mingw-hdep.c: Update include.
7741 * mi/mi-main.c: Update include.
7742 * mi/mi-interp.c: Update include.
7743 * main.c: Update include.
7744 * linux-nat.c: Update include.
7745 * interps.c: Update include.
7746 * infrun.c: Update include.
7747 * inf-loop.c: Update include.
7748 * event-top.c: Update include.
7749 * event-loop.c: Move to ../gdbsupport/.
7750 * event-loop.h: Move to ../gdbsupport/.
7751 * async-event.h: Update include.
7752 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7753
7754 2020-04-13 Tom Tromey <tom@tromey.com>
7755
7756 * tui/tui-win.c: Include async-event.h.
7757 * remote.c: Include async-event.h.
7758 * remote-notif.c: Include async-event.h.
7759 * record-full.c: Include async-event.h.
7760 * record-btrace.c: Include async-event.h.
7761 * infrun.c: Include async-event.h.
7762 * event-top.c: Include async-event.h.
7763 * event-loop.h: Move some declarations to async-event.h.
7764 * event-loop.c: Don't include ser-event.h or top.h. Move some
7765 code to async-event.c.
7766 * async-event.h: New file.
7767 * async-event.c: New file.
7768 * Makefile.in (COMMON_SFILES): Add async-event.c.
7769 (HFILES_NO_SRCDIR): Add async-event.h.
7770
7771 2020-04-13 Tom Tromey <tom@tromey.com>
7772
7773 * utils.c (flush_streams): New function.
7774 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7775
7776 2020-04-13 Tom Tromey <tom@tromey.com>
7777
7778 * event-loop.c (handle_file_event): Use warning, not
7779 printf_unfiltered.
7780
7781 2020-04-13 Tom Tromey <tom@tromey.com>
7782
7783 * event-loop.c: Include <chrono>.
7784
7785 2020-04-13 Tom Tromey <tom@tromey.com>
7786
7787 * gdb_select.h: Move to ../gdbsupport/.
7788 * event-loop.c: Update include path.
7789 * top.c: Update include path.
7790 * ser-base.c: Update include path.
7791 * ui-file.c: Update include path.
7792 * ser-tcp.c: Update include path.
7793 * guile/scm-ports.c: Update include path.
7794 * posix-hdep.c: Update include path.
7795 * ser-unix.c: Update include path.
7796 * gdb_usleep.c: Update include path.
7797 * mingw-hdep.c: Update include path.
7798 * inflow.c: Update include path.
7799 * infrun.c: Update include path.
7800 * event-top.c: Update include path.
7801
7802 2020-04-13 Tom Tromey <tom@tromey.com>
7803
7804 * configure: Rebuild.
7805 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7806
7807 2020-04-13 Tom Tromey <tom@tromey.com>
7808
7809 * event-loop.h (start_event_loop): Don't declare.
7810 * event-loop.c (start_event_loop): Move...
7811 * main.c (start_event_loop): ...here. Now static.
7812
7813 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7814
7815 * MAINTAINERS: Update my email address.
7816
7817 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7818
7819 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7820 IP_ALL.
7821
7822 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7823
7824 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7825 (nbsd_nat_target::info_proc): Add do_cmdline.
7826
7827 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7828
7829 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7830 (nbsd_nat_target::info_proc): Add do_cwd.
7831
7832 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7833
7834 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7835
7836 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7837
7838 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7839 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7840 (nbsd_nat_target::info_proc): New functions.
7841 * nbsd-nat.c (kinfo_get_vmmap): New function.
7842 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7843 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7844 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7845 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7846 functions.
7847 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7848 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7849 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7850 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7851 (KINFO_VME_FLAG_GROWS_DOWN): New.
7852
7853 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7854
7855 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7856 bit shift.
7857
7858 2020-04-10 Tom Tromey <tromey@adacore.com>
7859
7860 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7861
7862 2020-04-10 Tom Tromey <tromey@adacore.com>
7863
7864 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7865 separate debug files.
7866
7867 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7868
7869 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7870 Move to...
7871 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7872 ... here.
7873 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7874 Check for STATUS_WX86_BREAKPOINT.
7875 (windows_nat_target::wait): Same.
7876
7877 2020-04-10 Tom de Vries <tdevries@suse.de>
7878
7879 PR cli/25808
7880 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7881
7882 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7883
7884 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7885 (Write After Approval): Remove Tom de Vries.
7886
7887 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7888
7889 revert partially:
7890 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7891
7892 * buildsym.c (record_line): Fix undefined behavior and preserve
7893 lines at eof.
7894
7895 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7896
7897 * auxv.h (svr4_auxv_parse): New.
7898 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7899 and generic_auxv_parse.
7900 (svr4_auxv_parse): Add.
7901 * obsd-tdep.c: Include "auxv.h".
7902 (obsd_auxv_parse): Remove.
7903 (obsd_init_abi): Remove comment.
7904 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7905 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7906 * nbsd-tdep.c: Include "auxv.h".
7907 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7908
7909 2020-04-08 Tom Tromey <tromey@adacore.com>
7910
7911 * nat/windows-nat.h (last_wait_event): Don't declare.
7912 (wait_for_debug_event): Update comment.
7913 * nat/windows-nat.c (last_wait_event): Now static.
7914
7915 2020-04-08 Tom Tromey <tromey@adacore.com>
7916
7917 * windows-nat.c (wait_for_debug_event): Move to
7918 nat/windows-nat.c.
7919 * nat/windows-nat.h (wait_for_debug_event): Declare.
7920 * nat/windows-nat.c (wait_for_debug_event): Move from
7921 windows-nat.c. No longer static.
7922
7923 2020-04-08 Tom Tromey <tromey@adacore.com>
7924
7925 * windows-nat.c (get_windows_debug_event): Use
7926 fetch_pending_stop.
7927 * nat/windows-nat.h (fetch_pending_stop): Declare.
7928 * nat/windows-nat.c (fetch_pending_stop): New function.
7929
7930 2020-04-08 Tom Tromey <tromey@adacore.com>
7931
7932 * windows-nat.c (windows_continue): Use matching_pending_stop and
7933 continue_last_debug_event.
7934 * nat/windows-nat.h (matching_pending_stop)
7935 (continue_last_debug_event): Declare.
7936 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7937 (matching_pending_stop, continue_last_debug_event): New
7938 functions.
7939
7940 2020-04-08 Tom Tromey <tromey@adacore.com>
7941
7942 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7943 (handle_exception_result): Move to nat/windows-nat.h.
7944 (DEBUG_EXCEPTION_SIMPLE): Remove.
7945 (windows_nat::handle_ms_vc_exception): New function.
7946 (handle_exception): Move to nat/windows-nat.c.
7947 (get_windows_debug_event): Update.
7948 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7949 nat/windows-nat.c.
7950 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7951 (handle_exception_result): Move from windows-nat.c.
7952 (handle_exception): Declare.
7953 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7954 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7955 windows-nat.c.
7956
7957 2020-04-08 Tom Tromey <tromey@adacore.com>
7958
7959 * windows-nat.c (exception_count, event_count): Remove.
7960 (handle_exception, get_windows_debug_event)
7961 (do_initial_windows_stuff): Update.
7962
7963 2020-04-08 Tom Tromey <tromey@adacore.com>
7964
7965 * windows-nat.c (windows_nat::handle_load_dll)
7966 (windows_nat::handle_unload_dll): Rename. No longer static.
7967 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7968 Declare.
7969
7970 2020-04-08 Tom Tromey <tromey@adacore.com>
7971
7972 * complaints.h (stop_whining): Declare at top-level.
7973 (complaint): Don't declare stop_whining.
7974
7975 2020-04-08 Tom Tromey <tromey@adacore.com>
7976
7977 * windows-nat.c (windows_nat::handle_output_debug_string):
7978 Rename. No longer static.
7979 * nat/windows-nat.h (handle_output_debug_string): Declare.
7980
7981 2020-04-08 Tom Tromey <tromey@adacore.com>
7982
7983 * windows-nat.c (current_process_handle, current_process_id)
7984 (main_thread_id, last_sig, current_event, last_wait_event)
7985 (current_windows_thread, desired_stop_thread_id, pending_stops)
7986 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7987 (display_selectors, fake_create_process)
7988 (get_windows_debug_event): Update.
7989 * nat/windows-nat.h (current_process_handle, current_process_id)
7990 (main_thread_id, last_sig, current_event, last_wait_event)
7991 (current_windows_thread, desired_stop_thread_id, pending_stops)
7992 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7993 * nat/windows-nat.c (current_process_handle, current_process_id)
7994 (main_thread_id, last_sig, current_event, last_wait_event)
7995 (current_windows_thread, desired_stop_thread_id, pending_stops)
7996 (siginfo_er): New globals. Move from windows-nat.c.
7997
7998 2020-04-08 Tom Tromey <tromey@adacore.com>
7999
8000 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8001 (handle_load_dll): Update.
8002 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8003
8004 2020-04-08 Tom Tromey <tromey@adacore.com>
8005
8006 * windows-nat.c (enum thread_disposition_type): Move to
8007 nat/windows-nat.h.
8008 (windows_nat::thread_rec): Rename from thread_rec. No longer
8009 static.
8010 (windows_add_thread, windows_nat_target::fetch_registers)
8011 (windows_nat_target::store_registers, handle_exception)
8012 (windows_nat_target::resume, get_windows_debug_event)
8013 (windows_nat_target::get_tib_address)
8014 (windows_nat_target::thread_name)
8015 (windows_nat_target::thread_alive): Update.
8016 * nat/windows-nat.h (enum thread_disposition_type): Move from
8017 windows-nat.c.
8018 (thread_rec): Declare.
8019
8020 2020-04-08 Tom Tromey <tromey@adacore.com>
8021
8022 * windows-nat.c: Add "using namespace".
8023 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8024 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8025
8026 2020-04-08 Tom Tromey <tromey@adacore.com>
8027
8028 * nat/windows-nat.h (struct windows_thread_info): Declare
8029 destructor.
8030 * nat/windows-nat.c (~windows_thread_info): New.
8031
8032 2020-04-08 Tom Tromey <tromey@adacore.com>
8033
8034 PR gdb/22992
8035 * windows-nat.c (current_event): Update comment.
8036 (last_wait_event, desired_stop_thread_id): New globals.
8037 (struct pending_stop): New.
8038 (pending_stops): New global.
8039 (windows_nat_target) <stopped_by_sw_breakpoint>
8040 <supports_stopped_by_sw_breakpoint>: New methods.
8041 (windows_fetch_one_register): Add assertions. Adjust PC.
8042 (windows_continue): Handle pending stops. Suspend other threads
8043 when stepping. Use last_wait_event
8044 (wait_for_debug_event): New function.
8045 (get_windows_debug_event): Use wait_for_debug_event. Handle
8046 pending stops. Queue spurious stops.
8047 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8048 (windows_nat_target::kill): Use wait_for_debug_event.
8049 * nat/windows-nat.h (struct windows_thread_info)
8050 <stopped_at_software_breakpoint>: New field.
8051 * nat/windows-nat.c (windows_thread_info::resume): Clear
8052 stopped_at_software_breakpoint.
8053
8054 2020-04-08 Tom Tromey <tromey@adacore.com>
8055
8056 * windows-nat.c (enum thread_disposition_type): New.
8057 (thread_rec): Replace "get_context" parameter with "disposition";
8058 change type.
8059 (windows_add_thread, windows_nat_target::fetch_registers)
8060 (windows_nat_target::store_registers, handle_exception)
8061 (windows_nat_target::resume, get_windows_debug_event)
8062 (windows_nat_target::get_tib_address)
8063 (windows_nat_target::thread_name)
8064 (windows_nat_target::thread_alive): Update.
8065
8066 2020-04-08 Tom Tromey <tromey@adacore.com>
8067
8068 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8069 (windows_continue): Use windows_continue::resume.
8070 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8071 resume>: Declare new methods.
8072 * nat/windows-nat.c: New file.
8073 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8074
8075 2020-04-08 Tom Tromey <tromey@adacore.com>
8076
8077 * windows-nat.c (windows_add_thread, windows_delete_thread)
8078 (windows_nat_target::fetch_registers)
8079 (windows_nat_target::store_registers, fake_create_process)
8080 (windows_nat_target::resume, windows_nat_target::resume)
8081 (get_windows_debug_event, windows_nat_target::wait)
8082 (windows_nat_target::pid_to_str)
8083 (windows_nat_target::get_tib_address)
8084 (windows_nat_target::get_ada_task_ptid)
8085 (windows_nat_target::thread_name)
8086 (windows_nat_target::thread_alive): Use lwp, not tid.
8087
8088 2020-04-08 Tom Tromey <tromey@adacore.com>
8089
8090 * windows-nat.c (handle_exception)
8091 (windows_nat_target::thread_name): Update.
8092 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8093 <name>: Now unique_xmalloc_ptr.
8094
8095 2020-04-08 Tom Tromey <tromey@adacore.com>
8096
8097 * windows-nat.c (thread_rec)
8098 (windows_nat_target::fetch_registers): Update.
8099 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8100 Update comment.
8101 <debug_registers_changed, reload_context>: Now bool.
8102
8103 2020-04-08 Tom Tromey <tromey@adacore.com>
8104
8105 * windows-nat.c (windows_add_thread): Use new.
8106 (windows_init_thread_list, windows_delete_thread): Use delete.
8107 (get_windows_debug_event): Update.
8108 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8109 destructor, and initializers.
8110
8111 2020-04-08 Tom Tromey <tromey@adacore.com>
8112
8113 * windows-nat.c (struct windows_thread_info): Remove.
8114 * nat/windows-nat.h: New file.
8115
8116 2020-04-08 Tom Tromey <tromey@adacore.com>
8117
8118 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8119 (thread_rec, windows_add_thread, windows_delete_thread)
8120 (windows_continue): Update.
8121
8122 2020-04-08 Tom Tromey <tromey@adacore.com>
8123
8124 * windows-nat.c (struct windows_thread_info): Remove typedef.
8125 (thread_head): Remove.
8126 (thread_list): New global.
8127 (thread_rec, windows_add_thread, windows_init_thread_list)
8128 (windows_delete_thread, windows_continue): Update.
8129
8130 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8131
8132 * windows-tdep.h (windows_init_abi): Add comment.
8133 (cygwin_init_abi): New declaration.
8134 * windows-tdep.c: Split signal enumeration in two, one for
8135 Windows and one for Cygwin.
8136 (windows_gdb_signal_to_target): Only deal with signal of the
8137 Windows OS ABI.
8138 (cygwin_gdb_signal_to_target): New function.
8139 (windows_init_abi): Rename to windows_init_abi_common, don't set
8140 gdb_signal_to_target gdbarch method. Add new new function with
8141 this name.
8142 (cygwin_init_abi): New function.
8143 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8144 comment. Don't call windows_init_abi.
8145 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8146 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8147 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8148 i386_windows_init_abi_common, don't call windows_init_abi. Add
8149 a new function of this name.
8150 (i386_cygwin_init_abi): New function.
8151 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8152 OS ABI Cygwin.
8153
8154 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8155
8156 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8157 parameter.c.
8158 (dwarf2_read_gdb_index): Update.
8159
8160 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8161
8162 * nbsd-tdep.c: Include "objfiles.h".
8163 (nbsd_skip_solib_resolver): New.
8164 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8165
8166 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8167
8168 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8169 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8170 with DW_LLE_base_addressx are being emitted in DWARFv5.
8171 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8172 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8173 unsigned integer.
8174
8175 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8176
8177 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8178 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8179 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8180 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8181 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8182 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8183 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8184
8185
8186 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8187
8188 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8189 (read_loclist_index): New function definition.
8190 (lookup_loclist_base): New function definition.
8191 (read_loclist_header): New function definition.
8192 (dwarf2_cu): Add loclist_base and loclist_header field.
8193 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8194 (read_full_die_1): Read the value of DW_AT_loclists_base.
8195 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8196 (read_attribute_value): Handle DW_FORM_loclistx.
8197 (skip_one_die): Handle DW_FORM_loclistx.
8198 (loclist_header): New structure declaration.
8199 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8200
8201 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8202
8203 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8204 constructor. Remove `addr` parameter from other constructor and
8205 add `per_cu` parameter.
8206 * dwarf2/read.c (create_partial_symtab): Update.
8207
8208 2020-04-07 Tom de Vries <tdevries@suse.de>
8209
8210 PR symtab/25796
8211 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8212 (partial_die_info::fixup): Inherit has_const_value.
8213
8214 2020-04-07 Tom de Vries <tdevries@suse.de>
8215
8216 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8217 symbols without address.
8218
8219 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8220
8221 * nbsd-nat.h (struct thread_info): Add forward declaration.
8222 (nbsd_nat_target::thread_alive): Add.
8223 (nbsd_nat_target::thread_name): Likewise.
8224 (nbsd_nat_target::update_thread_list): Likewise.
8225 (update_thread_list::post_attach): Likewise.
8226 (post_attach::pid_to_str): Likewise.
8227 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8228 (nbsd_thread_lister): Add.
8229 (nbsd_nat_target::thread_alive): Likewise.
8230 (nbsd_nat_target::thread_name): Likewise.
8231 (nbsd_add_threads): Likewise.
8232 (update_thread_list::post_attach): Likewise.
8233 (nbsd_nat_target::update_thread_list): Likewise.
8234 (post_attach::pid_to_str): Likewise.
8235
8236 2020-04-06 Tom Tromey <tromey@adacore.com>
8237
8238 * ada-valprint.c (print_variant_part): Extract the variant field.
8239 (print_field_values): Use the field as the outer value when
8240 recursing.
8241
8242 2020-04-06 Tom Tromey <tromey@adacore.com>
8243
8244 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8245 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8246 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8247 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8248 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8249
8250 2020-04-06 Tom Tromey <tromey@adacore.com>
8251
8252 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8253 TYPE_CODE_ERROR.
8254
8255 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8256
8257 * nbsd-tdep.c: Include "gdbarch.h".
8258 Define enum with NetBSD signal numbers.
8259 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8260 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8261 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8262 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8263 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8264 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8265 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8266 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8267 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8268 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8269 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8270 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8271
8272 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8273
8274 PR gdb/25325
8275 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8276
8277 2020-04-03 Tom Tromey <tromey@adacore.com>
8278
8279 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8280 Read constant block.
8281
8282 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8283
8284 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8285 (gdb_bfd_get_full_section_contents): New declaration.
8286 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8287 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8288 gdb_bfd_get_full_section_contents.
8289
8290 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8291
8292 * exec.c (build_section_table): Replace internal_error with
8293 gdb_assert.
8294 (section_table_xfer_memory_partial): Likewise.
8295 * mdebugread.c (parse_partial_symbols): Likewise.
8296 * psymtab.c (lookup_partial_symbol): Likewise.
8297 * utils.c (wrap_here): Likewise.
8298
8299 2020-04-02 Tom Tromey <tromey@adacore.com>
8300
8301 * f-lang.c (build_fortran_types): Use arch_type to initialize
8302 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8303
8304 2020-04-02 Tom Tromey <tromey@adacore.com>
8305
8306 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8307 of attributes.
8308
8309 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8310 Bernd Edlinger <bernd.edlinger@hotmail.de>
8311 Tom Tromey <tromey@adacore.com>
8312
8313 * buildsym.c (buildsym_compunit::record_line): Remove
8314 deduplication code.
8315
8316 2020-04-02 Tom de Vries <tdevries@suse.de>
8317
8318 PR ada/24671
8319 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8320
8321 2020-04-02 Tom de Vries <tdevries@suse.de>
8322
8323 * dwarf2/read.c (dwarf2_gdb_index_functions,
8324 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8325 NULL.
8326 * psymtab.c (psym_lookup_global_symbol_language): New function.
8327 (psym_functions): Init psym_lookup_global_symbol_language with
8328 psym_lookup_global_symbol_language.
8329 * symfile-debug.c (debug_sym_quick_functions): Init
8330 lookup_global_symbol_language with NULL.
8331 * symfile.c (set_initial_language): Remove fixme comment.
8332 * symfile.h (struct quick_symbol_functions): Add
8333 lookup_global_symbol_language.
8334 * symtab.c (find_quick_global_symbol_language): New function.
8335 (find_main_name): Use find_quick_global_symbol_language.
8336
8337 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8338
8339 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8340
8341 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8342
8343 * buildsym.c (record_line): Fix undefined behavior and preserve
8344 lines at eof.
8345
8346 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8347
8348 * buildsym.c (record_line): Fix the resizing condition.
8349
8350 2020-04-01 Tom Tromey <tom@tromey.com>
8351
8352 * value.h (value_literal_complex): Add comment.
8353 * valops.c (value_literal_complex): Refer to value.h.
8354
8355 2020-04-01 Tom Tromey <tom@tromey.com>
8356
8357 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8358 (scalar_type): New rule, from typebase.
8359 (typebase): Use scalar_type. Recognize complex types.
8360 (field_name): Handle FLOAT_KEYWORD.
8361 (ident_tokens): Add _Complex and __complex__.
8362
8363 2020-04-01 Tom Tromey <tom@tromey.com>
8364
8365 PR exp/25299:
8366 * valarith.c (promotion_type, complex_binop): New functions.
8367 (scalar_binop): Handle complex numbers. Use promotion_type.
8368 (value_pos, value_neg, value_complement): Handle complex numbers.
8369
8370 2020-04-01 Tom Tromey <tom@tromey.com>
8371
8372 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8373 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8374 (parse_number): Handle complex numbers.
8375
8376 2020-04-01 Tom Tromey <tom@tromey.com>
8377
8378 * c-valprint.c (c_decorations): Change complex suffix to "i".
8379
8380 2020-04-01 Tom Tromey <tom@tromey.com>
8381
8382 * valprint.c (generic_value_print_complex): Use accessors.
8383 * value.h (value_real_part, value_imaginary_part): Declare.
8384 * valops.c (value_real_part, value_imaginary_part): New
8385 functions.
8386 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8387
8388 2020-04-01 Tom Tromey <tom@tromey.com>
8389
8390 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8391 (read_range_type): Update.
8392 * mdebugread.c (basic_type): Update.
8393 * go-lang.c (build_go_types): Use init_complex_type.
8394 * gdbtypes.h (struct main_type) <complex_type>: New member.
8395 (init_complex_type): Update.
8396 (arch_complex_type): Don't declare.
8397 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8398 Make name if none given. Use alloc_type_copy. Look for cached
8399 complex type.
8400 (arch_complex_type): Remove.
8401 (gdbtypes_post_init): Use init_complex_type.
8402 * f-lang.c (build_fortran_types): Use init_complex_type.
8403 * dwarf2/read.c (read_base_type): Update.
8404 * d-lang.c (build_d_types): Use init_complex_type.
8405 * ctfread.c (read_base_type): Update.
8406
8407 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8408
8409 * infrun.c (stop_all_threads): Update assertion, plus when
8410 stopping threads, take into account that we might be trying
8411 to stop an all-stop target.
8412 (stop_waiting): Call 'stop_all_threads' if there exists a
8413 non-stop target.
8414
8415 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8416
8417 * target.h (exists_non_stop_target): New function declaration.
8418 * target.c (exists_non_stop_target): New function.
8419
8420 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8421
8422 PR gdb/24789
8423 * eval.c (is_integral_or_integral_reference): New function.
8424 (evaluate_subexp_standard): Allow integer references in
8425 pointer arithmetic.
8426
8427 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8428
8429 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8430 check for no ptid in the stop reply when the target is non-stop.
8431
8432 2020-04-01 Tom Tromey <tromey@adacore.com>
8433
8434 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8435 "name" parameter to rvalue reference. Initialize m_name_holder.
8436 <lookup_name_info>: New overloads.
8437 <name>: Return gdb::string_view.
8438 <c_str>: New method.
8439 <make_ignore_params>: Update.
8440 <search_name_hash>: Update.
8441 <language_lookup_name>: Return const char *.
8442 <m_name>: Change type.
8443 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8444 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8445 (lookup_name_info::match_any): Update.
8446 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8447 Update.
8448 * minsyms.c (linkage_name_str): Update.
8449 * language.c (default_symbol_name_matcher): Update.
8450 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8451 Update.
8452 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8453 (ada_lookup_name_info::ada_lookup_name_info): Update.
8454 (literal_symbol_name_matcher): Update.
8455
8456 2020-04-01 Tom Tromey <tromey@adacore.com>
8457
8458 * psymtab.c (psymtab_search_name): Remove function.
8459 (psym_lookup_symbol): Create search name and lookup name here.
8460 (lookup_partial_symbol): Remove "name" parameter; add
8461 lookup_name.
8462 (psym_expand_symtabs_for_function): Update.
8463
8464 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8465
8466 PR tui/25597:
8467 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8468
8469 2020-03-31 Tom Tromey <tromey@adacore.com>
8470
8471 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8472 memcpy.
8473
8474 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8475
8476 * features/riscv/32bit-csr.xml: Regenerated.
8477 * features/riscv/64bit-csr.xml: Regenerated.
8478
8479 2020-03-30 Tom Tromey <tromey@adacore.com>
8480
8481 * ada-valprint.c (print_variant_part): Update.
8482 * ada-lang.h (ada_which_variant_applies): Update.
8483 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8484 outer_valaddr parameters; replace with "outer" value parameter.
8485 (to_fixed_variant_branch_type): Update.
8486
8487 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8488
8489 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8490 <list>. Remove inclusion of observable.h.
8491 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8492 (struct arch_lwp_info): New struct.
8493 (class ppc_linux_dreg_interface): New class.
8494 (struct ppc_linux_process_info): New struct.
8495 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8496 <low_new_clone, low_forget_process, low_prepare_to_resume>
8497 <copy_thread_dreg_state, mark_thread_stale>
8498 <mark_debug_registers_changed, register_hw_breakpoint>
8499 <clear_hw_breakpoint, register_wp, clear_wp>
8500 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8501 <num_memory_accesses, get_trigger_type>
8502 <create_watchpoint_request, hwdebug_point_cmp>
8503 <init_arch_lwp_info, get_arch_lwp_info>
8504 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8505 methods.
8506 <struct ptid_hash>: New inner struct.
8507 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8508 members.
8509 (saved_dabr_value, hwdebug_info, max_slots_number)
8510 (struct hw_break_tuple, struct thread_points, ppc_threads)
8511 (have_ptrace_hwdebug_interface)
8512 (hwdebug_find_thread_points_by_tid)
8513 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8514 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8515 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8516 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8517 use m_dreg_interface.
8518 (hwdebug_point_cmp): Change to...
8519 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8520 reference arguments instead of pointers.
8521 (ppc_linux_nat_target::ranged_break_num_registers): Use
8522 m_dreg_interface.
8523 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8524 m_dreg_interface. Call register_hw_breakpoint.
8525 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8526 m_dreg_interface. Call clear_hw_breakpoint.
8527 (get_trigger_type): Change to...
8528 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8529 comment.
8530 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8531 use m_dreg_interface. Call register_hw_breakpoint.
8532 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8533 use m_dreg_interface. Call clear_hw_breakpoint.
8534 (can_use_watchpoint_cond_accel): Change to...
8535 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8536 method. Update comment, use m_dreg_interface and
8537 m_process_info.
8538 (calculate_dvc): Change to...
8539 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8540 m_dreg_interface.
8541 (num_memory_accesses): Change to...
8542 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8543 (check_condition): Change to...
8544 (ppc_linux_nat_target::check_condition): ...this method.
8545 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8546 comment, use m_dreg_interface.
8547 (create_watchpoint_request): Change to...
8548 (ppc_linux_nat_target::create_watchpoint_request): ...this
8549 method. Use m_dreg_interface.
8550 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8551 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8552 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8553 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8554 (ppc_linux_nat_target::low_forget_process)
8555 (ppc_linux_nat_target::low_new_fork)
8556 (ppc_linux_nat_target::low_new_clone)
8557 (ppc_linux_nat_target::low_delete_thread)
8558 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8559 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8560 only call mark_thread_stale.
8561 (ppc_linux_thread_exit): Remove.
8562 (ppc_linux_nat_target::stopped_data_address): Change to...
8563 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8564 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8565 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8566 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8567 comment. Call low_stopped_data_address.
8568 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8569 m_dreg_interface.
8570 (ppc_linux_nat_target::masked_watch_num_registers): Use
8571 m_dreg_interface.
8572 (ppc_linux_nat_target::copy_thread_dreg_state)
8573 (ppc_linux_nat_target::mark_thread_stale)
8574 (ppc_linux_nat_target::mark_debug_registers_changed)
8575 (ppc_linux_nat_target::register_hw_breakpoint)
8576 (ppc_linux_nat_target::clear_hw_breakpoint)
8577 (ppc_linux_nat_target::register_wp)
8578 (ppc_linux_nat_target::clear_wp)
8579 (ppc_linux_nat_target::init_arch_lwp_info)
8580 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8581 (_initialize_ppc_linux_nat): Remove observer callback.
8582
8583 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8584
8585 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8586 (ppc_linux_nat_target::auxv_parse)
8587 (ppc_linux_nat_target::read_description)
8588 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8589 Move up.
8590
8591 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8592
8593 * linux-nat.h (low_new_clone): New method.
8594 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8595
8596 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8597
8598 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8599 (dbx_expand_psymtab): ... this.
8600 (start_psymtab): Update.
8601 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8602 (mdebug_expand_psymtab): ... this.
8603 (parse_partial_symbols): Update.
8604 (new_psymtab): Update.
8605 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8606 (xcoff_expand_psymtab): ... this.
8607 (xcoff_start_psymtab): Update.
8608
8609 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8610
8611 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8612 <expand_dependencies>: ... this.
8613 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8614 (partial_symtab::expand_dependencies): ... this.
8615 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8616 Update.
8617 (dwarf2_psymtab::expand_psymtab): Update.
8618 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8619 * mdebugread.c (psymtab_to_symtab_1): Update.
8620 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8621
8622 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8623
8624 * psympriv.h (discard_psymtab): Remove.
8625 * dbxread.c (dbx_end_psymtab): Update.
8626 * xcoffread.c (xcoff_end_psymtab): Update.
8627
8628 2020-03-28 Tom Tromey <tom@tromey.com>
8629
8630 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8631 comment.
8632
8633 2020-03-28 Tom Tromey <tom@tromey.com>
8634
8635 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8636
8637 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8638
8639 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8640
8641 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8642
8643 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8644
8645 2020-03-26 Tom Tromey <tom@tromey.com>
8646
8647 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8648 (mark_common_block_symbol_computed, read_tag_string_type)
8649 (attr_to_dynamic_prop, read_subrange_type): Update.
8650 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8651 to be methods on struct attribute.
8652 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8653 (read_call_site_scope, partial_die_info::read)
8654 (partial_die_info::read, lookup_die_type, follow_die_ref):
8655 Update.
8656 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8657 from dwarf2_get_ref_die_offset.
8658 (attribute::constant_value): New method, from
8659 dwarf2_get_attr_constant_value.
8660 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8661 Declare method.
8662 <constant_value>: New method.
8663
8664 2020-03-26 Tom Tromey <tom@tromey.com>
8665
8666 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8667 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8668 (dwarf_type_encoding_name): Move to stringify.c.
8669 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8670 * dwarf2/stringify.c: New file.
8671 * dwarf2/stringify.h: New file.
8672
8673 2020-03-26 Tom Tromey <tom@tromey.com>
8674
8675 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8676 Rewrite.
8677
8678 2020-03-26 Tom Tromey <tom@tromey.com>
8679
8680 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8681 methods.
8682 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8683 (lookup_ranges_base): Likewise.
8684 (read_cutu_die_from_dwo, read_full_die_1): Update.
8685
8686 2020-03-26 Tom Tromey <tom@tromey.com>
8687
8688 * dwarf2/read.c (read_import_statement, read_file_scope)
8689 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8690 (read_lexical_block_scope, read_call_site_scope)
8691 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8692 (handle_struct_member_die, process_structure_scope)
8693 (update_enumeration_type_from_children)
8694 (process_enumeration_scope, read_array_type, read_common_block)
8695 (read_namespace, read_module, read_subroutine_type): Update.
8696 (sibling_die): Remove.
8697
8698 2020-03-26 Tom Tromey <tom@tromey.com>
8699
8700 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8701 (build_type_psymtabs_reader, read_structure_type)
8702 (read_enumeration_type, read_full_die_1): Update.
8703 (dwarf2_attr_no_follow): Move to die.h.
8704 * dwarf2/die.h (struct die_info) <attr>: New method.
8705
8706 2020-03-26 Tom Tromey <tom@tromey.com>
8707
8708 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8709 <base_address>: Now an optional.
8710 (dwarf2_find_base_address, dwarf2_rnglists_process)
8711 (dwarf2_ranges_process, fill_in_loclist_baton)
8712 (dwarf2_symbol_mark_computed): Update.
8713
8714 2020-03-26 Tom Tromey <tom@tromey.com>
8715
8716 * dwarf2/read.c (struct die_info): Move to die.h.
8717 * dwarf2/die.h: New file.
8718
8719 2020-03-26 Tom Tromey <tom@tromey.com>
8720
8721 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8722 * dwarf2/read.c
8723 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8724 Move to line-header.c.
8725 (read_checked_initial_length_and_offset, read_formatted_entries):
8726 Likewise.
8727 (dwarf_decode_line_header): Split into two.
8728 * dwarf2/line-header.c
8729 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8730 Move from read.c.
8731 (read_checked_initial_length_and_offset, read_formatted_entries):
8732 Likewise.
8733 (dwarf_decode_line_header): New function, split from read.c.
8734
8735 2020-03-26 Tom Tromey <tom@tromey.com>
8736
8737 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8738 Declare method.
8739 * dwarf2/read.c (read_attribute_value): Update.
8740 (dwarf2_per_objfile::read_line_string): Rename from
8741 read_indirect_line_string.
8742 (read_formatted_entries): Update.
8743
8744 2020-03-26 Tom Tromey <tom@tromey.com>
8745
8746 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8747 variable.
8748
8749 2020-03-26 Tom Tromey <tom@tromey.com>
8750
8751 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8752 const.
8753 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8754 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8755 parameter const.
8756
8757 2020-03-26 Tom Tromey <tom@tromey.com>
8758
8759 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8760 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8761 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8762 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8763
8764 2020-03-26 Tom Tromey <tom@tromey.com>
8765
8766 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8767 file_names_size, file_full_name, file_file_name>: Use const.
8768 <file_name_at, file_names>: Add const overload.
8769 * dwarf2/line-header.c (line_header::file_file_name)
8770 (line_header::file_full_name): Update.
8771
8772 2020-03-26 Tom Tromey <tom@tromey.com>
8773
8774 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8775 (macro_start_file, consume_improper_spaces)
8776 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8777 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8778 (dwarf_decode_macros): Move to macro.c.
8779 * dwarf2/macro.c: New file.
8780 * dwarf2/macro.h: New file.
8781 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8782
8783 2020-03-26 Tom Tromey <tom@tromey.com>
8784
8785 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8786 method.
8787 * dwarf2/section.c: New method. From
8788 read_indirect_string_at_offset_from.
8789 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8790 (read_indirect_string_at_offset_from): Move to section.c.
8791 (read_indirect_string_at_offset): Rewrite.
8792 (read_indirect_line_string_at_offset): Remove.
8793 (read_indirect_string, read_indirect_line_string)
8794 (dwarf_decode_macro_bytes): Update.
8795
8796 2020-03-26 Tom Tromey <tom@tromey.com>
8797
8798 * dwarf2/section.h (struct dwarf2_section_info)
8799 <overload_complaint>: Declare.
8800 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8801 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8802 Rename from dwarf2_section_buffer_overflow_complaint.
8803 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8804 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8805
8806 2020-03-26 Tom Tromey <tom@tromey.com>
8807
8808 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8809 Declare.
8810 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8811 Move from read.c.
8812 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8813 to section.c.
8814
8815 2020-03-26 Tom Tromey <tom@tromey.com>
8816
8817 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8818
8819 2020-03-26 Tom Tromey <tom@tromey.com>
8820
8821 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8822 "builder".
8823 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8824 parameter.
8825 (dwarf_decode_macros): Update.
8826
8827 2020-03-26 Tom Tromey <tom@tromey.com>
8828
8829 * dwarf2/read.c (read_attribute_value): Update.
8830 (read_indirect_string_from_dwz): Move to dwz.c; change into
8831 method.
8832 (dwarf_decode_macro_bytes): Update.
8833 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8834 * dwarf2/dwz.c: New file.
8835 * Makefile.in (COMMON_SFILES): Add dwz.c.
8836
8837 2020-03-26 Tom Tromey <tom@tromey.com>
8838
8839 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8840 * dwarf2/read.c: Add include.
8841 * dwarf2/index-write.c: Add include.
8842 * dwarf2/index-cache.c: Add include.
8843 * dwarf2/dwz.h: New file.
8844
8845 2020-03-25 Tom Tromey <tom@tromey.com>
8846
8847 * compile/compile-object-load.c (get_out_value_type): Mention
8848 correct symbol name in error message.
8849
8850 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8851
8852 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8853
8854 2020-03-25 Tom de Vries <tdevries@suse.de>
8855
8856 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8857 * symmisc.c (dump_symtab_1): Print user and includes fields.
8858 (maintenance_info_symtabs): Same.
8859
8860 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8861
8862 PR gdb/25534
8863 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8864 (riscv_regcache_cooked_write): New function.
8865 (riscv_push_dummy_call): Use new function.
8866 (riscv_return_value): Likewise.
8867
8868 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8869
8870 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8871 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8872 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8873 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8874 * infrun.c (follow_fork): Likewise.
8875 (follow_fork_inferior): Likewise.
8876 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8877 * linux-nat.h (class linux_nat_target): Likewise.
8878 * remote.c (class remote_target) <follow_fork>: Likewise.
8879 (remote_target::follow_fork): Likewise.
8880 * target-delegates.c: Re-generate.
8881 * target.c (default_follow_fork): Likewise.
8882 (target_follow_fork): Likewise.
8883 * target.h (struct target_ops) <follow_fork>: Likewise.
8884 (target_follow_fork): Likewise.
8885
8886 2020-03-24 Tom de Vries <tdevries@suse.de>
8887
8888 * psymtab.c (maintenance_info_psymtabs): Print user field.
8889
8890 2020-03-20 Tom Tromey <tromey@adacore.com>
8891
8892 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8893 const.
8894 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8895 const.
8896
8897 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8898
8899 * ptrace.m4: Don't check for ptrace declaration.
8900 * config.in: Re-generate.
8901 * configure: Re-generate.
8902 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8903 not defined.
8904
8905 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8906
8907 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8908 `PTRACE_TYPE_RET'.
8909 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8910 * sparc-nat.c (gdb_ptrace): Likewise.
8911 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8912
8913 2020-03-20 Tom Tromey <tromey@adacore.com>
8914
8915 * c-exp.y (lex_one_token): Fix assert.
8916
8917 2020-03-20 Tom Tromey <tromey@adacore.com>
8918
8919 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8920 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8921 strncpy call.
8922
8923 2020-03-20 Tom Tromey <tromey@adacore.com>
8924
8925 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8926
8927 2020-03-20 Tom Tromey <tromey@adacore.com>
8928
8929 * ada-valprint.c (print_variant_part): Remove parameters; switch
8930 to value-based API.
8931 (print_field_values): Likewise.
8932 (ada_val_print_struct_union): Likewise.
8933 (ada_value_print_1): Update.
8934
8935 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8936
8937 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8938 nbsd_nat_target instead of inf_ptrace_target.
8939 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8940 nbsd_nat_target.
8941
8942 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8943
8944 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8945 it to the ptrace call.
8946 * (store_registers): Likewise.
8947
8948 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8949
8950 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8951 it to the ptrace call.
8952 * (store_registers): Likewise.
8953
8954 2020-03-19 Luis Machado <luis.machado@linaro.org>
8955
8956 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8957 valid, fetch vg value from ptrace.
8958
8959 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8960 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8961 * inf-ptrace.c: Likewise.
8962 * (gdb_ptrace): Add.
8963 * (inf_ptrace_target::resume): Update.
8964 * (inf_ptrace_target::xfer_partial): Likewise.
8965 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8966 * (inf_ptrace_peek_poke): Update.
8967
8968 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8969
8970 * x86-bsd-nat.c (gdb_ptrace): New.
8971 * (x86bsd_dr_set): Add new argument `ptid'.
8972 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8973 x86bsd_dr_set_addr): Update.
8974
8975 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8976
8977 * remote.c (remote_target::process_stop_reply): Handle events for
8978 all threads differently.
8979
8980 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8981
8982 * completer.c (completion_tracker::remove_completion): Define new
8983 function.
8984 * completer.h (completion_tracker::remove_completion): Declare new
8985 function.
8986 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8987 when adding a C++ function symbol.
8988
8989 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8990
8991 * completer.c (completion_tracker::completion_hash_entry): Define
8992 new class.
8993 (advance_to_filename_complete_word_point): Call
8994 recompute_lowest_common_denominator.
8995 (completion_tracker::completion_tracker): Call discard_completions
8996 to setup the hash table.
8997 (completion_tracker::discard_completions): Allow for being called
8998 from the constructor, pass new equal function, and element deleter
8999 when constructing the hash table. Initialise new class member
9000 variables.
9001 (completion_tracker::maybe_add_completion): Remove use of
9002 m_entries_vec, and store more information into m_entries_hash.
9003 (completion_tracker::recompute_lcd_visitor): New function, most
9004 content taken from...
9005 (completion_tracker::recompute_lowest_common_denominator):
9006 ...here, this now just visits each item in the hash calling the
9007 above visitor.
9008 (completion_tracker::build_completion_result): Remove use of
9009 m_entries_vec, call recompute_lowest_common_denominator.
9010 * completer.h (completion_tracker::have_completions): Remove use
9011 of m_entries_vec.
9012 (completion_tracker::completion_hash_entry): Declare new class.
9013 (completion_tracker::recompute_lowest_common_denominator): Change
9014 function signature.
9015 (completion_tracker::recompute_lcd_visitor): Declare new function.
9016 (completion_tracker::m_entries_vec): Delete.
9017 (completion_tracker::m_entries_hash): Initialize to NULL.
9018 (completion_tracker::m_lowest_common_denominator_valid): New
9019 member variable.
9020 (completion_tracker::m_lowest_common_denominator_max_length): New
9021 member variable.
9022
9023 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9024
9025 * regformats/regdef.h: Put reg in gdb namespace.
9026
9027 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9028
9029 * i386-bsd-nat.c (gdb_ptrace): New.
9030 * (i386bsd_fetch_inferior_registers,
9031 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9032 * (i386bsd_fetch_inferior_registers,
9033 i386bsd_store_inferior_registers) Use gdb_ptrace.
9034
9035 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9036
9037 * amd64-bsd-nat.c (gdb_ptrace): New.
9038 * (amd64bsd_fetch_inferior_registers,
9039 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9040 * (amd64bsd_fetch_inferior_registers,
9041 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9042
9043 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9044
9045 * user-regs.c (user_reg::read): Rename to...
9046 (user_reg::xread): ...this.
9047 * (append_user_reg): Rename argument `read' to `xread'.
9048 * (user_reg_add_builtin): Likewise.
9049 * (user_reg_add): Likewise.
9050 * (value_of_user_reg): Likewise.
9051
9052 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9053
9054 * sparc-nat.c (gdb_ptrace): New.
9055 * sparc-nat.c (sparc_fetch_inferior_registers)
9056 (sparc_store_inferior_registers) Remove obsolete comment.
9057 * sparc-nat.c (sparc_fetch_inferior_registers)
9058 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9059 * sparc-nat.c (sparc_fetch_inferior_registers)
9060 (sparc_store_inferior_registers) Use gdb_ptrace.
9061
9062 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9063
9064 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9065 it to the ptrace call.
9066 * sh-nbsd-nat.c (store_registers): Likewise.
9067
9068 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9069
9070 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9071 nbsd_nat_target instead of inf_ptrace_target.
9072 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9073 nbsd_nat_target.
9074
9075 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9076
9077 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9078
9079 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9080
9081 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9082 <sys/sysctl.h>.
9083 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9084
9085 2020-03-17 Tom de Vries <tdevries@suse.de>
9086
9087 PR gdb/23710
9088 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9089 fields.
9090 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9091 fields.
9092 (process_imported_unit_die): Skip import of c++ CUs.
9093
9094 2020-03-16 Tom Tromey <tom@tromey.com>
9095
9096 * p-valprint.c (pascal_object_print_value): Initialize
9097 base_value.
9098
9099 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9100 Shahab Vahedi <shahab@synopsys.com>
9101
9102 * Makefile.in: Add arch/arc.o
9103 * configure.tgt: Likewise.
9104 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9105 (_initialize_arc_tdep): Don't initialize old target descriptions.
9106 (arc_read_description): New function to cache target descriptions.
9107 * arc-tdep.h (arc_read_description): Add proto type.
9108 * arch/arc.c: New file.
9109 * arch/arc.h: Likewise.
9110 * features/Makefile: Replace old target descriptions with new.
9111 * features/arc-arcompact.c: Remove.
9112 * features/arc-arcompact.xml: Likewise.
9113 * features/arc-v2.c: Likewise
9114 * features/arc-v2.xml: Likewise
9115 * features/arc/aux-arcompact.xml: New file.
9116 * features/arc/aux-v2.xml: Likewise.
9117 * features/arc/core-arcompact.xml: Likewise.
9118 * features/arc/core-v2.xml: Likewise.
9119 * features/arc/aux-arcompact.c: Generate.
9120 * features/arc/aux-v2.c: Likewise.
9121 * features/arc/core-arcompact.c: Likewise.
9122 * features/arc/core-v2.c: Likewise.
9123 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9124
9125 2020-03-16 Tom Tromey <tromey@adacore.com>
9126
9127 PR gdb/25663:
9128 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9129 putting value into bcache.
9130
9131 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9132
9133 PR gdb/21500
9134 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9135 to...
9136 (amd64_windows_init_abi_common): ... this. Don't set size of
9137 long type.
9138 (amd64_windows_init_abi): New function.
9139 (amd64_cygwin_init_abi): New function.
9140 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9141 the Cygwin OS ABI.
9142 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9143 comment.
9144
9145 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9146
9147 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9148 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9149 (pe_import_directory_entry): New struct type.
9150 (is_linked_with_cygwin_dll): New function.
9151 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9152 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9153 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9154
9155 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9158 i386_cygwin_core_osabi_sniffer.
9159
9160 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9161
9162 * i386-cygwin-tdep.c: Rename to...
9163 * i386-windows-tdep.c: ... this.
9164 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9165 i386-windows-tdep.c.
9166 * configure.tgt: Likewise.
9167
9168 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9169
9170 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9171 * osabi.c (gdb_osabi_names): Add "Windows".
9172 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9173 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9174 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9175 i386_cygwin_osabi_sniffer.
9176 (_initialize_i386_cygwin_tdep): Register OS ABI
9177 GDB_OSABI_WINDOWS for i386.
9178 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9179 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9180 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9181 for x86-64.
9182 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9183 when the target matches '*-*-mingw*'.
9184
9185 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9186
9187 * defs.h (enum gdb_osabi): Move to...
9188 * osabi.h (enum gdb_osabi): ... here.
9189 * gdbarch.sh: Include osabi.h in gdbarch.h.
9190 * gdbarch.h: Re-generate.
9191
9192 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9193
9194 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9195 function.
9196 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9197
9198 2020-03-14 Tom Tromey <tom@tromey.com>
9199
9200 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9201 for C++.
9202 (c_type_print_modifier): Likewise. Add "language" parameter.
9203 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9204 (c_type_print_base_1): Update.
9205 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9206 constants.
9207 * type-stack.c (type_stack::insert): Handle tp_atomic and
9208 tp_restrict.
9209 (type_stack::follow_type_instance_flags): Likewise.
9210 (type_stack::follow_types): Likewise. Merge type-following code.
9211 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9212 (space_identifier, cv_with_space_id)
9213 (const_or_volatile_or_space_identifier_noopt)
9214 (const_or_volatile_or_space_identifier): Remove.
9215 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9216 rules.
9217 (ptr_operator, typebase): Update.
9218 (enum token_flag) <FLAG_C>: New constant.
9219 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9220 "_Atomic".
9221 (lex_one_token): Handle FLAG_C.
9222
9223 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9224
9225 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9226 it to the ptrace call.
9227 * m68k-bsd-nat.c (store_registers): Likewise.
9228
9229 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9230
9231 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9232 gdb_byte *.
9233 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9234 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9235 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9236
9237 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9238
9239 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9240 nbsd_nat_target instead of inf_ptrace_target.
9241 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9242 nbsd_nat_target.
9243
9244 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9245
9246 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9247 register_t.
9248
9249 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9250
9251 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9252 it to the ptrace call.
9253 * alpha-bsd-nat.c (store_registers): Likewise.
9254
9255 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9256
9257 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9258 includes.
9259 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9260 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9261 fill_fpregset): Likewise.
9262
9263 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9264
9265 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9266 nbsd_nat_target instead of inf_ptrace_target.
9267 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9268 nbsd_nat_target.
9269
9270 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9271
9272 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9273 register_t.
9274
9275 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9276
9277 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9278 it to the ptrace call.
9279 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9280 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9281 * arm-nbsd-nat.c (store_register): Likewise.
9282 * arm-nbsd-nat.c (store_regs): Likewise.
9283 * arm-nbsd-nat.c (store_fp_register): Likewise.
9284 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9285
9286 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9287
9288 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9289 nbsd_nat_target instead of inf_ptrace_target.
9290 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9291 nbsd_nat_target.
9292
9293 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9294
9295 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9296 it to the ptrace call.
9297 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9298
9299 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9300
9301 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9302 it to the ptrace call.
9303 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9304
9305 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9306
9307 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9308 gdb_byte *.
9309 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9310
9311 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9312
9313 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9314 instead of inf_ptrace_target.
9315 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9316 nbsd_nat_target.
9317
9318 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9319
9320 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9321 register_t.
9322
9323 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9324
9325 * ppc-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 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9331 register_t.
9332
9333 2020-03-13 Tom Tromey <tom@tromey.com>
9334
9335 * value.h (val_print): Don't declare.
9336 * valprint.h (val_print_array_elements)
9337 (val_print_scalar_formatted, generic_val_print): Don't declare.
9338 * valprint.c (generic_val_print_array): Take a struct value.
9339 (generic_val_print_ptr, generic_val_print_memberptr)
9340 (generic_val_print_bool, generic_val_print_int)
9341 (generic_val_print_char, generic_val_print_complex)
9342 (generic_val_print): Remove.
9343 (generic_value_print): Update.
9344 (do_val_print): Remove unused parameters. Don't call
9345 la_val_print.
9346 (val_print): Remove.
9347 (common_val_print): Update. Don't call value_check_printable.
9348 (val_print_scalar_formatted, val_print_array_elements): Remove.
9349 * rust-lang.c (rust_val_print): Remove.
9350 (rust_language_defn): Update.
9351 * p-valprint.c (pascal_val_print): Remove.
9352 (pascal_value_print_inner): Update.
9353 (pascal_object_print_val_fields, pascal_object_print_val):
9354 Remove.
9355 (pascal_object_print_static_field): Update.
9356 * p-lang.h (pascal_val_print): Don't declare.
9357 * p-lang.c (pascal_language_defn): Update.
9358 * opencl-lang.c (opencl_language_defn): Update.
9359 * objc-lang.c (objc_language_defn): Update.
9360 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9361 * m2-lang.h (m2_val_print): Don't declare.
9362 * m2-lang.c (m2_language_defn): Update.
9363 * language.h (struct language_defn) <la_val_print>: Remove.
9364 * language.c (unk_lang_value_print_inner): Rename. Change
9365 argument types.
9366 (unknown_language_defn, auto_language_defn): Update.
9367 * go-valprint.c (go_val_print): Remove.
9368 * go-lang.h (go_val_print): Don't declare.
9369 * go-lang.c (go_language_defn): Update.
9370 * f-valprint.c (f_val_print): Remove.
9371 * f-lang.h (f_value_print): Don't declare.
9372 * f-lang.c (f_language_defn): Update.
9373 * d-valprint.c (d_val_print): Remove.
9374 * d-lang.h (d_value_print): Don't declare.
9375 * d-lang.c (d_language_defn): Update.
9376 * cp-valprint.c (cp_print_value_fields)
9377 (cp_print_value_fields_rtti, cp_print_value): Remove.
9378 (cp_print_static_field): Update.
9379 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9380 (c_val_print_struct, c_val_print_union, c_val_print_int)
9381 (c_val_print_memberptr, c_val_print): Remove.
9382 * c-lang.h (c_val_print_array, cp_print_value_fields)
9383 (cp_print_value_fields_rtti): Don't declare.
9384 * c-lang.c (c_language_defn, cplus_language_defn)
9385 (asm_language_defn, minimal_language_defn): Update.
9386 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9387 (ada_val_print_enum): Take a struct value.
9388 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9389 (ada_val_print): Remove.
9390 (ada_value_print_1): Update.
9391 (printable_val_type): Remove.
9392 * ada-lang.h (ada_val_print): Don't declare.
9393 * ada-lang.c (ada_language_defn): Update.
9394
9395 2020-03-13 Tom Tromey <tom@tromey.com>
9396
9397 * valprint.c (do_val_print): Update.
9398 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9399 a struct value.
9400 (value_to_value_object_no_release): Declare.
9401 * python/py-value.c (value_to_value_object_no_release): New
9402 function.
9403 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9404 struct value.
9405 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9406 function.
9407 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9408 a struct value.
9409 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9410 Declare.
9411 (gdbscm_apply_val_pretty_printer): Take a struct value.
9412 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9413 value.
9414 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9415 value.
9416 * extension-priv.h (struct extension_language_ops)
9417 <apply_val_pretty_printer>: Take a struct value.
9418 * cp-valprint.c (cp_print_value): Create a struct value.
9419 (cp_print_value): Update.
9420
9421 2020-03-13 Tom Tromey <tom@tromey.com>
9422
9423 * ada-valprint.c (print_field_values): Call common_val_print.
9424
9425 2020-03-13 Tom Tromey <tom@tromey.com>
9426
9427 * ada-valprint.c (val_print_packed_array_elements): Remove
9428 bitoffset and val parameters. Call common_val_print.
9429 (ada_val_print_string): Remove offset, address, and original_value
9430 parameters.
9431 (ada_val_print_array): Update.
9432 (ada_value_print_array): New function.
9433 (ada_value_print_1): Call it.
9434
9435 2020-03-13 Tom Tromey <tom@tromey.com>
9436
9437 * ada-valprint.c (ada_value_print): Use common_val_print.
9438
9439 2020-03-13 Tom Tromey <tom@tromey.com>
9440
9441 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9442
9443 2020-03-13 Tom Tromey <tom@tromey.com>
9444
9445 * ada-valprint.c (ada_value_print_num): New function.
9446 (ada_value_print_1): Use it.
9447
9448 2020-03-13 Tom Tromey <tom@tromey.com>
9449
9450 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9451
9452 2020-03-13 Tom Tromey <tom@tromey.com>
9453
9454 * ada-valprint.c (ada_value_print_ptr): New function.
9455 (ada_value_print_1): Use it.
9456
9457 2020-03-13 Tom Tromey <tom@tromey.com>
9458
9459 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9460 call common_val_print.
9461 (ada_val_print_1): Update.
9462 (ada_value_print_1): New function.
9463 (ada_value_print_inner): Rewrite.
9464
9465 2020-03-13 Tom Tromey <tom@tromey.com>
9466
9467 * cp-valprint.c (cp_print_value_fields): Update.
9468 (cp_print_value): New function.
9469
9470 2020-03-13 Tom Tromey <tom@tromey.com>
9471
9472 * m2-valprint.c (m2_value_print_inner): Use
9473 cp_print_value_fields.
9474 * cp-valprint.c (cp_print_value_fields): New function.
9475 * c-valprint.c (c_value_print_struct): New function.
9476 (c_value_print_inner): Use c_value_print_struct.
9477 * c-lang.h (cp_print_value_fields): Declare.
9478
9479 2020-03-13 Tom Tromey <tom@tromey.com>
9480
9481 * c-valprint.c (c_value_print_array): New function.
9482 (c_value_print_inner): Use it.
9483
9484 2020-03-13 Tom Tromey <tom@tromey.com>
9485
9486 * c-valprint.c (c_value_print_memberptr): 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_int): 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_ptr): 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_inner): Rewrite.
9502
9503 2020-03-13 Tom Tromey <tom@tromey.com>
9504
9505 * valprint.c (generic_value_print_complex): New function.
9506 (generic_value_print): Use it.
9507
9508 2020-03-13 Tom Tromey <tom@tromey.com>
9509
9510 * valprint.c (generic_val_print_float): Don't call
9511 val_print_scalar_formatted.
9512 (generic_val_print, generic_value_print): Update.
9513
9514 2020-03-13 Tom Tromey <tom@tromey.com>
9515
9516 * valprint.c (generic_value_print_char): New function
9517 (generic_value_print): Use it.
9518
9519 2020-03-13 Tom Tromey <tom@tromey.com>
9520
9521 * valprint.c (generic_value_print_int): 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_bool): New function.
9527 (generic_value_print): Use it.
9528
9529 2020-03-13 Tom Tromey <tom@tromey.com>
9530
9531 * valprint.c (generic_val_print_func): Simplify.
9532 (generic_val_print, generic_value_print): Update.
9533
9534 2020-03-13 Tom Tromey <tom@tromey.com>
9535
9536 * valprint.c (generic_val_print_flags): Remove.
9537 (generic_val_print, generic_value_print): Update.
9538 (val_print_type_code_flags): Add original_value parameter.
9539
9540 2020-03-13 Tom Tromey <tom@tromey.com>
9541
9542 * valprint.c (generic_val_print): Update.
9543 (generic_value_print): Update.
9544 * valprint.c (generic_val_print_enum): Don't call
9545 val_print_scalar_formatted.
9546
9547 2020-03-13 Tom Tromey <tom@tromey.com>
9548
9549 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9550 * valprint.c (generic_value_print_ptr): New function.
9551
9552 2020-03-13 Tom Tromey <tom@tromey.com>
9553
9554 * valprint.c (generic_value_print): Rewrite.
9555
9556 2020-03-13 Tom Tromey <tom@tromey.com>
9557
9558 * p-valprint.c (pascal_object_print_value_fields)
9559 (pascal_object_print_value): New functions.
9560
9561 2020-03-13 Tom Tromey <tom@tromey.com>
9562
9563 * p-valprint.c (pascal_value_print_inner): Rewrite.
9564
9565 2020-03-13 Tom Tromey <tom@tromey.com>
9566
9567 * f-valprint.c (f_value_print_innner): Rewrite.
9568
9569 2020-03-13 Tom Tromey <tom@tromey.com>
9570
9571 * m2-valprint.c (m2_print_unbounded_array): New overload.
9572 (m2_print_unbounded_array): Update.
9573 (m2_print_array_contents): Take a struct value.
9574 (m2_value_print_inner): Rewrite.
9575
9576 2020-03-13 Tom Tromey <tom@tromey.com>
9577
9578 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9579 (d_value_print_inner): New function.
9580 * d-lang.h (d_value_print_inner): Declare.
9581 * d-lang.c (d_language_defn): Use d_value_print_inner.
9582
9583 2020-03-13 Tom Tromey <tom@tromey.com>
9584
9585 * go-valprint.c (go_value_print_inner): New function.
9586 * go-lang.h (go_value_print_inner): Declare.
9587 * go-lang.c (go_language_defn): Use go_value_print_inner.
9588
9589 2020-03-13 Tom Tromey <tom@tromey.com>
9590
9591 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9592 API.
9593 (rust_val_print): Rewrite.
9594 (rust_value_print_inner): New function, from rust_val_print.
9595 (rust_language_defn): Use rust_value_print_inner.
9596
9597 2020-03-13 Tom Tromey <tom@tromey.com>
9598
9599 * ada-valprint.c (ada_value_print_inner): New function.
9600 * ada-lang.h (ada_value_print_inner): Declare.
9601 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9602
9603 2020-03-13 Tom Tromey <tom@tromey.com>
9604
9605 * f-valprint.c (f_value_print_innner): New function.
9606 * f-lang.h (f_value_print_innner): Declare.
9607 * f-lang.c (f_language_defn): Use f_value_print_innner.
9608
9609 2020-03-13 Tom Tromey <tom@tromey.com>
9610
9611 * p-valprint.c (pascal_value_print_inner): New function.
9612 * p-lang.h (pascal_value_print_inner): Declare.
9613 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9614
9615 2020-03-13 Tom Tromey <tom@tromey.com>
9616
9617 * m2-valprint.c (m2_value_print_inner): New function.
9618 * m2-lang.h (m2_value_print_inner): Declare.
9619 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9620
9621 2020-03-13 Tom Tromey <tom@tromey.com>
9622
9623 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9624 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9625 * c-valprint.c (c_value_print_inner): New function.
9626 * c-lang.h (c_value_print_inner): Declare.
9627 * c-lang.c (c_language_defn, cplus_language_defn)
9628 (asm_language_defn, minimal_language_defn): Use
9629 c_value_print_inner.
9630
9631 2020-03-13 Tom Tromey <tom@tromey.com>
9632
9633 * p-valprint.c (pascal_object_print_value_fields): Now static.
9634 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9635
9636 2020-03-13 Tom Tromey <tom@tromey.com>
9637
9638 * c-valprint.c (c_val_print_array): Simplify.
9639
9640 2020-03-13 Tom Tromey <tom@tromey.com>
9641
9642 * valprint.c (value_print_array_elements): New function.
9643 * valprint.h (value_print_array_elements): Declare.
9644
9645 2020-03-13 Tom Tromey <tom@tromey.com>
9646
9647 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9648 * mips-tdep.c (mips_print_register): Use
9649 value_print_scalar_formatted.
9650
9651 2020-03-13 Tom Tromey <tom@tromey.com>
9652
9653 * valprint.h (value_print_scalar_formatted): Declare.
9654 * valprint.c (value_print_scalar_formatted): New function.
9655
9656 2020-03-13 Tom Tromey <tom@tromey.com>
9657
9658 * valprint.h (generic_value_print): Declare.
9659 * valprint.c (generic_value_print): New function.
9660
9661 2020-03-13 Tom Tromey <tom@tromey.com>
9662
9663 * valprint.c (do_val_print): Call la_value_print_inner, if
9664 available.
9665 * rust-lang.c (rust_language_defn): Update.
9666 * p-lang.c (pascal_language_defn): Update.
9667 * opencl-lang.c (opencl_language_defn): Update.
9668 * objc-lang.c (objc_language_defn): Update.
9669 * m2-lang.c (m2_language_defn): Update.
9670 * language.h (struct language_defn) <la_value_print_inner>: New
9671 member.
9672 * language.c (unknown_language_defn, auto_language_defn): Update.
9673 * go-lang.c (go_language_defn): Update.
9674 * f-lang.c (f_language_defn): Update.
9675 * d-lang.c (d_language_defn): Update.
9676 * c-lang.c (c_language_defn, cplus_language_defn)
9677 (asm_language_defn, minimal_language_defn): Update.
9678 * ada-lang.c (ada_language_defn): Update.
9679
9680 2020-03-13 Tom Tromey <tom@tromey.com>
9681
9682 * c-valprint.c (c_value_print): Use common_val_print.
9683
9684 2020-03-13 Tom Tromey <tom@tromey.com>
9685
9686 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9687
9688 2020-03-13 Tom Tromey <tom@tromey.com>
9689
9690 * f-valprint.c (f77_print_array_1, f_val_print): Use
9691 common_val_print.
9692
9693 2020-03-13 Tom Tromey <tom@tromey.com>
9694
9695 * riscv-tdep.c (riscv_print_one_register_info): Use
9696 common_val_print.
9697
9698 2020-03-13 Tom Tromey <tom@tromey.com>
9699
9700 * mi/mi-main.c (output_register): Use common_val_print.
9701
9702 2020-03-13 Tom Tromey <tom@tromey.com>
9703
9704 * infcmd.c (default_print_one_register_info): Use
9705 common_val_print.
9706
9707 2020-03-13 Tom Tromey <tom@tromey.com>
9708
9709 * valprint.h (common_val_print_checked): Declare.
9710 * valprint.c (common_val_print_checked): New function.
9711 * stack.c (print_frame_arg): Use common_val_print_checked.
9712
9713 2020-03-13 Tom Tromey <tom@tromey.com>
9714
9715 * valprint.c (do_val_print): New function, from val_print.
9716 (val_print): Use do_val_print.
9717 (common_val_print): Use do_val_print.
9718
9719 2020-03-13 Tom Tromey <tom@tromey.com>
9720
9721 * valprint.c (value_print): Use scoped_value_mark.
9722
9723 2020-03-13 Tom de Vries <tdevries@suse.de>
9724
9725 PR symtab/25646
9726 * psymtab.c (partial_symtab::partial_symtab): Don't set
9727 globals_offset and statics_offset. Push element onto
9728 current_global_psymbols and current_static_psymbols stacks.
9729 (concat): New function.
9730 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9731 element from current_global_psymbols and current_static_psymbols
9732 stacks. Concat popped elements to global_psymbols and
9733 static_symbols.
9734 (add_psymbol_to_list): Use current_global_psymbols and
9735 current_static_psymbols stacks.
9736 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9737 current_static_psymbols fields.
9738
9739 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9740
9741 * corelow.c (sniff_core_bfd): Remove.
9742 (class core_target) <m_core_vec>: Remove.
9743 (core_target::core_target): Update.
9744 (core_file_fns): Remove.
9745 (deprecated_add_core_fns): Remove.
9746 (default_core_sniffer): Remove.
9747 (sniff_core_bfd): Remove.
9748 (default_check_format): Remove.
9749 (gdb_check_format): Remove.
9750 (core_target_open): Update.
9751 (core_target::get_core_register_section): Update.
9752 (get_core_registers_cb): Update.
9753 (core_target::fetch_registers): Update.
9754 * gdbcore.h (struct core_fns): Remove.
9755 (deprecated_add_core_fns): Remove.
9756 (default_core_sniffer): Remove.
9757 (default_check_format): Remove.
9758
9759 2020-03-12 Tom Tromey <tom@tromey.com>
9760
9761 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9762 CORE_ADDR.
9763 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9764
9765 2020-03-12 Tom Tromey <tom@tromey.com>
9766
9767 * remote.c (remote_target::download_tracepoint)
9768 (remote_target::enable_tracepoint)
9769 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9770 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9771 sprintf_vma.
9772
9773 2020-03-12 Tom Tromey <tom@tromey.com>
9774
9775 * symfile-mem.c: Update CORE_ADDR size assert.
9776
9777 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9778
9779 * selftest.m4: Move to gdbsupport/.
9780 * acinclude.m4: Update path to selftest.m4.
9781
9782 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9785 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9786 gdbarch-selfselftests.c and selftest-arch.c.
9787 (SUBDIR_UNITTESTS_OBS): Rename to...
9788 (SELFTESTS_OBS): ... this.
9789 (COMMON_SFILES): Remove disasm-selftests.c and
9790 gdbarch-selftests.c.
9791 * configure.ac: Don't add selftest-arch.{c,o} to
9792 CONFIG_{SRCS,OBS}.
9793 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9794 preprocessor conditions.
9795
9796 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9797
9798 * configure.ac: Don't source bfd/development.sh.
9799 * selftest.m4: Modify comment.
9800 * configure: Re-generate.
9801
9802 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9805 not "true" or "false".
9806 * configure: Re-generate.
9807
9808 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9809
9810 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9811 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9812 renamed to arm_nbsd_supply_gregset.
9813 (fetch_register): Update to call arm_nbsd_supply_gregset.
9814 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9815 (arm_netbsd_nat_target::fetch_registers): Update.
9816 (fetch_elfcore_registers): Removed.
9817 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9818 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9819 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9820 not require NetBSD system headers.
9821 (arm_nbsd_regset): New struct.
9822 (arm_nbsd_iterate_over_regset_sections): New function.
9823 (arm_netbsd_init_abi_common): Updated to call
9824 set_gdbarch_iterate_over_regset_sections.
9825 * arm-nbsd-tdep.h: New file.
9826
9827 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9828
9829 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9830 recursion.
9831
9832 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9833
9834 * configure: Re-generate.
9835
9836 2020-03-11 Tom Tromey <tromey@adacore.com>
9837
9838 * ada-typeprint.c (print_choices): Fix comment.
9839
9840 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9841
9842 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9843 previous item in the list, when the list has no items.
9844
9845 2020-03-11 Tom de Vries <tdevries@suse.de>
9846
9847 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9848 PROP_LOCLIST handling code.
9849
9850 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9851
9852 * buildsym-legacy.c (record_line): Pass extra parameter to
9853 record_line.
9854 * buildsym.c (buildsym_compunit::record_line): Take an extra
9855 parameter, reduce duplication in the line table, and record the
9856 is_stmt flag in the line table.
9857 * buildsym.h (buildsym_compunit::record_line): Add extra
9858 parameter.
9859 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9860 non-statement lines.
9861 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9862 this to the symtab builder.
9863 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9864 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9865 through to dwarf_record_line_1.
9866 * infrun.c (process_event_stop_test): When stepping, don't stop at
9867 a non-statement instruction, and only refresh the step info when
9868 we land in the middle of a line's range. Also add an extra
9869 comment.
9870 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9871 field.
9872 * record-btrace.c (btrace_find_line_range): Only record lines
9873 marked as is-statement.
9874 * stack.c (frame_show_address): Show the frame address if we are
9875 in a non-statement sal.
9876 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9877 (maintenance_print_one_line_table): Print a header for the is_stmt
9878 column, and include is_stmt information in the output.
9879 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9880 preference to non-statements.
9881 (find_pcs_for_symtab_line): Prefer is-statement entries.
9882 (find_line_common): Likewise.
9883 * symtab.h (struct linetable_entry): Add is_stmt field.
9884 (struct symtab_and_line): Likewise.
9885 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9886 arranging the line table.
9887
9888 2020-03-07 Tom de Vries <tdevries@suse.de>
9889
9890 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9891 DIE.
9892
9893 2020-03-07 Tom Tromey <tom@tromey.com>
9894
9895 * valops.c (value_literal_complex): Remove obsolete comment.
9896 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9897 comment.
9898
9899 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9900
9901 * infrun.h: Forward-declare thread_info.
9902 (set_step_info): Add thread_info parameter, add doc.
9903 * infrun.c (set_step_info): Add thread_info parameter, move doc
9904 to header.
9905 * infrun.c (process_event_stop_test): Pass thread to
9906 set_step_info call.
9907 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9908 set_step_info.
9909 (prepare_one_step): Add thread_info parameter, pass it to
9910 set_step_frame and prepare_one_step (recursive) call.
9911 (step_1): Pass thread to prepare_one_step call.
9912 (step_command_fsm::should_stop): Pass thread to
9913 prepare_one_step.
9914 (until_next_fsm): Pass thread to set_step_frame call.
9915 (finish_command): Pass thread to set_step_info call.
9916
9917 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9918
9919 * windows-tdep.c (windows_solib_create_inferior_hook):
9920 Check if inferior is running.
9921
9922 2020-03-06 Tom de Vries <tdevries@suse.de>
9923
9924 * NEWS: Fix "the the".
9925 * ctfread.c: Same.
9926
9927 2020-03-06 Tom de Vries <tdevries@suse.de>
9928
9929 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9930
9931 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9932
9933 * .dir-locals.el: Add a comment referencing the other copies of
9934 this file.
9935
9936 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9937
9938 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9939 psargs.
9940
9941 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9942
9943 * .gitattributes: New file.
9944
9945 2020-03-04 Tom Tromey <tom@tromey.com>
9946
9947 * symmisc.c (print_symbol_bcache_statistics)
9948 (print_objfile_statistics): Update.
9949 * symfile.c (allocate_symtab): Use intern.
9950 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9951 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9952 macro_cache>: Remove.
9953 <string_cache>: New member.
9954 (struct objfile) <intern>: New methods.
9955 * elfread.c (elf_symtab_read): Use intern.
9956 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9957 (dwarf2_compute_name, dwarf2_physname)
9958 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9959 names.
9960 (guess_partial_die_structure_name): Update.
9961 (partial_die_info::fixup): Intern name.
9962 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9963 name.
9964 (dwarf2_name): Intern name. Update.
9965 * buildsym.c (buildsym_compunit::get_macro_table): Use
9966 string_cache.
9967
9968 2020-03-04 Tom Tromey <tom@tromey.com>
9969
9970 * jit.c (bfd_open_from_target_memory): Make "target" const.
9971 * corefile.c (gnutarget): Now const.
9972 * gdbcore.h (gnutarget): Now const.
9973
9974 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9975
9976 * NEWS: Mention support for WOW64 processes.
9977 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9978 (amd64_windows_segment_register_p): Remove static.
9979 (_initialize_amd64_windows_nat): Update.
9980 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9981 * i386-windows-nat.c (context_offset): Update.
9982 (i386_mappings): Rename and remove static.
9983 (i386_windows_segment_register_p): Remove static.
9984 (_initialize_i386_windows_nat): Update.
9985 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9986 (STATUS_WX86_SINGLE_STEP): New macro.
9987 (EnumProcessModulesEx): New macro.
9988 (Wow64SuspendThread): New macro.
9989 (Wow64GetThreadContext): New macro.
9990 (Wow64SetThreadContext): New macro.
9991 (Wow64GetThreadSelectorEntry): New macro.
9992 (windows_set_context_register_offsets): Add static.
9993 (windows_set_segment_register_p): Likewise.
9994 (windows_add_thread): Adapt for WOW64 processes.
9995 (windows_fetch_one_register): Likewise.
9996 (windows_nat_target::fetch_registers): Likewise.
9997 (windows_store_one_register): Likewise.
9998 (display_selector): Likewise.
9999 (display_selectors): Likewise.
10000 (handle_exception): Likewise.
10001 (windows_continue): Likewise.
10002 (windows_nat_target::resume): Likewise.
10003 (windows_add_all_dlls): Likewise.
10004 (do_initial_windows_stuff): Likewise.
10005 (windows_nat_target::attach): Likewise.
10006 (windows_get_exec_module_filename): Likewise.
10007 (windows_nat_target::create_inferior): Likewise.
10008 (windows_xfer_siginfo): Likewise.
10009 (_initialize_loadable): Initialize Wow64SuspendThread,
10010 Wow64GetThreadContext, Wow64SetThreadContext,
10011 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10012 * windows-nat.h (windows_set_context_register_offsets):
10013 Remove declaration.
10014 (windows_set_segment_register_p): Likewise.
10015 (i386_windows_segment_register_p): Add declaration.
10016 (amd64_windows_segment_register_p): Likewise.
10017
10018 2020-03-04 Luis Machado <luis.machado@linaro.org>
10019
10020 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10021 in "info registers" for AArch64/ARM.
10022
10023 The change caused "info registers" to not print GPR's.
10024
10025 gdb/ChangeLog:
10026
10027 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10028
10029 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10030 when reg->group is empty and reggroup is not.
10031
10032 2020-03-03 Tom Tromey <tromey@adacore.com>
10033
10034 * dwarf2/frame.c (struct dwarf2_frame_cache)
10035 <checked_tailcall_bottom, entry_cfa_sp_offset,
10036 entry_cfa_sp_offset_p>: Remove members.
10037 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10038 (dwarf2_frame_prev_register): Don't call
10039 dwarf2_tailcall_sniffer_first.
10040 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10041 * frame-unwind.c (add_unwinder): New fuction.
10042 (frame_unwind_init): Use it. Add tailcall unwinder.
10043
10044 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10045 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10046
10047 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10048 value should be printed as true.
10049
10050 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10051
10052 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10053 (windows_init_abi): Set and use windows_so_ops.
10054
10055 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10056
10057 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10058 when verifying if dealing with a convenience variable.
10059
10060 2020-03-03 Luis Machado <luis.machado@linaro.org>
10061
10062 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10063
10064 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10065
10066 * infrun.c (gdbarch_supports_displaced_stepping): New.
10067 (use_displaced_stepping): Break up conditions in smaller pieces.
10068 Use gdbarch_supports_displaced_stepping.
10069 (displaced_step_prepare_throw): Use
10070 gdbarch_supports_displaced_stepping.
10071
10072 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10073
10074 * NEWS: Mention new behaviour of the history filename.
10075 * top.c (write_history_p): Add comment.
10076 (show_write_history_p): Add header comment, give a different
10077 message when history writing is on, but the history filename is
10078 empty.
10079 (history_filename): Add comment.
10080 (history_filename_empty): New function.
10081 (show_history_filename): Add header comment, give a different
10082 message when the filename is empty.
10083 (init_history): Compare history_filename against nullptr, and only
10084 read history if the filename is not empty.
10085 (set_history_filename): Add header comment, and only make
10086 non-empty filenames absolute.
10087 (init_main): Make the filename argument to 'set history filename'
10088 optional.
10089
10090 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10091
10092 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10093 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10094 (fetch_fp_register): Update.
10095 (fetch_fp_regs): Update.
10096 (store_fp_register): Update.
10097 (store_fp_regs): Update.
10098 (arm_netbsd_nat_target::read_description): New function.
10099 (fetch_elfcore_registers): Update.
10100
10101 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10102
10103 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10104 general_thread if the stop reply is missing a thread-id.
10105 (remote_target::process_stop_reply): Use the first non-exited
10106 thread if the target didn't pass a thread-id.
10107 * infrun.c (do_target_wait): Move call to
10108 switch_to_inferior_no_thread to ....
10109 (do_target_wait_1): ... here.
10110
10111 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10112
10113 * debuginfod-support.c: Include defs.h first.
10114
10115 2020-02-28 Tom de Vries <tdevries@suse.de>
10116
10117 * symfile.c (set_initial_language): Use default language for lookup.
10118
10119 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10120
10121 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10122 reader variable, pass `this` to read_cutu_die_from_dwo.
10123
10124 2020-02-27 Aaron Merey <amerey@redhat.com>
10125
10126 * source.c (open_source_file): Check for nullptr when computing
10127 srcpath.
10128
10129 2020-02-27 Tom Tromey <tromey@adacore.com>
10130
10131 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10132 member.
10133 (dwarf2_add_field): Don't update nfields.
10134 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10135
10136 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10137
10138 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10139 abs.
10140
10141 2020-02-26 Tom Tromey <tom@tromey.com>
10142
10143 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10144 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10145 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10146 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10147 per_cu_data.
10148
10149 2020-02-26 Tom Tromey <tom@tromey.com>
10150
10151 * dwarf2/index-write.c (psym_index_map): Change type.
10152 (add_address_entry_worker, write_one_signatured_type)
10153 (recursively_count_psymbols, recursively_write_psymbols)
10154 (class debug_names, psyms_seen_size, write_gdbindex)
10155 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10156
10157 2020-02-26 Aaron Merey <amerey@redhat.com>
10158
10159 * Makefile.in: Handle optional debuginfod support.
10160 * NEWS: Update.
10161 * README: Add --with-debuginfod summary.
10162 * config.in: Regenerate.
10163 * configure: Regenerate.
10164 * configure.ac: Handle optional debuginfod support.
10165 * debuginfod-support.c: debuginfod helper functions.
10166 * debuginfod-support.h: Ditto.
10167 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10168 summary.
10169 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10170 when a dwz file cannot be found.
10171 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10172 debuginfo file cannot be found.
10173 * source.c (open_source_file): Query debuginfod servers when a
10174 source file cannot be found.
10175 * top.c (print_gdb_configuration): Include
10176 --{with,without}-debuginfod in the output.
10177
10178 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10179
10180 * thread.c (thr_try_catch_cmd): Print thread name.
10181
10182 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10183
10184 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10185 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10186 dwarf2_fetch_die_type_sect_off): Move to...
10187 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10188 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10189 dwarf2_fetch_die_type_sect_off): ... here.
10190 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10191 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10192 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10193
10194 2020-02-26 Tom de Vries <tdevries@suse.de>
10195
10196 PR gdb/25603
10197 * symfile.c (set_initial_language): Exit-early if
10198 language_mode == language_mode_manual.
10199
10200 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10201
10202 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10203 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10204 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10205
10206 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10207
10208 * gdbtypes.c (create_array_type_with_stride): Handle negative
10209 array strides.
10210 * valarith.c (value_subscripted_rvalue): Likewise.
10211
10212 2020-02-25 Luis Machado <luis.machado@linaro.org>
10213
10214 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10215
10216 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10217
10218 * loc.h (dwarf2_get_die_type): Move to...
10219 * read.h (dwarf2_get_die_type): ... here.
10220 * read.c (dwarf2_get_die_type): Move doc to header.
10221
10222 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10223
10224 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10225 'gnulib/Makefile.in' to the list.
10226
10227 2020-02-24 Tom Tromey <tom@tromey.com>
10228
10229 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10230 Remove.
10231 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10232 XOBNEWVEC.
10233
10234 2020-02-24 Tom Tromey <tom@tromey.com>
10235
10236 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10237 New method.
10238 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10239 (dw2_do_instantiate_symtab, dw2_get_file_names)
10240 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10241
10242 2020-02-24 Tom Tromey <tom@tromey.com>
10243
10244 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10245 make_scoped_restore.
10246 (dwarf2_psymtab::read_symtab): Don't clear
10247 reading_partial_symbols.
10248
10249 2020-02-24 Tom de Vries <tdevries@suse.de>
10250
10251 PR gdb/25592
10252 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10253
10254 2020-02-24 Tom de Vries <tdevries@suse.de>
10255
10256 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10257 commands layout next/prev/regs.
10258
10259 2020-02-22 Tom Tromey <tom@tromey.com>
10260
10261 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10262 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10263
10264 2020-02-22 Tom Tromey <tom@tromey.com>
10265
10266 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10267
10268 2020-02-22 Tom Tromey <tom@tromey.com>
10269
10270 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10271 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10272 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10273 * tui/tui.c (_initialize_tui): Add usage text.
10274
10275 2020-02-22 Tom Tromey <tom@tromey.com>
10276
10277 * tui/tui-win.c (tui_set_focus_command)
10278 (tui_set_win_height_command): Use error_no_arg.
10279 (_initialize_tui_win): Update help text.
10280 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10281
10282 2020-02-22 Tom Tromey <tom@tromey.com>
10283
10284 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10285 * tui/tui-disasm.h (struct tui_disasm_window)
10286 <display_start_addr>: Declare.
10287 * tui/tui-source.h (struct tui_source_window)
10288 <display_start_addr>: Declare.
10289 * tui/tui-winsource.h (struct tui_source_window_base)
10290 <show_source_line, display_start_addr>: New methods.
10291 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10292 Rename and move to protected section.
10293 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10294 (tui_source_window_base::do_erase_source_content): Update.
10295 (tui_source_window_base::show_source_line): Now a method.
10296 (tui_source_window_base::show_source_content)
10297 (tui_source_window_base::tui_source_window_base)
10298 (tui_source_window_base::rerender)
10299 (tui_source_window_base::refill)
10300 (tui_source_window_base::do_scroll_horizontal)
10301 (tui_source_window_base::set_is_exec_point_at)
10302 (tui_source_window_base::update_breakpoint_info)
10303 (tui_source_window_base::update_exec_info): Update.
10304 * tui/tui-source.c (tui_source_window::set_contents)
10305 (tui_source_window::showing_source_p)
10306 (tui_source_window::do_scroll_vertical)
10307 (tui_source_window::location_matches_p)
10308 (tui_source_window::line_is_displayed): Update.
10309 (tui_source_window::display_start_addr): New method.
10310 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10311 (tui_disasm_window::do_scroll_vertical)
10312 (tui_disasm_window::location_matches_p): Update.
10313 (tui_disasm_window::display_start_addr): New method.
10314
10315 2020-02-22 Tom Tromey <tom@tromey.com>
10316
10317 * NEWS: Add entry for gdb.register_window_type.
10318 * tui/tui-layout.h (window_factory): New typedef.
10319 (tui_register_window): Declare.
10320 * tui/tui-layout.c (saved_tui_windows): New global.
10321 (tui_apply_current_layout): Use it.
10322 (tui_register_window): New function.
10323 * python/python.c (do_start_initialization): Call
10324 gdbpy_initialize_tui.
10325 (python_GdbMethods): Add "register_window_type" function.
10326 * python/python-internal.h (gdbpy_register_tui_window)
10327 (gdbpy_initialize_tui): Declare.
10328 * python/py-tui.c: New file.
10329 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10330
10331 2020-02-22 Tom Tromey <tom@tromey.com>
10332
10333 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10334
10335 2020-02-22 Tom Tromey <tom@tromey.com>
10336
10337 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10338 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10339 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10340 (tui_set_win_focus_to): Move from tui-win.c.
10341
10342 2020-02-22 Tom Tromey <tom@tromey.com>
10343
10344 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10345 functions.
10346 (known_window_types): New global.
10347 (tui_get_window_by_name): Reimplement.
10348 (initialize_known_windows): New function.
10349 (validate_window_name): Rewrite.
10350 (_initialize_tui_layout): Call initialize_known_windows.
10351
10352 2020-02-22 Tom Tromey <tom@tromey.com>
10353
10354 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10355 Remove constants.
10356 * tui/tui-winsource.h (struct tui_source_window_base)
10357 <tui_source_window_base>: Remove parameter.
10358 * tui/tui-winsource.c
10359 (tui_source_window_base::tui_source_window_base): Remove
10360 parameter.
10361 (tui_source_window_base::refill): Update.
10362 * tui/tui-stack.h (struct tui_locator_window)
10363 <tui_locator_window>: Update.
10364 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10365 Default the constructor.
10366 * tui/tui-regs.h (struct tui_data_item_window)
10367 <tui_data_item_window>: Default the constructor.
10368 (struct tui_data_window) <tui_data_window>: Likewise.
10369 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10370 Default the constructor.
10371 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10372 Default the constructor.
10373 <type>: Remove.
10374 (struct tui_win_info) <tui_win_info>: Default the constructor.
10375 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10376 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10377 Default the constructor.
10378
10379 2020-02-22 Tom Tromey <tom@tromey.com>
10380
10381 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10382 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10383 * tui/tui-win.c (tui_resize_all): Don't call
10384 tui_delete_invisible_windows.
10385 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10386 done.
10387 (tui_set_layout): Update.
10388 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10389 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10390 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10391
10392 2020-02-22 Tom Tromey <tom@tromey.com>
10393
10394 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10395 correctly.
10396
10397 2020-02-22 Tom Tromey <tom@tromey.com>
10398
10399 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10400
10401 2020-02-22 Tom Tromey <tom@tromey.com>
10402
10403 * tui/tui-winsource.h (struct tui_source_window_iterator)
10404 <inner_iterator>: New etytypedef.
10405 <tui_source_window_iterator>: Take "end" parameter.
10406 <tui_source_window_iterator>: Take iterator.
10407 <operator*, advance>: Update.
10408 <m_iter>: Change type.
10409 <m_end>: New field.
10410 (struct tui_source_windows) <begin, end>: Update.
10411 * tui/tui-layout.c (tui_windows): New global.
10412 (tui_apply_current_layout): Clear tui_windows.
10413 (tui_layout_window::apply): Update tui_windows.
10414 * tui/tui-data.h (tui_windows): Declare.
10415 (all_tui_windows): Now inline function.
10416 (class tui_window_iterator, struct all_tui_windows): Remove.
10417
10418 2020-02-22 Tom Tromey <tom@tromey.com>
10419
10420 PR tui/17850:
10421 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10422 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10423 "height" argument.
10424 (class tui_layout_window) <get_sizes>: Likewise.
10425 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10426 argument.
10427 <get_sizes>: Add "height" argument.
10428 <m_vertical>: New field.
10429 * tui/tui-layout.c (tui_layout_split::clone): Update.
10430 (tui_layout_split::get_sizes): Add "height" argument.
10431 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10432 (tui_new_layout_command): Parse "-horizontal".
10433 (_initialize_tui_layout): Update help string.
10434 (tui_layout_split::specification): Add "-horizontal" when needed.
10435 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10436 argument.
10437 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10438 New methods.
10439
10440 2020-02-22 Tom Tromey <tom@tromey.com>
10441
10442 * tui/tui-layout.h (enum tui_adjust_result): New.
10443 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10444 (class tui_layout_window) <adjust_size>: Return
10445 tui_adjust_result. Rewrite.
10446 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10447 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10448
10449 2020-02-22 Tom Tromey <tom@tromey.com>
10450
10451 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10452 parameter and return types.
10453 (class tui_layout_base) <specification>: Add "depth".
10454 (class tui_layout_window) <specification>: Add "depth".
10455 (class tui_layout_split) <specification>: Add "depth".
10456 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10457 and return types.
10458 (tui_new_layout_command): Parse sub-layouts.
10459 (_initialize_tui_layout): Update help string.
10460 (tui_layout_window::specification): Add "depth".
10461 (add_layout_command): Update.
10462
10463 2020-02-22 Tom Tromey <tom@tromey.com>
10464
10465 * NEWS: Add "tui new-layout" item.
10466 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10467 Add new-layout command to help text.
10468 (validate_window_name): New function.
10469 (tui_new_layout_command): New function.
10470 (_initialize_tui_layout): Register "new-layout".
10471 (tui_layout_window::specification): New method.
10472 (tui_layout_window::specification): New method.
10473 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10474 method.
10475 (class tui_layout_window) <specification>: New method.
10476 (class tui_layout_split) <specification>: New method.
10477
10478 2020-02-22 Tom Tromey <tom@tromey.com>
10479
10480 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10481 * tui/tui-win.c (window_name_completer): Update comment.
10482 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10483 Declare method.
10484 (class tui_layout_window) <replace_window>: Likewise.
10485 (class tui_layout_split) <replace_window>: Likewise.
10486 (tui_set_layout): Don't declare.
10487 (tui_set_initial_layout): Declare function.
10488 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10489 (asm_regs_layout): New globals.
10490 (tui_current_layout, show_layout): Remove.
10491 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10492 (find_layout, tui_apply_layout): New function.
10493 (layout_completer): Remove.
10494 (tui_next_layout): Reimplement.
10495 (tui_next_layout_command): New function.
10496 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10497 (tui_regs_layout): Reimplement.
10498 (tui_regs_layout_command): New function.
10499 (extract_display_start_addr): Rewrite.
10500 (next_layout, prev_layout): Remove.
10501 (tui_layout_window::replace_window): New method.
10502 (tui_layout_split::replace_window): New method.
10503 (destroy_layout): New function.
10504 (layout_list): New global.
10505 (add_layout_command): New function.
10506 (initialize_layouts): Update.
10507 (tui_layout_command): New function.
10508 (_initialize_tui_layout): Install "layout" commands.
10509 * tui/tui-data.h (enum tui_layout_type): Remove.
10510 (tui_current_layout): Don't declare.
10511
10512 2020-02-22 Tom Tromey <tom@tromey.com>
10513
10514 * tui/tui-regs.c (tui_reg_layout): Remove.
10515 (tui_reg_command): Use tui_regs_layout.
10516 * tui/tui-layout.h (tui_reg_command): Declare.
10517 * tui/tui-layout.c (tui_reg_command): New function.
10518
10519 2020-02-22 Tom Tromey <tom@tromey.com>
10520
10521 * tui/tui.c (tui_rl_delete_other_windows): Call
10522 tui_remove_some_windows.
10523 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10524 Declare method.
10525 (class tui_layout_window) <remove_windows>: New method.
10526 (class tui_layout_split) <remove_windows>: Declare.
10527 (tui_remove_some_windows): Declare.
10528 * tui/tui-layout.c (tui_remove_some_windows): New function.
10529 (tui_layout_split::remove_windows): New method.
10530
10531 2020-02-22 Tom Tromey <tom@tromey.com>
10532
10533 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10534 * tui/tui-layout.h (tui_next_layout): Declare.
10535 * tui/tui-layout.c (tui_next_layout): New function.
10536
10537 2020-02-22 Tom Tromey <tom@tromey.com>
10538
10539 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10540 correct coordinates.
10541
10542 2020-02-22 Tom Tromey <tom@tromey.com>
10543
10544 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10545 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10546 DATA_WIN case.
10547
10548 2020-02-22 Tom Tromey <tom@tromey.com>
10549
10550 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10551 TUI_DISASM_WIN, not tui_win_list.
10552
10553 2020-02-22 Tom Tromey <tom@tromey.com>
10554
10555 * valprint.c (generic_val_print_enum_1)
10556 (val_print_type_code_flags): Style member names.
10557 * rust-lang.c (val_print_struct, rust_print_enum)
10558 (rust_print_struct_def, rust_internal_print_type): Style member
10559 names.
10560 * p-valprint.c (pascal_object_print_value_fields): Style member
10561 names. Only call fprintf_symbol_filtered for static members.
10562 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10563 * f-valprint.c (f_val_print): Style member names.
10564 * f-typeprint.c (f_type_print_base): Style member names.
10565 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10566 call fprintf_symbol_filtered for static members.
10567 (cp_print_class_member): Style member names.
10568 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10569 member names.
10570 * ada-valprint.c (ada_print_scalar): Style enum names.
10571 (ada_val_print_enum): Likewise.
10572 * ada-typeprint.c (print_enum_type): Style enum names.
10573
10574 2020-02-21 Tom Tromey <tom@tromey.com>
10575
10576 * psympriv.h (struct partial_symtab): Update comment.
10577
10578 2020-02-21 Tom Tromey <tromey@adacore.com>
10579
10580 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10581 type is CORE_ADDR.
10582
10583 2020-02-21 Tom de Vries <tdevries@suse.de>
10584
10585 PR gdb/25534
10586 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10587 if dependencies[i]->user != NULL.
10588
10589 2020-02-21 Ali Tamur <tamur@google.com>
10590
10591 * dwarf2/read.c (dwarf2_name): Add null check.
10592
10593 2020-02-20 Tom Tromey <tom@tromey.com>
10594
10595 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10596 ">=", in binary search.
10597 (dwarf2_find_containing_comp_unit): New overload.
10598 (run_test): New self-test.
10599 (_initialize_dwarf2_read): Register new test.
10600
10601 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10602
10603 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10604 * riscv-tdep.h: Likewise.
10605 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10606 rv32-only CSR.
10607 * features/riscv/64bit-csr.xml: Regenerated.
10608
10609 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10610 Tom Tromey <tom@tromey.com>
10611
10612 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10613 of 'fputc_unfiltered'.
10614 (putchar_unfiltered): Call 'fputc_unfiltered'.
10615 (fputc_unfiltered): Call 'fputs_unfiltered'.
10616
10617 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10618
10619 * config.in: Regenerate.
10620 * configure: Regenerate.
10621 * configure.ac: Add --with-python-libdir option.
10622 * main.c: Use WITH_PYTHON_LIBDIR.
10623
10624 2020-02-19 Tom Tromey <tom@tromey.com>
10625
10626 * symtab.c (general_symbol_info::compute_and_set_names): Use
10627 obstack_strndup. Simplify call to symbol_set_demangled_name.
10628
10629 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10630
10631 * dwarf2/read.c (allocate_signatured_type_table,
10632 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10633 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10634 Remove objfile parameter, update all callers.
10635
10636 2020-02-19 Doug Evans <dje@google.com>
10637
10638 PR rust/25535
10639 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10640 rust_enum_variant calculation.
10641
10642 2020-02-19 Tom Tromey <tromey@adacore.com>
10643
10644 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10645
10646 2020-02-19 Tom Tromey <tromey@adacore.com>
10647
10648 * ada-lang.c (cache_symbol): Use obstack_strdup.
10649
10650 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10651
10652 * configure: Regenerate.
10653
10654 2020-02-19 Tom Tromey <tromey@adacore.com>
10655
10656 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10657 NULL check.
10658
10659 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10660
10661 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10662
10663 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10664
10665 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10666 if GDBSERVER is not defined.
10667 (riscv_tdesc_cache): Likewise, also store const target_desc.
10668 (STATIC_IN_GDB): Define.
10669 (riscv_create_target_description): Update declaration with
10670 STATIC_IN_GDB.
10671 (riscv_lookup_target_description): New function, only define if
10672 GDBSERVER is not defined.
10673 * arch/riscv.h (riscv_create_target_description): Declare only
10674 when GDBSERVER is defined.
10675 (riscv_lookup_target_description): New declaration when GDBSERVER
10676 is not defined.
10677 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10678 (riscv_linux_read_features): ...this, and return
10679 riscv_gdbarch_features instead of target_desc.
10680 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10681 (riscv_linux_read_description): Rename to...
10682 (riscv_linux_read_features): ...this.
10683 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10684 Update to use riscv_gdbarch_features and
10685 riscv_lookup_target_description.
10686 * riscv-tdep.c (riscv_find_default_target_description): Use
10687 riscv_lookup_target_description instead of
10688 riscv_create_target_description.
10689
10690 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10691
10692 * valprint.c (generic_val_print_enum_1): When printing a flag
10693 enum with value 0 and there is no enumerator with value 0, print
10694 just "0" instead of "(unknown: 0x0)".
10695
10696 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10697
10698 * valprint.c (generic_val_print_enum_1): Print unknown part of
10699 flag enum in hex.
10700
10701 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10702
10703 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10704 flag enums to contain duplicate enumerators.
10705 * valprint.c (generic_val_print_enum_1): Update comment.
10706
10707 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10708
10709 * dwarf2/read.c: Include "count-one-bits.h".
10710 (update_enumeration_type_from_children): If an enumerator has
10711 multiple bits set, don't treat the enumeration as a "flag enum".
10712 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10713 of flag enums have 0 or 1 bit set.
10714
10715 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10716
10717 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10718 conversion.
10719 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10720 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10721 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10722 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10723 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10724
10725 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10726
10727 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10728
10729 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10730
10731 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10732 displaced_step_closure_up.
10733 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10734 (struct displaced_step_closure_up):
10735 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10736 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10737 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10738 Likewise.
10739 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10740 * gdbarch.c, gdbarch.h: Re-generate.
10741 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10742 displaced_step_closure_up.
10743 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10744 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10745 * infrun.h (displaced_step_closure_up): New type alias.
10746 (struct displaced_step_inferior_state) <step_closure>: Change
10747 type to displaced_step_closure_up.
10748 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10749 displaced_step_closure_up.
10750 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10751
10752 2020-02-14 Tom Tromey <tom@tromey.com>
10753
10754 * minidebug.c (gnu_debug_key): New global.
10755 (find_separate_debug_file_in_section): Use it.
10756
10757 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10758
10759 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10760 std::unique_ptr.
10761 * gdbarch.c: Re-generate.
10762 * gdbarch.h: Re-generate.
10763 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10764 change.
10765 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10766 type to std::unique_ptr.
10767 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10768 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10769 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10770 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10771 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10772 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10773 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10774 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10775 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10776
10777 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10778
10779 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10780 std::unique_ptr.
10781 (displaced_step_clear): Rename to...
10782 (displaced_step_reset): ... this. Just call displaced->reset ().
10783 (displaced_step_clear_cleanup): Rename to...
10784 (displaced_step_reset_cleanup): ... this.
10785 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10786 (displaced_step_fixup): Likewise.
10787 (resume_1): Likewise.
10788 (handle_inferior_event): Restore child's memory before calling
10789 displaced_step_fixup on the parent.
10790 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10791 to std::unique_ptr.
10792 <step_closure>: Change type to std::unique_ptr.
10793
10794 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10795
10796 * arm-tdep.c: Include count-one-bits.h.
10797 (cleanup_block_store_pc): Use count_one_bits.
10798 (cleanup_block_load_pc): Use count_one_bits.
10799 (arm_copy_block_xfer): Use count_one_bits.
10800 (thumb2_copy_block_xfer): Use count_one_bits.
10801 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10802 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10803 (thumb_get_next_pcs_raw): Use count_one_bits.
10804 (arm_get_next_pcs_raw): Use count_one_bits_l.
10805 * arch/arm.c (bitcount): Remove.
10806 * arch/arm.h (bitcount): Remove.
10807
10808 2020-02-14 Tom Tromey <tromey@adacore.com>
10809
10810 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10811 Update.
10812 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10813 * dwarf2/loc.c (call_site_find_chain_1): Return
10814 unique_xmalloc_ptr.
10815 (call_site_find_chain): Likewise.
10816
10817 2020-02-14 Richard Biener <rguenther@suse.de>
10818
10819 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10820 on expression with division operators.
10821
10822 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10823
10824 * MAINTAINERS (Write After Approval): Adding myself.
10825
10826 2020-02-12 Tom Tromey <tom@tromey.com>
10827
10828 * event-loop.c (event_data, gdb_event, event_handler_func):
10829 Remove.
10830
10831 2020-02-12 Tom Tromey <tom@tromey.com>
10832
10833 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10834 (dwarf2_frame_objfile_data): Add comment.
10835 (find_comp_unit, set_comp_unit): New functions.
10836 (dwarf2_frame_find_fde): Use find_comp_unit.
10837 (dwarf2_build_frame_info): Use set_comp_unit.
10838
10839 2020-02-12 Tom Tromey <tom@tromey.com>
10840
10841 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10842 (comp_unit): Don't initialize objfile.
10843 (execute_cfa_program): Add text_offset parameter.
10844 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10845 (dwarf2_frame_cache): Update.
10846 (dwarf2_build_frame_info): Don't set "objfile" member.
10847
10848 2020-02-12 Tom Tromey <tom@tromey.com>
10849
10850 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10851 (decode_frame_entry): Likewise.
10852 (dwarf2_build_frame_info): Update.
10853
10854 2020-02-12 Tom Tromey <tom@tromey.com>
10855
10856 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10857 (decode_frame_entry_1): Use the comp_unit obstack.
10858
10859 2020-02-12 Tom Tromey <tom@tromey.com>
10860
10861 * dwarf2/frame.c (struct comp_unit): Add initializers and
10862 constructor.
10863 (dwarf2_frame_objfile_data): Store a comp_unit.
10864 (dwarf2_frame_find_fde): Update.
10865 (dwarf2_build_frame_info): Use "new".
10866
10867 2020-02-12 Tom Tromey <tom@tromey.com>
10868
10869 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10870 (dwarf2_fde_table): Typedef for std::vector.
10871 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10872 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10873 (decode_frame_entry): Update.
10874 (dwarf2_build_frame_info): Use "new".
10875
10876 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10877
10878 * arm-tdep.c (arm_gdbarch_init): Update.
10879 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10880 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10881 have_neon, is_m>: Change to bool.
10882
10883 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10884
10885 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10886
10887 2020-02-12 Tom Tromey <tom@tromey.com>
10888
10889 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10890
10891 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10892
10893 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10894 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10895
10896 2020-02-11 Tom Tromey <tom@tromey.com>
10897
10898 * psymtab.h: Update comment.
10899
10900 2020-02-11 Tom Tromey <tom@tromey.com>
10901
10902 * gdb_obstack.h (struct auto_obstack): Use
10903 DISABLE_COPY_AND_ASSIGN.
10904
10905 2020-02-11 Tom Tromey <tom@tromey.com>
10906
10907 * dwarf2/frame.h (struct objfile): Don't forward declare.
10908
10909 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10910
10911 * cris-tdep.c (cris_supply_gregset): Change signature to match
10912 what struct regset expects.
10913 (cris_regset): New struct.
10914 (fetch_core_registers): Remove.
10915 (cris_iterate_over_regset_sections): New function.
10916 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10917 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10918
10919 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10920
10921 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10922 registers.
10923
10924 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10925
10926 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10927
10928 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10929
10930 * configure: Re-generate.
10931
10932 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10933
10934 * configure: Re-generate.
10935
10936 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10937
10938 * acinclude: Update warning.m4 path.
10939 * warning.m4: Move to gdbsupport.
10940
10941 2020-02-11 Tom Tromey <tromey@adacore.com>
10942
10943 * remote.c (remote_console_output): Update.
10944 * printcmd.c (printf_command): Update.
10945 * event-loop.c (gdb_wait_for_event): Update.
10946 * linux-nat.c (sigchld_handler): Update.
10947 * remote-sim.c (gdb_os_write_stdout): Update.
10948 (gdb_os_flush_stdout): Update.
10949 (gdb_os_flush_stderr): Update.
10950 (gdb_os_write_stderr): Update.
10951 * exceptions.c (print_exception): Update.
10952 * remote-fileio.c (remote_fileio_func_read): Update.
10953 (remote_fileio_func_write): Update.
10954 * tui/tui.c (tui_enable): Update.
10955 * tui/tui-interp.c (tui_interp::init): Update.
10956 * utils.c (init_page_info): Update.
10957 (putchar_unfiltered, fputc_unfiltered): Update.
10958 (gdb_flush): Update.
10959 (emit_style_escape): Update.
10960 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10961 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10962 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10963 (stderr_file::write): Update.
10964 (stderr_file::puts): Update.
10965 * ui-file.h (ui_file_isatty, ui_file_write)
10966 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10967 (ui_file_puts): Don't declare.
10968
10969 2020-02-10 Tom de Vries <tdevries@suse.de>
10970
10971 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10972 sentinel to char *.
10973
10974 2020-02-09 Tom de Vries <tdevries@suse.de>
10975
10976 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10977 filename if it matches "<artificial>".
10978
10979 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10980
10981 * windows-tdep.c (struct enum_value_name): New struct.
10982 (create_enum): New function.
10983 (windows_get_siginfo_type): Create and use enum types.
10984
10985 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10986
10987 * NEWS: Mention $_siginfo support for Windows.
10988 * windows-nat.c (handle_exception): Set siginfo_er.
10989 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10990 (windows_xfer_siginfo): New function.
10991 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10992 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10993 (init_windows_gdbarch_data): New function.
10994 (get_windows_gdbarch_data): New function.
10995 (windows_get_siginfo_type): New function.
10996 (windows_init_abi): Register windows_get_siginfo_type.
10997 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10998
10999 2020-02-08 Tom Tromey <tom@tromey.com>
11000
11001 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11002 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11003 <keep>: Declare method.
11004 <m_keep>: Remove member.
11005 <~cutu_reader>: Remove.
11006 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11007 (cutu_reader::cutu_reader): Update.
11008 (cutu_reader::keep): Rename from ~cutu_reader.
11009 (process_psymtab_comp_unit, build_type_psymtabs_1)
11010 (process_skeletonless_type_unit, load_partial_comp_unit)
11011 (load_full_comp_unit, dwarf2_read_addr_index)
11012 (read_signatured_type): Update.
11013
11014 2020-02-08 Tom Tromey <tom@tromey.com>
11015
11016 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11017 "want_partial_unit" parameter.
11018 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11019 Inline check for DW_TAG_partial_unit.
11020 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11021
11022 2020-02-08 Tom Tromey <tom@tromey.com>
11023
11024 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11025 read.c.
11026 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11027 read.c.
11028
11029 2020-02-08 Tom Tromey <tom@tromey.com>
11030
11031 * dwarf2/read.c (read_address): Move to comp-unit.c.
11032 (dwarf2_rnglists_process, dwarf2_ranges_process)
11033 (read_attribute_value, dwarf_decode_lines_1)
11034 (var_decode_location, decode_locdesc): Update.
11035 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11036 read.c. Remove "cu" parameter.
11037 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11038 method.
11039
11040 2020-02-08 Tom Tromey <tom@tromey.com>
11041
11042 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11043 (read_indirect_line_string): Update.
11044 * dwarf2/comp-unit.c (read_offset): Remove.
11045 (read_comp_unit_head): Update.
11046 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11047 method.
11048 (read_offset): Don't declare.
11049
11050 2020-02-08 Tom Tromey <tom@tromey.com>
11051
11052 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11053 * dwarf2/read.c (struct comp_unit_head): Move to
11054 dwarf2/comp-unit.h.
11055 (enum class rcuh_kind): Move to comp-unit.h.
11056 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11057 (read_comp_unit_head, error_check_comp_unit_head)
11058 (read_and_check_comp_unit_head): Move to comp-unit.c.
11059 (read_offset, dwarf_unit_type_name): Likewise.
11060 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11061 (cutu_reader::cutu_reader, read_call_site_scope)
11062 (find_partial_die, follow_die_offset): Update.
11063 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11064
11065 2020-02-08 Tom Tromey <tom@tromey.com>
11066
11067 * dwarf2/read.c (read_offset_1): Move to leb.c.
11068 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11069 (dwarf_decode_macro_bytes): Update.
11070 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11071 * dwarf2/leb.h (read_offset): Declare.
11072
11073 2020-02-08 Tom Tromey <tom@tromey.com>
11074
11075 * dwarf2/read.c (dwarf2_section_size): Remove.
11076 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11077 Update.
11078 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11079
11080 2020-02-08 Tom Tromey <tom@tromey.com>
11081
11082 * dwarf2/read.c (read_initial_length): Move to leb.c.
11083 * dwarf2/leb.h (read_initial_length): Declare.
11084 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11085 handle_nonstd parameter.
11086 * dwarf2/frame.c (read_initial_length): Remove.
11087 (decode_frame_entry_1): Update.
11088
11089 2020-02-08 Tom Tromey <tom@tromey.com>
11090
11091 * dwarf2/loc.c (dwarf2_find_location_expression)
11092 (dwarf_evaluate_loc_desc::get_tls_address)
11093 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11094 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11095 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11096 (dwarf2_compile_property_to_c)
11097 (dwarf2_loc_desc_get_symbol_read_needs)
11098 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11099 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11100 (loclist_describe_location, loclist_tracepoint_var_ref)
11101 (loclist_generate_c_location): Update.
11102 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11103 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11104 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11105 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11106 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11107 (dwarf2_per_cu_data::addr_size)
11108 (dwarf2_per_cu_data::ref_addr_size)
11109 (dwarf2_per_cu_data::text_offset)
11110 (dwarf2_per_cu_data::addr_type): Now methods.
11111 (per_cu_header_read_in): Make per_cu "const".
11112 (dwarf2_version): Remove.
11113 (dwarf2_per_cu_data::int_type): Now a method.
11114 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11115 (set_die_type, read_array_type, read_subrange_index_type)
11116 (read_tag_string_type, read_subrange_type): Update.
11117 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11118 offset_size, ref_addr_size, text_offset, addr_type, version,
11119 objfile, int_type, addr_sized_int_type>: Declare methods.
11120
11121 2020-02-08 Tom Tromey <tom@tromey.com>
11122
11123 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11124 Move earlier.
11125
11126 2020-02-08 Tom Tromey <tom@tromey.com>
11127
11128 * dwarf2/read.h (dwarf_line_debug): Declare.
11129 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11130 * dwarf2/read.c: Move line_header code to new files.
11131 (dwarf_line_debug): No longer static.
11132 * dwarf2/line-header.c: New file.
11133 * dwarf2/line-header.h: New file.
11134
11135 2020-02-08 Tom Tromey <tom@tromey.com>
11136
11137 * dwarf2/read.c (struct line_header) <file_full_name,
11138 file_file_name>: Return unique_xmalloc_ptr.
11139 (line_header::file_file_name): Update.
11140 (line_header::file_full_name): Update.
11141 (dw2_get_file_names_reader): Update.
11142 (macro_start_file): Update.
11143
11144 2020-02-08 Tom Tromey <tom@tromey.com>
11145
11146 * dwarf2/read.c (struct line_header) <file_full_name,
11147 file_file_name>: Declare methods.
11148 (dw2_get_file_names_reader): Update.
11149 (file_file_name): Now a method.
11150 (file_full_name): Likewise.
11151 (macro_start_file): Update.
11152
11153 2020-02-08 Tom Tromey <tom@tromey.com>
11154
11155 * dwarf2/read.c (dwarf_always_disassemble)
11156 (show_dwarf_always_disassemble): Move to loc.c.
11157 (_initialize_dwarf2_read): Move "always-disassemble" registration
11158 to loc.c.
11159 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11160 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11161 static.
11162 (show_dwarf_always_disassemble): Move from read.c.
11163 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11164
11165 2020-02-08 Tom Tromey <tom@tromey.com>
11166
11167 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11168 (create_quick_file_names_table): Return htab_up.
11169 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11170 Update.
11171 * dwarf2/read.h (struct dwarf2_per_objfile)
11172 <quick_file_names_table>: Now htab_up.
11173
11174 2020-02-08 Tom Tromey <tom@tromey.com>
11175
11176 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11177
11178 2020-02-08 Tom Tromey <tom@tromey.com>
11179
11180 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11181 Rewrite.
11182 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11183 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11184 (abbrev_table::abbrev_table): No longer inline.
11185 (ABBREV_HASH_SIZE): Remove.
11186 (abbrev_table::m_abbrevs): Now an htab_up.
11187
11188 2020-02-08 Tom Tromey <tom@tromey.com>
11189
11190 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11191 (cutu_reader): Update.
11192 (build_type_psymtabs_1): Update.
11193 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11194 (abbrev_table::alloc_abbrev): Update.
11195 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11196 (abbrev_table::read): New static method, renamed from
11197 abbrev_table_read_table.
11198 (abbrev_table::alloc_abbrev)
11199 (abbrev_table::add_abbrev): Now private.
11200 (abbrev_table::abbrev_table): Now private.
11201 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11202
11203 2020-02-08 Tom Tromey <tom@tromey.com>
11204
11205 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11206 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11207 htab_up.
11208
11209 2020-02-08 Tom Tromey <tom@tromey.com>
11210
11211 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11212 htab_up.
11213 (lookup_dwo_unit_in_dwp): Update.
11214 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11215 on obstack.
11216
11217 2020-02-08 Tom Tromey <tom@tromey.com>
11218
11219 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11220 obstack.
11221
11222 2020-02-08 Tom Tromey <tom@tromey.com>
11223
11224 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11225 line_header_hash.
11226 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11227 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11228 Change type to htab_up.
11229
11230 2020-02-08 Tom Tromey <tom@tromey.com>
11231
11232 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11233 htab_up. Don't allocate on obstack.
11234 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11235 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11236 Change type to htab_up.
11237
11238 2020-02-08 Tom Tromey <tom@tromey.com>
11239
11240 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11241 Change type to htab_up.
11242 * dwarf2/read.c (create_signatured_type_table_from_index)
11243 (create_signatured_type_table_from_debug_names)
11244 (create_all_type_units, add_type_unit)
11245 (lookup_dwo_signatured_type, lookup_signatured_type)
11246 (process_skeletonless_type_unit): Update.
11247 (create_debug_type_hash_table, create_debug_types_hash_table):
11248 Change type of types_htab.
11249 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11250 htab_up. Don't allocate on obstack.
11251 (create_cus_hash_table): Change type of cus_htab parameter.
11252 (struct dwo_file) <cus, tus>: Now htab_up.
11253 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11254 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11255 (queue_and_load_all_dwo_tus): Update.
11256 * dwarf2/index-write.c (write_gdbindex): Update.
11257 (write_debug_names): Update.
11258
11259 2020-02-08 Tom Tromey <tom@tromey.com>
11260
11261 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11262 dwarf2/read.c. Remove "next" member. Add constructor ntad
11263 destructor.
11264 (struct dwarf2_per_objfile) <queue>: New member.
11265 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11266 dwarf2/read.h.
11267 (dwarf2_queue, dwarf2_queue_tail): Remove.
11268 (class dwarf2_queue_guard): Add parameter to constructor. Use
11269 DISABLE_COPY_AND_ASSIGN.
11270 <m_per_objfile>: New member.
11271 <~dwarf2_queue_guard>: Rewrite.
11272 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11273 Update.
11274 (~dwarf2_queue_item): New.
11275
11276 2020-02-08 Tom Tromey <tom@tromey.com>
11277
11278 * dwarf2/read.c (struct die_info) <has_children>: New member.
11279 (dw2_get_file_names_reader): Remove has_children.
11280 (dw2_get_file_names): Update.
11281 (read_cutu_die_from_dwo): Remove has_children.
11282 (cutu_reader::init_tu_and_read_dwo_dies)
11283 (cutu_reader::cutu_reader): Update.
11284 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11285 Remove has_children.
11286 (build_type_psymtabs_1, process_skeletonless_type_unit)
11287 (load_partial_comp_unit, load_full_comp_unit): Update.
11288 (create_dwo_cu_reader): Remove has_children.
11289 (create_cus_hash_table, read_die_and_children): Update.
11290 (read_full_die_1,read_full_die): Remove has_children.
11291 (read_signatured_type): Update.
11292 (class cutu_reader) <has_children>: Remove.
11293
11294 2020-02-08 Tom Tromey <tom@tromey.com>
11295
11296 * dwarf2/expr.c: Rename from dwarf2expr.c.
11297 * dwarf2/expr.h: Rename from dwarf2expr.h.
11298 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11299 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11300 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11301 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11302 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11303 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11304 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11305 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11306 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11307 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11308 * dwarf2/loc.c: Rename from dwarf2loc.c.
11309 * dwarf2/loc.h: Rename from dwarf2loc.h.
11310 * dwarf2/read.c: Rename from dwarf2read.c.
11311 * dwarf2/read.h: Rename from dwarf2read.h.
11312 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11313 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11314 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11315 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11316 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11317 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11318 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11319 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11320 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11321 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11322 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11323 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11324 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11325 Update.
11326 * Makefile.in (COMMON_SFILES): Update.
11327 (HFILES_NO_SRCDIR): Update.
11328
11329 2020-02-08 Tom Tromey <tom@tromey.com>
11330
11331 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11332 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11333
11334 2020-02-08 Tom Tromey <tom@tromey.com>
11335
11336 * dwarf2read.h (struct die_info): Don't declare.
11337
11338 2020-02-08 Tom Tromey <tom@tromey.com>
11339
11340 * dwarf2read.h (die_info_ptr): Remove typedef.
11341
11342 2020-02-08 Tom Tromey <tom@tromey.com>
11343
11344 * dwarf2read.c (read_call_site_scope)
11345 (handle_data_member_location, dwarf2_add_member_fn)
11346 (mark_common_block_symbol_computed, read_common_block)
11347 (attr_to_dynamic_prop, partial_die_info::read)
11348 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11349 (dwarf2_symbol_mark_computed, set_die_type): Update.
11350 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11351 method.
11352 (attr_form_is_block): Don't declare.
11353 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11354
11355 2020-02-08 Tom Tromey <tom@tromey.com>
11356
11357 * dwarf2read.c (dwarf2_find_base_address, )
11358 (read_call_site_scope, rust_containing_type)
11359 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11360 (handle_data_member_location, dwarf2_add_member_fn)
11361 (get_alignment, read_structure_type, process_structure_scope)
11362 (mark_common_block_symbol_computed, read_common_block)
11363 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11364 (partial_die_info::read, read_attribute_value, new_symbol)
11365 (lookup_die_type, dwarf2_get_ref_die_offset)
11366 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11367 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11368 (dwarf2_symbol_mark_computed): Update.
11369 * dwarf2/attribute.h (struct attribute) <value_as_address,
11370 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11371 methods.
11372 (value_as_address, attr_form_is_section_offset)
11373 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11374 * dwarf2/attribute.c (attribute::value_as_address)
11375 (attribute::form_is_section_offset, attribute::form_is_constant)
11376 (attribute::form_is_ref): Now methods.
11377
11378 2020-02-08 Tom Tromey <tom@tromey.com>
11379
11380 * dwarf2read.c (struct attribute, DW_STRING)
11381 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11382 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11383 (attr_form_is_block, attr_form_is_section_offset)
11384 (attr_form_is_constant, attr_form_is_ref): Move.
11385 * dwarf2/attribute.h: New file.
11386 * dwarf2/attribute.c: New file, from dwarf2read.c.
11387 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11388
11389 2020-02-08 Tom Tromey <tom@tromey.com>
11390
11391 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11392 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11393 Move.
11394 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11395 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11396 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11397 abbrev.c.
11398 * dwarf2/abbrev.h: New file.
11399 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11400 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11401
11402 2020-02-08 Tom Tromey <tom@tromey.com>
11403
11404 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11405 (dwarf2_section_size, dwarf2_get_section_info)
11406 (create_signatured_type_table_from_debug_names)
11407 (create_addrmap_from_aranges, read_debug_names_from_section)
11408 (get_gdb_index_contents_from_section, read_comp_unit_head)
11409 (error_check_comp_unit_head, read_abbrev_offset)
11410 (create_debug_type_hash_table, init_cu_die_reader)
11411 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11412 (read_comp_units_from_section, create_cus_hash_table)
11413 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11414 (create_dwp_v2_section, dwarf2_rnglists_process)
11415 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11416 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11417 (read_indirect_string_from_dwz, read_addr_index_1)
11418 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11419 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11420 (fill_in_loclist_baton): Update.
11421 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11422 get_containing_section, get_bfd_owner, get_bfd_section,
11423 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11424 (dwarf2_read_section, get_section_name, get_section_file_name)
11425 (get_containing_section, get_section_bfd_owner)
11426 (get_section_bfd_section, get_section_name, get_section_file_name)
11427 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11428 declare.
11429 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11430 (dwarf2_section_info::get_bfd_owner)
11431 (dwarf2_section_info::get_bfd_section)
11432 (dwarf2_section_info::get_name)
11433 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11434 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11435 (dwarf2_section_info::read): Now methods.
11436 * dwarf-index-write.c (class debug_names): Update.
11437
11438 2020-02-08 Tom Tromey <tom@tromey.com>
11439
11440 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11441 Move to dwarf2/section.h.
11442 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11443 (get_section_bfd_section, get_section_name)
11444 (get_section_file_name, get_section_id, get_section_flags)
11445 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11446 dwarf2/section.c.
11447 * dwarf2/section.h: New file.
11448 * dwarf2/section.c: New file, from dwarf2read.c.
11449 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11450
11451 2020-02-08 Tom Tromey <tom@tromey.com>
11452
11453 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11454 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11455 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11456 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11457 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11458 * dwarf2/leb.h: New file, from dwarf2read.c.
11459 * dwarf2/leb.c: New file, from dwarf2read.c.
11460 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11461 Remove.
11462 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11463 (COMMON_SFILES): Add dwarf2/leb.c.
11464
11465 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11466
11467 GDB 9.1 released.
11468
11469 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11470
11471 PR gdb/25190:
11472 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11473 * gdb/remote.c (remote_console_output): Update.
11474 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11475 (ui_file_puts): ...this.
11476 * gdb/ui-file.h (ui_file_puts): Add declaration.
11477 * gdb/utils.c (emit_style_escape): Update.
11478 (flush_wrap_buffer): Update.
11479 (fputs_maybe_filtered): Update.
11480 (fputs_unfiltered): Add function.
11481
11482 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11483
11484 * gdb/event-loop.c (gdb_wait_for_event): Update.
11485 * gdb/printcmd.c (printf_command): Update.
11486 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11487 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11488 (gdb_os_flush_stderr): Update.
11489 * gdb/remote.c (remote_console_output): Update.
11490 * gdb/ui-file.c (gdb_flush): Rename to...
11491 (ui_file_flush): ...this.
11492 (stderr_file::write): Update.
11493 (stderr_file::puts): Update.
11494 * gdb/ui-file.h (gdb_flush): Rename to...
11495 (ui_file_flush): ...this.
11496 * gdb/utils.c (gdb_flush): Add function.
11497 * gdb/utils.h (gdb_flush): Add declaration.
11498
11499 2020-02-07 Tom Tromey <tromey@adacore.com>
11500
11501 PR breakpoints/24915:
11502 * source.c (find_and_open_source): Do not check basenames_may_differ.
11503
11504 2020-02-07 Tom Tromey <tom@tromey.com>
11505
11506 * README: Update gdbserver documentation.
11507 * gdbserver: Move to top level.
11508 * configure.tgt (build_gdbserver): Remove.
11509 * configure.ac: Remove --enable-gdbserver.
11510 * configure: Rebuild.
11511 * Makefile.in (distclean): Don't mention gdbserver.
11512
11513 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11514
11515 * source-cache.c (source_cache::ensure): Surround
11516 get_plain_source_lines with a try/catch.
11517 (source_cache::get_line_charpos): Get rid of try/catch
11518 and only check for the return value of "ensure".
11519 * tui/tui-source.c (tui_source_window::set_contents):
11520 Simplify "nlines" calculation.
11521
11522 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11523
11524 * MAINTAINERS (Write After Approval): Add myself.
11525
11526 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11527
11528 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11529 function call.
11530
11531 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11532
11533 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11534
11535 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11536
11537 * nat/riscv-linux-tdesc.h: New file.
11538 * nat/riscv-linux-tdesc.c: New file, taking code from...
11539 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11540 ... here.
11541 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11542 NATDEPFILES.
11543
11544 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11545
11546 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11547 we don't set the fake simulator ptid to the null_ptid.
11548
11549 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11550
11551 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11552 * gdbthread.h (class thread_info) <resumed>: Likewise.
11553 * infrun.c (resume_1): Likewise.
11554 (proceed): Likewise.
11555 (infrun_thread_stop_requested): Likewise.
11556 (stop_all_threads): Likewise.
11557 (handle_inferior_event): Likewise.
11558 (restart_threads): Likewise.
11559 (finish_step_over): Likewise.
11560 (keep_going_stepped_thread): Likewise.
11561 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11562 (linux_handle_extended_wait): Likewise.
11563 * record-btrace.c (get_thread_current_frame_id): Likewise.
11564 * record-full.c (record_full_wait_1): Likewise.
11565 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11566 * target.c (target_resume): Likewise.
11567 * thread.c (set_running_thread): Likewise.
11568
11569 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11570
11571 * f-valprint.c (f77_print_array_1): Changed datatype of index
11572 variable to LONGEST from int to enable it to contain bound
11573 values correctly.
11574
11575 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11576
11577 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11578 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11579 offsets according to FLEN determined.
11580 (riscv_linux_nat_target::read_description): Determine FLEN
11581 dynamically.
11582 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11583 according to FLEN determined.
11584 (riscv_linux_nat_target::store_registers): Likewise.
11585
11586 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11587
11588 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11589 when reg->group is empty and reggroup is not.
11590
11591 2020-01-31 Tom Tromey <tromey@adacore.com>
11592
11593 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11594 Call beneath target's mourn_inferior after unpushing.
11595
11596 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11597
11598 PR tui/9765
11599 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11600 have enough lines to fill the screen, still return the lowest
11601 address we found.
11602
11603 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11604
11605 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11606 '-', '<', and '>' commands.
11607
11608 2020-01-29 Pedro Alves <palves@redhat.com>
11609 Sergio Durigan Junior <sergiodj@redhat.com>
11610
11611 * infcmd.c (construct_inferior_arguments): Assert that
11612 'argc' is greater than 0.
11613
11614 2020-01-29 Luis Machado <luis.machado@linaro.org>
11615
11616 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11617 (BRK_INSN_MASK): Define to 0xd4200000.
11618 (aarch64_program_breakpoint_here_p): New function.
11619 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11620 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11621 breakpoint.c.
11622 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11623 breakpoint.h
11624 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11625 call gdbarch_program_breakpoint_here_p.
11626 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11627 default_program_breakpoint_here_p, changed return type to bool and
11628 simplified.
11629 * breakpoint.h (program_breakpoint_here): Moved prototype to
11630 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11631 return type to bool.
11632 * gdbarch.c: Regenerate.
11633 * gdbarch.h: Regenerate.
11634 * gdbarch.sh (program_breakpoint_here_p): New method.
11635 * infrun.c (handle_signal_stop): Call
11636 gdbarch_program_breakpoint_here_p.
11637
11638 2020-01-26 Tom Tromey <tom@tromey.com>
11639
11640 * ctfread.c (struct ctf_fp_info): Reindent.
11641 (_initialize_ctfread): Remove.
11642
11643 2020-01-26 Tom Tromey <tom@tromey.com>
11644
11645 * psymtab.c (partial_map_expand_apply)
11646 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11647 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11648 (psym_print_stats, psym_expand_symtabs_for_function)
11649 (psym_map_symbol_filenames, psym_map_matching_symbols)
11650 (psym_expand_symtabs_matching)
11651 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11652 (maintenance_check_psymtabs): Use new methods.
11653 * psympriv.h (struct partial_symtab) <readin_p,
11654 get_compunit_symtab>: New methods.
11655 <readin, compunit_symtab>: Remove members.
11656 (struct standard_psymtab): New.
11657 (struct legacy_psymtab): Derive from standard_psymtab.
11658 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11659 standard_psymtab.
11660 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11661
11662 2020-01-26 Tom Tromey <tom@tromey.com>
11663
11664 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11665 read_dependencies. Add assert.
11666 * psymtab.c (partial_symtab::read_dependencies): New method.
11667 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11668 method.
11669 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11670 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11671 read_dependencies.
11672 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11673 Add assert.
11674
11675 2020-01-26 Tom Tromey <tom@tromey.com>
11676
11677 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11678 Call expand_psymtab.
11679 (xcoff_read_symtab): Call expand_psymtab.
11680 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11681 legacy_expand_psymtab.
11682 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11683 method.
11684 (struct legacy_psymtab) <expand_psymtab>: Implement.
11685 <legacy_expand_psymtab>: New member.
11686 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11687 (parse_partial_symbols): Set legacy_expand_psymtab.
11688 (psymtab_to_symtab_1): Change argument order. Call
11689 expand_psymtab.
11690 (new_psymtab): Set legacy_expand_psymtab.
11691 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11692 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11693 expand_psymtab.
11694 (dwarf2_psymtab::expand_psymtab): Rename from
11695 psymtab_to_symtab_1. Call expand_psymtab.
11696 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11697 (dbx_end_psymtab): Likewise.
11698 (dbx_psymtab_to_symtab_1): Change argument order. Call
11699 expand_psymtab.
11700 (dbx_read_symtab): Call expand_psymtab.
11701 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11702 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11703 (ctf_psymtab::read_symtab): Call expand_psymtab.
11704
11705 2020-01-26 Tom Tromey <tom@tromey.com>
11706
11707 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11708 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11709 messages.
11710 * mdebugread.c (mdebug_read_symtab): Remove prints.
11711 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11712 assert.
11713 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11714
11715 2020-01-26 Tom Tromey <tom@tromey.com>
11716
11717 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11718 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11719 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11720 legacy_symtab.
11721 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11722 * psymtab.c (psymtab_to_symtab): Call method.
11723 (dump_psymtab): Update.
11724 * psympriv.h (struct partial_symtab): Add virtual destructor.
11725 <read_symtab>: New method.
11726 (struct legacy_symtab): New.
11727 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11728 (struct pst_map) <pst>: Now a legacy_psymtab.
11729 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11730 (new_psymtab): Use legacy_psymtab.
11731 * dwarf2read.h (struct dwarf2_psymtab): New.
11732 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11733 * dwarf2read.c (dwarf2_create_include_psymtab)
11734 (dwarf2_build_include_psymtabs, create_type_unit_group)
11735 (create_partial_symtab, process_psymtab_comp_unit_reader)
11736 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11737 (set_partial_user): Use dwarf2_psymtab.
11738 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11739 (psymtab_to_symtab_1, process_full_comp_unit)
11740 (process_full_type_unit, dwarf2_ranges_read)
11741 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11742 (dwarf_decode_lines): Use dwarf2_psymtab.
11743 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11744 (add_address_entry_worker, write_one_signatured_type)
11745 (recursively_count_psymbols, recursively_write_psymbols)
11746 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11747 (write_debug_names): Likewise.
11748 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11749 <pst>: Now a legacy_psymtab.
11750 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11751 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11752 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11753 * ctfread.c (struct ctf_psymtab): New.
11754 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11755 ctf_psymtab.
11756 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11757 (create_partial_symtab): Return a ctf_psymtab.
11758 (scan_partial_symbols): Update.
11759
11760 2020-01-26 Tom Tromey <tom@tromey.com>
11761
11762 * xcoffread.c (xcoff_start_psymtab): Use new.
11763 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11764 renamed from start_psymtab_common.
11765 * psympriv.h (struct partial_symtab): Add new constructor.
11766 (start_psymtab_common): Don't declare.
11767 * mdebugread.c (parse_partial_symbols): Use new.
11768 * dwarf2read.c (create_partial_symtab): Use new.
11769 * dbxread.c (start_psymtab): Use new.
11770 * ctfread.c (create_partial_symtab): Use new.
11771
11772 2020-01-26 Tom Tromey <tom@tromey.com>
11773
11774 * xcoffread.c (xcoff_end_psymtab): Use new.
11775 * psymtab.c (start_psymtab_common): Use new.
11776 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11777 Update.
11778 * psympriv.h (struct partial_symtab): Add parameters to
11779 constructor. Don't inline.
11780 (allocate_psymtab): Don't declare.
11781 * mdebugread.c (new_psymtab): Use new.
11782 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11783 * dbxread.c (dbx_end_psymtab): Use new.
11784
11785 2020-01-26 Tom Tromey <tom@tromey.com>
11786
11787 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11788 allocate_psymtab. Update documentation.
11789 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11790 allocate_psymtab. Do not use new.
11791 (allocate_psymtab): Use new. Update.
11792
11793 2020-01-26 Tom Tromey <tom@tromey.com>
11794
11795 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11796 * psymtab.c (psym_print_stats): Update.
11797 * psympriv.h (struct partial_symtab) <readin,
11798 psymtabs_addrmap_supported, anonymous>: Now bool.
11799 * mdebugread.c (psymtab_to_symtab_1): Update.
11800 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11801 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11802 (process_full_comp_unit, process_full_type_unit): Update.
11803 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11804 * ctfread.c (psymtab_to_symtab): Update.
11805
11806 2020-01-26 Tom Tromey <tom@tromey.com>
11807
11808 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11809 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11810 * psymtab.c (psymtab_storage): Delete psymtabs.
11811 (psymtab_storage::allocate_psymtab): Use new.
11812 (psymtab_storage::discard_psymtab): Use delete.
11813 * psympriv.h (struct partial_symtab): Add constructor and
11814 initializers.
11815
11816 2020-01-26 Tom Tromey <tom@tromey.com>
11817
11818 * machoread.c: Do not include psympriv.h.
11819
11820 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11821
11822 * NEWS: Mention the new option and the set/show commands.
11823
11824 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11825
11826 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11827 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11828 (validate_exec_file): New variables, enums, functions.
11829 (exec_file_locate_attach, print_section_info): Style the filenames.
11830 (_initialize_exec): Install show_exec_file_mismatch_command and
11831 set_exec_file_mismatch_command.
11832 * gdbcore.h (validate_exec_file): Declare.
11833 * infcmd.c (attach_command): Call validate_exec_file.
11834 * remote.c ( remote_target::remote_add_inferior): Likewise.
11835
11836 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11837
11838 * frame.c (find_frame_sal): Move call to get_next_frame into more
11839 inner scope.
11840 * inline-frame.c (inilne_state) <inline_state>: Update argument
11841 types.
11842 (inilne_state) <skipped_symbol>: Rename to...
11843 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11844 (skip_inline_frames): Build vector of skipped symbols and use this
11845 to reate the inline_state.
11846 (inline_skipped_symbol): Add a comment and some assertions, fetch
11847 skipped symbol from the list.
11848
11849 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11850
11851 * buildsym.c (lte_is_less_than): Delete.
11852 (buildsym_compunit::end_symtab_with_blockvector): Create local
11853 lambda function to sort line table entries, and use
11854 std::stable_sort instead of std::sort.
11855 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11856 markers when looking for a previous line.
11857
11858 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11859
11860 * dwarf2read.c (lnp_state_machine::record_line): Include
11861 end_sequence parameter in debug print out. Record the line if we
11862 are at an end_sequence marker even if it's not the start of a
11863 statement.
11864 * symmisc.c (maintenance_print_one_line_table): Print end of
11865 sequence markers with 'END' not '0'.
11866
11867 2020-01-24 Pedro Alves <palves@redhat.com>
11868
11869 PR gdb/25410
11870 * thread.c (scoped_restore_current_thread::restore): Use
11871 switch_to_inferior_no_thread.
11872 * exec.c: Include "progspace-and-thread.h".
11873 (add_target_sections, remove_target_sections):
11874 scoped_restore_current_pspace_and_thread instead of
11875 scoped_restore_current_thread.
11876 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11877 and aspace to the inferior before calling clone_program_space.
11878 Remove stale comment.
11879
11880 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11881
11882 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11883 (arm_netbsd_nat_target::fetch_registers): ...this.
11884 (arm_nbsd_nat_target::store_registers): Rename to...
11885 (arm_netbsd_nat_target::store_registers): ...this.
11886
11887 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11888
11889 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11890 register_t.
11891
11892 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11893
11894 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11895 Update comment.
11896 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11897 Likewise.
11898 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11899 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11900 the correct replacement (iterate_over_regset_sections).
11901 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11902 Update comment.
11903
11904 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11905
11906 PR gdb/23718
11907 * gdb/python/python.c (execute_gdb_command): Call
11908 async_enable_stdin in catch block.
11909
11910 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11911
11912 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11913 SWITCH_THRU_ALL_UIS.
11914
11915 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11916
11917 PR tui/9765
11918 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11919 comment, add extra parameter, and update to store previous symbol
11920 when appropriate.
11921 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11922 add extra parameter.
11923 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11924 remove unneeded parameter, add try/catch around gdb_print_insn,
11925 rewrite to add items to asm_lines vector.
11926 (tui_find_backward_disassembly_start_address): New function.
11927 (tui_find_disassembly_address): Updated throughout.
11928 (tui_disasm_window::set_contents): Update for changes to
11929 tui_disassemble.
11930 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11931 number of lines to scroll.
11932
11933 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11934
11935 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11936 (SECT_OFF_DATA): Likewise.
11937 (SECT_OFF_RODATA): Likewise.
11938 (SECT_OFF_TEXT): Likewise.
11939 (SECT_OFF_BSS): Likewise.
11940 (struct objfile) <text_section_offset, data_section_offset>: New
11941 methods.
11942 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11943 objfile::text_section_offset.
11944 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11945 * coffread.c (coff_symtab_read): Likewise.
11946 (enter_linenos): Likewise.
11947 (process_coff_symbol): Likewise.
11948 * ctfread.c (get_objfile_text_range): Likewise.
11949 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11950 Use objfile::data_section_offset.
11951 * dwarf2-frame.c (execute_cfa_program): Use
11952 objfile::text_section_offset.
11953 (dwarf2_frame_find_fde): Likewise.
11954 * dwarf2read.c (create_addrmap_from_index): Likewise.
11955 (create_addrmap_from_aranges): Likewise.
11956 (dw2_find_pc_sect_compunit_symtab): Likewise.
11957 (process_psymtab_comp_unit_reader): Likewise.
11958 (add_partial_symbol): Likewise.
11959 (add_partial_subprogram): Likewise.
11960 (process_full_comp_unit): Likewise.
11961 (read_file_scope): Likewise.
11962 (read_func_scope): Likewise.
11963 (read_lexical_block_scope): Likewise.
11964 (read_call_site_scope): Likewise.
11965 (dwarf2_rnglists_process): Likewise.
11966 (dwarf2_ranges_process): Likewise.
11967 (dwarf2_ranges_read): Likewise.
11968 (dwarf_decode_lines_1): Likewise.
11969 (new_symbol): Likewise.
11970 (dwarf2_fetch_die_loc_sect_off): Likewise.
11971 (dwarf2_per_cu_text_offset): Likewise.
11972 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11973 * hppa-tdep.c (read_unwind_info): Likewise.
11974 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11975 * psympriv.h (struct partial_symtab): Likewise.
11976 * psymtab.c (find_pc_sect_psymtab): Likewise.
11977 * solib-svr4.c (enable_break): Likewise.
11978 * stap-probe.c (relocate_address): Use
11979 objfile::data_section_offset.
11980 * xcoffread.c (enter_line_range): Use
11981 objfile::text_section_offset.
11982 (read_xcoff_symtab): Likewise.
11983
11984 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11985
11986 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11987 declaration to narrower scopes.
11988
11989 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11990
11991 * darwin-nat.h (struct darwin_exception_msg, enum
11992 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11993 Move up.
11994 (class darwin_nat_target) <wait_1, check_new_threads,
11995 decode_exception_message, decode_message, stop_inferior,
11996 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11997 * darwin-nat.c (darwin_check_new_threads): Rename to...
11998 (darwin_nat_target::check_new_threads): ... this.
11999 (darwin_suspend_inferior_it): Remove.
12000 (darwin_decode_exception_message): Rename to...
12001 (darwin_nat_target::decode_exception_message): ... this.
12002 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12003 (darwin_decode_message): Rename to...
12004 (darwin_nat_target::decode_message): ... this.
12005 (cancel_breakpoint): Rename to...
12006 (darwin_nat_target::cancel_breakpoint): ... this.
12007 (darwin_wait): Rename to...
12008 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12009 instead of iterate_over_inferiors.
12010 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12011 (darwin_stop_inferior): Rename to...
12012 (darwin_nat_target::stop_inferior): ... this.
12013 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12014 (darwin_init_thread_list): Rename to...
12015 (darwin_nat_target::init_thread_list): ... this.
12016 (darwin_ptrace_him): Rename to...
12017 (darwin_nat_target::ptrace_him): ... this.
12018 (darwin_nat_target::create_inferior): Pass lambda function to
12019 fork_inferior.
12020 (darwin_nat_target::detach): Call stop_inferior instead of
12021 darwin_stop_inferior.
12022 * fork-inferior.h (fork_inferior): Change init_trace_fun
12023 parameter to gdb::function_view.
12024 * fork-inferior.c (fork_inferior): Likewise.
12025
12026 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12027
12028 * i386-cygwin-tdep.c (core_process_module_section): Update.
12029 * windows-nat.c (struct lm_info_windows): Add text_offset.
12030 (windows_xfer_shared_libraries): Update.
12031 * windows-tdep.c (windows_xfer_shared_library):
12032 Add text_offset_cached argument.
12033 * windows-tdep.h (windows_xfer_shared_library): Update.
12034
12035 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12036
12037 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12038
12039 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12040
12041 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12042 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12043 replace with range-based for.
12044 (gdbsim_interrupt_inferior): Remove.
12045 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12046 with a range-based for. Inline code from
12047 gdbsim_interrupt_inferior.
12048
12049 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12050
12051 * infrun.c (proceed): Fix indentation.
12052
12053 2020-01-21 Tom Tromey <tromey@adacore.com>
12054
12055 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12056 * python/python.c (python_extension_ops): Update.
12057 (gdbpy_colorize): New function.
12058 * python/lib/gdb/__init__.py (colorize): New function.
12059 * extension.h (ext_lang_colorize): Declare.
12060 * extension.c (ext_lang_colorize): New function.
12061 * extension-priv.h (struct extension_language_ops) <colorize>: New
12062 member.
12063 * cli/cli-style.c (_initialize_cli_style): Update help text.
12064
12065 2020-01-21 Luis Machado <luis.machado@linaro.org>
12066
12067 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12068 <cond>: Change type to bool.
12069 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12070 (aarch64_displaced_step_cb): Likewise.
12071 (aarch64_displaced_step_tb): Likewise.
12072
12073 2020-01-21 Luis Machado <luis.machado@linaro.org>
12074
12075 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12076 output.
12077
12078 2020-01-21 Luis Machado <luis.machado@linaro.org>
12079
12080 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12081 <pc_adjust>: Adjust the documentation.
12082 (aarch64_displaced_step_fixup): Check if PC really moved before
12083 adjusting it.
12084
12085 2020-01-19 Tom Tromey <tom@tromey.com>
12086
12087 * disasm.c (~gdb_disassembler): New destructor.
12088 (gdb_buffered_insn_length): Call disassemble_free_target.
12089 * disasm.h (class gdb_disassembler): Declare destructor. Use
12090 DISABLE_COPY_AND_ASSIGN.
12091
12092 2020-01-19 Tom Tromey <tom@tromey.com>
12093
12094 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12095 (die_reader_func_ftype): Remove.
12096 (cutu_reader): New class.
12097 (dw2_get_file_names_reader): Remove "data" parameter.
12098 (dw2_get_file_names): Use cutu_reader.
12099 (create_debug_type_hash_table): Update.
12100 (read_cutu_die_from_dwo): Update comment.
12101 (lookup_dwo_unit): Add dwo_name parameter.
12102 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12103 die_reader_func_ftype and data parameters.
12104 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12105 Remove die_reader_func_ftype and data parameters.
12106 (~cutu_reader): New; from init_cutu_and_read_dies.
12107 (cutu_reader::cutu_reader): Rename from
12108 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12109 and data parameters.
12110 (init_cutu_and_read_dies_simple): Remove.
12111 (struct process_psymtab_comp_unit_data): Remove.
12112 (process_psymtab_comp_unit_reader): Remove data parameter; add
12113 want_partial_unit and pretend_language parameters.
12114 (process_psymtab_comp_unit): Use cutu_reader.
12115 (build_type_psymtabs_reader): Remove data parameter.
12116 (build_type_psymtabs_1): Use cutu_reader.
12117 (process_skeletonless_type_unit): Likewise.
12118 (load_partial_comp_unit_reader): Remove.
12119 (load_partial_comp_unit): Use cutu_reader.
12120 (load_full_comp_unit_reader): Remove.
12121 (load_full_comp_unit): Use cutu_reader.
12122 (struct create_dwo_cu_data): Remove.
12123 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12124 dwo_unit parameters.
12125 (create_cus_hash_table): Use cutu_reader.
12126 (struct dwarf2_read_addr_index_data): Remove.
12127 (dwarf2_read_addr_index_reader): Remove.
12128 (dwarf2_read_addr_index): Use cutu_reader.
12129 (read_signatured_type_reader): Remove.
12130 (read_signatured_type): Use cutu_reader.
12131
12132 2020-01-19 Tom Tromey <tom@tromey.com>
12133
12134 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12135 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12136 (tui_wrefresh): Declare.
12137 * tui/tui-wingeneral.c (suppress_output): New global.
12138 (tui_suppress_output, ~tui_suppress_output): New constructor and
12139 destructor.
12140 (tui_wrefresh): New function.
12141 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12142 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12143 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12144 method.
12145 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12146 tui_wrefresh.
12147 (tui_data_window::no_refresh): New method.
12148 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12149 (tui_reg_command): Use tui_suppress_output
12150 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12151 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12152 method.
12153 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12154
12155 2020-01-19 Tom Tromey <tom@tromey.com>
12156
12157 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12158 Handle case where symtab is null.
12159
12160 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12161
12162 * linux-fork.c (one_fork_p): Simplify.
12163
12164 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12165
12166 * top.c (struct qt_args): Remove.
12167 (kill_or_detach): Change return type to void, replace `void *`
12168 parameter with a proper one.
12169 (print_inferior_quit_action): Likewise.
12170 (quit_confirm): Use range-based for loop to iterate over inferiors.
12171 (quit_force): Likewise.
12172
12173 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12174
12175 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12176 `void *` parameter with proper parameters.
12177 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12178 (print_one_inferior): Change return type to void, replace `void *`
12179 parameter with proper parameters.
12180 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12181 inferiors.
12182 (get_other_inferior): Remove.
12183 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12184 inferiors.
12185
12186 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12187
12188 * mi/mi-interp.c (report_initial_inferior): Remove.
12189 (mi_interp::init): Use range-based for to iterate over inferiors.
12190
12191 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12192
12193 * python/py-inferior.c (build_inferior_list): Remove.
12194 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12195
12196 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12197
12198 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12199 (btrace_stitch_trace): Likewise.
12200 * charset.c (intermediate_encoding): Likewise (vaild).
12201 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12202 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12203 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12204
12205 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12206
12207 * windows-tdep.c (windows_get_tlb_type):
12208 Add rtl_user_process_parameters type.
12209
12210 2020-01-16 Pedro Alves <palves@redhat.com>
12211 Norbert Lange <nolange79@gmail.com>
12212
12213 PR build/24805
12214 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12215 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12216 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12217 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12218 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12219 (ps_plog): Redeclare exported functions with default visibility.
12220
12221 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12222
12223 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12224 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12225
12226 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12227
12228 * infcmd.c (post_create_inferior): Use get_thread_regcache
12229 instead of get_current_regcache.
12230
12231 2020-01-14 Tom Tromey <tom@tromey.com>
12232
12233 PR symtab/12535:
12234 * python/python.c (gdbpy_decode_line): Treat empty string the same
12235 as no argument.
12236
12237 2020-01-14 Tom Tromey <tom@tromey.com>
12238
12239 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12240
12241 2020-01-14 Tom Tromey <tom@tromey.com>
12242
12243 * nat/linux-btrace.c: Don't include <config.h>.
12244 * nat/linux-ptrace.c: Don't include <config.h>.
12245 * nat/x86-linux-dregs.c: Don't include <config.h>.
12246
12247 2020-01-14 Tom Tromey <tom@tromey.com>
12248
12249 * configure: Rebuild.
12250 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12251
12252 2020-01-14 Tom Tromey <tom@tromey.com>
12253
12254 * nat/x86-linux-dregs.c: Include configh.h.
12255 * nat/linux-ptrace.c: Include configh.h.
12256 * nat/linux-btrace.c: Include configh.h.
12257 * defs.h: Include config.h, bfd.h.
12258 * configure.ac: Don't source common.host.
12259 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12260 * configure: Rebuild.
12261 * acinclude.m4: Update path.
12262 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12263 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12264 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12265 (CLIBS): Add LIBSUPPORT.
12266 (CDEPS): Likewise.
12267 (COMMON_SFILES): Remove gdbsupport files.
12268 (HFILES_NO_SRCDIR): Likewise.
12269 (stamp-version): Update path to create-version.sh.
12270 (ALLDEPFILES): Remove gdbsupport files.
12271
12272 2020-01-14 Tom Tromey <tom@tromey.com>
12273
12274 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12275 USE_WIN32API when needed.
12276 * configure.ac (USE_WIN32API): Don't define.
12277 (WIN32LIBS): Use WIN32APILIBS.
12278 * configure: Rebuild.
12279
12280 2020-01-14 Tom Tromey <tom@tromey.com>
12281
12282 * configure: Rebuild.
12283 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12284
12285 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12286
12287 * skip.c (skip_function_command): Make skip w/o arguments use the
12288 name of the inlined function if pc is inside any inlined function.
12289
12290 2020-01-14 Luis Machado <luis.machado@linaro.org>
12291
12292 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12293 * infrun.c (resume_1): Likewise.
12294 (handle_inferior_event): Remove stale comment.
12295 * linux-nat.c (linux_nat_target::resume): Update comments.
12296 (save_stop_reason): Likewise.
12297 (linux_nat_filter_event): Likewise.
12298 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12299
12300 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12301
12302 * elfread.c (record_minimal_symbol): Set section index to 0 for
12303 non-allocatable sections.
12304
12305
12306 2020-01-13 Ali Tamur <tamur@google.com>
12307
12308 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12309 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12310 to gdb::optional. Update comments.
12311 (dwo_file): Update comments.
12312 (read_attribute): Update API to take an additional out parameter,
12313 need_reprocess. This is used to mark attributes that need other
12314 attributes (e.g. str_offsets_base) for correct computation which may not
12315 have been read yet.
12316 (read_attribute_reprocess): New function declaration.
12317 (read_addr_index): Likewise.
12318 (read_dwo_str_index): Likewise.
12319 (read_stub_str_index): Likewise.
12320 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12321 (lookup_addr_base): New function definition.
12322 (lookup_ranges_base): Likewise.
12323 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12324 lookup_ranges_base.
12325 (init_cutu_and_read_dies): Update comments.
12326 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12327 unit. This is used to inherit parent's str_offsets_base and addr_base.
12328 Update comments.
12329 (init_cutu_and_read_dies_simple): Reflect API changes.
12330 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12331 (create_cus_hash_table): Change API to take parent compile unit.
12332 Reflect API changes.
12333 (open_and_init_dwo_file): Reflect API changes.
12334 (dwarf2_get_pc_bounds): Update comments.
12335 (dwarf2_record_block_ranges): Likewise.
12336 (read_full_die_1): Change implementation to reprocess attributes that
12337 need str_offsets_base and addr_base.
12338 (partial_die_info::read): Likewise.
12339 (read_attribute_reprocess): New function definition.
12340 (read_attribute_value): Change API to take an additional out parameter,
12341 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12342 when a non-dwo compile unit has index based attributes.
12343 (read_attribute): Reflect API changes.
12344 (read_addr_index_1): Reflect API changes. Update comments.
12345 (dwarf2_read_addr_index_data): Reflect API changes.
12346 (dwarf2_read_addr_index): Likewise.
12347 (read_str_index): Change API and implementation. This becomes a helper
12348 to be used by the new string index related methods. Update error
12349 message and comments.
12350 (read_dwo_str_index): New function definition.
12351 (read_stub_str_index): Likewise.
12352 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12353 * symfile.h (dwarf2_debug_sections): Likewise.
12354 * xcoffread.c (dwarf2_debug_sections): Likewise.
12355
12356 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12357
12358 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12359 core_reg_sect type to gdb_byte *.
12360 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12361 * cris-tdep.c (fetch_core_registers): Likewise.
12362 * corelow.c (core_target::get_core_register_section): Change
12363 type of `contents` to gdb::byte_vector.
12364
12365 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12366
12367 * tui/tui-wingeneral.c (box_win): Position the title in the center
12368 of the border.
12369
12370 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12371
12372 * corelow.c (core_target::get_core_register_section): Use
12373 std::vector instead of alloca.
12374
12375 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12376
12377 * warning.m4: Add -Wmissing-declarations to build_warnings.
12378 * configure: Re-generate.
12379
12380 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12381
12382 * python/python.c (init__gdb_module): Add declaration.
12383
12384 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12385
12386 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12387 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12388 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12389 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12390 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12391 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12392 * ada-exp.y (_initialize_ada_exp): Add declaration.
12393 * ada-lang.c (_initialize_ada_language): Add declaration.
12394 * ada-tasks.c (_initialize_tasks): Add declaration.
12395 * agent.c (_initialize_agent): Add declaration.
12396 * aix-thread.c (_initialize_aix_thread): Add declaration.
12397 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12398 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12399 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12400 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12401 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12402 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12403 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12404 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12405 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12406 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12407 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12408 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12409 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12410 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12411 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12412 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12413 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12414 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12415 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12416 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12417 * annotate.c (_initialize_annotate): Add declaration.
12418 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12419 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12420 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12421 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12422 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12423 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12424 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12425 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12426 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12427 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12428 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12429 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12430 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12431 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12432 * auto-load.c (_initialize_auto_load): Add declaration.
12433 * auxv.c (_initialize_auxv): Add declaration.
12434 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12435 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12436 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12437 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12438 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12439 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12440 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12441 * breakpoint.c (_initialize_breakpoint): Add declaration.
12442 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12443 * btrace.c (_initialize_btrace): Add declaration.
12444 * charset.c (_initialize_charset): Add declaration.
12445 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12446 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12447 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12448 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12449 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12450 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12451 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12452 * coffread.c (_initialize_coffread): Add declaration.
12453 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12454 * compile/compile.c (_initialize_compile): Add declaration.
12455 * complaints.c (_initialize_complaints): Add declaration.
12456 * completer.c (_initialize_completer): Add declaration.
12457 * copying.c (_initialize_copying): Add declaration.
12458 * corefile.c (_initialize_core): Add declaration.
12459 * corelow.c (_initialize_corelow): Add declaration.
12460 * cp-abi.c (_initialize_cp_abi): Add declaration.
12461 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12462 * cp-support.c (_initialize_cp_support): Add declaration.
12463 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12464 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12465 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12466 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12467 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12468 * ctfread.c (_initialize_ctfread): Add declaration.
12469 * d-lang.c (_initialize_d_language): Add declaration.
12470 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12471 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12472 * dbxread.c (_initialize_dbxread): Add declaration.
12473 * dcache.c (_initialize_dcache): Add declaration.
12474 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12475 * disasm.c (_initialize_disasm): Add declaration.
12476 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12477 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12478 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12479 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12480 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12481 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12482 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12483 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12484 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12485 * elfread.c (_initialize_elfread): Add declaration.
12486 * exec.c (_initialize_exec): Add declaration.
12487 * extension.c (_initialize_extension): Add declaration.
12488 * f-lang.c (_initialize_f_language): Add declaration.
12489 * f-valprint.c (_initialize_f_valprint): Add declaration.
12490 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12491 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12492 * filesystem.c (_initialize_filesystem): Add declaration.
12493 * findcmd.c (_initialize_mem_search): Add declaration.
12494 * findvar.c (_initialize_findvar): Add declaration.
12495 * fork-child.c (_initialize_fork_child): Add declaration.
12496 * frame-base.c (_initialize_frame_base): Add declaration.
12497 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12498 * frame.c (_initialize_frame): Add declaration.
12499 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12500 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12501 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12502 * gcore.c (_initialize_gcore): Add declaration.
12503 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12504 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12505 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12506 * gdbarch.c (_initialize_gdbarch): Add declaration.
12507 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12508 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12509 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12510 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12511 * go-lang.c (_initialize_go_language): Add declaration.
12512 * go32-nat.c (_initialize_go32_nat): Add declaration.
12513 * guile/guile.c (_initialize_guile): Add declaration.
12514 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12515 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12516 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12517 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12518 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12519 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12520 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12521 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12522 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12523 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12524 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12525 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12526 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12527 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12528 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12529 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12530 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12531 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12532 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12533 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12534 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12535 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12536 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12537 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12538 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12539 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12540 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12541 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12542 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12543 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12544 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12545 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12546 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12547 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12548 * infcall.c (_initialize_infcall): Add declaration.
12549 * infcmd.c (_initialize_infcmd): Add declaration.
12550 * inflow.c (_initialize_inflow): Add declaration.
12551 * infrun.c (_initialize_infrun): Add declaration.
12552 * interps.c (_initialize_interpreter): Add declaration.
12553 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12554 * jit.c (_initialize_jit): Add declaration.
12555 * language.c (_initialize_language): Add declaration.
12556 * linux-fork.c (_initialize_linux_fork): Add declaration.
12557 * linux-nat.c (_initialize_linux_nat): Add declaration.
12558 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12559 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12560 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12561 * m2-lang.c (_initialize_m2_language): Add declaration.
12562 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12563 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12564 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12565 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12566 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12567 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12568 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12569 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12570 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12571 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12572 * machoread.c (_initialize_machoread): Add declaration.
12573 * macrocmd.c (_initialize_macrocmd): Add declaration.
12574 * macroscope.c (_initialize_macroscope): Add declaration.
12575 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12576 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12577 * maint.c (_initialize_maint_cmds): Add declaration.
12578 * mdebugread.c (_initialize_mdebugread): Add declaration.
12579 * memattr.c (_initialize_mem): Add declaration.
12580 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12581 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12582 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12583 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12584 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12585 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12586 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12587 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12588 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12589 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12590 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12591 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12592 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12593 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12594 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12595 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12596 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12597 * mipsread.c (_initialize_mipsread): Add declaration.
12598 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12599 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12600 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12601 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12602 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12603 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12604 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12605 * nto-procfs.c (_initialize_procfs): Add declaration.
12606 * objc-lang.c (_initialize_objc_language): Add declaration.
12607 * observable.c (_initialize_observer): Add declaration.
12608 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12609 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12610 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12611 * osabi.c (_initialize_gdb_osabi): Add declaration.
12612 * osdata.c (_initialize_osdata): Add declaration.
12613 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12614 * parse.c (_initialize_parse): Add declaration.
12615 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12616 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12617 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12618 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12619 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12620 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12621 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12622 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12623 * printcmd.c (_initialize_printcmd): Add declaration.
12624 * probe.c (_initialize_probe): Add declaration.
12625 * proc-api.c (_initialize_proc_api): Add declaration.
12626 * proc-events.c (_initialize_proc_events): Add declaration.
12627 * proc-service.c (_initialize_proc_service): Add declaration.
12628 * procfs.c (_initialize_procfs): Add declaration.
12629 * producer.c (_initialize_producer): Add declaration.
12630 * psymtab.c (_initialize_psymtab): Add declaration.
12631 * python/python.c (_initialize_python): Add declaration.
12632 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12633 * record-btrace.c (_initialize_record_btrace): Add declaration.
12634 * record-full.c (_initialize_record_full): Add declaration.
12635 * record.c (_initialize_record): Add declaration.
12636 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12637 * regcache.c (_initialize_regcache): Add declaration.
12638 * reggroups.c (_initialize_reggroup): Add declaration.
12639 * remote-notif.c (_initialize_notif): Add declaration.
12640 * remote-sim.c (_initialize_remote_sim): Add declaration.
12641 * remote.c (_initialize_remote): Add declaration.
12642 * reverse.c (_initialize_reverse): Add declaration.
12643 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12644 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12645 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12646 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12647 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12648 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12649 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12650 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12651 Add declaration.
12652 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12653 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12654 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12655 * rust-exp.y (_initialize_rust_exp): Add declaration.
12656 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12657 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12658 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12659 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12660 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12661 * score-tdep.c (_initialize_score_tdep): Add declaration.
12662 * ser-go32.c (_initialize_ser_dos): Add declaration.
12663 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12664 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12665 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12666 * ser-uds.c (_initialize_ser_socket): Add declaration.
12667 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12668 * serial.c (_initialize_serial): Add declaration.
12669 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12670 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12671 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12672 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12673 * skip.c (_initialize_step_skip): Add declaration.
12674 * sol-thread.c (_initialize_sol_thread): Add declaration.
12675 * solib-aix.c (_initialize_solib_aix): Add declaration.
12676 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12677 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12678 * solib-frv.c (_initialize_frv_solib): Add declaration.
12679 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12680 * solib-target.c (_initialize_solib_target): Add declaration.
12681 * solib.c (_initialize_solib): Add declaration.
12682 * source-cache.c (_initialize_source_cache): Add declaration.
12683 * source.c (_initialize_source): Add declaration.
12684 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12685 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12686 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12687 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12688 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12689 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12690 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12691 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12692 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12693 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12694 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12695 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12696 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12697 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12698 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12699 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12700 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12701 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12702 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12703 * stabsread.c (_initialize_stabsread): Add declaration.
12704 * stack.c (_initialize_stack): Add declaration.
12705 * stap-probe.c (_initialize_stap_probe): Add declaration.
12706 * std-regs.c (_initialize_frame_reg): Add declaration.
12707 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12708 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12709 * symfile.c (_initialize_symfile): Add declaration.
12710 * symmisc.c (_initialize_symmisc): Add declaration.
12711 * symtab.c (_initialize_symtab): Add declaration.
12712 * target.c (_initialize_target): Add declaration.
12713 * target-connection.c (_initialize_target_connection): Add
12714 declaration.
12715 * target-dcache.c (_initialize_target_dcache): Add declaration.
12716 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12717 * thread.c (_initialize_thread): Add declaration.
12718 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12719 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12720 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12721 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12722 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12723 * tracectf.c (_initialize_ctf): Add declaration.
12724 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12725 * tracefile.c (_initialize_tracefile): Add declaration.
12726 * tracepoint.c (_initialize_tracepoint): Add declaration.
12727 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12728 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12729 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12730 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12731 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12732 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12733 * tui/tui.c (_initialize_tui): Add declaration.
12734 * typeprint.c (_initialize_typeprint): Add declaration.
12735 * ui-style.c (_initialize_ui_style): Add declaration.
12736 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12737 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12738 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12739 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12740 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12741 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12742 * unittests/filtered_iterator-selftests.c
12743 (_initialize_filtered_iterator_selftests): Add declaration.
12744 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12745 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12746 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12747 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12748 * unittests/main-thread-selftests.c
12749 (_initialize_main_thread_selftests): Add declaration.
12750 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12751 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12752 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12753 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12754 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12755 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12756 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12757 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12758 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12759 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12760 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12761 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12762 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12763 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12764 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12765 declaration.
12766 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12767 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12768 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12769 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12770 * user-regs.c (_initialize_user_regs): Add declaration.
12771 * utils.c (_initialize_utils): Add declaration.
12772 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12773 * valops.c (_initialize_valops): Add declaration.
12774 * valprint.c (_initialize_valprint): Add declaration.
12775 * value.c (_initialize_values): Add declaration.
12776 * varobj.c (_initialize_varobj): Add declaration.
12777 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12778 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12779 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12780 * windows-nat.c (_initialize_windows_nat): Add declaration.
12781 (_initialize_check_for_gdb_ini): Add declaration.
12782 (_initialize_loadable): Add declaration.
12783 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12784 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12785 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12786 * xcoffread.c (_initialize_xcoffread): Add declaration.
12787 * xml-support.c (_initialize_xml_support): Add declaration.
12788 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12789 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12790 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12791 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12792
12793 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12794
12795 * regformats/regdat.sh: Generate declaration for init function.
12796
12797 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12798
12799 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12800 up.
12801 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12802 close_one_inferior>: New methods.
12803 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12804 pass down target to find_inferior_pid.
12805 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12806 Pass down target to find_inferior_ptid.
12807 (gdbsim_target::create_inferior): Pass down target to
12808 add_thread_silent.
12809 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12810 target down to find_inferior_ptid and switch_to_thread.
12811 (gdbsim_target::close): Update to call close_one_inferior.
12812 (struct resume_data): Remove.
12813 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12814 directly, rather than through a void pointer.
12815 (gdbsim_target::resume): Update to call resume_one_inferior.
12816
12817 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12818
12819 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12820
12821 2020-01-12 Pedro Alves <palves@redhat.com>
12822
12823 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12824 directly for the current inferior instead of
12825 discard_all_inferiors.
12826 (discard_all_inferiors): Delete.
12827
12828 2020-01-11 Tom Tromey <tom@tromey.com>
12829
12830 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12831 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12832 deprecated_safe_get_selected_frame.
12833
12834 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12835
12836 * inferior.c (print_inferior): Switch inferior before printing it.
12837
12838 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12839 Pedro Alves <palves@redhat.com>
12840
12841 * progspace-and-thread.c (switch_to_program_space_and_thread):
12842 Assert there's an inferior for PSPACE. Use
12843 switch_to_inferior_no_thread to switch the inferior too.
12844 * progspace.c (program_space::~program_space): Call
12845 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12846 (program_space::free_all_objfiles): Don't call clear_symtab_users
12847 here.
12848 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12849
12850 2020-01-10 Pedro Alves <palves@redhat.com>
12851
12852 * NEWS: Mention multi-target debugging, "info connections", and
12853 "add-inferior -no-connection".
12854
12855 2020-01-10 Pedro Alves <palves@redhat.com>
12856
12857 * infrun.c: Include "target-connection.h".
12858 (check_multi_target_resumption): New.
12859 (proceed): Call it.
12860 * target-connection.c (make_target_connection_string): Make
12861 extern.
12862 * target-connection.h (make_target_connection_string): Declare.
12863
12864 2020-01-10 Pedro Alves <palves@redhat.com>
12865
12866 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12867 * inferior.c (uiout_field_connection): New function.
12868 (print_inferior): Add new "connection-id" column.
12869 (add_inferior_command): Show connection number/string of added
12870 inferior.
12871 * process-stratum-target.h
12872 (process_stratum_target::connection_string): New virtual method.
12873 (process_stratum_target::connection_number): New field.
12874 * remote.c (remote_target::connection_string): New override.
12875 * target-connection.c: New file.
12876 * target-connection.h: New file.
12877 * target.c (decref_target): Remove process_stratum targets from
12878 the connection list.
12879 (target_stack::push): Add process_stratum targets to the
12880 connection list.
12881
12882 2020-01-10 Pedro Alves <palves@redhat.com>
12883
12884 Revert:
12885 2016-04-12 Pedro Alves <palves@redhat.com>
12886 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12887 Remove references to name.
12888 * serial.h (struct serial) <name>: Delete.
12889
12890 2020-01-10 Pedro Alves <palves@redhat.com>
12891
12892 * gdbarch-selftests.c (register_to_value_test): Remove "target
12893 already pushed" check.
12894
12895 2020-01-10 Pedro Alves <palves@redhat.com>
12896 John Baldwin <jhb@FreeBSD.org>
12897
12898 * aarch64-linux-nat.c
12899 (aarch64_linux_nat_target::thread_architecture): Adjust.
12900 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12901 (task_command_1): Likewise.
12902 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12903 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12904 (aix_thread_target::store_registers)
12905 (aix_thread_target::thread_alive): Adjust.
12906 * amd64-fbsd-tdep.c: Include "inferior.h".
12907 (amd64fbsd_get_thread_local_address): Pass down target.
12908 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12909 thread's gdbarch instead of target_gdbarch.
12910 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12911 get_last_target_status.
12912 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12913 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12914 inferiors.
12915 (update_inserted_breakpoint_locations): Skip if inferiors with no
12916 execution.
12917 (update_global_location_list): When handling moribund locations,
12918 find representative inferior for location's pspace, and use thread
12919 count of its process_stratum target.
12920 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12921 * bsd-uthread.c (bsd_uthread_target::wait): Use
12922 as_process_stratum_target and adjust thread_change_ptid and
12923 add_thread calls.
12924 (bsd_uthread_target::update_thread_list): Use
12925 as_process_stratum_target and adjust find_thread_ptid,
12926 thread_change_ptid and add_thread calls.
12927 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12928 find_thread_ptid call.
12929 * corelow.c (add_to_thread_list): Adjust add_thread call.
12930 (core_target_open): Adjust add_thread_silent and thread_count
12931 calls.
12932 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12933 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12934 * event-top.c (async_disconnect): Pop targets from all inferiors.
12935 * exec.c (add_target_sections): Push exec target on all inferiors
12936 sharing the program space.
12937 (remove_target_sections): Remove the exec target from all
12938 inferiors sharing the program space.
12939 (exec_on_vfork): New.
12940 * exec.h (exec_on_vfork): Declare.
12941 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12942 Pass it down.
12943 (fbsd_nat_target::update_thread_list): Adjust.
12944 (fbsd_nat_target::resume): Adjust.
12945 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12946 down.
12947 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12948 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12949 get_thread_arch_regcache call.
12950 * fork-child.c (gdb_startup_inferior): Pass target down to
12951 startup_inferior and set_executing.
12952 * gdbthread.h (struct process_stratum_target): Forward declare.
12953 (add_thread, add_thread_silent, add_thread_with_info)
12954 (in_thread_list): Add process_stratum_target parameter.
12955 (find_thread_ptid(inferior*, ptid_t)): New overload.
12956 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12957 parameter.
12958 (all_threads()): Delete overload.
12959 (all_threads, all_non_exited_threads): Add process_stratum_target
12960 parameter.
12961 (all_threads_safe): Use brace initialization.
12962 (thread_count): Add process_stratum_target parameter.
12963 (set_resumed, set_running, set_stop_requested, set_executing)
12964 (threads_are_executing, finish_thread_state): Add
12965 process_stratum_target parameter.
12966 (switch_to_thread): Use is_current_thread.
12967 * i386-fbsd-tdep.c: Include "inferior.h".
12968 (i386fbsd_get_thread_local_address): Pass down target.
12969 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12970 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12971 have_inferiors check.
12972 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12973 (inf_ptrace_target::attach): Adjust.
12974 * infcall.c (run_inferior_call): Adjust.
12975 * infcmd.c (run_command_1): Pass target to
12976 scoped_finish_thread_state.
12977 (proceed_thread_callback): Skip inferiors with no execution.
12978 (continue_command): Rename 'all_threads' local to avoid hiding
12979 'all_threads' function. Adjust get_last_target_status call.
12980 (prepare_one_step): Adjust set_running call.
12981 (signal_command): Use user_visible_resume_target. Compare thread
12982 pointers instead of inferior_ptid.
12983 (info_program_command): Adjust to pass down target.
12984 (attach_command): Mark target's 'thread_executing' flag.
12985 (stop_current_target_threads_ns): New, factored out from ...
12986 (interrupt_target_1): ... this. Switch inferior before making
12987 target calls.
12988 * inferior-iter.h
12989 (struct all_inferiors_iterator, struct all_inferiors_range)
12990 (struct all_inferiors_safe_range)
12991 (struct all_non_exited_inferiors_range): Filter on
12992 process_stratum_target too. Remove explicit.
12993 * inferior.c (inferior::inferior): Push dummy target on target
12994 stack.
12995 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12996 Add process_stratum_target parameter, and pass it down.
12997 (have_live_inferiors): Adjust.
12998 (switch_to_inferior_and_push_target): New.
12999 (add_inferior_command, clone_inferior_command): Handle
13000 "-no-connection" parameter. Use
13001 switch_to_inferior_and_push_target.
13002 (_initialize_inferior): Mention "-no-connection" option in
13003 the help of "add-inferior" and "clone-inferior" commands.
13004 * inferior.h: Include "process-stratum-target.h".
13005 (interrupt_target_1): Use bool.
13006 (struct inferior) <push_target, unpush_target, target_is_pushed,
13007 find_target_beneath, top_target, process_target, target_at,
13008 m_stack>: New.
13009 (discard_all_inferiors): Delete.
13010 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13011 (all_inferiors, all_non_exited_inferiors): Add
13012 process_stratum_target parameter.
13013 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13014 (target_last_proc_target): New global.
13015 (follow_fork_inferior): Push target on new inferior. Pass target
13016 to add_thread_silent. Call exec_on_vfork. Handle target's
13017 reference count.
13018 (follow_fork): Adjust get_last_target_status call. Also consider
13019 target.
13020 (follow_exec): Push target on new inferior.
13021 (struct execution_control_state) <target>: New field.
13022 (user_visible_resume_target): New.
13023 (do_target_resume): Call target_async.
13024 (resume_1): Set target's threads_executing flag. Consider resume
13025 target.
13026 (commit_resume_all_targets): New.
13027 (proceed): Also consider resume target. Skip threads of inferiors
13028 with no execution. Commit resumtion in all targets.
13029 (start_remote): Pass current inferior to wait_for_inferior.
13030 (infrun_thread_stop_requested): Consider target as well. Pass
13031 thread_info pointer to clear_inline_frame_state instead of ptid.
13032 (infrun_thread_thread_exit): Consider target as well.
13033 (random_pending_event_thread): New inferior parameter. Use it.
13034 (do_target_wait): Rename to ...
13035 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13036 down.
13037 (threads_are_resumed_pending_p, do_target_wait): New.
13038 (prepare_for_detach): Adjust calls.
13039 (wait_for_inferior): New inferior parameter. Handle it. Use
13040 do_target_wait_1 instead of do_target_wait.
13041 (fetch_inferior_event): Adjust. Switch to representative
13042 inferior. Pass target down.
13043 (set_last_target_status): Add process_stratum_target parameter.
13044 Save target in global.
13045 (get_last_target_status): Add process_stratum_target parameter and
13046 handle it.
13047 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13048 (context_switch): Check inferior_ptid == null_ptid before calling
13049 inferior_thread().
13050 (get_inferior_stop_soon): Pass down target.
13051 (wait_one): Rename to ...
13052 (poll_one_curr_target): ... this.
13053 (struct wait_one_event): New.
13054 (wait_one): New.
13055 (stop_all_threads): Adjust.
13056 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13057 event's target.
13058 (switch_back_to_stepped_thread): Also consider target.
13059 (print_stop_event): Update.
13060 (normal_stop): Update. Also consider the resume target.
13061 * infrun.h (wait_for_inferior): Remove declaration.
13062 (user_visible_resume_target): New declaration.
13063 (get_last_target_status, set_last_target_status): New
13064 process_stratum_target parameter.
13065 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13066 process_stratum_target parameter, and use it.
13067 (clear_inline_frame_state (thread_info*)): New.
13068 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13069 process_stratum_target parameter.
13070 (clear_inline_frame_state (thread_info*)): Declare.
13071 * linux-fork.c (delete_checkpoint_command): Pass target down to
13072 find_thread_ptid.
13073 (checkpoint_command): Adjust.
13074 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13075 instead of just tweaking inferior_ptid.
13076 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13077 (exit_lwp): Pass target down to find_thread_ptid.
13078 (attach_proc_task_lwp_callback): Pass target down to
13079 add_thread/set_running/set_executing.
13080 (linux_nat_target::attach): Pass target down to
13081 thread_change_ptid.
13082 (get_detach_signal): Pass target down to find_thread_ptid.
13083 Consider last target status's target.
13084 (linux_resume_one_lwp_throw, resume_lwp)
13085 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13086 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13087 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13088 (linux_nat_target::async_wait_fd): New.
13089 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13090 target down.
13091 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13092 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13093 * linux-thread-db.c (struct thread_db_info::process_target): New
13094 field.
13095 (add_thread_db_info): Save target.
13096 (get_thread_db_info): New process_stratum_target parameter. Also
13097 match target.
13098 (delete_thread_db_info): New process_stratum_target parameter.
13099 Also match target.
13100 (thread_from_lwp): Adjust to pass down target.
13101 (thread_db_notice_clone): Pass down target.
13102 (check_thread_db_callback): Pass down target.
13103 (try_thread_db_load_1): Always push the thread_db target.
13104 (try_thread_db_load, record_thread): Pass target down.
13105 (thread_db_target::detach): Pass target down. Always unpush the
13106 thread_db target.
13107 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13108 target down. Always unpush the thread_db target.
13109 (find_new_threads_callback, thread_db_find_new_threads_2)
13110 (thread_db_target::update_thread_list): Pass target down.
13111 (thread_db_target::pid_to_str): Pass current inferior down.
13112 (thread_db_target::get_thread_local_address): Pass target down.
13113 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13114 target down.
13115 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13116 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13117 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13118 (procfs_init_inferior): Rename to ...
13119 (procfs_target::procfs_init_inferior): ... this and adjust.
13120 (procfs_target::create_inferior, procfs_notice_thread)
13121 (procfs_do_thread_registers): Adjust.
13122 * ppc-fbsd-tdep.c: Include "inferior.h".
13123 (ppcfbsd_get_thread_local_address): Pass down target.
13124 * proc-service.c (ps_xfer_memory): Switch current inferior and
13125 program space as well.
13126 (get_ps_regcache): Pass target down.
13127 * process-stratum-target.c
13128 (process_stratum_target::thread_address_space)
13129 (process_stratum_target::thread_architecture): Pass target down.
13130 * process-stratum-target.h
13131 (process_stratum_target::threads_executing): New field.
13132 (as_process_stratum_target): New.
13133 * ravenscar-thread.c
13134 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13135 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13136 down.
13137 * record-btrace.c (record_btrace_target::info_record): Adjust.
13138 (record_btrace_target::record_method)
13139 (record_btrace_target::record_is_replaying)
13140 (record_btrace_target::fetch_registers)
13141 (get_thread_current_frame_id, record_btrace_target::resume)
13142 (record_btrace_target::wait, record_btrace_target::stop): Pass
13143 target down.
13144 * record-full.c (record_full_wait_1): Switch to event thread.
13145 Pass target down.
13146 * regcache.c (regcache::regcache)
13147 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13148 process_stratum_target parameter and handle it.
13149 (current_thread_target): New global.
13150 (get_thread_regcache): Add process_stratum_target parameter and
13151 handle it. Switch inferior before calling target method.
13152 (get_thread_regcache): Pass target down.
13153 (get_thread_regcache_for_ptid): Pass target down.
13154 (registers_changed_ptid): Add process_stratum_target parameter and
13155 handle it.
13156 (registers_changed_thread, registers_changed): Pass target down.
13157 (test_get_thread_arch_aspace_regcache): New.
13158 (current_regcache_test): Define a couple local test_target_ops
13159 instances and use them for testing.
13160 (readwrite_regcache): Pass process_stratum_target parameter.
13161 (cooked_read_test, cooked_write_test): Pass mock_target down.
13162 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13163 (get_thread_arch_aspace_regcache): Add process_stratum_target
13164 parameter.
13165 (regcache::target): New method.
13166 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13167 (regcache::registers_changed_ptid): Add process_stratum_target
13168 parameter.
13169 (regcache::m_target): New field.
13170 (registers_changed_ptid): Add process_stratum_target parameter.
13171 * remote.c (remote_state::supports_vCont_probed): New field.
13172 (remote_target::async_wait_fd): New method.
13173 (remote_unpush_and_throw): Add remote_target parameter.
13174 (get_current_remote_target): Adjust.
13175 (remote_target::remote_add_inferior): Push target.
13176 (remote_target::remote_add_thread)
13177 (remote_target::remote_notice_new_inferior)
13178 (get_remote_thread_info): Pass target down.
13179 (remote_target::update_thread_list): Skip threads of inferiors
13180 bound to other targets. (remote_target::close): Don't discard
13181 inferiors. (remote_target::add_current_inferior_and_thread)
13182 (remote_target::process_initial_stop_replies)
13183 (remote_target::start_remote)
13184 (remote_target::remote_serial_quit_handler): Pass down target.
13185 (remote_target::remote_unpush_target): New remote_target
13186 parameter. Unpush the target from all inferiors.
13187 (remote_target::remote_unpush_and_throw): New remote_target
13188 parameter. Pass it down.
13189 (remote_target::open_1): Check whether the current inferior has
13190 execution instead of checking whether any inferior is live. Pass
13191 target down.
13192 (remote_target::remote_detach_1): Pass down target. Use
13193 remote_unpush_target.
13194 (extended_remote_target::attach): Pass down target.
13195 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13196 (remote_target::append_resumption): Pass down target.
13197 (remote_target::append_pending_thread_resumptions)
13198 (remote_target::remote_resume_with_hc, remote_target::resume)
13199 (remote_target::commit_resume): Pass down target.
13200 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13201 (remote_target::interrupt_query)
13202 (remote_target::remove_new_fork_children)
13203 (remote_target::check_pending_events_prevent_wildcard_vcont)
13204 (remote_target::remote_parse_stop_reply)
13205 (remote_target::process_stop_reply): Pass down target.
13206 (first_remote_resumed_thread): New remote_target parameter. Pass
13207 it down.
13208 (remote_target::wait_as): Pass down target.
13209 (unpush_and_perror): New remote_target parameter. Pass it down.
13210 (remote_target::readchar, remote_target::remote_serial_write)
13211 (remote_target::getpkt_or_notif_sane_1)
13212 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13213 down target.
13214 (remote_target::mourn_inferior): Pass down target. Use
13215 remote_unpush_target.
13216 (remote_target::core_of_thread)
13217 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13218 (remote_target::pid_to_exec_file)
13219 (remote_target::thread_handle_to_thread_info): Pass down target.
13220 (remote_target::async_wait_fd): New.
13221 * riscv-fbsd-tdep.c: Include "inferior.h".
13222 (riscv_fbsd_get_thread_local_address): Pass down target.
13223 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13224 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13225 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13226 Adjust.
13227 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13228 * solib-svr4.c (enable_break): Pass down target.
13229 * spu-multiarch.c (parse_spufs_run): Pass down target.
13230 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13231 * target-delegates.c: Regenerate.
13232 * target.c (g_target_stack): Delete.
13233 (current_top_target): Return the current inferior's top target.
13234 (target_has_execution_1): Refer to the passed-in inferior's top
13235 target.
13236 (target_supports_terminal_ours): Check whether the initial
13237 inferior was already created.
13238 (decref_target): New.
13239 (target_stack::push): Incref/decref the target.
13240 (push_target, push_target, unpush_target): Adjust.
13241 (target_stack::unpush): Defref target.
13242 (target_is_pushed): Return bool. Adjust to refer to the current
13243 inferior's target stack.
13244 (dispose_inferior): Delete, and inline parts ...
13245 (target_preopen): ... here. Only dispose of the current inferior.
13246 (target_detach): Hold strong target reference while detaching.
13247 Pass target down.
13248 (target_thread_name): Add assertion.
13249 (target_resume): Pass down target.
13250 (target_ops::beneath, find_target_at): Adjust to refer to the
13251 current inferior's target stack.
13252 (get_dummy_target): New.
13253 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13254 has a thread running.
13255 (initialize_targets): Rename to ...
13256 (_initialize_target): ... this.
13257 * target.h: Include "gdbsupport/refcounted-object.h".
13258 (struct target_ops): Inherit refcounted_object.
13259 (target_ops::shortname, target_ops::longname): Make const.
13260 (target_ops::async_wait_fd): New method.
13261 (decref_target): Declare.
13262 (struct target_ops_ref_policy): New.
13263 (target_ops_ref): New typedef.
13264 (get_dummy_target): Declare function.
13265 (target_is_pushed): Return bool.
13266 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13267 (all_matching_threads_iterator::all_matching_threads_iterator):
13268 Handle filter target.
13269 * thread-iter.h (struct all_matching_threads_iterator, struct
13270 all_matching_threads_range, class all_non_exited_threads_range):
13271 Filter by target too. Remove explicit.
13272 * thread.c (threads_executing): Delete.
13273 (inferior_thread): Pass down current inferior.
13274 (clear_thread_inferior_resources): Pass down thread pointer
13275 instead of ptid_t.
13276 (add_thread_silent, add_thread_with_info, add_thread): Add
13277 process_stratum_target parameter. Use it for thread and inferior
13278 searches.
13279 (is_current_thread): New.
13280 (thread_info::deletable): Use it.
13281 (find_thread_ptid, thread_count, in_thread_list)
13282 (thread_change_ptid, set_resumed, set_running): New
13283 process_stratum_target parameter. Pass it down.
13284 (set_executing): New process_stratum_target parameter. Pass it
13285 down. Adjust reference to 'threads_executing'.
13286 (threads_are_executing): New process_stratum_target parameter.
13287 Adjust reference to 'threads_executing'.
13288 (set_stop_requested, finish_thread_state): New
13289 process_stratum_target parameter. Pass it down.
13290 (switch_to_thread): Also match inferior.
13291 (switch_to_thread): New process_stratum_target parameter. Pass it
13292 down.
13293 (update_threads_executing): Reimplement.
13294 * top.c (quit_force): Pop targets from all inferior.
13295 (gdb_init): Don't call initialize_targets.
13296 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13297 Declare.
13298 (windows_add_thread, windows_delete_thread): Adjust.
13299 (get_windows_debug_event): Rename to ...
13300 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13301 * tracefile-tfile.c (tfile_target_open): Pass down target.
13302 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13303 Forward declare.
13304 (switch_to_thread): Add process_stratum_target parameter.
13305 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13306 parameter. Use it.
13307 (mi_on_resume): Pass target down.
13308 * nat/fork-inferior.c (startup_inferior): Add
13309 process_stratum_target parameter. Pass it down.
13310 * nat/fork-inferior.h (startup_inferior): Add
13311 process_stratum_target parameter.
13312 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13313
13314 2020-01-10 Pedro Alves <palves@redhat.com>
13315
13316 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13317 directly. Instead find the first thread in the thread list and
13318 use switch_to_thread.
13319
13320 2020-01-10 Pedro Alves <palves@redhat.com>
13321
13322 * remote.c (remote_target::remote_add_inferior): Don't bind a
13323 process to the current inferior if the current inferior is already
13324 bound to a process.
13325
13326 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13327 Pedro Alves <palves@redhat.com>
13328
13329 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13330 If no process is specified, return null_ptid instead of
13331 inferior_ptid.
13332 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13333 TARGET_WAITKIND_SIGNALLED with no pid.
13334
13335 2020-01-10 Pedro Alves <palves@redhat.com>
13336
13337 * remote.c (first_remote_resumed_thread): New.
13338 (remote_target::wait_as): Use it as default event_ptid instead of
13339 inferior_ptid.
13340
13341 2020-01-10 Pedro Alves <palves@redhat.com>
13342
13343 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13344
13345 2020-01-10 Pedro Alves <palves@redhat.com>
13346
13347 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13348 not -1.
13349
13350 2020-01-10 Pedro Alves <palves@redhat.com>
13351
13352 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13353 ptid to get_last_target_status.
13354 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13355 ptid to get_last_target_status.
13356 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13357 get_last_target_status.
13358 (info_program_command): Don't pass a target_waitstatus to
13359 get_last_target_status.
13360 * infrun.c (init_wait_for_inferior): Use
13361 nullify_last_target_wait_ptid.
13362 (get_last_target_status): Handle nullptr arguments.
13363 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13364 (print_stop_event): Don't pass a ptid to get_last_target_status.
13365 (normal_stop): Don't pass a ptid to get_last_target_status.
13366 * infrun.h (get_last_target_status, set_last_target_status): Move
13367 comments here and update.
13368 (nullify_last_target_wait_ptid): Declare.
13369 * linux-fork.c (fork_load_infrun_state): Remove local extern
13370 declaration of nullify_last_target_wait_ptid.
13371 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13372 to get_last_target_status.
13373
13374 2020-01-10 Pedro Alves <palves@redhat.com>
13375
13376 * gdbthread.h (scoped_restore_current_thread)
13377 <dont_restore, restore, m_dont_restore>: Declare.
13378 * thread.c (thread_alive): Add assertion. Return bool.
13379 (switch_to_thread_if_alive): New.
13380 (prune_threads): Switch inferior/thread.
13381 (print_thread_info_1): Switch thread before calling target methods.
13382 (scoped_restore_current_thread::restore): New, factored out from
13383 ...
13384 (scoped_restore_current_thread::~scoped_restore_current_thread):
13385 ... this.
13386 (scoped_restore_current_thread::scoped_restore_current_thread):
13387 Add assertion.
13388 (thread_apply_all_command, thread_select): Use
13389 switch_to_thread_if_alive.
13390 * infrun.c (proceed, restart_threads, handle_signal_stop)
13391 (switch_back_to_stepped_thread): Switch current thread before
13392 calling target methods.
13393
13394 2020-01-10 Pedro Alves <palves@redhat.com>
13395
13396 * inferior.c (switch_to_inferior_no_thread): New function,
13397 factored out from ...
13398 (inferior_command): ... here.
13399 * inferior.h (switch_to_inferior_no_thread): Declare.
13400 * mi/mi-main.c (run_one_inferior): Use
13401 switch_to_inferior_no_thread.
13402
13403 2020-01-10 Pedro Alves <palves@redhat.com>
13404
13405 * infcmd.c (kill_command): Remove dead code.
13406
13407 2020-01-10 Pedro Alves <palves@redhat.com>
13408
13409 * remote.c (remote_target::mourn_inferior): No longer check
13410 whether the target is running.
13411
13412 2020-01-10 Pedro Alves <palves@redhat.com>
13413
13414 * corelow.c (core_target::has_execution): Change parameter type to
13415 inferior pointer.
13416 * inferior.c (number_of_live_inferiors): Use
13417 inferior::has_execution instead of target_has_execution_1.
13418 * inferior.h (inferior::has_execution): New.
13419 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13420 inferior::has_execution instead of target_has_execution_1.
13421 * process-stratum-target.c
13422 (process_stratum_target::has_execution): Change parameter type to
13423 inferior pointer. Check the inferior's PID instead of
13424 inferior_ptid.
13425 * process-stratum-target.h
13426 (process_stratum_target::has_execution): Change parameter type to
13427 inferior pointer.
13428 * record-full.c (record_full_core_target::has_execution): Change
13429 parameter type to inferior pointer.
13430 * target.c (target_has_execution_1): Change parameter type to
13431 inferior pointer.
13432 (target_has_execution_current): Adjust.
13433 * target.h (target_ops::has_execution): Change parameter type to
13434 inferior pointer.
13435 (target_has_execution_1): Change parameter type to inferior
13436 pointer. Change return type to bool.
13437 * tracefile.h (tracefile_target::has_execution): Change parameter
13438 type to inferior pointer.
13439
13440 2020-01-10 Pedro Alves <palves@redhat.com>
13441
13442 * exceptions.c (print_flush): Remove current_top_target() check.
13443
13444 2020-01-10 Pedro Alves <palves@redhat.com>
13445
13446 * remote.c (show_remote_exec_file): Show the current inferior's
13447 exec-file instead of the command variable's value.
13448
13449 2020-01-10 Pedro Alves <palves@redhat.com>
13450
13451 * record-full.c (record_full_resume_ptid): New global.
13452 (record_full_target::resume): Set it.
13453 (record_full_wait_1): Use record_full_resume_ptid instead of
13454 inferior_ptid.
13455
13456 2020-01-10 Pedro Alves <palves@redhat.com>
13457
13458 * gdbthread.h (scoped_restore_current_thread)
13459 <dont_restore, restore, m_dont_restore>: Declare.
13460 * thread.c (thread_alive): Add assertion. Return bool.
13461 (switch_to_thread_if_alive): New.
13462 (prune_threads): Switch inferior/thread.
13463 (print_thread_info_1): Switch thread before calling target methods.
13464 (scoped_restore_current_thread::restore): New, factored out from
13465 ...
13466 (scoped_restore_current_thread::~scoped_restore_current_thread):
13467 ... this.
13468 (scoped_restore_current_thread::scoped_restore_current_thread):
13469 Add assertion.
13470 (thread_apply_all_command, thread_select): Use
13471 switch_to_thread_if_alive.
13472
13473 2020-01-10 George Barrett <bob@bob131.so>
13474
13475 * stap-probe.c (stap_modify_semaphore): Don't check for null
13476 semaphores.
13477 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13478 for null semaphores.
13479
13480 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13481
13482 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13483 all source windows, and maintain horizontal scroll status while
13484 doing so.
13485
13486 2020-01-09 Tom Tromey <tom@tromey.com>
13487
13488 PR tui/18932:
13489 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13490 update_source_window, not print_source_lines.
13491
13492 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13493
13494 * tui/tui.c (tui_enable): Register tui hooks after calling
13495 tui_display_main.
13496
13497 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13498
13499 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13500
13501 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13502
13503 * thread.c (print_thread_info_1): Fix indentation.
13504
13505 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13506
13507 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13508 unique_xmalloc_ptr outside the if to always free the demangled name.
13509
13510 2020-01-08 Tom Tromey <tromey@adacore.com>
13511
13512 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13513 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13514 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13515 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13516 Remove.
13517 (section_offsets): New typedef.
13518 * symtab.c (fixup_section, get_msymbol_address): Update.
13519 * symmisc.c (dump_msymbols): Update.
13520 * symfile.h (relative_addr_info_to_section_offsets)
13521 (symfile_map_offsets_to_segments): Update.
13522 * symfile.c (build_section_addr_info_from_objfile)
13523 (init_objfile_sect_indices): Update.
13524 (struct place_section_arg): Change type of "offsets".
13525 (place_section): Update.
13526 (relative_addr_info_to_section_offsets): Change type of
13527 "section_offsets". Remove "num_sections" parameter.
13528 (default_symfile_offsets, syms_from_objfile_1)
13529 (set_objfile_default_section_offset): Update.
13530 (reread_symbols): No need to preserve section offsets by hand.
13531 (symfile_map_offsets_to_segments): Change type of "offsets".
13532 * stap-probe.c (relocate_address): Update.
13533 * stabsread.h (process_one_symbol): Update.
13534 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13535 (solib_target_relocate_section_addresses): Update.
13536 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13537 Update.
13538 * solib-frv.c (frv_relocate_main_executable): Update.
13539 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13540 * solib-aix.c (solib_aix_get_section_offsets): Change return
13541 type.
13542 (solib_aix_solib_create_inferior_hook): Update.
13543 * remote.c (remote_target::get_offsets): Update.
13544 * psymtab.c (find_pc_sect_psymtab): Update.
13545 * psympriv.h (struct partial_symbol) <address, text_low,
13546 text_high>: Update.
13547 * objfiles.h (obj_section_offset): Update.
13548 (struct objfile) <section_offsets>: Change type.
13549 <num_sections>: Remove.
13550 (objfile_relocate): Update.
13551 * objfiles.c (entry_point_address_query): Update
13552 (relocate_one_symbol): Change type of "section_offsets".
13553 (objfile_relocate1, objfile_relocate1): Change type of
13554 "new_offsets".
13555 (objfile_rebase1): Update.
13556 * mipsread.c (mipscoff_symfile_read): Update.
13557 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13558 parameter.
13559 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13560 (parse_external, psymtab_to_symtab_1): Update.
13561 * machoread.c (macho_symfile_offsets): Update.
13562 * ia64-tdep.c (ia64_find_unwind_table): Update.
13563 * hppa-tdep.c (read_unwind_info): Update.
13564 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13565 * dwarf2read.c (create_addrmap_from_index)
13566 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13567 (process_psymtab_comp_unit_reader, add_partial_symbol)
13568 (add_partial_subprogram, process_full_comp_unit)
13569 (read_file_scope, read_func_scope, read_lexical_block_scope)
13570 (read_call_site_scope, dwarf2_rnglists_process)
13571 (dwarf2_ranges_process, dwarf2_ranges_read)
13572 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13573 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13574 Update.
13575 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13576 Update.
13577 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13578 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13579 (process_one_symbol): Change type of "section_offsets".
13580 * ctfread.c (get_objfile_text_range): Update.
13581 * coffread.c (coff_symtab_read, enter_linenos)
13582 (process_coff_symbol): Update.
13583 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13584 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13585
13586 2020-01-08 Tom Tromey <tromey@adacore.com>
13587
13588 * dwarf2read.c (parse_macro_definition): Use std::string.
13589 (parse_macro_definition): Likewise.
13590
13591 2020-01-08 Tom Tromey <tromey@adacore.com>
13592
13593 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13594 (ATTR_ALLOC_CHUNK): Remove.
13595
13596 2020-01-08 Tom Tromey <tromey@adacore.com>
13597
13598 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13599
13600 2020-01-08 Tom Tromey <tromey@adacore.com>
13601
13602 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13603 (dwarf2_compute_name, open_dwo_file): Likewise.
13604 (process_enumeration_scope): Use std::vector.
13605 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13606 (partial_die_info::fixup, dwarf2_start_subfile)
13607 (guess_full_die_structure_name, dwarf2_name): Likewise.
13608 (determine_prefix): Update.
13609 (guess_full_die_structure_name): Make return type const.
13610 (partial_die_full_name): Return unique_xmalloc_ptr.
13611 (DW_FIELD_ALLOC_CHUNK): Remove.
13612
13613 2020-01-07 Tom Tromey <tromey@adacore.com>
13614
13615 PR build/24937:
13616 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13617
13618 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13619
13620 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13621
13622 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13623
13624 * stack.c (print_frame_info): Move disassemble_next_line code
13625 inside source_print block.
13626
13627 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13628
13629 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13630 gdb/signals.h, as we are now using native signal symbols.
13631
13632 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13633
13634 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13635 overflow by an early check of content vs threshold.
13636 * tui/tui-source.c (tui_source_window::line_is_displayed):
13637 Likewise.
13638
13639 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13640
13641 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13642
13643 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13644
13645 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13646 export table if no section contains it's RVA.
13647
13648 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13649
13650 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13651
13652 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13653
13654 * source.c (print_source_lines_base): Set last_line_listed.
13655
13656 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13657
13658 * tui/tui-disasm.c: Remove trailing spaces.
13659
13660 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13661 Pedro Alves <palves@redhat.com>
13662
13663 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13664 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13665 (windows_gdb_signal_to_target): New function, uses the above
13666 enumeration to convert GDB internal signal codes to equivalent
13667 Windows codes.
13668 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13669 * windows-nat.c: Include "gdb_wait.h".
13670 (get_windows_debug_event): Extract the fatal exception from the
13671 exit status and convert to the equivalent Posix signal number.
13672 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13673 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13674 * gdbsupport/gdb_wait.c: New file, implements
13675 windows_status_to_termsig.
13676 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13677 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13678
13679 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13680
13681 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13682 show_layout.
13683
13684 2020-01-05 Luis Machado <luis.machado@linaro.org>
13685
13686 * aarch64-linux-nat.c
13687 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13688 and bfd_mach_aarch64.
13689
13690 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13691
13692 * ui-file.c (stdio_file::can_emit_style_escape)
13693 (tee_file::can_emit_style_escape): Ensure style is used also on
13694 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13695 to gdb_stdout.
13696 * main.c (set_gdb_data_directory): Use file style to output the
13697 warning that the given pathname is not a directory.
13698 * top.c (show_history_filename, gdb_safe_append_history)
13699 (show_gdb_datadir): Use file style.
13700
13701 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13702
13703 * solib-target.c (struct lm_info_target):
13704 Change offsets to be a unique_xmalloc_ptr.
13705 (solib_target_relocate_section_addresses): Update.
13706
13707 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13708
13709 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13710
13711 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13712
13713 * MAINTAINERS (Write After Approval): Add myself.
13714
13715 2020-01-02 Luis Machado <luis.machado@linaro.org>
13716
13717 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13718 Cell BE architecture.
13719 * target.h (struct target_ops) <thread_architecture>: Likewise.
13720
13721 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13722
13723 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13724
13725 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13726
13727 * MAINTAINERS (Write After Approval): Add myself.
13728
13729 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13730
13731 * gdbarch.sh: Update copyright year range of generated files.
13732
13733 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13734
13735 Update copyright year range in all GDB files.
13736
13737 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13738
13739 * copyright.py: Convert to Python 3.
13740
13741 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13742
13743 * copyright.py: Adapt after move of gnulib directory from gdb
13744 directory to toplevel directory.
13745
13746 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13747
13748 * copyright.py (main): Exit if run from the wrong directory.
13749
13750 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13751
13752 * top.c (print_gdb_version): Change copyright year to 2020.
13753
13754 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13755
13756 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13757
13758 For older changes see ChangeLog-2019.
13759 \f
13760 Local Variables:
13761 mode: change-log
13762 left-margin: 8
13763 fill-column: 74
13764 version-control: never
13765 coding: utf-8
13766 End:
This page took 0.291609 seconds and 5 git commands to generate.