]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: Convert language_data::la_exp_desc to a method
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5aba6ebe
AB
12020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4 (ada_language::expression_ops): New member function.
5 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
6 (c_language::expression_ops): New member function.
7 (cplus_language_data): Remove la_exp_desc initializer.
8 (cplus_language::expression_ops): New member function.
9 (asm_language_data): Remove la_exp_desc initializer.
10 (asm_language::expression_ops): New member function.
11 (minimal_language_data): Remove la_exp_desc initializer.
12 (minimal_language::expression_ops): New member function.
13 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
14 (d_language::expression_ops): New member function.
15 * eval.c (evaluate_subexp): Update call to expression_ops.
16 * expprint.c (print_subexp): Likewise.
17 (op_name): Likewise.
18 (dump_subexp_body): Likewise.
19 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
20 (f_language::expression_ops): New member function.
21 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
22 (go_language::expression_ops): New member function.
23 * language.c (language_defn::expression_ops): New function.
24 (unknown_language_data): Remove la_exp_desc initializer.
25 (auto_language_data): Likewise.
26 * language.h (language_data): Remove la_exp_desc field.
27 (language_defn::expression_ops): Declare new member function.
28 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
29 (m2_language::expression_ops): New member function.
30 * objc-lang.c (objc_language_data): Remove la_exp_desc
31 initializer.
32 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
33 initializer.
34 (opencl_language::expression_ops): New member function.
35 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
36 * parse.c (operator_length): Update call to expression_ops.
37 (exp_iterate): Likewise.
38 * rust-lang.c (rust_language_data): Remove la_exp_desc
39 initializer.
40 (ruse_language::expression_ops): New member function.
41
b63a3f3f
AB
422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
43
44 * ada-lang.c (ada_language_data): Remove la_varobj_ops
45 initializer.
46 (ada_language::varobj_ops): New member function.
47 * c-lang.c (c_language_data): Remove la_varobj_ops
48 initializer.
49 (cplus_language_data): Likewise.
50 (cplus_language::varobj_ops): New member function.
51 (asm_language_data): Remove la_varobj_ops initializer.
52 (minimal_language_data): Likewise.
53 * d-lang.c (d_language_data): Likewise.
54 * f-lang.c (f_language_data): Likewise.
55 * go-lang.c (go_language_data): Likewise.
56 * language.c (language_defn::varobj_ops): New function.
57 (unknown_language_data): Remove la_varobj_ops
58 initializer.
59 (auto_language_data): Likewise.
60 * language.h (language_data): Remove la_varobj_ops field.
61 (language_defn::varobj_ops): Declare new member function.
62 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
63 * objc-lang.c (objc_language_data): Likewise.
64 * opencl-lang.c (opencl_language_data): Likewise.
65 * p-lang.c (pascal_language_data): Likewise.
66 * rust-lang.c (rust_language_data): Likewise.
67 * varobj.c (varobj_create): Update call to varobj_ops.
68 * varobj.h (default_varobj_ops): Delete define.
69
1ac14a04
AB
702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
71
72 * ada-lang.c (ada_language_data): Remove la_macro_expansion
73 initializer.
74 * c-lang.c (c_language_data): Likewise.
75 (c_language::macro_expansion): New member function.
76 (cplus_language_data): Likewise.
77 (cplus_language::macro_expansion): New member function.
78 (asm_language_data): Likewise.
79 (asm_language::macro_expansion): New member function.
80 (minimal_language_data): Likewise.
81 (minimal_language::macro_expansion): New member function.
82 * d-lang.c (d_language_data): Remove la_macro_expansion
83 initializer.
84 * f-lang.c (f_language_data): Likewise.
85 * go-lang.c (go_language_data): Likewise.
86 * language.c (unknown_language_data): Likewise.
87 (auto_language_data): Likewise.
88 * language.h (language_data): Remove la_macro_expansion field.
89 (language_defn::macro_expansion): New member function.
90 * m2-lang.c (m2_language_data): Remove la_macro_expansion
91 initializer.
92 * objc-lang.c (objc_language_data): Likewise.
93 (objc_language::macro_expansion): New member function.
94 * opencl-lang.c (opencl_language_data): Likewise.
95 (opencl_language::macro_expansion): New member function.
96 * p-lang.c (pascal_language_data): Remove la_macro_expansion
97 initializer.
98 * rust-lang.c (rust_language_data): Likewise.
99 * symtab.c (default_collect_symbol_completion_matches_break_on):
100 Update call to macro_expansion.
101
3a3440fb
AB
1022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
103
104 * ada-lang.c (ada_language_data): Remove la_array_ordering
105 initializer.
106 * c-lang.c (c_language_data): Likewise.
107 (cplus_language_data): Likewise.
108 (asm_language_data): Likewise.
109 (minimal_language_data): Likewise.
110 * d-lang.c (d_language_data): Likewise.
111 * dwarf2/read.c (read_array_order): Update for call to
112 array_ordering.
113 * f-lang.c (f_language_data): Remove la_array_ordering
114 initializer.
115 (f_language::array_ordering): New member function.
116 * go-lang.c (go_language_data): Remove la_array_ordering
117 initializer.
118 * language.c (unknown_language_data): Likewise.
119 (auto_language_data): Likewise.
120 * language.h (language_data): Delete la_array_ordering field.
121 (language_defn::array_ordering): New member function.
122 * m2-lang.c (m2_language_data): Remove la_array_ordering
123 initializer.
124 * objc-lang.c (objc_language_data): Likewise.
125 * opencl-lang.c (opencl_language_data): Likewise.
126 * p-lang.c (pascal_language_data): Likewise.
127 * rust-lang.c (rust_language_data): Likewise.
128
0d201fa4
AB
1292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
130
131 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
132 initializer.
133 * c-lang.c (c_language_data): Likewise.
134 (cplus_language_data): Likewise.
135 (asm_language_data): Likewise.
136 (minimal_language_data): Likewise.
137 * d-lang.c (d_language_data): Likewise.
138 * f-lang.c (f_language_data): Likewise.
139 (f_language::case_sensitivity): New member function.
140 * go-lang.c (go_language_data): Remove la_case_sensitivity
141 initializer.
142 * language.c (enum case_mode): Moved here from language.h.
143 (case_mode): Make static.
144 (show_case_command): Update for case_sensitivity being a method.
145 (set_case_command): Likewise.
146 (set_range_case): Likewise.
147 (unknown_language_data): Remove la_case_sensitivity initializer.
148 (auto_language_data): Likewise.
149 * language.h (case_mode): Delete, move enum declaration to
150 language.c.
151 (language_data): Delete la_case_sensitivity field.
152 (language_defn::case_sensitivity): New member function.
153 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
154 initializer.
155 * objc-lang.c (objc_language_data): Likewise.
156 * opencl-lang.c (opencl_language_data): Likewise.
157 * p-lang.c (pascal_language_data): Likewise.
158 * rust-lang.c (rust_language_data): Likewise.
159
efdf6a73
AB
1602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
161
162 * ada-lang.c (ada_language_data): Remove la_range_check
163 initializer.
164 * c-lang.c (c_language_data): Likewise.
165 (cplus_language_data): Likewise.
166 (asm_language_data): Likewise.
167 (minimal_language_data): Likewise.
168 * d-lang.c (d_language_data): Likewise.
169 * f-lang.c (f_language_data): Likewise.
170 (f_language::range_checking_on_by_default): New member function.
171 * go-lang.c (go_language_data): Remove la_range_check initializer.
172 * language.c (enum range_mode): Moved here from language.h.
173 (range_mode): Made static.
174 (show_range_command): Update to use
175 range_checking_on_by_default.
176 (set_range_command): Likewise.
177 (set_range_case): Likewise.
178 (unknown_language_data): Remove la_range_check initializer.
179 (auto_language_data): Likewise.
180 * language.h (range_mode): Delete. Enum definition moved to
181 language.c.
182 (language_data): Remove la_range_check field.
183 (language_defn::range_checking_on_by_default): New member
184 function.
185 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
186 (m2_language::range_checking_on_by_default): New member function.
187 * objc-lang.c (objc_language_data): Remove la_range_check
188 initializer.
189 * opencl-lang.c (opencl_language_data): Likewise.
190 * p-lang.c (pascal_language_data): Likewise.
191 (pascal_language::range_checking_on_by_default): New member
192 function.
193 * rust-lang.c (rust_language_data): Remove la_range_check
194 initializer.
195 (rust_language::range_checking_on_by_default): New member
196 function.
197
bf92aec5
AB
1982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
199
200 * dwarf2/read.c (dwarf2_physname): Remove special case for
201 language_go.
202 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
203 member function.
204
d3355e4d
AB
2052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
206
207 * ada-lang.c (ada_language_data): Remove
208 la_store_sym_names_in_linkage_form_p initializer.
209 (ada_language::store_sym_names_in_linkage_form_p): New member
210 function.
211 * c-lang.c (c_language_data): Remove
212 la_store_sym_names_in_linkage_form_p initializer.
213 (c_language::store_sym_names_in_linkage_form_p): New member
214 function.
215 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
216 initializer.
217 (asm_language_data): Likewise.
218 (asm_language::store_sym_names_in_linkage_form_p): New member
219 function.
220 (minimal_language_data): Remove
221 la_store_sym_names_in_linkage_form_p initializer.
222 (minimal_language::store_sym_names_in_linkage_form_p): New member
223 function.
224 * d-lang.c (d_language_data): Remove
225 la_store_sym_names_in_linkage_form_p initializer.
226 * dwarf2/read.c (dwarf2_physname): Update call to
227 store_sym_names_in_linkage_form_p.
228 * f-lang.c (f_language_data): Remove
229 la_store_sym_names_in_linkage_form_p initializer.
230 * go-lang.c (go_language_data): Remove
231 la_store_sym_names_in_linkage_form_p initializer.
232 * language.c (unknown_language_data): Remove
233 la_store_sym_names_in_linkage_form_p initializer.
234 (unknown_language::store_sym_names_in_linkage_form_p): New member
235 function.
236 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
237 initializer.
238 (auto_language::store_sym_names_in_linkage_form_p): New member
239 function.
240 * language.h (language_data): Remove
241 la_store_sym_names_in_linkage_form_p member variable.
242 (language_defn::store_sym_names_in_linkage_form_p): New member
243 function.
244 * m2-lang.c (m2_language_data): Remove
245 la_store_sym_names_in_linkage_form_p 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
22c12a6c
AB
2512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
252
253 * ada-lang.c (ada_language_data): Remove string_lower_bound
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 * go-lang.c (go_language_data): Likewise.
262 * language.c (unknown_language_data): Likewise.
263 (auto_language_data): Likewise.
264 * language.h (language_data): Remove string_lower_bound field.
265 (language_defn::string_lower_bound): New member function.
266 * m2-lang.c (m2_language_data): Remove string_lower_bound
267 initializer.
268 (m2_language::string_lower_bound): New member function.
269 * objc-lang.c (objc_language_data): Remove string_lower_bound
270 initializer.
271 * opencl-lang.c (opencl_language_data): Likewise.
272 * p-lang.c (pascal_language_data): Likewise.
273 * rust-lang.c (rust_language_data): Likewise.
274 * valops.c (value_cstring): Update call to string_lower_bound.
275 (value_string): Likewise.
276 * value.c (allocate_repeated_value): Likewise.
277
1c236ddd
AB
2782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
279
280 * valops.c (value_repeat): Fix incorrect argument name in comment.
281
67bd3fd5
AB
2822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
283
284 * ada-lang.c (ada_language_data): Remove c_style_arrays
285 initializer.
286 (ada_language::c_style_arrays_p): New member fuction.
287 * c-lang.c (c_language_data): Remove c_style_arrays
288 initializer.
289 (cplus_language_data): Likewise.
290 (asm_language_data): Likewise.
291 (minimal_language_data): Likewise.
292 * d-lang.c (d_language_data): Likewise.
293 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
294 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
295 (f_language::c_style_arrays_p): New member function.
296 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
297 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
298 * language.c (unknown_language_data): Remove c_style_arrays
299 initializer.
300 (auto_language_data): Likewise.
301 * language.h (language_data): Remove c_style_arrays field.
302 (language_defn::c_style_arrays_p): New member function.
303 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
304 (m2_language::c_style_arrays_p): New member function.
305 * objc-lang.c (objc_language_data): Remove c_style_arrays
306 initializer.
307 * opencl-lang.c (opencl_language_data): Likewise.
308 * p-lang.c (pascal_language_data): Likewise.
309 * rust-lang.c (rust_language_data): Likewise.
310 * valarith.c (value_subscript): Update call to c_style_arrays_p,
311 and update local variable to a bool.
312 * valops.c (value_cast): Update call to c_style_arrays_p.
313 (value_array): Likewise.
314 * value.c (coerce_array): Likewise.
315
85967615
AB
3162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 * ada-lang.c (ada_language_data): Remove la_language initializer.
319 * c-lang.c (c_language_data): Likewise.
320 (cplus_language_data): Likewise.
321 (asm_language_data): Likewise.
322 (minimal_language_data): Likewise.
323 * d-lang.c (d_language_data): Likewise.
324 * f-lang.c (f_language_data): Likewise.
325 * go-lang.c (go_language_data): Likewise.
326 * language.c (unknown_language_data): Likewise.
327 (auto_language_data): Likewise.
328 * language.h (language_data): Remove la_language field.
329 (language_defn::language_defn): Initialise la_language field.
330 (language_defn::la_language): New member variable.
331 * m2-lang.c (m2_language_data): Remove la_language field.
332 * objc-lang.c (objc_language_data): Likewise.
333 * opencl-lang.c (opencl_language_data): Likewise.
334 * p-lang.c (pascal_language_data): Likewise.
335 * rust-lang.c (rust_language_data): Likewise.
336
e171d6f1
AB
3372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
338
339 * ada-lang.c (ada_extensions): Delete, moved into
340 ada_language::filename_extensions.
341 (ada_language_data): Remove la_filename_extensions initializer.
342 (ada_language::filename_extensions): New member function.
343 * c-lang.c (c_extensions): Delete, moved into
344 c_language::filename_extensions.
345 (c_language_data): Remove la_filename_extensions initializer.
346 (c_language::filename_extensions): New member function.
347 (cplus_extensions): Delete, moved into
348 cplus_language::filename_extensions.
349 (cplus_language_data): Remove la_filename_extensions initializer.
350 (cplus_language::filename_extensions): New member function.
351 (asm_extensions): Delete, moved into
352 asm_language::filename_extensions.
353 (asm_language_data): Remove la_filename_extensions initializer.
354 (asm_language::filename_extensions): New member function.
355 (minimal_language_data): Remove la_filename_extensions
356 initializer.
357 * d-lang.c (d_extensions): Delete, moved into
358 d_language::filename_extensions.
359 (d_language_data): Remove la_filename_extensions initializer.
360 (d_language::filename_extensions): New member function.
361 * f-lang.c (f_extensions): Delete, moved into
362 f_language::filename_extensions.
363 (f_language_data): Remove la_filename_extensions initializer.
364 (f_language::filename_extensions): New member function.
365 * go-lang.c (go_language_data): Remove la_filename_extensions
366 initializer.
367 * language.c (add_set_language_command): Update now that
368 filename_extensions returns a vector.
369 (unknown_language_data): Remove la_filename_extensions
370 initializer.
371 (auto_language_data): Likewise.
372 * language.h (language_data): Remove la_filename_extensions field.
373 (language_defn::filename_extensions): New member function.
374 * m2-lang.c (m2_language_data): Remove la_filename_extensions
375 initializer.
376 * objc-lang.c (objc_extensions): Delete, moved into
377 objc_language::filename_extensions.
378 (objc_language_data): Remove la_filename_extensions initializer.
379 (objc_language::filename_extensions): New member function.
380 * opencl-lang.c (opencl_language_data): Remove
381 la_filename_extensions initializer.
382 * p-lang.c (pascal_extensions): Delete, moved into
383 pascal_language::filename_extensions.
384 (pascal_language_data): Remove la_filename_extensions initializer.
385 (pascal_language::filename_extensions): New member function.
386 * rust-lang.c (rust_extensions): Delete, moved into
387 rust_language::filename_extensions.
388 (rust_language_data): Remove la_filename_extensions initializer.
389 (rust_language::filename_extensions): New member function.
390 * symfile.c (add_filename_language): Add new assert.
391
6f7664a9
AB
3922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
393
394 * ada-lang.c (ada_language_data): Remove la_name and
395 la_natural_name initializers.
396 (ada_language::name): New member function.
397 (ada_language::natural_name): New member function.
398 * c-lang.c (c_language_data): Remove la_name and
399 la_natural_name initializers.
400 (c_language::name): New member function.
401 (c_language::natural_name): New member function.
402 (cplus_language_data): Remove la_name and
403 la_natural_name initializers.
404 (cplus_language::name): New member function.
405 (cplus_language::natural_name): New member function.
406 (asm_language_data): Remove la_name and
407 la_natural_name initializers.
408 (asm_language::name): New member function.
409 (asm_language::natural_name): New member function.
410 (minimal_language_data): Remove la_name and
411 la_natural_name initializers.
412 (minimal_language::name): New member function.
413 (minimal_language::natural_name): New member function.
414 * compile/compile.c (compile_to_object): Update call to
415 lanugage_defn::name.
416 * d-lang.c (d_language_data): Remove la_name and
417 la_natural_name initializers.
418 (d_language::name): New member function.
419 (d_language::natural_name): New member function.
420 * expprint.c (print_subexp_standard): Update call to
421 language_defn::name.
422 (dump_raw_expression): Likewise
423 (dump_prefix_expression): Likewise.
424 * f-lang.c (f_language_data): Remove la_name and
425 la_natural_name initializers.
426 (f_language::name): New member function.
427 (f_language::natural_name): New member function.
428 * go-lang.c (go_language_data): Remove la_name and
429 la_natural_name initializers.
430 (go_language::name): New member function.
431 (go_language::natural_name): New member function.
432 * language.c (show_language_command): Update call to
433 language_defn::name.
434 (set_language_command): Likewise.
435 (language_enum): Likewise.
436 (language_str): Likewise.
437 (add_set_language_command): Likewise, use
438 language_defn::natural_name in the doc string.
439 (unknown_language_data): Remove la_name and
440 la_natural_name initializers.
441 (unknown_language::name): New member function.
442 (unknown_language::natural_name): New member function.
443 (auto_language_data): Remove la_name and
444 la_natural_name initializers.
445 (auto_language::name): New member function.
446 (auto_language::natural_name): New member function.
447 (language_lookup_primitive_type_as_symbol): Update call to
448 language_defn::name.
449 * language.h (language_data): Remove la_name and la_natural_name
450 member variables.
451 (language_defn::name): New member function.
452 (language_defn::natural_name): New member function.
453 * m2-lang.c (m2_language_data): Remove la_name and
454 la_natural_name initializers.
455 (m2_language::name): New member function.
456 (m2_language::natural_name): New member function.
457 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
458 language_defn::natural_name.
459 * objc-lang.c (objc_language_data): Remove la_name and
460 la_natural_name initializers.
461 (objc_language::name): New member function.
462 (objc_language::natural_name): New member function.
463 * opencl-lang.c (opencl_language_data): Remove la_name and
464 la_natural_name initializers.
465 (opencl_language::name): New member function.
466 (opencl_language::natural_name): New member function.
467 * p-lang.c (pascal_language_data): Remove la_name and
468 la_natural_name initializers.
469 (pascal_language::name): New member function.
470 (pascal_language::natural_name): New member function.
471 * rust-lang.c (rust_language_data): Remove la_name and
472 la_natural_name initializers.
473 (rust_language::name): New member function.
474 (rust_language::natural_name): New member function.
475 * symtab.c (lookup_language_this): Update call to
476 language_defn::name.
477
5bae7c4e
AB
4782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
479
480 * ada-lang.c (ada_language_data): Remove la_name_of_this
481 initializer.
482 * ax-gdb.c (gen_expr): Update call to name_of_this.
483 * c-exp.y (classify_name): Likewise.
484 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
485 (cplus_language_data): Likewise.
486 (cplus_language::name_of_this): New member function.
487 (asm_language_data): Remove la_name_of_this initializer.
488 (minimal_language_data): Likewise.
489 * d-lang.c (d_language_data): Likewise.
490 (d_language::name_of_this): New member function.
491 * expprint.c (print_subexp_standard): Update call to name_of_this.
492 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
493 * go-lang.c (go_language_data): Likewise.
494 * language.c (unknown_language_data): Likewise.
495 (unknown_language::name_of_this): New member function.
496 (auto_language_data): Remove la_name_of_this initializer.
497 (auto_language::name_of_this): New member function.
498 * language.h (language_data): Delete la_name_of_this member
499 variable.
500 (language_defn::name_of_this): New member function.
501 * m2-lang.c (m2_language_data): Remove la_name_of_this
502 initializer.
503 * objc-lang.c (objc_language_data): Likewise.
504 (objc_language::name_of_this): New member function.
505 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
506 initializer.
507 * p-lang.c (pascal_language_data): Likewise.
508 (pascal_language::name_of_this): New member function.
509 * rust-lang.c (rust_language_data): Remove la_name_of_this
510 initializer.
511 * symtab.c (lookup_language_this): Update call to name_of_this.
512 (lookup_symbol_aux): Likewise.
513 * valops.c (value_of_this): Likewise.
514
22e3f3ed
AB
5152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
516
517 * ada-lang.c (ada_language_data): Remove
518 la_struct_too_deep_ellipsis initializer.
519 (ada_language::struct_too_deep_ellipsis): New member function.
520 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
521 initializer.
522 (cplus_language_data): Likewise.
523 (asm_language_data): Likewise.
524 (minimal_language_data): Likewise.
525 * cp-valprint.c (cp_print_value): Update call to
526 struct_too_deep_ellipsis.
527 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
528 initializer.
529 * f-lang.c (f_language_data): Likewise.
530 (f_language::struct_too_deep_ellipsis): New member function.
531 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
532 initializer.
533 * language.c (unknown_language_data): Likewise.
534 (auto_language_data): Likewise.
535 * language.h (language_data): Delete la_struct_too_deep_ellipsis
536 member variable.
537 (language_defn::struct_too_deep_ellipsis): New member function.
538 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
539 initializer.Q
540 * objc-lang.c (objc_language_data): Likewise.
541 * opencl-lang.c (opencl_language_data): Likewise.
542 * p-lang.c (pascal_language_data): Likewise.
543 * rust-lang.c (rust_language_data): Likewise.
544 * valprint.c (val_print_check_max_depth): Update call to
545 struct_too_deep_ellipsis.
546
ed29e1c7
FW
5472020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
548
549 * MAINTAINERS (Write After Approval): Add myself.
550
12d8f940
TT
5512020-09-15 Tom Tromey <tom@tromey.com>
552
553 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
554 Remove.
555
6b5a7bc7
TT
5562020-09-15 Tom Tromey <tom@tromey.com>
557
558 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
559 and TYPE_CODE_METHODPTR cases.
560 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
561 (c_value_print_inner): Update.
562 * valprint.c (generic_value_print_memberptr): New function, from
563 c_value_print_memberptr.
564 (generic_value_print): Use it. Call cplus_print_method_ptr.
565
47f0e2ff
TT
5662020-09-15 Tom Tromey <tromey@adacore.com>
567
568 * python/python-internal.h (PyInt_FromLong): Remove define.
569 * python/py-value.c (convert_value_from_python): Use
570 gdb_py_object_from_longest.
571 * python/py-type.c (typy_get_code): Use
572 gdb_py_object_from_longest.
573 * python/py-symtab.c (salpy_get_line): Use
574 gdb_py_object_from_longest.
575 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
576 gdb_py_object_from_longest.
577 * python/py-record.c (recpy_gap_reason_code): Use
578 gdb_py_object_from_longest.
579 * python/py-record-btrace.c (recpy_bt_insn_size)
580 (recpy_bt_func_level, btpy_list_count): Use
581 gdb_py_object_from_longest.
582 * python/py-infthread.c (gdbpy_create_ptid_object): Use
583 gdb_py_object_from_longest. Fix error handling.
584 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
585 gdb_py_object_from_longest.
586 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
587 gdb_py_object_from_longest.
588 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
589 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
590 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
591
512116ce
TT
5922020-09-15 Tom Tromey <tromey@adacore.com>
593
594 * python/python.c (gdbpy_parameter_value): Use
595 gdb_py_object_from_ulongest.
596
4ab1029c
TT
5972020-09-15 Tom Tromey <tromey@adacore.com>
598
599 * python/py-infevents.c (create_register_changed_event_object):
600 Use gdb_py_object_from_longest.
601 * python/py-exitedevent.c (create_exited_event_object): Use
602 gdb_py_object_from_longest.
603
062534d4
TT
6042020-09-15 Tom Tromey <tromey@adacore.com>
605
606 * python/python.c (gdbpy_parameter_value): Use
607 gdb_py_object_from_longest.
608 * python/py-type.c (convert_field, typy_range): Use
609 gdb_py_object_from_longest.
610 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
611 gdb_py_object_from_longest.
612 * python/py-lazy-string.c (stpy_get_length): Use
613 gdb_py_object_from_longest.
614 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
615 gdb_py_object_from_longest.
616 * python/py-infevents.c (create_memory_changed_event_object): Use
617 gdb_py_object_from_longest.
618 * python/py-inferior.c (infpy_get_num): Use
619 gdb_py_object_from_longest.
620 (infpy_get_pid): Likewise.
621
d1cab987
TT
6222020-09-15 Tom Tromey <tromey@adacore.com>
623
624 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
625 defines.
626 * python/py-value.c (valpy_long): Use
627 gdb_py_object_from_ulongest.
628 * python/py-symtab.c (salpy_get_pc): Use
629 gdb_py_object_from_ulongest.
630 (salpy_get_last): Likewise.
631 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
632 gdb_py_object_from_ulongest.
633 * python/py-lazy-string.c (stpy_get_address): Use
634 gdb_py_object_from_ulongest.
635 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
636 * python/py-arch.c (archpy_disassemble): Use
637 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
638 error handling.
639
4bde49dc
TT
6402020-09-15 Tom Tromey <tromey@adacore.com>
641
642 * python/python-internal.h (gdb_py_long_from_longest): Remove
643 defines.
644 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
645 * python/py-type.c (convert_field, typy_get_sizeof): Use
646 gdb_py_object_from_longest.
647 * python/py-record-btrace.c (btpy_list_index): Use
648 gdb_py_object_from_longest.
649
37431074
TT
6502020-09-15 Tom Tromey <tromey@adacore.com>
651
652 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
653 * python/py-record.c (recpy_element_number): Use
654 gdb_py_object_from_longest.
655 (recpy_gap_number): Likewise.
656
cbe25684
TT
6572020-09-15 Tom Tromey <tromey@adacore.com>
658
659 * top.c (ui::ui): Update.
660 (highest_ui_num): Remove.
661 * top.h (struct ui) <num>: Remove.
662
db92ac45
TT
6632020-09-15 Tom Tromey <tromey@adacore.com>
664
665 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
666 * ui-style.c (ansi_regex_text): Now array.
667 * rust-exp.y (number_regex_text): Now array.
668 * linespec.c (linespec_quote_characters): Now array.
669 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
670 Now arrays.
671
d2b31b67
SM
6722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
673
674 * debuginfod-support.c (debuginfod_client_deleter): New.
675 (debuginfod_client_up): New.
676 (debuginfod_init): Return debuginfod_client_up.
677 (debuginfod_source_query): Adjust.
678 (debuginfod_debuginfo_query): Adjust.
679
3246bd8e
SM
6802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
681
682 * debuginfod-support.c (debuginfod_source_query): Use
683 make_unique_xstrdup.
684
10242f36
SM
6852020-09-14 Simon Marchi <simon.marchi@efficios.com>
686
687 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
688 with `type::instance_flags`.
689
e1044e6a
MM
6902020-09-14 Michael Mullin <masmullin@gmail.com>
691
692 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
693 Remove baton parameter.
694
04902b09
PA
6952020-09-14 Pedro Alves <pedro@palves.net>
696
697 * Makefile.in (SELFTESTS_SRCS): Add
698 unittests/enum-flags-selftests.c.
699 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
700 btrace_function_flags instead of enum btrace_function_flag.
701 * compile/compile-c-types.c (convert_qualified): Use
702 enum_flags::raw.
703 * compile/compile-cplus-symbols.c (convert_one_symbol)
704 (convert_symbol_bmsym):
705 * compile/compile-cplus-types.c (compile_cplus_convert_method)
706 (compile_cplus_convert_struct_or_union_methods)
707 (compile_cplus_instance::convert_qualified_base):
708 * go-exp.y (parse_string_or_char): Add cast to int.
709 * unittests/enum-flags-selftests.c: New file.
710 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
711 type to btrace_thread_flags from btrace_thread_flag.
712 (record_btrace_cancel_resume, record_btrace_step_thread): Change
713 local's type to btrace_thread_flags from btrace_thread_flag. Add
714 cast in DEBUG call.
715
69896a2c
PA
7162020-09-14 Pedro Alves <pedro@palves.net>
717
718 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
719 * gdbtypes.c (address_space_name_to_int): Rename to ...
720 (address_space_name_to_type_instance_flags): ... this.
721 (address_space_int_to_name): Rename to ...
722 (address_space_type_instance_flags_to_name): ... this.
723 * gdbtypes.h (address_space_name_to_int): Rename to ...
724 (address_space_name_to_type_instance_flags): ... this.
725 (address_space_int_to_name): Rename to ...
726 (address_space_type_instance_flags_to_name): ... this.
727 * type-stack.c (type_stack::insert): Adjust to rename.
728 * type-stack.h (type_stack::insert): Likewise.
729
314ad88d
PA
7302020-09-14 Pedro Alves <pedro@palves.net>
731 Andrew Burgess <andrew.burgess@embecosm.com>
732
733 * avr-tdep.c (avr_address_class_type_flags): Return
734 type_instance_flags.
735 (avr_address_class_type_flags_to_name): Take a
736 type_instance_flags.
737 (avr_address_class_name_to_type_flags): Return bool and take a
738 type_instance_flags.
739 * d-lang.c (build_d_types): Use type::set_instance_flags.
740 * ft32-tdep.c (ft32_address_class_type_flags): Return
741 type_instance_flags.
742 (ft32_address_class_type_flags_to_name): Take a
743 type_instance_flags.
744 (ft32_address_class_name_to_type_flags): Return bool and take a
745 type_instance_flags.
746 (ft32_gdbarch_init): Use type::set_instance_flags.
747 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
748 * gdbarch.h, gdbarch.c: Regenerate.
749 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
750 (address_class_name_to_type_flags): Use type_instance_flags and
751 bool.
752 * gdbtypes.c (address_space_name_to_int)
753 (address_space_int_to_name, make_qualified_type): Use
754 type_instance_flags.
755 (make_qualified_type): Use type_instance_flags and
756 type::set_instance_flags.
757 (make_type_with_address_space, make_cv_type, make_vector_type)
758 (check_typedef): Use type_instance_flags.
759 (recursive_dump_type): Cast type_instance_flags to unsigned for
760 printing.
761 (copy_type_recursive): Use type::set_instance_flags.
762 (gdbtypes_post_init): Use type::set_instance_flags.
763 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
764 <m_instance_flags>: ... this.
765 <instance_flags, set_instance_flags>: New methods.
766 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
767 (SET_TYPE_INSTANCE_FLAGS): New.
768 (address_space_name_to_int, address_space_int_to_name)
769 (make_type_with_address_space): Pass flags using
770 type_instance_flags instead of int.
771 * stabsread.c (cleanup_undefined_types_noname): Use
772 type::set_instance_flags.
773 * s390-tdep.c (s390_address_class_type_flags): Return
774 type_instance_flags.
775 (s390_address_class_type_flags_to_name): Take a
776 type_instance_flags.
777 (s390_address_class_name_to_type_flags): Return bool and take a
778 type_instance_flags.
779 * type-stack.c (type_stack::follow_types): Use
780 type_instance_flags.
781 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
782
27087b7f
TT
7832020-09-14 Tom Tromey <tromey@adacore.com>
784
785 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
786 * x86-tdep.c (x86_is_thunk_register_name)
787 (x86_in_indirect_branch_thunk): Update.
788 * sparc64-tdep.c (sparc64_fpu_register_names)
789 (sparc64_cp0_register_names, sparc64_register_names)
790 (sparc64_pseudo_register_names): Now const.
791 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
792 cp0_registers_num>: Now const.
793 * sparc-tdep.c (sparc_core_register_names)
794 (sparc32_fpu_register_names, sparc32_cp0_register_names)
795 (sparc32_pseudo_register_names): Now const.
796 (validate_tdesc_registers): Update.
797 * rust-lang.c (rust_extensions): Now const.
798 * p-lang.c (p_extensions): Now const.
799 * objc-lang.c (objc_extensions): Now const.
800 * nto-tdep.c (nto_thread_state_str): Now const.
801 * moxie-tdep.c (moxie_register_names): Now const.
802 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
803 Now const.
804 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
805 (mips_linux_reg_names): Now const.
806 (mips_gdbarch_init): Update.
807 * microblaze-tdep.c (microblaze_register_names): Now const.
808 * m68k-tdep.c (m68k_register_names): Now const.
809 * m32r-tdep.c (m32r_register_names): Now const.
810 * ia64-tdep.c (ia64_register_names): Now const.
811 * i386-tdep.h (struct gdbarch_tdep) <register_names,
812 ymmh_register_names, ymm16h_regnum, mpx_register_names,
813 k_register_names, zmmh_register_names, xmm_avx512_register_names,
814 ymm_avx512_register_names, pkeys_register_names>: Now const.
815 * i386-tdep.c (i386_register_names, i386_zmm_names)
816 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
817 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
818 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
819 * f-lang.c (f_extensions): Now const.
820 * d-lang.c (d_extensions): Now const.
821 * csky-tdep.c (csky_register_names): Now const.
822 * charset.c (default_charset_names, charset_enum): Now const.
823 (_initialize_charset): Update.
824 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
825 const.
826 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
827 (bsd_uthread_solib_loaded): Update.
828 (bsd_uthread_state): Now const.
829 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
830 (amd64_ymm_avx512_names, amd64_ymmh_names)
831 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
832 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
833 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
834 (amd64_dword_names): Now const.
835 * agent.c (can_use_agent_enum): Now const.
836 * ada-tasks.c (task_states, long_task_states): Now const.
837 * ada-lang.c (known_runtime_file_name_patterns)
838 (known_auxiliary_function_name_patterns, attribute_names)
839 (standard_exc, ada_extensions): Now const.
840
89806626
SM
8412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
842
843 * bcache.h (struct bcache) <bcache>: Remove constructor.
844 <m_hash_function, m_compare_function>: Remove.
845 <~bcache>: Make virtual.
846 <compare>: Remove static method, introduce virtual method.
847 <default_hash>: Remove.
848 <hash>: New virtual method.
849 * bcache.c (bcache::expand_hash_table): Update.
850 (bcache::insert): Update.
851 (bcache::hash): New.
852 (bcache::compare): Update comment and parameter names.
853 * gdbtypes.c (types_deeply_equal): Update.
854 * psymtab.h (struct psymbol_bcache): New struct.
855 (class psymtab_storage) <psymtab_storage>: Make default.
856 <psymbol_cache>: Change type to psymbol_bcache.
857 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
858 (psymbol_hash): Change to...
859 (psymbol_bcache::hash): ... this.
860 (psymbol_compare): Change to...
861 (psymbol_bcache::compare): ... this.
862
677c92fe
SM
8632020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
864
865 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
866 checking for initial lwp.
867
3eba3a01
TT
8682020-09-14 Tom Tromey <tromey@adacore.com>
869
870 * m68k-tdep.c (m68k_extract_return_value): Use
871 pointer_result_regnum.
872 (m68k_store_return_value): Likewise.
873 (m68k_reg_struct_return_p): Handle vectors and arrays.
874 (m68k_return_value): Handle arrays.
875 (m68k_svr4_return_value): Fix single-element aggregate handling.
876 Handle long double. Adjust for embedded ABI.
877 (m68k_svr4_init_abi): Set pointer_result_regnum.
878 (m68k_embedded_init_abi): New function.
879 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
880 (m68k_osabi_sniffer): New function.
881 (_initialize_m68k_tdep): Register osabi sniffer.
882 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
883 member.
884
33f4dd48
SM
8852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
886
887 * xml-support.c (xml_fetch_content_from_file): Replace xfree
888 with gdb::unique_xmalloc_ptr<char>.
889
8400a90d
SM
8902020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
891
892 * xml-support.h (xml_fetch_another): Change type to be a
893 function_view.
894 (xml_process_xincludes): Remove baton parameter.
895 (xml_fetch_content_from_file): Change baton parameter to
896 dirname.
897 * xml-support.c (struct xinclude_parsing_data)
898 <xinclude_parsing_data>: Remove baton parameter.
899 <fetcher_baton>: Remove.
900 (xinclude_start_include): Adjust.
901 (xml_process_xincludes): Adjust.
902 (xml_fetch_content_from_file): Replace baton parameter with
903 dirname.
904 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
905 (xml_init_syscalls_info): Use a lambda.
906 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
907 (file_read_description_xml): Use a lambda.
908 (fetch_available_features_from_target): Change baton parameter
909 to target_ops.
910 (target_read_description_xml): Use a lambda.
911 (target_fetch_description_xml): Use a lambda.
912 (string_read_description_xml): Update.
913
04f5bab2
SM
9142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
915
916 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
917 uses with type::endianity_is_not_default.
918
db558e34
SM
9192020-09-14 Simon Marchi <simon.marchi@efficios.com>
920
921 * gdbtypes.h (struct type) <endianity_is_not_default,
922 set_endianity_is_not_default>: New methods.
923 (TYPE_ENDIANITY_NOT_DEFAULT): Use
924 type::endianity_is_not_default, change all write call sites to
925 use type::set_endianity_is_not_default.
926
22c4c60c
SM
9272020-09-14 Simon Marchi <simon.marchi@efficios.com>
928
929 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
930 uses with type::is_fixed_instance.
931
9cdd0d12
SM
9322020-09-14 Simon Marchi <simon.marchi@efficios.com>
933
934 * gdbtypes.h (struct type) <is_fixed_instance,
935 set_is_fixed_instance>: New methods.
936 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
937 write call sites to use type::set_is_fixed_instance.
938
0becda7a
SM
9392020-09-14 Simon Marchi <simon.marchi@efficios.com>
940
941 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
942 uses with type::is_gnu_ifunc.
943
03cc7249
SM
9442020-09-14 Simon Marchi <simon.marchi@efficios.com>
945
946 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
947 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
948 use type::set_is_gnu_ifunc.
949
3f46044c
SM
9502020-09-14 Simon Marchi <simon.marchi@efficios.com>
951
952 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
953 uses with type::stub_is_supported.
954
9baccff6
SM
9552020-09-14 Simon Marchi <simon.marchi@efficios.com>
956
957 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
958 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
959 use type::set_stub_is_supported.
960
bd63c870
SM
9612020-09-14 Simon Marchi <simon.marchi@efficios.com>
962
963 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
964 uses with type::is_vector.
965
2062087b
SM
9662020-09-14 Simon Marchi <simon.marchi@efficios.com>
967
968 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
969 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
970 use type::set_is_vector.
971
a409645d
SM
9722020-09-14 Simon Marchi <simon.marchi@efficios.com>
973
974 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
975 uses with type::has_varargs.
976
1d6286ed
SM
9772020-09-14 Simon Marchi <simon.marchi@efficios.com>
978
979 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
980 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
981 use type::set_has_varargs.
982
7f9f399b
SM
9832020-09-14 Simon Marchi <simon.marchi@efficios.com>
984
985 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
986 uses with type::is_prototyped.
987
27e69b7a
SM
9882020-09-14 Simon Marchi <simon.marchi@efficios.com>
989
990 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
991 New methods.
992 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
993 call sites to use type::set_is_prototyped.
994
d2183968
SM
9952020-09-14 Simon Marchi <simon.marchi@efficios.com>
996
997 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
998 uses with type::target_is_stub.
999
8f53807e
SM
10002020-09-14 Simon Marchi <simon.marchi@efficios.com>
1001
1002 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1003 New methods.
1004 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1005 sites to use type::set_target_is_stub.
1006
e46d3488
SM
10072020-09-14 Simon Marchi <simon.marchi@efficios.com>
1008
1009 * gdbtypes.h (TYPE_STUB): Remove, replace all
1010 uses with type::is_stub.
1011
b4b73759
SM
10122020-09-14 Simon Marchi <simon.marchi@efficios.com>
1013
1014 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1015 (TYPE_STUB): Use type::is_stub, change all write call sites to
1016 use type::set_is_stub.
1017
20ce4123
SM
10182020-09-14 Simon Marchi <simon.marchi@efficios.com>
1019
1020 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1021 type::has_no_signedness.
1022
15152a54
SM
10232020-09-14 Simon Marchi <simon.marchi@efficios.com>
1024
1025 * gdbtypes.h (struct type) <has_no_signedness,
1026 set_has_no_signedness>: New methods.
1027 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1028 call sites to use type::set_has_no_signedness.
1029
c6d940a9
SM
10302020-09-14 Simon Marchi <simon.marchi@efficios.com>
1031
1032 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1033 type::is_unsigned.
1034
653223d3
SM
10352020-09-14 Simon Marchi <simon.marchi@efficios.com>
1036
1037 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1038 methods.
1039 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1040 sites to use type::set_is_unsigned.
1041
55ea94da
FH
10422020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1043 Adam Renquinha <arenquinha@cimeq.qc.ca>
1044
1045 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1046 pointer and stack frame offset when unwinding.
1047
6791b117
PA
10482020-09-13 Pedro Alves <pedro@palves.net>
1049
1050 * NEWS: Document "-break-insert --qualified".
1051 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1052
77f2120b
PA
10532020-09-13 Pedro Alves <pedro@palves.net>
1054
1055 * linespec.c (classify_mtype, compare_msyms): Delete.
1056 (search_minsyms_for_name): Remove classification logic. Instead
1057 filter out trampoline symbols if we also found an external
1058 function of the same name.
1059
ed6a896c
JB
10602020-09-13 Joel Brobecker <brobecker@adacore.com>
1061
1062 * NEWS: Create a new section for the next release branch.
1063 Rename the section of the current branch, now that it has
1064 been cut.
1065
32aea73e
JB
10662020-09-13 Joel Brobecker <brobecker@adacore.com>
1067
1068 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1069 * version.in: Bump version to 11.0.50.DATE-git.
1070
8087c3fa
JB
10712020-09-12 Joel Brobecker <brobecker@adacore.com>
1072
1073 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1074
2a67f09d
FW
10752020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1076 Felix Willgerodt <Felix.Willgerodt@intel.com>
1077
1078 * gdbarch.sh: Added bfloat16 type.
1079 * gdbarch.c: Regenerated.
1080 * gdbarch.h: Regenerated.
1081 * gdbtypes.c (floatformats_bfloat16): New struct.
1082 (gdbtypes_post_init): Add builtin_bfloat16.
1083 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1084 (floatformats_bfloat16): New struct.
1085 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1086 (i386_ymm_type): Add field "v16_bfloat16"
1087 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1088 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1089 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1090 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1091 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1092 * features/i386/64bit-avx512.c: Regenerated.
1093 * features/i386/64bit-sse.xml: Add bfloat16 type.
1094 * features/i386/64bit-sse.c: Regenerated.
1095
1347d111
FW
10962020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1097
1098 * i386-tdep.c (i386_zmm_type): Fix field names.
1099 (i386_ymm_type): Fix field names.
1100
7a4e8e7d
TBA
11012020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1102
1103 * breakpoint.c: Fix typo in the help message of the
1104 "set breakpoint condition-evaluation" command.
1105
cf4ac4be
KR
11062020-09-10 Kamil Rytarowski <n54@gmx.com>
1107
1108 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1109 * (nbsd_nat_target::pid_to_exec_file)
1110 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1111 (nbsd_nat_target::post_startup_inferior)
1112 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1113 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1114 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1115 * (nbsd_thread_lister): Remove.
1116
f404573e
KR
11172020-09-10 Kamil Rytarowski <n54@gmx.com>
1118
1119 * fork-inferior.c (startup_inferior): Avoid double free.
1120
1ccb2c17
KR
11212020-09-10 Kamil Rytarowski <n54@gmx.com>
1122
1123 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1124 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1125
feedfcc7
KR
11262020-09-10 Kamil Rytarowski <n54@gmx.com>
1127
1128 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1129 * netbsd-nat.c: Include <sys/ptrace.h>.
1130 * (netbsd_nat::enable_proc_events): Add.
1131
c489f8c6
KR
11322020-09-10 Kamil Rytarowski <n54@gmx.com>
1133
1134 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1135 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1136 (netbsd_nat::for_each_thread): Add.
1137 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1138 "gdbsupport/common-debug.h".
1139 * (netbsd_nat::netbsd_thread_lister)
1140 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1141 (netbsd_nat::for_each_thread): Add.
1142
330662f6
KR
11432020-09-10 Kamil Rytarowski <n54@gmx.com>
1144
1145 * netbsd-nat.h: Include <unistd.h>.
1146 * (netbsd_nat::pid_to_exec_file): Add.
1147 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1148 * (netbsd_nat::pid_to_exec_file) Add.
1149
70b67307
KR
11502020-09-10 Kamil Rytarowski <n54@gmx.com>
1151
1152 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1153
99cf6da6
KR
11542020-09-10 Kamil Rytarowski <n54@gmx.com>
1155
1156 * netbsd-nat.h: New file.
1157 * netbsd-nat.c: Likewise.
1158
1b788fb6
TT
11592020-09-09 Tom Tromey <tromey@adacore.com>
1160
1161 * ada-lang.c (remove_extra_symbols): Do not increment when
1162 removing an element
1163
03b0a45f
TT
11642020-09-08 Tom Tromey <tromey@adacore.com>
1165
1166 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1167
3cae4447
TT
11682020-09-08 Tom Tromey <tromey@adacore.com>
1169
1170 PR win32/25302:
1171 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1172 (gdb_bfd_init_data): New function.
1173 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1174
7f08fd51
TBA
11752020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1176
1177 * infrun.c (fetch_inferior_event): Use
1178 `switch_to_target_no_thread` to switch the target.
1179
3e6ff933
TT
11802020-09-06 Tom Tromey <tom@tromey.com>
1181
1182 * symfile.h (dwarf2_free_objfile): Don't declare.
1183
e56798df
AKS
11842020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1185
1186 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1187 to match 16 byte real/complex type generated by Flang compiler.
1188
8f5c6526
TV
11892020-09-03 Tom de Vries <tdevries@suse.de>
1190
1191 PR breakpoint/26546
1192 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1193 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1194
c5065df0
SM
11952020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1196
1197 * maint.c (index_digits): New function.
1198 (struct maint_print_section_data): Remove.
1199 (print_bfd_section_info): Remove print_data parameter, add arg
1200 and index_digits.
1201 (print_objfile_section_info): Likewise.
1202 (print_bfd_section_info_maybe_relocated): Likewise (plus
1203 objfile).
1204 (maintenance_info_sections): Adjust calls.
1205
02c6f3f1
TT
12062020-09-02 Tom Tromey <tromey@adacore.com>
1207
1208 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1209 for null pointers.
1210 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1211
ef5e5b0b
SM
12122020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1213
1214 * bcache.h (struct bcache) <insert>: Change type of `added` to
1215 pointer to bool.
1216 * bcache.c (bcache::insert): Likewise.
1217 * gdbtypes.c (check_types_worklist): Adjust.
1218 * psymtab.c (add_psymbol_to_bcache): Adjust.
1219
973695d6
KB
12202020-08-31 Kevin Buettner <kevinb@redhat.com>
1221
1222 * corelow.c (unordered_set): Include.
1223 (class core_target): Add field 'm_core_unavailable_mappings'.
1224 (core_target::build_file_mappings): Print only one warning
1225 per inaccessible file. Add unavailable/broken mappings
1226 to m_core_unavailable_mappings.
1227 (core_target::xfer_partial): Call...
1228 (core_target::xfer_memory_via_mappings): New method.
1229
264fc0e2
SM
12302020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1231
1232 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1233 type to bool.
1234
2de01bdb
SM
12352020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1236
1237 * dwarf2/read.c (struct field_info): Fix indentation.
1238
f3bd50f1
SM
12392020-08-31 Simon Marchi <simon.marchi@efficios.com>
1240
1241 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1242 ordering in comment.
1243 * frame.c (frame_id_eq): Fix indentation.
1244
22b9b4b0
SL
12452020-08-31 Scott Linder <scott@scottlinder.com>
1246 Simon Marchi <simon.marchi@efficios.com>
1247
1248 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1249 inline frame ids in outer frame.
1250
84154d16
SM
12512020-08-31 Simon Marchi <simon.marchi@efficios.com>
1252
1253 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1254 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1255 (outer_frame_id): Use FID_STACK_OUTER instead of
1256 FID_STACK_INVALID.
1257 (frame_id_p): Don't check for outer_frame_id.
1258
8efaf6b3
SM
12592020-08-31 Simon Marchi <simon.marchi@efficios.com>
1260
1261 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1262 regnum/frame in value. Call allocate_value_lazy.
1263 * frame.c (frame_unwind_register_value): Use
1264 val_print_not_saved.
1265
fe1fe7ea
SM
12662020-08-31 Simon Marchi <simon.marchi@efficios.com>
1267
1268 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1269
f7c7700d
PA
12702020-08-29 Pedro Alves <pedro@palves.net>
1271
1272 * progspace.c (print_program_space): Use all_inferiors. Switch to
1273 the inferior before calling target_pid_to_str.
1274
e0814aae
TT
12752020-08-28 Tom Tromey <tom@tromey.com>
1276
1277 * xcoffread.c (xcoff_end_psymtab): Update comment.
1278 * dbxread.c (dbx_end_psymtab): Update comment.
1279
626d2320
TV
12802020-08-28 Tom de Vries <tdevries@suse.de>
1281
1282 PR breakpoint/26544
1283 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1284 event_location.
1285 (create_breakpoint): Same.
1286 (base_breakpoint_decode_location): Same.
1287 (bkpt_create_sals_from_location): Same.
1288 (bkpt_decode_location): Same.
1289 (bkpt_probe_create_sals_from_location): Same.
1290 (bkpt_probe_decode_location): Same.
1291 (tracepoint_create_sals_from_location): Same.
1292 (tracepoint_decode_location): Same.
1293 (tracepoint_probe_decode_location): Same.
1294 (strace_marker_create_sals_from_location): Same.
1295 (strace_marker_decode_location): Same.
1296 (create_sals_from_location_default): Same.
1297 (decode_location_default): Same.
1298 * breakpoint.h (struct breakpoint_ops): Same.
1299 (create_breakpoint): Same.
1300 * linespec.h (decode_line_full): Same.
1301 * linespec.c (decode_line_full): Same. Throw error if
1302 result.size () == 0.
1303
df631783
PA
13042020-08-27 Pedro Alves <pedro@palves.net>
1305
1306 PR gdb/26524
1307 * breakpoint.c (until_break_fsm) <location_breakpoint,
1308 caller_breakpoint>: Delete fields.
1309 <breakpoints>: New field.
1310 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1311 two individual breakpoints.
1312 (until_break_fsm::should_stop): Loop over breakpoints in the
1313 breakpoint vector.
1314 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1315 vector.
1316 (until_break_command): Handle location expanding into multiple
1317 sals.
1318
b2b38aa4
PA
13192020-08-27 Pedro Alves <pedro@palves.net>
1320
1321 PR gdb/26523
1322 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1323 bp_until breakpoints user-specified locations. Update intro
1324 comment.
1325
b886559f
SM
13262020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1327
1328 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1329 gdb_bfd_sections): New.
1330 * maint.c (print_bfd_section_info): Change param type to
1331 maint_print_section_data.
1332 (print_objfile_section_info): Likewise.
1333 (print_bfd_section_info_maybe_relocated): Likewise.
1334 (maintenance_info_sections): Use gdb_bfd_sections.
1335
4c6e63bf
SV
13362020-08-25 Shahab Vahedi <shahab@synopsys.com>
1337
1338 * MAINTAINERS: Add ARC target and maintainer.
1339
8d7f0635
AK
13402020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1341
1342 * configure.tgt: ARC support for GNU/Linux.
1343 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1344 * arc-linux-tdep.c: New file.
1345 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1346 * arc-tdep.c (arc_write_pc): Use it.
1347
fdd8731b
SV
13482020-08-25 Shahab Vahedi <shahab@synopsys.com>
1349
1350 * arc-tdep.c (arc_check_for_hardware_loop): New.
1351 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1352
22459524
SV
13532020-08-25 Shahab Vahedi <shahab@synopsys.com>
1354
1355 * arc-tdep.h: Include "gdbarch.h".
1356
995d3a19
SV
13572020-08-25 Shahab Vahedi <shahab@synopsys.com>
1358
1359 * arch/arc.h
1360 (arc_gdbarch_features): New class to stir the selection of target XML.
1361 (arc_create_target_description): Use FEATURES to choose XML target.
1362 (arc_lookup_target_description): Use arc_create_target_description
1363 to create _new_ target descriptions or return the already created
1364 ones if the FEATURES is the same.
1365 * arch/arc.c: Implementation of prototypes described above.
1366 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1367 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1368 * arc-tdep.c (*_feature_name): Make feature names consistent.
1369 (arc_register_feature): A new struct to hold information about
1370 registers of a particular target/feature.
1371 (arc_check_tdesc_feature): Check if XML provides registers in
1372 compliance with ARC_REGISTER_FEATURE structs.
1373 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1374 (determine_*_reg_feature_set): Which feature name to look for.
1375 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1376 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1377 to expected ISA enums to be used in arc_gdbarch_features structs.
1378 * features/Makefile (FEATURE_XMLFILES): Add new files.
1379 * gdb/features/arc/v1-aux.c: New file.
1380 * gdb/features/arc/v1-aux.xml: Likewise.
1381 * gdb/features/arc/v1-core.c: Likewise.
1382 * gdb/features/arc/v1-core.xml: Likewise.
1383 * gdb/features/arc/v2-aux.c: Likewise.
1384 * gdb/features/arc/v2-aux.xml: Likewise.
1385 * gdb/features/arc/v2-core.c: Likewise.
1386 * gdb/features/arc/v2-core.xml: Likewise.
1387 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1388
3945d2d7
GM
13892020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1390 Andrew Burgess <andrew.burgess@embecosm.com>
1391
1392 PR m2/26372
fc5d6901 1393 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1394 an assert. Remove single element array indexing pattern as the
1395 MULTI_SUBSCRIPT support will handle this case too.
1396
2677f2d3
SM
13972020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1398
1399 * value.h (valprint_check_validity): Move declaration from
1400 here...
1401 * valprint.h (valprint_check_validity): ... to here.
1402
c426fddb
SM
14032020-08-24 Simon Marchi <simon.marchi@efficios.com>
1404
1405 * debug.h: New file.
1406 * debug.c (debug_prefixed_vprintf): New function.
1407 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1408 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1409
1eb8556f
SM
14102020-08-24 Simon Marchi <simon.marchi@efficios.com>
1411
1412 * infrun.h (infrun_debug_printf_1): New function declaration.
1413 (infrun_debug_printf): New macro.
1414 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1415 throughout.
1416 (infrun_debug_printf): New function.
1417 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1418 (handle_jit_event): Likewise.
1419
b8fff44e
MW
14202020-08-21 Mark Wielaard <mark@klomp.org>
1421
1422 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1423
d19c3068
SM
14242020-08-22 Simon Marchi <simon.marchi@efficios.com>
1425
1426 * frame.c (enum class frame_id_status): New.
1427 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1428 (fprintf_frame): Update.
1429 (compute_frame_id): Set frame id status to "computing" on entry.
1430 Set it back to "not_computed" on failure and to "computed" on
1431 success.
1432 (get_frame_id): Assert the frame id is not being computed.
1433 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1434 (create_new_frame): Likewise.
1435 (frame_cleanup_after_sniffer): Update assert.
1436
b70e516e
SM
14372020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1438
1439 * regcache.c (pid_ptid_regcache_map): New type.
1440 (target_ptid_regcache_map): Remove.
1441 (target_pid_ptid_regcache_map): New type.
1442 (regcaches): Change type to target_pid_ptid_regcache_map.
1443 (get_thread_arch_aspace_regcache): Update.
1444 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1445 case.
1446 (regcaches_size): Update.
1447 (regcache_count): Update.
1448 (registers_changed_ptid_target_pid_test): New.
1449 (_initialize_regcache): Register new test.
1450
cdd9148a
SM
14512020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1452
1453 * regcache.c (regcache_count): New.
1454 (struct regcache_test_data): New.
1455 (regcache_test_data_up): New.
1456 (populate_regcaches_for_test): New.
1457 (regcaches_test): Remove.
1458 (get_thread_arch_aspace_regcache_test): New.
1459 (registers_changed_ptid_all_test): New.
1460 (registers_changed_ptid_target_test): New.
1461 (registers_changed_ptid_target_ptid_test): New.
1462 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1463 (_initialize_regcache): Register new tests.
1464
dd125343
SM
14652020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1466
1467 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1468 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1469 gdbarch and aspace parameter. Use current inferior's aspace.
1470 Validate regcache's arch value.
1471 (regcaches_test): Update.
1472
3ee93972
SM
14732020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1474
1475 * regcache.c (regcaches_test): Call registers_changed.
1476
33bf4c5c
TBA
14772020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1478
1479 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1480
c2fd7fae
AKS
14812020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1482
1483 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1484 to find the end of prologue for flang compiled binaries.
1485 * arm-tdep.c (arm_skip_prologue): Likewise.
1486 * i386-tdep.c (i386_skip_prologue): Likewise.
1487 * producer.c (producer_is_llvm): New function.
1488 (producer_parsing_tests): Added new tests for clang/flang.
1489 * producer.h (producer_is_llvm): New declaration.
1490
9327494e
SM
14912020-08-18 Simon Marchi <simon.marchi@efficios.com>
1492
1493 * linux-nat.c (linux_nat_debug_printf): New function.
1494 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1495
d138725a
AM
14962020-08-18 Aaron Merey <amerey@redhat.com>
1497
1498 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1499 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1500 (CLIBS): Add DEBUGINFOD_LIBS.
1501
f9b11e6b
ST
15022020-08-17 Sergei Trofimovich <siarheit@google.com>
1503
1504 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1505 'gdbarch_num_regs'.
1506
3ae7ab99
TT
15072020-08-17 Tom Tromey <tromey@adacore.com>
1508
1509 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1510 ada_get_decoded_value returns NULL.
1511
b017825f
TT
15122020-08-17 Tom Tromey <tromey@adacore.com>
1513
1514 * python/py-inferior.c (infpy_search_memory): Use
1515 gdb_py_object_from_ulongest.
1516 * python/py-infevents.c (create_inferior_call_event_object)
1517 (create_memory_changed_event_object): Use
1518 gdb_py_object_from_ulongest.
1519 * python/py-linetable.c (ltpy_entry_get_pc): Use
1520 gdb_py_object_from_ulongest.
1521
7635cf79
SM
15222020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1523
1524 * loc.c (class symbol_needs_eval_context): Fix indentation.
1525
f54be24b
SM
15262020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1529 bool.
1530
53d5a2a5
TV
15312020-08-17 Tom de Vries <tdevries@suse.de>
1532
1533 PR gdb/26393
1534 * gdbtypes.c (dump_dynamic_prop): New function.
1535 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1536
547ce8f0
TV
15372020-08-15 Tom de Vries <tdevries@suse.de>
1538
1539 PR backtrace/26390
1540 * stack.c (print_frame_args): Temporarily set the selected
1541 frame to FRAME while printing the frame's arguments.
1542
6ea815e7
PFC
15432020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1544
1545 PR breakpoints/26385
1546 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1547 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1548
6e562fa3
PFC
15492020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1550
1551 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1552 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1553 and >= to check return value instead of == -1 and != -1.
1554
d369b608
SM
15552020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1556
1557 * utils.h (class gdb_argv) <as_array_view>: New method.
1558 * utils.c (gdb_argv_as_array_view_test): New.
1559 (_initialize_utils): Register selftest.
1560 * maint.c (maintenance_selftest): Use the new method.
1561
b31488a3
KR
15622020-08-13 Kamil Rytarowski <n54@gmx.com>
1563
1564 * target.h (supports_dumpcore, dumpcore): New
1565 function declarations.
1566 * target.c (supports_dumpcore, dumpcore): New
1567 functions.
1568 * target-delegates.c: Rebuild.
1569 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1570 and target_dumpcore ().
1571
002a3166
AM
15722020-08-13 Aaron Merey <amerey@redhat.com>
1573
1574 * debuginfod-support.c: Replace global variables with user_data.
1575
ece5bc8a
SM
15762020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1577
1578 * maint.c (maintenance_selftest): Split args and pass array_view
1579 to run_tests.
1580
6d8a0a5e
LM
15812020-08-12 Luis Machado <luis.machado@linaro.org>
1582
1583 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1584 type's length.
1585 Use %s and pulongest to print the length.
1586
7cf663a9
PA
15872020-08-12 Pedro Alves <palves@redhat.com>
1588
1589 * NEWS: Move "Multi-target debugging support" item to the
1590 "Changes since GDB 9" section.
1591
27c7b875
PA
15922020-08-12 Pedro Alves <palves@redhat.com>
1593
1594 PR gdb/26336
1595 * progspace.c (program_space::remove_objfile): Invalidate the
1596 frame cache.
1597
1796a2a1
TV
15982020-08-11 Tom de Vries <tdevries@suse.de>
1599
1600 * MAINTAINERS: Mark ms1 as deleted.
1601
f8e3fe0d
LM
16022020-08-10 Luis Machado <luis.machado@linaro.org>
1603
1604 PR gdb/26310
1605
1606 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1607 act accordingly.
1608 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1609 movz/str/stur/stp skipping behavior.
1610
cc308722
LM
16112020-08-10 Luis Machado <luis.machado@linaro.org>
1612
1613 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1614 struct user_sve_header instead of struct sve_context.
1615
041d9819
SM
16162020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1617
1618 * read.h (dwarf2_fetch_die_loc_sect_off,
1619 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1620 `void *` parameter with function_view.
1621 * read.c (dwarf2_fetch_die_loc_sect_off,
1622 dwarf2_fetch_die_loc_cu_off): Likewise.
1623 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1624 (per_cu_dwarf_call): Adjust.
1625 (get_frame_address_in_block_wrapper): Remove.
1626 (indirect_synthetic_pointer): Adjust.
1627 (get_ax_pc): Remove.
1628 (dwarf2_compile_expr_to_ax): Adjust.
1629
38f8aa06
TV
16302020-08-08 Tom de Vries <tdevries@suse.de>
1631
1632 PR build/26344
1633 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1634 constructor.
1635 * regcache.c (get_thread_arch_aspace_regcache): Same.
1636
a52b3ae2
TT
16372020-08-07 Tom Tromey <tromey@adacore.com>
1638
1639 * ravenscar-thread.c
1640 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1641 New method.
1642 (ravenscar_thread_target::wait): Check
1643 runtime_initialized.
1644 (ravenscar_thread_target::prepare_to_store)
1645 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1646 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1647 (ravenscar_thread_target::stopped_by_watchpoint)
1648 (ravenscar_thread_target::stopped_data_address)
1649 (ravenscar_thread_target::core_of_thread): Use
1650 scoped_restore_current_thread and
1651 set_base_thread_from_ravenscar_task.
1652
0e29517d
TT
16532020-08-07 Tom Tromey <tromey@adacore.com>
1654
1655 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1656
592f9bd7
TT
16572020-08-07 Tom Tromey <tromey@adacore.com>
1658
1659 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1660 update_inferior_ptid before update_thread_list.
1661 (temporarily_change_regcache_ptid): New class.
1662 (ravenscar_thread_target::fetch_registers)
1663 (ravenscar_thread_target::store_registers)
1664 (ravenscar_thread_target::prepare_to_store): Use base thread when
1665 forwarding operation.
1666
39e2018a
TT
16672020-08-07 Tom Tromey <tromey@adacore.com>
1668
1669 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1670 "is_pid" case.
1671
2080266b
TT
16722020-08-07 Tom Tromey <tromey@adacore.com>
1673
1674 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1675 New methods.
1676 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1677 first.
1678 (ravenscar_thread_target::add_thread): Rename from
1679 ravenscar_add_thread.
1680 (ravenscar_thread_target::update_thread_list): Use a lambda.
1681 (ravenscar_thread_target::xfer_partial): New method.
1682
78c02f21
TT
16832020-08-07 Tom Tromey <tromey@adacore.com>
1684
1685 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1686 gdb::function_view.
1687 (iterate_over_live_ada_tasks): Change type of argument.
1688 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1689 of argument.
1690
d5d833af
TT
16912020-08-07 Tom Tromey <tromey@adacore.com>
1692
1693 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1694 Remove.
1695 (ravenscar_thread_target::extra_thread_info): Remove.
1696 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1697 defer to target beneath for non-Ravenscar threads.
1698
a8ac85bb
TT
16992020-08-07 Tom Tromey <tromey@adacore.com>
1700
1701 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1702 get_base_thread_from_ravenscar_task>: Now methods.
1703 <m_cpu_map>: New member.
1704 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1705 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1706 (ravenscar_thread_target::task_is_currently_active): Update.
1707 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1708 Now a method.
1709 (ravenscar_thread_target::add_active_thread): Put initial thread
1710 into the m_cpu_map.
1711
550ab58d
TT
17122020-08-07 Tom Tromey <tromey@adacore.com>
1713
1714 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1715 event_ptid.
1716
e9546579
TT
17172020-08-07 Tom Tromey <tromey@adacore.com>
1718
1719 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1720 runtime_initialized.
1721
3d4470e5
TT
17222020-08-07 Tom Tromey <tromey@adacore.com>
1723
1724 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1725 add_active_thread.
1726 (ravenscar_thread_target::add_active_thread): Now public.
1727 (ravenscar_inferior_created): Call add_active_thread after pushing
1728 the target.
1729
888bdb2b
SM
17302020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1731
1732 * regcache.c (ptid_regcache_map): New type.
1733 (target_ptid_regcache_map): New type.
1734 (regcaches): Change type to target_ptid_regcache_map.
1735 (get_thread_arch_aspace_regcache): Update to regcaches' new
1736 type.
1737 (regcache_thread_ptid_changed): Likewise.
1738 (registers_changed_ptid): Likewise.
1739 (regcaches_size): Likewise.
1740 (regcaches_test): Update.
1741 (regcache_thread_ptid_changed): Update.
1742 * regcache.h (regcache_up): New type.
1743 * gdbsupport/ptid.h (hash_ptid): New struct.
1744
b161a60d
SM
17452020-08-07 Simon Marchi <simon.marchi@efficios.com>
1746
1747 * observable.h (thread_ptid_changed): Add parameter
1748 `process_stratum_target *`.
1749 * infrun.c (infrun_thread_ptid_changed): Add parameter
1750 `process_stratum_target *` and use it.
1751 (selftests): New namespace.
1752 (infrun_thread_ptid_changed): New function.
1753 (_initialize_infrun): Register selftest.
1754 * regcache.c (regcache_thread_ptid_changed): Add parameter
1755 `process_stratum_target *` and use it.
1756 (regcache_thread_ptid_changed): New function.
1757 (_initialize_regcache): Register selftest.
1758 * thread.c (thread_change_ptid): Pass target to
1759 thread_ptid_changed observable.
1760
d2854d8d
CT
17612020-08-06 Caroline Tice <cmtice@google.com>
1762
fe4c3d43
SM
1763 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1764 (struct dwp_sections): Update field comments. Add loclists and
1765 rnglists fields.
1766 (struct virtual_v2_dwo_sections): Rename struct to
1767 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1768 size & offset fields for loclists and rnglists.
1769 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1770 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1771 skipping dummy type units.
1772 (create_dwp_hash_table): Update the large comment above the function to
1773 discuss Version 5 DWP files as well, with references. Update all the
1774 version checks in the function to check for version 5 as well. Add new
1775 section at the end to create dwp hash table for version 5.
1776 (create_dwp_v2_section): Rename function to
1777 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1778 Add V5 to error message text.
1779 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1780 into calls to create_dwp_v2_or_v5_section.
1781 (create_dwo_unit_in_dwp_v5): New function.
1782 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1783 check for version2; add else clause to handle version 5.
1784 (open_and_init_dwo_file): Add code to check dwarf version & only call
1785 create_debug_types_hash_table (with sections.types) if version is not 5;
1786 else call create_debug_type_hash_table, with sections.info.
1787 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1788 version 5.
1789 (dwarf2_locate_v5_dwp_sections): New function.
1790 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1791 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1792
159ed7d9
SM
17932020-08-06 Simon Marchi <simon.marchi@efficios.com>
1794
1795 * regcache.h (class regcache): Remove friend
1796 registers_changed_ptid.
1797 <regcache_thread_ptid_changed>: Remove.
1798 <regcaches>: Remove.
1799 * regcache.c (regcache::regcaches): Rename to...
1800 (regcaches): ... this. Make static.
1801 (get_thread_arch_aspace_regcache): Update.
1802 (regcache::regcache_thread_ptid_changed): Rename to...
1803 (regcache_thread_ptid_changed): ... this. Update.
1804 (class regcache_access): Remove.
1805 (regcaches_test): Update.
1806 (_initialize_regcache): Update.
1807 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1808 <forward_list>.
1809
174981ae
SM
18102020-08-06 Simon Marchi <simon.marchi@efficios.com>
1811
1812 * regcache.h (class regcache) <current_regcache>: Rename to...
1813 <regcaches>: ... this. Move doc here.
1814 * regcache.c (regcache::current_regcache) Rename to...
1815 (regcache::regcaches): ... this. Move doc to header.
1816 (get_thread_arch_aspace_regcache): Update.
1817 (regcache::regcache_thread_ptid_changed): Update.
1818 (registers_changed_ptid): Update.
1819 (class regcache_access) <current_regcache_size>: Rename to...
1820 <regcaches_size>: ... this.
1821 (current_regcache_test): Rename to...
1822 (regcaches_test): ... this.
1823 (_initialize_regcache): Update.
1824
ed908db6
VC
18252020-08-06 Victor Collod <vcollod@nvidia.com>
1826
1827 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1828
b5582ab7
KB
18292020-08-05 Kevin Buettner <kevinb@redhat.com>
1830
1831 * corelow.c (core_target::build_file_mappings): Don't output
1832 null pathname in warning.
1833
ea946b86
SM
18342020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1835
1836 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1837 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1838 gdb.dwarf2/dw2-single-line-discriminators.exp,
1839 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1840
57d02173
TT
18412020-08-05 Tom Tromey <tromey@adacore.com>
1842
1843 PR rust/26197:
1844 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1845 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1846 Fix off-by-one and type size errors in ordinary case.
1847
5555c86d
TV
18482020-08-05 Tom de Vries <tdevries@suse.de>
1849
1850 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1851 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1852
97916bfe
SM
18532020-08-04 Simon Marchi <simon.marchi@efficios.com>
1854
1855 * frame.h (frame_id_p): Return bool.
1856 (frame_id_artificial_p): Return bool.
1857 (frame_id_eq): Return bool.
1858 (has_stack_frames): Return bool.
1859 (get_selected_frame): Fix typo in comment.
1860 (get_frame_pc_if_available): Return bool.
1861 (get_frame_address_in_block_if_available): Return bool.
1862 (get_frame_func_if_available): Return bool.
1863 (read_frame_register_unsigned): Return bool.
1864 (get_frame_register_bytes): Return bool.
1865 (safe_frame_unwind_memory): Return bool.
1866 (deprecated_frame_register_read): Return bool.
1867 (frame_unwinder_is): Return bool.
1868 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1869 bool.
1870 <this_id::p>: Likewise.
1871 <prev_p>: Likewise.
1872 (frame_stash_add): Return bool.
1873 (get_frame_id): Use bool.
1874 (frame_id_build_special) Use bool.
1875 (frame_id_build_unavailable_stack): Use bool.
1876 (frame_id_build): Use bool.
1877 (frame_id_p): Return bool, use true/false instead of 1/0.
1878 (frame_id_artificial_p): Likewise.
1879 (frame_id_eq): Likewise.
1880 (frame_id_inner): Likewise.
1881 (get_frame_func_if_available): Likewise.
1882 (read_frame_register_unsigned): Likewise.
1883 (deprecated_frame_register_read): Likewise.
1884 (get_frame_register_bytes): Likewise.
1885 (has_stack_frames): Likewise.
1886 (inside_main_func): Likewise.
1887 (inside_entry_func): Likewise.
1888 (get_frame_pc_if_available): Likewise.
1889 (get_frame_address_in_block_if_available): Likewise.
1890 (frame_unwinder_is): Likewise.
1891 (safe_frame_unwind_memory): Likewise.
1892 (frame_unwind_arch): Likewise.
1893
fedfee88
SM
18942020-08-04 Simon Marchi <simon.marchi@efficios.com>
1895
1896 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1897 type to cached_copy_status.
1898 (fprintf_frame): Adjust.
1899 (get_frame_func_if_available): Adjust.
1900 (frame_cleanup_after_sniffer): Adjust.
1901
6cfa9b59
MW
19022020-08-04 Mark Wielaard <mark@klomp.org>
1903
1904 * MAINTAINERS (Write After Approval): Update email address.
1905
66d6346b
SM
19062020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1907
1908 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1909 dynamic_prop::const_val.
1910
8a6d5e35
SM
19112020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1912
1913 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1914 dynamic_prop::kind.
1915
51d6067d
SM
19162020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1917
1918 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1919
b26e2ae7
JM
19202020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1921
1922 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1923
39791af2
JM
19242020-08-04 Weimin Pan <weimin.pan@oracle.com>
1925 Jose E. Marchesi <jose.marchesi@oracle.com>
1926
1927 * configure.tgt: Add entry for bpf-*-*.
1928 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1929 (ALLDEPFILES): Add bpf-tdep.c.
1930 * bpf-tdep.c: New file.
1931 * MAINTAINERS: Add bpf target and maintainer.
1932 * NEWS: Mention the support for the new target.
1933
521894aa
TV
19342020-08-04 Tom de Vries <tdevries@suse.de>
1935
1936 PR symtab/23270
1937 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1938 Error.
1939
5d6356e9
JB
19402020-08-03 John Baldwin <jhb@FreeBSD.org>
1941
1942 * syscalls/freebsd.xml: Regenerate.
1943
0cf82b81
JB
19442020-08-03 John Baldwin <jhb@FreeBSD.org>
1945
1946 * syscalls/update-freebsd.sh: Fix usage and year range.
1947
8f34b746
TV
19482020-08-03 Tom de Vries <tdevries@suse.de>
1949
1950 PR symtab/26333
1951 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1952 DW_LNE_lo_user/DW_LNE_hi_user range.
1953
5e500d33
SM
19542020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1955
1956 PR ada/26318
1957 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1958 kind.
1959
78319c15
TBA
19602020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1961
1962 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1963
4c55e970
TBA
19642020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1965
1966 * breakpoint.c (set_breakpoint_condition): Update the condition
1967 expressions after checking that the input condition string parses
1968 successfully and does not contain junk at the end.
1969
1e620590
TBA
19702020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1971
1972 * breakpoint.c (set_breakpoint_condition): Update the
1973 condition string after parsing the new condition successfully.
1974
c8693053
RO
19752020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1976
1977 * proc-api.c (_STRUCTURED_PROC): Don't define.
1978 * proc-events.c: Likewise.
1979 * proc-flags.c: Likewise.
1980 * proc-why.c: Likewise.
1981 * procfs.c: Likewise.
1982
1983 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1984 * configure, config.in: Regenerate.
1985
5a99adb8
TV
19862020-07-30 Tom de Vries <tdevries@suse.de>
1987
1988 PR build/26320
1989 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1990 m_red/m_green/m_blue in a union.
1991
8ba83e91
TV
19922020-07-29 Tom de Vries <tdevries@suse.de>
1993
1994 PR tdep/26280
1995 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1996
f75a0693
AB
19972020-07-28 Tom Tromey <tromey@adacore.com>
1998
1999 PR symtab/26270:
2000 * symtab.h (find_pc_partial_function_sym): Declare.
2001 * cli/cli-cmds.c (disassemble_command): Use
2002 find_pc_partial_function_sym. Check asm_demangle.
2003 * blockframe.c (cache_pc_function_sym): New global.
2004 (cache_pc_function_name): Remove.
2005 (clear_pc_function_cache): Update.
2006 (find_pc_partial_function_sym): New function, from
2007 find_pc_partial_function.
2008 (find_pc_partial_function): Rewrite using
2009 find_pc_partial_function_sym.
2010
16f3242c
TT
20112020-07-28 Tom Tromey <tromey@adacore.com>
2012
2013 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2014 help. Add usage.
2015
4888741a
TT
20162020-07-28 Tom Tromey <tromey@adacore.com>
2017
2018 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2019 <DW_OP_GNU_variable_value>: Cast to address type.
2020
4d46f402
KR
20212020-07-28 Kamil Rytarowski <n54@gmx.com>
2022
2023 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2024 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2025 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2026 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2027 (nbsd_get_siginfo_type): New.
2028 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2029 (_initialize_nbsd_tdep): New.
2030
d70f978b
L
20312020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2032
2033 PR binutils/26301
2034 * configure: Regenerated.
2035
377170fa
L
20362020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2037
2038 PR binutils/26301
2039 * configure: Regenerated.
2040
43d5901d
AB
20412020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2042
2043 * python/py-frame.c: Remove 'user-regs.h' include.
2044 (frapy_read_register): Rewrite to make use of
2045 gdbpy_parse_register_id.
2046 * python/py-registers.c (gdbpy_parse_register_id): New function,
2047 moved here from python/py-unwind.c. Updated the return type, and
2048 also accepts register descriptor objects.
2049 * python/py-unwind.c: Remove 'user-regs.h' include.
2050 (pyuw_parse_register_id): Moved to python/py-registers.c.
2051 (unwind_infopy_add_saved_register): Update to use
2052 gdbpy_parse_register_id.
2053 (pending_framepy_read_register): Likewise.
2054 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2055
14fa8fb3
AB
20562020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2057
2058 * python/py-registers.c: Add 'user-regs.h' include.
2059 (register_descriptor_iter_find): New function.
2060 (register_descriptor_iterator_object_methods): New static global
2061 methods array.
2062 (register_descriptor_iterator_object_type): Add pointer to methods
2063 array.
2064
ddce1758
JB
20652020-07-27 John Baldwin <jhb@FreeBSD.org>
2066
2067 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2068 for all architectures on FreeBSD 11.3 and later.
2069
a4089f52
TT
20702020-07-27 Tom Tromey <tromey@adacore.com>
2071
2072 * gcore.h (load_corefile): Don't declare.
2073
95420d30
TV
20742020-07-27 Tom de Vries <tdevries@suse.de>
2075
2076 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2077 * config.in: Regenerate.
2078 * configure: Regenerate.
2079
05a6b8c2
EZ
20802020-07-26 Eli Zaretskii <eliz@gnu.org>
2081
2082 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2083 ws2tcpip.h. When checking whether socklen_t type is defined, use
2084 ws2tcpip.h if it is available and sys/socket.h isn't.
2085 * configure: Regenerate.
2086 * config.in: Regenerate.
2087
e79eb02f
AB
20882020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2089
2090 PR fortran/23051
2091 PR fortran/26139
2092 * valops.c (value_ind): Pass address to
2093 readjust_indirect_value_type.
2094 * value.c (readjust_indirect_value_type): Make parameter
2095 non-const, and add extra address parameter. Resolve original type
2096 before using it.
2097 * value.h (readjust_indirect_value_type): Update function
2098 signature and comment.
2099
876518dd
TV
21002020-07-25 Tom de Vries <tdevries@suse.de>
2101
2102 PR symtab/26243
2103 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2104 entries.
2105
f6720b1c
AM
21062020-07-24 Aaron Merey <amerey@redhat.com>
2107
2108 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2109 * configure: Rebuild.
2110
513487e1
KB
21112020-07-23 Kevin Buettner <kevinb@redhat.com>
2112
2113 PR corefiles/26294
2114 * corelow.c (_initialize_corelow): Add period to help text
2115 for "maintenance print core-file-backed-mappings".
2116
e7bc9db8
PA
21172020-07-23 Pedro Alves <pedro@palves.net>
2118
2119 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2120 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2121 meanwhile.
2122 * frame.c (frame_cache_generation, get_frame_cache_generation):
2123 New.
2124 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2125 (get_prev_frame_if_no_cycle): On exception, don't touch
2126 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2127 * frame.h (get_frame_cache_generation): Declare.
2128
90fcc466
TV
21292020-07-23 Tom de Vries <tdevries@suse.de>
2130
2131 PR tui/26282
2132 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2133 New default constructor.
2134
78344df7
AB
21352020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2136
2137 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2138 exclude non-statement entries.
2139
b089853a
KB
21402020-07-22 Kevin Buettner <kevinb@redhat.com>
2141
2142 * NEWS (New commands): Mention new command
2143 "maintenance print core-file-backed-mappings".
2144
09c2f5d4
KB
21452020-07-22 Kevin Buettner <kevinb@redhat.com>
2146
2147 * corelow.c (gdbcmd.h): Include.
2148 (core_target::info_proc_mappings): New method.
2149 (get_current_core_target): New function.
2150 (maintenance_print_core_file_backed_mappings): New function.
2151 (_initialize_corelow): Add core-file-backed-mappings to
2152 "maint print" commands.
2153
9c5ec5c2 21542020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2155
9c5ec5c2
KB
2156 * linux-tdep.c (dump_note_entry_p): New function.
2157 (linux_dump_mapping_p_ftype): New typedef.
2158 (linux_find_memory_regions_full): Add new parameter,
2159 should_dump_mapping_p.
2160 (linux_find_memory_regions): Adjust call to
2161 linux_find_memory_regions_full.
2162 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2163 call to linux_find_memory_regions_full.
2164
db082f59
KB
21652020-07-22 Kevin Buettner <kevinb@redhat.com>
2166
2167 * corelow.c (solist.h, unordered_map): Include.
2168 (class core_target): Add field m_core_file_mappings and
2169 method build_file_mappings.
2170 (core_target::core_target): Call build_file_mappings.
2171 (core_target::~core_target): Free memory associated with
2172 m_core_file_mappings.
2173 (core_target::build_file_mappings): New method.
2174 (core_target::xfer_partial): Use m_core_file_mappings
2175 for memory transfers.
2176 * linux-tdep.c (linux_read_core_file_mappings): New
2177 function.
2178 (linux_core_info_proc_mappings): Rewrite to use
2179 linux_read_core_file_mappings.
2180 (linux_init_abi): Register linux_read_core_file_mappings.
2181
7e183d27
KB
21822020-07-22 Kevin Buettner <kevinb@redhat.com>
2183
2184 * arch-utils.c (default_read_core_file_mappings): New function.
2185 * arch-utils.c (default_read_core_file_mappings): Declare.
2186 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2187 * gdbarch.h, gdbarch.c: Regenerate.
2188
2735d421
KB
21892020-07-22 Kevin Buettner <kevinb@redhat.com>
2190
2191 PR corefiles/25631
2192 * corelow.c (core_target:xfer_partial): Revise
2193 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2194 case after first checking the stratum beneath the core
2195 target.
2196 (has_all_memory): Return true.
2197 * target.c (raw_memory_xfer_partial): Revise comment
2198 regarding use of has_all_memory.
2199
e56cb451
KB
22002020-07-22 Kevin Buettner <kevinb@redhat.com>
2201
2202 * exec.h (section_table_xfer_memory): Revise declaration,
2203 replacing section name parameter with an optional callback
2204 predicate.
2205 * exec.c (section_table_xfer_memory): Likewise.
2206 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2207 of section_table_xfer_memory.
2208
32fa152e
TT
22092020-07-22 Tom Tromey <tromey@adacore.com>
2210
2211 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2212 lookup_symbol_search_name.
2213
a67a1c41
AB
22142020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2215
2216 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2217 redundant local variable.
2218 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2219 reference, not pointer, update code accordingly.
2220
a7b4ff4f
SM
22212020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2222 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2223
2224 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2225 * jit.c (jit_breakpoint_re_set_internal): Use the
2226 `skip_jit_symbol_lookup` field.
2227
2340e834
SM
22282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2229 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2230
2231 * jit.c (jit_read_descriptor): Define the descriptor address once,
2232 use twice.
2233 (jit_breakpoint_deleted): Move the declaration of the loop variable
2234 `iter` into the loop header.
2235 (jit_breakpoint_re_set_internal): Move the declaration of the local
2236 variable `objf_data` to the first point of definition.
2237 (jit_event_handler): Move the declaration of local variables
2238 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2239 Rename `objf` to `jited`.
2240
c1072906
SM
22412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2242
2243 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2244 Remove.
2245 * jit.c (get_jiter_objfile_data): Update.
2246
c8474dc3
TBA
22472020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2248 Simon Marchi <simon.marchi@polymtl.ca>
2249
2250 * jit.c (struct jit_program_space_data): Remove.
2251 (jit_program_space_key): Remove.
2252 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2253 stuff.
2254 (get_jit_program_space_data): Remove.
2255 (jit_breakpoint_deleted): Iterate on all of the program space's
2256 objfiles.
2257 (jit_inferior_init): Likewise.
2258 (jit_breakpoint_re_set_internal): Likewise. Also change return
2259 type to void.
2260 (jit_breakpoint_re_set): Pass current_program_space to
2261 jit_breakpoint_re_set_internal.
2262
77208eb7
SM
22632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2264
2265 * jit.h (struct jiter_objfile_data) <cached_code_address,
2266 jit_breakpoint>: Move to here from ...
2267 * jit.c (jit_program_space_data): ... here.
2268 (jiter_objfile_data::~jiter_objfile_data): Update.
2269 (jit_breakpoint_deleted): Update.
2270 (jit_breakpoint_re_set_internal): Update.
2271
8c1c720f
SM
22722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2273
2274 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2275 checks.
2276 (jit_read_descriptor): Remove NULL check.
2277 (jit_event_handler): Add an assertion.
2278
0e74a041
SM
22792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2280
2281 * jit.h (struct jit_objfile_data): Split into...
2282 (struct jiter_objfile_data): ... this ...
2283 (struct jited_objfile_data): ... and this.
2284 * objfiles.h (struct objfile) <jit_data>: Remove.
2285 <jiter_data, jited_data>: New fields.
2286 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2287 (jiter_objfile_data::~jiter_objfile_data): ... this.
2288 (get_jit_objfile_data): Rename to ...
2289 (get_jiter_objfile_data): ... this.
2290 (add_objfile_entry): Update.
2291 (jit_read_descriptor): Use get_jiter_objfile_data.
2292 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2293 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2294 (jit_inferior_exit_hook): Use objfile's jited_data field.
2295
238b5c9f
SM
22962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2297
2298 * jit.h: Forward-declare `struct minimal_symbol`.
2299 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2300 constructor, destructor, and an objfile* field.
2301 * jit.c (jit_objfile_data): Remove.
2302 (struct jit_objfile_data): Migrate from here to jit.h.
2303 (jit_objfile_data::~jit_objfile_data): New destructor
2304 implementation with code moved from free_objfile_data.
2305 (free_objfile_data): Delete.
2306 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2307 (jit_find_objf_with_entry_addr): Ditto.
2308 (jit_inferior_exit_hook): Ditto.
2309 (_initialize_jit): Remove the call to
2310 register_objfile_data_with_cleanup.
2311 * objfiles.h (struct objfile) <jit_data>: New field.
2312
fe053b9e
TBA
23132020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2314
2315 * jit.h: Forward-declare `struct objfile`.
2316 (jit_event_handler): Add a second parameter, the JITer objfile.
2317 * jit.c (jit_read_descriptor): Change the signature to take the
2318 JITer objfile as an argument instead of the jit_program_space_data.
2319 (jit_inferior_init): Update the call to jit_read_descriptor.
2320 (jit_event_handler): Use the new JITer objfile argument when calling
2321 jit_read_descriptor.
2322 * breakpoint.c (handle_jit_event): Update the call to
2323 jit_event_handler to pass the JITer objfile.
2324
4cec0c66
JB
23252020-07-21 John Baldwin <jhb@FreeBSD.org>
2326
2327 * gdbarch.c: Regenerate.
2328 * gdbarch.h: Regenerate.
2329 * gdbarch.sh (handle_segmentation_fault): Remove method.
2330 * infrun.c (handle_segmentation_fault): Remove.
2331 (print_signal_received_reason): Remove call to
2332 handle_segmentation_fault.
2333
0e42f66a
JB
23342020-07-21 John Baldwin <jhb@FreeBSD.org>
2335
2336 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2337 Rename to sparc64_linux_report_signal_info and add siggnal
2338 argument.
2339 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2340 instead of sparc64_linux_handle_segmentation_fault.
2341
77bdfeb2
JB
23422020-07-21 John Baldwin <jhb@FreeBSD.org>
2343
2344 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2345 i386_linux_report_signal_info instead of
2346 i386_linux_handle_segmentation_fault.
2347 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2348 to i386_linux_report_signal_info and add siggnal argument.
2349 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2350 of i386_linux_handle_segmentation_fault.
2351 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2352 to i386_linux_report_signal_info and add siggnal argument.
2353
ad97bfc5
JB
23542020-07-21 John Baldwin <jhb@FreeBSD.org>
2355
2356 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2357 hook if present.
2358
272bb05c
JB
23592020-07-21 John Baldwin <jhb@FreeBSD.org>
2360
2361 * gdbarch.c: Regenerate.
2362 * gdbarch.h: Regenerate.
2363 * gdbarch.sh (report_signal_info): New method.
2364 * infrun.c (print_signal_received_reason): Invoke gdbarch
2365 report_signal_info hook if present.
2366
baf8791e
AB
23672020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2368
2369 * python/py-registers.c : Add 'unordered_map' include.
2370 (gdbpy_new_reggroup): Renamed to...
2371 (gdbpy_get_reggroup): ...this. Update to only create register
2372 group descriptors when needed.
2373 (gdbpy_reggroup_iter_next): Update.
2374
f7306dac
AB
23752020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2376
2377 * python/py-registers.c (gdbpy_register_object_data): New static
2378 global.
2379 (gdbpy_register_object_data_init): New function.
2380 (gdbpy_new_register_descriptor): Renamed to...
2381 (gdbpy_get_register_descriptor): ...this, and update to reuse
2382 existing register descriptors where possible.
2383 (gdbpy_register_descriptor_iter_next): Update.
2384 (gdbpy_initialize_registers): Register new gdbarch data.
2385
05c309a8
SM
23862020-07-21 Simon Marchi <simon.marchi@efficios.com>
2387
2388 * linux-nat.c (stopped_pids): Make static.
2389
d1fd641e
SM
23902020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2391
2392 PR ada/26235
2393 * gdbtypes.c (ada_discrete_type_low_bound,
2394 ada_discrete_type_high_bound): Handle undefined bounds.
2395
1de14d77
KR
23962020-07-21 Kamil Rytarowski <n54@gmx.com>
2397
2398 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2399 declaration.
2400 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2401 function.
2402
ed810cc7
JB
24032020-07-20 John Baldwin <jhb@FreeBSD.org>
2404
2405 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2406 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2407 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2408 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2409 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2410 method.
2411
ae5369e7
LC
24122020-07-20 Ludovic Courtès <ludo@gnu.org>
2413
2414 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2415 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2416 which are deprecated in Guile 3.0.
2417 * configure.ac (try_guile_versions): Add "guile-3.0".
2418 * configure (try_guile_versions): Regenerate.
2419 * NEWS: Update entry.
2420
68cf161c
LC
24212020-07-20 Ludovic Courtès <ludo@gnu.org>
2422 Doug Evans <dje@google.com>
2423
2424 PR gdb/21104
2425 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2426 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2427 USING_GUILE_BEFORE_2_2.
2428 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2429 Change type to 'scm_t_port_type *'.
2430 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2431 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2432 parameter and honor it. Update callers.
2433 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2434 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2435 functions.
2436 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2437 USING_GUILE_BEFORE_2_2.
2438 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2439 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2440 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2441 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2442 and 'SCM_PORT_TYPE'.
2443 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2444 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2445 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2446 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2447 [!USING_GUILE_BEFORE_2_2]: New functions.
2448 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2449 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2450 'gdbscm_memory_port_read'.
2451 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2452 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2453 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2454 function.
2455 (ioscm_init_memory_port): Remove.
2456 (ioscm_init_memory_port_stream): New function
2457 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2458 function.
2459 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2460 Return scm_from_uint (0).
2461 (gdbscm_set_memory_port_read_buffer_size_x)
2462 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2463 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2464 Return scm_from_uint (0).
2465 (gdbscm_set_memory_port_write_buffer_size_x)
2466 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2467 * configure.ac (try_guile_versions): Add "guile-2.2".
2468 * configure: Regenerate.
2469 * NEWS: Add entry.
2470
aee91db3
TT
24712020-07-18 Tom Tromey <tom@tromey.com>
2472
2473 * linux-nat.c (linux_multi_process): Remove.
2474 (linux_nat_target::supports_multi_process): Return true.
2475
0e267416
AB
24762020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2477
2478 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2479 (riscv_lookup_target_description): Return pointer out of
2480 unique_ptr.
2481 * target-descriptions.c (allocate_target_description): Add
2482 comment.
2483 (target_desc_deleter::operator()): Likewise.
2484 * target-descriptions.h (struct target_desc_deleter): Moved to
2485 gdbsupport/tdesc.h.
2486 (target_desc_up): Likewise.
2487
f80c8ec4
TT
24882020-07-17 Tom Tromey <tromey@adacore.com>
2489
2490 * linux-nat.c (linux_nat_target::supports_non_stop)
2491 (linux_nat_target::always_non_stop_p): Use "true".
2492 (linux_nat_target::supports_disable_randomization): Use "true" and
2493 "false".
2494
d0ce17d8
CT
24952020-07-16 Caroline Tice <cmtice@google.com>
2496
2497 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2498 (RNGLIST_HEADER_SIZE64): New constant definition.
2499 (struct dwop_section_names): Add rnglists_dwo.
2500 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2501 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2502 (struct dwo_sections): Add rnglists field.
2503 (read_attribut_reprocess): Add tag parameter.
2504 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2505 (cu_debug_rnglists_section): New function (decl & definition).
2506 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2507 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2508 die whose range is being checked; get rnglist section from
2509 cu_debug_rnglists_section, to get from either objfile or dwo file as
2510 appropriate. Add cases for DW_RLE_base_addressx,
2511 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2512 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2513 test inside if-condition and updating complaint message.
2514 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2515 dwarf2_rnglists_process.
2516 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2517 dwarf2_ranges_process.
2518 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2519 need_ranges_base and update comment appropriately. Also pass die tag
2520 to dwarf2_ranges_read.
2521 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2522 need_ranges_base and update comment appropriately. Also pass die tag
2523 to dwarf2_ranges_process.
2524 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2525 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2526 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2527 need_ranges_base and update comment appropriately. Also pass die tag
2528 to read_attribute_reprocess and dwarf2_ranges_read.
2529 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2530 and update function comment appropriately.
2531 (read_loclist_index): Call read_loclists_rnglists_header instead of
2532 read_loclist_header.
2533 (read_rnglist_index): New function.
2534 (read_attribute_reprocess): Add tag parameter. Add code for
2535 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2536 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2537
3dcc261c
AB
25382020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2539
2540 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2541 being resolved.
2542
ccb9eba6
AB
25432020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 * arch-utils.c (show_architecture): Update formatting of messages.
2546
cf88be68
SM
25472020-07-12 Simon Marchi <simon.marchi@efficios.com>
2548
2549 * gdbtypes.h (struct type) <bounds>: Handle array and string
2550 types.
2551 * ada-lang.c (assign_aggregate): Use type::bounds on
2552 array/string type.
2553 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2554 * c-varobj.c (c_number_of_children): Likewise.
2555 (c_describe_child): Likewise.
2556 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2557 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2558 (f_type_print_base): Likewise.
2559 * f-valprint.c (f77_array_offset_tbl): Likewise.
2560 (f77_get_upperbound): Likewise.
2561 (f77_print_array_1): Likewise.
2562 * guile/scm-type.c (gdbscm_type_range): Likewise.
2563 * m2-typeprint.c (m2_array): Likewise.
2564 (m2_is_long_set_of_type): Likewise.
2565 * m2-valprint.c (get_long_set_bounds): Likewise.
2566 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2567 * python/py-type.c (typy_range): Likewise.
2568 * rust-lang.c (rust_internal_print_type): Likewise.
2569 * type-stack.c (type_stack::follow_types): Likewise.
2570 * valarith.c (value_subscripted_rvalue): Likewise.
2571 * valops.c (value_cast): Likewise.
2572
509971ae
SM
25732020-07-12 Simon Marchi <simon.marchi@efficios.com>
2574
2575 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2576 callers to use the equivalent accessor methods.
2577
107406b7
SM
25782020-07-12 Simon Marchi <simon.marchi@efficios.com>
2579
2580 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2581 (struct type) <bit_stride>: New method.
2582 (TYPE_BIT_STRIDE): Remove.
2583 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2584
bb789949
SM
25852020-07-12 Simon Marchi <simon.marchi@efficios.com>
2586
2587 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2588 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2589 callers to use the equivalent accessor methods instead.
2590
39498edb
SM
25912020-07-12 Simon Marchi <simon.marchi@efficios.com>
2592
2593 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2594 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2595 callers to use the equivalent accessor methods instead.
2596
3b606f38
SM
25972020-07-12 Simon Marchi <simon.marchi@efficios.com>
2598
2599 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2600 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2601 to use dynamic_prop::kind.
2602
064d9cb9
SM
26032020-07-12 Simon Marchi <simon.marchi@efficios.com>
2604
2605 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2606 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2607 to get the bound property's kind and check against
2608 PROP_UNDEFINED.
2609
5537ddd0
SM
26102020-07-12 Simon Marchi <simon.marchi@efficios.com>
2611
2612 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2613 all callers to use type::range_bounds followed by
2614 dynamic_prop::{low,high}.
2615
8c2e4e06
SM
26162020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2617
2618 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2619 const_val, set_const_val, baton, set_locexpr, set_loclist,
2620 set_addr_offset, variant_parts, set_variant_parts,
2621 original_type, set_original_type>: New methods.
2622 <kind>: Rename to...
2623 <m_kind>: ... this. Update all users to use the new methods
2624 instead.
2625 <data>: Rename to...
2626 <m_data>: ... this. Update all users to use the new methods
2627 instead.
2628
7c6f2712
SM
26292020-07-12 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * gdbtypes.c (get_discrete_bounds): Return failure if
2632 the range type's bounds are not both defined and constant
2633 values.
2634 (get_array_bounds): Update comment. Remove undefined bound check.
2635
599088e3
SM
26362020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2637
2638 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2639 the type::bounds method directly.
2640
c4dfcb36
SM
26412020-07-12 Simon Marchi <simon.marchi@efficios.com>
2642
2643 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2644 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2645 are used to set the range type's bounds to use set_bounds.
2646
0a278aa7
PW
26472020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2648
2649 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2650
cce20f10
PA
26512020-07-10 Pedro Alves <pedro@palves.net>
2652
2653 * gdbthread.h (inferior_ref): Define.
2654 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2655 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2656 * thread.c
2657 (scoped_restore_current_thread::restore):
2658 Adjust to gdb::ref_ptr.
2659 (scoped_restore_current_thread::~scoped_restore_current_thread):
2660 Remove manual decref handling.
2661 (scoped_restore_current_thread::scoped_restore_current_thread):
2662 Adjust to use
2663 inferior_ref::new_reference/thread_info_ref::new_reference.
2664 Incref the thread before calling get_frame_id instead of after.
2665 Let TARGET_CLOSE_ERROR propagate.
2666
6d7aa592
PA
26672020-07-10 Pedro Alves <pedro@palves.net>
2668
2669 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2670 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2671 NOT_AVAILABLE_ERROR.
2672 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2673 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2674
b3e3a4c1
SM
26752020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2676 Pedro Alves <pedro@palves.net>
2677
2678 PR gdb/26199
2679 * infrun.c (threads_are_resumed_pending_p): Delete.
2680 (do_target_wait): Remove threads_are_executing and
2681 threads_are_resumed_pending_p checks from the inferior_matches
2682 lambda. Update comments.
2683
d6cc5d98
PA
26842020-07-10 Pedro Alves <pedro@palves.net>
2685
2686 PR gdb/26199
2687 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2688 executing threads.
2689
7d3badc6
PA
26902020-07-10 Pedro Alves <pedro@palves.net>
2691
2692 PR gdb/26199
2693 * infrun.c (handle_no_resumed): Handle multiple targets.
2694
42bd97a6
PA
26952020-07-10 Pedro Alves <pedro@palves.net>
2696
2697 PR gdb/26199
2698 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2699 target_is_async_p.
2700
43667cc6
PA
27012020-07-10 Pedro Alves <pedro@palves.net>
2702
2703 PR gdb/26199
2704 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2705 threads, not all threads.
2706
96118d11
PA
27072020-07-10 Pedro Alves <pedro@palves.net>
2708
2709 PR gdb/26199
2710 * remote.c (remote_target::open_1): Pass remote target pointer as
2711 data to create_async_event_handler.
2712 (remote_async_inferior_event_handler): Mark async event handler
2713 before returning if the remote target still has either pending
2714 events or unacknowledged notifications.
2715
54904d81
JB
27162020-07-10 John Baldwin <jhb@FreeBSD.org>
2717
2718 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2719 declaration.
2720 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2721 function.
2722
f37e5866
JB
27232020-07-09 John Baldwin <jhb@FreeBSD.org>
2724
2725 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2726 inferior_ptid.
2727
fc238d4a
JB
27282020-07-09 John Baldwin <jhb@FreeBSD.org>
2729
2730 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2731 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2732 AT_FREEBSD_PS_STRINGS.
2733
6e2469ff
HD
27342020-07-08 Hannes Domani <ssbssa@yahoo.de>
2735
2736 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2737 of debugfile path on Windows.
2738
d1076c41
JB
27392020-07-08 John Baldwin <jhb@FreeBSD.org>
2740
2741 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2742 argument to 'data'.
2743
15f3b077
TT
27442020-07-08 Tom Tromey <tromey@adacore.com>
2745
2746 * ada-lang.c (ada_exception_message_1): Use read_memory.
2747
9fc501fd
AB
27482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2749
2750 PR python/22748
2751 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2752 special handling for inline frames.
2753 * findvar.c (value_of_register_lazy): Skip inline frames when
2754 creating lazy register values.
2755 * frame.c (frame_id_computed_p): Delete definition.
2756 * frame.h (frame_id_computed_p): Delete declaration.
2757
64cb3757
AB
27582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2759
2760 * NEWS: Mention additions to Python API.
2761 * python/py-arch.c (archpy_register_groups): New function.
2762 (arch_object_methods): Add 'register_groups' method.
2763 * python/py-registers.c (reggroup_iterator_object): New struct.
2764 (reggroup_object): New struct.
2765 (gdbpy_new_reggroup): New function.
2766 (gdbpy_reggroup_to_string): New function.
2767 (gdbpy_reggroup_name): New function.
2768 (gdbpy_reggroup_iter): New function.
2769 (gdbpy_reggroup_iter_next): New function.
2770 (gdbpy_new_reggroup_iterator): New function
2771 (gdbpy_initialize_registers): Register new types.
2772 (reggroup_iterator_object_type): Define new Python type.
2773 (gdbpy_reggroup_getset): New static global.
2774 (reggroup_object_type): Define new Python type.
2775 * python/python-internal.h
2776
0f767f94
AB
27772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2778
2779 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2780 * python/py-arch.c (archpy_registers): New function.
2781 (arch_object_methods): Add 'registers' method.
2782 * python/py-registers.c: New file.
2783 * python/python-internal.h
2784 (gdbpy_new_register_descriptor_iterator): Declare.
2785 (gdbpy_initialize_registers): Declare.
2786 * python/python.c (do_start_initialization): Call
2787 gdbpy_initialize_registers.
2788 * NEWS: Mention additions to the Python API.
2789
87dbc774
AB
27902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2791
2792 * NEWS: Mention new Python API method.
2793 * python/py-unwind.c (pending_framepy_architecture): New function.
2794 (pending_frame_object_methods): Add architecture method.
2795
3bc98c0c
AB
27962020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2797
2798 * gdbarch.c: Regenerate.
2799 * gdbarch.h: Regenerate.
2800 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2801 (gdbarch_data): Use internal_error for the case where
2802 deprecated_set_gdbarch_data was originally needed.
2803 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2804 and use passed in obstack.
2805 (libunwind_frame_set_descr): Should no longer get back NULL from
2806 gdbarch_data.
2807 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2808 type.
2809 * user-regs.c (user_regs_init): Update parameters, and use passed
2810 in obstack.
2811 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2812 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2813
d8cc8af6
TV
28142020-07-06 Tom de Vries <tdevries@suse.de>
2815
2816 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2817 End-Of-Sequence in lte_is_less_than.
2818 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2819 "gdb: Don't reorder line table entries too much when sorting".
2820
947f7597
TV
28212020-07-06 Tom de Vries <tdevries@suse.de>
2822
2823 PR tui/26205
2824 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2825
1e7c1b22
TV
28262020-07-05 Tom de Vries <tdevries@suse.de>
2827
2828 PR build/26187
2829 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2830 std::uncaught_exceptions instead of deprecated
2831 std::uncaught_exception.
2832
a36158ec
SM
28332020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2834
2835 * macroexp.h (macro_stringify): Return
2836 gdb::unique_xmalloc_ptr<char>.
2837 * macroexp.c (macro_stringify): Likewise.
2838 * macrotab.c (fixup_definition): Update.
2839
14d960c8
SM
28402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2841
2842 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2843 (lex_one_token): Update.
2844 * macroexp.c (struct macro_buffer) <release>: Return
2845 gdb::unique_xmalloc_ptr<char>.
2846 (macro_stringify): Update.
2847 (macro_expand): Update.
2848 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2849 * macroexp.h (macro_expand_next): Likewise.
2850
211d5b1c
SM
28512020-07-02 Simon Marchi <simon.marchi@efficios.com>
2852
2853 * macroexp.h (macro_lookup_ftype): Remove.
2854 (macro_expand, macro_expand_once, macro_expand_next): Remove
2855 lookup function parameters, add scope parameter.
2856 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2857 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2858 * macroscope.h (standard_macro_lookup): Change parameter type
2859 to macro_scope.
2860 * macroscope.c (standard_macro_lookup): Likewise.
2861 * c-exp.y (lex_one_token): Update.
2862 * macrocmd.c (macro_expand_command): Likewise.
2863 (macro_expand_once_command): Likewise.
2864
b1a35af2
SM
28652020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2866
2867 * inf-loop.c (inferior_event_handler): Remove client_data param.
2868 * inf-loop.h (inferior_event_handler): Likewise.
2869 * infcmd.c (step_1): Adjust.
2870 * infrun.c (proceed): Adjust.
2871 (fetch_inferior_event): Remove client_data param.
2872 (infrun_async_inferior_event_handler): Adjust.
2873 * infrun.h (fetch_inferior_event): Remove `void *` param.
2874 * linux-nat.c (handle_target_event): Adjust.
2875 * record-btrace.c (record_btrace_handle_async_inferior_event):
2876 Adjust.
2877 * record-full.c (record_full_async_inferior_event_handler):
2878 Adjust.
2879 * remote.c (remote_async_inferior_event_handler): Adjust.
2880
1cdf9e33
TT
28812020-07-01 Tom Tromey <tom@tromey.com>
2882
2883 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2884 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2885
32c1e210
TT
28862020-07-01 Tom Tromey <tom@tromey.com>
2887
2888 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2889 tui_gen_win_info.
2890 (tui_win_info::make_window): Merge with
2891 tui_gen_win_info::make_window.
2892 (tui_win_info::make_visible): Move from tui_gen_win_info.
2893 * tui/tui-win.c (tui_win_info::max_width): Move from
2894 tui_gen_win_info.
2895 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2896 type.
2897 <window_factory>: Likewise.
2898 * tui/tui-layout.c (tui_win_info::resize): Move from
2899 tui_gen_win_info.
2900 (make_standard_window): Change return type.
2901 (get_locator_window, tui_get_window_by_name): Likewise.
2902 (tui_layout_window::apply): Remove a cast.
2903 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2904 (struct tui_win_info): Merge with tui_gen_win_info.
2905 (struct tui_gen_win_info): Remove.
2906
a30cb6da
TT
29072020-07-01 Tom Tromey <tom@tromey.com>
2908
2909 * tui/tui-stack.h (struct tui_locator_window): Derive from
2910 tui_win_info.
2911 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2912 <can_box>: New method.
2913
1eb2161f
TT
29142020-07-01 Tom Tromey <tom@tromey.com>
2915
2916 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2917
7134f2eb
TT
29182020-07-01 Tom Tromey <tom@tromey.com>
2919
2920 * tui/tui-regs.c (tui_data_window::display_registers_from)
2921 (tui_data_window::display_registers_from)
2922 (tui_data_window::first_data_item_displayed)
2923 (tui_data_window::delete_data_content_windows): Update.
2924 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2925 Remove.
2926 (tui_data_window::check_register_values): Update.
2927 (tui_data_item_window::rerender): Add parameters. Update.
2928 (tui_data_item_window::refresh_window): Remove.
2929 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2930 virtual.
2931 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2932 tui_gen_win_info.
2933 <refresh_window, max_height, min_height>: Remove.
2934 <rerender>: Add parameters.
2935 <x, y, visible>: New members.
2936 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2937 <m_item_width>: New member.
2938
22b7b041
TT
29392020-07-01 Tom Tromey <tom@tromey.com>
2940
2941 * tui/tui-regs.c (tui_data_window::show_register_group)
2942 (tui_data_window::check_register_values): Update.
2943 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2944 from item_no.
2945
c9753adb
TT
29462020-07-01 Tom Tromey <tom@tromey.com>
2947
2948 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2949 useless "if".
2950
9ab26b4a
TT
29512020-07-01 Tom Tromey <tom@tromey.com>
2952
2953 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2954 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2955
e555083f
TT
29562020-07-01 Tom Tromey <tom@tromey.com>
2957
2958 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2959 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2960 (struct tui_line_or_address): Move from tui-data.h.
2961 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2962 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2963 (tui_cmd_window, tui_source_window_base, tui_source_window)
2964 (tui_disasm_window): Don't declare.
2965 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2966 to tui-winsource.h.
2967 (SINGLE_KEY): Move to tui-stack.c.
2968
7a02bab7
TT
29692020-07-01 Tom Tromey <tom@tromey.com>
2970
2971 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2972 std::string.
2973 * tui/tui-regs.c (class tab_expansion_file): New.
2974 (tab_expansion_file::write): New method.
2975 (tui_register_format): Change return type. Use
2976 tab_expansion_file.
2977 (tui_get_register, tui_data_window::display_registers_from)
2978 (tui_data_item_window::rerender): Update.
2979 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2980 * tui/tui-io.c (tui_expand_tabs): Remove.
2981
ea68593b
TT
29822020-07-01 Tom Tromey <tom@tromey.com>
2983
2984 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2985
a8caed5d
FS
29862020-07-01 Fangrui Song <maskray@google.com>
2987
2988 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2989
9cdf9820
AKS
29902020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2991
2992 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2993 forms for DW_AT_associated and DW_AT_allocated attributes,
2994 which is already checked in function attr_to_dynamic_prop.
2995
a1520ad8
TT
29962020-06-30 Tom Tromey <tromey@adacore.com>
2997
2998 * dwarf2/read.c (quirk_rust_enum): Correctly call
2999 alloc_rust_variant for default-less enum.
3000
5ac58899
TT
30012020-06-30 Tom Tromey <tromey@adacore.com>
3002
3003 PR build/26183:
3004 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3005 gdb::to_string.
3006
19b187a9
SM
30072020-06-29 Simon Marchi <simon.marchi@efficios.com>
3008
3009 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3010 * gdbarch.h: Re-generate.
3011
cd4c4c07
TT
30122020-06-28 Tom Tromey <tom@tromey.com>
3013
3014 * command.h (cmd_types): Remove.
3015 (cmd_type): Don't declare.
3016 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3017 typedef.
3018 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3019 * cli/cli-decode.c (cmd_type): Remove.
3020
05779d57
PA
30212020-06-27 Pedro Alves <palves@redhat.com>
3022
3023 * fork-child.c (prefork_hook): Adjust.
3024 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3025 Delete.
3026 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3027 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3028 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3029 Remove declarations.
3030 (struct inferior) <set_tty, tty>: New methods.
3031 (struct inferior) <terminal>: Rename to ...
3032 (struct inferior) <m_terminal>: ... this and make private.
3033 * main.c (captured_main_1): Adjust.
3034 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3035 (mi_cmd_inferior_tty_show): Adjust.
3036 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3037 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3038
1776e3e5
NA
30392020-06-26 Nick Alcock <nick.alcock@oracle.com>
3040
3041 * configure.ac: Add --enable-libctf: handle --disable-static
3042 properly.
3043 * acinclude.m4: sinclude ../config/enable.m4.
3044 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3045 (LIBCTF): Substitute in.
3046 (CTF_DEPS): New, likewise.
3047 (CLIBS): libctf needs symbols from libbfd: move earlier.
3048 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3049 flags.
3050 * ctfread.c: Surround in ENABLE_LIBCTF.
3051 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3052 * configure: Regenerate.
3053 * config.in: Likewise.
3054
58373b80
SM
30552020-06-25 Simon Marchi <simon.marchi@efficios.com>
3056
3057 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3058
277474ee
SM
30592020-06-25 Simon Marchi <simon.marchi@efficios.com>
3060
3061 * inferior.h (struct inferior) <terminal>: Change type to
3062 gdb::unique_xmalloc_ptr<char>.
3063 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3064 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3065 field, adjust to unique pointer.
3066 (get_inferior_io_terminal): Adjust to unique pointer.
3067
6d74da72
AB
30682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3069
3070 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3071 registers, not just the known core set of registers.
3072
2e52d038
AB
30732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3074
3075 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3076 fflags, frm, and fcsr registers.
3077 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3078 restore groups.
3079 (riscv_tdesc_unknown_reg): New function.
3080 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3081 tdesc_use_registers.
3082 * riscv-tdep.h (struct gdbarch_tdep): Add
3083 unknown_csrs_first_regnum, unknown_csrs_count,
3084 duplicate_fflags_regnum, duplicate_frm_regnum, and
3085 duplicate_fcsr_regnum fields.
3086
be64fd07
AB
30872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3088
3089 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3090 callback, use the callback (when not null) to help number unknown
3091 registers.
3092 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3093 (tdesc_use_registers): Add extra parameter to declaration.
3094
3b9fce96
AB
30952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3096
3097 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3098 in the file.
3099 (class riscv_pending_register_alias): Likewise.
3100 (riscv_register_feature::register_info): Change 'required_p' field
3101 to 'required', and change its type. Add 'check' member function.
3102 (riscv_register_feature::register_info::check): Define new member
3103 function.
3104 (riscv_xreg_feature): Change initialisation of 'required' field.
3105 (riscv_freg_feature): Likewise.
3106 (riscv_virtual_feature): Likewise.
3107 (riscv_csr_feature): Likewise.
3108 (riscv_check_tdesc_feature): Take extra parameter, the csr
3109 tdesc_feature, rewrite the function to use the new
3110 riscv_register_feature::register_info::check function.
3111 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3112
865bad26
AB
31132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3114
3115 * features/Makefile: Remove all references to the deleted files
3116 below.
3117 * features/riscv/32bit-csr.c: Deleted.
3118 * features/riscv/32bit-csr.xml: Deleted.
3119 * features/riscv/64bit-csr.c: Deleted.
3120 * features/riscv/64bit-csr.xml: Deleted.
3121 * features/riscv/rebuild-csr-xml.sh: Deleted.
3122
ed69cbc8
AB
31232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3124
3125 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3126 whitespace error for declaration of names member variable.
3127 (struct riscv_register_feature): Add new prefer_first_name member
3128 variable, and fix whitespace error in declaration of registers.
3129 (riscv_xreg_feature): Initialize prefer_first_name field.
3130 (riscv_freg_feature): Likewise.
3131 (riscv_virtual_feature): Likewise.
3132 (riscv_csr_feature): Likewise.
3133 (riscv_register_name): Expand on comments. Remove register name
3134 modifications for CSR and virtual registers.
3135
4445e8f5
AB
31362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3137
3138 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3139 errors.
3140
767a879e
AB
31412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3142
3143 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3144 riscv-opc.h.
3145 (class riscv_pending_register_alias): New class.
3146 (riscv_check_tdesc_feature): Take vector of pending aliases and
3147 populate it as appropriate.
3148 (riscv_setup_register_aliases): Delete.
3149 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3150 to riscv_check_tdesc_feature in all cases. Use the vector to
3151 create the register aliases.
3152
bb6e55f3
RO
31532020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3154
3155 * sol2-tdep.c (sol2_static_transform_name): Remove.
3156 (sol2_init_abi): Don't register it.
3157 * gdbarch.sh (static_transform_name): Remove.
3158 * gdbarch.c, gdbarch.h: Regenerate.
3159
3160 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3161 gdbarch_static_transform_name.
3162 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3163 * stabsread.c (define_symbol) <'X'>: Remove.
3164 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3165 handling.
3166 <'V'>: Likewise.
3167 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3168 <'S'>: Remove call to gdbarch_static_transform_name.
3169
c6d36836
RO
31702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3171
3172 * procfs.c (procfs_pre_trace): New function.
3173 (procfs_target::create_inferior): Pass it to fork_inferior.
3174
a7e6196b
RO
31752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3176
3177 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3178 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3179 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3180 sol2-tdep.o, sparc-sol2-tdep.o.
3181 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3182 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3183 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3184 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3185
d412e696
RO
31862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3187
3188 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3189 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3190 Call sol2_init_abi.
3191 Remove calls to set_gdbarch_skip_solib_resolver,
3192 set_gdbarch_core_pid_to_str.
3193 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3194 (i386_sol2_static_transform_name): Remove.
3195 (i386_sol2_init_abi): Call sol2_init_abi.
3196 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3197 set_gdbarch_static_transform_name,
3198 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3199 Use sol2_sigtramp_p.
3200 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3201 (sol2_sigtramp_p): New function.
3202 (sol2_static_transform_name): New function.
3203 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3204 (sol2_init_abi): New function.
3205 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3206 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3207 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3208 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3209 (sparc_sol2_static_transform_name): Remove.
3210 (sparc32_sol2_init_abi): Call sol2_init_abi.
3211 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3212 set_gdbarch_static_transform_name,
3213 set_gdbarch_skip_solib_resolver,
3214 set_gdbarch_core_pid_to_str.
3215 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3216 (sparc_sol2_static_transform_name): Remove
3217 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3218 call sol2_sigtramp_p.
3219 (sparc64_sol2_init_abi): Call sol2_init_abi.
3220 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3221 set_gdbarch_static_transform_name,
3222 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3223
a8654e7d
PW
32242020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3225
3226 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3227 * exec.c (validate_exec_file): If from_tty, set both
3228 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3229 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3230 and from_tty, unconditionally ask a confirmation.
3231
caa7fd04
AB
32322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3233
3234 * target-descriptions.c (tdesc_architecture_name): Protect against
3235 NULL pointer dereference.
3236 (maint_print_xml_tdesc_cmd): New function.
3237 (_initialize_target_descriptions): Register new 'maint print
3238 xml-tdesc' command and give it the filename completer.
3239 * NEWS: Mention new 'maint print xml-tdesc' command.
3240
fbf42f4e
AB
32412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3242
3243 * target-descriptions.c (class tdesc_compatible_info): New class.
3244 (struct target_desc): Change type of compatible vector.
3245 (tdesc_compatible_p): Update for change in type of
3246 target_desc::compatible.
3247 (tdesc_compatible_info_list): New function.
3248 (tdesc_compatible_info_arch_name): New function.
3249 (tdesc_add_compatible): Update for change in type of
3250 target_desc::compatible.
3251 (print_c_tdesc::visit_pre): Likewise.
3252
20821f4e
AB
32532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3254
3255 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3256 whitespace to underscore.
3257 (maint_print_c_tdesc_cmd): Use fake filename for target
3258 descriptions that came from the target.
3259 (_initialize_target_descriptions): Add filename command completion
3260 for 'maint print c-tdesc'.
3261
1fb5ee62
SM
32622020-06-23 Simon Marchi <simon.marchi@efficios.com>
3263
3264 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3265 lines.
3266
fc3ecb3e
SM
32672020-06-23 Simon Marchi <simon.marchi@efficios.com>
3268
3269 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3270 lines.
3271 (dwarf2_find_location_expression): Likewise.
3272 (call_site_parameter_matches): Likewise.
3273 (dwarf2_compile_expr_to_ax): Likewise.
3274 (disassemble_dwarf_expression): Likewise.
3275 (loclist_describe_location): Likewise.
3276
236ef034
PA
32772020-06-23 Pedro Alves <palves@redhat.com>
3278
3279 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3280 progspace-and-thread.h. Include scoped-mock-context.h instead.
3281 (register_to_value_test): Use scoped_mock_context.
3282 * regcache.c: Include "scoped-mock-context.h".
3283 (cooked_read_test): Don't error out if a target is already pushed.
3284 Use scoped_mock_context. Adjust.
3285 * scoped-mock-context.h: New file.
3286
39e7ecca
AB
32872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3288
3289 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3290 initializer.
3291 (ada_language::is_string_type_p): New member function.
3292 * c-lang.c (c_language_data): Delete la_is_string_type_p
3293 initializer.
3294 (cplus_language_data): Likewise.
3295 (asm_language_data): Likewise.
3296 (minimal_language_data): Likewise.
3297 * d-lang.c (d_language_data): Likewise.
3298 * f-lang.c (f_is_string_type_p): Delete function, implementation
3299 moved to f_language::is_string_type_p.
3300 (f_language_data): Delete la_is_string_type_p initializer.
3301 (f_language::is_string_type_p): New member function,
3302 implementation from f_is_string_type_p.
3303 * go-lang.c (go_is_string_type_p): Delete function, implementation
3304 moved to go_language::is_string_type_p.
3305 (go_language_data): Delete la_is_string_type_p initializer.
3306 (go_language::is_string_type_p): New member function,
3307 implementation from go_is_string_type_p.
3308 * language.c (language_defn::is_string_type_p): Define new member
3309 function.
3310 (default_is_string_type_p): Make static, add comment copied from
3311 header file.
3312 (unknown_language_data): Delete la_is_string_type_p initializer.
3313 (unknown_language::is_string_type_p): New member function.
3314 (auto_language_data): Delete la_is_string_type_p initializer.
3315 (auto_language::is_string_type_p): New member function.
3316 * language.h (language_data): Delete la_is_string_type_p field.
3317 (language_defn::is_string_type_p): Declare new function.
3318 (default_is_string_type_p): Delete desclaration, move comment to
3319 definition.
3320 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3321 moved to m2_language::is_string_type_p.
3322 (m2_language_data): Delete la_is_string_type_p initializer.
3323 (m2_language::is_string_type_p): New member function,
3324 implementation from m2_is_string_type_p.
3325 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3326 initializer.
3327 * opencl-lang.c (opencl_language_data): Likewise.
3328 * p-lang.c (pascal_is_string_type_p): Delete function,
3329 implementation moved to pascal_language::is_string_type_p.
3330 (pascal_language_data): Delete la_is_string_type_p initializer.
3331 (pascal_language::is_string_type_p): New member function,
3332 implementation from pascal_is_string_type_p.
3333 * rust-lang.c (rust_is_string_type_p): Delete function,
3334 implementation moved to rust_language::is_string_type_p.
3335 (rust_language_data): Delete la_is_string_type_p initializer.
3336 (rust_language::is_string_type_p): New member function,
3337 implementation from rust_is_string_type_p.
3338 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3339 is_string_type_p.
3340
4ffc13fb
AB
33412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3342
3343 * ada-lang.c (ada_language_data): Delete la_print_typedef
3344 initializer.
3345 (ada_language::print_typedef): New member function.
3346 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3347 (cplus_language_data): Likewise.
3348 (asm_language_data): Likewise.
3349 (minimal_language_data): Likewise.
3350 * d-lang.c (d_language_data): Likewise.
3351 * f-lang.c (f_language_data): Likewise.
3352 (f_language::print_typedef): New member function.
3353 * go-lang.c (go_language_data): Delete la_print_typedef
3354 initializer.
3355 * language.c (language_defn::print_typedef): Define member
3356 function.
3357 (unknown_language_data): Delete la_print_typedef initializer.
3358 (unknown_language::print_typedef): New member function.
3359 (auto_language_data): Delete la_print_typedef initializer.
3360 (auto_language::print_typedef): New member function.
3361 * language.h (language_data): Delete la_print_typedef field.
3362 (language_defn::print_typedef): Declare new member function.
3363 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3364 (default_print_typedef): Delete declaration.
3365 * m2-lang.c (m2_language_data): Delete la_print_typedef
3366 initializer.
3367 (m2_language::print_typedef): New member function.
3368 * objc-lang.c (objc_language_data): Delete la_print_typedef
3369 initializer.
3370 * opencl-lang.c (opencl_language_data): Likewise.
3371 * p-lang.c (pascal_language_data): Likewise.
3372 (pascal_language::print_typedef): New member function.
3373 * rust-lang.c (rust_print_typedef): Delete function,
3374 implementation moved to rust_language::print_typedef.
3375 (rust_language): Delete la_print_typedef initializer.
3376 (rust_language::print_typedef): New member function,
3377 implementation from rust_print_typedef.
3378 * typeprint.c (default_print_typedef): Delete.
3379
d711ee67
AB
33802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3381
3382 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3383 (ada_language::printstr): New member function.
3384 * c-lang.c (c_language_data): Delete la_printstr 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_printstr): Rename to f_language::printstr.
3390 (f_language_data): Delete la_printstr initializer.
3391 (f_language::printstr): New member function, implementation from
3392 f_printstr.
3393 * go-lang.c (go_language_data): Delete la_printstr initializer.
3394 * language.c (language_defn::printstr): Define new member
3395 function.
3396 (unk_lang_printstr): Delete.
3397 (unknown_language_data): Delete la_printstr initializer.
3398 (unknown_language::printstr): New member function.
3399 (auto_language_data): Delete la_printstr initializer.
3400 (auto_language::printstr): New member function.
3401 * language.h (language_data): Delete la_printstr field.
3402 (language_defn::printstr): Declare new member function.
3403 (LA_PRINT_STRING): Update call to printstr.
3404 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3405 (m2_language_data): Delete la_printstr initializer.
3406 (m2_language::printstr): New member function, implementation from
3407 m2_printstr.
3408 * objc-lang.c (objc_language_data): Delete la_printstr
3409 initializer.
3410 * opencl-lang.c (opencl_language_data): Likewise.
3411 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3412 (pascal_language_data): Delete la_printstr initializer.
3413 (pascal_language::printstr): New member function, implementation
3414 from pascal_printstr.
3415 * p-lang.h (pascal_printstr): Delete declaration.
3416 * rust-lang.c (rust_printstr): Update header comment.
3417 (rust_language_data): Delete la_printstr initializer.
3418 (rust_language::printstr): New member function.
3419
52b50f2c
AB
34202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3421
3422 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3423 (ada_language::printchar): New member function.
3424 * c-lang.c (c_language_data): Delete la_printchar initializer.
3425 (cplus_language_data): Likewise.
3426 (asm_language_data): Likewise.
3427 (minimal_language_data): Likewise.
3428 * d-lang.c (d_language_data): Likewise.
3429 * f-lang.c (f_printchar): Rename to f_language::printchar.
3430 (f_language_data): Delete la_printchar initializer.
3431 (f_language::printchar): New member function, implementation from
3432 f_printchar.
3433 * go-lang.c (go_language_data): Delete la_printchar initializer.
3434 * language.c (unk_lang_printchar): Delete.
3435 (language_defn::printchar): Define new member function.
3436 (unknown_language_data): Delete la_printchar initializer.
3437 (unknown_language::printchar): New member function.
3438 (auto_language_data): Delete la_printchar initializer.
3439 (auto_language::printchar): New member function.
3440 * language.h (language_data): Delete la_printchar field.
3441 (language_defn::printchar): Declare new member function.
3442 (LA_PRINT_CHAR): Update call to printchar.
3443 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3444 (m2_language::printchar): New member function.
3445 * objc-lang.c (objc_language_data): Delete la_printchar
3446 initializer.
3447 * opencl-lang.c (opencl_language_data): Likewise.
3448 * p-lang.c (pascal_language_data): Delete la_printchar
3449 initializer.
3450 (pascal_language::printchar): New member function.
3451 * rust-lang.c (rust_printchar): Rename to
3452 rust_language::printchar.
3453 (rust_language_data): Delete la_printchar initializer.
3454 (rust_language::printchar): New member function, implementation
3455 from rust_printchar.
3456
ec8cec5b
AB
34572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3458
3459 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3460 (ada_language_data): Delete la_emitchar initializer.
3461 (ada_language::emitchar): New member function, implementation from
3462 emit_char.
3463 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3464 (cplus_language_data): Likewise.
3465 (asm_language_data): Likewise.
3466 (minimal_language_data): Likewise.
3467 * d-lang.c (d_language_data): Likewise.
3468 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3469 (f_language_data): Delete la_emitchar initializer.
3470 (f_language::emitchar): New member function, implementation from
3471 f_emit_char.
3472 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3473 * language.c (unk_lang_emit_char): Delete.
3474 (language_defn::emitchar): New member function definition.
3475 (unknown_language_data): Delete la_emitchar initializer.
3476 (unknown_language::emitchar): New member function.
3477 (auto_language_data): Delete la_emitchar initializer.
3478 (auto_language::emitchar): New member function.
3479 * language.h (language_data): Delete la_emitchar field.
3480 (language_defn::emitchar): New member field declaration.
3481 (LA_EMIT_CHAR): Update call to emitchar.
3482 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3483 (m2_language_data): Delete la_emitchar initializer.
3484 (m2_language::emitchar): New member function, implementation from
3485 m2_emit_char.
3486 * objc-lang.c (objc_language_data): Delete la_emitchar
3487 initializer.
3488 * opencl-lang.c (opencl_language_data): Likewise.
3489 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3490 (pascal_language_data): Delete la_emitchar initializer.
3491 (pascal_language::emitchar): New member function, implementation
3492 from pascal_emit_char.
3493 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3494 (rust_language_data): Delete la_emitchar initializer.
3495 (rust_language::emitchar): New member function, implementation
3496 from rust_emitchar.
3497
1bf9c363
AB
34982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3499
3500 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3501 (ada_language_data): Delete la_post_parser initializer.
3502 (ada_language::post_parser): New member function.
3503 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3504 (cplus_language_data): Likewise.
3505 (asm_language_data): Likewise.
3506 (minimal_language_data): Likewise.
3507 * d-lang.c (d_language_data): Likewise.
3508 * f-lang.c (f_language_data): Likewise.
3509 * go-lang.c (go_language_data): Likewise.
3510 * language.c (unknown_language_data): Likewise.
3511 (auto_language_data): Likewise.
3512 * language.h (language_data): Delete la_post_parser field.
3513 (language_defn::post_parser): New member function.
3514 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3515 * objc-lang.c (objc_language_data): Likewise.
3516 * opencl-lang.c (opencl_language_data): Likewise.
3517 * p-lang.c (pascal_language_data): Likewise.
3518 * parse.c (parse_exp_in_context): Update call to post_parser.
3519 (null_post_parser): Delete definition.
3520 * parser-defs.h (null_post_parser): Delete declaration.
3521 * rust-lang.c (rust_language_data): Delete la_post_parser
3522 initializer.
3523
87afa652
AB
35242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3525
3526 * ada-lang.c (parse): Rename to ada_language::parser.
3527 (ada_language_data): Delete la_parser initializer.
3528 (ada_language::parser): New member function, implementation from
3529 parse.
3530 * c-lang.c (c_language_data): Delete la_parser initializer.
3531 (cplus_language_data): Likewise.
3532 (asm_language_data): Likewise.
3533 (minimal_language_data): Likewise.
3534 * d-lang.c (d_language_data): Likewise.
3535 (d_language::parser): New member function.
3536 * f-lang.c (f_language_data): Delete la_parser initializer.
3537 (f_language::parser): New member function.
3538 * go-lang.c (go_language_data): Delete la_parser initializer.
3539 (go_language::parser): New member function.
3540 * language.c (unk_lang_parser): Delete.
3541 (language_defn::parser): Define new member function.
3542 (unknown_language_data): Delete la_parser initializer.
3543 (unknown_language::parser): New member function.
3544 (auto_language_data): Delete la_parser initializer.
3545 (auto_language::parser): New member function.
3546 * language.h (language_data): Delete la_parser field.
3547 (language_defn::parser): Declare new member function.
3548 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3549 (m2_language::parser): New member function.
3550 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3551 * opencl-lang.c (opencl_language_data): Likewise.
3552 * p-lang.c (pascal_language_data): Likewise.
3553 (pascal_language::parser): New member function.
3554 * parse.c (parse_exp_in_context): Update call to parser.
3555 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3556 (rust_language::parser): New member function.
3557
37825800
AB
35582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3559
3560 * top.c (print_gdb_configuration): Print --with-python-libdir
3561 configuration value.
3562
5b860c93
PW
35632020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3564
3565 * NEWS: Mention change to the alias command.
3566
cf00cd6f
PW
35672020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3568
3569 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3570 (alias_command_completer)
3571 (make_alias_options_def_group): New functions.
3572 (alias_opts, alias_option_defs): New struct and array.
3573 (alias_usage_error): Update usage.
3574 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3575 Use option framework.
3576 (_initialize_cli_cmds): Update alias command help.
3577 Update aliases command help.
3578 (show_user):
3579 Add NULL for new default_args lookup_cmd argument.
3580 (valid_command_p): Rename to validate_aliased_command.
3581 Add NULL for new default_args lookup_cmd argument. Verify that the
3582 aliased_command has no default args.
3583 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3584 (lookup_cmd_1, lookup_cmd): New argument default_args.
3585 (add_alias_cmd):
3586 Add NULL for new default_args lookup_cmd argument.
3587 (print_help_for_command): Show default args under the layout
3588 alias some_alias = some_aliased_cmd some_alias_default_arg.
3589 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3590 xfree default_args in destructor.
3591 * cli/cli-script.c (process_next_line, do_define_command):
3592 Add NULL for new default_args lookup_cmd argument.
3593 * command.h: Declare new default_args argument in lookup_cmd
3594 and lookup_cmd_1.
3595 * completer.c (complete_line_internal_1):
3596 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3597 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3598 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3599 Likewise.
3600 * infcmd.c (_initialize_infcmd): Likewise.
3601 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3602 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3603 * python/py-param.c (add_setshow_generic): Likewise.
3604 * remote.c (_initialize_remote): Likewise.
3605 * top.c (execute_command): Prepend default_args if command has some.
3606 (set_verbose):
3607 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3608 * tracepoint.c (validate_actionline, encode_actions_1):
3609 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3610
bd920864
TBA
36112020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3612
3613 * jit.c (jit_read_descriptor): Use bool as the return type.
3614 (jit_breakpoint_re_set_internal): Use bool as the return type.
3615 Invert the return value logic; return true if the jit breakpoint
3616 has been successfully initialized.
3617 (jit_inferior_init): Update the call to
3618 jit_breakpoint_re_set_internal.
3619
f8098322
PA
36202020-06-22 Pedro Alves <palves@redhat.com>
3621
3622 PR gdb/25939
3623 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3624 Use the current inferior instead. Don't return
3625 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3626 wait again.
3627 * sol-thread.c (sol_thread_target::wait): Don't reference
3628 inferior_ptid.
3629 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3630 (sol_update_thread_list_callback): Use the current inferior's pid
3631 instead of inferior_ptid.
3632
196535a6
RO
36332020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3634
3635 * procfs.c: Cleanup many comments.
3636
3637 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3638 (AFTER_WATCHFLAG): Replace by value.
3639
3640 (MAIN_PROC_NAME_FORMAT): Inline ...
3641 (create_procinfo): ... here.
3642
3643 (procfs_debug_inferior): Remove SYS_exec handling.
3644 (syscall_is_exec): Likewise.
3645 (procfs_set_exec_trap): Likewise.
3646
3647 (syscall_is_lwp_exit): Inline in callers.
3648 (syscall_is_exit): Likewise.
3649 (syscall_is_exec): Likewise.
3650 (syscall_is_lwp_create): Likewise.
3651
3652 (invalidate_cache): Remove #if 0 code.
3653
3654 (make_signal_thread_runnable): Remove.
3655 (procfs_target::resume): Remove #if 0 code.
3656
cf6f3e86
RO
36572020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3658
3659 PR gdb/25939
3660 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3661 call ...
3662 (procfs_target::create_inferior): ... here.
3663
48e9cc84
PW
36642020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3665
3666 * exec.c (validate_exec_file): Ensure the build-id is up to
3667 date by calling reopen_exec_file (that checks file timestamp
3668 to decide to re-read the file).
3669
3922b302
PA
36702020-06-18 Pedro Alves <palves@redhat.com>
3671
3672 PR gdb/25412
3673 * gdbthread.h (delete_thread, delete_thread_silent)
3674 (find_thread_ptid): Update comments.
3675 * thread.c (current_thread_): New global.
3676 (is_current_thread): Move higher, and reimplement.
3677 (inferior_thread): Reimplement.
3678 (set_thread_exited): Use bool. Add assertions.
3679 (add_thread_silent): Simplify thread-reuse handling by always
3680 calling delete_thread.
3681 (delete_thread): Remove intro comment.
3682 (find_thread_ptid): Skip exited threads.
3683 (switch_to_thread_no_regs): Write to current_thread_.
3684 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3685 INFERIOR_PTID. Clear current_thread_.
3686
6dbdab44
PA
36872020-06-18 Pedro Alves <palves@redhat.com>
3688
3689 * aix-thread.c (pd_update): Use switch_to_thread.
3690
2da4b788
PA
36912020-06-18 Pedro Alves <palves@redhat.com>
3692
3693 * ravenscar-thread.c (ravenscar_thread_target): Update.
3694 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3695 (ravenscar_thread_target::add_active_thread): ... this. Don't
3696 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3697 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3698
50838d1b
PA
36992020-06-18 Pedro Alves <palves@redhat.com>
3700
3701 * nat/windows-nat.c (current_windows_thread): Remove.
3702 * nat/windows-nat.h (current_windows_thread): Remove.
3703 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3704 Adjust.
3705 (display_selectors): Adjust to fetch the current
3706 windows_thread_info based on inferior_ptid.
3707 (fake_create_process): No longer write to current_windows_thread.
3708 (windows_nat_target::get_windows_debug_event):
3709 Don't set inferior_ptid or current_windows_thread.
3710 (windows_nat_target::wait): Adjust to not rely on
3711 current_windows_thread.
3712 (do_initial_windows_stuff): Now a method of windows_nat_target.
3713 Switch to the last_ptid thread.
3714 (windows_nat_target::attach): Adjust.
3715 (windows_nat_target::detach): Use switch_to_no_thread instead of
3716 writing to inferior_ptid directly.
3717 (windows_nat_target::create_inferior): Adjust.
3718
31ce04e9
PA
37192020-06-18 Pedro Alves <palves@redhat.com>
3720
3721 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3722
1ee1a363
PA
37232020-06-18 Pedro Alves <palves@redhat.com>
3724
3725 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3726 after creating it, instead of writing to inferior_ptid. Don't
3727 write to inferior_ptid.
3728
6d350754
PA
37292020-06-18 Pedro Alves <palves@redhat.com>
3730
3731 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3732
5d971d48
PA
37332020-06-18 Pedro Alves <palves@redhat.com>
3734
3735 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3736 it, instead of writing to inferior_ptid.
3737
86e57d1b
PA
37382020-06-18 Pedro Alves <palves@redhat.com>
3739
3740 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3741 to inferior_ptid.
3742
f2e1c129
PA
37432020-06-18 Pedro Alves <palves@redhat.com>
3744
3745 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3746 instead of writing to inferior_ptid directly.
3747
60db1b85
PA
37482020-06-18 Pedro Alves <palves@redhat.com>
3749
3750 * corelow.c (core_target::close): Use switch_to_no_thread instead
3751 of writing to inferior_ptid directly.
3752 (add_to_thread_list, core_target_open): Use switch_to_thread
3753 instead of writing to inferior_ptid directly.
3754
fe7d6a8d
PA
37552020-06-18 Pedro Alves <palves@redhat.com>
3756
3757 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3758 inferior_ptid.
3759 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3760 inferior_ptid.
3761 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3762 inferior_ptid directly.
3763 (darwin_nat_target::init_thread_list): Switch to thread, instead
3764 of writing to inferior_ptid.
3765 (darwin_nat_target::attach): Don't write to inferior_ptid.
3766 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3767
975f8708
PA
37682020-06-18 Pedro Alves <palves@redhat.com>
3769
3770 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3771 thread.
3772 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3773 Instead use switch_to_thread.
3774 (gnu_nat_target::detach): Use switch_to_no_thread
3775 instead of writing to inferior_ptid directly. Used passed-in
3776 inferior instead of looking up the inferior by pid.
3777
1a204730
PA
37782020-06-18 Pedro Alves <palves@redhat.com>
3779
3780 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3781 inferior_ptid.
3782
ebe84f23
PA
37832020-06-18 Pedro Alves <palves@redhat.com>
3784
3785 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3786 inferior_ptid.
3787 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3788 thread.
3789 (nto_procfs_target::detach): Avoid referencing
3790 inferior_ptid. Use switch_to_no_thread instead of writing to
3791 inferior_ptid directly.
3792 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3793 instead of writing to inferior_ptid directly.
3794 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3795 to thread.
3796
191f02e5
PA
37972020-06-18 Pedro Alves <palves@redhat.com>
3798
3799 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3800 after creating it, instead of writing to inferior_ptid.
3801 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3802 to inferior_ptid directly.
3803 (gdbsim_target::wait): Don't write to inferior_ptid.
3804
0ac55310
PA
38052020-06-18 Pedro Alves <palves@redhat.com>
3806
3807 * remote.c (remote_target::remote_notice_new_inferior): Use
3808 switch_to_thread instead of writing to inferior_ptid directly.
3809 (remote_target::add_current_inferior_and_thread): Use
3810 switch_to_no_thread instead of writing to inferior_ptid directly.
3811 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3812 and switch_to_thread instead of using set_current_inferior or
3813 writing to inferior_ptid directly.
3814
5233f39b
PA
38152020-06-18 Pedro Alves <palves@redhat.com>
3816
3817 * tracectf.c (ctf_target_open): Switch to added thread instead of
3818 writing to inferior_ptid directly.
3819 (ctf_target::close): Use switch_to_no_thread instead of writing to
3820 inferior_ptid directly.
3821
087e161b
PA
38222020-06-18 Pedro Alves <palves@redhat.com>
3823
3824 * tracefile-tfile.c (tfile_target_open): Don't write to
3825 inferior_ptid directly, instead switch to added thread.
3826 (tfile_target::close): Use switch_to_no_thread instead of writing
3827 to inferior_ptid directly.
3828
7fb43e53
PA
38292020-06-18 Pedro Alves <palves@redhat.com>
3830
3831 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3832 (procfs_target::detach): Use switch_to_no_thread
3833 instead of writing to inferior_ptid directly.
3834 (do_attach): Change return type to void. Switch to the added
3835 thread.
3836 (procfs_target::create_inferior): Switch to the added thread.
3837 (procfs_do_thread_registers): Don't write to inferior_ptid.
3838
18493a00
PA
38392020-06-18 Pedro Alves <palves@redhat.com>
3840
3841 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3842 of writing to inferior_ptid.
3843 (scoped_restore_exited_inferior): Delete.
3844 (handle_vfork_child_exec_or_exit): Simplify using
3845 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3846 instead of writing to inferior_ptid.
3847 (THREAD_STOPPED_BY): Delete.
3848 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3849 (thread_stopped_by_hw_breakpoint): Delete.
3850 (save_waitstatus): Use
3851 scoped_restore_current_thread+switch_to_thread, and call
3852 target_stopped_by_watchpoint instead of
3853 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3854 instead of thread_stopped_by_sw_breakpoint, and
3855 target_stopped_by_hw_breakpoint instead of
3856 thread_stopped_by_hw_breakpoint.
3857 (handle_inferior_event)
3858 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3859 inferior_ptid directly, nor
3860 set_current_inferior/set_current_program_space. Use
3861 switch_to_thread / switch_to_inferior_no_thread instead.
3862
a0776b13
PA
38632020-06-18 Pedro Alves <palves@redhat.com>
3864
3865 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3866 instead of writing to inferior_ptid.
3867
6155c136
PA
38682020-06-18 Pedro Alves <palves@redhat.com>
3869
3870 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3871 added thread.
3872 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3873 to the added thread.
3874 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3875 instead of writing to inferior_ptid.
3876
c5316fc6
PA
38772020-06-18 Pedro Alves <palves@redhat.com>
3878
3879 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3880 (register_to_value_test): Mock a program_space too. Heap-allocate
3881 the address space. Don't write to inferior_ptid. Use
3882 switch_to_thread instead.
3883
8df01799
PA
38842020-06-18 Pedro Alves <palves@redhat.com>
3885
3886 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3887 Delete.
3888 (find_signalled_thread()): New, factored out from
3889 linux_make_corefile_notes and adjusted to handle exited threads.
3890 (linux_make_corefile_notes): Adjust to use the new
3891 find_signalled_thread.
3892
41792d68
PA
38932020-06-18 Pedro Alves <palves@redhat.com>
3894
3895 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3896 of saving/restoring inferior_ptid.
3897
612f258a
TT
38982020-06-17 Tom Tromey <tom@tromey.com>
3899
3900 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3901 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3902 declare.
3903 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3904
efb763a5
SM
39052020-06-15 Simon Marchi <simon.marchi@efficios.com>
3906
3907 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3908 of partial symtabs.
3909
2951f6c0
SM
39102020-06-17 Simon Marchi <simon.marchi@efficios.com>
3911
3912 * regformats/reg-arm.dat: Remove.
3913 * regformats/reg-bfin.dat: Remove.
3914 * regformats/reg-cris.dat: Remove.
3915 * regformats/reg-crisv32.dat: Remove.
3916 * regformats/reg-m32r.dat: Remove.
3917 * regformats/reg-tilegx.dat: Remove.
3918 * regformats/reg-tilegx32.dat: Remove.
3919
7d458ea5
SM
39202020-06-17 Simon Marchi <simon.marchi@efficios.com>
3921
3922 * features/Makefile (WHICH): Remove arm files.
3923 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3924 * regformats/arm/arm-with-neon.dat: Remove.
3925 * regformats/arm/arm-with-vfpv2.dat: Remove.
3926 * regformats/arm/arm-with-vfpv3.dat: Remove.
3927
3af96c0d
SM
39282020-06-17 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * features/Makefile (XMLTOC): Remove rx.xml.
3931
b25e22fd
PA
39322020-06-17 Pedro Alves <palves@redhat.com>
3933
3934 * gdbthread.h (thread_control_state) <trap_expected> Update
3935 comments.
3936
a78a19b1
AB
39372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3938
3939 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3940 ada_language::lookup_symbol_nonlocal.
3941 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3942 (ada_language::lookup_symbol_nonlocal): New member function,
3943 implementation from ada_lookup_symbol_nonlocal.
3944 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3945 initializer.
3946 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3947 initializer.
3948 (cplus_language::lookup_symbol_nonlocal): New member function.
3949 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3950 (minimal_language_data) Likewise.
3951 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3952 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3953 initializer.
3954 (d_language::lookup_symbol_nonlocal): New member function.
3955 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3956 initializer.
3957 (f_language::lookup_symbol_nonlocal): New member function.
3958 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3959 initializer.
3960 * language.c (unknown_language_data): Likewise.
3961 (auto_language_data): Likewise.
3962 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3963 field.
3964 (language_defn::lookup_symbol_nonlocal): New member function.
3965 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3966 initializer.
3967 * objc-lang.c (objc_language_data): Likewise.
3968 * opencl-lang.c (opencl_language_data): Likewise.
3969 * p-lang.c (pascal_language_data): Likewise.
3970 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3971 rust_language::lookup_symbol_nonlocal.
3972 (rust_language_data): Delete la_lookup_symbol_nonlocal
3973 initializer.
3974 (rust_language::lookup_symbol_nonlocal): New member function,
3975 implementation from rust_lookup_symbol_nonlocal.
3976 * symtab.c (lookup_symbol_aux): Update call to
3977 lookup_symbol_nonlocal.
3978 (basic_lookup_symbol_nonlocal): Rename to...
3979 (language_defn::lookup_symbol_nonlocal): ...this, and update
3980 header comment. Remove language_defn parameter, and replace with
3981 uses of `this'.
3982 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3983
ebe2334e
AB
39842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3985
3986 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3987 initializer.
3988 (ada_language::value_print_inner): New member function.
3989 * c-lang.c (c_language_data): Delete la_value_print_inner
3990 initializer.
3991 (cplus_language_data): Likewise.
3992 (asm_language_data): Likewise.
3993 (minimal_language_data): Likewise.
3994 * d-lang.c (d_language_data): Likewise.
3995 (d_language::value_print_inner): New member function.
3996 * f-lang.c (f_language_data): Delete la_value_print_inner
3997 initializer.
3998 (f_language::value_print_inner): New member function.
3999 * f-lang.h (f_value_print_innner): Rename to...
4000 (f_value_print_inner): ...this (note spelling of 'inner').
4001 * f-valprint.c (f_value_print_innner): Rename to...
4002 (f_value_print_inner): ...this (note spelling of 'inner').
4003 * go-lang.c (go_language_data): Delete la_value_print_inner
4004 initializer.
4005 (go_language::value_print_inner): New member function.
4006 * language.c (language_defn::value_print_inner): Define new member
4007 function.
4008 (unk_lang_value_print_inner): Delete.
4009 (unknown_language_data): Delete la_value_print_inner initializer.
4010 (unknown_language::value_print_inner): New member function.
4011 (auto_language_data): Delete la_value_print_inner initializer.
4012 (auto_language::value_print_inner): New member function.
4013 * language.h (language_data): Delete la_value_print_inner field.
4014 (language_defn::value_print_inner): Delcare new member function.
4015 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4016 initializer.
4017 (m2_language::value_print_inner): New member function.
4018 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4019 initializer.
4020 * opencl-lang.c (opencl_language_data): Likewise.
4021 * p-lang.c (pascal_language_data): Likewise.
4022 (pascal_language::value_print_inner): New member function.
4023 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4024 initializer.
4025 (rust_language::value_print_inner): New member function.
4026 * valprint.c (do_val_print): Update call to value_print_inner.
4027
a1d1fa3e
AB
40282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4029
4030 * ada-lang.c (ada_language_data): Delete la_value_print
4031 initializer.
4032 (ada_language::value_print): New member function.
4033 * c-lang.c (c_language_data): Delete la_value_print initializer.
4034 (cplus_language_data): Likewise.
4035 (asm_language_data): Likewise.
4036 (minimal_language_data): Likewise.
4037 * d-lang.c (d_language_data): Likewise.
4038 * f-lang.c (f_language_data): Likewise.
4039 * go-lang.c (go_language_data): Likewise.
4040 * language.c (unk_lang_value_print): Delete.
4041 (language_defn::value_print): Define new member function.
4042 (unknown_language_data): Delete la_value_print initializer.
4043 (unknown_language::value_print): New member function.
4044 (auto_language_data): Delete la_value_print initializer.
4045 (auto_language::value_print): New member function.
4046 * language.h (language_data): Delete la_value_print field.
4047 (language_defn::value_print): Declare new member function.
4048 (LA_VALUE_PRINT): Update call to value_print.
4049 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4050 * objc-lang.c (objc_language_data): Likewise.
4051 * opencl-lang.c (opencl_language_data): Likewise.
4052 * p-lang.c (pascal_language_data): Likewise.
4053 (pascal_language::value_print): New member function.
4054 * rust-lang.c (rust_language_data): Delete la_value_print
4055 initializer.
4056
f16a9f57
AB
40572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4058
4059 * ada-lang.c (ada_watch_location_expression): Rename to
4060 ada_language::watch_location_expression.
4061 (ada_language_data): Delete la_watch_location_expression
4062 initializer.
4063 (ada_language::watch_location_expression): New member function,
4064 implementation from ada_watch_location_expression.
4065 * breakpoint.c (watch_command_1): Update call to
4066 watch_location_expression.
4067 * c-lang.c (c_watch_location_expression): Rename to
4068 language_defn::watch_location_expression.
4069 (c_language_data): Delete la_watch_location_expression
4070 initializer.
4071 (cplus_language_data): Likewise.
4072 (asm_language_data): Likewise.
4073 (minimal_language_data): Likewise.
4074 * c-lang.h (c_watch_location_expression): Delete declaration.
4075 * d-lang.c (d_language_data): Delete la_watch_location_expression
4076 initializer.
4077 * f-lang.c (f_language_data): Likewise.
4078 * go-lang.c (go_language_data): Likewise.
4079 * language.c (language_defn::watch_location_expression): Member
4080 function implementation from c_watch_location_expression.
4081 (unknown_language_data): Delete la_watch_location_expression
4082 initializer.
4083 (auto_language_data): Likewise.
4084 * language.h (language_data): Delete la_watch_location_expression
4085 field.
4086 (language_defn::watch_location_expression): Declare new member
4087 function.
4088 * m2-lang.c (m2_language_data): Delete
4089 la_watch_location_expression initializer.
4090 * objc-lang.c (objc_language_data): Likewise.
4091 * opencl-lang.c (opencl_language_data): Likewise.
4092 * p-lang.c (pascal_language_data): Likewise.
4093 * rust-lang.c (rust_watch_location_expression): Rename to
4094 rust_language::watch_location_expression.
4095 (rust_language_data): Delete la_watch_location_expression
4096 initializer.
4097 (rust_language::watch_location_expression): New member function,
4098 implementation from rust_watch_location_expression.
4099
7e56227d
AB
41002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4101
4102 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4103 ada_language::collect_symbol_completion_matches.
4104 (ada_language_data): Delete la_collect_symbol_completion_matches
4105 initializer.
4106 (ada_language::collect_symbol_completion_matches): New member
4107 function, implementation from
4108 ada_collect_symbol_completion_matches.
4109 * c-lang.c (c_language_data): Delete
4110 la_collect_symbol_completion_matches initializer.
4111 (cplus_language_data): Likewise.
4112 (asm_language_data): Likewise.
4113 (minimal_language_data): Likewise.
4114 * d-lang.c (d_language_data): Likewise.
4115 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4116 f_language::collect_symbol_completion_matches.
4117 (f_language_data): Delete la_collect_symbol_completion_matches
4118 initializer.
4119 (f_language::collect_symbol_completion_matches) New member
4120 function, implementation from f_collect_symbol_completion_matches.
4121 * go-lang.c (go_language_data): Delete
4122 la_collect_symbol_completion_matches initializer.
4123 * language.c (unknown_language_data): Likewise.
4124 (auto_language_data): Likewise.
4125 * language.h (language_data): Delete
4126 la_collect_symbol_completion_matches field.
4127 (language_defn::collect_symbol_completion_matches): New member
4128 function.
4129 * m2-lang.c (m2_language_data): Delete
4130 la_collect_symbol_completion_matches initializer.
4131 * objc-lang.c (objc_language_data): Likewise.
4132 * opencl-lang.c (opencl_language_data): Likewise.
4133 * p-lang.c (pascal_language_data): Likewise.
4134 * rust-lang.c (rust_language_data): Likewise.
4135 * symtab.c (default_collect_symbol_completion_matches): Delete.
4136 (collect_symbol_completion_matches): Update call to
4137 collect_symbol_completion_matches.
4138 (collect_symbol_completion_matches_type): Likewise.
4139 * symtab.h (default_collect_symbol_completion_matches): Delete
4140 declaration.
4141
53fc67f8
AB
41422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4143
4144 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4145 (ada_language_data): Delete la_word_break_characters initializer.
4146 (ada_language::word_break_characters): New member function.
4147 * c-lang.c (c_language_data): Delete la_word_break_characters
4148 initializer.
4149 (cplus_language_data): Likewise.
4150 (asm_language_data): Likewise.
4151 (minimal_language_data): Likewise.
4152 * completer.c: Update global comment.
4153 (advance_to_expression_complete_word_point): Update call to
4154 word_break_characters.
4155 (complete_files_symbols): Likewise.
4156 (complete_line_internal_1): Likewise.
4157 (default_completer_handle_brkchars): Likewise.
4158 (skip_quoted_chars): Likewise.
4159 * d-lang.c (d_language_data): Delete la_word_break_characters
4160 initializer.
4161 * f-lang.c (f_word_break_characters): Delete.
4162 (f_language_data): Delete la_word_break_characters initializer.
4163 (f_language::word_break_characters): New member function.
4164 * go-lang.c (go_language_data): Delete la_word_break_characters
4165 initializer.
4166 * language.c (unknown_language_data): Likewise.
4167 (auto_language_data): Likewise.
4168 * language.h (default_word_break_characters): Move declaration to
4169 earlier in the file.
4170 (language_data): Delete la_word_break_characters field.
4171 (language_defn::word_break_characters): New member function.
4172 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4173 initializer.
4174 * objc-lang.c (objc_language_data): Likewise.
4175 * opencl-lang.c (opencl_language_data): Likewise.
4176 * p-lang.c (pascal_language_data): Likewise.
4177 * rust-lang.c (rust_language_data): Likewise.
4178
c9debfb9
AB
41792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4180
4181 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4182 (ada_language_data): Delete la_get_symbol_name_matcher
4183 initializer.
4184 (language_defn::get_symbol_name_matcher_inner): New member
4185 function.
4186 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4187 initializer.
4188 (cplus_language_data): Likewise.
4189 (cplus_language::get_symbol_name_matcher_inner): New member
4190 function.
4191 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4192 (minimal_language_data): Likewise.
4193 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4194 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4195 initializer.
4196 * dictionary.c (iter_match_first_hashed): Update call to
4197 get_symbol_name_matcher.
4198 (iter_match_next_hashed): Likewise.
4199 (iter_match_next_linear): Likewise.
4200 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4201 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4202 initializer.
4203 (f_language::get_symbol_name_matcher_inner): New member function.
4204 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4205 initializer.
4206 * language.c (default_symbol_name_matcher): Update header comment,
4207 make static.
4208 (language_defn::get_symbol_name_matcher): New definition.
4209 (language_defn::get_symbol_name_matcher_inner): Likewise.
4210 (get_symbol_name_matcher): Delete.
4211 (unknown_language_data): Delete la_get_symbol_name_matcher
4212 initializer.
4213 (auto_language_data): Likewise.
4214 * language.h (language_data): Delete la_get_symbol_name_matcher
4215 field.
4216 (language_defn::get_symbol_name_matcher): New member function.
4217 (language_defn::get_symbol_name_matcher_inner): Likewise.
4218 (default_symbol_name_matcher): Delete declaration.
4219 * linespec.c (find_methods): Update call to
4220 get_symbol_name_matcher.
4221 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4222 initializer.
4223 * minsyms.c (lookup_minimal_symbol): Update call to
4224 get_symbol_name_matcher.
4225 (iterate_over_minimal_symbols): Likewise.
4226 * objc-lang.c (objc_language_data): Delete
4227 la_get_symbol_name_matcher initializer.
4228 * opencl-lang.c (opencl_language_data): Likewise.
4229 * p-lang.c (pascal_language_data): Likewise.
4230 * psymtab.c (psymbol_name_matches): Update call to
4231 get_symbol_name_matcher.
4232 * rust-lang.c (rust_language_data): Delete
4233 la_get_symbol_name_matcher initializer.
4234 * symtab.c (symbol_matches_search_name): Update call to
4235 get_symbol_name_matcher.
4236 (compare_symbol_name): Likewise.
4237
9a49ad8c
AB
42382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4239
4240 * ada-lang.c (ada_language_data): Delete la_compute_program
4241 initializer.
4242 * c-lang.c (c_language_data): Likewise.
4243 (c_language::compute_program): New member function.
4244 (cplus_language_data): Delete la_compute_program initializer.
4245 (cplus_language::compute_program): New member function.
4246 (asm_language_data): Delete la_compute_program initializer.
4247 (minimal_language_data): Likewise.
4248 * c-lang.h (c_compute_program): Update comment.
4249 (cplus_compute_program): Likewise.
4250 * compile/compile-c-support.c (c_compute_program): Likewise.
4251 (cplus_compute_program): Likewise.
4252 * compile/compile.c (compile_to_object): Update call to
4253 la_compute_program.
4254 * d-lang.c (d_language_data): Delete la_compute_program
4255 initializer.
4256 * f-lang.c (f_language_data): Likewise.
4257 * go-lang.c (go_language_data): Likewise.
4258 * language.c (unknown_language_data): Likewise.
4259 (auto_language_data): Likewise.
4260 * language.h (language_data): Delete la_compute_program field.
4261 (language_defn::compute_program): New member function.
4262 * m2-lang.c (m2_language_data): Delete la_compute_program
4263 initializer.
4264 * objc-lang.c (objc_language_data): Likewise.
4265 * opencl-lang.c (opencl_language_data): Likewise.
4266 * p-lang.c (pascal_language_data): Likewise.
4267 * rust-lang.c (rust_language_data): Likewise.
4268
eff93b4d
AB
42692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4270
4271 * ada-lang.c (ada_language_data) Delete
4272 la_class_name_from_physname initializer.
4273 * c-lang.c (c_language_data): Likewise.
4274 (cplus_language_data): Likewise.
4275 (cplus_language::class_name_from_physname): New member function.
4276 (asm_language_data): Delete la_class_name_from_physname
4277 initializer.
4278 (minimal_language_data): Likewise.
4279 * d-lang.c (d_language_data): Likewise.
4280 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4281 method on language_defn class.
4282 (guess_full_die_structure_name): Likewise.
4283 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4284 initializer.
4285 * go-lang.c (go_language_data): Likewise.
4286 * language.c (language_class_name_from_physname): Delete.
4287 (unk_lang_class_name): Delete.
4288 (unknown_language_data): Delete la_class_name_from_physname
4289 initializer.
4290 (auto_language_data): Likewise.
4291 * language.h (language_data): Delete la_class_name_from_physname
4292 field.
4293 (language_defn::class_name_from_physname): New function.
4294 (language_class_name_from_physname): Delete declaration.
4295 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4296 initializer.
4297 * objc-lang.c (objc_language_data): Likewise.
4298 * opencl-lang.c (opencl_language_data): Likewise.
4299 * p-lang.c (pascal_language_data): Likewise.
4300 * rust-lang.c (rust_language_data): Likewise.
4301
de543742
TT
43022020-06-16 Tom Tromey <tom@tromey.com>
4303
4304 * tui/tui-data.h (STATUS_NAME): New macro.
4305 * tui/tui-layout.c (tui_remove_some_windows)
4306 (initialize_known_windows, tui_register_window)
4307 (tui_layout_split::remove_windows, initialize_layouts)
4308 (tui_new_layout_command): Don't use hard-coded window names.
4309
a350efd4
TT
43102020-06-16 Tom Tromey <tom@tromey.com>
4311
4312 PR tui/25348:
4313 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4314 tui_initialize_readline. Only run once. Call rl_initialize.
4315 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4316 tui_initialize_readline.
4317 * tui/tui-io.c (tui_setup_io): Call
4318 tui_ensure_readline_initialized.
4319 * tui/tui-interp.c (tui_interp::init): Update.
4320
39ec0490
TT
43212020-06-16 Tom Tromey <tom@tromey.com>
4322
4323 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4324 Also preserve the status window.
4325
d2d1ea20
TT
43262020-06-16 Tom Tromey <tom@tromey.com>
4327
4328 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4329 where m_window==nullptr.
4330
66920317
TT
43312020-06-15 Tom Tromey <tromey@adacore.com>
4332
4333 * windows-nat.c (windows_nat::handle_output_debug_string):
4334 Update.
4335 (windows_nat::handle_ms_vc_exception): Update.
4336 * target.h (target_read_string): Change API.
4337 * target.c (target_read_string): Change API.
4338 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4339 Update.
4340 * solib-frv.c (frv_current_sos): Update.
4341 * solib-dsbt.c (dsbt_current_sos): Update.
4342 * solib-darwin.c (darwin_current_sos): Update.
4343 * linux-thread-db.c (inferior_has_bug): Update.
4344 * expprint.c (print_subexp_standard): Update.
4345 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4346 (ada_exception_message_1): Update.
4347
a5d871dd
TT
43482020-06-15 Tom Tromey <tromey@adacore.com>
4349
4350 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4351
670e35fa
TT
43522020-06-15 Tom Tromey <tromey@adacore.com>
4353
4354 * valprint.c (read_string): Update comment.
4355 * target.c (MIN): Remove.
4356 (target_read_string): Rewrite.
4357
f5272a3b
TT
43582020-06-15 Tom Tromey <tromey@adacore.com>
4359
4360 * corefile.c (read_memory_string): Remove.
4361 * ada-valprint.c (ada_value_print_ptr): Update.
4362 * ada-lang.h (ada_tag_name): Change return type.
4363 * ada-lang.c (type_from_tag): Update.
4364 (ada_tag_name_from_tsd): Change return type. Use
4365 target_read_string.
4366 (ada_tag_name): Likewise.
4367 * gdbcore.h (read_memory_string): Don't declare.
4368
2c074f49
HD
43692020-06-14 Hannes Domani <ssbssa@yahoo.de>
4370
4371 * symtab.c (rbreak_command): Ignore Windows drive colon.
4372
6a17d503
SM
43732020-06-12 Simon Marchi <simon.marchi@efficios.com>
4374
4375 * NEWS: Mention removed GDBserver host support.
4376
453c733f
NC
43772020-06-12 Nelson Chu <nelson.chu@sifive.com>
4378
4379 * features/riscv/rebuild-csr-xml.sh: Updated.
4380
2b4e6a3f
TT
43812020-06-11 Tom Tromey <tom@tromey.com>
4382
4383 PR gdb/18318:
4384 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4385
4412332f
JG
43862020-06-09 Jonny Grant <jg@jguk.org>
43872020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4388
4389 * main.c (captured_main_1): Don't print new line after help.
4390 (print_gdb_help): add mailing list and IRC channel information
4391 to --help. Add new lines between items in the footer. Remove
4392 quotes around bug url.
4393
2f33032a
KS
43942020-06-11 Keith Seitz <keiths@redhat.com>
4395
4396 PR gdb/21356
4397 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4398 Resolve typedefs for type length calculations.
4399
7ab96794
TV
44002020-06-10 Tom de Vries <tdevries@suse.de>
4401
4402 PR ada/24713
4403 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4404 (write_psymbols): Enable .gdb_index for ada.
4405 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4406 ada.
4407
e5f3ece2
TV
44082020-06-10 Tom de Vries <tdevries@suse.de>
4409
4410 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4411 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4412 namei" instead of "const char *name" argument.
4413 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4414 dw2_symtab_iter_init.
4415
940da03e
SM
44162020-06-08 Simon Marchi <simon.marchi@efficios.com>
4417
4418 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4419 to use type::field and field::type instead.
4420
b6cdac4b
SM
44212020-06-08 Simon Marchi <simon.marchi@efficios.com>
4422
4423 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4424 to use field::type instead.
4425
5d14b6e5
SM
44262020-06-08 Simon Marchi <simon.marchi@efficios.com>
4427
4428 * gdbtypes.h (struct field) <type, set_type>: New methods.
4429 Rename `type` field to...
4430 <m_type>: ... this. Change references throughout to use type or
4431 set_type methods.
4432 (FIELD_TYPE): Use field::type. Change call sites that modify
4433 the field's type to use field::set_type instead.
4434
3d967001
SM
44352020-06-08 Simon Marchi <simon.marchi@efficios.com>
4436
4437 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4438 to use type::index_type instead.
4439
262abc0d
SM
44402020-06-08 Simon Marchi <simon.marchi@efficios.com>
4441
4442 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4443 methods.
4444 (TYPE_INDEX_TYPE): Use type::index_type.
4445 * gdbtypes.c (create_array_type_with_stride): Likewise.
4446
82836c92
TT
44472020-06-07 Tom Tromey <tom@tromey.com>
4448
4449 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4450 parameter.
4451 (generic_value_print): Update.
4452
940dace9
AB
44532020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4454
4455 Revert commit 982a38f60b0.
4456 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4457
982a38f6
AB
44582020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4459
4460 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4461 avoid use after free.
4462
82f06518
TV
44632020-06-05 Tom de Vries <tdevries@suse.de>
4464
4465 * NEWS: Fix typos.
4466
f8c41851
SM
44672020-06-04 Simon Marchi <simon.marchi@efficios.com>
4468
4469 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4470 the per_bfd object.
4471 (dwarf2_read_debug_names): Likewise.
4472 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4473 object when re-using a per_bfd object with an index.
4474
f9b5d5ea
TV
44752020-06-03 Tom de Vries <tdevries@suse.de>
4476
4477 PR symtab/26046
4478 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4479 children for C++.
4480 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4481 DW_TAG_subprogram.
4482
f6eee2d0
AB
44832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4484
4485 * ada-lang.c (ada_language_data): Delete skip_trampoline
4486 initializer.
4487 * c-lang.c (c_language_data): Likewise.
4488 (cplus_language_data): Likewise.
4489 (cplus_language::skip_trampoline): New member function.
4490 (asm_language_data): Delete skip_trampoline initializer.
4491 (minimal_language_data): Likewise.
4492 * d-lang.c (d_language_data): Likewise.
4493 * f-lang.c (f_language_data): Likewise.
4494 * go-lang.c (go_language_data): Likewise.
4495 * language.c (unk_lang_trampoline): Delete function.
4496 (skip_language_trampoline): Update.
4497 (unknown_language_data): Delete skip_trampoline initializer.
4498 (auto_language_data): Likewise.
4499 * language.h (language_data): Delete skip_trampoline field.
4500 (language_defn::skip_trampoline): New function.
4501 * m2-lang.c (m2_language_data): Delete skip_trampoline
4502 initializer.
4503 * objc-lang.c (objc_skip_trampoline): Delete function, move
4504 implementation to objc_language::skip_trampoline.
4505 (objc_language_data): Delete skip_trampoline initializer.
4506 (objc_language::skip_trampoline): New member function with
4507 implementation from objc_skip_trampoline.
4508 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4509 initializer.
4510 * p-lang.c (pascal_language_data): Likewise.
4511 * rust-lang.c (rust_language_data): Likewise.
4512
0a50df5d
AB
45132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4514
4515 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4516 (ada_language::demangle): New member function.
4517 * c-lang.c (c_language_data): Delete la_demangle initializer.
4518 (cplus_language_data): Delete la_demangle initializer.
4519 (cplus_language::demangle): New member function.
4520 (asm_language_data): Delete la_demangle initializer.
4521 (minimal_language_data): Delete la_demangle initializer.
4522 * d-lang.c (d_language_data): Delete la_demangle initializer.
4523 (d_language::demangle): New member function.
4524 * f-lang.c (f_language_data): Delete la_demangle initializer.
4525 (f_language::demangle): New member function.
4526 * go-lang.c (go_language_data): Delete la_demangle initializer.
4527 (go_language::demangle): New member function.
4528 * language.c (language_demangle): Update.
4529 (unk_lang_demangle): Delete.
4530 (unknown_language_data): Delete la_demangle initializer.
4531 (unknown_language::demangle): New member function.
4532 (auto_language_data): Delete la_demangle initializer.
4533 (auto_language::demangle): New member function.
4534 * language.h (language_data): Delete la_demangle field.
4535 (language_defn::demangle): New function.
4536 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4537 * objc-lang.c (objc_language_data): Delete la_demangle
4538 initializer.
4539 (objc_language::demangle): New member function.
4540 * opencl-lang.c (opencl_language_data): Delete la_demangle
4541 initializer.
4542 * p-lang.c (pascal_language_data): Likewise.
4543 * rust-lang.c (rust_language_data): Likewise.
4544 (rust_language::demangle): New member function.
4545
fbfb0a46
AB
45462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4547
4548 * ada-lang.c (ada_language_data): Delete la_print_type
4549 initializer.
4550 (ada_language::print_type): New member function.
4551 * c-lang.c (c_language_data): Delete la_print_type initializer.
4552 (c_language::print_type): New member function.
4553 (cplus_language_data): Delete la_print_type initializer.
4554 (cplus_language::print_type): New member function.
4555 (asm_language_data): Delete la_print_type initializer.
4556 (asm_language::print_type): New member function.
4557 (minimal_language_data): Delete la_print_type initializer.
4558 (minimal_language::print_type): New member function.
4559 * d-lang.c (d_language_data): Delete la_print_type initializer.
4560 (d_language::print_type): New member function.
4561 * f-lang.c (f_language_data): Delete la_print_type initializer.
4562 (f_language::print_type): New member function.
4563 * go-lang.c (go_language_data): Delete la_print_type initializer.
4564 (go_language::print_type): New member function.
4565 * language.c (unk_lang_print_type): Delete.
4566 (unknown_language_data): Delete la_print_type initializer.
4567 (unknown_language::print_type): New member function.
4568 (auto_language_data): Delete la_print_type initializer.
4569 (auto_language::print_type): New member function.
4570 * language.h (language_data): Delete la_print_type field.
4571 (language_defn::print_type): New function.
4572 (LA_PRINT_TYPE): Update.
4573 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4574 (m2_language::print_type): New member function.
4575 * objc-lang.c (objc_language_data): Delete la_print_type
4576 initializer.
4577 (objc_language::print_type): New member function.
4578 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4579 to opencl_language::print_type.
4580 (opencl_language_data): Delete la_print_type initializer.
4581 (opencl_language::print_type): New member function, implementation
4582 from opencl_print_type.
4583 * p-lang.c (pascal_language_data): Delete la_print_type
4584 initializer.
4585 (pascal_language::print_type): New member function.
4586 * rust-lang.c (rust_print_type): Delete, implementation moved to
4587 rust_language::print_type.
4588 (rust_language_data): Delete la_print_type initializer.
4589 (rust_language::print_type): New member function, implementation
4590 from rust_print_type.
4591
6f827019
AB
45922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4593
4594 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4595 implementation moves to...
4596 (ada_language::sniff_from_mangled_name): ...here. Update return
4597 type.
4598 (ada_language_data): Delete la_sniff_from_mangled_name
4599 initializer.
4600 * c-lang.c (c_language_data): Likewise.
4601 (cplus_language_data): Likewise.
4602 (cplus_language::sniff_from_mangled_name): New member function,
4603 implementation taken from gdb_sniff_from_mangled_name.
4604 (asm_language_data): Delete la_sniff_from_mangled_name
4605 initializer.
4606 (minimal_language_data): Likewise.
4607 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4608 implementation moves to cplus_language::sniff_from_mangled_name.
4609 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4610 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4611 moves to...
4612 (d_language::sniff_from_mangled_name): ...here.
4613 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4614 * f-lang.c (f_language_data): Likewise.
4615 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4616 moves to...
4617 (go_language::sniff_from_mangled_name): ...here.
4618 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4619 * language.c (language_sniff_from_mangled_name): Delete.
4620 (unknown_language_data): Delete la_sniff_from_mangled_name
4621 initializer.
4622 (auto_language_data): Likewise.
4623 * language.h (language_data): Delete la_sniff_from_mangled_name
4624 field.
4625 (language_defn::sniff_from_mangled_name): New function.
4626 (language_sniff_from_mangled_name): Delete declaration.
4627 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4628 field.
4629 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4630 implementation moves to...
4631 (objc_language::sniff_from_mangled_name): ...here.
4632 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4633 * opencl-lang.c (opencl_language_data): Likewise.
4634 * p-lang.c (pascal_language_data): Likewise.
4635 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4636 implementation moves to...
4637 (rust_language::sniff_from_mangled_name): ...here.
4638 (rust_language_data): Delete la_sniff_from_mangled_name
4639 initializer.
4640 * symtab.c (symbol_find_demangled_name): Call
4641 sniff_from_mangled_name member function.
4642
fb8006fd
AB
46432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4644
4645 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4646 initializer.
4647 * c-lang.c (c_language_data): Likewise.
4648 (cplus_language_data): Likewise.
4649 (cplus_language::search_name_hash): New member function.
4650 (asm_language_data): Delete la_search_name_hash initializer.
4651 (minimal_language_data): Likewise.
4652 * d-lang.c (d_language_data): Likewise.
4653 * dictionary.c (default_search_name_hash): Rename to...
4654 (language_defn::search_name_hash): ...this.
4655 * f-lang.c (f_language_data): Likewise.
4656 (f_language::search_name_hash): New member function.
4657 * go-lang.c (go_language_data): Delete la_search_name_hash
4658 initializer.
4659 * language.c (unknown_language_data): Likewise.
4660 (auto_language_data): Likewise.
4661 * language.h (struct language_data): Delete la_search_name_hash
4662 field.
4663 (language_defn::search_name_hash): Declare new member function.
4664 (default_search_name_hash): Delete declaration.
4665 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4666 initializer.
4667 * objc-lang.c (objc_language_data): Likewise.
4668 * opencl-lang.c (opencl_language_data): Likewise.
4669 * p-lang.c (pascal_language_data): Likewise.
4670 * rust-lang.c (rust_language_data): Likewise.
4671 * symtab.c (search_name_hash): Update call.
4672
8e25bafe
AB
46732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4674
4675 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4676 initializer.
4677 * c-lang.c (class compile_instance): Declare.
4678 (c_language_data): Delete la_get_compile_instance initializer.
4679 (c_language::get_compile_instance): New member function.
4680 (cplus_language_data): Delete la_get_compile_instance initializer.
4681 (cplus_language::get_compile_instance): New member function.
4682 (asm_language_data): Delete la_get_compile_instance initializer.
4683 (minimal_language_data): Likewise.
4684 * c-lang.h (c_get_compile_context): Update comment.
4685 (cplus_get_compile_context): Update comment.
4686 * compile/compile.c (compile_to_object): Update calls, don't rely
4687 on function pointer being NULL.
4688 * d-lang.c (d_language_data): Delete la_get_compile_instance
4689 initializer.
4690 * f-lang.c (f_language_data): Likewise.
4691 * go-lang.c (go_language_data): Likewise.
4692 * language.c (unknown_language_data): Likewise.
4693 (auto_language_data): Likewise.
4694 * language.h (language_data): Delete la_get_compile_instance field.
4695 (language_defn::get_compile_instance): New member function.
4696 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4697 initializer.
4698 * objc-lang.c (objc_language_data): Likewise.
4699 * opencl-lang.c (opencl_language_data): Likewise.
4700 * p-lang.c (pascal_language_data): Likewise.
4701 * rust-lang.c (rust_language_data): Likewise.
4702
4009ee92
AB
47032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4704
4705 * ada-lang.c (ada_add_all_symbols): Update comment.
4706 (ada_iterate_over_symbols): Delete, move implementation to...
4707 (ada_language::iterate_over_symbols): ...here, a new member
4708 function, rewrite to use range based for loop.
4709 (ada_language_data): Delete la_iterate_over_symbols initializer.
4710 * c-lang.c (c_language_data): Likewise.
4711 (cplus_language_data): Likewise.
4712 (asm_language_data): Likewise.
4713 (minimal_language_data): Likewise.
4714 * d-lang.c (d_language_data): Likewise.
4715 * f-lang.c (f_language_data): Likewise.
4716 * go-lang.c (go_language_data): Likewise.
4717 * language.c (unknown_language_data): Likewise.
4718 (auto_language_data): Likewise.
4719 * language.h (language_data): Delete la_iterate_over_symbols field.
4720 (language_defn::iterate_over_symbols): New member function.
4721 (LA_ITERATE_OVER_SYMBOLS): Update.
4722 * linespec.c (iterate_over_all_matching_symtabs): Update.
4723 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4724 initializer.
4725 * objc-lang.c (objc_language_data): Likewise.
4726 * opencl-lang.c (opencl_language_data): Likewise.
4727 * p-lang.c (pascal_language_data): Likewise.
4728 * rust-lang.c (rust_language_data): Likewise.
4729
54f4ca46
AB
47302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4731
4732 * ada-lang.c (ada_language_data): Delete
4733 la_lookup_transparent_type initializer.
4734 * c-lang.c (c_language_data): Likewise.
4735 (cplus_language_data): Likewise.
4736 (cplus_language::lookup_transparent_type): New member function.
4737 (asm_language_data): Delete la_lookup_transparent_type
4738 initializer.
4739 (minimal_language_data): Likewise.
4740 * d-lang.c (d_language_data): Likewise.
4741 * f-lang.c (f_language_data): Likewise.
4742 * go-lang.c (go_language_data): Likewise.
4743 * language.c (unknown_language_data): Likewise.
4744 (auto_language_data): Likewise.
4745 * language.h (struct language_data): Delete
4746 la_lookup_transparent_type field.
4747 (language_defn::lookup_transparent_type): New member function.
4748 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4749 initializer.
4750 * objc-lang.c (objc_language_data): Likewise.
4751 * opencl-lang.c (opencl_language_data): Likewise.
4752 * p-lang.c (pascal_language_data): Likewise.
4753 * rust-lang.c (rust_language_data): Likewise.
4754 * symtab.c (symbol_matches_domain): Update call.
4755
1fb314aa
AB
47562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4757
4758 * ada-lang.c (ada_language_arch_info): Delete function, move
4759 implementation to...
4760 (ada_language::language_arch_info): ...here, a new member
4761 function.
4762 (ada_language_data): Delete la_language_arch_info.
4763 * c-lang.c (c_language_data): Likewise.
4764 (c_language::language_arch_info): New member function.
4765 (cplus_language_arch_info): Delete function, move
4766 implementation to...
4767 (cplus_language::language_arch_info): ...here, a new member
4768 function.
4769 (cplus_language_data): Delete la_language_arch_info.
4770 (asm_language_data): Likewise.
4771 (asm_language::language_arch_info): New member function.
4772 (minimal_language_data): Delete la_language_arch_info.
4773 (minimal_language::language_arch_info): New member function.
4774 * d-lang.c (d_language_arch_info): Delete function, move
4775 implementation to...
4776 (d_language::language_arch_info): ...here, a new member
4777 function.
4778 (d_language_data): Delete la_language_arch_info.
4779 * f-lang.c (f_language_arch_info): Delete function, move
4780 implementation to...
4781 (f_language::language_arch_info): ...here, a new member
4782 function.
4783 (f_language_data): Delete la_language_arch_info.
4784 * go-lang.c (go_language_arch_info): Delete function, move
4785 implementation to...
4786 (go_language::language_arch_info): ...here, a new member
4787 function.
4788 (go_language_data): Delete la_language_arch_info.
4789 * language.c (unknown_language_data): Likewise.
4790 (unknown_language::language_arch_info): New member function.
4791 (auto_language_data): Delete la_language_arch_info.
4792 (auto_language::language_arch_info): New member function.
4793 (language_gdbarch_post_init): Update call to
4794 la_language_arch_info.
4795 * language.h (language_data): Delete la_language_arch_info
4796 function pointer.
4797 (language_defn::language_arch_info): New function.
4798 * m2-lang.c (m2_language_arch_info): Delete function, move
4799 implementation to...
4800 (m2_language::language_arch_info): ...here, a new member
4801 function.
4802 (m2_language_data): Delete la_language_arch_info.
4803 * objc-lang.c (objc_language_arch_info): Delete function, move
4804 implementation to...
4805 (objc_language::language_arch_info): ...here, a new member
4806 function.
4807 (objc_language_data): Delete la_language_arch_info.
4808 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4809 implementation to...
4810 (opencl_language::language_arch_info): ...here, a new member
4811 function.
4812 (opencl_language_data): Delete la_language_arch_info.
4813 * p-lang.c (pascal_language_arch_info): Delete function, move
4814 implementation to...
4815 (pascal_language::language_arch_info): ...here, a new member
4816 function.
4817 (pascal_language_data): Delete la_language_arch_info.
4818 * rust-lang.c (rust_language_arch_info): Delete function, move
4819 implementation to...
4820 (rust_language::language_arch_info): ...here, a new member
4821 function.
4822 (rust_language_data): Delete la_language_arch_info.
4823
48448202
AB
48242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4825
4826 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4827 initializer.
4828 * c-lang.c (c_language_data): Likewise.
4829 (cplus_language_data): Likewise.
4830 (cplus_language::pass_by_reference_info): New method.
4831 (asm_language_data): Delete la_pass_by_reference initializer.
4832 (minimal_language_data): Likewise.
4833 * cp-abi.c (cp_pass_by_reference): Remove use of
4834 default_pass_by_reference.
4835 * d-lang.c (d_language_data): Likewise.
4836 * f-lang.c (f_language_data): Likewise.
4837 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4838 default_pass_by_reference.
4839 * go-lang.c (go_language_data): Likewise.
4840 * language.c (language_pass_by_reference): Update.
4841 (default_pass_by_reference): Delete.
4842 (unknown_language_data): Delete la_pass_by_reference
4843 initializer.
4844 (auto_language_data): Likewise.
4845 * language.h (struct language_data): Delete la_pass_by_reference
4846 field.
4847 (language_defn::pass_by_reference_info): New member function.
4848 (default_pass_by_reference): Delete declaration.
4849 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4850 initializer.
4851 * objc-lang.c (objc_language_data): Likewise.
4852 * opencl-lang.c (opencl_language_data): Likewise.
4853 * p-lang.c (pascal_language_data): Likewise.
4854 * rust-lang.c (rust_language_data): Likewise.
4855
15e5fd35
AB
48562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4857
4858 * ada-lang.c (ada_read_var_value): Delete function, move
4859 implementation to...
4860 (ada_language::read_var_value): ...here.
4861 (ada_language_data): Delete la_read_var_value initializer.
4862 * c-lang.c (c_language_data): Likewise.
4863 (cplus_language_data): Likewise.
4864 (minimal_language_data): Likewise.
4865 * d-lang.c (d_language_data): Likewise.
4866 * f-lang.c (f_language_data): Likewise.
4867 * findvar.c (default_read_var_value): Rename to...
4868 (language_defn::read_var_value): ...this.
4869 * findvar.c (read_var_value): Update header comment, and change to
4870 call member function instead of function pointer.
4871 * go-lang.c (go_language_data): Likewise.
4872 * language.c (unknown_language_data): Delete la_read_var_value
4873 initializer.
4874 (auto_language_data): Likewise.
4875 * language.h (struct language_data): Delete la_read_var_value
4876 field.
4877 (language_defn::read_var_value): New member function.
4878 (default_read_var_value): Delete declaration.
4879 * m2-lang.c (m2_language_data): Delete la_read_var_value
4880 initializer.
4881 * objc-lang.c (objc_language_data): Likewise.
4882 * opencl-lang.c (opencl_language_data): Likewise.
4883 * p-lang.c (pascal_language_data): Likewise.
4884 * rust-lang.c (rust_language_data): Likewise.
4885 * value.h (default_read_var_value): Delete declaration.
4886
5bd40f2a
AB
48872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4888
4889 * ada-lang.c (ada_print_array_index): Delete function, move
4890 implementation to...
4891 (ada_language::print_array_index): ...here.
4892 (ada_language_data): Delete la_print_array_index initializer.
4893 * c-lang.c (c_language_data): Likewise.
4894 (cplus_language_data): Likewise.
4895 (minimal_language_data): Likewise.
4896 * d-lang.c (d_language_data): Likewise.
4897 * f-lang.c (f_language_data): Likewise.
4898 * go-lang.c (go_language_data): Likewise.
4899 * language.c (default_print_array_index): Delete function, move
4900 implementation to...
4901 (language_defn::print_array_index): ...here.
4902 (unknown_language_data): Delete la_print_array_index initializer.
4903 (auto_language_data): Likewise.
4904 * language.h (struct language_data): Delete la_print_array_index
4905 field.
4906 (language_defn::print_array_index): New member function.
4907 (LA_PRINT_ARRAY_INDEX): Update.
4908 (default_print_array_index): Delete declaration.
4909 * m2-lang.c (m2_language_data): Delete la_print_array_index
4910 initializer.
4911 * objc-lang.c (objc_language_data): Likewise.
4912 * opencl-lang.c (opencl_language_data): Likewise.
4913 * p-lang.c (pascal_language_data): Likewise.
4914 * rust-lang.c (rust_language_data): Likewise.
4915
0874fd07
AB
49162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4917
4918 * gdb/ada-lang.c (ada_language_defn): Convert to...
4919 (ada_language_data): ...this.
4920 (class ada_language): New class.
4921 (ada_language_defn): New static global.
4922 * gdb/c-lang.c (c_language_defn): Convert to...
4923 (c_language_data): ...this.
4924 (class c_language): New class.
4925 (c_language_defn): New static global.
4926 (cplus_language_defn): Convert to...
4927 (cplus_language_data): ...this.
4928 (class cplus_language): New class.
4929 (cplus_language_defn): New static global.
4930 (asm_language_defn): Convert to...
4931 (asm_language_data): ...this.
4932 (class asm_language): New class.
4933 (asm_language_defn): New static global.
4934 (minimal_language_defn): Convert to...
4935 (minimal_language_data): ...this.
4936 (class minimal_language): New class.
4937 (minimal_language_defn): New static global.
4938 * gdb/d-lang.c (d_language_defn): Convert to...
4939 (d_language_data): ...this.
4940 (class d_language): New class.
4941 (d_language_defn): New static global.
4942 * gdb/f-lang.c (f_language_defn): Convert to...
4943 (f_language_data): ...this.
4944 (class f_language): New class.
4945 (f_language_defn): New static global.
4946 * gdb/go-lang.c (go_language_defn): Convert to...
4947 (go_language_data): ...this.
4948 (class go_language): New class.
4949 (go_language_defn): New static global.
4950 * gdb/language.c (unknown_language_defn): Remove declaration.
4951 (current_language): Initialize to nullptr, real initialization is
4952 moved to _initialize_language.
4953 (languages): Delete global.
4954 (language_defn::languages): Define.
4955 (set_language_command): Use language_defn::languages.
4956 (set_language): Likewise.
4957 (range_error): Likewise.
4958 (language_enum): Likewise.
4959 (language_def): Likewise.
4960 (add_set_language_command): Use language_def::languages for the
4961 language list, and language_def to lookup language pointers.
4962 (skip_language_trampoline): Use language_defn::languages.
4963 (unknown_language_defn): Convert to...
4964 (unknown_language_data): ...this.
4965 (class unknown_language): New class.
4966 (unknown_language_defn): New static global.
4967 (auto_language_defn): Convert to...
4968 (auto_language_data): ...this.
4969 (class auto_language): New class.
4970 (auto_language_defn): New static global.
4971 (language_gdbarch_post_init): Use language_defn::languages.
4972 (_initialize_language): Initialize current_language.
4973 * gdb/language.h (struct language_defn): Rename to...
4974 (struct language_data): ...this.
4975 (struct language_defn): New.
4976 (auto_language_defn): Delete.
4977 (unknown_language_defn): Delete.
4978 (minimal_language_defn): Delete.
4979 (ada_language_defn): Delete.
4980 (asm_language_defn): Delete.
4981 (c_language_defn): Delete.
4982 (cplus_language_defn): Delete.
4983 (d_language_defn): Delete.
4984 (f_language_defn): Delete.
4985 (go_language_defn): Delete.
4986 (m2_language_defn): Delete.
4987 (objc_language_defn): Delete.
4988 (opencl_language_defn): Delete.
4989 (pascal_language_defn): Delete.
4990 (rust_language_defn): Delete.
4991 * gdb/m2-lang.c (m2_language_defn): Convert to...
4992 (m2_language_data): ...this.
4993 (class m2_language): New class.
4994 (m2_language_defn): New static global.
4995 * gdb/objc-lang.c (objc_language_defn): Convert to...
4996 (objc_language_data): ...this.
4997 (class objc_language): New class.
4998 (objc_language_defn): New static global.
4999 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5000 (opencl_language_data): ...this.
5001 (class opencl_language): New class.
5002 (opencl_language_defn): New static global.
5003 * gdb/p-lang.c (pascal_language_defn): Convert to...
5004 (pascal_language_data): ...this.
5005 (class pascal_language): New class.
5006 (pascal_language_defn): New static global.
5007 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5008 language pointer, update comment format.
5009 * gdb/rust-lang.c (rust_language_defn): Convert to...
5010 (rust_language_data): ...this.
5011 (class rust_language): New class.
5012 (rust_language_defn): New static global.
5013
1313c56e
AB
50142020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5015
5016 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5017 member variable.
5018 <m_stmt_at_address>: New member variable.
5019 (lnp_state_machine::record_line): Don't record some lines, update
5020 tracking of is_stmt at the same address.
5021 (lnp_state_machine::lnp_state_machine): Initialise new member
5022 variables.
5023
b7ed9f3d
ST
50242020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5025
5026 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5027 "-include gnu-nat-mig.h".
5028 * gnu-nat-mig.h: New file.
5029 * gnu-nat.c: Include "gnu-nat-mig.h".
5030 (exc_server, msg_reply_server, notify_server,
5031 process_reply_server): Remove declarations.
5032
14a8ad62
ST
50332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5034
5035 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5036 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5037 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5038 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5039 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5040 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5041 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5042 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5043 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5044 to gnu_nat_target class.
5045 * gnu-nat.c: Likewise.
5046 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5047 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5048 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5049 object.
5050 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5051 instead of `gnu_target'.
5052
0af5e106
ST
50532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5054
5055 * i386-gnu-tdep.c: Include "gdbcore.h"
5056 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5057 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5058 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5059 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5060 i386_gnu_sigcontext_addr): New functions
5061 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5062 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5063 tdep.
5064
078f2fc9
ST
50652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5066
5067 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5068 before fork_inferior call. Avoid calling it if target_is_pushed returns
5069 true.
5070
53dff92c
ST
50712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5072
5073 * gnu-nat.h (gnu_target): New variable declaration.
5074 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5075 gnu_target.
5076 * gnu-nat.c (gnu_target): New variable.
5077 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5078 add_thread_silent, and add_thread calls.
5079 (gnu_nat_target::create_inferior): Pass gnu_target to
5080 add_thread_silent, thread_change_ptid call.
5081 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5082 call.
5083
5a8b8627
ST
50842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5085
5086 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5087 (gnu_nat_target::find_memory_regions): Remove unused
5088 `old_address' variable.
5089
366f550a
ST
50902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5091
5092 * gnu-nat.c: Include "gdbarch.h".
5093
f14871bf
ST
50942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5095
5096 * reply_mig_hack.awk (Error return): Cast function through
5097 void *, to bypass compiler function call check.
5098
c6887cfb
ST
50992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5100
5101 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5102 $(srcdir)/reply_mig_hack.awk.
5103
6930bffe
ST
51042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5105
5106 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5107
112c22ed
JG
51082020-05-30 Jonny Grant <jg@jguk.org>
5109
5110 * configure.ac (ACX_BUGURL): change bug URL to https.
5111
f68f85b5
PA
51122020-05-30 Pedro Alves <palves@redhat.com>
5113
5114 * cp-support.c (replace_typedefs_template): New.
5115 (replace_typedefs_qualified_name): Handle
5116 DEMANGLE_COMPONENT_TEMPLATE.
5117
976ca316
SM
51182020-05-29 Simon Marchi <simon.marchi@efficios.com>
5119
5120 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5121 dwarf2/index-cache.h, dwarf2/index-write.c,
5122 dwarf2/index-write.h, dwarf2/line-header.c,
5123 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5124 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5125 variables and fields from `dwarf2_per_objfile` to just
5126 `per_objfile` throughout.
5127
989ade05
SM
51282020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5129
5130 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5131 <push_dwarf_reg_entry_value>: Add comment.
5132
c47bae85
KB
51332020-05-28 Kevin Buettner <kevinb@redhat.com>
5134 Keith Seitz <keiths@redhat.com>
5135
5136 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5137 instead of PyEval_ReleaseLock.
5138 (class gdbpy_gil): Move to earlier in file.
5139 (finalize_python): Set gdb_python_initialized.
5140 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5141 when not initialized.
5142
44486dcf
SM
51432020-05-28 Simon Marchi <simon.marchi@efficios.com>
5144
5145 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5146 <push_dwarf_reg_entry_value>: Remove assert. Override
5147 per_objfile with caller_per_objfile.
5148
f030440d
TV
51492020-05-28 Tom de Vries <tdevries@suse.de>
5150
5151 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5152 PR gold/15646 workaround to symbol kind "type".
5153
f0fbb768
TT
51542020-05-27 Tom Tromey <tromey@adacore.com>
5155
5156 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5157
af0b2a3e
TT
51582020-05-27 Tom Tromey <tromey@adacore.com>
5159
5160 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5161 Use htab_find_with_hash.
5162 <add_abbrev>: Remove "abbrev_number" parameter.
5163 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5164 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5165 (hash_abbrev): Add comment.
5166 (abbrev_table::lookup_abbrev): Move to header file.
5167 (abbrev_table::read): Update.
5168
7d00ffec
TT
51692020-05-27 Tom Tromey <tromey@adacore.com>
5170
5171 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5172 method.
5173 <canonical_name>: New member.
5174 <raw_name>: Rename from "name".
5175 (partial_die_info): Initialize canonical_name.
5176 (scan_partial_symbols): Check raw_name.
5177 (partial_die_parent_scope, partial_die_full_name)
5178 (add_partial_symbol, add_partial_subprogram)
5179 (add_partial_enumeration, load_partial_dies): Use "name" method.
5180 (partial_die_info::name): New method.
5181 (partial_die_info::read, guess_partial_die_structure_name)
5182 (partial_die_info::fixup): Update.
5183
697bba18
TT
51842020-05-27 Tom Tromey <tromey@adacore.com>
5185
5186 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5187 <get_ref_die_offset>: Inline.
5188 <get_ref_die_offset_complaint>: New method.
5189 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5190 (attribute::get_ref_die_offset_complaint): Rename from
5191 get_ref_die_offset. Just issue complaint.
5192
c17ace43
HD
51932020-05-27 Hannes Domani <ssbssa@yahoo.de>
5194
5195 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5196
96445f0b
HD
51972020-05-27 Hannes Domani <ssbssa@yahoo.de>
5198
5199 * exec.c (exec_file_attach): Use errno value of first openp failure.
5200
ac637ec3
HD
52012020-05-27 Hannes Domani <ssbssa@yahoo.de>
5202
5203 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5204 Don't close thread handle.
5205
17ee85fc
TT
52062020-05-27 Tom Tromey <tom@tromey.com>
5207 Simon Marchi <simon.marchi@efficios.com>
5208
5209 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5210 shared_ptr.
5211 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5212 member.
5213 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5214 dwarf2_per_bfd_objfile_data_key>: New globals.
5215 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5216 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5217 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5218 shared.
5219 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5220 short-circuit when sharing.
5221 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5222 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5223
39b16f87
SM
52242020-05-27 Simon Marchi <simon.marchi@efficios.com>
5225
5226 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5227 to...
5228 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5229 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5230
fcf23d5b
SM
52312020-05-27 Simon Marchi <simon.marchi@efficios.com>
5232
5233 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5234 build_name_components, find_name_components_bounds>:
5235 Add per_objfile parameter.
5236 (struct mapped_index) <symbol_name_at>: Likewise.
5237 (struct mapped_debug_names): Remove constructor.
5238 <dwarf2_per_objfile>: Remove field.
5239 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5240 (mapped_index_base::find_name_components_bounds,
5241 mapped_index_base::build_name_components,
5242 dw2_expand_symtabs_matching_symbol): Likewise.
5243 (class mock_mapped_index) <symbol_name_at>: Likewise.
5244 (check_match): Likewise.
5245 (check_find_bounds_finds): Likewise.
5246 (test_mapped_index_find_name_component_bounds): Update.
5247 (CHECK_MATCH): Update.
5248 (dw2_expand_symtabs_matching): Update.
5249 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5250 per_objfile parameter.
5251 <find_vec_in_debug_names>: Likewise.
5252 <m_per_objfile>: New field.
5253 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5254 parameter.
5255 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5256 (dw2_debug_names_iterator::next): Update.
5257 (dw2_debug_names_lookup_symbol): Update.
5258 (dw2_debug_names_expand_symtabs_for_function): Update.
5259 (dw2_debug_names_map_matching_symbols): Update.
5260 (dw2_debug_names_expand_symtabs_matching): Update.
5261 (dwarf2_read_debug_names): Update.
5262
7188ed02
SM
52632020-05-27 Simon Marchi <simon.marchi@efficios.com>
5264
5265 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5266 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5267 move to dwarf2_per_objfile.
5268 <read_in_chain>: Remove.
5269 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5270 remove_all_cus, age_comp_units>: New methods.
5271 <m_dwarf2_cus>: New member.
5272 (struct dwarf2_per_cu_data) <cu>: Remove.
5273 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5274 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5275 moved to methods of dwarf2_per_objfile.
5276 (dwarf2_clear_marks): Remove.
5277 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5278 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5279 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5280 (dwarf2_per_objfile::remove_all_cus): New.
5281 (class free_cached_comp_units) <~free_cached_comp_units>:
5282 Update.
5283 (load_cu): Update.
5284 (dw2_do_instantiate_symtab): Adjust.
5285 (fill_in_sig_entry_from_dwo_entry): Adjust.
5286 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5287 (cutu_reader::cutu_reader): Likewise.
5288 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5289 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5290 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5291 and dwarf2_per_objfile::age_comp_units.
5292 (load_partial_comp_unit): Update.
5293 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5294 (process_queue): Likewise.
5295 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5296 backlink.
5297 (dwarf2_read_addr_index): Likewise.
5298 (follow_die_offset): Likewise.
5299 (dwarf2_fetch_die_loc_sect_off): Likewise.
5300 (dwarf2_fetch_constant_bytes): Likewise.
5301 (dwarf2_fetch_die_type_sect_off): Likewise.
5302 (follow_die_sig_1): Likewise.
5303 (load_full_type_unit): Likewise.
5304 (read_signatured_type): Likewise.
5305 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5306 (dwarf2_cu::~dwarf2_cu): Remove.
5307 (dwarf2_per_objfile::get_cu): New.
5308 (dwarf2_per_objfile::set_cu): New.
5309 (age_cached_comp_units): Rename to...
5310 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5311 to std::unordered_map.
5312 (free_one_cached_comp_unit): Rename to...
5313 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5314 to std::unordered_map.
5315 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5316 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5317 a dwarf2_per_objfile in data.
5318 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5319 (dwarf2_clear_marks): Remove.
5320
2e671100
SM
53212020-05-27 Simon Marchi <simon.marchi@efficios.com>
5322
5323 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5324 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5325 (init_tu_and_read_dwo_dies): Likewise.
5326 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5327 (cutu_reader::cutu_reader): Likewise.
5328 (load_partial_comp_unit): Likewise.
5329 (process_psymtab_comp_unit): Update.
5330 (build_type_psymtabs_1): Update.
5331 (process_skeletonless_type_unit): Update.
5332 (load_full_comp_unit): Update.
5333 (find_partial_die): Update.
5334 (dwarf2_read_addr_index): Update.
5335 (read_signatured_type): Update.
5336
2e6a9f79
SM
53372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5338
5339 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5340 m_header_read_in>: New fields.
5341 <get_header>: New method.
5342 * dwarf2/read.c (per_cu_header_read_in): Remove.
5343 (dwarf2_per_cu_data::get_header): New.
5344 (dwarf2_per_cu_data::addr_size): Update.
5345 (dwarf2_per_cu_data::offset_size): Update.
5346 (dwarf2_per_cu_data::ref_addr_size): Update.
5347
1b555f17
SM
53482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5349
5350 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5351 (dw2_do_instantiate_symtab): Update.
5352 (queue_and_load_all_dwo_tus): Change parameter from
5353 dwarf2_per_cu_data to dwarf2_cu.
5354 (dwarf2_fetch_die_loc_sect_off): Update.
5355 (dwarf2_fetch_constant_bytes): Update.
5356 (dwarf2_fetch_die_type_sect_off): Update.
5357
8fc0b21d
SM
53582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5359
5360 * dwarf2/read.c (process_full_comp_unit,
5361 process_full_type_unit): Remove per_cu, per_objfile paramters.
5362 Add dwarf2_cu parameter.
5363 (process_queue): Update.
5364
168c9250
SM
53652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5366
5367 * dwarf2/read.c (create_cu_from_index_list): Replace
5368 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5369 (create_cus_from_index_list): Likewise.
5370 (create_cus_from_index): Likewise.
5371 (create_signatured_type_table_from_index): Likewise.
5372 (create_cus_from_debug_names_list): Likewise.
5373 (create_cus_from_debug_names): Likewise.
5374 (dwarf2_read_gdb_index): Update.
5375 (dwarf2_read_debug_names): Update.
5376
e286671b
TT
53772020-05-27 Tom Tromey <tom@tromey.com>
5378 Simon Marchi <simon.marchi@efficios.com>
5379
5380 * dwarf2/read.h (struct dwarf2_per_objfile)
5381 <get_type_for_signatured_type, set_type_for_signatured_type>:
5382 New methods.
5383 <m_type_map>: New member.
5384 (struct signatured_type) <type>: Remove.
5385 * dwarf2/read.c
5386 (dwarf2_per_objfile::get_type_for_signatured_type,
5387 dwarf2_per_objfile::set_type_for_signatured_type): New.
5388 (get_signatured_type): Use new methods.
5389
8adb8487
TT
53902020-05-27 Tom Tromey <tom@tromey.com>
5391 Simon Marchi <simon.marchi@efficios.com>
5392
5393 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5394 (struct dwarf2_per_objfile) <type_units>: New member.
5395 <get_type_unit_group_unshareable>: New method.
5396 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5397 num_symtabs, symtabs>: Remove; move to
5398 type_unit_group_unshareable.
5399 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5400 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5401 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5402
127bbf4b
SM
54032020-05-27 Simon Marchi <simon.marchi@efficios.com>
5404
5405 * dwarf2/read.h (struct dwarf2_per_cu_data):
5406 <dwarf2_per_objfile>: Remove.
5407 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5408 dwarf2_per_objfile.
5409 (create_signatured_type_table_from_index): Likewise.
5410 (create_signatured_type_table_from_debug_names): Likewise.
5411 (create_debug_type_hash_table): Likewise.
5412 (fill_in_sig_entry_from_dwo_entry): Likewise.
5413 (create_type_unit_group): Likewise.
5414 (read_comp_units_from_section): Likewise.
5415 (create_cus_hash_table): Likewise.
5416
f6e649dd
SM
54172020-05-27 Simon Marchi <simon.marchi@efficios.com>
5418
5419 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5420 dwarf2_per_cu_data::dwarf2_per_objfile.
5421 (compute_compunit_symtab_includes): Likewise.
5422 (dwarf2_cu::start_symtab): Likewise.
5423
aa66c379
SM
54242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5425
5426 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5427 parameter.
5428 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5429 (read_namespace_alias): Update.
5430 (lookup_die_type): Update.
5431 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5432 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5433 Update.
5434 (disassemble_dwarf_expression): Update.
5435
120ce1b5
SM
54362020-05-27 Simon Marchi <simon.marchi@efficios.com>
5437
5438 * dwarf2/read.h (struct dwarf2_queue_item): Add
5439 dwarf2_per_objfile parameter, assign new parameter.
5440 <per_objfile>: New field.
5441 * dwarf2/read.c (free_one_cached_comp_unit): Add
5442 dwarf2_per_objfile parameter.
5443 (queue_comp_unit): Likewise.
5444 (dw2_do_instantiate_symtab): Update.
5445 (process_psymtab_comp_unit): Update.
5446 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5447 (process_imported_unit_die): Update.
5448 (queue_and_load_dwo_tu): Update.
5449 (follow_die_offset): Update.
5450 (follow_die_sig_1): Update.
5451
9f47c707
SM
54522020-05-27 Simon Marchi <simon.marchi@efficios.com>
5453
5454 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5455 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5456 (read_call_site_scope): Assign per_objfile.
5457 (dwarf2_per_cu_data::objfile): Remove.
5458 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5459 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5460 dwarf2_per_objfile parameter.
5461 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5462 dwarf2_per_objfile parameter.
5463 (dwarf_expr_reg_to_entry_parameter): Add output
5464 dwarf2_per_objfile parameter.
5465 (locexpr_get_frame_base): Update.
5466 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5467 <push_dwarf_reg_entry_value>: Update.
5468 <call_site_to_target_addr>: Update.
5469 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5470 parameter.
5471 (value_of_dwarf_reg_entry): Update.
5472 (rw_pieced_value): Update.
5473 (indirect_synthetic_pointer): Update.
5474 (dwarf2_evaluate_property): Update.
5475 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5476 parameter.
5477 (locexpr_read_variable): Update.
5478 (locexpr_get_symbol_read_needs): Update.
5479 (loclist_read_variable): Update.
5480
14095eb3
SM
54812020-05-27 Simon Marchi <simon.marchi@efficios.com>
5482
5483 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5484 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5485 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5486 parameter.
5487 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5488 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5489 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5490 parameter.
5491 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5492 sect_variable_value): Add dwarf2_per_objfile parameter.
5493 (class dwarf_evaluate_loc_desc) <dwarf_call,
5494 dwarf_variable_value>: Update.
5495 (fetch_const_value_from_synthetic_pointer): Add
5496 dwarf2_per_objfile parameter.
5497 (fetch_const_value_from_synthetic_pointer): Update.
5498 (coerced_pieced_ref): Update.
5499 (class symbol_needs_eval_context) <dwarf_call,
5500 dwarf_variable_value>: Update.
5501 (dwarf2_compile_expr_to_ax): Update.
5502
3c3cd3d4
SM
55032020-05-27 Simon Marchi <simon.marchi@efficios.com>
5504
5505 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5506 parameter.
5507 (dwarf2_evaluate_loc_desc_full): Update.
5508
82ca3f51
SM
55092020-05-27 Simon Marchi <simon.marchi@efficios.com>
5510
5511 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5512 parameter.
5513 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5514 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5515 dwarf2_per_objfile parameter.
5516 (decode_debug_loc_dwo_addresses): Likewise.
5517 (dwarf2_find_location_expression): Update.
5518 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5519 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5520 parameter.
5521 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5522 parameter.
5523 (locexpr_describe_location_1): Likewise.
5524 (locexpr_describe_location): Update.
5525
4b167ea1
SM
55262020-05-27 Simon Marchi <simon.marchi@efficios.com>
5527
5528 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5529 Remove.
5530 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5531 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5532 (dwarf2_compile_property_to_c): Update.
5533 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5534 use text offset from objfile.
5535 (locexpr_tracepoint_var_ref): Update.
5536 (locexpr_generate_c_location): Update.
5537 (loclist_describe_location): Update.
5538 (loclist_tracepoint_var_ref): Update.
5539 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5540 dwarf2_per_objfile parameter.
5541 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5542 use text offset from objfile.
5543 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5544
89b07335
SM
55452020-05-27 Simon Marchi <simon.marchi@efficios.com>
5546
5547 * dwarf2/expr.h (struct dwarf_expr_context)
5548 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5549 <offset>: Remove.
5550 <per_objfile>: New member.
5551 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5552 dwarf2_per_objfile parameter. Don't set offset, set
5553 per_objfile.
5554 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5555 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5556 a dwarf2_per_objfile object instead of an offset.
5557 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5558 constructor.
5559 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5560 to dwarf2_expr_executor constructor. Don't set offset.
5561 (dwarf2_fetch_cfa_info): Update.
5562 (struct dwarf2_frame_cache) <text_offset>: Remove.
5563 <per_objfile>: New field.
5564 (dwarf2_frame_cache): Update.
5565 (dwarf2_frame_prev_register): Update.
5566 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5567 <dwarf_evaluate_loc_desc>: Add constructor.
5568 (dwarf2_evaluate_loc_desc_full): Update.
5569 (dwarf2_locexpr_baton_eval): Update.
5570 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5571 Add constructor.
5572 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5573
293e7e51
SM
55742020-05-27 Simon Marchi <simon.marchi@efficios.com>
5575
5576 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5577 addr_sized_int_type>: Move to dwarf2_cu.
5578 <int_type>: Move to dwarf2_per_objfile.
5579 (struct dwarf2_per_objfile) <int_type>: Move here.
5580 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5581 addr_sized_int_type>: Move here.
5582 (read_func_scope): Update.
5583 (read_array_type): Update.
5584 (read_tag_string_type): Update.
5585 (attr_to_dynamic_prop): Update.
5586 (dwarf2_per_cu_data::int_type): Rename to...
5587 (dwarf2_per_objfile::int_type): ... this.
5588 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5589 (dwarf2_cu::addr_sized_int_type): ... this.
5590 (read_subrange_type): Update.
5591 (dwarf2_per_cu_data::addr_type): Rename to...
5592 (dwarf2_cu::addr_type): ... this.
5593 (set_die_type): Update.
5594
64874a40
SM
55952020-05-27 Simon Marchi <simon.marchi@efficios.com>
5596
5597 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5598 data through per_cu->cu.
5599
4ab09049
SM
56002020-05-27 Simon Marchi <simon.marchi@efficios.com>
5601
5602 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5603 dwarf2_per_cu_data parameter fo dwarf2_cu.
5604 (lookup_dwo_type_unit): Likewise.
5605 (read_cutu_die_from_dwo): Likewise.
5606 (lookup_dwo_unit): Likewise.
5607 (open_and_init_dwo_file): Likewise.
5608 (lookup_dwo_cutu): Likewise.
5609 (lookup_dwo_comp_unit): Likewise.
5610 (lookup_dwo_type_unit): Likewise.
5611 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5612 (cutu_reader::cutu_reader): Update.
5613
47b14e86
SM
56142020-05-27 Simon Marchi <simon.marchi@efficios.com>
5615
5616 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5617 parameter.
5618 (process_full_type_unit): Likewise.
5619 (process_queue): Update.
5620
43182c09
SM
56212020-05-27 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * dwarf2/read.c (recursively_compute_inclusions): Add
5624 dwarf2_per_objfile parameter.
5625 (compute_compunit_symtab_includes): Likewise.
5626 (process_cu_includes): Update.
5627
7aa104c4
SM
56282020-05-27 Simon Marchi <simon.marchi@efficios.com>
5629
5630 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5631 parameter.
5632 (create_type_unit_group): Update.
5633 (process_psymtab_comp_unit_reader): Update.
5634 (build_type_psymtabs_reader): Update.
5635
e3beb21d
SM
56362020-05-27 Simon Marchi <simon.marchi@efficios.com>
5637
5638 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5639 object through m_this_cu->cu.
5640
d460f660
SM
56412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5642
5643 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5644 the info parameter.
5645 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5646
ab432490
SM
56472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5648
5649 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5650 per_objfile parameter.
5651 (load_full_type_unit): Add per_objfile parameter.
5652 (read_signatured_type): Likewise.
5653 (load_full_comp_unit): Likewise.
5654 (load_cu): Likewise.
5655 (dw2_do_instantiate_symtab): Likewise.
5656 (dw2_get_file_names): Likewise.
5657 (dw2_map_symtabs_matching_filename): Update.
5658 (dw_expand_symtabs_matching_file_matcher): Update.
5659 (dw2_map_symbol_filenames): Update.
5660 (process_psymtab_comp_unit): Add per_objfile parameter.
5661 (build_type_psymtabs_1): Update.
5662 (process_skeletonless_type_unit): Update.
5663 (dwarf2_build_psymtabs_hard): Update.
5664 (load_partial_comp_unit): Add per_objfile parameter.
5665 (scan_partial_symbols): Update.
5666 (load_full_comp_unit): Add per_objfile parameter.
5667 (process_imported_unit_die): Update.
5668 (create_cus_hash_table): Update.
5669 (find_partial_die): Update.
5670 (dwarf2_read_addr_index): Update.
5671 (follow_die_offset): Update.
5672 (dwarf2_fetch_die_loc_sect_off): Update.
5673 (dwarf2_fetch_constant_bytes): Update.
5674 (dwarf2_fetch_die_type_sect_off): Update.
5675 (follow_die_sig_1): Update.
5676 (load_full_type_unit): Add per_objfile parameter.
5677 (read_signatured_type): Likewise.
5678
313bad1b
SM
56792020-05-27 Simon Marchi <simon.marchi@efficios.com>
5680
5681 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5682 of objfile_name.
5683
c3699833
SM
56842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5685
5686 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5687 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5688 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5689 field.
5690 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5691 (create_cus_from_index): Update.
5692 (dwarf2_read_gdb_index): Update.
5693 (create_cus_from_debug_names): Update.
5694 (dwarf2_read_debug_names): Update.
5695 (get_abbrev_section_for_cu): Update.
5696 (create_all_comp_units): Update.
5697 (read_attribute_value): Update.
5698 (get_debug_line_section): Update.
5699 * dwarf2/index-cache.c (index_cache::store): Update.
5700 * dwarf2/index-write.c (save_gdb_index_command): Update.
5701 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5702
1859c670
SM
57032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5704
5705 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5706 member.
5707 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5708 dwarf2_per_cu_data::per_bfd.
5709 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5710 (create_type_unit_group): Likewise.
5711 (queue_comp_unit): Remove reference to
5712 per_cu->dwarf2_per_objfile.
5713 (maybe_queue_comp_unit): Likewise.
5714 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5715 (create_cus_hash_table): Assign new field.
5716
5e22e966
SM
57172020-05-27 Simon Marchi <simon.marchi@efficios.com>
5718
5719 * dwarf2/read.c: Replace
5720 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5721 dwarf2_cu->per_objfile throughout.
5722
97a1449a
SM
57232020-05-27 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5726 parameter, don't use per_cu->dwarf2_per_objfile.
5727 (dw2_instantiate_symtab): Likewise.
5728 (dw2_find_last_source_symtab): Update.
5729 (dw2_map_expand_apply): Update.
5730 (dw2_lookup_symbol): Update.
5731 (dw2_expand_symtabs_for_function): Update.
5732 (dw2_expand_all_symtabs): Update.
5733 (dw2_expand_symtabs_with_fullname): Update.
5734 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5735 don't use per_cu->dwarf2_per_objfile.
5736 (dw2_expand_marked_cus): Update.
5737 (dw2_find_pc_sect_compunit_symtab): Update.
5738 (dw2_debug_names_lookup_symbol): Update.
5739 (dw2_debug_names_expand_symtabs_for_function): Update.
5740 (dw2_debug_names_map_matching_symbols): Update.
5741 (dwarf2_psymtab::expand_psymtab): Update.
5742
9e021579
SM
57432020-05-27 Simon Marchi <simon.marchi@efficios.com>
5744
5745 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5746 <per_objfile>: New member.
5747 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5748 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5749 call to dwarf2_cu.
5750 (cutu_reader::cutu_reader): Update.
5751 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5752
ae090bdb
SM
57532020-05-27 Simon Marchi <simon.marchi@efficios.com>
5754
5755 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5756 struct dwarf2_per_objfile.
5757 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5758 dwarf2_per_bfd.
5759 * dwarf2/read.c (set_die_type): Update.
5760 (get_die_type_at_offset): Update.
5761
af758d11
SM
57622020-05-27 Tom Tromey <tom@tromey.com>
5763 Simon Marchi <simon.marchi@efficios.com>
5764
5765 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5766 method.
5767 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5768 get_symtab, set_symtab>: New methods.
5769 <m_symtabs>: New field.
5770 (struct dwarf2_psymtab): Derive from partial_symtab.
5771 <readin_p, get_compunit_symtab>: Declare methods.
5772 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5773 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5774 New methods.
5775 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5776 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5777 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5778 (dw2_symtab_iter_next, dw2_print_stats)
5779 (dw2_expand_symtabs_with_fullname)
5780 (dw2_expand_symtabs_matching_one)
5781 (dw_expand_symtabs_matching_file_matcher)
5782 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5783 (dw2_debug_names_iterator::next)
5784 (dw2_debug_names_map_matching_symbols)
5785 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5786 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5787 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5788 New methods.
5789 (get_compunit_symtab, process_full_comp_unit)
5790 (process_full_type_unit): Update.
5791 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5792
5989a64e
SM
57932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5794
5795 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5796 then introduce a new dwarf2_per_objfile type.
5797 <read_line_string>: Move to the new dwarf2_per_objfile type.
5798 <objfile>: Likewise.
5799 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5800 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5801 dwarf2_per_objfile->per_bfd.
5802 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5803 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5804 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5805 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5806 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5807 (dwarf2_per_objfile::locate_sections): Rename to...
5808 (dwarf2_per_bfd::locate_sections): ... this.
5809 (dwarf2_per_objfile::get_cutu): Rename to...
5810 (dwarf2_per_bfd::get_cutu): ... this.
5811 (dwarf2_per_objfile::get_cu): Rename to...
5812 (dwarf2_per_bfd::get_cu): ... this.
5813 (dwarf2_per_objfile::get_tu): Rename to...
5814 (dwarf2_per_bfd::get_tu): ... this.
5815 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5816 (dwarf2_per_bfd::allocate_per_cu): ... this.
5817 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5818 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5819 (get_gdb_index_contents_ftype): Change parameter from
5820 dwarf2_per_objfile to dwarf2_per_bfd.
5821 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5822 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5823
a50264ba
TT
58242020-05-27 Tom Tromey <tom@tromey.com>
5825 Simon Marchi <simon.marchi@efficios.com>
5826
5827 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5828 (allocate_piece_closure): Set "per_objfile" member.
5829 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5830 (locexpr_describe_location, loclist_describe_location): Use new
5831 member.
5832 * dwarf2/read.c (read_call_site_scope)
5833 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5834 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5835 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5836 handle_data_member_location): Set per_objfile member.
5837 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5838 member.
5839 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5840
d3473f0c
TT
58412020-05-27 Tom Tromey <tom@tromey.com>
5842
5843 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5844 allocate_signatured_type>: Declare new methods.
5845 <m_num_psymtabs>: New member.
5846 (struct dwarf2_per_cu_data) <index>: New member.
5847 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5848 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5849 (create_cu_from_index_list): Use allocate_per_cu.
5850 (create_signatured_type_table_from_index)
5851 (create_signatured_type_table_from_debug_names)
5852 (create_debug_type_hash_table, add_type_unit)
5853 (read_comp_units_from_section): Use allocate_signatured_type.
5854
5717c425
TT
58552020-05-27 Tom Tromey <tom@tromey.com>
5856
5857 * psymtab.c (partial_map_expand_apply)
5858 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5859 (psym_lookup_global_symbol_language)
5860 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5861 (psym_print_stats, psym_expand_symtabs_for_function)
5862 (psym_map_symbol_filenames, psym_map_matching_symbols)
5863 (psym_expand_symtabs_matching)
5864 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5865 (maintenance_check_psymtabs): Update.
5866 * psympriv.h (struct partial_symtab) <readin_p,
5867 get_compunit_symtab>: Add objfile parameter.
5868 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5869 Likewise.
5870 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5871 get_compunit_symtab>: Likewise.
5872 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5873
45940949
TT
58742020-05-27 Tom Tromey <tom@tromey.com>
5875
5876 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5877 member.
5878 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5879 (create_cu_from_index_list)
5880 (create_signatured_type_table_from_index)
5881 (create_signatured_type_table_from_debug_names)
5882 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5883 (dwarf2_create_include_psymtab)
5884 (create_debug_type_hash_table, add_type_unit)
5885 (create_type_unit_group, read_comp_units_from_section)
5886 (dwarf2_compute_name, create_cus_hash_table)
5887 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5888 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5889 obstack.
5890 (dw2_get_real_path): Likewise. Change argument to
5891 dwarf2_per_objfile.
5892
f8c6d152
LM
58932020-05-27 Luis Machado <luis.machado@linaro.org>
5894
5895 PR tdep/26000
5896 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5897 for ldrd (immediate).
5898
e98d2e6d
PW
58992020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5900
5901 * command.h: Add comment giving the name of class_tui.
5902 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5903 create the fake command for the help for class_tui.
5904
53a47a3e
TT
59052020-05-26 Tom Tromey <tromey@adacore.com>
5906
5907 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5908 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5909 (val_atr): New function.
5910 (value_val_atr): Use it.
5911 * ada-valprint.c (print_optional_low_bound): Change low bound
5912 handling for enums.
5913 (val_print_packed_array_elements): Don't call discrete_position.
5914 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5915 discrete_position for enum types.
5916 * language.c (default_print_array_index): Change type.
5917 * language.h (struct language_defn) <la_print_array_index>: Add
5918 index_type parameter, change type of index_value.
5919 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5920 (default_print_array_index): Update.
5921 * valprint.c (maybe_print_array_index): Don't call
5922 value_from_longest. Update.
5923 (value_print_array_elements): Don't call discrete_position.
5924
0bc2354b
TT
59252020-05-26 Tom Tromey <tromey@adacore.com>
5926
5927 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5928 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5929
1218a4bf
CDA
59302020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5931
5932 PR gdb/13519
5933 * avr-tdep.c (avr_integer_to_address): Return data or code
5934 address accordingly to the second 'type' argument of the
5935 function.
5936
92651b1d
MW
59372020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5938
5939 * infcmd.c, inferior.h: (construct_inferior_arguments):
5940 Moved function from here to gdbsupport/common-inferior.{h,cc}
5941
0a4f5f8c
TT
59422020-05-23 Tom Tromey <tom@tromey.com>
5943
5944 Revert commit eca1f90c:
5945 * NEWS: Remove entry for completion styling.
5946 * completer.c (_rl_completion_prefix_display_length): Move
5947 declaration later.
5948 (gdb_fnprint): Revert.
5949 (gdb_display_match_list_1): Likewise.
5950 * cli/cli-style.c (completion_prefix_style)
5951 (completion_difference_style, completion_suffix_style): Remove.
5952 (_initialize_cli_style): Revert.
5953 * cli/cli-style.h (completion_prefix_style)
5954 (completion_difference_style, completion_suffix_style): Don't
5955 declare.
5956
e08bd6c5
PA
59572020-05-24 Pedro Alves <palves@redhat.com>
5958
5959 * symtab.c (completion_list_add_name): Return boolean indication
5960 of whether the symbol matched.
5961 (completion_list_add_symbol): Don't try to remove C++ aliases if
5962 the symbol didn't match in the first place.
5963 * symtab.h (completion_list_add_name): Return bool.
5964
ceacbf6e
SM
59652020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5966
5967 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5968 type::field.
5969
26f16254
JB
59702020-05-23 Joel Brobecker <brobecker@adacore.com>
5971
5972 GDB 9.2 released.
5973
eca1f90c
TT
59742020-05-23 Tom Tromey <tom@tromey.com>
5975
5976 * NEWS: Add entry for completion styling.
5977 * completer.c (_rl_completion_prefix_display_length): Move
5978 declaration earlier.
5979 (gdb_fnprint): Use completion_style.
5980 (gdb_display_match_list_1): Likewise.
5981 * cli/cli-style.c (completion_prefix_style)
5982 (completion_difference_style, completion_suffix_style): New
5983 globals.
5984 (_initialize_cli_style): Register new globals.
5985 * cli/cli-style.h (completion_prefix_style)
5986 (completion_difference_style, completion_suffix_style): Declare.
5987
51e2cfa2
PA
59882020-05-23 Pedro Alves <palves@redhat.com>
5989
5990 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5991 (parse_escape): Use ISDIGIT instead of isdigit.
5992 (puts_debug): Use gdb_isprint instead of isprint.
5993 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5994 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5995 ISSPACE instead of isspace.
5996 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5997 instead of isspace.
5998 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5999 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6000 instead of isxdigit and ISDIGIT instead of isdigit.
6001
80fc5e77
SM
60022020-05-22 Simon Marchi <simon.marchi@efficios.com>
6003
6004 * gdbtypes.h (struct type) <field>: New method.
6005 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6006 or type::field.
6007
3cabb6b0
SM
60082020-05-22 Simon Marchi <simon.marchi@efficios.com>
6009
6010 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6011 (TYPE_FIELDS): Use type::fields. Change all call sites that
6012 modify the propery to use type::set_fields instead.
6013
1f704f76
SM
60142020-05-22 Simon Marchi <simon.marchi@efficios.com>
6015
6016 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6017 type::num_fields instead.
6018
5e33d5f4
SM
60192020-05-22 Simon Marchi <simon.marchi@efficios.com>
6020
6021 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6022 methods.
6023 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6024 that modify the number of fields to use type::set_num_fields
6025 instead.
6026
9392ebb3
TT
60272020-05-22 Tom Tromey <tromey@adacore.com>
6028
6029 * compile/compile-object-load.h (munmap_list_free): Don't
6030 declare.
6031
7c13f4e8
AB
60322020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6033
6034 * annotate.c (annotate_source_line): Update return type, add call
6035 to update current symtab and line.
6036 * annotate.h (annotate_source_line): Update return type, and
6037 extend header comment.
6038 * source.c (info_line_command): Check annotation_level before
6039 calling annotate_source_line.
6040 * stack.c (print_frame_info): If calling annotate_source_line
6041 returns true, then don't print any other source line information.
6042
aa370940
SM
60432020-05-21 Simon Marchi <simon.marchi@efficios.com>
6044
6045 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6046
84d53fa9
SM
60472020-05-21 Simon Marchi <simon.marchi@efficios.com>
6048
6049 * coffread.c (patch_type): Remove NULL check before xfree.
6050 * corefile.c (set_gnutarget): Likewise.
6051 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6052 * exec.c (build_section_table): Likewise.
6053 * remote.c (remote_target::pass_signals): Likewise.
6054 * utils.c (n_spaces): Likewise.
6055 * cli/cli-script.c (document_command): Likewise.
6056 * i386-windows-tdep.c (core_process_module_section): Likewise.
6057 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6058
9d428aae
SM
60592020-05-20 Simon Marchi <simon.marchi@efficios.com>
6060
6061 * symfile.c (reread_symbols): Clear objfile's section_offsets
6062 vector and section indices, re-compute them by calling
6063 sym_offsets.
6064
250106a7
TT
60652020-05-20 Tom Tromey <tromey@adacore.com>
6066
6067 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6068 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6069
9a0bacfb
TV
60702020-05-20 Tom de Vries <tdevries@suse.de>
6071
6072 PR symtab/25833
6073 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6074
7b958a48
AM
60752020-05-20 Alan Modra <amodra@gmail.com>
6076
6077 PR 25993
6078 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6079 bfd_set_filename.
6080 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6081 passed to bfd_set_filename.
6082 * symfile-mem.c (add_vsyscall_page): Likewise for string
6083 passed to symbol_file_add_from_memory.
6084 (symbol_file_add_from_memory): Make name param a const char* and
6085 don't strdup.
6086
c7e97679
AM
60872020-05-20 Alan Modra <amodra@gmail.com>
6088
6089 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6090 rather than accessing bfd->filename directly.
6091 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6092 and use bfd_section_name.
6093 * dwarf2/frame.c (decode_frame_entry): Likewise.
6094 * exec.c (exec_set_section_address): Likewise.
6095 * solib-aix.c (solib_aix_bfd_open): Likewise.
6096 * stap-probe.c (get_stap_base_address): Likewise.
6097 * symfile.c (reread_symbols): Likewise.
6098
563c591b
TT
60992020-05-19 Tom Tromey <tromey@adacore.com>
6100
6101 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6102
f408d82c
SM
61032020-05-19 Simon Marchi <simon.marchi@efficios.com>
6104
6105 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6106
98c59b52
PA
61072020-05-19 Pedro Alves <palves@redhat.com>
6108
6109 * NEWS (set exec-file-mismatch): Adjust entry.
6110 * exec.c: Include "build-id.h".
6111 (validate_exec_file): Try to match build IDs instead of filenames.
6112 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6113 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6114 and pass down 'warn_if_slow'.
6115 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6116 gdb_bfd_open_closure to pass it down.
6117 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6118
4111f652
PA
61192020-05-19 Pedro Alves <palves@redhat.com>
6120
6121 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6122 * target.c (target_fileio_open_1): Rename to target_fileio_open
6123 and make extern. Use bool.
6124 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6125 (target_fileio_read_alloc_1): Adjust.
6126 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6127 (target_fileio_open_warn_if_slow): Delete declaration.
6128
ad80db5b
PA
61292020-05-19 Pedro Alves <palves@redhat.com>
6130
6131 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6132 Adjust all callers.
6133
1d6ce4d3
YS
61342020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6135
6136 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6137 whether disp is negative.
6138
9005fbbb
SM
61392020-05-19 Simon Marchi <simon.marchi@efficios.com>
6140
6141 * symfile.h (struct symfile_segment_data)
6142 <~symfile_segment_data>: Remove.
6143 <segment_info>: Change to std::vector.
6144 * symfile.c (default_symfile_segments): Update.
6145 * elfread.c (elf_symfile_segments): Update.
6146
68b888ff
SM
61472020-05-19 Simon Marchi <simon.marchi@efficios.com>
6148
6149 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6150 <segments>: New.
6151 <segment_bases, segment_sizes>: Remove.
6152 * symfile.c (default_symfile_segments): Update.
6153 * elfread.c (elf_symfile_segments): Update.
6154 * remote.c (remote_target::get_offsets): Update.
6155 * solib-target.c (solib_target_relocate_section_addresses):
6156 Update.
6157
62982abd
SM
61582020-05-19 Simon Marchi <simon.marchi@efficios.com>
6159
6160 * symfile.h (struct symfile_segment_data): Initialize fields.
6161 <~symfile_segment_data>: Add.
6162 (symfile_segment_data_up): New.
6163 (struct sym_fns) <sym_segments>: Return a
6164 symfile_segment_data_up.
6165 (default_symfile_segments): Return a symfile_segment_data_up.
6166 (free_symfile_segment_data): Remove.
6167 (get_symfile_segment_data): Return a symfile_segment_data_up.
6168 * symfile.c (default_symfile_segments): Likewise.
6169 (get_symfile_segment_data): Likewise.
6170 (free_symfile_segment_data): Remove.
6171 (symfile_find_segment_sections): Update.
6172 * elfread.c (elf_symfile_segments): Return a
6173 symfile_segment_data_up.
6174 * remote.c (remote_target::get_offsets): Update.
6175 * solib-target.c (solib_target_relocate_section_addresses):
6176 Update.
6177 * symfile-debug.c (debug_sym_segments): Return a
6178 symfile_segment_data_up.
6179
7f204339
RO
61802020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6181
e52a0f1b
RO
6182 PR build/25981
6183 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6184 Hardcode register numbers.
6185
7f204339
RO
6186 PR build/25981
6187 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6188 procfs_find_LDT_entry): Remove.
6189 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6190 procfs_find_LDT_entry): Remove.
6191 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6192 Remove.
6193
7f32a4d5
PA
61942020-05-17 Pedro Alves <palves@redhat.com>
6195 Andrew Burgess <andrew.burgess@embecosm.com>
6196 Keno Fischer <keno@juliacomputing.com>
6197
6198 PR gdb/25741
6199 * breakpoint.c (build_target_condition_list): Update comments.
6200 (build_target_command_list): Update comments and skip matching
6201 locations.
6202 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6203 a separate function. Simplify "set breakpoint auto-hw off"
6204 handling.
6205 (insert_breakpoints): Update comment.
6206 (tracepoint_locations_match): New parameter. For breakpoints,
6207 compare location types too, if the caller wants to.
6208 (handle_automatic_hardware_breakpoints): New functions.
6209 (bp_location_is_less_than): Also sort by location type and
6210 hardware breakpoint length.
6211 (update_global_location_list): Handle "set breakpoint auto-hw on"
6212 here.
6213 (update_breakpoint_locations): Ask breakpoint_locations_match to
6214 ignore location types.
6215
7d93a1e0
SM
62162020-05-16 Simon Marchi <simon.marchi@efficios.com>
6217
6218 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6219 type::name instead.
6220
d0e39ea2
SM
62212020-05-16 Simon Marchi <simon.marchi@efficios.com>
6222
6223 * gdbtypes.h (struct type) <name, set_name>: New methods.
6224 (TYPE_CODE): Use type::name. Change all call sites used to set
6225 the name to use type::set_name instead.
6226
2dab0c7b
TT
62272020-05-16 Tom Tromey <tom@tromey.com>
6228
6229 * top.c (quit_force): Update.
6230 * infrun.c (handle_no_resumed): Update.
6231 * top.h (all_uis): New function.
6232 (ALL_UIS): Remove.
6233
59f7bd8d
SM
62342020-05-16 Simon Marchi <simon.marchi@efficios.com>
6235
6236 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6237
9bf058f0
PA
62382020-05-16 Pedro Alves <palves@redhat.com>
6239
6240 * ia64-linux-nat.c
6241 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6242 Declare method.
6243 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6244
8f86ae1a
SM
62452020-05-15 Simon Marchi <simon.marchi@efficios.com>
6246
6247 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6248 (sparc64_adi_info): Likewise.
6249
d6bc0792
TT
62502020-05-15 Tom Tromey <tom@tromey.com>
6251
6252 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6253 block_objfile.
6254 (lookup_objfile_from_block): Remove.
6255 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6256 (lookup_global_symbol): Use block_objfile.
6257 * symtab.h (lookup_objfile_from_block): Don't declare.
6258 * printcmd.c (clear_dangling_display_expressions): Use
6259 block_objfile.
6260 * parse.c (operator_check_standard): Use block_objfile.
6261
8c14c3a3
TT
62622020-05-15 Tom Tromey <tom@tromey.com>
6263
6264 * language.c (language_alloc_type_symbol): Set
6265 SYMBOL_SECTION.
6266 * symtab.c (initialize_objfile_symbol): Remove.
6267 (allocate_symbol): Remove.
6268 (allocate_template_symbol): Remove.
6269 * dwarf2/read.c (fixup_go_packaging): Use "new".
6270 (new_symbol): Use "new".
6271 (read_variable): Don't call initialize_objfile_symbol. Use
6272 "new".
6273 (read_func_scope): Use "new".
6274 * xcoffread.c (process_xcoff_symbol): Don't call
6275 initialize_objfile_symbol.
6276 (SYMBOL_DUP): Remove.
6277 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6278 "new".
6279 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6280 (allocate_template_symbol): Don't declare.
6281 (struct symbol): Add copy constructor. Change defaults.
6282 * jit.c (finalize_symtab): Use "new".
6283 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6284 Use "new".
6285 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6286 (common_block_end): Use "new".
6287 * mdebugread.c (parse_symbol): Use "new".
6288 (new_symbol): Likewise.
6289
5b4a1a8d
PW
62902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6291
6292 * NEWS: Mention changes to help and apropos.
6293
57b4f16e
PW
62942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6295
6296 * command.h (enum command_class): Improve comments, document
6297 that class_alias is for user-defined aliases, give the class
6298 name for each class, remove unused class_xdb.
6299 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6300 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6301 by a precise class.
6302 * infcmd.c (_initialize_infcmd): Likewise.
6303 * reverse.c (_initialize_reverse): Likewise.
6304 * stack.c (_initialize_stack): Likewise.
6305 * symfile.c (_initialize_symfile): Likewise.
6306 * tracepoint.c (_initialize_tracepoint): Likewise.
6307
7c05caf7
PW
63082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6309
6310 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6311 when their aliased command is traversed.
6312 (help_cmd): Add fput_command_names_styled call to
6313 output command name and aliases when command has an alias.
6314
3b3aaacb
PW
63152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6316
6317 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6318 * cli/cli-decode.c (help_cmd_list): Declare as static,
6319 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6320 a command together with the command.
6321 (fput_command_name_styled, fput_command_names_styled): New functions.
6322 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6323 fput_command_name_styled.
6324 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6325 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6326
7aa1b46f
PW
63272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6328
6329 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6330 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6331 * command.h (cmd_show_list): Likewise.
6332 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6333 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6334
89bcba74
PW
63352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6336
6337 * unittests/command-def-selftests.c (traverse_command_structure):
6338 Verify all commands of a list have the same prefix command and
6339 that only the top cmdlist commands have a null prefix.
6340
3f4d92eb
PW
63412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6342
6343 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6344 as prefix, not one of its aliases.
6345 (set_cmd_prefix): Remove.
6346 (do_add_cmd): Centralize the setting of the prefix of a command, when
6347 command is defined after its full chain of prefix commands.
6348 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6349 (add_setshow_cmd_full): Likewise.
6350 (update_prefix_field_of_prefixed_commands): New function.
6351 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6352 update_prefix_field_of_prefixed_commands.
6353 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6354 addresses of remote_set_cmdlist and remote_show_cmdlist given
6355 as argument, not the address of an argument.
6356 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6357 * gdb/remote.c (_initialize_remote): Likewise.
6358
0605465f
PW
63592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6360
6361 * cli/cli-cmds.c (alias_command): Check for an existing alias
6362 using lookup_cmd_composition, as valid_command_p is too strict
6363 and forbids aliases that are the prefix of an existing alias
6364 or command.
6365 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6366 command is properly recognised as a valid command.
6367
58e6ac70
PW
63682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6369
6370 * unittests/help-doc-selftests.c: Rename to
6371 unittests/command-def-selftests.c
6372 * unittests/command-def-selftests.c (help_doc_tests): Update some
6373 comments.
6374 (command_structure_tests, traverse_command_structure): New namespace
6375 and function.
6376 (command_structure_invariants_tests): New function.
6377 (_initialize_command_def_selftests) Renamed from
6378 _initialize_help_doc_selftests, register command_structure_invariants
6379 selftest.
6380
a7b9ceb8
PW
63812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6382
6383 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6384 an alias of 'show'.
6385
b2188a06
JB
63862020-05-15 Joel Brobecker <brobecker@adacore.com>
6387
6388 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6389 ada_is_fixed_point_type. Update all callers.
6390 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6391 all callers.
6392 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6393 Update all callers.
6394 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6395 print_fixed_point_type. Update all callers.
6396 * ada-valprint.c (ada_value_print_num): Replace call to
6397 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6398
a51951c2
KB
63992020-05-14 Kevin Buettner <kevinb@redhat.com>
6400
6401 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6402 processors.
6403 (cpu_supports_bts): Add CV_AMD case.
6404
29d6859f
LM
64052020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6406 Simon Marchi <simon.marchi@efficios.com>
6407
6408 * infrun.c (stop_all_threads): Collect multiple wait events at
6409 each pass.
6410
78134374
SM
64112020-05-14 Simon Marchi <simon.marchi@efficios.com>
6412
6413 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6414 type::code instead.
6415
67607e24
SM
64162020-05-14 Simon Marchi <simon.marchi@efficios.com>
6417
6418 * gdbtypes.h (struct type) <code, set_code>: New methods.
6419 (TYPE_CODE): Use type::code. Change all call sites used to set
6420 the code to use type::set_code instead.
6421
a05575d3
TBA
64222020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6423 Tom de Vries <tdevries@suse.de>
6424 Pedro Alves <palves@redhat.com>
6425
6426 PR threads/25478
6427 * infrun.c (stop_all_threads): Do NOT ignore
6428 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6429 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6430 received.
6431 (handle_no_resumed): Remove code handling a live inferior with no
6432 threads.
6433 * remote.c (has_single_non_exited_thread): New.
6434 (remote_target::update_thread_list): Do not delete a thread if is
6435 the last thread of the process.
6436 * thread.c (thread_select): Call delete_exited_threads instead of
6437 prune_threads.
6438
6ad82919
TBA
64392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6440
6441 * infrun.c (stop_all_threads): Enable/disable thread events of all
6442 targets. Move a debug message denoting the end of the function
6443 into the SCOPED_EXIT block.
6444
d890404b
TBA
64452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6446
6447 * process-stratum-target.h: Include <set>.
6448 (all_non_exited_process_targets, switch_to_target_no_thread): New
6449 function declarations.
6450 * process-stratum-target.c (all_non_exited_process_targets)
6451 (switch_to_target_no_thread): New function implementations.
6452
293b3ebc
TBA
64532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6454
6455 * infrun.c (handle_inferior_event): Extract out a piece of code
6456 into...
6457 (mark_non_executing_threads): ...this new function.
6458
7ca9b62a
TBA
64592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6460
6461 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6462 use.
6463
fc75c28b
TBA
64642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6465
6466 * regcache.c (regcache_read_pc_protected): New function
6467 implementation that returns 0 if the PC cannot read via
6468 'regcache_read_pc'.
6469 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6470 instead of 'regcache_read_pc'.
6471 (keep_going_pass_signal): Ditto.
6472
a89febbd
TT
64732020-05-13 Tom Tromey <tromey@adacore.com>
6474
6475 * ada-lang.c (align_value): Remove.
6476 (ada_template_to_fixed_record_type_1): Use align_up.
6477
f7e23710
TBA
64782020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6479
6480 * async-event.c: Update the copyright year.
6481 * async-event.h: Update the copyright year.
6482
02ff80c2
SM
64832020-05-12 Simon Marchi <simon.marchi@efficios.com>
6484
6485 * objfiles.h (is_addr_in_objfile,
6486 shared_objfile_contains_address_p): Return bool.
6487 * objfile.c (is_addr_in_objfile,
6488 shared_objfile_contains_address_p): Return bool.
6489
4fd6c7e8
TT
64902020-05-11 Tom Tromey <tromey@adacore.com>
6491
6492 * cli/cli-cmds.c (info_command): Restore.
6493 (_initialize_cli_cmds): Use add_prefix_command for "info".
6494 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6495
5eb68a39
TT
64962020-05-11 Tom Tromey <tromey@adacore.com>
6497
6498 * ada-lang.c (ada_value_primitive_field): Now public.
6499 * ada-lang.h (ada_value_primitive_field): Declare.
6500 * ada-valprint.c (print_field_values): Use
6501 ada_value_primitive_field for wrapper fields.
6502
7666722f
TV
65032020-05-11 Tom de Vries <tdevries@suse.de>
6504
6505 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6506 MODULE_DOMAIN.
6507
3ee6bb11
TV
65082020-05-11 Tom de Vries <tdevries@suse.de>
6509
6510 PR symtab/25941
6511 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6512 with length 0, if not gdb-produced.
6513 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6514
43434996
TV
65152020-05-09 Tom de Vries <tdevries@suse.de>
6516
6517 PR gdb/25955
6518 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6519 calculation.
6520
2f78cffc
TT
65212020-05-09 Tom Tromey <tom@tromey.com>
6522
6523 * top.c (server_command): Now bool.
6524 * top.h (server_command): Now bool.
6525
4f7bc5ed
TT
65262020-05-08 Tom Tromey <tromey@adacore.com>
6527
6528 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6529 already being processed.
6530
8be4b118
TT
65312020-05-08 Tom Tromey <tom@tromey.com>
6532
6533 * printcmd.c (struct display) <next>: Remove.
6534 <display>: New constructor.
6535 <exp_string>: Now a std::string.
6536 <enabled_p>: Now a bool.
6537 (display_number): Move definition earlier.
6538 (displays): Rename from display_chain. Now a std::vector.
6539 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6540 (display_command): Update.
6541 (do_one_display, disable_display)
6542 (enable_disable_display_command, do_enable_disable_display):
6543 Update.
6544 (free_display): Remove.
6545 (clear_displays): Rewrite.
6546 (delete_display): Update.
6547 (map_display_numbers): Use function_view. Remove "data"
6548 parameter. Update.
6549 (do_delete_display): Remove.
6550 (undisplay_command): Update.
6551 (do_one_display, do_displays, disable_display)
6552 (info_display_command): Update.
6553 (do_enable_disable_display): Remove.
6554 (enable_disable_display_command)
6555 (clear_dangling_display_expressions): Update.
6556
94c93c35
TT
65572020-05-08 Tom Tromey <tom@tromey.com>
6558
6559 * symtab.c (set_symbol_cache_size)
6560 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6561 (maintenance_print_symbol_cache_statistics): Update.
6562 * symmisc.c (print_symbol_bcache_statistics)
6563 (print_objfile_statistics, maintenance_print_objfiles)
6564 (maintenance_info_symtabs, maintenance_check_symtabs)
6565 (maintenance_expand_symtabs, maintenance_info_line_tables):
6566 Update.
6567 * symfile-debug.c (set_debug_symfile): Update.
6568 * source.c (forget_cached_source_info): Update.
6569 * python/python.c (gdbpy_progspaces): Update.
6570 * psymtab.c (maintenance_info_psymtabs): Update.
6571 * probe.c (parse_probes): Update.
6572 * linespec.c (iterate_over_all_matching_symtabs)
6573 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6574 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6575 * exec.c (exec_target::close): Update.
6576 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6577 * breakpoint.c (print_one_breakpoint_location)
6578 (create_longjmp_master_breakpoint)
6579 (create_std_terminate_master_breakpoint): Update.
6580 * progspace.c (program_spaces): Now a std::vector.
6581 (maybe_new_address_space): Update.
6582 (add_program_space): Remove.
6583 (program_space::program_space): Update.
6584 (remove_program_space): Update.
6585 (number_of_program_spaces): Remove.
6586 (print_program_space, update_address_spaces): Update.
6587 * progspace.h (program_spaces): Change type.
6588 (ALL_PSPACES): Remove.
6589 (number_of_program_spaces): Don't declare.
6590 (struct program_space) <next>: Remove.
6591
a1fd1ac9
TT
65922020-05-08 Tom Tromey <tom@tromey.com>
6593
6594 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6595 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6596 (enable_break): Update.
6597 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6598 (frv_fdpic_find_canonical_descriptor): Update.
6599 (frv_fetch_objfile_link_map): Update.
6600 * progspace.c (program_space::free_all_objfiles): Update.
6601 (program_space::solibs): New method.
6602 * progspace.h (struct program_space) <solibs>: New method.
6603 * solist.h (master_so_list): Don't declare.
6604 (ALL_SO_LIBS): Remove.
6605 * solib.h (so_list_head): Remove.
6606 (update_solib_list): Update comment.
6607 * solib.c (master_so_list): Remove.
6608 (solib_used, update_solib_list, solib_add)
6609 (info_sharedlibrary_command, clear_solib)
6610 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6611
38eae084
TT
66122020-05-08 Tom Tromey <tom@tromey.com>
6613
6614 * extension.c (extension_languages): Now a std::array.
6615 (ALL_EXTENSION_LANGUAGES): Remove.
6616 (get_ext_lang_defn, get_ext_lang_of_file)
6617 (eval_ext_lang_from_control_command): Update.
6618 (finish_ext_lang_initialization)
6619 (auto_load_ext_lang_scripts_for_objfile)
6620 (ext_lang_type_printers::ext_lang_type_printers)
6621 (apply_ext_lang_type_printers)
6622 (ext_lang_type_printers::~ext_lang_type_printers)
6623 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6624 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6625 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6626 (get_matching_xmethod_workers, ext_lang_colorize)
6627 (ext_lang_before_prompt): Update.
6628 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6629
596dc4ad
TT
66302020-05-08 Tom Tromey <tom@tromey.com>
6631
6632 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6633 overload.
6634 <swap_string, m_string>: Remove.
6635 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6636 Update.
6637 * stabsread.c (define_symbol, read_type): Update.
6638 * linespec.c (find_linespec_symbols): Update.
6639 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6640 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6641 * dbxread.c (read_dbx_symtab): Update.
6642 * cp-support.h (cp_canonicalize_string_full)
6643 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6644 Return unique_xmalloc_ptr.
6645 * cp-support.c (inspect_type): Update.
6646 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6647 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6648 Likewise.
6649 * c-typeprint.c (print_name_maybe_canonical): Update.
6650 * break-catch-throw.c (check_status_exception_catchpoint):
6651 Update.
6652
bf4cb9be
TV
66532020-05-08 Tom de Vries <tdevries@suse.de>
6654
6655 * infrun.c (follow_fork): Copy current_line and current_symtab to
6656 child thread.
6657
a1b68f28
SM
66582020-05-07 Simon Marchi <simon.marchi@efficios.com>
6659
6660 * async-event.c (struct async_signal_handler, struct
6661 async_event_handler): Reformat, remove typedef.
6662
98d48915
SM
66632020-05-07 Simon Marchi <simon.marchi@efficios.com>
6664
6665 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6666 access thistype->main_type->dyn_prop_list directly.
6667
7aa91313
SM
66682020-05-07 Simon Marchi <simon.marchi@efficios.com>
6669
6670 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6671 (remove_dyn_prop): Remove. Update all users to use
6672 type::remove_dyn_prop.
6673 * gdbtypes.c (remove_dyn_prop): Rename to...
6674 (type::remove_dyn_prop): ... this.
6675
5c54719c
SM
66762020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6677
6678 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6679 (add_dyn_prop): Remove. Update all users to use
6680 type::add_dyn_prop.
6681 * gdbtypes.c (add_dyn_prop): Rename to...
6682 (type::add_dyn_prop): ... this.
6683
24e99c6c
SM
66842020-05-07 Simon Marchi <simon.marchi@efficios.com>
6685
6686 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6687 (get_dyn_prop): Remove. Update all users to use
6688 type::dyn_prop.
6689 * gdbtypes.c (get_dyn_prop): Rename to...
6690 (type::dyn_prop): ... this.
6691
0d4bf016
SM
66922020-05-06 Simon Marchi <simon.marchi@efficios.com>
6693
6694 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6695
ac4a4f1c
SM
66962020-05-06 Simon Marchi <simon.marchi@efficios.com>
6697
6698 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6699 instruction, skip it if it's there.
6700
a3bbacc1
SM
67012020-05-05 Simon Marchi <simon.marchi@efficios.com>
6702
6703 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6704
c3236f84
SM
67052020-05-04 Simon Marchi <simon.marchi@efficios.com>
6706
6707 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6708 * gdbtypes.c (recursive_dump_type): Remove use of
6709 TYPE_INCOMPLETE.
6710
3b6acaee
TT
67112020-05-03 Tom Tromey <tom@tromey.com>
6712
6713 * breakpoint.c (catch_command, tcatch_command): Remove.
6714 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6715 add_show_prefix_cmd.
6716 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6717 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6718 Remove.
6719 (add_internal_problem_command): Use add_basic_prefix_cmd,
6720 add_show_prefix_cmd.
6721 * mips-tdep.c (set_mipsfpu_command): Remove.
6722 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6723 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6724 (_initialize_index_cache): Use add_basic_prefix_cmd.
6725 * memattr.c (dummy_cmd): Remove.
6726 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6727 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6728 (_initialize_tui_win): Use add_basic_prefix_cmd,
6729 add_show_prefix_cmd.
6730 * cli/cli-logging.c (set_logging_command): Remove.
6731 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6732 add_show_prefix_cmd.
6733 (show_logging_command): Remove.
6734 * target.c (target_command): Remove.
6735 (add_target): Use add_basic_prefix_cmd.
6736
a51119cd
HD
67372020-05-02 Hannes Domani <ssbssa@yahoo.de>
6738
6739 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6740
652fc23a 67412020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6742
652fc23a
PW
6743 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6744 info_command.
6745
117539e6
KR
67462020-04-30 Kamil Rytarowski <n54@gmx.com>
6747
6748 * nbsd-nat.c (nbsd_enable_proc_events)
6749 (nbsd_nat_target::post_startup_inferior): Add.
6750 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6751 (nbsd_nat_target::update_thread_list): Rewrite.
6752 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6753 "PTRACE_LWP_CREATE".
6754 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6755
102e38eb 67562020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6757
102e38eb
PW
6758 * stack.c (_initialize_stack): Remove duplicated creation
6759 of "frame" command and "f" alias.
6760
ee9d1e5f
HD
67612020-04-30 Hannes Domani <ssbssa@yahoo.de>
6762
6763 PR gdb/18706
6764 * gdbtypes.c (check_typedef): Calculate size of array of
6765 stubbed type.
6766
627c7fb8
HD
67672020-04-30 Hannes Domani <ssbssa@yahoo.de>
6768
6769 PR gdb/15559
6770 * i386-tdep.c (i386_push_dummy_call): Call
6771 i386_thiscall_push_dummy_call.
6772 (i386_thiscall_push_dummy_call): New function.
6773 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6774 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6775 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6776
ffc2844e
SM
67772020-04-29 Simon Marchi <simon.marchi@efficios.com>
6778
6779 * gdbarch.sh (do_read): Add shellcheck disable directive for
6780 warning SC2162.
6781
1207375d
SM
67822020-04-29 Simon Marchi <simon.marchi@efficios.com>
6783
6784 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6785 "referenced but not assigned" warning.
6786
9fdb2916
SM
67872020-04-29 Simon Marchi <simon.marchi@efficios.com>
6788
6789 * gdbarch.sh: Remove code that sets fallbackdefault.
6790
759cea5e
SM
67912020-04-29 Simon Marchi <simon.marchi@efficios.com>
6792
6793 * gdbarch.sh: Use shell operators && and || instead of
6794 -a and -o.
6795
cb02ab24
SM
67962020-04-29 Simon Marchi <simon.marchi@efficios.com>
6797
6798 * gdbarch.sh: Use $(...) instead of `...`.
6799
a6fc5ffc
SM
68002020-04-29 Simon Marchi <simon.marchi@efficios.com>
6801
6802 * gdbarch.sh: Use double quotes around variables.
6803
8d113d13
SM
68042020-04-29 Simon Marchi <simon.marchi@efficios.com>
6805
6806 * gdbarch.sh: Use %s with printf, instead of variables in the
6807 format string.
6808
ed6acedd
TT
68092020-04-29 Tom Tromey <tromey@adacore.com>
6810
6811 PR ada/25875:
6812 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6813 type fields here.
6814 (read_enumeration_type): Call
6815 update_enumeration_type_from_children later. Update comments.
6816 (process_enumeration_scope): Don't create type fields.
6817
b68b1b58
KR
68182020-04-29 Kamil Rytarowski <n54@gmx.com>
6819
6820 * nbsd-tdep.c: Include "xml-syscall.h".
6821 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6822
f94b2e03
KR
68232020-04-29 Kamil Rytarowski <n54@gmx.com>
6824
6825 * nbsd-nat.c: Include "sys/wait.h".
6826 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6827 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6828 (nbsd_nat_target::remove_exec_catchpoint)
6829 (nbsd_nat_target::set_syscall_catchpoint): Add.
6830 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6831 (nbsd_nat_target::insert_exec_catchpoint)
6832 (nbsd_nat_target::remove_exec_catchpoint)
6833 (nbsd_nat_target::set_syscall_catchpoint): Add.
6834 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6835 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6836 `nbsd_get_syscall_number'.
6837
fc49bc72
TT
68382020-04-29 Tom Tromey <tom@tromey.com>
6839
6840 * stack.c (print_block_frame_labels): Remove.
6841
d642b692
HD
68422020-04-29 Hannes Domani <ssbssa@yahoo.de>
6843
6844 PR gdb/17320
6845 * ada-valprint.c (val_print_packed_array_elements): Move array
6846 end bracket to new line.
6847 (ada_val_print_string): Remove extra spaces before first array
6848 element.
6849 * c-valprint.c (c_value_print_array): Likewise.
6850 * m2-valprint.c (m2_print_array_contents): Likewise.
6851 (m2_value_print_inner): Likewise.
6852 * p-valprint.c (pascal_value_print_inner): Likewise.
6853 * valprint.c (generic_val_print_array): Likewise.
6854 (value_print_array_elements): Move first array element and array
6855 end bracket to new line.
6856
ea90f227
TV
68572020-04-29 Tom de Vries <tdevries@suse.de>
6858
6859 PR symtab/25889
6860 * linespec.c (find_method): Fix ix calculation.
6861
4498ef4f
KR
68622020-04-28 Kamil Rytarowski <n54@gmx.com>
6863
6864 * syscalls/update-netbsd.sh: New file.
6865 * syscalls/netbsd.xml: Regenerate.
6866 * data-directory/Makefile.in: Register `netbsd.xml' in
6867 `SYSCALLS_FILES'.
6868
a55e30b5
SM
68692020-04-28 Simon Marchi <simon.marchi@efficios.com>
6870
6871 * syscalls/update-freebsd.sh: Add double quotes.
6872
2b2fbab8
TT
68732020-04-28 Tom Tromey <tom@tromey.com>
6874
6875 * NEWS: Update.
6876 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6877 (cmdpy_init): Allow class_tui.
6878
a65189c9
TV
68792020-04-28 Mark Williams <mark@myosotissp.com>
6880
6881 PR gdb/24480
6882 * dwarf2read.c: Add missing assingments to list_in_scope when
6883 start_symtab was already called.
6884
1b95cdb7
SM
68852020-04-28 Simon Marchi <simon.marchi@efficios.com>
6886
6887 PR gdb/25881
6888 * dwarf2/read.c (offset_map_type): Use
6889 gdb:hash_enum<sect_offset> as hash function.
6890
15cd93d0
TV
68912020-04-28 Tom de Vries <tdevries@suse.de>
6892
6893 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6894 with DW_AT_signature.
6895
1eb39914
SM
68962020-04-27 Simon Marchi <simon.marchi@efficios.com>
6897
6898 * configure.ac: Remove check for fs_base/gs_base in
6899 user_regs_struct.
6900 * configure: Re-generate.
6901 * config.in: Re-generate.
6902 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6903 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6904 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6905
991a3e2e
LM
69062020-04-27 Luis Machado <luis.machado@linaro.org>
6907
6908 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6909 problematic inline frame unwinding situation.
6910 * frame.c (frame_id_computed_p): New function.
6911 * frame.h (frame_id_computed_p): New prototype.
6912
361ba0e8
TT
69132020-04-26 Tom Tromey <tom@tromey.com>
6914
6915 * command.h (enum command_class) <class_pseudo>: Remove.
6916
bc3609fd
PW
69172020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6918
6919 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6920 and whitespace.
6921
b9771db7
KR
69222020-04-25 Kamil Rytarowski <n54@gmx.com>
6923
ec16513e
SM
6924 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6925 `PT_GET_PROCESS_STATE' block.
b9771db7 6926
7151c1af
TT
69272020-04-24 Tom Tromey <tom@tromey.com>
6928
6929 * symtab.h (symbol_get_demangled_name): Don't declare.
6930 * symtab.c (symbol_get_demangled_name): Remove.
6931 (general_symbol_info::natural_name)
6932 (general_symbol_info::demangled_name): Update.
6933
906bb4c5
TT
69342020-04-24 Tom Tromey <tom@tromey.com>
6935
6936 PR rust/25025:
6937 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6938
bcfe6157
TT
69392020-04-24 Tom Tromey <tom@tromey.com>
6940
6941 PR symtab/12707:
6942 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6943 exists.
6944 (new_symbol): Likewise.
6945 * compile/compile-object-load.c (get_out_value_type): Use
6946 symbol_matches_search_name.
6947
f049a313
TT
69482020-04-24 Tom Tromey <tom@tromey.com>
6949
6950 * dwarf2/read.c (add_partial_symbol): Do not call
6951 compute_and_set_names.
6952
76e288d1
TT
69532020-04-24 Tom Tromey <tom@tromey.com>
6954
6955 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6956 overload.
6957
2467f4f6
TT
69582020-04-24 Tom Tromey <tom@tromey.com>
6959
6960 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6961 (add_psymbol_to_list): New overload. Make old overload call new
6962 one.
6963 * psympriv.h (add_psymbol_to_list): New overload.
6964
e61108c9
TT
69652020-04-24 Tom Tromey <tom@tromey.com>
6966
6967 * dwarf2/read.c (partial_die_info::read) <case
6968 DW_AT_linkage_name>: Use value_as_string.
6969 (dwarf2_string_attr): Use value_as_string.
6970 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6971 method.
6972 * dwarf2/attribute.c (attribute::value_as_string): New method.
6973
8c87a452
TT
69742020-04-24 Tom Tromey <tom@tromey.com>
6975
6976 * symtab.c (general_symbol_info::natural_name)
6977 (general_symbol_info::demangled_name): Check for language_rust.
6978
787de330
TT
69792020-04-24 Tom Tromey <tom@tromey.com>
6980
6981 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6982 (dwarf2_physname): ... from here.
6983 (partial_die_info::read): Add Rust "{" hack.
6984
ff985671
TT
69852020-04-24 Tom Tromey <tom@tromey.com>
6986
6987 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6988 method.
6989 (symbol_set_demangled_name): Don't declare.
6990 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6991 symbol_set_demangled_name.
6992 (general_symbol_info::set_language)
6993 (general_symbol_info::compute_and_set_names): Update.
6994 * minsyms.c (minimal_symbol_reader::install): Update.
6995 * dwarf2/read.c (new_symbol): Update.
6996
1acda803
TT
69972020-04-24 Tom Tromey <tromey@adacore.com>
6998
6999 PR python/23662:
7000 * python/py-type.c (convert_field): Handle
7001 FIELD_LOC_KIND_DWARF_BLOCK.
7002 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7003 (typy_get_dynamic): Nw function.
7004 (type_object_getset): Add "dynamic".
7005 * NEWS: Add entry.
7006
d656f129
TT
70072020-04-24 Tom Tromey <tromey@adacore.com>
7008
7009 * ada-typeprint.c (print_choices, print_variant_part)
7010 (print_record_field_types_dynamic): New functions.
7011 (print_record_field_types): Use print_record_field_types_dynamic.
7012
7d79de9a
TT
70132020-04-24 Tom Tromey <tromey@adacore.com>
7014
7015 * dwarf2/read.c (handle_data_member_location): New overload.
7016 (dwarf2_add_field): Use it.
7017 (decode_locdesc): Add "computed" parameter. Update comment.
7018 * gdbtypes.c (is_dynamic_type_internal): Also look for
7019 FIELD_LOC_KIND_DWARF_BLOCK.
7020 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7021 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7022 virtual base classes.
7023 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7024 FIELD_LOC_KIND_DWARF_BLOCK.
7025
f8e89861
TT
70262020-04-24 Tom Tromey <tromey@adacore.com>
7027
7028 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7029 * gdbtypes.c (is_dynamic_type_internal): Check
7030 TYPE_HAS_DYNAMIC_LENGTH.
7031 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7032 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7033 New macros.
7034 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7035 constant.
7036
9c6a1327
TT
70372020-04-24 Tom Tromey <tromey@adacore.com>
7038
7039 * dwarf2/read.c (struct variant_field): Rewrite.
7040 (struct variant_part_builder): New.
7041 (struct nextfield): Remove "variant" field. Add "offset".
7042 (struct field_info): Add "current_variant_part" and
7043 "variant_parts".
7044 (alloc_discriminant_info): Remove.
7045 (alloc_rust_variant): New function.
7046 (quirk_rust_enum): Update.
7047 (dwarf2_add_field): Set "offset" member. Don't handle
7048 DW_TAG_variant_part.
7049 (offset_map_type): New typedef.
7050 (convert_variant_range, create_one_variant)
7051 (create_one_variant_part, create_variant_parts)
7052 (add_variant_property): New functions.
7053 (dwarf2_attach_fields_to_type): Call add_variant_property.
7054 (read_structure_type): Don't handle DW_TAG_variant_part.
7055 (handle_variant_part, handle_variant): New functions.
7056 (handle_struct_member_die): Use them.
7057 (process_structure_scope): Don't handle variant parts.
7058 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7059 (struct discriminant_info): Remove.
7060 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7061 (struct main_type) <flag_discriminated_union>: Remove.
7062 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7063 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7064 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7065 Update.
7066 * valops.c (value_union_variant): Remove.
7067 * value.h (value_union_variant): Don't declare.
7068
b249d2c2
TT
70692020-04-24 Tom Tromey <tromey@adacore.com>
7070
7071 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7072 (ada_value_primitive_packed_val): Update.
7073 * ada-valprint.c (ada_value_print_1): Update.
7074 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7075 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7076 just an address. Use evaluate_for_locexpr_baton.
7077 (dwarf2_evaluate_property): Update.
7078 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7079 array_view.
7080 * findvar.c (default_read_var_value): Update.
7081 * gdbtypes.c (compute_variant_fields_inner)
7082 (resolve_dynamic_type_internal): Update.
7083 (resolve_dynamic_type): Change type of valaddr parameter.
7084 * gdbtypes.h (resolve_dynamic_type): Update.
7085 * valarith.c (value_subscripted_rvalue): Update.
7086 * value.c (value_from_contents_and_address): Update.
7087
61122aa9
TT
70882020-04-24 Tom Tromey <tromey@adacore.com>
7089
7090 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7091 "push_initial_value" parameter.
7092 (dwarf2_evaluate_property): Likewise.
7093 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7094
ef83a141
TT
70952020-04-24 Tom Tromey <tromey@adacore.com>
7096
7097 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7098 (variant::matches, compute_variant_fields_recurse)
7099 (compute_variant_fields_inner, compute_variant_fields): New
7100 functions.
7101 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7102 Use resolved_type after type is made.
7103 (operator==): Add new cases.
7104 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7105 (struct discriminant_range, struct variant, struct variant_part):
7106 New.
7107 (union dynamic_prop_data) <variant_parts, original_type>: New
7108 members.
7109 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7110 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7111 constants.
7112 * value.c (unpack_bits_as_long): Now public.
7113 * value.h (unpack_bits_as_long): Declare.
7114
675127ec
TT
71152020-04-24 Tom Tromey <tromey@adacore.com>
7116
7117 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7118 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7119
9852ceef
HD
71202020-04-24 Hannes Domani <ssbssa@yahoo.de>
7121
7122 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7123
7632c6ce
KR
71242020-04-24 Kamil Rytarowski <n54@gmx.com>
7125
7126 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7127 (remove_fork_catchpoint, post_startup_inferior)
7128 (post_attach): Move...
7129 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7130 (remove_fork_catchpoint, post_startup_inferior)
7131 (post_attach): ...here.
7132 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7133 (remove_fork_catchpoint, post_startup_inferior)
7134 (post_attach): Move...
7135 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7136 (remove_fork_catchpoint, post_startup_inferior)
7137 (post_attach): ...here.
7138
7be2bb4f
TT
71392020-04-24 Tom Tromey <tromey@adacore.com>
7140
7141 * nat/windows-nat.h (struct windows_thread_info)
7142 <pc_adjusted>: New member.
7143 * windows-nat.c (windows_fetch_one_register): Check
7144 pc_adjusted.
7145 (windows_nat_target::get_windows_debug_event)
7146 (windows_nat_target::wait): Set pc_adjusted.
7147
f80cb3b4
TV
71482020-04-24 Tom de Vries <tdevries@suse.de>
7149
7150 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7151 Run gdb-add-index inside temp dir.
7152
29514b87
TT
71532020-04-23 Tom Tromey <tromey@adacore.com>
7154
7155 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7156 in loop.
7157
5939967b
LM
71582020-04-23 Luis Machado <luis.machado@linaro.org>
7159
7160 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7161 get_frame_register instead of gdbarch_unwind_pc.
7162
70bc38f5
TV
71632020-04-23 Tom de Vries <tdevries@suse.de>
7164
7165 * symtab.c (lookup_global_symbol): Prefer def over decl.
7166
de82891c
TV
71672020-04-23 Tom de Vries <tdevries@suse.de>
7168
7169 PR symtab/25807
7170 * block.c (best_symbol, better_symbol): Promote to external.
7171 * block.h (best_symbol, better_symbol): Declare.
7172 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7173 decl.
7174
ecc6c606
TT
71752020-04-23 Tom Tromey <tromey@adacore.com>
7176
7177 PR ada/25837:
7178 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7179 "const char *", not a "const std::string &".
7180 <name_and_matcher::operator==>: Update.
7181 * unittests/lookup_name_info-selftests.c: Change type of
7182 "result".
7183
740480b8
TT
71842020-04-23 Tom Tromey <tom@tromey.com>
7185
7186 * inferior.h (iterate_over_inferiors): Don't declare.
7187 * inferior.c (iterate_over_inferiors): Remove.
7188 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7189 Remove.
7190 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7191 use iterate_over_inferiors.
7192 (darwin_resume_inferior_it)
7193 (struct resume_inferior_threads_param)
7194 (darwin_resume_inferior_threads_it): Remove.
7195 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7196
ae3ab1f0
TV
71972020-04-23 Tom de Vries <tdevries@suse.de>
7198
7199 * blockframe.c (find_pc_partial_function): Use
7200 find_pc_sect_compunit_symtab rather than
7201 objfile->sf->qf->find_pc_sect_compunit_symtab.
7202
317d2668
TV
72032020-04-22 Tom de Vries <tdevries@suse.de>
7204
7205 PR symtab/25764
7206 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7207 in psymtabs.
7208
eea9e357
TV
72092020-04-22 Tom de Vries <tdevries@suse.de>
7210
7211 PR symtab/25801
7212 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7213 symtabs.
7214
3d5afab3
TV
72152020-04-22 Tom de Vries <tdevries@suse.de>
7216
7217 PR symtab/25700
7218 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7219 CU if already created.
7220
d43b7a2d
TBA
72212020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7222
7223 * infrun.c (displaced_step_fixup): Switch to the event_thread
7224 before calling displaced_step_restore, not after.
7225
d89edf9b
MM
72262020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7227
7228 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7229 its inferior is not recorded by us.
7230 (record_btrace_target_open): Replace call to
7231 all_non_exited_threads () with call to current_inferior
7232 ()->non_exited_threads ().
7233 (record_btrace_target::stop_recording): Likewise.
7234 (record_btrace_target::close): Likewise.
7235 (record_btrace_target::wait): Likewise.
7236 (record_btrace_target::record_stop_replaying): Likewise.
7237
5897fd49
MM
72382020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7239
7240 * btrace.c (btrace_enable): Throw an error on double enables and
7241 when enabling recording fails.
7242 (btrace_disable): Throw an error if the thread is not recorded.
7243
1a476b6d
MM
72442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7245
7246 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7247 request if we do not have a thread_info.
7248
4778a5f8
TV
72492020-04-21 Tom de Vries <tdevries@suse.de>
7250
7251 PR gdb/25471
7252 * thread.c
7253 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7254 exception in get_frame_id.
7255
0fa7617d
TT
72562020-04-20 Tom Tromey <tromey@adacore.com>
7257
7258 * python/python.c (struct gdbpy_event): Mark move constructor as
7259 noexcept.
7260 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7261 constructor as noexcept.
7262 * completer.h (struct completion_result): Mark move constructor as
7263 noexcept.
7264 * completer.c (completion_result::completion_result): Use
7265 initialization style. Don't call reset_match_list.
7266
ad23bda0
MS
72672020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7268
7269 * MAINTAINERS (Write After Approval): Add myself.
7270
45e1f031
TT
72712020-04-18 Tom Tromey <tom@tromey.com>
7272
7273 * windows-tdep.c (init_w32_command_list)
7274 (w32_prefix_command_valid): Restore.
7275 (_initialize_windows_tdep): Call init_w32_command_list.
7276
08feed99
TT
72772020-04-18 Tom Tromey <tom@tromey.com>
7278
7279 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7280 * value.c (value_fn_field): Update.
7281 * valops.c (find_function_in_inferior)
7282 (value_allocate_space_in_inferior): Update.
7283 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7284 Update.
7285 * tui/tui-source.c (tui_source_window::set_contents): Update.
7286 * symtab.c (lookup_global_or_static_symbol)
7287 (find_function_start_sal_1, skip_prologue_sal)
7288 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7289 * symmisc.c (dump_msymbols, dump_symtab_1)
7290 (maintenance_print_one_line_table): Update.
7291 * symfile.c (init_entry_point_info, section_is_mapped)
7292 (list_overlays_command, simple_read_overlay_table)
7293 (simple_overlay_update_1): Update.
7294 * stap-probe.c (handle_stap_probe): Update.
7295 * stabsread.c (dbx_init_float_type, define_symbol)
7296 (read_one_struct_field, read_enum_type, read_range_type): Update.
7297 * source.c (info_line_command): Update.
7298 * python/python.c (gdbpy_source_objfile_script)
7299 (gdbpy_execute_objfile_script): Update.
7300 * python/py-type.c (save_objfile_types): Update.
7301 * python/py-objfile.c (py_free_objfile): Update.
7302 * python/py-inferior.c (python_new_objfile): Update.
7303 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7304 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7305 (maintenance_check_psymtabs): Update.
7306 * printcmd.c (info_address_command): Update.
7307 * objfiles.h (struct objfile) <arch>: New method, from
7308 get_objfile_arch.
7309 (get_objfile_arch): Don't declare.
7310 * objfiles.c (get_objfile_arch): Remove.
7311 (filter_overlapping_sections): Update.
7312 * minsyms.c (msymbol_is_function): Update.
7313 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7314 (output_nondebug_symbol): Update.
7315 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7316 (mdebug_expand_psymtab): Update.
7317 * machoread.c (macho_add_oso_symfile): Update.
7318 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7319 Update.
7320 * linux-fork.c (checkpoint_command): Update.
7321 * linespec.c (convert_linespec_to_sals): Update.
7322 * jit.c (finalize_symtab): Update.
7323 * infrun.c (insert_exception_resume_from_probe): Update.
7324 * ia64-tdep.c (ia64_find_unwind_table): Update.
7325 * hppa-tdep.c (internalize_unwinds): Update.
7326 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7327 Update.
7328 * gcore.c (call_target_sbrk): Update.
7329 * elfread.c (record_minimal_symbol, elf_symtab_read)
7330 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7331 (elf_gnu_ifunc_resolve_by_got): Update.
7332 * dwarf2/read.c (create_addrmap_from_index)
7333 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7334 (read_debug_names_from_section)
7335 (process_psymtab_comp_unit_reader, add_partial_symbol)
7336 (add_partial_subprogram, process_full_comp_unit)
7337 (read_file_scope, read_func_scope, read_lexical_block_scope)
7338 (read_call_site_scope, dwarf2_ranges_read)
7339 (dwarf2_record_block_ranges, dwarf2_add_field)
7340 (mark_common_block_symbol_computed, read_tag_pointer_type)
7341 (read_tag_string_type, dwarf2_init_float_type)
7342 (dwarf2_init_complex_target_type, read_base_type)
7343 (partial_die_info::read, partial_die_info::read)
7344 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7345 (dwarf2_fetch_die_loc_sect_off): Update.
7346 * dwarf2/loc.c (dwarf2_find_location_expression)
7347 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7348 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7349 (dwarf2_loc_desc_get_symbol_read_needs)
7350 (locexpr_describe_location_piece, locexpr_describe_location_1)
7351 (loclist_describe_location): Update.
7352 * dwarf2/index-write.c (write_debug_names): Update.
7353 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7354 * dtrace-probe.c (dtrace_process_dof): Update.
7355 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7356 (process_one_symbol): Update.
7357 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7358 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7359 (coff_read_enum_type): Update.
7360 * cli/cli-cmds.c (edit_command, list_command): Update.
7361 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7362 * breakpoint.c (create_overlay_event_breakpoint)
7363 (create_longjmp_master_breakpoint)
7364 (create_std_terminate_master_breakpoint)
7365 (create_exception_master_breakpoint, get_sal_arch): Update.
7366 * block.c (block_gdbarch): Update.
7367 * annotate.c (annotate_source_line): Update.
7368
0743fc83
TT
73692020-04-17 Tom Tromey <tromey@adacore.com>
7370
7371 * auto-load.c (show_auto_load_cmd): Remove.
7372 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7373 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7374 (maintenance_print_arc_command): Remove.
7375 * tui/tui-win.c (tui_command): Remove.
7376 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7377 * tui/tui-layout.c (tui_layout_command): Remove.
7378 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7379 * python/python.c (user_set_python, user_show_python): Remove.
7380 (_initialize_python): Use add_basic_prefix_cmd,
7381 add_show_prefix_cmd.
7382 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7383 (install_gdb_commands): Use add_basic_prefix_cmd,
7384 add_show_prefix_cmd.
7385 (info_guile_command): Remove.
7386 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7387 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7388 add_show_prefix_cmd.
7389 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7390 Remove do_set and do_show parameters.
7391 * cli/cli-style.c (set_style, show_style): Remove.
7392 (_initialize_cli_style): Use add_basic_prefix_cmd,
7393 add_show_prefix_cmd.
7394 (cli_style_option::add_setshow_commands): Remove do_set and
7395 do_show parameters.
7396 (cli_style_option::add_setshow_commands): Use
7397 add_basic_prefix_cmd, add_show_prefix_cmd.
7398 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7399 (set_style_name): Remove.
7400 * cli/cli-dump.c (dump_command, append_command): Remove.
7401 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7402 (tekhex_dump_command, binary_dump_command)
7403 (binary_append_command): Remove.
7404 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7405 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7406 (init_w32_command_list): Remove; move into ...
7407 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7408 * valprint.c (set_print, show_print, set_print_raw)
7409 (show_print_raw): Remove.
7410 (_initialize_valprint): Use add_basic_prefix_cmd,
7411 add_show_prefix_cmd.
7412 * typeprint.c (set_print_type, show_print_type): Remove.
7413 (_initialize_typeprint): Use add_basic_prefix_cmd,
7414 add_show_prefix_cmd.
7415 * record.c (set_record_command, show_record_command): Remove.
7416 (_initialize_record): Use add_basic_prefix_cmd,
7417 add_show_prefix_cmd.
7418 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7419 add_show_prefix_cmd.
7420 (info_command, show_command, set_debug, show_debug): Remove.
7421 * top.h (set_history, show_history): Don't declare.
7422 * top.c (set_history, show_history): Remove.
7423 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7424 (unset_tdesc_cmd): Remove.
7425 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7426 add_show_prefix_cmd.
7427 * symtab.c (info_module_command): Remove.
7428 (_initialize_symtab): Use add_basic_prefix_cmd.
7429 * symfile.c (overlay_command): Remove.
7430 (_initialize_symfile): Use add_basic_prefix_cmd.
7431 * sparc64-tdep.c (info_adi_command): Remove.
7432 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7433 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7434 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7435 add_show_prefix_cmd.
7436 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7437 (_initialize_serial): Use add_basic_prefix_cmd,
7438 add_show_prefix_cmd.
7439 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7440 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7441 add_show_prefix_cmd.
7442 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7443 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7444 add_show_prefix_cmd.
7445 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7446 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7447 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7448 add_show_prefix_cmd.
7449 * remote.c (remote_command, set_remote_cmd): Remove.
7450 (_initialize_remote): Use add_basic_prefix_cmd.
7451 * record-full.c (set_record_full_command)
7452 (show_record_full_command): Remove.
7453 (_initialize_record_full): Use add_basic_prefix_cmd,
7454 add_show_prefix_cmd.
7455 * record-btrace.c (cmd_set_record_btrace)
7456 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7457 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7458 (cmd_show_record_btrace_pt): Remove.
7459 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7460 add_show_prefix_cmd.
7461 * ravenscar-thread.c (set_ravenscar_command)
7462 (show_ravenscar_command): Remove.
7463 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7464 add_show_prefix_cmd.
7465 * mips-tdep.c (show_mips_command, set_mips_command)
7466 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7467 add_show_prefix_cmd.
7468 * maint.c (maintenance_command, maintenance_info_command)
7469 (maintenance_check_command, maintenance_print_command)
7470 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7471 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7472 add_show_prefix_cmd.
7473 (show_per_command_cmd): Remove.
7474 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7475 Remove.
7476 (maintenance_show_test_settings_cmd): Remove.
7477 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7478 add_show_prefix_cmd.
7479 * maint-test-options.c (maintenance_test_options_command):
7480 Remove.
7481 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7482 * macrocmd.c (macro_command): Remove
7483 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7484 * language.c (set_check, show_check): Remove.
7485 (_initialize_language): Use add_basic_prefix_cmd,
7486 add_show_prefix_cmd.
7487 * infcmd.c (unset_command): Remove.
7488 (_initialize_infcmd): Use add_basic_prefix_cmd.
7489 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7490 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7491 add_show_prefix_cmd.
7492 * go32-nat.c (go32_info_dos_command): Remove.
7493 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7494 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7495 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7496 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7497 (_initialize_frame): Use add_basic_prefix_cmd,
7498 add_show_prefix_cmd.
7499 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7500 (_initialize_dcache): Use add_basic_prefix_cmd,
7501 add_show_prefix_cmd.
7502 * cp-support.c (maint_cplus_command): Remove.
7503 (_initialize_cp_support): Use add_basic_prefix_cmd.
7504 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7505 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7506 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7507 add_basic_prefix_cmd, add_show_prefix_cmd.
7508 * breakpoint.c (save_command): Remove.
7509 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7510 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7511 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7512 add_show_prefix_cmd.
7513 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7514 (set_ada_command, show_ada_command): Remove.
7515 (_initialize_ada_language): Use add_basic_prefix_cmd,
7516 add_show_prefix_cmd.
7517 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7518
3557f442
KR
75192020-04-16 Kamil Rytarowski <n54@gmx.com>
7520
7521 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7522 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7523
16197208
SM
75242020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7525
7526 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7527 warning messages.
7528
00ac85d3
SM
75292020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7530
7531 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7532 import table is not at beginning of .idata section.
7533
381ce63f
PA
75342020-04-16 Pedro Alves <palves@redhat.com>
7535
7536 * inferior.c (delete_inferior): Use delete operator directly
7537 instead of delete_program_space.
7538 * progspace.c (add_program_space): New, factored out from
7539 program_space::program_space.
7540 (remove_program_space): New, factored out from
7541 delete_program_space.
7542 (program_space::program_space): Remove intro comment. Rewrite.
7543 (program_space::~program_space): Remove intro comment. Call
7544 remove_program_space.
7545 (delete_program_space): Delete.
7546 * progspace.h (program_space::program_space): Make explicit. Move
7547 intro comment here, adjusted.
7548 (program_space::~program_space): Move intro comment here,
7549 adjusted.
7550 (delete_program_space): Remove.
7551
a010605f
TT
75522020-04-16 Tom Tromey <tromey@adacore.com>
7553
7554 * windows-nat.c (windows_nat::handle_access_violation): New
7555 function.
7556 * nat/windows-nat.h (handle_access_violation): Declare.
7557 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7558 windows-nat.c. Call handle_access_violation.
7559
efba5c23
TV
75602020-04-16 Tom de Vries <tdevries@suse.de>
7561
7562 PR symtab/25791
7563 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7564 CUs without psymtab.
7565
97ed802d
KB
75662020-04-16 Kevin Buettner <kevinb@redhat.com>
7567
7568 * python/python.c (do_start_initialization): Don't call
7569 PyEval_InitThreads for Python 3.9 and beyond.
7570
c7d64809
KR
75712020-04-15 Kamil Rytarowski <n54@gmx.com>
7572
7573 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7574 thread functions.
7575 (obsd_nat_target::wait): Likewise.
7576
ce127a96
TT
75772020-04-15 Tom Tromey <tromey@adacore.com>
7578
7579 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7580 (DEBUG_EXCEPT): Use debug_printf.
7581
99f1bc6a
AB
75822020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7583
7584 * completer.c (class completion_tracker::completion_hash_entry)
7585 <hash_name>: New member function.
7586 (completion_tracker::discard_completions): New callback to hash a
7587 completion_hash_entry, pass this to htab_create_alloc.
7588
a0e9b532
JT
75892016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7590
7591 * windows-nat.c (windows_make_so): Warn rather than stopping with
7592 an error if realpath() fails.
7593
06ca5dd4
KR
75942020-04-14 Kamil Rytarowski <n54@gmx.com>
7595
7596 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7597 (nbsd_nat_target::info_proc): Add do_status.
7598
194d088f
TV
75992020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7600 Tom de Vries <tdevries@suse.de>
7601
7602 PR symtab/25718
7603 * psympriv.h (struct partial_symtab::read_symtab)
7604 (struct partial_symtab::expand_psymtab)
7605 (struct partial_symtab::read_dependencies): Update comments.
7606 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7607 read_symtab for includer.
7608 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7609 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7610 (struct dwarf2_include_psymtab::m_readin): Remove.
7611 (struct dwarf2_include_psymtab::includer): New member function.
7612 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7613
c1a66c06
TV
76142020-04-14 Tom de Vries <tdevries@suse.de>
7615
7616 PR symtab/25720
7617 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7618 with NULL symbol_matcher and lookup_name.
7619 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7620 and lookup_name.
7621 * dwarf2/read.c (dw2_expand_symtabs_matching)
7622 (dw2_debug_names_expand_symtabs_matching): Same.
7623 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7624 Make lookup_name a pointer. Update comment.
7625 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7626 lookup_name being a pointer.
7627 * symfile.c (expand_symtabs_matching): Same.
7628 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7629 * linespec.c (iterate_over_all_matching_symtabs): Same.
7630
400b5eca
TT
76312020-04-13 Tom Tromey <tom@tromey.com>
7632
7633 * run-on-main-thread.c: Update include.
7634 * unittests/main-thread-selftests.c: Update include.
7635 * tui/tui-win.c: Update include.
7636 * tui/tui-io.c: Update include.
7637 * tui/tui-interp.c: Update include.
7638 * tui/tui-hooks.c: Update include.
7639 * top.h: Update include.
7640 * top.c: Update include.
7641 * ser-base.c: Update include.
7642 * remote.c: Update include.
7643 * remote-notif.c: Update include.
7644 * remote-fileio.c: Update include.
7645 * record-full.c: Update include.
7646 * record-btrace.c: Update include.
7647 * python/python.c: Update include.
7648 * posix-hdep.c: Update include.
7649 * mingw-hdep.c: Update include.
7650 * mi/mi-main.c: Update include.
7651 * mi/mi-interp.c: Update include.
7652 * main.c: Update include.
7653 * linux-nat.c: Update include.
7654 * interps.c: Update include.
7655 * infrun.c: Update include.
7656 * inf-loop.c: Update include.
7657 * event-top.c: Update include.
7658 * event-loop.c: Move to ../gdbsupport/.
7659 * event-loop.h: Move to ../gdbsupport/.
7660 * async-event.h: Update include.
7661 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7662
93b54c8e
TT
76632020-04-13 Tom Tromey <tom@tromey.com>
7664
7665 * tui/tui-win.c: Include async-event.h.
7666 * remote.c: Include async-event.h.
7667 * remote-notif.c: Include async-event.h.
7668 * record-full.c: Include async-event.h.
7669 * record-btrace.c: Include async-event.h.
7670 * infrun.c: Include async-event.h.
7671 * event-top.c: Include async-event.h.
7672 * event-loop.h: Move some declarations to async-event.h.
7673 * event-loop.c: Don't include ser-event.h or top.h. Move some
7674 code to async-event.c.
7675 * async-event.h: New file.
7676 * async-event.c: New file.
7677 * Makefile.in (COMMON_SFILES): Add async-event.c.
7678 (HFILES_NO_SRCDIR): Add async-event.h.
7679
c1cd3163
TT
76802020-04-13 Tom Tromey <tom@tromey.com>
7681
7682 * utils.c (flush_streams): New function.
7683 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7684
29f2bf4f
TT
76852020-04-13 Tom Tromey <tom@tromey.com>
7686
7687 * event-loop.c (handle_file_event): Use warning, not
7688 printf_unfiltered.
7689
98029d02
TT
76902020-04-13 Tom Tromey <tom@tromey.com>
7691
7692 * event-loop.c: Include <chrono>.
7693
06cc9596
TT
76942020-04-13 Tom Tromey <tom@tromey.com>
7695
7696 * gdb_select.h: Move to ../gdbsupport/.
7697 * event-loop.c: Update include path.
7698 * top.c: Update include path.
7699 * ser-base.c: Update include path.
7700 * ui-file.c: Update include path.
7701 * ser-tcp.c: Update include path.
7702 * guile/scm-ports.c: Update include path.
7703 * posix-hdep.c: Update include path.
7704 * ser-unix.c: Update include path.
7705 * gdb_usleep.c: Update include path.
7706 * mingw-hdep.c: Update include path.
7707 * inflow.c: Update include path.
7708 * infrun.c: Update include path.
7709 * event-top.c: Update include path.
7710
8ae8e197
TT
77112020-04-13 Tom Tromey <tom@tromey.com>
7712
7713 * configure: Rebuild.
7714 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7715
58cf28e8
TT
77162020-04-13 Tom Tromey <tom@tromey.com>
7717
7718 * event-loop.h (start_event_loop): Don't declare.
7719 * event-loop.c (start_event_loop): Move...
7720 * main.c (start_event_loop): ...here. Now static.
7721
b7f999ae
SDJ
77222020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7723
7724 * MAINTAINERS: Update my email address.
7725
1085dfd4
KR
77262020-04-12 Kamil Rytarowski <n54@gmx.com>
7727
7728 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7729 IP_ALL.
7730
49d1d1f5
KR
77312020-04-12 Kamil Rytarowski <n54@gmx.com>
7732
7733 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7734 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7735
b4848d2a
KR
77362020-04-12 Kamil Rytarowski <n54@gmx.com>
7737
7738 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7739 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7740
51c133d5
KR
77412020-04-12 Kamil Rytarowski <n54@gmx.com>
7742
7743 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7744
54b8cbd0
KR
77452020-04-11 Kamil Rytarowski <n54@gmx.com>
7746
7747 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7748 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7749 (nbsd_nat_target::info_proc): New functions.
7750 * nbsd-nat.c (kinfo_get_vmmap): New function.
7751 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7752 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7753 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7754 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7755 functions.
7756 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7757 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7758 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7759 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7760 (KINFO_VME_FLAG_GROWS_DOWN): New.
7761
cf83625d
AS
77622020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7763
7764 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7765 bit shift.
7766
0c4311ab
TT
77672020-04-10 Tom Tromey <tromey@adacore.com>
7768
7769 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7770
3e65b3e9
TT
77712020-04-10 Tom Tromey <tromey@adacore.com>
7772
7773 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7774 separate debug files.
7775
13302e95
HD
77762020-04-10 Hannes Domani <ssbssa@yahoo.de>
7777
7778 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7779 Move to...
7780 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7781 ... here.
7782 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7783 Check for STATUS_WX86_BREAKPOINT.
7784 (windows_nat_target::wait): Same.
7785
bdfc1e8a
TV
77862020-04-10 Tom de Vries <tdevries@suse.de>
7787
7788 PR cli/25808
7789 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7790
f4460aec
SM
77912020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7792
7793 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7794 (Write After Approval): Remove Tom de Vries.
7795
a25198bb
BE
77962020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7797
7798 revert partially:
7799 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7800
aac66a4c
SM
7801 * buildsym.c (record_line): Fix undefined behavior and preserve
7802 lines at eof.
a25198bb 7803
206c98a6
KR
78042020-04-09 Kamil Rytarowski <n54@gmx.com>
7805
7806 * auxv.h (svr4_auxv_parse): New.
7807 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7808 and generic_auxv_parse.
7809 (svr4_auxv_parse): Add.
7810 * obsd-tdep.c: Include "auxv.h".
7811 (obsd_auxv_parse): Remove.
7812 (obsd_init_abi): Remove comment.
7813 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7814 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7815 * nbsd-tdep.c: Include "auxv.h".
7816 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7817
71fbdbaf
TT
78182020-04-08 Tom Tromey <tromey@adacore.com>
7819
7820 * nat/windows-nat.h (last_wait_event): Don't declare.
7821 (wait_for_debug_event): Update comment.
7822 * nat/windows-nat.c (last_wait_event): Now static.
7823
2c1d95e8
TT
78242020-04-08 Tom Tromey <tromey@adacore.com>
7825
7826 * windows-nat.c (wait_for_debug_event): Move to
7827 nat/windows-nat.c.
7828 * nat/windows-nat.h (wait_for_debug_event): Declare.
7829 * nat/windows-nat.c (wait_for_debug_event): Move from
7830 windows-nat.c. No longer static.
7831
d2977bc4
TT
78322020-04-08 Tom Tromey <tromey@adacore.com>
7833
7834 * windows-nat.c (get_windows_debug_event): Use
7835 fetch_pending_stop.
7836 * nat/windows-nat.h (fetch_pending_stop): Declare.
7837 * nat/windows-nat.c (fetch_pending_stop): New function.
7838
e758e19c
TT
78392020-04-08 Tom Tromey <tromey@adacore.com>
7840
7841 * windows-nat.c (windows_continue): Use matching_pending_stop and
7842 continue_last_debug_event.
7843 * nat/windows-nat.h (matching_pending_stop)
7844 (continue_last_debug_event): Declare.
7845 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7846 (matching_pending_stop, continue_last_debug_event): New
7847 functions.
7848
8d30e395
TT
78492020-04-08 Tom Tromey <tromey@adacore.com>
7850
7851 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7852 (handle_exception_result): Move to nat/windows-nat.h.
7853 (DEBUG_EXCEPTION_SIMPLE): Remove.
7854 (windows_nat::handle_ms_vc_exception): New function.
7855 (handle_exception): Move to nat/windows-nat.c.
7856 (get_windows_debug_event): Update.
7857 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7858 nat/windows-nat.c.
7859 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7860 (handle_exception_result): Move from windows-nat.c.
7861 (handle_exception): Declare.
7862 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7863 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7864 windows-nat.c.
7865
29de418d
TT
78662020-04-08 Tom Tromey <tromey@adacore.com>
7867
7868 * windows-nat.c (exception_count, event_count): Remove.
7869 (handle_exception, get_windows_debug_event)
7870 (do_initial_windows_stuff): Update.
7871
a816ba18
TT
78722020-04-08 Tom Tromey <tromey@adacore.com>
7873
7874 * windows-nat.c (windows_nat::handle_load_dll)
7875 (windows_nat::handle_unload_dll): Rename. No longer static.
7876 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7877 Declare.
7878
a00caa12
TT
78792020-04-08 Tom Tromey <tromey@adacore.com>
7880
7881 * complaints.h (stop_whining): Declare at top-level.
7882 (complaint): Don't declare stop_whining.
7883
d41b524f
TT
78842020-04-08 Tom Tromey <tromey@adacore.com>
7885
7886 * windows-nat.c (windows_nat::handle_output_debug_string):
7887 Rename. No longer static.
7888 * nat/windows-nat.h (handle_output_debug_string): Declare.
7889
3c76026d
TT
78902020-04-08 Tom Tromey <tromey@adacore.com>
7891
7892 * windows-nat.c (current_process_handle, current_process_id)
7893 (main_thread_id, last_sig, current_event, last_wait_event)
7894 (current_windows_thread, desired_stop_thread_id, pending_stops)
7895 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7896 (display_selectors, fake_create_process)
7897 (get_windows_debug_event): Update.
7898 * nat/windows-nat.h (current_process_handle, current_process_id)
7899 (main_thread_id, last_sig, current_event, last_wait_event)
7900 (current_windows_thread, desired_stop_thread_id, pending_stops)
7901 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7902 * nat/windows-nat.c (current_process_handle, current_process_id)
7903 (main_thread_id, last_sig, current_event, last_wait_event)
7904 (current_windows_thread, desired_stop_thread_id, pending_stops)
7905 (siginfo_er): New globals. Move from windows-nat.c.
7906
9d8679cc
TT
79072020-04-08 Tom Tromey <tromey@adacore.com>
7908
7909 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7910 (handle_load_dll): Update.
7911 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7912
28688adf
TT
79132020-04-08 Tom Tromey <tromey@adacore.com>
7914
7915 * windows-nat.c (enum thread_disposition_type): Move to
7916 nat/windows-nat.h.
7917 (windows_nat::thread_rec): Rename from thread_rec. No longer
7918 static.
7919 (windows_add_thread, windows_nat_target::fetch_registers)
7920 (windows_nat_target::store_registers, handle_exception)
7921 (windows_nat_target::resume, get_windows_debug_event)
7922 (windows_nat_target::get_tib_address)
7923 (windows_nat_target::thread_name)
7924 (windows_nat_target::thread_alive): Update.
7925 * nat/windows-nat.h (enum thread_disposition_type): Move from
7926 windows-nat.c.
7927 (thread_rec): Declare.
7928
4834dad0
TT
79292020-04-08 Tom Tromey <tromey@adacore.com>
7930
7931 * windows-nat.c: Add "using namespace".
7932 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7933 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7934
65bafd5b
TT
79352020-04-08 Tom Tromey <tromey@adacore.com>
7936
7937 * nat/windows-nat.h (struct windows_thread_info): Declare
7938 destructor.
7939 * nat/windows-nat.c (~windows_thread_info): New.
7940
0a4afda3
TT
79412020-04-08 Tom Tromey <tromey@adacore.com>
7942
7943 PR gdb/22992
7944 * windows-nat.c (current_event): Update comment.
7945 (last_wait_event, desired_stop_thread_id): New globals.
7946 (struct pending_stop): New.
7947 (pending_stops): New global.
7948 (windows_nat_target) <stopped_by_sw_breakpoint>
7949 <supports_stopped_by_sw_breakpoint>: New methods.
7950 (windows_fetch_one_register): Add assertions. Adjust PC.
7951 (windows_continue): Handle pending stops. Suspend other threads
7952 when stepping. Use last_wait_event
7953 (wait_for_debug_event): New function.
7954 (get_windows_debug_event): Use wait_for_debug_event. Handle
7955 pending stops. Queue spurious stops.
7956 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7957 (windows_nat_target::kill): Use wait_for_debug_event.
7958 * nat/windows-nat.h (struct windows_thread_info)
7959 <stopped_at_software_breakpoint>: New field.
7960 * nat/windows-nat.c (windows_thread_info::resume): Clear
7961 stopped_at_software_breakpoint.
7962
8e61ebec
TT
79632020-04-08 Tom Tromey <tromey@adacore.com>
7964
7965 * windows-nat.c (enum thread_disposition_type): New.
7966 (thread_rec): Replace "get_context" parameter with "disposition";
7967 change type.
7968 (windows_add_thread, windows_nat_target::fetch_registers)
7969 (windows_nat_target::store_registers, handle_exception)
7970 (windows_nat_target::resume, get_windows_debug_event)
7971 (windows_nat_target::get_tib_address)
7972 (windows_nat_target::thread_name)
7973 (windows_nat_target::thread_alive): Update.
7974
98a03287
TT
79752020-04-08 Tom Tromey <tromey@adacore.com>
7976
7977 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7978 (windows_continue): Use windows_continue::resume.
7979 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7980 resume>: Declare new methods.
7981 * nat/windows-nat.c: New file.
7982 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7983
7c7411bc
TT
79842020-04-08 Tom Tromey <tromey@adacore.com>
7985
7986 * windows-nat.c (windows_add_thread, windows_delete_thread)
7987 (windows_nat_target::fetch_registers)
7988 (windows_nat_target::store_registers, fake_create_process)
7989 (windows_nat_target::resume, windows_nat_target::resume)
7990 (get_windows_debug_event, windows_nat_target::wait)
7991 (windows_nat_target::pid_to_str)
7992 (windows_nat_target::get_tib_address)
7993 (windows_nat_target::get_ada_task_ptid)
7994 (windows_nat_target::thread_name)
7995 (windows_nat_target::thread_alive): Use lwp, not tid.
7996
2950fdf7
TT
79972020-04-08 Tom Tromey <tromey@adacore.com>
7998
7999 * windows-nat.c (handle_exception)
8000 (windows_nat_target::thread_name): Update.
8001 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8002 <name>: Now unique_xmalloc_ptr.
8003
62fe396b
TT
80042020-04-08 Tom Tromey <tromey@adacore.com>
8005
8006 * windows-nat.c (thread_rec)
8007 (windows_nat_target::fetch_registers): Update.
8008 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8009 Update comment.
8010 <debug_registers_changed, reload_context>: Now bool.
8011
e9534bd2
TT
80122020-04-08 Tom Tromey <tromey@adacore.com>
8013
8014 * windows-nat.c (windows_add_thread): Use new.
8015 (windows_init_thread_list, windows_delete_thread): Use delete.
8016 (get_windows_debug_event): Update.
8017 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8018 destructor, and initializers.
8019
ae1f8880
TT
80202020-04-08 Tom Tromey <tromey@adacore.com>
8021
8022 * windows-nat.c (struct windows_thread_info): Remove.
8023 * nat/windows-nat.h: New file.
8024
55a1e039
TT
80252020-04-08 Tom Tromey <tromey@adacore.com>
8026
8027 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8028 (thread_rec, windows_add_thread, windows_delete_thread)
8029 (windows_continue): Update.
8030
93366324
TT
80312020-04-08 Tom Tromey <tromey@adacore.com>
8032
8033 * windows-nat.c (struct windows_thread_info): Remove typedef.
8034 (thread_head): Remove.
8035 (thread_list): New global.
8036 (thread_rec, windows_add_thread, windows_init_thread_list)
8037 (windows_delete_thread, windows_continue): Update.
8038
0f2265e2
SM
80392020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8040
8041 * windows-tdep.h (windows_init_abi): Add comment.
8042 (cygwin_init_abi): New declaration.
8043 * windows-tdep.c: Split signal enumeration in two, one for
8044 Windows and one for Cygwin.
8045 (windows_gdb_signal_to_target): Only deal with signal of the
8046 Windows OS ABI.
8047 (cygwin_gdb_signal_to_target): New function.
8048 (windows_init_abi): Rename to windows_init_abi_common, don't set
8049 gdb_signal_to_target gdbarch method. Add new new function with
8050 this name.
8051 (cygwin_init_abi): New function.
8052 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8053 comment. Don't call windows_init_abi.
8054 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8055 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8056 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8057 i386_windows_init_abi_common, don't call windows_init_abi. Add
8058 a new function of this name.
8059 (i386_cygwin_init_abi): New function.
8060 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8061 OS ABI Cygwin.
8062
3810f182
SM
80632020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8064
8065 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8066 parameter.c.
8067 (dwarf2_read_gdb_index): Update.
8068
063f8e80
KR
80692020-04-07 Kamil Rytarowski <n54@gmx.com>
8070
8071 * nbsd-tdep.c: Include "objfiles.h".
8072 (nbsd_skip_solib_resolver): New.
8073 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8074
85a9510c 80752020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8076
8077 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8078 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8079 with DW_LLE_base_addressx are being emitted in DWARFv5.
8080 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8081 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8082 unsigned integer.
8083
9fc3eaae 80842020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8085
8086 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8087 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8088 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8089 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8090 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8091 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8092 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8093
8094
41144253 80952020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8096
8097 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8098 (read_loclist_index): New function definition.
8099 (lookup_loclist_base): New function definition.
8100 (read_loclist_header): New function definition.
8101 (dwarf2_cu): Add loclist_base and loclist_header field.
8102 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8103 (read_full_die_1): Read the value of DW_AT_loclists_base.
8104 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8105 (read_attribute_value): Handle DW_FORM_loclistx.
8106 (skip_one_die): Handle DW_FORM_loclistx.
8107 (loclist_header): New structure declaration.
8108 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8109
9f4e76a4
SM
81102020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8111
8112 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8113 constructor. Remove `addr` parameter from other constructor and
8114 add `per_cu` parameter.
8115 * dwarf2/read.c (create_partial_symtab): Update.
8116
25c11aca
TV
81172020-04-07 Tom de Vries <tdevries@suse.de>
8118
8119 PR symtab/25796
8120 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8121 (partial_die_info::fixup): Inherit has_const_value.
8122
5707e24b
TV
81232020-04-07 Tom de Vries <tdevries@suse.de>
8124
8125 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8126 symbols without address.
8127
05f00e22
KR
81282020-04-06 Kamil Rytarowski <n54@gmx.com>
8129
8130 * nbsd-nat.h (struct thread_info): Add forward declaration.
8131 (nbsd_nat_target::thread_alive): Add.
8132 (nbsd_nat_target::thread_name): Likewise.
8133 (nbsd_nat_target::update_thread_list): Likewise.
8134 (update_thread_list::post_attach): Likewise.
8135 (post_attach::pid_to_str): Likewise.
8136 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8137 (nbsd_thread_lister): Add.
8138 (nbsd_nat_target::thread_alive): Likewise.
8139 (nbsd_nat_target::thread_name): Likewise.
8140 (nbsd_add_threads): Likewise.
8141 (update_thread_list::post_attach): Likewise.
8142 (nbsd_nat_target::update_thread_list): Likewise.
8143 (post_attach::pid_to_str): Likewise.
8144
6ee448cc
TT
81452020-04-06 Tom Tromey <tromey@adacore.com>
8146
8147 * ada-valprint.c (print_variant_part): Extract the variant field.
8148 (print_field_values): Use the field as the outer value when
8149 recursing.
8150
dea34e8c
TT
81512020-04-06 Tom Tromey <tromey@adacore.com>
8152
8153 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8154 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8155 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8156 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8157 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8158
93689ce9
TT
81592020-04-06 Tom Tromey <tromey@adacore.com>
8160
8161 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8162 TYPE_CODE_ERROR.
8163
79743962
KR
81642020-04-06 Kamil Rytarowski <n54@gmx.com>
8165
8166 * nbsd-tdep.c: Include "gdbarch.h".
8167 Define enum with NetBSD signal numbers.
8168 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8169 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8170 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8171 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8172 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8173 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8174 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8175 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8176 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8177 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8178 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8179 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8180
9e7c9a03
HD
81812020-04-03 Hannes Domani <ssbssa@yahoo.de>
8182
8183 PR gdb/25325
8184 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8185
d9e49b61
TT
81862020-04-03 Tom Tromey <tromey@adacore.com>
8187
8188 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8189 Read constant block.
8190
e0fc5c3f
SM
81912020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8192
8193 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8194 (gdb_bfd_get_full_section_contents): New declaration.
8195 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8196 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8197 gdb_bfd_get_full_section_contents.
8198
e2ff18a0
SM
81992020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8200
8201 * exec.c (build_section_table): Replace internal_error with
8202 gdb_assert.
8203 (section_table_xfer_memory_partial): Likewise.
8204 * mdebugread.c (parse_partial_symbols): Likewise.
8205 * psymtab.c (lookup_partial_symbol): Likewise.
8206 * utils.c (wrap_here): Likewise.
8207
0830d301
TT
82082020-04-02 Tom Tromey <tromey@adacore.com>
8209
8210 * f-lang.c (build_fortran_types): Use arch_type to initialize
8211 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8212
e7da7f8f
TT
82132020-04-02 Tom Tromey <tromey@adacore.com>
8214
8215 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8216 of attributes.
8217
c90d28ac
AB
82182020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8219 Bernd Edlinger <bernd.edlinger@hotmail.de>
8220 Tom Tromey <tromey@adacore.com>
8221
8222 * buildsym.c (buildsym_compunit::record_line): Remove
8223 deduplication code.
8224
1aa98955
TV
82252020-04-02 Tom de Vries <tdevries@suse.de>
8226
8227 PR ada/24671
8228 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8229
d3214198
TV
82302020-04-02 Tom de Vries <tdevries@suse.de>
8231
8232 * dwarf2/read.c (dwarf2_gdb_index_functions,
8233 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8234 NULL.
8235 * psymtab.c (psym_lookup_global_symbol_language): New function.
8236 (psym_functions): Init psym_lookup_global_symbol_language with
8237 psym_lookup_global_symbol_language.
8238 * symfile-debug.c (debug_sym_quick_functions): Init
8239 lookup_global_symbol_language with NULL.
8240 * symfile.c (set_initial_language): Remove fixme comment.
8241 * symfile.h (struct quick_symbol_functions): Add
8242 lookup_global_symbol_language.
8243 * symtab.c (find_quick_global_symbol_language): New function.
8244 (find_main_name): Use find_quick_global_symbol_language.
8245
2836752f
SM
82462020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8247
8248 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8249
64dc2d4b
BE
82502020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8251
8252 * buildsym.c (record_line): Fix undefined behavior and preserve
8253 lines at eof.
8254
bbe3dc41
BE
82552020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8256
8257 * buildsym.c (record_line): Fix the resizing condition.
8258
6b4a335b
TT
82592020-04-01 Tom Tromey <tom@tromey.com>
8260
8261 * value.h (value_literal_complex): Add comment.
8262 * valops.c (value_literal_complex): Refer to value.h.
8263
3638a098
TT
82642020-04-01 Tom Tromey <tom@tromey.com>
8265
8266 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8267 (scalar_type): New rule, from typebase.
8268 (typebase): Use scalar_type. Recognize complex types.
8269 (field_name): Handle FLOAT_KEYWORD.
8270 (ident_tokens): Add _Complex and __complex__.
8271
c34e8714
TT
82722020-04-01 Tom Tromey <tom@tromey.com>
8273
8274 PR exp/25299:
8275 * valarith.c (promotion_type, complex_binop): New functions.
8276 (scalar_binop): Handle complex numbers. Use promotion_type.
8277 (value_pos, value_neg, value_complement): Handle complex numbers.
8278
fa649bb7
TT
82792020-04-01 Tom Tromey <tom@tromey.com>
8280
8281 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8282 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8283 (parse_number): Handle complex numbers.
8284
981c08ce
TT
82852020-04-01 Tom Tromey <tom@tromey.com>
8286
8287 * c-valprint.c (c_decorations): Change complex suffix to "i".
8288
4c99290d
TT
82892020-04-01 Tom Tromey <tom@tromey.com>
8290
8291 * valprint.c (generic_value_print_complex): Use accessors.
8292 * value.h (value_real_part, value_imaginary_part): Declare.
8293 * valops.c (value_real_part, value_imaginary_part): New
8294 functions.
8295 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8296
5b930b45
TT
82972020-04-01 Tom Tromey <tom@tromey.com>
8298
8299 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8300 (read_range_type): Update.
8301 * mdebugread.c (basic_type): Update.
8302 * go-lang.c (build_go_types): Use init_complex_type.
8303 * gdbtypes.h (struct main_type) <complex_type>: New member.
8304 (init_complex_type): Update.
8305 (arch_complex_type): Don't declare.
8306 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8307 Make name if none given. Use alloc_type_copy. Look for cached
8308 complex type.
8309 (arch_complex_type): Remove.
8310 (gdbtypes_post_init): Use init_complex_type.
8311 * f-lang.c (build_fortran_types): Use init_complex_type.
8312 * dwarf2/read.c (read_base_type): Update.
8313 * d-lang.c (build_d_types): Use init_complex_type.
8314 * ctfread.c (read_base_type): Update.
8315
53cccef1
TBA
83162020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8317
8318 * infrun.c (stop_all_threads): Update assertion, plus when
8319 stopping threads, take into account that we might be trying
8320 to stop an all-stop target.
8321 (stop_waiting): Call 'stop_all_threads' if there exists a
8322 non-stop target.
8323
a0714d30
TBA
83242020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8325
8326 * target.h (exists_non_stop_target): New function declaration.
8327 * target.c (exists_non_stop_target): New function.
8328
60e22c1e
HD
83292020-04-01 Hannes Domani <ssbssa@yahoo.de>
8330
8331 PR gdb/24789
8332 * eval.c (is_integral_or_integral_reference): New function.
8333 (evaluate_subexp_standard): Allow integer references in
8334 pointer arithmetic.
8335
e139a727
TBA
83362020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8337
8338 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8339 check for no ptid in the stop reply when the target is non-stop.
8340
e0802d59
TT
83412020-04-01 Tom Tromey <tromey@adacore.com>
8342
8343 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8344 "name" parameter to rvalue reference. Initialize m_name_holder.
8345 <lookup_name_info>: New overloads.
8346 <name>: Return gdb::string_view.
8347 <c_str>: New method.
8348 <make_ignore_params>: Update.
8349 <search_name_hash>: Update.
8350 <language_lookup_name>: Return const char *.
8351 <m_name>: Change type.
8352 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8353 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8354 (lookup_name_info::match_any): Update.
8355 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8356 Update.
8357 * minsyms.c (linkage_name_str): Update.
8358 * language.c (default_symbol_name_matcher): Update.
8359 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8360 Update.
8361 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8362 (ada_lookup_name_info::ada_lookup_name_info): Update.
8363 (literal_symbol_name_matcher): Update.
8364
8c072cb6
TT
83652020-04-01 Tom Tromey <tromey@adacore.com>
8366
8367 * psymtab.c (psymtab_search_name): Remove function.
8368 (psym_lookup_symbol): Create search name and lookup name here.
8369 (lookup_partial_symbol): Remove "name" parameter; add
8370 lookup_name.
8371 (psym_expand_symtabs_for_function): Update.
8372
6f29a534
TT
83732020-03-31 Joel Jones <joelkevinjones@gmail.com>
8374
8375 PR tui/25597:
8376 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8377
af62665e
TT
83782020-03-31 Tom Tromey <tromey@adacore.com>
8379
8380 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8381 memcpy.
8382
d1a89da5
NC
83832020-03-30 Nelson Chu <nelson.chu@sifive.com>
8384
8385 * features/riscv/32bit-csr.xml: Regenerated.
8386 * features/riscv/64bit-csr.xml: Regenerated.
8387
d8af9068
TT
83882020-03-30 Tom Tromey <tromey@adacore.com>
8389
8390 * ada-valprint.c (print_variant_part): Update.
8391 * ada-lang.h (ada_which_variant_applies): Update.
8392 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8393 outer_valaddr parameters; replace with "outer" value parameter.
8394 (to_fixed_variant_branch_type): Update.
8395
227c0bf4
PFC
83962020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8397
8398 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8399 <list>. Remove inclusion of observable.h.
8400 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8401 (struct arch_lwp_info): New struct.
8402 (class ppc_linux_dreg_interface): New class.
8403 (struct ppc_linux_process_info): New struct.
8404 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8405 <low_new_clone, low_forget_process, low_prepare_to_resume>
8406 <copy_thread_dreg_state, mark_thread_stale>
8407 <mark_debug_registers_changed, register_hw_breakpoint>
8408 <clear_hw_breakpoint, register_wp, clear_wp>
8409 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8410 <num_memory_accesses, get_trigger_type>
8411 <create_watchpoint_request, hwdebug_point_cmp>
8412 <init_arch_lwp_info, get_arch_lwp_info>
8413 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8414 methods.
8415 <struct ptid_hash>: New inner struct.
8416 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8417 members.
8418 (saved_dabr_value, hwdebug_info, max_slots_number)
8419 (struct hw_break_tuple, struct thread_points, ppc_threads)
8420 (have_ptrace_hwdebug_interface)
8421 (hwdebug_find_thread_points_by_tid)
8422 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8423 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8424 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8425 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8426 use m_dreg_interface.
8427 (hwdebug_point_cmp): Change to...
8428 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8429 reference arguments instead of pointers.
8430 (ppc_linux_nat_target::ranged_break_num_registers): Use
8431 m_dreg_interface.
8432 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8433 m_dreg_interface. Call register_hw_breakpoint.
8434 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8435 m_dreg_interface. Call clear_hw_breakpoint.
8436 (get_trigger_type): Change to...
8437 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8438 comment.
8439 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8440 use m_dreg_interface. Call register_hw_breakpoint.
8441 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8442 use m_dreg_interface. Call clear_hw_breakpoint.
8443 (can_use_watchpoint_cond_accel): Change to...
8444 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8445 method. Update comment, use m_dreg_interface and
8446 m_process_info.
8447 (calculate_dvc): Change to...
8448 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8449 m_dreg_interface.
8450 (num_memory_accesses): Change to...
8451 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8452 (check_condition): Change to...
8453 (ppc_linux_nat_target::check_condition): ...this method.
8454 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8455 comment, use m_dreg_interface.
8456 (create_watchpoint_request): Change to...
8457 (ppc_linux_nat_target::create_watchpoint_request): ...this
8458 method. Use m_dreg_interface.
8459 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8460 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8461 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8462 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8463 (ppc_linux_nat_target::low_forget_process)
8464 (ppc_linux_nat_target::low_new_fork)
8465 (ppc_linux_nat_target::low_new_clone)
8466 (ppc_linux_nat_target::low_delete_thread)
8467 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8468 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8469 only call mark_thread_stale.
8470 (ppc_linux_thread_exit): Remove.
8471 (ppc_linux_nat_target::stopped_data_address): Change to...
8472 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8473 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8474 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8475 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8476 comment. Call low_stopped_data_address.
8477 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8478 m_dreg_interface.
8479 (ppc_linux_nat_target::masked_watch_num_registers): Use
8480 m_dreg_interface.
8481 (ppc_linux_nat_target::copy_thread_dreg_state)
8482 (ppc_linux_nat_target::mark_thread_stale)
8483 (ppc_linux_nat_target::mark_debug_registers_changed)
8484 (ppc_linux_nat_target::register_hw_breakpoint)
8485 (ppc_linux_nat_target::clear_hw_breakpoint)
8486 (ppc_linux_nat_target::register_wp)
8487 (ppc_linux_nat_target::clear_wp)
8488 (ppc_linux_nat_target::init_arch_lwp_info)
8489 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8490 (_initialize_ppc_linux_nat): Remove observer callback.
8491
4db10d8f
PFC
84922020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8493
8494 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8495 (ppc_linux_nat_target::auxv_parse)
8496 (ppc_linux_nat_target::read_description)
8497 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8498 Move up.
8499
1310c1b0
PFC
85002020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8501
8502 * linux-nat.h (low_new_clone): New method.
8503 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8504
69b037c3
SM
85052020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8506
8507 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8508 (dbx_expand_psymtab): ... this.
8509 (start_psymtab): Update.
8510 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8511 (mdebug_expand_psymtab): ... this.
8512 (parse_partial_symbols): Update.
8513 (new_psymtab): Update.
8514 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8515 (xcoff_expand_psymtab): ... this.
8516 (xcoff_start_psymtab): Update.
8517
48993951
SM
85182020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8519
8520 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8521 <expand_dependencies>: ... this.
8522 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8523 (partial_symtab::expand_dependencies): ... this.
8524 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8525 Update.
8526 (dwarf2_psymtab::expand_psymtab): Update.
8527 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8528 * mdebugread.c (psymtab_to_symtab_1): Update.
8529 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8530
3ad83046
SM
85312020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8532
8533 * psympriv.h (discard_psymtab): Remove.
8534 * dbxread.c (dbx_end_psymtab): Update.
8535 * xcoffread.c (xcoff_end_psymtab): Update.
8536
4d1b9ab6
TT
85372020-03-28 Tom Tromey <tom@tromey.com>
8538
8539 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8540 comment.
8541
f1749218
TT
85422020-03-28 Tom Tromey <tom@tromey.com>
8543
8544 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8545
ebea7626
HD
85462020-03-27 Hannes Domani <ssbssa@yahoo.de>
8547
8548 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8549
a879b4d5
JB
85502020-03-26 John Baldwin <jhb@FreeBSD.org>
8551
8552 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8553
0826b30a
TT
85542020-03-26 Tom Tromey <tom@tromey.com>
8555
8556 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8557 (mark_common_block_symbol_computed, read_tag_string_type)
8558 (attr_to_dynamic_prop, read_subrange_type): Update.
8559 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8560 to be methods on struct attribute.
8561 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8562 (read_call_site_scope, partial_die_info::read)
8563 (partial_die_info::read, lookup_die_type, follow_die_ref):
8564 Update.
8565 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8566 from dwarf2_get_ref_die_offset.
8567 (attribute::constant_value): New method, from
8568 dwarf2_get_attr_constant_value.
8569 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8570 Declare method.
8571 <constant_value>: New method.
8572
2b2558bf
TT
85732020-03-26 Tom Tromey <tom@tromey.com>
8574
8575 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8576 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8577 (dwarf_type_encoding_name): Move to stringify.c.
8578 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8579 * dwarf2/stringify.c: New file.
8580 * dwarf2/stringify.h: New file.
8581
eeb64781
TT
85822020-03-26 Tom Tromey <tom@tromey.com>
8583
8584 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8585 Rewrite.
8586
a39fdb41
TT
85872020-03-26 Tom Tromey <tom@tromey.com>
8588
8589 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8590 methods.
8591 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8592 (lookup_ranges_base): Likewise.
8593 (read_cutu_die_from_dwo, read_full_die_1): Update.
8594
436c571c
TT
85952020-03-26 Tom Tromey <tom@tromey.com>
8596
8597 * dwarf2/read.c (read_import_statement, read_file_scope)
8598 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8599 (read_lexical_block_scope, read_call_site_scope)
8600 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8601 (handle_struct_member_die, process_structure_scope)
8602 (update_enumeration_type_from_children)
8603 (process_enumeration_scope, read_array_type, read_common_block)
8604 (read_namespace, read_module, read_subroutine_type): Update.
8605 (sibling_die): Remove.
8606
052c8bb8
TT
86072020-03-26 Tom Tromey <tom@tromey.com>
8608
8609 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8610 (build_type_psymtabs_reader, read_structure_type)
8611 (read_enumeration_type, read_full_die_1): Update.
8612 (dwarf2_attr_no_follow): Move to die.h.
8613 * dwarf2/die.h (struct die_info) <attr>: New method.
8614
2b24b6e4
TT
86152020-03-26 Tom Tromey <tom@tromey.com>
8616
8617 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8618 <base_address>: Now an optional.
8619 (dwarf2_find_base_address, dwarf2_rnglists_process)
8620 (dwarf2_ranges_process, fill_in_loclist_baton)
8621 (dwarf2_symbol_mark_computed): Update.
8622
c2d50fd0
TT
86232020-03-26 Tom Tromey <tom@tromey.com>
8624
8625 * dwarf2/read.c (struct die_info): Move to die.h.
8626 * dwarf2/die.h: New file.
8627
0df7ad3a
TT
86282020-03-26 Tom Tromey <tom@tromey.com>
8629
8630 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8631 * dwarf2/read.c
8632 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8633 Move to line-header.c.
8634 (read_checked_initial_length_and_offset, read_formatted_entries):
8635 Likewise.
8636 (dwarf_decode_line_header): Split into two.
8637 * dwarf2/line-header.c
8638 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8639 Move from read.c.
8640 (read_checked_initial_length_and_offset, read_formatted_entries):
8641 Likewise.
8642 (dwarf_decode_line_header): New function, split from read.c.
8643
86c0bb4c
TT
86442020-03-26 Tom Tromey <tom@tromey.com>
8645
8646 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8647 Declare method.
8648 * dwarf2/read.c (read_attribute_value): Update.
8649 (dwarf2_per_objfile::read_line_string): Rename from
8650 read_indirect_line_string.
8651 (read_formatted_entries): Update.
8652
2ef46c2f
TT
86532020-03-26 Tom Tromey <tom@tromey.com>
8654
8655 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8656 variable.
8657
4f9c1eda
TT
86582020-03-26 Tom Tromey <tom@tromey.com>
8659
8660 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8661 const.
8662 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8663 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8664 parameter const.
8665
5a0e026f
TT
86662020-03-26 Tom Tromey <tom@tromey.com>
8667
8668 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8669 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8670 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8671 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8672
8844c11b
TT
86732020-03-26 Tom Tromey <tom@tromey.com>
8674
8675 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8676 file_names_size, file_full_name, file_file_name>: Use const.
8677 <file_name_at, file_names>: Add const overload.
8678 * dwarf2/line-header.c (line_header::file_file_name)
8679 (line_header::file_full_name): Update.
8680
c90ec28a
TT
86812020-03-26 Tom Tromey <tom@tromey.com>
8682
8683 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8684 (macro_start_file, consume_improper_spaces)
8685 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8686 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8687 (dwarf_decode_macros): Move to macro.c.
8688 * dwarf2/macro.c: New file.
8689 * dwarf2/macro.h: New file.
8690 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8691
4f44ae6c
TT
86922020-03-26 Tom Tromey <tom@tromey.com>
8693
8694 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8695 method.
8696 * dwarf2/section.c: New method. From
8697 read_indirect_string_at_offset_from.
8698 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8699 (read_indirect_string_at_offset_from): Move to section.c.
8700 (read_indirect_string_at_offset): Rewrite.
8701 (read_indirect_line_string_at_offset): Remove.
8702 (read_indirect_string, read_indirect_line_string)
8703 (dwarf_decode_macro_bytes): Update.
8704
a0194fa8
TT
87052020-03-26 Tom Tromey <tom@tromey.com>
8706
8707 * dwarf2/section.h (struct dwarf2_section_info)
8708 <overload_complaint>: Declare.
8709 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8710 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8711 Rename from dwarf2_section_buffer_overflow_complaint.
8712 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8713 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8714
3d27bbdb
TT
87152020-03-26 Tom Tromey <tom@tromey.com>
8716
8717 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8718 Declare.
8719 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8720 Move from read.c.
8721 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8722 to section.c.
8723
9eac9650
TT
87242020-03-26 Tom Tromey <tom@tromey.com>
8725
8726 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8727
bf80d710
TT
87282020-03-26 Tom Tromey <tom@tromey.com>
8729
8730 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8731 "builder".
8732 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8733 parameter.
8734 (dwarf_decode_macros): Update.
8735
0314b390
TT
87362020-03-26 Tom Tromey <tom@tromey.com>
8737
8738 * dwarf2/read.c (read_attribute_value): Update.
8739 (read_indirect_string_from_dwz): Move to dwz.c; change into
8740 method.
8741 (dwarf_decode_macro_bytes): Update.
8742 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8743 * dwarf2/dwz.c: New file.
8744 * Makefile.in (COMMON_SFILES): Add dwz.c.
8745
9fda78b6
TT
87462020-03-26 Tom Tromey <tom@tromey.com>
8747
8748 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8749 * dwarf2/read.c: Add include.
8750 * dwarf2/index-write.c: Add include.
8751 * dwarf2/index-cache.c: Add include.
8752 * dwarf2/dwz.h: New file.
8753
33aa3c10
TT
87542020-03-25 Tom Tromey <tom@tromey.com>
8755
8756 * compile/compile-object-load.c (get_out_value_type): Mention
8757 correct symbol name in error message.
8758
d503b685
HD
87592020-03-25 Hannes Domani <ssbssa@yahoo.de>
8760
8761 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8762
7b1eff95
TV
87632020-03-25 Tom de Vries <tdevries@suse.de>
8764
8765 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8766 * symmisc.c (dump_symtab_1): Print user and includes fields.
8767 (maintenance_info_symtabs): Same.
8768
dd895392
AB
87692020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8770
8771 PR gdb/25534
8772 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8773 (riscv_regcache_cooked_write): New function.
8774 (riscv_push_dummy_call): Use new function.
8775 (riscv_return_value): Likewise.
8776
5ab2fbf1
SM
87772020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8778
8779 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8780 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8781 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8782 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8783 * infrun.c (follow_fork): Likewise.
8784 (follow_fork_inferior): Likewise.
8785 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8786 * linux-nat.h (class linux_nat_target): Likewise.
8787 * remote.c (class remote_target) <follow_fork>: Likewise.
8788 (remote_target::follow_fork): Likewise.
8789 * target-delegates.c: Re-generate.
8790 * target.c (default_follow_fork): Likewise.
8791 (target_follow_fork): Likewise.
8792 * target.h (struct target_ops) <follow_fork>: Likewise.
8793 (target_follow_fork): Likewise.
8794
a64fafb5
TV
87952020-03-24 Tom de Vries <tdevries@suse.de>
8796
8797 * psymtab.c (maintenance_info_psymtabs): Print user field.
8798
fe26d3a3
TT
87992020-03-20 Tom Tromey <tromey@adacore.com>
8800
8801 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8802 const.
8803 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8804 const.
8805
c884cc46
SM
88062020-03-20 Simon Marchi <simon.marchi@efficios.com>
8807
8808 * ptrace.m4: Don't check for ptrace declaration.
8809 * config.in: Re-generate.
8810 * configure: Re-generate.
8811 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8812 not defined.
8813
1ff700c2
KR
88142020-03-20 Kamil Rytarowski <n54@gmx.com>
8815
8816 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8817 `PTRACE_TYPE_RET'.
8818 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8819 * sparc-nat.c (gdb_ptrace): Likewise.
8820 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8821
f7d4f0b1
TT
88222020-03-20 Tom Tromey <tromey@adacore.com>
8823
8824 * c-exp.y (lex_one_token): Fix assert.
8825
f67210ff
TT
88262020-03-20 Tom Tromey <tromey@adacore.com>
8827
8828 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8829 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8830 strncpy call.
8831
1773be9e
TT
88322020-03-20 Tom Tromey <tromey@adacore.com>
8833
8834 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8835
70304be9
TT
88362020-03-20 Tom Tromey <tromey@adacore.com>
8837
8838 * ada-valprint.c (print_variant_part): Remove parameters; switch
8839 to value-based API.
8840 (print_field_values): Likewise.
8841 (ada_val_print_struct_union): Likewise.
8842 (ada_value_print_1): Update.
8843
9faa006d
KR
88442020-03-20 Kamil Rytarowski <n54@gmx.com>
8845
8846 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8847 nbsd_nat_target instead of inf_ptrace_target.
8848 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8849 nbsd_nat_target.
8850
4a90f062
KR
88512020-03-20 Kamil Rytarowski <n54@gmx.com>
8852
8853 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8854 it to the ptrace call.
8855 * (store_registers): Likewise.
8856
88572020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
8858
8859 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8860 it to the ptrace call.
8861 * (store_registers): Likewise.
8862
2d07da27
LM
88632020-03-19 Luis Machado <luis.machado@linaro.org>
8864
8865 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8866 valid, fetch vg value from ptrace.
8867
f09db380
KR
88682020-03-19 Kamil Rytarowski <n54@gmx.com>
8869 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8870 * inf-ptrace.c: Likewise.
8871 * (gdb_ptrace): Add.
8872 * (inf_ptrace_target::resume): Update.
8873 * (inf_ptrace_target::xfer_partial): Likewise.
8874 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8875 * (inf_ptrace_peek_poke): Update.
8876
fcc7376e
KR
88772020-03-19 Kamil Rytarowski <n54@gmx.com>
8878
8879 * x86-bsd-nat.c (gdb_ptrace): New.
8880 * (x86bsd_dr_set): Add new argument `ptid'.
8881 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8882 x86bsd_dr_set_addr): Update.
8883
cada5fc9
AB
88842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8885
8886 * remote.c (remote_target::process_stop_reply): Handle events for
8887 all threads differently.
8888
19a2740f
AB
88892020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8890
8891 * completer.c (completion_tracker::remove_completion): Define new
8892 function.
8893 * completer.h (completion_tracker::remove_completion): Declare new
8894 function.
8895 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8896 when adding a C++ function symbol.
8897
724fd9ba
AB
88982020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8899
8900 * completer.c (completion_tracker::completion_hash_entry): Define
8901 new class.
8902 (advance_to_filename_complete_word_point): Call
8903 recompute_lowest_common_denominator.
8904 (completion_tracker::completion_tracker): Call discard_completions
8905 to setup the hash table.
8906 (completion_tracker::discard_completions): Allow for being called
8907 from the constructor, pass new equal function, and element deleter
8908 when constructing the hash table. Initialise new class member
8909 variables.
8910 (completion_tracker::maybe_add_completion): Remove use of
8911 m_entries_vec, and store more information into m_entries_hash.
8912 (completion_tracker::recompute_lcd_visitor): New function, most
8913 content taken from...
8914 (completion_tracker::recompute_lowest_common_denominator):
8915 ...here, this now just visits each item in the hash calling the
8916 above visitor.
8917 (completion_tracker::build_completion_result): Remove use of
8918 m_entries_vec, call recompute_lowest_common_denominator.
8919 * completer.h (completion_tracker::have_completions): Remove use
8920 of m_entries_vec.
8921 (completion_tracker::completion_hash_entry): Declare new class.
8922 (completion_tracker::recompute_lowest_common_denominator): Change
8923 function signature.
8924 (completion_tracker::recompute_lcd_visitor): Declare new function.
8925 (completion_tracker::m_entries_vec): Delete.
8926 (completion_tracker::m_entries_hash): Initialize to NULL.
8927 (completion_tracker::m_lowest_common_denominator_valid): New
8928 member variable.
8929 (completion_tracker::m_lowest_common_denominator_max_length): New
8930 member variable.
8931
5a82b8a1
KR
89322020-03-17 Kamil Rytarowski <n54@gmx.com>
8933
8934 * regformats/regdef.h: Put reg in gdb namespace.
8935
fb516a69
KR
89362020-03-17 Kamil Rytarowski <n54@gmx.com>
8937
8938 * i386-bsd-nat.c (gdb_ptrace): New.
8939 * (i386bsd_fetch_inferior_registers,
8940 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8941 * (i386bsd_fetch_inferior_registers,
8942 i386bsd_store_inferior_registers) Use gdb_ptrace.
8943
1c0aa1fb
KR
89442020-03-17 Kamil Rytarowski <n54@gmx.com>
8945
8946 * amd64-bsd-nat.c (gdb_ptrace): New.
8947 * (amd64bsd_fetch_inferior_registers,
8948 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8949 * (amd64bsd_fetch_inferior_registers,
8950 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8951
5ccd2fb7
KR
89522020-03-17 Kamil Rytarowski <n54@gmx.com>
8953
8954 * user-regs.c (user_reg::read): Rename to...
8955 (user_reg::xread): ...this.
8956 * (append_user_reg): Rename argument `read' to `xread'.
8957 * (user_reg_add_builtin): Likewise.
8958 * (user_reg_add): Likewise.
8959 * (value_of_user_reg): Likewise.
8960
2108a63a
KR
89612020-03-17 Kamil Rytarowski <n54@gmx.com>
8962
8963 * sparc-nat.c (gdb_ptrace): New.
8964 * sparc-nat.c (sparc_fetch_inferior_registers)
8965 (sparc_store_inferior_registers) Remove obsolete comment.
8966 * sparc-nat.c (sparc_fetch_inferior_registers)
8967 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8968 * sparc-nat.c (sparc_fetch_inferior_registers)
8969 (sparc_store_inferior_registers) Use gdb_ptrace.
8970
a225c9a8
KR
89712020-03-17 Kamil Rytarowski <n54@gmx.com>
8972
8973 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8974 it to the ptrace call.
8975 * sh-nbsd-nat.c (store_registers): Likewise.
8976
98097623
KR
89772020-03-17 Kamil Rytarowski <n54@gmx.com>
8978
8979 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8980 nbsd_nat_target instead of inf_ptrace_target.
8981 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8982 nbsd_nat_target.
8983
9e38d619
KR
89842020-03-17 Kamil Rytarowski <n54@gmx.com>
8985
8986 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8987
a2ecbe9f
KR
89882020-03-17 Kamil Rytarowski <n54@gmx.com>
8989
8990 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8991 <sys/sysctl.h>.
8992 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8993
58990295
TV
89942020-03-17 Tom de Vries <tdevries@suse.de>
8995
8996 PR gdb/23710
8997 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8998 fields.
8999 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9000 fields.
9001 (process_imported_unit_die): Skip import of c++ CUs.
9002
771dd3a8
TT
90032020-03-16 Tom Tromey <tom@tromey.com>
9004
9005 * p-valprint.c (pascal_object_print_value): Initialize
9006 base_value.
9007
817a7585
AK
90082020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9009 Shahab Vahedi <shahab@synopsys.com>
9010
9011 * Makefile.in: Add arch/arc.o
9012 * configure.tgt: Likewise.
9013 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9014 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9015 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9016 * arc-tdep.h (arc_read_description): Add proto type.
9017 * arch/arc.c: New file.
9018 * arch/arc.h: Likewise.
9019 * features/Makefile: Replace old target descriptions with new.
9020 * features/arc-arcompact.c: Remove.
9021 * features/arc-arcompact.xml: Likewise.
9022 * features/arc-v2.c: Likewise
9023 * features/arc-v2.xml: Likewise
9024 * features/arc/aux-arcompact.xml: New file.
9025 * features/arc/aux-v2.xml: Likewise.
9026 * features/arc/core-arcompact.xml: Likewise.
9027 * features/arc/core-v2.xml: Likewise.
9028 * features/arc/aux-arcompact.c: Generate.
9029 * features/arc/aux-v2.c: Likewise.
9030 * features/arc/core-arcompact.c: Likewise.
9031 * features/arc/core-v2.c: Likewise.
9032 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9033
67430cd0
TT
90342020-03-16 Tom Tromey <tromey@adacore.com>
9035
9036 PR gdb/25663:
9037 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9038 putting value into bcache.
9039
30efb6c7
SM
90402020-03-16 Simon Marchi <simon.marchi@efficios.com>
9041
9042 PR gdb/21500
9043 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9044 to...
9045 (amd64_windows_init_abi_common): ... this. Don't set size of
9046 long type.
9047 (amd64_windows_init_abi): New function.
9048 (amd64_cygwin_init_abi): New function.
9049 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9050 the Cygwin OS ABI.
9051 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9052 comment.
9053
8db52437
SM
90542020-03-16 Simon Marchi <simon.marchi@efficios.com>
9055
9056 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9057 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9058 (pe_import_directory_entry): New struct type.
9059 (is_linked_with_cygwin_dll): New function.
9060 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9061 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9062 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9063
5982a56a
SM
90642020-03-16 Simon Marchi <simon.marchi@efficios.com>
9065
9066 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9067 i386_cygwin_core_osabi_sniffer.
9068
7a1998df
SM
90692020-03-16 Simon Marchi <simon.marchi@efficios.com>
9070
9071 * i386-cygwin-tdep.c: Rename to...
9072 * i386-windows-tdep.c: ... this.
9073 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9074 i386-windows-tdep.c.
9075 * configure.tgt: Likewise.
9076
053205cc
SM
90772020-03-16 Simon Marchi <simon.marchi@efficios.com>
9078
9079 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9080 * osabi.c (gdb_osabi_names): Add "Windows".
9081 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9082 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9083 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9084 i386_cygwin_osabi_sniffer.
9085 (_initialize_i386_cygwin_tdep): Register OS ABI
9086 GDB_OSABI_WINDOWS for i386.
9087 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9088 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9089 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9090 for x86-64.
9091 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9092 when the target matches '*-*-mingw*'.
9093
fe4b2ee6
SM
90942020-03-16 Simon Marchi <simon.marchi@efficios.com>
9095
9096 * defs.h (enum gdb_osabi): Move to...
9097 * osabi.h (enum gdb_osabi): ... here.
9098 * gdbarch.sh: Include osabi.h in gdbarch.h.
9099 * gdbarch.h: Re-generate.
9100
cb9b645d
SM
91012020-03-16 Simon Marchi <simon.marchi@efficios.com>
9102
9103 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9104 function.
9105 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9106
3293bbaf
TT
91072020-03-14 Tom Tromey <tom@tromey.com>
9108
9109 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9110 for C++.
9111 (c_type_print_modifier): Likewise. Add "language" parameter.
9112 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9113 (c_type_print_base_1): Update.
9114 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9115 constants.
9116 * type-stack.c (type_stack::insert): Handle tp_atomic and
9117 tp_restrict.
9118 (type_stack::follow_type_instance_flags): Likewise.
9119 (type_stack::follow_types): Likewise. Merge type-following code.
9120 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9121 (space_identifier, cv_with_space_id)
9122 (const_or_volatile_or_space_identifier_noopt)
9123 (const_or_volatile_or_space_identifier): Remove.
9124 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9125 rules.
9126 (ptr_operator, typebase): Update.
9127 (enum token_flag) <FLAG_C>: New constant.
9128 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9129 "_Atomic".
9130 (lex_one_token): Handle FLAG_C.
9131
154151a6
KR
91322020-03-14 Kamil Rytarowski <n54@gmx.com>
9133
9134 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9135 it to the ptrace call.
9136 * m68k-bsd-nat.c (store_registers): Likewise.
9137
bc107784
KR
91382020-03-14 Kamil Rytarowski <n54@gmx.com>
9139
9140 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9141 gdb_byte *.
9142 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9143 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9144 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9145
01a80117
KR
91462020-03-14 Kamil Rytarowski <n54@gmx.com>
9147
9148 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9149 nbsd_nat_target instead of inf_ptrace_target.
9150 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9151 nbsd_nat_target.
9152
f90280ca
KR
91532020-03-14 Kamil Rytarowski <n54@gmx.com>
9154
9155 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9156 register_t.
9157
6def66f1
KR
91582020-03-14 Kamil Rytarowski <n54@gmx.com>
9159
9160 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9161 it to the ptrace call.
9162 * alpha-bsd-nat.c (store_registers): Likewise.
9163
66eaca97
KR
91642020-03-14 Kamil Rytarowski <n54@gmx.com>
9165
9166 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9167 includes.
9168 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9169 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9170 fill_fpregset): Likewise.
9171
4fed520b
KR
91722020-03-14 Kamil Rytarowski <n54@gmx.com>
9173
9174 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9175 nbsd_nat_target instead of inf_ptrace_target.
9176 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9177 nbsd_nat_target.
9178
2190cf06
KR
91792020-03-14 Kamil Rytarowski <n54@gmx.com>
9180
9181 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9182 register_t.
9183
75c56d3d
KR
91842020-03-14 Kamil Rytarowski <n54@gmx.com>
9185
9186 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9187 it to the ptrace call.
9188 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9189 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9190 * arm-nbsd-nat.c (store_register): Likewise.
9191 * arm-nbsd-nat.c (store_regs): Likewise.
9192 * arm-nbsd-nat.c (store_fp_register): Likewise.
9193 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9194
6018d381
KR
91952020-03-14 Kamil Rytarowski <n54@gmx.com>
9196
9197 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9198 nbsd_nat_target instead of inf_ptrace_target.
9199 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9200 nbsd_nat_target.
9201
013f99f0
KR
92022020-03-14 Kamil Rytarowski <n54@gmx.com>
9203
9204 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9205 it to the ptrace call.
9206 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9207
12753073
KR
92082020-03-14 Kamil Rytarowski <n54@gmx.com>
9209
6227b330
KR
9210 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9211 it to the ptrace call.
9212 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9213
92142020-03-14 Kamil Rytarowski <n54@gmx.com>
9215
9216 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9217 gdb_byte *.
12753073
KR
9218 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9219
d5be5fa4
KR
92202020-03-14 Kamil Rytarowski <n54@gmx.com>
9221
9222 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9223 instead of inf_ptrace_target.
9224 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9225 nbsd_nat_target.
9226
8110f842
KR
92272020-03-14 Kamil Rytarowski <n54@gmx.com>
9228
9229 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9230 register_t.
9231
52feded7
KR
92322020-03-14 Kamil Rytarowski <n54@gmx.com>
9233
9234 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9235 register_t.
9236
25567eee
KR
92372020-03-14 Kamil Rytarowski <n54@gmx.com>
9238
9239 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9240 register_t.
9241
426a9c18
TT
92422020-03-13 Tom Tromey <tom@tromey.com>
9243
9244 * value.h (val_print): Don't declare.
9245 * valprint.h (val_print_array_elements)
9246 (val_print_scalar_formatted, generic_val_print): Don't declare.
9247 * valprint.c (generic_val_print_array): Take a struct value.
9248 (generic_val_print_ptr, generic_val_print_memberptr)
9249 (generic_val_print_bool, generic_val_print_int)
9250 (generic_val_print_char, generic_val_print_complex)
9251 (generic_val_print): Remove.
9252 (generic_value_print): Update.
9253 (do_val_print): Remove unused parameters. Don't call
9254 la_val_print.
9255 (val_print): Remove.
9256 (common_val_print): Update. Don't call value_check_printable.
9257 (val_print_scalar_formatted, val_print_array_elements): Remove.
9258 * rust-lang.c (rust_val_print): Remove.
9259 (rust_language_defn): Update.
9260 * p-valprint.c (pascal_val_print): Remove.
9261 (pascal_value_print_inner): Update.
9262 (pascal_object_print_val_fields, pascal_object_print_val):
9263 Remove.
9264 (pascal_object_print_static_field): Update.
9265 * p-lang.h (pascal_val_print): Don't declare.
9266 * p-lang.c (pascal_language_defn): Update.
9267 * opencl-lang.c (opencl_language_defn): Update.
9268 * objc-lang.c (objc_language_defn): Update.
9269 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9270 * m2-lang.h (m2_val_print): Don't declare.
9271 * m2-lang.c (m2_language_defn): Update.
9272 * language.h (struct language_defn) <la_val_print>: Remove.
9273 * language.c (unk_lang_value_print_inner): Rename. Change
9274 argument types.
9275 (unknown_language_defn, auto_language_defn): Update.
9276 * go-valprint.c (go_val_print): Remove.
9277 * go-lang.h (go_val_print): Don't declare.
9278 * go-lang.c (go_language_defn): Update.
9279 * f-valprint.c (f_val_print): Remove.
9280 * f-lang.h (f_value_print): Don't declare.
9281 * f-lang.c (f_language_defn): Update.
9282 * d-valprint.c (d_val_print): Remove.
9283 * d-lang.h (d_value_print): Don't declare.
9284 * d-lang.c (d_language_defn): Update.
9285 * cp-valprint.c (cp_print_value_fields)
9286 (cp_print_value_fields_rtti, cp_print_value): Remove.
9287 (cp_print_static_field): Update.
9288 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9289 (c_val_print_struct, c_val_print_union, c_val_print_int)
9290 (c_val_print_memberptr, c_val_print): Remove.
9291 * c-lang.h (c_val_print_array, cp_print_value_fields)
9292 (cp_print_value_fields_rtti): Don't declare.
9293 * c-lang.c (c_language_defn, cplus_language_defn)
9294 (asm_language_defn, minimal_language_defn): Update.
9295 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9296 (ada_val_print_enum): Take a struct value.
9297 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9298 (ada_val_print): Remove.
9299 (ada_value_print_1): Update.
9300 (printable_val_type): Remove.
9301 * ada-lang.h (ada_val_print): Don't declare.
9302 * ada-lang.c (ada_language_defn): Update.
9303
42331a1e
TT
93042020-03-13 Tom Tromey <tom@tromey.com>
9305
9306 * valprint.c (do_val_print): Update.
9307 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9308 a struct value.
9309 (value_to_value_object_no_release): Declare.
9310 * python/py-value.c (value_to_value_object_no_release): New
9311 function.
9312 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9313 struct value.
9314 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9315 function.
9316 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9317 a struct value.
9318 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9319 Declare.
9320 (gdbscm_apply_val_pretty_printer): Take a struct value.
9321 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9322 value.
9323 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9324 value.
9325 * extension-priv.h (struct extension_language_ops)
9326 <apply_val_pretty_printer>: Take a struct value.
9327 * cp-valprint.c (cp_print_value): Create a struct value.
9328 (cp_print_value): Update.
9329
3a916a97
TT
93302020-03-13 Tom Tromey <tom@tromey.com>
9331
9332 * ada-valprint.c (print_field_values): Call common_val_print.
9333
b59eac37
TT
93342020-03-13 Tom Tromey <tom@tromey.com>
9335
9336 * ada-valprint.c (val_print_packed_array_elements): Remove
9337 bitoffset and val parameters. Call common_val_print.
9338 (ada_val_print_string): Remove offset, address, and original_value
9339 parameters.
9340 (ada_val_print_array): Update.
9341 (ada_value_print_array): New function.
9342 (ada_value_print_1): Call it.
9343
03371129
TT
93442020-03-13 Tom Tromey <tom@tromey.com>
9345
9346 * ada-valprint.c (ada_value_print): Use common_val_print.
9347
2e088f8b
TT
93482020-03-13 Tom Tromey <tom@tromey.com>
9349
9350 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9351
39ef85a8
TT
93522020-03-13 Tom Tromey <tom@tromey.com>
9353
9354 * ada-valprint.c (ada_value_print_num): New function.
9355 (ada_value_print_1): Use it.
9356
b9fa6e07
TT
93572020-03-13 Tom Tromey <tom@tromey.com>
9358
9359 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9360
416595d6
TT
93612020-03-13 Tom Tromey <tom@tromey.com>
9362
9363 * ada-valprint.c (ada_value_print_ptr): New function.
9364 (ada_value_print_1): Use it.
9365
5b5e15ec
TT
93662020-03-13 Tom Tromey <tom@tromey.com>
9367
9368 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9369 call common_val_print.
9370 (ada_val_print_1): Update.
9371 (ada_value_print_1): New function.
9372 (ada_value_print_inner): Rewrite.
9373
fbf54e75
TT
93742020-03-13 Tom Tromey <tom@tromey.com>
9375
9376 * cp-valprint.c (cp_print_value_fields): Update.
9377 (cp_print_value): New function.
9378
64b653ca
TT
93792020-03-13 Tom Tromey <tom@tromey.com>
9380
9381 * m2-valprint.c (m2_value_print_inner): Use
9382 cp_print_value_fields.
9383 * cp-valprint.c (cp_print_value_fields): New function.
9384 * c-valprint.c (c_value_print_struct): New function.
9385 (c_value_print_inner): Use c_value_print_struct.
9386 * c-lang.h (cp_print_value_fields): Declare.
9387
6999f067
TT
93882020-03-13 Tom Tromey <tom@tromey.com>
9389
9390 * c-valprint.c (c_value_print_array): New function.
9391 (c_value_print_inner): Use it.
9392
ce80b8bd
TT
93932020-03-13 Tom Tromey <tom@tromey.com>
9394
9395 * c-valprint.c (c_value_print_memberptr): New function.
9396 (c_value_print_inner): Use it.
9397
2faac269
TT
93982020-03-13 Tom Tromey <tom@tromey.com>
9399
9400 * c-valprint.c (c_value_print_int): New function.
9401 (c_value_print_inner): Use it.
9402
da3e2c29
TT
94032020-03-13 Tom Tromey <tom@tromey.com>
9404
9405 * c-valprint.c (c_value_print_ptr): New function.
9406 (c_value_print_inner): Use it.
9407
50836231
TT
94082020-03-13 Tom Tromey <tom@tromey.com>
9409
9410 * c-valprint.c (c_value_print_inner): Rewrite.
9411
4f412b6e
TT
94122020-03-13 Tom Tromey <tom@tromey.com>
9413
9414 * valprint.c (generic_value_print_complex): New function.
9415 (generic_value_print): Use it.
9416
f5354008
TT
94172020-03-13 Tom Tromey <tom@tromey.com>
9418
9419 * valprint.c (generic_val_print_float): Don't call
9420 val_print_scalar_formatted.
9421 (generic_val_print, generic_value_print): Update.
9422
3eec3b05
TT
94232020-03-13 Tom Tromey <tom@tromey.com>
9424
9425 * valprint.c (generic_value_print_char): New function
9426 (generic_value_print): Use it.
9427
fdddfccb
TT
94282020-03-13 Tom Tromey <tom@tromey.com>
9429
9430 * valprint.c (generic_value_print_int): New function.
9431 (generic_value_print): Use it.
9432
6dde7521
TT
94332020-03-13 Tom Tromey <tom@tromey.com>
9434
9435 * valprint.c (generic_value_print_bool): New function.
9436 (generic_value_print): Use it.
9437
4112d2e6
TT
94382020-03-13 Tom Tromey <tom@tromey.com>
9439
9440 * valprint.c (generic_val_print_func): Simplify.
9441 (generic_val_print, generic_value_print): Update.
9442
65786af6
TT
94432020-03-13 Tom Tromey <tom@tromey.com>
9444
9445 * valprint.c (generic_val_print_flags): Remove.
9446 (generic_val_print, generic_value_print): Update.
9447 (val_print_type_code_flags): Add original_value parameter.
9448
40f3ce18
TT
94492020-03-13 Tom Tromey <tom@tromey.com>
9450
9451 * valprint.c (generic_val_print): Update.
9452 (generic_value_print): Update.
9453 * valprint.c (generic_val_print_enum): Don't call
9454 val_print_scalar_formatted.
9455
2a5b130b
TT
94562020-03-13 Tom Tromey <tom@tromey.com>
9457
9458 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9459 * valprint.c (generic_value_print_ptr): New function.
9460
abc66ce9
TT
94612020-03-13 Tom Tromey <tom@tromey.com>
9462
9463 * valprint.c (generic_value_print): Rewrite.
9464
07a32858
TT
94652020-03-13 Tom Tromey <tom@tromey.com>
9466
9467 * p-valprint.c (pascal_object_print_value_fields)
9468 (pascal_object_print_value): New functions.
9469
64d64d3a
TT
94702020-03-13 Tom Tromey <tom@tromey.com>
9471
9472 * p-valprint.c (pascal_value_print_inner): Rewrite.
9473
6a95a1f5
TT
94742020-03-13 Tom Tromey <tom@tromey.com>
9475
9476 * f-valprint.c (f_value_print_innner): Rewrite.
9477
59fcdac6
TT
94782020-03-13 Tom Tromey <tom@tromey.com>
9479
9480 * m2-valprint.c (m2_print_unbounded_array): New overload.
9481 (m2_print_unbounded_array): Update.
9482 (m2_print_array_contents): Take a struct value.
9483 (m2_value_print_inner): Rewrite.
9484
d133c3e1
TT
94852020-03-13 Tom Tromey <tom@tromey.com>
9486
9487 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9488 (d_value_print_inner): New function.
9489 * d-lang.h (d_value_print_inner): Declare.
9490 * d-lang.c (d_language_defn): Use d_value_print_inner.
9491
23b0f06b
TT
94922020-03-13 Tom Tromey <tom@tromey.com>
9493
9494 * go-valprint.c (go_value_print_inner): New function.
9495 * go-lang.h (go_value_print_inner): Declare.
9496 * go-lang.c (go_language_defn): Use go_value_print_inner.
9497
5f56f7cb
TT
94982020-03-13 Tom Tromey <tom@tromey.com>
9499
9500 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9501 API.
9502 (rust_val_print): Rewrite.
9503 (rust_value_print_inner): New function, from rust_val_print.
9504 (rust_language_defn): Use rust_value_print_inner.
9505
26792ee0
TT
95062020-03-13 Tom Tromey <tom@tromey.com>
9507
9508 * ada-valprint.c (ada_value_print_inner): New function.
9509 * ada-lang.h (ada_value_print_inner): Declare.
9510 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9511
24051bbe
TT
95122020-03-13 Tom Tromey <tom@tromey.com>
9513
9514 * f-valprint.c (f_value_print_innner): New function.
9515 * f-lang.h (f_value_print_innner): Declare.
9516 * f-lang.c (f_language_defn): Use f_value_print_innner.
9517
c0941be6
TT
95182020-03-13 Tom Tromey <tom@tromey.com>
9519
9520 * p-valprint.c (pascal_value_print_inner): New function.
9521 * p-lang.h (pascal_value_print_inner): Declare.
9522 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9523
62c4663d
TT
95242020-03-13 Tom Tromey <tom@tromey.com>
9525
9526 * m2-valprint.c (m2_value_print_inner): New function.
9527 * m2-lang.h (m2_value_print_inner): Declare.
9528 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9529
62182190
TT
95302020-03-13 Tom Tromey <tom@tromey.com>
9531
9532 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9533 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9534 * c-valprint.c (c_value_print_inner): New function.
9535 * c-lang.h (c_value_print_inner): Declare.
9536 * c-lang.c (c_language_defn, cplus_language_defn)
9537 (asm_language_defn, minimal_language_defn): Use
9538 c_value_print_inner.
9539
1e592a8a
TT
95402020-03-13 Tom Tromey <tom@tromey.com>
9541
9542 * p-valprint.c (pascal_object_print_value_fields): Now static.
9543 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9544
7fe471e9
TT
95452020-03-13 Tom Tromey <tom@tromey.com>
9546
9547 * c-valprint.c (c_val_print_array): Simplify.
9548
d121c6ce
TT
95492020-03-13 Tom Tromey <tom@tromey.com>
9550
9551 * valprint.c (value_print_array_elements): New function.
9552 * valprint.h (value_print_array_elements): Declare.
9553
4dba70ee
TT
95542020-03-13 Tom Tromey <tom@tromey.com>
9555
9556 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9557 * mips-tdep.c (mips_print_register): Use
9558 value_print_scalar_formatted.
9559
4f9ae810
TT
95602020-03-13 Tom Tromey <tom@tromey.com>
9561
9562 * valprint.h (value_print_scalar_formatted): Declare.
9563 * valprint.c (value_print_scalar_formatted): New function.
9564
156bfec9
TT
95652020-03-13 Tom Tromey <tom@tromey.com>
9566
9567 * valprint.h (generic_value_print): Declare.
9568 * valprint.c (generic_value_print): New function.
9569
2b4e573d
TT
95702020-03-13 Tom Tromey <tom@tromey.com>
9571
9572 * valprint.c (do_val_print): Call la_value_print_inner, if
9573 available.
9574 * rust-lang.c (rust_language_defn): Update.
9575 * p-lang.c (pascal_language_defn): Update.
9576 * opencl-lang.c (opencl_language_defn): Update.
9577 * objc-lang.c (objc_language_defn): Update.
9578 * m2-lang.c (m2_language_defn): Update.
9579 * language.h (struct language_defn) <la_value_print_inner>: New
9580 member.
9581 * language.c (unknown_language_defn, auto_language_defn): Update.
9582 * go-lang.c (go_language_defn): Update.
9583 * f-lang.c (f_language_defn): Update.
9584 * d-lang.c (d_language_defn): Update.
9585 * c-lang.c (c_language_defn, cplus_language_defn)
9586 (asm_language_defn, minimal_language_defn): Update.
9587 * ada-lang.c (ada_language_defn): Update.
9588
a1f6a07c
TT
95892020-03-13 Tom Tromey <tom@tromey.com>
9590
9591 * c-valprint.c (c_value_print): Use common_val_print.
9592
410cf315
TT
95932020-03-13 Tom Tromey <tom@tromey.com>
9594
9595 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9596
72a45c93
TT
95972020-03-13 Tom Tromey <tom@tromey.com>
9598
9599 * f-valprint.c (f77_print_array_1, f_val_print): Use
9600 common_val_print.
9601
040f66bd
TT
96022020-03-13 Tom Tromey <tom@tromey.com>
9603
9604 * riscv-tdep.c (riscv_print_one_register_info): Use
9605 common_val_print.
9606
a6e05a6c
TT
96072020-03-13 Tom Tromey <tom@tromey.com>
9608
9609 * mi/mi-main.c (output_register): Use common_val_print.
9610
3444c526
TT
96112020-03-13 Tom Tromey <tom@tromey.com>
9612
9613 * infcmd.c (default_print_one_register_info): Use
9614 common_val_print.
9615
c2a44efe
TT
96162020-03-13 Tom Tromey <tom@tromey.com>
9617
9618 * valprint.h (common_val_print_checked): Declare.
9619 * valprint.c (common_val_print_checked): New function.
9620 * stack.c (print_frame_arg): Use common_val_print_checked.
9621
b0c26e99
TT
96222020-03-13 Tom Tromey <tom@tromey.com>
9623
9624 * valprint.c (do_val_print): New function, from val_print.
9625 (val_print): Use do_val_print.
9626 (common_val_print): Use do_val_print.
9627
ce3acbe9
TT
96282020-03-13 Tom Tromey <tom@tromey.com>
9629
9630 * valprint.c (value_print): Use scoped_value_mark.
9631
96c7f873
TV
96322020-03-13 Tom de Vries <tdevries@suse.de>
9633
9634 PR symtab/25646
9635 * psymtab.c (partial_symtab::partial_symtab): Don't set
9636 globals_offset and statics_offset. Push element onto
9637 current_global_psymbols and current_static_psymbols stacks.
9638 (concat): New function.
9639 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9640 element from current_global_psymbols and current_static_psymbols
9641 stacks. Concat popped elements to global_psymbols and
9642 static_symbols.
9643 (add_psymbol_to_list): Use current_global_psymbols and
9644 current_static_psymbols stacks.
9645 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9646 current_static_psymbols fields.
9647
6ba0a321
CB
96482020-03-12 Christian Biesinger <cbiesinger@google.com>
9649
9650 * corelow.c (sniff_core_bfd): Remove.
9651 (class core_target) <m_core_vec>: Remove.
9652 (core_target::core_target): Update.
9653 (core_file_fns): Remove.
9654 (deprecated_add_core_fns): Remove.
9655 (default_core_sniffer): Remove.
9656 (sniff_core_bfd): Remove.
9657 (default_check_format): Remove.
9658 (gdb_check_format): Remove.
9659 (core_target_open): Update.
9660 (core_target::get_core_register_section): Update.
9661 (get_core_registers_cb): Update.
9662 (core_target::fetch_registers): Update.
9663 * gdbcore.h (struct core_fns): Remove.
9664 (deprecated_add_core_fns): Remove.
9665 (default_core_sniffer): Remove.
9666 (default_check_format): Remove.
9667
227031b2
TT
96682020-03-12 Tom Tromey <tom@tromey.com>
9669
9670 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9671 CORE_ADDR.
9672 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9673
53807e9f
TT
96742020-03-12 Tom Tromey <tom@tromey.com>
9675
9676 * remote.c (remote_target::download_tracepoint)
9677 (remote_target::enable_tracepoint)
9678 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9679 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9680 sprintf_vma.
9681
64f25102
TT
96822020-03-12 Tom Tromey <tom@tromey.com>
9683
9684 * symfile-mem.c: Update CORE_ADDR size assert.
9685
272cd5a3
SM
96862020-03-12 Simon Marchi <simon.marchi@efficios.com>
9687
9688 * selftest.m4: Move to gdbsupport/.
9689 * acinclude.m4: Update path to selftest.m4.
9690
74cd3f9d
SM
96912020-03-12 Simon Marchi <simon.marchi@efficios.com>
9692
9693 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9694 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9695 gdbarch-selfselftests.c and selftest-arch.c.
9696 (SUBDIR_UNITTESTS_OBS): Rename to...
9697 (SELFTESTS_OBS): ... this.
9698 (COMMON_SFILES): Remove disasm-selftests.c and
9699 gdbarch-selftests.c.
9700 * configure.ac: Don't add selftest-arch.{c,o} to
9701 CONFIG_{SRCS,OBS}.
9702 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9703 preprocessor conditions.
9704
db6878ac
SM
97052020-03-12 Simon Marchi <simon.marchi@efficios.com>
9706
9707 * configure.ac: Don't source bfd/development.sh.
9708 * selftest.m4: Modify comment.
9709 * configure: Re-generate.
9710
4d696a5c
SM
97112020-03-12 Simon Marchi <simon.marchi@efficios.com>
9712
9713 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9714 not "true" or "false".
9715 * configure: Re-generate.
9716
8dd8e1c7
CB
97172020-03-12 Christian Biesinger <cbiesinger@google.com>
9718
9719 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9720 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9721 renamed to arm_nbsd_supply_gregset.
9722 (fetch_register): Update to call arm_nbsd_supply_gregset.
9723 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9724 (arm_netbsd_nat_target::fetch_registers): Update.
9725 (fetch_elfcore_registers): Removed.
9726 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9727 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9728 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9729 not require NetBSD system headers.
9730 (arm_nbsd_regset): New struct.
9731 (arm_nbsd_iterate_over_regset_sections): New function.
9732 (arm_netbsd_init_abi_common): Updated to call
9733 set_gdbarch_iterate_over_regset_sections.
9734 * arm-nbsd-tdep.h: New file.
9735
dd69bf7a
KB
97362020-03-11 Kevin Buettner <kevinb@redhat.com>
9737
9738 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9739 recursion.
9740
a0761e34
SM
97412020-03-11 Simon Marchi <simon.marchi@efficios.com>
9742
9743 * configure: Re-generate.
9744
e7a82140
TT
97452020-03-11 Tom Tromey <tromey@adacore.com>
9746
9747 * ada-typeprint.c (print_choices): Fix comment.
9748
dcc050c8
AB
97492020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9750
9751 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9752 previous item in the list, when the list has no items.
9753
1c33af77
TV
97542020-03-11 Tom de Vries <tdevries@suse.de>
9755
9756 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9757 PROP_LOCLIST handling code.
9758
8c95582d
AB
97592020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9760
9761 * buildsym-legacy.c (record_line): Pass extra parameter to
9762 record_line.
9763 * buildsym.c (buildsym_compunit::record_line): Take an extra
9764 parameter, reduce duplication in the line table, and record the
9765 is_stmt flag in the line table.
9766 * buildsym.h (buildsym_compunit::record_line): Add extra
9767 parameter.
9768 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9769 non-statement lines.
9770 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9771 this to the symtab builder.
9772 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9773 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9774 through to dwarf_record_line_1.
9775 * infrun.c (process_event_stop_test): When stepping, don't stop at
9776 a non-statement instruction, and only refresh the step info when
9777 we land in the middle of a line's range. Also add an extra
9778 comment.
9779 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9780 field.
9781 * record-btrace.c (btrace_find_line_range): Only record lines
9782 marked as is-statement.
9783 * stack.c (frame_show_address): Show the frame address if we are
9784 in a non-statement sal.
9785 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9786 (maintenance_print_one_line_table): Print a header for the is_stmt
9787 column, and include is_stmt information in the output.
9788 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9789 preference to non-statements.
9790 (find_pcs_for_symtab_line): Prefer is-statement entries.
9791 (find_line_common): Likewise.
9792 * symtab.h (struct linetable_entry): Add is_stmt field.
9793 (struct symtab_and_line): Likewise.
9794 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9795 arranging the line table.
9796
e4003a34
TV
97972020-03-07 Tom de Vries <tdevries@suse.de>
9798
9799 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9800 DIE.
9801
e8932576
TT
98022020-03-07 Tom Tromey <tom@tromey.com>
9803
9804 * valops.c (value_literal_complex): Remove obsolete comment.
9805 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9806 comment.
9807
29734269
SM
98082020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9809
9810 * infrun.h: Forward-declare thread_info.
9811 (set_step_info): Add thread_info parameter, add doc.
9812 * infrun.c (set_step_info): Add thread_info parameter, move doc
9813 to header.
9814 * infrun.c (process_event_stop_test): Pass thread to
9815 set_step_info call.
9816 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9817 set_step_info.
9818 (prepare_one_step): Add thread_info parameter, pass it to
9819 set_step_frame and prepare_one_step (recursive) call.
9820 (step_1): Pass thread to prepare_one_step call.
9821 (step_command_fsm::should_stop): Pass thread to
9822 prepare_one_step.
9823 (until_next_fsm): Pass thread to set_step_frame call.
9824 (finish_command): Pass thread to set_step_info call.
9825
b7d64b29
HD
98262020-03-06 Hannes Domani <ssbssa@yahoo.de>
9827
9828 * windows-tdep.c (windows_solib_create_inferior_hook):
9829 Check if inferior is running.
9830
09f2921c
TV
98312020-03-06 Tom de Vries <tdevries@suse.de>
9832
9833 * NEWS: Fix "the the".
9834 * ctfread.c: Same.
9835
fd760e79
TV
98362020-03-06 Tom de Vries <tdevries@suse.de>
9837
9838 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9839
20ea4a60
AB
98402020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9841
9842 * .dir-locals.el: Add a comment referencing the other copies of
9843 this file.
9844
0afbabf0
JB
98452020-03-05 John Baldwin <jhb@FreeBSD.org>
9846
9847 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9848 psargs.
9849
842806cb
TBA
98502020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9851
9852 * .gitattributes: New file.
9853
be1e3d3e
TT
98542020-03-04 Tom Tromey <tom@tromey.com>
9855
9856 * symmisc.c (print_symbol_bcache_statistics)
9857 (print_objfile_statistics): Update.
9858 * symfile.c (allocate_symtab): Use intern.
9859 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9860 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9861 macro_cache>: Remove.
9862 <string_cache>: New member.
9863 (struct objfile) <intern>: New methods.
9864 * elfread.c (elf_symtab_read): Use intern.
9865 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9866 (dwarf2_compute_name, dwarf2_physname)
9867 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9868 names.
9869 (guess_partial_die_structure_name): Update.
9870 (partial_die_info::fixup): Intern name.
9871 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9872 name.
9873 (dwarf2_name): Intern name. Update.
9874 * buildsym.c (buildsym_compunit::get_macro_table): Use
9875 string_cache.
9876
4e7625fd
TT
98772020-03-04 Tom Tromey <tom@tromey.com>
9878
9879 * jit.c (bfd_open_from_target_memory): Make "target" const.
9880 * corefile.c (gnutarget): Now const.
9881 * gdbcore.h (gnutarget): Now const.
9882
46f9f931
HD
98832020-03-04 Hannes Domani <ssbssa@yahoo.de>
9884
9885 * NEWS: Mention support for WOW64 processes.
9886 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9887 (amd64_windows_segment_register_p): Remove static.
9888 (_initialize_amd64_windows_nat): Update.
9889 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9890 * i386-windows-nat.c (context_offset): Update.
9891 (i386_mappings): Rename and remove static.
9892 (i386_windows_segment_register_p): Remove static.
9893 (_initialize_i386_windows_nat): Update.
9894 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9895 (STATUS_WX86_SINGLE_STEP): New macro.
9896 (EnumProcessModulesEx): New macro.
9897 (Wow64SuspendThread): New macro.
9898 (Wow64GetThreadContext): New macro.
9899 (Wow64SetThreadContext): New macro.
9900 (Wow64GetThreadSelectorEntry): New macro.
9901 (windows_set_context_register_offsets): Add static.
9902 (windows_set_segment_register_p): Likewise.
9903 (windows_add_thread): Adapt for WOW64 processes.
9904 (windows_fetch_one_register): Likewise.
9905 (windows_nat_target::fetch_registers): Likewise.
9906 (windows_store_one_register): Likewise.
9907 (display_selector): Likewise.
9908 (display_selectors): Likewise.
9909 (handle_exception): Likewise.
9910 (windows_continue): Likewise.
9911 (windows_nat_target::resume): Likewise.
9912 (windows_add_all_dlls): Likewise.
9913 (do_initial_windows_stuff): Likewise.
9914 (windows_nat_target::attach): Likewise.
9915 (windows_get_exec_module_filename): Likewise.
9916 (windows_nat_target::create_inferior): Likewise.
9917 (windows_xfer_siginfo): Likewise.
9918 (_initialize_loadable): Initialize Wow64SuspendThread,
9919 Wow64GetThreadContext, Wow64SetThreadContext,
9920 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9921 * windows-nat.h (windows_set_context_register_offsets):
9922 Remove declaration.
9923 (windows_set_segment_register_p): Likewise.
9924 (i386_windows_segment_register_p): Add declaration.
9925 (amd64_windows_segment_register_p): Likewise.
9926
440cf44e
LM
99272020-03-04 Luis Machado <luis.machado@linaro.org>
9928
9929 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9930 in "info registers" for AArch64/ARM.
9931
9932 The change caused "info registers" to not print GPR's.
9933
9934 gdb/ChangeLog:
9935
9936 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9937
9938 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9939 when reg->group is empty and reggroup is not.
9940
1009d92f
TT
99412020-03-03 Tom Tromey <tromey@adacore.com>
9942
9943 * dwarf2/frame.c (struct dwarf2_frame_cache)
9944 <checked_tailcall_bottom, entry_cfa_sp_offset,
9945 entry_cfa_sp_offset_p>: Remove members.
9946 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9947 (dwarf2_frame_prev_register): Don't call
9948 dwarf2_tailcall_sniffer_first.
9949 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9950 * frame-unwind.c (add_unwinder): New fuction.
9951 (frame_unwind_init): Use it. Add tailcall unwinder.
9952
5e5d66b6
AB
99532020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9954 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9955
9956 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9957 value should be printed as true.
9958
584cf46d
HD
99592020-03-03 Hannes Domani <ssbssa@yahoo.de>
9960
9961 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9962 (windows_init_abi): Set and use windows_so_ops.
9963
7b973adc
SDJ
99642020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9965
9966 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9967 when verifying if dealing with a convenience variable.
9968
bb7b70ab
LM
99692020-03-03 Luis Machado <luis.machado@linaro.org>
9970
9971 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9972
9822cb57
SM
99732020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9974
9975 * infrun.c (gdbarch_supports_displaced_stepping): New.
9976 (use_displaced_stepping): Break up conditions in smaller pieces.
9977 Use gdbarch_supports_displaced_stepping.
9978 (displaced_step_prepare_throw): Use
9979 gdbarch_supports_displaced_stepping.
9980
63e163f2
AB
99812020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9982
9983 * NEWS: Mention new behaviour of the history filename.
9984 * top.c (write_history_p): Add comment.
9985 (show_write_history_p): Add header comment, give a different
9986 message when history writing is on, but the history filename is
9987 empty.
9988 (history_filename): Add comment.
9989 (history_filename_empty): New function.
9990 (show_history_filename): Add header comment, give a different
9991 message when the filename is empty.
9992 (init_history): Compare history_filename against nullptr, and only
9993 read history if the filename is not empty.
9994 (set_history_filename): Add header comment, and only make
9995 non-empty filenames absolute.
9996 (init_main): Make the filename argument to 'set history filename'
9997 optional.
9998
81b86b97
CB
99992020-03-02 Christian Biesinger <cbiesinger@google.com>
10000
10001 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10002 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10003 (fetch_fp_register): Update.
10004 (fetch_fp_regs): Update.
10005 (store_fp_register): Update.
10006 (store_fp_regs): Update.
10007 (arm_netbsd_nat_target::read_description): New function.
10008 (fetch_elfcore_registers): Update.
10009
24ed6739
AB
100102020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10011
10012 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10013 general_thread if the stop reply is missing a thread-id.
10014 (remote_target::process_stop_reply): Use the first non-exited
10015 thread if the target didn't pass a thread-id.
10016 * infrun.c (do_target_wait): Move call to
10017 switch_to_inferior_no_thread to ....
10018 (do_target_wait_1): ... here.
10019
a84bb2a0
JT
100202020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10021
10022 * debuginfod-support.c: Include defs.h first.
10023
658dadf0
TV
100242020-02-28 Tom de Vries <tdevries@suse.de>
10025
10026 * symfile.c (set_initial_language): Use default language for lookup.
10027
4ebe4877
SM
100282020-02-28 Simon Marchi <simon.marchi@efficios.com>
10029
10030 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10031 reader variable, pass `this` to read_cutu_die_from_dwo.
10032
e5da1139
AM
100332020-02-27 Aaron Merey <amerey@redhat.com>
10034
10035 * source.c (open_source_file): Check for nullptr when computing
10036 srcpath.
10037
317f7127
TT
100382020-02-27 Tom Tromey <tromey@adacore.com>
10039
10040 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10041 member.
10042 (dwarf2_add_field): Don't update nfields.
10043 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10044
3104d9ee
AB
100452020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10046
10047 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10048 abs.
10049
b83470bf
TT
100502020-02-26 Tom Tromey <tom@tromey.com>
10051
10052 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10053 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10054 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10055 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10056 per_cu_data.
10057
edfe0a0c
TT
100582020-02-26 Tom Tromey <tom@tromey.com>
10059
10060 * dwarf2/index-write.c (psym_index_map): Change type.
10061 (add_address_entry_worker, write_one_signatured_type)
10062 (recursively_count_psymbols, recursively_write_psymbols)
10063 (class debug_names, psyms_seen_size, write_gdbindex)
10064 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10065
0d79cdc4
AM
100662020-02-26 Aaron Merey <amerey@redhat.com>
10067
10068 * Makefile.in: Handle optional debuginfod support.
10069 * NEWS: Update.
10070 * README: Add --with-debuginfod summary.
10071 * config.in: Regenerate.
10072 * configure: Regenerate.
10073 * configure.ac: Handle optional debuginfod support.
10074 * debuginfod-support.c: debuginfod helper functions.
10075 * debuginfod-support.h: Ditto.
10076 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10077 summary.
10078 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10079 when a dwz file cannot be found.
10080 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10081 debuginfo file cannot be found.
10082 * source.c (open_source_file): Query debuginfod servers when a
10083 source file cannot be found.
10084 * top.c (print_gdb_configuration): Include
10085 --{with,without}-debuginfod in the output.
10086
b65ce565
JG
100872020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10088
10089 * thread.c (thr_try_catch_cmd): Print thread name.
10090
d4c9a4f8
SM
100912020-02-26 Simon Marchi <simon.marchi@efficios.com>
10092
10093 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10094 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10095 dwarf2_fetch_die_type_sect_off): Move to...
10096 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10097 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10098 dwarf2_fetch_die_type_sect_off): ... here.
10099 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10100 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10101 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10102
0dce4280
TV
101032020-02-26 Tom de Vries <tdevries@suse.de>
10104
10105 PR gdb/25603
10106 * symfile.c (set_initial_language): Exit-early if
10107 language_mode == language_mode_manual.
10108
450a1bfc
SM
101092020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10110
10111 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10112 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10113 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10114
9e80cfa1
AB
101152020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10116
10117 * gdbtypes.c (create_array_type_with_stride): Handle negative
10118 array strides.
10119 * valarith.c (value_subscripted_rvalue): Likewise.
10120
09624f1f
LM
101212020-02-25 Luis Machado <luis.machado@linaro.org>
10122
10123 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10124
8cb5117c
SM
101252020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10126
10127 * loc.h (dwarf2_get_die_type): Move to...
10128 * read.h (dwarf2_get_die_type): ... here.
10129 * read.c (dwarf2_get_die_type): Move doc to header.
10130
c325c44e
JB
101312020-02-25 Joel Brobecker <brobecker@adacore.com>
10132
10133 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10134 'gnulib/Makefile.in' to the list.
10135
4ac93832
TT
101362020-02-24 Tom Tromey <tom@tromey.com>
10137
10138 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10139 Remove.
10140 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10141 XOBNEWVEC.
10142
197400e8
TT
101432020-02-24 Tom Tromey <tom@tromey.com>
10144
10145 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10146 New method.
10147 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10148 (dw2_do_instantiate_symtab, dw2_get_file_names)
10149 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10150
76935768
TT
101512020-02-24 Tom Tromey <tom@tromey.com>
10152
10153 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10154 make_scoped_restore.
10155 (dwarf2_psymtab::read_symtab): Don't clear
10156 reading_partial_symbols.
10157
a88ef40d
TV
101582020-02-24 Tom de Vries <tdevries@suse.de>
10159
10160 PR gdb/25592
10161 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10162
c9af6521
TV
101632020-02-24 Tom de Vries <tdevries@suse.de>
10164
10165 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10166 commands layout next/prev/regs.
10167
5707a07a
TT
101682020-02-22 Tom Tromey <tom@tromey.com>
10169
10170 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10171 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10172
3b0fb49e
TT
101732020-02-22 Tom Tromey <tom@tromey.com>
10174
10175 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10176
283be8bf
TT
101772020-02-22 Tom Tromey <tom@tromey.com>
10178
10179 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10180 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10181 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10182 * tui/tui.c (_initialize_tui): Add usage text.
10183
ca793b96
TT
101842020-02-22 Tom Tromey <tom@tromey.com>
10185
10186 * tui/tui-win.c (tui_set_focus_command)
10187 (tui_set_win_height_command): Use error_no_arg.
10188 (_initialize_tui_win): Update help text.
10189 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10190
432b5c40
TT
101912020-02-22 Tom Tromey <tom@tromey.com>
10192
10193 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10194 * tui/tui-disasm.h (struct tui_disasm_window)
10195 <display_start_addr>: Declare.
10196 * tui/tui-source.h (struct tui_source_window)
10197 <display_start_addr>: Declare.
10198 * tui/tui-winsource.h (struct tui_source_window_base)
10199 <show_source_line, display_start_addr>: New methods.
10200 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10201 Rename and move to protected section.
10202 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10203 (tui_source_window_base::do_erase_source_content): Update.
10204 (tui_source_window_base::show_source_line): Now a method.
10205 (tui_source_window_base::show_source_content)
10206 (tui_source_window_base::tui_source_window_base)
10207 (tui_source_window_base::rerender)
10208 (tui_source_window_base::refill)
10209 (tui_source_window_base::do_scroll_horizontal)
10210 (tui_source_window_base::set_is_exec_point_at)
10211 (tui_source_window_base::update_breakpoint_info)
10212 (tui_source_window_base::update_exec_info): Update.
10213 * tui/tui-source.c (tui_source_window::set_contents)
10214 (tui_source_window::showing_source_p)
10215 (tui_source_window::do_scroll_vertical)
10216 (tui_source_window::location_matches_p)
10217 (tui_source_window::line_is_displayed): Update.
10218 (tui_source_window::display_start_addr): New method.
10219 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10220 (tui_disasm_window::do_scroll_vertical)
10221 (tui_disasm_window::location_matches_p): Update.
10222 (tui_disasm_window::display_start_addr): New method.
10223
01b1af32
TT
102242020-02-22 Tom Tromey <tom@tromey.com>
10225
10226 * NEWS: Add entry for gdb.register_window_type.
10227 * tui/tui-layout.h (window_factory): New typedef.
10228 (tui_register_window): Declare.
10229 * tui/tui-layout.c (saved_tui_windows): New global.
10230 (tui_apply_current_layout): Use it.
10231 (tui_register_window): New function.
10232 * python/python.c (do_start_initialization): Call
10233 gdbpy_initialize_tui.
10234 (python_GdbMethods): Add "register_window_type" function.
10235 * python/python-internal.h (gdbpy_register_tui_window)
10236 (gdbpy_initialize_tui): Declare.
10237 * python/py-tui.c: New file.
10238 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10239
fc96d20b
TT
102402020-02-22 Tom Tromey <tom@tromey.com>
10241
10242 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10243
935c78c0
TT
102442020-02-22 Tom Tromey <tom@tromey.com>
10245
10246 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10247 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10248 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10249 (tui_set_win_focus_to): Move from tui-win.c.
10250
0240c8f1
TT
102512020-02-22 Tom Tromey <tom@tromey.com>
10252
10253 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10254 functions.
10255 (known_window_types): New global.
10256 (tui_get_window_by_name): Reimplement.
10257 (initialize_known_windows): New function.
10258 (validate_window_name): Rewrite.
10259 (_initialize_tui_layout): Call initialize_known_windows.
10260
fdb01f0c
TT
102612020-02-22 Tom Tromey <tom@tromey.com>
10262
10263 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10264 Remove constants.
10265 * tui/tui-winsource.h (struct tui_source_window_base)
10266 <tui_source_window_base>: Remove parameter.
10267 * tui/tui-winsource.c
10268 (tui_source_window_base::tui_source_window_base): Remove
10269 parameter.
10270 (tui_source_window_base::refill): Update.
10271 * tui/tui-stack.h (struct tui_locator_window)
10272 <tui_locator_window>: Update.
10273 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10274 Default the constructor.
10275 * tui/tui-regs.h (struct tui_data_item_window)
10276 <tui_data_item_window>: Default the constructor.
10277 (struct tui_data_window) <tui_data_window>: Likewise.
10278 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10279 Default the constructor.
10280 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10281 Default the constructor.
10282 <type>: Remove.
10283 (struct tui_win_info) <tui_win_info>: Default the constructor.
10284 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10285 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10286 Default the constructor.
10287
865a5aec
TT
102882020-02-22 Tom Tromey <tom@tromey.com>
10289
10290 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10291 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10292 * tui/tui-win.c (tui_resize_all): Don't call
10293 tui_delete_invisible_windows.
10294 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10295 done.
10296 (tui_set_layout): Update.
10297 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10298 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10299 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10300
e098d18c
TT
103012020-02-22 Tom Tromey <tom@tromey.com>
10302
10303 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10304 correctly.
10305
eb9c8874
TT
103062020-02-22 Tom Tromey <tom@tromey.com>
10307
10308 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10309
7eed1a8e
TT
103102020-02-22 Tom Tromey <tom@tromey.com>
10311
10312 * tui/tui-winsource.h (struct tui_source_window_iterator)
10313 <inner_iterator>: New etytypedef.
10314 <tui_source_window_iterator>: Take "end" parameter.
10315 <tui_source_window_iterator>: Take iterator.
10316 <operator*, advance>: Update.
10317 <m_iter>: Change type.
10318 <m_end>: New field.
10319 (struct tui_source_windows) <begin, end>: Update.
10320 * tui/tui-layout.c (tui_windows): New global.
10321 (tui_apply_current_layout): Clear tui_windows.
10322 (tui_layout_window::apply): Update tui_windows.
10323 * tui/tui-data.h (tui_windows): Declare.
10324 (all_tui_windows): Now inline function.
10325 (class tui_window_iterator, struct all_tui_windows): Remove.
10326
7c043ba6
TT
103272020-02-22 Tom Tromey <tom@tromey.com>
10328
10329 PR tui/17850:
10330 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10331 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10332 "height" argument.
10333 (class tui_layout_window) <get_sizes>: Likewise.
10334 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10335 argument.
10336 <get_sizes>: Add "height" argument.
10337 <m_vertical>: New field.
10338 * tui/tui-layout.c (tui_layout_split::clone): Update.
10339 (tui_layout_split::get_sizes): Add "height" argument.
10340 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10341 (tui_new_layout_command): Parse "-horizontal".
10342 (_initialize_tui_layout): Update help string.
10343 (tui_layout_split::specification): Add "-horizontal" when needed.
10344 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10345 argument.
10346 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10347 New methods.
10348
6bc56648
TT
103492020-02-22 Tom Tromey <tom@tromey.com>
10350
10351 * tui/tui-layout.h (enum tui_adjust_result): New.
10352 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10353 (class tui_layout_window) <adjust_size>: Return
10354 tui_adjust_result. Rewrite.
10355 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10356 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10357
c22fef7e
TT
103582020-02-22 Tom Tromey <tom@tromey.com>
10359
10360 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10361 parameter and return types.
10362 (class tui_layout_base) <specification>: Add "depth".
10363 (class tui_layout_window) <specification>: Add "depth".
10364 (class tui_layout_split) <specification>: Add "depth".
10365 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10366 and return types.
10367 (tui_new_layout_command): Parse sub-layouts.
10368 (_initialize_tui_layout): Update help string.
10369 (tui_layout_window::specification): Add "depth".
10370 (add_layout_command): Update.
10371
ee325b61
TT
103722020-02-22 Tom Tromey <tom@tromey.com>
10373
10374 * NEWS: Add "tui new-layout" item.
10375 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10376 Add new-layout command to help text.
10377 (validate_window_name): New function.
10378 (tui_new_layout_command): New function.
10379 (_initialize_tui_layout): Register "new-layout".
10380 (tui_layout_window::specification): New method.
10381 (tui_layout_window::specification): New method.
10382 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10383 method.
10384 (class tui_layout_window) <specification>: New method.
10385 (class tui_layout_split) <specification>: New method.
10386
416eb92d
TT
103872020-02-22 Tom Tromey <tom@tromey.com>
10388
10389 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10390 * tui/tui-win.c (window_name_completer): Update comment.
10391 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10392 Declare method.
10393 (class tui_layout_window) <replace_window>: Likewise.
10394 (class tui_layout_split) <replace_window>: Likewise.
10395 (tui_set_layout): Don't declare.
10396 (tui_set_initial_layout): Declare function.
10397 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10398 (asm_regs_layout): New globals.
10399 (tui_current_layout, show_layout): Remove.
10400 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10401 (find_layout, tui_apply_layout): New function.
10402 (layout_completer): Remove.
10403 (tui_next_layout): Reimplement.
10404 (tui_next_layout_command): New function.
10405 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10406 (tui_regs_layout): Reimplement.
10407 (tui_regs_layout_command): New function.
10408 (extract_display_start_addr): Rewrite.
10409 (next_layout, prev_layout): Remove.
10410 (tui_layout_window::replace_window): New method.
10411 (tui_layout_split::replace_window): New method.
10412 (destroy_layout): New function.
10413 (layout_list): New global.
10414 (add_layout_command): New function.
10415 (initialize_layouts): Update.
10416 (tui_layout_command): New function.
10417 (_initialize_tui_layout): Install "layout" commands.
10418 * tui/tui-data.h (enum tui_layout_type): Remove.
10419 (tui_current_layout): Don't declare.
10420
0dbc2fc7
TT
104212020-02-22 Tom Tromey <tom@tromey.com>
10422
10423 * tui/tui-regs.c (tui_reg_layout): Remove.
10424 (tui_reg_command): Use tui_regs_layout.
10425 * tui/tui-layout.h (tui_reg_command): Declare.
10426 * tui/tui-layout.c (tui_reg_command): New function.
10427
5afe342e
TT
104282020-02-22 Tom Tromey <tom@tromey.com>
10429
10430 * tui/tui.c (tui_rl_delete_other_windows): Call
10431 tui_remove_some_windows.
10432 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10433 Declare method.
10434 (class tui_layout_window) <remove_windows>: New method.
10435 (class tui_layout_split) <remove_windows>: Declare.
10436 (tui_remove_some_windows): Declare.
10437 * tui/tui-layout.c (tui_remove_some_windows): New function.
10438 (tui_layout_split::remove_windows): New method.
10439
427326a8
TT
104402020-02-22 Tom Tromey <tom@tromey.com>
10441
10442 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10443 * tui/tui-layout.h (tui_next_layout): Declare.
10444 * tui/tui-layout.c (tui_next_layout): New function.
10445
3fe12b6d
TT
104462020-02-22 Tom Tromey <tom@tromey.com>
10447
10448 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10449 correct coordinates.
10450
59b8b5d2
TT
104512020-02-22 Tom Tromey <tom@tromey.com>
10452
10453 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10454 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10455 DATA_WIN case.
10456
2a3d458b
TT
104572020-02-22 Tom Tromey <tom@tromey.com>
10458
10459 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10460 TUI_DISASM_WIN, not tui_win_list.
10461
3f0cbb04
TT
104622020-02-22 Tom Tromey <tom@tromey.com>
10463
10464 * valprint.c (generic_val_print_enum_1)
10465 (val_print_type_code_flags): Style member names.
10466 * rust-lang.c (val_print_struct, rust_print_enum)
10467 (rust_print_struct_def, rust_internal_print_type): Style member
10468 names.
10469 * p-valprint.c (pascal_object_print_value_fields): Style member
10470 names. Only call fprintf_symbol_filtered for static members.
10471 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10472 * f-valprint.c (f_val_print): Style member names.
10473 * f-typeprint.c (f_type_print_base): Style member names.
10474 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10475 call fprintf_symbol_filtered for static members.
10476 (cp_print_class_member): Style member names.
10477 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10478 member names.
10479 * ada-valprint.c (ada_print_scalar): Style enum names.
10480 (ada_val_print_enum): Likewise.
10481 * ada-typeprint.c (print_enum_type): Style enum names.
10482
d4d947ae
TT
104832020-02-21 Tom Tromey <tom@tromey.com>
10484
10485 * psympriv.h (struct partial_symtab): Update comment.
10486
e94e944b
TT
104872020-02-21 Tom Tromey <tromey@adacore.com>
10488
10489 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10490 type is CORE_ADDR.
10491
1eb73179
TV
104922020-02-21 Tom de Vries <tdevries@suse.de>
10493
10494 PR gdb/25534
10495 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10496 if dependencies[i]->user != NULL.
10497
4f180d53
AT
104982020-02-21 Ali Tamur <tamur@google.com>
10499
10500 * dwarf2/read.c (dwarf2_name): Add null check.
10501
22b6cd70
TT
105022020-02-20 Tom Tromey <tom@tromey.com>
10503
10504 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10505 ">=", in binary search.
10506 (dwarf2_find_containing_comp_unit): New overload.
10507 (run_test): New self-test.
10508 (_initialize_dwarf2_read): Register new test.
10509
bd0cf5a6
NC
105102020-02-20 Nelson Chu <nelson.chu@sifive.com>
10511
10512 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10513 * riscv-tdep.h: Likewise.
10514 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10515 rv32-only CSR.
10516 * features/riscv/64bit-csr.xml: Regenerated.
10517
3f702acd
SDJ
105182020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10519 Tom Tromey <tom@tromey.com>
10520
10521 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10522 of 'fputc_unfiltered'.
10523 (putchar_unfiltered): Call 'fputc_unfiltered'.
10524 (fputc_unfiltered): Call 'fputs_unfiltered'.
10525
d13c7322
AB
105262020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10527
10528 * config.in: Regenerate.
10529 * configure: Regenerate.
10530 * configure.ac: Add --with-python-libdir option.
10531 * main.c: Use WITH_PYTHON_LIBDIR.
10532
869d8950
TT
105332020-02-19 Tom Tromey <tom@tromey.com>
10534
10535 * symtab.c (general_symbol_info::compute_and_set_names): Use
10536 obstack_strndup. Simplify call to symbol_set_demangled_name.
10537
298e9637
SM
105382020-02-19 Simon Marchi <simon.marchi@efficios.com>
10539
10540 * dwarf2/read.c (allocate_signatured_type_table,
10541 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10542 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10543 Remove objfile parameter, update all callers.
10544
08410482
DE
105452020-02-19 Doug Evans <dje@google.com>
10546
10547 PR rust/25535
10548 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10549 rust_enum_variant calculation.
10550
dfdeeca1
TT
105512020-02-19 Tom Tromey <tromey@adacore.com>
10552
10553 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10554
2ef5453b
TT
105552020-02-19 Tom Tromey <tromey@adacore.com>
10556
10557 * ada-lang.c (cache_symbol): Use obstack_strdup.
10558
9f1528a1
AB
105592020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10560
10561 * configure: Regenerate.
10562
d3c22fa8
TT
105632020-02-19 Tom Tromey <tromey@adacore.com>
10564
10565 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10566 NULL check.
10567
bf84f706
MR
105682020-02-19 Maciej W. Rozycki <macro@wdc.com>
10569
10570 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10571
d1c9b20f
AB
105722020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10573
10574 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10575 if GDBSERVER is not defined.
10576 (riscv_tdesc_cache): Likewise, also store const target_desc.
10577 (STATIC_IN_GDB): Define.
10578 (riscv_create_target_description): Update declaration with
10579 STATIC_IN_GDB.
10580 (riscv_lookup_target_description): New function, only define if
10581 GDBSERVER is not defined.
10582 * arch/riscv.h (riscv_create_target_description): Declare only
10583 when GDBSERVER is defined.
10584 (riscv_lookup_target_description): New declaration when GDBSERVER
10585 is not defined.
10586 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10587 (riscv_linux_read_features): ...this, and return
10588 riscv_gdbarch_features instead of target_desc.
10589 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10590 (riscv_linux_read_description): Rename to...
10591 (riscv_linux_read_features): ...this.
10592 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10593 Update to use riscv_gdbarch_features and
10594 riscv_lookup_target_description.
10595 * riscv-tdep.c (riscv_find_default_target_description): Use
10596 riscv_lookup_target_description instead of
10597 riscv_create_target_description.
10598
373d7ac0
SM
105992020-02-18 Simon Marchi <simon.marchi@efficios.com>
10600
10601 * valprint.c (generic_val_print_enum_1): When printing a flag
10602 enum with value 0 and there is no enumerator with value 0, print
10603 just "0" instead of "(unknown: 0x0)".
10604
b29a2df0
SM
106052020-02-18 Simon Marchi <simon.marchi@efficios.com>
10606
10607 * valprint.c (generic_val_print_enum_1): Print unknown part of
10608 flag enum in hex.
10609
6740f0cc
SM
106102020-02-18 Simon Marchi <simon.marchi@efficios.com>
10611
10612 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10613 flag enums to contain duplicate enumerators.
10614 * valprint.c (generic_val_print_enum_1): Update comment.
10615
edd45eb0
SM
106162020-02-18 Simon Marchi <simon.marchi@efficios.com>
10617
10618 * dwarf2/read.c: Include "count-one-bits.h".
10619 (update_enumeration_type_from_children): If an enumerator has
10620 multiple bits set, don't treat the enumeration as a "flag enum".
10621 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10622 of flag enums have 0 or 1 bit set.
10623
6d0cf446
BE
106242020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10625
10626 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10627 conversion.
10628 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10629 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10630 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10631 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10632 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10633
7001c1b7
SM
106342020-02-18 Simon Marchi <simon.marchi@efficios.com>
10635
10636 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10637
fdb61c6c
SM
106382020-02-14 Simon Marchi <simon.marchi@efficios.com>
10639
10640 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10641 displaced_step_closure_up.
10642 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10643 (struct displaced_step_closure_up):
10644 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10645 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10646 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10647 Likewise.
10648 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10649 * gdbarch.c, gdbarch.h: Re-generate.
10650 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10651 displaced_step_closure_up.
10652 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10653 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10654 * infrun.h (displaced_step_closure_up): New type alias.
10655 (struct displaced_step_inferior_state) <step_closure>: Change
10656 type to displaced_step_closure_up.
10657 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10658 displaced_step_closure_up.
10659 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10660
a4a38eb4
TT
106612020-02-14 Tom Tromey <tom@tromey.com>
10662
10663 * minidebug.c (gnu_debug_key): New global.
10664 (find_separate_debug_file_in_section): Use it.
10665
e8217e61
SM
106662020-02-14 Simon Marchi <simon.marchi@efficios.com>
10667
10668 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10669 std::unique_ptr.
10670 * gdbarch.c: Re-generate.
10671 * gdbarch.h: Re-generate.
10672 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10673 change.
10674 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10675 type to std::unique_ptr.
10676 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10677 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10678 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10679 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10680 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10681 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10682 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10683 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10684 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10685
d8d83535
SM
106862020-02-14 Simon Marchi <simon.marchi@efficios.com>
10687
10688 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10689 std::unique_ptr.
10690 (displaced_step_clear): Rename to...
10691 (displaced_step_reset): ... this. Just call displaced->reset ().
10692 (displaced_step_clear_cleanup): Rename to...
10693 (displaced_step_reset_cleanup): ... this.
10694 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10695 (displaced_step_fixup): Likewise.
10696 (resume_1): Likewise.
10697 (handle_inferior_event): Restore child's memory before calling
10698 displaced_step_fixup on the parent.
10699 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10700 to std::unique_ptr.
10701 <step_closure>: Change type to std::unique_ptr.
10702
5f661e03
SM
107032020-02-14 Simon Marchi <simon.marchi@efficios.com>
10704
10705 * arm-tdep.c: Include count-one-bits.h.
10706 (cleanup_block_store_pc): Use count_one_bits.
10707 (cleanup_block_load_pc): Use count_one_bits.
10708 (arm_copy_block_xfer): Use count_one_bits.
10709 (thumb2_copy_block_xfer): Use count_one_bits.
10710 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10711 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10712 (thumb_get_next_pcs_raw): Use count_one_bits.
10713 (arm_get_next_pcs_raw): Use count_one_bits_l.
10714 * arch/arm.c (bitcount): Remove.
10715 * arch/arm.h (bitcount): Remove.
10716
8084e579
TT
107172020-02-14 Tom Tromey <tromey@adacore.com>
10718
10719 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10720 Update.
10721 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10722 * dwarf2/loc.c (call_site_find_chain_1): Return
10723 unique_xmalloc_ptr.
10724 (call_site_find_chain): Likewise.
10725
258bf0ee
RB
107262020-02-14 Richard Biener <rguenther@suse.de>
10727
10728 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10729 on expression with division operators.
10730
f98a8458
AKS
107312020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10732
10733 * MAINTAINERS (Write After Approval): Adding myself.
10734
d1437c0e
TT
107352020-02-12 Tom Tromey <tom@tromey.com>
10736
10737 * event-loop.c (event_data, gdb_event, event_handler_func):
10738 Remove.
10739
3d4560f7
TT
107402020-02-12 Tom Tromey <tom@tromey.com>
10741
10742 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10743 (dwarf2_frame_objfile_data): Add comment.
10744 (find_comp_unit, set_comp_unit): New functions.
10745 (dwarf2_frame_find_fde): Use find_comp_unit.
10746 (dwarf2_build_frame_info): Use set_comp_unit.
10747
21982304
TT
107482020-02-12 Tom Tromey <tom@tromey.com>
10749
10750 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10751 (comp_unit): Don't initialize objfile.
10752 (execute_cfa_program): Add text_offset parameter.
10753 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10754 (dwarf2_frame_cache): Update.
10755 (dwarf2_build_frame_info): Don't set "objfile" member.
10756
4debb237
TT
107572020-02-12 Tom Tromey <tom@tromey.com>
10758
10759 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10760 (decode_frame_entry): Likewise.
10761 (dwarf2_build_frame_info): Update.
10762
0d404d44
TT
107632020-02-12 Tom Tromey <tom@tromey.com>
10764
10765 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10766 (decode_frame_entry_1): Use the comp_unit obstack.
10767
a7a3ae5c
TT
107682020-02-12 Tom Tromey <tom@tromey.com>
10769
10770 * dwarf2/frame.c (struct comp_unit): Add initializers and
10771 constructor.
10772 (dwarf2_frame_objfile_data): Store a comp_unit.
10773 (dwarf2_frame_find_fde): Update.
10774 (dwarf2_build_frame_info): Use "new".
10775
a9d65418
TT
107762020-02-12 Tom Tromey <tom@tromey.com>
10777
10778 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10779 (dwarf2_fde_table): Typedef for std::vector.
10780 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10781 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10782 (decode_frame_entry): Update.
10783 (dwarf2_build_frame_info): Use "new".
10784
7559c217
CB
107852020-02-12 Christian Biesinger <cbiesinger@google.com>
10786
10787 * arm-tdep.c (arm_gdbarch_init): Update.
10788 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10789 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10790 have_neon, is_m>: Change to bool.
10791
aeefc73c
CB
107922020-02-12 Christian Biesinger <cbiesinger@google.com>
10793
10794 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10795
d27b8e5f
TT
107962020-02-12 Tom Tromey <tom@tromey.com>
10797
10798 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10799
cd5900f3
HD
108002020-02-12 Hannes Domani <ssbssa@yahoo.de>
10801
10802 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10803 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10804
f056b22b
TT
108052020-02-11 Tom Tromey <tom@tromey.com>
10806
10807 * psymtab.h: Update comment.
10808
f92ff6b5
TT
108092020-02-11 Tom Tromey <tom@tromey.com>
10810
10811 * gdb_obstack.h (struct auto_obstack): Use
10812 DISABLE_COPY_AND_ASSIGN.
10813
3fd6912b
TT
108142020-02-11 Tom Tromey <tom@tromey.com>
10815
10816 * dwarf2/frame.h (struct objfile): Don't forward declare.
10817
69ed9b74
CB
108182020-02-11 Christian Biesinger <cbiesinger@google.com>
10819
10820 * cris-tdep.c (cris_supply_gregset): Change signature to match
10821 what struct regset expects.
10822 (cris_regset): New struct.
10823 (fetch_core_registers): Remove.
10824 (cris_iterate_over_regset_sections): New function.
10825 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10826 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10827
bda874f6
CB
108282020-02-11 Christian Biesinger <cbiesinger@google.com>
10829
10830 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10831 registers.
10832
754e1564
CB
108332020-02-11 Christian Biesinger <cbiesinger@google.com>
10834
10835 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10836
8ddd8e0e
SM
108372020-02-11 Simon Marchi <simon.marchi@efficios.com>
10838
10839 * configure: Re-generate.
10840
898e7f60
SM
108412020-02-11 Simon Marchi <simon.marchi@efficios.com>
10842
10843 * configure: Re-generate.
10844
58df732b
SM
108452020-02-11 Simon Marchi <simon.marchi@efficios.com>
10846
10847 * acinclude: Update warning.m4 path.
10848 * warning.m4: Move to gdbsupport.
10849
da5bd37e
TT
108502020-02-11 Tom Tromey <tromey@adacore.com>
10851
10852 * remote.c (remote_console_output): Update.
10853 * printcmd.c (printf_command): Update.
10854 * event-loop.c (gdb_wait_for_event): Update.
10855 * linux-nat.c (sigchld_handler): Update.
10856 * remote-sim.c (gdb_os_write_stdout): Update.
10857 (gdb_os_flush_stdout): Update.
10858 (gdb_os_flush_stderr): Update.
10859 (gdb_os_write_stderr): Update.
10860 * exceptions.c (print_exception): Update.
10861 * remote-fileio.c (remote_fileio_func_read): Update.
10862 (remote_fileio_func_write): Update.
10863 * tui/tui.c (tui_enable): Update.
10864 * tui/tui-interp.c (tui_interp::init): Update.
10865 * utils.c (init_page_info): Update.
10866 (putchar_unfiltered, fputc_unfiltered): Update.
10867 (gdb_flush): Update.
10868 (emit_style_escape): Update.
10869 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10870 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10871 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10872 (stderr_file::write): Update.
10873 (stderr_file::puts): Update.
10874 * ui-file.h (ui_file_isatty, ui_file_write)
10875 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10876 (ui_file_puts): Don't declare.
10877
85f0dd3c
TV
108782020-02-10 Tom de Vries <tdevries@suse.de>
10879
10880 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10881 sentinel to char *.
10882
2e927613
TV
108832020-02-09 Tom de Vries <tdevries@suse.de>
10884
10885 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10886 filename if it matches "<artificial>".
10887
6bafc845
HD
108882020-02-09 Hannes Domani <ssbssa@yahoo.de>
10889
10890 * windows-tdep.c (struct enum_value_name): New struct.
10891 (create_enum): New function.
10892 (windows_get_siginfo_type): Create and use enum types.
10893
7928d571
HD
108942020-02-09 Hannes Domani <ssbssa@yahoo.de>
10895
10896 * NEWS: Mention $_siginfo support for Windows.
10897 * windows-nat.c (handle_exception): Set siginfo_er.
10898 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10899 (windows_xfer_siginfo): New function.
10900 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10901 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10902 (init_windows_gdbarch_data): New function.
10903 (get_windows_gdbarch_data): New function.
10904 (windows_get_siginfo_type): New function.
10905 (windows_init_abi): Register windows_get_siginfo_type.
10906 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10907
6751ebae
TT
109082020-02-08 Tom Tromey <tom@tromey.com>
10909
10910 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10911 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10912 <keep>: Declare method.
10913 <m_keep>: Remove member.
10914 <~cutu_reader>: Remove.
10915 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10916 (cutu_reader::cutu_reader): Update.
10917 (cutu_reader::keep): Rename from ~cutu_reader.
10918 (process_psymtab_comp_unit, build_type_psymtabs_1)
10919 (process_skeletonless_type_unit, load_partial_comp_unit)
10920 (load_full_comp_unit, dwarf2_read_addr_index)
10921 (read_signatured_type): Update.
10922
135f5437
TT
109232020-02-08 Tom Tromey <tom@tromey.com>
10924
10925 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10926 "want_partial_unit" parameter.
10927 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10928 Inline check for DW_TAG_partial_unit.
10929 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10930
9f66ff1c
TT
109312020-02-08 Tom Tromey <tom@tromey.com>
10932
10933 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10934 read.c.
10935 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10936 read.c.
10937
c8a7a66f
TT
109382020-02-08 Tom Tromey <tom@tromey.com>
10939
10940 * dwarf2/read.c (read_address): Move to comp-unit.c.
10941 (dwarf2_rnglists_process, dwarf2_ranges_process)
10942 (read_attribute_value, dwarf_decode_lines_1)
10943 (var_decode_location, decode_locdesc): Update.
10944 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10945 read.c. Remove "cu" parameter.
10946 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10947 method.
10948
8266302d
TT
109492020-02-08 Tom Tromey <tom@tromey.com>
10950
10951 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10952 (read_indirect_line_string): Update.
10953 * dwarf2/comp-unit.c (read_offset): Remove.
10954 (read_comp_unit_head): Update.
10955 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10956 method.
10957 (read_offset): Don't declare.
10958
4057dfde
TT
109592020-02-08 Tom Tromey <tom@tromey.com>
10960
10961 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10962 * dwarf2/read.c (struct comp_unit_head): Move to
10963 dwarf2/comp-unit.h.
10964 (enum class rcuh_kind): Move to comp-unit.h.
10965 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10966 (read_comp_unit_head, error_check_comp_unit_head)
10967 (read_and_check_comp_unit_head): Move to comp-unit.c.
10968 (read_offset, dwarf_unit_type_name): Likewise.
10969 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10970 (cutu_reader::cutu_reader, read_call_site_scope)
10971 (find_partial_die, follow_die_offset): Update.
10972 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10973
24aa364d
TT
109742020-02-08 Tom Tromey <tom@tromey.com>
10975
10976 * dwarf2/read.c (read_offset_1): Move to leb.c.
10977 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10978 (dwarf_decode_macro_bytes): Update.
10979 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10980 * dwarf2/leb.h (read_offset): Declare.
10981
2c7d5afc
TT
109822020-02-08 Tom Tromey <tom@tromey.com>
10983
10984 * dwarf2/read.c (dwarf2_section_size): Remove.
10985 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10986 Update.
10987 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10988
4075cb26
TT
109892020-02-08 Tom Tromey <tom@tromey.com>
10990
10991 * dwarf2/read.c (read_initial_length): Move to leb.c.
10992 * dwarf2/leb.h (read_initial_length): Declare.
10993 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10994 handle_nonstd parameter.
10995 * dwarf2/frame.c (read_initial_length): Remove.
10996 (decode_frame_entry_1): Update.
10997
09ba997f
TT
109982020-02-08 Tom Tromey <tom@tromey.com>
10999
11000 * dwarf2/loc.c (dwarf2_find_location_expression)
11001 (dwarf_evaluate_loc_desc::get_tls_address)
11002 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11003 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11004 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11005 (dwarf2_compile_property_to_c)
11006 (dwarf2_loc_desc_get_symbol_read_needs)
11007 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11008 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11009 (loclist_describe_location, loclist_tracepoint_var_ref)
11010 (loclist_generate_c_location): Update.
11011 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11012 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11013 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11014 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11015 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11016 (dwarf2_per_cu_data::addr_size)
11017 (dwarf2_per_cu_data::ref_addr_size)
11018 (dwarf2_per_cu_data::text_offset)
11019 (dwarf2_per_cu_data::addr_type): Now methods.
11020 (per_cu_header_read_in): Make per_cu "const".
11021 (dwarf2_version): Remove.
11022 (dwarf2_per_cu_data::int_type): Now a method.
11023 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11024 (set_die_type, read_array_type, read_subrange_index_type)
11025 (read_tag_string_type, read_subrange_type): Update.
11026 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11027 offset_size, ref_addr_size, text_offset, addr_type, version,
11028 objfile, int_type, addr_sized_int_type>: Declare methods.
11029
96c738c0
TT
110302020-02-08 Tom Tromey <tom@tromey.com>
11031
11032 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11033 Move earlier.
11034
8fdd972c
TT
110352020-02-08 Tom Tromey <tom@tromey.com>
11036
11037 * dwarf2/read.h (dwarf_line_debug): Declare.
11038 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11039 * dwarf2/read.c: Move line_header code to new files.
11040 (dwarf_line_debug): No longer static.
11041 * dwarf2/line-header.c: New file.
11042 * dwarf2/line-header.h: New file.
11043
03075812
TT
110442020-02-08 Tom Tromey <tom@tromey.com>
11045
11046 * dwarf2/read.c (struct line_header) <file_full_name,
11047 file_file_name>: Return unique_xmalloc_ptr.
11048 (line_header::file_file_name): Update.
11049 (line_header::file_full_name): Update.
11050 (dw2_get_file_names_reader): Update.
11051 (macro_start_file): Update.
11052
bb822404
TT
110532020-02-08 Tom Tromey <tom@tromey.com>
11054
11055 * dwarf2/read.c (struct line_header) <file_full_name,
11056 file_file_name>: Declare methods.
11057 (dw2_get_file_names_reader): Update.
11058 (file_file_name): Now a method.
11059 (file_full_name): Likewise.
11060 (macro_start_file): Update.
11061
009b64fc
TT
110622020-02-08 Tom Tromey <tom@tromey.com>
11063
11064 * dwarf2/read.c (dwarf_always_disassemble)
11065 (show_dwarf_always_disassemble): Move to loc.c.
11066 (_initialize_dwarf2_read): Move "always-disassemble" registration
11067 to loc.c.
11068 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11069 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11070 static.
11071 (show_dwarf_always_disassemble): Move from read.c.
11072 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11073
5895093f
TT
110742020-02-08 Tom Tromey <tom@tromey.com>
11075
11076 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11077 (create_quick_file_names_table): Return htab_up.
11078 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11079 Update.
11080 * dwarf2/read.h (struct dwarf2_per_objfile)
11081 <quick_file_names_table>: Now htab_up.
11082
b3b32279
TT
110832020-02-08 Tom Tromey <tom@tromey.com>
11084
11085 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11086
1d33d811
TT
110872020-02-08 Tom Tromey <tom@tromey.com>
11088
11089 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11090 Rewrite.
11091 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11092 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11093 (abbrev_table::abbrev_table): No longer inline.
11094 (ABBREV_HASH_SIZE): Remove.
11095 (abbrev_table::m_abbrevs): Now an htab_up.
11096
86de1d91
TT
110972020-02-08 Tom Tromey <tom@tromey.com>
11098
11099 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11100 (cutu_reader): Update.
11101 (build_type_psymtabs_1): Update.
11102 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11103 (abbrev_table::alloc_abbrev): Update.
11104 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11105 (abbrev_table::read): New static method, renamed from
11106 abbrev_table_read_table.
11107 (abbrev_table::alloc_abbrev)
11108 (abbrev_table::add_abbrev): Now private.
11109 (abbrev_table::abbrev_table): Now private.
11110 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11111
0335378b
TT
111122020-02-08 Tom Tromey <tom@tromey.com>
11113
11114 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11115 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11116 htab_up.
11117
48b490f2
TT
111182020-02-08 Tom Tromey <tom@tromey.com>
11119
11120 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11121 htab_up.
11122 (lookup_dwo_unit_in_dwp): Update.
11123 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11124 on obstack.
11125
bc68fb19
TT
111262020-02-08 Tom Tromey <tom@tromey.com>
11127
11128 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11129 obstack.
11130
d15acc42
TT
111312020-02-08 Tom Tromey <tom@tromey.com>
11132
11133 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11134 line_header_hash.
11135 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11136 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11137 Change type to htab_up.
11138
eaa5fa8b
TT
111392020-02-08 Tom Tromey <tom@tromey.com>
11140
11141 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11142 htab_up. Don't allocate on obstack.
11143 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11144 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11145 Change type to htab_up.
11146
b0b6a987
TT
111472020-02-08 Tom Tromey <tom@tromey.com>
11148
11149 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11150 Change type to htab_up.
11151 * dwarf2/read.c (create_signatured_type_table_from_index)
11152 (create_signatured_type_table_from_debug_names)
11153 (create_all_type_units, add_type_unit)
11154 (lookup_dwo_signatured_type, lookup_signatured_type)
11155 (process_skeletonless_type_unit): Update.
11156 (create_debug_type_hash_table, create_debug_types_hash_table):
11157 Change type of types_htab.
11158 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11159 htab_up. Don't allocate on obstack.
11160 (create_cus_hash_table): Change type of cus_htab parameter.
11161 (struct dwo_file) <cus, tus>: Now htab_up.
11162 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11163 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11164 (queue_and_load_all_dwo_tus): Update.
11165 * dwarf2/index-write.c (write_gdbindex): Update.
11166 (write_debug_names): Update.
11167
39856def
TT
111682020-02-08 Tom Tromey <tom@tromey.com>
11169
11170 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11171 dwarf2/read.c. Remove "next" member. Add constructor ntad
11172 destructor.
11173 (struct dwarf2_per_objfile) <queue>: New member.
11174 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11175 dwarf2/read.h.
11176 (dwarf2_queue, dwarf2_queue_tail): Remove.
11177 (class dwarf2_queue_guard): Add parameter to constructor. Use
11178 DISABLE_COPY_AND_ASSIGN.
11179 <m_per_objfile>: New member.
11180 <~dwarf2_queue_guard>: Rewrite.
11181 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11182 Update.
11183 (~dwarf2_queue_item): New.
11184
3e225074
TT
111852020-02-08 Tom Tromey <tom@tromey.com>
11186
11187 * dwarf2/read.c (struct die_info) <has_children>: New member.
11188 (dw2_get_file_names_reader): Remove has_children.
11189 (dw2_get_file_names): Update.
11190 (read_cutu_die_from_dwo): Remove has_children.
11191 (cutu_reader::init_tu_and_read_dwo_dies)
11192 (cutu_reader::cutu_reader): Update.
11193 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11194 Remove has_children.
11195 (build_type_psymtabs_1, process_skeletonless_type_unit)
11196 (load_partial_comp_unit, load_full_comp_unit): Update.
11197 (create_dwo_cu_reader): Remove has_children.
11198 (create_cus_hash_table, read_die_and_children): Update.
11199 (read_full_die_1,read_full_die): Remove has_children.
11200 (read_signatured_type): Update.
11201 (class cutu_reader) <has_children>: Remove.
11202
82ca8957
TT
112032020-02-08 Tom Tromey <tom@tromey.com>
11204
11205 * dwarf2/expr.c: Rename from dwarf2expr.c.
11206 * dwarf2/expr.h: Rename from dwarf2expr.h.
11207 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11208 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11209 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11210 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11211 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11212 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11213 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11214 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11215 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11216 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11217 * dwarf2/loc.c: Rename from dwarf2loc.c.
11218 * dwarf2/loc.h: Rename from dwarf2loc.h.
11219 * dwarf2/read.c: Rename from dwarf2read.c.
11220 * dwarf2/read.h: Rename from dwarf2read.h.
11221 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11222 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11223 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11224 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11225 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11226 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11227 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11228 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11229 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11230 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11231 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11232 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11233 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11234 Update.
11235 * Makefile.in (COMMON_SFILES): Update.
11236 (HFILES_NO_SRCDIR): Update.
11237
9e35d499
TT
112382020-02-08 Tom Tromey <tom@tromey.com>
11239
11240 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11241 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11242
1eba2311
TT
112432020-02-08 Tom Tromey <tom@tromey.com>
11244
11245 * dwarf2read.h (struct die_info): Don't declare.
11246
e41c2da2
TT
112472020-02-08 Tom Tromey <tom@tromey.com>
11248
11249 * dwarf2read.h (die_info_ptr): Remove typedef.
11250
4fc6c0d5
TT
112512020-02-08 Tom Tromey <tom@tromey.com>
11252
11253 * dwarf2read.c (read_call_site_scope)
11254 (handle_data_member_location, dwarf2_add_member_fn)
11255 (mark_common_block_symbol_computed, read_common_block)
11256 (attr_to_dynamic_prop, partial_die_info::read)
11257 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11258 (dwarf2_symbol_mark_computed, set_die_type): Update.
11259 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11260 method.
11261 (attr_form_is_block): Don't declare.
11262 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11263
cd6c91b4
TT
112642020-02-08 Tom Tromey <tom@tromey.com>
11265
11266 * dwarf2read.c (dwarf2_find_base_address, )
11267 (read_call_site_scope, rust_containing_type)
11268 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11269 (handle_data_member_location, dwarf2_add_member_fn)
11270 (get_alignment, read_structure_type, process_structure_scope)
11271 (mark_common_block_symbol_computed, read_common_block)
11272 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11273 (partial_die_info::read, read_attribute_value, new_symbol)
11274 (lookup_die_type, dwarf2_get_ref_die_offset)
11275 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11276 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11277 (dwarf2_symbol_mark_computed): Update.
11278 * dwarf2/attribute.h (struct attribute) <value_as_address,
11279 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11280 methods.
11281 (value_as_address, attr_form_is_section_offset)
11282 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11283 * dwarf2/attribute.c (attribute::value_as_address)
11284 (attribute::form_is_section_offset, attribute::form_is_constant)
11285 (attribute::form_is_ref): Now methods.
11286
162dce55
TT
112872020-02-08 Tom Tromey <tom@tromey.com>
11288
11289 * dwarf2read.c (struct attribute, DW_STRING)
11290 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11291 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11292 (attr_form_is_block, attr_form_is_section_offset)
11293 (attr_form_is_constant, attr_form_is_ref): Move.
11294 * dwarf2/attribute.h: New file.
11295 * dwarf2/attribute.c: New file, from dwarf2read.c.
11296 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11297
3054dd54
TT
112982020-02-08 Tom Tromey <tom@tromey.com>
11299
11300 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11301 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11302 Move.
11303 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11304 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11305 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11306 abbrev.c.
11307 * dwarf2/abbrev.h: New file.
11308 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11309 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11310
96b79293
TT
113112020-02-08 Tom Tromey <tom@tromey.com>
11312
11313 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11314 (dwarf2_section_size, dwarf2_get_section_info)
11315 (create_signatured_type_table_from_debug_names)
11316 (create_addrmap_from_aranges, read_debug_names_from_section)
11317 (get_gdb_index_contents_from_section, read_comp_unit_head)
11318 (error_check_comp_unit_head, read_abbrev_offset)
11319 (create_debug_type_hash_table, init_cu_die_reader)
11320 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11321 (read_comp_units_from_section, create_cus_hash_table)
11322 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11323 (create_dwp_v2_section, dwarf2_rnglists_process)
11324 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11325 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11326 (read_indirect_string_from_dwz, read_addr_index_1)
11327 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11328 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11329 (fill_in_loclist_baton): Update.
11330 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11331 get_containing_section, get_bfd_owner, get_bfd_section,
11332 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11333 (dwarf2_read_section, get_section_name, get_section_file_name)
11334 (get_containing_section, get_section_bfd_owner)
11335 (get_section_bfd_section, get_section_name, get_section_file_name)
11336 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11337 declare.
11338 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11339 (dwarf2_section_info::get_bfd_owner)
11340 (dwarf2_section_info::get_bfd_section)
11341 (dwarf2_section_info::get_name)
11342 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11343 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11344 (dwarf2_section_info::read): Now methods.
11345 * dwarf-index-write.c (class debug_names): Update.
11346
2c86cff9
TT
113472020-02-08 Tom Tromey <tom@tromey.com>
11348
11349 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11350 Move to dwarf2/section.h.
11351 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11352 (get_section_bfd_section, get_section_name)
11353 (get_section_file_name, get_section_id, get_section_flags)
11354 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11355 dwarf2/section.c.
11356 * dwarf2/section.h: New file.
11357 * dwarf2/section.c: New file, from dwarf2read.c.
11358 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11359
f4382c45
TT
113602020-02-08 Tom Tromey <tom@tromey.com>
11361
11362 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11363 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11364 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11365 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11366 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11367 * dwarf2/leb.h: New file, from dwarf2read.c.
11368 * dwarf2/leb.c: New file, from dwarf2read.c.
11369 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11370 Remove.
11371 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11372 (COMMON_SFILES): Add dwarf2/leb.c.
11373
01840b7a
JB
113742020-02-08 Joel Brobecker <brobecker@adacore.com>
11375
11376 GDB 9.1 released.
11377
dfcb27e4
IB
113782020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11379
11380 PR gdb/25190:
aac66a4c
SM
11381 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11382 * gdb/remote.c (remote_console_output): Update.
11383 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11384 (ui_file_puts): ...this.
11385 * gdb/ui-file.h (ui_file_puts): Add declaration.
11386 * gdb/utils.c (emit_style_escape): Update.
11387 (flush_wrap_buffer): Update.
11388 (fputs_maybe_filtered): Update.
11389 (fputs_unfiltered): Add function.
dfcb27e4 11390
faa17681
IB
113912020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11392
aac66a4c
SM
11393 * gdb/event-loop.c (gdb_wait_for_event): Update.
11394 * gdb/printcmd.c (printf_command): Update.
11395 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11396 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11397 (gdb_os_flush_stderr): Update.
11398 * gdb/remote.c (remote_console_output): Update.
11399 * gdb/ui-file.c (gdb_flush): Rename to...
11400 (ui_file_flush): ...this.
11401 (stderr_file::write): Update.
11402 (stderr_file::puts): Update.
11403 * gdb/ui-file.h (gdb_flush): Rename to...
11404 (ui_file_flush): ...this.
11405 * gdb/utils.c (gdb_flush): Add function.
11406 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11407
5abbbe1d
TT
114082020-02-07 Tom Tromey <tromey@adacore.com>
11409
11410 PR breakpoints/24915:
11411 * source.c (find_and_open_source): Do not check basenames_may_differ.
11412
919adfe8
TT
114132020-02-07 Tom Tromey <tom@tromey.com>
11414
11415 * README: Update gdbserver documentation.
11416 * gdbserver: Move to top level.
11417 * configure.tgt (build_gdbserver): Remove.
11418 * configure.ac: Remove --enable-gdbserver.
11419 * configure: Rebuild.
11420 * Makefile.in (distclean): Don't mention gdbserver.
11421
1d5d29e7
SV
114222020-02-06 Shahab Vahedi <shahab@synopsys.com>
11423
11424 * source-cache.c (source_cache::ensure): Surround
11425 get_plain_source_lines with a try/catch.
11426 (source_cache::get_line_charpos): Get rid of try/catch
11427 and only check for the return value of "ensure".
11428 * tui/tui-source.c (tui_source_window::set_contents):
11429 Simplify "nlines" calculation.
11430
6eb1129c
SV
114312020-02-06 Shahab Vahedi <shahab@synopsys.com>
11432
11433 * MAINTAINERS (Write After Approval): Add myself.
11434
c6a42d11
CB
114352020-02-05 Christian Biesinger <cbiesinger@google.com>
11436
11437 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11438 function call.
11439
c8ecdda6
CB
114402020-02-05 Christian Biesinger <cbiesinger@google.com>
11441
11442 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11443
f6480e70
MR
114442020-02-05 Maciej W. Rozycki <macro@wdc.com>
11445
11446 * nat/riscv-linux-tdesc.h: New file.
11447 * nat/riscv-linux-tdesc.c: New file, taking code from...
11448 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11449 ... here.
11450 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11451 NATDEPFILES.
11452
dcc9fbc6
AB
114532020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11454
11455 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11456 we don't set the fake simulator ptid to the null_ptid.
11457
719546c4
SM
114582020-02-03 Simon Marchi <simon.marchi@efficios.com>
11459
11460 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11461 * gdbthread.h (class thread_info) <resumed>: Likewise.
11462 * infrun.c (resume_1): Likewise.
11463 (proceed): Likewise.
11464 (infrun_thread_stop_requested): Likewise.
11465 (stop_all_threads): Likewise.
11466 (handle_inferior_event): Likewise.
11467 (restart_threads): Likewise.
11468 (finish_step_over): Likewise.
11469 (keep_going_stepped_thread): Likewise.
11470 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11471 (linux_handle_extended_wait): Likewise.
11472 * record-btrace.c (get_thread_current_frame_id): Likewise.
11473 * record-full.c (record_full_wait_1): Likewise.
11474 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11475 * target.c (target_resume): Likewise.
11476 * thread.c (set_running_thread): Likewise.
11477
e409c542
AKS
114782020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11479
11480 * f-valprint.c (f77_print_array_1): Changed datatype of index
11481 variable to LONGEST from int to enable it to contain bound
11482 values correctly.
11483
ee98c0da
MR
114842020-02-03 Maciej W. Rozycki <macro@wdc.com>
11485
11486 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11487 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11488 offsets according to FLEN determined.
11489 (riscv_linux_nat_target::read_description): Determine FLEN
11490 dynamically.
11491 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11492 according to FLEN determined.
11493 (riscv_linux_nat_target::store_registers): Likewise.
11494
aa66aac4
SV
114952020-02-01 Shahab Vahedi <shahab@synopsys.com>
11496
11497 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11498 when reg->group is empty and reggroup is not.
11499
fd9faca8
TT
115002020-01-31 Tom Tromey <tromey@adacore.com>
11501
11502 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11503 Call beneath target's mourn_inferior after unpushing.
11504
42330a68
AB
115052020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11506
11507 PR tui/9765
11508 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11509 have enough lines to fill the screen, still return the lowest
11510 address we found.
11511
7a27a45b
AB
115122020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11513
11514 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11515 '-', '<', and '>' commands.
11516
c47f70e2
PA
115172020-01-29 Pedro Alves <palves@redhat.com>
11518 Sergio Durigan Junior <sergiodj@redhat.com>
11519
11520 * infcmd.c (construct_inferior_arguments): Assert that
11521 'argc' is greater than 0.
11522
5133a315
LM
115232020-01-29 Luis Machado <luis.machado@linaro.org>
11524
11525 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11526 (BRK_INSN_MASK): Define to 0xd4200000.
11527 (aarch64_program_breakpoint_here_p): New function.
11528 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11529 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11530 breakpoint.c.
11531 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11532 breakpoint.h
11533 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11534 call gdbarch_program_breakpoint_here_p.
11535 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11536 default_program_breakpoint_here_p, changed return type to bool and
11537 simplified.
11538 * breakpoint.h (program_breakpoint_here): Moved prototype to
11539 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11540 return type to bool.
11541 * gdbarch.c: Regenerate.
11542 * gdbarch.h: Regenerate.
11543 * gdbarch.sh (program_breakpoint_here_p): New method.
11544 * infrun.c (handle_signal_stop): Call
11545 gdbarch_program_breakpoint_here_p.
11546
168f8c6b
TT
115472020-01-26 Tom Tromey <tom@tromey.com>
11548
11549 * ctfread.c (struct ctf_fp_info): Reindent.
11550 (_initialize_ctfread): Remove.
11551
128a391f
TT
115522020-01-26 Tom Tromey <tom@tromey.com>
11553
11554 * psymtab.c (partial_map_expand_apply)
11555 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11556 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11557 (psym_print_stats, psym_expand_symtabs_for_function)
11558 (psym_map_symbol_filenames, psym_map_matching_symbols)
11559 (psym_expand_symtabs_matching)
11560 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11561 (maintenance_check_psymtabs): Use new methods.
11562 * psympriv.h (struct partial_symtab) <readin_p,
11563 get_compunit_symtab>: New methods.
11564 <readin, compunit_symtab>: Remove members.
11565 (struct standard_psymtab): New.
11566 (struct legacy_psymtab): Derive from standard_psymtab.
11567 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11568 standard_psymtab.
11569 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11570
0494dbec
TT
115712020-01-26 Tom Tromey <tom@tromey.com>
11572
11573 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11574 read_dependencies. Add assert.
11575 * psymtab.c (partial_symtab::read_dependencies): New method.
11576 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11577 method.
11578 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11579 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11580 read_dependencies.
11581 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11582 Add assert.
11583
8566b89b
TT
115842020-01-26 Tom Tromey <tom@tromey.com>
11585
11586 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11587 Call expand_psymtab.
11588 (xcoff_read_symtab): Call expand_psymtab.
11589 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11590 legacy_expand_psymtab.
11591 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11592 method.
11593 (struct legacy_psymtab) <expand_psymtab>: Implement.
11594 <legacy_expand_psymtab>: New member.
11595 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11596 (parse_partial_symbols): Set legacy_expand_psymtab.
11597 (psymtab_to_symtab_1): Change argument order. Call
11598 expand_psymtab.
11599 (new_psymtab): Set legacy_expand_psymtab.
11600 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11601 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11602 expand_psymtab.
11603 (dwarf2_psymtab::expand_psymtab): Rename from
11604 psymtab_to_symtab_1. Call expand_psymtab.
11605 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11606 (dbx_end_psymtab): Likewise.
11607 (dbx_psymtab_to_symtab_1): Change argument order. Call
11608 expand_psymtab.
11609 (dbx_read_symtab): Call expand_psymtab.
11610 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11611 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11612 (ctf_psymtab::read_symtab): Call expand_psymtab.
11613
077cbab2
TT
116142020-01-26 Tom Tromey <tom@tromey.com>
11615
11616 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11617 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11618 messages.
11619 * mdebugread.c (mdebug_read_symtab): Remove prints.
11620 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11621 assert.
11622 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11623
891813be
TT
116242020-01-26 Tom Tromey <tom@tromey.com>
11625
11626 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11627 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11628 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11629 legacy_symtab.
11630 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11631 * psymtab.c (psymtab_to_symtab): Call method.
11632 (dump_psymtab): Update.
11633 * psympriv.h (struct partial_symtab): Add virtual destructor.
11634 <read_symtab>: New method.
11635 (struct legacy_symtab): New.
11636 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11637 (struct pst_map) <pst>: Now a legacy_psymtab.
11638 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11639 (new_psymtab): Use legacy_psymtab.
11640 * dwarf2read.h (struct dwarf2_psymtab): New.
11641 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11642 * dwarf2read.c (dwarf2_create_include_psymtab)
11643 (dwarf2_build_include_psymtabs, create_type_unit_group)
11644 (create_partial_symtab, process_psymtab_comp_unit_reader)
11645 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11646 (set_partial_user): Use dwarf2_psymtab.
11647 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11648 (psymtab_to_symtab_1, process_full_comp_unit)
11649 (process_full_type_unit, dwarf2_ranges_read)
11650 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11651 (dwarf_decode_lines): Use dwarf2_psymtab.
11652 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11653 (add_address_entry_worker, write_one_signatured_type)
11654 (recursively_count_psymbols, recursively_write_psymbols)
11655 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11656 (write_debug_names): Likewise.
11657 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11658 <pst>: Now a legacy_psymtab.
11659 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11660 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11661 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11662 * ctfread.c (struct ctf_psymtab): New.
11663 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11664 ctf_psymtab.
11665 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11666 (create_partial_symtab): Return a ctf_psymtab.
11667 (scan_partial_symbols): Update.
11668
c3693a1d
TT
116692020-01-26 Tom Tromey <tom@tromey.com>
11670
11671 * xcoffread.c (xcoff_start_psymtab): Use new.
11672 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11673 renamed from start_psymtab_common.
11674 * psympriv.h (struct partial_symtab): Add new constructor.
11675 (start_psymtab_common): Don't declare.
11676 * mdebugread.c (parse_partial_symbols): Use new.
11677 * dwarf2read.c (create_partial_symtab): Use new.
11678 * dbxread.c (start_psymtab): Use new.
11679 * ctfread.c (create_partial_symtab): Use new.
11680
32caafd0
TT
116812020-01-26 Tom Tromey <tom@tromey.com>
11682
11683 * xcoffread.c (xcoff_end_psymtab): Use new.
11684 * psymtab.c (start_psymtab_common): Use new.
11685 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11686 Update.
11687 * psympriv.h (struct partial_symtab): Add parameters to
11688 constructor. Don't inline.
11689 (allocate_psymtab): Don't declare.
11690 * mdebugread.c (new_psymtab): Use new.
11691 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11692 * dbxread.c (dbx_end_psymtab): Use new.
11693
abaa2f23
TT
116942020-01-26 Tom Tromey <tom@tromey.com>
11695
11696 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11697 allocate_psymtab. Update documentation.
11698 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11699 allocate_psymtab. Do not use new.
11700 (allocate_psymtab): Use new. Update.
11701
6d94535f
TT
117022020-01-26 Tom Tromey <tom@tromey.com>
11703
11704 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11705 * psymtab.c (psym_print_stats): Update.
11706 * psympriv.h (struct partial_symtab) <readin,
11707 psymtabs_addrmap_supported, anonymous>: Now bool.
11708 * mdebugread.c (psymtab_to_symtab_1): Update.
11709 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11710 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11711 (process_full_comp_unit, process_full_type_unit): Update.
11712 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11713 * ctfread.c (psymtab_to_symtab): Update.
11714
6f17252b
TT
117152020-01-26 Tom Tromey <tom@tromey.com>
11716
11717 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11718 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11719 * psymtab.c (psymtab_storage): Delete psymtabs.
11720 (psymtab_storage::allocate_psymtab): Use new.
11721 (psymtab_storage::discard_psymtab): Use delete.
11722 * psympriv.h (struct partial_symtab): Add constructor and
11723 initializers.
11724
f6f1cebc
TT
117252020-01-26 Tom Tromey <tom@tromey.com>
11726
11727 * machoread.c: Do not include psympriv.h.
11728
e47e48f6
PW
117292020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11730
11731 * NEWS: Mention the new option and the set/show commands.
11732
a2fedca9
PW
117332020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11734
11735 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11736 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11737 (validate_exec_file): New variables, enums, functions.
11738 (exec_file_locate_attach, print_section_info): Style the filenames.
11739 (_initialize_exec): Install show_exec_file_mismatch_command and
11740 set_exec_file_mismatch_command.
11741 * gdbcore.h (validate_exec_file): Declare.
11742 * infcmd.c (attach_command): Call validate_exec_file.
11743 * remote.c ( remote_target::remote_add_inferior): Likewise.
11744
7ffa82e1
AB
117452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11746
11747 * frame.c (find_frame_sal): Move call to get_next_frame into more
11748 inner scope.
11749 * inline-frame.c (inilne_state) <inline_state>: Update argument
11750 types.
11751 (inilne_state) <skipped_symbol>: Rename to...
11752 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11753 (skip_inline_frames): Build vector of skipped symbols and use this
11754 to reate the inline_state.
11755 (inline_skipped_symbol): Add a comment and some assertions, fetch
11756 skipped symbol from the list.
11757
3d92a3e3
AB
117582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11759
11760 * buildsym.c (lte_is_less_than): Delete.
11761 (buildsym_compunit::end_symtab_with_blockvector): Create local
11762 lambda function to sort line table entries, and use
11763 std::stable_sort instead of std::sort.
11764 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11765 markers when looking for a previous line.
11766
94a72be7
AB
117672020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11768
11769 * dwarf2read.c (lnp_state_machine::record_line): Include
11770 end_sequence parameter in debug print out. Record the line if we
11771 are at an end_sequence marker even if it's not the start of a
11772 statement.
11773 * symmisc.c (maintenance_print_one_line_table): Print end of
11774 sequence markers with 'END' not '0'.
11775
53af73bf
PA
117762020-01-24 Pedro Alves <palves@redhat.com>
11777
11778 PR gdb/25410
11779 * thread.c (scoped_restore_current_thread::restore): Use
11780 switch_to_inferior_no_thread.
11781 * exec.c: Include "progspace-and-thread.h".
11782 (add_target_sections, remove_target_sections):
11783 scoped_restore_current_pspace_and_thread instead of
11784 scoped_restore_current_thread.
11785 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11786 and aspace to the inferior before calling clone_program_space.
11787 Remove stale comment.
11788
3050c6f4
CB
117892020-01-24 Christian Biesinger <cbiesinger@google.com>
11790
11791 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11792 (arm_netbsd_nat_target::fetch_registers): ...this.
11793 (arm_nbsd_nat_target::store_registers): Rename to...
11794 (arm_netbsd_nat_target::store_registers): ...this.
11795
73685c7e
CB
117962020-01-24 Christian Biesinger <cbiesinger@google.com>
11797
11798 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11799 register_t.
11800
89203d40
CB
118012020-01-24 Christian Biesinger <cbiesinger@google.com>
11802
11803 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11804 Update comment.
11805 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11806 Likewise.
11807 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11808 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11809 the correct replacement (iterate_over_regset_sections).
11810 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11811 Update comment.
11812
1ba1ac88
AB
118132020-01-24 Graham Markall <graham.markall@embecosm.com>
11814
11815 PR gdb/23718
11816 * gdb/python/python.c (execute_gdb_command): Call
11817 async_enable_stdin in catch block.
11818
f3364a6d
AB
118192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11820
11821 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11822 SWITCH_THRU_ALL_UIS.
11823
733d0a67
AB
118242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11825
11826 PR tui/9765
11827 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11828 comment, add extra parameter, and update to store previous symbol
11829 when appropriate.
11830 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11831 add extra parameter.
11832 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11833 remove unneeded parameter, add try/catch around gdb_print_insn,
11834 rewrite to add items to asm_lines vector.
11835 (tui_find_backward_disassembly_start_address): New function.
11836 (tui_find_disassembly_address): Updated throughout.
11837 (tui_disasm_window::set_contents): Update for changes to
11838 tui_disassemble.
11839 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11840 number of lines to scroll.
11841
b3b3bada
SM
118422020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11843
11844 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11845 (SECT_OFF_DATA): Likewise.
11846 (SECT_OFF_RODATA): Likewise.
11847 (SECT_OFF_TEXT): Likewise.
11848 (SECT_OFF_BSS): Likewise.
11849 (struct objfile) <text_section_offset, data_section_offset>: New
11850 methods.
11851 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11852 objfile::text_section_offset.
11853 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11854 * coffread.c (coff_symtab_read): Likewise.
11855 (enter_linenos): Likewise.
11856 (process_coff_symbol): Likewise.
11857 * ctfread.c (get_objfile_text_range): Likewise.
11858 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11859 Use objfile::data_section_offset.
11860 * dwarf2-frame.c (execute_cfa_program): Use
11861 objfile::text_section_offset.
11862 (dwarf2_frame_find_fde): Likewise.
11863 * dwarf2read.c (create_addrmap_from_index): Likewise.
11864 (create_addrmap_from_aranges): Likewise.
11865 (dw2_find_pc_sect_compunit_symtab): Likewise.
11866 (process_psymtab_comp_unit_reader): Likewise.
11867 (add_partial_symbol): Likewise.
11868 (add_partial_subprogram): Likewise.
11869 (process_full_comp_unit): Likewise.
11870 (read_file_scope): Likewise.
11871 (read_func_scope): Likewise.
11872 (read_lexical_block_scope): Likewise.
11873 (read_call_site_scope): Likewise.
11874 (dwarf2_rnglists_process): Likewise.
11875 (dwarf2_ranges_process): Likewise.
11876 (dwarf2_ranges_read): Likewise.
11877 (dwarf_decode_lines_1): Likewise.
11878 (new_symbol): Likewise.
11879 (dwarf2_fetch_die_loc_sect_off): Likewise.
11880 (dwarf2_per_cu_text_offset): Likewise.
11881 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11882 * hppa-tdep.c (read_unwind_info): Likewise.
11883 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11884 * psympriv.h (struct partial_symtab): Likewise.
11885 * psymtab.c (find_pc_sect_psymtab): Likewise.
11886 * solib-svr4.c (enable_break): Likewise.
11887 * stap-probe.c (relocate_address): Use
11888 objfile::data_section_offset.
11889 * xcoffread.c (enter_line_range): Use
11890 objfile::text_section_offset.
11891 (read_xcoff_symtab): Likewise.
11892
ab53f382
SM
118932020-01-23 Simon Marchi <simon.marchi@efficios.com>
11894
11895 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11896 declaration to narrower scopes.
11897
e7eee665
SM
118982020-01-23 Simon Marchi <simon.marchi@efficios.com>
11899
11900 * darwin-nat.h (struct darwin_exception_msg, enum
11901 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11902 Move up.
11903 (class darwin_nat_target) <wait_1, check_new_threads,
11904 decode_exception_message, decode_message, stop_inferior,
11905 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11906 * darwin-nat.c (darwin_check_new_threads): Rename to...
11907 (darwin_nat_target::check_new_threads): ... this.
11908 (darwin_suspend_inferior_it): Remove.
11909 (darwin_decode_exception_message): Rename to...
11910 (darwin_nat_target::decode_exception_message): ... this.
11911 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11912 (darwin_decode_message): Rename to...
11913 (darwin_nat_target::decode_message): ... this.
11914 (cancel_breakpoint): Rename to...
11915 (darwin_nat_target::cancel_breakpoint): ... this.
11916 (darwin_wait): Rename to...
11917 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11918 instead of iterate_over_inferiors.
11919 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11920 (darwin_stop_inferior): Rename to...
11921 (darwin_nat_target::stop_inferior): ... this.
11922 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11923 (darwin_init_thread_list): Rename to...
11924 (darwin_nat_target::init_thread_list): ... this.
11925 (darwin_ptrace_him): Rename to...
11926 (darwin_nat_target::ptrace_him): ... this.
11927 (darwin_nat_target::create_inferior): Pass lambda function to
11928 fork_inferior.
11929 (darwin_nat_target::detach): Call stop_inferior instead of
11930 darwin_stop_inferior.
11931 * fork-inferior.h (fork_inferior): Change init_trace_fun
11932 parameter to gdb::function_view.
11933 * fork-inferior.c (fork_inferior): Likewise.
11934
c162ed3e
HD
119352020-01-23 Hannes Domani <ssbssa@yahoo.de>
11936
11937 * i386-cygwin-tdep.c (core_process_module_section): Update.
11938 * windows-nat.c (struct lm_info_windows): Add text_offset.
11939 (windows_xfer_shared_libraries): Update.
11940 * windows-tdep.c (windows_xfer_shared_library):
11941 Add text_offset_cached argument.
11942 * windows-tdep.h (windows_xfer_shared_library): Update.
11943
a1237872
SM
119442020-01-21 Simon Marchi <simon.marchi@efficios.com>
11945
11946 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11947
b3ee6dd9
SM
119482020-01-21 Simon Marchi <simon.marchi@efficios.com>
11949
11950 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11951 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11952 replace with range-based for.
11953 (gdbsim_interrupt_inferior): Remove.
11954 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11955 with a range-based for. Inline code from
11956 gdbsim_interrupt_inferior.
11957
f9fac3c8
SM
119582020-01-21 Simon Marchi <simon.marchi@efficios.com>
11959
11960 * infrun.c (proceed): Fix indentation.
11961
f6474de9
TT
119622020-01-21 Tom Tromey <tromey@adacore.com>
11963
11964 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11965 * python/python.c (python_extension_ops): Update.
11966 (gdbpy_colorize): New function.
11967 * python/lib/gdb/__init__.py (colorize): New function.
11968 * extension.h (ext_lang_colorize): Declare.
11969 * extension.c (ext_lang_colorize): New function.
11970 * extension-priv.h (struct extension_language_ops) <colorize>: New
11971 member.
11972 * cli/cli-style.c (_initialize_cli_style): Update help text.
11973
f0c702d4
LM
119742020-01-21 Luis Machado <luis.machado@linaro.org>
11975
11976 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11977 <cond>: Change type to bool.
11978 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11979 (aarch64_displaced_step_cb): Likewise.
11980 (aarch64_displaced_step_tb): Likewise.
11981
1ab139e5
LM
119822020-01-21 Luis Machado <luis.machado@linaro.org>
11983
11984 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11985 output.
11986
0c271889
LM
119872020-01-21 Luis Machado <luis.machado@linaro.org>
11988
11989 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11990 <pc_adjust>: Adjust the documentation.
11991 (aarch64_displaced_step_fixup): Check if PC really moved before
11992 adjusting it.
11993
4d89c1c7
TT
119942020-01-19 Tom Tromey <tom@tromey.com>
11995
11996 * disasm.c (~gdb_disassembler): New destructor.
11997 (gdb_buffered_insn_length): Call disassemble_free_target.
11998 * disasm.h (class gdb_disassembler): Declare destructor. Use
11999 DISABLE_COPY_AND_ASSIGN.
12000
c0ab21c2
TT
120012020-01-19 Tom Tromey <tom@tromey.com>
12002
12003 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12004 (die_reader_func_ftype): Remove.
12005 (cutu_reader): New class.
12006 (dw2_get_file_names_reader): Remove "data" parameter.
12007 (dw2_get_file_names): Use cutu_reader.
12008 (create_debug_type_hash_table): Update.
12009 (read_cutu_die_from_dwo): Update comment.
12010 (lookup_dwo_unit): Add dwo_name parameter.
12011 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12012 die_reader_func_ftype and data parameters.
12013 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12014 Remove die_reader_func_ftype and data parameters.
12015 (~cutu_reader): New; from init_cutu_and_read_dies.
12016 (cutu_reader::cutu_reader): Rename from
12017 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12018 and data parameters.
12019 (init_cutu_and_read_dies_simple): Remove.
12020 (struct process_psymtab_comp_unit_data): Remove.
12021 (process_psymtab_comp_unit_reader): Remove data parameter; add
12022 want_partial_unit and pretend_language parameters.
12023 (process_psymtab_comp_unit): Use cutu_reader.
12024 (build_type_psymtabs_reader): Remove data parameter.
12025 (build_type_psymtabs_1): Use cutu_reader.
12026 (process_skeletonless_type_unit): Likewise.
12027 (load_partial_comp_unit_reader): Remove.
12028 (load_partial_comp_unit): Use cutu_reader.
12029 (load_full_comp_unit_reader): Remove.
12030 (load_full_comp_unit): Use cutu_reader.
12031 (struct create_dwo_cu_data): Remove.
12032 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12033 dwo_unit parameters.
12034 (create_cus_hash_table): Use cutu_reader.
12035 (struct dwarf2_read_addr_index_data): Remove.
12036 (dwarf2_read_addr_index_reader): Remove.
12037 (dwarf2_read_addr_index): Use cutu_reader.
12038 (read_signatured_type_reader): Remove.
12039 (read_signatured_type): Use cutu_reader.
12040
45bbae5c
TT
120412020-01-19 Tom Tromey <tom@tromey.com>
12042
12043 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12044 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12045 (tui_wrefresh): Declare.
12046 * tui/tui-wingeneral.c (suppress_output): New global.
12047 (tui_suppress_output, ~tui_suppress_output): New constructor and
12048 destructor.
12049 (tui_wrefresh): New function.
12050 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12051 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12052 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12053 method.
12054 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12055 tui_wrefresh.
12056 (tui_data_window::no_refresh): New method.
12057 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12058 (tui_reg_command): Use tui_suppress_output
12059 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12060 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12061 method.
12062 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12063
4f13c1c0
TT
120642020-01-19 Tom Tromey <tom@tromey.com>
12065
12066 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12067 Handle case where symtab is null.
12068
fa47e446
SM
120692020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12070
12071 * linux-fork.c (one_fork_p): Simplify.
12072
26f42329
SM
120732020-01-17 Simon Marchi <simon.marchi@efficios.com>
12074
12075 * top.c (struct qt_args): Remove.
12076 (kill_or_detach): Change return type to void, replace `void *`
12077 parameter with a proper one.
12078 (print_inferior_quit_action): Likewise.
12079 (quit_confirm): Use range-based for loop to iterate over inferiors.
12080 (quit_force): Likewise.
12081
a9ac81b1
SM
120822020-01-17 Simon Marchi <simon.marchi@efficios.com>
12083
12084 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12085 `void *` parameter with proper parameters.
12086 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12087 (print_one_inferior): Change return type to void, replace `void *`
12088 parameter with proper parameters.
12089 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12090 inferiors.
12091 (get_other_inferior): Remove.
12092 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12093 inferiors.
12094
788eca49
SM
120952020-01-17 Simon Marchi <simon.marchi@efficios.com>
12096
12097 * mi/mi-interp.c (report_initial_inferior): Remove.
12098 (mi_interp::init): Use range-based for to iterate over inferiors.
12099
d9bc85b6
SM
121002020-01-17 Simon Marchi <simon.marchi@efficios.com>
12101
12102 * python/py-inferior.c (build_inferior_list): Remove.
12103 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12104
40c94099
CB
121052020-01-16 Christian Biesinger <cbiesinger@google.com>
12106
12107 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12108 (btrace_stitch_trace): Likewise.
12109 * charset.c (intermediate_encoding): Likewise (vaild).
12110 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12111 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12112 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12113
e0cdfe3c
HD
121142020-01-16 Hannes Domani <ssbssa@yahoo.de>
12115
12116 * windows-tdep.c (windows_get_tlb_type):
12117 Add rtl_user_process_parameters type.
12118
790f1718 121192020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12120 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12121
12122 PR build/24805
12123 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12124 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12125 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12126 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12127 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12128 (ps_plog): Redeclare exported functions with default visibility.
12129
3112ed97
NA
121302020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12131
12132 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12133 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12134
8dc3273e
SM
121352020-01-15 Simon Marchi <simon.marchi@efficios.com>
12136
12137 * infcmd.c (post_create_inferior): Use get_thread_regcache
12138 instead of get_current_regcache.
12139
ff47f4f0
TT
121402020-01-14 Tom Tromey <tom@tromey.com>
12141
12142 PR symtab/12535:
12143 * python/python.c (gdbpy_decode_line): Treat empty string the same
12144 as no argument.
12145
975f45b7
TT
121462020-01-14 Tom Tromey <tom@tromey.com>
12147
12148 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12149
25e57356
TT
121502020-01-14 Tom Tromey <tom@tromey.com>
12151
12152 * nat/linux-btrace.c: Don't include <config.h>.
12153 * nat/linux-ptrace.c: Don't include <config.h>.
12154 * nat/x86-linux-dregs.c: Don't include <config.h>.
12155
05ea2a05
TT
121562020-01-14 Tom Tromey <tom@tromey.com>
12157
12158 * configure: Rebuild.
12159 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12160
01027315
TT
121612020-01-14 Tom Tromey <tom@tromey.com>
12162
12163 * nat/x86-linux-dregs.c: Include configh.h.
12164 * nat/linux-ptrace.c: Include configh.h.
12165 * nat/linux-btrace.c: Include configh.h.
12166 * defs.h: Include config.h, bfd.h.
12167 * configure.ac: Don't source common.host.
12168 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12169 * configure: Rebuild.
12170 * acinclude.m4: Update path.
12171 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12172 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12173 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12174 (CLIBS): Add LIBSUPPORT.
12175 (CDEPS): Likewise.
12176 (COMMON_SFILES): Remove gdbsupport files.
12177 (HFILES_NO_SRCDIR): Likewise.
12178 (stamp-version): Update path to create-version.sh.
12179 (ALLDEPFILES): Remove gdbsupport files.
12180
b2ceabe8
TT
121812020-01-14 Tom Tromey <tom@tromey.com>
12182
12183 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12184 USE_WIN32API when needed.
12185 * configure.ac (USE_WIN32API): Don't define.
12186 (WIN32LIBS): Use WIN32APILIBS.
12187 * configure: Rebuild.
12188
25c51f71
TT
121892020-01-14 Tom Tromey <tom@tromey.com>
12190
12191 * configure: Rebuild.
12192 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12193
717c684d
BE
121942020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12195
12196 * skip.c (skip_function_command): Make skip w/o arguments use the
12197 name of the inlined function if pc is inside any inlined function.
12198
7da6a5b9
LM
121992020-01-14 Luis Machado <luis.machado@linaro.org>
12200
12201 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12202 * infrun.c (resume_1): Likewise.
12203 (handle_inferior_event): Remove stale comment.
12204 * linux-nat.c (linux_nat_target::resume): Update comments.
12205 (save_stop_reason): Likewise.
12206 (linux_nat_filter_event): Likewise.
12207 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12208
44e4c775
AB
122092020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12210
12211 * elfread.c (record_minimal_symbol): Set section index to 0 for
12212 non-allocatable sections.
12213
18a8505e
AT
12214
122152020-01-13 Ali Tamur <tamur@google.com>
12216
12217 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12218 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12219 to gdb::optional. Update comments.
12220 (dwo_file): Update comments.
12221 (read_attribute): Update API to take an additional out parameter,
12222 need_reprocess. This is used to mark attributes that need other
12223 attributes (e.g. str_offsets_base) for correct computation which may not
12224 have been read yet.
12225 (read_attribute_reprocess): New function declaration.
12226 (read_addr_index): Likewise.
12227 (read_dwo_str_index): Likewise.
12228 (read_stub_str_index): Likewise.
12229 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12230 (lookup_addr_base): New function definition.
12231 (lookup_ranges_base): Likewise.
12232 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12233 lookup_ranges_base.
12234 (init_cutu_and_read_dies): Update comments.
12235 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12236 unit. This is used to inherit parent's str_offsets_base and addr_base.
12237 Update comments.
12238 (init_cutu_and_read_dies_simple): Reflect API changes.
12239 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12240 (create_cus_hash_table): Change API to take parent compile unit.
12241 Reflect API changes.
12242 (open_and_init_dwo_file): Reflect API changes.
12243 (dwarf2_get_pc_bounds): Update comments.
12244 (dwarf2_record_block_ranges): Likewise.
12245 (read_full_die_1): Change implementation to reprocess attributes that
12246 need str_offsets_base and addr_base.
12247 (partial_die_info::read): Likewise.
12248 (read_attribute_reprocess): New function definition.
12249 (read_attribute_value): Change API to take an additional out parameter,
12250 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12251 when a non-dwo compile unit has index based attributes.
12252 (read_attribute): Reflect API changes.
12253 (read_addr_index_1): Reflect API changes. Update comments.
12254 (dwarf2_read_addr_index_data): Reflect API changes.
12255 (dwarf2_read_addr_index): Likewise.
12256 (read_str_index): Change API and implementation. This becomes a helper
12257 to be used by the new string index related methods. Update error
12258 message and comments.
12259 (read_dwo_str_index): New function definition.
12260 (read_stub_str_index): Likewise.
12261 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12262 * symfile.h (dwarf2_debug_sections): Likewise.
12263 * xcoffread.c (dwarf2_debug_sections): Likewise.
12264
0cac9354
SM
122652020-01-13 Simon Marchi <simon.marchi@efficios.com>
12266
12267 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12268 core_reg_sect type to gdb_byte *.
12269 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12270 * cris-tdep.c (fetch_core_registers): Likewise.
12271 * corelow.c (core_target::get_core_register_section): Change
12272 type of `contents` to gdb::byte_vector.
12273
9a6d629c
AB
122742020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12275
12276 * tui/tui-wingeneral.c (box_win): Position the title in the center
12277 of the border.
12278
d8b2f9e3
SM
122792020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12280
12281 * corelow.c (core_target::get_core_register_section): Use
12282 std::vector instead of alloca.
12283
bb564c58
SM
122842020-01-13 Simon Marchi <simon.marchi@efficios.com>
12285
12286 * warning.m4: Add -Wmissing-declarations to build_warnings.
12287 * configure: Re-generate.
12288
6b366111
SM
122892020-01-13 Simon Marchi <simon.marchi@efficios.com>
12290
12291 * python/python.c (init__gdb_module): Add declaration.
12292
6c265988
SM
122932020-01-13 Simon Marchi <simon.marchi@efficios.com>
12294
12295 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12296 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12297 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12298 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12299 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12300 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12301 * ada-exp.y (_initialize_ada_exp): Add declaration.
12302 * ada-lang.c (_initialize_ada_language): Add declaration.
12303 * ada-tasks.c (_initialize_tasks): Add declaration.
12304 * agent.c (_initialize_agent): Add declaration.
12305 * aix-thread.c (_initialize_aix_thread): Add declaration.
12306 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12307 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12308 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12309 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12310 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12311 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12312 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12313 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12314 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12315 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12316 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12317 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12318 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12319 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12320 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12321 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12322 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12323 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12324 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12325 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12326 * annotate.c (_initialize_annotate): Add declaration.
12327 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12328 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12329 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12330 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12331 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12332 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12333 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12334 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12335 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12336 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12337 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12338 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12339 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12340 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12341 * auto-load.c (_initialize_auto_load): Add declaration.
12342 * auxv.c (_initialize_auxv): Add declaration.
12343 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12344 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12345 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12346 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12347 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12348 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12349 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12350 * breakpoint.c (_initialize_breakpoint): Add declaration.
12351 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12352 * btrace.c (_initialize_btrace): Add declaration.
12353 * charset.c (_initialize_charset): Add declaration.
12354 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12355 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12356 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12357 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12358 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12359 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12360 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12361 * coffread.c (_initialize_coffread): Add declaration.
12362 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12363 * compile/compile.c (_initialize_compile): Add declaration.
12364 * complaints.c (_initialize_complaints): Add declaration.
12365 * completer.c (_initialize_completer): Add declaration.
12366 * copying.c (_initialize_copying): Add declaration.
12367 * corefile.c (_initialize_core): Add declaration.
12368 * corelow.c (_initialize_corelow): Add declaration.
12369 * cp-abi.c (_initialize_cp_abi): Add declaration.
12370 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12371 * cp-support.c (_initialize_cp_support): Add declaration.
12372 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12373 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12374 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12375 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12376 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12377 * ctfread.c (_initialize_ctfread): Add declaration.
12378 * d-lang.c (_initialize_d_language): Add declaration.
12379 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12380 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12381 * dbxread.c (_initialize_dbxread): Add declaration.
12382 * dcache.c (_initialize_dcache): Add declaration.
12383 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12384 * disasm.c (_initialize_disasm): Add declaration.
12385 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12386 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12387 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12388 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12389 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12390 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12391 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12392 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12393 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12394 * elfread.c (_initialize_elfread): Add declaration.
12395 * exec.c (_initialize_exec): Add declaration.
12396 * extension.c (_initialize_extension): Add declaration.
12397 * f-lang.c (_initialize_f_language): Add declaration.
12398 * f-valprint.c (_initialize_f_valprint): Add declaration.
12399 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12400 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12401 * filesystem.c (_initialize_filesystem): Add declaration.
12402 * findcmd.c (_initialize_mem_search): Add declaration.
12403 * findvar.c (_initialize_findvar): Add declaration.
12404 * fork-child.c (_initialize_fork_child): Add declaration.
12405 * frame-base.c (_initialize_frame_base): Add declaration.
12406 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12407 * frame.c (_initialize_frame): Add declaration.
12408 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12409 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12410 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12411 * gcore.c (_initialize_gcore): Add declaration.
12412 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12413 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12414 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12415 * gdbarch.c (_initialize_gdbarch): Add declaration.
12416 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12417 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12418 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12419 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12420 * go-lang.c (_initialize_go_language): Add declaration.
12421 * go32-nat.c (_initialize_go32_nat): Add declaration.
12422 * guile/guile.c (_initialize_guile): Add declaration.
12423 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12424 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12425 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12426 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12427 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12428 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12429 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12430 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12431 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12432 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12433 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12434 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12435 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12436 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12437 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12438 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12439 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12440 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12441 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12442 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12443 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12444 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12445 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12446 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12447 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12448 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12449 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12450 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12451 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12452 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12453 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12454 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12455 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12456 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12457 * infcall.c (_initialize_infcall): Add declaration.
12458 * infcmd.c (_initialize_infcmd): Add declaration.
12459 * inflow.c (_initialize_inflow): Add declaration.
12460 * infrun.c (_initialize_infrun): Add declaration.
12461 * interps.c (_initialize_interpreter): Add declaration.
12462 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12463 * jit.c (_initialize_jit): Add declaration.
12464 * language.c (_initialize_language): Add declaration.
12465 * linux-fork.c (_initialize_linux_fork): Add declaration.
12466 * linux-nat.c (_initialize_linux_nat): Add declaration.
12467 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12468 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12469 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12470 * m2-lang.c (_initialize_m2_language): Add declaration.
12471 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12472 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12473 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12474 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12475 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12476 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12477 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12478 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12479 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12480 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12481 * machoread.c (_initialize_machoread): Add declaration.
12482 * macrocmd.c (_initialize_macrocmd): Add declaration.
12483 * macroscope.c (_initialize_macroscope): Add declaration.
12484 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12485 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12486 * maint.c (_initialize_maint_cmds): Add declaration.
12487 * mdebugread.c (_initialize_mdebugread): Add declaration.
12488 * memattr.c (_initialize_mem): Add declaration.
12489 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12490 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12491 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12492 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12493 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12494 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12495 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12496 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12497 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12498 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12499 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12500 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12501 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12502 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12503 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12504 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12505 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12506 * mipsread.c (_initialize_mipsread): Add declaration.
12507 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12508 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12509 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12510 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12511 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12512 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12513 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12514 * nto-procfs.c (_initialize_procfs): Add declaration.
12515 * objc-lang.c (_initialize_objc_language): Add declaration.
12516 * observable.c (_initialize_observer): Add declaration.
12517 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12518 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12519 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12520 * osabi.c (_initialize_gdb_osabi): Add declaration.
12521 * osdata.c (_initialize_osdata): Add declaration.
12522 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12523 * parse.c (_initialize_parse): Add declaration.
12524 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12525 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12526 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12527 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12528 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12529 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12530 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12531 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12532 * printcmd.c (_initialize_printcmd): Add declaration.
12533 * probe.c (_initialize_probe): Add declaration.
12534 * proc-api.c (_initialize_proc_api): Add declaration.
12535 * proc-events.c (_initialize_proc_events): Add declaration.
12536 * proc-service.c (_initialize_proc_service): Add declaration.
12537 * procfs.c (_initialize_procfs): Add declaration.
12538 * producer.c (_initialize_producer): Add declaration.
12539 * psymtab.c (_initialize_psymtab): Add declaration.
12540 * python/python.c (_initialize_python): Add declaration.
12541 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12542 * record-btrace.c (_initialize_record_btrace): Add declaration.
12543 * record-full.c (_initialize_record_full): Add declaration.
12544 * record.c (_initialize_record): Add declaration.
12545 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12546 * regcache.c (_initialize_regcache): Add declaration.
12547 * reggroups.c (_initialize_reggroup): Add declaration.
12548 * remote-notif.c (_initialize_notif): Add declaration.
12549 * remote-sim.c (_initialize_remote_sim): Add declaration.
12550 * remote.c (_initialize_remote): Add declaration.
12551 * reverse.c (_initialize_reverse): Add declaration.
12552 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12553 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12554 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12555 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12556 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12557 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12558 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12559 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12560 Add declaration.
12561 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12562 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12563 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12564 * rust-exp.y (_initialize_rust_exp): Add declaration.
12565 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12566 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12567 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12568 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12569 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12570 * score-tdep.c (_initialize_score_tdep): Add declaration.
12571 * ser-go32.c (_initialize_ser_dos): Add declaration.
12572 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12573 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12574 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12575 * ser-uds.c (_initialize_ser_socket): Add declaration.
12576 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12577 * serial.c (_initialize_serial): Add declaration.
12578 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12579 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12580 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12581 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12582 * skip.c (_initialize_step_skip): Add declaration.
12583 * sol-thread.c (_initialize_sol_thread): Add declaration.
12584 * solib-aix.c (_initialize_solib_aix): Add declaration.
12585 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12586 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12587 * solib-frv.c (_initialize_frv_solib): Add declaration.
12588 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12589 * solib-target.c (_initialize_solib_target): Add declaration.
12590 * solib.c (_initialize_solib): Add declaration.
12591 * source-cache.c (_initialize_source_cache): Add declaration.
12592 * source.c (_initialize_source): Add declaration.
12593 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12594 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12595 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12596 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12597 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12598 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12599 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12600 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12601 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12602 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12603 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12604 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12605 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12606 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12607 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12608 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12609 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12610 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12611 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12612 * stabsread.c (_initialize_stabsread): Add declaration.
12613 * stack.c (_initialize_stack): Add declaration.
12614 * stap-probe.c (_initialize_stap_probe): Add declaration.
12615 * std-regs.c (_initialize_frame_reg): Add declaration.
12616 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12617 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12618 * symfile.c (_initialize_symfile): Add declaration.
12619 * symmisc.c (_initialize_symmisc): Add declaration.
12620 * symtab.c (_initialize_symtab): Add declaration.
12621 * target.c (_initialize_target): Add declaration.
12622 * target-connection.c (_initialize_target_connection): Add
12623 declaration.
12624 * target-dcache.c (_initialize_target_dcache): Add declaration.
12625 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12626 * thread.c (_initialize_thread): Add declaration.
12627 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12628 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12629 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12630 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12631 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12632 * tracectf.c (_initialize_ctf): Add declaration.
12633 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12634 * tracefile.c (_initialize_tracefile): Add declaration.
12635 * tracepoint.c (_initialize_tracepoint): Add declaration.
12636 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12637 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12638 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12639 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12640 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12641 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12642 * tui/tui.c (_initialize_tui): Add declaration.
12643 * typeprint.c (_initialize_typeprint): Add declaration.
12644 * ui-style.c (_initialize_ui_style): Add declaration.
12645 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12646 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12647 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12648 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12649 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12650 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12651 * unittests/filtered_iterator-selftests.c
12652 (_initialize_filtered_iterator_selftests): Add declaration.
12653 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12654 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12655 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12656 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12657 * unittests/main-thread-selftests.c
12658 (_initialize_main_thread_selftests): Add declaration.
12659 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12660 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12661 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12662 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12663 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12664 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12665 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12666 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12667 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12668 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12669 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12670 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12671 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12672 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12673 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12674 declaration.
12675 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12676 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12677 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12678 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12679 * user-regs.c (_initialize_user_regs): Add declaration.
12680 * utils.c (_initialize_utils): Add declaration.
12681 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12682 * valops.c (_initialize_valops): Add declaration.
12683 * valprint.c (_initialize_valprint): Add declaration.
12684 * value.c (_initialize_values): Add declaration.
12685 * varobj.c (_initialize_varobj): Add declaration.
12686 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12687 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12688 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12689 * windows-nat.c (_initialize_windows_nat): Add declaration.
12690 (_initialize_check_for_gdb_ini): Add declaration.
12691 (_initialize_loadable): Add declaration.
12692 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12693 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12694 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12695 * xcoffread.c (_initialize_xcoffread): Add declaration.
12696 * xml-support.c (_initialize_xml_support): Add declaration.
12697 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12698 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12699 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12700 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12701
e2de1eec
SM
127022020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12703
12704 * regformats/regdat.sh: Generate declaration for init function.
12705
e0037b4c
SM
127062020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12707
12708 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12709 up.
12710 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12711 close_one_inferior>: New methods.
12712 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12713 pass down target to find_inferior_pid.
12714 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12715 Pass down target to find_inferior_ptid.
12716 (gdbsim_target::create_inferior): Pass down target to
12717 add_thread_silent.
12718 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12719 target down to find_inferior_ptid and switch_to_thread.
12720 (gdbsim_target::close): Update to call close_one_inferior.
12721 (struct resume_data): Remove.
12722 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12723 directly, rather than through a void pointer.
12724 (gdbsim_target::resume): Update to call resume_one_inferior.
12725
58920b5b
SM
127262020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12727
12728 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12729
4ec89149
PA
127302020-01-12 Pedro Alves <palves@redhat.com>
12731
12732 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12733 directly for the current inferior instead of
12734 discard_all_inferiors.
12735 (discard_all_inferiors): Delete.
12736
7c392d1d
TT
127372020-01-11 Tom Tromey <tom@tromey.com>
12738
12739 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12740 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12741 deprecated_safe_get_selected_frame.
12742
d9ebdab7
TBA
127432020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12744
12745 * inferior.c (print_inferior): Switch inferior before printing it.
12746
f3c469b9
PA
127472020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12748 Pedro Alves <palves@redhat.com>
12749
12750 * progspace-and-thread.c (switch_to_program_space_and_thread):
12751 Assert there's an inferior for PSPACE. Use
12752 switch_to_inferior_no_thread to switch the inferior too.
12753 * progspace.c (program_space::~program_space): Call
12754 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12755 (program_space::free_all_objfiles): Don't call clear_symtab_users
12756 here.
12757 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12758
65c574f6
PA
127592020-01-10 Pedro Alves <palves@redhat.com>
12760
12761 * NEWS: Mention multi-target debugging, "info connections", and
12762 "add-inferior -no-connection".
12763
2f4fcf00
PA
127642020-01-10 Pedro Alves <palves@redhat.com>
12765
12766 * infrun.c: Include "target-connection.h".
12767 (check_multi_target_resumption): New.
12768 (proceed): Call it.
12769 * target-connection.c (make_target_connection_string): Make
12770 extern.
12771 * target-connection.h (make_target_connection_string): Declare.
12772
121b3efd
PA
127732020-01-10 Pedro Alves <palves@redhat.com>
12774
12775 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12776 * inferior.c (uiout_field_connection): New function.
12777 (print_inferior): Add new "connection-id" column.
12778 (add_inferior_command): Show connection number/string of added
12779 inferior.
12780 * process-stratum-target.h
12781 (process_stratum_target::connection_string): New virtual method.
12782 (process_stratum_target::connection_number): New field.
12783 * remote.c (remote_target::connection_string): New override.
12784 * target-connection.c: New file.
12785 * target-connection.h: New file.
12786 * target.c (decref_target): Remove process_stratum targets from
12787 the connection list.
12788 (target_stack::push): Add process_stratum targets to the
12789 connection list.
12790
4f837581
PA
127912020-01-10 Pedro Alves <palves@redhat.com>
12792
12793 Revert:
12794 2016-04-12 Pedro Alves <palves@redhat.com>
12795 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12796 Remove references to name.
12797 * serial.h (struct serial) <name>: Delete.
12798
f4ec508e
PA
127992020-01-10 Pedro Alves <palves@redhat.com>
12800
12801 * gdbarch-selftests.c (register_to_value_test): Remove "target
12802 already pushed" check.
12803
5b6d1e4f
PA
128042020-01-10 Pedro Alves <palves@redhat.com>
12805 John Baldwin <jhb@FreeBSD.org>
12806
12807 * aarch64-linux-nat.c
12808 (aarch64_linux_nat_target::thread_architecture): Adjust.
12809 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12810 (task_command_1): Likewise.
12811 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12812 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12813 (aix_thread_target::store_registers)
12814 (aix_thread_target::thread_alive): Adjust.
12815 * amd64-fbsd-tdep.c: Include "inferior.h".
12816 (amd64fbsd_get_thread_local_address): Pass down target.
12817 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12818 thread's gdbarch instead of target_gdbarch.
12819 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12820 get_last_target_status.
12821 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12822 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12823 inferiors.
12824 (update_inserted_breakpoint_locations): Skip if inferiors with no
12825 execution.
12826 (update_global_location_list): When handling moribund locations,
12827 find representative inferior for location's pspace, and use thread
12828 count of its process_stratum target.
12829 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12830 * bsd-uthread.c (bsd_uthread_target::wait): Use
12831 as_process_stratum_target and adjust thread_change_ptid and
12832 add_thread calls.
12833 (bsd_uthread_target::update_thread_list): Use
12834 as_process_stratum_target and adjust find_thread_ptid,
12835 thread_change_ptid and add_thread calls.
12836 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12837 find_thread_ptid call.
12838 * corelow.c (add_to_thread_list): Adjust add_thread call.
12839 (core_target_open): Adjust add_thread_silent and thread_count
12840 calls.
12841 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12842 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12843 * event-top.c (async_disconnect): Pop targets from all inferiors.
12844 * exec.c (add_target_sections): Push exec target on all inferiors
12845 sharing the program space.
12846 (remove_target_sections): Remove the exec target from all
12847 inferiors sharing the program space.
12848 (exec_on_vfork): New.
12849 * exec.h (exec_on_vfork): Declare.
12850 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12851 Pass it down.
12852 (fbsd_nat_target::update_thread_list): Adjust.
12853 (fbsd_nat_target::resume): Adjust.
12854 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12855 down.
12856 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12857 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12858 get_thread_arch_regcache call.
12859 * fork-child.c (gdb_startup_inferior): Pass target down to
12860 startup_inferior and set_executing.
12861 * gdbthread.h (struct process_stratum_target): Forward declare.
12862 (add_thread, add_thread_silent, add_thread_with_info)
12863 (in_thread_list): Add process_stratum_target parameter.
12864 (find_thread_ptid(inferior*, ptid_t)): New overload.
12865 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12866 parameter.
12867 (all_threads()): Delete overload.
12868 (all_threads, all_non_exited_threads): Add process_stratum_target
12869 parameter.
12870 (all_threads_safe): Use brace initialization.
12871 (thread_count): Add process_stratum_target parameter.
12872 (set_resumed, set_running, set_stop_requested, set_executing)
12873 (threads_are_executing, finish_thread_state): Add
12874 process_stratum_target parameter.
12875 (switch_to_thread): Use is_current_thread.
12876 * i386-fbsd-tdep.c: Include "inferior.h".
12877 (i386fbsd_get_thread_local_address): Pass down target.
12878 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12879 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12880 have_inferiors check.
12881 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12882 (inf_ptrace_target::attach): Adjust.
12883 * infcall.c (run_inferior_call): Adjust.
12884 * infcmd.c (run_command_1): Pass target to
12885 scoped_finish_thread_state.
12886 (proceed_thread_callback): Skip inferiors with no execution.
12887 (continue_command): Rename 'all_threads' local to avoid hiding
12888 'all_threads' function. Adjust get_last_target_status call.
12889 (prepare_one_step): Adjust set_running call.
12890 (signal_command): Use user_visible_resume_target. Compare thread
12891 pointers instead of inferior_ptid.
12892 (info_program_command): Adjust to pass down target.
12893 (attach_command): Mark target's 'thread_executing' flag.
12894 (stop_current_target_threads_ns): New, factored out from ...
12895 (interrupt_target_1): ... this. Switch inferior before making
12896 target calls.
12897 * inferior-iter.h
12898 (struct all_inferiors_iterator, struct all_inferiors_range)
12899 (struct all_inferiors_safe_range)
12900 (struct all_non_exited_inferiors_range): Filter on
12901 process_stratum_target too. Remove explicit.
12902 * inferior.c (inferior::inferior): Push dummy target on target
12903 stack.
12904 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12905 Add process_stratum_target parameter, and pass it down.
12906 (have_live_inferiors): Adjust.
12907 (switch_to_inferior_and_push_target): New.
12908 (add_inferior_command, clone_inferior_command): Handle
12909 "-no-connection" parameter. Use
12910 switch_to_inferior_and_push_target.
12911 (_initialize_inferior): Mention "-no-connection" option in
12912 the help of "add-inferior" and "clone-inferior" commands.
12913 * inferior.h: Include "process-stratum-target.h".
12914 (interrupt_target_1): Use bool.
12915 (struct inferior) <push_target, unpush_target, target_is_pushed,
12916 find_target_beneath, top_target, process_target, target_at,
12917 m_stack>: New.
12918 (discard_all_inferiors): Delete.
12919 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12920 (all_inferiors, all_non_exited_inferiors): Add
12921 process_stratum_target parameter.
12922 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12923 (target_last_proc_target): New global.
12924 (follow_fork_inferior): Push target on new inferior. Pass target
12925 to add_thread_silent. Call exec_on_vfork. Handle target's
12926 reference count.
12927 (follow_fork): Adjust get_last_target_status call. Also consider
12928 target.
12929 (follow_exec): Push target on new inferior.
12930 (struct execution_control_state) <target>: New field.
12931 (user_visible_resume_target): New.
12932 (do_target_resume): Call target_async.
12933 (resume_1): Set target's threads_executing flag. Consider resume
12934 target.
12935 (commit_resume_all_targets): New.
12936 (proceed): Also consider resume target. Skip threads of inferiors
12937 with no execution. Commit resumtion in all targets.
12938 (start_remote): Pass current inferior to wait_for_inferior.
12939 (infrun_thread_stop_requested): Consider target as well. Pass
12940 thread_info pointer to clear_inline_frame_state instead of ptid.
12941 (infrun_thread_thread_exit): Consider target as well.
12942 (random_pending_event_thread): New inferior parameter. Use it.
12943 (do_target_wait): Rename to ...
12944 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12945 down.
12946 (threads_are_resumed_pending_p, do_target_wait): New.
12947 (prepare_for_detach): Adjust calls.
12948 (wait_for_inferior): New inferior parameter. Handle it. Use
12949 do_target_wait_1 instead of do_target_wait.
12950 (fetch_inferior_event): Adjust. Switch to representative
12951 inferior. Pass target down.
12952 (set_last_target_status): Add process_stratum_target parameter.
12953 Save target in global.
12954 (get_last_target_status): Add process_stratum_target parameter and
12955 handle it.
12956 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12957 (context_switch): Check inferior_ptid == null_ptid before calling
12958 inferior_thread().
12959 (get_inferior_stop_soon): Pass down target.
12960 (wait_one): Rename to ...
12961 (poll_one_curr_target): ... this.
12962 (struct wait_one_event): New.
12963 (wait_one): New.
12964 (stop_all_threads): Adjust.
12965 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12966 event's target.
12967 (switch_back_to_stepped_thread): Also consider target.
12968 (print_stop_event): Update.
12969 (normal_stop): Update. Also consider the resume target.
12970 * infrun.h (wait_for_inferior): Remove declaration.
12971 (user_visible_resume_target): New declaration.
12972 (get_last_target_status, set_last_target_status): New
12973 process_stratum_target parameter.
12974 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12975 process_stratum_target parameter, and use it.
12976 (clear_inline_frame_state (thread_info*)): New.
12977 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12978 process_stratum_target parameter.
12979 (clear_inline_frame_state (thread_info*)): Declare.
12980 * linux-fork.c (delete_checkpoint_command): Pass target down to
12981 find_thread_ptid.
12982 (checkpoint_command): Adjust.
12983 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12984 instead of just tweaking inferior_ptid.
12985 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12986 (exit_lwp): Pass target down to find_thread_ptid.
12987 (attach_proc_task_lwp_callback): Pass target down to
12988 add_thread/set_running/set_executing.
12989 (linux_nat_target::attach): Pass target down to
12990 thread_change_ptid.
12991 (get_detach_signal): Pass target down to find_thread_ptid.
12992 Consider last target status's target.
12993 (linux_resume_one_lwp_throw, resume_lwp)
12994 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12995 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12996 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12997 (linux_nat_target::async_wait_fd): New.
12998 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12999 target down.
13000 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13001 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13002 * linux-thread-db.c (struct thread_db_info::process_target): New
13003 field.
13004 (add_thread_db_info): Save target.
13005 (get_thread_db_info): New process_stratum_target parameter. Also
13006 match target.
13007 (delete_thread_db_info): New process_stratum_target parameter.
13008 Also match target.
13009 (thread_from_lwp): Adjust to pass down target.
13010 (thread_db_notice_clone): Pass down target.
13011 (check_thread_db_callback): Pass down target.
13012 (try_thread_db_load_1): Always push the thread_db target.
13013 (try_thread_db_load, record_thread): Pass target down.
13014 (thread_db_target::detach): Pass target down. Always unpush the
13015 thread_db target.
13016 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13017 target down. Always unpush the thread_db target.
13018 (find_new_threads_callback, thread_db_find_new_threads_2)
13019 (thread_db_target::update_thread_list): Pass target down.
13020 (thread_db_target::pid_to_str): Pass current inferior down.
13021 (thread_db_target::get_thread_local_address): Pass target down.
13022 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13023 target down.
13024 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13025 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13026 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13027 (procfs_init_inferior): Rename to ...
13028 (procfs_target::procfs_init_inferior): ... this and adjust.
13029 (procfs_target::create_inferior, procfs_notice_thread)
13030 (procfs_do_thread_registers): Adjust.
13031 * ppc-fbsd-tdep.c: Include "inferior.h".
13032 (ppcfbsd_get_thread_local_address): Pass down target.
13033 * proc-service.c (ps_xfer_memory): Switch current inferior and
13034 program space as well.
13035 (get_ps_regcache): Pass target down.
13036 * process-stratum-target.c
13037 (process_stratum_target::thread_address_space)
13038 (process_stratum_target::thread_architecture): Pass target down.
13039 * process-stratum-target.h
13040 (process_stratum_target::threads_executing): New field.
13041 (as_process_stratum_target): New.
13042 * ravenscar-thread.c
13043 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13044 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13045 down.
13046 * record-btrace.c (record_btrace_target::info_record): Adjust.
13047 (record_btrace_target::record_method)
13048 (record_btrace_target::record_is_replaying)
13049 (record_btrace_target::fetch_registers)
13050 (get_thread_current_frame_id, record_btrace_target::resume)
13051 (record_btrace_target::wait, record_btrace_target::stop): Pass
13052 target down.
13053 * record-full.c (record_full_wait_1): Switch to event thread.
13054 Pass target down.
13055 * regcache.c (regcache::regcache)
13056 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13057 process_stratum_target parameter and handle it.
13058 (current_thread_target): New global.
13059 (get_thread_regcache): Add process_stratum_target parameter and
13060 handle it. Switch inferior before calling target method.
13061 (get_thread_regcache): Pass target down.
13062 (get_thread_regcache_for_ptid): Pass target down.
13063 (registers_changed_ptid): Add process_stratum_target parameter and
13064 handle it.
13065 (registers_changed_thread, registers_changed): Pass target down.
13066 (test_get_thread_arch_aspace_regcache): New.
13067 (current_regcache_test): Define a couple local test_target_ops
13068 instances and use them for testing.
13069 (readwrite_regcache): Pass process_stratum_target parameter.
13070 (cooked_read_test, cooked_write_test): Pass mock_target down.
13071 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13072 (get_thread_arch_aspace_regcache): Add process_stratum_target
13073 parameter.
13074 (regcache::target): New method.
13075 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13076 (regcache::registers_changed_ptid): Add process_stratum_target
13077 parameter.
13078 (regcache::m_target): New field.
13079 (registers_changed_ptid): Add process_stratum_target parameter.
13080 * remote.c (remote_state::supports_vCont_probed): New field.
13081 (remote_target::async_wait_fd): New method.
13082 (remote_unpush_and_throw): Add remote_target parameter.
13083 (get_current_remote_target): Adjust.
13084 (remote_target::remote_add_inferior): Push target.
13085 (remote_target::remote_add_thread)
13086 (remote_target::remote_notice_new_inferior)
13087 (get_remote_thread_info): Pass target down.
13088 (remote_target::update_thread_list): Skip threads of inferiors
13089 bound to other targets. (remote_target::close): Don't discard
13090 inferiors. (remote_target::add_current_inferior_and_thread)
13091 (remote_target::process_initial_stop_replies)
13092 (remote_target::start_remote)
13093 (remote_target::remote_serial_quit_handler): Pass down target.
13094 (remote_target::remote_unpush_target): New remote_target
13095 parameter. Unpush the target from all inferiors.
13096 (remote_target::remote_unpush_and_throw): New remote_target
13097 parameter. Pass it down.
13098 (remote_target::open_1): Check whether the current inferior has
13099 execution instead of checking whether any inferior is live. Pass
13100 target down.
13101 (remote_target::remote_detach_1): Pass down target. Use
13102 remote_unpush_target.
13103 (extended_remote_target::attach): Pass down target.
13104 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13105 (remote_target::append_resumption): Pass down target.
13106 (remote_target::append_pending_thread_resumptions)
13107 (remote_target::remote_resume_with_hc, remote_target::resume)
13108 (remote_target::commit_resume): Pass down target.
13109 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13110 (remote_target::interrupt_query)
13111 (remote_target::remove_new_fork_children)
13112 (remote_target::check_pending_events_prevent_wildcard_vcont)
13113 (remote_target::remote_parse_stop_reply)
13114 (remote_target::process_stop_reply): Pass down target.
13115 (first_remote_resumed_thread): New remote_target parameter. Pass
13116 it down.
13117 (remote_target::wait_as): Pass down target.
13118 (unpush_and_perror): New remote_target parameter. Pass it down.
13119 (remote_target::readchar, remote_target::remote_serial_write)
13120 (remote_target::getpkt_or_notif_sane_1)
13121 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13122 down target.
13123 (remote_target::mourn_inferior): Pass down target. Use
13124 remote_unpush_target.
13125 (remote_target::core_of_thread)
13126 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13127 (remote_target::pid_to_exec_file)
13128 (remote_target::thread_handle_to_thread_info): Pass down target.
13129 (remote_target::async_wait_fd): New.
13130 * riscv-fbsd-tdep.c: Include "inferior.h".
13131 (riscv_fbsd_get_thread_local_address): Pass down target.
13132 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13133 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13134 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13135 Adjust.
13136 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13137 * solib-svr4.c (enable_break): Pass down target.
13138 * spu-multiarch.c (parse_spufs_run): Pass down target.
13139 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13140 * target-delegates.c: Regenerate.
13141 * target.c (g_target_stack): Delete.
13142 (current_top_target): Return the current inferior's top target.
13143 (target_has_execution_1): Refer to the passed-in inferior's top
13144 target.
13145 (target_supports_terminal_ours): Check whether the initial
13146 inferior was already created.
13147 (decref_target): New.
13148 (target_stack::push): Incref/decref the target.
13149 (push_target, push_target, unpush_target): Adjust.
13150 (target_stack::unpush): Defref target.
13151 (target_is_pushed): Return bool. Adjust to refer to the current
13152 inferior's target stack.
13153 (dispose_inferior): Delete, and inline parts ...
13154 (target_preopen): ... here. Only dispose of the current inferior.
13155 (target_detach): Hold strong target reference while detaching.
13156 Pass target down.
13157 (target_thread_name): Add assertion.
13158 (target_resume): Pass down target.
13159 (target_ops::beneath, find_target_at): Adjust to refer to the
13160 current inferior's target stack.
13161 (get_dummy_target): New.
13162 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13163 has a thread running.
13164 (initialize_targets): Rename to ...
13165 (_initialize_target): ... this.
13166 * target.h: Include "gdbsupport/refcounted-object.h".
13167 (struct target_ops): Inherit refcounted_object.
13168 (target_ops::shortname, target_ops::longname): Make const.
13169 (target_ops::async_wait_fd): New method.
13170 (decref_target): Declare.
13171 (struct target_ops_ref_policy): New.
13172 (target_ops_ref): New typedef.
13173 (get_dummy_target): Declare function.
13174 (target_is_pushed): Return bool.
13175 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13176 (all_matching_threads_iterator::all_matching_threads_iterator):
13177 Handle filter target.
13178 * thread-iter.h (struct all_matching_threads_iterator, struct
13179 all_matching_threads_range, class all_non_exited_threads_range):
13180 Filter by target too. Remove explicit.
13181 * thread.c (threads_executing): Delete.
13182 (inferior_thread): Pass down current inferior.
13183 (clear_thread_inferior_resources): Pass down thread pointer
13184 instead of ptid_t.
13185 (add_thread_silent, add_thread_with_info, add_thread): Add
13186 process_stratum_target parameter. Use it for thread and inferior
13187 searches.
13188 (is_current_thread): New.
13189 (thread_info::deletable): Use it.
13190 (find_thread_ptid, thread_count, in_thread_list)
13191 (thread_change_ptid, set_resumed, set_running): New
13192 process_stratum_target parameter. Pass it down.
13193 (set_executing): New process_stratum_target parameter. Pass it
13194 down. Adjust reference to 'threads_executing'.
13195 (threads_are_executing): New process_stratum_target parameter.
13196 Adjust reference to 'threads_executing'.
13197 (set_stop_requested, finish_thread_state): New
13198 process_stratum_target parameter. Pass it down.
13199 (switch_to_thread): Also match inferior.
13200 (switch_to_thread): New process_stratum_target parameter. Pass it
13201 down.
13202 (update_threads_executing): Reimplement.
13203 * top.c (quit_force): Pop targets from all inferior.
13204 (gdb_init): Don't call initialize_targets.
13205 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13206 Declare.
13207 (windows_add_thread, windows_delete_thread): Adjust.
13208 (get_windows_debug_event): Rename to ...
13209 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13210 * tracefile-tfile.c (tfile_target_open): Pass down target.
13211 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13212 Forward declare.
13213 (switch_to_thread): Add process_stratum_target parameter.
13214 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13215 parameter. Use it.
13216 (mi_on_resume): Pass target down.
13217 * nat/fork-inferior.c (startup_inferior): Add
13218 process_stratum_target parameter. Pass it down.
13219 * nat/fork-inferior.h (startup_inferior): Add
13220 process_stratum_target parameter.
13221 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13222
75c6c844
PA
132232020-01-10 Pedro Alves <palves@redhat.com>
13224
13225 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13226 directly. Instead find the first thread in the thread list and
13227 use switch_to_thread.
13228
78f2c40a
PA
132292020-01-10 Pedro Alves <palves@redhat.com>
13230
13231 * remote.c (remote_target::remote_add_inferior): Don't bind a
13232 process to the current inferior if the current inferior is already
13233 bound to a process.
13234
e7af6c70
TBA
132352020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13236 Pedro Alves <palves@redhat.com>
13237
13238 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13239 If no process is specified, return null_ptid instead of
13240 inferior_ptid.
13241 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13242 TARGET_WAITKIND_SIGNALLED with no pid.
13243
31ba933e
PA
132442020-01-10 Pedro Alves <palves@redhat.com>
13245
13246 * remote.c (first_remote_resumed_thread): New.
13247 (remote_target::wait_as): Use it as default event_ptid instead of
13248 inferior_ptid.
13249
735fc2ca
PA
132502020-01-10 Pedro Alves <palves@redhat.com>
13251
13252 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13253
c17e02e1
PA
132542020-01-10 Pedro Alves <palves@redhat.com>
13255
13256 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13257 not -1.
13258
ab1ddbcf
PA
132592020-01-10 Pedro Alves <palves@redhat.com>
13260
13261 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13262 ptid to get_last_target_status.
13263 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13264 ptid to get_last_target_status.
13265 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13266 get_last_target_status.
13267 (info_program_command): Don't pass a target_waitstatus to
13268 get_last_target_status.
13269 * infrun.c (init_wait_for_inferior): Use
13270 nullify_last_target_wait_ptid.
13271 (get_last_target_status): Handle nullptr arguments.
13272 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13273 (print_stop_event): Don't pass a ptid to get_last_target_status.
13274 (normal_stop): Don't pass a ptid to get_last_target_status.
13275 * infrun.h (get_last_target_status, set_last_target_status): Move
13276 comments here and update.
13277 (nullify_last_target_wait_ptid): Declare.
13278 * linux-fork.c (fork_load_infrun_state): Remove local extern
13279 declaration of nullify_last_target_wait_ptid.
13280 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13281 to get_last_target_status.
13282
f3f8ece4
PA
132832020-01-10 Pedro Alves <palves@redhat.com>
13284
13285 * gdbthread.h (scoped_restore_current_thread)
13286 <dont_restore, restore, m_dont_restore>: Declare.
13287 * thread.c (thread_alive): Add assertion. Return bool.
13288 (switch_to_thread_if_alive): New.
13289 (prune_threads): Switch inferior/thread.
13290 (print_thread_info_1): Switch thread before calling target methods.
13291 (scoped_restore_current_thread::restore): New, factored out from
13292 ...
13293 (scoped_restore_current_thread::~scoped_restore_current_thread):
13294 ... this.
13295 (scoped_restore_current_thread::scoped_restore_current_thread):
13296 Add assertion.
13297 (thread_apply_all_command, thread_select): Use
13298 switch_to_thread_if_alive.
13299 * infrun.c (proceed, restart_threads, handle_signal_stop)
13300 (switch_back_to_stepped_thread): Switch current thread before
13301 calling target methods.
13302
db2d40f7
PA
133032020-01-10 Pedro Alves <palves@redhat.com>
13304
13305 * inferior.c (switch_to_inferior_no_thread): New function,
13306 factored out from ...
13307 (inferior_command): ... here.
13308 * inferior.h (switch_to_inferior_no_thread): Declare.
13309 * mi/mi-main.c (run_one_inferior): Use
13310 switch_to_inferior_no_thread.
13311
bd420a2d
PA
133122020-01-10 Pedro Alves <palves@redhat.com>
13313
13314 * infcmd.c (kill_command): Remove dead code.
13315
ddf5db90
PA
133162020-01-10 Pedro Alves <palves@redhat.com>
13317
13318 * remote.c (remote_target::mourn_inferior): No longer check
13319 whether the target is running.
13320
5018ce90
PA
133212020-01-10 Pedro Alves <palves@redhat.com>
13322
13323 * corelow.c (core_target::has_execution): Change parameter type to
13324 inferior pointer.
13325 * inferior.c (number_of_live_inferiors): Use
13326 inferior::has_execution instead of target_has_execution_1.
13327 * inferior.h (inferior::has_execution): New.
13328 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13329 inferior::has_execution instead of target_has_execution_1.
13330 * process-stratum-target.c
13331 (process_stratum_target::has_execution): Change parameter type to
13332 inferior pointer. Check the inferior's PID instead of
13333 inferior_ptid.
13334 * process-stratum-target.h
13335 (process_stratum_target::has_execution): Change parameter type to
13336 inferior pointer.
13337 * record-full.c (record_full_core_target::has_execution): Change
13338 parameter type to inferior pointer.
13339 * target.c (target_has_execution_1): Change parameter type to
13340 inferior pointer.
13341 (target_has_execution_current): Adjust.
13342 * target.h (target_ops::has_execution): Change parameter type to
13343 inferior pointer.
13344 (target_has_execution_1): Change parameter type to inferior
13345 pointer. Change return type to bool.
13346 * tracefile.h (tracefile_target::has_execution): Change parameter
13347 type to inferior pointer.
13348
74375d18
PA
133492020-01-10 Pedro Alves <palves@redhat.com>
13350
13351 * exceptions.c (print_flush): Remove current_top_target() check.
13352
acdf84a6
PA
133532020-01-10 Pedro Alves <palves@redhat.com>
13354
13355 * remote.c (show_remote_exec_file): Show the current inferior's
13356 exec-file instead of the command variable's value.
13357
ec506636
PA
133582020-01-10 Pedro Alves <palves@redhat.com>
13359
13360 * record-full.c (record_full_resume_ptid): New global.
13361 (record_full_target::resume): Set it.
13362 (record_full_wait_1): Use record_full_resume_ptid instead of
13363 inferior_ptid.
13364
873657b9
PA
133652020-01-10 Pedro Alves <palves@redhat.com>
13366
13367 * gdbthread.h (scoped_restore_current_thread)
13368 <dont_restore, restore, m_dont_restore>: Declare.
13369 * thread.c (thread_alive): Add assertion. Return bool.
13370 (switch_to_thread_if_alive): New.
13371 (prune_threads): Switch inferior/thread.
13372 (print_thread_info_1): Switch thread before calling target methods.
13373 (scoped_restore_current_thread::restore): New, factored out from
13374 ...
13375 (scoped_restore_current_thread::~scoped_restore_current_thread):
13376 ... this.
13377 (scoped_restore_current_thread::scoped_restore_current_thread):
13378 Add assertion.
13379 (thread_apply_all_command, thread_select): Use
13380 switch_to_thread_if_alive.
13381
7f0ae84c
GB
133822020-01-10 George Barrett <bob@bob131.so>
13383
13384 * stap-probe.c (stap_modify_semaphore): Don't check for null
13385 semaphores.
13386 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13387 for null semaphores.
13388
f5a7c406
AB
133892020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13390
13391 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13392 all source windows, and maintain horizontal scroll status while
13393 doing so.
13394
9ae6bf64
TT
133952020-01-09 Tom Tromey <tom@tromey.com>
13396
13397 PR tui/18932:
13398 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13399 update_source_window, not print_source_lines.
13400
b2efe70c
AB
134012020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13402
13403 * tui/tui.c (tui_enable): Register tui hooks after calling
13404 tui_display_main.
13405
5f23a082
CB
134062020-01-09 Christian Biesinger <cbiesinger@google.com>
13407
13408 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13409
3061113b
SM
134102020-01-08 Simon Marchi <simon.marchi@efficios.com>
13411
13412 * thread.c (print_thread_info_1): Fix indentation.
13413
57d75002
CB
134142020-01-09 Christian Biesinger <cbiesinger@google.com>
13415
13416 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13417 unique_xmalloc_ptr outside the if to always free the demangled name.
13418
6a053cb1
TT
134192020-01-08 Tom Tromey <tromey@adacore.com>
13420
13421 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13422 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13423 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13424 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13425 Remove.
13426 (section_offsets): New typedef.
13427 * symtab.c (fixup_section, get_msymbol_address): Update.
13428 * symmisc.c (dump_msymbols): Update.
13429 * symfile.h (relative_addr_info_to_section_offsets)
13430 (symfile_map_offsets_to_segments): Update.
13431 * symfile.c (build_section_addr_info_from_objfile)
13432 (init_objfile_sect_indices): Update.
13433 (struct place_section_arg): Change type of "offsets".
13434 (place_section): Update.
13435 (relative_addr_info_to_section_offsets): Change type of
13436 "section_offsets". Remove "num_sections" parameter.
13437 (default_symfile_offsets, syms_from_objfile_1)
13438 (set_objfile_default_section_offset): Update.
13439 (reread_symbols): No need to preserve section offsets by hand.
13440 (symfile_map_offsets_to_segments): Change type of "offsets".
13441 * stap-probe.c (relocate_address): Update.
13442 * stabsread.h (process_one_symbol): Update.
13443 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13444 (solib_target_relocate_section_addresses): Update.
13445 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13446 Update.
13447 * solib-frv.c (frv_relocate_main_executable): Update.
13448 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13449 * solib-aix.c (solib_aix_get_section_offsets): Change return
13450 type.
13451 (solib_aix_solib_create_inferior_hook): Update.
13452 * remote.c (remote_target::get_offsets): Update.
13453 * psymtab.c (find_pc_sect_psymtab): Update.
13454 * psympriv.h (struct partial_symbol) <address, text_low,
13455 text_high>: Update.
13456 * objfiles.h (obj_section_offset): Update.
13457 (struct objfile) <section_offsets>: Change type.
13458 <num_sections>: Remove.
13459 (objfile_relocate): Update.
13460 * objfiles.c (entry_point_address_query): Update
13461 (relocate_one_symbol): Change type of "section_offsets".
13462 (objfile_relocate1, objfile_relocate1): Change type of
13463 "new_offsets".
13464 (objfile_rebase1): Update.
13465 * mipsread.c (mipscoff_symfile_read): Update.
13466 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13467 parameter.
13468 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13469 (parse_external, psymtab_to_symtab_1): Update.
13470 * machoread.c (macho_symfile_offsets): Update.
13471 * ia64-tdep.c (ia64_find_unwind_table): Update.
13472 * hppa-tdep.c (read_unwind_info): Update.
13473 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13474 * dwarf2read.c (create_addrmap_from_index)
13475 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13476 (process_psymtab_comp_unit_reader, add_partial_symbol)
13477 (add_partial_subprogram, process_full_comp_unit)
13478 (read_file_scope, read_func_scope, read_lexical_block_scope)
13479 (read_call_site_scope, dwarf2_rnglists_process)
13480 (dwarf2_ranges_process, dwarf2_ranges_read)
13481 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13482 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13483 Update.
13484 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13485 Update.
13486 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13487 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13488 (process_one_symbol): Change type of "section_offsets".
13489 * ctfread.c (get_objfile_text_range): Update.
13490 * coffread.c (coff_symtab_read, enter_linenos)
13491 (process_coff_symbol): Update.
13492 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13493 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13494
456e800a
TT
134952020-01-08 Tom Tromey <tromey@adacore.com>
13496
13497 * dwarf2read.c (parse_macro_definition): Use std::string.
13498 (parse_macro_definition): Likewise.
13499
6dfa2fc2
TT
135002020-01-08 Tom Tromey <tromey@adacore.com>
13501
13502 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13503 (ATTR_ALLOC_CHUNK): Remove.
13504
421d1616
TT
135052020-01-08 Tom Tromey <tromey@adacore.com>
13506
13507 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13508
43816ebc
TT
135092020-01-08 Tom Tromey <tromey@adacore.com>
13510
13511 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13512 (dwarf2_compute_name, open_dwo_file): Likewise.
13513 (process_enumeration_scope): Use std::vector.
13514 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13515 (partial_die_info::fixup, dwarf2_start_subfile)
13516 (guess_full_die_structure_name, dwarf2_name): Likewise.
13517 (determine_prefix): Update.
13518 (guess_full_die_structure_name): Make return type const.
13519 (partial_die_full_name): Return unique_xmalloc_ptr.
13520 (DW_FIELD_ALLOC_CHUNK): Remove.
13521
4212d509
TT
135222020-01-07 Tom Tromey <tromey@adacore.com>
13523
13524 PR build/24937:
13525 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13526
06a6207a
JT
135272020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13528
13529 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13530
153d79c4
AB
135312020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13532
13533 * stack.c (print_frame_info): Move disassemble_next_line code
13534 inside source_print block.
13535
66182876
EZ
135362020-01-06 Eli Zaretskii <eliz@gnu.org>
13537
13538 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13539 gdb/signals.h, as we are now using native signal symbols.
13540
cbfa8581
SV
135412020-01-06 Shahab Vahedi <shahab@synopsys.com>
13542
13543 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13544 overflow by an early check of content vs threshold.
aac66a4c 13545 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13546 Likewise.
13547
3f602821
EZ
135482020-01-06 Eli Zaretskii <eliz@gnu.org>
13549
13550 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13551
a08c904d
JT
135522020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13553
13554 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13555 export table if no section contains it's RVA.
13556
89a65580
EZ
135572020-01-06 Eli Zaretskii <eliz@gnu.org>
13558
13559 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13560
8b7fcda2
HD
135612020-01-06 Hannes Domani <ssbssa@yahoo.de>
13562
13563 * source.c (print_source_lines_base): Set last_line_listed.
13564
a61b4f69
SV
135652020-01-06 Shahab Vahedi <shahab@synopsys.com>
13566
13567 * tui/tui-disasm.c: Remove trailing spaces.
13568
559e7e50
EZ
135692020-01-06 Eli Zaretskii <eliz@gnu.org>
13570 Pedro Alves <palves@redhat.com>
13571
13572 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13573 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13574 (windows_gdb_signal_to_target): New function, uses the above
13575 enumeration to convert GDB internal signal codes to equivalent
13576 Windows codes.
13577 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13578 * windows-nat.c: Include "gdb_wait.h".
13579 (get_windows_debug_event): Extract the fatal exception from the
13580 exit status and convert to the equivalent Posix signal number.
13581 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13582 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13583 * gdbsupport/gdb_wait.c: New file, implements
13584 windows_status_to_termsig.
13585 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13586 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13587
f2302a34
AB
135882020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13589
13590 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13591 show_layout.
13592
6a5206eb
LM
135932020-01-05 Luis Machado <luis.machado@linaro.org>
13594
13595 * aarch64-linux-nat.c
13596 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13597 and bfd_mach_aarch64.
13598
6ec1d75e
PW
135992020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13600
13601 * ui-file.c (stdio_file::can_emit_style_escape)
13602 (tee_file::can_emit_style_escape): Ensure style is used also on
13603 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13604 to gdb_stdout.
13605 * main.c (set_gdb_data_directory): Use file style to output the
13606 warning that the given pathname is not a directory.
13607 * top.c (show_history_filename, gdb_safe_append_history)
13608 (show_gdb_datadir): Use file style.
13609
44f81a76
HD
136102020-01-03 Hannes Domani <ssbssa@yahoo.de>
13611
13612 * solib-target.c (struct lm_info_target):
13613 Change offsets to be a unique_xmalloc_ptr.
13614 (solib_target_relocate_section_addresses): Update.
13615
25057eb0
HD
136162020-01-03 Hannes Domani <ssbssa@yahoo.de>
13617
13618 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13619
6e2118f5
BE
136202020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13621
13622 * MAINTAINERS (Write After Approval): Add myself.
13623
8133c7dc
LM
136242020-01-02 Luis Machado <luis.machado@linaro.org>
13625
13626 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13627 Cell BE architecture.
13628 * target.h (struct target_ops) <thread_architecture>: Likewise.
13629
48189bec
HD
136302020-01-01 Hannes Domani <ssbssa@yahoo.de>
13631
13632 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13633
ead1063b
HD
136342020-01-01 Hannes Domani <ssbssa@yahoo.de>
13635
13636 * MAINTAINERS (Write After Approval): Add myself.
13637
e5d78223
JB
136382020-01-01 Joel Brobecker <brobecker@adacore.com>
13639
13640 * gdbarch.sh: Update copyright year range of generated files.
13641
b811d2c2
JB
136422020-01-01 Joel Brobecker <brobecker@adacore.com>
13643
13644 Update copyright year range in all GDB files.
13645
5f4def5c
JB
136462020-01-01 Joel Brobecker <brobecker@adacore.com>
13647
13648 * copyright.py: Convert to Python 3.
13649
51fd4002
JB
136502020-01-01 Joel Brobecker <brobecker@adacore.com>
13651
13652 * copyright.py: Adapt after move of gnulib directory from gdb
13653 directory to toplevel directory.
13654
5fb651f2
JB
136552020-01-01 Joel Brobecker <brobecker@adacore.com>
13656
13657 * copyright.py (main): Exit if run from the wrong directory.
13658
5dd8bf88
JB
136592020-01-01 Joel Brobecker <brobecker@adacore.com>
13660
13661 * top.c (print_gdb_version): Change copyright year to 2020.
13662
9f71dacb 136632020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13664
9f71dacb 13665 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13666
9f71dacb 13667For older changes see ChangeLog-2019.
c906108c
SS
13668\f
13669Local Variables:
13670mode: change-log
13671left-margin: 8
13672fill-column: 74
13673version-control: never
57da7796 13674coding: utf-8
c906108c 13675End: