]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: Convert language_data::la_macro_expansion to a method
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1ac14a04
AB
12020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4 initializer.
5 * c-lang.c (c_language_data): Likewise.
6 (c_language::macro_expansion): New member function.
7 (cplus_language_data): Likewise.
8 (cplus_language::macro_expansion): New member function.
9 (asm_language_data): Likewise.
10 (asm_language::macro_expansion): New member function.
11 (minimal_language_data): Likewise.
12 (minimal_language::macro_expansion): New member function.
13 * d-lang.c (d_language_data): Remove la_macro_expansion
14 initializer.
15 * f-lang.c (f_language_data): Likewise.
16 * go-lang.c (go_language_data): Likewise.
17 * language.c (unknown_language_data): Likewise.
18 (auto_language_data): Likewise.
19 * language.h (language_data): Remove la_macro_expansion field.
20 (language_defn::macro_expansion): New member function.
21 * m2-lang.c (m2_language_data): Remove la_macro_expansion
22 initializer.
23 * objc-lang.c (objc_language_data): Likewise.
24 (objc_language::macro_expansion): New member function.
25 * opencl-lang.c (opencl_language_data): Likewise.
26 (opencl_language::macro_expansion): New member function.
27 * p-lang.c (pascal_language_data): Remove la_macro_expansion
28 initializer.
29 * rust-lang.c (rust_language_data): Likewise.
30 * symtab.c (default_collect_symbol_completion_matches_break_on):
31 Update call to macro_expansion.
32
3a3440fb
AB
332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
34
35 * ada-lang.c (ada_language_data): Remove la_array_ordering
36 initializer.
37 * c-lang.c (c_language_data): Likewise.
38 (cplus_language_data): Likewise.
39 (asm_language_data): Likewise.
40 (minimal_language_data): Likewise.
41 * d-lang.c (d_language_data): Likewise.
42 * dwarf2/read.c (read_array_order): Update for call to
43 array_ordering.
44 * f-lang.c (f_language_data): Remove la_array_ordering
45 initializer.
46 (f_language::array_ordering): New member function.
47 * go-lang.c (go_language_data): Remove la_array_ordering
48 initializer.
49 * language.c (unknown_language_data): Likewise.
50 (auto_language_data): Likewise.
51 * language.h (language_data): Delete la_array_ordering field.
52 (language_defn::array_ordering): New member function.
53 * m2-lang.c (m2_language_data): Remove la_array_ordering
54 initializer.
55 * objc-lang.c (objc_language_data): Likewise.
56 * opencl-lang.c (opencl_language_data): Likewise.
57 * p-lang.c (pascal_language_data): Likewise.
58 * rust-lang.c (rust_language_data): Likewise.
59
0d201fa4
AB
602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
61
62 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
63 initializer.
64 * c-lang.c (c_language_data): Likewise.
65 (cplus_language_data): Likewise.
66 (asm_language_data): Likewise.
67 (minimal_language_data): Likewise.
68 * d-lang.c (d_language_data): Likewise.
69 * f-lang.c (f_language_data): Likewise.
70 (f_language::case_sensitivity): New member function.
71 * go-lang.c (go_language_data): Remove la_case_sensitivity
72 initializer.
73 * language.c (enum case_mode): Moved here from language.h.
74 (case_mode): Make static.
75 (show_case_command): Update for case_sensitivity being a method.
76 (set_case_command): Likewise.
77 (set_range_case): Likewise.
78 (unknown_language_data): Remove la_case_sensitivity initializer.
79 (auto_language_data): Likewise.
80 * language.h (case_mode): Delete, move enum declaration to
81 language.c.
82 (language_data): Delete la_case_sensitivity field.
83 (language_defn::case_sensitivity): New member function.
84 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
85 initializer.
86 * objc-lang.c (objc_language_data): Likewise.
87 * opencl-lang.c (opencl_language_data): Likewise.
88 * p-lang.c (pascal_language_data): Likewise.
89 * rust-lang.c (rust_language_data): Likewise.
90
efdf6a73
AB
912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
92
93 * ada-lang.c (ada_language_data): Remove la_range_check
94 initializer.
95 * c-lang.c (c_language_data): Likewise.
96 (cplus_language_data): Likewise.
97 (asm_language_data): Likewise.
98 (minimal_language_data): Likewise.
99 * d-lang.c (d_language_data): Likewise.
100 * f-lang.c (f_language_data): Likewise.
101 (f_language::range_checking_on_by_default): New member function.
102 * go-lang.c (go_language_data): Remove la_range_check initializer.
103 * language.c (enum range_mode): Moved here from language.h.
104 (range_mode): Made static.
105 (show_range_command): Update to use
106 range_checking_on_by_default.
107 (set_range_command): Likewise.
108 (set_range_case): Likewise.
109 (unknown_language_data): Remove la_range_check initializer.
110 (auto_language_data): Likewise.
111 * language.h (range_mode): Delete. Enum definition moved to
112 language.c.
113 (language_data): Remove la_range_check field.
114 (language_defn::range_checking_on_by_default): New member
115 function.
116 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
117 (m2_language::range_checking_on_by_default): New member function.
118 * objc-lang.c (objc_language_data): Remove la_range_check
119 initializer.
120 * opencl-lang.c (opencl_language_data): Likewise.
121 * p-lang.c (pascal_language_data): Likewise.
122 (pascal_language::range_checking_on_by_default): New member
123 function.
124 * rust-lang.c (rust_language_data): Remove la_range_check
125 initializer.
126 (rust_language::range_checking_on_by_default): New member
127 function.
128
bf92aec5
AB
1292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
130
131 * dwarf2/read.c (dwarf2_physname): Remove special case for
132 language_go.
133 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
134 member function.
135
d3355e4d
AB
1362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
137
138 * ada-lang.c (ada_language_data): Remove
139 la_store_sym_names_in_linkage_form_p initializer.
140 (ada_language::store_sym_names_in_linkage_form_p): New member
141 function.
142 * c-lang.c (c_language_data): Remove
143 la_store_sym_names_in_linkage_form_p initializer.
144 (c_language::store_sym_names_in_linkage_form_p): New member
145 function.
146 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
147 initializer.
148 (asm_language_data): Likewise.
149 (asm_language::store_sym_names_in_linkage_form_p): New member
150 function.
151 (minimal_language_data): Remove
152 la_store_sym_names_in_linkage_form_p initializer.
153 (minimal_language::store_sym_names_in_linkage_form_p): New member
154 function.
155 * d-lang.c (d_language_data): Remove
156 la_store_sym_names_in_linkage_form_p initializer.
157 * dwarf2/read.c (dwarf2_physname): Update call to
158 store_sym_names_in_linkage_form_p.
159 * f-lang.c (f_language_data): Remove
160 la_store_sym_names_in_linkage_form_p initializer.
161 * go-lang.c (go_language_data): Remove
162 la_store_sym_names_in_linkage_form_p initializer.
163 * language.c (unknown_language_data): Remove
164 la_store_sym_names_in_linkage_form_p initializer.
165 (unknown_language::store_sym_names_in_linkage_form_p): New member
166 function.
167 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
168 initializer.
169 (auto_language::store_sym_names_in_linkage_form_p): New member
170 function.
171 * language.h (language_data): Remove
172 la_store_sym_names_in_linkage_form_p member variable.
173 (language_defn::store_sym_names_in_linkage_form_p): New member
174 function.
175 * m2-lang.c (m2_language_data): Remove
176 la_store_sym_names_in_linkage_form_p initializer.
177 * objc-lang.c (objc_language_data): Likewise.
178 * opencl-lang.c (opencl_language_data): Likewise.
179 * p-lang.c (pascal_language_data): Likewise.
180 * rust-lang.c (rust_language_data): Likewise.
181
22c12a6c
AB
1822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
183
184 * ada-lang.c (ada_language_data): Remove string_lower_bound
185 initializer.
186 * c-lang.c (c_language_data): Likewise.
187 (cplus_language_data): Likewise.
188 (asm_language_data): Likewise.
189 (minimal_language_data): Likewise.
190 * d-lang.c (d_language_data): Likewise.
191 * f-lang.c (f_language_data): Likewise.
192 * go-lang.c (go_language_data): Likewise.
193 * language.c (unknown_language_data): Likewise.
194 (auto_language_data): Likewise.
195 * language.h (language_data): Remove string_lower_bound field.
196 (language_defn::string_lower_bound): New member function.
197 * m2-lang.c (m2_language_data): Remove string_lower_bound
198 initializer.
199 (m2_language::string_lower_bound): New member function.
200 * objc-lang.c (objc_language_data): Remove string_lower_bound
201 initializer.
202 * opencl-lang.c (opencl_language_data): Likewise.
203 * p-lang.c (pascal_language_data): Likewise.
204 * rust-lang.c (rust_language_data): Likewise.
205 * valops.c (value_cstring): Update call to string_lower_bound.
206 (value_string): Likewise.
207 * value.c (allocate_repeated_value): Likewise.
208
1c236ddd
AB
2092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
210
211 * valops.c (value_repeat): Fix incorrect argument name in comment.
212
67bd3fd5
AB
2132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
214
215 * ada-lang.c (ada_language_data): Remove c_style_arrays
216 initializer.
217 (ada_language::c_style_arrays_p): New member fuction.
218 * c-lang.c (c_language_data): Remove c_style_arrays
219 initializer.
220 (cplus_language_data): Likewise.
221 (asm_language_data): Likewise.
222 (minimal_language_data): Likewise.
223 * d-lang.c (d_language_data): Likewise.
224 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
225 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
226 (f_language::c_style_arrays_p): New member function.
227 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
228 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
229 * language.c (unknown_language_data): Remove c_style_arrays
230 initializer.
231 (auto_language_data): Likewise.
232 * language.h (language_data): Remove c_style_arrays field.
233 (language_defn::c_style_arrays_p): New member function.
234 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
235 (m2_language::c_style_arrays_p): New member function.
236 * objc-lang.c (objc_language_data): Remove c_style_arrays
237 initializer.
238 * opencl-lang.c (opencl_language_data): Likewise.
239 * p-lang.c (pascal_language_data): Likewise.
240 * rust-lang.c (rust_language_data): Likewise.
241 * valarith.c (value_subscript): Update call to c_style_arrays_p,
242 and update local variable to a bool.
243 * valops.c (value_cast): Update call to c_style_arrays_p.
244 (value_array): Likewise.
245 * value.c (coerce_array): Likewise.
246
85967615
AB
2472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
248
249 * ada-lang.c (ada_language_data): Remove la_language initializer.
250 * c-lang.c (c_language_data): Likewise.
251 (cplus_language_data): Likewise.
252 (asm_language_data): Likewise.
253 (minimal_language_data): Likewise.
254 * d-lang.c (d_language_data): Likewise.
255 * f-lang.c (f_language_data): Likewise.
256 * go-lang.c (go_language_data): Likewise.
257 * language.c (unknown_language_data): Likewise.
258 (auto_language_data): Likewise.
259 * language.h (language_data): Remove la_language field.
260 (language_defn::language_defn): Initialise la_language field.
261 (language_defn::la_language): New member variable.
262 * m2-lang.c (m2_language_data): Remove la_language field.
263 * objc-lang.c (objc_language_data): Likewise.
264 * opencl-lang.c (opencl_language_data): Likewise.
265 * p-lang.c (pascal_language_data): Likewise.
266 * rust-lang.c (rust_language_data): Likewise.
267
e171d6f1
AB
2682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
269
270 * ada-lang.c (ada_extensions): Delete, moved into
271 ada_language::filename_extensions.
272 (ada_language_data): Remove la_filename_extensions initializer.
273 (ada_language::filename_extensions): New member function.
274 * c-lang.c (c_extensions): Delete, moved into
275 c_language::filename_extensions.
276 (c_language_data): Remove la_filename_extensions initializer.
277 (c_language::filename_extensions): New member function.
278 (cplus_extensions): Delete, moved into
279 cplus_language::filename_extensions.
280 (cplus_language_data): Remove la_filename_extensions initializer.
281 (cplus_language::filename_extensions): New member function.
282 (asm_extensions): Delete, moved into
283 asm_language::filename_extensions.
284 (asm_language_data): Remove la_filename_extensions initializer.
285 (asm_language::filename_extensions): New member function.
286 (minimal_language_data): Remove la_filename_extensions
287 initializer.
288 * d-lang.c (d_extensions): Delete, moved into
289 d_language::filename_extensions.
290 (d_language_data): Remove la_filename_extensions initializer.
291 (d_language::filename_extensions): New member function.
292 * f-lang.c (f_extensions): Delete, moved into
293 f_language::filename_extensions.
294 (f_language_data): Remove la_filename_extensions initializer.
295 (f_language::filename_extensions): New member function.
296 * go-lang.c (go_language_data): Remove la_filename_extensions
297 initializer.
298 * language.c (add_set_language_command): Update now that
299 filename_extensions returns a vector.
300 (unknown_language_data): Remove la_filename_extensions
301 initializer.
302 (auto_language_data): Likewise.
303 * language.h (language_data): Remove la_filename_extensions field.
304 (language_defn::filename_extensions): New member function.
305 * m2-lang.c (m2_language_data): Remove la_filename_extensions
306 initializer.
307 * objc-lang.c (objc_extensions): Delete, moved into
308 objc_language::filename_extensions.
309 (objc_language_data): Remove la_filename_extensions initializer.
310 (objc_language::filename_extensions): New member function.
311 * opencl-lang.c (opencl_language_data): Remove
312 la_filename_extensions initializer.
313 * p-lang.c (pascal_extensions): Delete, moved into
314 pascal_language::filename_extensions.
315 (pascal_language_data): Remove la_filename_extensions initializer.
316 (pascal_language::filename_extensions): New member function.
317 * rust-lang.c (rust_extensions): Delete, moved into
318 rust_language::filename_extensions.
319 (rust_language_data): Remove la_filename_extensions initializer.
320 (rust_language::filename_extensions): New member function.
321 * symfile.c (add_filename_language): Add new assert.
322
6f7664a9
AB
3232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
324
325 * ada-lang.c (ada_language_data): Remove la_name and
326 la_natural_name initializers.
327 (ada_language::name): New member function.
328 (ada_language::natural_name): New member function.
329 * c-lang.c (c_language_data): Remove la_name and
330 la_natural_name initializers.
331 (c_language::name): New member function.
332 (c_language::natural_name): New member function.
333 (cplus_language_data): Remove la_name and
334 la_natural_name initializers.
335 (cplus_language::name): New member function.
336 (cplus_language::natural_name): New member function.
337 (asm_language_data): Remove la_name and
338 la_natural_name initializers.
339 (asm_language::name): New member function.
340 (asm_language::natural_name): New member function.
341 (minimal_language_data): Remove la_name and
342 la_natural_name initializers.
343 (minimal_language::name): New member function.
344 (minimal_language::natural_name): New member function.
345 * compile/compile.c (compile_to_object): Update call to
346 lanugage_defn::name.
347 * d-lang.c (d_language_data): Remove la_name and
348 la_natural_name initializers.
349 (d_language::name): New member function.
350 (d_language::natural_name): New member function.
351 * expprint.c (print_subexp_standard): Update call to
352 language_defn::name.
353 (dump_raw_expression): Likewise
354 (dump_prefix_expression): Likewise.
355 * f-lang.c (f_language_data): Remove la_name and
356 la_natural_name initializers.
357 (f_language::name): New member function.
358 (f_language::natural_name): New member function.
359 * go-lang.c (go_language_data): Remove la_name and
360 la_natural_name initializers.
361 (go_language::name): New member function.
362 (go_language::natural_name): New member function.
363 * language.c (show_language_command): Update call to
364 language_defn::name.
365 (set_language_command): Likewise.
366 (language_enum): Likewise.
367 (language_str): Likewise.
368 (add_set_language_command): Likewise, use
369 language_defn::natural_name in the doc string.
370 (unknown_language_data): Remove la_name and
371 la_natural_name initializers.
372 (unknown_language::name): New member function.
373 (unknown_language::natural_name): New member function.
374 (auto_language_data): Remove la_name and
375 la_natural_name initializers.
376 (auto_language::name): New member function.
377 (auto_language::natural_name): New member function.
378 (language_lookup_primitive_type_as_symbol): Update call to
379 language_defn::name.
380 * language.h (language_data): Remove la_name and la_natural_name
381 member variables.
382 (language_defn::name): New member function.
383 (language_defn::natural_name): New member function.
384 * m2-lang.c (m2_language_data): Remove la_name and
385 la_natural_name initializers.
386 (m2_language::name): New member function.
387 (m2_language::natural_name): New member function.
388 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
389 language_defn::natural_name.
390 * objc-lang.c (objc_language_data): Remove la_name and
391 la_natural_name initializers.
392 (objc_language::name): New member function.
393 (objc_language::natural_name): New member function.
394 * opencl-lang.c (opencl_language_data): Remove la_name and
395 la_natural_name initializers.
396 (opencl_language::name): New member function.
397 (opencl_language::natural_name): New member function.
398 * p-lang.c (pascal_language_data): Remove la_name and
399 la_natural_name initializers.
400 (pascal_language::name): New member function.
401 (pascal_language::natural_name): New member function.
402 * rust-lang.c (rust_language_data): Remove la_name and
403 la_natural_name initializers.
404 (rust_language::name): New member function.
405 (rust_language::natural_name): New member function.
406 * symtab.c (lookup_language_this): Update call to
407 language_defn::name.
408
5bae7c4e
AB
4092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
410
411 * ada-lang.c (ada_language_data): Remove la_name_of_this
412 initializer.
413 * ax-gdb.c (gen_expr): Update call to name_of_this.
414 * c-exp.y (classify_name): Likewise.
415 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
416 (cplus_language_data): Likewise.
417 (cplus_language::name_of_this): New member function.
418 (asm_language_data): Remove la_name_of_this initializer.
419 (minimal_language_data): Likewise.
420 * d-lang.c (d_language_data): Likewise.
421 (d_language::name_of_this): New member function.
422 * expprint.c (print_subexp_standard): Update call to name_of_this.
423 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
424 * go-lang.c (go_language_data): Likewise.
425 * language.c (unknown_language_data): Likewise.
426 (unknown_language::name_of_this): New member function.
427 (auto_language_data): Remove la_name_of_this initializer.
428 (auto_language::name_of_this): New member function.
429 * language.h (language_data): Delete la_name_of_this member
430 variable.
431 (language_defn::name_of_this): New member function.
432 * m2-lang.c (m2_language_data): Remove la_name_of_this
433 initializer.
434 * objc-lang.c (objc_language_data): Likewise.
435 (objc_language::name_of_this): New member function.
436 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
437 initializer.
438 * p-lang.c (pascal_language_data): Likewise.
439 (pascal_language::name_of_this): New member function.
440 * rust-lang.c (rust_language_data): Remove la_name_of_this
441 initializer.
442 * symtab.c (lookup_language_this): Update call to name_of_this.
443 (lookup_symbol_aux): Likewise.
444 * valops.c (value_of_this): Likewise.
445
22e3f3ed
AB
4462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
447
448 * ada-lang.c (ada_language_data): Remove
449 la_struct_too_deep_ellipsis initializer.
450 (ada_language::struct_too_deep_ellipsis): New member function.
451 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
452 initializer.
453 (cplus_language_data): Likewise.
454 (asm_language_data): Likewise.
455 (minimal_language_data): Likewise.
456 * cp-valprint.c (cp_print_value): Update call to
457 struct_too_deep_ellipsis.
458 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
459 initializer.
460 * f-lang.c (f_language_data): Likewise.
461 (f_language::struct_too_deep_ellipsis): New member function.
462 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
463 initializer.
464 * language.c (unknown_language_data): Likewise.
465 (auto_language_data): Likewise.
466 * language.h (language_data): Delete la_struct_too_deep_ellipsis
467 member variable.
468 (language_defn::struct_too_deep_ellipsis): New member function.
469 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
470 initializer.Q
471 * objc-lang.c (objc_language_data): Likewise.
472 * opencl-lang.c (opencl_language_data): Likewise.
473 * p-lang.c (pascal_language_data): Likewise.
474 * rust-lang.c (rust_language_data): Likewise.
475 * valprint.c (val_print_check_max_depth): Update call to
476 struct_too_deep_ellipsis.
477
ed29e1c7
FW
4782020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
479
480 * MAINTAINERS (Write After Approval): Add myself.
481
12d8f940
TT
4822020-09-15 Tom Tromey <tom@tromey.com>
483
484 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
485 Remove.
486
6b5a7bc7
TT
4872020-09-15 Tom Tromey <tom@tromey.com>
488
489 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
490 and TYPE_CODE_METHODPTR cases.
491 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
492 (c_value_print_inner): Update.
493 * valprint.c (generic_value_print_memberptr): New function, from
494 c_value_print_memberptr.
495 (generic_value_print): Use it. Call cplus_print_method_ptr.
496
47f0e2ff
TT
4972020-09-15 Tom Tromey <tromey@adacore.com>
498
499 * python/python-internal.h (PyInt_FromLong): Remove define.
500 * python/py-value.c (convert_value_from_python): Use
501 gdb_py_object_from_longest.
502 * python/py-type.c (typy_get_code): Use
503 gdb_py_object_from_longest.
504 * python/py-symtab.c (salpy_get_line): Use
505 gdb_py_object_from_longest.
506 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
507 gdb_py_object_from_longest.
508 * python/py-record.c (recpy_gap_reason_code): Use
509 gdb_py_object_from_longest.
510 * python/py-record-btrace.c (recpy_bt_insn_size)
511 (recpy_bt_func_level, btpy_list_count): Use
512 gdb_py_object_from_longest.
513 * python/py-infthread.c (gdbpy_create_ptid_object): Use
514 gdb_py_object_from_longest. Fix error handling.
515 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
516 gdb_py_object_from_longest.
517 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
518 gdb_py_object_from_longest.
519 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
520 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
521 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
522
512116ce
TT
5232020-09-15 Tom Tromey <tromey@adacore.com>
524
525 * python/python.c (gdbpy_parameter_value): Use
526 gdb_py_object_from_ulongest.
527
4ab1029c
TT
5282020-09-15 Tom Tromey <tromey@adacore.com>
529
530 * python/py-infevents.c (create_register_changed_event_object):
531 Use gdb_py_object_from_longest.
532 * python/py-exitedevent.c (create_exited_event_object): Use
533 gdb_py_object_from_longest.
534
062534d4
TT
5352020-09-15 Tom Tromey <tromey@adacore.com>
536
537 * python/python.c (gdbpy_parameter_value): Use
538 gdb_py_object_from_longest.
539 * python/py-type.c (convert_field, typy_range): Use
540 gdb_py_object_from_longest.
541 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
542 gdb_py_object_from_longest.
543 * python/py-lazy-string.c (stpy_get_length): Use
544 gdb_py_object_from_longest.
545 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
546 gdb_py_object_from_longest.
547 * python/py-infevents.c (create_memory_changed_event_object): Use
548 gdb_py_object_from_longest.
549 * python/py-inferior.c (infpy_get_num): Use
550 gdb_py_object_from_longest.
551 (infpy_get_pid): Likewise.
552
d1cab987
TT
5532020-09-15 Tom Tromey <tromey@adacore.com>
554
555 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
556 defines.
557 * python/py-value.c (valpy_long): Use
558 gdb_py_object_from_ulongest.
559 * python/py-symtab.c (salpy_get_pc): Use
560 gdb_py_object_from_ulongest.
561 (salpy_get_last): Likewise.
562 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
563 gdb_py_object_from_ulongest.
564 * python/py-lazy-string.c (stpy_get_address): Use
565 gdb_py_object_from_ulongest.
566 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
567 * python/py-arch.c (archpy_disassemble): Use
568 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
569 error handling.
570
4bde49dc
TT
5712020-09-15 Tom Tromey <tromey@adacore.com>
572
573 * python/python-internal.h (gdb_py_long_from_longest): Remove
574 defines.
575 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
576 * python/py-type.c (convert_field, typy_get_sizeof): Use
577 gdb_py_object_from_longest.
578 * python/py-record-btrace.c (btpy_list_index): Use
579 gdb_py_object_from_longest.
580
37431074
TT
5812020-09-15 Tom Tromey <tromey@adacore.com>
582
583 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
584 * python/py-record.c (recpy_element_number): Use
585 gdb_py_object_from_longest.
586 (recpy_gap_number): Likewise.
587
cbe25684
TT
5882020-09-15 Tom Tromey <tromey@adacore.com>
589
590 * top.c (ui::ui): Update.
591 (highest_ui_num): Remove.
592 * top.h (struct ui) <num>: Remove.
593
db92ac45
TT
5942020-09-15 Tom Tromey <tromey@adacore.com>
595
596 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
597 * ui-style.c (ansi_regex_text): Now array.
598 * rust-exp.y (number_regex_text): Now array.
599 * linespec.c (linespec_quote_characters): Now array.
600 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
601 Now arrays.
602
d2b31b67
SM
6032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
604
605 * debuginfod-support.c (debuginfod_client_deleter): New.
606 (debuginfod_client_up): New.
607 (debuginfod_init): Return debuginfod_client_up.
608 (debuginfod_source_query): Adjust.
609 (debuginfod_debuginfo_query): Adjust.
610
3246bd8e
SM
6112020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
612
613 * debuginfod-support.c (debuginfod_source_query): Use
614 make_unique_xstrdup.
615
10242f36
SM
6162020-09-14 Simon Marchi <simon.marchi@efficios.com>
617
618 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
619 with `type::instance_flags`.
620
e1044e6a
MM
6212020-09-14 Michael Mullin <masmullin@gmail.com>
622
623 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
624 Remove baton parameter.
625
04902b09
PA
6262020-09-14 Pedro Alves <pedro@palves.net>
627
628 * Makefile.in (SELFTESTS_SRCS): Add
629 unittests/enum-flags-selftests.c.
630 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
631 btrace_function_flags instead of enum btrace_function_flag.
632 * compile/compile-c-types.c (convert_qualified): Use
633 enum_flags::raw.
634 * compile/compile-cplus-symbols.c (convert_one_symbol)
635 (convert_symbol_bmsym):
636 * compile/compile-cplus-types.c (compile_cplus_convert_method)
637 (compile_cplus_convert_struct_or_union_methods)
638 (compile_cplus_instance::convert_qualified_base):
639 * go-exp.y (parse_string_or_char): Add cast to int.
640 * unittests/enum-flags-selftests.c: New file.
641 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
642 type to btrace_thread_flags from btrace_thread_flag.
643 (record_btrace_cancel_resume, record_btrace_step_thread): Change
644 local's type to btrace_thread_flags from btrace_thread_flag. Add
645 cast in DEBUG call.
646
69896a2c
PA
6472020-09-14 Pedro Alves <pedro@palves.net>
648
649 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
650 * gdbtypes.c (address_space_name_to_int): Rename to ...
651 (address_space_name_to_type_instance_flags): ... this.
652 (address_space_int_to_name): Rename to ...
653 (address_space_type_instance_flags_to_name): ... this.
654 * gdbtypes.h (address_space_name_to_int): Rename to ...
655 (address_space_name_to_type_instance_flags): ... this.
656 (address_space_int_to_name): Rename to ...
657 (address_space_type_instance_flags_to_name): ... this.
658 * type-stack.c (type_stack::insert): Adjust to rename.
659 * type-stack.h (type_stack::insert): Likewise.
660
314ad88d
PA
6612020-09-14 Pedro Alves <pedro@palves.net>
662 Andrew Burgess <andrew.burgess@embecosm.com>
663
664 * avr-tdep.c (avr_address_class_type_flags): Return
665 type_instance_flags.
666 (avr_address_class_type_flags_to_name): Take a
667 type_instance_flags.
668 (avr_address_class_name_to_type_flags): Return bool and take a
669 type_instance_flags.
670 * d-lang.c (build_d_types): Use type::set_instance_flags.
671 * ft32-tdep.c (ft32_address_class_type_flags): Return
672 type_instance_flags.
673 (ft32_address_class_type_flags_to_name): Take a
674 type_instance_flags.
675 (ft32_address_class_name_to_type_flags): Return bool and take a
676 type_instance_flags.
677 (ft32_gdbarch_init): Use type::set_instance_flags.
678 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
679 * gdbarch.h, gdbarch.c: Regenerate.
680 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
681 (address_class_name_to_type_flags): Use type_instance_flags and
682 bool.
683 * gdbtypes.c (address_space_name_to_int)
684 (address_space_int_to_name, make_qualified_type): Use
685 type_instance_flags.
686 (make_qualified_type): Use type_instance_flags and
687 type::set_instance_flags.
688 (make_type_with_address_space, make_cv_type, make_vector_type)
689 (check_typedef): Use type_instance_flags.
690 (recursive_dump_type): Cast type_instance_flags to unsigned for
691 printing.
692 (copy_type_recursive): Use type::set_instance_flags.
693 (gdbtypes_post_init): Use type::set_instance_flags.
694 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
695 <m_instance_flags>: ... this.
696 <instance_flags, set_instance_flags>: New methods.
697 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
698 (SET_TYPE_INSTANCE_FLAGS): New.
699 (address_space_name_to_int, address_space_int_to_name)
700 (make_type_with_address_space): Pass flags using
701 type_instance_flags instead of int.
702 * stabsread.c (cleanup_undefined_types_noname): Use
703 type::set_instance_flags.
704 * s390-tdep.c (s390_address_class_type_flags): Return
705 type_instance_flags.
706 (s390_address_class_type_flags_to_name): Take a
707 type_instance_flags.
708 (s390_address_class_name_to_type_flags): Return bool and take a
709 type_instance_flags.
710 * type-stack.c (type_stack::follow_types): Use
711 type_instance_flags.
712 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
713
27087b7f
TT
7142020-09-14 Tom Tromey <tromey@adacore.com>
715
716 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
717 * x86-tdep.c (x86_is_thunk_register_name)
718 (x86_in_indirect_branch_thunk): Update.
719 * sparc64-tdep.c (sparc64_fpu_register_names)
720 (sparc64_cp0_register_names, sparc64_register_names)
721 (sparc64_pseudo_register_names): Now const.
722 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
723 cp0_registers_num>: Now const.
724 * sparc-tdep.c (sparc_core_register_names)
725 (sparc32_fpu_register_names, sparc32_cp0_register_names)
726 (sparc32_pseudo_register_names): Now const.
727 (validate_tdesc_registers): Update.
728 * rust-lang.c (rust_extensions): Now const.
729 * p-lang.c (p_extensions): Now const.
730 * objc-lang.c (objc_extensions): Now const.
731 * nto-tdep.c (nto_thread_state_str): Now const.
732 * moxie-tdep.c (moxie_register_names): Now const.
733 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
734 Now const.
735 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
736 (mips_linux_reg_names): Now const.
737 (mips_gdbarch_init): Update.
738 * microblaze-tdep.c (microblaze_register_names): Now const.
739 * m68k-tdep.c (m68k_register_names): Now const.
740 * m32r-tdep.c (m32r_register_names): Now const.
741 * ia64-tdep.c (ia64_register_names): Now const.
742 * i386-tdep.h (struct gdbarch_tdep) <register_names,
743 ymmh_register_names, ymm16h_regnum, mpx_register_names,
744 k_register_names, zmmh_register_names, xmm_avx512_register_names,
745 ymm_avx512_register_names, pkeys_register_names>: Now const.
746 * i386-tdep.c (i386_register_names, i386_zmm_names)
747 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
748 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
749 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
750 * f-lang.c (f_extensions): Now const.
751 * d-lang.c (d_extensions): Now const.
752 * csky-tdep.c (csky_register_names): Now const.
753 * charset.c (default_charset_names, charset_enum): Now const.
754 (_initialize_charset): Update.
755 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
756 const.
757 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
758 (bsd_uthread_solib_loaded): Update.
759 (bsd_uthread_state): Now const.
760 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
761 (amd64_ymm_avx512_names, amd64_ymmh_names)
762 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
763 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
764 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
765 (amd64_dword_names): Now const.
766 * agent.c (can_use_agent_enum): Now const.
767 * ada-tasks.c (task_states, long_task_states): Now const.
768 * ada-lang.c (known_runtime_file_name_patterns)
769 (known_auxiliary_function_name_patterns, attribute_names)
770 (standard_exc, ada_extensions): Now const.
771
89806626
SM
7722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
773
774 * bcache.h (struct bcache) <bcache>: Remove constructor.
775 <m_hash_function, m_compare_function>: Remove.
776 <~bcache>: Make virtual.
777 <compare>: Remove static method, introduce virtual method.
778 <default_hash>: Remove.
779 <hash>: New virtual method.
780 * bcache.c (bcache::expand_hash_table): Update.
781 (bcache::insert): Update.
782 (bcache::hash): New.
783 (bcache::compare): Update comment and parameter names.
784 * gdbtypes.c (types_deeply_equal): Update.
785 * psymtab.h (struct psymbol_bcache): New struct.
786 (class psymtab_storage) <psymtab_storage>: Make default.
787 <psymbol_cache>: Change type to psymbol_bcache.
788 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
789 (psymbol_hash): Change to...
790 (psymbol_bcache::hash): ... this.
791 (psymbol_compare): Change to...
792 (psymbol_bcache::compare): ... this.
793
677c92fe
SM
7942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
795
796 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
797 checking for initial lwp.
798
3eba3a01
TT
7992020-09-14 Tom Tromey <tromey@adacore.com>
800
801 * m68k-tdep.c (m68k_extract_return_value): Use
802 pointer_result_regnum.
803 (m68k_store_return_value): Likewise.
804 (m68k_reg_struct_return_p): Handle vectors and arrays.
805 (m68k_return_value): Handle arrays.
806 (m68k_svr4_return_value): Fix single-element aggregate handling.
807 Handle long double. Adjust for embedded ABI.
808 (m68k_svr4_init_abi): Set pointer_result_regnum.
809 (m68k_embedded_init_abi): New function.
810 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
811 (m68k_osabi_sniffer): New function.
812 (_initialize_m68k_tdep): Register osabi sniffer.
813 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
814 member.
815
33f4dd48
SM
8162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
817
818 * xml-support.c (xml_fetch_content_from_file): Replace xfree
819 with gdb::unique_xmalloc_ptr<char>.
820
8400a90d
SM
8212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
822
823 * xml-support.h (xml_fetch_another): Change type to be a
824 function_view.
825 (xml_process_xincludes): Remove baton parameter.
826 (xml_fetch_content_from_file): Change baton parameter to
827 dirname.
828 * xml-support.c (struct xinclude_parsing_data)
829 <xinclude_parsing_data>: Remove baton parameter.
830 <fetcher_baton>: Remove.
831 (xinclude_start_include): Adjust.
832 (xml_process_xincludes): Adjust.
833 (xml_fetch_content_from_file): Replace baton parameter with
834 dirname.
835 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
836 (xml_init_syscalls_info): Use a lambda.
837 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
838 (file_read_description_xml): Use a lambda.
839 (fetch_available_features_from_target): Change baton parameter
840 to target_ops.
841 (target_read_description_xml): Use a lambda.
842 (target_fetch_description_xml): Use a lambda.
843 (string_read_description_xml): Update.
844
04f5bab2
SM
8452020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
846
847 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
848 uses with type::endianity_is_not_default.
849
db558e34
SM
8502020-09-14 Simon Marchi <simon.marchi@efficios.com>
851
852 * gdbtypes.h (struct type) <endianity_is_not_default,
853 set_endianity_is_not_default>: New methods.
854 (TYPE_ENDIANITY_NOT_DEFAULT): Use
855 type::endianity_is_not_default, change all write call sites to
856 use type::set_endianity_is_not_default.
857
22c4c60c
SM
8582020-09-14 Simon Marchi <simon.marchi@efficios.com>
859
860 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
861 uses with type::is_fixed_instance.
862
9cdd0d12
SM
8632020-09-14 Simon Marchi <simon.marchi@efficios.com>
864
865 * gdbtypes.h (struct type) <is_fixed_instance,
866 set_is_fixed_instance>: New methods.
867 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
868 write call sites to use type::set_is_fixed_instance.
869
0becda7a
SM
8702020-09-14 Simon Marchi <simon.marchi@efficios.com>
871
872 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
873 uses with type::is_gnu_ifunc.
874
03cc7249
SM
8752020-09-14 Simon Marchi <simon.marchi@efficios.com>
876
877 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
878 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
879 use type::set_is_gnu_ifunc.
880
3f46044c
SM
8812020-09-14 Simon Marchi <simon.marchi@efficios.com>
882
883 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
884 uses with type::stub_is_supported.
885
9baccff6
SM
8862020-09-14 Simon Marchi <simon.marchi@efficios.com>
887
888 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
889 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
890 use type::set_stub_is_supported.
891
bd63c870
SM
8922020-09-14 Simon Marchi <simon.marchi@efficios.com>
893
894 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
895 uses with type::is_vector.
896
2062087b
SM
8972020-09-14 Simon Marchi <simon.marchi@efficios.com>
898
899 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
900 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
901 use type::set_is_vector.
902
a409645d
SM
9032020-09-14 Simon Marchi <simon.marchi@efficios.com>
904
905 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
906 uses with type::has_varargs.
907
1d6286ed
SM
9082020-09-14 Simon Marchi <simon.marchi@efficios.com>
909
910 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
911 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
912 use type::set_has_varargs.
913
7f9f399b
SM
9142020-09-14 Simon Marchi <simon.marchi@efficios.com>
915
916 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
917 uses with type::is_prototyped.
918
27e69b7a
SM
9192020-09-14 Simon Marchi <simon.marchi@efficios.com>
920
921 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
922 New methods.
923 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
924 call sites to use type::set_is_prototyped.
925
d2183968
SM
9262020-09-14 Simon Marchi <simon.marchi@efficios.com>
927
928 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
929 uses with type::target_is_stub.
930
8f53807e
SM
9312020-09-14 Simon Marchi <simon.marchi@efficios.com>
932
933 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
934 New methods.
935 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
936 sites to use type::set_target_is_stub.
937
e46d3488
SM
9382020-09-14 Simon Marchi <simon.marchi@efficios.com>
939
940 * gdbtypes.h (TYPE_STUB): Remove, replace all
941 uses with type::is_stub.
942
b4b73759
SM
9432020-09-14 Simon Marchi <simon.marchi@efficios.com>
944
945 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
946 (TYPE_STUB): Use type::is_stub, change all write call sites to
947 use type::set_is_stub.
948
20ce4123
SM
9492020-09-14 Simon Marchi <simon.marchi@efficios.com>
950
951 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
952 type::has_no_signedness.
953
15152a54
SM
9542020-09-14 Simon Marchi <simon.marchi@efficios.com>
955
956 * gdbtypes.h (struct type) <has_no_signedness,
957 set_has_no_signedness>: New methods.
958 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
959 call sites to use type::set_has_no_signedness.
960
c6d940a9
SM
9612020-09-14 Simon Marchi <simon.marchi@efficios.com>
962
963 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
964 type::is_unsigned.
965
653223d3
SM
9662020-09-14 Simon Marchi <simon.marchi@efficios.com>
967
968 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
969 methods.
970 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
971 sites to use type::set_is_unsigned.
972
55ea94da
FH
9732020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
974 Adam Renquinha <arenquinha@cimeq.qc.ca>
975
976 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
977 pointer and stack frame offset when unwinding.
978
6791b117
PA
9792020-09-13 Pedro Alves <pedro@palves.net>
980
981 * NEWS: Document "-break-insert --qualified".
982 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
983
77f2120b
PA
9842020-09-13 Pedro Alves <pedro@palves.net>
985
986 * linespec.c (classify_mtype, compare_msyms): Delete.
987 (search_minsyms_for_name): Remove classification logic. Instead
988 filter out trampoline symbols if we also found an external
989 function of the same name.
990
ed6a896c
JB
9912020-09-13 Joel Brobecker <brobecker@adacore.com>
992
993 * NEWS: Create a new section for the next release branch.
994 Rename the section of the current branch, now that it has
995 been cut.
996
32aea73e
JB
9972020-09-13 Joel Brobecker <brobecker@adacore.com>
998
999 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1000 * version.in: Bump version to 11.0.50.DATE-git.
1001
8087c3fa
JB
10022020-09-12 Joel Brobecker <brobecker@adacore.com>
1003
1004 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1005
2a67f09d
FW
10062020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1007 Felix Willgerodt <Felix.Willgerodt@intel.com>
1008
1009 * gdbarch.sh: Added bfloat16 type.
1010 * gdbarch.c: Regenerated.
1011 * gdbarch.h: Regenerated.
1012 * gdbtypes.c (floatformats_bfloat16): New struct.
1013 (gdbtypes_post_init): Add builtin_bfloat16.
1014 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1015 (floatformats_bfloat16): New struct.
1016 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1017 (i386_ymm_type): Add field "v16_bfloat16"
1018 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1019 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1020 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1021 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1022 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1023 * features/i386/64bit-avx512.c: Regenerated.
1024 * features/i386/64bit-sse.xml: Add bfloat16 type.
1025 * features/i386/64bit-sse.c: Regenerated.
1026
1347d111
FW
10272020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1028
1029 * i386-tdep.c (i386_zmm_type): Fix field names.
1030 (i386_ymm_type): Fix field names.
1031
7a4e8e7d
TBA
10322020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1033
1034 * breakpoint.c: Fix typo in the help message of the
1035 "set breakpoint condition-evaluation" command.
1036
cf4ac4be
KR
10372020-09-10 Kamil Rytarowski <n54@gmx.com>
1038
1039 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1040 * (nbsd_nat_target::pid_to_exec_file)
1041 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1042 (nbsd_nat_target::post_startup_inferior)
1043 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1044 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1045 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1046 * (nbsd_thread_lister): Remove.
1047
f404573e
KR
10482020-09-10 Kamil Rytarowski <n54@gmx.com>
1049
1050 * fork-inferior.c (startup_inferior): Avoid double free.
1051
1ccb2c17
KR
10522020-09-10 Kamil Rytarowski <n54@gmx.com>
1053
1054 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1055 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1056
feedfcc7
KR
10572020-09-10 Kamil Rytarowski <n54@gmx.com>
1058
1059 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1060 * netbsd-nat.c: Include <sys/ptrace.h>.
1061 * (netbsd_nat::enable_proc_events): Add.
1062
c489f8c6
KR
10632020-09-10 Kamil Rytarowski <n54@gmx.com>
1064
1065 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1066 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1067 (netbsd_nat::for_each_thread): Add.
1068 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1069 "gdbsupport/common-debug.h".
1070 * (netbsd_nat::netbsd_thread_lister)
1071 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1072 (netbsd_nat::for_each_thread): Add.
1073
330662f6
KR
10742020-09-10 Kamil Rytarowski <n54@gmx.com>
1075
1076 * netbsd-nat.h: Include <unistd.h>.
1077 * (netbsd_nat::pid_to_exec_file): Add.
1078 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1079 * (netbsd_nat::pid_to_exec_file) Add.
1080
70b67307
KR
10812020-09-10 Kamil Rytarowski <n54@gmx.com>
1082
1083 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1084
99cf6da6
KR
10852020-09-10 Kamil Rytarowski <n54@gmx.com>
1086
1087 * netbsd-nat.h: New file.
1088 * netbsd-nat.c: Likewise.
1089
1b788fb6
TT
10902020-09-09 Tom Tromey <tromey@adacore.com>
1091
1092 * ada-lang.c (remove_extra_symbols): Do not increment when
1093 removing an element
1094
03b0a45f
TT
10952020-09-08 Tom Tromey <tromey@adacore.com>
1096
1097 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1098
3cae4447
TT
10992020-09-08 Tom Tromey <tromey@adacore.com>
1100
1101 PR win32/25302:
1102 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1103 (gdb_bfd_init_data): New function.
1104 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1105
7f08fd51
TBA
11062020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1107
1108 * infrun.c (fetch_inferior_event): Use
1109 `switch_to_target_no_thread` to switch the target.
1110
3e6ff933
TT
11112020-09-06 Tom Tromey <tom@tromey.com>
1112
1113 * symfile.h (dwarf2_free_objfile): Don't declare.
1114
e56798df
AKS
11152020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1116
1117 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1118 to match 16 byte real/complex type generated by Flang compiler.
1119
8f5c6526
TV
11202020-09-03 Tom de Vries <tdevries@suse.de>
1121
1122 PR breakpoint/26546
1123 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1124 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1125
c5065df0
SM
11262020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1127
1128 * maint.c (index_digits): New function.
1129 (struct maint_print_section_data): Remove.
1130 (print_bfd_section_info): Remove print_data parameter, add arg
1131 and index_digits.
1132 (print_objfile_section_info): Likewise.
1133 (print_bfd_section_info_maybe_relocated): Likewise (plus
1134 objfile).
1135 (maintenance_info_sections): Adjust calls.
1136
02c6f3f1
TT
11372020-09-02 Tom Tromey <tromey@adacore.com>
1138
1139 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1140 for null pointers.
1141 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1142
ef5e5b0b
SM
11432020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1144
1145 * bcache.h (struct bcache) <insert>: Change type of `added` to
1146 pointer to bool.
1147 * bcache.c (bcache::insert): Likewise.
1148 * gdbtypes.c (check_types_worklist): Adjust.
1149 * psymtab.c (add_psymbol_to_bcache): Adjust.
1150
973695d6
KB
11512020-08-31 Kevin Buettner <kevinb@redhat.com>
1152
1153 * corelow.c (unordered_set): Include.
1154 (class core_target): Add field 'm_core_unavailable_mappings'.
1155 (core_target::build_file_mappings): Print only one warning
1156 per inaccessible file. Add unavailable/broken mappings
1157 to m_core_unavailable_mappings.
1158 (core_target::xfer_partial): Call...
1159 (core_target::xfer_memory_via_mappings): New method.
1160
264fc0e2
SM
11612020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1162
1163 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1164 type to bool.
1165
2de01bdb
SM
11662020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1167
1168 * dwarf2/read.c (struct field_info): Fix indentation.
1169
f3bd50f1
SM
11702020-08-31 Simon Marchi <simon.marchi@efficios.com>
1171
1172 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1173 ordering in comment.
1174 * frame.c (frame_id_eq): Fix indentation.
1175
22b9b4b0
SL
11762020-08-31 Scott Linder <scott@scottlinder.com>
1177 Simon Marchi <simon.marchi@efficios.com>
1178
1179 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1180 inline frame ids in outer frame.
1181
84154d16
SM
11822020-08-31 Simon Marchi <simon.marchi@efficios.com>
1183
1184 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1185 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1186 (outer_frame_id): Use FID_STACK_OUTER instead of
1187 FID_STACK_INVALID.
1188 (frame_id_p): Don't check for outer_frame_id.
1189
8efaf6b3
SM
11902020-08-31 Simon Marchi <simon.marchi@efficios.com>
1191
1192 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1193 regnum/frame in value. Call allocate_value_lazy.
1194 * frame.c (frame_unwind_register_value): Use
1195 val_print_not_saved.
1196
fe1fe7ea
SM
11972020-08-31 Simon Marchi <simon.marchi@efficios.com>
1198
1199 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1200
f7c7700d
PA
12012020-08-29 Pedro Alves <pedro@palves.net>
1202
1203 * progspace.c (print_program_space): Use all_inferiors. Switch to
1204 the inferior before calling target_pid_to_str.
1205
e0814aae
TT
12062020-08-28 Tom Tromey <tom@tromey.com>
1207
1208 * xcoffread.c (xcoff_end_psymtab): Update comment.
1209 * dbxread.c (dbx_end_psymtab): Update comment.
1210
626d2320
TV
12112020-08-28 Tom de Vries <tdevries@suse.de>
1212
1213 PR breakpoint/26544
1214 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1215 event_location.
1216 (create_breakpoint): Same.
1217 (base_breakpoint_decode_location): Same.
1218 (bkpt_create_sals_from_location): Same.
1219 (bkpt_decode_location): Same.
1220 (bkpt_probe_create_sals_from_location): Same.
1221 (bkpt_probe_decode_location): Same.
1222 (tracepoint_create_sals_from_location): Same.
1223 (tracepoint_decode_location): Same.
1224 (tracepoint_probe_decode_location): Same.
1225 (strace_marker_create_sals_from_location): Same.
1226 (strace_marker_decode_location): Same.
1227 (create_sals_from_location_default): Same.
1228 (decode_location_default): Same.
1229 * breakpoint.h (struct breakpoint_ops): Same.
1230 (create_breakpoint): Same.
1231 * linespec.h (decode_line_full): Same.
1232 * linespec.c (decode_line_full): Same. Throw error if
1233 result.size () == 0.
1234
df631783
PA
12352020-08-27 Pedro Alves <pedro@palves.net>
1236
1237 PR gdb/26524
1238 * breakpoint.c (until_break_fsm) <location_breakpoint,
1239 caller_breakpoint>: Delete fields.
1240 <breakpoints>: New field.
1241 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1242 two individual breakpoints.
1243 (until_break_fsm::should_stop): Loop over breakpoints in the
1244 breakpoint vector.
1245 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1246 vector.
1247 (until_break_command): Handle location expanding into multiple
1248 sals.
1249
b2b38aa4
PA
12502020-08-27 Pedro Alves <pedro@palves.net>
1251
1252 PR gdb/26523
1253 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1254 bp_until breakpoints user-specified locations. Update intro
1255 comment.
1256
b886559f
SM
12572020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1258
1259 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1260 gdb_bfd_sections): New.
1261 * maint.c (print_bfd_section_info): Change param type to
1262 maint_print_section_data.
1263 (print_objfile_section_info): Likewise.
1264 (print_bfd_section_info_maybe_relocated): Likewise.
1265 (maintenance_info_sections): Use gdb_bfd_sections.
1266
4c6e63bf
SV
12672020-08-25 Shahab Vahedi <shahab@synopsys.com>
1268
1269 * MAINTAINERS: Add ARC target and maintainer.
1270
8d7f0635
AK
12712020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1272
1273 * configure.tgt: ARC support for GNU/Linux.
1274 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1275 * arc-linux-tdep.c: New file.
1276 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1277 * arc-tdep.c (arc_write_pc): Use it.
1278
fdd8731b
SV
12792020-08-25 Shahab Vahedi <shahab@synopsys.com>
1280
1281 * arc-tdep.c (arc_check_for_hardware_loop): New.
1282 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1283
22459524
SV
12842020-08-25 Shahab Vahedi <shahab@synopsys.com>
1285
1286 * arc-tdep.h: Include "gdbarch.h".
1287
995d3a19
SV
12882020-08-25 Shahab Vahedi <shahab@synopsys.com>
1289
1290 * arch/arc.h
1291 (arc_gdbarch_features): New class to stir the selection of target XML.
1292 (arc_create_target_description): Use FEATURES to choose XML target.
1293 (arc_lookup_target_description): Use arc_create_target_description
1294 to create _new_ target descriptions or return the already created
1295 ones if the FEATURES is the same.
1296 * arch/arc.c: Implementation of prototypes described above.
1297 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1298 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1299 * arc-tdep.c (*_feature_name): Make feature names consistent.
1300 (arc_register_feature): A new struct to hold information about
1301 registers of a particular target/feature.
1302 (arc_check_tdesc_feature): Check if XML provides registers in
1303 compliance with ARC_REGISTER_FEATURE structs.
1304 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1305 (determine_*_reg_feature_set): Which feature name to look for.
1306 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1307 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1308 to expected ISA enums to be used in arc_gdbarch_features structs.
1309 * features/Makefile (FEATURE_XMLFILES): Add new files.
1310 * gdb/features/arc/v1-aux.c: New file.
1311 * gdb/features/arc/v1-aux.xml: Likewise.
1312 * gdb/features/arc/v1-core.c: Likewise.
1313 * gdb/features/arc/v1-core.xml: Likewise.
1314 * gdb/features/arc/v2-aux.c: Likewise.
1315 * gdb/features/arc/v2-aux.xml: Likewise.
1316 * gdb/features/arc/v2-core.c: Likewise.
1317 * gdb/features/arc/v2-core.xml: Likewise.
1318 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1319
3945d2d7
GM
13202020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1321 Andrew Burgess <andrew.burgess@embecosm.com>
1322
1323 PR m2/26372
fc5d6901 1324 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1325 an assert. Remove single element array indexing pattern as the
1326 MULTI_SUBSCRIPT support will handle this case too.
1327
2677f2d3
SM
13282020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1329
1330 * value.h (valprint_check_validity): Move declaration from
1331 here...
1332 * valprint.h (valprint_check_validity): ... to here.
1333
c426fddb
SM
13342020-08-24 Simon Marchi <simon.marchi@efficios.com>
1335
1336 * debug.h: New file.
1337 * debug.c (debug_prefixed_vprintf): New function.
1338 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1339 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1340
1eb8556f
SM
13412020-08-24 Simon Marchi <simon.marchi@efficios.com>
1342
1343 * infrun.h (infrun_debug_printf_1): New function declaration.
1344 (infrun_debug_printf): New macro.
1345 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1346 throughout.
1347 (infrun_debug_printf): New function.
1348 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1349 (handle_jit_event): Likewise.
1350
b8fff44e
MW
13512020-08-21 Mark Wielaard <mark@klomp.org>
1352
1353 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1354
d19c3068
SM
13552020-08-22 Simon Marchi <simon.marchi@efficios.com>
1356
1357 * frame.c (enum class frame_id_status): New.
1358 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1359 (fprintf_frame): Update.
1360 (compute_frame_id): Set frame id status to "computing" on entry.
1361 Set it back to "not_computed" on failure and to "computed" on
1362 success.
1363 (get_frame_id): Assert the frame id is not being computed.
1364 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1365 (create_new_frame): Likewise.
1366 (frame_cleanup_after_sniffer): Update assert.
1367
b70e516e
SM
13682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1369
1370 * regcache.c (pid_ptid_regcache_map): New type.
1371 (target_ptid_regcache_map): Remove.
1372 (target_pid_ptid_regcache_map): New type.
1373 (regcaches): Change type to target_pid_ptid_regcache_map.
1374 (get_thread_arch_aspace_regcache): Update.
1375 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1376 case.
1377 (regcaches_size): Update.
1378 (regcache_count): Update.
1379 (registers_changed_ptid_target_pid_test): New.
1380 (_initialize_regcache): Register new test.
1381
cdd9148a
SM
13822020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1383
1384 * regcache.c (regcache_count): New.
1385 (struct regcache_test_data): New.
1386 (regcache_test_data_up): New.
1387 (populate_regcaches_for_test): New.
1388 (regcaches_test): Remove.
1389 (get_thread_arch_aspace_regcache_test): New.
1390 (registers_changed_ptid_all_test): New.
1391 (registers_changed_ptid_target_test): New.
1392 (registers_changed_ptid_target_ptid_test): New.
1393 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1394 (_initialize_regcache): Register new tests.
1395
dd125343
SM
13962020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1397
1398 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1399 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1400 gdbarch and aspace parameter. Use current inferior's aspace.
1401 Validate regcache's arch value.
1402 (regcaches_test): Update.
1403
3ee93972
SM
14042020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1405
1406 * regcache.c (regcaches_test): Call registers_changed.
1407
33bf4c5c
TBA
14082020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1409
1410 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1411
c2fd7fae
AKS
14122020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1413
1414 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1415 to find the end of prologue for flang compiled binaries.
1416 * arm-tdep.c (arm_skip_prologue): Likewise.
1417 * i386-tdep.c (i386_skip_prologue): Likewise.
1418 * producer.c (producer_is_llvm): New function.
1419 (producer_parsing_tests): Added new tests for clang/flang.
1420 * producer.h (producer_is_llvm): New declaration.
1421
9327494e
SM
14222020-08-18 Simon Marchi <simon.marchi@efficios.com>
1423
1424 * linux-nat.c (linux_nat_debug_printf): New function.
1425 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1426
d138725a
AM
14272020-08-18 Aaron Merey <amerey@redhat.com>
1428
1429 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1430 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1431 (CLIBS): Add DEBUGINFOD_LIBS.
1432
f9b11e6b
ST
14332020-08-17 Sergei Trofimovich <siarheit@google.com>
1434
1435 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1436 'gdbarch_num_regs'.
1437
3ae7ab99
TT
14382020-08-17 Tom Tromey <tromey@adacore.com>
1439
1440 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1441 ada_get_decoded_value returns NULL.
1442
b017825f
TT
14432020-08-17 Tom Tromey <tromey@adacore.com>
1444
1445 * python/py-inferior.c (infpy_search_memory): Use
1446 gdb_py_object_from_ulongest.
1447 * python/py-infevents.c (create_inferior_call_event_object)
1448 (create_memory_changed_event_object): Use
1449 gdb_py_object_from_ulongest.
1450 * python/py-linetable.c (ltpy_entry_get_pc): Use
1451 gdb_py_object_from_ulongest.
1452
7635cf79
SM
14532020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1454
1455 * loc.c (class symbol_needs_eval_context): Fix indentation.
1456
f54be24b
SM
14572020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1458
1459 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1460 bool.
1461
53d5a2a5
TV
14622020-08-17 Tom de Vries <tdevries@suse.de>
1463
1464 PR gdb/26393
1465 * gdbtypes.c (dump_dynamic_prop): New function.
1466 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1467
547ce8f0
TV
14682020-08-15 Tom de Vries <tdevries@suse.de>
1469
1470 PR backtrace/26390
1471 * stack.c (print_frame_args): Temporarily set the selected
1472 frame to FRAME while printing the frame's arguments.
1473
6ea815e7
PFC
14742020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1475
1476 PR breakpoints/26385
1477 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1478 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1479
6e562fa3
PFC
14802020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1481
1482 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1483 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1484 and >= to check return value instead of == -1 and != -1.
1485
d369b608
SM
14862020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1487
1488 * utils.h (class gdb_argv) <as_array_view>: New method.
1489 * utils.c (gdb_argv_as_array_view_test): New.
1490 (_initialize_utils): Register selftest.
1491 * maint.c (maintenance_selftest): Use the new method.
1492
b31488a3
KR
14932020-08-13 Kamil Rytarowski <n54@gmx.com>
1494
1495 * target.h (supports_dumpcore, dumpcore): New
1496 function declarations.
1497 * target.c (supports_dumpcore, dumpcore): New
1498 functions.
1499 * target-delegates.c: Rebuild.
1500 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1501 and target_dumpcore ().
1502
002a3166
AM
15032020-08-13 Aaron Merey <amerey@redhat.com>
1504
1505 * debuginfod-support.c: Replace global variables with user_data.
1506
ece5bc8a
SM
15072020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1508
1509 * maint.c (maintenance_selftest): Split args and pass array_view
1510 to run_tests.
1511
6d8a0a5e
LM
15122020-08-12 Luis Machado <luis.machado@linaro.org>
1513
1514 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1515 type's length.
1516 Use %s and pulongest to print the length.
1517
7cf663a9
PA
15182020-08-12 Pedro Alves <palves@redhat.com>
1519
1520 * NEWS: Move "Multi-target debugging support" item to the
1521 "Changes since GDB 9" section.
1522
27c7b875
PA
15232020-08-12 Pedro Alves <palves@redhat.com>
1524
1525 PR gdb/26336
1526 * progspace.c (program_space::remove_objfile): Invalidate the
1527 frame cache.
1528
1796a2a1
TV
15292020-08-11 Tom de Vries <tdevries@suse.de>
1530
1531 * MAINTAINERS: Mark ms1 as deleted.
1532
f8e3fe0d
LM
15332020-08-10 Luis Machado <luis.machado@linaro.org>
1534
1535 PR gdb/26310
1536
1537 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1538 act accordingly.
1539 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1540 movz/str/stur/stp skipping behavior.
1541
cc308722
LM
15422020-08-10 Luis Machado <luis.machado@linaro.org>
1543
1544 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1545 struct user_sve_header instead of struct sve_context.
1546
041d9819
SM
15472020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1548
1549 * read.h (dwarf2_fetch_die_loc_sect_off,
1550 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1551 `void *` parameter with function_view.
1552 * read.c (dwarf2_fetch_die_loc_sect_off,
1553 dwarf2_fetch_die_loc_cu_off): Likewise.
1554 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1555 (per_cu_dwarf_call): Adjust.
1556 (get_frame_address_in_block_wrapper): Remove.
1557 (indirect_synthetic_pointer): Adjust.
1558 (get_ax_pc): Remove.
1559 (dwarf2_compile_expr_to_ax): Adjust.
1560
38f8aa06
TV
15612020-08-08 Tom de Vries <tdevries@suse.de>
1562
1563 PR build/26344
1564 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1565 constructor.
1566 * regcache.c (get_thread_arch_aspace_regcache): Same.
1567
a52b3ae2
TT
15682020-08-07 Tom Tromey <tromey@adacore.com>
1569
1570 * ravenscar-thread.c
1571 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1572 New method.
1573 (ravenscar_thread_target::wait): Check
1574 runtime_initialized.
1575 (ravenscar_thread_target::prepare_to_store)
1576 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1577 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1578 (ravenscar_thread_target::stopped_by_watchpoint)
1579 (ravenscar_thread_target::stopped_data_address)
1580 (ravenscar_thread_target::core_of_thread): Use
1581 scoped_restore_current_thread and
1582 set_base_thread_from_ravenscar_task.
1583
0e29517d
TT
15842020-08-07 Tom Tromey <tromey@adacore.com>
1585
1586 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1587
592f9bd7
TT
15882020-08-07 Tom Tromey <tromey@adacore.com>
1589
1590 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1591 update_inferior_ptid before update_thread_list.
1592 (temporarily_change_regcache_ptid): New class.
1593 (ravenscar_thread_target::fetch_registers)
1594 (ravenscar_thread_target::store_registers)
1595 (ravenscar_thread_target::prepare_to_store): Use base thread when
1596 forwarding operation.
1597
39e2018a
TT
15982020-08-07 Tom Tromey <tromey@adacore.com>
1599
1600 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1601 "is_pid" case.
1602
2080266b
TT
16032020-08-07 Tom Tromey <tromey@adacore.com>
1604
1605 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1606 New methods.
1607 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1608 first.
1609 (ravenscar_thread_target::add_thread): Rename from
1610 ravenscar_add_thread.
1611 (ravenscar_thread_target::update_thread_list): Use a lambda.
1612 (ravenscar_thread_target::xfer_partial): New method.
1613
78c02f21
TT
16142020-08-07 Tom Tromey <tromey@adacore.com>
1615
1616 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1617 gdb::function_view.
1618 (iterate_over_live_ada_tasks): Change type of argument.
1619 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1620 of argument.
1621
d5d833af
TT
16222020-08-07 Tom Tromey <tromey@adacore.com>
1623
1624 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1625 Remove.
1626 (ravenscar_thread_target::extra_thread_info): Remove.
1627 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1628 defer to target beneath for non-Ravenscar threads.
1629
a8ac85bb
TT
16302020-08-07 Tom Tromey <tromey@adacore.com>
1631
1632 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1633 get_base_thread_from_ravenscar_task>: Now methods.
1634 <m_cpu_map>: New member.
1635 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1636 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1637 (ravenscar_thread_target::task_is_currently_active): Update.
1638 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1639 Now a method.
1640 (ravenscar_thread_target::add_active_thread): Put initial thread
1641 into the m_cpu_map.
1642
550ab58d
TT
16432020-08-07 Tom Tromey <tromey@adacore.com>
1644
1645 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1646 event_ptid.
1647
e9546579
TT
16482020-08-07 Tom Tromey <tromey@adacore.com>
1649
1650 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1651 runtime_initialized.
1652
3d4470e5
TT
16532020-08-07 Tom Tromey <tromey@adacore.com>
1654
1655 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1656 add_active_thread.
1657 (ravenscar_thread_target::add_active_thread): Now public.
1658 (ravenscar_inferior_created): Call add_active_thread after pushing
1659 the target.
1660
888bdb2b
SM
16612020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1662
1663 * regcache.c (ptid_regcache_map): New type.
1664 (target_ptid_regcache_map): New type.
1665 (regcaches): Change type to target_ptid_regcache_map.
1666 (get_thread_arch_aspace_regcache): Update to regcaches' new
1667 type.
1668 (regcache_thread_ptid_changed): Likewise.
1669 (registers_changed_ptid): Likewise.
1670 (regcaches_size): Likewise.
1671 (regcaches_test): Update.
1672 (regcache_thread_ptid_changed): Update.
1673 * regcache.h (regcache_up): New type.
1674 * gdbsupport/ptid.h (hash_ptid): New struct.
1675
b161a60d
SM
16762020-08-07 Simon Marchi <simon.marchi@efficios.com>
1677
1678 * observable.h (thread_ptid_changed): Add parameter
1679 `process_stratum_target *`.
1680 * infrun.c (infrun_thread_ptid_changed): Add parameter
1681 `process_stratum_target *` and use it.
1682 (selftests): New namespace.
1683 (infrun_thread_ptid_changed): New function.
1684 (_initialize_infrun): Register selftest.
1685 * regcache.c (regcache_thread_ptid_changed): Add parameter
1686 `process_stratum_target *` and use it.
1687 (regcache_thread_ptid_changed): New function.
1688 (_initialize_regcache): Register selftest.
1689 * thread.c (thread_change_ptid): Pass target to
1690 thread_ptid_changed observable.
1691
d2854d8d
CT
16922020-08-06 Caroline Tice <cmtice@google.com>
1693
fe4c3d43
SM
1694 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1695 (struct dwp_sections): Update field comments. Add loclists and
1696 rnglists fields.
1697 (struct virtual_v2_dwo_sections): Rename struct to
1698 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1699 size & offset fields for loclists and rnglists.
1700 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1701 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1702 skipping dummy type units.
1703 (create_dwp_hash_table): Update the large comment above the function to
1704 discuss Version 5 DWP files as well, with references. Update all the
1705 version checks in the function to check for version 5 as well. Add new
1706 section at the end to create dwp hash table for version 5.
1707 (create_dwp_v2_section): Rename function to
1708 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1709 Add V5 to error message text.
1710 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1711 into calls to create_dwp_v2_or_v5_section.
1712 (create_dwo_unit_in_dwp_v5): New function.
1713 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1714 check for version2; add else clause to handle version 5.
1715 (open_and_init_dwo_file): Add code to check dwarf version & only call
1716 create_debug_types_hash_table (with sections.types) if version is not 5;
1717 else call create_debug_type_hash_table, with sections.info.
1718 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1719 version 5.
1720 (dwarf2_locate_v5_dwp_sections): New function.
1721 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1722 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1723
159ed7d9
SM
17242020-08-06 Simon Marchi <simon.marchi@efficios.com>
1725
1726 * regcache.h (class regcache): Remove friend
1727 registers_changed_ptid.
1728 <regcache_thread_ptid_changed>: Remove.
1729 <regcaches>: Remove.
1730 * regcache.c (regcache::regcaches): Rename to...
1731 (regcaches): ... this. Make static.
1732 (get_thread_arch_aspace_regcache): Update.
1733 (regcache::regcache_thread_ptid_changed): Rename to...
1734 (regcache_thread_ptid_changed): ... this. Update.
1735 (class regcache_access): Remove.
1736 (regcaches_test): Update.
1737 (_initialize_regcache): Update.
1738 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1739 <forward_list>.
1740
174981ae
SM
17412020-08-06 Simon Marchi <simon.marchi@efficios.com>
1742
1743 * regcache.h (class regcache) <current_regcache>: Rename to...
1744 <regcaches>: ... this. Move doc here.
1745 * regcache.c (regcache::current_regcache) Rename to...
1746 (regcache::regcaches): ... this. Move doc to header.
1747 (get_thread_arch_aspace_regcache): Update.
1748 (regcache::regcache_thread_ptid_changed): Update.
1749 (registers_changed_ptid): Update.
1750 (class regcache_access) <current_regcache_size>: Rename to...
1751 <regcaches_size>: ... this.
1752 (current_regcache_test): Rename to...
1753 (regcaches_test): ... this.
1754 (_initialize_regcache): Update.
1755
ed908db6
VC
17562020-08-06 Victor Collod <vcollod@nvidia.com>
1757
1758 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1759
b5582ab7
KB
17602020-08-05 Kevin Buettner <kevinb@redhat.com>
1761
1762 * corelow.c (core_target::build_file_mappings): Don't output
1763 null pathname in warning.
1764
ea946b86
SM
17652020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1766
1767 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1768 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1769 gdb.dwarf2/dw2-single-line-discriminators.exp,
1770 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1771
57d02173
TT
17722020-08-05 Tom Tromey <tromey@adacore.com>
1773
1774 PR rust/26197:
1775 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1776 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1777 Fix off-by-one and type size errors in ordinary case.
1778
5555c86d
TV
17792020-08-05 Tom de Vries <tdevries@suse.de>
1780
1781 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1782 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1783
97916bfe
SM
17842020-08-04 Simon Marchi <simon.marchi@efficios.com>
1785
1786 * frame.h (frame_id_p): Return bool.
1787 (frame_id_artificial_p): Return bool.
1788 (frame_id_eq): Return bool.
1789 (has_stack_frames): Return bool.
1790 (get_selected_frame): Fix typo in comment.
1791 (get_frame_pc_if_available): Return bool.
1792 (get_frame_address_in_block_if_available): Return bool.
1793 (get_frame_func_if_available): Return bool.
1794 (read_frame_register_unsigned): Return bool.
1795 (get_frame_register_bytes): Return bool.
1796 (safe_frame_unwind_memory): Return bool.
1797 (deprecated_frame_register_read): Return bool.
1798 (frame_unwinder_is): Return bool.
1799 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1800 bool.
1801 <this_id::p>: Likewise.
1802 <prev_p>: Likewise.
1803 (frame_stash_add): Return bool.
1804 (get_frame_id): Use bool.
1805 (frame_id_build_special) Use bool.
1806 (frame_id_build_unavailable_stack): Use bool.
1807 (frame_id_build): Use bool.
1808 (frame_id_p): Return bool, use true/false instead of 1/0.
1809 (frame_id_artificial_p): Likewise.
1810 (frame_id_eq): Likewise.
1811 (frame_id_inner): Likewise.
1812 (get_frame_func_if_available): Likewise.
1813 (read_frame_register_unsigned): Likewise.
1814 (deprecated_frame_register_read): Likewise.
1815 (get_frame_register_bytes): Likewise.
1816 (has_stack_frames): Likewise.
1817 (inside_main_func): Likewise.
1818 (inside_entry_func): Likewise.
1819 (get_frame_pc_if_available): Likewise.
1820 (get_frame_address_in_block_if_available): Likewise.
1821 (frame_unwinder_is): Likewise.
1822 (safe_frame_unwind_memory): Likewise.
1823 (frame_unwind_arch): Likewise.
1824
fedfee88
SM
18252020-08-04 Simon Marchi <simon.marchi@efficios.com>
1826
1827 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1828 type to cached_copy_status.
1829 (fprintf_frame): Adjust.
1830 (get_frame_func_if_available): Adjust.
1831 (frame_cleanup_after_sniffer): Adjust.
1832
6cfa9b59
MW
18332020-08-04 Mark Wielaard <mark@klomp.org>
1834
1835 * MAINTAINERS (Write After Approval): Update email address.
1836
66d6346b
SM
18372020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1838
1839 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1840 dynamic_prop::const_val.
1841
8a6d5e35
SM
18422020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1843
1844 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1845 dynamic_prop::kind.
1846
51d6067d
SM
18472020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1848
1849 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1850
b26e2ae7
JM
18512020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1852
1853 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1854
39791af2
JM
18552020-08-04 Weimin Pan <weimin.pan@oracle.com>
1856 Jose E. Marchesi <jose.marchesi@oracle.com>
1857
1858 * configure.tgt: Add entry for bpf-*-*.
1859 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1860 (ALLDEPFILES): Add bpf-tdep.c.
1861 * bpf-tdep.c: New file.
1862 * MAINTAINERS: Add bpf target and maintainer.
1863 * NEWS: Mention the support for the new target.
1864
521894aa
TV
18652020-08-04 Tom de Vries <tdevries@suse.de>
1866
1867 PR symtab/23270
1868 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1869 Error.
1870
5d6356e9
JB
18712020-08-03 John Baldwin <jhb@FreeBSD.org>
1872
1873 * syscalls/freebsd.xml: Regenerate.
1874
0cf82b81
JB
18752020-08-03 John Baldwin <jhb@FreeBSD.org>
1876
1877 * syscalls/update-freebsd.sh: Fix usage and year range.
1878
8f34b746
TV
18792020-08-03 Tom de Vries <tdevries@suse.de>
1880
1881 PR symtab/26333
1882 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1883 DW_LNE_lo_user/DW_LNE_hi_user range.
1884
5e500d33
SM
18852020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1886
1887 PR ada/26318
1888 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1889 kind.
1890
78319c15
TBA
18912020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1892
1893 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1894
4c55e970
TBA
18952020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1896
1897 * breakpoint.c (set_breakpoint_condition): Update the condition
1898 expressions after checking that the input condition string parses
1899 successfully and does not contain junk at the end.
1900
1e620590
TBA
19012020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1902
1903 * breakpoint.c (set_breakpoint_condition): Update the
1904 condition string after parsing the new condition successfully.
1905
c8693053
RO
19062020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1907
1908 * proc-api.c (_STRUCTURED_PROC): Don't define.
1909 * proc-events.c: Likewise.
1910 * proc-flags.c: Likewise.
1911 * proc-why.c: Likewise.
1912 * procfs.c: Likewise.
1913
1914 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1915 * configure, config.in: Regenerate.
1916
5a99adb8
TV
19172020-07-30 Tom de Vries <tdevries@suse.de>
1918
1919 PR build/26320
1920 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1921 m_red/m_green/m_blue in a union.
1922
8ba83e91
TV
19232020-07-29 Tom de Vries <tdevries@suse.de>
1924
1925 PR tdep/26280
1926 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1927
f75a0693
AB
19282020-07-28 Tom Tromey <tromey@adacore.com>
1929
1930 PR symtab/26270:
1931 * symtab.h (find_pc_partial_function_sym): Declare.
1932 * cli/cli-cmds.c (disassemble_command): Use
1933 find_pc_partial_function_sym. Check asm_demangle.
1934 * blockframe.c (cache_pc_function_sym): New global.
1935 (cache_pc_function_name): Remove.
1936 (clear_pc_function_cache): Update.
1937 (find_pc_partial_function_sym): New function, from
1938 find_pc_partial_function.
1939 (find_pc_partial_function): Rewrite using
1940 find_pc_partial_function_sym.
1941
16f3242c
TT
19422020-07-28 Tom Tromey <tromey@adacore.com>
1943
1944 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1945 help. Add usage.
1946
4888741a
TT
19472020-07-28 Tom Tromey <tromey@adacore.com>
1948
1949 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1950 <DW_OP_GNU_variable_value>: Cast to address type.
1951
4d46f402
KR
19522020-07-28 Kamil Rytarowski <n54@gmx.com>
1953
1954 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1955 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1956 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1957 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1958 (nbsd_get_siginfo_type): New.
1959 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1960 (_initialize_nbsd_tdep): New.
1961
d70f978b
L
19622020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1963
1964 PR binutils/26301
1965 * configure: Regenerated.
1966
377170fa
L
19672020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1968
1969 PR binutils/26301
1970 * configure: Regenerated.
1971
43d5901d
AB
19722020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1973
1974 * python/py-frame.c: Remove 'user-regs.h' include.
1975 (frapy_read_register): Rewrite to make use of
1976 gdbpy_parse_register_id.
1977 * python/py-registers.c (gdbpy_parse_register_id): New function,
1978 moved here from python/py-unwind.c. Updated the return type, and
1979 also accepts register descriptor objects.
1980 * python/py-unwind.c: Remove 'user-regs.h' include.
1981 (pyuw_parse_register_id): Moved to python/py-registers.c.
1982 (unwind_infopy_add_saved_register): Update to use
1983 gdbpy_parse_register_id.
1984 (pending_framepy_read_register): Likewise.
1985 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1986
14fa8fb3
AB
19872020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1988
1989 * python/py-registers.c: Add 'user-regs.h' include.
1990 (register_descriptor_iter_find): New function.
1991 (register_descriptor_iterator_object_methods): New static global
1992 methods array.
1993 (register_descriptor_iterator_object_type): Add pointer to methods
1994 array.
1995
ddce1758
JB
19962020-07-27 John Baldwin <jhb@FreeBSD.org>
1997
1998 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1999 for all architectures on FreeBSD 11.3 and later.
2000
a4089f52
TT
20012020-07-27 Tom Tromey <tromey@adacore.com>
2002
2003 * gcore.h (load_corefile): Don't declare.
2004
95420d30
TV
20052020-07-27 Tom de Vries <tdevries@suse.de>
2006
2007 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2008 * config.in: Regenerate.
2009 * configure: Regenerate.
2010
05a6b8c2
EZ
20112020-07-26 Eli Zaretskii <eliz@gnu.org>
2012
2013 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2014 ws2tcpip.h. When checking whether socklen_t type is defined, use
2015 ws2tcpip.h if it is available and sys/socket.h isn't.
2016 * configure: Regenerate.
2017 * config.in: Regenerate.
2018
e79eb02f
AB
20192020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2020
2021 PR fortran/23051
2022 PR fortran/26139
2023 * valops.c (value_ind): Pass address to
2024 readjust_indirect_value_type.
2025 * value.c (readjust_indirect_value_type): Make parameter
2026 non-const, and add extra address parameter. Resolve original type
2027 before using it.
2028 * value.h (readjust_indirect_value_type): Update function
2029 signature and comment.
2030
876518dd
TV
20312020-07-25 Tom de Vries <tdevries@suse.de>
2032
2033 PR symtab/26243
2034 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2035 entries.
2036
f6720b1c
AM
20372020-07-24 Aaron Merey <amerey@redhat.com>
2038
2039 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2040 * configure: Rebuild.
2041
513487e1
KB
20422020-07-23 Kevin Buettner <kevinb@redhat.com>
2043
2044 PR corefiles/26294
2045 * corelow.c (_initialize_corelow): Add period to help text
2046 for "maintenance print core-file-backed-mappings".
2047
e7bc9db8
PA
20482020-07-23 Pedro Alves <pedro@palves.net>
2049
2050 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2051 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2052 meanwhile.
2053 * frame.c (frame_cache_generation, get_frame_cache_generation):
2054 New.
2055 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2056 (get_prev_frame_if_no_cycle): On exception, don't touch
2057 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2058 * frame.h (get_frame_cache_generation): Declare.
2059
90fcc466
TV
20602020-07-23 Tom de Vries <tdevries@suse.de>
2061
2062 PR tui/26282
2063 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2064 New default constructor.
2065
78344df7
AB
20662020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2067
2068 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2069 exclude non-statement entries.
2070
b089853a
KB
20712020-07-22 Kevin Buettner <kevinb@redhat.com>
2072
2073 * NEWS (New commands): Mention new command
2074 "maintenance print core-file-backed-mappings".
2075
09c2f5d4
KB
20762020-07-22 Kevin Buettner <kevinb@redhat.com>
2077
2078 * corelow.c (gdbcmd.h): Include.
2079 (core_target::info_proc_mappings): New method.
2080 (get_current_core_target): New function.
2081 (maintenance_print_core_file_backed_mappings): New function.
2082 (_initialize_corelow): Add core-file-backed-mappings to
2083 "maint print" commands.
2084
9c5ec5c2 20852020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2086
9c5ec5c2
KB
2087 * linux-tdep.c (dump_note_entry_p): New function.
2088 (linux_dump_mapping_p_ftype): New typedef.
2089 (linux_find_memory_regions_full): Add new parameter,
2090 should_dump_mapping_p.
2091 (linux_find_memory_regions): Adjust call to
2092 linux_find_memory_regions_full.
2093 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2094 call to linux_find_memory_regions_full.
2095
db082f59
KB
20962020-07-22 Kevin Buettner <kevinb@redhat.com>
2097
2098 * corelow.c (solist.h, unordered_map): Include.
2099 (class core_target): Add field m_core_file_mappings and
2100 method build_file_mappings.
2101 (core_target::core_target): Call build_file_mappings.
2102 (core_target::~core_target): Free memory associated with
2103 m_core_file_mappings.
2104 (core_target::build_file_mappings): New method.
2105 (core_target::xfer_partial): Use m_core_file_mappings
2106 for memory transfers.
2107 * linux-tdep.c (linux_read_core_file_mappings): New
2108 function.
2109 (linux_core_info_proc_mappings): Rewrite to use
2110 linux_read_core_file_mappings.
2111 (linux_init_abi): Register linux_read_core_file_mappings.
2112
7e183d27
KB
21132020-07-22 Kevin Buettner <kevinb@redhat.com>
2114
2115 * arch-utils.c (default_read_core_file_mappings): New function.
2116 * arch-utils.c (default_read_core_file_mappings): Declare.
2117 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2118 * gdbarch.h, gdbarch.c: Regenerate.
2119
2735d421
KB
21202020-07-22 Kevin Buettner <kevinb@redhat.com>
2121
2122 PR corefiles/25631
2123 * corelow.c (core_target:xfer_partial): Revise
2124 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2125 case after first checking the stratum beneath the core
2126 target.
2127 (has_all_memory): Return true.
2128 * target.c (raw_memory_xfer_partial): Revise comment
2129 regarding use of has_all_memory.
2130
e56cb451
KB
21312020-07-22 Kevin Buettner <kevinb@redhat.com>
2132
2133 * exec.h (section_table_xfer_memory): Revise declaration,
2134 replacing section name parameter with an optional callback
2135 predicate.
2136 * exec.c (section_table_xfer_memory): Likewise.
2137 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2138 of section_table_xfer_memory.
2139
32fa152e
TT
21402020-07-22 Tom Tromey <tromey@adacore.com>
2141
2142 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2143 lookup_symbol_search_name.
2144
a67a1c41
AB
21452020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2146
2147 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2148 redundant local variable.
2149 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2150 reference, not pointer, update code accordingly.
2151
a7b4ff4f
SM
21522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2153 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2154
2155 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2156 * jit.c (jit_breakpoint_re_set_internal): Use the
2157 `skip_jit_symbol_lookup` field.
2158
2340e834
SM
21592020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2160 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2161
2162 * jit.c (jit_read_descriptor): Define the descriptor address once,
2163 use twice.
2164 (jit_breakpoint_deleted): Move the declaration of the loop variable
2165 `iter` into the loop header.
2166 (jit_breakpoint_re_set_internal): Move the declaration of the local
2167 variable `objf_data` to the first point of definition.
2168 (jit_event_handler): Move the declaration of local variables
2169 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2170 Rename `objf` to `jited`.
2171
c1072906
SM
21722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2173
2174 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2175 Remove.
2176 * jit.c (get_jiter_objfile_data): Update.
2177
c8474dc3
TBA
21782020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2179 Simon Marchi <simon.marchi@polymtl.ca>
2180
2181 * jit.c (struct jit_program_space_data): Remove.
2182 (jit_program_space_key): Remove.
2183 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2184 stuff.
2185 (get_jit_program_space_data): Remove.
2186 (jit_breakpoint_deleted): Iterate on all of the program space's
2187 objfiles.
2188 (jit_inferior_init): Likewise.
2189 (jit_breakpoint_re_set_internal): Likewise. Also change return
2190 type to void.
2191 (jit_breakpoint_re_set): Pass current_program_space to
2192 jit_breakpoint_re_set_internal.
2193
77208eb7
SM
21942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2195
2196 * jit.h (struct jiter_objfile_data) <cached_code_address,
2197 jit_breakpoint>: Move to here from ...
2198 * jit.c (jit_program_space_data): ... here.
2199 (jiter_objfile_data::~jiter_objfile_data): Update.
2200 (jit_breakpoint_deleted): Update.
2201 (jit_breakpoint_re_set_internal): Update.
2202
8c1c720f
SM
22032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2204
2205 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2206 checks.
2207 (jit_read_descriptor): Remove NULL check.
2208 (jit_event_handler): Add an assertion.
2209
0e74a041
SM
22102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2211
2212 * jit.h (struct jit_objfile_data): Split into...
2213 (struct jiter_objfile_data): ... this ...
2214 (struct jited_objfile_data): ... and this.
2215 * objfiles.h (struct objfile) <jit_data>: Remove.
2216 <jiter_data, jited_data>: New fields.
2217 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2218 (jiter_objfile_data::~jiter_objfile_data): ... this.
2219 (get_jit_objfile_data): Rename to ...
2220 (get_jiter_objfile_data): ... this.
2221 (add_objfile_entry): Update.
2222 (jit_read_descriptor): Use get_jiter_objfile_data.
2223 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2224 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2225 (jit_inferior_exit_hook): Use objfile's jited_data field.
2226
238b5c9f
SM
22272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2228
2229 * jit.h: Forward-declare `struct minimal_symbol`.
2230 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2231 constructor, destructor, and an objfile* field.
2232 * jit.c (jit_objfile_data): Remove.
2233 (struct jit_objfile_data): Migrate from here to jit.h.
2234 (jit_objfile_data::~jit_objfile_data): New destructor
2235 implementation with code moved from free_objfile_data.
2236 (free_objfile_data): Delete.
2237 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2238 (jit_find_objf_with_entry_addr): Ditto.
2239 (jit_inferior_exit_hook): Ditto.
2240 (_initialize_jit): Remove the call to
2241 register_objfile_data_with_cleanup.
2242 * objfiles.h (struct objfile) <jit_data>: New field.
2243
fe053b9e
TBA
22442020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2245
2246 * jit.h: Forward-declare `struct objfile`.
2247 (jit_event_handler): Add a second parameter, the JITer objfile.
2248 * jit.c (jit_read_descriptor): Change the signature to take the
2249 JITer objfile as an argument instead of the jit_program_space_data.
2250 (jit_inferior_init): Update the call to jit_read_descriptor.
2251 (jit_event_handler): Use the new JITer objfile argument when calling
2252 jit_read_descriptor.
2253 * breakpoint.c (handle_jit_event): Update the call to
2254 jit_event_handler to pass the JITer objfile.
2255
4cec0c66
JB
22562020-07-21 John Baldwin <jhb@FreeBSD.org>
2257
2258 * gdbarch.c: Regenerate.
2259 * gdbarch.h: Regenerate.
2260 * gdbarch.sh (handle_segmentation_fault): Remove method.
2261 * infrun.c (handle_segmentation_fault): Remove.
2262 (print_signal_received_reason): Remove call to
2263 handle_segmentation_fault.
2264
0e42f66a
JB
22652020-07-21 John Baldwin <jhb@FreeBSD.org>
2266
2267 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2268 Rename to sparc64_linux_report_signal_info and add siggnal
2269 argument.
2270 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2271 instead of sparc64_linux_handle_segmentation_fault.
2272
77bdfeb2
JB
22732020-07-21 John Baldwin <jhb@FreeBSD.org>
2274
2275 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2276 i386_linux_report_signal_info instead of
2277 i386_linux_handle_segmentation_fault.
2278 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2279 to i386_linux_report_signal_info and add siggnal argument.
2280 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2281 of i386_linux_handle_segmentation_fault.
2282 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2283 to i386_linux_report_signal_info and add siggnal argument.
2284
ad97bfc5
JB
22852020-07-21 John Baldwin <jhb@FreeBSD.org>
2286
2287 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2288 hook if present.
2289
272bb05c
JB
22902020-07-21 John Baldwin <jhb@FreeBSD.org>
2291
2292 * gdbarch.c: Regenerate.
2293 * gdbarch.h: Regenerate.
2294 * gdbarch.sh (report_signal_info): New method.
2295 * infrun.c (print_signal_received_reason): Invoke gdbarch
2296 report_signal_info hook if present.
2297
baf8791e
AB
22982020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2299
2300 * python/py-registers.c : Add 'unordered_map' include.
2301 (gdbpy_new_reggroup): Renamed to...
2302 (gdbpy_get_reggroup): ...this. Update to only create register
2303 group descriptors when needed.
2304 (gdbpy_reggroup_iter_next): Update.
2305
f7306dac
AB
23062020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2307
2308 * python/py-registers.c (gdbpy_register_object_data): New static
2309 global.
2310 (gdbpy_register_object_data_init): New function.
2311 (gdbpy_new_register_descriptor): Renamed to...
2312 (gdbpy_get_register_descriptor): ...this, and update to reuse
2313 existing register descriptors where possible.
2314 (gdbpy_register_descriptor_iter_next): Update.
2315 (gdbpy_initialize_registers): Register new gdbarch data.
2316
05c309a8
SM
23172020-07-21 Simon Marchi <simon.marchi@efficios.com>
2318
2319 * linux-nat.c (stopped_pids): Make static.
2320
d1fd641e
SM
23212020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2322
2323 PR ada/26235
2324 * gdbtypes.c (ada_discrete_type_low_bound,
2325 ada_discrete_type_high_bound): Handle undefined bounds.
2326
1de14d77
KR
23272020-07-21 Kamil Rytarowski <n54@gmx.com>
2328
2329 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2330 declaration.
2331 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2332 function.
2333
ed810cc7
JB
23342020-07-20 John Baldwin <jhb@FreeBSD.org>
2335
2336 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2337 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2338 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2339 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2340 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2341 method.
2342
ae5369e7
LC
23432020-07-20 Ludovic Courtès <ludo@gnu.org>
2344
2345 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2346 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2347 which are deprecated in Guile 3.0.
2348 * configure.ac (try_guile_versions): Add "guile-3.0".
2349 * configure (try_guile_versions): Regenerate.
2350 * NEWS: Update entry.
2351
68cf161c
LC
23522020-07-20 Ludovic Courtès <ludo@gnu.org>
2353 Doug Evans <dje@google.com>
2354
2355 PR gdb/21104
2356 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2357 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2358 USING_GUILE_BEFORE_2_2.
2359 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2360 Change type to 'scm_t_port_type *'.
2361 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2362 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2363 parameter and honor it. Update callers.
2364 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2365 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2366 functions.
2367 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2368 USING_GUILE_BEFORE_2_2.
2369 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2370 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2371 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2372 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2373 and 'SCM_PORT_TYPE'.
2374 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2375 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2376 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2377 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2378 [!USING_GUILE_BEFORE_2_2]: New functions.
2379 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2380 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2381 'gdbscm_memory_port_read'.
2382 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2383 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2384 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2385 function.
2386 (ioscm_init_memory_port): Remove.
2387 (ioscm_init_memory_port_stream): New function
2388 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2389 function.
2390 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2391 Return scm_from_uint (0).
2392 (gdbscm_set_memory_port_read_buffer_size_x)
2393 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2394 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2395 Return scm_from_uint (0).
2396 (gdbscm_set_memory_port_write_buffer_size_x)
2397 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2398 * configure.ac (try_guile_versions): Add "guile-2.2".
2399 * configure: Regenerate.
2400 * NEWS: Add entry.
2401
aee91db3
TT
24022020-07-18 Tom Tromey <tom@tromey.com>
2403
2404 * linux-nat.c (linux_multi_process): Remove.
2405 (linux_nat_target::supports_multi_process): Return true.
2406
0e267416
AB
24072020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2408
2409 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2410 (riscv_lookup_target_description): Return pointer out of
2411 unique_ptr.
2412 * target-descriptions.c (allocate_target_description): Add
2413 comment.
2414 (target_desc_deleter::operator()): Likewise.
2415 * target-descriptions.h (struct target_desc_deleter): Moved to
2416 gdbsupport/tdesc.h.
2417 (target_desc_up): Likewise.
2418
f80c8ec4
TT
24192020-07-17 Tom Tromey <tromey@adacore.com>
2420
2421 * linux-nat.c (linux_nat_target::supports_non_stop)
2422 (linux_nat_target::always_non_stop_p): Use "true".
2423 (linux_nat_target::supports_disable_randomization): Use "true" and
2424 "false".
2425
d0ce17d8
CT
24262020-07-16 Caroline Tice <cmtice@google.com>
2427
2428 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2429 (RNGLIST_HEADER_SIZE64): New constant definition.
2430 (struct dwop_section_names): Add rnglists_dwo.
2431 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2432 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2433 (struct dwo_sections): Add rnglists field.
2434 (read_attribut_reprocess): Add tag parameter.
2435 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2436 (cu_debug_rnglists_section): New function (decl & definition).
2437 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2438 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2439 die whose range is being checked; get rnglist section from
2440 cu_debug_rnglists_section, to get from either objfile or dwo file as
2441 appropriate. Add cases for DW_RLE_base_addressx,
2442 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2443 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2444 test inside if-condition and updating complaint message.
2445 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2446 dwarf2_rnglists_process.
2447 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2448 dwarf2_ranges_process.
2449 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2450 need_ranges_base and update comment appropriately. Also pass die tag
2451 to dwarf2_ranges_read.
2452 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2453 need_ranges_base and update comment appropriately. Also pass die tag
2454 to dwarf2_ranges_process.
2455 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2456 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2457 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2458 need_ranges_base and update comment appropriately. Also pass die tag
2459 to read_attribute_reprocess and dwarf2_ranges_read.
2460 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2461 and update function comment appropriately.
2462 (read_loclist_index): Call read_loclists_rnglists_header instead of
2463 read_loclist_header.
2464 (read_rnglist_index): New function.
2465 (read_attribute_reprocess): Add tag parameter. Add code for
2466 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2467 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2468
3dcc261c
AB
24692020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2470
2471 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2472 being resolved.
2473
ccb9eba6
AB
24742020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2475
2476 * arch-utils.c (show_architecture): Update formatting of messages.
2477
cf88be68
SM
24782020-07-12 Simon Marchi <simon.marchi@efficios.com>
2479
2480 * gdbtypes.h (struct type) <bounds>: Handle array and string
2481 types.
2482 * ada-lang.c (assign_aggregate): Use type::bounds on
2483 array/string type.
2484 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2485 * c-varobj.c (c_number_of_children): Likewise.
2486 (c_describe_child): Likewise.
2487 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2488 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2489 (f_type_print_base): Likewise.
2490 * f-valprint.c (f77_array_offset_tbl): Likewise.
2491 (f77_get_upperbound): Likewise.
2492 (f77_print_array_1): Likewise.
2493 * guile/scm-type.c (gdbscm_type_range): Likewise.
2494 * m2-typeprint.c (m2_array): Likewise.
2495 (m2_is_long_set_of_type): Likewise.
2496 * m2-valprint.c (get_long_set_bounds): Likewise.
2497 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2498 * python/py-type.c (typy_range): Likewise.
2499 * rust-lang.c (rust_internal_print_type): Likewise.
2500 * type-stack.c (type_stack::follow_types): Likewise.
2501 * valarith.c (value_subscripted_rvalue): Likewise.
2502 * valops.c (value_cast): Likewise.
2503
509971ae
SM
25042020-07-12 Simon Marchi <simon.marchi@efficios.com>
2505
2506 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2507 callers to use the equivalent accessor methods.
2508
107406b7
SM
25092020-07-12 Simon Marchi <simon.marchi@efficios.com>
2510
2511 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2512 (struct type) <bit_stride>: New method.
2513 (TYPE_BIT_STRIDE): Remove.
2514 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2515
bb789949
SM
25162020-07-12 Simon Marchi <simon.marchi@efficios.com>
2517
2518 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2519 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2520 callers to use the equivalent accessor methods instead.
2521
39498edb
SM
25222020-07-12 Simon Marchi <simon.marchi@efficios.com>
2523
2524 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2525 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2526 callers to use the equivalent accessor methods instead.
2527
3b606f38
SM
25282020-07-12 Simon Marchi <simon.marchi@efficios.com>
2529
2530 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2531 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2532 to use dynamic_prop::kind.
2533
064d9cb9
SM
25342020-07-12 Simon Marchi <simon.marchi@efficios.com>
2535
2536 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2537 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2538 to get the bound property's kind and check against
2539 PROP_UNDEFINED.
2540
5537ddd0
SM
25412020-07-12 Simon Marchi <simon.marchi@efficios.com>
2542
2543 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2544 all callers to use type::range_bounds followed by
2545 dynamic_prop::{low,high}.
2546
8c2e4e06
SM
25472020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2548
2549 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2550 const_val, set_const_val, baton, set_locexpr, set_loclist,
2551 set_addr_offset, variant_parts, set_variant_parts,
2552 original_type, set_original_type>: New methods.
2553 <kind>: Rename to...
2554 <m_kind>: ... this. Update all users to use the new methods
2555 instead.
2556 <data>: Rename to...
2557 <m_data>: ... this. Update all users to use the new methods
2558 instead.
2559
7c6f2712
SM
25602020-07-12 Simon Marchi <simon.marchi@efficios.com>
2561
2562 * gdbtypes.c (get_discrete_bounds): Return failure if
2563 the range type's bounds are not both defined and constant
2564 values.
2565 (get_array_bounds): Update comment. Remove undefined bound check.
2566
599088e3
SM
25672020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2568
2569 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2570 the type::bounds method directly.
2571
c4dfcb36
SM
25722020-07-12 Simon Marchi <simon.marchi@efficios.com>
2573
2574 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2575 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2576 are used to set the range type's bounds to use set_bounds.
2577
0a278aa7
PW
25782020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2579
2580 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2581
cce20f10
PA
25822020-07-10 Pedro Alves <pedro@palves.net>
2583
2584 * gdbthread.h (inferior_ref): Define.
2585 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2586 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2587 * thread.c
2588 (scoped_restore_current_thread::restore):
2589 Adjust to gdb::ref_ptr.
2590 (scoped_restore_current_thread::~scoped_restore_current_thread):
2591 Remove manual decref handling.
2592 (scoped_restore_current_thread::scoped_restore_current_thread):
2593 Adjust to use
2594 inferior_ref::new_reference/thread_info_ref::new_reference.
2595 Incref the thread before calling get_frame_id instead of after.
2596 Let TARGET_CLOSE_ERROR propagate.
2597
6d7aa592
PA
25982020-07-10 Pedro Alves <pedro@palves.net>
2599
2600 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2601 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2602 NOT_AVAILABLE_ERROR.
2603 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2604 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2605
b3e3a4c1
SM
26062020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2607 Pedro Alves <pedro@palves.net>
2608
2609 PR gdb/26199
2610 * infrun.c (threads_are_resumed_pending_p): Delete.
2611 (do_target_wait): Remove threads_are_executing and
2612 threads_are_resumed_pending_p checks from the inferior_matches
2613 lambda. Update comments.
2614
d6cc5d98
PA
26152020-07-10 Pedro Alves <pedro@palves.net>
2616
2617 PR gdb/26199
2618 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2619 executing threads.
2620
7d3badc6
PA
26212020-07-10 Pedro Alves <pedro@palves.net>
2622
2623 PR gdb/26199
2624 * infrun.c (handle_no_resumed): Handle multiple targets.
2625
42bd97a6
PA
26262020-07-10 Pedro Alves <pedro@palves.net>
2627
2628 PR gdb/26199
2629 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2630 target_is_async_p.
2631
43667cc6
PA
26322020-07-10 Pedro Alves <pedro@palves.net>
2633
2634 PR gdb/26199
2635 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2636 threads, not all threads.
2637
96118d11
PA
26382020-07-10 Pedro Alves <pedro@palves.net>
2639
2640 PR gdb/26199
2641 * remote.c (remote_target::open_1): Pass remote target pointer as
2642 data to create_async_event_handler.
2643 (remote_async_inferior_event_handler): Mark async event handler
2644 before returning if the remote target still has either pending
2645 events or unacknowledged notifications.
2646
54904d81
JB
26472020-07-10 John Baldwin <jhb@FreeBSD.org>
2648
2649 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2650 declaration.
2651 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2652 function.
2653
f37e5866
JB
26542020-07-09 John Baldwin <jhb@FreeBSD.org>
2655
2656 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2657 inferior_ptid.
2658
fc238d4a
JB
26592020-07-09 John Baldwin <jhb@FreeBSD.org>
2660
2661 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2662 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2663 AT_FREEBSD_PS_STRINGS.
2664
6e2469ff
HD
26652020-07-08 Hannes Domani <ssbssa@yahoo.de>
2666
2667 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2668 of debugfile path on Windows.
2669
d1076c41
JB
26702020-07-08 John Baldwin <jhb@FreeBSD.org>
2671
2672 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2673 argument to 'data'.
2674
15f3b077
TT
26752020-07-08 Tom Tromey <tromey@adacore.com>
2676
2677 * ada-lang.c (ada_exception_message_1): Use read_memory.
2678
9fc501fd
AB
26792020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2680
2681 PR python/22748
2682 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2683 special handling for inline frames.
2684 * findvar.c (value_of_register_lazy): Skip inline frames when
2685 creating lazy register values.
2686 * frame.c (frame_id_computed_p): Delete definition.
2687 * frame.h (frame_id_computed_p): Delete declaration.
2688
64cb3757
AB
26892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2690
2691 * NEWS: Mention additions to Python API.
2692 * python/py-arch.c (archpy_register_groups): New function.
2693 (arch_object_methods): Add 'register_groups' method.
2694 * python/py-registers.c (reggroup_iterator_object): New struct.
2695 (reggroup_object): New struct.
2696 (gdbpy_new_reggroup): New function.
2697 (gdbpy_reggroup_to_string): New function.
2698 (gdbpy_reggroup_name): New function.
2699 (gdbpy_reggroup_iter): New function.
2700 (gdbpy_reggroup_iter_next): New function.
2701 (gdbpy_new_reggroup_iterator): New function
2702 (gdbpy_initialize_registers): Register new types.
2703 (reggroup_iterator_object_type): Define new Python type.
2704 (gdbpy_reggroup_getset): New static global.
2705 (reggroup_object_type): Define new Python type.
2706 * python/python-internal.h
2707
0f767f94
AB
27082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2709
2710 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2711 * python/py-arch.c (archpy_registers): New function.
2712 (arch_object_methods): Add 'registers' method.
2713 * python/py-registers.c: New file.
2714 * python/python-internal.h
2715 (gdbpy_new_register_descriptor_iterator): Declare.
2716 (gdbpy_initialize_registers): Declare.
2717 * python/python.c (do_start_initialization): Call
2718 gdbpy_initialize_registers.
2719 * NEWS: Mention additions to the Python API.
2720
87dbc774
AB
27212020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2722
2723 * NEWS: Mention new Python API method.
2724 * python/py-unwind.c (pending_framepy_architecture): New function.
2725 (pending_frame_object_methods): Add architecture method.
2726
3bc98c0c
AB
27272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2728
2729 * gdbarch.c: Regenerate.
2730 * gdbarch.h: Regenerate.
2731 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2732 (gdbarch_data): Use internal_error for the case where
2733 deprecated_set_gdbarch_data was originally needed.
2734 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2735 and use passed in obstack.
2736 (libunwind_frame_set_descr): Should no longer get back NULL from
2737 gdbarch_data.
2738 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2739 type.
2740 * user-regs.c (user_regs_init): Update parameters, and use passed
2741 in obstack.
2742 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2743 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2744
d8cc8af6
TV
27452020-07-06 Tom de Vries <tdevries@suse.de>
2746
2747 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2748 End-Of-Sequence in lte_is_less_than.
2749 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2750 "gdb: Don't reorder line table entries too much when sorting".
2751
947f7597
TV
27522020-07-06 Tom de Vries <tdevries@suse.de>
2753
2754 PR tui/26205
2755 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2756
1e7c1b22
TV
27572020-07-05 Tom de Vries <tdevries@suse.de>
2758
2759 PR build/26187
2760 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2761 std::uncaught_exceptions instead of deprecated
2762 std::uncaught_exception.
2763
a36158ec
SM
27642020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2765
2766 * macroexp.h (macro_stringify): Return
2767 gdb::unique_xmalloc_ptr<char>.
2768 * macroexp.c (macro_stringify): Likewise.
2769 * macrotab.c (fixup_definition): Update.
2770
14d960c8
SM
27712020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2772
2773 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2774 (lex_one_token): Update.
2775 * macroexp.c (struct macro_buffer) <release>: Return
2776 gdb::unique_xmalloc_ptr<char>.
2777 (macro_stringify): Update.
2778 (macro_expand): Update.
2779 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2780 * macroexp.h (macro_expand_next): Likewise.
2781
211d5b1c
SM
27822020-07-02 Simon Marchi <simon.marchi@efficios.com>
2783
2784 * macroexp.h (macro_lookup_ftype): Remove.
2785 (macro_expand, macro_expand_once, macro_expand_next): Remove
2786 lookup function parameters, add scope parameter.
2787 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2788 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2789 * macroscope.h (standard_macro_lookup): Change parameter type
2790 to macro_scope.
2791 * macroscope.c (standard_macro_lookup): Likewise.
2792 * c-exp.y (lex_one_token): Update.
2793 * macrocmd.c (macro_expand_command): Likewise.
2794 (macro_expand_once_command): Likewise.
2795
b1a35af2
SM
27962020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2797
2798 * inf-loop.c (inferior_event_handler): Remove client_data param.
2799 * inf-loop.h (inferior_event_handler): Likewise.
2800 * infcmd.c (step_1): Adjust.
2801 * infrun.c (proceed): Adjust.
2802 (fetch_inferior_event): Remove client_data param.
2803 (infrun_async_inferior_event_handler): Adjust.
2804 * infrun.h (fetch_inferior_event): Remove `void *` param.
2805 * linux-nat.c (handle_target_event): Adjust.
2806 * record-btrace.c (record_btrace_handle_async_inferior_event):
2807 Adjust.
2808 * record-full.c (record_full_async_inferior_event_handler):
2809 Adjust.
2810 * remote.c (remote_async_inferior_event_handler): Adjust.
2811
1cdf9e33
TT
28122020-07-01 Tom Tromey <tom@tromey.com>
2813
2814 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2815 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2816
32c1e210
TT
28172020-07-01 Tom Tromey <tom@tromey.com>
2818
2819 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2820 tui_gen_win_info.
2821 (tui_win_info::make_window): Merge with
2822 tui_gen_win_info::make_window.
2823 (tui_win_info::make_visible): Move from tui_gen_win_info.
2824 * tui/tui-win.c (tui_win_info::max_width): Move from
2825 tui_gen_win_info.
2826 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2827 type.
2828 <window_factory>: Likewise.
2829 * tui/tui-layout.c (tui_win_info::resize): Move from
2830 tui_gen_win_info.
2831 (make_standard_window): Change return type.
2832 (get_locator_window, tui_get_window_by_name): Likewise.
2833 (tui_layout_window::apply): Remove a cast.
2834 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2835 (struct tui_win_info): Merge with tui_gen_win_info.
2836 (struct tui_gen_win_info): Remove.
2837
a30cb6da
TT
28382020-07-01 Tom Tromey <tom@tromey.com>
2839
2840 * tui/tui-stack.h (struct tui_locator_window): Derive from
2841 tui_win_info.
2842 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2843 <can_box>: New method.
2844
1eb2161f
TT
28452020-07-01 Tom Tromey <tom@tromey.com>
2846
2847 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2848
7134f2eb
TT
28492020-07-01 Tom Tromey <tom@tromey.com>
2850
2851 * tui/tui-regs.c (tui_data_window::display_registers_from)
2852 (tui_data_window::display_registers_from)
2853 (tui_data_window::first_data_item_displayed)
2854 (tui_data_window::delete_data_content_windows): Update.
2855 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2856 Remove.
2857 (tui_data_window::check_register_values): Update.
2858 (tui_data_item_window::rerender): Add parameters. Update.
2859 (tui_data_item_window::refresh_window): Remove.
2860 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2861 virtual.
2862 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2863 tui_gen_win_info.
2864 <refresh_window, max_height, min_height>: Remove.
2865 <rerender>: Add parameters.
2866 <x, y, visible>: New members.
2867 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2868 <m_item_width>: New member.
2869
22b7b041
TT
28702020-07-01 Tom Tromey <tom@tromey.com>
2871
2872 * tui/tui-regs.c (tui_data_window::show_register_group)
2873 (tui_data_window::check_register_values): Update.
2874 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2875 from item_no.
2876
c9753adb
TT
28772020-07-01 Tom Tromey <tom@tromey.com>
2878
2879 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2880 useless "if".
2881
9ab26b4a
TT
28822020-07-01 Tom Tromey <tom@tromey.com>
2883
2884 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2885 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2886
e555083f
TT
28872020-07-01 Tom Tromey <tom@tromey.com>
2888
2889 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2890 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2891 (struct tui_line_or_address): Move from tui-data.h.
2892 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2893 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2894 (tui_cmd_window, tui_source_window_base, tui_source_window)
2895 (tui_disasm_window): Don't declare.
2896 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2897 to tui-winsource.h.
2898 (SINGLE_KEY): Move to tui-stack.c.
2899
7a02bab7
TT
29002020-07-01 Tom Tromey <tom@tromey.com>
2901
2902 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2903 std::string.
2904 * tui/tui-regs.c (class tab_expansion_file): New.
2905 (tab_expansion_file::write): New method.
2906 (tui_register_format): Change return type. Use
2907 tab_expansion_file.
2908 (tui_get_register, tui_data_window::display_registers_from)
2909 (tui_data_item_window::rerender): Update.
2910 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2911 * tui/tui-io.c (tui_expand_tabs): Remove.
2912
ea68593b
TT
29132020-07-01 Tom Tromey <tom@tromey.com>
2914
2915 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2916
a8caed5d
FS
29172020-07-01 Fangrui Song <maskray@google.com>
2918
2919 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2920
9cdf9820
AKS
29212020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2922
2923 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2924 forms for DW_AT_associated and DW_AT_allocated attributes,
2925 which is already checked in function attr_to_dynamic_prop.
2926
a1520ad8
TT
29272020-06-30 Tom Tromey <tromey@adacore.com>
2928
2929 * dwarf2/read.c (quirk_rust_enum): Correctly call
2930 alloc_rust_variant for default-less enum.
2931
5ac58899
TT
29322020-06-30 Tom Tromey <tromey@adacore.com>
2933
2934 PR build/26183:
2935 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2936 gdb::to_string.
2937
19b187a9
SM
29382020-06-29 Simon Marchi <simon.marchi@efficios.com>
2939
2940 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2941 * gdbarch.h: Re-generate.
2942
cd4c4c07
TT
29432020-06-28 Tom Tromey <tom@tromey.com>
2944
2945 * command.h (cmd_types): Remove.
2946 (cmd_type): Don't declare.
2947 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2948 typedef.
2949 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2950 * cli/cli-decode.c (cmd_type): Remove.
2951
05779d57
PA
29522020-06-27 Pedro Alves <palves@redhat.com>
2953
2954 * fork-child.c (prefork_hook): Adjust.
2955 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2956 Delete.
2957 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2958 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2959 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2960 Remove declarations.
2961 (struct inferior) <set_tty, tty>: New methods.
2962 (struct inferior) <terminal>: Rename to ...
2963 (struct inferior) <m_terminal>: ... this and make private.
2964 * main.c (captured_main_1): Adjust.
2965 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2966 (mi_cmd_inferior_tty_show): Adjust.
2967 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2968 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2969
1776e3e5
NA
29702020-06-26 Nick Alcock <nick.alcock@oracle.com>
2971
2972 * configure.ac: Add --enable-libctf: handle --disable-static
2973 properly.
2974 * acinclude.m4: sinclude ../config/enable.m4.
2975 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2976 (LIBCTF): Substitute in.
2977 (CTF_DEPS): New, likewise.
2978 (CLIBS): libctf needs symbols from libbfd: move earlier.
2979 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2980 flags.
2981 * ctfread.c: Surround in ENABLE_LIBCTF.
2982 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2983 * configure: Regenerate.
2984 * config.in: Likewise.
2985
58373b80
SM
29862020-06-25 Simon Marchi <simon.marchi@efficios.com>
2987
2988 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2989
277474ee
SM
29902020-06-25 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * inferior.h (struct inferior) <terminal>: Change type to
2993 gdb::unique_xmalloc_ptr<char>.
2994 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2995 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2996 field, adjust to unique pointer.
2997 (get_inferior_io_terminal): Adjust to unique pointer.
2998
6d74da72
AB
29992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3000
3001 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3002 registers, not just the known core set of registers.
3003
2e52d038
AB
30042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3005
3006 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3007 fflags, frm, and fcsr registers.
3008 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3009 restore groups.
3010 (riscv_tdesc_unknown_reg): New function.
3011 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3012 tdesc_use_registers.
3013 * riscv-tdep.h (struct gdbarch_tdep): Add
3014 unknown_csrs_first_regnum, unknown_csrs_count,
3015 duplicate_fflags_regnum, duplicate_frm_regnum, and
3016 duplicate_fcsr_regnum fields.
3017
be64fd07
AB
30182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3019
3020 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3021 callback, use the callback (when not null) to help number unknown
3022 registers.
3023 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3024 (tdesc_use_registers): Add extra parameter to declaration.
3025
3b9fce96
AB
30262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3027
3028 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3029 in the file.
3030 (class riscv_pending_register_alias): Likewise.
3031 (riscv_register_feature::register_info): Change 'required_p' field
3032 to 'required', and change its type. Add 'check' member function.
3033 (riscv_register_feature::register_info::check): Define new member
3034 function.
3035 (riscv_xreg_feature): Change initialisation of 'required' field.
3036 (riscv_freg_feature): Likewise.
3037 (riscv_virtual_feature): Likewise.
3038 (riscv_csr_feature): Likewise.
3039 (riscv_check_tdesc_feature): Take extra parameter, the csr
3040 tdesc_feature, rewrite the function to use the new
3041 riscv_register_feature::register_info::check function.
3042 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3043
865bad26
AB
30442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3045
3046 * features/Makefile: Remove all references to the deleted files
3047 below.
3048 * features/riscv/32bit-csr.c: Deleted.
3049 * features/riscv/32bit-csr.xml: Deleted.
3050 * features/riscv/64bit-csr.c: Deleted.
3051 * features/riscv/64bit-csr.xml: Deleted.
3052 * features/riscv/rebuild-csr-xml.sh: Deleted.
3053
ed69cbc8
AB
30542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3055
3056 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3057 whitespace error for declaration of names member variable.
3058 (struct riscv_register_feature): Add new prefer_first_name member
3059 variable, and fix whitespace error in declaration of registers.
3060 (riscv_xreg_feature): Initialize prefer_first_name field.
3061 (riscv_freg_feature): Likewise.
3062 (riscv_virtual_feature): Likewise.
3063 (riscv_csr_feature): Likewise.
3064 (riscv_register_name): Expand on comments. Remove register name
3065 modifications for CSR and virtual registers.
3066
4445e8f5
AB
30672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3068
3069 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3070 errors.
3071
767a879e
AB
30722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3073
3074 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3075 riscv-opc.h.
3076 (class riscv_pending_register_alias): New class.
3077 (riscv_check_tdesc_feature): Take vector of pending aliases and
3078 populate it as appropriate.
3079 (riscv_setup_register_aliases): Delete.
3080 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3081 to riscv_check_tdesc_feature in all cases. Use the vector to
3082 create the register aliases.
3083
bb6e55f3
RO
30842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3085
3086 * sol2-tdep.c (sol2_static_transform_name): Remove.
3087 (sol2_init_abi): Don't register it.
3088 * gdbarch.sh (static_transform_name): Remove.
3089 * gdbarch.c, gdbarch.h: Regenerate.
3090
3091 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3092 gdbarch_static_transform_name.
3093 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3094 * stabsread.c (define_symbol) <'X'>: Remove.
3095 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3096 handling.
3097 <'V'>: Likewise.
3098 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3099 <'S'>: Remove call to gdbarch_static_transform_name.
3100
c6d36836
RO
31012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3102
3103 * procfs.c (procfs_pre_trace): New function.
3104 (procfs_target::create_inferior): Pass it to fork_inferior.
3105
a7e6196b
RO
31062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3107
3108 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3109 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3110 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3111 sol2-tdep.o, sparc-sol2-tdep.o.
3112 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3113 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3114 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3115 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3116
d412e696
RO
31172020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3118
3119 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3120 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3121 Call sol2_init_abi.
3122 Remove calls to set_gdbarch_skip_solib_resolver,
3123 set_gdbarch_core_pid_to_str.
3124 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3125 (i386_sol2_static_transform_name): Remove.
3126 (i386_sol2_init_abi): Call sol2_init_abi.
3127 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3128 set_gdbarch_static_transform_name,
3129 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3130 Use sol2_sigtramp_p.
3131 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3132 (sol2_sigtramp_p): New function.
3133 (sol2_static_transform_name): New function.
3134 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3135 (sol2_init_abi): New function.
3136 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3137 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3138 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3139 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3140 (sparc_sol2_static_transform_name): Remove.
3141 (sparc32_sol2_init_abi): Call sol2_init_abi.
3142 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3143 set_gdbarch_static_transform_name,
3144 set_gdbarch_skip_solib_resolver,
3145 set_gdbarch_core_pid_to_str.
3146 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3147 (sparc_sol2_static_transform_name): Remove
3148 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3149 call sol2_sigtramp_p.
3150 (sparc64_sol2_init_abi): Call sol2_init_abi.
3151 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3152 set_gdbarch_static_transform_name,
3153 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3154
a8654e7d
PW
31552020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3156
3157 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3158 * exec.c (validate_exec_file): If from_tty, set both
3159 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3160 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3161 and from_tty, unconditionally ask a confirmation.
3162
caa7fd04
AB
31632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3164
3165 * target-descriptions.c (tdesc_architecture_name): Protect against
3166 NULL pointer dereference.
3167 (maint_print_xml_tdesc_cmd): New function.
3168 (_initialize_target_descriptions): Register new 'maint print
3169 xml-tdesc' command and give it the filename completer.
3170 * NEWS: Mention new 'maint print xml-tdesc' command.
3171
fbf42f4e
AB
31722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3173
3174 * target-descriptions.c (class tdesc_compatible_info): New class.
3175 (struct target_desc): Change type of compatible vector.
3176 (tdesc_compatible_p): Update for change in type of
3177 target_desc::compatible.
3178 (tdesc_compatible_info_list): New function.
3179 (tdesc_compatible_info_arch_name): New function.
3180 (tdesc_add_compatible): Update for change in type of
3181 target_desc::compatible.
3182 (print_c_tdesc::visit_pre): Likewise.
3183
20821f4e
AB
31842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3185
3186 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3187 whitespace to underscore.
3188 (maint_print_c_tdesc_cmd): Use fake filename for target
3189 descriptions that came from the target.
3190 (_initialize_target_descriptions): Add filename command completion
3191 for 'maint print c-tdesc'.
3192
1fb5ee62
SM
31932020-06-23 Simon Marchi <simon.marchi@efficios.com>
3194
3195 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3196 lines.
3197
fc3ecb3e
SM
31982020-06-23 Simon Marchi <simon.marchi@efficios.com>
3199
3200 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3201 lines.
3202 (dwarf2_find_location_expression): Likewise.
3203 (call_site_parameter_matches): Likewise.
3204 (dwarf2_compile_expr_to_ax): Likewise.
3205 (disassemble_dwarf_expression): Likewise.
3206 (loclist_describe_location): Likewise.
3207
236ef034
PA
32082020-06-23 Pedro Alves <palves@redhat.com>
3209
3210 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3211 progspace-and-thread.h. Include scoped-mock-context.h instead.
3212 (register_to_value_test): Use scoped_mock_context.
3213 * regcache.c: Include "scoped-mock-context.h".
3214 (cooked_read_test): Don't error out if a target is already pushed.
3215 Use scoped_mock_context. Adjust.
3216 * scoped-mock-context.h: New file.
3217
39e7ecca
AB
32182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3219
3220 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3221 initializer.
3222 (ada_language::is_string_type_p): New member function.
3223 * c-lang.c (c_language_data): Delete la_is_string_type_p
3224 initializer.
3225 (cplus_language_data): Likewise.
3226 (asm_language_data): Likewise.
3227 (minimal_language_data): Likewise.
3228 * d-lang.c (d_language_data): Likewise.
3229 * f-lang.c (f_is_string_type_p): Delete function, implementation
3230 moved to f_language::is_string_type_p.
3231 (f_language_data): Delete la_is_string_type_p initializer.
3232 (f_language::is_string_type_p): New member function,
3233 implementation from f_is_string_type_p.
3234 * go-lang.c (go_is_string_type_p): Delete function, implementation
3235 moved to go_language::is_string_type_p.
3236 (go_language_data): Delete la_is_string_type_p initializer.
3237 (go_language::is_string_type_p): New member function,
3238 implementation from go_is_string_type_p.
3239 * language.c (language_defn::is_string_type_p): Define new member
3240 function.
3241 (default_is_string_type_p): Make static, add comment copied from
3242 header file.
3243 (unknown_language_data): Delete la_is_string_type_p initializer.
3244 (unknown_language::is_string_type_p): New member function.
3245 (auto_language_data): Delete la_is_string_type_p initializer.
3246 (auto_language::is_string_type_p): New member function.
3247 * language.h (language_data): Delete la_is_string_type_p field.
3248 (language_defn::is_string_type_p): Declare new function.
3249 (default_is_string_type_p): Delete desclaration, move comment to
3250 definition.
3251 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3252 moved to m2_language::is_string_type_p.
3253 (m2_language_data): Delete la_is_string_type_p initializer.
3254 (m2_language::is_string_type_p): New member function,
3255 implementation from m2_is_string_type_p.
3256 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3257 initializer.
3258 * opencl-lang.c (opencl_language_data): Likewise.
3259 * p-lang.c (pascal_is_string_type_p): Delete function,
3260 implementation moved to pascal_language::is_string_type_p.
3261 (pascal_language_data): Delete la_is_string_type_p initializer.
3262 (pascal_language::is_string_type_p): New member function,
3263 implementation from pascal_is_string_type_p.
3264 * rust-lang.c (rust_is_string_type_p): Delete function,
3265 implementation moved to rust_language::is_string_type_p.
3266 (rust_language_data): Delete la_is_string_type_p initializer.
3267 (rust_language::is_string_type_p): New member function,
3268 implementation from rust_is_string_type_p.
3269 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3270 is_string_type_p.
3271
4ffc13fb
AB
32722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3273
3274 * ada-lang.c (ada_language_data): Delete la_print_typedef
3275 initializer.
3276 (ada_language::print_typedef): New member function.
3277 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3278 (cplus_language_data): Likewise.
3279 (asm_language_data): Likewise.
3280 (minimal_language_data): Likewise.
3281 * d-lang.c (d_language_data): Likewise.
3282 * f-lang.c (f_language_data): Likewise.
3283 (f_language::print_typedef): New member function.
3284 * go-lang.c (go_language_data): Delete la_print_typedef
3285 initializer.
3286 * language.c (language_defn::print_typedef): Define member
3287 function.
3288 (unknown_language_data): Delete la_print_typedef initializer.
3289 (unknown_language::print_typedef): New member function.
3290 (auto_language_data): Delete la_print_typedef initializer.
3291 (auto_language::print_typedef): New member function.
3292 * language.h (language_data): Delete la_print_typedef field.
3293 (language_defn::print_typedef): Declare new member function.
3294 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3295 (default_print_typedef): Delete declaration.
3296 * m2-lang.c (m2_language_data): Delete la_print_typedef
3297 initializer.
3298 (m2_language::print_typedef): New member function.
3299 * objc-lang.c (objc_language_data): Delete la_print_typedef
3300 initializer.
3301 * opencl-lang.c (opencl_language_data): Likewise.
3302 * p-lang.c (pascal_language_data): Likewise.
3303 (pascal_language::print_typedef): New member function.
3304 * rust-lang.c (rust_print_typedef): Delete function,
3305 implementation moved to rust_language::print_typedef.
3306 (rust_language): Delete la_print_typedef initializer.
3307 (rust_language::print_typedef): New member function,
3308 implementation from rust_print_typedef.
3309 * typeprint.c (default_print_typedef): Delete.
3310
d711ee67
AB
33112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3312
3313 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3314 (ada_language::printstr): New member function.
3315 * c-lang.c (c_language_data): Delete la_printstr initializer.
3316 (cplus_language_data): Likewise.
3317 (asm_language_data): Likewise.
3318 (minimal_language_data): Likewise.
3319 * d-lang.c (d_language_data): Likewise.
3320 * f-lang.c (f_printstr): Rename to f_language::printstr.
3321 (f_language_data): Delete la_printstr initializer.
3322 (f_language::printstr): New member function, implementation from
3323 f_printstr.
3324 * go-lang.c (go_language_data): Delete la_printstr initializer.
3325 * language.c (language_defn::printstr): Define new member
3326 function.
3327 (unk_lang_printstr): Delete.
3328 (unknown_language_data): Delete la_printstr initializer.
3329 (unknown_language::printstr): New member function.
3330 (auto_language_data): Delete la_printstr initializer.
3331 (auto_language::printstr): New member function.
3332 * language.h (language_data): Delete la_printstr field.
3333 (language_defn::printstr): Declare new member function.
3334 (LA_PRINT_STRING): Update call to printstr.
3335 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3336 (m2_language_data): Delete la_printstr initializer.
3337 (m2_language::printstr): New member function, implementation from
3338 m2_printstr.
3339 * objc-lang.c (objc_language_data): Delete la_printstr
3340 initializer.
3341 * opencl-lang.c (opencl_language_data): Likewise.
3342 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3343 (pascal_language_data): Delete la_printstr initializer.
3344 (pascal_language::printstr): New member function, implementation
3345 from pascal_printstr.
3346 * p-lang.h (pascal_printstr): Delete declaration.
3347 * rust-lang.c (rust_printstr): Update header comment.
3348 (rust_language_data): Delete la_printstr initializer.
3349 (rust_language::printstr): New member function.
3350
52b50f2c
AB
33512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3352
3353 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3354 (ada_language::printchar): New member function.
3355 * c-lang.c (c_language_data): Delete la_printchar initializer.
3356 (cplus_language_data): Likewise.
3357 (asm_language_data): Likewise.
3358 (minimal_language_data): Likewise.
3359 * d-lang.c (d_language_data): Likewise.
3360 * f-lang.c (f_printchar): Rename to f_language::printchar.
3361 (f_language_data): Delete la_printchar initializer.
3362 (f_language::printchar): New member function, implementation from
3363 f_printchar.
3364 * go-lang.c (go_language_data): Delete la_printchar initializer.
3365 * language.c (unk_lang_printchar): Delete.
3366 (language_defn::printchar): Define new member function.
3367 (unknown_language_data): Delete la_printchar initializer.
3368 (unknown_language::printchar): New member function.
3369 (auto_language_data): Delete la_printchar initializer.
3370 (auto_language::printchar): New member function.
3371 * language.h (language_data): Delete la_printchar field.
3372 (language_defn::printchar): Declare new member function.
3373 (LA_PRINT_CHAR): Update call to printchar.
3374 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3375 (m2_language::printchar): New member function.
3376 * objc-lang.c (objc_language_data): Delete la_printchar
3377 initializer.
3378 * opencl-lang.c (opencl_language_data): Likewise.
3379 * p-lang.c (pascal_language_data): Delete la_printchar
3380 initializer.
3381 (pascal_language::printchar): New member function.
3382 * rust-lang.c (rust_printchar): Rename to
3383 rust_language::printchar.
3384 (rust_language_data): Delete la_printchar initializer.
3385 (rust_language::printchar): New member function, implementation
3386 from rust_printchar.
3387
ec8cec5b
AB
33882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3389
3390 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3391 (ada_language_data): Delete la_emitchar initializer.
3392 (ada_language::emitchar): New member function, implementation from
3393 emit_char.
3394 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3395 (cplus_language_data): Likewise.
3396 (asm_language_data): Likewise.
3397 (minimal_language_data): Likewise.
3398 * d-lang.c (d_language_data): Likewise.
3399 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3400 (f_language_data): Delete la_emitchar initializer.
3401 (f_language::emitchar): New member function, implementation from
3402 f_emit_char.
3403 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3404 * language.c (unk_lang_emit_char): Delete.
3405 (language_defn::emitchar): New member function definition.
3406 (unknown_language_data): Delete la_emitchar initializer.
3407 (unknown_language::emitchar): New member function.
3408 (auto_language_data): Delete la_emitchar initializer.
3409 (auto_language::emitchar): New member function.
3410 * language.h (language_data): Delete la_emitchar field.
3411 (language_defn::emitchar): New member field declaration.
3412 (LA_EMIT_CHAR): Update call to emitchar.
3413 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3414 (m2_language_data): Delete la_emitchar initializer.
3415 (m2_language::emitchar): New member function, implementation from
3416 m2_emit_char.
3417 * objc-lang.c (objc_language_data): Delete la_emitchar
3418 initializer.
3419 * opencl-lang.c (opencl_language_data): Likewise.
3420 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3421 (pascal_language_data): Delete la_emitchar initializer.
3422 (pascal_language::emitchar): New member function, implementation
3423 from pascal_emit_char.
3424 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3425 (rust_language_data): Delete la_emitchar initializer.
3426 (rust_language::emitchar): New member function, implementation
3427 from rust_emitchar.
3428
1bf9c363
AB
34292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3432 (ada_language_data): Delete la_post_parser initializer.
3433 (ada_language::post_parser): New member function.
3434 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3435 (cplus_language_data): Likewise.
3436 (asm_language_data): Likewise.
3437 (minimal_language_data): Likewise.
3438 * d-lang.c (d_language_data): Likewise.
3439 * f-lang.c (f_language_data): Likewise.
3440 * go-lang.c (go_language_data): Likewise.
3441 * language.c (unknown_language_data): Likewise.
3442 (auto_language_data): Likewise.
3443 * language.h (language_data): Delete la_post_parser field.
3444 (language_defn::post_parser): New member function.
3445 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3446 * objc-lang.c (objc_language_data): Likewise.
3447 * opencl-lang.c (opencl_language_data): Likewise.
3448 * p-lang.c (pascal_language_data): Likewise.
3449 * parse.c (parse_exp_in_context): Update call to post_parser.
3450 (null_post_parser): Delete definition.
3451 * parser-defs.h (null_post_parser): Delete declaration.
3452 * rust-lang.c (rust_language_data): Delete la_post_parser
3453 initializer.
3454
87afa652
AB
34552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3456
3457 * ada-lang.c (parse): Rename to ada_language::parser.
3458 (ada_language_data): Delete la_parser initializer.
3459 (ada_language::parser): New member function, implementation from
3460 parse.
3461 * c-lang.c (c_language_data): Delete la_parser initializer.
3462 (cplus_language_data): Likewise.
3463 (asm_language_data): Likewise.
3464 (minimal_language_data): Likewise.
3465 * d-lang.c (d_language_data): Likewise.
3466 (d_language::parser): New member function.
3467 * f-lang.c (f_language_data): Delete la_parser initializer.
3468 (f_language::parser): New member function.
3469 * go-lang.c (go_language_data): Delete la_parser initializer.
3470 (go_language::parser): New member function.
3471 * language.c (unk_lang_parser): Delete.
3472 (language_defn::parser): Define new member function.
3473 (unknown_language_data): Delete la_parser initializer.
3474 (unknown_language::parser): New member function.
3475 (auto_language_data): Delete la_parser initializer.
3476 (auto_language::parser): New member function.
3477 * language.h (language_data): Delete la_parser field.
3478 (language_defn::parser): Declare new member function.
3479 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3480 (m2_language::parser): New member function.
3481 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3482 * opencl-lang.c (opencl_language_data): Likewise.
3483 * p-lang.c (pascal_language_data): Likewise.
3484 (pascal_language::parser): New member function.
3485 * parse.c (parse_exp_in_context): Update call to parser.
3486 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3487 (rust_language::parser): New member function.
3488
37825800
AB
34892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3490
3491 * top.c (print_gdb_configuration): Print --with-python-libdir
3492 configuration value.
3493
5b860c93
PW
34942020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3495
3496 * NEWS: Mention change to the alias command.
3497
cf00cd6f
PW
34982020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3499
3500 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3501 (alias_command_completer)
3502 (make_alias_options_def_group): New functions.
3503 (alias_opts, alias_option_defs): New struct and array.
3504 (alias_usage_error): Update usage.
3505 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3506 Use option framework.
3507 (_initialize_cli_cmds): Update alias command help.
3508 Update aliases command help.
3509 (show_user):
3510 Add NULL for new default_args lookup_cmd argument.
3511 (valid_command_p): Rename to validate_aliased_command.
3512 Add NULL for new default_args lookup_cmd argument. Verify that the
3513 aliased_command has no default args.
3514 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3515 (lookup_cmd_1, lookup_cmd): New argument default_args.
3516 (add_alias_cmd):
3517 Add NULL for new default_args lookup_cmd argument.
3518 (print_help_for_command): Show default args under the layout
3519 alias some_alias = some_aliased_cmd some_alias_default_arg.
3520 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3521 xfree default_args in destructor.
3522 * cli/cli-script.c (process_next_line, do_define_command):
3523 Add NULL for new default_args lookup_cmd argument.
3524 * command.h: Declare new default_args argument in lookup_cmd
3525 and lookup_cmd_1.
3526 * completer.c (complete_line_internal_1):
3527 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3528 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3529 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3530 Likewise.
3531 * infcmd.c (_initialize_infcmd): Likewise.
3532 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3533 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3534 * python/py-param.c (add_setshow_generic): Likewise.
3535 * remote.c (_initialize_remote): Likewise.
3536 * top.c (execute_command): Prepend default_args if command has some.
3537 (set_verbose):
3538 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3539 * tracepoint.c (validate_actionline, encode_actions_1):
3540 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3541
bd920864
TBA
35422020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3543
3544 * jit.c (jit_read_descriptor): Use bool as the return type.
3545 (jit_breakpoint_re_set_internal): Use bool as the return type.
3546 Invert the return value logic; return true if the jit breakpoint
3547 has been successfully initialized.
3548 (jit_inferior_init): Update the call to
3549 jit_breakpoint_re_set_internal.
3550
f8098322
PA
35512020-06-22 Pedro Alves <palves@redhat.com>
3552
3553 PR gdb/25939
3554 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3555 Use the current inferior instead. Don't return
3556 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3557 wait again.
3558 * sol-thread.c (sol_thread_target::wait): Don't reference
3559 inferior_ptid.
3560 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3561 (sol_update_thread_list_callback): Use the current inferior's pid
3562 instead of inferior_ptid.
3563
196535a6
RO
35642020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3565
3566 * procfs.c: Cleanup many comments.
3567
3568 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3569 (AFTER_WATCHFLAG): Replace by value.
3570
3571 (MAIN_PROC_NAME_FORMAT): Inline ...
3572 (create_procinfo): ... here.
3573
3574 (procfs_debug_inferior): Remove SYS_exec handling.
3575 (syscall_is_exec): Likewise.
3576 (procfs_set_exec_trap): Likewise.
3577
3578 (syscall_is_lwp_exit): Inline in callers.
3579 (syscall_is_exit): Likewise.
3580 (syscall_is_exec): Likewise.
3581 (syscall_is_lwp_create): Likewise.
3582
3583 (invalidate_cache): Remove #if 0 code.
3584
3585 (make_signal_thread_runnable): Remove.
3586 (procfs_target::resume): Remove #if 0 code.
3587
cf6f3e86
RO
35882020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3589
3590 PR gdb/25939
3591 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3592 call ...
3593 (procfs_target::create_inferior): ... here.
3594
48e9cc84
PW
35952020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3596
3597 * exec.c (validate_exec_file): Ensure the build-id is up to
3598 date by calling reopen_exec_file (that checks file timestamp
3599 to decide to re-read the file).
3600
3922b302
PA
36012020-06-18 Pedro Alves <palves@redhat.com>
3602
3603 PR gdb/25412
3604 * gdbthread.h (delete_thread, delete_thread_silent)
3605 (find_thread_ptid): Update comments.
3606 * thread.c (current_thread_): New global.
3607 (is_current_thread): Move higher, and reimplement.
3608 (inferior_thread): Reimplement.
3609 (set_thread_exited): Use bool. Add assertions.
3610 (add_thread_silent): Simplify thread-reuse handling by always
3611 calling delete_thread.
3612 (delete_thread): Remove intro comment.
3613 (find_thread_ptid): Skip exited threads.
3614 (switch_to_thread_no_regs): Write to current_thread_.
3615 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3616 INFERIOR_PTID. Clear current_thread_.
3617
6dbdab44
PA
36182020-06-18 Pedro Alves <palves@redhat.com>
3619
3620 * aix-thread.c (pd_update): Use switch_to_thread.
3621
2da4b788
PA
36222020-06-18 Pedro Alves <palves@redhat.com>
3623
3624 * ravenscar-thread.c (ravenscar_thread_target): Update.
3625 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3626 (ravenscar_thread_target::add_active_thread): ... this. Don't
3627 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3628 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3629
50838d1b
PA
36302020-06-18 Pedro Alves <palves@redhat.com>
3631
3632 * nat/windows-nat.c (current_windows_thread): Remove.
3633 * nat/windows-nat.h (current_windows_thread): Remove.
3634 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3635 Adjust.
3636 (display_selectors): Adjust to fetch the current
3637 windows_thread_info based on inferior_ptid.
3638 (fake_create_process): No longer write to current_windows_thread.
3639 (windows_nat_target::get_windows_debug_event):
3640 Don't set inferior_ptid or current_windows_thread.
3641 (windows_nat_target::wait): Adjust to not rely on
3642 current_windows_thread.
3643 (do_initial_windows_stuff): Now a method of windows_nat_target.
3644 Switch to the last_ptid thread.
3645 (windows_nat_target::attach): Adjust.
3646 (windows_nat_target::detach): Use switch_to_no_thread instead of
3647 writing to inferior_ptid directly.
3648 (windows_nat_target::create_inferior): Adjust.
3649
31ce04e9
PA
36502020-06-18 Pedro Alves <palves@redhat.com>
3651
3652 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3653
1ee1a363
PA
36542020-06-18 Pedro Alves <palves@redhat.com>
3655
3656 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3657 after creating it, instead of writing to inferior_ptid. Don't
3658 write to inferior_ptid.
3659
6d350754
PA
36602020-06-18 Pedro Alves <palves@redhat.com>
3661
3662 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3663
5d971d48
PA
36642020-06-18 Pedro Alves <palves@redhat.com>
3665
3666 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3667 it, instead of writing to inferior_ptid.
3668
86e57d1b
PA
36692020-06-18 Pedro Alves <palves@redhat.com>
3670
3671 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3672 to inferior_ptid.
3673
f2e1c129
PA
36742020-06-18 Pedro Alves <palves@redhat.com>
3675
3676 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3677 instead of writing to inferior_ptid directly.
3678
60db1b85
PA
36792020-06-18 Pedro Alves <palves@redhat.com>
3680
3681 * corelow.c (core_target::close): Use switch_to_no_thread instead
3682 of writing to inferior_ptid directly.
3683 (add_to_thread_list, core_target_open): Use switch_to_thread
3684 instead of writing to inferior_ptid directly.
3685
fe7d6a8d
PA
36862020-06-18 Pedro Alves <palves@redhat.com>
3687
3688 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3689 inferior_ptid.
3690 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3691 inferior_ptid.
3692 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3693 inferior_ptid directly.
3694 (darwin_nat_target::init_thread_list): Switch to thread, instead
3695 of writing to inferior_ptid.
3696 (darwin_nat_target::attach): Don't write to inferior_ptid.
3697 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3698
975f8708
PA
36992020-06-18 Pedro Alves <palves@redhat.com>
3700
3701 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3702 thread.
3703 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3704 Instead use switch_to_thread.
3705 (gnu_nat_target::detach): Use switch_to_no_thread
3706 instead of writing to inferior_ptid directly. Used passed-in
3707 inferior instead of looking up the inferior by pid.
3708
1a204730
PA
37092020-06-18 Pedro Alves <palves@redhat.com>
3710
3711 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3712 inferior_ptid.
3713
ebe84f23
PA
37142020-06-18 Pedro Alves <palves@redhat.com>
3715
3716 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3717 inferior_ptid.
3718 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3719 thread.
3720 (nto_procfs_target::detach): Avoid referencing
3721 inferior_ptid. Use switch_to_no_thread instead of writing to
3722 inferior_ptid directly.
3723 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3724 instead of writing to inferior_ptid directly.
3725 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3726 to thread.
3727
191f02e5
PA
37282020-06-18 Pedro Alves <palves@redhat.com>
3729
3730 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3731 after creating it, instead of writing to inferior_ptid.
3732 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3733 to inferior_ptid directly.
3734 (gdbsim_target::wait): Don't write to inferior_ptid.
3735
0ac55310
PA
37362020-06-18 Pedro Alves <palves@redhat.com>
3737
3738 * remote.c (remote_target::remote_notice_new_inferior): Use
3739 switch_to_thread instead of writing to inferior_ptid directly.
3740 (remote_target::add_current_inferior_and_thread): Use
3741 switch_to_no_thread instead of writing to inferior_ptid directly.
3742 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3743 and switch_to_thread instead of using set_current_inferior or
3744 writing to inferior_ptid directly.
3745
5233f39b
PA
37462020-06-18 Pedro Alves <palves@redhat.com>
3747
3748 * tracectf.c (ctf_target_open): Switch to added thread instead of
3749 writing to inferior_ptid directly.
3750 (ctf_target::close): Use switch_to_no_thread instead of writing to
3751 inferior_ptid directly.
3752
087e161b
PA
37532020-06-18 Pedro Alves <palves@redhat.com>
3754
3755 * tracefile-tfile.c (tfile_target_open): Don't write to
3756 inferior_ptid directly, instead switch to added thread.
3757 (tfile_target::close): Use switch_to_no_thread instead of writing
3758 to inferior_ptid directly.
3759
7fb43e53
PA
37602020-06-18 Pedro Alves <palves@redhat.com>
3761
3762 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3763 (procfs_target::detach): Use switch_to_no_thread
3764 instead of writing to inferior_ptid directly.
3765 (do_attach): Change return type to void. Switch to the added
3766 thread.
3767 (procfs_target::create_inferior): Switch to the added thread.
3768 (procfs_do_thread_registers): Don't write to inferior_ptid.
3769
18493a00
PA
37702020-06-18 Pedro Alves <palves@redhat.com>
3771
3772 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3773 of writing to inferior_ptid.
3774 (scoped_restore_exited_inferior): Delete.
3775 (handle_vfork_child_exec_or_exit): Simplify using
3776 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3777 instead of writing to inferior_ptid.
3778 (THREAD_STOPPED_BY): Delete.
3779 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3780 (thread_stopped_by_hw_breakpoint): Delete.
3781 (save_waitstatus): Use
3782 scoped_restore_current_thread+switch_to_thread, and call
3783 target_stopped_by_watchpoint instead of
3784 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3785 instead of thread_stopped_by_sw_breakpoint, and
3786 target_stopped_by_hw_breakpoint instead of
3787 thread_stopped_by_hw_breakpoint.
3788 (handle_inferior_event)
3789 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3790 inferior_ptid directly, nor
3791 set_current_inferior/set_current_program_space. Use
3792 switch_to_thread / switch_to_inferior_no_thread instead.
3793
a0776b13
PA
37942020-06-18 Pedro Alves <palves@redhat.com>
3795
3796 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3797 instead of writing to inferior_ptid.
3798
6155c136
PA
37992020-06-18 Pedro Alves <palves@redhat.com>
3800
3801 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3802 added thread.
3803 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3804 to the added thread.
3805 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3806 instead of writing to inferior_ptid.
3807
c5316fc6
PA
38082020-06-18 Pedro Alves <palves@redhat.com>
3809
3810 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3811 (register_to_value_test): Mock a program_space too. Heap-allocate
3812 the address space. Don't write to inferior_ptid. Use
3813 switch_to_thread instead.
3814
8df01799
PA
38152020-06-18 Pedro Alves <palves@redhat.com>
3816
3817 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3818 Delete.
3819 (find_signalled_thread()): New, factored out from
3820 linux_make_corefile_notes and adjusted to handle exited threads.
3821 (linux_make_corefile_notes): Adjust to use the new
3822 find_signalled_thread.
3823
41792d68
PA
38242020-06-18 Pedro Alves <palves@redhat.com>
3825
3826 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3827 of saving/restoring inferior_ptid.
3828
612f258a
TT
38292020-06-17 Tom Tromey <tom@tromey.com>
3830
3831 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3832 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3833 declare.
3834 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3835
efb763a5
SM
38362020-06-15 Simon Marchi <simon.marchi@efficios.com>
3837
3838 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3839 of partial symtabs.
3840
2951f6c0
SM
38412020-06-17 Simon Marchi <simon.marchi@efficios.com>
3842
3843 * regformats/reg-arm.dat: Remove.
3844 * regformats/reg-bfin.dat: Remove.
3845 * regformats/reg-cris.dat: Remove.
3846 * regformats/reg-crisv32.dat: Remove.
3847 * regformats/reg-m32r.dat: Remove.
3848 * regformats/reg-tilegx.dat: Remove.
3849 * regformats/reg-tilegx32.dat: Remove.
3850
7d458ea5
SM
38512020-06-17 Simon Marchi <simon.marchi@efficios.com>
3852
3853 * features/Makefile (WHICH): Remove arm files.
3854 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3855 * regformats/arm/arm-with-neon.dat: Remove.
3856 * regformats/arm/arm-with-vfpv2.dat: Remove.
3857 * regformats/arm/arm-with-vfpv3.dat: Remove.
3858
3af96c0d
SM
38592020-06-17 Simon Marchi <simon.marchi@efficios.com>
3860
3861 * features/Makefile (XMLTOC): Remove rx.xml.
3862
b25e22fd
PA
38632020-06-17 Pedro Alves <palves@redhat.com>
3864
3865 * gdbthread.h (thread_control_state) <trap_expected> Update
3866 comments.
3867
a78a19b1
AB
38682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3869
3870 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3871 ada_language::lookup_symbol_nonlocal.
3872 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3873 (ada_language::lookup_symbol_nonlocal): New member function,
3874 implementation from ada_lookup_symbol_nonlocal.
3875 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3876 initializer.
3877 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3878 initializer.
3879 (cplus_language::lookup_symbol_nonlocal): New member function.
3880 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3881 (minimal_language_data) Likewise.
3882 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3883 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3884 initializer.
3885 (d_language::lookup_symbol_nonlocal): New member function.
3886 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3887 initializer.
3888 (f_language::lookup_symbol_nonlocal): New member function.
3889 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3890 initializer.
3891 * language.c (unknown_language_data): Likewise.
3892 (auto_language_data): Likewise.
3893 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3894 field.
3895 (language_defn::lookup_symbol_nonlocal): New member function.
3896 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3897 initializer.
3898 * objc-lang.c (objc_language_data): Likewise.
3899 * opencl-lang.c (opencl_language_data): Likewise.
3900 * p-lang.c (pascal_language_data): Likewise.
3901 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3902 rust_language::lookup_symbol_nonlocal.
3903 (rust_language_data): Delete la_lookup_symbol_nonlocal
3904 initializer.
3905 (rust_language::lookup_symbol_nonlocal): New member function,
3906 implementation from rust_lookup_symbol_nonlocal.
3907 * symtab.c (lookup_symbol_aux): Update call to
3908 lookup_symbol_nonlocal.
3909 (basic_lookup_symbol_nonlocal): Rename to...
3910 (language_defn::lookup_symbol_nonlocal): ...this, and update
3911 header comment. Remove language_defn parameter, and replace with
3912 uses of `this'.
3913 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3914
ebe2334e
AB
39152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3916
3917 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3918 initializer.
3919 (ada_language::value_print_inner): New member function.
3920 * c-lang.c (c_language_data): Delete la_value_print_inner
3921 initializer.
3922 (cplus_language_data): Likewise.
3923 (asm_language_data): Likewise.
3924 (minimal_language_data): Likewise.
3925 * d-lang.c (d_language_data): Likewise.
3926 (d_language::value_print_inner): New member function.
3927 * f-lang.c (f_language_data): Delete la_value_print_inner
3928 initializer.
3929 (f_language::value_print_inner): New member function.
3930 * f-lang.h (f_value_print_innner): Rename to...
3931 (f_value_print_inner): ...this (note spelling of 'inner').
3932 * f-valprint.c (f_value_print_innner): Rename to...
3933 (f_value_print_inner): ...this (note spelling of 'inner').
3934 * go-lang.c (go_language_data): Delete la_value_print_inner
3935 initializer.
3936 (go_language::value_print_inner): New member function.
3937 * language.c (language_defn::value_print_inner): Define new member
3938 function.
3939 (unk_lang_value_print_inner): Delete.
3940 (unknown_language_data): Delete la_value_print_inner initializer.
3941 (unknown_language::value_print_inner): New member function.
3942 (auto_language_data): Delete la_value_print_inner initializer.
3943 (auto_language::value_print_inner): New member function.
3944 * language.h (language_data): Delete la_value_print_inner field.
3945 (language_defn::value_print_inner): Delcare new member function.
3946 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3947 initializer.
3948 (m2_language::value_print_inner): New member function.
3949 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3950 initializer.
3951 * opencl-lang.c (opencl_language_data): Likewise.
3952 * p-lang.c (pascal_language_data): Likewise.
3953 (pascal_language::value_print_inner): New member function.
3954 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3955 initializer.
3956 (rust_language::value_print_inner): New member function.
3957 * valprint.c (do_val_print): Update call to value_print_inner.
3958
a1d1fa3e
AB
39592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3960
3961 * ada-lang.c (ada_language_data): Delete la_value_print
3962 initializer.
3963 (ada_language::value_print): New member function.
3964 * c-lang.c (c_language_data): Delete la_value_print initializer.
3965 (cplus_language_data): Likewise.
3966 (asm_language_data): Likewise.
3967 (minimal_language_data): Likewise.
3968 * d-lang.c (d_language_data): Likewise.
3969 * f-lang.c (f_language_data): Likewise.
3970 * go-lang.c (go_language_data): Likewise.
3971 * language.c (unk_lang_value_print): Delete.
3972 (language_defn::value_print): Define new member function.
3973 (unknown_language_data): Delete la_value_print initializer.
3974 (unknown_language::value_print): New member function.
3975 (auto_language_data): Delete la_value_print initializer.
3976 (auto_language::value_print): New member function.
3977 * language.h (language_data): Delete la_value_print field.
3978 (language_defn::value_print): Declare new member function.
3979 (LA_VALUE_PRINT): Update call to value_print.
3980 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3981 * objc-lang.c (objc_language_data): Likewise.
3982 * opencl-lang.c (opencl_language_data): Likewise.
3983 * p-lang.c (pascal_language_data): Likewise.
3984 (pascal_language::value_print): New member function.
3985 * rust-lang.c (rust_language_data): Delete la_value_print
3986 initializer.
3987
f16a9f57
AB
39882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * ada-lang.c (ada_watch_location_expression): Rename to
3991 ada_language::watch_location_expression.
3992 (ada_language_data): Delete la_watch_location_expression
3993 initializer.
3994 (ada_language::watch_location_expression): New member function,
3995 implementation from ada_watch_location_expression.
3996 * breakpoint.c (watch_command_1): Update call to
3997 watch_location_expression.
3998 * c-lang.c (c_watch_location_expression): Rename to
3999 language_defn::watch_location_expression.
4000 (c_language_data): Delete la_watch_location_expression
4001 initializer.
4002 (cplus_language_data): Likewise.
4003 (asm_language_data): Likewise.
4004 (minimal_language_data): Likewise.
4005 * c-lang.h (c_watch_location_expression): Delete declaration.
4006 * d-lang.c (d_language_data): Delete la_watch_location_expression
4007 initializer.
4008 * f-lang.c (f_language_data): Likewise.
4009 * go-lang.c (go_language_data): Likewise.
4010 * language.c (language_defn::watch_location_expression): Member
4011 function implementation from c_watch_location_expression.
4012 (unknown_language_data): Delete la_watch_location_expression
4013 initializer.
4014 (auto_language_data): Likewise.
4015 * language.h (language_data): Delete la_watch_location_expression
4016 field.
4017 (language_defn::watch_location_expression): Declare new member
4018 function.
4019 * m2-lang.c (m2_language_data): Delete
4020 la_watch_location_expression initializer.
4021 * objc-lang.c (objc_language_data): Likewise.
4022 * opencl-lang.c (opencl_language_data): Likewise.
4023 * p-lang.c (pascal_language_data): Likewise.
4024 * rust-lang.c (rust_watch_location_expression): Rename to
4025 rust_language::watch_location_expression.
4026 (rust_language_data): Delete la_watch_location_expression
4027 initializer.
4028 (rust_language::watch_location_expression): New member function,
4029 implementation from rust_watch_location_expression.
4030
7e56227d
AB
40312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4032
4033 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4034 ada_language::collect_symbol_completion_matches.
4035 (ada_language_data): Delete la_collect_symbol_completion_matches
4036 initializer.
4037 (ada_language::collect_symbol_completion_matches): New member
4038 function, implementation from
4039 ada_collect_symbol_completion_matches.
4040 * c-lang.c (c_language_data): Delete
4041 la_collect_symbol_completion_matches initializer.
4042 (cplus_language_data): Likewise.
4043 (asm_language_data): Likewise.
4044 (minimal_language_data): Likewise.
4045 * d-lang.c (d_language_data): Likewise.
4046 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4047 f_language::collect_symbol_completion_matches.
4048 (f_language_data): Delete la_collect_symbol_completion_matches
4049 initializer.
4050 (f_language::collect_symbol_completion_matches) New member
4051 function, implementation from f_collect_symbol_completion_matches.
4052 * go-lang.c (go_language_data): Delete
4053 la_collect_symbol_completion_matches initializer.
4054 * language.c (unknown_language_data): Likewise.
4055 (auto_language_data): Likewise.
4056 * language.h (language_data): Delete
4057 la_collect_symbol_completion_matches field.
4058 (language_defn::collect_symbol_completion_matches): New member
4059 function.
4060 * m2-lang.c (m2_language_data): Delete
4061 la_collect_symbol_completion_matches initializer.
4062 * objc-lang.c (objc_language_data): Likewise.
4063 * opencl-lang.c (opencl_language_data): Likewise.
4064 * p-lang.c (pascal_language_data): Likewise.
4065 * rust-lang.c (rust_language_data): Likewise.
4066 * symtab.c (default_collect_symbol_completion_matches): Delete.
4067 (collect_symbol_completion_matches): Update call to
4068 collect_symbol_completion_matches.
4069 (collect_symbol_completion_matches_type): Likewise.
4070 * symtab.h (default_collect_symbol_completion_matches): Delete
4071 declaration.
4072
53fc67f8
AB
40732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4074
4075 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4076 (ada_language_data): Delete la_word_break_characters initializer.
4077 (ada_language::word_break_characters): New member function.
4078 * c-lang.c (c_language_data): Delete la_word_break_characters
4079 initializer.
4080 (cplus_language_data): Likewise.
4081 (asm_language_data): Likewise.
4082 (minimal_language_data): Likewise.
4083 * completer.c: Update global comment.
4084 (advance_to_expression_complete_word_point): Update call to
4085 word_break_characters.
4086 (complete_files_symbols): Likewise.
4087 (complete_line_internal_1): Likewise.
4088 (default_completer_handle_brkchars): Likewise.
4089 (skip_quoted_chars): Likewise.
4090 * d-lang.c (d_language_data): Delete la_word_break_characters
4091 initializer.
4092 * f-lang.c (f_word_break_characters): Delete.
4093 (f_language_data): Delete la_word_break_characters initializer.
4094 (f_language::word_break_characters): New member function.
4095 * go-lang.c (go_language_data): Delete la_word_break_characters
4096 initializer.
4097 * language.c (unknown_language_data): Likewise.
4098 (auto_language_data): Likewise.
4099 * language.h (default_word_break_characters): Move declaration to
4100 earlier in the file.
4101 (language_data): Delete la_word_break_characters field.
4102 (language_defn::word_break_characters): New member function.
4103 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4104 initializer.
4105 * objc-lang.c (objc_language_data): Likewise.
4106 * opencl-lang.c (opencl_language_data): Likewise.
4107 * p-lang.c (pascal_language_data): Likewise.
4108 * rust-lang.c (rust_language_data): Likewise.
4109
c9debfb9
AB
41102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4111
4112 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4113 (ada_language_data): Delete la_get_symbol_name_matcher
4114 initializer.
4115 (language_defn::get_symbol_name_matcher_inner): New member
4116 function.
4117 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4118 initializer.
4119 (cplus_language_data): Likewise.
4120 (cplus_language::get_symbol_name_matcher_inner): New member
4121 function.
4122 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4123 (minimal_language_data): Likewise.
4124 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4125 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4126 initializer.
4127 * dictionary.c (iter_match_first_hashed): Update call to
4128 get_symbol_name_matcher.
4129 (iter_match_next_hashed): Likewise.
4130 (iter_match_next_linear): Likewise.
4131 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4132 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4133 initializer.
4134 (f_language::get_symbol_name_matcher_inner): New member function.
4135 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4136 initializer.
4137 * language.c (default_symbol_name_matcher): Update header comment,
4138 make static.
4139 (language_defn::get_symbol_name_matcher): New definition.
4140 (language_defn::get_symbol_name_matcher_inner): Likewise.
4141 (get_symbol_name_matcher): Delete.
4142 (unknown_language_data): Delete la_get_symbol_name_matcher
4143 initializer.
4144 (auto_language_data): Likewise.
4145 * language.h (language_data): Delete la_get_symbol_name_matcher
4146 field.
4147 (language_defn::get_symbol_name_matcher): New member function.
4148 (language_defn::get_symbol_name_matcher_inner): Likewise.
4149 (default_symbol_name_matcher): Delete declaration.
4150 * linespec.c (find_methods): Update call to
4151 get_symbol_name_matcher.
4152 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4153 initializer.
4154 * minsyms.c (lookup_minimal_symbol): Update call to
4155 get_symbol_name_matcher.
4156 (iterate_over_minimal_symbols): Likewise.
4157 * objc-lang.c (objc_language_data): Delete
4158 la_get_symbol_name_matcher initializer.
4159 * opencl-lang.c (opencl_language_data): Likewise.
4160 * p-lang.c (pascal_language_data): Likewise.
4161 * psymtab.c (psymbol_name_matches): Update call to
4162 get_symbol_name_matcher.
4163 * rust-lang.c (rust_language_data): Delete
4164 la_get_symbol_name_matcher initializer.
4165 * symtab.c (symbol_matches_search_name): Update call to
4166 get_symbol_name_matcher.
4167 (compare_symbol_name): Likewise.
4168
9a49ad8c
AB
41692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4170
4171 * ada-lang.c (ada_language_data): Delete la_compute_program
4172 initializer.
4173 * c-lang.c (c_language_data): Likewise.
4174 (c_language::compute_program): New member function.
4175 (cplus_language_data): Delete la_compute_program initializer.
4176 (cplus_language::compute_program): New member function.
4177 (asm_language_data): Delete la_compute_program initializer.
4178 (minimal_language_data): Likewise.
4179 * c-lang.h (c_compute_program): Update comment.
4180 (cplus_compute_program): Likewise.
4181 * compile/compile-c-support.c (c_compute_program): Likewise.
4182 (cplus_compute_program): Likewise.
4183 * compile/compile.c (compile_to_object): Update call to
4184 la_compute_program.
4185 * d-lang.c (d_language_data): Delete la_compute_program
4186 initializer.
4187 * f-lang.c (f_language_data): Likewise.
4188 * go-lang.c (go_language_data): Likewise.
4189 * language.c (unknown_language_data): Likewise.
4190 (auto_language_data): Likewise.
4191 * language.h (language_data): Delete la_compute_program field.
4192 (language_defn::compute_program): New member function.
4193 * m2-lang.c (m2_language_data): Delete la_compute_program
4194 initializer.
4195 * objc-lang.c (objc_language_data): Likewise.
4196 * opencl-lang.c (opencl_language_data): Likewise.
4197 * p-lang.c (pascal_language_data): Likewise.
4198 * rust-lang.c (rust_language_data): Likewise.
4199
eff93b4d
AB
42002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4201
4202 * ada-lang.c (ada_language_data) Delete
4203 la_class_name_from_physname initializer.
4204 * c-lang.c (c_language_data): Likewise.
4205 (cplus_language_data): Likewise.
4206 (cplus_language::class_name_from_physname): New member function.
4207 (asm_language_data): Delete la_class_name_from_physname
4208 initializer.
4209 (minimal_language_data): Likewise.
4210 * d-lang.c (d_language_data): Likewise.
4211 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4212 method on language_defn class.
4213 (guess_full_die_structure_name): Likewise.
4214 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4215 initializer.
4216 * go-lang.c (go_language_data): Likewise.
4217 * language.c (language_class_name_from_physname): Delete.
4218 (unk_lang_class_name): Delete.
4219 (unknown_language_data): Delete la_class_name_from_physname
4220 initializer.
4221 (auto_language_data): Likewise.
4222 * language.h (language_data): Delete la_class_name_from_physname
4223 field.
4224 (language_defn::class_name_from_physname): New function.
4225 (language_class_name_from_physname): Delete declaration.
4226 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4227 initializer.
4228 * objc-lang.c (objc_language_data): Likewise.
4229 * opencl-lang.c (opencl_language_data): Likewise.
4230 * p-lang.c (pascal_language_data): Likewise.
4231 * rust-lang.c (rust_language_data): Likewise.
4232
de543742
TT
42332020-06-16 Tom Tromey <tom@tromey.com>
4234
4235 * tui/tui-data.h (STATUS_NAME): New macro.
4236 * tui/tui-layout.c (tui_remove_some_windows)
4237 (initialize_known_windows, tui_register_window)
4238 (tui_layout_split::remove_windows, initialize_layouts)
4239 (tui_new_layout_command): Don't use hard-coded window names.
4240
a350efd4
TT
42412020-06-16 Tom Tromey <tom@tromey.com>
4242
4243 PR tui/25348:
4244 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4245 tui_initialize_readline. Only run once. Call rl_initialize.
4246 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4247 tui_initialize_readline.
4248 * tui/tui-io.c (tui_setup_io): Call
4249 tui_ensure_readline_initialized.
4250 * tui/tui-interp.c (tui_interp::init): Update.
4251
39ec0490
TT
42522020-06-16 Tom Tromey <tom@tromey.com>
4253
4254 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4255 Also preserve the status window.
4256
d2d1ea20
TT
42572020-06-16 Tom Tromey <tom@tromey.com>
4258
4259 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4260 where m_window==nullptr.
4261
66920317
TT
42622020-06-15 Tom Tromey <tromey@adacore.com>
4263
4264 * windows-nat.c (windows_nat::handle_output_debug_string):
4265 Update.
4266 (windows_nat::handle_ms_vc_exception): Update.
4267 * target.h (target_read_string): Change API.
4268 * target.c (target_read_string): Change API.
4269 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4270 Update.
4271 * solib-frv.c (frv_current_sos): Update.
4272 * solib-dsbt.c (dsbt_current_sos): Update.
4273 * solib-darwin.c (darwin_current_sos): Update.
4274 * linux-thread-db.c (inferior_has_bug): Update.
4275 * expprint.c (print_subexp_standard): Update.
4276 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4277 (ada_exception_message_1): Update.
4278
a5d871dd
TT
42792020-06-15 Tom Tromey <tromey@adacore.com>
4280
4281 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4282
670e35fa
TT
42832020-06-15 Tom Tromey <tromey@adacore.com>
4284
4285 * valprint.c (read_string): Update comment.
4286 * target.c (MIN): Remove.
4287 (target_read_string): Rewrite.
4288
f5272a3b
TT
42892020-06-15 Tom Tromey <tromey@adacore.com>
4290
4291 * corefile.c (read_memory_string): Remove.
4292 * ada-valprint.c (ada_value_print_ptr): Update.
4293 * ada-lang.h (ada_tag_name): Change return type.
4294 * ada-lang.c (type_from_tag): Update.
4295 (ada_tag_name_from_tsd): Change return type. Use
4296 target_read_string.
4297 (ada_tag_name): Likewise.
4298 * gdbcore.h (read_memory_string): Don't declare.
4299
2c074f49
HD
43002020-06-14 Hannes Domani <ssbssa@yahoo.de>
4301
4302 * symtab.c (rbreak_command): Ignore Windows drive colon.
4303
6a17d503
SM
43042020-06-12 Simon Marchi <simon.marchi@efficios.com>
4305
4306 * NEWS: Mention removed GDBserver host support.
4307
453c733f
NC
43082020-06-12 Nelson Chu <nelson.chu@sifive.com>
4309
4310 * features/riscv/rebuild-csr-xml.sh: Updated.
4311
2b4e6a3f
TT
43122020-06-11 Tom Tromey <tom@tromey.com>
4313
4314 PR gdb/18318:
4315 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4316
4412332f
JG
43172020-06-09 Jonny Grant <jg@jguk.org>
43182020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4319
4320 * main.c (captured_main_1): Don't print new line after help.
4321 (print_gdb_help): add mailing list and IRC channel information
4322 to --help. Add new lines between items in the footer. Remove
4323 quotes around bug url.
4324
2f33032a
KS
43252020-06-11 Keith Seitz <keiths@redhat.com>
4326
4327 PR gdb/21356
4328 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4329 Resolve typedefs for type length calculations.
4330
7ab96794
TV
43312020-06-10 Tom de Vries <tdevries@suse.de>
4332
4333 PR ada/24713
4334 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4335 (write_psymbols): Enable .gdb_index for ada.
4336 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4337 ada.
4338
e5f3ece2
TV
43392020-06-10 Tom de Vries <tdevries@suse.de>
4340
4341 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4342 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4343 namei" instead of "const char *name" argument.
4344 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4345 dw2_symtab_iter_init.
4346
940da03e
SM
43472020-06-08 Simon Marchi <simon.marchi@efficios.com>
4348
4349 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4350 to use type::field and field::type instead.
4351
b6cdac4b
SM
43522020-06-08 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4355 to use field::type instead.
4356
5d14b6e5
SM
43572020-06-08 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * gdbtypes.h (struct field) <type, set_type>: New methods.
4360 Rename `type` field to...
4361 <m_type>: ... this. Change references throughout to use type or
4362 set_type methods.
4363 (FIELD_TYPE): Use field::type. Change call sites that modify
4364 the field's type to use field::set_type instead.
4365
3d967001
SM
43662020-06-08 Simon Marchi <simon.marchi@efficios.com>
4367
4368 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4369 to use type::index_type instead.
4370
262abc0d
SM
43712020-06-08 Simon Marchi <simon.marchi@efficios.com>
4372
4373 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4374 methods.
4375 (TYPE_INDEX_TYPE): Use type::index_type.
4376 * gdbtypes.c (create_array_type_with_stride): Likewise.
4377
82836c92
TT
43782020-06-07 Tom Tromey <tom@tromey.com>
4379
4380 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4381 parameter.
4382 (generic_value_print): Update.
4383
940dace9
AB
43842020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4385
4386 Revert commit 982a38f60b0.
4387 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4388
982a38f6
AB
43892020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4390
4391 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4392 avoid use after free.
4393
82f06518
TV
43942020-06-05 Tom de Vries <tdevries@suse.de>
4395
4396 * NEWS: Fix typos.
4397
f8c41851
SM
43982020-06-04 Simon Marchi <simon.marchi@efficios.com>
4399
4400 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4401 the per_bfd object.
4402 (dwarf2_read_debug_names): Likewise.
4403 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4404 object when re-using a per_bfd object with an index.
4405
f9b5d5ea
TV
44062020-06-03 Tom de Vries <tdevries@suse.de>
4407
4408 PR symtab/26046
4409 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4410 children for C++.
4411 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4412 DW_TAG_subprogram.
4413
f6eee2d0
AB
44142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4415
4416 * ada-lang.c (ada_language_data): Delete skip_trampoline
4417 initializer.
4418 * c-lang.c (c_language_data): Likewise.
4419 (cplus_language_data): Likewise.
4420 (cplus_language::skip_trampoline): New member function.
4421 (asm_language_data): Delete skip_trampoline initializer.
4422 (minimal_language_data): Likewise.
4423 * d-lang.c (d_language_data): Likewise.
4424 * f-lang.c (f_language_data): Likewise.
4425 * go-lang.c (go_language_data): Likewise.
4426 * language.c (unk_lang_trampoline): Delete function.
4427 (skip_language_trampoline): Update.
4428 (unknown_language_data): Delete skip_trampoline initializer.
4429 (auto_language_data): Likewise.
4430 * language.h (language_data): Delete skip_trampoline field.
4431 (language_defn::skip_trampoline): New function.
4432 * m2-lang.c (m2_language_data): Delete skip_trampoline
4433 initializer.
4434 * objc-lang.c (objc_skip_trampoline): Delete function, move
4435 implementation to objc_language::skip_trampoline.
4436 (objc_language_data): Delete skip_trampoline initializer.
4437 (objc_language::skip_trampoline): New member function with
4438 implementation from objc_skip_trampoline.
4439 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4440 initializer.
4441 * p-lang.c (pascal_language_data): Likewise.
4442 * rust-lang.c (rust_language_data): Likewise.
4443
0a50df5d
AB
44442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4445
4446 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4447 (ada_language::demangle): New member function.
4448 * c-lang.c (c_language_data): Delete la_demangle initializer.
4449 (cplus_language_data): Delete la_demangle initializer.
4450 (cplus_language::demangle): New member function.
4451 (asm_language_data): Delete la_demangle initializer.
4452 (minimal_language_data): Delete la_demangle initializer.
4453 * d-lang.c (d_language_data): Delete la_demangle initializer.
4454 (d_language::demangle): New member function.
4455 * f-lang.c (f_language_data): Delete la_demangle initializer.
4456 (f_language::demangle): New member function.
4457 * go-lang.c (go_language_data): Delete la_demangle initializer.
4458 (go_language::demangle): New member function.
4459 * language.c (language_demangle): Update.
4460 (unk_lang_demangle): Delete.
4461 (unknown_language_data): Delete la_demangle initializer.
4462 (unknown_language::demangle): New member function.
4463 (auto_language_data): Delete la_demangle initializer.
4464 (auto_language::demangle): New member function.
4465 * language.h (language_data): Delete la_demangle field.
4466 (language_defn::demangle): New function.
4467 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4468 * objc-lang.c (objc_language_data): Delete la_demangle
4469 initializer.
4470 (objc_language::demangle): New member function.
4471 * opencl-lang.c (opencl_language_data): Delete la_demangle
4472 initializer.
4473 * p-lang.c (pascal_language_data): Likewise.
4474 * rust-lang.c (rust_language_data): Likewise.
4475 (rust_language::demangle): New member function.
4476
fbfb0a46
AB
44772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4478
4479 * ada-lang.c (ada_language_data): Delete la_print_type
4480 initializer.
4481 (ada_language::print_type): New member function.
4482 * c-lang.c (c_language_data): Delete la_print_type initializer.
4483 (c_language::print_type): New member function.
4484 (cplus_language_data): Delete la_print_type initializer.
4485 (cplus_language::print_type): New member function.
4486 (asm_language_data): Delete la_print_type initializer.
4487 (asm_language::print_type): New member function.
4488 (minimal_language_data): Delete la_print_type initializer.
4489 (minimal_language::print_type): New member function.
4490 * d-lang.c (d_language_data): Delete la_print_type initializer.
4491 (d_language::print_type): New member function.
4492 * f-lang.c (f_language_data): Delete la_print_type initializer.
4493 (f_language::print_type): New member function.
4494 * go-lang.c (go_language_data): Delete la_print_type initializer.
4495 (go_language::print_type): New member function.
4496 * language.c (unk_lang_print_type): Delete.
4497 (unknown_language_data): Delete la_print_type initializer.
4498 (unknown_language::print_type): New member function.
4499 (auto_language_data): Delete la_print_type initializer.
4500 (auto_language::print_type): New member function.
4501 * language.h (language_data): Delete la_print_type field.
4502 (language_defn::print_type): New function.
4503 (LA_PRINT_TYPE): Update.
4504 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4505 (m2_language::print_type): New member function.
4506 * objc-lang.c (objc_language_data): Delete la_print_type
4507 initializer.
4508 (objc_language::print_type): New member function.
4509 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4510 to opencl_language::print_type.
4511 (opencl_language_data): Delete la_print_type initializer.
4512 (opencl_language::print_type): New member function, implementation
4513 from opencl_print_type.
4514 * p-lang.c (pascal_language_data): Delete la_print_type
4515 initializer.
4516 (pascal_language::print_type): New member function.
4517 * rust-lang.c (rust_print_type): Delete, implementation moved to
4518 rust_language::print_type.
4519 (rust_language_data): Delete la_print_type initializer.
4520 (rust_language::print_type): New member function, implementation
4521 from rust_print_type.
4522
6f827019
AB
45232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4524
4525 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4526 implementation moves to...
4527 (ada_language::sniff_from_mangled_name): ...here. Update return
4528 type.
4529 (ada_language_data): Delete la_sniff_from_mangled_name
4530 initializer.
4531 * c-lang.c (c_language_data): Likewise.
4532 (cplus_language_data): Likewise.
4533 (cplus_language::sniff_from_mangled_name): New member function,
4534 implementation taken from gdb_sniff_from_mangled_name.
4535 (asm_language_data): Delete la_sniff_from_mangled_name
4536 initializer.
4537 (minimal_language_data): Likewise.
4538 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4539 implementation moves to cplus_language::sniff_from_mangled_name.
4540 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4541 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4542 moves to...
4543 (d_language::sniff_from_mangled_name): ...here.
4544 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4545 * f-lang.c (f_language_data): Likewise.
4546 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4547 moves to...
4548 (go_language::sniff_from_mangled_name): ...here.
4549 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4550 * language.c (language_sniff_from_mangled_name): Delete.
4551 (unknown_language_data): Delete la_sniff_from_mangled_name
4552 initializer.
4553 (auto_language_data): Likewise.
4554 * language.h (language_data): Delete la_sniff_from_mangled_name
4555 field.
4556 (language_defn::sniff_from_mangled_name): New function.
4557 (language_sniff_from_mangled_name): Delete declaration.
4558 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4559 field.
4560 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4561 implementation moves to...
4562 (objc_language::sniff_from_mangled_name): ...here.
4563 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4564 * opencl-lang.c (opencl_language_data): Likewise.
4565 * p-lang.c (pascal_language_data): Likewise.
4566 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4567 implementation moves to...
4568 (rust_language::sniff_from_mangled_name): ...here.
4569 (rust_language_data): Delete la_sniff_from_mangled_name
4570 initializer.
4571 * symtab.c (symbol_find_demangled_name): Call
4572 sniff_from_mangled_name member function.
4573
fb8006fd
AB
45742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4575
4576 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4577 initializer.
4578 * c-lang.c (c_language_data): Likewise.
4579 (cplus_language_data): Likewise.
4580 (cplus_language::search_name_hash): New member function.
4581 (asm_language_data): Delete la_search_name_hash initializer.
4582 (minimal_language_data): Likewise.
4583 * d-lang.c (d_language_data): Likewise.
4584 * dictionary.c (default_search_name_hash): Rename to...
4585 (language_defn::search_name_hash): ...this.
4586 * f-lang.c (f_language_data): Likewise.
4587 (f_language::search_name_hash): New member function.
4588 * go-lang.c (go_language_data): Delete la_search_name_hash
4589 initializer.
4590 * language.c (unknown_language_data): Likewise.
4591 (auto_language_data): Likewise.
4592 * language.h (struct language_data): Delete la_search_name_hash
4593 field.
4594 (language_defn::search_name_hash): Declare new member function.
4595 (default_search_name_hash): Delete declaration.
4596 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4597 initializer.
4598 * objc-lang.c (objc_language_data): Likewise.
4599 * opencl-lang.c (opencl_language_data): Likewise.
4600 * p-lang.c (pascal_language_data): Likewise.
4601 * rust-lang.c (rust_language_data): Likewise.
4602 * symtab.c (search_name_hash): Update call.
4603
8e25bafe
AB
46042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4605
4606 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4607 initializer.
4608 * c-lang.c (class compile_instance): Declare.
4609 (c_language_data): Delete la_get_compile_instance initializer.
4610 (c_language::get_compile_instance): New member function.
4611 (cplus_language_data): Delete la_get_compile_instance initializer.
4612 (cplus_language::get_compile_instance): New member function.
4613 (asm_language_data): Delete la_get_compile_instance initializer.
4614 (minimal_language_data): Likewise.
4615 * c-lang.h (c_get_compile_context): Update comment.
4616 (cplus_get_compile_context): Update comment.
4617 * compile/compile.c (compile_to_object): Update calls, don't rely
4618 on function pointer being NULL.
4619 * d-lang.c (d_language_data): Delete la_get_compile_instance
4620 initializer.
4621 * f-lang.c (f_language_data): Likewise.
4622 * go-lang.c (go_language_data): Likewise.
4623 * language.c (unknown_language_data): Likewise.
4624 (auto_language_data): Likewise.
4625 * language.h (language_data): Delete la_get_compile_instance field.
4626 (language_defn::get_compile_instance): New member function.
4627 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4628 initializer.
4629 * objc-lang.c (objc_language_data): Likewise.
4630 * opencl-lang.c (opencl_language_data): Likewise.
4631 * p-lang.c (pascal_language_data): Likewise.
4632 * rust-lang.c (rust_language_data): Likewise.
4633
4009ee92
AB
46342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4635
4636 * ada-lang.c (ada_add_all_symbols): Update comment.
4637 (ada_iterate_over_symbols): Delete, move implementation to...
4638 (ada_language::iterate_over_symbols): ...here, a new member
4639 function, rewrite to use range based for loop.
4640 (ada_language_data): Delete la_iterate_over_symbols initializer.
4641 * c-lang.c (c_language_data): Likewise.
4642 (cplus_language_data): Likewise.
4643 (asm_language_data): Likewise.
4644 (minimal_language_data): Likewise.
4645 * d-lang.c (d_language_data): Likewise.
4646 * f-lang.c (f_language_data): Likewise.
4647 * go-lang.c (go_language_data): Likewise.
4648 * language.c (unknown_language_data): Likewise.
4649 (auto_language_data): Likewise.
4650 * language.h (language_data): Delete la_iterate_over_symbols field.
4651 (language_defn::iterate_over_symbols): New member function.
4652 (LA_ITERATE_OVER_SYMBOLS): Update.
4653 * linespec.c (iterate_over_all_matching_symtabs): Update.
4654 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4655 initializer.
4656 * objc-lang.c (objc_language_data): Likewise.
4657 * opencl-lang.c (opencl_language_data): Likewise.
4658 * p-lang.c (pascal_language_data): Likewise.
4659 * rust-lang.c (rust_language_data): Likewise.
4660
54f4ca46
AB
46612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4662
4663 * ada-lang.c (ada_language_data): Delete
4664 la_lookup_transparent_type initializer.
4665 * c-lang.c (c_language_data): Likewise.
4666 (cplus_language_data): Likewise.
4667 (cplus_language::lookup_transparent_type): New member function.
4668 (asm_language_data): Delete la_lookup_transparent_type
4669 initializer.
4670 (minimal_language_data): Likewise.
4671 * d-lang.c (d_language_data): Likewise.
4672 * f-lang.c (f_language_data): Likewise.
4673 * go-lang.c (go_language_data): Likewise.
4674 * language.c (unknown_language_data): Likewise.
4675 (auto_language_data): Likewise.
4676 * language.h (struct language_data): Delete
4677 la_lookup_transparent_type field.
4678 (language_defn::lookup_transparent_type): New member function.
4679 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4680 initializer.
4681 * objc-lang.c (objc_language_data): Likewise.
4682 * opencl-lang.c (opencl_language_data): Likewise.
4683 * p-lang.c (pascal_language_data): Likewise.
4684 * rust-lang.c (rust_language_data): Likewise.
4685 * symtab.c (symbol_matches_domain): Update call.
4686
1fb314aa
AB
46872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4688
4689 * ada-lang.c (ada_language_arch_info): Delete function, move
4690 implementation to...
4691 (ada_language::language_arch_info): ...here, a new member
4692 function.
4693 (ada_language_data): Delete la_language_arch_info.
4694 * c-lang.c (c_language_data): Likewise.
4695 (c_language::language_arch_info): New member function.
4696 (cplus_language_arch_info): Delete function, move
4697 implementation to...
4698 (cplus_language::language_arch_info): ...here, a new member
4699 function.
4700 (cplus_language_data): Delete la_language_arch_info.
4701 (asm_language_data): Likewise.
4702 (asm_language::language_arch_info): New member function.
4703 (minimal_language_data): Delete la_language_arch_info.
4704 (minimal_language::language_arch_info): New member function.
4705 * d-lang.c (d_language_arch_info): Delete function, move
4706 implementation to...
4707 (d_language::language_arch_info): ...here, a new member
4708 function.
4709 (d_language_data): Delete la_language_arch_info.
4710 * f-lang.c (f_language_arch_info): Delete function, move
4711 implementation to...
4712 (f_language::language_arch_info): ...here, a new member
4713 function.
4714 (f_language_data): Delete la_language_arch_info.
4715 * go-lang.c (go_language_arch_info): Delete function, move
4716 implementation to...
4717 (go_language::language_arch_info): ...here, a new member
4718 function.
4719 (go_language_data): Delete la_language_arch_info.
4720 * language.c (unknown_language_data): Likewise.
4721 (unknown_language::language_arch_info): New member function.
4722 (auto_language_data): Delete la_language_arch_info.
4723 (auto_language::language_arch_info): New member function.
4724 (language_gdbarch_post_init): Update call to
4725 la_language_arch_info.
4726 * language.h (language_data): Delete la_language_arch_info
4727 function pointer.
4728 (language_defn::language_arch_info): New function.
4729 * m2-lang.c (m2_language_arch_info): Delete function, move
4730 implementation to...
4731 (m2_language::language_arch_info): ...here, a new member
4732 function.
4733 (m2_language_data): Delete la_language_arch_info.
4734 * objc-lang.c (objc_language_arch_info): Delete function, move
4735 implementation to...
4736 (objc_language::language_arch_info): ...here, a new member
4737 function.
4738 (objc_language_data): Delete la_language_arch_info.
4739 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4740 implementation to...
4741 (opencl_language::language_arch_info): ...here, a new member
4742 function.
4743 (opencl_language_data): Delete la_language_arch_info.
4744 * p-lang.c (pascal_language_arch_info): Delete function, move
4745 implementation to...
4746 (pascal_language::language_arch_info): ...here, a new member
4747 function.
4748 (pascal_language_data): Delete la_language_arch_info.
4749 * rust-lang.c (rust_language_arch_info): Delete function, move
4750 implementation to...
4751 (rust_language::language_arch_info): ...here, a new member
4752 function.
4753 (rust_language_data): Delete la_language_arch_info.
4754
48448202
AB
47552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4756
4757 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4758 initializer.
4759 * c-lang.c (c_language_data): Likewise.
4760 (cplus_language_data): Likewise.
4761 (cplus_language::pass_by_reference_info): New method.
4762 (asm_language_data): Delete la_pass_by_reference initializer.
4763 (minimal_language_data): Likewise.
4764 * cp-abi.c (cp_pass_by_reference): Remove use of
4765 default_pass_by_reference.
4766 * d-lang.c (d_language_data): Likewise.
4767 * f-lang.c (f_language_data): Likewise.
4768 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4769 default_pass_by_reference.
4770 * go-lang.c (go_language_data): Likewise.
4771 * language.c (language_pass_by_reference): Update.
4772 (default_pass_by_reference): Delete.
4773 (unknown_language_data): Delete la_pass_by_reference
4774 initializer.
4775 (auto_language_data): Likewise.
4776 * language.h (struct language_data): Delete la_pass_by_reference
4777 field.
4778 (language_defn::pass_by_reference_info): New member function.
4779 (default_pass_by_reference): Delete declaration.
4780 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4781 initializer.
4782 * objc-lang.c (objc_language_data): Likewise.
4783 * opencl-lang.c (opencl_language_data): Likewise.
4784 * p-lang.c (pascal_language_data): Likewise.
4785 * rust-lang.c (rust_language_data): Likewise.
4786
15e5fd35
AB
47872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4788
4789 * ada-lang.c (ada_read_var_value): Delete function, move
4790 implementation to...
4791 (ada_language::read_var_value): ...here.
4792 (ada_language_data): Delete la_read_var_value initializer.
4793 * c-lang.c (c_language_data): Likewise.
4794 (cplus_language_data): Likewise.
4795 (minimal_language_data): Likewise.
4796 * d-lang.c (d_language_data): Likewise.
4797 * f-lang.c (f_language_data): Likewise.
4798 * findvar.c (default_read_var_value): Rename to...
4799 (language_defn::read_var_value): ...this.
4800 * findvar.c (read_var_value): Update header comment, and change to
4801 call member function instead of function pointer.
4802 * go-lang.c (go_language_data): Likewise.
4803 * language.c (unknown_language_data): Delete la_read_var_value
4804 initializer.
4805 (auto_language_data): Likewise.
4806 * language.h (struct language_data): Delete la_read_var_value
4807 field.
4808 (language_defn::read_var_value): New member function.
4809 (default_read_var_value): Delete declaration.
4810 * m2-lang.c (m2_language_data): Delete la_read_var_value
4811 initializer.
4812 * objc-lang.c (objc_language_data): Likewise.
4813 * opencl-lang.c (opencl_language_data): Likewise.
4814 * p-lang.c (pascal_language_data): Likewise.
4815 * rust-lang.c (rust_language_data): Likewise.
4816 * value.h (default_read_var_value): Delete declaration.
4817
5bd40f2a
AB
48182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4819
4820 * ada-lang.c (ada_print_array_index): Delete function, move
4821 implementation to...
4822 (ada_language::print_array_index): ...here.
4823 (ada_language_data): Delete la_print_array_index initializer.
4824 * c-lang.c (c_language_data): Likewise.
4825 (cplus_language_data): Likewise.
4826 (minimal_language_data): Likewise.
4827 * d-lang.c (d_language_data): Likewise.
4828 * f-lang.c (f_language_data): Likewise.
4829 * go-lang.c (go_language_data): Likewise.
4830 * language.c (default_print_array_index): Delete function, move
4831 implementation to...
4832 (language_defn::print_array_index): ...here.
4833 (unknown_language_data): Delete la_print_array_index initializer.
4834 (auto_language_data): Likewise.
4835 * language.h (struct language_data): Delete la_print_array_index
4836 field.
4837 (language_defn::print_array_index): New member function.
4838 (LA_PRINT_ARRAY_INDEX): Update.
4839 (default_print_array_index): Delete declaration.
4840 * m2-lang.c (m2_language_data): Delete la_print_array_index
4841 initializer.
4842 * objc-lang.c (objc_language_data): Likewise.
4843 * opencl-lang.c (opencl_language_data): Likewise.
4844 * p-lang.c (pascal_language_data): Likewise.
4845 * rust-lang.c (rust_language_data): Likewise.
4846
0874fd07
AB
48472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4848
4849 * gdb/ada-lang.c (ada_language_defn): Convert to...
4850 (ada_language_data): ...this.
4851 (class ada_language): New class.
4852 (ada_language_defn): New static global.
4853 * gdb/c-lang.c (c_language_defn): Convert to...
4854 (c_language_data): ...this.
4855 (class c_language): New class.
4856 (c_language_defn): New static global.
4857 (cplus_language_defn): Convert to...
4858 (cplus_language_data): ...this.
4859 (class cplus_language): New class.
4860 (cplus_language_defn): New static global.
4861 (asm_language_defn): Convert to...
4862 (asm_language_data): ...this.
4863 (class asm_language): New class.
4864 (asm_language_defn): New static global.
4865 (minimal_language_defn): Convert to...
4866 (minimal_language_data): ...this.
4867 (class minimal_language): New class.
4868 (minimal_language_defn): New static global.
4869 * gdb/d-lang.c (d_language_defn): Convert to...
4870 (d_language_data): ...this.
4871 (class d_language): New class.
4872 (d_language_defn): New static global.
4873 * gdb/f-lang.c (f_language_defn): Convert to...
4874 (f_language_data): ...this.
4875 (class f_language): New class.
4876 (f_language_defn): New static global.
4877 * gdb/go-lang.c (go_language_defn): Convert to...
4878 (go_language_data): ...this.
4879 (class go_language): New class.
4880 (go_language_defn): New static global.
4881 * gdb/language.c (unknown_language_defn): Remove declaration.
4882 (current_language): Initialize to nullptr, real initialization is
4883 moved to _initialize_language.
4884 (languages): Delete global.
4885 (language_defn::languages): Define.
4886 (set_language_command): Use language_defn::languages.
4887 (set_language): Likewise.
4888 (range_error): Likewise.
4889 (language_enum): Likewise.
4890 (language_def): Likewise.
4891 (add_set_language_command): Use language_def::languages for the
4892 language list, and language_def to lookup language pointers.
4893 (skip_language_trampoline): Use language_defn::languages.
4894 (unknown_language_defn): Convert to...
4895 (unknown_language_data): ...this.
4896 (class unknown_language): New class.
4897 (unknown_language_defn): New static global.
4898 (auto_language_defn): Convert to...
4899 (auto_language_data): ...this.
4900 (class auto_language): New class.
4901 (auto_language_defn): New static global.
4902 (language_gdbarch_post_init): Use language_defn::languages.
4903 (_initialize_language): Initialize current_language.
4904 * gdb/language.h (struct language_defn): Rename to...
4905 (struct language_data): ...this.
4906 (struct language_defn): New.
4907 (auto_language_defn): Delete.
4908 (unknown_language_defn): Delete.
4909 (minimal_language_defn): Delete.
4910 (ada_language_defn): Delete.
4911 (asm_language_defn): Delete.
4912 (c_language_defn): Delete.
4913 (cplus_language_defn): Delete.
4914 (d_language_defn): Delete.
4915 (f_language_defn): Delete.
4916 (go_language_defn): Delete.
4917 (m2_language_defn): Delete.
4918 (objc_language_defn): Delete.
4919 (opencl_language_defn): Delete.
4920 (pascal_language_defn): Delete.
4921 (rust_language_defn): Delete.
4922 * gdb/m2-lang.c (m2_language_defn): Convert to...
4923 (m2_language_data): ...this.
4924 (class m2_language): New class.
4925 (m2_language_defn): New static global.
4926 * gdb/objc-lang.c (objc_language_defn): Convert to...
4927 (objc_language_data): ...this.
4928 (class objc_language): New class.
4929 (objc_language_defn): New static global.
4930 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4931 (opencl_language_data): ...this.
4932 (class opencl_language): New class.
4933 (opencl_language_defn): New static global.
4934 * gdb/p-lang.c (pascal_language_defn): Convert to...
4935 (pascal_language_data): ...this.
4936 (class pascal_language): New class.
4937 (pascal_language_defn): New static global.
4938 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4939 language pointer, update comment format.
4940 * gdb/rust-lang.c (rust_language_defn): Convert to...
4941 (rust_language_data): ...this.
4942 (class rust_language): New class.
4943 (rust_language_defn): New static global.
4944
1313c56e
AB
49452020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4946
4947 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4948 member variable.
4949 <m_stmt_at_address>: New member variable.
4950 (lnp_state_machine::record_line): Don't record some lines, update
4951 tracking of is_stmt at the same address.
4952 (lnp_state_machine::lnp_state_machine): Initialise new member
4953 variables.
4954
b7ed9f3d
ST
49552020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4956
4957 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4958 "-include gnu-nat-mig.h".
4959 * gnu-nat-mig.h: New file.
4960 * gnu-nat.c: Include "gnu-nat-mig.h".
4961 (exc_server, msg_reply_server, notify_server,
4962 process_reply_server): Remove declarations.
4963
14a8ad62
ST
49642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4965
4966 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4967 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4968 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4969 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4970 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4971 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4972 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4973 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4974 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4975 to gnu_nat_target class.
4976 * gnu-nat.c: Likewise.
4977 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4978 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4979 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4980 object.
4981 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4982 instead of `gnu_target'.
4983
0af5e106
ST
49842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4985
4986 * i386-gnu-tdep.c: Include "gdbcore.h"
4987 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4988 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4989 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4990 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4991 i386_gnu_sigcontext_addr): New functions
4992 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4993 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4994 tdep.
4995
078f2fc9
ST
49962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4997
4998 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4999 before fork_inferior call. Avoid calling it if target_is_pushed returns
5000 true.
5001
53dff92c
ST
50022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5003
5004 * gnu-nat.h (gnu_target): New variable declaration.
5005 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5006 gnu_target.
5007 * gnu-nat.c (gnu_target): New variable.
5008 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5009 add_thread_silent, and add_thread calls.
5010 (gnu_nat_target::create_inferior): Pass gnu_target to
5011 add_thread_silent, thread_change_ptid call.
5012 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5013 call.
5014
5a8b8627
ST
50152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5016
5017 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5018 (gnu_nat_target::find_memory_regions): Remove unused
5019 `old_address' variable.
5020
366f550a
ST
50212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5022
5023 * gnu-nat.c: Include "gdbarch.h".
5024
f14871bf
ST
50252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5026
5027 * reply_mig_hack.awk (Error return): Cast function through
5028 void *, to bypass compiler function call check.
5029
c6887cfb
ST
50302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5031
5032 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5033 $(srcdir)/reply_mig_hack.awk.
5034
6930bffe
ST
50352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5036
5037 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5038
112c22ed
JG
50392020-05-30 Jonny Grant <jg@jguk.org>
5040
5041 * configure.ac (ACX_BUGURL): change bug URL to https.
5042
f68f85b5
PA
50432020-05-30 Pedro Alves <palves@redhat.com>
5044
5045 * cp-support.c (replace_typedefs_template): New.
5046 (replace_typedefs_qualified_name): Handle
5047 DEMANGLE_COMPONENT_TEMPLATE.
5048
976ca316
SM
50492020-05-29 Simon Marchi <simon.marchi@efficios.com>
5050
5051 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5052 dwarf2/index-cache.h, dwarf2/index-write.c,
5053 dwarf2/index-write.h, dwarf2/line-header.c,
5054 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5055 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5056 variables and fields from `dwarf2_per_objfile` to just
5057 `per_objfile` throughout.
5058
989ade05
SM
50592020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5060
5061 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5062 <push_dwarf_reg_entry_value>: Add comment.
5063
c47bae85
KB
50642020-05-28 Kevin Buettner <kevinb@redhat.com>
5065 Keith Seitz <keiths@redhat.com>
5066
5067 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5068 instead of PyEval_ReleaseLock.
5069 (class gdbpy_gil): Move to earlier in file.
5070 (finalize_python): Set gdb_python_initialized.
5071 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5072 when not initialized.
5073
44486dcf
SM
50742020-05-28 Simon Marchi <simon.marchi@efficios.com>
5075
5076 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5077 <push_dwarf_reg_entry_value>: Remove assert. Override
5078 per_objfile with caller_per_objfile.
5079
f030440d
TV
50802020-05-28 Tom de Vries <tdevries@suse.de>
5081
5082 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5083 PR gold/15646 workaround to symbol kind "type".
5084
f0fbb768
TT
50852020-05-27 Tom Tromey <tromey@adacore.com>
5086
5087 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5088
af0b2a3e
TT
50892020-05-27 Tom Tromey <tromey@adacore.com>
5090
5091 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5092 Use htab_find_with_hash.
5093 <add_abbrev>: Remove "abbrev_number" parameter.
5094 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5095 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5096 (hash_abbrev): Add comment.
5097 (abbrev_table::lookup_abbrev): Move to header file.
5098 (abbrev_table::read): Update.
5099
7d00ffec
TT
51002020-05-27 Tom Tromey <tromey@adacore.com>
5101
5102 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5103 method.
5104 <canonical_name>: New member.
5105 <raw_name>: Rename from "name".
5106 (partial_die_info): Initialize canonical_name.
5107 (scan_partial_symbols): Check raw_name.
5108 (partial_die_parent_scope, partial_die_full_name)
5109 (add_partial_symbol, add_partial_subprogram)
5110 (add_partial_enumeration, load_partial_dies): Use "name" method.
5111 (partial_die_info::name): New method.
5112 (partial_die_info::read, guess_partial_die_structure_name)
5113 (partial_die_info::fixup): Update.
5114
697bba18
TT
51152020-05-27 Tom Tromey <tromey@adacore.com>
5116
5117 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5118 <get_ref_die_offset>: Inline.
5119 <get_ref_die_offset_complaint>: New method.
5120 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5121 (attribute::get_ref_die_offset_complaint): Rename from
5122 get_ref_die_offset. Just issue complaint.
5123
c17ace43
HD
51242020-05-27 Hannes Domani <ssbssa@yahoo.de>
5125
5126 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5127
96445f0b
HD
51282020-05-27 Hannes Domani <ssbssa@yahoo.de>
5129
5130 * exec.c (exec_file_attach): Use errno value of first openp failure.
5131
ac637ec3
HD
51322020-05-27 Hannes Domani <ssbssa@yahoo.de>
5133
5134 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5135 Don't close thread handle.
5136
17ee85fc
TT
51372020-05-27 Tom Tromey <tom@tromey.com>
5138 Simon Marchi <simon.marchi@efficios.com>
5139
5140 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5141 shared_ptr.
5142 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5143 member.
5144 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5145 dwarf2_per_bfd_objfile_data_key>: New globals.
5146 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5147 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5148 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5149 shared.
5150 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5151 short-circuit when sharing.
5152 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5153 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5154
39b16f87
SM
51552020-05-27 Simon Marchi <simon.marchi@efficios.com>
5156
5157 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5158 to...
5159 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5160 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5161
fcf23d5b
SM
51622020-05-27 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5165 build_name_components, find_name_components_bounds>:
5166 Add per_objfile parameter.
5167 (struct mapped_index) <symbol_name_at>: Likewise.
5168 (struct mapped_debug_names): Remove constructor.
5169 <dwarf2_per_objfile>: Remove field.
5170 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5171 (mapped_index_base::find_name_components_bounds,
5172 mapped_index_base::build_name_components,
5173 dw2_expand_symtabs_matching_symbol): Likewise.
5174 (class mock_mapped_index) <symbol_name_at>: Likewise.
5175 (check_match): Likewise.
5176 (check_find_bounds_finds): Likewise.
5177 (test_mapped_index_find_name_component_bounds): Update.
5178 (CHECK_MATCH): Update.
5179 (dw2_expand_symtabs_matching): Update.
5180 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5181 per_objfile parameter.
5182 <find_vec_in_debug_names>: Likewise.
5183 <m_per_objfile>: New field.
5184 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5185 parameter.
5186 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5187 (dw2_debug_names_iterator::next): Update.
5188 (dw2_debug_names_lookup_symbol): Update.
5189 (dw2_debug_names_expand_symtabs_for_function): Update.
5190 (dw2_debug_names_map_matching_symbols): Update.
5191 (dw2_debug_names_expand_symtabs_matching): Update.
5192 (dwarf2_read_debug_names): Update.
5193
7188ed02
SM
51942020-05-27 Simon Marchi <simon.marchi@efficios.com>
5195
5196 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5197 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5198 move to dwarf2_per_objfile.
5199 <read_in_chain>: Remove.
5200 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5201 remove_all_cus, age_comp_units>: New methods.
5202 <m_dwarf2_cus>: New member.
5203 (struct dwarf2_per_cu_data) <cu>: Remove.
5204 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5205 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5206 moved to methods of dwarf2_per_objfile.
5207 (dwarf2_clear_marks): Remove.
5208 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5209 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5210 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5211 (dwarf2_per_objfile::remove_all_cus): New.
5212 (class free_cached_comp_units) <~free_cached_comp_units>:
5213 Update.
5214 (load_cu): Update.
5215 (dw2_do_instantiate_symtab): Adjust.
5216 (fill_in_sig_entry_from_dwo_entry): Adjust.
5217 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5218 (cutu_reader::cutu_reader): Likewise.
5219 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5220 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5221 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5222 and dwarf2_per_objfile::age_comp_units.
5223 (load_partial_comp_unit): Update.
5224 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5225 (process_queue): Likewise.
5226 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5227 backlink.
5228 (dwarf2_read_addr_index): Likewise.
5229 (follow_die_offset): Likewise.
5230 (dwarf2_fetch_die_loc_sect_off): Likewise.
5231 (dwarf2_fetch_constant_bytes): Likewise.
5232 (dwarf2_fetch_die_type_sect_off): Likewise.
5233 (follow_die_sig_1): Likewise.
5234 (load_full_type_unit): Likewise.
5235 (read_signatured_type): Likewise.
5236 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5237 (dwarf2_cu::~dwarf2_cu): Remove.
5238 (dwarf2_per_objfile::get_cu): New.
5239 (dwarf2_per_objfile::set_cu): New.
5240 (age_cached_comp_units): Rename to...
5241 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5242 to std::unordered_map.
5243 (free_one_cached_comp_unit): Rename to...
5244 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5245 to std::unordered_map.
5246 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5247 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5248 a dwarf2_per_objfile in data.
5249 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5250 (dwarf2_clear_marks): Remove.
5251
2e671100
SM
52522020-05-27 Simon Marchi <simon.marchi@efficios.com>
5253
5254 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5255 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5256 (init_tu_and_read_dwo_dies): Likewise.
5257 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5258 (cutu_reader::cutu_reader): Likewise.
5259 (load_partial_comp_unit): Likewise.
5260 (process_psymtab_comp_unit): Update.
5261 (build_type_psymtabs_1): Update.
5262 (process_skeletonless_type_unit): Update.
5263 (load_full_comp_unit): Update.
5264 (find_partial_die): Update.
5265 (dwarf2_read_addr_index): Update.
5266 (read_signatured_type): Update.
5267
2e6a9f79
SM
52682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5269
5270 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5271 m_header_read_in>: New fields.
5272 <get_header>: New method.
5273 * dwarf2/read.c (per_cu_header_read_in): Remove.
5274 (dwarf2_per_cu_data::get_header): New.
5275 (dwarf2_per_cu_data::addr_size): Update.
5276 (dwarf2_per_cu_data::offset_size): Update.
5277 (dwarf2_per_cu_data::ref_addr_size): Update.
5278
1b555f17
SM
52792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5280
5281 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5282 (dw2_do_instantiate_symtab): Update.
5283 (queue_and_load_all_dwo_tus): Change parameter from
5284 dwarf2_per_cu_data to dwarf2_cu.
5285 (dwarf2_fetch_die_loc_sect_off): Update.
5286 (dwarf2_fetch_constant_bytes): Update.
5287 (dwarf2_fetch_die_type_sect_off): Update.
5288
8fc0b21d
SM
52892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5290
5291 * dwarf2/read.c (process_full_comp_unit,
5292 process_full_type_unit): Remove per_cu, per_objfile paramters.
5293 Add dwarf2_cu parameter.
5294 (process_queue): Update.
5295
168c9250
SM
52962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5297
5298 * dwarf2/read.c (create_cu_from_index_list): Replace
5299 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5300 (create_cus_from_index_list): Likewise.
5301 (create_cus_from_index): Likewise.
5302 (create_signatured_type_table_from_index): Likewise.
5303 (create_cus_from_debug_names_list): Likewise.
5304 (create_cus_from_debug_names): Likewise.
5305 (dwarf2_read_gdb_index): Update.
5306 (dwarf2_read_debug_names): Update.
5307
e286671b
TT
53082020-05-27 Tom Tromey <tom@tromey.com>
5309 Simon Marchi <simon.marchi@efficios.com>
5310
5311 * dwarf2/read.h (struct dwarf2_per_objfile)
5312 <get_type_for_signatured_type, set_type_for_signatured_type>:
5313 New methods.
5314 <m_type_map>: New member.
5315 (struct signatured_type) <type>: Remove.
5316 * dwarf2/read.c
5317 (dwarf2_per_objfile::get_type_for_signatured_type,
5318 dwarf2_per_objfile::set_type_for_signatured_type): New.
5319 (get_signatured_type): Use new methods.
5320
8adb8487
TT
53212020-05-27 Tom Tromey <tom@tromey.com>
5322 Simon Marchi <simon.marchi@efficios.com>
5323
5324 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5325 (struct dwarf2_per_objfile) <type_units>: New member.
5326 <get_type_unit_group_unshareable>: New method.
5327 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5328 num_symtabs, symtabs>: Remove; move to
5329 type_unit_group_unshareable.
5330 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5331 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5332 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5333
127bbf4b
SM
53342020-05-27 Simon Marchi <simon.marchi@efficios.com>
5335
5336 * dwarf2/read.h (struct dwarf2_per_cu_data):
5337 <dwarf2_per_objfile>: Remove.
5338 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5339 dwarf2_per_objfile.
5340 (create_signatured_type_table_from_index): Likewise.
5341 (create_signatured_type_table_from_debug_names): Likewise.
5342 (create_debug_type_hash_table): Likewise.
5343 (fill_in_sig_entry_from_dwo_entry): Likewise.
5344 (create_type_unit_group): Likewise.
5345 (read_comp_units_from_section): Likewise.
5346 (create_cus_hash_table): Likewise.
5347
f6e649dd
SM
53482020-05-27 Simon Marchi <simon.marchi@efficios.com>
5349
5350 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5351 dwarf2_per_cu_data::dwarf2_per_objfile.
5352 (compute_compunit_symtab_includes): Likewise.
5353 (dwarf2_cu::start_symtab): Likewise.
5354
aa66c379
SM
53552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5356
5357 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5358 parameter.
5359 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5360 (read_namespace_alias): Update.
5361 (lookup_die_type): Update.
5362 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5363 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5364 Update.
5365 (disassemble_dwarf_expression): Update.
5366
120ce1b5
SM
53672020-05-27 Simon Marchi <simon.marchi@efficios.com>
5368
5369 * dwarf2/read.h (struct dwarf2_queue_item): Add
5370 dwarf2_per_objfile parameter, assign new parameter.
5371 <per_objfile>: New field.
5372 * dwarf2/read.c (free_one_cached_comp_unit): Add
5373 dwarf2_per_objfile parameter.
5374 (queue_comp_unit): Likewise.
5375 (dw2_do_instantiate_symtab): Update.
5376 (process_psymtab_comp_unit): Update.
5377 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5378 (process_imported_unit_die): Update.
5379 (queue_and_load_dwo_tu): Update.
5380 (follow_die_offset): Update.
5381 (follow_die_sig_1): Update.
5382
9f47c707
SM
53832020-05-27 Simon Marchi <simon.marchi@efficios.com>
5384
5385 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5386 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5387 (read_call_site_scope): Assign per_objfile.
5388 (dwarf2_per_cu_data::objfile): Remove.
5389 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5390 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5391 dwarf2_per_objfile parameter.
5392 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5393 dwarf2_per_objfile parameter.
5394 (dwarf_expr_reg_to_entry_parameter): Add output
5395 dwarf2_per_objfile parameter.
5396 (locexpr_get_frame_base): Update.
5397 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5398 <push_dwarf_reg_entry_value>: Update.
5399 <call_site_to_target_addr>: Update.
5400 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5401 parameter.
5402 (value_of_dwarf_reg_entry): Update.
5403 (rw_pieced_value): Update.
5404 (indirect_synthetic_pointer): Update.
5405 (dwarf2_evaluate_property): Update.
5406 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5407 parameter.
5408 (locexpr_read_variable): Update.
5409 (locexpr_get_symbol_read_needs): Update.
5410 (loclist_read_variable): Update.
5411
14095eb3
SM
54122020-05-27 Simon Marchi <simon.marchi@efficios.com>
5413
5414 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5415 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5416 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5417 parameter.
5418 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5419 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5420 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5421 parameter.
5422 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5423 sect_variable_value): Add dwarf2_per_objfile parameter.
5424 (class dwarf_evaluate_loc_desc) <dwarf_call,
5425 dwarf_variable_value>: Update.
5426 (fetch_const_value_from_synthetic_pointer): Add
5427 dwarf2_per_objfile parameter.
5428 (fetch_const_value_from_synthetic_pointer): Update.
5429 (coerced_pieced_ref): Update.
5430 (class symbol_needs_eval_context) <dwarf_call,
5431 dwarf_variable_value>: Update.
5432 (dwarf2_compile_expr_to_ax): Update.
5433
3c3cd3d4
SM
54342020-05-27 Simon Marchi <simon.marchi@efficios.com>
5435
5436 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5437 parameter.
5438 (dwarf2_evaluate_loc_desc_full): Update.
5439
82ca3f51
SM
54402020-05-27 Simon Marchi <simon.marchi@efficios.com>
5441
5442 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5443 parameter.
5444 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5445 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5446 dwarf2_per_objfile parameter.
5447 (decode_debug_loc_dwo_addresses): Likewise.
5448 (dwarf2_find_location_expression): Update.
5449 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5450 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5451 parameter.
5452 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5453 parameter.
5454 (locexpr_describe_location_1): Likewise.
5455 (locexpr_describe_location): Update.
5456
4b167ea1
SM
54572020-05-27 Simon Marchi <simon.marchi@efficios.com>
5458
5459 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5460 Remove.
5461 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5462 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5463 (dwarf2_compile_property_to_c): Update.
5464 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5465 use text offset from objfile.
5466 (locexpr_tracepoint_var_ref): Update.
5467 (locexpr_generate_c_location): Update.
5468 (loclist_describe_location): Update.
5469 (loclist_tracepoint_var_ref): Update.
5470 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5471 dwarf2_per_objfile parameter.
5472 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5473 use text offset from objfile.
5474 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5475
89b07335
SM
54762020-05-27 Simon Marchi <simon.marchi@efficios.com>
5477
5478 * dwarf2/expr.h (struct dwarf_expr_context)
5479 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5480 <offset>: Remove.
5481 <per_objfile>: New member.
5482 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5483 dwarf2_per_objfile parameter. Don't set offset, set
5484 per_objfile.
5485 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5486 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5487 a dwarf2_per_objfile object instead of an offset.
5488 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5489 constructor.
5490 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5491 to dwarf2_expr_executor constructor. Don't set offset.
5492 (dwarf2_fetch_cfa_info): Update.
5493 (struct dwarf2_frame_cache) <text_offset>: Remove.
5494 <per_objfile>: New field.
5495 (dwarf2_frame_cache): Update.
5496 (dwarf2_frame_prev_register): Update.
5497 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5498 <dwarf_evaluate_loc_desc>: Add constructor.
5499 (dwarf2_evaluate_loc_desc_full): Update.
5500 (dwarf2_locexpr_baton_eval): Update.
5501 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5502 Add constructor.
5503 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5504
293e7e51
SM
55052020-05-27 Simon Marchi <simon.marchi@efficios.com>
5506
5507 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5508 addr_sized_int_type>: Move to dwarf2_cu.
5509 <int_type>: Move to dwarf2_per_objfile.
5510 (struct dwarf2_per_objfile) <int_type>: Move here.
5511 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5512 addr_sized_int_type>: Move here.
5513 (read_func_scope): Update.
5514 (read_array_type): Update.
5515 (read_tag_string_type): Update.
5516 (attr_to_dynamic_prop): Update.
5517 (dwarf2_per_cu_data::int_type): Rename to...
5518 (dwarf2_per_objfile::int_type): ... this.
5519 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5520 (dwarf2_cu::addr_sized_int_type): ... this.
5521 (read_subrange_type): Update.
5522 (dwarf2_per_cu_data::addr_type): Rename to...
5523 (dwarf2_cu::addr_type): ... this.
5524 (set_die_type): Update.
5525
64874a40
SM
55262020-05-27 Simon Marchi <simon.marchi@efficios.com>
5527
5528 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5529 data through per_cu->cu.
5530
4ab09049
SM
55312020-05-27 Simon Marchi <simon.marchi@efficios.com>
5532
5533 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5534 dwarf2_per_cu_data parameter fo dwarf2_cu.
5535 (lookup_dwo_type_unit): Likewise.
5536 (read_cutu_die_from_dwo): Likewise.
5537 (lookup_dwo_unit): Likewise.
5538 (open_and_init_dwo_file): Likewise.
5539 (lookup_dwo_cutu): Likewise.
5540 (lookup_dwo_comp_unit): Likewise.
5541 (lookup_dwo_type_unit): Likewise.
5542 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5543 (cutu_reader::cutu_reader): Update.
5544
47b14e86
SM
55452020-05-27 Simon Marchi <simon.marchi@efficios.com>
5546
5547 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5548 parameter.
5549 (process_full_type_unit): Likewise.
5550 (process_queue): Update.
5551
43182c09
SM
55522020-05-27 Simon Marchi <simon.marchi@efficios.com>
5553
5554 * dwarf2/read.c (recursively_compute_inclusions): Add
5555 dwarf2_per_objfile parameter.
5556 (compute_compunit_symtab_includes): Likewise.
5557 (process_cu_includes): Update.
5558
7aa104c4
SM
55592020-05-27 Simon Marchi <simon.marchi@efficios.com>
5560
5561 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5562 parameter.
5563 (create_type_unit_group): Update.
5564 (process_psymtab_comp_unit_reader): Update.
5565 (build_type_psymtabs_reader): Update.
5566
e3beb21d
SM
55672020-05-27 Simon Marchi <simon.marchi@efficios.com>
5568
5569 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5570 object through m_this_cu->cu.
5571
d460f660
SM
55722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5573
5574 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5575 the info parameter.
5576 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5577
ab432490
SM
55782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5579
5580 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5581 per_objfile parameter.
5582 (load_full_type_unit): Add per_objfile parameter.
5583 (read_signatured_type): Likewise.
5584 (load_full_comp_unit): Likewise.
5585 (load_cu): Likewise.
5586 (dw2_do_instantiate_symtab): Likewise.
5587 (dw2_get_file_names): Likewise.
5588 (dw2_map_symtabs_matching_filename): Update.
5589 (dw_expand_symtabs_matching_file_matcher): Update.
5590 (dw2_map_symbol_filenames): Update.
5591 (process_psymtab_comp_unit): Add per_objfile parameter.
5592 (build_type_psymtabs_1): Update.
5593 (process_skeletonless_type_unit): Update.
5594 (dwarf2_build_psymtabs_hard): Update.
5595 (load_partial_comp_unit): Add per_objfile parameter.
5596 (scan_partial_symbols): Update.
5597 (load_full_comp_unit): Add per_objfile parameter.
5598 (process_imported_unit_die): Update.
5599 (create_cus_hash_table): Update.
5600 (find_partial_die): Update.
5601 (dwarf2_read_addr_index): Update.
5602 (follow_die_offset): Update.
5603 (dwarf2_fetch_die_loc_sect_off): Update.
5604 (dwarf2_fetch_constant_bytes): Update.
5605 (dwarf2_fetch_die_type_sect_off): Update.
5606 (follow_die_sig_1): Update.
5607 (load_full_type_unit): Add per_objfile parameter.
5608 (read_signatured_type): Likewise.
5609
313bad1b
SM
56102020-05-27 Simon Marchi <simon.marchi@efficios.com>
5611
5612 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5613 of objfile_name.
5614
c3699833
SM
56152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5616
5617 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5618 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5619 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5620 field.
5621 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5622 (create_cus_from_index): Update.
5623 (dwarf2_read_gdb_index): Update.
5624 (create_cus_from_debug_names): Update.
5625 (dwarf2_read_debug_names): Update.
5626 (get_abbrev_section_for_cu): Update.
5627 (create_all_comp_units): Update.
5628 (read_attribute_value): Update.
5629 (get_debug_line_section): Update.
5630 * dwarf2/index-cache.c (index_cache::store): Update.
5631 * dwarf2/index-write.c (save_gdb_index_command): Update.
5632 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5633
1859c670
SM
56342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5635
5636 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5637 member.
5638 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5639 dwarf2_per_cu_data::per_bfd.
5640 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5641 (create_type_unit_group): Likewise.
5642 (queue_comp_unit): Remove reference to
5643 per_cu->dwarf2_per_objfile.
5644 (maybe_queue_comp_unit): Likewise.
5645 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5646 (create_cus_hash_table): Assign new field.
5647
5e22e966
SM
56482020-05-27 Simon Marchi <simon.marchi@efficios.com>
5649
5650 * dwarf2/read.c: Replace
5651 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5652 dwarf2_cu->per_objfile throughout.
5653
97a1449a
SM
56542020-05-27 Simon Marchi <simon.marchi@efficios.com>
5655
5656 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5657 parameter, don't use per_cu->dwarf2_per_objfile.
5658 (dw2_instantiate_symtab): Likewise.
5659 (dw2_find_last_source_symtab): Update.
5660 (dw2_map_expand_apply): Update.
5661 (dw2_lookup_symbol): Update.
5662 (dw2_expand_symtabs_for_function): Update.
5663 (dw2_expand_all_symtabs): Update.
5664 (dw2_expand_symtabs_with_fullname): Update.
5665 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5666 don't use per_cu->dwarf2_per_objfile.
5667 (dw2_expand_marked_cus): Update.
5668 (dw2_find_pc_sect_compunit_symtab): Update.
5669 (dw2_debug_names_lookup_symbol): Update.
5670 (dw2_debug_names_expand_symtabs_for_function): Update.
5671 (dw2_debug_names_map_matching_symbols): Update.
5672 (dwarf2_psymtab::expand_psymtab): Update.
5673
9e021579
SM
56742020-05-27 Simon Marchi <simon.marchi@efficios.com>
5675
5676 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5677 <per_objfile>: New member.
5678 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5679 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5680 call to dwarf2_cu.
5681 (cutu_reader::cutu_reader): Update.
5682 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5683
ae090bdb
SM
56842020-05-27 Simon Marchi <simon.marchi@efficios.com>
5685
5686 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5687 struct dwarf2_per_objfile.
5688 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5689 dwarf2_per_bfd.
5690 * dwarf2/read.c (set_die_type): Update.
5691 (get_die_type_at_offset): Update.
5692
af758d11
SM
56932020-05-27 Tom Tromey <tom@tromey.com>
5694 Simon Marchi <simon.marchi@efficios.com>
5695
5696 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5697 method.
5698 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5699 get_symtab, set_symtab>: New methods.
5700 <m_symtabs>: New field.
5701 (struct dwarf2_psymtab): Derive from partial_symtab.
5702 <readin_p, get_compunit_symtab>: Declare methods.
5703 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5704 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5705 New methods.
5706 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5707 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5708 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5709 (dw2_symtab_iter_next, dw2_print_stats)
5710 (dw2_expand_symtabs_with_fullname)
5711 (dw2_expand_symtabs_matching_one)
5712 (dw_expand_symtabs_matching_file_matcher)
5713 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5714 (dw2_debug_names_iterator::next)
5715 (dw2_debug_names_map_matching_symbols)
5716 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5717 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5718 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5719 New methods.
5720 (get_compunit_symtab, process_full_comp_unit)
5721 (process_full_type_unit): Update.
5722 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5723
5989a64e
SM
57242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5725
5726 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5727 then introduce a new dwarf2_per_objfile type.
5728 <read_line_string>: Move to the new dwarf2_per_objfile type.
5729 <objfile>: Likewise.
5730 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5731 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5732 dwarf2_per_objfile->per_bfd.
5733 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5734 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5735 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5736 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5737 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5738 (dwarf2_per_objfile::locate_sections): Rename to...
5739 (dwarf2_per_bfd::locate_sections): ... this.
5740 (dwarf2_per_objfile::get_cutu): Rename to...
5741 (dwarf2_per_bfd::get_cutu): ... this.
5742 (dwarf2_per_objfile::get_cu): Rename to...
5743 (dwarf2_per_bfd::get_cu): ... this.
5744 (dwarf2_per_objfile::get_tu): Rename to...
5745 (dwarf2_per_bfd::get_tu): ... this.
5746 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5747 (dwarf2_per_bfd::allocate_per_cu): ... this.
5748 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5749 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5750 (get_gdb_index_contents_ftype): Change parameter from
5751 dwarf2_per_objfile to dwarf2_per_bfd.
5752 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5753 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5754
a50264ba
TT
57552020-05-27 Tom Tromey <tom@tromey.com>
5756 Simon Marchi <simon.marchi@efficios.com>
5757
5758 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5759 (allocate_piece_closure): Set "per_objfile" member.
5760 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5761 (locexpr_describe_location, loclist_describe_location): Use new
5762 member.
5763 * dwarf2/read.c (read_call_site_scope)
5764 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5765 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5766 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5767 handle_data_member_location): Set per_objfile member.
5768 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5769 member.
5770 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5771
d3473f0c
TT
57722020-05-27 Tom Tromey <tom@tromey.com>
5773
5774 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5775 allocate_signatured_type>: Declare new methods.
5776 <m_num_psymtabs>: New member.
5777 (struct dwarf2_per_cu_data) <index>: New member.
5778 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5779 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5780 (create_cu_from_index_list): Use allocate_per_cu.
5781 (create_signatured_type_table_from_index)
5782 (create_signatured_type_table_from_debug_names)
5783 (create_debug_type_hash_table, add_type_unit)
5784 (read_comp_units_from_section): Use allocate_signatured_type.
5785
5717c425
TT
57862020-05-27 Tom Tromey <tom@tromey.com>
5787
5788 * psymtab.c (partial_map_expand_apply)
5789 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5790 (psym_lookup_global_symbol_language)
5791 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5792 (psym_print_stats, psym_expand_symtabs_for_function)
5793 (psym_map_symbol_filenames, psym_map_matching_symbols)
5794 (psym_expand_symtabs_matching)
5795 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5796 (maintenance_check_psymtabs): Update.
5797 * psympriv.h (struct partial_symtab) <readin_p,
5798 get_compunit_symtab>: Add objfile parameter.
5799 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5800 Likewise.
5801 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5802 get_compunit_symtab>: Likewise.
5803 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5804
45940949
TT
58052020-05-27 Tom Tromey <tom@tromey.com>
5806
5807 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5808 member.
5809 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5810 (create_cu_from_index_list)
5811 (create_signatured_type_table_from_index)
5812 (create_signatured_type_table_from_debug_names)
5813 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5814 (dwarf2_create_include_psymtab)
5815 (create_debug_type_hash_table, add_type_unit)
5816 (create_type_unit_group, read_comp_units_from_section)
5817 (dwarf2_compute_name, create_cus_hash_table)
5818 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5819 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5820 obstack.
5821 (dw2_get_real_path): Likewise. Change argument to
5822 dwarf2_per_objfile.
5823
f8c6d152
LM
58242020-05-27 Luis Machado <luis.machado@linaro.org>
5825
5826 PR tdep/26000
5827 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5828 for ldrd (immediate).
5829
e98d2e6d
PW
58302020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5831
5832 * command.h: Add comment giving the name of class_tui.
5833 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5834 create the fake command for the help for class_tui.
5835
53a47a3e
TT
58362020-05-26 Tom Tromey <tromey@adacore.com>
5837
5838 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5839 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5840 (val_atr): New function.
5841 (value_val_atr): Use it.
5842 * ada-valprint.c (print_optional_low_bound): Change low bound
5843 handling for enums.
5844 (val_print_packed_array_elements): Don't call discrete_position.
5845 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5846 discrete_position for enum types.
5847 * language.c (default_print_array_index): Change type.
5848 * language.h (struct language_defn) <la_print_array_index>: Add
5849 index_type parameter, change type of index_value.
5850 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5851 (default_print_array_index): Update.
5852 * valprint.c (maybe_print_array_index): Don't call
5853 value_from_longest. Update.
5854 (value_print_array_elements): Don't call discrete_position.
5855
0bc2354b
TT
58562020-05-26 Tom Tromey <tromey@adacore.com>
5857
5858 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5859 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5860
1218a4bf
CDA
58612020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5862
5863 PR gdb/13519
5864 * avr-tdep.c (avr_integer_to_address): Return data or code
5865 address accordingly to the second 'type' argument of the
5866 function.
5867
92651b1d
MW
58682020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5869
5870 * infcmd.c, inferior.h: (construct_inferior_arguments):
5871 Moved function from here to gdbsupport/common-inferior.{h,cc}
5872
0a4f5f8c
TT
58732020-05-23 Tom Tromey <tom@tromey.com>
5874
5875 Revert commit eca1f90c:
5876 * NEWS: Remove entry for completion styling.
5877 * completer.c (_rl_completion_prefix_display_length): Move
5878 declaration later.
5879 (gdb_fnprint): Revert.
5880 (gdb_display_match_list_1): Likewise.
5881 * cli/cli-style.c (completion_prefix_style)
5882 (completion_difference_style, completion_suffix_style): Remove.
5883 (_initialize_cli_style): Revert.
5884 * cli/cli-style.h (completion_prefix_style)
5885 (completion_difference_style, completion_suffix_style): Don't
5886 declare.
5887
e08bd6c5
PA
58882020-05-24 Pedro Alves <palves@redhat.com>
5889
5890 * symtab.c (completion_list_add_name): Return boolean indication
5891 of whether the symbol matched.
5892 (completion_list_add_symbol): Don't try to remove C++ aliases if
5893 the symbol didn't match in the first place.
5894 * symtab.h (completion_list_add_name): Return bool.
5895
ceacbf6e
SM
58962020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5897
5898 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5899 type::field.
5900
26f16254
JB
59012020-05-23 Joel Brobecker <brobecker@adacore.com>
5902
5903 GDB 9.2 released.
5904
eca1f90c
TT
59052020-05-23 Tom Tromey <tom@tromey.com>
5906
5907 * NEWS: Add entry for completion styling.
5908 * completer.c (_rl_completion_prefix_display_length): Move
5909 declaration earlier.
5910 (gdb_fnprint): Use completion_style.
5911 (gdb_display_match_list_1): Likewise.
5912 * cli/cli-style.c (completion_prefix_style)
5913 (completion_difference_style, completion_suffix_style): New
5914 globals.
5915 (_initialize_cli_style): Register new globals.
5916 * cli/cli-style.h (completion_prefix_style)
5917 (completion_difference_style, completion_suffix_style): Declare.
5918
51e2cfa2
PA
59192020-05-23 Pedro Alves <palves@redhat.com>
5920
5921 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5922 (parse_escape): Use ISDIGIT instead of isdigit.
5923 (puts_debug): Use gdb_isprint instead of isprint.
5924 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5925 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5926 ISSPACE instead of isspace.
5927 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5928 instead of isspace.
5929 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5930 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5931 instead of isxdigit and ISDIGIT instead of isdigit.
5932
80fc5e77
SM
59332020-05-22 Simon Marchi <simon.marchi@efficios.com>
5934
5935 * gdbtypes.h (struct type) <field>: New method.
5936 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5937 or type::field.
5938
3cabb6b0
SM
59392020-05-22 Simon Marchi <simon.marchi@efficios.com>
5940
5941 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5942 (TYPE_FIELDS): Use type::fields. Change all call sites that
5943 modify the propery to use type::set_fields instead.
5944
1f704f76
SM
59452020-05-22 Simon Marchi <simon.marchi@efficios.com>
5946
5947 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5948 type::num_fields instead.
5949
5e33d5f4
SM
59502020-05-22 Simon Marchi <simon.marchi@efficios.com>
5951
5952 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5953 methods.
5954 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5955 that modify the number of fields to use type::set_num_fields
5956 instead.
5957
9392ebb3
TT
59582020-05-22 Tom Tromey <tromey@adacore.com>
5959
5960 * compile/compile-object-load.h (munmap_list_free): Don't
5961 declare.
5962
7c13f4e8
AB
59632020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5964
5965 * annotate.c (annotate_source_line): Update return type, add call
5966 to update current symtab and line.
5967 * annotate.h (annotate_source_line): Update return type, and
5968 extend header comment.
5969 * source.c (info_line_command): Check annotation_level before
5970 calling annotate_source_line.
5971 * stack.c (print_frame_info): If calling annotate_source_line
5972 returns true, then don't print any other source line information.
5973
aa370940
SM
59742020-05-21 Simon Marchi <simon.marchi@efficios.com>
5975
5976 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5977
84d53fa9
SM
59782020-05-21 Simon Marchi <simon.marchi@efficios.com>
5979
5980 * coffread.c (patch_type): Remove NULL check before xfree.
5981 * corefile.c (set_gnutarget): Likewise.
5982 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5983 * exec.c (build_section_table): Likewise.
5984 * remote.c (remote_target::pass_signals): Likewise.
5985 * utils.c (n_spaces): Likewise.
5986 * cli/cli-script.c (document_command): Likewise.
5987 * i386-windows-tdep.c (core_process_module_section): Likewise.
5988 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5989
9d428aae
SM
59902020-05-20 Simon Marchi <simon.marchi@efficios.com>
5991
5992 * symfile.c (reread_symbols): Clear objfile's section_offsets
5993 vector and section indices, re-compute them by calling
5994 sym_offsets.
5995
250106a7
TT
59962020-05-20 Tom Tromey <tromey@adacore.com>
5997
5998 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5999 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6000
9a0bacfb
TV
60012020-05-20 Tom de Vries <tdevries@suse.de>
6002
6003 PR symtab/25833
6004 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6005
7b958a48
AM
60062020-05-20 Alan Modra <amodra@gmail.com>
6007
6008 PR 25993
6009 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6010 bfd_set_filename.
6011 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6012 passed to bfd_set_filename.
6013 * symfile-mem.c (add_vsyscall_page): Likewise for string
6014 passed to symbol_file_add_from_memory.
6015 (symbol_file_add_from_memory): Make name param a const char* and
6016 don't strdup.
6017
c7e97679
AM
60182020-05-20 Alan Modra <amodra@gmail.com>
6019
6020 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6021 rather than accessing bfd->filename directly.
6022 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6023 and use bfd_section_name.
6024 * dwarf2/frame.c (decode_frame_entry): Likewise.
6025 * exec.c (exec_set_section_address): Likewise.
6026 * solib-aix.c (solib_aix_bfd_open): Likewise.
6027 * stap-probe.c (get_stap_base_address): Likewise.
6028 * symfile.c (reread_symbols): Likewise.
6029
563c591b
TT
60302020-05-19 Tom Tromey <tromey@adacore.com>
6031
6032 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6033
f408d82c
SM
60342020-05-19 Simon Marchi <simon.marchi@efficios.com>
6035
6036 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6037
98c59b52
PA
60382020-05-19 Pedro Alves <palves@redhat.com>
6039
6040 * NEWS (set exec-file-mismatch): Adjust entry.
6041 * exec.c: Include "build-id.h".
6042 (validate_exec_file): Try to match build IDs instead of filenames.
6043 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6044 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6045 and pass down 'warn_if_slow'.
6046 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6047 gdb_bfd_open_closure to pass it down.
6048 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6049
4111f652
PA
60502020-05-19 Pedro Alves <palves@redhat.com>
6051
6052 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6053 * target.c (target_fileio_open_1): Rename to target_fileio_open
6054 and make extern. Use bool.
6055 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6056 (target_fileio_read_alloc_1): Adjust.
6057 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6058 (target_fileio_open_warn_if_slow): Delete declaration.
6059
ad80db5b
PA
60602020-05-19 Pedro Alves <palves@redhat.com>
6061
6062 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6063 Adjust all callers.
6064
1d6ce4d3
YS
60652020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6066
6067 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6068 whether disp is negative.
6069
9005fbbb
SM
60702020-05-19 Simon Marchi <simon.marchi@efficios.com>
6071
6072 * symfile.h (struct symfile_segment_data)
6073 <~symfile_segment_data>: Remove.
6074 <segment_info>: Change to std::vector.
6075 * symfile.c (default_symfile_segments): Update.
6076 * elfread.c (elf_symfile_segments): Update.
6077
68b888ff
SM
60782020-05-19 Simon Marchi <simon.marchi@efficios.com>
6079
6080 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6081 <segments>: New.
6082 <segment_bases, segment_sizes>: Remove.
6083 * symfile.c (default_symfile_segments): Update.
6084 * elfread.c (elf_symfile_segments): Update.
6085 * remote.c (remote_target::get_offsets): Update.
6086 * solib-target.c (solib_target_relocate_section_addresses):
6087 Update.
6088
62982abd
SM
60892020-05-19 Simon Marchi <simon.marchi@efficios.com>
6090
6091 * symfile.h (struct symfile_segment_data): Initialize fields.
6092 <~symfile_segment_data>: Add.
6093 (symfile_segment_data_up): New.
6094 (struct sym_fns) <sym_segments>: Return a
6095 symfile_segment_data_up.
6096 (default_symfile_segments): Return a symfile_segment_data_up.
6097 (free_symfile_segment_data): Remove.
6098 (get_symfile_segment_data): Return a symfile_segment_data_up.
6099 * symfile.c (default_symfile_segments): Likewise.
6100 (get_symfile_segment_data): Likewise.
6101 (free_symfile_segment_data): Remove.
6102 (symfile_find_segment_sections): Update.
6103 * elfread.c (elf_symfile_segments): Return a
6104 symfile_segment_data_up.
6105 * remote.c (remote_target::get_offsets): Update.
6106 * solib-target.c (solib_target_relocate_section_addresses):
6107 Update.
6108 * symfile-debug.c (debug_sym_segments): Return a
6109 symfile_segment_data_up.
6110
7f204339
RO
61112020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6112
e52a0f1b
RO
6113 PR build/25981
6114 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6115 Hardcode register numbers.
6116
7f204339
RO
6117 PR build/25981
6118 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6119 procfs_find_LDT_entry): Remove.
6120 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6121 procfs_find_LDT_entry): Remove.
6122 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6123 Remove.
6124
7f32a4d5
PA
61252020-05-17 Pedro Alves <palves@redhat.com>
6126 Andrew Burgess <andrew.burgess@embecosm.com>
6127 Keno Fischer <keno@juliacomputing.com>
6128
6129 PR gdb/25741
6130 * breakpoint.c (build_target_condition_list): Update comments.
6131 (build_target_command_list): Update comments and skip matching
6132 locations.
6133 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6134 a separate function. Simplify "set breakpoint auto-hw off"
6135 handling.
6136 (insert_breakpoints): Update comment.
6137 (tracepoint_locations_match): New parameter. For breakpoints,
6138 compare location types too, if the caller wants to.
6139 (handle_automatic_hardware_breakpoints): New functions.
6140 (bp_location_is_less_than): Also sort by location type and
6141 hardware breakpoint length.
6142 (update_global_location_list): Handle "set breakpoint auto-hw on"
6143 here.
6144 (update_breakpoint_locations): Ask breakpoint_locations_match to
6145 ignore location types.
6146
7d93a1e0
SM
61472020-05-16 Simon Marchi <simon.marchi@efficios.com>
6148
6149 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6150 type::name instead.
6151
d0e39ea2
SM
61522020-05-16 Simon Marchi <simon.marchi@efficios.com>
6153
6154 * gdbtypes.h (struct type) <name, set_name>: New methods.
6155 (TYPE_CODE): Use type::name. Change all call sites used to set
6156 the name to use type::set_name instead.
6157
2dab0c7b
TT
61582020-05-16 Tom Tromey <tom@tromey.com>
6159
6160 * top.c (quit_force): Update.
6161 * infrun.c (handle_no_resumed): Update.
6162 * top.h (all_uis): New function.
6163 (ALL_UIS): Remove.
6164
59f7bd8d
SM
61652020-05-16 Simon Marchi <simon.marchi@efficios.com>
6166
6167 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6168
9bf058f0
PA
61692020-05-16 Pedro Alves <palves@redhat.com>
6170
6171 * ia64-linux-nat.c
6172 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6173 Declare method.
6174 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6175
8f86ae1a
SM
61762020-05-15 Simon Marchi <simon.marchi@efficios.com>
6177
6178 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6179 (sparc64_adi_info): Likewise.
6180
d6bc0792
TT
61812020-05-15 Tom Tromey <tom@tromey.com>
6182
6183 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6184 block_objfile.
6185 (lookup_objfile_from_block): Remove.
6186 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6187 (lookup_global_symbol): Use block_objfile.
6188 * symtab.h (lookup_objfile_from_block): Don't declare.
6189 * printcmd.c (clear_dangling_display_expressions): Use
6190 block_objfile.
6191 * parse.c (operator_check_standard): Use block_objfile.
6192
8c14c3a3
TT
61932020-05-15 Tom Tromey <tom@tromey.com>
6194
6195 * language.c (language_alloc_type_symbol): Set
6196 SYMBOL_SECTION.
6197 * symtab.c (initialize_objfile_symbol): Remove.
6198 (allocate_symbol): Remove.
6199 (allocate_template_symbol): Remove.
6200 * dwarf2/read.c (fixup_go_packaging): Use "new".
6201 (new_symbol): Use "new".
6202 (read_variable): Don't call initialize_objfile_symbol. Use
6203 "new".
6204 (read_func_scope): Use "new".
6205 * xcoffread.c (process_xcoff_symbol): Don't call
6206 initialize_objfile_symbol.
6207 (SYMBOL_DUP): Remove.
6208 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6209 "new".
6210 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6211 (allocate_template_symbol): Don't declare.
6212 (struct symbol): Add copy constructor. Change defaults.
6213 * jit.c (finalize_symtab): Use "new".
6214 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6215 Use "new".
6216 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6217 (common_block_end): Use "new".
6218 * mdebugread.c (parse_symbol): Use "new".
6219 (new_symbol): Likewise.
6220
5b4a1a8d
PW
62212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6222
6223 * NEWS: Mention changes to help and apropos.
6224
57b4f16e
PW
62252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6226
6227 * command.h (enum command_class): Improve comments, document
6228 that class_alias is for user-defined aliases, give the class
6229 name for each class, remove unused class_xdb.
6230 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6231 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6232 by a precise class.
6233 * infcmd.c (_initialize_infcmd): Likewise.
6234 * reverse.c (_initialize_reverse): Likewise.
6235 * stack.c (_initialize_stack): Likewise.
6236 * symfile.c (_initialize_symfile): Likewise.
6237 * tracepoint.c (_initialize_tracepoint): Likewise.
6238
7c05caf7
PW
62392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6240
6241 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6242 when their aliased command is traversed.
6243 (help_cmd): Add fput_command_names_styled call to
6244 output command name and aliases when command has an alias.
6245
3b3aaacb
PW
62462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6247
6248 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6249 * cli/cli-decode.c (help_cmd_list): Declare as static,
6250 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6251 a command together with the command.
6252 (fput_command_name_styled, fput_command_names_styled): New functions.
6253 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6254 fput_command_name_styled.
6255 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6256 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6257
7aa1b46f
PW
62582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6259
6260 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6261 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6262 * command.h (cmd_show_list): Likewise.
6263 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6264 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6265
89bcba74
PW
62662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6267
6268 * unittests/command-def-selftests.c (traverse_command_structure):
6269 Verify all commands of a list have the same prefix command and
6270 that only the top cmdlist commands have a null prefix.
6271
3f4d92eb
PW
62722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6273
6274 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6275 as prefix, not one of its aliases.
6276 (set_cmd_prefix): Remove.
6277 (do_add_cmd): Centralize the setting of the prefix of a command, when
6278 command is defined after its full chain of prefix commands.
6279 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6280 (add_setshow_cmd_full): Likewise.
6281 (update_prefix_field_of_prefixed_commands): New function.
6282 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6283 update_prefix_field_of_prefixed_commands.
6284 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6285 addresses of remote_set_cmdlist and remote_show_cmdlist given
6286 as argument, not the address of an argument.
6287 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6288 * gdb/remote.c (_initialize_remote): Likewise.
6289
0605465f
PW
62902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6291
6292 * cli/cli-cmds.c (alias_command): Check for an existing alias
6293 using lookup_cmd_composition, as valid_command_p is too strict
6294 and forbids aliases that are the prefix of an existing alias
6295 or command.
6296 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6297 command is properly recognised as a valid command.
6298
58e6ac70
PW
62992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6300
6301 * unittests/help-doc-selftests.c: Rename to
6302 unittests/command-def-selftests.c
6303 * unittests/command-def-selftests.c (help_doc_tests): Update some
6304 comments.
6305 (command_structure_tests, traverse_command_structure): New namespace
6306 and function.
6307 (command_structure_invariants_tests): New function.
6308 (_initialize_command_def_selftests) Renamed from
6309 _initialize_help_doc_selftests, register command_structure_invariants
6310 selftest.
6311
a7b9ceb8
PW
63122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6313
6314 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6315 an alias of 'show'.
6316
b2188a06
JB
63172020-05-15 Joel Brobecker <brobecker@adacore.com>
6318
6319 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6320 ada_is_fixed_point_type. Update all callers.
6321 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6322 all callers.
6323 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6324 Update all callers.
6325 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6326 print_fixed_point_type. Update all callers.
6327 * ada-valprint.c (ada_value_print_num): Replace call to
6328 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6329
a51951c2
KB
63302020-05-14 Kevin Buettner <kevinb@redhat.com>
6331
6332 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6333 processors.
6334 (cpu_supports_bts): Add CV_AMD case.
6335
29d6859f
LM
63362020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6337 Simon Marchi <simon.marchi@efficios.com>
6338
6339 * infrun.c (stop_all_threads): Collect multiple wait events at
6340 each pass.
6341
78134374
SM
63422020-05-14 Simon Marchi <simon.marchi@efficios.com>
6343
6344 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6345 type::code instead.
6346
67607e24
SM
63472020-05-14 Simon Marchi <simon.marchi@efficios.com>
6348
6349 * gdbtypes.h (struct type) <code, set_code>: New methods.
6350 (TYPE_CODE): Use type::code. Change all call sites used to set
6351 the code to use type::set_code instead.
6352
a05575d3
TBA
63532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6354 Tom de Vries <tdevries@suse.de>
6355 Pedro Alves <palves@redhat.com>
6356
6357 PR threads/25478
6358 * infrun.c (stop_all_threads): Do NOT ignore
6359 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6360 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6361 received.
6362 (handle_no_resumed): Remove code handling a live inferior with no
6363 threads.
6364 * remote.c (has_single_non_exited_thread): New.
6365 (remote_target::update_thread_list): Do not delete a thread if is
6366 the last thread of the process.
6367 * thread.c (thread_select): Call delete_exited_threads instead of
6368 prune_threads.
6369
6ad82919
TBA
63702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6371
6372 * infrun.c (stop_all_threads): Enable/disable thread events of all
6373 targets. Move a debug message denoting the end of the function
6374 into the SCOPED_EXIT block.
6375
d890404b
TBA
63762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6377
6378 * process-stratum-target.h: Include <set>.
6379 (all_non_exited_process_targets, switch_to_target_no_thread): New
6380 function declarations.
6381 * process-stratum-target.c (all_non_exited_process_targets)
6382 (switch_to_target_no_thread): New function implementations.
6383
293b3ebc
TBA
63842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6385
6386 * infrun.c (handle_inferior_event): Extract out a piece of code
6387 into...
6388 (mark_non_executing_threads): ...this new function.
6389
7ca9b62a
TBA
63902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6391
6392 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6393 use.
6394
fc75c28b
TBA
63952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6396
6397 * regcache.c (regcache_read_pc_protected): New function
6398 implementation that returns 0 if the PC cannot read via
6399 'regcache_read_pc'.
6400 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6401 instead of 'regcache_read_pc'.
6402 (keep_going_pass_signal): Ditto.
6403
a89febbd
TT
64042020-05-13 Tom Tromey <tromey@adacore.com>
6405
6406 * ada-lang.c (align_value): Remove.
6407 (ada_template_to_fixed_record_type_1): Use align_up.
6408
f7e23710
TBA
64092020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6410
6411 * async-event.c: Update the copyright year.
6412 * async-event.h: Update the copyright year.
6413
02ff80c2
SM
64142020-05-12 Simon Marchi <simon.marchi@efficios.com>
6415
6416 * objfiles.h (is_addr_in_objfile,
6417 shared_objfile_contains_address_p): Return bool.
6418 * objfile.c (is_addr_in_objfile,
6419 shared_objfile_contains_address_p): Return bool.
6420
4fd6c7e8
TT
64212020-05-11 Tom Tromey <tromey@adacore.com>
6422
6423 * cli/cli-cmds.c (info_command): Restore.
6424 (_initialize_cli_cmds): Use add_prefix_command for "info".
6425 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6426
5eb68a39
TT
64272020-05-11 Tom Tromey <tromey@adacore.com>
6428
6429 * ada-lang.c (ada_value_primitive_field): Now public.
6430 * ada-lang.h (ada_value_primitive_field): Declare.
6431 * ada-valprint.c (print_field_values): Use
6432 ada_value_primitive_field for wrapper fields.
6433
7666722f
TV
64342020-05-11 Tom de Vries <tdevries@suse.de>
6435
6436 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6437 MODULE_DOMAIN.
6438
3ee6bb11
TV
64392020-05-11 Tom de Vries <tdevries@suse.de>
6440
6441 PR symtab/25941
6442 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6443 with length 0, if not gdb-produced.
6444 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6445
43434996
TV
64462020-05-09 Tom de Vries <tdevries@suse.de>
6447
6448 PR gdb/25955
6449 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6450 calculation.
6451
2f78cffc
TT
64522020-05-09 Tom Tromey <tom@tromey.com>
6453
6454 * top.c (server_command): Now bool.
6455 * top.h (server_command): Now bool.
6456
4f7bc5ed
TT
64572020-05-08 Tom Tromey <tromey@adacore.com>
6458
6459 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6460 already being processed.
6461
8be4b118
TT
64622020-05-08 Tom Tromey <tom@tromey.com>
6463
6464 * printcmd.c (struct display) <next>: Remove.
6465 <display>: New constructor.
6466 <exp_string>: Now a std::string.
6467 <enabled_p>: Now a bool.
6468 (display_number): Move definition earlier.
6469 (displays): Rename from display_chain. Now a std::vector.
6470 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6471 (display_command): Update.
6472 (do_one_display, disable_display)
6473 (enable_disable_display_command, do_enable_disable_display):
6474 Update.
6475 (free_display): Remove.
6476 (clear_displays): Rewrite.
6477 (delete_display): Update.
6478 (map_display_numbers): Use function_view. Remove "data"
6479 parameter. Update.
6480 (do_delete_display): Remove.
6481 (undisplay_command): Update.
6482 (do_one_display, do_displays, disable_display)
6483 (info_display_command): Update.
6484 (do_enable_disable_display): Remove.
6485 (enable_disable_display_command)
6486 (clear_dangling_display_expressions): Update.
6487
94c93c35
TT
64882020-05-08 Tom Tromey <tom@tromey.com>
6489
6490 * symtab.c (set_symbol_cache_size)
6491 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6492 (maintenance_print_symbol_cache_statistics): Update.
6493 * symmisc.c (print_symbol_bcache_statistics)
6494 (print_objfile_statistics, maintenance_print_objfiles)
6495 (maintenance_info_symtabs, maintenance_check_symtabs)
6496 (maintenance_expand_symtabs, maintenance_info_line_tables):
6497 Update.
6498 * symfile-debug.c (set_debug_symfile): Update.
6499 * source.c (forget_cached_source_info): Update.
6500 * python/python.c (gdbpy_progspaces): Update.
6501 * psymtab.c (maintenance_info_psymtabs): Update.
6502 * probe.c (parse_probes): Update.
6503 * linespec.c (iterate_over_all_matching_symtabs)
6504 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6505 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6506 * exec.c (exec_target::close): Update.
6507 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6508 * breakpoint.c (print_one_breakpoint_location)
6509 (create_longjmp_master_breakpoint)
6510 (create_std_terminate_master_breakpoint): Update.
6511 * progspace.c (program_spaces): Now a std::vector.
6512 (maybe_new_address_space): Update.
6513 (add_program_space): Remove.
6514 (program_space::program_space): Update.
6515 (remove_program_space): Update.
6516 (number_of_program_spaces): Remove.
6517 (print_program_space, update_address_spaces): Update.
6518 * progspace.h (program_spaces): Change type.
6519 (ALL_PSPACES): Remove.
6520 (number_of_program_spaces): Don't declare.
6521 (struct program_space) <next>: Remove.
6522
a1fd1ac9
TT
65232020-05-08 Tom Tromey <tom@tromey.com>
6524
6525 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6526 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6527 (enable_break): Update.
6528 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6529 (frv_fdpic_find_canonical_descriptor): Update.
6530 (frv_fetch_objfile_link_map): Update.
6531 * progspace.c (program_space::free_all_objfiles): Update.
6532 (program_space::solibs): New method.
6533 * progspace.h (struct program_space) <solibs>: New method.
6534 * solist.h (master_so_list): Don't declare.
6535 (ALL_SO_LIBS): Remove.
6536 * solib.h (so_list_head): Remove.
6537 (update_solib_list): Update comment.
6538 * solib.c (master_so_list): Remove.
6539 (solib_used, update_solib_list, solib_add)
6540 (info_sharedlibrary_command, clear_solib)
6541 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6542
38eae084
TT
65432020-05-08 Tom Tromey <tom@tromey.com>
6544
6545 * extension.c (extension_languages): Now a std::array.
6546 (ALL_EXTENSION_LANGUAGES): Remove.
6547 (get_ext_lang_defn, get_ext_lang_of_file)
6548 (eval_ext_lang_from_control_command): Update.
6549 (finish_ext_lang_initialization)
6550 (auto_load_ext_lang_scripts_for_objfile)
6551 (ext_lang_type_printers::ext_lang_type_printers)
6552 (apply_ext_lang_type_printers)
6553 (ext_lang_type_printers::~ext_lang_type_printers)
6554 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6555 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6556 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6557 (get_matching_xmethod_workers, ext_lang_colorize)
6558 (ext_lang_before_prompt): Update.
6559 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6560
596dc4ad
TT
65612020-05-08 Tom Tromey <tom@tromey.com>
6562
6563 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6564 overload.
6565 <swap_string, m_string>: Remove.
6566 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6567 Update.
6568 * stabsread.c (define_symbol, read_type): Update.
6569 * linespec.c (find_linespec_symbols): Update.
6570 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6571 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6572 * dbxread.c (read_dbx_symtab): Update.
6573 * cp-support.h (cp_canonicalize_string_full)
6574 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6575 Return unique_xmalloc_ptr.
6576 * cp-support.c (inspect_type): Update.
6577 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6578 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6579 Likewise.
6580 * c-typeprint.c (print_name_maybe_canonical): Update.
6581 * break-catch-throw.c (check_status_exception_catchpoint):
6582 Update.
6583
bf4cb9be
TV
65842020-05-08 Tom de Vries <tdevries@suse.de>
6585
6586 * infrun.c (follow_fork): Copy current_line and current_symtab to
6587 child thread.
6588
a1b68f28
SM
65892020-05-07 Simon Marchi <simon.marchi@efficios.com>
6590
6591 * async-event.c (struct async_signal_handler, struct
6592 async_event_handler): Reformat, remove typedef.
6593
98d48915
SM
65942020-05-07 Simon Marchi <simon.marchi@efficios.com>
6595
6596 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6597 access thistype->main_type->dyn_prop_list directly.
6598
7aa91313
SM
65992020-05-07 Simon Marchi <simon.marchi@efficios.com>
6600
6601 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6602 (remove_dyn_prop): Remove. Update all users to use
6603 type::remove_dyn_prop.
6604 * gdbtypes.c (remove_dyn_prop): Rename to...
6605 (type::remove_dyn_prop): ... this.
6606
5c54719c
SM
66072020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6608
6609 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6610 (add_dyn_prop): Remove. Update all users to use
6611 type::add_dyn_prop.
6612 * gdbtypes.c (add_dyn_prop): Rename to...
6613 (type::add_dyn_prop): ... this.
6614
24e99c6c
SM
66152020-05-07 Simon Marchi <simon.marchi@efficios.com>
6616
6617 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6618 (get_dyn_prop): Remove. Update all users to use
6619 type::dyn_prop.
6620 * gdbtypes.c (get_dyn_prop): Rename to...
6621 (type::dyn_prop): ... this.
6622
0d4bf016
SM
66232020-05-06 Simon Marchi <simon.marchi@efficios.com>
6624
6625 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6626
ac4a4f1c
SM
66272020-05-06 Simon Marchi <simon.marchi@efficios.com>
6628
6629 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6630 instruction, skip it if it's there.
6631
a3bbacc1
SM
66322020-05-05 Simon Marchi <simon.marchi@efficios.com>
6633
6634 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6635
c3236f84
SM
66362020-05-04 Simon Marchi <simon.marchi@efficios.com>
6637
6638 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6639 * gdbtypes.c (recursive_dump_type): Remove use of
6640 TYPE_INCOMPLETE.
6641
3b6acaee
TT
66422020-05-03 Tom Tromey <tom@tromey.com>
6643
6644 * breakpoint.c (catch_command, tcatch_command): Remove.
6645 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6646 add_show_prefix_cmd.
6647 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6648 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6649 Remove.
6650 (add_internal_problem_command): Use add_basic_prefix_cmd,
6651 add_show_prefix_cmd.
6652 * mips-tdep.c (set_mipsfpu_command): Remove.
6653 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6654 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6655 (_initialize_index_cache): Use add_basic_prefix_cmd.
6656 * memattr.c (dummy_cmd): Remove.
6657 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6658 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6659 (_initialize_tui_win): Use add_basic_prefix_cmd,
6660 add_show_prefix_cmd.
6661 * cli/cli-logging.c (set_logging_command): Remove.
6662 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6663 add_show_prefix_cmd.
6664 (show_logging_command): Remove.
6665 * target.c (target_command): Remove.
6666 (add_target): Use add_basic_prefix_cmd.
6667
a51119cd
HD
66682020-05-02 Hannes Domani <ssbssa@yahoo.de>
6669
6670 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6671
652fc23a 66722020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6673
652fc23a
PW
6674 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6675 info_command.
6676
117539e6
KR
66772020-04-30 Kamil Rytarowski <n54@gmx.com>
6678
6679 * nbsd-nat.c (nbsd_enable_proc_events)
6680 (nbsd_nat_target::post_startup_inferior): Add.
6681 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6682 (nbsd_nat_target::update_thread_list): Rewrite.
6683 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6684 "PTRACE_LWP_CREATE".
6685 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6686
102e38eb 66872020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6688
102e38eb
PW
6689 * stack.c (_initialize_stack): Remove duplicated creation
6690 of "frame" command and "f" alias.
6691
ee9d1e5f
HD
66922020-04-30 Hannes Domani <ssbssa@yahoo.de>
6693
6694 PR gdb/18706
6695 * gdbtypes.c (check_typedef): Calculate size of array of
6696 stubbed type.
6697
627c7fb8
HD
66982020-04-30 Hannes Domani <ssbssa@yahoo.de>
6699
6700 PR gdb/15559
6701 * i386-tdep.c (i386_push_dummy_call): Call
6702 i386_thiscall_push_dummy_call.
6703 (i386_thiscall_push_dummy_call): New function.
6704 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6705 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6706 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6707
ffc2844e
SM
67082020-04-29 Simon Marchi <simon.marchi@efficios.com>
6709
6710 * gdbarch.sh (do_read): Add shellcheck disable directive for
6711 warning SC2162.
6712
1207375d
SM
67132020-04-29 Simon Marchi <simon.marchi@efficios.com>
6714
6715 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6716 "referenced but not assigned" warning.
6717
9fdb2916
SM
67182020-04-29 Simon Marchi <simon.marchi@efficios.com>
6719
6720 * gdbarch.sh: Remove code that sets fallbackdefault.
6721
759cea5e
SM
67222020-04-29 Simon Marchi <simon.marchi@efficios.com>
6723
6724 * gdbarch.sh: Use shell operators && and || instead of
6725 -a and -o.
6726
cb02ab24
SM
67272020-04-29 Simon Marchi <simon.marchi@efficios.com>
6728
6729 * gdbarch.sh: Use $(...) instead of `...`.
6730
a6fc5ffc
SM
67312020-04-29 Simon Marchi <simon.marchi@efficios.com>
6732
6733 * gdbarch.sh: Use double quotes around variables.
6734
8d113d13
SM
67352020-04-29 Simon Marchi <simon.marchi@efficios.com>
6736
6737 * gdbarch.sh: Use %s with printf, instead of variables in the
6738 format string.
6739
ed6acedd
TT
67402020-04-29 Tom Tromey <tromey@adacore.com>
6741
6742 PR ada/25875:
6743 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6744 type fields here.
6745 (read_enumeration_type): Call
6746 update_enumeration_type_from_children later. Update comments.
6747 (process_enumeration_scope): Don't create type fields.
6748
b68b1b58
KR
67492020-04-29 Kamil Rytarowski <n54@gmx.com>
6750
6751 * nbsd-tdep.c: Include "xml-syscall.h".
6752 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6753
f94b2e03
KR
67542020-04-29 Kamil Rytarowski <n54@gmx.com>
6755
6756 * nbsd-nat.c: Include "sys/wait.h".
6757 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6758 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6759 (nbsd_nat_target::remove_exec_catchpoint)
6760 (nbsd_nat_target::set_syscall_catchpoint): Add.
6761 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6762 (nbsd_nat_target::insert_exec_catchpoint)
6763 (nbsd_nat_target::remove_exec_catchpoint)
6764 (nbsd_nat_target::set_syscall_catchpoint): Add.
6765 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6766 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6767 `nbsd_get_syscall_number'.
6768
fc49bc72
TT
67692020-04-29 Tom Tromey <tom@tromey.com>
6770
6771 * stack.c (print_block_frame_labels): Remove.
6772
d642b692
HD
67732020-04-29 Hannes Domani <ssbssa@yahoo.de>
6774
6775 PR gdb/17320
6776 * ada-valprint.c (val_print_packed_array_elements): Move array
6777 end bracket to new line.
6778 (ada_val_print_string): Remove extra spaces before first array
6779 element.
6780 * c-valprint.c (c_value_print_array): Likewise.
6781 * m2-valprint.c (m2_print_array_contents): Likewise.
6782 (m2_value_print_inner): Likewise.
6783 * p-valprint.c (pascal_value_print_inner): Likewise.
6784 * valprint.c (generic_val_print_array): Likewise.
6785 (value_print_array_elements): Move first array element and array
6786 end bracket to new line.
6787
ea90f227
TV
67882020-04-29 Tom de Vries <tdevries@suse.de>
6789
6790 PR symtab/25889
6791 * linespec.c (find_method): Fix ix calculation.
6792
4498ef4f
KR
67932020-04-28 Kamil Rytarowski <n54@gmx.com>
6794
6795 * syscalls/update-netbsd.sh: New file.
6796 * syscalls/netbsd.xml: Regenerate.
6797 * data-directory/Makefile.in: Register `netbsd.xml' in
6798 `SYSCALLS_FILES'.
6799
a55e30b5
SM
68002020-04-28 Simon Marchi <simon.marchi@efficios.com>
6801
6802 * syscalls/update-freebsd.sh: Add double quotes.
6803
2b2fbab8
TT
68042020-04-28 Tom Tromey <tom@tromey.com>
6805
6806 * NEWS: Update.
6807 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6808 (cmdpy_init): Allow class_tui.
6809
a65189c9
TV
68102020-04-28 Mark Williams <mark@myosotissp.com>
6811
6812 PR gdb/24480
6813 * dwarf2read.c: Add missing assingments to list_in_scope when
6814 start_symtab was already called.
6815
1b95cdb7
SM
68162020-04-28 Simon Marchi <simon.marchi@efficios.com>
6817
6818 PR gdb/25881
6819 * dwarf2/read.c (offset_map_type): Use
6820 gdb:hash_enum<sect_offset> as hash function.
6821
15cd93d0
TV
68222020-04-28 Tom de Vries <tdevries@suse.de>
6823
6824 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6825 with DW_AT_signature.
6826
1eb39914
SM
68272020-04-27 Simon Marchi <simon.marchi@efficios.com>
6828
6829 * configure.ac: Remove check for fs_base/gs_base in
6830 user_regs_struct.
6831 * configure: Re-generate.
6832 * config.in: Re-generate.
6833 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6834 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6835 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6836
991a3e2e
LM
68372020-04-27 Luis Machado <luis.machado@linaro.org>
6838
6839 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6840 problematic inline frame unwinding situation.
6841 * frame.c (frame_id_computed_p): New function.
6842 * frame.h (frame_id_computed_p): New prototype.
6843
361ba0e8
TT
68442020-04-26 Tom Tromey <tom@tromey.com>
6845
6846 * command.h (enum command_class) <class_pseudo>: Remove.
6847
bc3609fd
PW
68482020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6849
6850 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6851 and whitespace.
6852
b9771db7
KR
68532020-04-25 Kamil Rytarowski <n54@gmx.com>
6854
ec16513e
SM
6855 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6856 `PT_GET_PROCESS_STATE' block.
b9771db7 6857
7151c1af
TT
68582020-04-24 Tom Tromey <tom@tromey.com>
6859
6860 * symtab.h (symbol_get_demangled_name): Don't declare.
6861 * symtab.c (symbol_get_demangled_name): Remove.
6862 (general_symbol_info::natural_name)
6863 (general_symbol_info::demangled_name): Update.
6864
906bb4c5
TT
68652020-04-24 Tom Tromey <tom@tromey.com>
6866
6867 PR rust/25025:
6868 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6869
bcfe6157
TT
68702020-04-24 Tom Tromey <tom@tromey.com>
6871
6872 PR symtab/12707:
6873 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6874 exists.
6875 (new_symbol): Likewise.
6876 * compile/compile-object-load.c (get_out_value_type): Use
6877 symbol_matches_search_name.
6878
f049a313
TT
68792020-04-24 Tom Tromey <tom@tromey.com>
6880
6881 * dwarf2/read.c (add_partial_symbol): Do not call
6882 compute_and_set_names.
6883
76e288d1
TT
68842020-04-24 Tom Tromey <tom@tromey.com>
6885
6886 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6887 overload.
6888
2467f4f6
TT
68892020-04-24 Tom Tromey <tom@tromey.com>
6890
6891 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6892 (add_psymbol_to_list): New overload. Make old overload call new
6893 one.
6894 * psympriv.h (add_psymbol_to_list): New overload.
6895
e61108c9
TT
68962020-04-24 Tom Tromey <tom@tromey.com>
6897
6898 * dwarf2/read.c (partial_die_info::read) <case
6899 DW_AT_linkage_name>: Use value_as_string.
6900 (dwarf2_string_attr): Use value_as_string.
6901 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6902 method.
6903 * dwarf2/attribute.c (attribute::value_as_string): New method.
6904
8c87a452
TT
69052020-04-24 Tom Tromey <tom@tromey.com>
6906
6907 * symtab.c (general_symbol_info::natural_name)
6908 (general_symbol_info::demangled_name): Check for language_rust.
6909
787de330
TT
69102020-04-24 Tom Tromey <tom@tromey.com>
6911
6912 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6913 (dwarf2_physname): ... from here.
6914 (partial_die_info::read): Add Rust "{" hack.
6915
ff985671
TT
69162020-04-24 Tom Tromey <tom@tromey.com>
6917
6918 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6919 method.
6920 (symbol_set_demangled_name): Don't declare.
6921 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6922 symbol_set_demangled_name.
6923 (general_symbol_info::set_language)
6924 (general_symbol_info::compute_and_set_names): Update.
6925 * minsyms.c (minimal_symbol_reader::install): Update.
6926 * dwarf2/read.c (new_symbol): Update.
6927
1acda803
TT
69282020-04-24 Tom Tromey <tromey@adacore.com>
6929
6930 PR python/23662:
6931 * python/py-type.c (convert_field): Handle
6932 FIELD_LOC_KIND_DWARF_BLOCK.
6933 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6934 (typy_get_dynamic): Nw function.
6935 (type_object_getset): Add "dynamic".
6936 * NEWS: Add entry.
6937
d656f129
TT
69382020-04-24 Tom Tromey <tromey@adacore.com>
6939
6940 * ada-typeprint.c (print_choices, print_variant_part)
6941 (print_record_field_types_dynamic): New functions.
6942 (print_record_field_types): Use print_record_field_types_dynamic.
6943
7d79de9a
TT
69442020-04-24 Tom Tromey <tromey@adacore.com>
6945
6946 * dwarf2/read.c (handle_data_member_location): New overload.
6947 (dwarf2_add_field): Use it.
6948 (decode_locdesc): Add "computed" parameter. Update comment.
6949 * gdbtypes.c (is_dynamic_type_internal): Also look for
6950 FIELD_LOC_KIND_DWARF_BLOCK.
6951 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6952 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6953 virtual base classes.
6954 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6955 FIELD_LOC_KIND_DWARF_BLOCK.
6956
f8e89861
TT
69572020-04-24 Tom Tromey <tromey@adacore.com>
6958
6959 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6960 * gdbtypes.c (is_dynamic_type_internal): Check
6961 TYPE_HAS_DYNAMIC_LENGTH.
6962 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6963 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6964 New macros.
6965 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6966 constant.
6967
9c6a1327
TT
69682020-04-24 Tom Tromey <tromey@adacore.com>
6969
6970 * dwarf2/read.c (struct variant_field): Rewrite.
6971 (struct variant_part_builder): New.
6972 (struct nextfield): Remove "variant" field. Add "offset".
6973 (struct field_info): Add "current_variant_part" and
6974 "variant_parts".
6975 (alloc_discriminant_info): Remove.
6976 (alloc_rust_variant): New function.
6977 (quirk_rust_enum): Update.
6978 (dwarf2_add_field): Set "offset" member. Don't handle
6979 DW_TAG_variant_part.
6980 (offset_map_type): New typedef.
6981 (convert_variant_range, create_one_variant)
6982 (create_one_variant_part, create_variant_parts)
6983 (add_variant_property): New functions.
6984 (dwarf2_attach_fields_to_type): Call add_variant_property.
6985 (read_structure_type): Don't handle DW_TAG_variant_part.
6986 (handle_variant_part, handle_variant): New functions.
6987 (handle_struct_member_die): Use them.
6988 (process_structure_scope): Don't handle variant parts.
6989 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6990 (struct discriminant_info): Remove.
6991 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6992 (struct main_type) <flag_discriminated_union>: Remove.
6993 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6994 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6995 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6996 Update.
6997 * valops.c (value_union_variant): Remove.
6998 * value.h (value_union_variant): Don't declare.
6999
b249d2c2
TT
70002020-04-24 Tom Tromey <tromey@adacore.com>
7001
7002 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7003 (ada_value_primitive_packed_val): Update.
7004 * ada-valprint.c (ada_value_print_1): Update.
7005 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7006 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7007 just an address. Use evaluate_for_locexpr_baton.
7008 (dwarf2_evaluate_property): Update.
7009 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7010 array_view.
7011 * findvar.c (default_read_var_value): Update.
7012 * gdbtypes.c (compute_variant_fields_inner)
7013 (resolve_dynamic_type_internal): Update.
7014 (resolve_dynamic_type): Change type of valaddr parameter.
7015 * gdbtypes.h (resolve_dynamic_type): Update.
7016 * valarith.c (value_subscripted_rvalue): Update.
7017 * value.c (value_from_contents_and_address): Update.
7018
61122aa9
TT
70192020-04-24 Tom Tromey <tromey@adacore.com>
7020
7021 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7022 "push_initial_value" parameter.
7023 (dwarf2_evaluate_property): Likewise.
7024 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7025
ef83a141
TT
70262020-04-24 Tom Tromey <tromey@adacore.com>
7027
7028 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7029 (variant::matches, compute_variant_fields_recurse)
7030 (compute_variant_fields_inner, compute_variant_fields): New
7031 functions.
7032 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7033 Use resolved_type after type is made.
7034 (operator==): Add new cases.
7035 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7036 (struct discriminant_range, struct variant, struct variant_part):
7037 New.
7038 (union dynamic_prop_data) <variant_parts, original_type>: New
7039 members.
7040 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7041 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7042 constants.
7043 * value.c (unpack_bits_as_long): Now public.
7044 * value.h (unpack_bits_as_long): Declare.
7045
675127ec
TT
70462020-04-24 Tom Tromey <tromey@adacore.com>
7047
7048 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7049 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7050
9852ceef
HD
70512020-04-24 Hannes Domani <ssbssa@yahoo.de>
7052
7053 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7054
7632c6ce
KR
70552020-04-24 Kamil Rytarowski <n54@gmx.com>
7056
7057 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7058 (remove_fork_catchpoint, post_startup_inferior)
7059 (post_attach): Move...
7060 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7061 (remove_fork_catchpoint, post_startup_inferior)
7062 (post_attach): ...here.
7063 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7064 (remove_fork_catchpoint, post_startup_inferior)
7065 (post_attach): Move...
7066 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7067 (remove_fork_catchpoint, post_startup_inferior)
7068 (post_attach): ...here.
7069
7be2bb4f
TT
70702020-04-24 Tom Tromey <tromey@adacore.com>
7071
7072 * nat/windows-nat.h (struct windows_thread_info)
7073 <pc_adjusted>: New member.
7074 * windows-nat.c (windows_fetch_one_register): Check
7075 pc_adjusted.
7076 (windows_nat_target::get_windows_debug_event)
7077 (windows_nat_target::wait): Set pc_adjusted.
7078
f80cb3b4
TV
70792020-04-24 Tom de Vries <tdevries@suse.de>
7080
7081 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7082 Run gdb-add-index inside temp dir.
7083
29514b87
TT
70842020-04-23 Tom Tromey <tromey@adacore.com>
7085
7086 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7087 in loop.
7088
5939967b
LM
70892020-04-23 Luis Machado <luis.machado@linaro.org>
7090
7091 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7092 get_frame_register instead of gdbarch_unwind_pc.
7093
70bc38f5
TV
70942020-04-23 Tom de Vries <tdevries@suse.de>
7095
7096 * symtab.c (lookup_global_symbol): Prefer def over decl.
7097
de82891c
TV
70982020-04-23 Tom de Vries <tdevries@suse.de>
7099
7100 PR symtab/25807
7101 * block.c (best_symbol, better_symbol): Promote to external.
7102 * block.h (best_symbol, better_symbol): Declare.
7103 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7104 decl.
7105
ecc6c606
TT
71062020-04-23 Tom Tromey <tromey@adacore.com>
7107
7108 PR ada/25837:
7109 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7110 "const char *", not a "const std::string &".
7111 <name_and_matcher::operator==>: Update.
7112 * unittests/lookup_name_info-selftests.c: Change type of
7113 "result".
7114
740480b8
TT
71152020-04-23 Tom Tromey <tom@tromey.com>
7116
7117 * inferior.h (iterate_over_inferiors): Don't declare.
7118 * inferior.c (iterate_over_inferiors): Remove.
7119 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7120 Remove.
7121 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7122 use iterate_over_inferiors.
7123 (darwin_resume_inferior_it)
7124 (struct resume_inferior_threads_param)
7125 (darwin_resume_inferior_threads_it): Remove.
7126 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7127
ae3ab1f0
TV
71282020-04-23 Tom de Vries <tdevries@suse.de>
7129
7130 * blockframe.c (find_pc_partial_function): Use
7131 find_pc_sect_compunit_symtab rather than
7132 objfile->sf->qf->find_pc_sect_compunit_symtab.
7133
317d2668
TV
71342020-04-22 Tom de Vries <tdevries@suse.de>
7135
7136 PR symtab/25764
7137 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7138 in psymtabs.
7139
eea9e357
TV
71402020-04-22 Tom de Vries <tdevries@suse.de>
7141
7142 PR symtab/25801
7143 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7144 symtabs.
7145
3d5afab3
TV
71462020-04-22 Tom de Vries <tdevries@suse.de>
7147
7148 PR symtab/25700
7149 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7150 CU if already created.
7151
d43b7a2d
TBA
71522020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7153
7154 * infrun.c (displaced_step_fixup): Switch to the event_thread
7155 before calling displaced_step_restore, not after.
7156
d89edf9b
MM
71572020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7158
7159 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7160 its inferior is not recorded by us.
7161 (record_btrace_target_open): Replace call to
7162 all_non_exited_threads () with call to current_inferior
7163 ()->non_exited_threads ().
7164 (record_btrace_target::stop_recording): Likewise.
7165 (record_btrace_target::close): Likewise.
7166 (record_btrace_target::wait): Likewise.
7167 (record_btrace_target::record_stop_replaying): Likewise.
7168
5897fd49
MM
71692020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7170
7171 * btrace.c (btrace_enable): Throw an error on double enables and
7172 when enabling recording fails.
7173 (btrace_disable): Throw an error if the thread is not recorded.
7174
1a476b6d
MM
71752020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7176
7177 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7178 request if we do not have a thread_info.
7179
4778a5f8
TV
71802020-04-21 Tom de Vries <tdevries@suse.de>
7181
7182 PR gdb/25471
7183 * thread.c
7184 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7185 exception in get_frame_id.
7186
0fa7617d
TT
71872020-04-20 Tom Tromey <tromey@adacore.com>
7188
7189 * python/python.c (struct gdbpy_event): Mark move constructor as
7190 noexcept.
7191 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7192 constructor as noexcept.
7193 * completer.h (struct completion_result): Mark move constructor as
7194 noexcept.
7195 * completer.c (completion_result::completion_result): Use
7196 initialization style. Don't call reset_match_list.
7197
ad23bda0
MS
71982020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7199
7200 * MAINTAINERS (Write After Approval): Add myself.
7201
45e1f031
TT
72022020-04-18 Tom Tromey <tom@tromey.com>
7203
7204 * windows-tdep.c (init_w32_command_list)
7205 (w32_prefix_command_valid): Restore.
7206 (_initialize_windows_tdep): Call init_w32_command_list.
7207
08feed99
TT
72082020-04-18 Tom Tromey <tom@tromey.com>
7209
7210 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7211 * value.c (value_fn_field): Update.
7212 * valops.c (find_function_in_inferior)
7213 (value_allocate_space_in_inferior): Update.
7214 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7215 Update.
7216 * tui/tui-source.c (tui_source_window::set_contents): Update.
7217 * symtab.c (lookup_global_or_static_symbol)
7218 (find_function_start_sal_1, skip_prologue_sal)
7219 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7220 * symmisc.c (dump_msymbols, dump_symtab_1)
7221 (maintenance_print_one_line_table): Update.
7222 * symfile.c (init_entry_point_info, section_is_mapped)
7223 (list_overlays_command, simple_read_overlay_table)
7224 (simple_overlay_update_1): Update.
7225 * stap-probe.c (handle_stap_probe): Update.
7226 * stabsread.c (dbx_init_float_type, define_symbol)
7227 (read_one_struct_field, read_enum_type, read_range_type): Update.
7228 * source.c (info_line_command): Update.
7229 * python/python.c (gdbpy_source_objfile_script)
7230 (gdbpy_execute_objfile_script): Update.
7231 * python/py-type.c (save_objfile_types): Update.
7232 * python/py-objfile.c (py_free_objfile): Update.
7233 * python/py-inferior.c (python_new_objfile): Update.
7234 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7235 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7236 (maintenance_check_psymtabs): Update.
7237 * printcmd.c (info_address_command): Update.
7238 * objfiles.h (struct objfile) <arch>: New method, from
7239 get_objfile_arch.
7240 (get_objfile_arch): Don't declare.
7241 * objfiles.c (get_objfile_arch): Remove.
7242 (filter_overlapping_sections): Update.
7243 * minsyms.c (msymbol_is_function): Update.
7244 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7245 (output_nondebug_symbol): Update.
7246 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7247 (mdebug_expand_psymtab): Update.
7248 * machoread.c (macho_add_oso_symfile): Update.
7249 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7250 Update.
7251 * linux-fork.c (checkpoint_command): Update.
7252 * linespec.c (convert_linespec_to_sals): Update.
7253 * jit.c (finalize_symtab): Update.
7254 * infrun.c (insert_exception_resume_from_probe): Update.
7255 * ia64-tdep.c (ia64_find_unwind_table): Update.
7256 * hppa-tdep.c (internalize_unwinds): Update.
7257 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7258 Update.
7259 * gcore.c (call_target_sbrk): Update.
7260 * elfread.c (record_minimal_symbol, elf_symtab_read)
7261 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7262 (elf_gnu_ifunc_resolve_by_got): Update.
7263 * dwarf2/read.c (create_addrmap_from_index)
7264 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7265 (read_debug_names_from_section)
7266 (process_psymtab_comp_unit_reader, add_partial_symbol)
7267 (add_partial_subprogram, process_full_comp_unit)
7268 (read_file_scope, read_func_scope, read_lexical_block_scope)
7269 (read_call_site_scope, dwarf2_ranges_read)
7270 (dwarf2_record_block_ranges, dwarf2_add_field)
7271 (mark_common_block_symbol_computed, read_tag_pointer_type)
7272 (read_tag_string_type, dwarf2_init_float_type)
7273 (dwarf2_init_complex_target_type, read_base_type)
7274 (partial_die_info::read, partial_die_info::read)
7275 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7276 (dwarf2_fetch_die_loc_sect_off): Update.
7277 * dwarf2/loc.c (dwarf2_find_location_expression)
7278 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7279 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7280 (dwarf2_loc_desc_get_symbol_read_needs)
7281 (locexpr_describe_location_piece, locexpr_describe_location_1)
7282 (loclist_describe_location): Update.
7283 * dwarf2/index-write.c (write_debug_names): Update.
7284 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7285 * dtrace-probe.c (dtrace_process_dof): Update.
7286 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7287 (process_one_symbol): Update.
7288 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7289 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7290 (coff_read_enum_type): Update.
7291 * cli/cli-cmds.c (edit_command, list_command): Update.
7292 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7293 * breakpoint.c (create_overlay_event_breakpoint)
7294 (create_longjmp_master_breakpoint)
7295 (create_std_terminate_master_breakpoint)
7296 (create_exception_master_breakpoint, get_sal_arch): Update.
7297 * block.c (block_gdbarch): Update.
7298 * annotate.c (annotate_source_line): Update.
7299
0743fc83
TT
73002020-04-17 Tom Tromey <tromey@adacore.com>
7301
7302 * auto-load.c (show_auto_load_cmd): Remove.
7303 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7304 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7305 (maintenance_print_arc_command): Remove.
7306 * tui/tui-win.c (tui_command): Remove.
7307 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7308 * tui/tui-layout.c (tui_layout_command): Remove.
7309 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7310 * python/python.c (user_set_python, user_show_python): Remove.
7311 (_initialize_python): Use add_basic_prefix_cmd,
7312 add_show_prefix_cmd.
7313 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7314 (install_gdb_commands): Use add_basic_prefix_cmd,
7315 add_show_prefix_cmd.
7316 (info_guile_command): Remove.
7317 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7318 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7319 add_show_prefix_cmd.
7320 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7321 Remove do_set and do_show parameters.
7322 * cli/cli-style.c (set_style, show_style): Remove.
7323 (_initialize_cli_style): Use add_basic_prefix_cmd,
7324 add_show_prefix_cmd.
7325 (cli_style_option::add_setshow_commands): Remove do_set and
7326 do_show parameters.
7327 (cli_style_option::add_setshow_commands): Use
7328 add_basic_prefix_cmd, add_show_prefix_cmd.
7329 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7330 (set_style_name): Remove.
7331 * cli/cli-dump.c (dump_command, append_command): Remove.
7332 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7333 (tekhex_dump_command, binary_dump_command)
7334 (binary_append_command): Remove.
7335 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7336 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7337 (init_w32_command_list): Remove; move into ...
7338 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7339 * valprint.c (set_print, show_print, set_print_raw)
7340 (show_print_raw): Remove.
7341 (_initialize_valprint): Use add_basic_prefix_cmd,
7342 add_show_prefix_cmd.
7343 * typeprint.c (set_print_type, show_print_type): Remove.
7344 (_initialize_typeprint): Use add_basic_prefix_cmd,
7345 add_show_prefix_cmd.
7346 * record.c (set_record_command, show_record_command): Remove.
7347 (_initialize_record): Use add_basic_prefix_cmd,
7348 add_show_prefix_cmd.
7349 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7350 add_show_prefix_cmd.
7351 (info_command, show_command, set_debug, show_debug): Remove.
7352 * top.h (set_history, show_history): Don't declare.
7353 * top.c (set_history, show_history): Remove.
7354 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7355 (unset_tdesc_cmd): Remove.
7356 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7357 add_show_prefix_cmd.
7358 * symtab.c (info_module_command): Remove.
7359 (_initialize_symtab): Use add_basic_prefix_cmd.
7360 * symfile.c (overlay_command): Remove.
7361 (_initialize_symfile): Use add_basic_prefix_cmd.
7362 * sparc64-tdep.c (info_adi_command): Remove.
7363 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7364 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7365 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7366 add_show_prefix_cmd.
7367 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7368 (_initialize_serial): Use add_basic_prefix_cmd,
7369 add_show_prefix_cmd.
7370 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7371 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7372 add_show_prefix_cmd.
7373 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7374 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7375 add_show_prefix_cmd.
7376 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7377 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7378 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7379 add_show_prefix_cmd.
7380 * remote.c (remote_command, set_remote_cmd): Remove.
7381 (_initialize_remote): Use add_basic_prefix_cmd.
7382 * record-full.c (set_record_full_command)
7383 (show_record_full_command): Remove.
7384 (_initialize_record_full): Use add_basic_prefix_cmd,
7385 add_show_prefix_cmd.
7386 * record-btrace.c (cmd_set_record_btrace)
7387 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7388 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7389 (cmd_show_record_btrace_pt): Remove.
7390 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7391 add_show_prefix_cmd.
7392 * ravenscar-thread.c (set_ravenscar_command)
7393 (show_ravenscar_command): Remove.
7394 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7395 add_show_prefix_cmd.
7396 * mips-tdep.c (show_mips_command, set_mips_command)
7397 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7398 add_show_prefix_cmd.
7399 * maint.c (maintenance_command, maintenance_info_command)
7400 (maintenance_check_command, maintenance_print_command)
7401 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7402 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7403 add_show_prefix_cmd.
7404 (show_per_command_cmd): Remove.
7405 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7406 Remove.
7407 (maintenance_show_test_settings_cmd): Remove.
7408 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7409 add_show_prefix_cmd.
7410 * maint-test-options.c (maintenance_test_options_command):
7411 Remove.
7412 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7413 * macrocmd.c (macro_command): Remove
7414 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7415 * language.c (set_check, show_check): Remove.
7416 (_initialize_language): Use add_basic_prefix_cmd,
7417 add_show_prefix_cmd.
7418 * infcmd.c (unset_command): Remove.
7419 (_initialize_infcmd): Use add_basic_prefix_cmd.
7420 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7421 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7422 add_show_prefix_cmd.
7423 * go32-nat.c (go32_info_dos_command): Remove.
7424 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7425 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7426 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7427 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7428 (_initialize_frame): Use add_basic_prefix_cmd,
7429 add_show_prefix_cmd.
7430 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7431 (_initialize_dcache): Use add_basic_prefix_cmd,
7432 add_show_prefix_cmd.
7433 * cp-support.c (maint_cplus_command): Remove.
7434 (_initialize_cp_support): Use add_basic_prefix_cmd.
7435 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7436 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7437 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7438 add_basic_prefix_cmd, add_show_prefix_cmd.
7439 * breakpoint.c (save_command): Remove.
7440 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7441 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7442 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7443 add_show_prefix_cmd.
7444 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7445 (set_ada_command, show_ada_command): Remove.
7446 (_initialize_ada_language): Use add_basic_prefix_cmd,
7447 add_show_prefix_cmd.
7448 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7449
3557f442
KR
74502020-04-16 Kamil Rytarowski <n54@gmx.com>
7451
7452 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7453 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7454
16197208
SM
74552020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7456
7457 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7458 warning messages.
7459
00ac85d3
SM
74602020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7461
7462 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7463 import table is not at beginning of .idata section.
7464
381ce63f
PA
74652020-04-16 Pedro Alves <palves@redhat.com>
7466
7467 * inferior.c (delete_inferior): Use delete operator directly
7468 instead of delete_program_space.
7469 * progspace.c (add_program_space): New, factored out from
7470 program_space::program_space.
7471 (remove_program_space): New, factored out from
7472 delete_program_space.
7473 (program_space::program_space): Remove intro comment. Rewrite.
7474 (program_space::~program_space): Remove intro comment. Call
7475 remove_program_space.
7476 (delete_program_space): Delete.
7477 * progspace.h (program_space::program_space): Make explicit. Move
7478 intro comment here, adjusted.
7479 (program_space::~program_space): Move intro comment here,
7480 adjusted.
7481 (delete_program_space): Remove.
7482
a010605f
TT
74832020-04-16 Tom Tromey <tromey@adacore.com>
7484
7485 * windows-nat.c (windows_nat::handle_access_violation): New
7486 function.
7487 * nat/windows-nat.h (handle_access_violation): Declare.
7488 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7489 windows-nat.c. Call handle_access_violation.
7490
efba5c23
TV
74912020-04-16 Tom de Vries <tdevries@suse.de>
7492
7493 PR symtab/25791
7494 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7495 CUs without psymtab.
7496
97ed802d
KB
74972020-04-16 Kevin Buettner <kevinb@redhat.com>
7498
7499 * python/python.c (do_start_initialization): Don't call
7500 PyEval_InitThreads for Python 3.9 and beyond.
7501
c7d64809
KR
75022020-04-15 Kamil Rytarowski <n54@gmx.com>
7503
7504 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7505 thread functions.
7506 (obsd_nat_target::wait): Likewise.
7507
ce127a96
TT
75082020-04-15 Tom Tromey <tromey@adacore.com>
7509
7510 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7511 (DEBUG_EXCEPT): Use debug_printf.
7512
99f1bc6a
AB
75132020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7514
7515 * completer.c (class completion_tracker::completion_hash_entry)
7516 <hash_name>: New member function.
7517 (completion_tracker::discard_completions): New callback to hash a
7518 completion_hash_entry, pass this to htab_create_alloc.
7519
a0e9b532
JT
75202016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7521
7522 * windows-nat.c (windows_make_so): Warn rather than stopping with
7523 an error if realpath() fails.
7524
06ca5dd4
KR
75252020-04-14 Kamil Rytarowski <n54@gmx.com>
7526
7527 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7528 (nbsd_nat_target::info_proc): Add do_status.
7529
194d088f
TV
75302020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7531 Tom de Vries <tdevries@suse.de>
7532
7533 PR symtab/25718
7534 * psympriv.h (struct partial_symtab::read_symtab)
7535 (struct partial_symtab::expand_psymtab)
7536 (struct partial_symtab::read_dependencies): Update comments.
7537 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7538 read_symtab for includer.
7539 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7540 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7541 (struct dwarf2_include_psymtab::m_readin): Remove.
7542 (struct dwarf2_include_psymtab::includer): New member function.
7543 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7544
c1a66c06
TV
75452020-04-14 Tom de Vries <tdevries@suse.de>
7546
7547 PR symtab/25720
7548 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7549 with NULL symbol_matcher and lookup_name.
7550 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7551 and lookup_name.
7552 * dwarf2/read.c (dw2_expand_symtabs_matching)
7553 (dw2_debug_names_expand_symtabs_matching): Same.
7554 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7555 Make lookup_name a pointer. Update comment.
7556 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7557 lookup_name being a pointer.
7558 * symfile.c (expand_symtabs_matching): Same.
7559 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7560 * linespec.c (iterate_over_all_matching_symtabs): Same.
7561
400b5eca
TT
75622020-04-13 Tom Tromey <tom@tromey.com>
7563
7564 * run-on-main-thread.c: Update include.
7565 * unittests/main-thread-selftests.c: Update include.
7566 * tui/tui-win.c: Update include.
7567 * tui/tui-io.c: Update include.
7568 * tui/tui-interp.c: Update include.
7569 * tui/tui-hooks.c: Update include.
7570 * top.h: Update include.
7571 * top.c: Update include.
7572 * ser-base.c: Update include.
7573 * remote.c: Update include.
7574 * remote-notif.c: Update include.
7575 * remote-fileio.c: Update include.
7576 * record-full.c: Update include.
7577 * record-btrace.c: Update include.
7578 * python/python.c: Update include.
7579 * posix-hdep.c: Update include.
7580 * mingw-hdep.c: Update include.
7581 * mi/mi-main.c: Update include.
7582 * mi/mi-interp.c: Update include.
7583 * main.c: Update include.
7584 * linux-nat.c: Update include.
7585 * interps.c: Update include.
7586 * infrun.c: Update include.
7587 * inf-loop.c: Update include.
7588 * event-top.c: Update include.
7589 * event-loop.c: Move to ../gdbsupport/.
7590 * event-loop.h: Move to ../gdbsupport/.
7591 * async-event.h: Update include.
7592 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7593
93b54c8e
TT
75942020-04-13 Tom Tromey <tom@tromey.com>
7595
7596 * tui/tui-win.c: Include async-event.h.
7597 * remote.c: Include async-event.h.
7598 * remote-notif.c: Include async-event.h.
7599 * record-full.c: Include async-event.h.
7600 * record-btrace.c: Include async-event.h.
7601 * infrun.c: Include async-event.h.
7602 * event-top.c: Include async-event.h.
7603 * event-loop.h: Move some declarations to async-event.h.
7604 * event-loop.c: Don't include ser-event.h or top.h. Move some
7605 code to async-event.c.
7606 * async-event.h: New file.
7607 * async-event.c: New file.
7608 * Makefile.in (COMMON_SFILES): Add async-event.c.
7609 (HFILES_NO_SRCDIR): Add async-event.h.
7610
c1cd3163
TT
76112020-04-13 Tom Tromey <tom@tromey.com>
7612
7613 * utils.c (flush_streams): New function.
7614 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7615
29f2bf4f
TT
76162020-04-13 Tom Tromey <tom@tromey.com>
7617
7618 * event-loop.c (handle_file_event): Use warning, not
7619 printf_unfiltered.
7620
98029d02
TT
76212020-04-13 Tom Tromey <tom@tromey.com>
7622
7623 * event-loop.c: Include <chrono>.
7624
06cc9596
TT
76252020-04-13 Tom Tromey <tom@tromey.com>
7626
7627 * gdb_select.h: Move to ../gdbsupport/.
7628 * event-loop.c: Update include path.
7629 * top.c: Update include path.
7630 * ser-base.c: Update include path.
7631 * ui-file.c: Update include path.
7632 * ser-tcp.c: Update include path.
7633 * guile/scm-ports.c: Update include path.
7634 * posix-hdep.c: Update include path.
7635 * ser-unix.c: Update include path.
7636 * gdb_usleep.c: Update include path.
7637 * mingw-hdep.c: Update include path.
7638 * inflow.c: Update include path.
7639 * infrun.c: Update include path.
7640 * event-top.c: Update include path.
7641
8ae8e197
TT
76422020-04-13 Tom Tromey <tom@tromey.com>
7643
7644 * configure: Rebuild.
7645 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7646
58cf28e8
TT
76472020-04-13 Tom Tromey <tom@tromey.com>
7648
7649 * event-loop.h (start_event_loop): Don't declare.
7650 * event-loop.c (start_event_loop): Move...
7651 * main.c (start_event_loop): ...here. Now static.
7652
b7f999ae
SDJ
76532020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7654
7655 * MAINTAINERS: Update my email address.
7656
1085dfd4
KR
76572020-04-12 Kamil Rytarowski <n54@gmx.com>
7658
7659 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7660 IP_ALL.
7661
49d1d1f5
KR
76622020-04-12 Kamil Rytarowski <n54@gmx.com>
7663
7664 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7665 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7666
b4848d2a
KR
76672020-04-12 Kamil Rytarowski <n54@gmx.com>
7668
7669 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7670 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7671
51c133d5
KR
76722020-04-12 Kamil Rytarowski <n54@gmx.com>
7673
7674 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7675
54b8cbd0
KR
76762020-04-11 Kamil Rytarowski <n54@gmx.com>
7677
7678 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7679 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7680 (nbsd_nat_target::info_proc): New functions.
7681 * nbsd-nat.c (kinfo_get_vmmap): New function.
7682 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7683 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7684 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7685 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7686 functions.
7687 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7688 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7689 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7690 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7691 (KINFO_VME_FLAG_GROWS_DOWN): New.
7692
cf83625d
AS
76932020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7694
7695 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7696 bit shift.
7697
0c4311ab
TT
76982020-04-10 Tom Tromey <tromey@adacore.com>
7699
7700 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7701
3e65b3e9
TT
77022020-04-10 Tom Tromey <tromey@adacore.com>
7703
7704 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7705 separate debug files.
7706
13302e95
HD
77072020-04-10 Hannes Domani <ssbssa@yahoo.de>
7708
7709 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7710 Move to...
7711 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7712 ... here.
7713 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7714 Check for STATUS_WX86_BREAKPOINT.
7715 (windows_nat_target::wait): Same.
7716
bdfc1e8a
TV
77172020-04-10 Tom de Vries <tdevries@suse.de>
7718
7719 PR cli/25808
7720 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7721
f4460aec
SM
77222020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7723
7724 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7725 (Write After Approval): Remove Tom de Vries.
7726
a25198bb
BE
77272020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7728
7729 revert partially:
7730 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7731
aac66a4c
SM
7732 * buildsym.c (record_line): Fix undefined behavior and preserve
7733 lines at eof.
a25198bb 7734
206c98a6
KR
77352020-04-09 Kamil Rytarowski <n54@gmx.com>
7736
7737 * auxv.h (svr4_auxv_parse): New.
7738 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7739 and generic_auxv_parse.
7740 (svr4_auxv_parse): Add.
7741 * obsd-tdep.c: Include "auxv.h".
7742 (obsd_auxv_parse): Remove.
7743 (obsd_init_abi): Remove comment.
7744 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7745 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7746 * nbsd-tdep.c: Include "auxv.h".
7747 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7748
71fbdbaf
TT
77492020-04-08 Tom Tromey <tromey@adacore.com>
7750
7751 * nat/windows-nat.h (last_wait_event): Don't declare.
7752 (wait_for_debug_event): Update comment.
7753 * nat/windows-nat.c (last_wait_event): Now static.
7754
2c1d95e8
TT
77552020-04-08 Tom Tromey <tromey@adacore.com>
7756
7757 * windows-nat.c (wait_for_debug_event): Move to
7758 nat/windows-nat.c.
7759 * nat/windows-nat.h (wait_for_debug_event): Declare.
7760 * nat/windows-nat.c (wait_for_debug_event): Move from
7761 windows-nat.c. No longer static.
7762
d2977bc4
TT
77632020-04-08 Tom Tromey <tromey@adacore.com>
7764
7765 * windows-nat.c (get_windows_debug_event): Use
7766 fetch_pending_stop.
7767 * nat/windows-nat.h (fetch_pending_stop): Declare.
7768 * nat/windows-nat.c (fetch_pending_stop): New function.
7769
e758e19c
TT
77702020-04-08 Tom Tromey <tromey@adacore.com>
7771
7772 * windows-nat.c (windows_continue): Use matching_pending_stop and
7773 continue_last_debug_event.
7774 * nat/windows-nat.h (matching_pending_stop)
7775 (continue_last_debug_event): Declare.
7776 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7777 (matching_pending_stop, continue_last_debug_event): New
7778 functions.
7779
8d30e395
TT
77802020-04-08 Tom Tromey <tromey@adacore.com>
7781
7782 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7783 (handle_exception_result): Move to nat/windows-nat.h.
7784 (DEBUG_EXCEPTION_SIMPLE): Remove.
7785 (windows_nat::handle_ms_vc_exception): New function.
7786 (handle_exception): Move to nat/windows-nat.c.
7787 (get_windows_debug_event): Update.
7788 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7789 nat/windows-nat.c.
7790 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7791 (handle_exception_result): Move from windows-nat.c.
7792 (handle_exception): Declare.
7793 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7794 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7795 windows-nat.c.
7796
29de418d
TT
77972020-04-08 Tom Tromey <tromey@adacore.com>
7798
7799 * windows-nat.c (exception_count, event_count): Remove.
7800 (handle_exception, get_windows_debug_event)
7801 (do_initial_windows_stuff): Update.
7802
a816ba18
TT
78032020-04-08 Tom Tromey <tromey@adacore.com>
7804
7805 * windows-nat.c (windows_nat::handle_load_dll)
7806 (windows_nat::handle_unload_dll): Rename. No longer static.
7807 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7808 Declare.
7809
a00caa12
TT
78102020-04-08 Tom Tromey <tromey@adacore.com>
7811
7812 * complaints.h (stop_whining): Declare at top-level.
7813 (complaint): Don't declare stop_whining.
7814
d41b524f
TT
78152020-04-08 Tom Tromey <tromey@adacore.com>
7816
7817 * windows-nat.c (windows_nat::handle_output_debug_string):
7818 Rename. No longer static.
7819 * nat/windows-nat.h (handle_output_debug_string): Declare.
7820
3c76026d
TT
78212020-04-08 Tom Tromey <tromey@adacore.com>
7822
7823 * windows-nat.c (current_process_handle, current_process_id)
7824 (main_thread_id, last_sig, current_event, last_wait_event)
7825 (current_windows_thread, desired_stop_thread_id, pending_stops)
7826 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7827 (display_selectors, fake_create_process)
7828 (get_windows_debug_event): Update.
7829 * nat/windows-nat.h (current_process_handle, current_process_id)
7830 (main_thread_id, last_sig, current_event, last_wait_event)
7831 (current_windows_thread, desired_stop_thread_id, pending_stops)
7832 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7833 * nat/windows-nat.c (current_process_handle, current_process_id)
7834 (main_thread_id, last_sig, current_event, last_wait_event)
7835 (current_windows_thread, desired_stop_thread_id, pending_stops)
7836 (siginfo_er): New globals. Move from windows-nat.c.
7837
9d8679cc
TT
78382020-04-08 Tom Tromey <tromey@adacore.com>
7839
7840 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7841 (handle_load_dll): Update.
7842 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7843
28688adf
TT
78442020-04-08 Tom Tromey <tromey@adacore.com>
7845
7846 * windows-nat.c (enum thread_disposition_type): Move to
7847 nat/windows-nat.h.
7848 (windows_nat::thread_rec): Rename from thread_rec. No longer
7849 static.
7850 (windows_add_thread, windows_nat_target::fetch_registers)
7851 (windows_nat_target::store_registers, handle_exception)
7852 (windows_nat_target::resume, get_windows_debug_event)
7853 (windows_nat_target::get_tib_address)
7854 (windows_nat_target::thread_name)
7855 (windows_nat_target::thread_alive): Update.
7856 * nat/windows-nat.h (enum thread_disposition_type): Move from
7857 windows-nat.c.
7858 (thread_rec): Declare.
7859
4834dad0
TT
78602020-04-08 Tom Tromey <tromey@adacore.com>
7861
7862 * windows-nat.c: Add "using namespace".
7863 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7864 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7865
65bafd5b
TT
78662020-04-08 Tom Tromey <tromey@adacore.com>
7867
7868 * nat/windows-nat.h (struct windows_thread_info): Declare
7869 destructor.
7870 * nat/windows-nat.c (~windows_thread_info): New.
7871
0a4afda3
TT
78722020-04-08 Tom Tromey <tromey@adacore.com>
7873
7874 PR gdb/22992
7875 * windows-nat.c (current_event): Update comment.
7876 (last_wait_event, desired_stop_thread_id): New globals.
7877 (struct pending_stop): New.
7878 (pending_stops): New global.
7879 (windows_nat_target) <stopped_by_sw_breakpoint>
7880 <supports_stopped_by_sw_breakpoint>: New methods.
7881 (windows_fetch_one_register): Add assertions. Adjust PC.
7882 (windows_continue): Handle pending stops. Suspend other threads
7883 when stepping. Use last_wait_event
7884 (wait_for_debug_event): New function.
7885 (get_windows_debug_event): Use wait_for_debug_event. Handle
7886 pending stops. Queue spurious stops.
7887 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7888 (windows_nat_target::kill): Use wait_for_debug_event.
7889 * nat/windows-nat.h (struct windows_thread_info)
7890 <stopped_at_software_breakpoint>: New field.
7891 * nat/windows-nat.c (windows_thread_info::resume): Clear
7892 stopped_at_software_breakpoint.
7893
8e61ebec
TT
78942020-04-08 Tom Tromey <tromey@adacore.com>
7895
7896 * windows-nat.c (enum thread_disposition_type): New.
7897 (thread_rec): Replace "get_context" parameter with "disposition";
7898 change type.
7899 (windows_add_thread, windows_nat_target::fetch_registers)
7900 (windows_nat_target::store_registers, handle_exception)
7901 (windows_nat_target::resume, get_windows_debug_event)
7902 (windows_nat_target::get_tib_address)
7903 (windows_nat_target::thread_name)
7904 (windows_nat_target::thread_alive): Update.
7905
98a03287
TT
79062020-04-08 Tom Tromey <tromey@adacore.com>
7907
7908 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7909 (windows_continue): Use windows_continue::resume.
7910 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7911 resume>: Declare new methods.
7912 * nat/windows-nat.c: New file.
7913 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7914
7c7411bc
TT
79152020-04-08 Tom Tromey <tromey@adacore.com>
7916
7917 * windows-nat.c (windows_add_thread, windows_delete_thread)
7918 (windows_nat_target::fetch_registers)
7919 (windows_nat_target::store_registers, fake_create_process)
7920 (windows_nat_target::resume, windows_nat_target::resume)
7921 (get_windows_debug_event, windows_nat_target::wait)
7922 (windows_nat_target::pid_to_str)
7923 (windows_nat_target::get_tib_address)
7924 (windows_nat_target::get_ada_task_ptid)
7925 (windows_nat_target::thread_name)
7926 (windows_nat_target::thread_alive): Use lwp, not tid.
7927
2950fdf7
TT
79282020-04-08 Tom Tromey <tromey@adacore.com>
7929
7930 * windows-nat.c (handle_exception)
7931 (windows_nat_target::thread_name): Update.
7932 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7933 <name>: Now unique_xmalloc_ptr.
7934
62fe396b
TT
79352020-04-08 Tom Tromey <tromey@adacore.com>
7936
7937 * windows-nat.c (thread_rec)
7938 (windows_nat_target::fetch_registers): Update.
7939 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7940 Update comment.
7941 <debug_registers_changed, reload_context>: Now bool.
7942
e9534bd2
TT
79432020-04-08 Tom Tromey <tromey@adacore.com>
7944
7945 * windows-nat.c (windows_add_thread): Use new.
7946 (windows_init_thread_list, windows_delete_thread): Use delete.
7947 (get_windows_debug_event): Update.
7948 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7949 destructor, and initializers.
7950
ae1f8880
TT
79512020-04-08 Tom Tromey <tromey@adacore.com>
7952
7953 * windows-nat.c (struct windows_thread_info): Remove.
7954 * nat/windows-nat.h: New file.
7955
55a1e039
TT
79562020-04-08 Tom Tromey <tromey@adacore.com>
7957
7958 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7959 (thread_rec, windows_add_thread, windows_delete_thread)
7960 (windows_continue): Update.
7961
93366324
TT
79622020-04-08 Tom Tromey <tromey@adacore.com>
7963
7964 * windows-nat.c (struct windows_thread_info): Remove typedef.
7965 (thread_head): Remove.
7966 (thread_list): New global.
7967 (thread_rec, windows_add_thread, windows_init_thread_list)
7968 (windows_delete_thread, windows_continue): Update.
7969
0f2265e2
SM
79702020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7971
7972 * windows-tdep.h (windows_init_abi): Add comment.
7973 (cygwin_init_abi): New declaration.
7974 * windows-tdep.c: Split signal enumeration in two, one for
7975 Windows and one for Cygwin.
7976 (windows_gdb_signal_to_target): Only deal with signal of the
7977 Windows OS ABI.
7978 (cygwin_gdb_signal_to_target): New function.
7979 (windows_init_abi): Rename to windows_init_abi_common, don't set
7980 gdb_signal_to_target gdbarch method. Add new new function with
7981 this name.
7982 (cygwin_init_abi): New function.
7983 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7984 comment. Don't call windows_init_abi.
7985 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7986 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7987 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7988 i386_windows_init_abi_common, don't call windows_init_abi. Add
7989 a new function of this name.
7990 (i386_cygwin_init_abi): New function.
7991 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7992 OS ABI Cygwin.
7993
3810f182
SM
79942020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7995
7996 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7997 parameter.c.
7998 (dwarf2_read_gdb_index): Update.
7999
063f8e80
KR
80002020-04-07 Kamil Rytarowski <n54@gmx.com>
8001
8002 * nbsd-tdep.c: Include "objfiles.h".
8003 (nbsd_skip_solib_resolver): New.
8004 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8005
85a9510c 80062020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8007
8008 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8009 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8010 with DW_LLE_base_addressx are being emitted in DWARFv5.
8011 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8012 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8013 unsigned integer.
8014
9fc3eaae 80152020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8016
8017 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8018 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8019 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8020 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8021 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8022 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8023 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8024
8025
41144253 80262020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8027
8028 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8029 (read_loclist_index): New function definition.
8030 (lookup_loclist_base): New function definition.
8031 (read_loclist_header): New function definition.
8032 (dwarf2_cu): Add loclist_base and loclist_header field.
8033 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8034 (read_full_die_1): Read the value of DW_AT_loclists_base.
8035 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8036 (read_attribute_value): Handle DW_FORM_loclistx.
8037 (skip_one_die): Handle DW_FORM_loclistx.
8038 (loclist_header): New structure declaration.
8039 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8040
9f4e76a4
SM
80412020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8042
8043 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8044 constructor. Remove `addr` parameter from other constructor and
8045 add `per_cu` parameter.
8046 * dwarf2/read.c (create_partial_symtab): Update.
8047
25c11aca
TV
80482020-04-07 Tom de Vries <tdevries@suse.de>
8049
8050 PR symtab/25796
8051 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8052 (partial_die_info::fixup): Inherit has_const_value.
8053
5707e24b
TV
80542020-04-07 Tom de Vries <tdevries@suse.de>
8055
8056 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8057 symbols without address.
8058
05f00e22
KR
80592020-04-06 Kamil Rytarowski <n54@gmx.com>
8060
8061 * nbsd-nat.h (struct thread_info): Add forward declaration.
8062 (nbsd_nat_target::thread_alive): Add.
8063 (nbsd_nat_target::thread_name): Likewise.
8064 (nbsd_nat_target::update_thread_list): Likewise.
8065 (update_thread_list::post_attach): Likewise.
8066 (post_attach::pid_to_str): Likewise.
8067 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8068 (nbsd_thread_lister): Add.
8069 (nbsd_nat_target::thread_alive): Likewise.
8070 (nbsd_nat_target::thread_name): Likewise.
8071 (nbsd_add_threads): Likewise.
8072 (update_thread_list::post_attach): Likewise.
8073 (nbsd_nat_target::update_thread_list): Likewise.
8074 (post_attach::pid_to_str): Likewise.
8075
6ee448cc
TT
80762020-04-06 Tom Tromey <tromey@adacore.com>
8077
8078 * ada-valprint.c (print_variant_part): Extract the variant field.
8079 (print_field_values): Use the field as the outer value when
8080 recursing.
8081
dea34e8c
TT
80822020-04-06 Tom Tromey <tromey@adacore.com>
8083
8084 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8085 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8086 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8087 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8088 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8089
93689ce9
TT
80902020-04-06 Tom Tromey <tromey@adacore.com>
8091
8092 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8093 TYPE_CODE_ERROR.
8094
79743962
KR
80952020-04-06 Kamil Rytarowski <n54@gmx.com>
8096
8097 * nbsd-tdep.c: Include "gdbarch.h".
8098 Define enum with NetBSD signal numbers.
8099 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8100 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8101 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8102 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8103 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8104 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8105 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8106 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8107 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8108 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8109 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8110 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8111
9e7c9a03
HD
81122020-04-03 Hannes Domani <ssbssa@yahoo.de>
8113
8114 PR gdb/25325
8115 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8116
d9e49b61
TT
81172020-04-03 Tom Tromey <tromey@adacore.com>
8118
8119 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8120 Read constant block.
8121
e0fc5c3f
SM
81222020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8123
8124 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8125 (gdb_bfd_get_full_section_contents): New declaration.
8126 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8127 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8128 gdb_bfd_get_full_section_contents.
8129
e2ff18a0
SM
81302020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8131
8132 * exec.c (build_section_table): Replace internal_error with
8133 gdb_assert.
8134 (section_table_xfer_memory_partial): Likewise.
8135 * mdebugread.c (parse_partial_symbols): Likewise.
8136 * psymtab.c (lookup_partial_symbol): Likewise.
8137 * utils.c (wrap_here): Likewise.
8138
0830d301
TT
81392020-04-02 Tom Tromey <tromey@adacore.com>
8140
8141 * f-lang.c (build_fortran_types): Use arch_type to initialize
8142 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8143
e7da7f8f
TT
81442020-04-02 Tom Tromey <tromey@adacore.com>
8145
8146 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8147 of attributes.
8148
c90d28ac
AB
81492020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8150 Bernd Edlinger <bernd.edlinger@hotmail.de>
8151 Tom Tromey <tromey@adacore.com>
8152
8153 * buildsym.c (buildsym_compunit::record_line): Remove
8154 deduplication code.
8155
1aa98955
TV
81562020-04-02 Tom de Vries <tdevries@suse.de>
8157
8158 PR ada/24671
8159 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8160
d3214198
TV
81612020-04-02 Tom de Vries <tdevries@suse.de>
8162
8163 * dwarf2/read.c (dwarf2_gdb_index_functions,
8164 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8165 NULL.
8166 * psymtab.c (psym_lookup_global_symbol_language): New function.
8167 (psym_functions): Init psym_lookup_global_symbol_language with
8168 psym_lookup_global_symbol_language.
8169 * symfile-debug.c (debug_sym_quick_functions): Init
8170 lookup_global_symbol_language with NULL.
8171 * symfile.c (set_initial_language): Remove fixme comment.
8172 * symfile.h (struct quick_symbol_functions): Add
8173 lookup_global_symbol_language.
8174 * symtab.c (find_quick_global_symbol_language): New function.
8175 (find_main_name): Use find_quick_global_symbol_language.
8176
2836752f
SM
81772020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8178
8179 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8180
64dc2d4b
BE
81812020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8182
8183 * buildsym.c (record_line): Fix undefined behavior and preserve
8184 lines at eof.
8185
bbe3dc41
BE
81862020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8187
8188 * buildsym.c (record_line): Fix the resizing condition.
8189
6b4a335b
TT
81902020-04-01 Tom Tromey <tom@tromey.com>
8191
8192 * value.h (value_literal_complex): Add comment.
8193 * valops.c (value_literal_complex): Refer to value.h.
8194
3638a098
TT
81952020-04-01 Tom Tromey <tom@tromey.com>
8196
8197 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8198 (scalar_type): New rule, from typebase.
8199 (typebase): Use scalar_type. Recognize complex types.
8200 (field_name): Handle FLOAT_KEYWORD.
8201 (ident_tokens): Add _Complex and __complex__.
8202
c34e8714
TT
82032020-04-01 Tom Tromey <tom@tromey.com>
8204
8205 PR exp/25299:
8206 * valarith.c (promotion_type, complex_binop): New functions.
8207 (scalar_binop): Handle complex numbers. Use promotion_type.
8208 (value_pos, value_neg, value_complement): Handle complex numbers.
8209
fa649bb7
TT
82102020-04-01 Tom Tromey <tom@tromey.com>
8211
8212 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8213 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8214 (parse_number): Handle complex numbers.
8215
981c08ce
TT
82162020-04-01 Tom Tromey <tom@tromey.com>
8217
8218 * c-valprint.c (c_decorations): Change complex suffix to "i".
8219
4c99290d
TT
82202020-04-01 Tom Tromey <tom@tromey.com>
8221
8222 * valprint.c (generic_value_print_complex): Use accessors.
8223 * value.h (value_real_part, value_imaginary_part): Declare.
8224 * valops.c (value_real_part, value_imaginary_part): New
8225 functions.
8226 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8227
5b930b45
TT
82282020-04-01 Tom Tromey <tom@tromey.com>
8229
8230 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8231 (read_range_type): Update.
8232 * mdebugread.c (basic_type): Update.
8233 * go-lang.c (build_go_types): Use init_complex_type.
8234 * gdbtypes.h (struct main_type) <complex_type>: New member.
8235 (init_complex_type): Update.
8236 (arch_complex_type): Don't declare.
8237 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8238 Make name if none given. Use alloc_type_copy. Look for cached
8239 complex type.
8240 (arch_complex_type): Remove.
8241 (gdbtypes_post_init): Use init_complex_type.
8242 * f-lang.c (build_fortran_types): Use init_complex_type.
8243 * dwarf2/read.c (read_base_type): Update.
8244 * d-lang.c (build_d_types): Use init_complex_type.
8245 * ctfread.c (read_base_type): Update.
8246
53cccef1
TBA
82472020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8248
8249 * infrun.c (stop_all_threads): Update assertion, plus when
8250 stopping threads, take into account that we might be trying
8251 to stop an all-stop target.
8252 (stop_waiting): Call 'stop_all_threads' if there exists a
8253 non-stop target.
8254
a0714d30
TBA
82552020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8256
8257 * target.h (exists_non_stop_target): New function declaration.
8258 * target.c (exists_non_stop_target): New function.
8259
60e22c1e
HD
82602020-04-01 Hannes Domani <ssbssa@yahoo.de>
8261
8262 PR gdb/24789
8263 * eval.c (is_integral_or_integral_reference): New function.
8264 (evaluate_subexp_standard): Allow integer references in
8265 pointer arithmetic.
8266
e139a727
TBA
82672020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8268
8269 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8270 check for no ptid in the stop reply when the target is non-stop.
8271
e0802d59
TT
82722020-04-01 Tom Tromey <tromey@adacore.com>
8273
8274 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8275 "name" parameter to rvalue reference. Initialize m_name_holder.
8276 <lookup_name_info>: New overloads.
8277 <name>: Return gdb::string_view.
8278 <c_str>: New method.
8279 <make_ignore_params>: Update.
8280 <search_name_hash>: Update.
8281 <language_lookup_name>: Return const char *.
8282 <m_name>: Change type.
8283 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8284 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8285 (lookup_name_info::match_any): Update.
8286 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8287 Update.
8288 * minsyms.c (linkage_name_str): Update.
8289 * language.c (default_symbol_name_matcher): Update.
8290 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8291 Update.
8292 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8293 (ada_lookup_name_info::ada_lookup_name_info): Update.
8294 (literal_symbol_name_matcher): Update.
8295
8c072cb6
TT
82962020-04-01 Tom Tromey <tromey@adacore.com>
8297
8298 * psymtab.c (psymtab_search_name): Remove function.
8299 (psym_lookup_symbol): Create search name and lookup name here.
8300 (lookup_partial_symbol): Remove "name" parameter; add
8301 lookup_name.
8302 (psym_expand_symtabs_for_function): Update.
8303
6f29a534
TT
83042020-03-31 Joel Jones <joelkevinjones@gmail.com>
8305
8306 PR tui/25597:
8307 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8308
af62665e
TT
83092020-03-31 Tom Tromey <tromey@adacore.com>
8310
8311 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8312 memcpy.
8313
d1a89da5
NC
83142020-03-30 Nelson Chu <nelson.chu@sifive.com>
8315
8316 * features/riscv/32bit-csr.xml: Regenerated.
8317 * features/riscv/64bit-csr.xml: Regenerated.
8318
d8af9068
TT
83192020-03-30 Tom Tromey <tromey@adacore.com>
8320
8321 * ada-valprint.c (print_variant_part): Update.
8322 * ada-lang.h (ada_which_variant_applies): Update.
8323 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8324 outer_valaddr parameters; replace with "outer" value parameter.
8325 (to_fixed_variant_branch_type): Update.
8326
227c0bf4
PFC
83272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8328
8329 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8330 <list>. Remove inclusion of observable.h.
8331 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8332 (struct arch_lwp_info): New struct.
8333 (class ppc_linux_dreg_interface): New class.
8334 (struct ppc_linux_process_info): New struct.
8335 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8336 <low_new_clone, low_forget_process, low_prepare_to_resume>
8337 <copy_thread_dreg_state, mark_thread_stale>
8338 <mark_debug_registers_changed, register_hw_breakpoint>
8339 <clear_hw_breakpoint, register_wp, clear_wp>
8340 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8341 <num_memory_accesses, get_trigger_type>
8342 <create_watchpoint_request, hwdebug_point_cmp>
8343 <init_arch_lwp_info, get_arch_lwp_info>
8344 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8345 methods.
8346 <struct ptid_hash>: New inner struct.
8347 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8348 members.
8349 (saved_dabr_value, hwdebug_info, max_slots_number)
8350 (struct hw_break_tuple, struct thread_points, ppc_threads)
8351 (have_ptrace_hwdebug_interface)
8352 (hwdebug_find_thread_points_by_tid)
8353 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8354 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8355 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8356 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8357 use m_dreg_interface.
8358 (hwdebug_point_cmp): Change to...
8359 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8360 reference arguments instead of pointers.
8361 (ppc_linux_nat_target::ranged_break_num_registers): Use
8362 m_dreg_interface.
8363 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8364 m_dreg_interface. Call register_hw_breakpoint.
8365 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8366 m_dreg_interface. Call clear_hw_breakpoint.
8367 (get_trigger_type): Change to...
8368 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8369 comment.
8370 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8371 use m_dreg_interface. Call register_hw_breakpoint.
8372 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8373 use m_dreg_interface. Call clear_hw_breakpoint.
8374 (can_use_watchpoint_cond_accel): Change to...
8375 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8376 method. Update comment, use m_dreg_interface and
8377 m_process_info.
8378 (calculate_dvc): Change to...
8379 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8380 m_dreg_interface.
8381 (num_memory_accesses): Change to...
8382 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8383 (check_condition): Change to...
8384 (ppc_linux_nat_target::check_condition): ...this method.
8385 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8386 comment, use m_dreg_interface.
8387 (create_watchpoint_request): Change to...
8388 (ppc_linux_nat_target::create_watchpoint_request): ...this
8389 method. Use m_dreg_interface.
8390 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8391 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8392 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8393 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8394 (ppc_linux_nat_target::low_forget_process)
8395 (ppc_linux_nat_target::low_new_fork)
8396 (ppc_linux_nat_target::low_new_clone)
8397 (ppc_linux_nat_target::low_delete_thread)
8398 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8399 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8400 only call mark_thread_stale.
8401 (ppc_linux_thread_exit): Remove.
8402 (ppc_linux_nat_target::stopped_data_address): Change to...
8403 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8404 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8405 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8406 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8407 comment. Call low_stopped_data_address.
8408 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8409 m_dreg_interface.
8410 (ppc_linux_nat_target::masked_watch_num_registers): Use
8411 m_dreg_interface.
8412 (ppc_linux_nat_target::copy_thread_dreg_state)
8413 (ppc_linux_nat_target::mark_thread_stale)
8414 (ppc_linux_nat_target::mark_debug_registers_changed)
8415 (ppc_linux_nat_target::register_hw_breakpoint)
8416 (ppc_linux_nat_target::clear_hw_breakpoint)
8417 (ppc_linux_nat_target::register_wp)
8418 (ppc_linux_nat_target::clear_wp)
8419 (ppc_linux_nat_target::init_arch_lwp_info)
8420 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8421 (_initialize_ppc_linux_nat): Remove observer callback.
8422
4db10d8f
PFC
84232020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8424
8425 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8426 (ppc_linux_nat_target::auxv_parse)
8427 (ppc_linux_nat_target::read_description)
8428 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8429 Move up.
8430
1310c1b0
PFC
84312020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8432
8433 * linux-nat.h (low_new_clone): New method.
8434 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8435
69b037c3
SM
84362020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8437
8438 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8439 (dbx_expand_psymtab): ... this.
8440 (start_psymtab): Update.
8441 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8442 (mdebug_expand_psymtab): ... this.
8443 (parse_partial_symbols): Update.
8444 (new_psymtab): Update.
8445 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8446 (xcoff_expand_psymtab): ... this.
8447 (xcoff_start_psymtab): Update.
8448
48993951
SM
84492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8450
8451 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8452 <expand_dependencies>: ... this.
8453 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8454 (partial_symtab::expand_dependencies): ... this.
8455 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8456 Update.
8457 (dwarf2_psymtab::expand_psymtab): Update.
8458 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8459 * mdebugread.c (psymtab_to_symtab_1): Update.
8460 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8461
3ad83046
SM
84622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8463
8464 * psympriv.h (discard_psymtab): Remove.
8465 * dbxread.c (dbx_end_psymtab): Update.
8466 * xcoffread.c (xcoff_end_psymtab): Update.
8467
4d1b9ab6
TT
84682020-03-28 Tom Tromey <tom@tromey.com>
8469
8470 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8471 comment.
8472
f1749218
TT
84732020-03-28 Tom Tromey <tom@tromey.com>
8474
8475 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8476
ebea7626
HD
84772020-03-27 Hannes Domani <ssbssa@yahoo.de>
8478
8479 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8480
a879b4d5
JB
84812020-03-26 John Baldwin <jhb@FreeBSD.org>
8482
8483 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8484
0826b30a
TT
84852020-03-26 Tom Tromey <tom@tromey.com>
8486
8487 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8488 (mark_common_block_symbol_computed, read_tag_string_type)
8489 (attr_to_dynamic_prop, read_subrange_type): Update.
8490 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8491 to be methods on struct attribute.
8492 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8493 (read_call_site_scope, partial_die_info::read)
8494 (partial_die_info::read, lookup_die_type, follow_die_ref):
8495 Update.
8496 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8497 from dwarf2_get_ref_die_offset.
8498 (attribute::constant_value): New method, from
8499 dwarf2_get_attr_constant_value.
8500 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8501 Declare method.
8502 <constant_value>: New method.
8503
2b2558bf
TT
85042020-03-26 Tom Tromey <tom@tromey.com>
8505
8506 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8507 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8508 (dwarf_type_encoding_name): Move to stringify.c.
8509 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8510 * dwarf2/stringify.c: New file.
8511 * dwarf2/stringify.h: New file.
8512
eeb64781
TT
85132020-03-26 Tom Tromey <tom@tromey.com>
8514
8515 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8516 Rewrite.
8517
a39fdb41
TT
85182020-03-26 Tom Tromey <tom@tromey.com>
8519
8520 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8521 methods.
8522 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8523 (lookup_ranges_base): Likewise.
8524 (read_cutu_die_from_dwo, read_full_die_1): Update.
8525
436c571c
TT
85262020-03-26 Tom Tromey <tom@tromey.com>
8527
8528 * dwarf2/read.c (read_import_statement, read_file_scope)
8529 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8530 (read_lexical_block_scope, read_call_site_scope)
8531 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8532 (handle_struct_member_die, process_structure_scope)
8533 (update_enumeration_type_from_children)
8534 (process_enumeration_scope, read_array_type, read_common_block)
8535 (read_namespace, read_module, read_subroutine_type): Update.
8536 (sibling_die): Remove.
8537
052c8bb8
TT
85382020-03-26 Tom Tromey <tom@tromey.com>
8539
8540 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8541 (build_type_psymtabs_reader, read_structure_type)
8542 (read_enumeration_type, read_full_die_1): Update.
8543 (dwarf2_attr_no_follow): Move to die.h.
8544 * dwarf2/die.h (struct die_info) <attr>: New method.
8545
2b24b6e4
TT
85462020-03-26 Tom Tromey <tom@tromey.com>
8547
8548 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8549 <base_address>: Now an optional.
8550 (dwarf2_find_base_address, dwarf2_rnglists_process)
8551 (dwarf2_ranges_process, fill_in_loclist_baton)
8552 (dwarf2_symbol_mark_computed): Update.
8553
c2d50fd0
TT
85542020-03-26 Tom Tromey <tom@tromey.com>
8555
8556 * dwarf2/read.c (struct die_info): Move to die.h.
8557 * dwarf2/die.h: New file.
8558
0df7ad3a
TT
85592020-03-26 Tom Tromey <tom@tromey.com>
8560
8561 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8562 * dwarf2/read.c
8563 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8564 Move to line-header.c.
8565 (read_checked_initial_length_and_offset, read_formatted_entries):
8566 Likewise.
8567 (dwarf_decode_line_header): Split into two.
8568 * dwarf2/line-header.c
8569 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8570 Move from read.c.
8571 (read_checked_initial_length_and_offset, read_formatted_entries):
8572 Likewise.
8573 (dwarf_decode_line_header): New function, split from read.c.
8574
86c0bb4c
TT
85752020-03-26 Tom Tromey <tom@tromey.com>
8576
8577 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8578 Declare method.
8579 * dwarf2/read.c (read_attribute_value): Update.
8580 (dwarf2_per_objfile::read_line_string): Rename from
8581 read_indirect_line_string.
8582 (read_formatted_entries): Update.
8583
2ef46c2f
TT
85842020-03-26 Tom Tromey <tom@tromey.com>
8585
8586 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8587 variable.
8588
4f9c1eda
TT
85892020-03-26 Tom Tromey <tom@tromey.com>
8590
8591 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8592 const.
8593 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8594 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8595 parameter const.
8596
5a0e026f
TT
85972020-03-26 Tom Tromey <tom@tromey.com>
8598
8599 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8600 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8601 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8602 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8603
8844c11b
TT
86042020-03-26 Tom Tromey <tom@tromey.com>
8605
8606 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8607 file_names_size, file_full_name, file_file_name>: Use const.
8608 <file_name_at, file_names>: Add const overload.
8609 * dwarf2/line-header.c (line_header::file_file_name)
8610 (line_header::file_full_name): Update.
8611
c90ec28a
TT
86122020-03-26 Tom Tromey <tom@tromey.com>
8613
8614 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8615 (macro_start_file, consume_improper_spaces)
8616 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8617 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8618 (dwarf_decode_macros): Move to macro.c.
8619 * dwarf2/macro.c: New file.
8620 * dwarf2/macro.h: New file.
8621 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8622
4f44ae6c
TT
86232020-03-26 Tom Tromey <tom@tromey.com>
8624
8625 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8626 method.
8627 * dwarf2/section.c: New method. From
8628 read_indirect_string_at_offset_from.
8629 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8630 (read_indirect_string_at_offset_from): Move to section.c.
8631 (read_indirect_string_at_offset): Rewrite.
8632 (read_indirect_line_string_at_offset): Remove.
8633 (read_indirect_string, read_indirect_line_string)
8634 (dwarf_decode_macro_bytes): Update.
8635
a0194fa8
TT
86362020-03-26 Tom Tromey <tom@tromey.com>
8637
8638 * dwarf2/section.h (struct dwarf2_section_info)
8639 <overload_complaint>: Declare.
8640 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8641 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8642 Rename from dwarf2_section_buffer_overflow_complaint.
8643 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8644 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8645
3d27bbdb
TT
86462020-03-26 Tom Tromey <tom@tromey.com>
8647
8648 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8649 Declare.
8650 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8651 Move from read.c.
8652 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8653 to section.c.
8654
9eac9650
TT
86552020-03-26 Tom Tromey <tom@tromey.com>
8656
8657 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8658
bf80d710
TT
86592020-03-26 Tom Tromey <tom@tromey.com>
8660
8661 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8662 "builder".
8663 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8664 parameter.
8665 (dwarf_decode_macros): Update.
8666
0314b390
TT
86672020-03-26 Tom Tromey <tom@tromey.com>
8668
8669 * dwarf2/read.c (read_attribute_value): Update.
8670 (read_indirect_string_from_dwz): Move to dwz.c; change into
8671 method.
8672 (dwarf_decode_macro_bytes): Update.
8673 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8674 * dwarf2/dwz.c: New file.
8675 * Makefile.in (COMMON_SFILES): Add dwz.c.
8676
9fda78b6
TT
86772020-03-26 Tom Tromey <tom@tromey.com>
8678
8679 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8680 * dwarf2/read.c: Add include.
8681 * dwarf2/index-write.c: Add include.
8682 * dwarf2/index-cache.c: Add include.
8683 * dwarf2/dwz.h: New file.
8684
33aa3c10
TT
86852020-03-25 Tom Tromey <tom@tromey.com>
8686
8687 * compile/compile-object-load.c (get_out_value_type): Mention
8688 correct symbol name in error message.
8689
d503b685
HD
86902020-03-25 Hannes Domani <ssbssa@yahoo.de>
8691
8692 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8693
7b1eff95
TV
86942020-03-25 Tom de Vries <tdevries@suse.de>
8695
8696 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8697 * symmisc.c (dump_symtab_1): Print user and includes fields.
8698 (maintenance_info_symtabs): Same.
8699
dd895392
AB
87002020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8701
8702 PR gdb/25534
8703 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8704 (riscv_regcache_cooked_write): New function.
8705 (riscv_push_dummy_call): Use new function.
8706 (riscv_return_value): Likewise.
8707
5ab2fbf1
SM
87082020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8709
8710 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8711 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8712 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8713 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8714 * infrun.c (follow_fork): Likewise.
8715 (follow_fork_inferior): Likewise.
8716 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8717 * linux-nat.h (class linux_nat_target): Likewise.
8718 * remote.c (class remote_target) <follow_fork>: Likewise.
8719 (remote_target::follow_fork): Likewise.
8720 * target-delegates.c: Re-generate.
8721 * target.c (default_follow_fork): Likewise.
8722 (target_follow_fork): Likewise.
8723 * target.h (struct target_ops) <follow_fork>: Likewise.
8724 (target_follow_fork): Likewise.
8725
a64fafb5
TV
87262020-03-24 Tom de Vries <tdevries@suse.de>
8727
8728 * psymtab.c (maintenance_info_psymtabs): Print user field.
8729
fe26d3a3
TT
87302020-03-20 Tom Tromey <tromey@adacore.com>
8731
8732 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8733 const.
8734 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8735 const.
8736
c884cc46
SM
87372020-03-20 Simon Marchi <simon.marchi@efficios.com>
8738
8739 * ptrace.m4: Don't check for ptrace declaration.
8740 * config.in: Re-generate.
8741 * configure: Re-generate.
8742 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8743 not defined.
8744
1ff700c2
KR
87452020-03-20 Kamil Rytarowski <n54@gmx.com>
8746
8747 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8748 `PTRACE_TYPE_RET'.
8749 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8750 * sparc-nat.c (gdb_ptrace): Likewise.
8751 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8752
f7d4f0b1
TT
87532020-03-20 Tom Tromey <tromey@adacore.com>
8754
8755 * c-exp.y (lex_one_token): Fix assert.
8756
f67210ff
TT
87572020-03-20 Tom Tromey <tromey@adacore.com>
8758
8759 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8760 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8761 strncpy call.
8762
1773be9e
TT
87632020-03-20 Tom Tromey <tromey@adacore.com>
8764
8765 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8766
70304be9
TT
87672020-03-20 Tom Tromey <tromey@adacore.com>
8768
8769 * ada-valprint.c (print_variant_part): Remove parameters; switch
8770 to value-based API.
8771 (print_field_values): Likewise.
8772 (ada_val_print_struct_union): Likewise.
8773 (ada_value_print_1): Update.
8774
9faa006d
KR
87752020-03-20 Kamil Rytarowski <n54@gmx.com>
8776
8777 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8778 nbsd_nat_target instead of inf_ptrace_target.
8779 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8780 nbsd_nat_target.
8781
4a90f062
KR
87822020-03-20 Kamil Rytarowski <n54@gmx.com>
8783
8784 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8785 it to the ptrace call.
8786 * (store_registers): Likewise.
8787
87882020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
8789
8790 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8791 it to the ptrace call.
8792 * (store_registers): Likewise.
8793
2d07da27
LM
87942020-03-19 Luis Machado <luis.machado@linaro.org>
8795
8796 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8797 valid, fetch vg value from ptrace.
8798
f09db380
KR
87992020-03-19 Kamil Rytarowski <n54@gmx.com>
8800 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8801 * inf-ptrace.c: Likewise.
8802 * (gdb_ptrace): Add.
8803 * (inf_ptrace_target::resume): Update.
8804 * (inf_ptrace_target::xfer_partial): Likewise.
8805 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8806 * (inf_ptrace_peek_poke): Update.
8807
fcc7376e
KR
88082020-03-19 Kamil Rytarowski <n54@gmx.com>
8809
8810 * x86-bsd-nat.c (gdb_ptrace): New.
8811 * (x86bsd_dr_set): Add new argument `ptid'.
8812 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8813 x86bsd_dr_set_addr): Update.
8814
cada5fc9
AB
88152020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8816
8817 * remote.c (remote_target::process_stop_reply): Handle events for
8818 all threads differently.
8819
19a2740f
AB
88202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8821
8822 * completer.c (completion_tracker::remove_completion): Define new
8823 function.
8824 * completer.h (completion_tracker::remove_completion): Declare new
8825 function.
8826 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8827 when adding a C++ function symbol.
8828
724fd9ba
AB
88292020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8830
8831 * completer.c (completion_tracker::completion_hash_entry): Define
8832 new class.
8833 (advance_to_filename_complete_word_point): Call
8834 recompute_lowest_common_denominator.
8835 (completion_tracker::completion_tracker): Call discard_completions
8836 to setup the hash table.
8837 (completion_tracker::discard_completions): Allow for being called
8838 from the constructor, pass new equal function, and element deleter
8839 when constructing the hash table. Initialise new class member
8840 variables.
8841 (completion_tracker::maybe_add_completion): Remove use of
8842 m_entries_vec, and store more information into m_entries_hash.
8843 (completion_tracker::recompute_lcd_visitor): New function, most
8844 content taken from...
8845 (completion_tracker::recompute_lowest_common_denominator):
8846 ...here, this now just visits each item in the hash calling the
8847 above visitor.
8848 (completion_tracker::build_completion_result): Remove use of
8849 m_entries_vec, call recompute_lowest_common_denominator.
8850 * completer.h (completion_tracker::have_completions): Remove use
8851 of m_entries_vec.
8852 (completion_tracker::completion_hash_entry): Declare new class.
8853 (completion_tracker::recompute_lowest_common_denominator): Change
8854 function signature.
8855 (completion_tracker::recompute_lcd_visitor): Declare new function.
8856 (completion_tracker::m_entries_vec): Delete.
8857 (completion_tracker::m_entries_hash): Initialize to NULL.
8858 (completion_tracker::m_lowest_common_denominator_valid): New
8859 member variable.
8860 (completion_tracker::m_lowest_common_denominator_max_length): New
8861 member variable.
8862
5a82b8a1
KR
88632020-03-17 Kamil Rytarowski <n54@gmx.com>
8864
8865 * regformats/regdef.h: Put reg in gdb namespace.
8866
fb516a69
KR
88672020-03-17 Kamil Rytarowski <n54@gmx.com>
8868
8869 * i386-bsd-nat.c (gdb_ptrace): New.
8870 * (i386bsd_fetch_inferior_registers,
8871 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8872 * (i386bsd_fetch_inferior_registers,
8873 i386bsd_store_inferior_registers) Use gdb_ptrace.
8874
1c0aa1fb
KR
88752020-03-17 Kamil Rytarowski <n54@gmx.com>
8876
8877 * amd64-bsd-nat.c (gdb_ptrace): New.
8878 * (amd64bsd_fetch_inferior_registers,
8879 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8880 * (amd64bsd_fetch_inferior_registers,
8881 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8882
5ccd2fb7
KR
88832020-03-17 Kamil Rytarowski <n54@gmx.com>
8884
8885 * user-regs.c (user_reg::read): Rename to...
8886 (user_reg::xread): ...this.
8887 * (append_user_reg): Rename argument `read' to `xread'.
8888 * (user_reg_add_builtin): Likewise.
8889 * (user_reg_add): Likewise.
8890 * (value_of_user_reg): Likewise.
8891
2108a63a
KR
88922020-03-17 Kamil Rytarowski <n54@gmx.com>
8893
8894 * sparc-nat.c (gdb_ptrace): New.
8895 * sparc-nat.c (sparc_fetch_inferior_registers)
8896 (sparc_store_inferior_registers) Remove obsolete comment.
8897 * sparc-nat.c (sparc_fetch_inferior_registers)
8898 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8899 * sparc-nat.c (sparc_fetch_inferior_registers)
8900 (sparc_store_inferior_registers) Use gdb_ptrace.
8901
a225c9a8
KR
89022020-03-17 Kamil Rytarowski <n54@gmx.com>
8903
8904 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8905 it to the ptrace call.
8906 * sh-nbsd-nat.c (store_registers): Likewise.
8907
98097623
KR
89082020-03-17 Kamil Rytarowski <n54@gmx.com>
8909
8910 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8911 nbsd_nat_target instead of inf_ptrace_target.
8912 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8913 nbsd_nat_target.
8914
9e38d619
KR
89152020-03-17 Kamil Rytarowski <n54@gmx.com>
8916
8917 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8918
a2ecbe9f
KR
89192020-03-17 Kamil Rytarowski <n54@gmx.com>
8920
8921 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8922 <sys/sysctl.h>.
8923 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8924
58990295
TV
89252020-03-17 Tom de Vries <tdevries@suse.de>
8926
8927 PR gdb/23710
8928 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8929 fields.
8930 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8931 fields.
8932 (process_imported_unit_die): Skip import of c++ CUs.
8933
771dd3a8
TT
89342020-03-16 Tom Tromey <tom@tromey.com>
8935
8936 * p-valprint.c (pascal_object_print_value): Initialize
8937 base_value.
8938
817a7585
AK
89392020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8940 Shahab Vahedi <shahab@synopsys.com>
8941
8942 * Makefile.in: Add arch/arc.o
8943 * configure.tgt: Likewise.
8944 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8945 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8946 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8947 * arc-tdep.h (arc_read_description): Add proto type.
8948 * arch/arc.c: New file.
8949 * arch/arc.h: Likewise.
8950 * features/Makefile: Replace old target descriptions with new.
8951 * features/arc-arcompact.c: Remove.
8952 * features/arc-arcompact.xml: Likewise.
8953 * features/arc-v2.c: Likewise
8954 * features/arc-v2.xml: Likewise
8955 * features/arc/aux-arcompact.xml: New file.
8956 * features/arc/aux-v2.xml: Likewise.
8957 * features/arc/core-arcompact.xml: Likewise.
8958 * features/arc/core-v2.xml: Likewise.
8959 * features/arc/aux-arcompact.c: Generate.
8960 * features/arc/aux-v2.c: Likewise.
8961 * features/arc/core-arcompact.c: Likewise.
8962 * features/arc/core-v2.c: Likewise.
8963 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8964
67430cd0
TT
89652020-03-16 Tom Tromey <tromey@adacore.com>
8966
8967 PR gdb/25663:
8968 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8969 putting value into bcache.
8970
30efb6c7
SM
89712020-03-16 Simon Marchi <simon.marchi@efficios.com>
8972
8973 PR gdb/21500
8974 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8975 to...
8976 (amd64_windows_init_abi_common): ... this. Don't set size of
8977 long type.
8978 (amd64_windows_init_abi): New function.
8979 (amd64_cygwin_init_abi): New function.
8980 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8981 the Cygwin OS ABI.
8982 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8983 comment.
8984
8db52437
SM
89852020-03-16 Simon Marchi <simon.marchi@efficios.com>
8986
8987 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8988 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8989 (pe_import_directory_entry): New struct type.
8990 (is_linked_with_cygwin_dll): New function.
8991 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8992 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8993 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8994
5982a56a
SM
89952020-03-16 Simon Marchi <simon.marchi@efficios.com>
8996
8997 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8998 i386_cygwin_core_osabi_sniffer.
8999
7a1998df
SM
90002020-03-16 Simon Marchi <simon.marchi@efficios.com>
9001
9002 * i386-cygwin-tdep.c: Rename to...
9003 * i386-windows-tdep.c: ... this.
9004 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9005 i386-windows-tdep.c.
9006 * configure.tgt: Likewise.
9007
053205cc
SM
90082020-03-16 Simon Marchi <simon.marchi@efficios.com>
9009
9010 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9011 * osabi.c (gdb_osabi_names): Add "Windows".
9012 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9013 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9014 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9015 i386_cygwin_osabi_sniffer.
9016 (_initialize_i386_cygwin_tdep): Register OS ABI
9017 GDB_OSABI_WINDOWS for i386.
9018 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9019 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9020 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9021 for x86-64.
9022 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9023 when the target matches '*-*-mingw*'.
9024
fe4b2ee6
SM
90252020-03-16 Simon Marchi <simon.marchi@efficios.com>
9026
9027 * defs.h (enum gdb_osabi): Move to...
9028 * osabi.h (enum gdb_osabi): ... here.
9029 * gdbarch.sh: Include osabi.h in gdbarch.h.
9030 * gdbarch.h: Re-generate.
9031
cb9b645d
SM
90322020-03-16 Simon Marchi <simon.marchi@efficios.com>
9033
9034 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9035 function.
9036 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9037
3293bbaf
TT
90382020-03-14 Tom Tromey <tom@tromey.com>
9039
9040 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9041 for C++.
9042 (c_type_print_modifier): Likewise. Add "language" parameter.
9043 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9044 (c_type_print_base_1): Update.
9045 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9046 constants.
9047 * type-stack.c (type_stack::insert): Handle tp_atomic and
9048 tp_restrict.
9049 (type_stack::follow_type_instance_flags): Likewise.
9050 (type_stack::follow_types): Likewise. Merge type-following code.
9051 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9052 (space_identifier, cv_with_space_id)
9053 (const_or_volatile_or_space_identifier_noopt)
9054 (const_or_volatile_or_space_identifier): Remove.
9055 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9056 rules.
9057 (ptr_operator, typebase): Update.
9058 (enum token_flag) <FLAG_C>: New constant.
9059 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9060 "_Atomic".
9061 (lex_one_token): Handle FLAG_C.
9062
154151a6
KR
90632020-03-14 Kamil Rytarowski <n54@gmx.com>
9064
9065 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9066 it to the ptrace call.
9067 * m68k-bsd-nat.c (store_registers): Likewise.
9068
bc107784
KR
90692020-03-14 Kamil Rytarowski <n54@gmx.com>
9070
9071 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9072 gdb_byte *.
9073 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9074 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9075 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9076
01a80117
KR
90772020-03-14 Kamil Rytarowski <n54@gmx.com>
9078
9079 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9080 nbsd_nat_target instead of inf_ptrace_target.
9081 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9082 nbsd_nat_target.
9083
f90280ca
KR
90842020-03-14 Kamil Rytarowski <n54@gmx.com>
9085
9086 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9087 register_t.
9088
6def66f1
KR
90892020-03-14 Kamil Rytarowski <n54@gmx.com>
9090
9091 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9092 it to the ptrace call.
9093 * alpha-bsd-nat.c (store_registers): Likewise.
9094
66eaca97
KR
90952020-03-14 Kamil Rytarowski <n54@gmx.com>
9096
9097 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9098 includes.
9099 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9100 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9101 fill_fpregset): Likewise.
9102
4fed520b
KR
91032020-03-14 Kamil Rytarowski <n54@gmx.com>
9104
9105 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9106 nbsd_nat_target instead of inf_ptrace_target.
9107 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9108 nbsd_nat_target.
9109
2190cf06
KR
91102020-03-14 Kamil Rytarowski <n54@gmx.com>
9111
9112 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9113 register_t.
9114
75c56d3d
KR
91152020-03-14 Kamil Rytarowski <n54@gmx.com>
9116
9117 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9118 it to the ptrace call.
9119 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9120 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9121 * arm-nbsd-nat.c (store_register): Likewise.
9122 * arm-nbsd-nat.c (store_regs): Likewise.
9123 * arm-nbsd-nat.c (store_fp_register): Likewise.
9124 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9125
6018d381
KR
91262020-03-14 Kamil Rytarowski <n54@gmx.com>
9127
9128 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9129 nbsd_nat_target instead of inf_ptrace_target.
9130 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9131 nbsd_nat_target.
9132
013f99f0
KR
91332020-03-14 Kamil Rytarowski <n54@gmx.com>
9134
9135 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9136 it to the ptrace call.
9137 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9138
12753073
KR
91392020-03-14 Kamil Rytarowski <n54@gmx.com>
9140
6227b330
KR
9141 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9142 it to the ptrace call.
9143 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9144
91452020-03-14 Kamil Rytarowski <n54@gmx.com>
9146
9147 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9148 gdb_byte *.
12753073
KR
9149 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9150
d5be5fa4
KR
91512020-03-14 Kamil Rytarowski <n54@gmx.com>
9152
9153 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9154 instead of inf_ptrace_target.
9155 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9156 nbsd_nat_target.
9157
8110f842
KR
91582020-03-14 Kamil Rytarowski <n54@gmx.com>
9159
9160 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9161 register_t.
9162
52feded7
KR
91632020-03-14 Kamil Rytarowski <n54@gmx.com>
9164
9165 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9166 register_t.
9167
25567eee
KR
91682020-03-14 Kamil Rytarowski <n54@gmx.com>
9169
9170 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9171 register_t.
9172
426a9c18
TT
91732020-03-13 Tom Tromey <tom@tromey.com>
9174
9175 * value.h (val_print): Don't declare.
9176 * valprint.h (val_print_array_elements)
9177 (val_print_scalar_formatted, generic_val_print): Don't declare.
9178 * valprint.c (generic_val_print_array): Take a struct value.
9179 (generic_val_print_ptr, generic_val_print_memberptr)
9180 (generic_val_print_bool, generic_val_print_int)
9181 (generic_val_print_char, generic_val_print_complex)
9182 (generic_val_print): Remove.
9183 (generic_value_print): Update.
9184 (do_val_print): Remove unused parameters. Don't call
9185 la_val_print.
9186 (val_print): Remove.
9187 (common_val_print): Update. Don't call value_check_printable.
9188 (val_print_scalar_formatted, val_print_array_elements): Remove.
9189 * rust-lang.c (rust_val_print): Remove.
9190 (rust_language_defn): Update.
9191 * p-valprint.c (pascal_val_print): Remove.
9192 (pascal_value_print_inner): Update.
9193 (pascal_object_print_val_fields, pascal_object_print_val):
9194 Remove.
9195 (pascal_object_print_static_field): Update.
9196 * p-lang.h (pascal_val_print): Don't declare.
9197 * p-lang.c (pascal_language_defn): Update.
9198 * opencl-lang.c (opencl_language_defn): Update.
9199 * objc-lang.c (objc_language_defn): Update.
9200 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9201 * m2-lang.h (m2_val_print): Don't declare.
9202 * m2-lang.c (m2_language_defn): Update.
9203 * language.h (struct language_defn) <la_val_print>: Remove.
9204 * language.c (unk_lang_value_print_inner): Rename. Change
9205 argument types.
9206 (unknown_language_defn, auto_language_defn): Update.
9207 * go-valprint.c (go_val_print): Remove.
9208 * go-lang.h (go_val_print): Don't declare.
9209 * go-lang.c (go_language_defn): Update.
9210 * f-valprint.c (f_val_print): Remove.
9211 * f-lang.h (f_value_print): Don't declare.
9212 * f-lang.c (f_language_defn): Update.
9213 * d-valprint.c (d_val_print): Remove.
9214 * d-lang.h (d_value_print): Don't declare.
9215 * d-lang.c (d_language_defn): Update.
9216 * cp-valprint.c (cp_print_value_fields)
9217 (cp_print_value_fields_rtti, cp_print_value): Remove.
9218 (cp_print_static_field): Update.
9219 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9220 (c_val_print_struct, c_val_print_union, c_val_print_int)
9221 (c_val_print_memberptr, c_val_print): Remove.
9222 * c-lang.h (c_val_print_array, cp_print_value_fields)
9223 (cp_print_value_fields_rtti): Don't declare.
9224 * c-lang.c (c_language_defn, cplus_language_defn)
9225 (asm_language_defn, minimal_language_defn): Update.
9226 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9227 (ada_val_print_enum): Take a struct value.
9228 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9229 (ada_val_print): Remove.
9230 (ada_value_print_1): Update.
9231 (printable_val_type): Remove.
9232 * ada-lang.h (ada_val_print): Don't declare.
9233 * ada-lang.c (ada_language_defn): Update.
9234
42331a1e
TT
92352020-03-13 Tom Tromey <tom@tromey.com>
9236
9237 * valprint.c (do_val_print): Update.
9238 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9239 a struct value.
9240 (value_to_value_object_no_release): Declare.
9241 * python/py-value.c (value_to_value_object_no_release): New
9242 function.
9243 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9244 struct value.
9245 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9246 function.
9247 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9248 a struct value.
9249 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9250 Declare.
9251 (gdbscm_apply_val_pretty_printer): Take a struct value.
9252 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9253 value.
9254 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9255 value.
9256 * extension-priv.h (struct extension_language_ops)
9257 <apply_val_pretty_printer>: Take a struct value.
9258 * cp-valprint.c (cp_print_value): Create a struct value.
9259 (cp_print_value): Update.
9260
3a916a97
TT
92612020-03-13 Tom Tromey <tom@tromey.com>
9262
9263 * ada-valprint.c (print_field_values): Call common_val_print.
9264
b59eac37
TT
92652020-03-13 Tom Tromey <tom@tromey.com>
9266
9267 * ada-valprint.c (val_print_packed_array_elements): Remove
9268 bitoffset and val parameters. Call common_val_print.
9269 (ada_val_print_string): Remove offset, address, and original_value
9270 parameters.
9271 (ada_val_print_array): Update.
9272 (ada_value_print_array): New function.
9273 (ada_value_print_1): Call it.
9274
03371129
TT
92752020-03-13 Tom Tromey <tom@tromey.com>
9276
9277 * ada-valprint.c (ada_value_print): Use common_val_print.
9278
2e088f8b
TT
92792020-03-13 Tom Tromey <tom@tromey.com>
9280
9281 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9282
39ef85a8
TT
92832020-03-13 Tom Tromey <tom@tromey.com>
9284
9285 * ada-valprint.c (ada_value_print_num): New function.
9286 (ada_value_print_1): Use it.
9287
b9fa6e07
TT
92882020-03-13 Tom Tromey <tom@tromey.com>
9289
9290 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9291
416595d6
TT
92922020-03-13 Tom Tromey <tom@tromey.com>
9293
9294 * ada-valprint.c (ada_value_print_ptr): New function.
9295 (ada_value_print_1): Use it.
9296
5b5e15ec
TT
92972020-03-13 Tom Tromey <tom@tromey.com>
9298
9299 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9300 call common_val_print.
9301 (ada_val_print_1): Update.
9302 (ada_value_print_1): New function.
9303 (ada_value_print_inner): Rewrite.
9304
fbf54e75
TT
93052020-03-13 Tom Tromey <tom@tromey.com>
9306
9307 * cp-valprint.c (cp_print_value_fields): Update.
9308 (cp_print_value): New function.
9309
64b653ca
TT
93102020-03-13 Tom Tromey <tom@tromey.com>
9311
9312 * m2-valprint.c (m2_value_print_inner): Use
9313 cp_print_value_fields.
9314 * cp-valprint.c (cp_print_value_fields): New function.
9315 * c-valprint.c (c_value_print_struct): New function.
9316 (c_value_print_inner): Use c_value_print_struct.
9317 * c-lang.h (cp_print_value_fields): Declare.
9318
6999f067
TT
93192020-03-13 Tom Tromey <tom@tromey.com>
9320
9321 * c-valprint.c (c_value_print_array): New function.
9322 (c_value_print_inner): Use it.
9323
ce80b8bd
TT
93242020-03-13 Tom Tromey <tom@tromey.com>
9325
9326 * c-valprint.c (c_value_print_memberptr): New function.
9327 (c_value_print_inner): Use it.
9328
2faac269
TT
93292020-03-13 Tom Tromey <tom@tromey.com>
9330
9331 * c-valprint.c (c_value_print_int): New function.
9332 (c_value_print_inner): Use it.
9333
da3e2c29
TT
93342020-03-13 Tom Tromey <tom@tromey.com>
9335
9336 * c-valprint.c (c_value_print_ptr): New function.
9337 (c_value_print_inner): Use it.
9338
50836231
TT
93392020-03-13 Tom Tromey <tom@tromey.com>
9340
9341 * c-valprint.c (c_value_print_inner): Rewrite.
9342
4f412b6e
TT
93432020-03-13 Tom Tromey <tom@tromey.com>
9344
9345 * valprint.c (generic_value_print_complex): New function.
9346 (generic_value_print): Use it.
9347
f5354008
TT
93482020-03-13 Tom Tromey <tom@tromey.com>
9349
9350 * valprint.c (generic_val_print_float): Don't call
9351 val_print_scalar_formatted.
9352 (generic_val_print, generic_value_print): Update.
9353
3eec3b05
TT
93542020-03-13 Tom Tromey <tom@tromey.com>
9355
9356 * valprint.c (generic_value_print_char): New function
9357 (generic_value_print): Use it.
9358
fdddfccb
TT
93592020-03-13 Tom Tromey <tom@tromey.com>
9360
9361 * valprint.c (generic_value_print_int): New function.
9362 (generic_value_print): Use it.
9363
6dde7521
TT
93642020-03-13 Tom Tromey <tom@tromey.com>
9365
9366 * valprint.c (generic_value_print_bool): New function.
9367 (generic_value_print): Use it.
9368
4112d2e6
TT
93692020-03-13 Tom Tromey <tom@tromey.com>
9370
9371 * valprint.c (generic_val_print_func): Simplify.
9372 (generic_val_print, generic_value_print): Update.
9373
65786af6
TT
93742020-03-13 Tom Tromey <tom@tromey.com>
9375
9376 * valprint.c (generic_val_print_flags): Remove.
9377 (generic_val_print, generic_value_print): Update.
9378 (val_print_type_code_flags): Add original_value parameter.
9379
40f3ce18
TT
93802020-03-13 Tom Tromey <tom@tromey.com>
9381
9382 * valprint.c (generic_val_print): Update.
9383 (generic_value_print): Update.
9384 * valprint.c (generic_val_print_enum): Don't call
9385 val_print_scalar_formatted.
9386
2a5b130b
TT
93872020-03-13 Tom Tromey <tom@tromey.com>
9388
9389 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9390 * valprint.c (generic_value_print_ptr): New function.
9391
abc66ce9
TT
93922020-03-13 Tom Tromey <tom@tromey.com>
9393
9394 * valprint.c (generic_value_print): Rewrite.
9395
07a32858
TT
93962020-03-13 Tom Tromey <tom@tromey.com>
9397
9398 * p-valprint.c (pascal_object_print_value_fields)
9399 (pascal_object_print_value): New functions.
9400
64d64d3a
TT
94012020-03-13 Tom Tromey <tom@tromey.com>
9402
9403 * p-valprint.c (pascal_value_print_inner): Rewrite.
9404
6a95a1f5
TT
94052020-03-13 Tom Tromey <tom@tromey.com>
9406
9407 * f-valprint.c (f_value_print_innner): Rewrite.
9408
59fcdac6
TT
94092020-03-13 Tom Tromey <tom@tromey.com>
9410
9411 * m2-valprint.c (m2_print_unbounded_array): New overload.
9412 (m2_print_unbounded_array): Update.
9413 (m2_print_array_contents): Take a struct value.
9414 (m2_value_print_inner): Rewrite.
9415
d133c3e1
TT
94162020-03-13 Tom Tromey <tom@tromey.com>
9417
9418 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9419 (d_value_print_inner): New function.
9420 * d-lang.h (d_value_print_inner): Declare.
9421 * d-lang.c (d_language_defn): Use d_value_print_inner.
9422
23b0f06b
TT
94232020-03-13 Tom Tromey <tom@tromey.com>
9424
9425 * go-valprint.c (go_value_print_inner): New function.
9426 * go-lang.h (go_value_print_inner): Declare.
9427 * go-lang.c (go_language_defn): Use go_value_print_inner.
9428
5f56f7cb
TT
94292020-03-13 Tom Tromey <tom@tromey.com>
9430
9431 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9432 API.
9433 (rust_val_print): Rewrite.
9434 (rust_value_print_inner): New function, from rust_val_print.
9435 (rust_language_defn): Use rust_value_print_inner.
9436
26792ee0
TT
94372020-03-13 Tom Tromey <tom@tromey.com>
9438
9439 * ada-valprint.c (ada_value_print_inner): New function.
9440 * ada-lang.h (ada_value_print_inner): Declare.
9441 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9442
24051bbe
TT
94432020-03-13 Tom Tromey <tom@tromey.com>
9444
9445 * f-valprint.c (f_value_print_innner): New function.
9446 * f-lang.h (f_value_print_innner): Declare.
9447 * f-lang.c (f_language_defn): Use f_value_print_innner.
9448
c0941be6
TT
94492020-03-13 Tom Tromey <tom@tromey.com>
9450
9451 * p-valprint.c (pascal_value_print_inner): New function.
9452 * p-lang.h (pascal_value_print_inner): Declare.
9453 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9454
62c4663d
TT
94552020-03-13 Tom Tromey <tom@tromey.com>
9456
9457 * m2-valprint.c (m2_value_print_inner): New function.
9458 * m2-lang.h (m2_value_print_inner): Declare.
9459 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9460
62182190
TT
94612020-03-13 Tom Tromey <tom@tromey.com>
9462
9463 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9464 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9465 * c-valprint.c (c_value_print_inner): New function.
9466 * c-lang.h (c_value_print_inner): Declare.
9467 * c-lang.c (c_language_defn, cplus_language_defn)
9468 (asm_language_defn, minimal_language_defn): Use
9469 c_value_print_inner.
9470
1e592a8a
TT
94712020-03-13 Tom Tromey <tom@tromey.com>
9472
9473 * p-valprint.c (pascal_object_print_value_fields): Now static.
9474 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9475
7fe471e9
TT
94762020-03-13 Tom Tromey <tom@tromey.com>
9477
9478 * c-valprint.c (c_val_print_array): Simplify.
9479
d121c6ce
TT
94802020-03-13 Tom Tromey <tom@tromey.com>
9481
9482 * valprint.c (value_print_array_elements): New function.
9483 * valprint.h (value_print_array_elements): Declare.
9484
4dba70ee
TT
94852020-03-13 Tom Tromey <tom@tromey.com>
9486
9487 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9488 * mips-tdep.c (mips_print_register): Use
9489 value_print_scalar_formatted.
9490
4f9ae810
TT
94912020-03-13 Tom Tromey <tom@tromey.com>
9492
9493 * valprint.h (value_print_scalar_formatted): Declare.
9494 * valprint.c (value_print_scalar_formatted): New function.
9495
156bfec9
TT
94962020-03-13 Tom Tromey <tom@tromey.com>
9497
9498 * valprint.h (generic_value_print): Declare.
9499 * valprint.c (generic_value_print): New function.
9500
2b4e573d
TT
95012020-03-13 Tom Tromey <tom@tromey.com>
9502
9503 * valprint.c (do_val_print): Call la_value_print_inner, if
9504 available.
9505 * rust-lang.c (rust_language_defn): Update.
9506 * p-lang.c (pascal_language_defn): Update.
9507 * opencl-lang.c (opencl_language_defn): Update.
9508 * objc-lang.c (objc_language_defn): Update.
9509 * m2-lang.c (m2_language_defn): Update.
9510 * language.h (struct language_defn) <la_value_print_inner>: New
9511 member.
9512 * language.c (unknown_language_defn, auto_language_defn): Update.
9513 * go-lang.c (go_language_defn): Update.
9514 * f-lang.c (f_language_defn): Update.
9515 * d-lang.c (d_language_defn): Update.
9516 * c-lang.c (c_language_defn, cplus_language_defn)
9517 (asm_language_defn, minimal_language_defn): Update.
9518 * ada-lang.c (ada_language_defn): Update.
9519
a1f6a07c
TT
95202020-03-13 Tom Tromey <tom@tromey.com>
9521
9522 * c-valprint.c (c_value_print): Use common_val_print.
9523
410cf315
TT
95242020-03-13 Tom Tromey <tom@tromey.com>
9525
9526 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9527
72a45c93
TT
95282020-03-13 Tom Tromey <tom@tromey.com>
9529
9530 * f-valprint.c (f77_print_array_1, f_val_print): Use
9531 common_val_print.
9532
040f66bd
TT
95332020-03-13 Tom Tromey <tom@tromey.com>
9534
9535 * riscv-tdep.c (riscv_print_one_register_info): Use
9536 common_val_print.
9537
a6e05a6c
TT
95382020-03-13 Tom Tromey <tom@tromey.com>
9539
9540 * mi/mi-main.c (output_register): Use common_val_print.
9541
3444c526
TT
95422020-03-13 Tom Tromey <tom@tromey.com>
9543
9544 * infcmd.c (default_print_one_register_info): Use
9545 common_val_print.
9546
c2a44efe
TT
95472020-03-13 Tom Tromey <tom@tromey.com>
9548
9549 * valprint.h (common_val_print_checked): Declare.
9550 * valprint.c (common_val_print_checked): New function.
9551 * stack.c (print_frame_arg): Use common_val_print_checked.
9552
b0c26e99
TT
95532020-03-13 Tom Tromey <tom@tromey.com>
9554
9555 * valprint.c (do_val_print): New function, from val_print.
9556 (val_print): Use do_val_print.
9557 (common_val_print): Use do_val_print.
9558
ce3acbe9
TT
95592020-03-13 Tom Tromey <tom@tromey.com>
9560
9561 * valprint.c (value_print): Use scoped_value_mark.
9562
96c7f873
TV
95632020-03-13 Tom de Vries <tdevries@suse.de>
9564
9565 PR symtab/25646
9566 * psymtab.c (partial_symtab::partial_symtab): Don't set
9567 globals_offset and statics_offset. Push element onto
9568 current_global_psymbols and current_static_psymbols stacks.
9569 (concat): New function.
9570 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9571 element from current_global_psymbols and current_static_psymbols
9572 stacks. Concat popped elements to global_psymbols and
9573 static_symbols.
9574 (add_psymbol_to_list): Use current_global_psymbols and
9575 current_static_psymbols stacks.
9576 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9577 current_static_psymbols fields.
9578
6ba0a321
CB
95792020-03-12 Christian Biesinger <cbiesinger@google.com>
9580
9581 * corelow.c (sniff_core_bfd): Remove.
9582 (class core_target) <m_core_vec>: Remove.
9583 (core_target::core_target): Update.
9584 (core_file_fns): Remove.
9585 (deprecated_add_core_fns): Remove.
9586 (default_core_sniffer): Remove.
9587 (sniff_core_bfd): Remove.
9588 (default_check_format): Remove.
9589 (gdb_check_format): Remove.
9590 (core_target_open): Update.
9591 (core_target::get_core_register_section): Update.
9592 (get_core_registers_cb): Update.
9593 (core_target::fetch_registers): Update.
9594 * gdbcore.h (struct core_fns): Remove.
9595 (deprecated_add_core_fns): Remove.
9596 (default_core_sniffer): Remove.
9597 (default_check_format): Remove.
9598
227031b2
TT
95992020-03-12 Tom Tromey <tom@tromey.com>
9600
9601 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9602 CORE_ADDR.
9603 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9604
53807e9f
TT
96052020-03-12 Tom Tromey <tom@tromey.com>
9606
9607 * remote.c (remote_target::download_tracepoint)
9608 (remote_target::enable_tracepoint)
9609 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9610 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9611 sprintf_vma.
9612
64f25102
TT
96132020-03-12 Tom Tromey <tom@tromey.com>
9614
9615 * symfile-mem.c: Update CORE_ADDR size assert.
9616
272cd5a3
SM
96172020-03-12 Simon Marchi <simon.marchi@efficios.com>
9618
9619 * selftest.m4: Move to gdbsupport/.
9620 * acinclude.m4: Update path to selftest.m4.
9621
74cd3f9d
SM
96222020-03-12 Simon Marchi <simon.marchi@efficios.com>
9623
9624 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9625 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9626 gdbarch-selfselftests.c and selftest-arch.c.
9627 (SUBDIR_UNITTESTS_OBS): Rename to...
9628 (SELFTESTS_OBS): ... this.
9629 (COMMON_SFILES): Remove disasm-selftests.c and
9630 gdbarch-selftests.c.
9631 * configure.ac: Don't add selftest-arch.{c,o} to
9632 CONFIG_{SRCS,OBS}.
9633 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9634 preprocessor conditions.
9635
db6878ac
SM
96362020-03-12 Simon Marchi <simon.marchi@efficios.com>
9637
9638 * configure.ac: Don't source bfd/development.sh.
9639 * selftest.m4: Modify comment.
9640 * configure: Re-generate.
9641
4d696a5c
SM
96422020-03-12 Simon Marchi <simon.marchi@efficios.com>
9643
9644 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9645 not "true" or "false".
9646 * configure: Re-generate.
9647
8dd8e1c7
CB
96482020-03-12 Christian Biesinger <cbiesinger@google.com>
9649
9650 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9651 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9652 renamed to arm_nbsd_supply_gregset.
9653 (fetch_register): Update to call arm_nbsd_supply_gregset.
9654 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9655 (arm_netbsd_nat_target::fetch_registers): Update.
9656 (fetch_elfcore_registers): Removed.
9657 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9658 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9659 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9660 not require NetBSD system headers.
9661 (arm_nbsd_regset): New struct.
9662 (arm_nbsd_iterate_over_regset_sections): New function.
9663 (arm_netbsd_init_abi_common): Updated to call
9664 set_gdbarch_iterate_over_regset_sections.
9665 * arm-nbsd-tdep.h: New file.
9666
dd69bf7a
KB
96672020-03-11 Kevin Buettner <kevinb@redhat.com>
9668
9669 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9670 recursion.
9671
a0761e34
SM
96722020-03-11 Simon Marchi <simon.marchi@efficios.com>
9673
9674 * configure: Re-generate.
9675
e7a82140
TT
96762020-03-11 Tom Tromey <tromey@adacore.com>
9677
9678 * ada-typeprint.c (print_choices): Fix comment.
9679
dcc050c8
AB
96802020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9681
9682 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9683 previous item in the list, when the list has no items.
9684
1c33af77
TV
96852020-03-11 Tom de Vries <tdevries@suse.de>
9686
9687 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9688 PROP_LOCLIST handling code.
9689
8c95582d
AB
96902020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9691
9692 * buildsym-legacy.c (record_line): Pass extra parameter to
9693 record_line.
9694 * buildsym.c (buildsym_compunit::record_line): Take an extra
9695 parameter, reduce duplication in the line table, and record the
9696 is_stmt flag in the line table.
9697 * buildsym.h (buildsym_compunit::record_line): Add extra
9698 parameter.
9699 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9700 non-statement lines.
9701 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9702 this to the symtab builder.
9703 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9704 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9705 through to dwarf_record_line_1.
9706 * infrun.c (process_event_stop_test): When stepping, don't stop at
9707 a non-statement instruction, and only refresh the step info when
9708 we land in the middle of a line's range. Also add an extra
9709 comment.
9710 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9711 field.
9712 * record-btrace.c (btrace_find_line_range): Only record lines
9713 marked as is-statement.
9714 * stack.c (frame_show_address): Show the frame address if we are
9715 in a non-statement sal.
9716 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9717 (maintenance_print_one_line_table): Print a header for the is_stmt
9718 column, and include is_stmt information in the output.
9719 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9720 preference to non-statements.
9721 (find_pcs_for_symtab_line): Prefer is-statement entries.
9722 (find_line_common): Likewise.
9723 * symtab.h (struct linetable_entry): Add is_stmt field.
9724 (struct symtab_and_line): Likewise.
9725 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9726 arranging the line table.
9727
e4003a34
TV
97282020-03-07 Tom de Vries <tdevries@suse.de>
9729
9730 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9731 DIE.
9732
e8932576
TT
97332020-03-07 Tom Tromey <tom@tromey.com>
9734
9735 * valops.c (value_literal_complex): Remove obsolete comment.
9736 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9737 comment.
9738
29734269
SM
97392020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9740
9741 * infrun.h: Forward-declare thread_info.
9742 (set_step_info): Add thread_info parameter, add doc.
9743 * infrun.c (set_step_info): Add thread_info parameter, move doc
9744 to header.
9745 * infrun.c (process_event_stop_test): Pass thread to
9746 set_step_info call.
9747 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9748 set_step_info.
9749 (prepare_one_step): Add thread_info parameter, pass it to
9750 set_step_frame and prepare_one_step (recursive) call.
9751 (step_1): Pass thread to prepare_one_step call.
9752 (step_command_fsm::should_stop): Pass thread to
9753 prepare_one_step.
9754 (until_next_fsm): Pass thread to set_step_frame call.
9755 (finish_command): Pass thread to set_step_info call.
9756
b7d64b29
HD
97572020-03-06 Hannes Domani <ssbssa@yahoo.de>
9758
9759 * windows-tdep.c (windows_solib_create_inferior_hook):
9760 Check if inferior is running.
9761
09f2921c
TV
97622020-03-06 Tom de Vries <tdevries@suse.de>
9763
9764 * NEWS: Fix "the the".
9765 * ctfread.c: Same.
9766
fd760e79
TV
97672020-03-06 Tom de Vries <tdevries@suse.de>
9768
9769 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9770
20ea4a60
AB
97712020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9772
9773 * .dir-locals.el: Add a comment referencing the other copies of
9774 this file.
9775
0afbabf0
JB
97762020-03-05 John Baldwin <jhb@FreeBSD.org>
9777
9778 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9779 psargs.
9780
842806cb
TBA
97812020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9782
9783 * .gitattributes: New file.
9784
be1e3d3e
TT
97852020-03-04 Tom Tromey <tom@tromey.com>
9786
9787 * symmisc.c (print_symbol_bcache_statistics)
9788 (print_objfile_statistics): Update.
9789 * symfile.c (allocate_symtab): Use intern.
9790 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9791 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9792 macro_cache>: Remove.
9793 <string_cache>: New member.
9794 (struct objfile) <intern>: New methods.
9795 * elfread.c (elf_symtab_read): Use intern.
9796 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9797 (dwarf2_compute_name, dwarf2_physname)
9798 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9799 names.
9800 (guess_partial_die_structure_name): Update.
9801 (partial_die_info::fixup): Intern name.
9802 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9803 name.
9804 (dwarf2_name): Intern name. Update.
9805 * buildsym.c (buildsym_compunit::get_macro_table): Use
9806 string_cache.
9807
4e7625fd
TT
98082020-03-04 Tom Tromey <tom@tromey.com>
9809
9810 * jit.c (bfd_open_from_target_memory): Make "target" const.
9811 * corefile.c (gnutarget): Now const.
9812 * gdbcore.h (gnutarget): Now const.
9813
46f9f931
HD
98142020-03-04 Hannes Domani <ssbssa@yahoo.de>
9815
9816 * NEWS: Mention support for WOW64 processes.
9817 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9818 (amd64_windows_segment_register_p): Remove static.
9819 (_initialize_amd64_windows_nat): Update.
9820 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9821 * i386-windows-nat.c (context_offset): Update.
9822 (i386_mappings): Rename and remove static.
9823 (i386_windows_segment_register_p): Remove static.
9824 (_initialize_i386_windows_nat): Update.
9825 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9826 (STATUS_WX86_SINGLE_STEP): New macro.
9827 (EnumProcessModulesEx): New macro.
9828 (Wow64SuspendThread): New macro.
9829 (Wow64GetThreadContext): New macro.
9830 (Wow64SetThreadContext): New macro.
9831 (Wow64GetThreadSelectorEntry): New macro.
9832 (windows_set_context_register_offsets): Add static.
9833 (windows_set_segment_register_p): Likewise.
9834 (windows_add_thread): Adapt for WOW64 processes.
9835 (windows_fetch_one_register): Likewise.
9836 (windows_nat_target::fetch_registers): Likewise.
9837 (windows_store_one_register): Likewise.
9838 (display_selector): Likewise.
9839 (display_selectors): Likewise.
9840 (handle_exception): Likewise.
9841 (windows_continue): Likewise.
9842 (windows_nat_target::resume): Likewise.
9843 (windows_add_all_dlls): Likewise.
9844 (do_initial_windows_stuff): Likewise.
9845 (windows_nat_target::attach): Likewise.
9846 (windows_get_exec_module_filename): Likewise.
9847 (windows_nat_target::create_inferior): Likewise.
9848 (windows_xfer_siginfo): Likewise.
9849 (_initialize_loadable): Initialize Wow64SuspendThread,
9850 Wow64GetThreadContext, Wow64SetThreadContext,
9851 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9852 * windows-nat.h (windows_set_context_register_offsets):
9853 Remove declaration.
9854 (windows_set_segment_register_p): Likewise.
9855 (i386_windows_segment_register_p): Add declaration.
9856 (amd64_windows_segment_register_p): Likewise.
9857
440cf44e
LM
98582020-03-04 Luis Machado <luis.machado@linaro.org>
9859
9860 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9861 in "info registers" for AArch64/ARM.
9862
9863 The change caused "info registers" to not print GPR's.
9864
9865 gdb/ChangeLog:
9866
9867 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9868
9869 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9870 when reg->group is empty and reggroup is not.
9871
1009d92f
TT
98722020-03-03 Tom Tromey <tromey@adacore.com>
9873
9874 * dwarf2/frame.c (struct dwarf2_frame_cache)
9875 <checked_tailcall_bottom, entry_cfa_sp_offset,
9876 entry_cfa_sp_offset_p>: Remove members.
9877 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9878 (dwarf2_frame_prev_register): Don't call
9879 dwarf2_tailcall_sniffer_first.
9880 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9881 * frame-unwind.c (add_unwinder): New fuction.
9882 (frame_unwind_init): Use it. Add tailcall unwinder.
9883
5e5d66b6
AB
98842020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9885 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9886
9887 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9888 value should be printed as true.
9889
584cf46d
HD
98902020-03-03 Hannes Domani <ssbssa@yahoo.de>
9891
9892 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9893 (windows_init_abi): Set and use windows_so_ops.
9894
7b973adc
SDJ
98952020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9896
9897 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9898 when verifying if dealing with a convenience variable.
9899
bb7b70ab
LM
99002020-03-03 Luis Machado <luis.machado@linaro.org>
9901
9902 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9903
9822cb57
SM
99042020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9905
9906 * infrun.c (gdbarch_supports_displaced_stepping): New.
9907 (use_displaced_stepping): Break up conditions in smaller pieces.
9908 Use gdbarch_supports_displaced_stepping.
9909 (displaced_step_prepare_throw): Use
9910 gdbarch_supports_displaced_stepping.
9911
63e163f2
AB
99122020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9913
9914 * NEWS: Mention new behaviour of the history filename.
9915 * top.c (write_history_p): Add comment.
9916 (show_write_history_p): Add header comment, give a different
9917 message when history writing is on, but the history filename is
9918 empty.
9919 (history_filename): Add comment.
9920 (history_filename_empty): New function.
9921 (show_history_filename): Add header comment, give a different
9922 message when the filename is empty.
9923 (init_history): Compare history_filename against nullptr, and only
9924 read history if the filename is not empty.
9925 (set_history_filename): Add header comment, and only make
9926 non-empty filenames absolute.
9927 (init_main): Make the filename argument to 'set history filename'
9928 optional.
9929
81b86b97
CB
99302020-03-02 Christian Biesinger <cbiesinger@google.com>
9931
9932 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9933 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9934 (fetch_fp_register): Update.
9935 (fetch_fp_regs): Update.
9936 (store_fp_register): Update.
9937 (store_fp_regs): Update.
9938 (arm_netbsd_nat_target::read_description): New function.
9939 (fetch_elfcore_registers): Update.
9940
24ed6739
AB
99412020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9942
9943 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9944 general_thread if the stop reply is missing a thread-id.
9945 (remote_target::process_stop_reply): Use the first non-exited
9946 thread if the target didn't pass a thread-id.
9947 * infrun.c (do_target_wait): Move call to
9948 switch_to_inferior_no_thread to ....
9949 (do_target_wait_1): ... here.
9950
a84bb2a0
JT
99512020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9952
9953 * debuginfod-support.c: Include defs.h first.
9954
658dadf0
TV
99552020-02-28 Tom de Vries <tdevries@suse.de>
9956
9957 * symfile.c (set_initial_language): Use default language for lookup.
9958
4ebe4877
SM
99592020-02-28 Simon Marchi <simon.marchi@efficios.com>
9960
9961 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9962 reader variable, pass `this` to read_cutu_die_from_dwo.
9963
e5da1139
AM
99642020-02-27 Aaron Merey <amerey@redhat.com>
9965
9966 * source.c (open_source_file): Check for nullptr when computing
9967 srcpath.
9968
317f7127
TT
99692020-02-27 Tom Tromey <tromey@adacore.com>
9970
9971 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9972 member.
9973 (dwarf2_add_field): Don't update nfields.
9974 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9975
3104d9ee
AB
99762020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9977
9978 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9979 abs.
9980
b83470bf
TT
99812020-02-26 Tom Tromey <tom@tromey.com>
9982
9983 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9984 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9985 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9986 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9987 per_cu_data.
9988
edfe0a0c
TT
99892020-02-26 Tom Tromey <tom@tromey.com>
9990
9991 * dwarf2/index-write.c (psym_index_map): Change type.
9992 (add_address_entry_worker, write_one_signatured_type)
9993 (recursively_count_psymbols, recursively_write_psymbols)
9994 (class debug_names, psyms_seen_size, write_gdbindex)
9995 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9996
0d79cdc4
AM
99972020-02-26 Aaron Merey <amerey@redhat.com>
9998
9999 * Makefile.in: Handle optional debuginfod support.
10000 * NEWS: Update.
10001 * README: Add --with-debuginfod summary.
10002 * config.in: Regenerate.
10003 * configure: Regenerate.
10004 * configure.ac: Handle optional debuginfod support.
10005 * debuginfod-support.c: debuginfod helper functions.
10006 * debuginfod-support.h: Ditto.
10007 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10008 summary.
10009 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10010 when a dwz file cannot be found.
10011 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10012 debuginfo file cannot be found.
10013 * source.c (open_source_file): Query debuginfod servers when a
10014 source file cannot be found.
10015 * top.c (print_gdb_configuration): Include
10016 --{with,without}-debuginfod in the output.
10017
b65ce565
JG
100182020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10019
10020 * thread.c (thr_try_catch_cmd): Print thread name.
10021
d4c9a4f8
SM
100222020-02-26 Simon Marchi <simon.marchi@efficios.com>
10023
10024 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10025 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10026 dwarf2_fetch_die_type_sect_off): Move to...
10027 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10028 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10029 dwarf2_fetch_die_type_sect_off): ... here.
10030 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10031 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10032 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10033
0dce4280
TV
100342020-02-26 Tom de Vries <tdevries@suse.de>
10035
10036 PR gdb/25603
10037 * symfile.c (set_initial_language): Exit-early if
10038 language_mode == language_mode_manual.
10039
450a1bfc
SM
100402020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10041
10042 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10043 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10044 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10045
9e80cfa1
AB
100462020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10047
10048 * gdbtypes.c (create_array_type_with_stride): Handle negative
10049 array strides.
10050 * valarith.c (value_subscripted_rvalue): Likewise.
10051
09624f1f
LM
100522020-02-25 Luis Machado <luis.machado@linaro.org>
10053
10054 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10055
8cb5117c
SM
100562020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10057
10058 * loc.h (dwarf2_get_die_type): Move to...
10059 * read.h (dwarf2_get_die_type): ... here.
10060 * read.c (dwarf2_get_die_type): Move doc to header.
10061
c325c44e
JB
100622020-02-25 Joel Brobecker <brobecker@adacore.com>
10063
10064 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10065 'gnulib/Makefile.in' to the list.
10066
4ac93832
TT
100672020-02-24 Tom Tromey <tom@tromey.com>
10068
10069 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10070 Remove.
10071 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10072 XOBNEWVEC.
10073
197400e8
TT
100742020-02-24 Tom Tromey <tom@tromey.com>
10075
10076 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10077 New method.
10078 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10079 (dw2_do_instantiate_symtab, dw2_get_file_names)
10080 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10081
76935768
TT
100822020-02-24 Tom Tromey <tom@tromey.com>
10083
10084 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10085 make_scoped_restore.
10086 (dwarf2_psymtab::read_symtab): Don't clear
10087 reading_partial_symbols.
10088
a88ef40d
TV
100892020-02-24 Tom de Vries <tdevries@suse.de>
10090
10091 PR gdb/25592
10092 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10093
c9af6521
TV
100942020-02-24 Tom de Vries <tdevries@suse.de>
10095
10096 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10097 commands layout next/prev/regs.
10098
5707a07a
TT
100992020-02-22 Tom Tromey <tom@tromey.com>
10100
10101 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10102 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10103
3b0fb49e
TT
101042020-02-22 Tom Tromey <tom@tromey.com>
10105
10106 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10107
283be8bf
TT
101082020-02-22 Tom Tromey <tom@tromey.com>
10109
10110 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10111 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10112 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10113 * tui/tui.c (_initialize_tui): Add usage text.
10114
ca793b96
TT
101152020-02-22 Tom Tromey <tom@tromey.com>
10116
10117 * tui/tui-win.c (tui_set_focus_command)
10118 (tui_set_win_height_command): Use error_no_arg.
10119 (_initialize_tui_win): Update help text.
10120 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10121
432b5c40
TT
101222020-02-22 Tom Tromey <tom@tromey.com>
10123
10124 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10125 * tui/tui-disasm.h (struct tui_disasm_window)
10126 <display_start_addr>: Declare.
10127 * tui/tui-source.h (struct tui_source_window)
10128 <display_start_addr>: Declare.
10129 * tui/tui-winsource.h (struct tui_source_window_base)
10130 <show_source_line, display_start_addr>: New methods.
10131 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10132 Rename and move to protected section.
10133 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10134 (tui_source_window_base::do_erase_source_content): Update.
10135 (tui_source_window_base::show_source_line): Now a method.
10136 (tui_source_window_base::show_source_content)
10137 (tui_source_window_base::tui_source_window_base)
10138 (tui_source_window_base::rerender)
10139 (tui_source_window_base::refill)
10140 (tui_source_window_base::do_scroll_horizontal)
10141 (tui_source_window_base::set_is_exec_point_at)
10142 (tui_source_window_base::update_breakpoint_info)
10143 (tui_source_window_base::update_exec_info): Update.
10144 * tui/tui-source.c (tui_source_window::set_contents)
10145 (tui_source_window::showing_source_p)
10146 (tui_source_window::do_scroll_vertical)
10147 (tui_source_window::location_matches_p)
10148 (tui_source_window::line_is_displayed): Update.
10149 (tui_source_window::display_start_addr): New method.
10150 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10151 (tui_disasm_window::do_scroll_vertical)
10152 (tui_disasm_window::location_matches_p): Update.
10153 (tui_disasm_window::display_start_addr): New method.
10154
01b1af32
TT
101552020-02-22 Tom Tromey <tom@tromey.com>
10156
10157 * NEWS: Add entry for gdb.register_window_type.
10158 * tui/tui-layout.h (window_factory): New typedef.
10159 (tui_register_window): Declare.
10160 * tui/tui-layout.c (saved_tui_windows): New global.
10161 (tui_apply_current_layout): Use it.
10162 (tui_register_window): New function.
10163 * python/python.c (do_start_initialization): Call
10164 gdbpy_initialize_tui.
10165 (python_GdbMethods): Add "register_window_type" function.
10166 * python/python-internal.h (gdbpy_register_tui_window)
10167 (gdbpy_initialize_tui): Declare.
10168 * python/py-tui.c: New file.
10169 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10170
fc96d20b
TT
101712020-02-22 Tom Tromey <tom@tromey.com>
10172
10173 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10174
935c78c0
TT
101752020-02-22 Tom Tromey <tom@tromey.com>
10176
10177 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10178 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10179 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10180 (tui_set_win_focus_to): Move from tui-win.c.
10181
0240c8f1
TT
101822020-02-22 Tom Tromey <tom@tromey.com>
10183
10184 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10185 functions.
10186 (known_window_types): New global.
10187 (tui_get_window_by_name): Reimplement.
10188 (initialize_known_windows): New function.
10189 (validate_window_name): Rewrite.
10190 (_initialize_tui_layout): Call initialize_known_windows.
10191
fdb01f0c
TT
101922020-02-22 Tom Tromey <tom@tromey.com>
10193
10194 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10195 Remove constants.
10196 * tui/tui-winsource.h (struct tui_source_window_base)
10197 <tui_source_window_base>: Remove parameter.
10198 * tui/tui-winsource.c
10199 (tui_source_window_base::tui_source_window_base): Remove
10200 parameter.
10201 (tui_source_window_base::refill): Update.
10202 * tui/tui-stack.h (struct tui_locator_window)
10203 <tui_locator_window>: Update.
10204 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10205 Default the constructor.
10206 * tui/tui-regs.h (struct tui_data_item_window)
10207 <tui_data_item_window>: Default the constructor.
10208 (struct tui_data_window) <tui_data_window>: Likewise.
10209 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10210 Default the constructor.
10211 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10212 Default the constructor.
10213 <type>: Remove.
10214 (struct tui_win_info) <tui_win_info>: Default the constructor.
10215 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10216 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10217 Default the constructor.
10218
865a5aec
TT
102192020-02-22 Tom Tromey <tom@tromey.com>
10220
10221 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10222 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10223 * tui/tui-win.c (tui_resize_all): Don't call
10224 tui_delete_invisible_windows.
10225 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10226 done.
10227 (tui_set_layout): Update.
10228 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10229 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10230 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10231
e098d18c
TT
102322020-02-22 Tom Tromey <tom@tromey.com>
10233
10234 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10235 correctly.
10236
eb9c8874
TT
102372020-02-22 Tom Tromey <tom@tromey.com>
10238
10239 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10240
7eed1a8e
TT
102412020-02-22 Tom Tromey <tom@tromey.com>
10242
10243 * tui/tui-winsource.h (struct tui_source_window_iterator)
10244 <inner_iterator>: New etytypedef.
10245 <tui_source_window_iterator>: Take "end" parameter.
10246 <tui_source_window_iterator>: Take iterator.
10247 <operator*, advance>: Update.
10248 <m_iter>: Change type.
10249 <m_end>: New field.
10250 (struct tui_source_windows) <begin, end>: Update.
10251 * tui/tui-layout.c (tui_windows): New global.
10252 (tui_apply_current_layout): Clear tui_windows.
10253 (tui_layout_window::apply): Update tui_windows.
10254 * tui/tui-data.h (tui_windows): Declare.
10255 (all_tui_windows): Now inline function.
10256 (class tui_window_iterator, struct all_tui_windows): Remove.
10257
7c043ba6
TT
102582020-02-22 Tom Tromey <tom@tromey.com>
10259
10260 PR tui/17850:
10261 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10262 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10263 "height" argument.
10264 (class tui_layout_window) <get_sizes>: Likewise.
10265 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10266 argument.
10267 <get_sizes>: Add "height" argument.
10268 <m_vertical>: New field.
10269 * tui/tui-layout.c (tui_layout_split::clone): Update.
10270 (tui_layout_split::get_sizes): Add "height" argument.
10271 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10272 (tui_new_layout_command): Parse "-horizontal".
10273 (_initialize_tui_layout): Update help string.
10274 (tui_layout_split::specification): Add "-horizontal" when needed.
10275 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10276 argument.
10277 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10278 New methods.
10279
6bc56648
TT
102802020-02-22 Tom Tromey <tom@tromey.com>
10281
10282 * tui/tui-layout.h (enum tui_adjust_result): New.
10283 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10284 (class tui_layout_window) <adjust_size>: Return
10285 tui_adjust_result. Rewrite.
10286 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10287 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10288
c22fef7e
TT
102892020-02-22 Tom Tromey <tom@tromey.com>
10290
10291 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10292 parameter and return types.
10293 (class tui_layout_base) <specification>: Add "depth".
10294 (class tui_layout_window) <specification>: Add "depth".
10295 (class tui_layout_split) <specification>: Add "depth".
10296 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10297 and return types.
10298 (tui_new_layout_command): Parse sub-layouts.
10299 (_initialize_tui_layout): Update help string.
10300 (tui_layout_window::specification): Add "depth".
10301 (add_layout_command): Update.
10302
ee325b61
TT
103032020-02-22 Tom Tromey <tom@tromey.com>
10304
10305 * NEWS: Add "tui new-layout" item.
10306 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10307 Add new-layout command to help text.
10308 (validate_window_name): New function.
10309 (tui_new_layout_command): New function.
10310 (_initialize_tui_layout): Register "new-layout".
10311 (tui_layout_window::specification): New method.
10312 (tui_layout_window::specification): New method.
10313 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10314 method.
10315 (class tui_layout_window) <specification>: New method.
10316 (class tui_layout_split) <specification>: New method.
10317
416eb92d
TT
103182020-02-22 Tom Tromey <tom@tromey.com>
10319
10320 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10321 * tui/tui-win.c (window_name_completer): Update comment.
10322 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10323 Declare method.
10324 (class tui_layout_window) <replace_window>: Likewise.
10325 (class tui_layout_split) <replace_window>: Likewise.
10326 (tui_set_layout): Don't declare.
10327 (tui_set_initial_layout): Declare function.
10328 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10329 (asm_regs_layout): New globals.
10330 (tui_current_layout, show_layout): Remove.
10331 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10332 (find_layout, tui_apply_layout): New function.
10333 (layout_completer): Remove.
10334 (tui_next_layout): Reimplement.
10335 (tui_next_layout_command): New function.
10336 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10337 (tui_regs_layout): Reimplement.
10338 (tui_regs_layout_command): New function.
10339 (extract_display_start_addr): Rewrite.
10340 (next_layout, prev_layout): Remove.
10341 (tui_layout_window::replace_window): New method.
10342 (tui_layout_split::replace_window): New method.
10343 (destroy_layout): New function.
10344 (layout_list): New global.
10345 (add_layout_command): New function.
10346 (initialize_layouts): Update.
10347 (tui_layout_command): New function.
10348 (_initialize_tui_layout): Install "layout" commands.
10349 * tui/tui-data.h (enum tui_layout_type): Remove.
10350 (tui_current_layout): Don't declare.
10351
0dbc2fc7
TT
103522020-02-22 Tom Tromey <tom@tromey.com>
10353
10354 * tui/tui-regs.c (tui_reg_layout): Remove.
10355 (tui_reg_command): Use tui_regs_layout.
10356 * tui/tui-layout.h (tui_reg_command): Declare.
10357 * tui/tui-layout.c (tui_reg_command): New function.
10358
5afe342e
TT
103592020-02-22 Tom Tromey <tom@tromey.com>
10360
10361 * tui/tui.c (tui_rl_delete_other_windows): Call
10362 tui_remove_some_windows.
10363 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10364 Declare method.
10365 (class tui_layout_window) <remove_windows>: New method.
10366 (class tui_layout_split) <remove_windows>: Declare.
10367 (tui_remove_some_windows): Declare.
10368 * tui/tui-layout.c (tui_remove_some_windows): New function.
10369 (tui_layout_split::remove_windows): New method.
10370
427326a8
TT
103712020-02-22 Tom Tromey <tom@tromey.com>
10372
10373 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10374 * tui/tui-layout.h (tui_next_layout): Declare.
10375 * tui/tui-layout.c (tui_next_layout): New function.
10376
3fe12b6d
TT
103772020-02-22 Tom Tromey <tom@tromey.com>
10378
10379 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10380 correct coordinates.
10381
59b8b5d2
TT
103822020-02-22 Tom Tromey <tom@tromey.com>
10383
10384 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10385 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10386 DATA_WIN case.
10387
2a3d458b
TT
103882020-02-22 Tom Tromey <tom@tromey.com>
10389
10390 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10391 TUI_DISASM_WIN, not tui_win_list.
10392
3f0cbb04
TT
103932020-02-22 Tom Tromey <tom@tromey.com>
10394
10395 * valprint.c (generic_val_print_enum_1)
10396 (val_print_type_code_flags): Style member names.
10397 * rust-lang.c (val_print_struct, rust_print_enum)
10398 (rust_print_struct_def, rust_internal_print_type): Style member
10399 names.
10400 * p-valprint.c (pascal_object_print_value_fields): Style member
10401 names. Only call fprintf_symbol_filtered for static members.
10402 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10403 * f-valprint.c (f_val_print): Style member names.
10404 * f-typeprint.c (f_type_print_base): Style member names.
10405 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10406 call fprintf_symbol_filtered for static members.
10407 (cp_print_class_member): Style member names.
10408 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10409 member names.
10410 * ada-valprint.c (ada_print_scalar): Style enum names.
10411 (ada_val_print_enum): Likewise.
10412 * ada-typeprint.c (print_enum_type): Style enum names.
10413
d4d947ae
TT
104142020-02-21 Tom Tromey <tom@tromey.com>
10415
10416 * psympriv.h (struct partial_symtab): Update comment.
10417
e94e944b
TT
104182020-02-21 Tom Tromey <tromey@adacore.com>
10419
10420 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10421 type is CORE_ADDR.
10422
1eb73179
TV
104232020-02-21 Tom de Vries <tdevries@suse.de>
10424
10425 PR gdb/25534
10426 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10427 if dependencies[i]->user != NULL.
10428
4f180d53
AT
104292020-02-21 Ali Tamur <tamur@google.com>
10430
10431 * dwarf2/read.c (dwarf2_name): Add null check.
10432
22b6cd70
TT
104332020-02-20 Tom Tromey <tom@tromey.com>
10434
10435 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10436 ">=", in binary search.
10437 (dwarf2_find_containing_comp_unit): New overload.
10438 (run_test): New self-test.
10439 (_initialize_dwarf2_read): Register new test.
10440
bd0cf5a6
NC
104412020-02-20 Nelson Chu <nelson.chu@sifive.com>
10442
10443 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10444 * riscv-tdep.h: Likewise.
10445 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10446 rv32-only CSR.
10447 * features/riscv/64bit-csr.xml: Regenerated.
10448
3f702acd
SDJ
104492020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10450 Tom Tromey <tom@tromey.com>
10451
10452 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10453 of 'fputc_unfiltered'.
10454 (putchar_unfiltered): Call 'fputc_unfiltered'.
10455 (fputc_unfiltered): Call 'fputs_unfiltered'.
10456
d13c7322
AB
104572020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10458
10459 * config.in: Regenerate.
10460 * configure: Regenerate.
10461 * configure.ac: Add --with-python-libdir option.
10462 * main.c: Use WITH_PYTHON_LIBDIR.
10463
869d8950
TT
104642020-02-19 Tom Tromey <tom@tromey.com>
10465
10466 * symtab.c (general_symbol_info::compute_and_set_names): Use
10467 obstack_strndup. Simplify call to symbol_set_demangled_name.
10468
298e9637
SM
104692020-02-19 Simon Marchi <simon.marchi@efficios.com>
10470
10471 * dwarf2/read.c (allocate_signatured_type_table,
10472 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10473 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10474 Remove objfile parameter, update all callers.
10475
08410482
DE
104762020-02-19 Doug Evans <dje@google.com>
10477
10478 PR rust/25535
10479 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10480 rust_enum_variant calculation.
10481
dfdeeca1
TT
104822020-02-19 Tom Tromey <tromey@adacore.com>
10483
10484 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10485
2ef5453b
TT
104862020-02-19 Tom Tromey <tromey@adacore.com>
10487
10488 * ada-lang.c (cache_symbol): Use obstack_strdup.
10489
9f1528a1
AB
104902020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10491
10492 * configure: Regenerate.
10493
d3c22fa8
TT
104942020-02-19 Tom Tromey <tromey@adacore.com>
10495
10496 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10497 NULL check.
10498
bf84f706
MR
104992020-02-19 Maciej W. Rozycki <macro@wdc.com>
10500
10501 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10502
d1c9b20f
AB
105032020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10504
10505 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10506 if GDBSERVER is not defined.
10507 (riscv_tdesc_cache): Likewise, also store const target_desc.
10508 (STATIC_IN_GDB): Define.
10509 (riscv_create_target_description): Update declaration with
10510 STATIC_IN_GDB.
10511 (riscv_lookup_target_description): New function, only define if
10512 GDBSERVER is not defined.
10513 * arch/riscv.h (riscv_create_target_description): Declare only
10514 when GDBSERVER is defined.
10515 (riscv_lookup_target_description): New declaration when GDBSERVER
10516 is not defined.
10517 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10518 (riscv_linux_read_features): ...this, and return
10519 riscv_gdbarch_features instead of target_desc.
10520 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10521 (riscv_linux_read_description): Rename to...
10522 (riscv_linux_read_features): ...this.
10523 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10524 Update to use riscv_gdbarch_features and
10525 riscv_lookup_target_description.
10526 * riscv-tdep.c (riscv_find_default_target_description): Use
10527 riscv_lookup_target_description instead of
10528 riscv_create_target_description.
10529
373d7ac0
SM
105302020-02-18 Simon Marchi <simon.marchi@efficios.com>
10531
10532 * valprint.c (generic_val_print_enum_1): When printing a flag
10533 enum with value 0 and there is no enumerator with value 0, print
10534 just "0" instead of "(unknown: 0x0)".
10535
b29a2df0
SM
105362020-02-18 Simon Marchi <simon.marchi@efficios.com>
10537
10538 * valprint.c (generic_val_print_enum_1): Print unknown part of
10539 flag enum in hex.
10540
6740f0cc
SM
105412020-02-18 Simon Marchi <simon.marchi@efficios.com>
10542
10543 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10544 flag enums to contain duplicate enumerators.
10545 * valprint.c (generic_val_print_enum_1): Update comment.
10546
edd45eb0
SM
105472020-02-18 Simon Marchi <simon.marchi@efficios.com>
10548
10549 * dwarf2/read.c: Include "count-one-bits.h".
10550 (update_enumeration_type_from_children): If an enumerator has
10551 multiple bits set, don't treat the enumeration as a "flag enum".
10552 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10553 of flag enums have 0 or 1 bit set.
10554
6d0cf446
BE
105552020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10556
10557 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10558 conversion.
10559 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10560 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10561 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10562 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10563 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10564
7001c1b7
SM
105652020-02-18 Simon Marchi <simon.marchi@efficios.com>
10566
10567 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10568
fdb61c6c
SM
105692020-02-14 Simon Marchi <simon.marchi@efficios.com>
10570
10571 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10572 displaced_step_closure_up.
10573 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10574 (struct displaced_step_closure_up):
10575 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10576 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10577 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10578 Likewise.
10579 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10580 * gdbarch.c, gdbarch.h: Re-generate.
10581 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10582 displaced_step_closure_up.
10583 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10584 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10585 * infrun.h (displaced_step_closure_up): New type alias.
10586 (struct displaced_step_inferior_state) <step_closure>: Change
10587 type to displaced_step_closure_up.
10588 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10589 displaced_step_closure_up.
10590 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10591
a4a38eb4
TT
105922020-02-14 Tom Tromey <tom@tromey.com>
10593
10594 * minidebug.c (gnu_debug_key): New global.
10595 (find_separate_debug_file_in_section): Use it.
10596
e8217e61
SM
105972020-02-14 Simon Marchi <simon.marchi@efficios.com>
10598
10599 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10600 std::unique_ptr.
10601 * gdbarch.c: Re-generate.
10602 * gdbarch.h: Re-generate.
10603 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10604 change.
10605 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10606 type to std::unique_ptr.
10607 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10608 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10609 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10610 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10611 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10612 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10613 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10614 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10615 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10616
d8d83535
SM
106172020-02-14 Simon Marchi <simon.marchi@efficios.com>
10618
10619 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10620 std::unique_ptr.
10621 (displaced_step_clear): Rename to...
10622 (displaced_step_reset): ... this. Just call displaced->reset ().
10623 (displaced_step_clear_cleanup): Rename to...
10624 (displaced_step_reset_cleanup): ... this.
10625 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10626 (displaced_step_fixup): Likewise.
10627 (resume_1): Likewise.
10628 (handle_inferior_event): Restore child's memory before calling
10629 displaced_step_fixup on the parent.
10630 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10631 to std::unique_ptr.
10632 <step_closure>: Change type to std::unique_ptr.
10633
5f661e03
SM
106342020-02-14 Simon Marchi <simon.marchi@efficios.com>
10635
10636 * arm-tdep.c: Include count-one-bits.h.
10637 (cleanup_block_store_pc): Use count_one_bits.
10638 (cleanup_block_load_pc): Use count_one_bits.
10639 (arm_copy_block_xfer): Use count_one_bits.
10640 (thumb2_copy_block_xfer): Use count_one_bits.
10641 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10642 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10643 (thumb_get_next_pcs_raw): Use count_one_bits.
10644 (arm_get_next_pcs_raw): Use count_one_bits_l.
10645 * arch/arm.c (bitcount): Remove.
10646 * arch/arm.h (bitcount): Remove.
10647
8084e579
TT
106482020-02-14 Tom Tromey <tromey@adacore.com>
10649
10650 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10651 Update.
10652 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10653 * dwarf2/loc.c (call_site_find_chain_1): Return
10654 unique_xmalloc_ptr.
10655 (call_site_find_chain): Likewise.
10656
258bf0ee
RB
106572020-02-14 Richard Biener <rguenther@suse.de>
10658
10659 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10660 on expression with division operators.
10661
f98a8458
AKS
106622020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10663
10664 * MAINTAINERS (Write After Approval): Adding myself.
10665
d1437c0e
TT
106662020-02-12 Tom Tromey <tom@tromey.com>
10667
10668 * event-loop.c (event_data, gdb_event, event_handler_func):
10669 Remove.
10670
3d4560f7
TT
106712020-02-12 Tom Tromey <tom@tromey.com>
10672
10673 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10674 (dwarf2_frame_objfile_data): Add comment.
10675 (find_comp_unit, set_comp_unit): New functions.
10676 (dwarf2_frame_find_fde): Use find_comp_unit.
10677 (dwarf2_build_frame_info): Use set_comp_unit.
10678
21982304
TT
106792020-02-12 Tom Tromey <tom@tromey.com>
10680
10681 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10682 (comp_unit): Don't initialize objfile.
10683 (execute_cfa_program): Add text_offset parameter.
10684 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10685 (dwarf2_frame_cache): Update.
10686 (dwarf2_build_frame_info): Don't set "objfile" member.
10687
4debb237
TT
106882020-02-12 Tom Tromey <tom@tromey.com>
10689
10690 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10691 (decode_frame_entry): Likewise.
10692 (dwarf2_build_frame_info): Update.
10693
0d404d44
TT
106942020-02-12 Tom Tromey <tom@tromey.com>
10695
10696 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10697 (decode_frame_entry_1): Use the comp_unit obstack.
10698
a7a3ae5c
TT
106992020-02-12 Tom Tromey <tom@tromey.com>
10700
10701 * dwarf2/frame.c (struct comp_unit): Add initializers and
10702 constructor.
10703 (dwarf2_frame_objfile_data): Store a comp_unit.
10704 (dwarf2_frame_find_fde): Update.
10705 (dwarf2_build_frame_info): Use "new".
10706
a9d65418
TT
107072020-02-12 Tom Tromey <tom@tromey.com>
10708
10709 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10710 (dwarf2_fde_table): Typedef for std::vector.
10711 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10712 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10713 (decode_frame_entry): Update.
10714 (dwarf2_build_frame_info): Use "new".
10715
7559c217
CB
107162020-02-12 Christian Biesinger <cbiesinger@google.com>
10717
10718 * arm-tdep.c (arm_gdbarch_init): Update.
10719 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10720 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10721 have_neon, is_m>: Change to bool.
10722
aeefc73c
CB
107232020-02-12 Christian Biesinger <cbiesinger@google.com>
10724
10725 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10726
d27b8e5f
TT
107272020-02-12 Tom Tromey <tom@tromey.com>
10728
10729 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10730
cd5900f3
HD
107312020-02-12 Hannes Domani <ssbssa@yahoo.de>
10732
10733 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10734 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10735
f056b22b
TT
107362020-02-11 Tom Tromey <tom@tromey.com>
10737
10738 * psymtab.h: Update comment.
10739
f92ff6b5
TT
107402020-02-11 Tom Tromey <tom@tromey.com>
10741
10742 * gdb_obstack.h (struct auto_obstack): Use
10743 DISABLE_COPY_AND_ASSIGN.
10744
3fd6912b
TT
107452020-02-11 Tom Tromey <tom@tromey.com>
10746
10747 * dwarf2/frame.h (struct objfile): Don't forward declare.
10748
69ed9b74
CB
107492020-02-11 Christian Biesinger <cbiesinger@google.com>
10750
10751 * cris-tdep.c (cris_supply_gregset): Change signature to match
10752 what struct regset expects.
10753 (cris_regset): New struct.
10754 (fetch_core_registers): Remove.
10755 (cris_iterate_over_regset_sections): New function.
10756 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10757 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10758
bda874f6
CB
107592020-02-11 Christian Biesinger <cbiesinger@google.com>
10760
10761 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10762 registers.
10763
754e1564
CB
107642020-02-11 Christian Biesinger <cbiesinger@google.com>
10765
10766 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10767
8ddd8e0e
SM
107682020-02-11 Simon Marchi <simon.marchi@efficios.com>
10769
10770 * configure: Re-generate.
10771
898e7f60
SM
107722020-02-11 Simon Marchi <simon.marchi@efficios.com>
10773
10774 * configure: Re-generate.
10775
58df732b
SM
107762020-02-11 Simon Marchi <simon.marchi@efficios.com>
10777
10778 * acinclude: Update warning.m4 path.
10779 * warning.m4: Move to gdbsupport.
10780
da5bd37e
TT
107812020-02-11 Tom Tromey <tromey@adacore.com>
10782
10783 * remote.c (remote_console_output): Update.
10784 * printcmd.c (printf_command): Update.
10785 * event-loop.c (gdb_wait_for_event): Update.
10786 * linux-nat.c (sigchld_handler): Update.
10787 * remote-sim.c (gdb_os_write_stdout): Update.
10788 (gdb_os_flush_stdout): Update.
10789 (gdb_os_flush_stderr): Update.
10790 (gdb_os_write_stderr): Update.
10791 * exceptions.c (print_exception): Update.
10792 * remote-fileio.c (remote_fileio_func_read): Update.
10793 (remote_fileio_func_write): Update.
10794 * tui/tui.c (tui_enable): Update.
10795 * tui/tui-interp.c (tui_interp::init): Update.
10796 * utils.c (init_page_info): Update.
10797 (putchar_unfiltered, fputc_unfiltered): Update.
10798 (gdb_flush): Update.
10799 (emit_style_escape): Update.
10800 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10801 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10802 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10803 (stderr_file::write): Update.
10804 (stderr_file::puts): Update.
10805 * ui-file.h (ui_file_isatty, ui_file_write)
10806 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10807 (ui_file_puts): Don't declare.
10808
85f0dd3c
TV
108092020-02-10 Tom de Vries <tdevries@suse.de>
10810
10811 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10812 sentinel to char *.
10813
2e927613
TV
108142020-02-09 Tom de Vries <tdevries@suse.de>
10815
10816 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10817 filename if it matches "<artificial>".
10818
6bafc845
HD
108192020-02-09 Hannes Domani <ssbssa@yahoo.de>
10820
10821 * windows-tdep.c (struct enum_value_name): New struct.
10822 (create_enum): New function.
10823 (windows_get_siginfo_type): Create and use enum types.
10824
7928d571
HD
108252020-02-09 Hannes Domani <ssbssa@yahoo.de>
10826
10827 * NEWS: Mention $_siginfo support for Windows.
10828 * windows-nat.c (handle_exception): Set siginfo_er.
10829 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10830 (windows_xfer_siginfo): New function.
10831 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10832 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10833 (init_windows_gdbarch_data): New function.
10834 (get_windows_gdbarch_data): New function.
10835 (windows_get_siginfo_type): New function.
10836 (windows_init_abi): Register windows_get_siginfo_type.
10837 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10838
6751ebae
TT
108392020-02-08 Tom Tromey <tom@tromey.com>
10840
10841 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10842 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10843 <keep>: Declare method.
10844 <m_keep>: Remove member.
10845 <~cutu_reader>: Remove.
10846 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10847 (cutu_reader::cutu_reader): Update.
10848 (cutu_reader::keep): Rename from ~cutu_reader.
10849 (process_psymtab_comp_unit, build_type_psymtabs_1)
10850 (process_skeletonless_type_unit, load_partial_comp_unit)
10851 (load_full_comp_unit, dwarf2_read_addr_index)
10852 (read_signatured_type): Update.
10853
135f5437
TT
108542020-02-08 Tom Tromey <tom@tromey.com>
10855
10856 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10857 "want_partial_unit" parameter.
10858 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10859 Inline check for DW_TAG_partial_unit.
10860 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10861
9f66ff1c
TT
108622020-02-08 Tom Tromey <tom@tromey.com>
10863
10864 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10865 read.c.
10866 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10867 read.c.
10868
c8a7a66f
TT
108692020-02-08 Tom Tromey <tom@tromey.com>
10870
10871 * dwarf2/read.c (read_address): Move to comp-unit.c.
10872 (dwarf2_rnglists_process, dwarf2_ranges_process)
10873 (read_attribute_value, dwarf_decode_lines_1)
10874 (var_decode_location, decode_locdesc): Update.
10875 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10876 read.c. Remove "cu" parameter.
10877 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10878 method.
10879
8266302d
TT
108802020-02-08 Tom Tromey <tom@tromey.com>
10881
10882 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10883 (read_indirect_line_string): Update.
10884 * dwarf2/comp-unit.c (read_offset): Remove.
10885 (read_comp_unit_head): Update.
10886 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10887 method.
10888 (read_offset): Don't declare.
10889
4057dfde
TT
108902020-02-08 Tom Tromey <tom@tromey.com>
10891
10892 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10893 * dwarf2/read.c (struct comp_unit_head): Move to
10894 dwarf2/comp-unit.h.
10895 (enum class rcuh_kind): Move to comp-unit.h.
10896 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10897 (read_comp_unit_head, error_check_comp_unit_head)
10898 (read_and_check_comp_unit_head): Move to comp-unit.c.
10899 (read_offset, dwarf_unit_type_name): Likewise.
10900 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10901 (cutu_reader::cutu_reader, read_call_site_scope)
10902 (find_partial_die, follow_die_offset): Update.
10903 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10904
24aa364d
TT
109052020-02-08 Tom Tromey <tom@tromey.com>
10906
10907 * dwarf2/read.c (read_offset_1): Move to leb.c.
10908 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10909 (dwarf_decode_macro_bytes): Update.
10910 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10911 * dwarf2/leb.h (read_offset): Declare.
10912
2c7d5afc
TT
109132020-02-08 Tom Tromey <tom@tromey.com>
10914
10915 * dwarf2/read.c (dwarf2_section_size): Remove.
10916 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10917 Update.
10918 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10919
4075cb26
TT
109202020-02-08 Tom Tromey <tom@tromey.com>
10921
10922 * dwarf2/read.c (read_initial_length): Move to leb.c.
10923 * dwarf2/leb.h (read_initial_length): Declare.
10924 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10925 handle_nonstd parameter.
10926 * dwarf2/frame.c (read_initial_length): Remove.
10927 (decode_frame_entry_1): Update.
10928
09ba997f
TT
109292020-02-08 Tom Tromey <tom@tromey.com>
10930
10931 * dwarf2/loc.c (dwarf2_find_location_expression)
10932 (dwarf_evaluate_loc_desc::get_tls_address)
10933 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10934 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10935 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10936 (dwarf2_compile_property_to_c)
10937 (dwarf2_loc_desc_get_symbol_read_needs)
10938 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10939 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10940 (loclist_describe_location, loclist_tracepoint_var_ref)
10941 (loclist_generate_c_location): Update.
10942 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10943 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10944 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10945 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10946 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10947 (dwarf2_per_cu_data::addr_size)
10948 (dwarf2_per_cu_data::ref_addr_size)
10949 (dwarf2_per_cu_data::text_offset)
10950 (dwarf2_per_cu_data::addr_type): Now methods.
10951 (per_cu_header_read_in): Make per_cu "const".
10952 (dwarf2_version): Remove.
10953 (dwarf2_per_cu_data::int_type): Now a method.
10954 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10955 (set_die_type, read_array_type, read_subrange_index_type)
10956 (read_tag_string_type, read_subrange_type): Update.
10957 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10958 offset_size, ref_addr_size, text_offset, addr_type, version,
10959 objfile, int_type, addr_sized_int_type>: Declare methods.
10960
96c738c0
TT
109612020-02-08 Tom Tromey <tom@tromey.com>
10962
10963 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10964 Move earlier.
10965
8fdd972c
TT
109662020-02-08 Tom Tromey <tom@tromey.com>
10967
10968 * dwarf2/read.h (dwarf_line_debug): Declare.
10969 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10970 * dwarf2/read.c: Move line_header code to new files.
10971 (dwarf_line_debug): No longer static.
10972 * dwarf2/line-header.c: New file.
10973 * dwarf2/line-header.h: New file.
10974
03075812
TT
109752020-02-08 Tom Tromey <tom@tromey.com>
10976
10977 * dwarf2/read.c (struct line_header) <file_full_name,
10978 file_file_name>: Return unique_xmalloc_ptr.
10979 (line_header::file_file_name): Update.
10980 (line_header::file_full_name): Update.
10981 (dw2_get_file_names_reader): Update.
10982 (macro_start_file): Update.
10983
bb822404
TT
109842020-02-08 Tom Tromey <tom@tromey.com>
10985
10986 * dwarf2/read.c (struct line_header) <file_full_name,
10987 file_file_name>: Declare methods.
10988 (dw2_get_file_names_reader): Update.
10989 (file_file_name): Now a method.
10990 (file_full_name): Likewise.
10991 (macro_start_file): Update.
10992
009b64fc
TT
109932020-02-08 Tom Tromey <tom@tromey.com>
10994
10995 * dwarf2/read.c (dwarf_always_disassemble)
10996 (show_dwarf_always_disassemble): Move to loc.c.
10997 (_initialize_dwarf2_read): Move "always-disassemble" registration
10998 to loc.c.
10999 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11000 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11001 static.
11002 (show_dwarf_always_disassemble): Move from read.c.
11003 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11004
5895093f
TT
110052020-02-08 Tom Tromey <tom@tromey.com>
11006
11007 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11008 (create_quick_file_names_table): Return htab_up.
11009 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11010 Update.
11011 * dwarf2/read.h (struct dwarf2_per_objfile)
11012 <quick_file_names_table>: Now htab_up.
11013
b3b32279
TT
110142020-02-08 Tom Tromey <tom@tromey.com>
11015
11016 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11017
1d33d811
TT
110182020-02-08 Tom Tromey <tom@tromey.com>
11019
11020 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11021 Rewrite.
11022 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11023 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11024 (abbrev_table::abbrev_table): No longer inline.
11025 (ABBREV_HASH_SIZE): Remove.
11026 (abbrev_table::m_abbrevs): Now an htab_up.
11027
86de1d91
TT
110282020-02-08 Tom Tromey <tom@tromey.com>
11029
11030 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11031 (cutu_reader): Update.
11032 (build_type_psymtabs_1): Update.
11033 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11034 (abbrev_table::alloc_abbrev): Update.
11035 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11036 (abbrev_table::read): New static method, renamed from
11037 abbrev_table_read_table.
11038 (abbrev_table::alloc_abbrev)
11039 (abbrev_table::add_abbrev): Now private.
11040 (abbrev_table::abbrev_table): Now private.
11041 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11042
0335378b
TT
110432020-02-08 Tom Tromey <tom@tromey.com>
11044
11045 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11046 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11047 htab_up.
11048
48b490f2
TT
110492020-02-08 Tom Tromey <tom@tromey.com>
11050
11051 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11052 htab_up.
11053 (lookup_dwo_unit_in_dwp): Update.
11054 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11055 on obstack.
11056
bc68fb19
TT
110572020-02-08 Tom Tromey <tom@tromey.com>
11058
11059 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11060 obstack.
11061
d15acc42
TT
110622020-02-08 Tom Tromey <tom@tromey.com>
11063
11064 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11065 line_header_hash.
11066 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11067 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11068 Change type to htab_up.
11069
eaa5fa8b
TT
110702020-02-08 Tom Tromey <tom@tromey.com>
11071
11072 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11073 htab_up. Don't allocate on obstack.
11074 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11075 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11076 Change type to htab_up.
11077
b0b6a987
TT
110782020-02-08 Tom Tromey <tom@tromey.com>
11079
11080 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11081 Change type to htab_up.
11082 * dwarf2/read.c (create_signatured_type_table_from_index)
11083 (create_signatured_type_table_from_debug_names)
11084 (create_all_type_units, add_type_unit)
11085 (lookup_dwo_signatured_type, lookup_signatured_type)
11086 (process_skeletonless_type_unit): Update.
11087 (create_debug_type_hash_table, create_debug_types_hash_table):
11088 Change type of types_htab.
11089 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11090 htab_up. Don't allocate on obstack.
11091 (create_cus_hash_table): Change type of cus_htab parameter.
11092 (struct dwo_file) <cus, tus>: Now htab_up.
11093 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11094 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11095 (queue_and_load_all_dwo_tus): Update.
11096 * dwarf2/index-write.c (write_gdbindex): Update.
11097 (write_debug_names): Update.
11098
39856def
TT
110992020-02-08 Tom Tromey <tom@tromey.com>
11100
11101 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11102 dwarf2/read.c. Remove "next" member. Add constructor ntad
11103 destructor.
11104 (struct dwarf2_per_objfile) <queue>: New member.
11105 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11106 dwarf2/read.h.
11107 (dwarf2_queue, dwarf2_queue_tail): Remove.
11108 (class dwarf2_queue_guard): Add parameter to constructor. Use
11109 DISABLE_COPY_AND_ASSIGN.
11110 <m_per_objfile>: New member.
11111 <~dwarf2_queue_guard>: Rewrite.
11112 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11113 Update.
11114 (~dwarf2_queue_item): New.
11115
3e225074
TT
111162020-02-08 Tom Tromey <tom@tromey.com>
11117
11118 * dwarf2/read.c (struct die_info) <has_children>: New member.
11119 (dw2_get_file_names_reader): Remove has_children.
11120 (dw2_get_file_names): Update.
11121 (read_cutu_die_from_dwo): Remove has_children.
11122 (cutu_reader::init_tu_and_read_dwo_dies)
11123 (cutu_reader::cutu_reader): Update.
11124 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11125 Remove has_children.
11126 (build_type_psymtabs_1, process_skeletonless_type_unit)
11127 (load_partial_comp_unit, load_full_comp_unit): Update.
11128 (create_dwo_cu_reader): Remove has_children.
11129 (create_cus_hash_table, read_die_and_children): Update.
11130 (read_full_die_1,read_full_die): Remove has_children.
11131 (read_signatured_type): Update.
11132 (class cutu_reader) <has_children>: Remove.
11133
82ca8957
TT
111342020-02-08 Tom Tromey <tom@tromey.com>
11135
11136 * dwarf2/expr.c: Rename from dwarf2expr.c.
11137 * dwarf2/expr.h: Rename from dwarf2expr.h.
11138 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11139 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11140 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11141 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11142 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11143 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11144 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11145 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11146 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11147 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11148 * dwarf2/loc.c: Rename from dwarf2loc.c.
11149 * dwarf2/loc.h: Rename from dwarf2loc.h.
11150 * dwarf2/read.c: Rename from dwarf2read.c.
11151 * dwarf2/read.h: Rename from dwarf2read.h.
11152 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11153 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11154 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11155 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11156 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11157 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11158 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11159 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11160 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11161 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11162 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11163 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11164 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11165 Update.
11166 * Makefile.in (COMMON_SFILES): Update.
11167 (HFILES_NO_SRCDIR): Update.
11168
9e35d499
TT
111692020-02-08 Tom Tromey <tom@tromey.com>
11170
11171 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11172 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11173
1eba2311
TT
111742020-02-08 Tom Tromey <tom@tromey.com>
11175
11176 * dwarf2read.h (struct die_info): Don't declare.
11177
e41c2da2
TT
111782020-02-08 Tom Tromey <tom@tromey.com>
11179
11180 * dwarf2read.h (die_info_ptr): Remove typedef.
11181
4fc6c0d5
TT
111822020-02-08 Tom Tromey <tom@tromey.com>
11183
11184 * dwarf2read.c (read_call_site_scope)
11185 (handle_data_member_location, dwarf2_add_member_fn)
11186 (mark_common_block_symbol_computed, read_common_block)
11187 (attr_to_dynamic_prop, partial_die_info::read)
11188 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11189 (dwarf2_symbol_mark_computed, set_die_type): Update.
11190 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11191 method.
11192 (attr_form_is_block): Don't declare.
11193 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11194
cd6c91b4
TT
111952020-02-08 Tom Tromey <tom@tromey.com>
11196
11197 * dwarf2read.c (dwarf2_find_base_address, )
11198 (read_call_site_scope, rust_containing_type)
11199 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11200 (handle_data_member_location, dwarf2_add_member_fn)
11201 (get_alignment, read_structure_type, process_structure_scope)
11202 (mark_common_block_symbol_computed, read_common_block)
11203 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11204 (partial_die_info::read, read_attribute_value, new_symbol)
11205 (lookup_die_type, dwarf2_get_ref_die_offset)
11206 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11207 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11208 (dwarf2_symbol_mark_computed): Update.
11209 * dwarf2/attribute.h (struct attribute) <value_as_address,
11210 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11211 methods.
11212 (value_as_address, attr_form_is_section_offset)
11213 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11214 * dwarf2/attribute.c (attribute::value_as_address)
11215 (attribute::form_is_section_offset, attribute::form_is_constant)
11216 (attribute::form_is_ref): Now methods.
11217
162dce55
TT
112182020-02-08 Tom Tromey <tom@tromey.com>
11219
11220 * dwarf2read.c (struct attribute, DW_STRING)
11221 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11222 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11223 (attr_form_is_block, attr_form_is_section_offset)
11224 (attr_form_is_constant, attr_form_is_ref): Move.
11225 * dwarf2/attribute.h: New file.
11226 * dwarf2/attribute.c: New file, from dwarf2read.c.
11227 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11228
3054dd54
TT
112292020-02-08 Tom Tromey <tom@tromey.com>
11230
11231 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11232 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11233 Move.
11234 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11235 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11236 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11237 abbrev.c.
11238 * dwarf2/abbrev.h: New file.
11239 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11240 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11241
96b79293
TT
112422020-02-08 Tom Tromey <tom@tromey.com>
11243
11244 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11245 (dwarf2_section_size, dwarf2_get_section_info)
11246 (create_signatured_type_table_from_debug_names)
11247 (create_addrmap_from_aranges, read_debug_names_from_section)
11248 (get_gdb_index_contents_from_section, read_comp_unit_head)
11249 (error_check_comp_unit_head, read_abbrev_offset)
11250 (create_debug_type_hash_table, init_cu_die_reader)
11251 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11252 (read_comp_units_from_section, create_cus_hash_table)
11253 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11254 (create_dwp_v2_section, dwarf2_rnglists_process)
11255 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11256 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11257 (read_indirect_string_from_dwz, read_addr_index_1)
11258 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11259 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11260 (fill_in_loclist_baton): Update.
11261 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11262 get_containing_section, get_bfd_owner, get_bfd_section,
11263 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11264 (dwarf2_read_section, get_section_name, get_section_file_name)
11265 (get_containing_section, get_section_bfd_owner)
11266 (get_section_bfd_section, get_section_name, get_section_file_name)
11267 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11268 declare.
11269 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11270 (dwarf2_section_info::get_bfd_owner)
11271 (dwarf2_section_info::get_bfd_section)
11272 (dwarf2_section_info::get_name)
11273 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11274 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11275 (dwarf2_section_info::read): Now methods.
11276 * dwarf-index-write.c (class debug_names): Update.
11277
2c86cff9
TT
112782020-02-08 Tom Tromey <tom@tromey.com>
11279
11280 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11281 Move to dwarf2/section.h.
11282 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11283 (get_section_bfd_section, get_section_name)
11284 (get_section_file_name, get_section_id, get_section_flags)
11285 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11286 dwarf2/section.c.
11287 * dwarf2/section.h: New file.
11288 * dwarf2/section.c: New file, from dwarf2read.c.
11289 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11290
f4382c45
TT
112912020-02-08 Tom Tromey <tom@tromey.com>
11292
11293 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11294 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11295 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11296 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11297 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11298 * dwarf2/leb.h: New file, from dwarf2read.c.
11299 * dwarf2/leb.c: New file, from dwarf2read.c.
11300 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11301 Remove.
11302 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11303 (COMMON_SFILES): Add dwarf2/leb.c.
11304
01840b7a
JB
113052020-02-08 Joel Brobecker <brobecker@adacore.com>
11306
11307 GDB 9.1 released.
11308
dfcb27e4
IB
113092020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11310
11311 PR gdb/25190:
aac66a4c
SM
11312 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11313 * gdb/remote.c (remote_console_output): Update.
11314 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11315 (ui_file_puts): ...this.
11316 * gdb/ui-file.h (ui_file_puts): Add declaration.
11317 * gdb/utils.c (emit_style_escape): Update.
11318 (flush_wrap_buffer): Update.
11319 (fputs_maybe_filtered): Update.
11320 (fputs_unfiltered): Add function.
dfcb27e4 11321
faa17681
IB
113222020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11323
aac66a4c
SM
11324 * gdb/event-loop.c (gdb_wait_for_event): Update.
11325 * gdb/printcmd.c (printf_command): Update.
11326 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11327 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11328 (gdb_os_flush_stderr): Update.
11329 * gdb/remote.c (remote_console_output): Update.
11330 * gdb/ui-file.c (gdb_flush): Rename to...
11331 (ui_file_flush): ...this.
11332 (stderr_file::write): Update.
11333 (stderr_file::puts): Update.
11334 * gdb/ui-file.h (gdb_flush): Rename to...
11335 (ui_file_flush): ...this.
11336 * gdb/utils.c (gdb_flush): Add function.
11337 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11338
5abbbe1d
TT
113392020-02-07 Tom Tromey <tromey@adacore.com>
11340
11341 PR breakpoints/24915:
11342 * source.c (find_and_open_source): Do not check basenames_may_differ.
11343
919adfe8
TT
113442020-02-07 Tom Tromey <tom@tromey.com>
11345
11346 * README: Update gdbserver documentation.
11347 * gdbserver: Move to top level.
11348 * configure.tgt (build_gdbserver): Remove.
11349 * configure.ac: Remove --enable-gdbserver.
11350 * configure: Rebuild.
11351 * Makefile.in (distclean): Don't mention gdbserver.
11352
1d5d29e7
SV
113532020-02-06 Shahab Vahedi <shahab@synopsys.com>
11354
11355 * source-cache.c (source_cache::ensure): Surround
11356 get_plain_source_lines with a try/catch.
11357 (source_cache::get_line_charpos): Get rid of try/catch
11358 and only check for the return value of "ensure".
11359 * tui/tui-source.c (tui_source_window::set_contents):
11360 Simplify "nlines" calculation.
11361
6eb1129c
SV
113622020-02-06 Shahab Vahedi <shahab@synopsys.com>
11363
11364 * MAINTAINERS (Write After Approval): Add myself.
11365
c6a42d11
CB
113662020-02-05 Christian Biesinger <cbiesinger@google.com>
11367
11368 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11369 function call.
11370
c8ecdda6
CB
113712020-02-05 Christian Biesinger <cbiesinger@google.com>
11372
11373 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11374
f6480e70
MR
113752020-02-05 Maciej W. Rozycki <macro@wdc.com>
11376
11377 * nat/riscv-linux-tdesc.h: New file.
11378 * nat/riscv-linux-tdesc.c: New file, taking code from...
11379 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11380 ... here.
11381 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11382 NATDEPFILES.
11383
dcc9fbc6
AB
113842020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11385
11386 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11387 we don't set the fake simulator ptid to the null_ptid.
11388
719546c4
SM
113892020-02-03 Simon Marchi <simon.marchi@efficios.com>
11390
11391 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11392 * gdbthread.h (class thread_info) <resumed>: Likewise.
11393 * infrun.c (resume_1): Likewise.
11394 (proceed): Likewise.
11395 (infrun_thread_stop_requested): Likewise.
11396 (stop_all_threads): Likewise.
11397 (handle_inferior_event): Likewise.
11398 (restart_threads): Likewise.
11399 (finish_step_over): Likewise.
11400 (keep_going_stepped_thread): Likewise.
11401 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11402 (linux_handle_extended_wait): Likewise.
11403 * record-btrace.c (get_thread_current_frame_id): Likewise.
11404 * record-full.c (record_full_wait_1): Likewise.
11405 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11406 * target.c (target_resume): Likewise.
11407 * thread.c (set_running_thread): Likewise.
11408
e409c542
AKS
114092020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11410
11411 * f-valprint.c (f77_print_array_1): Changed datatype of index
11412 variable to LONGEST from int to enable it to contain bound
11413 values correctly.
11414
ee98c0da
MR
114152020-02-03 Maciej W. Rozycki <macro@wdc.com>
11416
11417 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11418 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11419 offsets according to FLEN determined.
11420 (riscv_linux_nat_target::read_description): Determine FLEN
11421 dynamically.
11422 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11423 according to FLEN determined.
11424 (riscv_linux_nat_target::store_registers): Likewise.
11425
aa66aac4
SV
114262020-02-01 Shahab Vahedi <shahab@synopsys.com>
11427
11428 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11429 when reg->group is empty and reggroup is not.
11430
fd9faca8
TT
114312020-01-31 Tom Tromey <tromey@adacore.com>
11432
11433 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11434 Call beneath target's mourn_inferior after unpushing.
11435
42330a68
AB
114362020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11437
11438 PR tui/9765
11439 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11440 have enough lines to fill the screen, still return the lowest
11441 address we found.
11442
7a27a45b
AB
114432020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11444
11445 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11446 '-', '<', and '>' commands.
11447
c47f70e2
PA
114482020-01-29 Pedro Alves <palves@redhat.com>
11449 Sergio Durigan Junior <sergiodj@redhat.com>
11450
11451 * infcmd.c (construct_inferior_arguments): Assert that
11452 'argc' is greater than 0.
11453
5133a315
LM
114542020-01-29 Luis Machado <luis.machado@linaro.org>
11455
11456 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11457 (BRK_INSN_MASK): Define to 0xd4200000.
11458 (aarch64_program_breakpoint_here_p): New function.
11459 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11460 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11461 breakpoint.c.
11462 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11463 breakpoint.h
11464 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11465 call gdbarch_program_breakpoint_here_p.
11466 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11467 default_program_breakpoint_here_p, changed return type to bool and
11468 simplified.
11469 * breakpoint.h (program_breakpoint_here): Moved prototype to
11470 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11471 return type to bool.
11472 * gdbarch.c: Regenerate.
11473 * gdbarch.h: Regenerate.
11474 * gdbarch.sh (program_breakpoint_here_p): New method.
11475 * infrun.c (handle_signal_stop): Call
11476 gdbarch_program_breakpoint_here_p.
11477
168f8c6b
TT
114782020-01-26 Tom Tromey <tom@tromey.com>
11479
11480 * ctfread.c (struct ctf_fp_info): Reindent.
11481 (_initialize_ctfread): Remove.
11482
128a391f
TT
114832020-01-26 Tom Tromey <tom@tromey.com>
11484
11485 * psymtab.c (partial_map_expand_apply)
11486 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11487 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11488 (psym_print_stats, psym_expand_symtabs_for_function)
11489 (psym_map_symbol_filenames, psym_map_matching_symbols)
11490 (psym_expand_symtabs_matching)
11491 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11492 (maintenance_check_psymtabs): Use new methods.
11493 * psympriv.h (struct partial_symtab) <readin_p,
11494 get_compunit_symtab>: New methods.
11495 <readin, compunit_symtab>: Remove members.
11496 (struct standard_psymtab): New.
11497 (struct legacy_psymtab): Derive from standard_psymtab.
11498 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11499 standard_psymtab.
11500 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11501
0494dbec
TT
115022020-01-26 Tom Tromey <tom@tromey.com>
11503
11504 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11505 read_dependencies. Add assert.
11506 * psymtab.c (partial_symtab::read_dependencies): New method.
11507 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11508 method.
11509 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11510 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11511 read_dependencies.
11512 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11513 Add assert.
11514
8566b89b
TT
115152020-01-26 Tom Tromey <tom@tromey.com>
11516
11517 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11518 Call expand_psymtab.
11519 (xcoff_read_symtab): Call expand_psymtab.
11520 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11521 legacy_expand_psymtab.
11522 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11523 method.
11524 (struct legacy_psymtab) <expand_psymtab>: Implement.
11525 <legacy_expand_psymtab>: New member.
11526 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11527 (parse_partial_symbols): Set legacy_expand_psymtab.
11528 (psymtab_to_symtab_1): Change argument order. Call
11529 expand_psymtab.
11530 (new_psymtab): Set legacy_expand_psymtab.
11531 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11532 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11533 expand_psymtab.
11534 (dwarf2_psymtab::expand_psymtab): Rename from
11535 psymtab_to_symtab_1. Call expand_psymtab.
11536 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11537 (dbx_end_psymtab): Likewise.
11538 (dbx_psymtab_to_symtab_1): Change argument order. Call
11539 expand_psymtab.
11540 (dbx_read_symtab): Call expand_psymtab.
11541 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11542 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11543 (ctf_psymtab::read_symtab): Call expand_psymtab.
11544
077cbab2
TT
115452020-01-26 Tom Tromey <tom@tromey.com>
11546
11547 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11548 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11549 messages.
11550 * mdebugread.c (mdebug_read_symtab): Remove prints.
11551 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11552 assert.
11553 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11554
891813be
TT
115552020-01-26 Tom Tromey <tom@tromey.com>
11556
11557 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11558 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11559 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11560 legacy_symtab.
11561 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11562 * psymtab.c (psymtab_to_symtab): Call method.
11563 (dump_psymtab): Update.
11564 * psympriv.h (struct partial_symtab): Add virtual destructor.
11565 <read_symtab>: New method.
11566 (struct legacy_symtab): New.
11567 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11568 (struct pst_map) <pst>: Now a legacy_psymtab.
11569 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11570 (new_psymtab): Use legacy_psymtab.
11571 * dwarf2read.h (struct dwarf2_psymtab): New.
11572 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11573 * dwarf2read.c (dwarf2_create_include_psymtab)
11574 (dwarf2_build_include_psymtabs, create_type_unit_group)
11575 (create_partial_symtab, process_psymtab_comp_unit_reader)
11576 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11577 (set_partial_user): Use dwarf2_psymtab.
11578 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11579 (psymtab_to_symtab_1, process_full_comp_unit)
11580 (process_full_type_unit, dwarf2_ranges_read)
11581 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11582 (dwarf_decode_lines): Use dwarf2_psymtab.
11583 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11584 (add_address_entry_worker, write_one_signatured_type)
11585 (recursively_count_psymbols, recursively_write_psymbols)
11586 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11587 (write_debug_names): Likewise.
11588 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11589 <pst>: Now a legacy_psymtab.
11590 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11591 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11592 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11593 * ctfread.c (struct ctf_psymtab): New.
11594 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11595 ctf_psymtab.
11596 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11597 (create_partial_symtab): Return a ctf_psymtab.
11598 (scan_partial_symbols): Update.
11599
c3693a1d
TT
116002020-01-26 Tom Tromey <tom@tromey.com>
11601
11602 * xcoffread.c (xcoff_start_psymtab): Use new.
11603 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11604 renamed from start_psymtab_common.
11605 * psympriv.h (struct partial_symtab): Add new constructor.
11606 (start_psymtab_common): Don't declare.
11607 * mdebugread.c (parse_partial_symbols): Use new.
11608 * dwarf2read.c (create_partial_symtab): Use new.
11609 * dbxread.c (start_psymtab): Use new.
11610 * ctfread.c (create_partial_symtab): Use new.
11611
32caafd0
TT
116122020-01-26 Tom Tromey <tom@tromey.com>
11613
11614 * xcoffread.c (xcoff_end_psymtab): Use new.
11615 * psymtab.c (start_psymtab_common): Use new.
11616 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11617 Update.
11618 * psympriv.h (struct partial_symtab): Add parameters to
11619 constructor. Don't inline.
11620 (allocate_psymtab): Don't declare.
11621 * mdebugread.c (new_psymtab): Use new.
11622 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11623 * dbxread.c (dbx_end_psymtab): Use new.
11624
abaa2f23
TT
116252020-01-26 Tom Tromey <tom@tromey.com>
11626
11627 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11628 allocate_psymtab. Update documentation.
11629 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11630 allocate_psymtab. Do not use new.
11631 (allocate_psymtab): Use new. Update.
11632
6d94535f
TT
116332020-01-26 Tom Tromey <tom@tromey.com>
11634
11635 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11636 * psymtab.c (psym_print_stats): Update.
11637 * psympriv.h (struct partial_symtab) <readin,
11638 psymtabs_addrmap_supported, anonymous>: Now bool.
11639 * mdebugread.c (psymtab_to_symtab_1): Update.
11640 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11641 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11642 (process_full_comp_unit, process_full_type_unit): Update.
11643 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11644 * ctfread.c (psymtab_to_symtab): Update.
11645
6f17252b
TT
116462020-01-26 Tom Tromey <tom@tromey.com>
11647
11648 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11649 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11650 * psymtab.c (psymtab_storage): Delete psymtabs.
11651 (psymtab_storage::allocate_psymtab): Use new.
11652 (psymtab_storage::discard_psymtab): Use delete.
11653 * psympriv.h (struct partial_symtab): Add constructor and
11654 initializers.
11655
f6f1cebc
TT
116562020-01-26 Tom Tromey <tom@tromey.com>
11657
11658 * machoread.c: Do not include psympriv.h.
11659
e47e48f6
PW
116602020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11661
11662 * NEWS: Mention the new option and the set/show commands.
11663
a2fedca9
PW
116642020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11665
11666 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11667 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11668 (validate_exec_file): New variables, enums, functions.
11669 (exec_file_locate_attach, print_section_info): Style the filenames.
11670 (_initialize_exec): Install show_exec_file_mismatch_command and
11671 set_exec_file_mismatch_command.
11672 * gdbcore.h (validate_exec_file): Declare.
11673 * infcmd.c (attach_command): Call validate_exec_file.
11674 * remote.c ( remote_target::remote_add_inferior): Likewise.
11675
7ffa82e1
AB
116762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11677
11678 * frame.c (find_frame_sal): Move call to get_next_frame into more
11679 inner scope.
11680 * inline-frame.c (inilne_state) <inline_state>: Update argument
11681 types.
11682 (inilne_state) <skipped_symbol>: Rename to...
11683 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11684 (skip_inline_frames): Build vector of skipped symbols and use this
11685 to reate the inline_state.
11686 (inline_skipped_symbol): Add a comment and some assertions, fetch
11687 skipped symbol from the list.
11688
3d92a3e3
AB
116892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11690
11691 * buildsym.c (lte_is_less_than): Delete.
11692 (buildsym_compunit::end_symtab_with_blockvector): Create local
11693 lambda function to sort line table entries, and use
11694 std::stable_sort instead of std::sort.
11695 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11696 markers when looking for a previous line.
11697
94a72be7
AB
116982020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11699
11700 * dwarf2read.c (lnp_state_machine::record_line): Include
11701 end_sequence parameter in debug print out. Record the line if we
11702 are at an end_sequence marker even if it's not the start of a
11703 statement.
11704 * symmisc.c (maintenance_print_one_line_table): Print end of
11705 sequence markers with 'END' not '0'.
11706
53af73bf
PA
117072020-01-24 Pedro Alves <palves@redhat.com>
11708
11709 PR gdb/25410
11710 * thread.c (scoped_restore_current_thread::restore): Use
11711 switch_to_inferior_no_thread.
11712 * exec.c: Include "progspace-and-thread.h".
11713 (add_target_sections, remove_target_sections):
11714 scoped_restore_current_pspace_and_thread instead of
11715 scoped_restore_current_thread.
11716 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11717 and aspace to the inferior before calling clone_program_space.
11718 Remove stale comment.
11719
3050c6f4
CB
117202020-01-24 Christian Biesinger <cbiesinger@google.com>
11721
11722 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11723 (arm_netbsd_nat_target::fetch_registers): ...this.
11724 (arm_nbsd_nat_target::store_registers): Rename to...
11725 (arm_netbsd_nat_target::store_registers): ...this.
11726
73685c7e
CB
117272020-01-24 Christian Biesinger <cbiesinger@google.com>
11728
11729 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11730 register_t.
11731
89203d40
CB
117322020-01-24 Christian Biesinger <cbiesinger@google.com>
11733
11734 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11735 Update comment.
11736 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11737 Likewise.
11738 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11739 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11740 the correct replacement (iterate_over_regset_sections).
11741 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11742 Update comment.
11743
1ba1ac88
AB
117442020-01-24 Graham Markall <graham.markall@embecosm.com>
11745
11746 PR gdb/23718
11747 * gdb/python/python.c (execute_gdb_command): Call
11748 async_enable_stdin in catch block.
11749
f3364a6d
AB
117502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11751
11752 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11753 SWITCH_THRU_ALL_UIS.
11754
733d0a67
AB
117552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11756
11757 PR tui/9765
11758 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11759 comment, add extra parameter, and update to store previous symbol
11760 when appropriate.
11761 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11762 add extra parameter.
11763 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11764 remove unneeded parameter, add try/catch around gdb_print_insn,
11765 rewrite to add items to asm_lines vector.
11766 (tui_find_backward_disassembly_start_address): New function.
11767 (tui_find_disassembly_address): Updated throughout.
11768 (tui_disasm_window::set_contents): Update for changes to
11769 tui_disassemble.
11770 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11771 number of lines to scroll.
11772
b3b3bada
SM
117732020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11774
11775 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11776 (SECT_OFF_DATA): Likewise.
11777 (SECT_OFF_RODATA): Likewise.
11778 (SECT_OFF_TEXT): Likewise.
11779 (SECT_OFF_BSS): Likewise.
11780 (struct objfile) <text_section_offset, data_section_offset>: New
11781 methods.
11782 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11783 objfile::text_section_offset.
11784 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11785 * coffread.c (coff_symtab_read): Likewise.
11786 (enter_linenos): Likewise.
11787 (process_coff_symbol): Likewise.
11788 * ctfread.c (get_objfile_text_range): Likewise.
11789 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11790 Use objfile::data_section_offset.
11791 * dwarf2-frame.c (execute_cfa_program): Use
11792 objfile::text_section_offset.
11793 (dwarf2_frame_find_fde): Likewise.
11794 * dwarf2read.c (create_addrmap_from_index): Likewise.
11795 (create_addrmap_from_aranges): Likewise.
11796 (dw2_find_pc_sect_compunit_symtab): Likewise.
11797 (process_psymtab_comp_unit_reader): Likewise.
11798 (add_partial_symbol): Likewise.
11799 (add_partial_subprogram): Likewise.
11800 (process_full_comp_unit): Likewise.
11801 (read_file_scope): Likewise.
11802 (read_func_scope): Likewise.
11803 (read_lexical_block_scope): Likewise.
11804 (read_call_site_scope): Likewise.
11805 (dwarf2_rnglists_process): Likewise.
11806 (dwarf2_ranges_process): Likewise.
11807 (dwarf2_ranges_read): Likewise.
11808 (dwarf_decode_lines_1): Likewise.
11809 (new_symbol): Likewise.
11810 (dwarf2_fetch_die_loc_sect_off): Likewise.
11811 (dwarf2_per_cu_text_offset): Likewise.
11812 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11813 * hppa-tdep.c (read_unwind_info): Likewise.
11814 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11815 * psympriv.h (struct partial_symtab): Likewise.
11816 * psymtab.c (find_pc_sect_psymtab): Likewise.
11817 * solib-svr4.c (enable_break): Likewise.
11818 * stap-probe.c (relocate_address): Use
11819 objfile::data_section_offset.
11820 * xcoffread.c (enter_line_range): Use
11821 objfile::text_section_offset.
11822 (read_xcoff_symtab): Likewise.
11823
ab53f382
SM
118242020-01-23 Simon Marchi <simon.marchi@efficios.com>
11825
11826 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11827 declaration to narrower scopes.
11828
e7eee665
SM
118292020-01-23 Simon Marchi <simon.marchi@efficios.com>
11830
11831 * darwin-nat.h (struct darwin_exception_msg, enum
11832 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11833 Move up.
11834 (class darwin_nat_target) <wait_1, check_new_threads,
11835 decode_exception_message, decode_message, stop_inferior,
11836 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11837 * darwin-nat.c (darwin_check_new_threads): Rename to...
11838 (darwin_nat_target::check_new_threads): ... this.
11839 (darwin_suspend_inferior_it): Remove.
11840 (darwin_decode_exception_message): Rename to...
11841 (darwin_nat_target::decode_exception_message): ... this.
11842 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11843 (darwin_decode_message): Rename to...
11844 (darwin_nat_target::decode_message): ... this.
11845 (cancel_breakpoint): Rename to...
11846 (darwin_nat_target::cancel_breakpoint): ... this.
11847 (darwin_wait): Rename to...
11848 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11849 instead of iterate_over_inferiors.
11850 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11851 (darwin_stop_inferior): Rename to...
11852 (darwin_nat_target::stop_inferior): ... this.
11853 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11854 (darwin_init_thread_list): Rename to...
11855 (darwin_nat_target::init_thread_list): ... this.
11856 (darwin_ptrace_him): Rename to...
11857 (darwin_nat_target::ptrace_him): ... this.
11858 (darwin_nat_target::create_inferior): Pass lambda function to
11859 fork_inferior.
11860 (darwin_nat_target::detach): Call stop_inferior instead of
11861 darwin_stop_inferior.
11862 * fork-inferior.h (fork_inferior): Change init_trace_fun
11863 parameter to gdb::function_view.
11864 * fork-inferior.c (fork_inferior): Likewise.
11865
c162ed3e
HD
118662020-01-23 Hannes Domani <ssbssa@yahoo.de>
11867
11868 * i386-cygwin-tdep.c (core_process_module_section): Update.
11869 * windows-nat.c (struct lm_info_windows): Add text_offset.
11870 (windows_xfer_shared_libraries): Update.
11871 * windows-tdep.c (windows_xfer_shared_library):
11872 Add text_offset_cached argument.
11873 * windows-tdep.h (windows_xfer_shared_library): Update.
11874
a1237872
SM
118752020-01-21 Simon Marchi <simon.marchi@efficios.com>
11876
11877 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11878
b3ee6dd9
SM
118792020-01-21 Simon Marchi <simon.marchi@efficios.com>
11880
11881 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11882 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11883 replace with range-based for.
11884 (gdbsim_interrupt_inferior): Remove.
11885 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11886 with a range-based for. Inline code from
11887 gdbsim_interrupt_inferior.
11888
f9fac3c8
SM
118892020-01-21 Simon Marchi <simon.marchi@efficios.com>
11890
11891 * infrun.c (proceed): Fix indentation.
11892
f6474de9
TT
118932020-01-21 Tom Tromey <tromey@adacore.com>
11894
11895 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11896 * python/python.c (python_extension_ops): Update.
11897 (gdbpy_colorize): New function.
11898 * python/lib/gdb/__init__.py (colorize): New function.
11899 * extension.h (ext_lang_colorize): Declare.
11900 * extension.c (ext_lang_colorize): New function.
11901 * extension-priv.h (struct extension_language_ops) <colorize>: New
11902 member.
11903 * cli/cli-style.c (_initialize_cli_style): Update help text.
11904
f0c702d4
LM
119052020-01-21 Luis Machado <luis.machado@linaro.org>
11906
11907 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11908 <cond>: Change type to bool.
11909 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11910 (aarch64_displaced_step_cb): Likewise.
11911 (aarch64_displaced_step_tb): Likewise.
11912
1ab139e5
LM
119132020-01-21 Luis Machado <luis.machado@linaro.org>
11914
11915 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11916 output.
11917
0c271889
LM
119182020-01-21 Luis Machado <luis.machado@linaro.org>
11919
11920 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11921 <pc_adjust>: Adjust the documentation.
11922 (aarch64_displaced_step_fixup): Check if PC really moved before
11923 adjusting it.
11924
4d89c1c7
TT
119252020-01-19 Tom Tromey <tom@tromey.com>
11926
11927 * disasm.c (~gdb_disassembler): New destructor.
11928 (gdb_buffered_insn_length): Call disassemble_free_target.
11929 * disasm.h (class gdb_disassembler): Declare destructor. Use
11930 DISABLE_COPY_AND_ASSIGN.
11931
c0ab21c2
TT
119322020-01-19 Tom Tromey <tom@tromey.com>
11933
11934 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11935 (die_reader_func_ftype): Remove.
11936 (cutu_reader): New class.
11937 (dw2_get_file_names_reader): Remove "data" parameter.
11938 (dw2_get_file_names): Use cutu_reader.
11939 (create_debug_type_hash_table): Update.
11940 (read_cutu_die_from_dwo): Update comment.
11941 (lookup_dwo_unit): Add dwo_name parameter.
11942 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11943 die_reader_func_ftype and data parameters.
11944 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11945 Remove die_reader_func_ftype and data parameters.
11946 (~cutu_reader): New; from init_cutu_and_read_dies.
11947 (cutu_reader::cutu_reader): Rename from
11948 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11949 and data parameters.
11950 (init_cutu_and_read_dies_simple): Remove.
11951 (struct process_psymtab_comp_unit_data): Remove.
11952 (process_psymtab_comp_unit_reader): Remove data parameter; add
11953 want_partial_unit and pretend_language parameters.
11954 (process_psymtab_comp_unit): Use cutu_reader.
11955 (build_type_psymtabs_reader): Remove data parameter.
11956 (build_type_psymtabs_1): Use cutu_reader.
11957 (process_skeletonless_type_unit): Likewise.
11958 (load_partial_comp_unit_reader): Remove.
11959 (load_partial_comp_unit): Use cutu_reader.
11960 (load_full_comp_unit_reader): Remove.
11961 (load_full_comp_unit): Use cutu_reader.
11962 (struct create_dwo_cu_data): Remove.
11963 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11964 dwo_unit parameters.
11965 (create_cus_hash_table): Use cutu_reader.
11966 (struct dwarf2_read_addr_index_data): Remove.
11967 (dwarf2_read_addr_index_reader): Remove.
11968 (dwarf2_read_addr_index): Use cutu_reader.
11969 (read_signatured_type_reader): Remove.
11970 (read_signatured_type): Use cutu_reader.
11971
45bbae5c
TT
119722020-01-19 Tom Tromey <tom@tromey.com>
11973
11974 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11975 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11976 (tui_wrefresh): Declare.
11977 * tui/tui-wingeneral.c (suppress_output): New global.
11978 (tui_suppress_output, ~tui_suppress_output): New constructor and
11979 destructor.
11980 (tui_wrefresh): New function.
11981 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11982 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11983 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11984 method.
11985 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11986 tui_wrefresh.
11987 (tui_data_window::no_refresh): New method.
11988 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11989 (tui_reg_command): Use tui_suppress_output
11990 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11991 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11992 method.
11993 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11994
4f13c1c0
TT
119952020-01-19 Tom Tromey <tom@tromey.com>
11996
11997 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11998 Handle case where symtab is null.
11999
fa47e446
SM
120002020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12001
12002 * linux-fork.c (one_fork_p): Simplify.
12003
26f42329
SM
120042020-01-17 Simon Marchi <simon.marchi@efficios.com>
12005
12006 * top.c (struct qt_args): Remove.
12007 (kill_or_detach): Change return type to void, replace `void *`
12008 parameter with a proper one.
12009 (print_inferior_quit_action): Likewise.
12010 (quit_confirm): Use range-based for loop to iterate over inferiors.
12011 (quit_force): Likewise.
12012
a9ac81b1
SM
120132020-01-17 Simon Marchi <simon.marchi@efficios.com>
12014
12015 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12016 `void *` parameter with proper parameters.
12017 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12018 (print_one_inferior): Change return type to void, replace `void *`
12019 parameter with proper parameters.
12020 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12021 inferiors.
12022 (get_other_inferior): Remove.
12023 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12024 inferiors.
12025
788eca49
SM
120262020-01-17 Simon Marchi <simon.marchi@efficios.com>
12027
12028 * mi/mi-interp.c (report_initial_inferior): Remove.
12029 (mi_interp::init): Use range-based for to iterate over inferiors.
12030
d9bc85b6
SM
120312020-01-17 Simon Marchi <simon.marchi@efficios.com>
12032
12033 * python/py-inferior.c (build_inferior_list): Remove.
12034 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12035
40c94099
CB
120362020-01-16 Christian Biesinger <cbiesinger@google.com>
12037
12038 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12039 (btrace_stitch_trace): Likewise.
12040 * charset.c (intermediate_encoding): Likewise (vaild).
12041 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12042 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12043 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12044
e0cdfe3c
HD
120452020-01-16 Hannes Domani <ssbssa@yahoo.de>
12046
12047 * windows-tdep.c (windows_get_tlb_type):
12048 Add rtl_user_process_parameters type.
12049
790f1718 120502020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12051 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12052
12053 PR build/24805
12054 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12055 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12056 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12057 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12058 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12059 (ps_plog): Redeclare exported functions with default visibility.
12060
3112ed97
NA
120612020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12062
12063 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12064 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12065
8dc3273e
SM
120662020-01-15 Simon Marchi <simon.marchi@efficios.com>
12067
12068 * infcmd.c (post_create_inferior): Use get_thread_regcache
12069 instead of get_current_regcache.
12070
ff47f4f0
TT
120712020-01-14 Tom Tromey <tom@tromey.com>
12072
12073 PR symtab/12535:
12074 * python/python.c (gdbpy_decode_line): Treat empty string the same
12075 as no argument.
12076
975f45b7
TT
120772020-01-14 Tom Tromey <tom@tromey.com>
12078
12079 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12080
25e57356
TT
120812020-01-14 Tom Tromey <tom@tromey.com>
12082
12083 * nat/linux-btrace.c: Don't include <config.h>.
12084 * nat/linux-ptrace.c: Don't include <config.h>.
12085 * nat/x86-linux-dregs.c: Don't include <config.h>.
12086
05ea2a05
TT
120872020-01-14 Tom Tromey <tom@tromey.com>
12088
12089 * configure: Rebuild.
12090 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12091
01027315
TT
120922020-01-14 Tom Tromey <tom@tromey.com>
12093
12094 * nat/x86-linux-dregs.c: Include configh.h.
12095 * nat/linux-ptrace.c: Include configh.h.
12096 * nat/linux-btrace.c: Include configh.h.
12097 * defs.h: Include config.h, bfd.h.
12098 * configure.ac: Don't source common.host.
12099 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12100 * configure: Rebuild.
12101 * acinclude.m4: Update path.
12102 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12103 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12104 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12105 (CLIBS): Add LIBSUPPORT.
12106 (CDEPS): Likewise.
12107 (COMMON_SFILES): Remove gdbsupport files.
12108 (HFILES_NO_SRCDIR): Likewise.
12109 (stamp-version): Update path to create-version.sh.
12110 (ALLDEPFILES): Remove gdbsupport files.
12111
b2ceabe8
TT
121122020-01-14 Tom Tromey <tom@tromey.com>
12113
12114 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12115 USE_WIN32API when needed.
12116 * configure.ac (USE_WIN32API): Don't define.
12117 (WIN32LIBS): Use WIN32APILIBS.
12118 * configure: Rebuild.
12119
25c51f71
TT
121202020-01-14 Tom Tromey <tom@tromey.com>
12121
12122 * configure: Rebuild.
12123 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12124
717c684d
BE
121252020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12126
12127 * skip.c (skip_function_command): Make skip w/o arguments use the
12128 name of the inlined function if pc is inside any inlined function.
12129
7da6a5b9
LM
121302020-01-14 Luis Machado <luis.machado@linaro.org>
12131
12132 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12133 * infrun.c (resume_1): Likewise.
12134 (handle_inferior_event): Remove stale comment.
12135 * linux-nat.c (linux_nat_target::resume): Update comments.
12136 (save_stop_reason): Likewise.
12137 (linux_nat_filter_event): Likewise.
12138 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12139
44e4c775
AB
121402020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12141
12142 * elfread.c (record_minimal_symbol): Set section index to 0 for
12143 non-allocatable sections.
12144
18a8505e
AT
12145
121462020-01-13 Ali Tamur <tamur@google.com>
12147
12148 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12149 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12150 to gdb::optional. Update comments.
12151 (dwo_file): Update comments.
12152 (read_attribute): Update API to take an additional out parameter,
12153 need_reprocess. This is used to mark attributes that need other
12154 attributes (e.g. str_offsets_base) for correct computation which may not
12155 have been read yet.
12156 (read_attribute_reprocess): New function declaration.
12157 (read_addr_index): Likewise.
12158 (read_dwo_str_index): Likewise.
12159 (read_stub_str_index): Likewise.
12160 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12161 (lookup_addr_base): New function definition.
12162 (lookup_ranges_base): Likewise.
12163 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12164 lookup_ranges_base.
12165 (init_cutu_and_read_dies): Update comments.
12166 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12167 unit. This is used to inherit parent's str_offsets_base and addr_base.
12168 Update comments.
12169 (init_cutu_and_read_dies_simple): Reflect API changes.
12170 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12171 (create_cus_hash_table): Change API to take parent compile unit.
12172 Reflect API changes.
12173 (open_and_init_dwo_file): Reflect API changes.
12174 (dwarf2_get_pc_bounds): Update comments.
12175 (dwarf2_record_block_ranges): Likewise.
12176 (read_full_die_1): Change implementation to reprocess attributes that
12177 need str_offsets_base and addr_base.
12178 (partial_die_info::read): Likewise.
12179 (read_attribute_reprocess): New function definition.
12180 (read_attribute_value): Change API to take an additional out parameter,
12181 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12182 when a non-dwo compile unit has index based attributes.
12183 (read_attribute): Reflect API changes.
12184 (read_addr_index_1): Reflect API changes. Update comments.
12185 (dwarf2_read_addr_index_data): Reflect API changes.
12186 (dwarf2_read_addr_index): Likewise.
12187 (read_str_index): Change API and implementation. This becomes a helper
12188 to be used by the new string index related methods. Update error
12189 message and comments.
12190 (read_dwo_str_index): New function definition.
12191 (read_stub_str_index): Likewise.
12192 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12193 * symfile.h (dwarf2_debug_sections): Likewise.
12194 * xcoffread.c (dwarf2_debug_sections): Likewise.
12195
0cac9354
SM
121962020-01-13 Simon Marchi <simon.marchi@efficios.com>
12197
12198 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12199 core_reg_sect type to gdb_byte *.
12200 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12201 * cris-tdep.c (fetch_core_registers): Likewise.
12202 * corelow.c (core_target::get_core_register_section): Change
12203 type of `contents` to gdb::byte_vector.
12204
9a6d629c
AB
122052020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12206
12207 * tui/tui-wingeneral.c (box_win): Position the title in the center
12208 of the border.
12209
d8b2f9e3
SM
122102020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12211
12212 * corelow.c (core_target::get_core_register_section): Use
12213 std::vector instead of alloca.
12214
bb564c58
SM
122152020-01-13 Simon Marchi <simon.marchi@efficios.com>
12216
12217 * warning.m4: Add -Wmissing-declarations to build_warnings.
12218 * configure: Re-generate.
12219
6b366111
SM
122202020-01-13 Simon Marchi <simon.marchi@efficios.com>
12221
12222 * python/python.c (init__gdb_module): Add declaration.
12223
6c265988
SM
122242020-01-13 Simon Marchi <simon.marchi@efficios.com>
12225
12226 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12227 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12228 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12229 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12230 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12231 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12232 * ada-exp.y (_initialize_ada_exp): Add declaration.
12233 * ada-lang.c (_initialize_ada_language): Add declaration.
12234 * ada-tasks.c (_initialize_tasks): Add declaration.
12235 * agent.c (_initialize_agent): Add declaration.
12236 * aix-thread.c (_initialize_aix_thread): Add declaration.
12237 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12238 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12239 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12240 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12241 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12242 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12243 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12244 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12245 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12246 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12247 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12248 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12249 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12250 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12251 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12252 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12253 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12254 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12255 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12256 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12257 * annotate.c (_initialize_annotate): Add declaration.
12258 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12259 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12260 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12261 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12262 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12263 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12264 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12265 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12266 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12267 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12268 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12269 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12270 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12271 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12272 * auto-load.c (_initialize_auto_load): Add declaration.
12273 * auxv.c (_initialize_auxv): Add declaration.
12274 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12275 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12276 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12277 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12278 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12279 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12280 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12281 * breakpoint.c (_initialize_breakpoint): Add declaration.
12282 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12283 * btrace.c (_initialize_btrace): Add declaration.
12284 * charset.c (_initialize_charset): Add declaration.
12285 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12286 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12287 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12288 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12289 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12290 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12291 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12292 * coffread.c (_initialize_coffread): Add declaration.
12293 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12294 * compile/compile.c (_initialize_compile): Add declaration.
12295 * complaints.c (_initialize_complaints): Add declaration.
12296 * completer.c (_initialize_completer): Add declaration.
12297 * copying.c (_initialize_copying): Add declaration.
12298 * corefile.c (_initialize_core): Add declaration.
12299 * corelow.c (_initialize_corelow): Add declaration.
12300 * cp-abi.c (_initialize_cp_abi): Add declaration.
12301 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12302 * cp-support.c (_initialize_cp_support): Add declaration.
12303 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12304 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12305 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12306 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12307 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12308 * ctfread.c (_initialize_ctfread): Add declaration.
12309 * d-lang.c (_initialize_d_language): Add declaration.
12310 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12311 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12312 * dbxread.c (_initialize_dbxread): Add declaration.
12313 * dcache.c (_initialize_dcache): Add declaration.
12314 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12315 * disasm.c (_initialize_disasm): Add declaration.
12316 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12317 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12318 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12319 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12320 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12321 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12322 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12323 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12324 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12325 * elfread.c (_initialize_elfread): Add declaration.
12326 * exec.c (_initialize_exec): Add declaration.
12327 * extension.c (_initialize_extension): Add declaration.
12328 * f-lang.c (_initialize_f_language): Add declaration.
12329 * f-valprint.c (_initialize_f_valprint): Add declaration.
12330 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12331 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12332 * filesystem.c (_initialize_filesystem): Add declaration.
12333 * findcmd.c (_initialize_mem_search): Add declaration.
12334 * findvar.c (_initialize_findvar): Add declaration.
12335 * fork-child.c (_initialize_fork_child): Add declaration.
12336 * frame-base.c (_initialize_frame_base): Add declaration.
12337 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12338 * frame.c (_initialize_frame): Add declaration.
12339 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12340 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12341 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12342 * gcore.c (_initialize_gcore): Add declaration.
12343 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12344 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12345 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12346 * gdbarch.c (_initialize_gdbarch): Add declaration.
12347 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12348 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12349 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12350 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12351 * go-lang.c (_initialize_go_language): Add declaration.
12352 * go32-nat.c (_initialize_go32_nat): Add declaration.
12353 * guile/guile.c (_initialize_guile): Add declaration.
12354 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12355 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12356 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12357 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12358 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12359 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12360 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12361 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12362 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12363 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12364 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12365 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12366 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12367 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12368 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12369 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12370 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12371 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12372 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12373 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12374 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12375 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12376 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12377 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12378 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12379 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12380 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12381 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12382 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12383 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12384 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12385 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12386 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12387 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12388 * infcall.c (_initialize_infcall): Add declaration.
12389 * infcmd.c (_initialize_infcmd): Add declaration.
12390 * inflow.c (_initialize_inflow): Add declaration.
12391 * infrun.c (_initialize_infrun): Add declaration.
12392 * interps.c (_initialize_interpreter): Add declaration.
12393 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12394 * jit.c (_initialize_jit): Add declaration.
12395 * language.c (_initialize_language): Add declaration.
12396 * linux-fork.c (_initialize_linux_fork): Add declaration.
12397 * linux-nat.c (_initialize_linux_nat): Add declaration.
12398 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12399 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12400 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12401 * m2-lang.c (_initialize_m2_language): Add declaration.
12402 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12403 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12404 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12405 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12406 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12407 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12408 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12409 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12410 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12411 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12412 * machoread.c (_initialize_machoread): Add declaration.
12413 * macrocmd.c (_initialize_macrocmd): Add declaration.
12414 * macroscope.c (_initialize_macroscope): Add declaration.
12415 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12416 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12417 * maint.c (_initialize_maint_cmds): Add declaration.
12418 * mdebugread.c (_initialize_mdebugread): Add declaration.
12419 * memattr.c (_initialize_mem): Add declaration.
12420 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12421 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12422 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12423 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12424 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12425 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12426 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12427 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12428 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12429 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12430 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12431 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12432 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12433 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12434 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12435 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12436 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12437 * mipsread.c (_initialize_mipsread): Add declaration.
12438 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12439 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12440 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12441 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12442 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12443 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12444 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12445 * nto-procfs.c (_initialize_procfs): Add declaration.
12446 * objc-lang.c (_initialize_objc_language): Add declaration.
12447 * observable.c (_initialize_observer): Add declaration.
12448 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12449 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12450 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12451 * osabi.c (_initialize_gdb_osabi): Add declaration.
12452 * osdata.c (_initialize_osdata): Add declaration.
12453 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12454 * parse.c (_initialize_parse): Add declaration.
12455 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12456 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12457 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12458 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12459 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12460 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12461 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12462 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12463 * printcmd.c (_initialize_printcmd): Add declaration.
12464 * probe.c (_initialize_probe): Add declaration.
12465 * proc-api.c (_initialize_proc_api): Add declaration.
12466 * proc-events.c (_initialize_proc_events): Add declaration.
12467 * proc-service.c (_initialize_proc_service): Add declaration.
12468 * procfs.c (_initialize_procfs): Add declaration.
12469 * producer.c (_initialize_producer): Add declaration.
12470 * psymtab.c (_initialize_psymtab): Add declaration.
12471 * python/python.c (_initialize_python): Add declaration.
12472 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12473 * record-btrace.c (_initialize_record_btrace): Add declaration.
12474 * record-full.c (_initialize_record_full): Add declaration.
12475 * record.c (_initialize_record): Add declaration.
12476 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12477 * regcache.c (_initialize_regcache): Add declaration.
12478 * reggroups.c (_initialize_reggroup): Add declaration.
12479 * remote-notif.c (_initialize_notif): Add declaration.
12480 * remote-sim.c (_initialize_remote_sim): Add declaration.
12481 * remote.c (_initialize_remote): Add declaration.
12482 * reverse.c (_initialize_reverse): Add declaration.
12483 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12484 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12485 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12486 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12487 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12488 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12489 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12490 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12491 Add declaration.
12492 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12493 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12494 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12495 * rust-exp.y (_initialize_rust_exp): Add declaration.
12496 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12497 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12498 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12499 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12500 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12501 * score-tdep.c (_initialize_score_tdep): Add declaration.
12502 * ser-go32.c (_initialize_ser_dos): Add declaration.
12503 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12504 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12505 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12506 * ser-uds.c (_initialize_ser_socket): Add declaration.
12507 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12508 * serial.c (_initialize_serial): Add declaration.
12509 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12510 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12511 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12512 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12513 * skip.c (_initialize_step_skip): Add declaration.
12514 * sol-thread.c (_initialize_sol_thread): Add declaration.
12515 * solib-aix.c (_initialize_solib_aix): Add declaration.
12516 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12517 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12518 * solib-frv.c (_initialize_frv_solib): Add declaration.
12519 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12520 * solib-target.c (_initialize_solib_target): Add declaration.
12521 * solib.c (_initialize_solib): Add declaration.
12522 * source-cache.c (_initialize_source_cache): Add declaration.
12523 * source.c (_initialize_source): Add declaration.
12524 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12525 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12526 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12527 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12528 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12529 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12530 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12531 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12532 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12533 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12534 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12535 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12536 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12537 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12538 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12539 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12540 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12541 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12542 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12543 * stabsread.c (_initialize_stabsread): Add declaration.
12544 * stack.c (_initialize_stack): Add declaration.
12545 * stap-probe.c (_initialize_stap_probe): Add declaration.
12546 * std-regs.c (_initialize_frame_reg): Add declaration.
12547 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12548 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12549 * symfile.c (_initialize_symfile): Add declaration.
12550 * symmisc.c (_initialize_symmisc): Add declaration.
12551 * symtab.c (_initialize_symtab): Add declaration.
12552 * target.c (_initialize_target): Add declaration.
12553 * target-connection.c (_initialize_target_connection): Add
12554 declaration.
12555 * target-dcache.c (_initialize_target_dcache): Add declaration.
12556 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12557 * thread.c (_initialize_thread): Add declaration.
12558 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12559 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12560 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12561 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12562 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12563 * tracectf.c (_initialize_ctf): Add declaration.
12564 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12565 * tracefile.c (_initialize_tracefile): Add declaration.
12566 * tracepoint.c (_initialize_tracepoint): Add declaration.
12567 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12568 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12569 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12570 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12571 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12572 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12573 * tui/tui.c (_initialize_tui): Add declaration.
12574 * typeprint.c (_initialize_typeprint): Add declaration.
12575 * ui-style.c (_initialize_ui_style): Add declaration.
12576 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12577 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12578 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12579 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12580 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12581 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12582 * unittests/filtered_iterator-selftests.c
12583 (_initialize_filtered_iterator_selftests): Add declaration.
12584 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12585 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12586 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12587 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12588 * unittests/main-thread-selftests.c
12589 (_initialize_main_thread_selftests): Add declaration.
12590 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12591 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12592 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12593 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12594 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12595 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12596 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12597 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12598 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12599 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12600 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12601 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12602 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12603 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12604 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12605 declaration.
12606 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12607 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12608 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12609 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12610 * user-regs.c (_initialize_user_regs): Add declaration.
12611 * utils.c (_initialize_utils): Add declaration.
12612 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12613 * valops.c (_initialize_valops): Add declaration.
12614 * valprint.c (_initialize_valprint): Add declaration.
12615 * value.c (_initialize_values): Add declaration.
12616 * varobj.c (_initialize_varobj): Add declaration.
12617 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12618 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12619 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12620 * windows-nat.c (_initialize_windows_nat): Add declaration.
12621 (_initialize_check_for_gdb_ini): Add declaration.
12622 (_initialize_loadable): Add declaration.
12623 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12624 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12625 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12626 * xcoffread.c (_initialize_xcoffread): Add declaration.
12627 * xml-support.c (_initialize_xml_support): Add declaration.
12628 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12629 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12630 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12631 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12632
e2de1eec
SM
126332020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12634
12635 * regformats/regdat.sh: Generate declaration for init function.
12636
e0037b4c
SM
126372020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12638
12639 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12640 up.
12641 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12642 close_one_inferior>: New methods.
12643 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12644 pass down target to find_inferior_pid.
12645 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12646 Pass down target to find_inferior_ptid.
12647 (gdbsim_target::create_inferior): Pass down target to
12648 add_thread_silent.
12649 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12650 target down to find_inferior_ptid and switch_to_thread.
12651 (gdbsim_target::close): Update to call close_one_inferior.
12652 (struct resume_data): Remove.
12653 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12654 directly, rather than through a void pointer.
12655 (gdbsim_target::resume): Update to call resume_one_inferior.
12656
58920b5b
SM
126572020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12658
12659 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12660
4ec89149
PA
126612020-01-12 Pedro Alves <palves@redhat.com>
12662
12663 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12664 directly for the current inferior instead of
12665 discard_all_inferiors.
12666 (discard_all_inferiors): Delete.
12667
7c392d1d
TT
126682020-01-11 Tom Tromey <tom@tromey.com>
12669
12670 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12671 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12672 deprecated_safe_get_selected_frame.
12673
d9ebdab7
TBA
126742020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12675
12676 * inferior.c (print_inferior): Switch inferior before printing it.
12677
f3c469b9
PA
126782020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12679 Pedro Alves <palves@redhat.com>
12680
12681 * progspace-and-thread.c (switch_to_program_space_and_thread):
12682 Assert there's an inferior for PSPACE. Use
12683 switch_to_inferior_no_thread to switch the inferior too.
12684 * progspace.c (program_space::~program_space): Call
12685 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12686 (program_space::free_all_objfiles): Don't call clear_symtab_users
12687 here.
12688 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12689
65c574f6
PA
126902020-01-10 Pedro Alves <palves@redhat.com>
12691
12692 * NEWS: Mention multi-target debugging, "info connections", and
12693 "add-inferior -no-connection".
12694
2f4fcf00
PA
126952020-01-10 Pedro Alves <palves@redhat.com>
12696
12697 * infrun.c: Include "target-connection.h".
12698 (check_multi_target_resumption): New.
12699 (proceed): Call it.
12700 * target-connection.c (make_target_connection_string): Make
12701 extern.
12702 * target-connection.h (make_target_connection_string): Declare.
12703
121b3efd
PA
127042020-01-10 Pedro Alves <palves@redhat.com>
12705
12706 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12707 * inferior.c (uiout_field_connection): New function.
12708 (print_inferior): Add new "connection-id" column.
12709 (add_inferior_command): Show connection number/string of added
12710 inferior.
12711 * process-stratum-target.h
12712 (process_stratum_target::connection_string): New virtual method.
12713 (process_stratum_target::connection_number): New field.
12714 * remote.c (remote_target::connection_string): New override.
12715 * target-connection.c: New file.
12716 * target-connection.h: New file.
12717 * target.c (decref_target): Remove process_stratum targets from
12718 the connection list.
12719 (target_stack::push): Add process_stratum targets to the
12720 connection list.
12721
4f837581
PA
127222020-01-10 Pedro Alves <palves@redhat.com>
12723
12724 Revert:
12725 2016-04-12 Pedro Alves <palves@redhat.com>
12726 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12727 Remove references to name.
12728 * serial.h (struct serial) <name>: Delete.
12729
f4ec508e
PA
127302020-01-10 Pedro Alves <palves@redhat.com>
12731
12732 * gdbarch-selftests.c (register_to_value_test): Remove "target
12733 already pushed" check.
12734
5b6d1e4f
PA
127352020-01-10 Pedro Alves <palves@redhat.com>
12736 John Baldwin <jhb@FreeBSD.org>
12737
12738 * aarch64-linux-nat.c
12739 (aarch64_linux_nat_target::thread_architecture): Adjust.
12740 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12741 (task_command_1): Likewise.
12742 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12743 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12744 (aix_thread_target::store_registers)
12745 (aix_thread_target::thread_alive): Adjust.
12746 * amd64-fbsd-tdep.c: Include "inferior.h".
12747 (amd64fbsd_get_thread_local_address): Pass down target.
12748 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12749 thread's gdbarch instead of target_gdbarch.
12750 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12751 get_last_target_status.
12752 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12753 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12754 inferiors.
12755 (update_inserted_breakpoint_locations): Skip if inferiors with no
12756 execution.
12757 (update_global_location_list): When handling moribund locations,
12758 find representative inferior for location's pspace, and use thread
12759 count of its process_stratum target.
12760 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12761 * bsd-uthread.c (bsd_uthread_target::wait): Use
12762 as_process_stratum_target and adjust thread_change_ptid and
12763 add_thread calls.
12764 (bsd_uthread_target::update_thread_list): Use
12765 as_process_stratum_target and adjust find_thread_ptid,
12766 thread_change_ptid and add_thread calls.
12767 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12768 find_thread_ptid call.
12769 * corelow.c (add_to_thread_list): Adjust add_thread call.
12770 (core_target_open): Adjust add_thread_silent and thread_count
12771 calls.
12772 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12773 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12774 * event-top.c (async_disconnect): Pop targets from all inferiors.
12775 * exec.c (add_target_sections): Push exec target on all inferiors
12776 sharing the program space.
12777 (remove_target_sections): Remove the exec target from all
12778 inferiors sharing the program space.
12779 (exec_on_vfork): New.
12780 * exec.h (exec_on_vfork): Declare.
12781 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12782 Pass it down.
12783 (fbsd_nat_target::update_thread_list): Adjust.
12784 (fbsd_nat_target::resume): Adjust.
12785 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12786 down.
12787 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12788 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12789 get_thread_arch_regcache call.
12790 * fork-child.c (gdb_startup_inferior): Pass target down to
12791 startup_inferior and set_executing.
12792 * gdbthread.h (struct process_stratum_target): Forward declare.
12793 (add_thread, add_thread_silent, add_thread_with_info)
12794 (in_thread_list): Add process_stratum_target parameter.
12795 (find_thread_ptid(inferior*, ptid_t)): New overload.
12796 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12797 parameter.
12798 (all_threads()): Delete overload.
12799 (all_threads, all_non_exited_threads): Add process_stratum_target
12800 parameter.
12801 (all_threads_safe): Use brace initialization.
12802 (thread_count): Add process_stratum_target parameter.
12803 (set_resumed, set_running, set_stop_requested, set_executing)
12804 (threads_are_executing, finish_thread_state): Add
12805 process_stratum_target parameter.
12806 (switch_to_thread): Use is_current_thread.
12807 * i386-fbsd-tdep.c: Include "inferior.h".
12808 (i386fbsd_get_thread_local_address): Pass down target.
12809 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12810 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12811 have_inferiors check.
12812 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12813 (inf_ptrace_target::attach): Adjust.
12814 * infcall.c (run_inferior_call): Adjust.
12815 * infcmd.c (run_command_1): Pass target to
12816 scoped_finish_thread_state.
12817 (proceed_thread_callback): Skip inferiors with no execution.
12818 (continue_command): Rename 'all_threads' local to avoid hiding
12819 'all_threads' function. Adjust get_last_target_status call.
12820 (prepare_one_step): Adjust set_running call.
12821 (signal_command): Use user_visible_resume_target. Compare thread
12822 pointers instead of inferior_ptid.
12823 (info_program_command): Adjust to pass down target.
12824 (attach_command): Mark target's 'thread_executing' flag.
12825 (stop_current_target_threads_ns): New, factored out from ...
12826 (interrupt_target_1): ... this. Switch inferior before making
12827 target calls.
12828 * inferior-iter.h
12829 (struct all_inferiors_iterator, struct all_inferiors_range)
12830 (struct all_inferiors_safe_range)
12831 (struct all_non_exited_inferiors_range): Filter on
12832 process_stratum_target too. Remove explicit.
12833 * inferior.c (inferior::inferior): Push dummy target on target
12834 stack.
12835 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12836 Add process_stratum_target parameter, and pass it down.
12837 (have_live_inferiors): Adjust.
12838 (switch_to_inferior_and_push_target): New.
12839 (add_inferior_command, clone_inferior_command): Handle
12840 "-no-connection" parameter. Use
12841 switch_to_inferior_and_push_target.
12842 (_initialize_inferior): Mention "-no-connection" option in
12843 the help of "add-inferior" and "clone-inferior" commands.
12844 * inferior.h: Include "process-stratum-target.h".
12845 (interrupt_target_1): Use bool.
12846 (struct inferior) <push_target, unpush_target, target_is_pushed,
12847 find_target_beneath, top_target, process_target, target_at,
12848 m_stack>: New.
12849 (discard_all_inferiors): Delete.
12850 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12851 (all_inferiors, all_non_exited_inferiors): Add
12852 process_stratum_target parameter.
12853 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12854 (target_last_proc_target): New global.
12855 (follow_fork_inferior): Push target on new inferior. Pass target
12856 to add_thread_silent. Call exec_on_vfork. Handle target's
12857 reference count.
12858 (follow_fork): Adjust get_last_target_status call. Also consider
12859 target.
12860 (follow_exec): Push target on new inferior.
12861 (struct execution_control_state) <target>: New field.
12862 (user_visible_resume_target): New.
12863 (do_target_resume): Call target_async.
12864 (resume_1): Set target's threads_executing flag. Consider resume
12865 target.
12866 (commit_resume_all_targets): New.
12867 (proceed): Also consider resume target. Skip threads of inferiors
12868 with no execution. Commit resumtion in all targets.
12869 (start_remote): Pass current inferior to wait_for_inferior.
12870 (infrun_thread_stop_requested): Consider target as well. Pass
12871 thread_info pointer to clear_inline_frame_state instead of ptid.
12872 (infrun_thread_thread_exit): Consider target as well.
12873 (random_pending_event_thread): New inferior parameter. Use it.
12874 (do_target_wait): Rename to ...
12875 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12876 down.
12877 (threads_are_resumed_pending_p, do_target_wait): New.
12878 (prepare_for_detach): Adjust calls.
12879 (wait_for_inferior): New inferior parameter. Handle it. Use
12880 do_target_wait_1 instead of do_target_wait.
12881 (fetch_inferior_event): Adjust. Switch to representative
12882 inferior. Pass target down.
12883 (set_last_target_status): Add process_stratum_target parameter.
12884 Save target in global.
12885 (get_last_target_status): Add process_stratum_target parameter and
12886 handle it.
12887 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12888 (context_switch): Check inferior_ptid == null_ptid before calling
12889 inferior_thread().
12890 (get_inferior_stop_soon): Pass down target.
12891 (wait_one): Rename to ...
12892 (poll_one_curr_target): ... this.
12893 (struct wait_one_event): New.
12894 (wait_one): New.
12895 (stop_all_threads): Adjust.
12896 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12897 event's target.
12898 (switch_back_to_stepped_thread): Also consider target.
12899 (print_stop_event): Update.
12900 (normal_stop): Update. Also consider the resume target.
12901 * infrun.h (wait_for_inferior): Remove declaration.
12902 (user_visible_resume_target): New declaration.
12903 (get_last_target_status, set_last_target_status): New
12904 process_stratum_target parameter.
12905 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12906 process_stratum_target parameter, and use it.
12907 (clear_inline_frame_state (thread_info*)): New.
12908 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12909 process_stratum_target parameter.
12910 (clear_inline_frame_state (thread_info*)): Declare.
12911 * linux-fork.c (delete_checkpoint_command): Pass target down to
12912 find_thread_ptid.
12913 (checkpoint_command): Adjust.
12914 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12915 instead of just tweaking inferior_ptid.
12916 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12917 (exit_lwp): Pass target down to find_thread_ptid.
12918 (attach_proc_task_lwp_callback): Pass target down to
12919 add_thread/set_running/set_executing.
12920 (linux_nat_target::attach): Pass target down to
12921 thread_change_ptid.
12922 (get_detach_signal): Pass target down to find_thread_ptid.
12923 Consider last target status's target.
12924 (linux_resume_one_lwp_throw, resume_lwp)
12925 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12926 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12927 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12928 (linux_nat_target::async_wait_fd): New.
12929 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12930 target down.
12931 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12932 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12933 * linux-thread-db.c (struct thread_db_info::process_target): New
12934 field.
12935 (add_thread_db_info): Save target.
12936 (get_thread_db_info): New process_stratum_target parameter. Also
12937 match target.
12938 (delete_thread_db_info): New process_stratum_target parameter.
12939 Also match target.
12940 (thread_from_lwp): Adjust to pass down target.
12941 (thread_db_notice_clone): Pass down target.
12942 (check_thread_db_callback): Pass down target.
12943 (try_thread_db_load_1): Always push the thread_db target.
12944 (try_thread_db_load, record_thread): Pass target down.
12945 (thread_db_target::detach): Pass target down. Always unpush the
12946 thread_db target.
12947 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12948 target down. Always unpush the thread_db target.
12949 (find_new_threads_callback, thread_db_find_new_threads_2)
12950 (thread_db_target::update_thread_list): Pass target down.
12951 (thread_db_target::pid_to_str): Pass current inferior down.
12952 (thread_db_target::get_thread_local_address): Pass target down.
12953 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12954 target down.
12955 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12956 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12957 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12958 (procfs_init_inferior): Rename to ...
12959 (procfs_target::procfs_init_inferior): ... this and adjust.
12960 (procfs_target::create_inferior, procfs_notice_thread)
12961 (procfs_do_thread_registers): Adjust.
12962 * ppc-fbsd-tdep.c: Include "inferior.h".
12963 (ppcfbsd_get_thread_local_address): Pass down target.
12964 * proc-service.c (ps_xfer_memory): Switch current inferior and
12965 program space as well.
12966 (get_ps_regcache): Pass target down.
12967 * process-stratum-target.c
12968 (process_stratum_target::thread_address_space)
12969 (process_stratum_target::thread_architecture): Pass target down.
12970 * process-stratum-target.h
12971 (process_stratum_target::threads_executing): New field.
12972 (as_process_stratum_target): New.
12973 * ravenscar-thread.c
12974 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12975 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12976 down.
12977 * record-btrace.c (record_btrace_target::info_record): Adjust.
12978 (record_btrace_target::record_method)
12979 (record_btrace_target::record_is_replaying)
12980 (record_btrace_target::fetch_registers)
12981 (get_thread_current_frame_id, record_btrace_target::resume)
12982 (record_btrace_target::wait, record_btrace_target::stop): Pass
12983 target down.
12984 * record-full.c (record_full_wait_1): Switch to event thread.
12985 Pass target down.
12986 * regcache.c (regcache::regcache)
12987 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12988 process_stratum_target parameter and handle it.
12989 (current_thread_target): New global.
12990 (get_thread_regcache): Add process_stratum_target parameter and
12991 handle it. Switch inferior before calling target method.
12992 (get_thread_regcache): Pass target down.
12993 (get_thread_regcache_for_ptid): Pass target down.
12994 (registers_changed_ptid): Add process_stratum_target parameter and
12995 handle it.
12996 (registers_changed_thread, registers_changed): Pass target down.
12997 (test_get_thread_arch_aspace_regcache): New.
12998 (current_regcache_test): Define a couple local test_target_ops
12999 instances and use them for testing.
13000 (readwrite_regcache): Pass process_stratum_target parameter.
13001 (cooked_read_test, cooked_write_test): Pass mock_target down.
13002 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13003 (get_thread_arch_aspace_regcache): Add process_stratum_target
13004 parameter.
13005 (regcache::target): New method.
13006 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13007 (regcache::registers_changed_ptid): Add process_stratum_target
13008 parameter.
13009 (regcache::m_target): New field.
13010 (registers_changed_ptid): Add process_stratum_target parameter.
13011 * remote.c (remote_state::supports_vCont_probed): New field.
13012 (remote_target::async_wait_fd): New method.
13013 (remote_unpush_and_throw): Add remote_target parameter.
13014 (get_current_remote_target): Adjust.
13015 (remote_target::remote_add_inferior): Push target.
13016 (remote_target::remote_add_thread)
13017 (remote_target::remote_notice_new_inferior)
13018 (get_remote_thread_info): Pass target down.
13019 (remote_target::update_thread_list): Skip threads of inferiors
13020 bound to other targets. (remote_target::close): Don't discard
13021 inferiors. (remote_target::add_current_inferior_and_thread)
13022 (remote_target::process_initial_stop_replies)
13023 (remote_target::start_remote)
13024 (remote_target::remote_serial_quit_handler): Pass down target.
13025 (remote_target::remote_unpush_target): New remote_target
13026 parameter. Unpush the target from all inferiors.
13027 (remote_target::remote_unpush_and_throw): New remote_target
13028 parameter. Pass it down.
13029 (remote_target::open_1): Check whether the current inferior has
13030 execution instead of checking whether any inferior is live. Pass
13031 target down.
13032 (remote_target::remote_detach_1): Pass down target. Use
13033 remote_unpush_target.
13034 (extended_remote_target::attach): Pass down target.
13035 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13036 (remote_target::append_resumption): Pass down target.
13037 (remote_target::append_pending_thread_resumptions)
13038 (remote_target::remote_resume_with_hc, remote_target::resume)
13039 (remote_target::commit_resume): Pass down target.
13040 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13041 (remote_target::interrupt_query)
13042 (remote_target::remove_new_fork_children)
13043 (remote_target::check_pending_events_prevent_wildcard_vcont)
13044 (remote_target::remote_parse_stop_reply)
13045 (remote_target::process_stop_reply): Pass down target.
13046 (first_remote_resumed_thread): New remote_target parameter. Pass
13047 it down.
13048 (remote_target::wait_as): Pass down target.
13049 (unpush_and_perror): New remote_target parameter. Pass it down.
13050 (remote_target::readchar, remote_target::remote_serial_write)
13051 (remote_target::getpkt_or_notif_sane_1)
13052 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13053 down target.
13054 (remote_target::mourn_inferior): Pass down target. Use
13055 remote_unpush_target.
13056 (remote_target::core_of_thread)
13057 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13058 (remote_target::pid_to_exec_file)
13059 (remote_target::thread_handle_to_thread_info): Pass down target.
13060 (remote_target::async_wait_fd): New.
13061 * riscv-fbsd-tdep.c: Include "inferior.h".
13062 (riscv_fbsd_get_thread_local_address): Pass down target.
13063 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13064 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13065 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13066 Adjust.
13067 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13068 * solib-svr4.c (enable_break): Pass down target.
13069 * spu-multiarch.c (parse_spufs_run): Pass down target.
13070 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13071 * target-delegates.c: Regenerate.
13072 * target.c (g_target_stack): Delete.
13073 (current_top_target): Return the current inferior's top target.
13074 (target_has_execution_1): Refer to the passed-in inferior's top
13075 target.
13076 (target_supports_terminal_ours): Check whether the initial
13077 inferior was already created.
13078 (decref_target): New.
13079 (target_stack::push): Incref/decref the target.
13080 (push_target, push_target, unpush_target): Adjust.
13081 (target_stack::unpush): Defref target.
13082 (target_is_pushed): Return bool. Adjust to refer to the current
13083 inferior's target stack.
13084 (dispose_inferior): Delete, and inline parts ...
13085 (target_preopen): ... here. Only dispose of the current inferior.
13086 (target_detach): Hold strong target reference while detaching.
13087 Pass target down.
13088 (target_thread_name): Add assertion.
13089 (target_resume): Pass down target.
13090 (target_ops::beneath, find_target_at): Adjust to refer to the
13091 current inferior's target stack.
13092 (get_dummy_target): New.
13093 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13094 has a thread running.
13095 (initialize_targets): Rename to ...
13096 (_initialize_target): ... this.
13097 * target.h: Include "gdbsupport/refcounted-object.h".
13098 (struct target_ops): Inherit refcounted_object.
13099 (target_ops::shortname, target_ops::longname): Make const.
13100 (target_ops::async_wait_fd): New method.
13101 (decref_target): Declare.
13102 (struct target_ops_ref_policy): New.
13103 (target_ops_ref): New typedef.
13104 (get_dummy_target): Declare function.
13105 (target_is_pushed): Return bool.
13106 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13107 (all_matching_threads_iterator::all_matching_threads_iterator):
13108 Handle filter target.
13109 * thread-iter.h (struct all_matching_threads_iterator, struct
13110 all_matching_threads_range, class all_non_exited_threads_range):
13111 Filter by target too. Remove explicit.
13112 * thread.c (threads_executing): Delete.
13113 (inferior_thread): Pass down current inferior.
13114 (clear_thread_inferior_resources): Pass down thread pointer
13115 instead of ptid_t.
13116 (add_thread_silent, add_thread_with_info, add_thread): Add
13117 process_stratum_target parameter. Use it for thread and inferior
13118 searches.
13119 (is_current_thread): New.
13120 (thread_info::deletable): Use it.
13121 (find_thread_ptid, thread_count, in_thread_list)
13122 (thread_change_ptid, set_resumed, set_running): New
13123 process_stratum_target parameter. Pass it down.
13124 (set_executing): New process_stratum_target parameter. Pass it
13125 down. Adjust reference to 'threads_executing'.
13126 (threads_are_executing): New process_stratum_target parameter.
13127 Adjust reference to 'threads_executing'.
13128 (set_stop_requested, finish_thread_state): New
13129 process_stratum_target parameter. Pass it down.
13130 (switch_to_thread): Also match inferior.
13131 (switch_to_thread): New process_stratum_target parameter. Pass it
13132 down.
13133 (update_threads_executing): Reimplement.
13134 * top.c (quit_force): Pop targets from all inferior.
13135 (gdb_init): Don't call initialize_targets.
13136 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13137 Declare.
13138 (windows_add_thread, windows_delete_thread): Adjust.
13139 (get_windows_debug_event): Rename to ...
13140 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13141 * tracefile-tfile.c (tfile_target_open): Pass down target.
13142 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13143 Forward declare.
13144 (switch_to_thread): Add process_stratum_target parameter.
13145 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13146 parameter. Use it.
13147 (mi_on_resume): Pass target down.
13148 * nat/fork-inferior.c (startup_inferior): Add
13149 process_stratum_target parameter. Pass it down.
13150 * nat/fork-inferior.h (startup_inferior): Add
13151 process_stratum_target parameter.
13152 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13153
75c6c844
PA
131542020-01-10 Pedro Alves <palves@redhat.com>
13155
13156 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13157 directly. Instead find the first thread in the thread list and
13158 use switch_to_thread.
13159
78f2c40a
PA
131602020-01-10 Pedro Alves <palves@redhat.com>
13161
13162 * remote.c (remote_target::remote_add_inferior): Don't bind a
13163 process to the current inferior if the current inferior is already
13164 bound to a process.
13165
e7af6c70
TBA
131662020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13167 Pedro Alves <palves@redhat.com>
13168
13169 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13170 If no process is specified, return null_ptid instead of
13171 inferior_ptid.
13172 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13173 TARGET_WAITKIND_SIGNALLED with no pid.
13174
31ba933e
PA
131752020-01-10 Pedro Alves <palves@redhat.com>
13176
13177 * remote.c (first_remote_resumed_thread): New.
13178 (remote_target::wait_as): Use it as default event_ptid instead of
13179 inferior_ptid.
13180
735fc2ca
PA
131812020-01-10 Pedro Alves <palves@redhat.com>
13182
13183 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13184
c17e02e1
PA
131852020-01-10 Pedro Alves <palves@redhat.com>
13186
13187 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13188 not -1.
13189
ab1ddbcf
PA
131902020-01-10 Pedro Alves <palves@redhat.com>
13191
13192 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13193 ptid to get_last_target_status.
13194 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13195 ptid to get_last_target_status.
13196 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13197 get_last_target_status.
13198 (info_program_command): Don't pass a target_waitstatus to
13199 get_last_target_status.
13200 * infrun.c (init_wait_for_inferior): Use
13201 nullify_last_target_wait_ptid.
13202 (get_last_target_status): Handle nullptr arguments.
13203 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13204 (print_stop_event): Don't pass a ptid to get_last_target_status.
13205 (normal_stop): Don't pass a ptid to get_last_target_status.
13206 * infrun.h (get_last_target_status, set_last_target_status): Move
13207 comments here and update.
13208 (nullify_last_target_wait_ptid): Declare.
13209 * linux-fork.c (fork_load_infrun_state): Remove local extern
13210 declaration of nullify_last_target_wait_ptid.
13211 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13212 to get_last_target_status.
13213
f3f8ece4
PA
132142020-01-10 Pedro Alves <palves@redhat.com>
13215
13216 * gdbthread.h (scoped_restore_current_thread)
13217 <dont_restore, restore, m_dont_restore>: Declare.
13218 * thread.c (thread_alive): Add assertion. Return bool.
13219 (switch_to_thread_if_alive): New.
13220 (prune_threads): Switch inferior/thread.
13221 (print_thread_info_1): Switch thread before calling target methods.
13222 (scoped_restore_current_thread::restore): New, factored out from
13223 ...
13224 (scoped_restore_current_thread::~scoped_restore_current_thread):
13225 ... this.
13226 (scoped_restore_current_thread::scoped_restore_current_thread):
13227 Add assertion.
13228 (thread_apply_all_command, thread_select): Use
13229 switch_to_thread_if_alive.
13230 * infrun.c (proceed, restart_threads, handle_signal_stop)
13231 (switch_back_to_stepped_thread): Switch current thread before
13232 calling target methods.
13233
db2d40f7
PA
132342020-01-10 Pedro Alves <palves@redhat.com>
13235
13236 * inferior.c (switch_to_inferior_no_thread): New function,
13237 factored out from ...
13238 (inferior_command): ... here.
13239 * inferior.h (switch_to_inferior_no_thread): Declare.
13240 * mi/mi-main.c (run_one_inferior): Use
13241 switch_to_inferior_no_thread.
13242
bd420a2d
PA
132432020-01-10 Pedro Alves <palves@redhat.com>
13244
13245 * infcmd.c (kill_command): Remove dead code.
13246
ddf5db90
PA
132472020-01-10 Pedro Alves <palves@redhat.com>
13248
13249 * remote.c (remote_target::mourn_inferior): No longer check
13250 whether the target is running.
13251
5018ce90
PA
132522020-01-10 Pedro Alves <palves@redhat.com>
13253
13254 * corelow.c (core_target::has_execution): Change parameter type to
13255 inferior pointer.
13256 * inferior.c (number_of_live_inferiors): Use
13257 inferior::has_execution instead of target_has_execution_1.
13258 * inferior.h (inferior::has_execution): New.
13259 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13260 inferior::has_execution instead of target_has_execution_1.
13261 * process-stratum-target.c
13262 (process_stratum_target::has_execution): Change parameter type to
13263 inferior pointer. Check the inferior's PID instead of
13264 inferior_ptid.
13265 * process-stratum-target.h
13266 (process_stratum_target::has_execution): Change parameter type to
13267 inferior pointer.
13268 * record-full.c (record_full_core_target::has_execution): Change
13269 parameter type to inferior pointer.
13270 * target.c (target_has_execution_1): Change parameter type to
13271 inferior pointer.
13272 (target_has_execution_current): Adjust.
13273 * target.h (target_ops::has_execution): Change parameter type to
13274 inferior pointer.
13275 (target_has_execution_1): Change parameter type to inferior
13276 pointer. Change return type to bool.
13277 * tracefile.h (tracefile_target::has_execution): Change parameter
13278 type to inferior pointer.
13279
74375d18
PA
132802020-01-10 Pedro Alves <palves@redhat.com>
13281
13282 * exceptions.c (print_flush): Remove current_top_target() check.
13283
acdf84a6
PA
132842020-01-10 Pedro Alves <palves@redhat.com>
13285
13286 * remote.c (show_remote_exec_file): Show the current inferior's
13287 exec-file instead of the command variable's value.
13288
ec506636
PA
132892020-01-10 Pedro Alves <palves@redhat.com>
13290
13291 * record-full.c (record_full_resume_ptid): New global.
13292 (record_full_target::resume): Set it.
13293 (record_full_wait_1): Use record_full_resume_ptid instead of
13294 inferior_ptid.
13295
873657b9
PA
132962020-01-10 Pedro Alves <palves@redhat.com>
13297
13298 * gdbthread.h (scoped_restore_current_thread)
13299 <dont_restore, restore, m_dont_restore>: Declare.
13300 * thread.c (thread_alive): Add assertion. Return bool.
13301 (switch_to_thread_if_alive): New.
13302 (prune_threads): Switch inferior/thread.
13303 (print_thread_info_1): Switch thread before calling target methods.
13304 (scoped_restore_current_thread::restore): New, factored out from
13305 ...
13306 (scoped_restore_current_thread::~scoped_restore_current_thread):
13307 ... this.
13308 (scoped_restore_current_thread::scoped_restore_current_thread):
13309 Add assertion.
13310 (thread_apply_all_command, thread_select): Use
13311 switch_to_thread_if_alive.
13312
7f0ae84c
GB
133132020-01-10 George Barrett <bob@bob131.so>
13314
13315 * stap-probe.c (stap_modify_semaphore): Don't check for null
13316 semaphores.
13317 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13318 for null semaphores.
13319
f5a7c406
AB
133202020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13321
13322 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13323 all source windows, and maintain horizontal scroll status while
13324 doing so.
13325
9ae6bf64
TT
133262020-01-09 Tom Tromey <tom@tromey.com>
13327
13328 PR tui/18932:
13329 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13330 update_source_window, not print_source_lines.
13331
b2efe70c
AB
133322020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13333
13334 * tui/tui.c (tui_enable): Register tui hooks after calling
13335 tui_display_main.
13336
5f23a082
CB
133372020-01-09 Christian Biesinger <cbiesinger@google.com>
13338
13339 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13340
3061113b
SM
133412020-01-08 Simon Marchi <simon.marchi@efficios.com>
13342
13343 * thread.c (print_thread_info_1): Fix indentation.
13344
57d75002
CB
133452020-01-09 Christian Biesinger <cbiesinger@google.com>
13346
13347 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13348 unique_xmalloc_ptr outside the if to always free the demangled name.
13349
6a053cb1
TT
133502020-01-08 Tom Tromey <tromey@adacore.com>
13351
13352 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13353 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13354 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13355 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13356 Remove.
13357 (section_offsets): New typedef.
13358 * symtab.c (fixup_section, get_msymbol_address): Update.
13359 * symmisc.c (dump_msymbols): Update.
13360 * symfile.h (relative_addr_info_to_section_offsets)
13361 (symfile_map_offsets_to_segments): Update.
13362 * symfile.c (build_section_addr_info_from_objfile)
13363 (init_objfile_sect_indices): Update.
13364 (struct place_section_arg): Change type of "offsets".
13365 (place_section): Update.
13366 (relative_addr_info_to_section_offsets): Change type of
13367 "section_offsets". Remove "num_sections" parameter.
13368 (default_symfile_offsets, syms_from_objfile_1)
13369 (set_objfile_default_section_offset): Update.
13370 (reread_symbols): No need to preserve section offsets by hand.
13371 (symfile_map_offsets_to_segments): Change type of "offsets".
13372 * stap-probe.c (relocate_address): Update.
13373 * stabsread.h (process_one_symbol): Update.
13374 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13375 (solib_target_relocate_section_addresses): Update.
13376 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13377 Update.
13378 * solib-frv.c (frv_relocate_main_executable): Update.
13379 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13380 * solib-aix.c (solib_aix_get_section_offsets): Change return
13381 type.
13382 (solib_aix_solib_create_inferior_hook): Update.
13383 * remote.c (remote_target::get_offsets): Update.
13384 * psymtab.c (find_pc_sect_psymtab): Update.
13385 * psympriv.h (struct partial_symbol) <address, text_low,
13386 text_high>: Update.
13387 * objfiles.h (obj_section_offset): Update.
13388 (struct objfile) <section_offsets>: Change type.
13389 <num_sections>: Remove.
13390 (objfile_relocate): Update.
13391 * objfiles.c (entry_point_address_query): Update
13392 (relocate_one_symbol): Change type of "section_offsets".
13393 (objfile_relocate1, objfile_relocate1): Change type of
13394 "new_offsets".
13395 (objfile_rebase1): Update.
13396 * mipsread.c (mipscoff_symfile_read): Update.
13397 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13398 parameter.
13399 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13400 (parse_external, psymtab_to_symtab_1): Update.
13401 * machoread.c (macho_symfile_offsets): Update.
13402 * ia64-tdep.c (ia64_find_unwind_table): Update.
13403 * hppa-tdep.c (read_unwind_info): Update.
13404 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13405 * dwarf2read.c (create_addrmap_from_index)
13406 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13407 (process_psymtab_comp_unit_reader, add_partial_symbol)
13408 (add_partial_subprogram, process_full_comp_unit)
13409 (read_file_scope, read_func_scope, read_lexical_block_scope)
13410 (read_call_site_scope, dwarf2_rnglists_process)
13411 (dwarf2_ranges_process, dwarf2_ranges_read)
13412 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13413 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13414 Update.
13415 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13416 Update.
13417 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13418 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13419 (process_one_symbol): Change type of "section_offsets".
13420 * ctfread.c (get_objfile_text_range): Update.
13421 * coffread.c (coff_symtab_read, enter_linenos)
13422 (process_coff_symbol): Update.
13423 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13424 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13425
456e800a
TT
134262020-01-08 Tom Tromey <tromey@adacore.com>
13427
13428 * dwarf2read.c (parse_macro_definition): Use std::string.
13429 (parse_macro_definition): Likewise.
13430
6dfa2fc2
TT
134312020-01-08 Tom Tromey <tromey@adacore.com>
13432
13433 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13434 (ATTR_ALLOC_CHUNK): Remove.
13435
421d1616
TT
134362020-01-08 Tom Tromey <tromey@adacore.com>
13437
13438 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13439
43816ebc
TT
134402020-01-08 Tom Tromey <tromey@adacore.com>
13441
13442 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13443 (dwarf2_compute_name, open_dwo_file): Likewise.
13444 (process_enumeration_scope): Use std::vector.
13445 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13446 (partial_die_info::fixup, dwarf2_start_subfile)
13447 (guess_full_die_structure_name, dwarf2_name): Likewise.
13448 (determine_prefix): Update.
13449 (guess_full_die_structure_name): Make return type const.
13450 (partial_die_full_name): Return unique_xmalloc_ptr.
13451 (DW_FIELD_ALLOC_CHUNK): Remove.
13452
4212d509
TT
134532020-01-07 Tom Tromey <tromey@adacore.com>
13454
13455 PR build/24937:
13456 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13457
06a6207a
JT
134582020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13459
13460 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13461
153d79c4
AB
134622020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13463
13464 * stack.c (print_frame_info): Move disassemble_next_line code
13465 inside source_print block.
13466
66182876
EZ
134672020-01-06 Eli Zaretskii <eliz@gnu.org>
13468
13469 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13470 gdb/signals.h, as we are now using native signal symbols.
13471
cbfa8581
SV
134722020-01-06 Shahab Vahedi <shahab@synopsys.com>
13473
13474 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13475 overflow by an early check of content vs threshold.
aac66a4c 13476 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13477 Likewise.
13478
3f602821
EZ
134792020-01-06 Eli Zaretskii <eliz@gnu.org>
13480
13481 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13482
a08c904d
JT
134832020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13484
13485 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13486 export table if no section contains it's RVA.
13487
89a65580
EZ
134882020-01-06 Eli Zaretskii <eliz@gnu.org>
13489
13490 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13491
8b7fcda2
HD
134922020-01-06 Hannes Domani <ssbssa@yahoo.de>
13493
13494 * source.c (print_source_lines_base): Set last_line_listed.
13495
a61b4f69
SV
134962020-01-06 Shahab Vahedi <shahab@synopsys.com>
13497
13498 * tui/tui-disasm.c: Remove trailing spaces.
13499
559e7e50
EZ
135002020-01-06 Eli Zaretskii <eliz@gnu.org>
13501 Pedro Alves <palves@redhat.com>
13502
13503 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13504 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13505 (windows_gdb_signal_to_target): New function, uses the above
13506 enumeration to convert GDB internal signal codes to equivalent
13507 Windows codes.
13508 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13509 * windows-nat.c: Include "gdb_wait.h".
13510 (get_windows_debug_event): Extract the fatal exception from the
13511 exit status and convert to the equivalent Posix signal number.
13512 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13513 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13514 * gdbsupport/gdb_wait.c: New file, implements
13515 windows_status_to_termsig.
13516 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13517 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13518
f2302a34
AB
135192020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13520
13521 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13522 show_layout.
13523
6a5206eb
LM
135242020-01-05 Luis Machado <luis.machado@linaro.org>
13525
13526 * aarch64-linux-nat.c
13527 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13528 and bfd_mach_aarch64.
13529
6ec1d75e
PW
135302020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13531
13532 * ui-file.c (stdio_file::can_emit_style_escape)
13533 (tee_file::can_emit_style_escape): Ensure style is used also on
13534 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13535 to gdb_stdout.
13536 * main.c (set_gdb_data_directory): Use file style to output the
13537 warning that the given pathname is not a directory.
13538 * top.c (show_history_filename, gdb_safe_append_history)
13539 (show_gdb_datadir): Use file style.
13540
44f81a76
HD
135412020-01-03 Hannes Domani <ssbssa@yahoo.de>
13542
13543 * solib-target.c (struct lm_info_target):
13544 Change offsets to be a unique_xmalloc_ptr.
13545 (solib_target_relocate_section_addresses): Update.
13546
25057eb0
HD
135472020-01-03 Hannes Domani <ssbssa@yahoo.de>
13548
13549 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13550
6e2118f5
BE
135512020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13552
13553 * MAINTAINERS (Write After Approval): Add myself.
13554
8133c7dc
LM
135552020-01-02 Luis Machado <luis.machado@linaro.org>
13556
13557 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13558 Cell BE architecture.
13559 * target.h (struct target_ops) <thread_architecture>: Likewise.
13560
48189bec
HD
135612020-01-01 Hannes Domani <ssbssa@yahoo.de>
13562
13563 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13564
ead1063b
HD
135652020-01-01 Hannes Domani <ssbssa@yahoo.de>
13566
13567 * MAINTAINERS (Write After Approval): Add myself.
13568
e5d78223
JB
135692020-01-01 Joel Brobecker <brobecker@adacore.com>
13570
13571 * gdbarch.sh: Update copyright year range of generated files.
13572
b811d2c2
JB
135732020-01-01 Joel Brobecker <brobecker@adacore.com>
13574
13575 Update copyright year range in all GDB files.
13576
5f4def5c
JB
135772020-01-01 Joel Brobecker <brobecker@adacore.com>
13578
13579 * copyright.py: Convert to Python 3.
13580
51fd4002
JB
135812020-01-01 Joel Brobecker <brobecker@adacore.com>
13582
13583 * copyright.py: Adapt after move of gnulib directory from gdb
13584 directory to toplevel directory.
13585
5fb651f2
JB
135862020-01-01 Joel Brobecker <brobecker@adacore.com>
13587
13588 * copyright.py (main): Exit if run from the wrong directory.
13589
5dd8bf88
JB
135902020-01-01 Joel Brobecker <brobecker@adacore.com>
13591
13592 * top.c (print_gdb_version): Change copyright year to 2020.
13593
9f71dacb 135942020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13595
9f71dacb 13596 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13597
9f71dacb 13598For older changes see ChangeLog-2019.
c906108c
SS
13599\f
13600Local Variables:
13601mode: change-log
13602left-margin: 8
13603fill-column: 74
13604version-control: never
57da7796 13605coding: utf-8
c906108c 13606End: