Assume FreeBSD kernels always report exec events.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fe5ddfc3
JB
12020-09-16 John Baldwin <jhb@FreeBSD.org>
2
3 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4 PL_FLAG_EXEC.
5 (fbsd_nat_target::insert_exec_catchpoint)
6 (fbsd_nat_target::remove_exec_catchpoint): Always define.
7 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
8 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
9
e911c666
JB
102020-09-16 John Baldwin <jhb@FreeBSD.org>
11
12 * configure.ac: Remove check for kinfo_getvmmap().
13 * configure, config.in: Regenerate.
14 * fbsd-nat.c (fbsd_read_mapping): Remove
15 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
16 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
17 kinfo_get_vmmap() are always present.
18
1f17d372
JB
192020-09-16 John Baldwin <jhb@FreeBSD.org>
20
21 * fbsd-nat.c: Always include support for
22 TARGET_OBJECT_SIGNAL_INFO.
23
bcb1da7f
JB
242020-09-16 John Baldwin <jhb@FreeBSD.org>
25
26 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
27 sysctl and remove procfs fallback.
28
5515f729
JB
292020-09-16 John Baldwin <jhb@FreeBSD.org>
30
31 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
32 * fbsd-nat.h: Likewise.
33
da1df1db
TBA
342020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
35
36 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
37 argument.
38
0e25e767
AB
392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
40
41 * ada-lang.c (ada_language_data): Delete.
42 (ada_language): Remove references to ada_language_data.
43 * c-lang.c (c_language_data): Delete.
44 (c_language): Remove references to c_language_data.
45 (cplus_language_data): Delete.
46 (cplus_language): Remove references to cplus_language_data.
47 (asm_language_data): Delete.
48 (asm_language): Remove references to asm_language_data.
49 (minimal_language_data): Delete.
50 (minimal_language): Remove references to minimal_language_data.
51 * d-lang.c (d_language_data): Delete.
52 (d_language): Remove references to d_language_data.
53 * f-lang.c (f_language_data): Delete.
54 (f_language): Remove references to f_language_data.
55 * go-lang.c (go_language_data): Delete.
56 (go_language): Remove references to go_language_data.
57 * language.c (unknown_language_data): Delete.
58 (unknown_language): Remove references to unknown_language_data.
59 (auto_language_data): Delete.
60 (auto_language): Remove references to auto_language_data.
61 * language.h (language_data): Delete struct.
62 (language_defn): No longer inherit from language_data.
63 * m2-lang.c (m2_language_data): Delete.
64 (m2_language): Remove references to m2_language_data.
65 * objc-lang.c (objc_language_data): Delete.
66 (objc_language): Remove references to objc_language_data.
67 * opencl-lang.c (opencl_language_data): Delete.
68 (opencl_language): Remove references to opencl_language_data.
69 * p-lang.c (pascal_language_data): Delete.
70 (pascal_language): Remove references to pascal_language_data.
71 * rust-lang.c (rust_language_data): Delete.
72 (rust_language): Remove references to rust_language_data.
73
b7c6e27d
AB
742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
75
76 * ada-lang.c (ada_language_data): Remove la_op_print_tab
77 initializer.
78 (ada_language::opcode_print_table): New member function.
79 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
80 (c_language::opcode_print_table): New member function.
81 (cplus_language_data): Remove la_op_print_tab initializer.
82 (cplus_language::opcode_print_table): New member function.
83 (asm_language_data): Remove la_op_print_tab initializer.
84 (asm_language::opcode_print_table): New member function.
85 (minimal_language_data): Remove la_op_print_tab initializer.
86 (minimal_language::opcode_print_table): New member function.
87 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
88 (d_language::opcode_print_table): New member function.
89 * expprint.c (print_subexp_standard): Update call to
90 opcode_print_table.
91 (op_string): Likewise.
92 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
93 (f_language::opcode_print_table): New member function.
94 * go-lang.c (go_language_data): Remove la_op_print_tab
95 initializer.
96 (go_language::opcode_print_table): New member function.
97 * language.c (unknown_language_data): Remove la_op_print_tab
98 initializer.
99 (unknown_language::opcode_print_table): New member function.
100 (auto_language_data): Remove la_op_print_tab initializer.
101 (auto_language::opcode_print_table): New member function.
102 * language.h (language_data): Remove la_op_print_tab field.
103 (language_defn::opcode_print_table): Declare new member function.
104 * m2-lang.c (m2_language_data): Remove la_op_print_tab
105 initializer.
106 (m2_language::opcode_print_table): New member function.
107 * objc-lang.c (objc_language_data): Remove la_op_print_tab
108 initializer.
109 (objc_language::opcode_print_table): New member function.
110 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
111 initializer.
112 (opencl_language::opcode_print_table): New member function.
113 * p-lang.c (pascal_language_data): Remove la_op_print_tab
114 initializer.
115 (pascal_language::opcode_print_table): New member function.
116 * rust-lang.c (rust_language_data): Remove la_op_print_tab
117 initializer.
118 (rust_language::opcode_print_table): New member function.
119
5aba6ebe
AB
1202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
121
122 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
123 (ada_language::expression_ops): New member function.
124 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
125 (c_language::expression_ops): New member function.
126 (cplus_language_data): Remove la_exp_desc initializer.
127 (cplus_language::expression_ops): New member function.
128 (asm_language_data): Remove la_exp_desc initializer.
129 (asm_language::expression_ops): New member function.
130 (minimal_language_data): Remove la_exp_desc initializer.
131 (minimal_language::expression_ops): New member function.
132 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
133 (d_language::expression_ops): New member function.
134 * eval.c (evaluate_subexp): Update call to expression_ops.
135 * expprint.c (print_subexp): Likewise.
136 (op_name): Likewise.
137 (dump_subexp_body): Likewise.
138 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
139 (f_language::expression_ops): New member function.
140 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
141 (go_language::expression_ops): New member function.
142 * language.c (language_defn::expression_ops): New function.
143 (unknown_language_data): Remove la_exp_desc initializer.
144 (auto_language_data): Likewise.
145 * language.h (language_data): Remove la_exp_desc field.
146 (language_defn::expression_ops): Declare new member function.
147 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
148 (m2_language::expression_ops): New member function.
149 * objc-lang.c (objc_language_data): Remove la_exp_desc
150 initializer.
151 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
152 initializer.
153 (opencl_language::expression_ops): New member function.
154 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
155 * parse.c (operator_length): Update call to expression_ops.
156 (exp_iterate): Likewise.
157 * rust-lang.c (rust_language_data): Remove la_exp_desc
158 initializer.
159 (ruse_language::expression_ops): New member function.
160
b63a3f3f
AB
1612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
162
163 * ada-lang.c (ada_language_data): Remove la_varobj_ops
164 initializer.
165 (ada_language::varobj_ops): New member function.
166 * c-lang.c (c_language_data): Remove la_varobj_ops
167 initializer.
168 (cplus_language_data): Likewise.
169 (cplus_language::varobj_ops): New member function.
170 (asm_language_data): Remove la_varobj_ops initializer.
171 (minimal_language_data): Likewise.
172 * d-lang.c (d_language_data): Likewise.
173 * f-lang.c (f_language_data): Likewise.
174 * go-lang.c (go_language_data): Likewise.
175 * language.c (language_defn::varobj_ops): New function.
176 (unknown_language_data): Remove la_varobj_ops
177 initializer.
178 (auto_language_data): Likewise.
179 * language.h (language_data): Remove la_varobj_ops field.
180 (language_defn::varobj_ops): Declare new member function.
181 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
182 * objc-lang.c (objc_language_data): Likewise.
183 * opencl-lang.c (opencl_language_data): Likewise.
184 * p-lang.c (pascal_language_data): Likewise.
185 * rust-lang.c (rust_language_data): Likewise.
186 * varobj.c (varobj_create): Update call to varobj_ops.
187 * varobj.h (default_varobj_ops): Delete define.
188
1ac14a04
AB
1892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
190
191 * ada-lang.c (ada_language_data): Remove la_macro_expansion
192 initializer.
193 * c-lang.c (c_language_data): Likewise.
194 (c_language::macro_expansion): New member function.
195 (cplus_language_data): Likewise.
196 (cplus_language::macro_expansion): New member function.
197 (asm_language_data): Likewise.
198 (asm_language::macro_expansion): New member function.
199 (minimal_language_data): Likewise.
200 (minimal_language::macro_expansion): New member function.
201 * d-lang.c (d_language_data): Remove la_macro_expansion
202 initializer.
203 * f-lang.c (f_language_data): Likewise.
204 * go-lang.c (go_language_data): Likewise.
205 * language.c (unknown_language_data): Likewise.
206 (auto_language_data): Likewise.
207 * language.h (language_data): Remove la_macro_expansion field.
208 (language_defn::macro_expansion): New member function.
209 * m2-lang.c (m2_language_data): Remove la_macro_expansion
210 initializer.
211 * objc-lang.c (objc_language_data): Likewise.
212 (objc_language::macro_expansion): New member function.
213 * opencl-lang.c (opencl_language_data): Likewise.
214 (opencl_language::macro_expansion): New member function.
215 * p-lang.c (pascal_language_data): Remove la_macro_expansion
216 initializer.
217 * rust-lang.c (rust_language_data): Likewise.
218 * symtab.c (default_collect_symbol_completion_matches_break_on):
219 Update call to macro_expansion.
220
3a3440fb
AB
2212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
222
223 * ada-lang.c (ada_language_data): Remove la_array_ordering
224 initializer.
225 * c-lang.c (c_language_data): Likewise.
226 (cplus_language_data): Likewise.
227 (asm_language_data): Likewise.
228 (minimal_language_data): Likewise.
229 * d-lang.c (d_language_data): Likewise.
230 * dwarf2/read.c (read_array_order): Update for call to
231 array_ordering.
232 * f-lang.c (f_language_data): Remove la_array_ordering
233 initializer.
234 (f_language::array_ordering): New member function.
235 * go-lang.c (go_language_data): Remove la_array_ordering
236 initializer.
237 * language.c (unknown_language_data): Likewise.
238 (auto_language_data): Likewise.
239 * language.h (language_data): Delete la_array_ordering field.
240 (language_defn::array_ordering): New member function.
241 * m2-lang.c (m2_language_data): Remove la_array_ordering
242 initializer.
243 * objc-lang.c (objc_language_data): Likewise.
244 * opencl-lang.c (opencl_language_data): Likewise.
245 * p-lang.c (pascal_language_data): Likewise.
246 * rust-lang.c (rust_language_data): Likewise.
247
0d201fa4
AB
2482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
249
250 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
251 initializer.
252 * c-lang.c (c_language_data): Likewise.
253 (cplus_language_data): Likewise.
254 (asm_language_data): Likewise.
255 (minimal_language_data): Likewise.
256 * d-lang.c (d_language_data): Likewise.
257 * f-lang.c (f_language_data): Likewise.
258 (f_language::case_sensitivity): New member function.
259 * go-lang.c (go_language_data): Remove la_case_sensitivity
260 initializer.
261 * language.c (enum case_mode): Moved here from language.h.
262 (case_mode): Make static.
263 (show_case_command): Update for case_sensitivity being a method.
264 (set_case_command): Likewise.
265 (set_range_case): Likewise.
266 (unknown_language_data): Remove la_case_sensitivity initializer.
267 (auto_language_data): Likewise.
268 * language.h (case_mode): Delete, move enum declaration to
269 language.c.
270 (language_data): Delete la_case_sensitivity field.
271 (language_defn::case_sensitivity): New member function.
272 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
273 initializer.
274 * objc-lang.c (objc_language_data): Likewise.
275 * opencl-lang.c (opencl_language_data): Likewise.
276 * p-lang.c (pascal_language_data): Likewise.
277 * rust-lang.c (rust_language_data): Likewise.
278
efdf6a73
AB
2792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
280
281 * ada-lang.c (ada_language_data): Remove la_range_check
282 initializer.
283 * c-lang.c (c_language_data): Likewise.
284 (cplus_language_data): Likewise.
285 (asm_language_data): Likewise.
286 (minimal_language_data): Likewise.
287 * d-lang.c (d_language_data): Likewise.
288 * f-lang.c (f_language_data): Likewise.
289 (f_language::range_checking_on_by_default): New member function.
290 * go-lang.c (go_language_data): Remove la_range_check initializer.
291 * language.c (enum range_mode): Moved here from language.h.
292 (range_mode): Made static.
293 (show_range_command): Update to use
294 range_checking_on_by_default.
295 (set_range_command): Likewise.
296 (set_range_case): Likewise.
297 (unknown_language_data): Remove la_range_check initializer.
298 (auto_language_data): Likewise.
299 * language.h (range_mode): Delete. Enum definition moved to
300 language.c.
301 (language_data): Remove la_range_check field.
302 (language_defn::range_checking_on_by_default): New member
303 function.
304 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
305 (m2_language::range_checking_on_by_default): New member function.
306 * objc-lang.c (objc_language_data): Remove la_range_check
307 initializer.
308 * opencl-lang.c (opencl_language_data): Likewise.
309 * p-lang.c (pascal_language_data): Likewise.
310 (pascal_language::range_checking_on_by_default): New member
311 function.
312 * rust-lang.c (rust_language_data): Remove la_range_check
313 initializer.
314 (rust_language::range_checking_on_by_default): New member
315 function.
316
bf92aec5
AB
3172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
318
319 * dwarf2/read.c (dwarf2_physname): Remove special case for
320 language_go.
321 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
322 member function.
323
d3355e4d
AB
3242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
325
326 * ada-lang.c (ada_language_data): Remove
327 la_store_sym_names_in_linkage_form_p initializer.
328 (ada_language::store_sym_names_in_linkage_form_p): New member
329 function.
330 * c-lang.c (c_language_data): Remove
331 la_store_sym_names_in_linkage_form_p initializer.
332 (c_language::store_sym_names_in_linkage_form_p): New member
333 function.
334 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
335 initializer.
336 (asm_language_data): Likewise.
337 (asm_language::store_sym_names_in_linkage_form_p): New member
338 function.
339 (minimal_language_data): Remove
340 la_store_sym_names_in_linkage_form_p initializer.
341 (minimal_language::store_sym_names_in_linkage_form_p): New member
342 function.
343 * d-lang.c (d_language_data): Remove
344 la_store_sym_names_in_linkage_form_p initializer.
345 * dwarf2/read.c (dwarf2_physname): Update call to
346 store_sym_names_in_linkage_form_p.
347 * f-lang.c (f_language_data): Remove
348 la_store_sym_names_in_linkage_form_p initializer.
349 * go-lang.c (go_language_data): Remove
350 la_store_sym_names_in_linkage_form_p initializer.
351 * language.c (unknown_language_data): Remove
352 la_store_sym_names_in_linkage_form_p initializer.
353 (unknown_language::store_sym_names_in_linkage_form_p): New member
354 function.
355 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
356 initializer.
357 (auto_language::store_sym_names_in_linkage_form_p): New member
358 function.
359 * language.h (language_data): Remove
360 la_store_sym_names_in_linkage_form_p member variable.
361 (language_defn::store_sym_names_in_linkage_form_p): New member
362 function.
363 * m2-lang.c (m2_language_data): Remove
364 la_store_sym_names_in_linkage_form_p initializer.
365 * objc-lang.c (objc_language_data): Likewise.
366 * opencl-lang.c (opencl_language_data): Likewise.
367 * p-lang.c (pascal_language_data): Likewise.
368 * rust-lang.c (rust_language_data): Likewise.
369
22c12a6c
AB
3702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
371
372 * ada-lang.c (ada_language_data): Remove string_lower_bound
373 initializer.
374 * c-lang.c (c_language_data): Likewise.
375 (cplus_language_data): Likewise.
376 (asm_language_data): Likewise.
377 (minimal_language_data): Likewise.
378 * d-lang.c (d_language_data): Likewise.
379 * f-lang.c (f_language_data): Likewise.
380 * go-lang.c (go_language_data): Likewise.
381 * language.c (unknown_language_data): Likewise.
382 (auto_language_data): Likewise.
383 * language.h (language_data): Remove string_lower_bound field.
384 (language_defn::string_lower_bound): New member function.
385 * m2-lang.c (m2_language_data): Remove string_lower_bound
386 initializer.
387 (m2_language::string_lower_bound): New member function.
388 * objc-lang.c (objc_language_data): Remove string_lower_bound
389 initializer.
390 * opencl-lang.c (opencl_language_data): Likewise.
391 * p-lang.c (pascal_language_data): Likewise.
392 * rust-lang.c (rust_language_data): Likewise.
393 * valops.c (value_cstring): Update call to string_lower_bound.
394 (value_string): Likewise.
395 * value.c (allocate_repeated_value): Likewise.
396
1c236ddd
AB
3972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
398
399 * valops.c (value_repeat): Fix incorrect argument name in comment.
400
67bd3fd5
AB
4012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
402
403 * ada-lang.c (ada_language_data): Remove c_style_arrays
404 initializer.
405 (ada_language::c_style_arrays_p): New member fuction.
406 * c-lang.c (c_language_data): Remove c_style_arrays
407 initializer.
408 (cplus_language_data): Likewise.
409 (asm_language_data): Likewise.
410 (minimal_language_data): Likewise.
411 * d-lang.c (d_language_data): Likewise.
412 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
413 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
414 (f_language::c_style_arrays_p): New member function.
415 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
416 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
417 * language.c (unknown_language_data): Remove c_style_arrays
418 initializer.
419 (auto_language_data): Likewise.
420 * language.h (language_data): Remove c_style_arrays field.
421 (language_defn::c_style_arrays_p): New member function.
422 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
423 (m2_language::c_style_arrays_p): New member function.
424 * objc-lang.c (objc_language_data): Remove c_style_arrays
425 initializer.
426 * opencl-lang.c (opencl_language_data): Likewise.
427 * p-lang.c (pascal_language_data): Likewise.
428 * rust-lang.c (rust_language_data): Likewise.
429 * valarith.c (value_subscript): Update call to c_style_arrays_p,
430 and update local variable to a bool.
431 * valops.c (value_cast): Update call to c_style_arrays_p.
432 (value_array): Likewise.
433 * value.c (coerce_array): Likewise.
434
85967615
AB
4352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
436
437 * ada-lang.c (ada_language_data): Remove la_language initializer.
438 * c-lang.c (c_language_data): Likewise.
439 (cplus_language_data): Likewise.
440 (asm_language_data): Likewise.
441 (minimal_language_data): Likewise.
442 * d-lang.c (d_language_data): Likewise.
443 * f-lang.c (f_language_data): Likewise.
444 * go-lang.c (go_language_data): Likewise.
445 * language.c (unknown_language_data): Likewise.
446 (auto_language_data): Likewise.
447 * language.h (language_data): Remove la_language field.
448 (language_defn::language_defn): Initialise la_language field.
449 (language_defn::la_language): New member variable.
450 * m2-lang.c (m2_language_data): Remove la_language field.
451 * objc-lang.c (objc_language_data): Likewise.
452 * opencl-lang.c (opencl_language_data): Likewise.
453 * p-lang.c (pascal_language_data): Likewise.
454 * rust-lang.c (rust_language_data): Likewise.
455
e171d6f1
AB
4562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
457
458 * ada-lang.c (ada_extensions): Delete, moved into
459 ada_language::filename_extensions.
460 (ada_language_data): Remove la_filename_extensions initializer.
461 (ada_language::filename_extensions): New member function.
462 * c-lang.c (c_extensions): Delete, moved into
463 c_language::filename_extensions.
464 (c_language_data): Remove la_filename_extensions initializer.
465 (c_language::filename_extensions): New member function.
466 (cplus_extensions): Delete, moved into
467 cplus_language::filename_extensions.
468 (cplus_language_data): Remove la_filename_extensions initializer.
469 (cplus_language::filename_extensions): New member function.
470 (asm_extensions): Delete, moved into
471 asm_language::filename_extensions.
472 (asm_language_data): Remove la_filename_extensions initializer.
473 (asm_language::filename_extensions): New member function.
474 (minimal_language_data): Remove la_filename_extensions
475 initializer.
476 * d-lang.c (d_extensions): Delete, moved into
477 d_language::filename_extensions.
478 (d_language_data): Remove la_filename_extensions initializer.
479 (d_language::filename_extensions): New member function.
480 * f-lang.c (f_extensions): Delete, moved into
481 f_language::filename_extensions.
482 (f_language_data): Remove la_filename_extensions initializer.
483 (f_language::filename_extensions): New member function.
484 * go-lang.c (go_language_data): Remove la_filename_extensions
485 initializer.
486 * language.c (add_set_language_command): Update now that
487 filename_extensions returns a vector.
488 (unknown_language_data): Remove la_filename_extensions
489 initializer.
490 (auto_language_data): Likewise.
491 * language.h (language_data): Remove la_filename_extensions field.
492 (language_defn::filename_extensions): New member function.
493 * m2-lang.c (m2_language_data): Remove la_filename_extensions
494 initializer.
495 * objc-lang.c (objc_extensions): Delete, moved into
496 objc_language::filename_extensions.
497 (objc_language_data): Remove la_filename_extensions initializer.
498 (objc_language::filename_extensions): New member function.
499 * opencl-lang.c (opencl_language_data): Remove
500 la_filename_extensions initializer.
501 * p-lang.c (pascal_extensions): Delete, moved into
502 pascal_language::filename_extensions.
503 (pascal_language_data): Remove la_filename_extensions initializer.
504 (pascal_language::filename_extensions): New member function.
505 * rust-lang.c (rust_extensions): Delete, moved into
506 rust_language::filename_extensions.
507 (rust_language_data): Remove la_filename_extensions initializer.
508 (rust_language::filename_extensions): New member function.
509 * symfile.c (add_filename_language): Add new assert.
510
6f7664a9
AB
5112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
512
513 * ada-lang.c (ada_language_data): Remove la_name and
514 la_natural_name initializers.
515 (ada_language::name): New member function.
516 (ada_language::natural_name): New member function.
517 * c-lang.c (c_language_data): Remove la_name and
518 la_natural_name initializers.
519 (c_language::name): New member function.
520 (c_language::natural_name): New member function.
521 (cplus_language_data): Remove la_name and
522 la_natural_name initializers.
523 (cplus_language::name): New member function.
524 (cplus_language::natural_name): New member function.
525 (asm_language_data): Remove la_name and
526 la_natural_name initializers.
527 (asm_language::name): New member function.
528 (asm_language::natural_name): New member function.
529 (minimal_language_data): Remove la_name and
530 la_natural_name initializers.
531 (minimal_language::name): New member function.
532 (minimal_language::natural_name): New member function.
533 * compile/compile.c (compile_to_object): Update call to
534 lanugage_defn::name.
535 * d-lang.c (d_language_data): Remove la_name and
536 la_natural_name initializers.
537 (d_language::name): New member function.
538 (d_language::natural_name): New member function.
539 * expprint.c (print_subexp_standard): Update call to
540 language_defn::name.
541 (dump_raw_expression): Likewise
542 (dump_prefix_expression): Likewise.
543 * f-lang.c (f_language_data): Remove la_name and
544 la_natural_name initializers.
545 (f_language::name): New member function.
546 (f_language::natural_name): New member function.
547 * go-lang.c (go_language_data): Remove la_name and
548 la_natural_name initializers.
549 (go_language::name): New member function.
550 (go_language::natural_name): New member function.
551 * language.c (show_language_command): Update call to
552 language_defn::name.
553 (set_language_command): Likewise.
554 (language_enum): Likewise.
555 (language_str): Likewise.
556 (add_set_language_command): Likewise, use
557 language_defn::natural_name in the doc string.
558 (unknown_language_data): Remove la_name and
559 la_natural_name initializers.
560 (unknown_language::name): New member function.
561 (unknown_language::natural_name): New member function.
562 (auto_language_data): Remove la_name and
563 la_natural_name initializers.
564 (auto_language::name): New member function.
565 (auto_language::natural_name): New member function.
566 (language_lookup_primitive_type_as_symbol): Update call to
567 language_defn::name.
568 * language.h (language_data): Remove la_name and la_natural_name
569 member variables.
570 (language_defn::name): New member function.
571 (language_defn::natural_name): New member function.
572 * m2-lang.c (m2_language_data): Remove la_name and
573 la_natural_name initializers.
574 (m2_language::name): New member function.
575 (m2_language::natural_name): New member function.
576 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
577 language_defn::natural_name.
578 * objc-lang.c (objc_language_data): Remove la_name and
579 la_natural_name initializers.
580 (objc_language::name): New member function.
581 (objc_language::natural_name): New member function.
582 * opencl-lang.c (opencl_language_data): Remove la_name and
583 la_natural_name initializers.
584 (opencl_language::name): New member function.
585 (opencl_language::natural_name): New member function.
586 * p-lang.c (pascal_language_data): Remove la_name and
587 la_natural_name initializers.
588 (pascal_language::name): New member function.
589 (pascal_language::natural_name): New member function.
590 * rust-lang.c (rust_language_data): Remove la_name and
591 la_natural_name initializers.
592 (rust_language::name): New member function.
593 (rust_language::natural_name): New member function.
594 * symtab.c (lookup_language_this): Update call to
595 language_defn::name.
596
5bae7c4e
AB
5972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
598
599 * ada-lang.c (ada_language_data): Remove la_name_of_this
600 initializer.
601 * ax-gdb.c (gen_expr): Update call to name_of_this.
602 * c-exp.y (classify_name): Likewise.
603 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
604 (cplus_language_data): Likewise.
605 (cplus_language::name_of_this): New member function.
606 (asm_language_data): Remove la_name_of_this initializer.
607 (minimal_language_data): Likewise.
608 * d-lang.c (d_language_data): Likewise.
609 (d_language::name_of_this): New member function.
610 * expprint.c (print_subexp_standard): Update call to name_of_this.
611 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
612 * go-lang.c (go_language_data): Likewise.
613 * language.c (unknown_language_data): Likewise.
614 (unknown_language::name_of_this): New member function.
615 (auto_language_data): Remove la_name_of_this initializer.
616 (auto_language::name_of_this): New member function.
617 * language.h (language_data): Delete la_name_of_this member
618 variable.
619 (language_defn::name_of_this): New member function.
620 * m2-lang.c (m2_language_data): Remove la_name_of_this
621 initializer.
622 * objc-lang.c (objc_language_data): Likewise.
623 (objc_language::name_of_this): New member function.
624 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
625 initializer.
626 * p-lang.c (pascal_language_data): Likewise.
627 (pascal_language::name_of_this): New member function.
628 * rust-lang.c (rust_language_data): Remove la_name_of_this
629 initializer.
630 * symtab.c (lookup_language_this): Update call to name_of_this.
631 (lookup_symbol_aux): Likewise.
632 * valops.c (value_of_this): Likewise.
633
22e3f3ed
AB
6342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
635
636 * ada-lang.c (ada_language_data): Remove
637 la_struct_too_deep_ellipsis initializer.
638 (ada_language::struct_too_deep_ellipsis): New member function.
639 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
640 initializer.
641 (cplus_language_data): Likewise.
642 (asm_language_data): Likewise.
643 (minimal_language_data): Likewise.
644 * cp-valprint.c (cp_print_value): Update call to
645 struct_too_deep_ellipsis.
646 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
647 initializer.
648 * f-lang.c (f_language_data): Likewise.
649 (f_language::struct_too_deep_ellipsis): New member function.
650 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
651 initializer.
652 * language.c (unknown_language_data): Likewise.
653 (auto_language_data): Likewise.
654 * language.h (language_data): Delete la_struct_too_deep_ellipsis
655 member variable.
656 (language_defn::struct_too_deep_ellipsis): New member function.
657 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
658 initializer.Q
659 * objc-lang.c (objc_language_data): Likewise.
660 * opencl-lang.c (opencl_language_data): Likewise.
661 * p-lang.c (pascal_language_data): Likewise.
662 * rust-lang.c (rust_language_data): Likewise.
663 * valprint.c (val_print_check_max_depth): Update call to
664 struct_too_deep_ellipsis.
665
ed29e1c7
FW
6662020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
667
668 * MAINTAINERS (Write After Approval): Add myself.
669
12d8f940
TT
6702020-09-15 Tom Tromey <tom@tromey.com>
671
672 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
673 Remove.
674
6b5a7bc7
TT
6752020-09-15 Tom Tromey <tom@tromey.com>
676
677 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
678 and TYPE_CODE_METHODPTR cases.
679 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
680 (c_value_print_inner): Update.
681 * valprint.c (generic_value_print_memberptr): New function, from
682 c_value_print_memberptr.
683 (generic_value_print): Use it. Call cplus_print_method_ptr.
684
47f0e2ff
TT
6852020-09-15 Tom Tromey <tromey@adacore.com>
686
687 * python/python-internal.h (PyInt_FromLong): Remove define.
688 * python/py-value.c (convert_value_from_python): Use
689 gdb_py_object_from_longest.
690 * python/py-type.c (typy_get_code): Use
691 gdb_py_object_from_longest.
692 * python/py-symtab.c (salpy_get_line): Use
693 gdb_py_object_from_longest.
694 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
695 gdb_py_object_from_longest.
696 * python/py-record.c (recpy_gap_reason_code): Use
697 gdb_py_object_from_longest.
698 * python/py-record-btrace.c (recpy_bt_insn_size)
699 (recpy_bt_func_level, btpy_list_count): Use
700 gdb_py_object_from_longest.
701 * python/py-infthread.c (gdbpy_create_ptid_object): Use
702 gdb_py_object_from_longest. Fix error handling.
703 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
704 gdb_py_object_from_longest.
705 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
706 gdb_py_object_from_longest.
707 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
708 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
709 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
710
512116ce
TT
7112020-09-15 Tom Tromey <tromey@adacore.com>
712
713 * python/python.c (gdbpy_parameter_value): Use
714 gdb_py_object_from_ulongest.
715
4ab1029c
TT
7162020-09-15 Tom Tromey <tromey@adacore.com>
717
718 * python/py-infevents.c (create_register_changed_event_object):
719 Use gdb_py_object_from_longest.
720 * python/py-exitedevent.c (create_exited_event_object): Use
721 gdb_py_object_from_longest.
722
062534d4
TT
7232020-09-15 Tom Tromey <tromey@adacore.com>
724
725 * python/python.c (gdbpy_parameter_value): Use
726 gdb_py_object_from_longest.
727 * python/py-type.c (convert_field, typy_range): Use
728 gdb_py_object_from_longest.
729 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
730 gdb_py_object_from_longest.
731 * python/py-lazy-string.c (stpy_get_length): Use
732 gdb_py_object_from_longest.
733 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
734 gdb_py_object_from_longest.
735 * python/py-infevents.c (create_memory_changed_event_object): Use
736 gdb_py_object_from_longest.
737 * python/py-inferior.c (infpy_get_num): Use
738 gdb_py_object_from_longest.
739 (infpy_get_pid): Likewise.
740
d1cab987
TT
7412020-09-15 Tom Tromey <tromey@adacore.com>
742
743 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
744 defines.
745 * python/py-value.c (valpy_long): Use
746 gdb_py_object_from_ulongest.
747 * python/py-symtab.c (salpy_get_pc): Use
748 gdb_py_object_from_ulongest.
749 (salpy_get_last): Likewise.
750 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
751 gdb_py_object_from_ulongest.
752 * python/py-lazy-string.c (stpy_get_address): Use
753 gdb_py_object_from_ulongest.
754 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
755 * python/py-arch.c (archpy_disassemble): Use
756 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
757 error handling.
758
4bde49dc
TT
7592020-09-15 Tom Tromey <tromey@adacore.com>
760
761 * python/python-internal.h (gdb_py_long_from_longest): Remove
762 defines.
763 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
764 * python/py-type.c (convert_field, typy_get_sizeof): Use
765 gdb_py_object_from_longest.
766 * python/py-record-btrace.c (btpy_list_index): Use
767 gdb_py_object_from_longest.
768
37431074
TT
7692020-09-15 Tom Tromey <tromey@adacore.com>
770
771 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
772 * python/py-record.c (recpy_element_number): Use
773 gdb_py_object_from_longest.
774 (recpy_gap_number): Likewise.
775
cbe25684
TT
7762020-09-15 Tom Tromey <tromey@adacore.com>
777
778 * top.c (ui::ui): Update.
779 (highest_ui_num): Remove.
780 * top.h (struct ui) <num>: Remove.
781
db92ac45
TT
7822020-09-15 Tom Tromey <tromey@adacore.com>
783
784 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
785 * ui-style.c (ansi_regex_text): Now array.
786 * rust-exp.y (number_regex_text): Now array.
787 * linespec.c (linespec_quote_characters): Now array.
788 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
789 Now arrays.
790
d2b31b67
SM
7912020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
792
793 * debuginfod-support.c (debuginfod_client_deleter): New.
794 (debuginfod_client_up): New.
795 (debuginfod_init): Return debuginfod_client_up.
796 (debuginfod_source_query): Adjust.
797 (debuginfod_debuginfo_query): Adjust.
798
3246bd8e
SM
7992020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
800
801 * debuginfod-support.c (debuginfod_source_query): Use
802 make_unique_xstrdup.
803
10242f36
SM
8042020-09-14 Simon Marchi <simon.marchi@efficios.com>
805
806 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
807 with `type::instance_flags`.
808
e1044e6a
MM
8092020-09-14 Michael Mullin <masmullin@gmail.com>
810
811 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
812 Remove baton parameter.
813
04902b09
PA
8142020-09-14 Pedro Alves <pedro@palves.net>
815
816 * Makefile.in (SELFTESTS_SRCS): Add
817 unittests/enum-flags-selftests.c.
818 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
819 btrace_function_flags instead of enum btrace_function_flag.
820 * compile/compile-c-types.c (convert_qualified): Use
821 enum_flags::raw.
822 * compile/compile-cplus-symbols.c (convert_one_symbol)
823 (convert_symbol_bmsym):
824 * compile/compile-cplus-types.c (compile_cplus_convert_method)
825 (compile_cplus_convert_struct_or_union_methods)
826 (compile_cplus_instance::convert_qualified_base):
827 * go-exp.y (parse_string_or_char): Add cast to int.
828 * unittests/enum-flags-selftests.c: New file.
829 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
830 type to btrace_thread_flags from btrace_thread_flag.
831 (record_btrace_cancel_resume, record_btrace_step_thread): Change
832 local's type to btrace_thread_flags from btrace_thread_flag. Add
833 cast in DEBUG call.
834
69896a2c
PA
8352020-09-14 Pedro Alves <pedro@palves.net>
836
837 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
838 * gdbtypes.c (address_space_name_to_int): Rename to ...
839 (address_space_name_to_type_instance_flags): ... this.
840 (address_space_int_to_name): Rename to ...
841 (address_space_type_instance_flags_to_name): ... this.
842 * gdbtypes.h (address_space_name_to_int): Rename to ...
843 (address_space_name_to_type_instance_flags): ... this.
844 (address_space_int_to_name): Rename to ...
845 (address_space_type_instance_flags_to_name): ... this.
846 * type-stack.c (type_stack::insert): Adjust to rename.
847 * type-stack.h (type_stack::insert): Likewise.
848
314ad88d
PA
8492020-09-14 Pedro Alves <pedro@palves.net>
850 Andrew Burgess <andrew.burgess@embecosm.com>
851
852 * avr-tdep.c (avr_address_class_type_flags): Return
853 type_instance_flags.
854 (avr_address_class_type_flags_to_name): Take a
855 type_instance_flags.
856 (avr_address_class_name_to_type_flags): Return bool and take a
857 type_instance_flags.
858 * d-lang.c (build_d_types): Use type::set_instance_flags.
859 * ft32-tdep.c (ft32_address_class_type_flags): Return
860 type_instance_flags.
861 (ft32_address_class_type_flags_to_name): Take a
862 type_instance_flags.
863 (ft32_address_class_name_to_type_flags): Return bool and take a
864 type_instance_flags.
865 (ft32_gdbarch_init): Use type::set_instance_flags.
866 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
867 * gdbarch.h, gdbarch.c: Regenerate.
868 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
869 (address_class_name_to_type_flags): Use type_instance_flags and
870 bool.
871 * gdbtypes.c (address_space_name_to_int)
872 (address_space_int_to_name, make_qualified_type): Use
873 type_instance_flags.
874 (make_qualified_type): Use type_instance_flags and
875 type::set_instance_flags.
876 (make_type_with_address_space, make_cv_type, make_vector_type)
877 (check_typedef): Use type_instance_flags.
878 (recursive_dump_type): Cast type_instance_flags to unsigned for
879 printing.
880 (copy_type_recursive): Use type::set_instance_flags.
881 (gdbtypes_post_init): Use type::set_instance_flags.
882 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
883 <m_instance_flags>: ... this.
884 <instance_flags, set_instance_flags>: New methods.
885 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
886 (SET_TYPE_INSTANCE_FLAGS): New.
887 (address_space_name_to_int, address_space_int_to_name)
888 (make_type_with_address_space): Pass flags using
889 type_instance_flags instead of int.
890 * stabsread.c (cleanup_undefined_types_noname): Use
891 type::set_instance_flags.
892 * s390-tdep.c (s390_address_class_type_flags): Return
893 type_instance_flags.
894 (s390_address_class_type_flags_to_name): Take a
895 type_instance_flags.
896 (s390_address_class_name_to_type_flags): Return bool and take a
897 type_instance_flags.
898 * type-stack.c (type_stack::follow_types): Use
899 type_instance_flags.
900 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
901
27087b7f
TT
9022020-09-14 Tom Tromey <tromey@adacore.com>
903
904 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
905 * x86-tdep.c (x86_is_thunk_register_name)
906 (x86_in_indirect_branch_thunk): Update.
907 * sparc64-tdep.c (sparc64_fpu_register_names)
908 (sparc64_cp0_register_names, sparc64_register_names)
909 (sparc64_pseudo_register_names): Now const.
910 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
911 cp0_registers_num>: Now const.
912 * sparc-tdep.c (sparc_core_register_names)
913 (sparc32_fpu_register_names, sparc32_cp0_register_names)
914 (sparc32_pseudo_register_names): Now const.
915 (validate_tdesc_registers): Update.
916 * rust-lang.c (rust_extensions): Now const.
917 * p-lang.c (p_extensions): Now const.
918 * objc-lang.c (objc_extensions): Now const.
919 * nto-tdep.c (nto_thread_state_str): Now const.
920 * moxie-tdep.c (moxie_register_names): Now const.
921 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
922 Now const.
923 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
924 (mips_linux_reg_names): Now const.
925 (mips_gdbarch_init): Update.
926 * microblaze-tdep.c (microblaze_register_names): Now const.
927 * m68k-tdep.c (m68k_register_names): Now const.
928 * m32r-tdep.c (m32r_register_names): Now const.
929 * ia64-tdep.c (ia64_register_names): Now const.
930 * i386-tdep.h (struct gdbarch_tdep) <register_names,
931 ymmh_register_names, ymm16h_regnum, mpx_register_names,
932 k_register_names, zmmh_register_names, xmm_avx512_register_names,
933 ymm_avx512_register_names, pkeys_register_names>: Now const.
934 * i386-tdep.c (i386_register_names, i386_zmm_names)
935 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
936 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
937 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
938 * f-lang.c (f_extensions): Now const.
939 * d-lang.c (d_extensions): Now const.
940 * csky-tdep.c (csky_register_names): Now const.
941 * charset.c (default_charset_names, charset_enum): Now const.
942 (_initialize_charset): Update.
943 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
944 const.
945 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
946 (bsd_uthread_solib_loaded): Update.
947 (bsd_uthread_state): Now const.
948 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
949 (amd64_ymm_avx512_names, amd64_ymmh_names)
950 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
951 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
952 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
953 (amd64_dword_names): Now const.
954 * agent.c (can_use_agent_enum): Now const.
955 * ada-tasks.c (task_states, long_task_states): Now const.
956 * ada-lang.c (known_runtime_file_name_patterns)
957 (known_auxiliary_function_name_patterns, attribute_names)
958 (standard_exc, ada_extensions): Now const.
959
89806626
SM
9602020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
961
962 * bcache.h (struct bcache) <bcache>: Remove constructor.
963 <m_hash_function, m_compare_function>: Remove.
964 <~bcache>: Make virtual.
965 <compare>: Remove static method, introduce virtual method.
966 <default_hash>: Remove.
967 <hash>: New virtual method.
968 * bcache.c (bcache::expand_hash_table): Update.
969 (bcache::insert): Update.
970 (bcache::hash): New.
971 (bcache::compare): Update comment and parameter names.
972 * gdbtypes.c (types_deeply_equal): Update.
973 * psymtab.h (struct psymbol_bcache): New struct.
974 (class psymtab_storage) <psymtab_storage>: Make default.
975 <psymbol_cache>: Change type to psymbol_bcache.
976 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
977 (psymbol_hash): Change to...
978 (psymbol_bcache::hash): ... this.
979 (psymbol_compare): Change to...
980 (psymbol_bcache::compare): ... this.
981
677c92fe
SM
9822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
983
984 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
985 checking for initial lwp.
986
3eba3a01
TT
9872020-09-14 Tom Tromey <tromey@adacore.com>
988
989 * m68k-tdep.c (m68k_extract_return_value): Use
990 pointer_result_regnum.
991 (m68k_store_return_value): Likewise.
992 (m68k_reg_struct_return_p): Handle vectors and arrays.
993 (m68k_return_value): Handle arrays.
994 (m68k_svr4_return_value): Fix single-element aggregate handling.
995 Handle long double. Adjust for embedded ABI.
996 (m68k_svr4_init_abi): Set pointer_result_regnum.
997 (m68k_embedded_init_abi): New function.
998 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
999 (m68k_osabi_sniffer): New function.
1000 (_initialize_m68k_tdep): Register osabi sniffer.
1001 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1002 member.
1003
33f4dd48
SM
10042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1005
1006 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1007 with gdb::unique_xmalloc_ptr<char>.
1008
8400a90d
SM
10092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1010
1011 * xml-support.h (xml_fetch_another): Change type to be a
1012 function_view.
1013 (xml_process_xincludes): Remove baton parameter.
1014 (xml_fetch_content_from_file): Change baton parameter to
1015 dirname.
1016 * xml-support.c (struct xinclude_parsing_data)
1017 <xinclude_parsing_data>: Remove baton parameter.
1018 <fetcher_baton>: Remove.
1019 (xinclude_start_include): Adjust.
1020 (xml_process_xincludes): Adjust.
1021 (xml_fetch_content_from_file): Replace baton parameter with
1022 dirname.
1023 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1024 (xml_init_syscalls_info): Use a lambda.
1025 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1026 (file_read_description_xml): Use a lambda.
1027 (fetch_available_features_from_target): Change baton parameter
1028 to target_ops.
1029 (target_read_description_xml): Use a lambda.
1030 (target_fetch_description_xml): Use a lambda.
1031 (string_read_description_xml): Update.
1032
04f5bab2
SM
10332020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1034
1035 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1036 uses with type::endianity_is_not_default.
1037
db558e34
SM
10382020-09-14 Simon Marchi <simon.marchi@efficios.com>
1039
1040 * gdbtypes.h (struct type) <endianity_is_not_default,
1041 set_endianity_is_not_default>: New methods.
1042 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1043 type::endianity_is_not_default, change all write call sites to
1044 use type::set_endianity_is_not_default.
1045
22c4c60c
SM
10462020-09-14 Simon Marchi <simon.marchi@efficios.com>
1047
1048 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1049 uses with type::is_fixed_instance.
1050
9cdd0d12
SM
10512020-09-14 Simon Marchi <simon.marchi@efficios.com>
1052
1053 * gdbtypes.h (struct type) <is_fixed_instance,
1054 set_is_fixed_instance>: New methods.
1055 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1056 write call sites to use type::set_is_fixed_instance.
1057
0becda7a
SM
10582020-09-14 Simon Marchi <simon.marchi@efficios.com>
1059
1060 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1061 uses with type::is_gnu_ifunc.
1062
03cc7249
SM
10632020-09-14 Simon Marchi <simon.marchi@efficios.com>
1064
1065 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1066 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1067 use type::set_is_gnu_ifunc.
1068
3f46044c
SM
10692020-09-14 Simon Marchi <simon.marchi@efficios.com>
1070
1071 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1072 uses with type::stub_is_supported.
1073
9baccff6
SM
10742020-09-14 Simon Marchi <simon.marchi@efficios.com>
1075
1076 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1077 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1078 use type::set_stub_is_supported.
1079
bd63c870
SM
10802020-09-14 Simon Marchi <simon.marchi@efficios.com>
1081
1082 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1083 uses with type::is_vector.
1084
2062087b
SM
10852020-09-14 Simon Marchi <simon.marchi@efficios.com>
1086
1087 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1088 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1089 use type::set_is_vector.
1090
a409645d
SM
10912020-09-14 Simon Marchi <simon.marchi@efficios.com>
1092
1093 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1094 uses with type::has_varargs.
1095
1d6286ed
SM
10962020-09-14 Simon Marchi <simon.marchi@efficios.com>
1097
1098 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1099 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1100 use type::set_has_varargs.
1101
7f9f399b
SM
11022020-09-14 Simon Marchi <simon.marchi@efficios.com>
1103
1104 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1105 uses with type::is_prototyped.
1106
27e69b7a
SM
11072020-09-14 Simon Marchi <simon.marchi@efficios.com>
1108
1109 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1110 New methods.
1111 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1112 call sites to use type::set_is_prototyped.
1113
d2183968
SM
11142020-09-14 Simon Marchi <simon.marchi@efficios.com>
1115
1116 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1117 uses with type::target_is_stub.
1118
8f53807e
SM
11192020-09-14 Simon Marchi <simon.marchi@efficios.com>
1120
1121 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1122 New methods.
1123 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1124 sites to use type::set_target_is_stub.
1125
e46d3488
SM
11262020-09-14 Simon Marchi <simon.marchi@efficios.com>
1127
1128 * gdbtypes.h (TYPE_STUB): Remove, replace all
1129 uses with type::is_stub.
1130
b4b73759
SM
11312020-09-14 Simon Marchi <simon.marchi@efficios.com>
1132
1133 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1134 (TYPE_STUB): Use type::is_stub, change all write call sites to
1135 use type::set_is_stub.
1136
20ce4123
SM
11372020-09-14 Simon Marchi <simon.marchi@efficios.com>
1138
1139 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1140 type::has_no_signedness.
1141
15152a54
SM
11422020-09-14 Simon Marchi <simon.marchi@efficios.com>
1143
1144 * gdbtypes.h (struct type) <has_no_signedness,
1145 set_has_no_signedness>: New methods.
1146 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1147 call sites to use type::set_has_no_signedness.
1148
c6d940a9
SM
11492020-09-14 Simon Marchi <simon.marchi@efficios.com>
1150
1151 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1152 type::is_unsigned.
1153
653223d3
SM
11542020-09-14 Simon Marchi <simon.marchi@efficios.com>
1155
1156 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1157 methods.
1158 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1159 sites to use type::set_is_unsigned.
1160
55ea94da
FH
11612020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1162 Adam Renquinha <arenquinha@cimeq.qc.ca>
1163
1164 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1165 pointer and stack frame offset when unwinding.
1166
6791b117
PA
11672020-09-13 Pedro Alves <pedro@palves.net>
1168
1169 * NEWS: Document "-break-insert --qualified".
1170 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1171
77f2120b
PA
11722020-09-13 Pedro Alves <pedro@palves.net>
1173
1174 * linespec.c (classify_mtype, compare_msyms): Delete.
1175 (search_minsyms_for_name): Remove classification logic. Instead
1176 filter out trampoline symbols if we also found an external
1177 function of the same name.
1178
ed6a896c
JB
11792020-09-13 Joel Brobecker <brobecker@adacore.com>
1180
1181 * NEWS: Create a new section for the next release branch.
1182 Rename the section of the current branch, now that it has
1183 been cut.
1184
32aea73e
JB
11852020-09-13 Joel Brobecker <brobecker@adacore.com>
1186
1187 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1188 * version.in: Bump version to 11.0.50.DATE-git.
1189
8087c3fa
JB
11902020-09-12 Joel Brobecker <brobecker@adacore.com>
1191
1192 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1193
2a67f09d
FW
11942020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1195 Felix Willgerodt <Felix.Willgerodt@intel.com>
1196
1197 * gdbarch.sh: Added bfloat16 type.
1198 * gdbarch.c: Regenerated.
1199 * gdbarch.h: Regenerated.
1200 * gdbtypes.c (floatformats_bfloat16): New struct.
1201 (gdbtypes_post_init): Add builtin_bfloat16.
1202 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1203 (floatformats_bfloat16): New struct.
1204 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1205 (i386_ymm_type): Add field "v16_bfloat16"
1206 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1207 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1208 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1209 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1210 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1211 * features/i386/64bit-avx512.c: Regenerated.
1212 * features/i386/64bit-sse.xml: Add bfloat16 type.
1213 * features/i386/64bit-sse.c: Regenerated.
1214
1347d111
FW
12152020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1216
1217 * i386-tdep.c (i386_zmm_type): Fix field names.
1218 (i386_ymm_type): Fix field names.
1219
7a4e8e7d
TBA
12202020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1221
1222 * breakpoint.c: Fix typo in the help message of the
1223 "set breakpoint condition-evaluation" command.
1224
cf4ac4be
KR
12252020-09-10 Kamil Rytarowski <n54@gmx.com>
1226
1227 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1228 * (nbsd_nat_target::pid_to_exec_file)
1229 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1230 (nbsd_nat_target::post_startup_inferior)
1231 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1232 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1233 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1234 * (nbsd_thread_lister): Remove.
1235
f404573e
KR
12362020-09-10 Kamil Rytarowski <n54@gmx.com>
1237
1238 * fork-inferior.c (startup_inferior): Avoid double free.
1239
1ccb2c17
KR
12402020-09-10 Kamil Rytarowski <n54@gmx.com>
1241
1242 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1243 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1244
feedfcc7
KR
12452020-09-10 Kamil Rytarowski <n54@gmx.com>
1246
1247 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1248 * netbsd-nat.c: Include <sys/ptrace.h>.
1249 * (netbsd_nat::enable_proc_events): Add.
1250
c489f8c6
KR
12512020-09-10 Kamil Rytarowski <n54@gmx.com>
1252
1253 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1254 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1255 (netbsd_nat::for_each_thread): Add.
1256 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1257 "gdbsupport/common-debug.h".
1258 * (netbsd_nat::netbsd_thread_lister)
1259 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1260 (netbsd_nat::for_each_thread): Add.
1261
330662f6
KR
12622020-09-10 Kamil Rytarowski <n54@gmx.com>
1263
1264 * netbsd-nat.h: Include <unistd.h>.
1265 * (netbsd_nat::pid_to_exec_file): Add.
1266 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1267 * (netbsd_nat::pid_to_exec_file) Add.
1268
70b67307
KR
12692020-09-10 Kamil Rytarowski <n54@gmx.com>
1270
1271 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1272
99cf6da6
KR
12732020-09-10 Kamil Rytarowski <n54@gmx.com>
1274
1275 * netbsd-nat.h: New file.
1276 * netbsd-nat.c: Likewise.
1277
1b788fb6
TT
12782020-09-09 Tom Tromey <tromey@adacore.com>
1279
1280 * ada-lang.c (remove_extra_symbols): Do not increment when
1281 removing an element
1282
03b0a45f
TT
12832020-09-08 Tom Tromey <tromey@adacore.com>
1284
1285 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1286
3cae4447
TT
12872020-09-08 Tom Tromey <tromey@adacore.com>
1288
1289 PR win32/25302:
1290 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1291 (gdb_bfd_init_data): New function.
1292 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1293
7f08fd51
TBA
12942020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1295
1296 * infrun.c (fetch_inferior_event): Use
1297 `switch_to_target_no_thread` to switch the target.
1298
3e6ff933
TT
12992020-09-06 Tom Tromey <tom@tromey.com>
1300
1301 * symfile.h (dwarf2_free_objfile): Don't declare.
1302
e56798df
AKS
13032020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1304
1305 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1306 to match 16 byte real/complex type generated by Flang compiler.
1307
8f5c6526
TV
13082020-09-03 Tom de Vries <tdevries@suse.de>
1309
1310 PR breakpoint/26546
1311 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1312 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1313
c5065df0
SM
13142020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1315
1316 * maint.c (index_digits): New function.
1317 (struct maint_print_section_data): Remove.
1318 (print_bfd_section_info): Remove print_data parameter, add arg
1319 and index_digits.
1320 (print_objfile_section_info): Likewise.
1321 (print_bfd_section_info_maybe_relocated): Likewise (plus
1322 objfile).
1323 (maintenance_info_sections): Adjust calls.
1324
02c6f3f1
TT
13252020-09-02 Tom Tromey <tromey@adacore.com>
1326
1327 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1328 for null pointers.
1329 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1330
ef5e5b0b
SM
13312020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1332
1333 * bcache.h (struct bcache) <insert>: Change type of `added` to
1334 pointer to bool.
1335 * bcache.c (bcache::insert): Likewise.
1336 * gdbtypes.c (check_types_worklist): Adjust.
1337 * psymtab.c (add_psymbol_to_bcache): Adjust.
1338
973695d6
KB
13392020-08-31 Kevin Buettner <kevinb@redhat.com>
1340
1341 * corelow.c (unordered_set): Include.
1342 (class core_target): Add field 'm_core_unavailable_mappings'.
1343 (core_target::build_file_mappings): Print only one warning
1344 per inaccessible file. Add unavailable/broken mappings
1345 to m_core_unavailable_mappings.
1346 (core_target::xfer_partial): Call...
1347 (core_target::xfer_memory_via_mappings): New method.
1348
264fc0e2
SM
13492020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1350
1351 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1352 type to bool.
1353
2de01bdb
SM
13542020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1355
1356 * dwarf2/read.c (struct field_info): Fix indentation.
1357
f3bd50f1
SM
13582020-08-31 Simon Marchi <simon.marchi@efficios.com>
1359
1360 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1361 ordering in comment.
1362 * frame.c (frame_id_eq): Fix indentation.
1363
22b9b4b0
SL
13642020-08-31 Scott Linder <scott@scottlinder.com>
1365 Simon Marchi <simon.marchi@efficios.com>
1366
1367 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1368 inline frame ids in outer frame.
1369
84154d16
SM
13702020-08-31 Simon Marchi <simon.marchi@efficios.com>
1371
1372 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1373 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1374 (outer_frame_id): Use FID_STACK_OUTER instead of
1375 FID_STACK_INVALID.
1376 (frame_id_p): Don't check for outer_frame_id.
1377
8efaf6b3
SM
13782020-08-31 Simon Marchi <simon.marchi@efficios.com>
1379
1380 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1381 regnum/frame in value. Call allocate_value_lazy.
1382 * frame.c (frame_unwind_register_value): Use
1383 val_print_not_saved.
1384
fe1fe7ea
SM
13852020-08-31 Simon Marchi <simon.marchi@efficios.com>
1386
1387 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1388
f7c7700d
PA
13892020-08-29 Pedro Alves <pedro@palves.net>
1390
1391 * progspace.c (print_program_space): Use all_inferiors. Switch to
1392 the inferior before calling target_pid_to_str.
1393
e0814aae
TT
13942020-08-28 Tom Tromey <tom@tromey.com>
1395
1396 * xcoffread.c (xcoff_end_psymtab): Update comment.
1397 * dbxread.c (dbx_end_psymtab): Update comment.
1398
626d2320
TV
13992020-08-28 Tom de Vries <tdevries@suse.de>
1400
1401 PR breakpoint/26544
1402 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1403 event_location.
1404 (create_breakpoint): Same.
1405 (base_breakpoint_decode_location): Same.
1406 (bkpt_create_sals_from_location): Same.
1407 (bkpt_decode_location): Same.
1408 (bkpt_probe_create_sals_from_location): Same.
1409 (bkpt_probe_decode_location): Same.
1410 (tracepoint_create_sals_from_location): Same.
1411 (tracepoint_decode_location): Same.
1412 (tracepoint_probe_decode_location): Same.
1413 (strace_marker_create_sals_from_location): Same.
1414 (strace_marker_decode_location): Same.
1415 (create_sals_from_location_default): Same.
1416 (decode_location_default): Same.
1417 * breakpoint.h (struct breakpoint_ops): Same.
1418 (create_breakpoint): Same.
1419 * linespec.h (decode_line_full): Same.
1420 * linespec.c (decode_line_full): Same. Throw error if
1421 result.size () == 0.
1422
df631783
PA
14232020-08-27 Pedro Alves <pedro@palves.net>
1424
1425 PR gdb/26524
1426 * breakpoint.c (until_break_fsm) <location_breakpoint,
1427 caller_breakpoint>: Delete fields.
1428 <breakpoints>: New field.
1429 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1430 two individual breakpoints.
1431 (until_break_fsm::should_stop): Loop over breakpoints in the
1432 breakpoint vector.
1433 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1434 vector.
1435 (until_break_command): Handle location expanding into multiple
1436 sals.
1437
b2b38aa4
PA
14382020-08-27 Pedro Alves <pedro@palves.net>
1439
1440 PR gdb/26523
1441 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1442 bp_until breakpoints user-specified locations. Update intro
1443 comment.
1444
b886559f
SM
14452020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1446
1447 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1448 gdb_bfd_sections): New.
1449 * maint.c (print_bfd_section_info): Change param type to
1450 maint_print_section_data.
1451 (print_objfile_section_info): Likewise.
1452 (print_bfd_section_info_maybe_relocated): Likewise.
1453 (maintenance_info_sections): Use gdb_bfd_sections.
1454
4c6e63bf
SV
14552020-08-25 Shahab Vahedi <shahab@synopsys.com>
1456
1457 * MAINTAINERS: Add ARC target and maintainer.
1458
8d7f0635
AK
14592020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1460
1461 * configure.tgt: ARC support for GNU/Linux.
1462 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1463 * arc-linux-tdep.c: New file.
1464 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1465 * arc-tdep.c (arc_write_pc): Use it.
1466
fdd8731b
SV
14672020-08-25 Shahab Vahedi <shahab@synopsys.com>
1468
1469 * arc-tdep.c (arc_check_for_hardware_loop): New.
1470 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1471
22459524
SV
14722020-08-25 Shahab Vahedi <shahab@synopsys.com>
1473
1474 * arc-tdep.h: Include "gdbarch.h".
1475
995d3a19
SV
14762020-08-25 Shahab Vahedi <shahab@synopsys.com>
1477
1478 * arch/arc.h
1479 (arc_gdbarch_features): New class to stir the selection of target XML.
1480 (arc_create_target_description): Use FEATURES to choose XML target.
1481 (arc_lookup_target_description): Use arc_create_target_description
1482 to create _new_ target descriptions or return the already created
1483 ones if the FEATURES is the same.
1484 * arch/arc.c: Implementation of prototypes described above.
1485 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1486 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1487 * arc-tdep.c (*_feature_name): Make feature names consistent.
1488 (arc_register_feature): A new struct to hold information about
1489 registers of a particular target/feature.
1490 (arc_check_tdesc_feature): Check if XML provides registers in
1491 compliance with ARC_REGISTER_FEATURE structs.
1492 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1493 (determine_*_reg_feature_set): Which feature name to look for.
1494 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1495 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1496 to expected ISA enums to be used in arc_gdbarch_features structs.
1497 * features/Makefile (FEATURE_XMLFILES): Add new files.
1498 * gdb/features/arc/v1-aux.c: New file.
1499 * gdb/features/arc/v1-aux.xml: Likewise.
1500 * gdb/features/arc/v1-core.c: Likewise.
1501 * gdb/features/arc/v1-core.xml: Likewise.
1502 * gdb/features/arc/v2-aux.c: Likewise.
1503 * gdb/features/arc/v2-aux.xml: Likewise.
1504 * gdb/features/arc/v2-core.c: Likewise.
1505 * gdb/features/arc/v2-core.xml: Likewise.
1506 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1507
3945d2d7
GM
15082020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1509 Andrew Burgess <andrew.burgess@embecosm.com>
1510
1511 PR m2/26372
fc5d6901 1512 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1513 an assert. Remove single element array indexing pattern as the
1514 MULTI_SUBSCRIPT support will handle this case too.
1515
2677f2d3
SM
15162020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1517
1518 * value.h (valprint_check_validity): Move declaration from
1519 here...
1520 * valprint.h (valprint_check_validity): ... to here.
1521
c426fddb
SM
15222020-08-24 Simon Marchi <simon.marchi@efficios.com>
1523
1524 * debug.h: New file.
1525 * debug.c (debug_prefixed_vprintf): New function.
1526 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1527 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1528
1eb8556f
SM
15292020-08-24 Simon Marchi <simon.marchi@efficios.com>
1530
1531 * infrun.h (infrun_debug_printf_1): New function declaration.
1532 (infrun_debug_printf): New macro.
1533 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1534 throughout.
1535 (infrun_debug_printf): New function.
1536 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1537 (handle_jit_event): Likewise.
1538
b8fff44e
MW
15392020-08-21 Mark Wielaard <mark@klomp.org>
1540
1541 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1542
d19c3068
SM
15432020-08-22 Simon Marchi <simon.marchi@efficios.com>
1544
1545 * frame.c (enum class frame_id_status): New.
1546 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1547 (fprintf_frame): Update.
1548 (compute_frame_id): Set frame id status to "computing" on entry.
1549 Set it back to "not_computed" on failure and to "computed" on
1550 success.
1551 (get_frame_id): Assert the frame id is not being computed.
1552 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1553 (create_new_frame): Likewise.
1554 (frame_cleanup_after_sniffer): Update assert.
1555
b70e516e
SM
15562020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1557
1558 * regcache.c (pid_ptid_regcache_map): New type.
1559 (target_ptid_regcache_map): Remove.
1560 (target_pid_ptid_regcache_map): New type.
1561 (regcaches): Change type to target_pid_ptid_regcache_map.
1562 (get_thread_arch_aspace_regcache): Update.
1563 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1564 case.
1565 (regcaches_size): Update.
1566 (regcache_count): Update.
1567 (registers_changed_ptid_target_pid_test): New.
1568 (_initialize_regcache): Register new test.
1569
cdd9148a
SM
15702020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1571
1572 * regcache.c (regcache_count): New.
1573 (struct regcache_test_data): New.
1574 (regcache_test_data_up): New.
1575 (populate_regcaches_for_test): New.
1576 (regcaches_test): Remove.
1577 (get_thread_arch_aspace_regcache_test): New.
1578 (registers_changed_ptid_all_test): New.
1579 (registers_changed_ptid_target_test): New.
1580 (registers_changed_ptid_target_ptid_test): New.
1581 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1582 (_initialize_regcache): Register new tests.
1583
dd125343
SM
15842020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1585
1586 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1587 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1588 gdbarch and aspace parameter. Use current inferior's aspace.
1589 Validate regcache's arch value.
1590 (regcaches_test): Update.
1591
3ee93972
SM
15922020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1593
1594 * regcache.c (regcaches_test): Call registers_changed.
1595
33bf4c5c
TBA
15962020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1597
1598 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1599
c2fd7fae
AKS
16002020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1601
1602 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1603 to find the end of prologue for flang compiled binaries.
1604 * arm-tdep.c (arm_skip_prologue): Likewise.
1605 * i386-tdep.c (i386_skip_prologue): Likewise.
1606 * producer.c (producer_is_llvm): New function.
1607 (producer_parsing_tests): Added new tests for clang/flang.
1608 * producer.h (producer_is_llvm): New declaration.
1609
9327494e
SM
16102020-08-18 Simon Marchi <simon.marchi@efficios.com>
1611
1612 * linux-nat.c (linux_nat_debug_printf): New function.
1613 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1614
d138725a
AM
16152020-08-18 Aaron Merey <amerey@redhat.com>
1616
1617 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1618 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1619 (CLIBS): Add DEBUGINFOD_LIBS.
1620
f9b11e6b
ST
16212020-08-17 Sergei Trofimovich <siarheit@google.com>
1622
1623 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1624 'gdbarch_num_regs'.
1625
3ae7ab99
TT
16262020-08-17 Tom Tromey <tromey@adacore.com>
1627
1628 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1629 ada_get_decoded_value returns NULL.
1630
b017825f
TT
16312020-08-17 Tom Tromey <tromey@adacore.com>
1632
1633 * python/py-inferior.c (infpy_search_memory): Use
1634 gdb_py_object_from_ulongest.
1635 * python/py-infevents.c (create_inferior_call_event_object)
1636 (create_memory_changed_event_object): Use
1637 gdb_py_object_from_ulongest.
1638 * python/py-linetable.c (ltpy_entry_get_pc): Use
1639 gdb_py_object_from_ulongest.
1640
7635cf79
SM
16412020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1642
1643 * loc.c (class symbol_needs_eval_context): Fix indentation.
1644
f54be24b
SM
16452020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1646
1647 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1648 bool.
1649
53d5a2a5
TV
16502020-08-17 Tom de Vries <tdevries@suse.de>
1651
1652 PR gdb/26393
1653 * gdbtypes.c (dump_dynamic_prop): New function.
1654 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1655
547ce8f0
TV
16562020-08-15 Tom de Vries <tdevries@suse.de>
1657
1658 PR backtrace/26390
1659 * stack.c (print_frame_args): Temporarily set the selected
1660 frame to FRAME while printing the frame's arguments.
1661
6ea815e7
PFC
16622020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1663
1664 PR breakpoints/26385
1665 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1666 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1667
6e562fa3
PFC
16682020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1669
1670 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1671 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1672 and >= to check return value instead of == -1 and != -1.
1673
d369b608
SM
16742020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1675
1676 * utils.h (class gdb_argv) <as_array_view>: New method.
1677 * utils.c (gdb_argv_as_array_view_test): New.
1678 (_initialize_utils): Register selftest.
1679 * maint.c (maintenance_selftest): Use the new method.
1680
b31488a3
KR
16812020-08-13 Kamil Rytarowski <n54@gmx.com>
1682
1683 * target.h (supports_dumpcore, dumpcore): New
1684 function declarations.
1685 * target.c (supports_dumpcore, dumpcore): New
1686 functions.
1687 * target-delegates.c: Rebuild.
1688 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1689 and target_dumpcore ().
1690
002a3166
AM
16912020-08-13 Aaron Merey <amerey@redhat.com>
1692
1693 * debuginfod-support.c: Replace global variables with user_data.
1694
ece5bc8a
SM
16952020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1696
1697 * maint.c (maintenance_selftest): Split args and pass array_view
1698 to run_tests.
1699
6d8a0a5e
LM
17002020-08-12 Luis Machado <luis.machado@linaro.org>
1701
1702 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1703 type's length.
1704 Use %s and pulongest to print the length.
1705
7cf663a9
PA
17062020-08-12 Pedro Alves <palves@redhat.com>
1707
1708 * NEWS: Move "Multi-target debugging support" item to the
1709 "Changes since GDB 9" section.
1710
27c7b875
PA
17112020-08-12 Pedro Alves <palves@redhat.com>
1712
1713 PR gdb/26336
1714 * progspace.c (program_space::remove_objfile): Invalidate the
1715 frame cache.
1716
1796a2a1
TV
17172020-08-11 Tom de Vries <tdevries@suse.de>
1718
1719 * MAINTAINERS: Mark ms1 as deleted.
1720
f8e3fe0d
LM
17212020-08-10 Luis Machado <luis.machado@linaro.org>
1722
1723 PR gdb/26310
1724
1725 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1726 act accordingly.
1727 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1728 movz/str/stur/stp skipping behavior.
1729
cc308722
LM
17302020-08-10 Luis Machado <luis.machado@linaro.org>
1731
1732 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1733 struct user_sve_header instead of struct sve_context.
1734
041d9819
SM
17352020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1736
1737 * read.h (dwarf2_fetch_die_loc_sect_off,
1738 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1739 `void *` parameter with function_view.
1740 * read.c (dwarf2_fetch_die_loc_sect_off,
1741 dwarf2_fetch_die_loc_cu_off): Likewise.
1742 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1743 (per_cu_dwarf_call): Adjust.
1744 (get_frame_address_in_block_wrapper): Remove.
1745 (indirect_synthetic_pointer): Adjust.
1746 (get_ax_pc): Remove.
1747 (dwarf2_compile_expr_to_ax): Adjust.
1748
38f8aa06
TV
17492020-08-08 Tom de Vries <tdevries@suse.de>
1750
1751 PR build/26344
1752 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1753 constructor.
1754 * regcache.c (get_thread_arch_aspace_regcache): Same.
1755
a52b3ae2
TT
17562020-08-07 Tom Tromey <tromey@adacore.com>
1757
1758 * ravenscar-thread.c
1759 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1760 New method.
1761 (ravenscar_thread_target::wait): Check
1762 runtime_initialized.
1763 (ravenscar_thread_target::prepare_to_store)
1764 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1765 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1766 (ravenscar_thread_target::stopped_by_watchpoint)
1767 (ravenscar_thread_target::stopped_data_address)
1768 (ravenscar_thread_target::core_of_thread): Use
1769 scoped_restore_current_thread and
1770 set_base_thread_from_ravenscar_task.
1771
0e29517d
TT
17722020-08-07 Tom Tromey <tromey@adacore.com>
1773
1774 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1775
592f9bd7
TT
17762020-08-07 Tom Tromey <tromey@adacore.com>
1777
1778 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1779 update_inferior_ptid before update_thread_list.
1780 (temporarily_change_regcache_ptid): New class.
1781 (ravenscar_thread_target::fetch_registers)
1782 (ravenscar_thread_target::store_registers)
1783 (ravenscar_thread_target::prepare_to_store): Use base thread when
1784 forwarding operation.
1785
39e2018a
TT
17862020-08-07 Tom Tromey <tromey@adacore.com>
1787
1788 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1789 "is_pid" case.
1790
2080266b
TT
17912020-08-07 Tom Tromey <tromey@adacore.com>
1792
1793 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1794 New methods.
1795 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1796 first.
1797 (ravenscar_thread_target::add_thread): Rename from
1798 ravenscar_add_thread.
1799 (ravenscar_thread_target::update_thread_list): Use a lambda.
1800 (ravenscar_thread_target::xfer_partial): New method.
1801
78c02f21
TT
18022020-08-07 Tom Tromey <tromey@adacore.com>
1803
1804 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1805 gdb::function_view.
1806 (iterate_over_live_ada_tasks): Change type of argument.
1807 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1808 of argument.
1809
d5d833af
TT
18102020-08-07 Tom Tromey <tromey@adacore.com>
1811
1812 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1813 Remove.
1814 (ravenscar_thread_target::extra_thread_info): Remove.
1815 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1816 defer to target beneath for non-Ravenscar threads.
1817
a8ac85bb
TT
18182020-08-07 Tom Tromey <tromey@adacore.com>
1819
1820 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1821 get_base_thread_from_ravenscar_task>: Now methods.
1822 <m_cpu_map>: New member.
1823 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1824 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1825 (ravenscar_thread_target::task_is_currently_active): Update.
1826 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1827 Now a method.
1828 (ravenscar_thread_target::add_active_thread): Put initial thread
1829 into the m_cpu_map.
1830
550ab58d
TT
18312020-08-07 Tom Tromey <tromey@adacore.com>
1832
1833 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1834 event_ptid.
1835
e9546579
TT
18362020-08-07 Tom Tromey <tromey@adacore.com>
1837
1838 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1839 runtime_initialized.
1840
3d4470e5
TT
18412020-08-07 Tom Tromey <tromey@adacore.com>
1842
1843 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1844 add_active_thread.
1845 (ravenscar_thread_target::add_active_thread): Now public.
1846 (ravenscar_inferior_created): Call add_active_thread after pushing
1847 the target.
1848
888bdb2b
SM
18492020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1850
1851 * regcache.c (ptid_regcache_map): New type.
1852 (target_ptid_regcache_map): New type.
1853 (regcaches): Change type to target_ptid_regcache_map.
1854 (get_thread_arch_aspace_regcache): Update to regcaches' new
1855 type.
1856 (regcache_thread_ptid_changed): Likewise.
1857 (registers_changed_ptid): Likewise.
1858 (regcaches_size): Likewise.
1859 (regcaches_test): Update.
1860 (regcache_thread_ptid_changed): Update.
1861 * regcache.h (regcache_up): New type.
1862 * gdbsupport/ptid.h (hash_ptid): New struct.
1863
b161a60d
SM
18642020-08-07 Simon Marchi <simon.marchi@efficios.com>
1865
1866 * observable.h (thread_ptid_changed): Add parameter
1867 `process_stratum_target *`.
1868 * infrun.c (infrun_thread_ptid_changed): Add parameter
1869 `process_stratum_target *` and use it.
1870 (selftests): New namespace.
1871 (infrun_thread_ptid_changed): New function.
1872 (_initialize_infrun): Register selftest.
1873 * regcache.c (regcache_thread_ptid_changed): Add parameter
1874 `process_stratum_target *` and use it.
1875 (regcache_thread_ptid_changed): New function.
1876 (_initialize_regcache): Register selftest.
1877 * thread.c (thread_change_ptid): Pass target to
1878 thread_ptid_changed observable.
1879
d2854d8d
CT
18802020-08-06 Caroline Tice <cmtice@google.com>
1881
fe4c3d43
SM
1882 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1883 (struct dwp_sections): Update field comments. Add loclists and
1884 rnglists fields.
1885 (struct virtual_v2_dwo_sections): Rename struct to
1886 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1887 size & offset fields for loclists and rnglists.
1888 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1889 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1890 skipping dummy type units.
1891 (create_dwp_hash_table): Update the large comment above the function to
1892 discuss Version 5 DWP files as well, with references. Update all the
1893 version checks in the function to check for version 5 as well. Add new
1894 section at the end to create dwp hash table for version 5.
1895 (create_dwp_v2_section): Rename function to
1896 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1897 Add V5 to error message text.
1898 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1899 into calls to create_dwp_v2_or_v5_section.
1900 (create_dwo_unit_in_dwp_v5): New function.
1901 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1902 check for version2; add else clause to handle version 5.
1903 (open_and_init_dwo_file): Add code to check dwarf version & only call
1904 create_debug_types_hash_table (with sections.types) if version is not 5;
1905 else call create_debug_type_hash_table, with sections.info.
1906 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1907 version 5.
1908 (dwarf2_locate_v5_dwp_sections): New function.
1909 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1910 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1911
159ed7d9
SM
19122020-08-06 Simon Marchi <simon.marchi@efficios.com>
1913
1914 * regcache.h (class regcache): Remove friend
1915 registers_changed_ptid.
1916 <regcache_thread_ptid_changed>: Remove.
1917 <regcaches>: Remove.
1918 * regcache.c (regcache::regcaches): Rename to...
1919 (regcaches): ... this. Make static.
1920 (get_thread_arch_aspace_regcache): Update.
1921 (regcache::regcache_thread_ptid_changed): Rename to...
1922 (regcache_thread_ptid_changed): ... this. Update.
1923 (class regcache_access): Remove.
1924 (regcaches_test): Update.
1925 (_initialize_regcache): Update.
1926 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1927 <forward_list>.
1928
174981ae
SM
19292020-08-06 Simon Marchi <simon.marchi@efficios.com>
1930
1931 * regcache.h (class regcache) <current_regcache>: Rename to...
1932 <regcaches>: ... this. Move doc here.
1933 * regcache.c (regcache::current_regcache) Rename to...
1934 (regcache::regcaches): ... this. Move doc to header.
1935 (get_thread_arch_aspace_regcache): Update.
1936 (regcache::regcache_thread_ptid_changed): Update.
1937 (registers_changed_ptid): Update.
1938 (class regcache_access) <current_regcache_size>: Rename to...
1939 <regcaches_size>: ... this.
1940 (current_regcache_test): Rename to...
1941 (regcaches_test): ... this.
1942 (_initialize_regcache): Update.
1943
ed908db6
VC
19442020-08-06 Victor Collod <vcollod@nvidia.com>
1945
1946 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1947
b5582ab7
KB
19482020-08-05 Kevin Buettner <kevinb@redhat.com>
1949
1950 * corelow.c (core_target::build_file_mappings): Don't output
1951 null pathname in warning.
1952
ea946b86
SM
19532020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1954
1955 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1956 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1957 gdb.dwarf2/dw2-single-line-discriminators.exp,
1958 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1959
57d02173
TT
19602020-08-05 Tom Tromey <tromey@adacore.com>
1961
1962 PR rust/26197:
1963 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1964 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1965 Fix off-by-one and type size errors in ordinary case.
1966
5555c86d
TV
19672020-08-05 Tom de Vries <tdevries@suse.de>
1968
1969 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1970 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1971
97916bfe
SM
19722020-08-04 Simon Marchi <simon.marchi@efficios.com>
1973
1974 * frame.h (frame_id_p): Return bool.
1975 (frame_id_artificial_p): Return bool.
1976 (frame_id_eq): Return bool.
1977 (has_stack_frames): Return bool.
1978 (get_selected_frame): Fix typo in comment.
1979 (get_frame_pc_if_available): Return bool.
1980 (get_frame_address_in_block_if_available): Return bool.
1981 (get_frame_func_if_available): Return bool.
1982 (read_frame_register_unsigned): Return bool.
1983 (get_frame_register_bytes): Return bool.
1984 (safe_frame_unwind_memory): Return bool.
1985 (deprecated_frame_register_read): Return bool.
1986 (frame_unwinder_is): Return bool.
1987 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1988 bool.
1989 <this_id::p>: Likewise.
1990 <prev_p>: Likewise.
1991 (frame_stash_add): Return bool.
1992 (get_frame_id): Use bool.
1993 (frame_id_build_special) Use bool.
1994 (frame_id_build_unavailable_stack): Use bool.
1995 (frame_id_build): Use bool.
1996 (frame_id_p): Return bool, use true/false instead of 1/0.
1997 (frame_id_artificial_p): Likewise.
1998 (frame_id_eq): Likewise.
1999 (frame_id_inner): Likewise.
2000 (get_frame_func_if_available): Likewise.
2001 (read_frame_register_unsigned): Likewise.
2002 (deprecated_frame_register_read): Likewise.
2003 (get_frame_register_bytes): Likewise.
2004 (has_stack_frames): Likewise.
2005 (inside_main_func): Likewise.
2006 (inside_entry_func): Likewise.
2007 (get_frame_pc_if_available): Likewise.
2008 (get_frame_address_in_block_if_available): Likewise.
2009 (frame_unwinder_is): Likewise.
2010 (safe_frame_unwind_memory): Likewise.
2011 (frame_unwind_arch): Likewise.
2012
fedfee88
SM
20132020-08-04 Simon Marchi <simon.marchi@efficios.com>
2014
2015 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2016 type to cached_copy_status.
2017 (fprintf_frame): Adjust.
2018 (get_frame_func_if_available): Adjust.
2019 (frame_cleanup_after_sniffer): Adjust.
2020
6cfa9b59
MW
20212020-08-04 Mark Wielaard <mark@klomp.org>
2022
2023 * MAINTAINERS (Write After Approval): Update email address.
2024
66d6346b
SM
20252020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2028 dynamic_prop::const_val.
2029
8a6d5e35
SM
20302020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2031
2032 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2033 dynamic_prop::kind.
2034
51d6067d
SM
20352020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2036
2037 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2038
b26e2ae7
JM
20392020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2040
2041 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2042
39791af2
JM
20432020-08-04 Weimin Pan <weimin.pan@oracle.com>
2044 Jose E. Marchesi <jose.marchesi@oracle.com>
2045
2046 * configure.tgt: Add entry for bpf-*-*.
2047 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2048 (ALLDEPFILES): Add bpf-tdep.c.
2049 * bpf-tdep.c: New file.
2050 * MAINTAINERS: Add bpf target and maintainer.
2051 * NEWS: Mention the support for the new target.
2052
521894aa
TV
20532020-08-04 Tom de Vries <tdevries@suse.de>
2054
2055 PR symtab/23270
2056 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2057 Error.
2058
5d6356e9
JB
20592020-08-03 John Baldwin <jhb@FreeBSD.org>
2060
2061 * syscalls/freebsd.xml: Regenerate.
2062
0cf82b81
JB
20632020-08-03 John Baldwin <jhb@FreeBSD.org>
2064
2065 * syscalls/update-freebsd.sh: Fix usage and year range.
2066
8f34b746
TV
20672020-08-03 Tom de Vries <tdevries@suse.de>
2068
2069 PR symtab/26333
2070 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2071 DW_LNE_lo_user/DW_LNE_hi_user range.
2072
5e500d33
SM
20732020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2074
2075 PR ada/26318
2076 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2077 kind.
2078
78319c15
TBA
20792020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2080
2081 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2082
4c55e970
TBA
20832020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2084
2085 * breakpoint.c (set_breakpoint_condition): Update the condition
2086 expressions after checking that the input condition string parses
2087 successfully and does not contain junk at the end.
2088
1e620590
TBA
20892020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2090
2091 * breakpoint.c (set_breakpoint_condition): Update the
2092 condition string after parsing the new condition successfully.
2093
c8693053
RO
20942020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2095
2096 * proc-api.c (_STRUCTURED_PROC): Don't define.
2097 * proc-events.c: Likewise.
2098 * proc-flags.c: Likewise.
2099 * proc-why.c: Likewise.
2100 * procfs.c: Likewise.
2101
2102 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2103 * configure, config.in: Regenerate.
2104
5a99adb8
TV
21052020-07-30 Tom de Vries <tdevries@suse.de>
2106
2107 PR build/26320
2108 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2109 m_red/m_green/m_blue in a union.
2110
8ba83e91
TV
21112020-07-29 Tom de Vries <tdevries@suse.de>
2112
2113 PR tdep/26280
2114 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2115
f75a0693
AB
21162020-07-28 Tom Tromey <tromey@adacore.com>
2117
2118 PR symtab/26270:
2119 * symtab.h (find_pc_partial_function_sym): Declare.
2120 * cli/cli-cmds.c (disassemble_command): Use
2121 find_pc_partial_function_sym. Check asm_demangle.
2122 * blockframe.c (cache_pc_function_sym): New global.
2123 (cache_pc_function_name): Remove.
2124 (clear_pc_function_cache): Update.
2125 (find_pc_partial_function_sym): New function, from
2126 find_pc_partial_function.
2127 (find_pc_partial_function): Rewrite using
2128 find_pc_partial_function_sym.
2129
16f3242c
TT
21302020-07-28 Tom Tromey <tromey@adacore.com>
2131
2132 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2133 help. Add usage.
2134
4888741a
TT
21352020-07-28 Tom Tromey <tromey@adacore.com>
2136
2137 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2138 <DW_OP_GNU_variable_value>: Cast to address type.
2139
4d46f402
KR
21402020-07-28 Kamil Rytarowski <n54@gmx.com>
2141
2142 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2143 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2144 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2145 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2146 (nbsd_get_siginfo_type): New.
2147 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2148 (_initialize_nbsd_tdep): New.
2149
d70f978b
L
21502020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2151
2152 PR binutils/26301
2153 * configure: Regenerated.
2154
377170fa
L
21552020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2156
2157 PR binutils/26301
2158 * configure: Regenerated.
2159
43d5901d
AB
21602020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2161
2162 * python/py-frame.c: Remove 'user-regs.h' include.
2163 (frapy_read_register): Rewrite to make use of
2164 gdbpy_parse_register_id.
2165 * python/py-registers.c (gdbpy_parse_register_id): New function,
2166 moved here from python/py-unwind.c. Updated the return type, and
2167 also accepts register descriptor objects.
2168 * python/py-unwind.c: Remove 'user-regs.h' include.
2169 (pyuw_parse_register_id): Moved to python/py-registers.c.
2170 (unwind_infopy_add_saved_register): Update to use
2171 gdbpy_parse_register_id.
2172 (pending_framepy_read_register): Likewise.
2173 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2174
14fa8fb3
AB
21752020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2176
2177 * python/py-registers.c: Add 'user-regs.h' include.
2178 (register_descriptor_iter_find): New function.
2179 (register_descriptor_iterator_object_methods): New static global
2180 methods array.
2181 (register_descriptor_iterator_object_type): Add pointer to methods
2182 array.
2183
ddce1758
JB
21842020-07-27 John Baldwin <jhb@FreeBSD.org>
2185
2186 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2187 for all architectures on FreeBSD 11.3 and later.
2188
a4089f52
TT
21892020-07-27 Tom Tromey <tromey@adacore.com>
2190
2191 * gcore.h (load_corefile): Don't declare.
2192
95420d30
TV
21932020-07-27 Tom de Vries <tdevries@suse.de>
2194
2195 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2196 * config.in: Regenerate.
2197 * configure: Regenerate.
2198
05a6b8c2
EZ
21992020-07-26 Eli Zaretskii <eliz@gnu.org>
2200
2201 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2202 ws2tcpip.h. When checking whether socklen_t type is defined, use
2203 ws2tcpip.h if it is available and sys/socket.h isn't.
2204 * configure: Regenerate.
2205 * config.in: Regenerate.
2206
e79eb02f
AB
22072020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2208
2209 PR fortran/23051
2210 PR fortran/26139
2211 * valops.c (value_ind): Pass address to
2212 readjust_indirect_value_type.
2213 * value.c (readjust_indirect_value_type): Make parameter
2214 non-const, and add extra address parameter. Resolve original type
2215 before using it.
2216 * value.h (readjust_indirect_value_type): Update function
2217 signature and comment.
2218
876518dd
TV
22192020-07-25 Tom de Vries <tdevries@suse.de>
2220
2221 PR symtab/26243
2222 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2223 entries.
2224
f6720b1c
AM
22252020-07-24 Aaron Merey <amerey@redhat.com>
2226
2227 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2228 * configure: Rebuild.
2229
513487e1
KB
22302020-07-23 Kevin Buettner <kevinb@redhat.com>
2231
2232 PR corefiles/26294
2233 * corelow.c (_initialize_corelow): Add period to help text
2234 for "maintenance print core-file-backed-mappings".
2235
e7bc9db8
PA
22362020-07-23 Pedro Alves <pedro@palves.net>
2237
2238 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2239 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2240 meanwhile.
2241 * frame.c (frame_cache_generation, get_frame_cache_generation):
2242 New.
2243 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2244 (get_prev_frame_if_no_cycle): On exception, don't touch
2245 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2246 * frame.h (get_frame_cache_generation): Declare.
2247
90fcc466
TV
22482020-07-23 Tom de Vries <tdevries@suse.de>
2249
2250 PR tui/26282
2251 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2252 New default constructor.
2253
78344df7
AB
22542020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2255
2256 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2257 exclude non-statement entries.
2258
b089853a
KB
22592020-07-22 Kevin Buettner <kevinb@redhat.com>
2260
2261 * NEWS (New commands): Mention new command
2262 "maintenance print core-file-backed-mappings".
2263
09c2f5d4
KB
22642020-07-22 Kevin Buettner <kevinb@redhat.com>
2265
2266 * corelow.c (gdbcmd.h): Include.
2267 (core_target::info_proc_mappings): New method.
2268 (get_current_core_target): New function.
2269 (maintenance_print_core_file_backed_mappings): New function.
2270 (_initialize_corelow): Add core-file-backed-mappings to
2271 "maint print" commands.
2272
9c5ec5c2 22732020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2274
9c5ec5c2
KB
2275 * linux-tdep.c (dump_note_entry_p): New function.
2276 (linux_dump_mapping_p_ftype): New typedef.
2277 (linux_find_memory_regions_full): Add new parameter,
2278 should_dump_mapping_p.
2279 (linux_find_memory_regions): Adjust call to
2280 linux_find_memory_regions_full.
2281 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2282 call to linux_find_memory_regions_full.
2283
db082f59
KB
22842020-07-22 Kevin Buettner <kevinb@redhat.com>
2285
2286 * corelow.c (solist.h, unordered_map): Include.
2287 (class core_target): Add field m_core_file_mappings and
2288 method build_file_mappings.
2289 (core_target::core_target): Call build_file_mappings.
2290 (core_target::~core_target): Free memory associated with
2291 m_core_file_mappings.
2292 (core_target::build_file_mappings): New method.
2293 (core_target::xfer_partial): Use m_core_file_mappings
2294 for memory transfers.
2295 * linux-tdep.c (linux_read_core_file_mappings): New
2296 function.
2297 (linux_core_info_proc_mappings): Rewrite to use
2298 linux_read_core_file_mappings.
2299 (linux_init_abi): Register linux_read_core_file_mappings.
2300
7e183d27
KB
23012020-07-22 Kevin Buettner <kevinb@redhat.com>
2302
2303 * arch-utils.c (default_read_core_file_mappings): New function.
2304 * arch-utils.c (default_read_core_file_mappings): Declare.
2305 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2306 * gdbarch.h, gdbarch.c: Regenerate.
2307
2735d421
KB
23082020-07-22 Kevin Buettner <kevinb@redhat.com>
2309
2310 PR corefiles/25631
2311 * corelow.c (core_target:xfer_partial): Revise
2312 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2313 case after first checking the stratum beneath the core
2314 target.
2315 (has_all_memory): Return true.
2316 * target.c (raw_memory_xfer_partial): Revise comment
2317 regarding use of has_all_memory.
2318
e56cb451
KB
23192020-07-22 Kevin Buettner <kevinb@redhat.com>
2320
2321 * exec.h (section_table_xfer_memory): Revise declaration,
2322 replacing section name parameter with an optional callback
2323 predicate.
2324 * exec.c (section_table_xfer_memory): Likewise.
2325 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2326 of section_table_xfer_memory.
2327
32fa152e
TT
23282020-07-22 Tom Tromey <tromey@adacore.com>
2329
2330 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2331 lookup_symbol_search_name.
2332
a67a1c41
AB
23332020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2334
2335 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2336 redundant local variable.
2337 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2338 reference, not pointer, update code accordingly.
2339
a7b4ff4f
SM
23402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2341 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2342
2343 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2344 * jit.c (jit_breakpoint_re_set_internal): Use the
2345 `skip_jit_symbol_lookup` field.
2346
2340e834
SM
23472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2348 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2349
2350 * jit.c (jit_read_descriptor): Define the descriptor address once,
2351 use twice.
2352 (jit_breakpoint_deleted): Move the declaration of the loop variable
2353 `iter` into the loop header.
2354 (jit_breakpoint_re_set_internal): Move the declaration of the local
2355 variable `objf_data` to the first point of definition.
2356 (jit_event_handler): Move the declaration of local variables
2357 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2358 Rename `objf` to `jited`.
2359
c1072906
SM
23602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2361
2362 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2363 Remove.
2364 * jit.c (get_jiter_objfile_data): Update.
2365
c8474dc3
TBA
23662020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2367 Simon Marchi <simon.marchi@polymtl.ca>
2368
2369 * jit.c (struct jit_program_space_data): Remove.
2370 (jit_program_space_key): Remove.
2371 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2372 stuff.
2373 (get_jit_program_space_data): Remove.
2374 (jit_breakpoint_deleted): Iterate on all of the program space's
2375 objfiles.
2376 (jit_inferior_init): Likewise.
2377 (jit_breakpoint_re_set_internal): Likewise. Also change return
2378 type to void.
2379 (jit_breakpoint_re_set): Pass current_program_space to
2380 jit_breakpoint_re_set_internal.
2381
77208eb7
SM
23822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2383
2384 * jit.h (struct jiter_objfile_data) <cached_code_address,
2385 jit_breakpoint>: Move to here from ...
2386 * jit.c (jit_program_space_data): ... here.
2387 (jiter_objfile_data::~jiter_objfile_data): Update.
2388 (jit_breakpoint_deleted): Update.
2389 (jit_breakpoint_re_set_internal): Update.
2390
8c1c720f
SM
23912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2392
2393 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2394 checks.
2395 (jit_read_descriptor): Remove NULL check.
2396 (jit_event_handler): Add an assertion.
2397
0e74a041
SM
23982020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2399
2400 * jit.h (struct jit_objfile_data): Split into...
2401 (struct jiter_objfile_data): ... this ...
2402 (struct jited_objfile_data): ... and this.
2403 * objfiles.h (struct objfile) <jit_data>: Remove.
2404 <jiter_data, jited_data>: New fields.
2405 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2406 (jiter_objfile_data::~jiter_objfile_data): ... this.
2407 (get_jit_objfile_data): Rename to ...
2408 (get_jiter_objfile_data): ... this.
2409 (add_objfile_entry): Update.
2410 (jit_read_descriptor): Use get_jiter_objfile_data.
2411 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2412 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2413 (jit_inferior_exit_hook): Use objfile's jited_data field.
2414
238b5c9f
SM
24152020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2416
2417 * jit.h: Forward-declare `struct minimal_symbol`.
2418 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2419 constructor, destructor, and an objfile* field.
2420 * jit.c (jit_objfile_data): Remove.
2421 (struct jit_objfile_data): Migrate from here to jit.h.
2422 (jit_objfile_data::~jit_objfile_data): New destructor
2423 implementation with code moved from free_objfile_data.
2424 (free_objfile_data): Delete.
2425 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2426 (jit_find_objf_with_entry_addr): Ditto.
2427 (jit_inferior_exit_hook): Ditto.
2428 (_initialize_jit): Remove the call to
2429 register_objfile_data_with_cleanup.
2430 * objfiles.h (struct objfile) <jit_data>: New field.
2431
fe053b9e
TBA
24322020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2433
2434 * jit.h: Forward-declare `struct objfile`.
2435 (jit_event_handler): Add a second parameter, the JITer objfile.
2436 * jit.c (jit_read_descriptor): Change the signature to take the
2437 JITer objfile as an argument instead of the jit_program_space_data.
2438 (jit_inferior_init): Update the call to jit_read_descriptor.
2439 (jit_event_handler): Use the new JITer objfile argument when calling
2440 jit_read_descriptor.
2441 * breakpoint.c (handle_jit_event): Update the call to
2442 jit_event_handler to pass the JITer objfile.
2443
4cec0c66
JB
24442020-07-21 John Baldwin <jhb@FreeBSD.org>
2445
2446 * gdbarch.c: Regenerate.
2447 * gdbarch.h: Regenerate.
2448 * gdbarch.sh (handle_segmentation_fault): Remove method.
2449 * infrun.c (handle_segmentation_fault): Remove.
2450 (print_signal_received_reason): Remove call to
2451 handle_segmentation_fault.
2452
0e42f66a
JB
24532020-07-21 John Baldwin <jhb@FreeBSD.org>
2454
2455 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2456 Rename to sparc64_linux_report_signal_info and add siggnal
2457 argument.
2458 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2459 instead of sparc64_linux_handle_segmentation_fault.
2460
77bdfeb2
JB
24612020-07-21 John Baldwin <jhb@FreeBSD.org>
2462
2463 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2464 i386_linux_report_signal_info instead of
2465 i386_linux_handle_segmentation_fault.
2466 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2467 to i386_linux_report_signal_info and add siggnal argument.
2468 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2469 of i386_linux_handle_segmentation_fault.
2470 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2471 to i386_linux_report_signal_info and add siggnal argument.
2472
ad97bfc5
JB
24732020-07-21 John Baldwin <jhb@FreeBSD.org>
2474
2475 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2476 hook if present.
2477
272bb05c
JB
24782020-07-21 John Baldwin <jhb@FreeBSD.org>
2479
2480 * gdbarch.c: Regenerate.
2481 * gdbarch.h: Regenerate.
2482 * gdbarch.sh (report_signal_info): New method.
2483 * infrun.c (print_signal_received_reason): Invoke gdbarch
2484 report_signal_info hook if present.
2485
baf8791e
AB
24862020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2487
2488 * python/py-registers.c : Add 'unordered_map' include.
2489 (gdbpy_new_reggroup): Renamed to...
2490 (gdbpy_get_reggroup): ...this. Update to only create register
2491 group descriptors when needed.
2492 (gdbpy_reggroup_iter_next): Update.
2493
f7306dac
AB
24942020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2495
2496 * python/py-registers.c (gdbpy_register_object_data): New static
2497 global.
2498 (gdbpy_register_object_data_init): New function.
2499 (gdbpy_new_register_descriptor): Renamed to...
2500 (gdbpy_get_register_descriptor): ...this, and update to reuse
2501 existing register descriptors where possible.
2502 (gdbpy_register_descriptor_iter_next): Update.
2503 (gdbpy_initialize_registers): Register new gdbarch data.
2504
05c309a8
SM
25052020-07-21 Simon Marchi <simon.marchi@efficios.com>
2506
2507 * linux-nat.c (stopped_pids): Make static.
2508
d1fd641e
SM
25092020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2510
2511 PR ada/26235
2512 * gdbtypes.c (ada_discrete_type_low_bound,
2513 ada_discrete_type_high_bound): Handle undefined bounds.
2514
1de14d77
KR
25152020-07-21 Kamil Rytarowski <n54@gmx.com>
2516
2517 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2518 declaration.
2519 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2520 function.
2521
ed810cc7
JB
25222020-07-20 John Baldwin <jhb@FreeBSD.org>
2523
2524 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2525 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2526 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2527 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2528 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2529 method.
2530
ae5369e7
LC
25312020-07-20 Ludovic Courtès <ludo@gnu.org>
2532
2533 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2534 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2535 which are deprecated in Guile 3.0.
2536 * configure.ac (try_guile_versions): Add "guile-3.0".
2537 * configure (try_guile_versions): Regenerate.
2538 * NEWS: Update entry.
2539
68cf161c
LC
25402020-07-20 Ludovic Courtès <ludo@gnu.org>
2541 Doug Evans <dje@google.com>
2542
2543 PR gdb/21104
2544 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2545 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2546 USING_GUILE_BEFORE_2_2.
2547 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2548 Change type to 'scm_t_port_type *'.
2549 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2550 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2551 parameter and honor it. Update callers.
2552 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2553 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2554 functions.
2555 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2556 USING_GUILE_BEFORE_2_2.
2557 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2558 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2559 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2560 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2561 and 'SCM_PORT_TYPE'.
2562 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2563 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2564 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2565 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2566 [!USING_GUILE_BEFORE_2_2]: New functions.
2567 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2568 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2569 'gdbscm_memory_port_read'.
2570 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2571 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2572 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2573 function.
2574 (ioscm_init_memory_port): Remove.
2575 (ioscm_init_memory_port_stream): New function
2576 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2577 function.
2578 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2579 Return scm_from_uint (0).
2580 (gdbscm_set_memory_port_read_buffer_size_x)
2581 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2582 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2583 Return scm_from_uint (0).
2584 (gdbscm_set_memory_port_write_buffer_size_x)
2585 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2586 * configure.ac (try_guile_versions): Add "guile-2.2".
2587 * configure: Regenerate.
2588 * NEWS: Add entry.
2589
aee91db3
TT
25902020-07-18 Tom Tromey <tom@tromey.com>
2591
2592 * linux-nat.c (linux_multi_process): Remove.
2593 (linux_nat_target::supports_multi_process): Return true.
2594
0e267416
AB
25952020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2596
2597 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2598 (riscv_lookup_target_description): Return pointer out of
2599 unique_ptr.
2600 * target-descriptions.c (allocate_target_description): Add
2601 comment.
2602 (target_desc_deleter::operator()): Likewise.
2603 * target-descriptions.h (struct target_desc_deleter): Moved to
2604 gdbsupport/tdesc.h.
2605 (target_desc_up): Likewise.
2606
f80c8ec4
TT
26072020-07-17 Tom Tromey <tromey@adacore.com>
2608
2609 * linux-nat.c (linux_nat_target::supports_non_stop)
2610 (linux_nat_target::always_non_stop_p): Use "true".
2611 (linux_nat_target::supports_disable_randomization): Use "true" and
2612 "false".
2613
d0ce17d8
CT
26142020-07-16 Caroline Tice <cmtice@google.com>
2615
2616 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2617 (RNGLIST_HEADER_SIZE64): New constant definition.
2618 (struct dwop_section_names): Add rnglists_dwo.
2619 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2620 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2621 (struct dwo_sections): Add rnglists field.
2622 (read_attribut_reprocess): Add tag parameter.
2623 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2624 (cu_debug_rnglists_section): New function (decl & definition).
2625 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2626 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2627 die whose range is being checked; get rnglist section from
2628 cu_debug_rnglists_section, to get from either objfile or dwo file as
2629 appropriate. Add cases for DW_RLE_base_addressx,
2630 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2631 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2632 test inside if-condition and updating complaint message.
2633 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2634 dwarf2_rnglists_process.
2635 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2636 dwarf2_ranges_process.
2637 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2638 need_ranges_base and update comment appropriately. Also pass die tag
2639 to dwarf2_ranges_read.
2640 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2641 need_ranges_base and update comment appropriately. Also pass die tag
2642 to dwarf2_ranges_process.
2643 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2644 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2645 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2646 need_ranges_base and update comment appropriately. Also pass die tag
2647 to read_attribute_reprocess and dwarf2_ranges_read.
2648 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2649 and update function comment appropriately.
2650 (read_loclist_index): Call read_loclists_rnglists_header instead of
2651 read_loclist_header.
2652 (read_rnglist_index): New function.
2653 (read_attribute_reprocess): Add tag parameter. Add code for
2654 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2655 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2656
3dcc261c
AB
26572020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2658
2659 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2660 being resolved.
2661
ccb9eba6
AB
26622020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2663
2664 * arch-utils.c (show_architecture): Update formatting of messages.
2665
cf88be68
SM
26662020-07-12 Simon Marchi <simon.marchi@efficios.com>
2667
2668 * gdbtypes.h (struct type) <bounds>: Handle array and string
2669 types.
2670 * ada-lang.c (assign_aggregate): Use type::bounds on
2671 array/string type.
2672 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2673 * c-varobj.c (c_number_of_children): Likewise.
2674 (c_describe_child): Likewise.
2675 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2676 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2677 (f_type_print_base): Likewise.
2678 * f-valprint.c (f77_array_offset_tbl): Likewise.
2679 (f77_get_upperbound): Likewise.
2680 (f77_print_array_1): Likewise.
2681 * guile/scm-type.c (gdbscm_type_range): Likewise.
2682 * m2-typeprint.c (m2_array): Likewise.
2683 (m2_is_long_set_of_type): Likewise.
2684 * m2-valprint.c (get_long_set_bounds): Likewise.
2685 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2686 * python/py-type.c (typy_range): Likewise.
2687 * rust-lang.c (rust_internal_print_type): Likewise.
2688 * type-stack.c (type_stack::follow_types): Likewise.
2689 * valarith.c (value_subscripted_rvalue): Likewise.
2690 * valops.c (value_cast): Likewise.
2691
509971ae
SM
26922020-07-12 Simon Marchi <simon.marchi@efficios.com>
2693
2694 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2695 callers to use the equivalent accessor methods.
2696
107406b7
SM
26972020-07-12 Simon Marchi <simon.marchi@efficios.com>
2698
2699 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2700 (struct type) <bit_stride>: New method.
2701 (TYPE_BIT_STRIDE): Remove.
2702 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2703
bb789949
SM
27042020-07-12 Simon Marchi <simon.marchi@efficios.com>
2705
2706 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2707 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2708 callers to use the equivalent accessor methods instead.
2709
39498edb
SM
27102020-07-12 Simon Marchi <simon.marchi@efficios.com>
2711
2712 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2713 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2714 callers to use the equivalent accessor methods instead.
2715
3b606f38
SM
27162020-07-12 Simon Marchi <simon.marchi@efficios.com>
2717
2718 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2719 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2720 to use dynamic_prop::kind.
2721
064d9cb9
SM
27222020-07-12 Simon Marchi <simon.marchi@efficios.com>
2723
2724 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2725 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2726 to get the bound property's kind and check against
2727 PROP_UNDEFINED.
2728
5537ddd0
SM
27292020-07-12 Simon Marchi <simon.marchi@efficios.com>
2730
2731 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2732 all callers to use type::range_bounds followed by
2733 dynamic_prop::{low,high}.
2734
8c2e4e06
SM
27352020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2738 const_val, set_const_val, baton, set_locexpr, set_loclist,
2739 set_addr_offset, variant_parts, set_variant_parts,
2740 original_type, set_original_type>: New methods.
2741 <kind>: Rename to...
2742 <m_kind>: ... this. Update all users to use the new methods
2743 instead.
2744 <data>: Rename to...
2745 <m_data>: ... this. Update all users to use the new methods
2746 instead.
2747
7c6f2712
SM
27482020-07-12 Simon Marchi <simon.marchi@efficios.com>
2749
2750 * gdbtypes.c (get_discrete_bounds): Return failure if
2751 the range type's bounds are not both defined and constant
2752 values.
2753 (get_array_bounds): Update comment. Remove undefined bound check.
2754
599088e3
SM
27552020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2756
2757 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2758 the type::bounds method directly.
2759
c4dfcb36
SM
27602020-07-12 Simon Marchi <simon.marchi@efficios.com>
2761
2762 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2763 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2764 are used to set the range type's bounds to use set_bounds.
2765
0a278aa7
PW
27662020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2767
2768 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2769
cce20f10
PA
27702020-07-10 Pedro Alves <pedro@palves.net>
2771
2772 * gdbthread.h (inferior_ref): Define.
2773 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2774 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2775 * thread.c
2776 (scoped_restore_current_thread::restore):
2777 Adjust to gdb::ref_ptr.
2778 (scoped_restore_current_thread::~scoped_restore_current_thread):
2779 Remove manual decref handling.
2780 (scoped_restore_current_thread::scoped_restore_current_thread):
2781 Adjust to use
2782 inferior_ref::new_reference/thread_info_ref::new_reference.
2783 Incref the thread before calling get_frame_id instead of after.
2784 Let TARGET_CLOSE_ERROR propagate.
2785
6d7aa592
PA
27862020-07-10 Pedro Alves <pedro@palves.net>
2787
2788 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2789 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2790 NOT_AVAILABLE_ERROR.
2791 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2792 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2793
b3e3a4c1
SM
27942020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2795 Pedro Alves <pedro@palves.net>
2796
2797 PR gdb/26199
2798 * infrun.c (threads_are_resumed_pending_p): Delete.
2799 (do_target_wait): Remove threads_are_executing and
2800 threads_are_resumed_pending_p checks from the inferior_matches
2801 lambda. Update comments.
2802
d6cc5d98
PA
28032020-07-10 Pedro Alves <pedro@palves.net>
2804
2805 PR gdb/26199
2806 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2807 executing threads.
2808
7d3badc6
PA
28092020-07-10 Pedro Alves <pedro@palves.net>
2810
2811 PR gdb/26199
2812 * infrun.c (handle_no_resumed): Handle multiple targets.
2813
42bd97a6
PA
28142020-07-10 Pedro Alves <pedro@palves.net>
2815
2816 PR gdb/26199
2817 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2818 target_is_async_p.
2819
43667cc6
PA
28202020-07-10 Pedro Alves <pedro@palves.net>
2821
2822 PR gdb/26199
2823 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2824 threads, not all threads.
2825
96118d11
PA
28262020-07-10 Pedro Alves <pedro@palves.net>
2827
2828 PR gdb/26199
2829 * remote.c (remote_target::open_1): Pass remote target pointer as
2830 data to create_async_event_handler.
2831 (remote_async_inferior_event_handler): Mark async event handler
2832 before returning if the remote target still has either pending
2833 events or unacknowledged notifications.
2834
54904d81
JB
28352020-07-10 John Baldwin <jhb@FreeBSD.org>
2836
2837 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2838 declaration.
2839 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2840 function.
2841
f37e5866
JB
28422020-07-09 John Baldwin <jhb@FreeBSD.org>
2843
2844 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2845 inferior_ptid.
2846
fc238d4a
JB
28472020-07-09 John Baldwin <jhb@FreeBSD.org>
2848
2849 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2850 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2851 AT_FREEBSD_PS_STRINGS.
2852
6e2469ff
HD
28532020-07-08 Hannes Domani <ssbssa@yahoo.de>
2854
2855 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2856 of debugfile path on Windows.
2857
d1076c41
JB
28582020-07-08 John Baldwin <jhb@FreeBSD.org>
2859
2860 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2861 argument to 'data'.
2862
15f3b077
TT
28632020-07-08 Tom Tromey <tromey@adacore.com>
2864
2865 * ada-lang.c (ada_exception_message_1): Use read_memory.
2866
9fc501fd
AB
28672020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2868
2869 PR python/22748
2870 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2871 special handling for inline frames.
2872 * findvar.c (value_of_register_lazy): Skip inline frames when
2873 creating lazy register values.
2874 * frame.c (frame_id_computed_p): Delete definition.
2875 * frame.h (frame_id_computed_p): Delete declaration.
2876
64cb3757
AB
28772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2878
2879 * NEWS: Mention additions to Python API.
2880 * python/py-arch.c (archpy_register_groups): New function.
2881 (arch_object_methods): Add 'register_groups' method.
2882 * python/py-registers.c (reggroup_iterator_object): New struct.
2883 (reggroup_object): New struct.
2884 (gdbpy_new_reggroup): New function.
2885 (gdbpy_reggroup_to_string): New function.
2886 (gdbpy_reggroup_name): New function.
2887 (gdbpy_reggroup_iter): New function.
2888 (gdbpy_reggroup_iter_next): New function.
2889 (gdbpy_new_reggroup_iterator): New function
2890 (gdbpy_initialize_registers): Register new types.
2891 (reggroup_iterator_object_type): Define new Python type.
2892 (gdbpy_reggroup_getset): New static global.
2893 (reggroup_object_type): Define new Python type.
2894 * python/python-internal.h
2895
0f767f94
AB
28962020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2897
2898 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2899 * python/py-arch.c (archpy_registers): New function.
2900 (arch_object_methods): Add 'registers' method.
2901 * python/py-registers.c: New file.
2902 * python/python-internal.h
2903 (gdbpy_new_register_descriptor_iterator): Declare.
2904 (gdbpy_initialize_registers): Declare.
2905 * python/python.c (do_start_initialization): Call
2906 gdbpy_initialize_registers.
2907 * NEWS: Mention additions to the Python API.
2908
87dbc774
AB
29092020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * NEWS: Mention new Python API method.
2912 * python/py-unwind.c (pending_framepy_architecture): New function.
2913 (pending_frame_object_methods): Add architecture method.
2914
3bc98c0c
AB
29152020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2916
2917 * gdbarch.c: Regenerate.
2918 * gdbarch.h: Regenerate.
2919 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2920 (gdbarch_data): Use internal_error for the case where
2921 deprecated_set_gdbarch_data was originally needed.
2922 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2923 and use passed in obstack.
2924 (libunwind_frame_set_descr): Should no longer get back NULL from
2925 gdbarch_data.
2926 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2927 type.
2928 * user-regs.c (user_regs_init): Update parameters, and use passed
2929 in obstack.
2930 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2931 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2932
d8cc8af6
TV
29332020-07-06 Tom de Vries <tdevries@suse.de>
2934
2935 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2936 End-Of-Sequence in lte_is_less_than.
2937 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2938 "gdb: Don't reorder line table entries too much when sorting".
2939
947f7597
TV
29402020-07-06 Tom de Vries <tdevries@suse.de>
2941
2942 PR tui/26205
2943 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2944
1e7c1b22
TV
29452020-07-05 Tom de Vries <tdevries@suse.de>
2946
2947 PR build/26187
2948 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2949 std::uncaught_exceptions instead of deprecated
2950 std::uncaught_exception.
2951
a36158ec
SM
29522020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2953
2954 * macroexp.h (macro_stringify): Return
2955 gdb::unique_xmalloc_ptr<char>.
2956 * macroexp.c (macro_stringify): Likewise.
2957 * macrotab.c (fixup_definition): Update.
2958
14d960c8
SM
29592020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2960
2961 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2962 (lex_one_token): Update.
2963 * macroexp.c (struct macro_buffer) <release>: Return
2964 gdb::unique_xmalloc_ptr<char>.
2965 (macro_stringify): Update.
2966 (macro_expand): Update.
2967 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2968 * macroexp.h (macro_expand_next): Likewise.
2969
211d5b1c
SM
29702020-07-02 Simon Marchi <simon.marchi@efficios.com>
2971
2972 * macroexp.h (macro_lookup_ftype): Remove.
2973 (macro_expand, macro_expand_once, macro_expand_next): Remove
2974 lookup function parameters, add scope parameter.
2975 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2976 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2977 * macroscope.h (standard_macro_lookup): Change parameter type
2978 to macro_scope.
2979 * macroscope.c (standard_macro_lookup): Likewise.
2980 * c-exp.y (lex_one_token): Update.
2981 * macrocmd.c (macro_expand_command): Likewise.
2982 (macro_expand_once_command): Likewise.
2983
b1a35af2
SM
29842020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2985
2986 * inf-loop.c (inferior_event_handler): Remove client_data param.
2987 * inf-loop.h (inferior_event_handler): Likewise.
2988 * infcmd.c (step_1): Adjust.
2989 * infrun.c (proceed): Adjust.
2990 (fetch_inferior_event): Remove client_data param.
2991 (infrun_async_inferior_event_handler): Adjust.
2992 * infrun.h (fetch_inferior_event): Remove `void *` param.
2993 * linux-nat.c (handle_target_event): Adjust.
2994 * record-btrace.c (record_btrace_handle_async_inferior_event):
2995 Adjust.
2996 * record-full.c (record_full_async_inferior_event_handler):
2997 Adjust.
2998 * remote.c (remote_async_inferior_event_handler): Adjust.
2999
1cdf9e33
TT
30002020-07-01 Tom Tromey <tom@tromey.com>
3001
3002 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3003 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3004
32c1e210
TT
30052020-07-01 Tom Tromey <tom@tromey.com>
3006
3007 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3008 tui_gen_win_info.
3009 (tui_win_info::make_window): Merge with
3010 tui_gen_win_info::make_window.
3011 (tui_win_info::make_visible): Move from tui_gen_win_info.
3012 * tui/tui-win.c (tui_win_info::max_width): Move from
3013 tui_gen_win_info.
3014 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3015 type.
3016 <window_factory>: Likewise.
3017 * tui/tui-layout.c (tui_win_info::resize): Move from
3018 tui_gen_win_info.
3019 (make_standard_window): Change return type.
3020 (get_locator_window, tui_get_window_by_name): Likewise.
3021 (tui_layout_window::apply): Remove a cast.
3022 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3023 (struct tui_win_info): Merge with tui_gen_win_info.
3024 (struct tui_gen_win_info): Remove.
3025
a30cb6da
TT
30262020-07-01 Tom Tromey <tom@tromey.com>
3027
3028 * tui/tui-stack.h (struct tui_locator_window): Derive from
3029 tui_win_info.
3030 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3031 <can_box>: New method.
3032
1eb2161f
TT
30332020-07-01 Tom Tromey <tom@tromey.com>
3034
3035 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3036
7134f2eb
TT
30372020-07-01 Tom Tromey <tom@tromey.com>
3038
3039 * tui/tui-regs.c (tui_data_window::display_registers_from)
3040 (tui_data_window::display_registers_from)
3041 (tui_data_window::first_data_item_displayed)
3042 (tui_data_window::delete_data_content_windows): Update.
3043 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3044 Remove.
3045 (tui_data_window::check_register_values): Update.
3046 (tui_data_item_window::rerender): Add parameters. Update.
3047 (tui_data_item_window::refresh_window): Remove.
3048 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3049 virtual.
3050 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3051 tui_gen_win_info.
3052 <refresh_window, max_height, min_height>: Remove.
3053 <rerender>: Add parameters.
3054 <x, y, visible>: New members.
3055 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3056 <m_item_width>: New member.
3057
22b7b041
TT
30582020-07-01 Tom Tromey <tom@tromey.com>
3059
3060 * tui/tui-regs.c (tui_data_window::show_register_group)
3061 (tui_data_window::check_register_values): Update.
3062 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3063 from item_no.
3064
c9753adb
TT
30652020-07-01 Tom Tromey <tom@tromey.com>
3066
3067 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3068 useless "if".
3069
9ab26b4a
TT
30702020-07-01 Tom Tromey <tom@tromey.com>
3071
3072 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3073 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3074
e555083f
TT
30752020-07-01 Tom Tromey <tom@tromey.com>
3076
3077 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3078 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3079 (struct tui_line_or_address): Move from tui-data.h.
3080 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3081 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3082 (tui_cmd_window, tui_source_window_base, tui_source_window)
3083 (tui_disasm_window): Don't declare.
3084 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3085 to tui-winsource.h.
3086 (SINGLE_KEY): Move to tui-stack.c.
3087
7a02bab7
TT
30882020-07-01 Tom Tromey <tom@tromey.com>
3089
3090 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3091 std::string.
3092 * tui/tui-regs.c (class tab_expansion_file): New.
3093 (tab_expansion_file::write): New method.
3094 (tui_register_format): Change return type. Use
3095 tab_expansion_file.
3096 (tui_get_register, tui_data_window::display_registers_from)
3097 (tui_data_item_window::rerender): Update.
3098 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3099 * tui/tui-io.c (tui_expand_tabs): Remove.
3100
ea68593b
TT
31012020-07-01 Tom Tromey <tom@tromey.com>
3102
3103 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3104
a8caed5d
FS
31052020-07-01 Fangrui Song <maskray@google.com>
3106
3107 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3108
9cdf9820
AKS
31092020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3110
3111 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3112 forms for DW_AT_associated and DW_AT_allocated attributes,
3113 which is already checked in function attr_to_dynamic_prop.
3114
a1520ad8
TT
31152020-06-30 Tom Tromey <tromey@adacore.com>
3116
3117 * dwarf2/read.c (quirk_rust_enum): Correctly call
3118 alloc_rust_variant for default-less enum.
3119
5ac58899
TT
31202020-06-30 Tom Tromey <tromey@adacore.com>
3121
3122 PR build/26183:
3123 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3124 gdb::to_string.
3125
19b187a9
SM
31262020-06-29 Simon Marchi <simon.marchi@efficios.com>
3127
3128 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3129 * gdbarch.h: Re-generate.
3130
cd4c4c07
TT
31312020-06-28 Tom Tromey <tom@tromey.com>
3132
3133 * command.h (cmd_types): Remove.
3134 (cmd_type): Don't declare.
3135 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3136 typedef.
3137 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3138 * cli/cli-decode.c (cmd_type): Remove.
3139
05779d57
PA
31402020-06-27 Pedro Alves <palves@redhat.com>
3141
3142 * fork-child.c (prefork_hook): Adjust.
3143 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3144 Delete.
3145 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3146 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3147 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3148 Remove declarations.
3149 (struct inferior) <set_tty, tty>: New methods.
3150 (struct inferior) <terminal>: Rename to ...
3151 (struct inferior) <m_terminal>: ... this and make private.
3152 * main.c (captured_main_1): Adjust.
3153 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3154 (mi_cmd_inferior_tty_show): Adjust.
3155 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3156 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3157
1776e3e5
NA
31582020-06-26 Nick Alcock <nick.alcock@oracle.com>
3159
3160 * configure.ac: Add --enable-libctf: handle --disable-static
3161 properly.
3162 * acinclude.m4: sinclude ../config/enable.m4.
3163 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3164 (LIBCTF): Substitute in.
3165 (CTF_DEPS): New, likewise.
3166 (CLIBS): libctf needs symbols from libbfd: move earlier.
3167 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3168 flags.
3169 * ctfread.c: Surround in ENABLE_LIBCTF.
3170 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3171 * configure: Regenerate.
3172 * config.in: Likewise.
3173
58373b80
SM
31742020-06-25 Simon Marchi <simon.marchi@efficios.com>
3175
3176 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3177
277474ee
SM
31782020-06-25 Simon Marchi <simon.marchi@efficios.com>
3179
3180 * inferior.h (struct inferior) <terminal>: Change type to
3181 gdb::unique_xmalloc_ptr<char>.
3182 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3183 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3184 field, adjust to unique pointer.
3185 (get_inferior_io_terminal): Adjust to unique pointer.
3186
6d74da72
AB
31872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3188
3189 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3190 registers, not just the known core set of registers.
3191
2e52d038
AB
31922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3193
3194 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3195 fflags, frm, and fcsr registers.
3196 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3197 restore groups.
3198 (riscv_tdesc_unknown_reg): New function.
3199 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3200 tdesc_use_registers.
3201 * riscv-tdep.h (struct gdbarch_tdep): Add
3202 unknown_csrs_first_regnum, unknown_csrs_count,
3203 duplicate_fflags_regnum, duplicate_frm_regnum, and
3204 duplicate_fcsr_regnum fields.
3205
be64fd07
AB
32062020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3207
3208 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3209 callback, use the callback (when not null) to help number unknown
3210 registers.
3211 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3212 (tdesc_use_registers): Add extra parameter to declaration.
3213
3b9fce96
AB
32142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3215
3216 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3217 in the file.
3218 (class riscv_pending_register_alias): Likewise.
3219 (riscv_register_feature::register_info): Change 'required_p' field
3220 to 'required', and change its type. Add 'check' member function.
3221 (riscv_register_feature::register_info::check): Define new member
3222 function.
3223 (riscv_xreg_feature): Change initialisation of 'required' field.
3224 (riscv_freg_feature): Likewise.
3225 (riscv_virtual_feature): Likewise.
3226 (riscv_csr_feature): Likewise.
3227 (riscv_check_tdesc_feature): Take extra parameter, the csr
3228 tdesc_feature, rewrite the function to use the new
3229 riscv_register_feature::register_info::check function.
3230 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3231
865bad26
AB
32322020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3233
3234 * features/Makefile: Remove all references to the deleted files
3235 below.
3236 * features/riscv/32bit-csr.c: Deleted.
3237 * features/riscv/32bit-csr.xml: Deleted.
3238 * features/riscv/64bit-csr.c: Deleted.
3239 * features/riscv/64bit-csr.xml: Deleted.
3240 * features/riscv/rebuild-csr-xml.sh: Deleted.
3241
ed69cbc8
AB
32422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3243
3244 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3245 whitespace error for declaration of names member variable.
3246 (struct riscv_register_feature): Add new prefer_first_name member
3247 variable, and fix whitespace error in declaration of registers.
3248 (riscv_xreg_feature): Initialize prefer_first_name field.
3249 (riscv_freg_feature): Likewise.
3250 (riscv_virtual_feature): Likewise.
3251 (riscv_csr_feature): Likewise.
3252 (riscv_register_name): Expand on comments. Remove register name
3253 modifications for CSR and virtual registers.
3254
4445e8f5
AB
32552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3256
3257 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3258 errors.
3259
767a879e
AB
32602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3261
3262 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3263 riscv-opc.h.
3264 (class riscv_pending_register_alias): New class.
3265 (riscv_check_tdesc_feature): Take vector of pending aliases and
3266 populate it as appropriate.
3267 (riscv_setup_register_aliases): Delete.
3268 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3269 to riscv_check_tdesc_feature in all cases. Use the vector to
3270 create the register aliases.
3271
bb6e55f3
RO
32722020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3273
3274 * sol2-tdep.c (sol2_static_transform_name): Remove.
3275 (sol2_init_abi): Don't register it.
3276 * gdbarch.sh (static_transform_name): Remove.
3277 * gdbarch.c, gdbarch.h: Regenerate.
3278
3279 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3280 gdbarch_static_transform_name.
3281 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3282 * stabsread.c (define_symbol) <'X'>: Remove.
3283 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3284 handling.
3285 <'V'>: Likewise.
3286 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3287 <'S'>: Remove call to gdbarch_static_transform_name.
3288
c6d36836
RO
32892020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3290
3291 * procfs.c (procfs_pre_trace): New function.
3292 (procfs_target::create_inferior): Pass it to fork_inferior.
3293
a7e6196b
RO
32942020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3295
3296 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3297 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3298 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3299 sol2-tdep.o, sparc-sol2-tdep.o.
3300 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3301 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3302 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3303 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3304
d412e696
RO
33052020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3306
3307 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3308 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3309 Call sol2_init_abi.
3310 Remove calls to set_gdbarch_skip_solib_resolver,
3311 set_gdbarch_core_pid_to_str.
3312 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3313 (i386_sol2_static_transform_name): Remove.
3314 (i386_sol2_init_abi): Call sol2_init_abi.
3315 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3316 set_gdbarch_static_transform_name,
3317 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3318 Use sol2_sigtramp_p.
3319 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3320 (sol2_sigtramp_p): New function.
3321 (sol2_static_transform_name): New function.
3322 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3323 (sol2_init_abi): New function.
3324 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3325 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3326 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3327 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3328 (sparc_sol2_static_transform_name): Remove.
3329 (sparc32_sol2_init_abi): Call sol2_init_abi.
3330 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3331 set_gdbarch_static_transform_name,
3332 set_gdbarch_skip_solib_resolver,
3333 set_gdbarch_core_pid_to_str.
3334 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3335 (sparc_sol2_static_transform_name): Remove
3336 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3337 call sol2_sigtramp_p.
3338 (sparc64_sol2_init_abi): Call sol2_init_abi.
3339 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3340 set_gdbarch_static_transform_name,
3341 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3342
a8654e7d
PW
33432020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3344
3345 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3346 * exec.c (validate_exec_file): If from_tty, set both
3347 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3348 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3349 and from_tty, unconditionally ask a confirmation.
3350
caa7fd04
AB
33512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3352
3353 * target-descriptions.c (tdesc_architecture_name): Protect against
3354 NULL pointer dereference.
3355 (maint_print_xml_tdesc_cmd): New function.
3356 (_initialize_target_descriptions): Register new 'maint print
3357 xml-tdesc' command and give it the filename completer.
3358 * NEWS: Mention new 'maint print xml-tdesc' command.
3359
fbf42f4e
AB
33602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3361
3362 * target-descriptions.c (class tdesc_compatible_info): New class.
3363 (struct target_desc): Change type of compatible vector.
3364 (tdesc_compatible_p): Update for change in type of
3365 target_desc::compatible.
3366 (tdesc_compatible_info_list): New function.
3367 (tdesc_compatible_info_arch_name): New function.
3368 (tdesc_add_compatible): Update for change in type of
3369 target_desc::compatible.
3370 (print_c_tdesc::visit_pre): Likewise.
3371
20821f4e
AB
33722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3373
3374 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3375 whitespace to underscore.
3376 (maint_print_c_tdesc_cmd): Use fake filename for target
3377 descriptions that came from the target.
3378 (_initialize_target_descriptions): Add filename command completion
3379 for 'maint print c-tdesc'.
3380
1fb5ee62
SM
33812020-06-23 Simon Marchi <simon.marchi@efficios.com>
3382
3383 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3384 lines.
3385
fc3ecb3e
SM
33862020-06-23 Simon Marchi <simon.marchi@efficios.com>
3387
3388 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3389 lines.
3390 (dwarf2_find_location_expression): Likewise.
3391 (call_site_parameter_matches): Likewise.
3392 (dwarf2_compile_expr_to_ax): Likewise.
3393 (disassemble_dwarf_expression): Likewise.
3394 (loclist_describe_location): Likewise.
3395
236ef034
PA
33962020-06-23 Pedro Alves <palves@redhat.com>
3397
3398 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3399 progspace-and-thread.h. Include scoped-mock-context.h instead.
3400 (register_to_value_test): Use scoped_mock_context.
3401 * regcache.c: Include "scoped-mock-context.h".
3402 (cooked_read_test): Don't error out if a target is already pushed.
3403 Use scoped_mock_context. Adjust.
3404 * scoped-mock-context.h: New file.
3405
39e7ecca
AB
34062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3407
3408 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3409 initializer.
3410 (ada_language::is_string_type_p): New member function.
3411 * c-lang.c (c_language_data): Delete la_is_string_type_p
3412 initializer.
3413 (cplus_language_data): Likewise.
3414 (asm_language_data): Likewise.
3415 (minimal_language_data): Likewise.
3416 * d-lang.c (d_language_data): Likewise.
3417 * f-lang.c (f_is_string_type_p): Delete function, implementation
3418 moved to f_language::is_string_type_p.
3419 (f_language_data): Delete la_is_string_type_p initializer.
3420 (f_language::is_string_type_p): New member function,
3421 implementation from f_is_string_type_p.
3422 * go-lang.c (go_is_string_type_p): Delete function, implementation
3423 moved to go_language::is_string_type_p.
3424 (go_language_data): Delete la_is_string_type_p initializer.
3425 (go_language::is_string_type_p): New member function,
3426 implementation from go_is_string_type_p.
3427 * language.c (language_defn::is_string_type_p): Define new member
3428 function.
3429 (default_is_string_type_p): Make static, add comment copied from
3430 header file.
3431 (unknown_language_data): Delete la_is_string_type_p initializer.
3432 (unknown_language::is_string_type_p): New member function.
3433 (auto_language_data): Delete la_is_string_type_p initializer.
3434 (auto_language::is_string_type_p): New member function.
3435 * language.h (language_data): Delete la_is_string_type_p field.
3436 (language_defn::is_string_type_p): Declare new function.
3437 (default_is_string_type_p): Delete desclaration, move comment to
3438 definition.
3439 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3440 moved to m2_language::is_string_type_p.
3441 (m2_language_data): Delete la_is_string_type_p initializer.
3442 (m2_language::is_string_type_p): New member function,
3443 implementation from m2_is_string_type_p.
3444 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3445 initializer.
3446 * opencl-lang.c (opencl_language_data): Likewise.
3447 * p-lang.c (pascal_is_string_type_p): Delete function,
3448 implementation moved to pascal_language::is_string_type_p.
3449 (pascal_language_data): Delete la_is_string_type_p initializer.
3450 (pascal_language::is_string_type_p): New member function,
3451 implementation from pascal_is_string_type_p.
3452 * rust-lang.c (rust_is_string_type_p): Delete function,
3453 implementation moved to rust_language::is_string_type_p.
3454 (rust_language_data): Delete la_is_string_type_p initializer.
3455 (rust_language::is_string_type_p): New member function,
3456 implementation from rust_is_string_type_p.
3457 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3458 is_string_type_p.
3459
4ffc13fb
AB
34602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3461
3462 * ada-lang.c (ada_language_data): Delete la_print_typedef
3463 initializer.
3464 (ada_language::print_typedef): New member function.
3465 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3466 (cplus_language_data): Likewise.
3467 (asm_language_data): Likewise.
3468 (minimal_language_data): Likewise.
3469 * d-lang.c (d_language_data): Likewise.
3470 * f-lang.c (f_language_data): Likewise.
3471 (f_language::print_typedef): New member function.
3472 * go-lang.c (go_language_data): Delete la_print_typedef
3473 initializer.
3474 * language.c (language_defn::print_typedef): Define member
3475 function.
3476 (unknown_language_data): Delete la_print_typedef initializer.
3477 (unknown_language::print_typedef): New member function.
3478 (auto_language_data): Delete la_print_typedef initializer.
3479 (auto_language::print_typedef): New member function.
3480 * language.h (language_data): Delete la_print_typedef field.
3481 (language_defn::print_typedef): Declare new member function.
3482 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3483 (default_print_typedef): Delete declaration.
3484 * m2-lang.c (m2_language_data): Delete la_print_typedef
3485 initializer.
3486 (m2_language::print_typedef): New member function.
3487 * objc-lang.c (objc_language_data): Delete la_print_typedef
3488 initializer.
3489 * opencl-lang.c (opencl_language_data): Likewise.
3490 * p-lang.c (pascal_language_data): Likewise.
3491 (pascal_language::print_typedef): New member function.
3492 * rust-lang.c (rust_print_typedef): Delete function,
3493 implementation moved to rust_language::print_typedef.
3494 (rust_language): Delete la_print_typedef initializer.
3495 (rust_language::print_typedef): New member function,
3496 implementation from rust_print_typedef.
3497 * typeprint.c (default_print_typedef): Delete.
3498
d711ee67
AB
34992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3500
3501 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3502 (ada_language::printstr): New member function.
3503 * c-lang.c (c_language_data): Delete la_printstr initializer.
3504 (cplus_language_data): Likewise.
3505 (asm_language_data): Likewise.
3506 (minimal_language_data): Likewise.
3507 * d-lang.c (d_language_data): Likewise.
3508 * f-lang.c (f_printstr): Rename to f_language::printstr.
3509 (f_language_data): Delete la_printstr initializer.
3510 (f_language::printstr): New member function, implementation from
3511 f_printstr.
3512 * go-lang.c (go_language_data): Delete la_printstr initializer.
3513 * language.c (language_defn::printstr): Define new member
3514 function.
3515 (unk_lang_printstr): Delete.
3516 (unknown_language_data): Delete la_printstr initializer.
3517 (unknown_language::printstr): New member function.
3518 (auto_language_data): Delete la_printstr initializer.
3519 (auto_language::printstr): New member function.
3520 * language.h (language_data): Delete la_printstr field.
3521 (language_defn::printstr): Declare new member function.
3522 (LA_PRINT_STRING): Update call to printstr.
3523 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3524 (m2_language_data): Delete la_printstr initializer.
3525 (m2_language::printstr): New member function, implementation from
3526 m2_printstr.
3527 * objc-lang.c (objc_language_data): Delete la_printstr
3528 initializer.
3529 * opencl-lang.c (opencl_language_data): Likewise.
3530 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3531 (pascal_language_data): Delete la_printstr initializer.
3532 (pascal_language::printstr): New member function, implementation
3533 from pascal_printstr.
3534 * p-lang.h (pascal_printstr): Delete declaration.
3535 * rust-lang.c (rust_printstr): Update header comment.
3536 (rust_language_data): Delete la_printstr initializer.
3537 (rust_language::printstr): New member function.
3538
52b50f2c
AB
35392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3540
3541 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3542 (ada_language::printchar): New member function.
3543 * c-lang.c (c_language_data): Delete la_printchar initializer.
3544 (cplus_language_data): Likewise.
3545 (asm_language_data): Likewise.
3546 (minimal_language_data): Likewise.
3547 * d-lang.c (d_language_data): Likewise.
3548 * f-lang.c (f_printchar): Rename to f_language::printchar.
3549 (f_language_data): Delete la_printchar initializer.
3550 (f_language::printchar): New member function, implementation from
3551 f_printchar.
3552 * go-lang.c (go_language_data): Delete la_printchar initializer.
3553 * language.c (unk_lang_printchar): Delete.
3554 (language_defn::printchar): Define new member function.
3555 (unknown_language_data): Delete la_printchar initializer.
3556 (unknown_language::printchar): New member function.
3557 (auto_language_data): Delete la_printchar initializer.
3558 (auto_language::printchar): New member function.
3559 * language.h (language_data): Delete la_printchar field.
3560 (language_defn::printchar): Declare new member function.
3561 (LA_PRINT_CHAR): Update call to printchar.
3562 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3563 (m2_language::printchar): New member function.
3564 * objc-lang.c (objc_language_data): Delete la_printchar
3565 initializer.
3566 * opencl-lang.c (opencl_language_data): Likewise.
3567 * p-lang.c (pascal_language_data): Delete la_printchar
3568 initializer.
3569 (pascal_language::printchar): New member function.
3570 * rust-lang.c (rust_printchar): Rename to
3571 rust_language::printchar.
3572 (rust_language_data): Delete la_printchar initializer.
3573 (rust_language::printchar): New member function, implementation
3574 from rust_printchar.
3575
ec8cec5b
AB
35762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3577
3578 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3579 (ada_language_data): Delete la_emitchar initializer.
3580 (ada_language::emitchar): New member function, implementation from
3581 emit_char.
3582 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3583 (cplus_language_data): Likewise.
3584 (asm_language_data): Likewise.
3585 (minimal_language_data): Likewise.
3586 * d-lang.c (d_language_data): Likewise.
3587 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3588 (f_language_data): Delete la_emitchar initializer.
3589 (f_language::emitchar): New member function, implementation from
3590 f_emit_char.
3591 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3592 * language.c (unk_lang_emit_char): Delete.
3593 (language_defn::emitchar): New member function definition.
3594 (unknown_language_data): Delete la_emitchar initializer.
3595 (unknown_language::emitchar): New member function.
3596 (auto_language_data): Delete la_emitchar initializer.
3597 (auto_language::emitchar): New member function.
3598 * language.h (language_data): Delete la_emitchar field.
3599 (language_defn::emitchar): New member field declaration.
3600 (LA_EMIT_CHAR): Update call to emitchar.
3601 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3602 (m2_language_data): Delete la_emitchar initializer.
3603 (m2_language::emitchar): New member function, implementation from
3604 m2_emit_char.
3605 * objc-lang.c (objc_language_data): Delete la_emitchar
3606 initializer.
3607 * opencl-lang.c (opencl_language_data): Likewise.
3608 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3609 (pascal_language_data): Delete la_emitchar initializer.
3610 (pascal_language::emitchar): New member function, implementation
3611 from pascal_emit_char.
3612 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3613 (rust_language_data): Delete la_emitchar initializer.
3614 (rust_language::emitchar): New member function, implementation
3615 from rust_emitchar.
3616
1bf9c363
AB
36172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3618
3619 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3620 (ada_language_data): Delete la_post_parser initializer.
3621 (ada_language::post_parser): New member function.
3622 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3623 (cplus_language_data): Likewise.
3624 (asm_language_data): Likewise.
3625 (minimal_language_data): Likewise.
3626 * d-lang.c (d_language_data): Likewise.
3627 * f-lang.c (f_language_data): Likewise.
3628 * go-lang.c (go_language_data): Likewise.
3629 * language.c (unknown_language_data): Likewise.
3630 (auto_language_data): Likewise.
3631 * language.h (language_data): Delete la_post_parser field.
3632 (language_defn::post_parser): New member function.
3633 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3634 * objc-lang.c (objc_language_data): Likewise.
3635 * opencl-lang.c (opencl_language_data): Likewise.
3636 * p-lang.c (pascal_language_data): Likewise.
3637 * parse.c (parse_exp_in_context): Update call to post_parser.
3638 (null_post_parser): Delete definition.
3639 * parser-defs.h (null_post_parser): Delete declaration.
3640 * rust-lang.c (rust_language_data): Delete la_post_parser
3641 initializer.
3642
87afa652
AB
36432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3644
3645 * ada-lang.c (parse): Rename to ada_language::parser.
3646 (ada_language_data): Delete la_parser initializer.
3647 (ada_language::parser): New member function, implementation from
3648 parse.
3649 * c-lang.c (c_language_data): Delete la_parser initializer.
3650 (cplus_language_data): Likewise.
3651 (asm_language_data): Likewise.
3652 (minimal_language_data): Likewise.
3653 * d-lang.c (d_language_data): Likewise.
3654 (d_language::parser): New member function.
3655 * f-lang.c (f_language_data): Delete la_parser initializer.
3656 (f_language::parser): New member function.
3657 * go-lang.c (go_language_data): Delete la_parser initializer.
3658 (go_language::parser): New member function.
3659 * language.c (unk_lang_parser): Delete.
3660 (language_defn::parser): Define new member function.
3661 (unknown_language_data): Delete la_parser initializer.
3662 (unknown_language::parser): New member function.
3663 (auto_language_data): Delete la_parser initializer.
3664 (auto_language::parser): New member function.
3665 * language.h (language_data): Delete la_parser field.
3666 (language_defn::parser): Declare new member function.
3667 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3668 (m2_language::parser): New member function.
3669 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3670 * opencl-lang.c (opencl_language_data): Likewise.
3671 * p-lang.c (pascal_language_data): Likewise.
3672 (pascal_language::parser): New member function.
3673 * parse.c (parse_exp_in_context): Update call to parser.
3674 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3675 (rust_language::parser): New member function.
3676
37825800
AB
36772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3678
3679 * top.c (print_gdb_configuration): Print --with-python-libdir
3680 configuration value.
3681
5b860c93
PW
36822020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3683
3684 * NEWS: Mention change to the alias command.
3685
cf00cd6f
PW
36862020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3687
3688 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3689 (alias_command_completer)
3690 (make_alias_options_def_group): New functions.
3691 (alias_opts, alias_option_defs): New struct and array.
3692 (alias_usage_error): Update usage.
3693 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3694 Use option framework.
3695 (_initialize_cli_cmds): Update alias command help.
3696 Update aliases command help.
3697 (show_user):
3698 Add NULL for new default_args lookup_cmd argument.
3699 (valid_command_p): Rename to validate_aliased_command.
3700 Add NULL for new default_args lookup_cmd argument. Verify that the
3701 aliased_command has no default args.
3702 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3703 (lookup_cmd_1, lookup_cmd): New argument default_args.
3704 (add_alias_cmd):
3705 Add NULL for new default_args lookup_cmd argument.
3706 (print_help_for_command): Show default args under the layout
3707 alias some_alias = some_aliased_cmd some_alias_default_arg.
3708 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3709 xfree default_args in destructor.
3710 * cli/cli-script.c (process_next_line, do_define_command):
3711 Add NULL for new default_args lookup_cmd argument.
3712 * command.h: Declare new default_args argument in lookup_cmd
3713 and lookup_cmd_1.
3714 * completer.c (complete_line_internal_1):
3715 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3716 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3717 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3718 Likewise.
3719 * infcmd.c (_initialize_infcmd): Likewise.
3720 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3721 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3722 * python/py-param.c (add_setshow_generic): Likewise.
3723 * remote.c (_initialize_remote): Likewise.
3724 * top.c (execute_command): Prepend default_args if command has some.
3725 (set_verbose):
3726 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3727 * tracepoint.c (validate_actionline, encode_actions_1):
3728 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3729
bd920864
TBA
37302020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3731
3732 * jit.c (jit_read_descriptor): Use bool as the return type.
3733 (jit_breakpoint_re_set_internal): Use bool as the return type.
3734 Invert the return value logic; return true if the jit breakpoint
3735 has been successfully initialized.
3736 (jit_inferior_init): Update the call to
3737 jit_breakpoint_re_set_internal.
3738
f8098322
PA
37392020-06-22 Pedro Alves <palves@redhat.com>
3740
3741 PR gdb/25939
3742 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3743 Use the current inferior instead. Don't return
3744 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3745 wait again.
3746 * sol-thread.c (sol_thread_target::wait): Don't reference
3747 inferior_ptid.
3748 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3749 (sol_update_thread_list_callback): Use the current inferior's pid
3750 instead of inferior_ptid.
3751
196535a6
RO
37522020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3753
3754 * procfs.c: Cleanup many comments.
3755
3756 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3757 (AFTER_WATCHFLAG): Replace by value.
3758
3759 (MAIN_PROC_NAME_FORMAT): Inline ...
3760 (create_procinfo): ... here.
3761
3762 (procfs_debug_inferior): Remove SYS_exec handling.
3763 (syscall_is_exec): Likewise.
3764 (procfs_set_exec_trap): Likewise.
3765
3766 (syscall_is_lwp_exit): Inline in callers.
3767 (syscall_is_exit): Likewise.
3768 (syscall_is_exec): Likewise.
3769 (syscall_is_lwp_create): Likewise.
3770
3771 (invalidate_cache): Remove #if 0 code.
3772
3773 (make_signal_thread_runnable): Remove.
3774 (procfs_target::resume): Remove #if 0 code.
3775
cf6f3e86
RO
37762020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3777
3778 PR gdb/25939
3779 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3780 call ...
3781 (procfs_target::create_inferior): ... here.
3782
48e9cc84
PW
37832020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3784
3785 * exec.c (validate_exec_file): Ensure the build-id is up to
3786 date by calling reopen_exec_file (that checks file timestamp
3787 to decide to re-read the file).
3788
3922b302
PA
37892020-06-18 Pedro Alves <palves@redhat.com>
3790
3791 PR gdb/25412
3792 * gdbthread.h (delete_thread, delete_thread_silent)
3793 (find_thread_ptid): Update comments.
3794 * thread.c (current_thread_): New global.
3795 (is_current_thread): Move higher, and reimplement.
3796 (inferior_thread): Reimplement.
3797 (set_thread_exited): Use bool. Add assertions.
3798 (add_thread_silent): Simplify thread-reuse handling by always
3799 calling delete_thread.
3800 (delete_thread): Remove intro comment.
3801 (find_thread_ptid): Skip exited threads.
3802 (switch_to_thread_no_regs): Write to current_thread_.
3803 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3804 INFERIOR_PTID. Clear current_thread_.
3805
6dbdab44
PA
38062020-06-18 Pedro Alves <palves@redhat.com>
3807
3808 * aix-thread.c (pd_update): Use switch_to_thread.
3809
2da4b788
PA
38102020-06-18 Pedro Alves <palves@redhat.com>
3811
3812 * ravenscar-thread.c (ravenscar_thread_target): Update.
3813 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3814 (ravenscar_thread_target::add_active_thread): ... this. Don't
3815 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3816 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3817
50838d1b
PA
38182020-06-18 Pedro Alves <palves@redhat.com>
3819
3820 * nat/windows-nat.c (current_windows_thread): Remove.
3821 * nat/windows-nat.h (current_windows_thread): Remove.
3822 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3823 Adjust.
3824 (display_selectors): Adjust to fetch the current
3825 windows_thread_info based on inferior_ptid.
3826 (fake_create_process): No longer write to current_windows_thread.
3827 (windows_nat_target::get_windows_debug_event):
3828 Don't set inferior_ptid or current_windows_thread.
3829 (windows_nat_target::wait): Adjust to not rely on
3830 current_windows_thread.
3831 (do_initial_windows_stuff): Now a method of windows_nat_target.
3832 Switch to the last_ptid thread.
3833 (windows_nat_target::attach): Adjust.
3834 (windows_nat_target::detach): Use switch_to_no_thread instead of
3835 writing to inferior_ptid directly.
3836 (windows_nat_target::create_inferior): Adjust.
3837
31ce04e9
PA
38382020-06-18 Pedro Alves <palves@redhat.com>
3839
3840 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3841
1ee1a363
PA
38422020-06-18 Pedro Alves <palves@redhat.com>
3843
3844 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3845 after creating it, instead of writing to inferior_ptid. Don't
3846 write to inferior_ptid.
3847
6d350754
PA
38482020-06-18 Pedro Alves <palves@redhat.com>
3849
3850 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3851
5d971d48
PA
38522020-06-18 Pedro Alves <palves@redhat.com>
3853
3854 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3855 it, instead of writing to inferior_ptid.
3856
86e57d1b
PA
38572020-06-18 Pedro Alves <palves@redhat.com>
3858
3859 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3860 to inferior_ptid.
3861
f2e1c129
PA
38622020-06-18 Pedro Alves <palves@redhat.com>
3863
3864 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3865 instead of writing to inferior_ptid directly.
3866
60db1b85
PA
38672020-06-18 Pedro Alves <palves@redhat.com>
3868
3869 * corelow.c (core_target::close): Use switch_to_no_thread instead
3870 of writing to inferior_ptid directly.
3871 (add_to_thread_list, core_target_open): Use switch_to_thread
3872 instead of writing to inferior_ptid directly.
3873
fe7d6a8d
PA
38742020-06-18 Pedro Alves <palves@redhat.com>
3875
3876 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3877 inferior_ptid.
3878 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3879 inferior_ptid.
3880 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3881 inferior_ptid directly.
3882 (darwin_nat_target::init_thread_list): Switch to thread, instead
3883 of writing to inferior_ptid.
3884 (darwin_nat_target::attach): Don't write to inferior_ptid.
3885 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3886
975f8708
PA
38872020-06-18 Pedro Alves <palves@redhat.com>
3888
3889 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3890 thread.
3891 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3892 Instead use switch_to_thread.
3893 (gnu_nat_target::detach): Use switch_to_no_thread
3894 instead of writing to inferior_ptid directly. Used passed-in
3895 inferior instead of looking up the inferior by pid.
3896
1a204730
PA
38972020-06-18 Pedro Alves <palves@redhat.com>
3898
3899 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3900 inferior_ptid.
3901
ebe84f23
PA
39022020-06-18 Pedro Alves <palves@redhat.com>
3903
3904 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3905 inferior_ptid.
3906 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3907 thread.
3908 (nto_procfs_target::detach): Avoid referencing
3909 inferior_ptid. Use switch_to_no_thread instead of writing to
3910 inferior_ptid directly.
3911 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3912 instead of writing to inferior_ptid directly.
3913 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3914 to thread.
3915
191f02e5
PA
39162020-06-18 Pedro Alves <palves@redhat.com>
3917
3918 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3919 after creating it, instead of writing to inferior_ptid.
3920 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3921 to inferior_ptid directly.
3922 (gdbsim_target::wait): Don't write to inferior_ptid.
3923
0ac55310
PA
39242020-06-18 Pedro Alves <palves@redhat.com>
3925
3926 * remote.c (remote_target::remote_notice_new_inferior): Use
3927 switch_to_thread instead of writing to inferior_ptid directly.
3928 (remote_target::add_current_inferior_and_thread): Use
3929 switch_to_no_thread instead of writing to inferior_ptid directly.
3930 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3931 and switch_to_thread instead of using set_current_inferior or
3932 writing to inferior_ptid directly.
3933
5233f39b
PA
39342020-06-18 Pedro Alves <palves@redhat.com>
3935
3936 * tracectf.c (ctf_target_open): Switch to added thread instead of
3937 writing to inferior_ptid directly.
3938 (ctf_target::close): Use switch_to_no_thread instead of writing to
3939 inferior_ptid directly.
3940
087e161b
PA
39412020-06-18 Pedro Alves <palves@redhat.com>
3942
3943 * tracefile-tfile.c (tfile_target_open): Don't write to
3944 inferior_ptid directly, instead switch to added thread.
3945 (tfile_target::close): Use switch_to_no_thread instead of writing
3946 to inferior_ptid directly.
3947
7fb43e53
PA
39482020-06-18 Pedro Alves <palves@redhat.com>
3949
3950 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3951 (procfs_target::detach): Use switch_to_no_thread
3952 instead of writing to inferior_ptid directly.
3953 (do_attach): Change return type to void. Switch to the added
3954 thread.
3955 (procfs_target::create_inferior): Switch to the added thread.
3956 (procfs_do_thread_registers): Don't write to inferior_ptid.
3957
18493a00
PA
39582020-06-18 Pedro Alves <palves@redhat.com>
3959
3960 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3961 of writing to inferior_ptid.
3962 (scoped_restore_exited_inferior): Delete.
3963 (handle_vfork_child_exec_or_exit): Simplify using
3964 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3965 instead of writing to inferior_ptid.
3966 (THREAD_STOPPED_BY): Delete.
3967 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3968 (thread_stopped_by_hw_breakpoint): Delete.
3969 (save_waitstatus): Use
3970 scoped_restore_current_thread+switch_to_thread, and call
3971 target_stopped_by_watchpoint instead of
3972 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3973 instead of thread_stopped_by_sw_breakpoint, and
3974 target_stopped_by_hw_breakpoint instead of
3975 thread_stopped_by_hw_breakpoint.
3976 (handle_inferior_event)
3977 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3978 inferior_ptid directly, nor
3979 set_current_inferior/set_current_program_space. Use
3980 switch_to_thread / switch_to_inferior_no_thread instead.
3981
a0776b13
PA
39822020-06-18 Pedro Alves <palves@redhat.com>
3983
3984 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3985 instead of writing to inferior_ptid.
3986
6155c136
PA
39872020-06-18 Pedro Alves <palves@redhat.com>
3988
3989 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3990 added thread.
3991 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3992 to the added thread.
3993 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3994 instead of writing to inferior_ptid.
3995
c5316fc6
PA
39962020-06-18 Pedro Alves <palves@redhat.com>
3997
3998 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3999 (register_to_value_test): Mock a program_space too. Heap-allocate
4000 the address space. Don't write to inferior_ptid. Use
4001 switch_to_thread instead.
4002
8df01799
PA
40032020-06-18 Pedro Alves <palves@redhat.com>
4004
4005 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4006 Delete.
4007 (find_signalled_thread()): New, factored out from
4008 linux_make_corefile_notes and adjusted to handle exited threads.
4009 (linux_make_corefile_notes): Adjust to use the new
4010 find_signalled_thread.
4011
41792d68
PA
40122020-06-18 Pedro Alves <palves@redhat.com>
4013
4014 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4015 of saving/restoring inferior_ptid.
4016
612f258a
TT
40172020-06-17 Tom Tromey <tom@tromey.com>
4018
4019 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4020 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4021 declare.
4022 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4023
efb763a5
SM
40242020-06-15 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4027 of partial symtabs.
4028
2951f6c0
SM
40292020-06-17 Simon Marchi <simon.marchi@efficios.com>
4030
4031 * regformats/reg-arm.dat: Remove.
4032 * regformats/reg-bfin.dat: Remove.
4033 * regformats/reg-cris.dat: Remove.
4034 * regformats/reg-crisv32.dat: Remove.
4035 * regformats/reg-m32r.dat: Remove.
4036 * regformats/reg-tilegx.dat: Remove.
4037 * regformats/reg-tilegx32.dat: Remove.
4038
7d458ea5
SM
40392020-06-17 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * features/Makefile (WHICH): Remove arm files.
4042 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4043 * regformats/arm/arm-with-neon.dat: Remove.
4044 * regformats/arm/arm-with-vfpv2.dat: Remove.
4045 * regformats/arm/arm-with-vfpv3.dat: Remove.
4046
3af96c0d
SM
40472020-06-17 Simon Marchi <simon.marchi@efficios.com>
4048
4049 * features/Makefile (XMLTOC): Remove rx.xml.
4050
b25e22fd
PA
40512020-06-17 Pedro Alves <palves@redhat.com>
4052
4053 * gdbthread.h (thread_control_state) <trap_expected> Update
4054 comments.
4055
a78a19b1
AB
40562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4057
4058 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4059 ada_language::lookup_symbol_nonlocal.
4060 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4061 (ada_language::lookup_symbol_nonlocal): New member function,
4062 implementation from ada_lookup_symbol_nonlocal.
4063 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4064 initializer.
4065 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4066 initializer.
4067 (cplus_language::lookup_symbol_nonlocal): New member function.
4068 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4069 (minimal_language_data) Likewise.
4070 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4071 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4072 initializer.
4073 (d_language::lookup_symbol_nonlocal): New member function.
4074 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4075 initializer.
4076 (f_language::lookup_symbol_nonlocal): New member function.
4077 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4078 initializer.
4079 * language.c (unknown_language_data): Likewise.
4080 (auto_language_data): Likewise.
4081 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4082 field.
4083 (language_defn::lookup_symbol_nonlocal): New member function.
4084 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4085 initializer.
4086 * objc-lang.c (objc_language_data): Likewise.
4087 * opencl-lang.c (opencl_language_data): Likewise.
4088 * p-lang.c (pascal_language_data): Likewise.
4089 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4090 rust_language::lookup_symbol_nonlocal.
4091 (rust_language_data): Delete la_lookup_symbol_nonlocal
4092 initializer.
4093 (rust_language::lookup_symbol_nonlocal): New member function,
4094 implementation from rust_lookup_symbol_nonlocal.
4095 * symtab.c (lookup_symbol_aux): Update call to
4096 lookup_symbol_nonlocal.
4097 (basic_lookup_symbol_nonlocal): Rename to...
4098 (language_defn::lookup_symbol_nonlocal): ...this, and update
4099 header comment. Remove language_defn parameter, and replace with
4100 uses of `this'.
4101 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4102
ebe2334e
AB
41032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4104
4105 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4106 initializer.
4107 (ada_language::value_print_inner): New member function.
4108 * c-lang.c (c_language_data): Delete la_value_print_inner
4109 initializer.
4110 (cplus_language_data): Likewise.
4111 (asm_language_data): Likewise.
4112 (minimal_language_data): Likewise.
4113 * d-lang.c (d_language_data): Likewise.
4114 (d_language::value_print_inner): New member function.
4115 * f-lang.c (f_language_data): Delete la_value_print_inner
4116 initializer.
4117 (f_language::value_print_inner): New member function.
4118 * f-lang.h (f_value_print_innner): Rename to...
4119 (f_value_print_inner): ...this (note spelling of 'inner').
4120 * f-valprint.c (f_value_print_innner): Rename to...
4121 (f_value_print_inner): ...this (note spelling of 'inner').
4122 * go-lang.c (go_language_data): Delete la_value_print_inner
4123 initializer.
4124 (go_language::value_print_inner): New member function.
4125 * language.c (language_defn::value_print_inner): Define new member
4126 function.
4127 (unk_lang_value_print_inner): Delete.
4128 (unknown_language_data): Delete la_value_print_inner initializer.
4129 (unknown_language::value_print_inner): New member function.
4130 (auto_language_data): Delete la_value_print_inner initializer.
4131 (auto_language::value_print_inner): New member function.
4132 * language.h (language_data): Delete la_value_print_inner field.
4133 (language_defn::value_print_inner): Delcare new member function.
4134 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4135 initializer.
4136 (m2_language::value_print_inner): New member function.
4137 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4138 initializer.
4139 * opencl-lang.c (opencl_language_data): Likewise.
4140 * p-lang.c (pascal_language_data): Likewise.
4141 (pascal_language::value_print_inner): New member function.
4142 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4143 initializer.
4144 (rust_language::value_print_inner): New member function.
4145 * valprint.c (do_val_print): Update call to value_print_inner.
4146
a1d1fa3e
AB
41472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4148
4149 * ada-lang.c (ada_language_data): Delete la_value_print
4150 initializer.
4151 (ada_language::value_print): New member function.
4152 * c-lang.c (c_language_data): Delete la_value_print initializer.
4153 (cplus_language_data): Likewise.
4154 (asm_language_data): Likewise.
4155 (minimal_language_data): Likewise.
4156 * d-lang.c (d_language_data): Likewise.
4157 * f-lang.c (f_language_data): Likewise.
4158 * go-lang.c (go_language_data): Likewise.
4159 * language.c (unk_lang_value_print): Delete.
4160 (language_defn::value_print): Define new member function.
4161 (unknown_language_data): Delete la_value_print initializer.
4162 (unknown_language::value_print): New member function.
4163 (auto_language_data): Delete la_value_print initializer.
4164 (auto_language::value_print): New member function.
4165 * language.h (language_data): Delete la_value_print field.
4166 (language_defn::value_print): Declare new member function.
4167 (LA_VALUE_PRINT): Update call to value_print.
4168 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4169 * objc-lang.c (objc_language_data): Likewise.
4170 * opencl-lang.c (opencl_language_data): Likewise.
4171 * p-lang.c (pascal_language_data): Likewise.
4172 (pascal_language::value_print): New member function.
4173 * rust-lang.c (rust_language_data): Delete la_value_print
4174 initializer.
4175
f16a9f57
AB
41762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4177
4178 * ada-lang.c (ada_watch_location_expression): Rename to
4179 ada_language::watch_location_expression.
4180 (ada_language_data): Delete la_watch_location_expression
4181 initializer.
4182 (ada_language::watch_location_expression): New member function,
4183 implementation from ada_watch_location_expression.
4184 * breakpoint.c (watch_command_1): Update call to
4185 watch_location_expression.
4186 * c-lang.c (c_watch_location_expression): Rename to
4187 language_defn::watch_location_expression.
4188 (c_language_data): Delete la_watch_location_expression
4189 initializer.
4190 (cplus_language_data): Likewise.
4191 (asm_language_data): Likewise.
4192 (minimal_language_data): Likewise.
4193 * c-lang.h (c_watch_location_expression): Delete declaration.
4194 * d-lang.c (d_language_data): Delete la_watch_location_expression
4195 initializer.
4196 * f-lang.c (f_language_data): Likewise.
4197 * go-lang.c (go_language_data): Likewise.
4198 * language.c (language_defn::watch_location_expression): Member
4199 function implementation from c_watch_location_expression.
4200 (unknown_language_data): Delete la_watch_location_expression
4201 initializer.
4202 (auto_language_data): Likewise.
4203 * language.h (language_data): Delete la_watch_location_expression
4204 field.
4205 (language_defn::watch_location_expression): Declare new member
4206 function.
4207 * m2-lang.c (m2_language_data): Delete
4208 la_watch_location_expression initializer.
4209 * objc-lang.c (objc_language_data): Likewise.
4210 * opencl-lang.c (opencl_language_data): Likewise.
4211 * p-lang.c (pascal_language_data): Likewise.
4212 * rust-lang.c (rust_watch_location_expression): Rename to
4213 rust_language::watch_location_expression.
4214 (rust_language_data): Delete la_watch_location_expression
4215 initializer.
4216 (rust_language::watch_location_expression): New member function,
4217 implementation from rust_watch_location_expression.
4218
7e56227d
AB
42192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4220
4221 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4222 ada_language::collect_symbol_completion_matches.
4223 (ada_language_data): Delete la_collect_symbol_completion_matches
4224 initializer.
4225 (ada_language::collect_symbol_completion_matches): New member
4226 function, implementation from
4227 ada_collect_symbol_completion_matches.
4228 * c-lang.c (c_language_data): Delete
4229 la_collect_symbol_completion_matches initializer.
4230 (cplus_language_data): Likewise.
4231 (asm_language_data): Likewise.
4232 (minimal_language_data): Likewise.
4233 * d-lang.c (d_language_data): Likewise.
4234 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4235 f_language::collect_symbol_completion_matches.
4236 (f_language_data): Delete la_collect_symbol_completion_matches
4237 initializer.
4238 (f_language::collect_symbol_completion_matches) New member
4239 function, implementation from f_collect_symbol_completion_matches.
4240 * go-lang.c (go_language_data): Delete
4241 la_collect_symbol_completion_matches initializer.
4242 * language.c (unknown_language_data): Likewise.
4243 (auto_language_data): Likewise.
4244 * language.h (language_data): Delete
4245 la_collect_symbol_completion_matches field.
4246 (language_defn::collect_symbol_completion_matches): New member
4247 function.
4248 * m2-lang.c (m2_language_data): Delete
4249 la_collect_symbol_completion_matches initializer.
4250 * objc-lang.c (objc_language_data): Likewise.
4251 * opencl-lang.c (opencl_language_data): Likewise.
4252 * p-lang.c (pascal_language_data): Likewise.
4253 * rust-lang.c (rust_language_data): Likewise.
4254 * symtab.c (default_collect_symbol_completion_matches): Delete.
4255 (collect_symbol_completion_matches): Update call to
4256 collect_symbol_completion_matches.
4257 (collect_symbol_completion_matches_type): Likewise.
4258 * symtab.h (default_collect_symbol_completion_matches): Delete
4259 declaration.
4260
53fc67f8
AB
42612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4262
4263 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4264 (ada_language_data): Delete la_word_break_characters initializer.
4265 (ada_language::word_break_characters): New member function.
4266 * c-lang.c (c_language_data): Delete la_word_break_characters
4267 initializer.
4268 (cplus_language_data): Likewise.
4269 (asm_language_data): Likewise.
4270 (minimal_language_data): Likewise.
4271 * completer.c: Update global comment.
4272 (advance_to_expression_complete_word_point): Update call to
4273 word_break_characters.
4274 (complete_files_symbols): Likewise.
4275 (complete_line_internal_1): Likewise.
4276 (default_completer_handle_brkchars): Likewise.
4277 (skip_quoted_chars): Likewise.
4278 * d-lang.c (d_language_data): Delete la_word_break_characters
4279 initializer.
4280 * f-lang.c (f_word_break_characters): Delete.
4281 (f_language_data): Delete la_word_break_characters initializer.
4282 (f_language::word_break_characters): New member function.
4283 * go-lang.c (go_language_data): Delete la_word_break_characters
4284 initializer.
4285 * language.c (unknown_language_data): Likewise.
4286 (auto_language_data): Likewise.
4287 * language.h (default_word_break_characters): Move declaration to
4288 earlier in the file.
4289 (language_data): Delete la_word_break_characters field.
4290 (language_defn::word_break_characters): New member function.
4291 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4292 initializer.
4293 * objc-lang.c (objc_language_data): Likewise.
4294 * opencl-lang.c (opencl_language_data): Likewise.
4295 * p-lang.c (pascal_language_data): Likewise.
4296 * rust-lang.c (rust_language_data): Likewise.
4297
c9debfb9
AB
42982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4299
4300 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4301 (ada_language_data): Delete la_get_symbol_name_matcher
4302 initializer.
4303 (language_defn::get_symbol_name_matcher_inner): New member
4304 function.
4305 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4306 initializer.
4307 (cplus_language_data): Likewise.
4308 (cplus_language::get_symbol_name_matcher_inner): New member
4309 function.
4310 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4311 (minimal_language_data): Likewise.
4312 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4313 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4314 initializer.
4315 * dictionary.c (iter_match_first_hashed): Update call to
4316 get_symbol_name_matcher.
4317 (iter_match_next_hashed): Likewise.
4318 (iter_match_next_linear): Likewise.
4319 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4320 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4321 initializer.
4322 (f_language::get_symbol_name_matcher_inner): New member function.
4323 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4324 initializer.
4325 * language.c (default_symbol_name_matcher): Update header comment,
4326 make static.
4327 (language_defn::get_symbol_name_matcher): New definition.
4328 (language_defn::get_symbol_name_matcher_inner): Likewise.
4329 (get_symbol_name_matcher): Delete.
4330 (unknown_language_data): Delete la_get_symbol_name_matcher
4331 initializer.
4332 (auto_language_data): Likewise.
4333 * language.h (language_data): Delete la_get_symbol_name_matcher
4334 field.
4335 (language_defn::get_symbol_name_matcher): New member function.
4336 (language_defn::get_symbol_name_matcher_inner): Likewise.
4337 (default_symbol_name_matcher): Delete declaration.
4338 * linespec.c (find_methods): Update call to
4339 get_symbol_name_matcher.
4340 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4341 initializer.
4342 * minsyms.c (lookup_minimal_symbol): Update call to
4343 get_symbol_name_matcher.
4344 (iterate_over_minimal_symbols): Likewise.
4345 * objc-lang.c (objc_language_data): Delete
4346 la_get_symbol_name_matcher initializer.
4347 * opencl-lang.c (opencl_language_data): Likewise.
4348 * p-lang.c (pascal_language_data): Likewise.
4349 * psymtab.c (psymbol_name_matches): Update call to
4350 get_symbol_name_matcher.
4351 * rust-lang.c (rust_language_data): Delete
4352 la_get_symbol_name_matcher initializer.
4353 * symtab.c (symbol_matches_search_name): Update call to
4354 get_symbol_name_matcher.
4355 (compare_symbol_name): Likewise.
4356
9a49ad8c
AB
43572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4358
4359 * ada-lang.c (ada_language_data): Delete la_compute_program
4360 initializer.
4361 * c-lang.c (c_language_data): Likewise.
4362 (c_language::compute_program): New member function.
4363 (cplus_language_data): Delete la_compute_program initializer.
4364 (cplus_language::compute_program): New member function.
4365 (asm_language_data): Delete la_compute_program initializer.
4366 (minimal_language_data): Likewise.
4367 * c-lang.h (c_compute_program): Update comment.
4368 (cplus_compute_program): Likewise.
4369 * compile/compile-c-support.c (c_compute_program): Likewise.
4370 (cplus_compute_program): Likewise.
4371 * compile/compile.c (compile_to_object): Update call to
4372 la_compute_program.
4373 * d-lang.c (d_language_data): Delete la_compute_program
4374 initializer.
4375 * f-lang.c (f_language_data): Likewise.
4376 * go-lang.c (go_language_data): Likewise.
4377 * language.c (unknown_language_data): Likewise.
4378 (auto_language_data): Likewise.
4379 * language.h (language_data): Delete la_compute_program field.
4380 (language_defn::compute_program): New member function.
4381 * m2-lang.c (m2_language_data): Delete la_compute_program
4382 initializer.
4383 * objc-lang.c (objc_language_data): Likewise.
4384 * opencl-lang.c (opencl_language_data): Likewise.
4385 * p-lang.c (pascal_language_data): Likewise.
4386 * rust-lang.c (rust_language_data): Likewise.
4387
eff93b4d
AB
43882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4389
4390 * ada-lang.c (ada_language_data) Delete
4391 la_class_name_from_physname initializer.
4392 * c-lang.c (c_language_data): Likewise.
4393 (cplus_language_data): Likewise.
4394 (cplus_language::class_name_from_physname): New member function.
4395 (asm_language_data): Delete la_class_name_from_physname
4396 initializer.
4397 (minimal_language_data): Likewise.
4398 * d-lang.c (d_language_data): Likewise.
4399 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4400 method on language_defn class.
4401 (guess_full_die_structure_name): Likewise.
4402 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4403 initializer.
4404 * go-lang.c (go_language_data): Likewise.
4405 * language.c (language_class_name_from_physname): Delete.
4406 (unk_lang_class_name): Delete.
4407 (unknown_language_data): Delete la_class_name_from_physname
4408 initializer.
4409 (auto_language_data): Likewise.
4410 * language.h (language_data): Delete la_class_name_from_physname
4411 field.
4412 (language_defn::class_name_from_physname): New function.
4413 (language_class_name_from_physname): Delete declaration.
4414 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4415 initializer.
4416 * objc-lang.c (objc_language_data): Likewise.
4417 * opencl-lang.c (opencl_language_data): Likewise.
4418 * p-lang.c (pascal_language_data): Likewise.
4419 * rust-lang.c (rust_language_data): Likewise.
4420
de543742
TT
44212020-06-16 Tom Tromey <tom@tromey.com>
4422
4423 * tui/tui-data.h (STATUS_NAME): New macro.
4424 * tui/tui-layout.c (tui_remove_some_windows)
4425 (initialize_known_windows, tui_register_window)
4426 (tui_layout_split::remove_windows, initialize_layouts)
4427 (tui_new_layout_command): Don't use hard-coded window names.
4428
a350efd4
TT
44292020-06-16 Tom Tromey <tom@tromey.com>
4430
4431 PR tui/25348:
4432 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4433 tui_initialize_readline. Only run once. Call rl_initialize.
4434 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4435 tui_initialize_readline.
4436 * tui/tui-io.c (tui_setup_io): Call
4437 tui_ensure_readline_initialized.
4438 * tui/tui-interp.c (tui_interp::init): Update.
4439
39ec0490
TT
44402020-06-16 Tom Tromey <tom@tromey.com>
4441
4442 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4443 Also preserve the status window.
4444
d2d1ea20
TT
44452020-06-16 Tom Tromey <tom@tromey.com>
4446
4447 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4448 where m_window==nullptr.
4449
66920317
TT
44502020-06-15 Tom Tromey <tromey@adacore.com>
4451
4452 * windows-nat.c (windows_nat::handle_output_debug_string):
4453 Update.
4454 (windows_nat::handle_ms_vc_exception): Update.
4455 * target.h (target_read_string): Change API.
4456 * target.c (target_read_string): Change API.
4457 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4458 Update.
4459 * solib-frv.c (frv_current_sos): Update.
4460 * solib-dsbt.c (dsbt_current_sos): Update.
4461 * solib-darwin.c (darwin_current_sos): Update.
4462 * linux-thread-db.c (inferior_has_bug): Update.
4463 * expprint.c (print_subexp_standard): Update.
4464 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4465 (ada_exception_message_1): Update.
4466
a5d871dd
TT
44672020-06-15 Tom Tromey <tromey@adacore.com>
4468
4469 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4470
670e35fa
TT
44712020-06-15 Tom Tromey <tromey@adacore.com>
4472
4473 * valprint.c (read_string): Update comment.
4474 * target.c (MIN): Remove.
4475 (target_read_string): Rewrite.
4476
f5272a3b
TT
44772020-06-15 Tom Tromey <tromey@adacore.com>
4478
4479 * corefile.c (read_memory_string): Remove.
4480 * ada-valprint.c (ada_value_print_ptr): Update.
4481 * ada-lang.h (ada_tag_name): Change return type.
4482 * ada-lang.c (type_from_tag): Update.
4483 (ada_tag_name_from_tsd): Change return type. Use
4484 target_read_string.
4485 (ada_tag_name): Likewise.
4486 * gdbcore.h (read_memory_string): Don't declare.
4487
2c074f49
HD
44882020-06-14 Hannes Domani <ssbssa@yahoo.de>
4489
4490 * symtab.c (rbreak_command): Ignore Windows drive colon.
4491
6a17d503
SM
44922020-06-12 Simon Marchi <simon.marchi@efficios.com>
4493
4494 * NEWS: Mention removed GDBserver host support.
4495
453c733f
NC
44962020-06-12 Nelson Chu <nelson.chu@sifive.com>
4497
4498 * features/riscv/rebuild-csr-xml.sh: Updated.
4499
2b4e6a3f
TT
45002020-06-11 Tom Tromey <tom@tromey.com>
4501
4502 PR gdb/18318:
4503 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4504
4412332f
JG
45052020-06-09 Jonny Grant <jg@jguk.org>
45062020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4507
4508 * main.c (captured_main_1): Don't print new line after help.
4509 (print_gdb_help): add mailing list and IRC channel information
4510 to --help. Add new lines between items in the footer. Remove
4511 quotes around bug url.
4512
2f33032a
KS
45132020-06-11 Keith Seitz <keiths@redhat.com>
4514
4515 PR gdb/21356
4516 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4517 Resolve typedefs for type length calculations.
4518
7ab96794
TV
45192020-06-10 Tom de Vries <tdevries@suse.de>
4520
4521 PR ada/24713
4522 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4523 (write_psymbols): Enable .gdb_index for ada.
4524 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4525 ada.
4526
e5f3ece2
TV
45272020-06-10 Tom de Vries <tdevries@suse.de>
4528
4529 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4530 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4531 namei" instead of "const char *name" argument.
4532 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4533 dw2_symtab_iter_init.
4534
940da03e
SM
45352020-06-08 Simon Marchi <simon.marchi@efficios.com>
4536
4537 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4538 to use type::field and field::type instead.
4539
b6cdac4b
SM
45402020-06-08 Simon Marchi <simon.marchi@efficios.com>
4541
4542 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4543 to use field::type instead.
4544
5d14b6e5
SM
45452020-06-08 Simon Marchi <simon.marchi@efficios.com>
4546
4547 * gdbtypes.h (struct field) <type, set_type>: New methods.
4548 Rename `type` field to...
4549 <m_type>: ... this. Change references throughout to use type or
4550 set_type methods.
4551 (FIELD_TYPE): Use field::type. Change call sites that modify
4552 the field's type to use field::set_type instead.
4553
3d967001
SM
45542020-06-08 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4557 to use type::index_type instead.
4558
262abc0d
SM
45592020-06-08 Simon Marchi <simon.marchi@efficios.com>
4560
4561 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4562 methods.
4563 (TYPE_INDEX_TYPE): Use type::index_type.
4564 * gdbtypes.c (create_array_type_with_stride): Likewise.
4565
82836c92
TT
45662020-06-07 Tom Tromey <tom@tromey.com>
4567
4568 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4569 parameter.
4570 (generic_value_print): Update.
4571
940dace9
AB
45722020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4573
4574 Revert commit 982a38f60b0.
4575 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4576
982a38f6
AB
45772020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4578
4579 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4580 avoid use after free.
4581
82f06518
TV
45822020-06-05 Tom de Vries <tdevries@suse.de>
4583
4584 * NEWS: Fix typos.
4585
f8c41851
SM
45862020-06-04 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4589 the per_bfd object.
4590 (dwarf2_read_debug_names): Likewise.
4591 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4592 object when re-using a per_bfd object with an index.
4593
f9b5d5ea
TV
45942020-06-03 Tom de Vries <tdevries@suse.de>
4595
4596 PR symtab/26046
4597 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4598 children for C++.
4599 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4600 DW_TAG_subprogram.
4601
f6eee2d0
AB
46022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4603
4604 * ada-lang.c (ada_language_data): Delete skip_trampoline
4605 initializer.
4606 * c-lang.c (c_language_data): Likewise.
4607 (cplus_language_data): Likewise.
4608 (cplus_language::skip_trampoline): New member function.
4609 (asm_language_data): Delete skip_trampoline initializer.
4610 (minimal_language_data): Likewise.
4611 * d-lang.c (d_language_data): Likewise.
4612 * f-lang.c (f_language_data): Likewise.
4613 * go-lang.c (go_language_data): Likewise.
4614 * language.c (unk_lang_trampoline): Delete function.
4615 (skip_language_trampoline): Update.
4616 (unknown_language_data): Delete skip_trampoline initializer.
4617 (auto_language_data): Likewise.
4618 * language.h (language_data): Delete skip_trampoline field.
4619 (language_defn::skip_trampoline): New function.
4620 * m2-lang.c (m2_language_data): Delete skip_trampoline
4621 initializer.
4622 * objc-lang.c (objc_skip_trampoline): Delete function, move
4623 implementation to objc_language::skip_trampoline.
4624 (objc_language_data): Delete skip_trampoline initializer.
4625 (objc_language::skip_trampoline): New member function with
4626 implementation from objc_skip_trampoline.
4627 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4628 initializer.
4629 * p-lang.c (pascal_language_data): Likewise.
4630 * rust-lang.c (rust_language_data): Likewise.
4631
0a50df5d
AB
46322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4633
4634 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4635 (ada_language::demangle): New member function.
4636 * c-lang.c (c_language_data): Delete la_demangle initializer.
4637 (cplus_language_data): Delete la_demangle initializer.
4638 (cplus_language::demangle): New member function.
4639 (asm_language_data): Delete la_demangle initializer.
4640 (minimal_language_data): Delete la_demangle initializer.
4641 * d-lang.c (d_language_data): Delete la_demangle initializer.
4642 (d_language::demangle): New member function.
4643 * f-lang.c (f_language_data): Delete la_demangle initializer.
4644 (f_language::demangle): New member function.
4645 * go-lang.c (go_language_data): Delete la_demangle initializer.
4646 (go_language::demangle): New member function.
4647 * language.c (language_demangle): Update.
4648 (unk_lang_demangle): Delete.
4649 (unknown_language_data): Delete la_demangle initializer.
4650 (unknown_language::demangle): New member function.
4651 (auto_language_data): Delete la_demangle initializer.
4652 (auto_language::demangle): New member function.
4653 * language.h (language_data): Delete la_demangle field.
4654 (language_defn::demangle): New function.
4655 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4656 * objc-lang.c (objc_language_data): Delete la_demangle
4657 initializer.
4658 (objc_language::demangle): New member function.
4659 * opencl-lang.c (opencl_language_data): Delete la_demangle
4660 initializer.
4661 * p-lang.c (pascal_language_data): Likewise.
4662 * rust-lang.c (rust_language_data): Likewise.
4663 (rust_language::demangle): New member function.
4664
fbfb0a46
AB
46652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4666
4667 * ada-lang.c (ada_language_data): Delete la_print_type
4668 initializer.
4669 (ada_language::print_type): New member function.
4670 * c-lang.c (c_language_data): Delete la_print_type initializer.
4671 (c_language::print_type): New member function.
4672 (cplus_language_data): Delete la_print_type initializer.
4673 (cplus_language::print_type): New member function.
4674 (asm_language_data): Delete la_print_type initializer.
4675 (asm_language::print_type): New member function.
4676 (minimal_language_data): Delete la_print_type initializer.
4677 (minimal_language::print_type): New member function.
4678 * d-lang.c (d_language_data): Delete la_print_type initializer.
4679 (d_language::print_type): New member function.
4680 * f-lang.c (f_language_data): Delete la_print_type initializer.
4681 (f_language::print_type): New member function.
4682 * go-lang.c (go_language_data): Delete la_print_type initializer.
4683 (go_language::print_type): New member function.
4684 * language.c (unk_lang_print_type): Delete.
4685 (unknown_language_data): Delete la_print_type initializer.
4686 (unknown_language::print_type): New member function.
4687 (auto_language_data): Delete la_print_type initializer.
4688 (auto_language::print_type): New member function.
4689 * language.h (language_data): Delete la_print_type field.
4690 (language_defn::print_type): New function.
4691 (LA_PRINT_TYPE): Update.
4692 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4693 (m2_language::print_type): New member function.
4694 * objc-lang.c (objc_language_data): Delete la_print_type
4695 initializer.
4696 (objc_language::print_type): New member function.
4697 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4698 to opencl_language::print_type.
4699 (opencl_language_data): Delete la_print_type initializer.
4700 (opencl_language::print_type): New member function, implementation
4701 from opencl_print_type.
4702 * p-lang.c (pascal_language_data): Delete la_print_type
4703 initializer.
4704 (pascal_language::print_type): New member function.
4705 * rust-lang.c (rust_print_type): Delete, implementation moved to
4706 rust_language::print_type.
4707 (rust_language_data): Delete la_print_type initializer.
4708 (rust_language::print_type): New member function, implementation
4709 from rust_print_type.
4710
6f827019
AB
47112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4712
4713 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4714 implementation moves to...
4715 (ada_language::sniff_from_mangled_name): ...here. Update return
4716 type.
4717 (ada_language_data): Delete la_sniff_from_mangled_name
4718 initializer.
4719 * c-lang.c (c_language_data): Likewise.
4720 (cplus_language_data): Likewise.
4721 (cplus_language::sniff_from_mangled_name): New member function,
4722 implementation taken from gdb_sniff_from_mangled_name.
4723 (asm_language_data): Delete la_sniff_from_mangled_name
4724 initializer.
4725 (minimal_language_data): Likewise.
4726 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4727 implementation moves to cplus_language::sniff_from_mangled_name.
4728 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4729 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4730 moves to...
4731 (d_language::sniff_from_mangled_name): ...here.
4732 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4733 * f-lang.c (f_language_data): Likewise.
4734 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4735 moves to...
4736 (go_language::sniff_from_mangled_name): ...here.
4737 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4738 * language.c (language_sniff_from_mangled_name): Delete.
4739 (unknown_language_data): Delete la_sniff_from_mangled_name
4740 initializer.
4741 (auto_language_data): Likewise.
4742 * language.h (language_data): Delete la_sniff_from_mangled_name
4743 field.
4744 (language_defn::sniff_from_mangled_name): New function.
4745 (language_sniff_from_mangled_name): Delete declaration.
4746 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4747 field.
4748 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4749 implementation moves to...
4750 (objc_language::sniff_from_mangled_name): ...here.
4751 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4752 * opencl-lang.c (opencl_language_data): Likewise.
4753 * p-lang.c (pascal_language_data): Likewise.
4754 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4755 implementation moves to...
4756 (rust_language::sniff_from_mangled_name): ...here.
4757 (rust_language_data): Delete la_sniff_from_mangled_name
4758 initializer.
4759 * symtab.c (symbol_find_demangled_name): Call
4760 sniff_from_mangled_name member function.
4761
fb8006fd
AB
47622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4763
4764 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4765 initializer.
4766 * c-lang.c (c_language_data): Likewise.
4767 (cplus_language_data): Likewise.
4768 (cplus_language::search_name_hash): New member function.
4769 (asm_language_data): Delete la_search_name_hash initializer.
4770 (minimal_language_data): Likewise.
4771 * d-lang.c (d_language_data): Likewise.
4772 * dictionary.c (default_search_name_hash): Rename to...
4773 (language_defn::search_name_hash): ...this.
4774 * f-lang.c (f_language_data): Likewise.
4775 (f_language::search_name_hash): New member function.
4776 * go-lang.c (go_language_data): Delete la_search_name_hash
4777 initializer.
4778 * language.c (unknown_language_data): Likewise.
4779 (auto_language_data): Likewise.
4780 * language.h (struct language_data): Delete la_search_name_hash
4781 field.
4782 (language_defn::search_name_hash): Declare new member function.
4783 (default_search_name_hash): Delete declaration.
4784 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4785 initializer.
4786 * objc-lang.c (objc_language_data): Likewise.
4787 * opencl-lang.c (opencl_language_data): Likewise.
4788 * p-lang.c (pascal_language_data): Likewise.
4789 * rust-lang.c (rust_language_data): Likewise.
4790 * symtab.c (search_name_hash): Update call.
4791
8e25bafe
AB
47922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4793
4794 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4795 initializer.
4796 * c-lang.c (class compile_instance): Declare.
4797 (c_language_data): Delete la_get_compile_instance initializer.
4798 (c_language::get_compile_instance): New member function.
4799 (cplus_language_data): Delete la_get_compile_instance initializer.
4800 (cplus_language::get_compile_instance): New member function.
4801 (asm_language_data): Delete la_get_compile_instance initializer.
4802 (minimal_language_data): Likewise.
4803 * c-lang.h (c_get_compile_context): Update comment.
4804 (cplus_get_compile_context): Update comment.
4805 * compile/compile.c (compile_to_object): Update calls, don't rely
4806 on function pointer being NULL.
4807 * d-lang.c (d_language_data): Delete la_get_compile_instance
4808 initializer.
4809 * f-lang.c (f_language_data): Likewise.
4810 * go-lang.c (go_language_data): Likewise.
4811 * language.c (unknown_language_data): Likewise.
4812 (auto_language_data): Likewise.
4813 * language.h (language_data): Delete la_get_compile_instance field.
4814 (language_defn::get_compile_instance): New member function.
4815 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4816 initializer.
4817 * objc-lang.c (objc_language_data): Likewise.
4818 * opencl-lang.c (opencl_language_data): Likewise.
4819 * p-lang.c (pascal_language_data): Likewise.
4820 * rust-lang.c (rust_language_data): Likewise.
4821
4009ee92
AB
48222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4823
4824 * ada-lang.c (ada_add_all_symbols): Update comment.
4825 (ada_iterate_over_symbols): Delete, move implementation to...
4826 (ada_language::iterate_over_symbols): ...here, a new member
4827 function, rewrite to use range based for loop.
4828 (ada_language_data): Delete la_iterate_over_symbols initializer.
4829 * c-lang.c (c_language_data): Likewise.
4830 (cplus_language_data): Likewise.
4831 (asm_language_data): Likewise.
4832 (minimal_language_data): Likewise.
4833 * d-lang.c (d_language_data): Likewise.
4834 * f-lang.c (f_language_data): Likewise.
4835 * go-lang.c (go_language_data): Likewise.
4836 * language.c (unknown_language_data): Likewise.
4837 (auto_language_data): Likewise.
4838 * language.h (language_data): Delete la_iterate_over_symbols field.
4839 (language_defn::iterate_over_symbols): New member function.
4840 (LA_ITERATE_OVER_SYMBOLS): Update.
4841 * linespec.c (iterate_over_all_matching_symtabs): Update.
4842 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4843 initializer.
4844 * objc-lang.c (objc_language_data): Likewise.
4845 * opencl-lang.c (opencl_language_data): Likewise.
4846 * p-lang.c (pascal_language_data): Likewise.
4847 * rust-lang.c (rust_language_data): Likewise.
4848
54f4ca46
AB
48492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4850
4851 * ada-lang.c (ada_language_data): Delete
4852 la_lookup_transparent_type initializer.
4853 * c-lang.c (c_language_data): Likewise.
4854 (cplus_language_data): Likewise.
4855 (cplus_language::lookup_transparent_type): New member function.
4856 (asm_language_data): Delete la_lookup_transparent_type
4857 initializer.
4858 (minimal_language_data): Likewise.
4859 * d-lang.c (d_language_data): Likewise.
4860 * f-lang.c (f_language_data): Likewise.
4861 * go-lang.c (go_language_data): Likewise.
4862 * language.c (unknown_language_data): Likewise.
4863 (auto_language_data): Likewise.
4864 * language.h (struct language_data): Delete
4865 la_lookup_transparent_type field.
4866 (language_defn::lookup_transparent_type): New member function.
4867 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4868 initializer.
4869 * objc-lang.c (objc_language_data): Likewise.
4870 * opencl-lang.c (opencl_language_data): Likewise.
4871 * p-lang.c (pascal_language_data): Likewise.
4872 * rust-lang.c (rust_language_data): Likewise.
4873 * symtab.c (symbol_matches_domain): Update call.
4874
1fb314aa
AB
48752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4876
4877 * ada-lang.c (ada_language_arch_info): Delete function, move
4878 implementation to...
4879 (ada_language::language_arch_info): ...here, a new member
4880 function.
4881 (ada_language_data): Delete la_language_arch_info.
4882 * c-lang.c (c_language_data): Likewise.
4883 (c_language::language_arch_info): New member function.
4884 (cplus_language_arch_info): Delete function, move
4885 implementation to...
4886 (cplus_language::language_arch_info): ...here, a new member
4887 function.
4888 (cplus_language_data): Delete la_language_arch_info.
4889 (asm_language_data): Likewise.
4890 (asm_language::language_arch_info): New member function.
4891 (minimal_language_data): Delete la_language_arch_info.
4892 (minimal_language::language_arch_info): New member function.
4893 * d-lang.c (d_language_arch_info): Delete function, move
4894 implementation to...
4895 (d_language::language_arch_info): ...here, a new member
4896 function.
4897 (d_language_data): Delete la_language_arch_info.
4898 * f-lang.c (f_language_arch_info): Delete function, move
4899 implementation to...
4900 (f_language::language_arch_info): ...here, a new member
4901 function.
4902 (f_language_data): Delete la_language_arch_info.
4903 * go-lang.c (go_language_arch_info): Delete function, move
4904 implementation to...
4905 (go_language::language_arch_info): ...here, a new member
4906 function.
4907 (go_language_data): Delete la_language_arch_info.
4908 * language.c (unknown_language_data): Likewise.
4909 (unknown_language::language_arch_info): New member function.
4910 (auto_language_data): Delete la_language_arch_info.
4911 (auto_language::language_arch_info): New member function.
4912 (language_gdbarch_post_init): Update call to
4913 la_language_arch_info.
4914 * language.h (language_data): Delete la_language_arch_info
4915 function pointer.
4916 (language_defn::language_arch_info): New function.
4917 * m2-lang.c (m2_language_arch_info): Delete function, move
4918 implementation to...
4919 (m2_language::language_arch_info): ...here, a new member
4920 function.
4921 (m2_language_data): Delete la_language_arch_info.
4922 * objc-lang.c (objc_language_arch_info): Delete function, move
4923 implementation to...
4924 (objc_language::language_arch_info): ...here, a new member
4925 function.
4926 (objc_language_data): Delete la_language_arch_info.
4927 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4928 implementation to...
4929 (opencl_language::language_arch_info): ...here, a new member
4930 function.
4931 (opencl_language_data): Delete la_language_arch_info.
4932 * p-lang.c (pascal_language_arch_info): Delete function, move
4933 implementation to...
4934 (pascal_language::language_arch_info): ...here, a new member
4935 function.
4936 (pascal_language_data): Delete la_language_arch_info.
4937 * rust-lang.c (rust_language_arch_info): Delete function, move
4938 implementation to...
4939 (rust_language::language_arch_info): ...here, a new member
4940 function.
4941 (rust_language_data): Delete la_language_arch_info.
4942
48448202
AB
49432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4944
4945 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4946 initializer.
4947 * c-lang.c (c_language_data): Likewise.
4948 (cplus_language_data): Likewise.
4949 (cplus_language::pass_by_reference_info): New method.
4950 (asm_language_data): Delete la_pass_by_reference initializer.
4951 (minimal_language_data): Likewise.
4952 * cp-abi.c (cp_pass_by_reference): Remove use of
4953 default_pass_by_reference.
4954 * d-lang.c (d_language_data): Likewise.
4955 * f-lang.c (f_language_data): Likewise.
4956 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4957 default_pass_by_reference.
4958 * go-lang.c (go_language_data): Likewise.
4959 * language.c (language_pass_by_reference): Update.
4960 (default_pass_by_reference): Delete.
4961 (unknown_language_data): Delete la_pass_by_reference
4962 initializer.
4963 (auto_language_data): Likewise.
4964 * language.h (struct language_data): Delete la_pass_by_reference
4965 field.
4966 (language_defn::pass_by_reference_info): New member function.
4967 (default_pass_by_reference): Delete declaration.
4968 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4969 initializer.
4970 * objc-lang.c (objc_language_data): Likewise.
4971 * opencl-lang.c (opencl_language_data): Likewise.
4972 * p-lang.c (pascal_language_data): Likewise.
4973 * rust-lang.c (rust_language_data): Likewise.
4974
15e5fd35
AB
49752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4976
4977 * ada-lang.c (ada_read_var_value): Delete function, move
4978 implementation to...
4979 (ada_language::read_var_value): ...here.
4980 (ada_language_data): Delete la_read_var_value initializer.
4981 * c-lang.c (c_language_data): Likewise.
4982 (cplus_language_data): Likewise.
4983 (minimal_language_data): Likewise.
4984 * d-lang.c (d_language_data): Likewise.
4985 * f-lang.c (f_language_data): Likewise.
4986 * findvar.c (default_read_var_value): Rename to...
4987 (language_defn::read_var_value): ...this.
4988 * findvar.c (read_var_value): Update header comment, and change to
4989 call member function instead of function pointer.
4990 * go-lang.c (go_language_data): Likewise.
4991 * language.c (unknown_language_data): Delete la_read_var_value
4992 initializer.
4993 (auto_language_data): Likewise.
4994 * language.h (struct language_data): Delete la_read_var_value
4995 field.
4996 (language_defn::read_var_value): New member function.
4997 (default_read_var_value): Delete declaration.
4998 * m2-lang.c (m2_language_data): Delete la_read_var_value
4999 initializer.
5000 * objc-lang.c (objc_language_data): Likewise.
5001 * opencl-lang.c (opencl_language_data): Likewise.
5002 * p-lang.c (pascal_language_data): Likewise.
5003 * rust-lang.c (rust_language_data): Likewise.
5004 * value.h (default_read_var_value): Delete declaration.
5005
5bd40f2a
AB
50062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5007
5008 * ada-lang.c (ada_print_array_index): Delete function, move
5009 implementation to...
5010 (ada_language::print_array_index): ...here.
5011 (ada_language_data): Delete la_print_array_index initializer.
5012 * c-lang.c (c_language_data): Likewise.
5013 (cplus_language_data): Likewise.
5014 (minimal_language_data): Likewise.
5015 * d-lang.c (d_language_data): Likewise.
5016 * f-lang.c (f_language_data): Likewise.
5017 * go-lang.c (go_language_data): Likewise.
5018 * language.c (default_print_array_index): Delete function, move
5019 implementation to...
5020 (language_defn::print_array_index): ...here.
5021 (unknown_language_data): Delete la_print_array_index initializer.
5022 (auto_language_data): Likewise.
5023 * language.h (struct language_data): Delete la_print_array_index
5024 field.
5025 (language_defn::print_array_index): New member function.
5026 (LA_PRINT_ARRAY_INDEX): Update.
5027 (default_print_array_index): Delete declaration.
5028 * m2-lang.c (m2_language_data): Delete la_print_array_index
5029 initializer.
5030 * objc-lang.c (objc_language_data): Likewise.
5031 * opencl-lang.c (opencl_language_data): Likewise.
5032 * p-lang.c (pascal_language_data): Likewise.
5033 * rust-lang.c (rust_language_data): Likewise.
5034
0874fd07
AB
50352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5036
5037 * gdb/ada-lang.c (ada_language_defn): Convert to...
5038 (ada_language_data): ...this.
5039 (class ada_language): New class.
5040 (ada_language_defn): New static global.
5041 * gdb/c-lang.c (c_language_defn): Convert to...
5042 (c_language_data): ...this.
5043 (class c_language): New class.
5044 (c_language_defn): New static global.
5045 (cplus_language_defn): Convert to...
5046 (cplus_language_data): ...this.
5047 (class cplus_language): New class.
5048 (cplus_language_defn): New static global.
5049 (asm_language_defn): Convert to...
5050 (asm_language_data): ...this.
5051 (class asm_language): New class.
5052 (asm_language_defn): New static global.
5053 (minimal_language_defn): Convert to...
5054 (minimal_language_data): ...this.
5055 (class minimal_language): New class.
5056 (minimal_language_defn): New static global.
5057 * gdb/d-lang.c (d_language_defn): Convert to...
5058 (d_language_data): ...this.
5059 (class d_language): New class.
5060 (d_language_defn): New static global.
5061 * gdb/f-lang.c (f_language_defn): Convert to...
5062 (f_language_data): ...this.
5063 (class f_language): New class.
5064 (f_language_defn): New static global.
5065 * gdb/go-lang.c (go_language_defn): Convert to...
5066 (go_language_data): ...this.
5067 (class go_language): New class.
5068 (go_language_defn): New static global.
5069 * gdb/language.c (unknown_language_defn): Remove declaration.
5070 (current_language): Initialize to nullptr, real initialization is
5071 moved to _initialize_language.
5072 (languages): Delete global.
5073 (language_defn::languages): Define.
5074 (set_language_command): Use language_defn::languages.
5075 (set_language): Likewise.
5076 (range_error): Likewise.
5077 (language_enum): Likewise.
5078 (language_def): Likewise.
5079 (add_set_language_command): Use language_def::languages for the
5080 language list, and language_def to lookup language pointers.
5081 (skip_language_trampoline): Use language_defn::languages.
5082 (unknown_language_defn): Convert to...
5083 (unknown_language_data): ...this.
5084 (class unknown_language): New class.
5085 (unknown_language_defn): New static global.
5086 (auto_language_defn): Convert to...
5087 (auto_language_data): ...this.
5088 (class auto_language): New class.
5089 (auto_language_defn): New static global.
5090 (language_gdbarch_post_init): Use language_defn::languages.
5091 (_initialize_language): Initialize current_language.
5092 * gdb/language.h (struct language_defn): Rename to...
5093 (struct language_data): ...this.
5094 (struct language_defn): New.
5095 (auto_language_defn): Delete.
5096 (unknown_language_defn): Delete.
5097 (minimal_language_defn): Delete.
5098 (ada_language_defn): Delete.
5099 (asm_language_defn): Delete.
5100 (c_language_defn): Delete.
5101 (cplus_language_defn): Delete.
5102 (d_language_defn): Delete.
5103 (f_language_defn): Delete.
5104 (go_language_defn): Delete.
5105 (m2_language_defn): Delete.
5106 (objc_language_defn): Delete.
5107 (opencl_language_defn): Delete.
5108 (pascal_language_defn): Delete.
5109 (rust_language_defn): Delete.
5110 * gdb/m2-lang.c (m2_language_defn): Convert to...
5111 (m2_language_data): ...this.
5112 (class m2_language): New class.
5113 (m2_language_defn): New static global.
5114 * gdb/objc-lang.c (objc_language_defn): Convert to...
5115 (objc_language_data): ...this.
5116 (class objc_language): New class.
5117 (objc_language_defn): New static global.
5118 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5119 (opencl_language_data): ...this.
5120 (class opencl_language): New class.
5121 (opencl_language_defn): New static global.
5122 * gdb/p-lang.c (pascal_language_defn): Convert to...
5123 (pascal_language_data): ...this.
5124 (class pascal_language): New class.
5125 (pascal_language_defn): New static global.
5126 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5127 language pointer, update comment format.
5128 * gdb/rust-lang.c (rust_language_defn): Convert to...
5129 (rust_language_data): ...this.
5130 (class rust_language): New class.
5131 (rust_language_defn): New static global.
5132
1313c56e
AB
51332020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5134
5135 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5136 member variable.
5137 <m_stmt_at_address>: New member variable.
5138 (lnp_state_machine::record_line): Don't record some lines, update
5139 tracking of is_stmt at the same address.
5140 (lnp_state_machine::lnp_state_machine): Initialise new member
5141 variables.
5142
b7ed9f3d
ST
51432020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5144
5145 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5146 "-include gnu-nat-mig.h".
5147 * gnu-nat-mig.h: New file.
5148 * gnu-nat.c: Include "gnu-nat-mig.h".
5149 (exc_server, msg_reply_server, notify_server,
5150 process_reply_server): Remove declarations.
5151
14a8ad62
ST
51522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5153
5154 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5155 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5156 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5157 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5158 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5159 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5160 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5161 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5162 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5163 to gnu_nat_target class.
5164 * gnu-nat.c: Likewise.
5165 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5166 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5167 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5168 object.
5169 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5170 instead of `gnu_target'.
5171
0af5e106
ST
51722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5173
5174 * i386-gnu-tdep.c: Include "gdbcore.h"
5175 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5176 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5177 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5178 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5179 i386_gnu_sigcontext_addr): New functions
5180 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5181 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5182 tdep.
5183
078f2fc9
ST
51842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5185
5186 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5187 before fork_inferior call. Avoid calling it if target_is_pushed returns
5188 true.
5189
53dff92c
ST
51902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5191
5192 * gnu-nat.h (gnu_target): New variable declaration.
5193 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5194 gnu_target.
5195 * gnu-nat.c (gnu_target): New variable.
5196 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5197 add_thread_silent, and add_thread calls.
5198 (gnu_nat_target::create_inferior): Pass gnu_target to
5199 add_thread_silent, thread_change_ptid call.
5200 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5201 call.
5202
5a8b8627
ST
52032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5204
5205 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5206 (gnu_nat_target::find_memory_regions): Remove unused
5207 `old_address' variable.
5208
366f550a
ST
52092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5210
5211 * gnu-nat.c: Include "gdbarch.h".
5212
f14871bf
ST
52132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5214
5215 * reply_mig_hack.awk (Error return): Cast function through
5216 void *, to bypass compiler function call check.
5217
c6887cfb
ST
52182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5219
5220 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5221 $(srcdir)/reply_mig_hack.awk.
5222
6930bffe
ST
52232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5224
5225 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5226
112c22ed
JG
52272020-05-30 Jonny Grant <jg@jguk.org>
5228
5229 * configure.ac (ACX_BUGURL): change bug URL to https.
5230
f68f85b5
PA
52312020-05-30 Pedro Alves <palves@redhat.com>
5232
5233 * cp-support.c (replace_typedefs_template): New.
5234 (replace_typedefs_qualified_name): Handle
5235 DEMANGLE_COMPONENT_TEMPLATE.
5236
976ca316
SM
52372020-05-29 Simon Marchi <simon.marchi@efficios.com>
5238
5239 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5240 dwarf2/index-cache.h, dwarf2/index-write.c,
5241 dwarf2/index-write.h, dwarf2/line-header.c,
5242 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5243 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5244 variables and fields from `dwarf2_per_objfile` to just
5245 `per_objfile` throughout.
5246
989ade05
SM
52472020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5248
5249 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5250 <push_dwarf_reg_entry_value>: Add comment.
5251
c47bae85
KB
52522020-05-28 Kevin Buettner <kevinb@redhat.com>
5253 Keith Seitz <keiths@redhat.com>
5254
5255 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5256 instead of PyEval_ReleaseLock.
5257 (class gdbpy_gil): Move to earlier in file.
5258 (finalize_python): Set gdb_python_initialized.
5259 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5260 when not initialized.
5261
44486dcf
SM
52622020-05-28 Simon Marchi <simon.marchi@efficios.com>
5263
5264 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5265 <push_dwarf_reg_entry_value>: Remove assert. Override
5266 per_objfile with caller_per_objfile.
5267
f030440d
TV
52682020-05-28 Tom de Vries <tdevries@suse.de>
5269
5270 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5271 PR gold/15646 workaround to symbol kind "type".
5272
f0fbb768
TT
52732020-05-27 Tom Tromey <tromey@adacore.com>
5274
5275 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5276
af0b2a3e
TT
52772020-05-27 Tom Tromey <tromey@adacore.com>
5278
5279 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5280 Use htab_find_with_hash.
5281 <add_abbrev>: Remove "abbrev_number" parameter.
5282 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5283 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5284 (hash_abbrev): Add comment.
5285 (abbrev_table::lookup_abbrev): Move to header file.
5286 (abbrev_table::read): Update.
5287
7d00ffec
TT
52882020-05-27 Tom Tromey <tromey@adacore.com>
5289
5290 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5291 method.
5292 <canonical_name>: New member.
5293 <raw_name>: Rename from "name".
5294 (partial_die_info): Initialize canonical_name.
5295 (scan_partial_symbols): Check raw_name.
5296 (partial_die_parent_scope, partial_die_full_name)
5297 (add_partial_symbol, add_partial_subprogram)
5298 (add_partial_enumeration, load_partial_dies): Use "name" method.
5299 (partial_die_info::name): New method.
5300 (partial_die_info::read, guess_partial_die_structure_name)
5301 (partial_die_info::fixup): Update.
5302
697bba18
TT
53032020-05-27 Tom Tromey <tromey@adacore.com>
5304
5305 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5306 <get_ref_die_offset>: Inline.
5307 <get_ref_die_offset_complaint>: New method.
5308 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5309 (attribute::get_ref_die_offset_complaint): Rename from
5310 get_ref_die_offset. Just issue complaint.
5311
c17ace43
HD
53122020-05-27 Hannes Domani <ssbssa@yahoo.de>
5313
5314 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5315
96445f0b
HD
53162020-05-27 Hannes Domani <ssbssa@yahoo.de>
5317
5318 * exec.c (exec_file_attach): Use errno value of first openp failure.
5319
ac637ec3
HD
53202020-05-27 Hannes Domani <ssbssa@yahoo.de>
5321
5322 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5323 Don't close thread handle.
5324
17ee85fc
TT
53252020-05-27 Tom Tromey <tom@tromey.com>
5326 Simon Marchi <simon.marchi@efficios.com>
5327
5328 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5329 shared_ptr.
5330 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5331 member.
5332 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5333 dwarf2_per_bfd_objfile_data_key>: New globals.
5334 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5335 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5336 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5337 shared.
5338 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5339 short-circuit when sharing.
5340 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5341 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5342
39b16f87
SM
53432020-05-27 Simon Marchi <simon.marchi@efficios.com>
5344
5345 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5346 to...
5347 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5348 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5349
fcf23d5b
SM
53502020-05-27 Simon Marchi <simon.marchi@efficios.com>
5351
5352 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5353 build_name_components, find_name_components_bounds>:
5354 Add per_objfile parameter.
5355 (struct mapped_index) <symbol_name_at>: Likewise.
5356 (struct mapped_debug_names): Remove constructor.
5357 <dwarf2_per_objfile>: Remove field.
5358 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5359 (mapped_index_base::find_name_components_bounds,
5360 mapped_index_base::build_name_components,
5361 dw2_expand_symtabs_matching_symbol): Likewise.
5362 (class mock_mapped_index) <symbol_name_at>: Likewise.
5363 (check_match): Likewise.
5364 (check_find_bounds_finds): Likewise.
5365 (test_mapped_index_find_name_component_bounds): Update.
5366 (CHECK_MATCH): Update.
5367 (dw2_expand_symtabs_matching): Update.
5368 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5369 per_objfile parameter.
5370 <find_vec_in_debug_names>: Likewise.
5371 <m_per_objfile>: New field.
5372 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5373 parameter.
5374 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5375 (dw2_debug_names_iterator::next): Update.
5376 (dw2_debug_names_lookup_symbol): Update.
5377 (dw2_debug_names_expand_symtabs_for_function): Update.
5378 (dw2_debug_names_map_matching_symbols): Update.
5379 (dw2_debug_names_expand_symtabs_matching): Update.
5380 (dwarf2_read_debug_names): Update.
5381
7188ed02
SM
53822020-05-27 Simon Marchi <simon.marchi@efficios.com>
5383
5384 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5385 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5386 move to dwarf2_per_objfile.
5387 <read_in_chain>: Remove.
5388 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5389 remove_all_cus, age_comp_units>: New methods.
5390 <m_dwarf2_cus>: New member.
5391 (struct dwarf2_per_cu_data) <cu>: Remove.
5392 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5393 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5394 moved to methods of dwarf2_per_objfile.
5395 (dwarf2_clear_marks): Remove.
5396 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5397 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5398 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5399 (dwarf2_per_objfile::remove_all_cus): New.
5400 (class free_cached_comp_units) <~free_cached_comp_units>:
5401 Update.
5402 (load_cu): Update.
5403 (dw2_do_instantiate_symtab): Adjust.
5404 (fill_in_sig_entry_from_dwo_entry): Adjust.
5405 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5406 (cutu_reader::cutu_reader): Likewise.
5407 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5408 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5409 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5410 and dwarf2_per_objfile::age_comp_units.
5411 (load_partial_comp_unit): Update.
5412 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5413 (process_queue): Likewise.
5414 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5415 backlink.
5416 (dwarf2_read_addr_index): Likewise.
5417 (follow_die_offset): Likewise.
5418 (dwarf2_fetch_die_loc_sect_off): Likewise.
5419 (dwarf2_fetch_constant_bytes): Likewise.
5420 (dwarf2_fetch_die_type_sect_off): Likewise.
5421 (follow_die_sig_1): Likewise.
5422 (load_full_type_unit): Likewise.
5423 (read_signatured_type): Likewise.
5424 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5425 (dwarf2_cu::~dwarf2_cu): Remove.
5426 (dwarf2_per_objfile::get_cu): New.
5427 (dwarf2_per_objfile::set_cu): New.
5428 (age_cached_comp_units): Rename to...
5429 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5430 to std::unordered_map.
5431 (free_one_cached_comp_unit): Rename to...
5432 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5433 to std::unordered_map.
5434 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5435 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5436 a dwarf2_per_objfile in data.
5437 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5438 (dwarf2_clear_marks): Remove.
5439
2e671100
SM
54402020-05-27 Simon Marchi <simon.marchi@efficios.com>
5441
5442 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5443 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5444 (init_tu_and_read_dwo_dies): Likewise.
5445 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5446 (cutu_reader::cutu_reader): Likewise.
5447 (load_partial_comp_unit): Likewise.
5448 (process_psymtab_comp_unit): Update.
5449 (build_type_psymtabs_1): Update.
5450 (process_skeletonless_type_unit): Update.
5451 (load_full_comp_unit): Update.
5452 (find_partial_die): Update.
5453 (dwarf2_read_addr_index): Update.
5454 (read_signatured_type): Update.
5455
2e6a9f79
SM
54562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5457
5458 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5459 m_header_read_in>: New fields.
5460 <get_header>: New method.
5461 * dwarf2/read.c (per_cu_header_read_in): Remove.
5462 (dwarf2_per_cu_data::get_header): New.
5463 (dwarf2_per_cu_data::addr_size): Update.
5464 (dwarf2_per_cu_data::offset_size): Update.
5465 (dwarf2_per_cu_data::ref_addr_size): Update.
5466
1b555f17
SM
54672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5468
5469 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5470 (dw2_do_instantiate_symtab): Update.
5471 (queue_and_load_all_dwo_tus): Change parameter from
5472 dwarf2_per_cu_data to dwarf2_cu.
5473 (dwarf2_fetch_die_loc_sect_off): Update.
5474 (dwarf2_fetch_constant_bytes): Update.
5475 (dwarf2_fetch_die_type_sect_off): Update.
5476
8fc0b21d
SM
54772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5478
5479 * dwarf2/read.c (process_full_comp_unit,
5480 process_full_type_unit): Remove per_cu, per_objfile paramters.
5481 Add dwarf2_cu parameter.
5482 (process_queue): Update.
5483
168c9250
SM
54842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5485
5486 * dwarf2/read.c (create_cu_from_index_list): Replace
5487 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5488 (create_cus_from_index_list): Likewise.
5489 (create_cus_from_index): Likewise.
5490 (create_signatured_type_table_from_index): Likewise.
5491 (create_cus_from_debug_names_list): Likewise.
5492 (create_cus_from_debug_names): Likewise.
5493 (dwarf2_read_gdb_index): Update.
5494 (dwarf2_read_debug_names): Update.
5495
e286671b
TT
54962020-05-27 Tom Tromey <tom@tromey.com>
5497 Simon Marchi <simon.marchi@efficios.com>
5498
5499 * dwarf2/read.h (struct dwarf2_per_objfile)
5500 <get_type_for_signatured_type, set_type_for_signatured_type>:
5501 New methods.
5502 <m_type_map>: New member.
5503 (struct signatured_type) <type>: Remove.
5504 * dwarf2/read.c
5505 (dwarf2_per_objfile::get_type_for_signatured_type,
5506 dwarf2_per_objfile::set_type_for_signatured_type): New.
5507 (get_signatured_type): Use new methods.
5508
8adb8487
TT
55092020-05-27 Tom Tromey <tom@tromey.com>
5510 Simon Marchi <simon.marchi@efficios.com>
5511
5512 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5513 (struct dwarf2_per_objfile) <type_units>: New member.
5514 <get_type_unit_group_unshareable>: New method.
5515 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5516 num_symtabs, symtabs>: Remove; move to
5517 type_unit_group_unshareable.
5518 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5519 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5520 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5521
127bbf4b
SM
55222020-05-27 Simon Marchi <simon.marchi@efficios.com>
5523
5524 * dwarf2/read.h (struct dwarf2_per_cu_data):
5525 <dwarf2_per_objfile>: Remove.
5526 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5527 dwarf2_per_objfile.
5528 (create_signatured_type_table_from_index): Likewise.
5529 (create_signatured_type_table_from_debug_names): Likewise.
5530 (create_debug_type_hash_table): Likewise.
5531 (fill_in_sig_entry_from_dwo_entry): Likewise.
5532 (create_type_unit_group): Likewise.
5533 (read_comp_units_from_section): Likewise.
5534 (create_cus_hash_table): Likewise.
5535
f6e649dd
SM
55362020-05-27 Simon Marchi <simon.marchi@efficios.com>
5537
5538 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5539 dwarf2_per_cu_data::dwarf2_per_objfile.
5540 (compute_compunit_symtab_includes): Likewise.
5541 (dwarf2_cu::start_symtab): Likewise.
5542
aa66c379
SM
55432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5544
5545 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5546 parameter.
5547 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5548 (read_namespace_alias): Update.
5549 (lookup_die_type): Update.
5550 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5551 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5552 Update.
5553 (disassemble_dwarf_expression): Update.
5554
120ce1b5
SM
55552020-05-27 Simon Marchi <simon.marchi@efficios.com>
5556
5557 * dwarf2/read.h (struct dwarf2_queue_item): Add
5558 dwarf2_per_objfile parameter, assign new parameter.
5559 <per_objfile>: New field.
5560 * dwarf2/read.c (free_one_cached_comp_unit): Add
5561 dwarf2_per_objfile parameter.
5562 (queue_comp_unit): Likewise.
5563 (dw2_do_instantiate_symtab): Update.
5564 (process_psymtab_comp_unit): Update.
5565 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5566 (process_imported_unit_die): Update.
5567 (queue_and_load_dwo_tu): Update.
5568 (follow_die_offset): Update.
5569 (follow_die_sig_1): Update.
5570
9f47c707
SM
55712020-05-27 Simon Marchi <simon.marchi@efficios.com>
5572
5573 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5574 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5575 (read_call_site_scope): Assign per_objfile.
5576 (dwarf2_per_cu_data::objfile): Remove.
5577 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5578 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5579 dwarf2_per_objfile parameter.
5580 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5581 dwarf2_per_objfile parameter.
5582 (dwarf_expr_reg_to_entry_parameter): Add output
5583 dwarf2_per_objfile parameter.
5584 (locexpr_get_frame_base): Update.
5585 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5586 <push_dwarf_reg_entry_value>: Update.
5587 <call_site_to_target_addr>: Update.
5588 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5589 parameter.
5590 (value_of_dwarf_reg_entry): Update.
5591 (rw_pieced_value): Update.
5592 (indirect_synthetic_pointer): Update.
5593 (dwarf2_evaluate_property): Update.
5594 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5595 parameter.
5596 (locexpr_read_variable): Update.
5597 (locexpr_get_symbol_read_needs): Update.
5598 (loclist_read_variable): Update.
5599
14095eb3
SM
56002020-05-27 Simon Marchi <simon.marchi@efficios.com>
5601
5602 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5603 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5604 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5605 parameter.
5606 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5607 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5608 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5609 parameter.
5610 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5611 sect_variable_value): Add dwarf2_per_objfile parameter.
5612 (class dwarf_evaluate_loc_desc) <dwarf_call,
5613 dwarf_variable_value>: Update.
5614 (fetch_const_value_from_synthetic_pointer): Add
5615 dwarf2_per_objfile parameter.
5616 (fetch_const_value_from_synthetic_pointer): Update.
5617 (coerced_pieced_ref): Update.
5618 (class symbol_needs_eval_context) <dwarf_call,
5619 dwarf_variable_value>: Update.
5620 (dwarf2_compile_expr_to_ax): Update.
5621
3c3cd3d4
SM
56222020-05-27 Simon Marchi <simon.marchi@efficios.com>
5623
5624 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5625 parameter.
5626 (dwarf2_evaluate_loc_desc_full): Update.
5627
82ca3f51
SM
56282020-05-27 Simon Marchi <simon.marchi@efficios.com>
5629
5630 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5631 parameter.
5632 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5633 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5634 dwarf2_per_objfile parameter.
5635 (decode_debug_loc_dwo_addresses): Likewise.
5636 (dwarf2_find_location_expression): Update.
5637 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5638 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5639 parameter.
5640 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5641 parameter.
5642 (locexpr_describe_location_1): Likewise.
5643 (locexpr_describe_location): Update.
5644
4b167ea1
SM
56452020-05-27 Simon Marchi <simon.marchi@efficios.com>
5646
5647 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5648 Remove.
5649 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5650 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5651 (dwarf2_compile_property_to_c): Update.
5652 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5653 use text offset from objfile.
5654 (locexpr_tracepoint_var_ref): Update.
5655 (locexpr_generate_c_location): Update.
5656 (loclist_describe_location): Update.
5657 (loclist_tracepoint_var_ref): Update.
5658 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5659 dwarf2_per_objfile parameter.
5660 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5661 use text offset from objfile.
5662 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5663
89b07335
SM
56642020-05-27 Simon Marchi <simon.marchi@efficios.com>
5665
5666 * dwarf2/expr.h (struct dwarf_expr_context)
5667 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5668 <offset>: Remove.
5669 <per_objfile>: New member.
5670 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5671 dwarf2_per_objfile parameter. Don't set offset, set
5672 per_objfile.
5673 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5674 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5675 a dwarf2_per_objfile object instead of an offset.
5676 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5677 constructor.
5678 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5679 to dwarf2_expr_executor constructor. Don't set offset.
5680 (dwarf2_fetch_cfa_info): Update.
5681 (struct dwarf2_frame_cache) <text_offset>: Remove.
5682 <per_objfile>: New field.
5683 (dwarf2_frame_cache): Update.
5684 (dwarf2_frame_prev_register): Update.
5685 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5686 <dwarf_evaluate_loc_desc>: Add constructor.
5687 (dwarf2_evaluate_loc_desc_full): Update.
5688 (dwarf2_locexpr_baton_eval): Update.
5689 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5690 Add constructor.
5691 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5692
293e7e51
SM
56932020-05-27 Simon Marchi <simon.marchi@efficios.com>
5694
5695 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5696 addr_sized_int_type>: Move to dwarf2_cu.
5697 <int_type>: Move to dwarf2_per_objfile.
5698 (struct dwarf2_per_objfile) <int_type>: Move here.
5699 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5700 addr_sized_int_type>: Move here.
5701 (read_func_scope): Update.
5702 (read_array_type): Update.
5703 (read_tag_string_type): Update.
5704 (attr_to_dynamic_prop): Update.
5705 (dwarf2_per_cu_data::int_type): Rename to...
5706 (dwarf2_per_objfile::int_type): ... this.
5707 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5708 (dwarf2_cu::addr_sized_int_type): ... this.
5709 (read_subrange_type): Update.
5710 (dwarf2_per_cu_data::addr_type): Rename to...
5711 (dwarf2_cu::addr_type): ... this.
5712 (set_die_type): Update.
5713
64874a40
SM
57142020-05-27 Simon Marchi <simon.marchi@efficios.com>
5715
5716 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5717 data through per_cu->cu.
5718
4ab09049
SM
57192020-05-27 Simon Marchi <simon.marchi@efficios.com>
5720
5721 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5722 dwarf2_per_cu_data parameter fo dwarf2_cu.
5723 (lookup_dwo_type_unit): Likewise.
5724 (read_cutu_die_from_dwo): Likewise.
5725 (lookup_dwo_unit): Likewise.
5726 (open_and_init_dwo_file): Likewise.
5727 (lookup_dwo_cutu): Likewise.
5728 (lookup_dwo_comp_unit): Likewise.
5729 (lookup_dwo_type_unit): Likewise.
5730 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5731 (cutu_reader::cutu_reader): Update.
5732
47b14e86
SM
57332020-05-27 Simon Marchi <simon.marchi@efficios.com>
5734
5735 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5736 parameter.
5737 (process_full_type_unit): Likewise.
5738 (process_queue): Update.
5739
43182c09
SM
57402020-05-27 Simon Marchi <simon.marchi@efficios.com>
5741
5742 * dwarf2/read.c (recursively_compute_inclusions): Add
5743 dwarf2_per_objfile parameter.
5744 (compute_compunit_symtab_includes): Likewise.
5745 (process_cu_includes): Update.
5746
7aa104c4
SM
57472020-05-27 Simon Marchi <simon.marchi@efficios.com>
5748
5749 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5750 parameter.
5751 (create_type_unit_group): Update.
5752 (process_psymtab_comp_unit_reader): Update.
5753 (build_type_psymtabs_reader): Update.
5754
e3beb21d
SM
57552020-05-27 Simon Marchi <simon.marchi@efficios.com>
5756
5757 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5758 object through m_this_cu->cu.
5759
d460f660
SM
57602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5761
5762 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5763 the info parameter.
5764 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5765
ab432490
SM
57662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5767
5768 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5769 per_objfile parameter.
5770 (load_full_type_unit): Add per_objfile parameter.
5771 (read_signatured_type): Likewise.
5772 (load_full_comp_unit): Likewise.
5773 (load_cu): Likewise.
5774 (dw2_do_instantiate_symtab): Likewise.
5775 (dw2_get_file_names): Likewise.
5776 (dw2_map_symtabs_matching_filename): Update.
5777 (dw_expand_symtabs_matching_file_matcher): Update.
5778 (dw2_map_symbol_filenames): Update.
5779 (process_psymtab_comp_unit): Add per_objfile parameter.
5780 (build_type_psymtabs_1): Update.
5781 (process_skeletonless_type_unit): Update.
5782 (dwarf2_build_psymtabs_hard): Update.
5783 (load_partial_comp_unit): Add per_objfile parameter.
5784 (scan_partial_symbols): Update.
5785 (load_full_comp_unit): Add per_objfile parameter.
5786 (process_imported_unit_die): Update.
5787 (create_cus_hash_table): Update.
5788 (find_partial_die): Update.
5789 (dwarf2_read_addr_index): Update.
5790 (follow_die_offset): Update.
5791 (dwarf2_fetch_die_loc_sect_off): Update.
5792 (dwarf2_fetch_constant_bytes): Update.
5793 (dwarf2_fetch_die_type_sect_off): Update.
5794 (follow_die_sig_1): Update.
5795 (load_full_type_unit): Add per_objfile parameter.
5796 (read_signatured_type): Likewise.
5797
313bad1b
SM
57982020-05-27 Simon Marchi <simon.marchi@efficios.com>
5799
5800 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5801 of objfile_name.
5802
c3699833
SM
58032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5804
5805 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5806 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5807 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5808 field.
5809 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5810 (create_cus_from_index): Update.
5811 (dwarf2_read_gdb_index): Update.
5812 (create_cus_from_debug_names): Update.
5813 (dwarf2_read_debug_names): Update.
5814 (get_abbrev_section_for_cu): Update.
5815 (create_all_comp_units): Update.
5816 (read_attribute_value): Update.
5817 (get_debug_line_section): Update.
5818 * dwarf2/index-cache.c (index_cache::store): Update.
5819 * dwarf2/index-write.c (save_gdb_index_command): Update.
5820 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5821
1859c670
SM
58222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5823
5824 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5825 member.
5826 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5827 dwarf2_per_cu_data::per_bfd.
5828 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5829 (create_type_unit_group): Likewise.
5830 (queue_comp_unit): Remove reference to
5831 per_cu->dwarf2_per_objfile.
5832 (maybe_queue_comp_unit): Likewise.
5833 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5834 (create_cus_hash_table): Assign new field.
5835
5e22e966
SM
58362020-05-27 Simon Marchi <simon.marchi@efficios.com>
5837
5838 * dwarf2/read.c: Replace
5839 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5840 dwarf2_cu->per_objfile throughout.
5841
97a1449a
SM
58422020-05-27 Simon Marchi <simon.marchi@efficios.com>
5843
5844 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5845 parameter, don't use per_cu->dwarf2_per_objfile.
5846 (dw2_instantiate_symtab): Likewise.
5847 (dw2_find_last_source_symtab): Update.
5848 (dw2_map_expand_apply): Update.
5849 (dw2_lookup_symbol): Update.
5850 (dw2_expand_symtabs_for_function): Update.
5851 (dw2_expand_all_symtabs): Update.
5852 (dw2_expand_symtabs_with_fullname): Update.
5853 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5854 don't use per_cu->dwarf2_per_objfile.
5855 (dw2_expand_marked_cus): Update.
5856 (dw2_find_pc_sect_compunit_symtab): Update.
5857 (dw2_debug_names_lookup_symbol): Update.
5858 (dw2_debug_names_expand_symtabs_for_function): Update.
5859 (dw2_debug_names_map_matching_symbols): Update.
5860 (dwarf2_psymtab::expand_psymtab): Update.
5861
9e021579
SM
58622020-05-27 Simon Marchi <simon.marchi@efficios.com>
5863
5864 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5865 <per_objfile>: New member.
5866 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5867 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5868 call to dwarf2_cu.
5869 (cutu_reader::cutu_reader): Update.
5870 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5871
ae090bdb
SM
58722020-05-27 Simon Marchi <simon.marchi@efficios.com>
5873
5874 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5875 struct dwarf2_per_objfile.
5876 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5877 dwarf2_per_bfd.
5878 * dwarf2/read.c (set_die_type): Update.
5879 (get_die_type_at_offset): Update.
5880
af758d11
SM
58812020-05-27 Tom Tromey <tom@tromey.com>
5882 Simon Marchi <simon.marchi@efficios.com>
5883
5884 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5885 method.
5886 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5887 get_symtab, set_symtab>: New methods.
5888 <m_symtabs>: New field.
5889 (struct dwarf2_psymtab): Derive from partial_symtab.
5890 <readin_p, get_compunit_symtab>: Declare methods.
5891 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5892 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5893 New methods.
5894 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5895 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5896 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5897 (dw2_symtab_iter_next, dw2_print_stats)
5898 (dw2_expand_symtabs_with_fullname)
5899 (dw2_expand_symtabs_matching_one)
5900 (dw_expand_symtabs_matching_file_matcher)
5901 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5902 (dw2_debug_names_iterator::next)
5903 (dw2_debug_names_map_matching_symbols)
5904 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5905 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5906 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5907 New methods.
5908 (get_compunit_symtab, process_full_comp_unit)
5909 (process_full_type_unit): Update.
5910 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5911
5989a64e
SM
59122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5913
5914 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5915 then introduce a new dwarf2_per_objfile type.
5916 <read_line_string>: Move to the new dwarf2_per_objfile type.
5917 <objfile>: Likewise.
5918 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5919 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5920 dwarf2_per_objfile->per_bfd.
5921 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5922 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5923 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5924 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5925 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5926 (dwarf2_per_objfile::locate_sections): Rename to...
5927 (dwarf2_per_bfd::locate_sections): ... this.
5928 (dwarf2_per_objfile::get_cutu): Rename to...
5929 (dwarf2_per_bfd::get_cutu): ... this.
5930 (dwarf2_per_objfile::get_cu): Rename to...
5931 (dwarf2_per_bfd::get_cu): ... this.
5932 (dwarf2_per_objfile::get_tu): Rename to...
5933 (dwarf2_per_bfd::get_tu): ... this.
5934 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5935 (dwarf2_per_bfd::allocate_per_cu): ... this.
5936 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5937 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5938 (get_gdb_index_contents_ftype): Change parameter from
5939 dwarf2_per_objfile to dwarf2_per_bfd.
5940 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5941 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5942
a50264ba
TT
59432020-05-27 Tom Tromey <tom@tromey.com>
5944 Simon Marchi <simon.marchi@efficios.com>
5945
5946 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5947 (allocate_piece_closure): Set "per_objfile" member.
5948 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5949 (locexpr_describe_location, loclist_describe_location): Use new
5950 member.
5951 * dwarf2/read.c (read_call_site_scope)
5952 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5953 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5954 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5955 handle_data_member_location): Set per_objfile member.
5956 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5957 member.
5958 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5959
d3473f0c
TT
59602020-05-27 Tom Tromey <tom@tromey.com>
5961
5962 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5963 allocate_signatured_type>: Declare new methods.
5964 <m_num_psymtabs>: New member.
5965 (struct dwarf2_per_cu_data) <index>: New member.
5966 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5967 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5968 (create_cu_from_index_list): Use allocate_per_cu.
5969 (create_signatured_type_table_from_index)
5970 (create_signatured_type_table_from_debug_names)
5971 (create_debug_type_hash_table, add_type_unit)
5972 (read_comp_units_from_section): Use allocate_signatured_type.
5973
5717c425
TT
59742020-05-27 Tom Tromey <tom@tromey.com>
5975
5976 * psymtab.c (partial_map_expand_apply)
5977 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5978 (psym_lookup_global_symbol_language)
5979 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5980 (psym_print_stats, psym_expand_symtabs_for_function)
5981 (psym_map_symbol_filenames, psym_map_matching_symbols)
5982 (psym_expand_symtabs_matching)
5983 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5984 (maintenance_check_psymtabs): Update.
5985 * psympriv.h (struct partial_symtab) <readin_p,
5986 get_compunit_symtab>: Add objfile parameter.
5987 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5988 Likewise.
5989 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5990 get_compunit_symtab>: Likewise.
5991 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5992
45940949
TT
59932020-05-27 Tom Tromey <tom@tromey.com>
5994
5995 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5996 member.
5997 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5998 (create_cu_from_index_list)
5999 (create_signatured_type_table_from_index)
6000 (create_signatured_type_table_from_debug_names)
6001 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6002 (dwarf2_create_include_psymtab)
6003 (create_debug_type_hash_table, add_type_unit)
6004 (create_type_unit_group, read_comp_units_from_section)
6005 (dwarf2_compute_name, create_cus_hash_table)
6006 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6007 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6008 obstack.
6009 (dw2_get_real_path): Likewise. Change argument to
6010 dwarf2_per_objfile.
6011
f8c6d152
LM
60122020-05-27 Luis Machado <luis.machado@linaro.org>
6013
6014 PR tdep/26000
6015 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6016 for ldrd (immediate).
6017
e98d2e6d
PW
60182020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6019
6020 * command.h: Add comment giving the name of class_tui.
6021 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6022 create the fake command for the help for class_tui.
6023
53a47a3e
TT
60242020-05-26 Tom Tromey <tromey@adacore.com>
6025
6026 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6027 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6028 (val_atr): New function.
6029 (value_val_atr): Use it.
6030 * ada-valprint.c (print_optional_low_bound): Change low bound
6031 handling for enums.
6032 (val_print_packed_array_elements): Don't call discrete_position.
6033 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6034 discrete_position for enum types.
6035 * language.c (default_print_array_index): Change type.
6036 * language.h (struct language_defn) <la_print_array_index>: Add
6037 index_type parameter, change type of index_value.
6038 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6039 (default_print_array_index): Update.
6040 * valprint.c (maybe_print_array_index): Don't call
6041 value_from_longest. Update.
6042 (value_print_array_elements): Don't call discrete_position.
6043
0bc2354b
TT
60442020-05-26 Tom Tromey <tromey@adacore.com>
6045
6046 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6047 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6048
1218a4bf
CDA
60492020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6050
6051 PR gdb/13519
6052 * avr-tdep.c (avr_integer_to_address): Return data or code
6053 address accordingly to the second 'type' argument of the
6054 function.
6055
92651b1d
MW
60562020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6057
6058 * infcmd.c, inferior.h: (construct_inferior_arguments):
6059 Moved function from here to gdbsupport/common-inferior.{h,cc}
6060
0a4f5f8c
TT
60612020-05-23 Tom Tromey <tom@tromey.com>
6062
6063 Revert commit eca1f90c:
6064 * NEWS: Remove entry for completion styling.
6065 * completer.c (_rl_completion_prefix_display_length): Move
6066 declaration later.
6067 (gdb_fnprint): Revert.
6068 (gdb_display_match_list_1): Likewise.
6069 * cli/cli-style.c (completion_prefix_style)
6070 (completion_difference_style, completion_suffix_style): Remove.
6071 (_initialize_cli_style): Revert.
6072 * cli/cli-style.h (completion_prefix_style)
6073 (completion_difference_style, completion_suffix_style): Don't
6074 declare.
6075
e08bd6c5
PA
60762020-05-24 Pedro Alves <palves@redhat.com>
6077
6078 * symtab.c (completion_list_add_name): Return boolean indication
6079 of whether the symbol matched.
6080 (completion_list_add_symbol): Don't try to remove C++ aliases if
6081 the symbol didn't match in the first place.
6082 * symtab.h (completion_list_add_name): Return bool.
6083
ceacbf6e
SM
60842020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6085
6086 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6087 type::field.
6088
26f16254
JB
60892020-05-23 Joel Brobecker <brobecker@adacore.com>
6090
6091 GDB 9.2 released.
6092
eca1f90c
TT
60932020-05-23 Tom Tromey <tom@tromey.com>
6094
6095 * NEWS: Add entry for completion styling.
6096 * completer.c (_rl_completion_prefix_display_length): Move
6097 declaration earlier.
6098 (gdb_fnprint): Use completion_style.
6099 (gdb_display_match_list_1): Likewise.
6100 * cli/cli-style.c (completion_prefix_style)
6101 (completion_difference_style, completion_suffix_style): New
6102 globals.
6103 (_initialize_cli_style): Register new globals.
6104 * cli/cli-style.h (completion_prefix_style)
6105 (completion_difference_style, completion_suffix_style): Declare.
6106
51e2cfa2
PA
61072020-05-23 Pedro Alves <palves@redhat.com>
6108
6109 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6110 (parse_escape): Use ISDIGIT instead of isdigit.
6111 (puts_debug): Use gdb_isprint instead of isprint.
6112 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6113 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6114 ISSPACE instead of isspace.
6115 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6116 instead of isspace.
6117 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6118 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6119 instead of isxdigit and ISDIGIT instead of isdigit.
6120
80fc5e77
SM
61212020-05-22 Simon Marchi <simon.marchi@efficios.com>
6122
6123 * gdbtypes.h (struct type) <field>: New method.
6124 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6125 or type::field.
6126
3cabb6b0
SM
61272020-05-22 Simon Marchi <simon.marchi@efficios.com>
6128
6129 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6130 (TYPE_FIELDS): Use type::fields. Change all call sites that
6131 modify the propery to use type::set_fields instead.
6132
1f704f76
SM
61332020-05-22 Simon Marchi <simon.marchi@efficios.com>
6134
6135 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6136 type::num_fields instead.
6137
5e33d5f4
SM
61382020-05-22 Simon Marchi <simon.marchi@efficios.com>
6139
6140 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6141 methods.
6142 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6143 that modify the number of fields to use type::set_num_fields
6144 instead.
6145
9392ebb3
TT
61462020-05-22 Tom Tromey <tromey@adacore.com>
6147
6148 * compile/compile-object-load.h (munmap_list_free): Don't
6149 declare.
6150
7c13f4e8
AB
61512020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6152
6153 * annotate.c (annotate_source_line): Update return type, add call
6154 to update current symtab and line.
6155 * annotate.h (annotate_source_line): Update return type, and
6156 extend header comment.
6157 * source.c (info_line_command): Check annotation_level before
6158 calling annotate_source_line.
6159 * stack.c (print_frame_info): If calling annotate_source_line
6160 returns true, then don't print any other source line information.
6161
aa370940
SM
61622020-05-21 Simon Marchi <simon.marchi@efficios.com>
6163
6164 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6165
84d53fa9
SM
61662020-05-21 Simon Marchi <simon.marchi@efficios.com>
6167
6168 * coffread.c (patch_type): Remove NULL check before xfree.
6169 * corefile.c (set_gnutarget): Likewise.
6170 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6171 * exec.c (build_section_table): Likewise.
6172 * remote.c (remote_target::pass_signals): Likewise.
6173 * utils.c (n_spaces): Likewise.
6174 * cli/cli-script.c (document_command): Likewise.
6175 * i386-windows-tdep.c (core_process_module_section): Likewise.
6176 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6177
9d428aae
SM
61782020-05-20 Simon Marchi <simon.marchi@efficios.com>
6179
6180 * symfile.c (reread_symbols): Clear objfile's section_offsets
6181 vector and section indices, re-compute them by calling
6182 sym_offsets.
6183
250106a7
TT
61842020-05-20 Tom Tromey <tromey@adacore.com>
6185
6186 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6187 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6188
9a0bacfb
TV
61892020-05-20 Tom de Vries <tdevries@suse.de>
6190
6191 PR symtab/25833
6192 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6193
7b958a48
AM
61942020-05-20 Alan Modra <amodra@gmail.com>
6195
6196 PR 25993
6197 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6198 bfd_set_filename.
6199 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6200 passed to bfd_set_filename.
6201 * symfile-mem.c (add_vsyscall_page): Likewise for string
6202 passed to symbol_file_add_from_memory.
6203 (symbol_file_add_from_memory): Make name param a const char* and
6204 don't strdup.
6205
c7e97679
AM
62062020-05-20 Alan Modra <amodra@gmail.com>
6207
6208 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6209 rather than accessing bfd->filename directly.
6210 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6211 and use bfd_section_name.
6212 * dwarf2/frame.c (decode_frame_entry): Likewise.
6213 * exec.c (exec_set_section_address): Likewise.
6214 * solib-aix.c (solib_aix_bfd_open): Likewise.
6215 * stap-probe.c (get_stap_base_address): Likewise.
6216 * symfile.c (reread_symbols): Likewise.
6217
563c591b
TT
62182020-05-19 Tom Tromey <tromey@adacore.com>
6219
6220 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6221
f408d82c
SM
62222020-05-19 Simon Marchi <simon.marchi@efficios.com>
6223
6224 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6225
98c59b52
PA
62262020-05-19 Pedro Alves <palves@redhat.com>
6227
6228 * NEWS (set exec-file-mismatch): Adjust entry.
6229 * exec.c: Include "build-id.h".
6230 (validate_exec_file): Try to match build IDs instead of filenames.
6231 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6232 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6233 and pass down 'warn_if_slow'.
6234 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6235 gdb_bfd_open_closure to pass it down.
6236 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6237
4111f652
PA
62382020-05-19 Pedro Alves <palves@redhat.com>
6239
6240 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6241 * target.c (target_fileio_open_1): Rename to target_fileio_open
6242 and make extern. Use bool.
6243 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6244 (target_fileio_read_alloc_1): Adjust.
6245 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6246 (target_fileio_open_warn_if_slow): Delete declaration.
6247
ad80db5b
PA
62482020-05-19 Pedro Alves <palves@redhat.com>
6249
6250 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6251 Adjust all callers.
6252
1d6ce4d3
YS
62532020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6254
6255 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6256 whether disp is negative.
6257
9005fbbb
SM
62582020-05-19 Simon Marchi <simon.marchi@efficios.com>
6259
6260 * symfile.h (struct symfile_segment_data)
6261 <~symfile_segment_data>: Remove.
6262 <segment_info>: Change to std::vector.
6263 * symfile.c (default_symfile_segments): Update.
6264 * elfread.c (elf_symfile_segments): Update.
6265
68b888ff
SM
62662020-05-19 Simon Marchi <simon.marchi@efficios.com>
6267
6268 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6269 <segments>: New.
6270 <segment_bases, segment_sizes>: Remove.
6271 * symfile.c (default_symfile_segments): Update.
6272 * elfread.c (elf_symfile_segments): Update.
6273 * remote.c (remote_target::get_offsets): Update.
6274 * solib-target.c (solib_target_relocate_section_addresses):
6275 Update.
6276
62982abd
SM
62772020-05-19 Simon Marchi <simon.marchi@efficios.com>
6278
6279 * symfile.h (struct symfile_segment_data): Initialize fields.
6280 <~symfile_segment_data>: Add.
6281 (symfile_segment_data_up): New.
6282 (struct sym_fns) <sym_segments>: Return a
6283 symfile_segment_data_up.
6284 (default_symfile_segments): Return a symfile_segment_data_up.
6285 (free_symfile_segment_data): Remove.
6286 (get_symfile_segment_data): Return a symfile_segment_data_up.
6287 * symfile.c (default_symfile_segments): Likewise.
6288 (get_symfile_segment_data): Likewise.
6289 (free_symfile_segment_data): Remove.
6290 (symfile_find_segment_sections): Update.
6291 * elfread.c (elf_symfile_segments): Return a
6292 symfile_segment_data_up.
6293 * remote.c (remote_target::get_offsets): Update.
6294 * solib-target.c (solib_target_relocate_section_addresses):
6295 Update.
6296 * symfile-debug.c (debug_sym_segments): Return a
6297 symfile_segment_data_up.
6298
7f204339
RO
62992020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6300
e52a0f1b
RO
6301 PR build/25981
6302 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6303 Hardcode register numbers.
6304
7f204339
RO
6305 PR build/25981
6306 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6307 procfs_find_LDT_entry): Remove.
6308 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6309 procfs_find_LDT_entry): Remove.
6310 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6311 Remove.
6312
7f32a4d5
PA
63132020-05-17 Pedro Alves <palves@redhat.com>
6314 Andrew Burgess <andrew.burgess@embecosm.com>
6315 Keno Fischer <keno@juliacomputing.com>
6316
6317 PR gdb/25741
6318 * breakpoint.c (build_target_condition_list): Update comments.
6319 (build_target_command_list): Update comments and skip matching
6320 locations.
6321 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6322 a separate function. Simplify "set breakpoint auto-hw off"
6323 handling.
6324 (insert_breakpoints): Update comment.
6325 (tracepoint_locations_match): New parameter. For breakpoints,
6326 compare location types too, if the caller wants to.
6327 (handle_automatic_hardware_breakpoints): New functions.
6328 (bp_location_is_less_than): Also sort by location type and
6329 hardware breakpoint length.
6330 (update_global_location_list): Handle "set breakpoint auto-hw on"
6331 here.
6332 (update_breakpoint_locations): Ask breakpoint_locations_match to
6333 ignore location types.
6334
7d93a1e0
SM
63352020-05-16 Simon Marchi <simon.marchi@efficios.com>
6336
6337 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6338 type::name instead.
6339
d0e39ea2
SM
63402020-05-16 Simon Marchi <simon.marchi@efficios.com>
6341
6342 * gdbtypes.h (struct type) <name, set_name>: New methods.
6343 (TYPE_CODE): Use type::name. Change all call sites used to set
6344 the name to use type::set_name instead.
6345
2dab0c7b
TT
63462020-05-16 Tom Tromey <tom@tromey.com>
6347
6348 * top.c (quit_force): Update.
6349 * infrun.c (handle_no_resumed): Update.
6350 * top.h (all_uis): New function.
6351 (ALL_UIS): Remove.
6352
59f7bd8d
SM
63532020-05-16 Simon Marchi <simon.marchi@efficios.com>
6354
6355 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6356
9bf058f0
PA
63572020-05-16 Pedro Alves <palves@redhat.com>
6358
6359 * ia64-linux-nat.c
6360 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6361 Declare method.
6362 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6363
8f86ae1a
SM
63642020-05-15 Simon Marchi <simon.marchi@efficios.com>
6365
6366 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6367 (sparc64_adi_info): Likewise.
6368
d6bc0792
TT
63692020-05-15 Tom Tromey <tom@tromey.com>
6370
6371 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6372 block_objfile.
6373 (lookup_objfile_from_block): Remove.
6374 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6375 (lookup_global_symbol): Use block_objfile.
6376 * symtab.h (lookup_objfile_from_block): Don't declare.
6377 * printcmd.c (clear_dangling_display_expressions): Use
6378 block_objfile.
6379 * parse.c (operator_check_standard): Use block_objfile.
6380
8c14c3a3
TT
63812020-05-15 Tom Tromey <tom@tromey.com>
6382
6383 * language.c (language_alloc_type_symbol): Set
6384 SYMBOL_SECTION.
6385 * symtab.c (initialize_objfile_symbol): Remove.
6386 (allocate_symbol): Remove.
6387 (allocate_template_symbol): Remove.
6388 * dwarf2/read.c (fixup_go_packaging): Use "new".
6389 (new_symbol): Use "new".
6390 (read_variable): Don't call initialize_objfile_symbol. Use
6391 "new".
6392 (read_func_scope): Use "new".
6393 * xcoffread.c (process_xcoff_symbol): Don't call
6394 initialize_objfile_symbol.
6395 (SYMBOL_DUP): Remove.
6396 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6397 "new".
6398 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6399 (allocate_template_symbol): Don't declare.
6400 (struct symbol): Add copy constructor. Change defaults.
6401 * jit.c (finalize_symtab): Use "new".
6402 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6403 Use "new".
6404 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6405 (common_block_end): Use "new".
6406 * mdebugread.c (parse_symbol): Use "new".
6407 (new_symbol): Likewise.
6408
5b4a1a8d
PW
64092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6410
6411 * NEWS: Mention changes to help and apropos.
6412
57b4f16e
PW
64132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6414
6415 * command.h (enum command_class): Improve comments, document
6416 that class_alias is for user-defined aliases, give the class
6417 name for each class, remove unused class_xdb.
6418 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6419 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6420 by a precise class.
6421 * infcmd.c (_initialize_infcmd): Likewise.
6422 * reverse.c (_initialize_reverse): Likewise.
6423 * stack.c (_initialize_stack): Likewise.
6424 * symfile.c (_initialize_symfile): Likewise.
6425 * tracepoint.c (_initialize_tracepoint): Likewise.
6426
7c05caf7
PW
64272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6428
6429 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6430 when their aliased command is traversed.
6431 (help_cmd): Add fput_command_names_styled call to
6432 output command name and aliases when command has an alias.
6433
3b3aaacb
PW
64342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6435
6436 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6437 * cli/cli-decode.c (help_cmd_list): Declare as static,
6438 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6439 a command together with the command.
6440 (fput_command_name_styled, fput_command_names_styled): New functions.
6441 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6442 fput_command_name_styled.
6443 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6444 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6445
7aa1b46f
PW
64462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6447
6448 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6449 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6450 * command.h (cmd_show_list): Likewise.
6451 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6452 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6453
89bcba74
PW
64542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6455
6456 * unittests/command-def-selftests.c (traverse_command_structure):
6457 Verify all commands of a list have the same prefix command and
6458 that only the top cmdlist commands have a null prefix.
6459
3f4d92eb
PW
64602020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6461
6462 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6463 as prefix, not one of its aliases.
6464 (set_cmd_prefix): Remove.
6465 (do_add_cmd): Centralize the setting of the prefix of a command, when
6466 command is defined after its full chain of prefix commands.
6467 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6468 (add_setshow_cmd_full): Likewise.
6469 (update_prefix_field_of_prefixed_commands): New function.
6470 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6471 update_prefix_field_of_prefixed_commands.
6472 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6473 addresses of remote_set_cmdlist and remote_show_cmdlist given
6474 as argument, not the address of an argument.
6475 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6476 * gdb/remote.c (_initialize_remote): Likewise.
6477
0605465f
PW
64782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6479
6480 * cli/cli-cmds.c (alias_command): Check for an existing alias
6481 using lookup_cmd_composition, as valid_command_p is too strict
6482 and forbids aliases that are the prefix of an existing alias
6483 or command.
6484 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6485 command is properly recognised as a valid command.
6486
58e6ac70
PW
64872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6488
6489 * unittests/help-doc-selftests.c: Rename to
6490 unittests/command-def-selftests.c
6491 * unittests/command-def-selftests.c (help_doc_tests): Update some
6492 comments.
6493 (command_structure_tests, traverse_command_structure): New namespace
6494 and function.
6495 (command_structure_invariants_tests): New function.
6496 (_initialize_command_def_selftests) Renamed from
6497 _initialize_help_doc_selftests, register command_structure_invariants
6498 selftest.
6499
a7b9ceb8
PW
65002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6501
6502 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6503 an alias of 'show'.
6504
b2188a06
JB
65052020-05-15 Joel Brobecker <brobecker@adacore.com>
6506
6507 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6508 ada_is_fixed_point_type. Update all callers.
6509 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6510 all callers.
6511 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6512 Update all callers.
6513 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6514 print_fixed_point_type. Update all callers.
6515 * ada-valprint.c (ada_value_print_num): Replace call to
6516 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6517
a51951c2
KB
65182020-05-14 Kevin Buettner <kevinb@redhat.com>
6519
6520 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6521 processors.
6522 (cpu_supports_bts): Add CV_AMD case.
6523
29d6859f
LM
65242020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6525 Simon Marchi <simon.marchi@efficios.com>
6526
6527 * infrun.c (stop_all_threads): Collect multiple wait events at
6528 each pass.
6529
78134374
SM
65302020-05-14 Simon Marchi <simon.marchi@efficios.com>
6531
6532 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6533 type::code instead.
6534
67607e24
SM
65352020-05-14 Simon Marchi <simon.marchi@efficios.com>
6536
6537 * gdbtypes.h (struct type) <code, set_code>: New methods.
6538 (TYPE_CODE): Use type::code. Change all call sites used to set
6539 the code to use type::set_code instead.
6540
a05575d3
TBA
65412020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6542 Tom de Vries <tdevries@suse.de>
6543 Pedro Alves <palves@redhat.com>
6544
6545 PR threads/25478
6546 * infrun.c (stop_all_threads): Do NOT ignore
6547 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6548 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6549 received.
6550 (handle_no_resumed): Remove code handling a live inferior with no
6551 threads.
6552 * remote.c (has_single_non_exited_thread): New.
6553 (remote_target::update_thread_list): Do not delete a thread if is
6554 the last thread of the process.
6555 * thread.c (thread_select): Call delete_exited_threads instead of
6556 prune_threads.
6557
6ad82919
TBA
65582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6559
6560 * infrun.c (stop_all_threads): Enable/disable thread events of all
6561 targets. Move a debug message denoting the end of the function
6562 into the SCOPED_EXIT block.
6563
d890404b
TBA
65642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6565
6566 * process-stratum-target.h: Include <set>.
6567 (all_non_exited_process_targets, switch_to_target_no_thread): New
6568 function declarations.
6569 * process-stratum-target.c (all_non_exited_process_targets)
6570 (switch_to_target_no_thread): New function implementations.
6571
293b3ebc
TBA
65722020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6573
6574 * infrun.c (handle_inferior_event): Extract out a piece of code
6575 into...
6576 (mark_non_executing_threads): ...this new function.
6577
7ca9b62a
TBA
65782020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6579
6580 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6581 use.
6582
fc75c28b
TBA
65832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6584
6585 * regcache.c (regcache_read_pc_protected): New function
6586 implementation that returns 0 if the PC cannot read via
6587 'regcache_read_pc'.
6588 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6589 instead of 'regcache_read_pc'.
6590 (keep_going_pass_signal): Ditto.
6591
a89febbd
TT
65922020-05-13 Tom Tromey <tromey@adacore.com>
6593
6594 * ada-lang.c (align_value): Remove.
6595 (ada_template_to_fixed_record_type_1): Use align_up.
6596
f7e23710
TBA
65972020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6598
6599 * async-event.c: Update the copyright year.
6600 * async-event.h: Update the copyright year.
6601
02ff80c2
SM
66022020-05-12 Simon Marchi <simon.marchi@efficios.com>
6603
6604 * objfiles.h (is_addr_in_objfile,
6605 shared_objfile_contains_address_p): Return bool.
6606 * objfile.c (is_addr_in_objfile,
6607 shared_objfile_contains_address_p): Return bool.
6608
4fd6c7e8
TT
66092020-05-11 Tom Tromey <tromey@adacore.com>
6610
6611 * cli/cli-cmds.c (info_command): Restore.
6612 (_initialize_cli_cmds): Use add_prefix_command for "info".
6613 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6614
5eb68a39
TT
66152020-05-11 Tom Tromey <tromey@adacore.com>
6616
6617 * ada-lang.c (ada_value_primitive_field): Now public.
6618 * ada-lang.h (ada_value_primitive_field): Declare.
6619 * ada-valprint.c (print_field_values): Use
6620 ada_value_primitive_field for wrapper fields.
6621
7666722f
TV
66222020-05-11 Tom de Vries <tdevries@suse.de>
6623
6624 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6625 MODULE_DOMAIN.
6626
3ee6bb11
TV
66272020-05-11 Tom de Vries <tdevries@suse.de>
6628
6629 PR symtab/25941
6630 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6631 with length 0, if not gdb-produced.
6632 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6633
43434996
TV
66342020-05-09 Tom de Vries <tdevries@suse.de>
6635
6636 PR gdb/25955
6637 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6638 calculation.
6639
2f78cffc
TT
66402020-05-09 Tom Tromey <tom@tromey.com>
6641
6642 * top.c (server_command): Now bool.
6643 * top.h (server_command): Now bool.
6644
4f7bc5ed
TT
66452020-05-08 Tom Tromey <tromey@adacore.com>
6646
6647 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6648 already being processed.
6649
8be4b118
TT
66502020-05-08 Tom Tromey <tom@tromey.com>
6651
6652 * printcmd.c (struct display) <next>: Remove.
6653 <display>: New constructor.
6654 <exp_string>: Now a std::string.
6655 <enabled_p>: Now a bool.
6656 (display_number): Move definition earlier.
6657 (displays): Rename from display_chain. Now a std::vector.
6658 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6659 (display_command): Update.
6660 (do_one_display, disable_display)
6661 (enable_disable_display_command, do_enable_disable_display):
6662 Update.
6663 (free_display): Remove.
6664 (clear_displays): Rewrite.
6665 (delete_display): Update.
6666 (map_display_numbers): Use function_view. Remove "data"
6667 parameter. Update.
6668 (do_delete_display): Remove.
6669 (undisplay_command): Update.
6670 (do_one_display, do_displays, disable_display)
6671 (info_display_command): Update.
6672 (do_enable_disable_display): Remove.
6673 (enable_disable_display_command)
6674 (clear_dangling_display_expressions): Update.
6675
94c93c35
TT
66762020-05-08 Tom Tromey <tom@tromey.com>
6677
6678 * symtab.c (set_symbol_cache_size)
6679 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6680 (maintenance_print_symbol_cache_statistics): Update.
6681 * symmisc.c (print_symbol_bcache_statistics)
6682 (print_objfile_statistics, maintenance_print_objfiles)
6683 (maintenance_info_symtabs, maintenance_check_symtabs)
6684 (maintenance_expand_symtabs, maintenance_info_line_tables):
6685 Update.
6686 * symfile-debug.c (set_debug_symfile): Update.
6687 * source.c (forget_cached_source_info): Update.
6688 * python/python.c (gdbpy_progspaces): Update.
6689 * psymtab.c (maintenance_info_psymtabs): Update.
6690 * probe.c (parse_probes): Update.
6691 * linespec.c (iterate_over_all_matching_symtabs)
6692 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6693 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6694 * exec.c (exec_target::close): Update.
6695 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6696 * breakpoint.c (print_one_breakpoint_location)
6697 (create_longjmp_master_breakpoint)
6698 (create_std_terminate_master_breakpoint): Update.
6699 * progspace.c (program_spaces): Now a std::vector.
6700 (maybe_new_address_space): Update.
6701 (add_program_space): Remove.
6702 (program_space::program_space): Update.
6703 (remove_program_space): Update.
6704 (number_of_program_spaces): Remove.
6705 (print_program_space, update_address_spaces): Update.
6706 * progspace.h (program_spaces): Change type.
6707 (ALL_PSPACES): Remove.
6708 (number_of_program_spaces): Don't declare.
6709 (struct program_space) <next>: Remove.
6710
a1fd1ac9
TT
67112020-05-08 Tom Tromey <tom@tromey.com>
6712
6713 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6714 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6715 (enable_break): Update.
6716 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6717 (frv_fdpic_find_canonical_descriptor): Update.
6718 (frv_fetch_objfile_link_map): Update.
6719 * progspace.c (program_space::free_all_objfiles): Update.
6720 (program_space::solibs): New method.
6721 * progspace.h (struct program_space) <solibs>: New method.
6722 * solist.h (master_so_list): Don't declare.
6723 (ALL_SO_LIBS): Remove.
6724 * solib.h (so_list_head): Remove.
6725 (update_solib_list): Update comment.
6726 * solib.c (master_so_list): Remove.
6727 (solib_used, update_solib_list, solib_add)
6728 (info_sharedlibrary_command, clear_solib)
6729 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6730
38eae084
TT
67312020-05-08 Tom Tromey <tom@tromey.com>
6732
6733 * extension.c (extension_languages): Now a std::array.
6734 (ALL_EXTENSION_LANGUAGES): Remove.
6735 (get_ext_lang_defn, get_ext_lang_of_file)
6736 (eval_ext_lang_from_control_command): Update.
6737 (finish_ext_lang_initialization)
6738 (auto_load_ext_lang_scripts_for_objfile)
6739 (ext_lang_type_printers::ext_lang_type_printers)
6740 (apply_ext_lang_type_printers)
6741 (ext_lang_type_printers::~ext_lang_type_printers)
6742 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6743 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6744 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6745 (get_matching_xmethod_workers, ext_lang_colorize)
6746 (ext_lang_before_prompt): Update.
6747 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6748
596dc4ad
TT
67492020-05-08 Tom Tromey <tom@tromey.com>
6750
6751 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6752 overload.
6753 <swap_string, m_string>: Remove.
6754 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6755 Update.
6756 * stabsread.c (define_symbol, read_type): Update.
6757 * linespec.c (find_linespec_symbols): Update.
6758 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6759 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6760 * dbxread.c (read_dbx_symtab): Update.
6761 * cp-support.h (cp_canonicalize_string_full)
6762 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6763 Return unique_xmalloc_ptr.
6764 * cp-support.c (inspect_type): Update.
6765 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6766 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6767 Likewise.
6768 * c-typeprint.c (print_name_maybe_canonical): Update.
6769 * break-catch-throw.c (check_status_exception_catchpoint):
6770 Update.
6771
bf4cb9be
TV
67722020-05-08 Tom de Vries <tdevries@suse.de>
6773
6774 * infrun.c (follow_fork): Copy current_line and current_symtab to
6775 child thread.
6776
a1b68f28
SM
67772020-05-07 Simon Marchi <simon.marchi@efficios.com>
6778
6779 * async-event.c (struct async_signal_handler, struct
6780 async_event_handler): Reformat, remove typedef.
6781
98d48915
SM
67822020-05-07 Simon Marchi <simon.marchi@efficios.com>
6783
6784 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6785 access thistype->main_type->dyn_prop_list directly.
6786
7aa91313
SM
67872020-05-07 Simon Marchi <simon.marchi@efficios.com>
6788
6789 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6790 (remove_dyn_prop): Remove. Update all users to use
6791 type::remove_dyn_prop.
6792 * gdbtypes.c (remove_dyn_prop): Rename to...
6793 (type::remove_dyn_prop): ... this.
6794
5c54719c
SM
67952020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6796
6797 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6798 (add_dyn_prop): Remove. Update all users to use
6799 type::add_dyn_prop.
6800 * gdbtypes.c (add_dyn_prop): Rename to...
6801 (type::add_dyn_prop): ... this.
6802
24e99c6c
SM
68032020-05-07 Simon Marchi <simon.marchi@efficios.com>
6804
6805 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6806 (get_dyn_prop): Remove. Update all users to use
6807 type::dyn_prop.
6808 * gdbtypes.c (get_dyn_prop): Rename to...
6809 (type::dyn_prop): ... this.
6810
0d4bf016
SM
68112020-05-06 Simon Marchi <simon.marchi@efficios.com>
6812
6813 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6814
ac4a4f1c
SM
68152020-05-06 Simon Marchi <simon.marchi@efficios.com>
6816
6817 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6818 instruction, skip it if it's there.
6819
a3bbacc1
SM
68202020-05-05 Simon Marchi <simon.marchi@efficios.com>
6821
6822 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6823
c3236f84
SM
68242020-05-04 Simon Marchi <simon.marchi@efficios.com>
6825
6826 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6827 * gdbtypes.c (recursive_dump_type): Remove use of
6828 TYPE_INCOMPLETE.
6829
3b6acaee
TT
68302020-05-03 Tom Tromey <tom@tromey.com>
6831
6832 * breakpoint.c (catch_command, tcatch_command): Remove.
6833 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6834 add_show_prefix_cmd.
6835 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6836 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6837 Remove.
6838 (add_internal_problem_command): Use add_basic_prefix_cmd,
6839 add_show_prefix_cmd.
6840 * mips-tdep.c (set_mipsfpu_command): Remove.
6841 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6842 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6843 (_initialize_index_cache): Use add_basic_prefix_cmd.
6844 * memattr.c (dummy_cmd): Remove.
6845 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6846 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6847 (_initialize_tui_win): Use add_basic_prefix_cmd,
6848 add_show_prefix_cmd.
6849 * cli/cli-logging.c (set_logging_command): Remove.
6850 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6851 add_show_prefix_cmd.
6852 (show_logging_command): Remove.
6853 * target.c (target_command): Remove.
6854 (add_target): Use add_basic_prefix_cmd.
6855
a51119cd
HD
68562020-05-02 Hannes Domani <ssbssa@yahoo.de>
6857
6858 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6859
652fc23a 68602020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6861
652fc23a
PW
6862 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6863 info_command.
6864
117539e6
KR
68652020-04-30 Kamil Rytarowski <n54@gmx.com>
6866
6867 * nbsd-nat.c (nbsd_enable_proc_events)
6868 (nbsd_nat_target::post_startup_inferior): Add.
6869 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6870 (nbsd_nat_target::update_thread_list): Rewrite.
6871 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6872 "PTRACE_LWP_CREATE".
6873 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6874
102e38eb 68752020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6876
102e38eb
PW
6877 * stack.c (_initialize_stack): Remove duplicated creation
6878 of "frame" command and "f" alias.
6879
ee9d1e5f
HD
68802020-04-30 Hannes Domani <ssbssa@yahoo.de>
6881
6882 PR gdb/18706
6883 * gdbtypes.c (check_typedef): Calculate size of array of
6884 stubbed type.
6885
627c7fb8
HD
68862020-04-30 Hannes Domani <ssbssa@yahoo.de>
6887
6888 PR gdb/15559
6889 * i386-tdep.c (i386_push_dummy_call): Call
6890 i386_thiscall_push_dummy_call.
6891 (i386_thiscall_push_dummy_call): New function.
6892 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6893 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6894 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6895
ffc2844e
SM
68962020-04-29 Simon Marchi <simon.marchi@efficios.com>
6897
6898 * gdbarch.sh (do_read): Add shellcheck disable directive for
6899 warning SC2162.
6900
1207375d
SM
69012020-04-29 Simon Marchi <simon.marchi@efficios.com>
6902
6903 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6904 "referenced but not assigned" warning.
6905
9fdb2916
SM
69062020-04-29 Simon Marchi <simon.marchi@efficios.com>
6907
6908 * gdbarch.sh: Remove code that sets fallbackdefault.
6909
759cea5e
SM
69102020-04-29 Simon Marchi <simon.marchi@efficios.com>
6911
6912 * gdbarch.sh: Use shell operators && and || instead of
6913 -a and -o.
6914
cb02ab24
SM
69152020-04-29 Simon Marchi <simon.marchi@efficios.com>
6916
6917 * gdbarch.sh: Use $(...) instead of `...`.
6918
a6fc5ffc
SM
69192020-04-29 Simon Marchi <simon.marchi@efficios.com>
6920
6921 * gdbarch.sh: Use double quotes around variables.
6922
8d113d13
SM
69232020-04-29 Simon Marchi <simon.marchi@efficios.com>
6924
6925 * gdbarch.sh: Use %s with printf, instead of variables in the
6926 format string.
6927
ed6acedd
TT
69282020-04-29 Tom Tromey <tromey@adacore.com>
6929
6930 PR ada/25875:
6931 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6932 type fields here.
6933 (read_enumeration_type): Call
6934 update_enumeration_type_from_children later. Update comments.
6935 (process_enumeration_scope): Don't create type fields.
6936
b68b1b58
KR
69372020-04-29 Kamil Rytarowski <n54@gmx.com>
6938
6939 * nbsd-tdep.c: Include "xml-syscall.h".
6940 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6941
f94b2e03
KR
69422020-04-29 Kamil Rytarowski <n54@gmx.com>
6943
6944 * nbsd-nat.c: Include "sys/wait.h".
6945 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6946 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6947 (nbsd_nat_target::remove_exec_catchpoint)
6948 (nbsd_nat_target::set_syscall_catchpoint): Add.
6949 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6950 (nbsd_nat_target::insert_exec_catchpoint)
6951 (nbsd_nat_target::remove_exec_catchpoint)
6952 (nbsd_nat_target::set_syscall_catchpoint): Add.
6953 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6954 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6955 `nbsd_get_syscall_number'.
6956
fc49bc72
TT
69572020-04-29 Tom Tromey <tom@tromey.com>
6958
6959 * stack.c (print_block_frame_labels): Remove.
6960
d642b692
HD
69612020-04-29 Hannes Domani <ssbssa@yahoo.de>
6962
6963 PR gdb/17320
6964 * ada-valprint.c (val_print_packed_array_elements): Move array
6965 end bracket to new line.
6966 (ada_val_print_string): Remove extra spaces before first array
6967 element.
6968 * c-valprint.c (c_value_print_array): Likewise.
6969 * m2-valprint.c (m2_print_array_contents): Likewise.
6970 (m2_value_print_inner): Likewise.
6971 * p-valprint.c (pascal_value_print_inner): Likewise.
6972 * valprint.c (generic_val_print_array): Likewise.
6973 (value_print_array_elements): Move first array element and array
6974 end bracket to new line.
6975
ea90f227
TV
69762020-04-29 Tom de Vries <tdevries@suse.de>
6977
6978 PR symtab/25889
6979 * linespec.c (find_method): Fix ix calculation.
6980
4498ef4f
KR
69812020-04-28 Kamil Rytarowski <n54@gmx.com>
6982
6983 * syscalls/update-netbsd.sh: New file.
6984 * syscalls/netbsd.xml: Regenerate.
6985 * data-directory/Makefile.in: Register `netbsd.xml' in
6986 `SYSCALLS_FILES'.
6987
a55e30b5
SM
69882020-04-28 Simon Marchi <simon.marchi@efficios.com>
6989
6990 * syscalls/update-freebsd.sh: Add double quotes.
6991
2b2fbab8
TT
69922020-04-28 Tom Tromey <tom@tromey.com>
6993
6994 * NEWS: Update.
6995 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6996 (cmdpy_init): Allow class_tui.
6997
a65189c9
TV
69982020-04-28 Mark Williams <mark@myosotissp.com>
6999
7000 PR gdb/24480
7001 * dwarf2read.c: Add missing assingments to list_in_scope when
7002 start_symtab was already called.
7003
1b95cdb7
SM
70042020-04-28 Simon Marchi <simon.marchi@efficios.com>
7005
7006 PR gdb/25881
7007 * dwarf2/read.c (offset_map_type): Use
7008 gdb:hash_enum<sect_offset> as hash function.
7009
15cd93d0
TV
70102020-04-28 Tom de Vries <tdevries@suse.de>
7011
7012 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7013 with DW_AT_signature.
7014
1eb39914
SM
70152020-04-27 Simon Marchi <simon.marchi@efficios.com>
7016
7017 * configure.ac: Remove check for fs_base/gs_base in
7018 user_regs_struct.
7019 * configure: Re-generate.
7020 * config.in: Re-generate.
7021 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7022 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7023 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7024
991a3e2e
LM
70252020-04-27 Luis Machado <luis.machado@linaro.org>
7026
7027 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7028 problematic inline frame unwinding situation.
7029 * frame.c (frame_id_computed_p): New function.
7030 * frame.h (frame_id_computed_p): New prototype.
7031
361ba0e8
TT
70322020-04-26 Tom Tromey <tom@tromey.com>
7033
7034 * command.h (enum command_class) <class_pseudo>: Remove.
7035
bc3609fd
PW
70362020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7037
7038 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7039 and whitespace.
7040
b9771db7
KR
70412020-04-25 Kamil Rytarowski <n54@gmx.com>
7042
ec16513e
SM
7043 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7044 `PT_GET_PROCESS_STATE' block.
b9771db7 7045
7151c1af
TT
70462020-04-24 Tom Tromey <tom@tromey.com>
7047
7048 * symtab.h (symbol_get_demangled_name): Don't declare.
7049 * symtab.c (symbol_get_demangled_name): Remove.
7050 (general_symbol_info::natural_name)
7051 (general_symbol_info::demangled_name): Update.
7052
906bb4c5
TT
70532020-04-24 Tom Tromey <tom@tromey.com>
7054
7055 PR rust/25025:
7056 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7057
bcfe6157
TT
70582020-04-24 Tom Tromey <tom@tromey.com>
7059
7060 PR symtab/12707:
7061 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7062 exists.
7063 (new_symbol): Likewise.
7064 * compile/compile-object-load.c (get_out_value_type): Use
7065 symbol_matches_search_name.
7066
f049a313
TT
70672020-04-24 Tom Tromey <tom@tromey.com>
7068
7069 * dwarf2/read.c (add_partial_symbol): Do not call
7070 compute_and_set_names.
7071
76e288d1
TT
70722020-04-24 Tom Tromey <tom@tromey.com>
7073
7074 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7075 overload.
7076
2467f4f6
TT
70772020-04-24 Tom Tromey <tom@tromey.com>
7078
7079 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7080 (add_psymbol_to_list): New overload. Make old overload call new
7081 one.
7082 * psympriv.h (add_psymbol_to_list): New overload.
7083
e61108c9
TT
70842020-04-24 Tom Tromey <tom@tromey.com>
7085
7086 * dwarf2/read.c (partial_die_info::read) <case
7087 DW_AT_linkage_name>: Use value_as_string.
7088 (dwarf2_string_attr): Use value_as_string.
7089 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7090 method.
7091 * dwarf2/attribute.c (attribute::value_as_string): New method.
7092
8c87a452
TT
70932020-04-24 Tom Tromey <tom@tromey.com>
7094
7095 * symtab.c (general_symbol_info::natural_name)
7096 (general_symbol_info::demangled_name): Check for language_rust.
7097
787de330
TT
70982020-04-24 Tom Tromey <tom@tromey.com>
7099
7100 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7101 (dwarf2_physname): ... from here.
7102 (partial_die_info::read): Add Rust "{" hack.
7103
ff985671
TT
71042020-04-24 Tom Tromey <tom@tromey.com>
7105
7106 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7107 method.
7108 (symbol_set_demangled_name): Don't declare.
7109 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7110 symbol_set_demangled_name.
7111 (general_symbol_info::set_language)
7112 (general_symbol_info::compute_and_set_names): Update.
7113 * minsyms.c (minimal_symbol_reader::install): Update.
7114 * dwarf2/read.c (new_symbol): Update.
7115
1acda803
TT
71162020-04-24 Tom Tromey <tromey@adacore.com>
7117
7118 PR python/23662:
7119 * python/py-type.c (convert_field): Handle
7120 FIELD_LOC_KIND_DWARF_BLOCK.
7121 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7122 (typy_get_dynamic): Nw function.
7123 (type_object_getset): Add "dynamic".
7124 * NEWS: Add entry.
7125
d656f129
TT
71262020-04-24 Tom Tromey <tromey@adacore.com>
7127
7128 * ada-typeprint.c (print_choices, print_variant_part)
7129 (print_record_field_types_dynamic): New functions.
7130 (print_record_field_types): Use print_record_field_types_dynamic.
7131
7d79de9a
TT
71322020-04-24 Tom Tromey <tromey@adacore.com>
7133
7134 * dwarf2/read.c (handle_data_member_location): New overload.
7135 (dwarf2_add_field): Use it.
7136 (decode_locdesc): Add "computed" parameter. Update comment.
7137 * gdbtypes.c (is_dynamic_type_internal): Also look for
7138 FIELD_LOC_KIND_DWARF_BLOCK.
7139 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7140 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7141 virtual base classes.
7142 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7143 FIELD_LOC_KIND_DWARF_BLOCK.
7144
f8e89861
TT
71452020-04-24 Tom Tromey <tromey@adacore.com>
7146
7147 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7148 * gdbtypes.c (is_dynamic_type_internal): Check
7149 TYPE_HAS_DYNAMIC_LENGTH.
7150 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7151 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7152 New macros.
7153 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7154 constant.
7155
9c6a1327
TT
71562020-04-24 Tom Tromey <tromey@adacore.com>
7157
7158 * dwarf2/read.c (struct variant_field): Rewrite.
7159 (struct variant_part_builder): New.
7160 (struct nextfield): Remove "variant" field. Add "offset".
7161 (struct field_info): Add "current_variant_part" and
7162 "variant_parts".
7163 (alloc_discriminant_info): Remove.
7164 (alloc_rust_variant): New function.
7165 (quirk_rust_enum): Update.
7166 (dwarf2_add_field): Set "offset" member. Don't handle
7167 DW_TAG_variant_part.
7168 (offset_map_type): New typedef.
7169 (convert_variant_range, create_one_variant)
7170 (create_one_variant_part, create_variant_parts)
7171 (add_variant_property): New functions.
7172 (dwarf2_attach_fields_to_type): Call add_variant_property.
7173 (read_structure_type): Don't handle DW_TAG_variant_part.
7174 (handle_variant_part, handle_variant): New functions.
7175 (handle_struct_member_die): Use them.
7176 (process_structure_scope): Don't handle variant parts.
7177 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7178 (struct discriminant_info): Remove.
7179 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7180 (struct main_type) <flag_discriminated_union>: Remove.
7181 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7182 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7183 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7184 Update.
7185 * valops.c (value_union_variant): Remove.
7186 * value.h (value_union_variant): Don't declare.
7187
b249d2c2
TT
71882020-04-24 Tom Tromey <tromey@adacore.com>
7189
7190 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7191 (ada_value_primitive_packed_val): Update.
7192 * ada-valprint.c (ada_value_print_1): Update.
7193 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7194 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7195 just an address. Use evaluate_for_locexpr_baton.
7196 (dwarf2_evaluate_property): Update.
7197 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7198 array_view.
7199 * findvar.c (default_read_var_value): Update.
7200 * gdbtypes.c (compute_variant_fields_inner)
7201 (resolve_dynamic_type_internal): Update.
7202 (resolve_dynamic_type): Change type of valaddr parameter.
7203 * gdbtypes.h (resolve_dynamic_type): Update.
7204 * valarith.c (value_subscripted_rvalue): Update.
7205 * value.c (value_from_contents_and_address): Update.
7206
61122aa9
TT
72072020-04-24 Tom Tromey <tromey@adacore.com>
7208
7209 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7210 "push_initial_value" parameter.
7211 (dwarf2_evaluate_property): Likewise.
7212 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7213
ef83a141
TT
72142020-04-24 Tom Tromey <tromey@adacore.com>
7215
7216 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7217 (variant::matches, compute_variant_fields_recurse)
7218 (compute_variant_fields_inner, compute_variant_fields): New
7219 functions.
7220 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7221 Use resolved_type after type is made.
7222 (operator==): Add new cases.
7223 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7224 (struct discriminant_range, struct variant, struct variant_part):
7225 New.
7226 (union dynamic_prop_data) <variant_parts, original_type>: New
7227 members.
7228 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7229 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7230 constants.
7231 * value.c (unpack_bits_as_long): Now public.
7232 * value.h (unpack_bits_as_long): Declare.
7233
675127ec
TT
72342020-04-24 Tom Tromey <tromey@adacore.com>
7235
7236 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7237 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7238
9852ceef
HD
72392020-04-24 Hannes Domani <ssbssa@yahoo.de>
7240
7241 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7242
7632c6ce
KR
72432020-04-24 Kamil Rytarowski <n54@gmx.com>
7244
7245 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7246 (remove_fork_catchpoint, post_startup_inferior)
7247 (post_attach): Move...
7248 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7249 (remove_fork_catchpoint, post_startup_inferior)
7250 (post_attach): ...here.
7251 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7252 (remove_fork_catchpoint, post_startup_inferior)
7253 (post_attach): Move...
7254 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7255 (remove_fork_catchpoint, post_startup_inferior)
7256 (post_attach): ...here.
7257
7be2bb4f
TT
72582020-04-24 Tom Tromey <tromey@adacore.com>
7259
7260 * nat/windows-nat.h (struct windows_thread_info)
7261 <pc_adjusted>: New member.
7262 * windows-nat.c (windows_fetch_one_register): Check
7263 pc_adjusted.
7264 (windows_nat_target::get_windows_debug_event)
7265 (windows_nat_target::wait): Set pc_adjusted.
7266
f80cb3b4
TV
72672020-04-24 Tom de Vries <tdevries@suse.de>
7268
7269 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7270 Run gdb-add-index inside temp dir.
7271
29514b87
TT
72722020-04-23 Tom Tromey <tromey@adacore.com>
7273
7274 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7275 in loop.
7276
5939967b
LM
72772020-04-23 Luis Machado <luis.machado@linaro.org>
7278
7279 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7280 get_frame_register instead of gdbarch_unwind_pc.
7281
70bc38f5
TV
72822020-04-23 Tom de Vries <tdevries@suse.de>
7283
7284 * symtab.c (lookup_global_symbol): Prefer def over decl.
7285
de82891c
TV
72862020-04-23 Tom de Vries <tdevries@suse.de>
7287
7288 PR symtab/25807
7289 * block.c (best_symbol, better_symbol): Promote to external.
7290 * block.h (best_symbol, better_symbol): Declare.
7291 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7292 decl.
7293
ecc6c606
TT
72942020-04-23 Tom Tromey <tromey@adacore.com>
7295
7296 PR ada/25837:
7297 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7298 "const char *", not a "const std::string &".
7299 <name_and_matcher::operator==>: Update.
7300 * unittests/lookup_name_info-selftests.c: Change type of
7301 "result".
7302
740480b8
TT
73032020-04-23 Tom Tromey <tom@tromey.com>
7304
7305 * inferior.h (iterate_over_inferiors): Don't declare.
7306 * inferior.c (iterate_over_inferiors): Remove.
7307 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7308 Remove.
7309 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7310 use iterate_over_inferiors.
7311 (darwin_resume_inferior_it)
7312 (struct resume_inferior_threads_param)
7313 (darwin_resume_inferior_threads_it): Remove.
7314 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7315
ae3ab1f0
TV
73162020-04-23 Tom de Vries <tdevries@suse.de>
7317
7318 * blockframe.c (find_pc_partial_function): Use
7319 find_pc_sect_compunit_symtab rather than
7320 objfile->sf->qf->find_pc_sect_compunit_symtab.
7321
317d2668
TV
73222020-04-22 Tom de Vries <tdevries@suse.de>
7323
7324 PR symtab/25764
7325 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7326 in psymtabs.
7327
eea9e357
TV
73282020-04-22 Tom de Vries <tdevries@suse.de>
7329
7330 PR symtab/25801
7331 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7332 symtabs.
7333
3d5afab3
TV
73342020-04-22 Tom de Vries <tdevries@suse.de>
7335
7336 PR symtab/25700
7337 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7338 CU if already created.
7339
d43b7a2d
TBA
73402020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7341
7342 * infrun.c (displaced_step_fixup): Switch to the event_thread
7343 before calling displaced_step_restore, not after.
7344
d89edf9b
MM
73452020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7346
7347 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7348 its inferior is not recorded by us.
7349 (record_btrace_target_open): Replace call to
7350 all_non_exited_threads () with call to current_inferior
7351 ()->non_exited_threads ().
7352 (record_btrace_target::stop_recording): Likewise.
7353 (record_btrace_target::close): Likewise.
7354 (record_btrace_target::wait): Likewise.
7355 (record_btrace_target::record_stop_replaying): Likewise.
7356
5897fd49
MM
73572020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7358
7359 * btrace.c (btrace_enable): Throw an error on double enables and
7360 when enabling recording fails.
7361 (btrace_disable): Throw an error if the thread is not recorded.
7362
1a476b6d
MM
73632020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7364
7365 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7366 request if we do not have a thread_info.
7367
4778a5f8
TV
73682020-04-21 Tom de Vries <tdevries@suse.de>
7369
7370 PR gdb/25471
7371 * thread.c
7372 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7373 exception in get_frame_id.
7374
0fa7617d
TT
73752020-04-20 Tom Tromey <tromey@adacore.com>
7376
7377 * python/python.c (struct gdbpy_event): Mark move constructor as
7378 noexcept.
7379 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7380 constructor as noexcept.
7381 * completer.h (struct completion_result): Mark move constructor as
7382 noexcept.
7383 * completer.c (completion_result::completion_result): Use
7384 initialization style. Don't call reset_match_list.
7385
ad23bda0
MS
73862020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7387
7388 * MAINTAINERS (Write After Approval): Add myself.
7389
45e1f031
TT
73902020-04-18 Tom Tromey <tom@tromey.com>
7391
7392 * windows-tdep.c (init_w32_command_list)
7393 (w32_prefix_command_valid): Restore.
7394 (_initialize_windows_tdep): Call init_w32_command_list.
7395
08feed99
TT
73962020-04-18 Tom Tromey <tom@tromey.com>
7397
7398 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7399 * value.c (value_fn_field): Update.
7400 * valops.c (find_function_in_inferior)
7401 (value_allocate_space_in_inferior): Update.
7402 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7403 Update.
7404 * tui/tui-source.c (tui_source_window::set_contents): Update.
7405 * symtab.c (lookup_global_or_static_symbol)
7406 (find_function_start_sal_1, skip_prologue_sal)
7407 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7408 * symmisc.c (dump_msymbols, dump_symtab_1)
7409 (maintenance_print_one_line_table): Update.
7410 * symfile.c (init_entry_point_info, section_is_mapped)
7411 (list_overlays_command, simple_read_overlay_table)
7412 (simple_overlay_update_1): Update.
7413 * stap-probe.c (handle_stap_probe): Update.
7414 * stabsread.c (dbx_init_float_type, define_symbol)
7415 (read_one_struct_field, read_enum_type, read_range_type): Update.
7416 * source.c (info_line_command): Update.
7417 * python/python.c (gdbpy_source_objfile_script)
7418 (gdbpy_execute_objfile_script): Update.
7419 * python/py-type.c (save_objfile_types): Update.
7420 * python/py-objfile.c (py_free_objfile): Update.
7421 * python/py-inferior.c (python_new_objfile): Update.
7422 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7423 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7424 (maintenance_check_psymtabs): Update.
7425 * printcmd.c (info_address_command): Update.
7426 * objfiles.h (struct objfile) <arch>: New method, from
7427 get_objfile_arch.
7428 (get_objfile_arch): Don't declare.
7429 * objfiles.c (get_objfile_arch): Remove.
7430 (filter_overlapping_sections): Update.
7431 * minsyms.c (msymbol_is_function): Update.
7432 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7433 (output_nondebug_symbol): Update.
7434 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7435 (mdebug_expand_psymtab): Update.
7436 * machoread.c (macho_add_oso_symfile): Update.
7437 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7438 Update.
7439 * linux-fork.c (checkpoint_command): Update.
7440 * linespec.c (convert_linespec_to_sals): Update.
7441 * jit.c (finalize_symtab): Update.
7442 * infrun.c (insert_exception_resume_from_probe): Update.
7443 * ia64-tdep.c (ia64_find_unwind_table): Update.
7444 * hppa-tdep.c (internalize_unwinds): Update.
7445 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7446 Update.
7447 * gcore.c (call_target_sbrk): Update.
7448 * elfread.c (record_minimal_symbol, elf_symtab_read)
7449 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7450 (elf_gnu_ifunc_resolve_by_got): Update.
7451 * dwarf2/read.c (create_addrmap_from_index)
7452 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7453 (read_debug_names_from_section)
7454 (process_psymtab_comp_unit_reader, add_partial_symbol)
7455 (add_partial_subprogram, process_full_comp_unit)
7456 (read_file_scope, read_func_scope, read_lexical_block_scope)
7457 (read_call_site_scope, dwarf2_ranges_read)
7458 (dwarf2_record_block_ranges, dwarf2_add_field)
7459 (mark_common_block_symbol_computed, read_tag_pointer_type)
7460 (read_tag_string_type, dwarf2_init_float_type)
7461 (dwarf2_init_complex_target_type, read_base_type)
7462 (partial_die_info::read, partial_die_info::read)
7463 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7464 (dwarf2_fetch_die_loc_sect_off): Update.
7465 * dwarf2/loc.c (dwarf2_find_location_expression)
7466 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7467 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7468 (dwarf2_loc_desc_get_symbol_read_needs)
7469 (locexpr_describe_location_piece, locexpr_describe_location_1)
7470 (loclist_describe_location): Update.
7471 * dwarf2/index-write.c (write_debug_names): Update.
7472 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7473 * dtrace-probe.c (dtrace_process_dof): Update.
7474 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7475 (process_one_symbol): Update.
7476 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7477 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7478 (coff_read_enum_type): Update.
7479 * cli/cli-cmds.c (edit_command, list_command): Update.
7480 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7481 * breakpoint.c (create_overlay_event_breakpoint)
7482 (create_longjmp_master_breakpoint)
7483 (create_std_terminate_master_breakpoint)
7484 (create_exception_master_breakpoint, get_sal_arch): Update.
7485 * block.c (block_gdbarch): Update.
7486 * annotate.c (annotate_source_line): Update.
7487
0743fc83
TT
74882020-04-17 Tom Tromey <tromey@adacore.com>
7489
7490 * auto-load.c (show_auto_load_cmd): Remove.
7491 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7492 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7493 (maintenance_print_arc_command): Remove.
7494 * tui/tui-win.c (tui_command): Remove.
7495 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7496 * tui/tui-layout.c (tui_layout_command): Remove.
7497 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7498 * python/python.c (user_set_python, user_show_python): Remove.
7499 (_initialize_python): Use add_basic_prefix_cmd,
7500 add_show_prefix_cmd.
7501 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7502 (install_gdb_commands): Use add_basic_prefix_cmd,
7503 add_show_prefix_cmd.
7504 (info_guile_command): Remove.
7505 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7506 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7507 add_show_prefix_cmd.
7508 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7509 Remove do_set and do_show parameters.
7510 * cli/cli-style.c (set_style, show_style): Remove.
7511 (_initialize_cli_style): Use add_basic_prefix_cmd,
7512 add_show_prefix_cmd.
7513 (cli_style_option::add_setshow_commands): Remove do_set and
7514 do_show parameters.
7515 (cli_style_option::add_setshow_commands): Use
7516 add_basic_prefix_cmd, add_show_prefix_cmd.
7517 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7518 (set_style_name): Remove.
7519 * cli/cli-dump.c (dump_command, append_command): Remove.
7520 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7521 (tekhex_dump_command, binary_dump_command)
7522 (binary_append_command): Remove.
7523 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7524 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7525 (init_w32_command_list): Remove; move into ...
7526 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7527 * valprint.c (set_print, show_print, set_print_raw)
7528 (show_print_raw): Remove.
7529 (_initialize_valprint): Use add_basic_prefix_cmd,
7530 add_show_prefix_cmd.
7531 * typeprint.c (set_print_type, show_print_type): Remove.
7532 (_initialize_typeprint): Use add_basic_prefix_cmd,
7533 add_show_prefix_cmd.
7534 * record.c (set_record_command, show_record_command): Remove.
7535 (_initialize_record): Use add_basic_prefix_cmd,
7536 add_show_prefix_cmd.
7537 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7538 add_show_prefix_cmd.
7539 (info_command, show_command, set_debug, show_debug): Remove.
7540 * top.h (set_history, show_history): Don't declare.
7541 * top.c (set_history, show_history): Remove.
7542 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7543 (unset_tdesc_cmd): Remove.
7544 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7545 add_show_prefix_cmd.
7546 * symtab.c (info_module_command): Remove.
7547 (_initialize_symtab): Use add_basic_prefix_cmd.
7548 * symfile.c (overlay_command): Remove.
7549 (_initialize_symfile): Use add_basic_prefix_cmd.
7550 * sparc64-tdep.c (info_adi_command): Remove.
7551 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7552 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7553 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7554 add_show_prefix_cmd.
7555 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7556 (_initialize_serial): Use add_basic_prefix_cmd,
7557 add_show_prefix_cmd.
7558 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7559 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7560 add_show_prefix_cmd.
7561 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7562 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7563 add_show_prefix_cmd.
7564 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7565 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7566 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7567 add_show_prefix_cmd.
7568 * remote.c (remote_command, set_remote_cmd): Remove.
7569 (_initialize_remote): Use add_basic_prefix_cmd.
7570 * record-full.c (set_record_full_command)
7571 (show_record_full_command): Remove.
7572 (_initialize_record_full): Use add_basic_prefix_cmd,
7573 add_show_prefix_cmd.
7574 * record-btrace.c (cmd_set_record_btrace)
7575 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7576 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7577 (cmd_show_record_btrace_pt): Remove.
7578 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7579 add_show_prefix_cmd.
7580 * ravenscar-thread.c (set_ravenscar_command)
7581 (show_ravenscar_command): Remove.
7582 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7583 add_show_prefix_cmd.
7584 * mips-tdep.c (show_mips_command, set_mips_command)
7585 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7586 add_show_prefix_cmd.
7587 * maint.c (maintenance_command, maintenance_info_command)
7588 (maintenance_check_command, maintenance_print_command)
7589 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7590 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7591 add_show_prefix_cmd.
7592 (show_per_command_cmd): Remove.
7593 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7594 Remove.
7595 (maintenance_show_test_settings_cmd): Remove.
7596 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7597 add_show_prefix_cmd.
7598 * maint-test-options.c (maintenance_test_options_command):
7599 Remove.
7600 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7601 * macrocmd.c (macro_command): Remove
7602 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7603 * language.c (set_check, show_check): Remove.
7604 (_initialize_language): Use add_basic_prefix_cmd,
7605 add_show_prefix_cmd.
7606 * infcmd.c (unset_command): Remove.
7607 (_initialize_infcmd): Use add_basic_prefix_cmd.
7608 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7609 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7610 add_show_prefix_cmd.
7611 * go32-nat.c (go32_info_dos_command): Remove.
7612 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7613 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7614 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7615 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7616 (_initialize_frame): Use add_basic_prefix_cmd,
7617 add_show_prefix_cmd.
7618 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7619 (_initialize_dcache): Use add_basic_prefix_cmd,
7620 add_show_prefix_cmd.
7621 * cp-support.c (maint_cplus_command): Remove.
7622 (_initialize_cp_support): Use add_basic_prefix_cmd.
7623 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7624 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7625 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7626 add_basic_prefix_cmd, add_show_prefix_cmd.
7627 * breakpoint.c (save_command): Remove.
7628 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7629 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7630 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7631 add_show_prefix_cmd.
7632 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7633 (set_ada_command, show_ada_command): Remove.
7634 (_initialize_ada_language): Use add_basic_prefix_cmd,
7635 add_show_prefix_cmd.
7636 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7637
3557f442
KR
76382020-04-16 Kamil Rytarowski <n54@gmx.com>
7639
7640 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7641 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7642
16197208
SM
76432020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7644
7645 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7646 warning messages.
7647
00ac85d3
SM
76482020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7649
7650 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7651 import table is not at beginning of .idata section.
7652
381ce63f
PA
76532020-04-16 Pedro Alves <palves@redhat.com>
7654
7655 * inferior.c (delete_inferior): Use delete operator directly
7656 instead of delete_program_space.
7657 * progspace.c (add_program_space): New, factored out from
7658 program_space::program_space.
7659 (remove_program_space): New, factored out from
7660 delete_program_space.
7661 (program_space::program_space): Remove intro comment. Rewrite.
7662 (program_space::~program_space): Remove intro comment. Call
7663 remove_program_space.
7664 (delete_program_space): Delete.
7665 * progspace.h (program_space::program_space): Make explicit. Move
7666 intro comment here, adjusted.
7667 (program_space::~program_space): Move intro comment here,
7668 adjusted.
7669 (delete_program_space): Remove.
7670
a010605f
TT
76712020-04-16 Tom Tromey <tromey@adacore.com>
7672
7673 * windows-nat.c (windows_nat::handle_access_violation): New
7674 function.
7675 * nat/windows-nat.h (handle_access_violation): Declare.
7676 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7677 windows-nat.c. Call handle_access_violation.
7678
efba5c23
TV
76792020-04-16 Tom de Vries <tdevries@suse.de>
7680
7681 PR symtab/25791
7682 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7683 CUs without psymtab.
7684
97ed802d
KB
76852020-04-16 Kevin Buettner <kevinb@redhat.com>
7686
7687 * python/python.c (do_start_initialization): Don't call
7688 PyEval_InitThreads for Python 3.9 and beyond.
7689
c7d64809
KR
76902020-04-15 Kamil Rytarowski <n54@gmx.com>
7691
7692 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7693 thread functions.
7694 (obsd_nat_target::wait): Likewise.
7695
ce127a96
TT
76962020-04-15 Tom Tromey <tromey@adacore.com>
7697
7698 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7699 (DEBUG_EXCEPT): Use debug_printf.
7700
99f1bc6a
AB
77012020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7702
7703 * completer.c (class completion_tracker::completion_hash_entry)
7704 <hash_name>: New member function.
7705 (completion_tracker::discard_completions): New callback to hash a
7706 completion_hash_entry, pass this to htab_create_alloc.
7707
a0e9b532
JT
77082016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7709
7710 * windows-nat.c (windows_make_so): Warn rather than stopping with
7711 an error if realpath() fails.
7712
06ca5dd4
KR
77132020-04-14 Kamil Rytarowski <n54@gmx.com>
7714
7715 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7716 (nbsd_nat_target::info_proc): Add do_status.
7717
194d088f
TV
77182020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7719 Tom de Vries <tdevries@suse.de>
7720
7721 PR symtab/25718
7722 * psympriv.h (struct partial_symtab::read_symtab)
7723 (struct partial_symtab::expand_psymtab)
7724 (struct partial_symtab::read_dependencies): Update comments.
7725 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7726 read_symtab for includer.
7727 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7728 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7729 (struct dwarf2_include_psymtab::m_readin): Remove.
7730 (struct dwarf2_include_psymtab::includer): New member function.
7731 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7732
c1a66c06
TV
77332020-04-14 Tom de Vries <tdevries@suse.de>
7734
7735 PR symtab/25720
7736 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7737 with NULL symbol_matcher and lookup_name.
7738 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7739 and lookup_name.
7740 * dwarf2/read.c (dw2_expand_symtabs_matching)
7741 (dw2_debug_names_expand_symtabs_matching): Same.
7742 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7743 Make lookup_name a pointer. Update comment.
7744 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7745 lookup_name being a pointer.
7746 * symfile.c (expand_symtabs_matching): Same.
7747 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7748 * linespec.c (iterate_over_all_matching_symtabs): Same.
7749
400b5eca
TT
77502020-04-13 Tom Tromey <tom@tromey.com>
7751
7752 * run-on-main-thread.c: Update include.
7753 * unittests/main-thread-selftests.c: Update include.
7754 * tui/tui-win.c: Update include.
7755 * tui/tui-io.c: Update include.
7756 * tui/tui-interp.c: Update include.
7757 * tui/tui-hooks.c: Update include.
7758 * top.h: Update include.
7759 * top.c: Update include.
7760 * ser-base.c: Update include.
7761 * remote.c: Update include.
7762 * remote-notif.c: Update include.
7763 * remote-fileio.c: Update include.
7764 * record-full.c: Update include.
7765 * record-btrace.c: Update include.
7766 * python/python.c: Update include.
7767 * posix-hdep.c: Update include.
7768 * mingw-hdep.c: Update include.
7769 * mi/mi-main.c: Update include.
7770 * mi/mi-interp.c: Update include.
7771 * main.c: Update include.
7772 * linux-nat.c: Update include.
7773 * interps.c: Update include.
7774 * infrun.c: Update include.
7775 * inf-loop.c: Update include.
7776 * event-top.c: Update include.
7777 * event-loop.c: Move to ../gdbsupport/.
7778 * event-loop.h: Move to ../gdbsupport/.
7779 * async-event.h: Update include.
7780 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7781
93b54c8e
TT
77822020-04-13 Tom Tromey <tom@tromey.com>
7783
7784 * tui/tui-win.c: Include async-event.h.
7785 * remote.c: Include async-event.h.
7786 * remote-notif.c: Include async-event.h.
7787 * record-full.c: Include async-event.h.
7788 * record-btrace.c: Include async-event.h.
7789 * infrun.c: Include async-event.h.
7790 * event-top.c: Include async-event.h.
7791 * event-loop.h: Move some declarations to async-event.h.
7792 * event-loop.c: Don't include ser-event.h or top.h. Move some
7793 code to async-event.c.
7794 * async-event.h: New file.
7795 * async-event.c: New file.
7796 * Makefile.in (COMMON_SFILES): Add async-event.c.
7797 (HFILES_NO_SRCDIR): Add async-event.h.
7798
c1cd3163
TT
77992020-04-13 Tom Tromey <tom@tromey.com>
7800
7801 * utils.c (flush_streams): New function.
7802 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7803
29f2bf4f
TT
78042020-04-13 Tom Tromey <tom@tromey.com>
7805
7806 * event-loop.c (handle_file_event): Use warning, not
7807 printf_unfiltered.
7808
98029d02
TT
78092020-04-13 Tom Tromey <tom@tromey.com>
7810
7811 * event-loop.c: Include <chrono>.
7812
06cc9596
TT
78132020-04-13 Tom Tromey <tom@tromey.com>
7814
7815 * gdb_select.h: Move to ../gdbsupport/.
7816 * event-loop.c: Update include path.
7817 * top.c: Update include path.
7818 * ser-base.c: Update include path.
7819 * ui-file.c: Update include path.
7820 * ser-tcp.c: Update include path.
7821 * guile/scm-ports.c: Update include path.
7822 * posix-hdep.c: Update include path.
7823 * ser-unix.c: Update include path.
7824 * gdb_usleep.c: Update include path.
7825 * mingw-hdep.c: Update include path.
7826 * inflow.c: Update include path.
7827 * infrun.c: Update include path.
7828 * event-top.c: Update include path.
7829
8ae8e197
TT
78302020-04-13 Tom Tromey <tom@tromey.com>
7831
7832 * configure: Rebuild.
7833 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7834
58cf28e8
TT
78352020-04-13 Tom Tromey <tom@tromey.com>
7836
7837 * event-loop.h (start_event_loop): Don't declare.
7838 * event-loop.c (start_event_loop): Move...
7839 * main.c (start_event_loop): ...here. Now static.
7840
b7f999ae
SDJ
78412020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7842
7843 * MAINTAINERS: Update my email address.
7844
1085dfd4
KR
78452020-04-12 Kamil Rytarowski <n54@gmx.com>
7846
7847 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7848 IP_ALL.
7849
49d1d1f5
KR
78502020-04-12 Kamil Rytarowski <n54@gmx.com>
7851
7852 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7853 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7854
b4848d2a
KR
78552020-04-12 Kamil Rytarowski <n54@gmx.com>
7856
7857 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7858 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7859
51c133d5
KR
78602020-04-12 Kamil Rytarowski <n54@gmx.com>
7861
7862 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7863
54b8cbd0
KR
78642020-04-11 Kamil Rytarowski <n54@gmx.com>
7865
7866 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7867 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7868 (nbsd_nat_target::info_proc): New functions.
7869 * nbsd-nat.c (kinfo_get_vmmap): New function.
7870 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7871 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7872 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7873 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7874 functions.
7875 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7876 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7877 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7878 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7879 (KINFO_VME_FLAG_GROWS_DOWN): New.
7880
cf83625d
AS
78812020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7882
7883 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7884 bit shift.
7885
0c4311ab
TT
78862020-04-10 Tom Tromey <tromey@adacore.com>
7887
7888 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7889
3e65b3e9
TT
78902020-04-10 Tom Tromey <tromey@adacore.com>
7891
7892 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7893 separate debug files.
7894
13302e95
HD
78952020-04-10 Hannes Domani <ssbssa@yahoo.de>
7896
7897 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7898 Move to...
7899 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7900 ... here.
7901 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7902 Check for STATUS_WX86_BREAKPOINT.
7903 (windows_nat_target::wait): Same.
7904
bdfc1e8a
TV
79052020-04-10 Tom de Vries <tdevries@suse.de>
7906
7907 PR cli/25808
7908 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7909
f4460aec
SM
79102020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7911
7912 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7913 (Write After Approval): Remove Tom de Vries.
7914
a25198bb
BE
79152020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7916
7917 revert partially:
7918 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7919
aac66a4c
SM
7920 * buildsym.c (record_line): Fix undefined behavior and preserve
7921 lines at eof.
a25198bb 7922
206c98a6
KR
79232020-04-09 Kamil Rytarowski <n54@gmx.com>
7924
7925 * auxv.h (svr4_auxv_parse): New.
7926 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7927 and generic_auxv_parse.
7928 (svr4_auxv_parse): Add.
7929 * obsd-tdep.c: Include "auxv.h".
7930 (obsd_auxv_parse): Remove.
7931 (obsd_init_abi): Remove comment.
7932 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7933 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7934 * nbsd-tdep.c: Include "auxv.h".
7935 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7936
71fbdbaf
TT
79372020-04-08 Tom Tromey <tromey@adacore.com>
7938
7939 * nat/windows-nat.h (last_wait_event): Don't declare.
7940 (wait_for_debug_event): Update comment.
7941 * nat/windows-nat.c (last_wait_event): Now static.
7942
2c1d95e8
TT
79432020-04-08 Tom Tromey <tromey@adacore.com>
7944
7945 * windows-nat.c (wait_for_debug_event): Move to
7946 nat/windows-nat.c.
7947 * nat/windows-nat.h (wait_for_debug_event): Declare.
7948 * nat/windows-nat.c (wait_for_debug_event): Move from
7949 windows-nat.c. No longer static.
7950
d2977bc4
TT
79512020-04-08 Tom Tromey <tromey@adacore.com>
7952
7953 * windows-nat.c (get_windows_debug_event): Use
7954 fetch_pending_stop.
7955 * nat/windows-nat.h (fetch_pending_stop): Declare.
7956 * nat/windows-nat.c (fetch_pending_stop): New function.
7957
e758e19c
TT
79582020-04-08 Tom Tromey <tromey@adacore.com>
7959
7960 * windows-nat.c (windows_continue): Use matching_pending_stop and
7961 continue_last_debug_event.
7962 * nat/windows-nat.h (matching_pending_stop)
7963 (continue_last_debug_event): Declare.
7964 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7965 (matching_pending_stop, continue_last_debug_event): New
7966 functions.
7967
8d30e395
TT
79682020-04-08 Tom Tromey <tromey@adacore.com>
7969
7970 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7971 (handle_exception_result): Move to nat/windows-nat.h.
7972 (DEBUG_EXCEPTION_SIMPLE): Remove.
7973 (windows_nat::handle_ms_vc_exception): New function.
7974 (handle_exception): Move to nat/windows-nat.c.
7975 (get_windows_debug_event): Update.
7976 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7977 nat/windows-nat.c.
7978 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7979 (handle_exception_result): Move from windows-nat.c.
7980 (handle_exception): Declare.
7981 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7982 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7983 windows-nat.c.
7984
29de418d
TT
79852020-04-08 Tom Tromey <tromey@adacore.com>
7986
7987 * windows-nat.c (exception_count, event_count): Remove.
7988 (handle_exception, get_windows_debug_event)
7989 (do_initial_windows_stuff): Update.
7990
a816ba18
TT
79912020-04-08 Tom Tromey <tromey@adacore.com>
7992
7993 * windows-nat.c (windows_nat::handle_load_dll)
7994 (windows_nat::handle_unload_dll): Rename. No longer static.
7995 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7996 Declare.
7997
a00caa12
TT
79982020-04-08 Tom Tromey <tromey@adacore.com>
7999
8000 * complaints.h (stop_whining): Declare at top-level.
8001 (complaint): Don't declare stop_whining.
8002
d41b524f
TT
80032020-04-08 Tom Tromey <tromey@adacore.com>
8004
8005 * windows-nat.c (windows_nat::handle_output_debug_string):
8006 Rename. No longer static.
8007 * nat/windows-nat.h (handle_output_debug_string): Declare.
8008
3c76026d
TT
80092020-04-08 Tom Tromey <tromey@adacore.com>
8010
8011 * windows-nat.c (current_process_handle, current_process_id)
8012 (main_thread_id, last_sig, current_event, last_wait_event)
8013 (current_windows_thread, desired_stop_thread_id, pending_stops)
8014 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8015 (display_selectors, fake_create_process)
8016 (get_windows_debug_event): Update.
8017 * nat/windows-nat.h (current_process_handle, current_process_id)
8018 (main_thread_id, last_sig, current_event, last_wait_event)
8019 (current_windows_thread, desired_stop_thread_id, pending_stops)
8020 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8021 * nat/windows-nat.c (current_process_handle, current_process_id)
8022 (main_thread_id, last_sig, current_event, last_wait_event)
8023 (current_windows_thread, desired_stop_thread_id, pending_stops)
8024 (siginfo_er): New globals. Move from windows-nat.c.
8025
9d8679cc
TT
80262020-04-08 Tom Tromey <tromey@adacore.com>
8027
8028 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8029 (handle_load_dll): Update.
8030 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8031
28688adf
TT
80322020-04-08 Tom Tromey <tromey@adacore.com>
8033
8034 * windows-nat.c (enum thread_disposition_type): Move to
8035 nat/windows-nat.h.
8036 (windows_nat::thread_rec): Rename from thread_rec. No longer
8037 static.
8038 (windows_add_thread, windows_nat_target::fetch_registers)
8039 (windows_nat_target::store_registers, handle_exception)
8040 (windows_nat_target::resume, get_windows_debug_event)
8041 (windows_nat_target::get_tib_address)
8042 (windows_nat_target::thread_name)
8043 (windows_nat_target::thread_alive): Update.
8044 * nat/windows-nat.h (enum thread_disposition_type): Move from
8045 windows-nat.c.
8046 (thread_rec): Declare.
8047
4834dad0
TT
80482020-04-08 Tom Tromey <tromey@adacore.com>
8049
8050 * windows-nat.c: Add "using namespace".
8051 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8052 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8053
65bafd5b
TT
80542020-04-08 Tom Tromey <tromey@adacore.com>
8055
8056 * nat/windows-nat.h (struct windows_thread_info): Declare
8057 destructor.
8058 * nat/windows-nat.c (~windows_thread_info): New.
8059
0a4afda3
TT
80602020-04-08 Tom Tromey <tromey@adacore.com>
8061
8062 PR gdb/22992
8063 * windows-nat.c (current_event): Update comment.
8064 (last_wait_event, desired_stop_thread_id): New globals.
8065 (struct pending_stop): New.
8066 (pending_stops): New global.
8067 (windows_nat_target) <stopped_by_sw_breakpoint>
8068 <supports_stopped_by_sw_breakpoint>: New methods.
8069 (windows_fetch_one_register): Add assertions. Adjust PC.
8070 (windows_continue): Handle pending stops. Suspend other threads
8071 when stepping. Use last_wait_event
8072 (wait_for_debug_event): New function.
8073 (get_windows_debug_event): Use wait_for_debug_event. Handle
8074 pending stops. Queue spurious stops.
8075 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8076 (windows_nat_target::kill): Use wait_for_debug_event.
8077 * nat/windows-nat.h (struct windows_thread_info)
8078 <stopped_at_software_breakpoint>: New field.
8079 * nat/windows-nat.c (windows_thread_info::resume): Clear
8080 stopped_at_software_breakpoint.
8081
8e61ebec
TT
80822020-04-08 Tom Tromey <tromey@adacore.com>
8083
8084 * windows-nat.c (enum thread_disposition_type): New.
8085 (thread_rec): Replace "get_context" parameter with "disposition";
8086 change type.
8087 (windows_add_thread, windows_nat_target::fetch_registers)
8088 (windows_nat_target::store_registers, handle_exception)
8089 (windows_nat_target::resume, get_windows_debug_event)
8090 (windows_nat_target::get_tib_address)
8091 (windows_nat_target::thread_name)
8092 (windows_nat_target::thread_alive): Update.
8093
98a03287
TT
80942020-04-08 Tom Tromey <tromey@adacore.com>
8095
8096 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8097 (windows_continue): Use windows_continue::resume.
8098 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8099 resume>: Declare new methods.
8100 * nat/windows-nat.c: New file.
8101 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8102
7c7411bc
TT
81032020-04-08 Tom Tromey <tromey@adacore.com>
8104
8105 * windows-nat.c (windows_add_thread, windows_delete_thread)
8106 (windows_nat_target::fetch_registers)
8107 (windows_nat_target::store_registers, fake_create_process)
8108 (windows_nat_target::resume, windows_nat_target::resume)
8109 (get_windows_debug_event, windows_nat_target::wait)
8110 (windows_nat_target::pid_to_str)
8111 (windows_nat_target::get_tib_address)
8112 (windows_nat_target::get_ada_task_ptid)
8113 (windows_nat_target::thread_name)
8114 (windows_nat_target::thread_alive): Use lwp, not tid.
8115
2950fdf7
TT
81162020-04-08 Tom Tromey <tromey@adacore.com>
8117
8118 * windows-nat.c (handle_exception)
8119 (windows_nat_target::thread_name): Update.
8120 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8121 <name>: Now unique_xmalloc_ptr.
8122
62fe396b
TT
81232020-04-08 Tom Tromey <tromey@adacore.com>
8124
8125 * windows-nat.c (thread_rec)
8126 (windows_nat_target::fetch_registers): Update.
8127 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8128 Update comment.
8129 <debug_registers_changed, reload_context>: Now bool.
8130
e9534bd2
TT
81312020-04-08 Tom Tromey <tromey@adacore.com>
8132
8133 * windows-nat.c (windows_add_thread): Use new.
8134 (windows_init_thread_list, windows_delete_thread): Use delete.
8135 (get_windows_debug_event): Update.
8136 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8137 destructor, and initializers.
8138
ae1f8880
TT
81392020-04-08 Tom Tromey <tromey@adacore.com>
8140
8141 * windows-nat.c (struct windows_thread_info): Remove.
8142 * nat/windows-nat.h: New file.
8143
55a1e039
TT
81442020-04-08 Tom Tromey <tromey@adacore.com>
8145
8146 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8147 (thread_rec, windows_add_thread, windows_delete_thread)
8148 (windows_continue): Update.
8149
93366324
TT
81502020-04-08 Tom Tromey <tromey@adacore.com>
8151
8152 * windows-nat.c (struct windows_thread_info): Remove typedef.
8153 (thread_head): Remove.
8154 (thread_list): New global.
8155 (thread_rec, windows_add_thread, windows_init_thread_list)
8156 (windows_delete_thread, windows_continue): Update.
8157
0f2265e2
SM
81582020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8159
8160 * windows-tdep.h (windows_init_abi): Add comment.
8161 (cygwin_init_abi): New declaration.
8162 * windows-tdep.c: Split signal enumeration in two, one for
8163 Windows and one for Cygwin.
8164 (windows_gdb_signal_to_target): Only deal with signal of the
8165 Windows OS ABI.
8166 (cygwin_gdb_signal_to_target): New function.
8167 (windows_init_abi): Rename to windows_init_abi_common, don't set
8168 gdb_signal_to_target gdbarch method. Add new new function with
8169 this name.
8170 (cygwin_init_abi): New function.
8171 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8172 comment. Don't call windows_init_abi.
8173 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8174 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8175 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8176 i386_windows_init_abi_common, don't call windows_init_abi. Add
8177 a new function of this name.
8178 (i386_cygwin_init_abi): New function.
8179 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8180 OS ABI Cygwin.
8181
3810f182
SM
81822020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8183
8184 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8185 parameter.c.
8186 (dwarf2_read_gdb_index): Update.
8187
063f8e80
KR
81882020-04-07 Kamil Rytarowski <n54@gmx.com>
8189
8190 * nbsd-tdep.c: Include "objfiles.h".
8191 (nbsd_skip_solib_resolver): New.
8192 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8193
85a9510c 81942020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8195
8196 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8197 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8198 with DW_LLE_base_addressx are being emitted in DWARFv5.
8199 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8200 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8201 unsigned integer.
8202
9fc3eaae 82032020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8204
8205 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8206 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8207 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8208 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8209 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8210 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8211 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8212
8213
41144253 82142020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8215
8216 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8217 (read_loclist_index): New function definition.
8218 (lookup_loclist_base): New function definition.
8219 (read_loclist_header): New function definition.
8220 (dwarf2_cu): Add loclist_base and loclist_header field.
8221 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8222 (read_full_die_1): Read the value of DW_AT_loclists_base.
8223 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8224 (read_attribute_value): Handle DW_FORM_loclistx.
8225 (skip_one_die): Handle DW_FORM_loclistx.
8226 (loclist_header): New structure declaration.
8227 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8228
9f4e76a4
SM
82292020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8230
8231 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8232 constructor. Remove `addr` parameter from other constructor and
8233 add `per_cu` parameter.
8234 * dwarf2/read.c (create_partial_symtab): Update.
8235
25c11aca
TV
82362020-04-07 Tom de Vries <tdevries@suse.de>
8237
8238 PR symtab/25796
8239 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8240 (partial_die_info::fixup): Inherit has_const_value.
8241
5707e24b
TV
82422020-04-07 Tom de Vries <tdevries@suse.de>
8243
8244 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8245 symbols without address.
8246
05f00e22
KR
82472020-04-06 Kamil Rytarowski <n54@gmx.com>
8248
8249 * nbsd-nat.h (struct thread_info): Add forward declaration.
8250 (nbsd_nat_target::thread_alive): Add.
8251 (nbsd_nat_target::thread_name): Likewise.
8252 (nbsd_nat_target::update_thread_list): Likewise.
8253 (update_thread_list::post_attach): Likewise.
8254 (post_attach::pid_to_str): Likewise.
8255 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8256 (nbsd_thread_lister): Add.
8257 (nbsd_nat_target::thread_alive): Likewise.
8258 (nbsd_nat_target::thread_name): Likewise.
8259 (nbsd_add_threads): Likewise.
8260 (update_thread_list::post_attach): Likewise.
8261 (nbsd_nat_target::update_thread_list): Likewise.
8262 (post_attach::pid_to_str): Likewise.
8263
6ee448cc
TT
82642020-04-06 Tom Tromey <tromey@adacore.com>
8265
8266 * ada-valprint.c (print_variant_part): Extract the variant field.
8267 (print_field_values): Use the field as the outer value when
8268 recursing.
8269
dea34e8c
TT
82702020-04-06 Tom Tromey <tromey@adacore.com>
8271
8272 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8273 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8274 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8275 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8276 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8277
93689ce9
TT
82782020-04-06 Tom Tromey <tromey@adacore.com>
8279
8280 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8281 TYPE_CODE_ERROR.
8282
79743962
KR
82832020-04-06 Kamil Rytarowski <n54@gmx.com>
8284
8285 * nbsd-tdep.c: Include "gdbarch.h".
8286 Define enum with NetBSD signal numbers.
8287 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8288 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8289 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8290 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8291 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8292 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8293 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8294 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8295 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8296 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8297 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8298 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8299
9e7c9a03
HD
83002020-04-03 Hannes Domani <ssbssa@yahoo.de>
8301
8302 PR gdb/25325
8303 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8304
d9e49b61
TT
83052020-04-03 Tom Tromey <tromey@adacore.com>
8306
8307 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8308 Read constant block.
8309
e0fc5c3f
SM
83102020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8311
8312 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8313 (gdb_bfd_get_full_section_contents): New declaration.
8314 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8315 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8316 gdb_bfd_get_full_section_contents.
8317
e2ff18a0
SM
83182020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8319
8320 * exec.c (build_section_table): Replace internal_error with
8321 gdb_assert.
8322 (section_table_xfer_memory_partial): Likewise.
8323 * mdebugread.c (parse_partial_symbols): Likewise.
8324 * psymtab.c (lookup_partial_symbol): Likewise.
8325 * utils.c (wrap_here): Likewise.
8326
0830d301
TT
83272020-04-02 Tom Tromey <tromey@adacore.com>
8328
8329 * f-lang.c (build_fortran_types): Use arch_type to initialize
8330 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8331
e7da7f8f
TT
83322020-04-02 Tom Tromey <tromey@adacore.com>
8333
8334 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8335 of attributes.
8336
c90d28ac
AB
83372020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8338 Bernd Edlinger <bernd.edlinger@hotmail.de>
8339 Tom Tromey <tromey@adacore.com>
8340
8341 * buildsym.c (buildsym_compunit::record_line): Remove
8342 deduplication code.
8343
1aa98955
TV
83442020-04-02 Tom de Vries <tdevries@suse.de>
8345
8346 PR ada/24671
8347 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8348
d3214198
TV
83492020-04-02 Tom de Vries <tdevries@suse.de>
8350
8351 * dwarf2/read.c (dwarf2_gdb_index_functions,
8352 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8353 NULL.
8354 * psymtab.c (psym_lookup_global_symbol_language): New function.
8355 (psym_functions): Init psym_lookup_global_symbol_language with
8356 psym_lookup_global_symbol_language.
8357 * symfile-debug.c (debug_sym_quick_functions): Init
8358 lookup_global_symbol_language with NULL.
8359 * symfile.c (set_initial_language): Remove fixme comment.
8360 * symfile.h (struct quick_symbol_functions): Add
8361 lookup_global_symbol_language.
8362 * symtab.c (find_quick_global_symbol_language): New function.
8363 (find_main_name): Use find_quick_global_symbol_language.
8364
2836752f
SM
83652020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8366
8367 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8368
64dc2d4b
BE
83692020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8370
8371 * buildsym.c (record_line): Fix undefined behavior and preserve
8372 lines at eof.
8373
bbe3dc41
BE
83742020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8375
8376 * buildsym.c (record_line): Fix the resizing condition.
8377
6b4a335b
TT
83782020-04-01 Tom Tromey <tom@tromey.com>
8379
8380 * value.h (value_literal_complex): Add comment.
8381 * valops.c (value_literal_complex): Refer to value.h.
8382
3638a098
TT
83832020-04-01 Tom Tromey <tom@tromey.com>
8384
8385 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8386 (scalar_type): New rule, from typebase.
8387 (typebase): Use scalar_type. Recognize complex types.
8388 (field_name): Handle FLOAT_KEYWORD.
8389 (ident_tokens): Add _Complex and __complex__.
8390
c34e8714
TT
83912020-04-01 Tom Tromey <tom@tromey.com>
8392
8393 PR exp/25299:
8394 * valarith.c (promotion_type, complex_binop): New functions.
8395 (scalar_binop): Handle complex numbers. Use promotion_type.
8396 (value_pos, value_neg, value_complement): Handle complex numbers.
8397
fa649bb7
TT
83982020-04-01 Tom Tromey <tom@tromey.com>
8399
8400 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8401 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8402 (parse_number): Handle complex numbers.
8403
981c08ce
TT
84042020-04-01 Tom Tromey <tom@tromey.com>
8405
8406 * c-valprint.c (c_decorations): Change complex suffix to "i".
8407
4c99290d
TT
84082020-04-01 Tom Tromey <tom@tromey.com>
8409
8410 * valprint.c (generic_value_print_complex): Use accessors.
8411 * value.h (value_real_part, value_imaginary_part): Declare.
8412 * valops.c (value_real_part, value_imaginary_part): New
8413 functions.
8414 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8415
5b930b45
TT
84162020-04-01 Tom Tromey <tom@tromey.com>
8417
8418 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8419 (read_range_type): Update.
8420 * mdebugread.c (basic_type): Update.
8421 * go-lang.c (build_go_types): Use init_complex_type.
8422 * gdbtypes.h (struct main_type) <complex_type>: New member.
8423 (init_complex_type): Update.
8424 (arch_complex_type): Don't declare.
8425 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8426 Make name if none given. Use alloc_type_copy. Look for cached
8427 complex type.
8428 (arch_complex_type): Remove.
8429 (gdbtypes_post_init): Use init_complex_type.
8430 * f-lang.c (build_fortran_types): Use init_complex_type.
8431 * dwarf2/read.c (read_base_type): Update.
8432 * d-lang.c (build_d_types): Use init_complex_type.
8433 * ctfread.c (read_base_type): Update.
8434
53cccef1
TBA
84352020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8436
8437 * infrun.c (stop_all_threads): Update assertion, plus when
8438 stopping threads, take into account that we might be trying
8439 to stop an all-stop target.
8440 (stop_waiting): Call 'stop_all_threads' if there exists a
8441 non-stop target.
8442
a0714d30
TBA
84432020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8444
8445 * target.h (exists_non_stop_target): New function declaration.
8446 * target.c (exists_non_stop_target): New function.
8447
60e22c1e
HD
84482020-04-01 Hannes Domani <ssbssa@yahoo.de>
8449
8450 PR gdb/24789
8451 * eval.c (is_integral_or_integral_reference): New function.
8452 (evaluate_subexp_standard): Allow integer references in
8453 pointer arithmetic.
8454
e139a727
TBA
84552020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8456
8457 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8458 check for no ptid in the stop reply when the target is non-stop.
8459
e0802d59
TT
84602020-04-01 Tom Tromey <tromey@adacore.com>
8461
8462 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8463 "name" parameter to rvalue reference. Initialize m_name_holder.
8464 <lookup_name_info>: New overloads.
8465 <name>: Return gdb::string_view.
8466 <c_str>: New method.
8467 <make_ignore_params>: Update.
8468 <search_name_hash>: Update.
8469 <language_lookup_name>: Return const char *.
8470 <m_name>: Change type.
8471 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8472 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8473 (lookup_name_info::match_any): Update.
8474 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8475 Update.
8476 * minsyms.c (linkage_name_str): Update.
8477 * language.c (default_symbol_name_matcher): Update.
8478 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8479 Update.
8480 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8481 (ada_lookup_name_info::ada_lookup_name_info): Update.
8482 (literal_symbol_name_matcher): Update.
8483
8c072cb6
TT
84842020-04-01 Tom Tromey <tromey@adacore.com>
8485
8486 * psymtab.c (psymtab_search_name): Remove function.
8487 (psym_lookup_symbol): Create search name and lookup name here.
8488 (lookup_partial_symbol): Remove "name" parameter; add
8489 lookup_name.
8490 (psym_expand_symtabs_for_function): Update.
8491
6f29a534
TT
84922020-03-31 Joel Jones <joelkevinjones@gmail.com>
8493
8494 PR tui/25597:
8495 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8496
af62665e
TT
84972020-03-31 Tom Tromey <tromey@adacore.com>
8498
8499 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8500 memcpy.
8501
d1a89da5
NC
85022020-03-30 Nelson Chu <nelson.chu@sifive.com>
8503
8504 * features/riscv/32bit-csr.xml: Regenerated.
8505 * features/riscv/64bit-csr.xml: Regenerated.
8506
d8af9068
TT
85072020-03-30 Tom Tromey <tromey@adacore.com>
8508
8509 * ada-valprint.c (print_variant_part): Update.
8510 * ada-lang.h (ada_which_variant_applies): Update.
8511 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8512 outer_valaddr parameters; replace with "outer" value parameter.
8513 (to_fixed_variant_branch_type): Update.
8514
227c0bf4
PFC
85152020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8516
8517 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8518 <list>. Remove inclusion of observable.h.
8519 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8520 (struct arch_lwp_info): New struct.
8521 (class ppc_linux_dreg_interface): New class.
8522 (struct ppc_linux_process_info): New struct.
8523 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8524 <low_new_clone, low_forget_process, low_prepare_to_resume>
8525 <copy_thread_dreg_state, mark_thread_stale>
8526 <mark_debug_registers_changed, register_hw_breakpoint>
8527 <clear_hw_breakpoint, register_wp, clear_wp>
8528 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8529 <num_memory_accesses, get_trigger_type>
8530 <create_watchpoint_request, hwdebug_point_cmp>
8531 <init_arch_lwp_info, get_arch_lwp_info>
8532 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8533 methods.
8534 <struct ptid_hash>: New inner struct.
8535 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8536 members.
8537 (saved_dabr_value, hwdebug_info, max_slots_number)
8538 (struct hw_break_tuple, struct thread_points, ppc_threads)
8539 (have_ptrace_hwdebug_interface)
8540 (hwdebug_find_thread_points_by_tid)
8541 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8542 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8543 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8544 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8545 use m_dreg_interface.
8546 (hwdebug_point_cmp): Change to...
8547 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8548 reference arguments instead of pointers.
8549 (ppc_linux_nat_target::ranged_break_num_registers): Use
8550 m_dreg_interface.
8551 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8552 m_dreg_interface. Call register_hw_breakpoint.
8553 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8554 m_dreg_interface. Call clear_hw_breakpoint.
8555 (get_trigger_type): Change to...
8556 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8557 comment.
8558 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8559 use m_dreg_interface. Call register_hw_breakpoint.
8560 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8561 use m_dreg_interface. Call clear_hw_breakpoint.
8562 (can_use_watchpoint_cond_accel): Change to...
8563 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8564 method. Update comment, use m_dreg_interface and
8565 m_process_info.
8566 (calculate_dvc): Change to...
8567 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8568 m_dreg_interface.
8569 (num_memory_accesses): Change to...
8570 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8571 (check_condition): Change to...
8572 (ppc_linux_nat_target::check_condition): ...this method.
8573 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8574 comment, use m_dreg_interface.
8575 (create_watchpoint_request): Change to...
8576 (ppc_linux_nat_target::create_watchpoint_request): ...this
8577 method. Use m_dreg_interface.
8578 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8579 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8580 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8581 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8582 (ppc_linux_nat_target::low_forget_process)
8583 (ppc_linux_nat_target::low_new_fork)
8584 (ppc_linux_nat_target::low_new_clone)
8585 (ppc_linux_nat_target::low_delete_thread)
8586 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8587 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8588 only call mark_thread_stale.
8589 (ppc_linux_thread_exit): Remove.
8590 (ppc_linux_nat_target::stopped_data_address): Change to...
8591 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8592 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8593 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8594 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8595 comment. Call low_stopped_data_address.
8596 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8597 m_dreg_interface.
8598 (ppc_linux_nat_target::masked_watch_num_registers): Use
8599 m_dreg_interface.
8600 (ppc_linux_nat_target::copy_thread_dreg_state)
8601 (ppc_linux_nat_target::mark_thread_stale)
8602 (ppc_linux_nat_target::mark_debug_registers_changed)
8603 (ppc_linux_nat_target::register_hw_breakpoint)
8604 (ppc_linux_nat_target::clear_hw_breakpoint)
8605 (ppc_linux_nat_target::register_wp)
8606 (ppc_linux_nat_target::clear_wp)
8607 (ppc_linux_nat_target::init_arch_lwp_info)
8608 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8609 (_initialize_ppc_linux_nat): Remove observer callback.
8610
4db10d8f
PFC
86112020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8612
8613 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8614 (ppc_linux_nat_target::auxv_parse)
8615 (ppc_linux_nat_target::read_description)
8616 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8617 Move up.
8618
1310c1b0
PFC
86192020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8620
8621 * linux-nat.h (low_new_clone): New method.
8622 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8623
69b037c3
SM
86242020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8625
8626 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8627 (dbx_expand_psymtab): ... this.
8628 (start_psymtab): Update.
8629 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8630 (mdebug_expand_psymtab): ... this.
8631 (parse_partial_symbols): Update.
8632 (new_psymtab): Update.
8633 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8634 (xcoff_expand_psymtab): ... this.
8635 (xcoff_start_psymtab): Update.
8636
48993951
SM
86372020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8638
8639 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8640 <expand_dependencies>: ... this.
8641 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8642 (partial_symtab::expand_dependencies): ... this.
8643 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8644 Update.
8645 (dwarf2_psymtab::expand_psymtab): Update.
8646 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8647 * mdebugread.c (psymtab_to_symtab_1): Update.
8648 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8649
3ad83046
SM
86502020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8651
8652 * psympriv.h (discard_psymtab): Remove.
8653 * dbxread.c (dbx_end_psymtab): Update.
8654 * xcoffread.c (xcoff_end_psymtab): Update.
8655
4d1b9ab6
TT
86562020-03-28 Tom Tromey <tom@tromey.com>
8657
8658 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8659 comment.
8660
f1749218
TT
86612020-03-28 Tom Tromey <tom@tromey.com>
8662
8663 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8664
ebea7626
HD
86652020-03-27 Hannes Domani <ssbssa@yahoo.de>
8666
8667 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8668
a879b4d5
JB
86692020-03-26 John Baldwin <jhb@FreeBSD.org>
8670
8671 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8672
0826b30a
TT
86732020-03-26 Tom Tromey <tom@tromey.com>
8674
8675 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8676 (mark_common_block_symbol_computed, read_tag_string_type)
8677 (attr_to_dynamic_prop, read_subrange_type): Update.
8678 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8679 to be methods on struct attribute.
8680 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8681 (read_call_site_scope, partial_die_info::read)
8682 (partial_die_info::read, lookup_die_type, follow_die_ref):
8683 Update.
8684 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8685 from dwarf2_get_ref_die_offset.
8686 (attribute::constant_value): New method, from
8687 dwarf2_get_attr_constant_value.
8688 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8689 Declare method.
8690 <constant_value>: New method.
8691
2b2558bf
TT
86922020-03-26 Tom Tromey <tom@tromey.com>
8693
8694 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8695 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8696 (dwarf_type_encoding_name): Move to stringify.c.
8697 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8698 * dwarf2/stringify.c: New file.
8699 * dwarf2/stringify.h: New file.
8700
eeb64781
TT
87012020-03-26 Tom Tromey <tom@tromey.com>
8702
8703 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8704 Rewrite.
8705
a39fdb41
TT
87062020-03-26 Tom Tromey <tom@tromey.com>
8707
8708 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8709 methods.
8710 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8711 (lookup_ranges_base): Likewise.
8712 (read_cutu_die_from_dwo, read_full_die_1): Update.
8713
436c571c
TT
87142020-03-26 Tom Tromey <tom@tromey.com>
8715
8716 * dwarf2/read.c (read_import_statement, read_file_scope)
8717 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8718 (read_lexical_block_scope, read_call_site_scope)
8719 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8720 (handle_struct_member_die, process_structure_scope)
8721 (update_enumeration_type_from_children)
8722 (process_enumeration_scope, read_array_type, read_common_block)
8723 (read_namespace, read_module, read_subroutine_type): Update.
8724 (sibling_die): Remove.
8725
052c8bb8
TT
87262020-03-26 Tom Tromey <tom@tromey.com>
8727
8728 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8729 (build_type_psymtabs_reader, read_structure_type)
8730 (read_enumeration_type, read_full_die_1): Update.
8731 (dwarf2_attr_no_follow): Move to die.h.
8732 * dwarf2/die.h (struct die_info) <attr>: New method.
8733
2b24b6e4
TT
87342020-03-26 Tom Tromey <tom@tromey.com>
8735
8736 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8737 <base_address>: Now an optional.
8738 (dwarf2_find_base_address, dwarf2_rnglists_process)
8739 (dwarf2_ranges_process, fill_in_loclist_baton)
8740 (dwarf2_symbol_mark_computed): Update.
8741
c2d50fd0
TT
87422020-03-26 Tom Tromey <tom@tromey.com>
8743
8744 * dwarf2/read.c (struct die_info): Move to die.h.
8745 * dwarf2/die.h: New file.
8746
0df7ad3a
TT
87472020-03-26 Tom Tromey <tom@tromey.com>
8748
8749 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8750 * dwarf2/read.c
8751 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8752 Move to line-header.c.
8753 (read_checked_initial_length_and_offset, read_formatted_entries):
8754 Likewise.
8755 (dwarf_decode_line_header): Split into two.
8756 * dwarf2/line-header.c
8757 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8758 Move from read.c.
8759 (read_checked_initial_length_and_offset, read_formatted_entries):
8760 Likewise.
8761 (dwarf_decode_line_header): New function, split from read.c.
8762
86c0bb4c
TT
87632020-03-26 Tom Tromey <tom@tromey.com>
8764
8765 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8766 Declare method.
8767 * dwarf2/read.c (read_attribute_value): Update.
8768 (dwarf2_per_objfile::read_line_string): Rename from
8769 read_indirect_line_string.
8770 (read_formatted_entries): Update.
8771
2ef46c2f
TT
87722020-03-26 Tom Tromey <tom@tromey.com>
8773
8774 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8775 variable.
8776
4f9c1eda
TT
87772020-03-26 Tom Tromey <tom@tromey.com>
8778
8779 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8780 const.
8781 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8782 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8783 parameter const.
8784
5a0e026f
TT
87852020-03-26 Tom Tromey <tom@tromey.com>
8786
8787 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8788 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8789 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8790 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8791
8844c11b
TT
87922020-03-26 Tom Tromey <tom@tromey.com>
8793
8794 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8795 file_names_size, file_full_name, file_file_name>: Use const.
8796 <file_name_at, file_names>: Add const overload.
8797 * dwarf2/line-header.c (line_header::file_file_name)
8798 (line_header::file_full_name): Update.
8799
c90ec28a
TT
88002020-03-26 Tom Tromey <tom@tromey.com>
8801
8802 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8803 (macro_start_file, consume_improper_spaces)
8804 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8805 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8806 (dwarf_decode_macros): Move to macro.c.
8807 * dwarf2/macro.c: New file.
8808 * dwarf2/macro.h: New file.
8809 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8810
4f44ae6c
TT
88112020-03-26 Tom Tromey <tom@tromey.com>
8812
8813 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8814 method.
8815 * dwarf2/section.c: New method. From
8816 read_indirect_string_at_offset_from.
8817 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8818 (read_indirect_string_at_offset_from): Move to section.c.
8819 (read_indirect_string_at_offset): Rewrite.
8820 (read_indirect_line_string_at_offset): Remove.
8821 (read_indirect_string, read_indirect_line_string)
8822 (dwarf_decode_macro_bytes): Update.
8823
a0194fa8
TT
88242020-03-26 Tom Tromey <tom@tromey.com>
8825
8826 * dwarf2/section.h (struct dwarf2_section_info)
8827 <overload_complaint>: Declare.
8828 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8829 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8830 Rename from dwarf2_section_buffer_overflow_complaint.
8831 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8832 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8833
3d27bbdb
TT
88342020-03-26 Tom Tromey <tom@tromey.com>
8835
8836 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8837 Declare.
8838 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8839 Move from read.c.
8840 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8841 to section.c.
8842
9eac9650
TT
88432020-03-26 Tom Tromey <tom@tromey.com>
8844
8845 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8846
bf80d710
TT
88472020-03-26 Tom Tromey <tom@tromey.com>
8848
8849 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8850 "builder".
8851 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8852 parameter.
8853 (dwarf_decode_macros): Update.
8854
0314b390
TT
88552020-03-26 Tom Tromey <tom@tromey.com>
8856
8857 * dwarf2/read.c (read_attribute_value): Update.
8858 (read_indirect_string_from_dwz): Move to dwz.c; change into
8859 method.
8860 (dwarf_decode_macro_bytes): Update.
8861 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8862 * dwarf2/dwz.c: New file.
8863 * Makefile.in (COMMON_SFILES): Add dwz.c.
8864
9fda78b6
TT
88652020-03-26 Tom Tromey <tom@tromey.com>
8866
8867 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8868 * dwarf2/read.c: Add include.
8869 * dwarf2/index-write.c: Add include.
8870 * dwarf2/index-cache.c: Add include.
8871 * dwarf2/dwz.h: New file.
8872
33aa3c10
TT
88732020-03-25 Tom Tromey <tom@tromey.com>
8874
8875 * compile/compile-object-load.c (get_out_value_type): Mention
8876 correct symbol name in error message.
8877
d503b685
HD
88782020-03-25 Hannes Domani <ssbssa@yahoo.de>
8879
8880 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8881
7b1eff95
TV
88822020-03-25 Tom de Vries <tdevries@suse.de>
8883
8884 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8885 * symmisc.c (dump_symtab_1): Print user and includes fields.
8886 (maintenance_info_symtabs): Same.
8887
dd895392
AB
88882020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8889
8890 PR gdb/25534
8891 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8892 (riscv_regcache_cooked_write): New function.
8893 (riscv_push_dummy_call): Use new function.
8894 (riscv_return_value): Likewise.
8895
5ab2fbf1
SM
88962020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8897
8898 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8899 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8900 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8901 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8902 * infrun.c (follow_fork): Likewise.
8903 (follow_fork_inferior): Likewise.
8904 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8905 * linux-nat.h (class linux_nat_target): Likewise.
8906 * remote.c (class remote_target) <follow_fork>: Likewise.
8907 (remote_target::follow_fork): Likewise.
8908 * target-delegates.c: Re-generate.
8909 * target.c (default_follow_fork): Likewise.
8910 (target_follow_fork): Likewise.
8911 * target.h (struct target_ops) <follow_fork>: Likewise.
8912 (target_follow_fork): Likewise.
8913
a64fafb5
TV
89142020-03-24 Tom de Vries <tdevries@suse.de>
8915
8916 * psymtab.c (maintenance_info_psymtabs): Print user field.
8917
fe26d3a3
TT
89182020-03-20 Tom Tromey <tromey@adacore.com>
8919
8920 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8921 const.
8922 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8923 const.
8924
c884cc46
SM
89252020-03-20 Simon Marchi <simon.marchi@efficios.com>
8926
8927 * ptrace.m4: Don't check for ptrace declaration.
8928 * config.in: Re-generate.
8929 * configure: Re-generate.
8930 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8931 not defined.
8932
1ff700c2
KR
89332020-03-20 Kamil Rytarowski <n54@gmx.com>
8934
8935 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8936 `PTRACE_TYPE_RET'.
8937 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8938 * sparc-nat.c (gdb_ptrace): Likewise.
8939 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8940
f7d4f0b1
TT
89412020-03-20 Tom Tromey <tromey@adacore.com>
8942
8943 * c-exp.y (lex_one_token): Fix assert.
8944
f67210ff
TT
89452020-03-20 Tom Tromey <tromey@adacore.com>
8946
8947 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8948 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8949 strncpy call.
8950
1773be9e
TT
89512020-03-20 Tom Tromey <tromey@adacore.com>
8952
8953 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8954
70304be9
TT
89552020-03-20 Tom Tromey <tromey@adacore.com>
8956
8957 * ada-valprint.c (print_variant_part): Remove parameters; switch
8958 to value-based API.
8959 (print_field_values): Likewise.
8960 (ada_val_print_struct_union): Likewise.
8961 (ada_value_print_1): Update.
8962
9faa006d
KR
89632020-03-20 Kamil Rytarowski <n54@gmx.com>
8964
8965 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8966 nbsd_nat_target instead of inf_ptrace_target.
8967 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8968 nbsd_nat_target.
8969
4a90f062
KR
89702020-03-20 Kamil Rytarowski <n54@gmx.com>
8971
8972 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8973 it to the ptrace call.
8974 * (store_registers): Likewise.
8975
89762020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
8977
8978 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8979 it to the ptrace call.
8980 * (store_registers): Likewise.
8981
2d07da27
LM
89822020-03-19 Luis Machado <luis.machado@linaro.org>
8983
8984 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8985 valid, fetch vg value from ptrace.
8986
f09db380
KR
89872020-03-19 Kamil Rytarowski <n54@gmx.com>
8988 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8989 * inf-ptrace.c: Likewise.
8990 * (gdb_ptrace): Add.
8991 * (inf_ptrace_target::resume): Update.
8992 * (inf_ptrace_target::xfer_partial): Likewise.
8993 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8994 * (inf_ptrace_peek_poke): Update.
8995
fcc7376e
KR
89962020-03-19 Kamil Rytarowski <n54@gmx.com>
8997
8998 * x86-bsd-nat.c (gdb_ptrace): New.
8999 * (x86bsd_dr_set): Add new argument `ptid'.
9000 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9001 x86bsd_dr_set_addr): Update.
9002
cada5fc9
AB
90032020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9004
9005 * remote.c (remote_target::process_stop_reply): Handle events for
9006 all threads differently.
9007
19a2740f
AB
90082020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9009
9010 * completer.c (completion_tracker::remove_completion): Define new
9011 function.
9012 * completer.h (completion_tracker::remove_completion): Declare new
9013 function.
9014 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9015 when adding a C++ function symbol.
9016
724fd9ba
AB
90172020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9018
9019 * completer.c (completion_tracker::completion_hash_entry): Define
9020 new class.
9021 (advance_to_filename_complete_word_point): Call
9022 recompute_lowest_common_denominator.
9023 (completion_tracker::completion_tracker): Call discard_completions
9024 to setup the hash table.
9025 (completion_tracker::discard_completions): Allow for being called
9026 from the constructor, pass new equal function, and element deleter
9027 when constructing the hash table. Initialise new class member
9028 variables.
9029 (completion_tracker::maybe_add_completion): Remove use of
9030 m_entries_vec, and store more information into m_entries_hash.
9031 (completion_tracker::recompute_lcd_visitor): New function, most
9032 content taken from...
9033 (completion_tracker::recompute_lowest_common_denominator):
9034 ...here, this now just visits each item in the hash calling the
9035 above visitor.
9036 (completion_tracker::build_completion_result): Remove use of
9037 m_entries_vec, call recompute_lowest_common_denominator.
9038 * completer.h (completion_tracker::have_completions): Remove use
9039 of m_entries_vec.
9040 (completion_tracker::completion_hash_entry): Declare new class.
9041 (completion_tracker::recompute_lowest_common_denominator): Change
9042 function signature.
9043 (completion_tracker::recompute_lcd_visitor): Declare new function.
9044 (completion_tracker::m_entries_vec): Delete.
9045 (completion_tracker::m_entries_hash): Initialize to NULL.
9046 (completion_tracker::m_lowest_common_denominator_valid): New
9047 member variable.
9048 (completion_tracker::m_lowest_common_denominator_max_length): New
9049 member variable.
9050
5a82b8a1
KR
90512020-03-17 Kamil Rytarowski <n54@gmx.com>
9052
9053 * regformats/regdef.h: Put reg in gdb namespace.
9054
fb516a69
KR
90552020-03-17 Kamil Rytarowski <n54@gmx.com>
9056
9057 * i386-bsd-nat.c (gdb_ptrace): New.
9058 * (i386bsd_fetch_inferior_registers,
9059 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9060 * (i386bsd_fetch_inferior_registers,
9061 i386bsd_store_inferior_registers) Use gdb_ptrace.
9062
1c0aa1fb
KR
90632020-03-17 Kamil Rytarowski <n54@gmx.com>
9064
9065 * amd64-bsd-nat.c (gdb_ptrace): New.
9066 * (amd64bsd_fetch_inferior_registers,
9067 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9068 * (amd64bsd_fetch_inferior_registers,
9069 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9070
5ccd2fb7
KR
90712020-03-17 Kamil Rytarowski <n54@gmx.com>
9072
9073 * user-regs.c (user_reg::read): Rename to...
9074 (user_reg::xread): ...this.
9075 * (append_user_reg): Rename argument `read' to `xread'.
9076 * (user_reg_add_builtin): Likewise.
9077 * (user_reg_add): Likewise.
9078 * (value_of_user_reg): Likewise.
9079
2108a63a
KR
90802020-03-17 Kamil Rytarowski <n54@gmx.com>
9081
9082 * sparc-nat.c (gdb_ptrace): New.
9083 * sparc-nat.c (sparc_fetch_inferior_registers)
9084 (sparc_store_inferior_registers) Remove obsolete comment.
9085 * sparc-nat.c (sparc_fetch_inferior_registers)
9086 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9087 * sparc-nat.c (sparc_fetch_inferior_registers)
9088 (sparc_store_inferior_registers) Use gdb_ptrace.
9089
a225c9a8
KR
90902020-03-17 Kamil Rytarowski <n54@gmx.com>
9091
9092 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9093 it to the ptrace call.
9094 * sh-nbsd-nat.c (store_registers): Likewise.
9095
98097623
KR
90962020-03-17 Kamil Rytarowski <n54@gmx.com>
9097
9098 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9099 nbsd_nat_target instead of inf_ptrace_target.
9100 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9101 nbsd_nat_target.
9102
9e38d619
KR
91032020-03-17 Kamil Rytarowski <n54@gmx.com>
9104
9105 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9106
a2ecbe9f
KR
91072020-03-17 Kamil Rytarowski <n54@gmx.com>
9108
9109 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9110 <sys/sysctl.h>.
9111 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9112
58990295
TV
91132020-03-17 Tom de Vries <tdevries@suse.de>
9114
9115 PR gdb/23710
9116 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9117 fields.
9118 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9119 fields.
9120 (process_imported_unit_die): Skip import of c++ CUs.
9121
771dd3a8
TT
91222020-03-16 Tom Tromey <tom@tromey.com>
9123
9124 * p-valprint.c (pascal_object_print_value): Initialize
9125 base_value.
9126
817a7585
AK
91272020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9128 Shahab Vahedi <shahab@synopsys.com>
9129
9130 * Makefile.in: Add arch/arc.o
9131 * configure.tgt: Likewise.
9132 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9133 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9134 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9135 * arc-tdep.h (arc_read_description): Add proto type.
9136 * arch/arc.c: New file.
9137 * arch/arc.h: Likewise.
9138 * features/Makefile: Replace old target descriptions with new.
9139 * features/arc-arcompact.c: Remove.
9140 * features/arc-arcompact.xml: Likewise.
9141 * features/arc-v2.c: Likewise
9142 * features/arc-v2.xml: Likewise
9143 * features/arc/aux-arcompact.xml: New file.
9144 * features/arc/aux-v2.xml: Likewise.
9145 * features/arc/core-arcompact.xml: Likewise.
9146 * features/arc/core-v2.xml: Likewise.
9147 * features/arc/aux-arcompact.c: Generate.
9148 * features/arc/aux-v2.c: Likewise.
9149 * features/arc/core-arcompact.c: Likewise.
9150 * features/arc/core-v2.c: Likewise.
9151 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9152
67430cd0
TT
91532020-03-16 Tom Tromey <tromey@adacore.com>
9154
9155 PR gdb/25663:
9156 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9157 putting value into bcache.
9158
30efb6c7
SM
91592020-03-16 Simon Marchi <simon.marchi@efficios.com>
9160
9161 PR gdb/21500
9162 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9163 to...
9164 (amd64_windows_init_abi_common): ... this. Don't set size of
9165 long type.
9166 (amd64_windows_init_abi): New function.
9167 (amd64_cygwin_init_abi): New function.
9168 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9169 the Cygwin OS ABI.
9170 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9171 comment.
9172
8db52437
SM
91732020-03-16 Simon Marchi <simon.marchi@efficios.com>
9174
9175 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9176 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9177 (pe_import_directory_entry): New struct type.
9178 (is_linked_with_cygwin_dll): New function.
9179 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9180 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9181 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9182
5982a56a
SM
91832020-03-16 Simon Marchi <simon.marchi@efficios.com>
9184
9185 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9186 i386_cygwin_core_osabi_sniffer.
9187
7a1998df
SM
91882020-03-16 Simon Marchi <simon.marchi@efficios.com>
9189
9190 * i386-cygwin-tdep.c: Rename to...
9191 * i386-windows-tdep.c: ... this.
9192 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9193 i386-windows-tdep.c.
9194 * configure.tgt: Likewise.
9195
053205cc
SM
91962020-03-16 Simon Marchi <simon.marchi@efficios.com>
9197
9198 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9199 * osabi.c (gdb_osabi_names): Add "Windows".
9200 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9201 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9202 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9203 i386_cygwin_osabi_sniffer.
9204 (_initialize_i386_cygwin_tdep): Register OS ABI
9205 GDB_OSABI_WINDOWS for i386.
9206 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9207 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9208 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9209 for x86-64.
9210 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9211 when the target matches '*-*-mingw*'.
9212
fe4b2ee6
SM
92132020-03-16 Simon Marchi <simon.marchi@efficios.com>
9214
9215 * defs.h (enum gdb_osabi): Move to...
9216 * osabi.h (enum gdb_osabi): ... here.
9217 * gdbarch.sh: Include osabi.h in gdbarch.h.
9218 * gdbarch.h: Re-generate.
9219
cb9b645d
SM
92202020-03-16 Simon Marchi <simon.marchi@efficios.com>
9221
9222 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9223 function.
9224 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9225
3293bbaf
TT
92262020-03-14 Tom Tromey <tom@tromey.com>
9227
9228 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9229 for C++.
9230 (c_type_print_modifier): Likewise. Add "language" parameter.
9231 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9232 (c_type_print_base_1): Update.
9233 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9234 constants.
9235 * type-stack.c (type_stack::insert): Handle tp_atomic and
9236 tp_restrict.
9237 (type_stack::follow_type_instance_flags): Likewise.
9238 (type_stack::follow_types): Likewise. Merge type-following code.
9239 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9240 (space_identifier, cv_with_space_id)
9241 (const_or_volatile_or_space_identifier_noopt)
9242 (const_or_volatile_or_space_identifier): Remove.
9243 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9244 rules.
9245 (ptr_operator, typebase): Update.
9246 (enum token_flag) <FLAG_C>: New constant.
9247 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9248 "_Atomic".
9249 (lex_one_token): Handle FLAG_C.
9250
154151a6
KR
92512020-03-14 Kamil Rytarowski <n54@gmx.com>
9252
9253 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9254 it to the ptrace call.
9255 * m68k-bsd-nat.c (store_registers): Likewise.
9256
bc107784
KR
92572020-03-14 Kamil Rytarowski <n54@gmx.com>
9258
9259 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9260 gdb_byte *.
9261 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9262 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9263 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9264
01a80117
KR
92652020-03-14 Kamil Rytarowski <n54@gmx.com>
9266
9267 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9268 nbsd_nat_target instead of inf_ptrace_target.
9269 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9270 nbsd_nat_target.
9271
f90280ca
KR
92722020-03-14 Kamil Rytarowski <n54@gmx.com>
9273
9274 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9275 register_t.
9276
6def66f1
KR
92772020-03-14 Kamil Rytarowski <n54@gmx.com>
9278
9279 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9280 it to the ptrace call.
9281 * alpha-bsd-nat.c (store_registers): Likewise.
9282
66eaca97
KR
92832020-03-14 Kamil Rytarowski <n54@gmx.com>
9284
9285 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9286 includes.
9287 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9288 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9289 fill_fpregset): Likewise.
9290
4fed520b
KR
92912020-03-14 Kamil Rytarowski <n54@gmx.com>
9292
9293 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9294 nbsd_nat_target instead of inf_ptrace_target.
9295 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9296 nbsd_nat_target.
9297
2190cf06
KR
92982020-03-14 Kamil Rytarowski <n54@gmx.com>
9299
9300 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9301 register_t.
9302
75c56d3d
KR
93032020-03-14 Kamil Rytarowski <n54@gmx.com>
9304
9305 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9306 it to the ptrace call.
9307 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9308 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9309 * arm-nbsd-nat.c (store_register): Likewise.
9310 * arm-nbsd-nat.c (store_regs): Likewise.
9311 * arm-nbsd-nat.c (store_fp_register): Likewise.
9312 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9313
6018d381
KR
93142020-03-14 Kamil Rytarowski <n54@gmx.com>
9315
9316 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9317 nbsd_nat_target instead of inf_ptrace_target.
9318 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9319 nbsd_nat_target.
9320
013f99f0
KR
93212020-03-14 Kamil Rytarowski <n54@gmx.com>
9322
9323 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9324 it to the ptrace call.
9325 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9326
12753073
KR
93272020-03-14 Kamil Rytarowski <n54@gmx.com>
9328
6227b330
KR
9329 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9330 it to the ptrace call.
9331 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9332
93332020-03-14 Kamil Rytarowski <n54@gmx.com>
9334
9335 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9336 gdb_byte *.
12753073
KR
9337 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9338
d5be5fa4
KR
93392020-03-14 Kamil Rytarowski <n54@gmx.com>
9340
9341 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9342 instead of inf_ptrace_target.
9343 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9344 nbsd_nat_target.
9345
8110f842
KR
93462020-03-14 Kamil Rytarowski <n54@gmx.com>
9347
9348 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9349 register_t.
9350
52feded7
KR
93512020-03-14 Kamil Rytarowski <n54@gmx.com>
9352
9353 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9354 register_t.
9355
25567eee
KR
93562020-03-14 Kamil Rytarowski <n54@gmx.com>
9357
9358 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9359 register_t.
9360
426a9c18
TT
93612020-03-13 Tom Tromey <tom@tromey.com>
9362
9363 * value.h (val_print): Don't declare.
9364 * valprint.h (val_print_array_elements)
9365 (val_print_scalar_formatted, generic_val_print): Don't declare.
9366 * valprint.c (generic_val_print_array): Take a struct value.
9367 (generic_val_print_ptr, generic_val_print_memberptr)
9368 (generic_val_print_bool, generic_val_print_int)
9369 (generic_val_print_char, generic_val_print_complex)
9370 (generic_val_print): Remove.
9371 (generic_value_print): Update.
9372 (do_val_print): Remove unused parameters. Don't call
9373 la_val_print.
9374 (val_print): Remove.
9375 (common_val_print): Update. Don't call value_check_printable.
9376 (val_print_scalar_formatted, val_print_array_elements): Remove.
9377 * rust-lang.c (rust_val_print): Remove.
9378 (rust_language_defn): Update.
9379 * p-valprint.c (pascal_val_print): Remove.
9380 (pascal_value_print_inner): Update.
9381 (pascal_object_print_val_fields, pascal_object_print_val):
9382 Remove.
9383 (pascal_object_print_static_field): Update.
9384 * p-lang.h (pascal_val_print): Don't declare.
9385 * p-lang.c (pascal_language_defn): Update.
9386 * opencl-lang.c (opencl_language_defn): Update.
9387 * objc-lang.c (objc_language_defn): Update.
9388 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9389 * m2-lang.h (m2_val_print): Don't declare.
9390 * m2-lang.c (m2_language_defn): Update.
9391 * language.h (struct language_defn) <la_val_print>: Remove.
9392 * language.c (unk_lang_value_print_inner): Rename. Change
9393 argument types.
9394 (unknown_language_defn, auto_language_defn): Update.
9395 * go-valprint.c (go_val_print): Remove.
9396 * go-lang.h (go_val_print): Don't declare.
9397 * go-lang.c (go_language_defn): Update.
9398 * f-valprint.c (f_val_print): Remove.
9399 * f-lang.h (f_value_print): Don't declare.
9400 * f-lang.c (f_language_defn): Update.
9401 * d-valprint.c (d_val_print): Remove.
9402 * d-lang.h (d_value_print): Don't declare.
9403 * d-lang.c (d_language_defn): Update.
9404 * cp-valprint.c (cp_print_value_fields)
9405 (cp_print_value_fields_rtti, cp_print_value): Remove.
9406 (cp_print_static_field): Update.
9407 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9408 (c_val_print_struct, c_val_print_union, c_val_print_int)
9409 (c_val_print_memberptr, c_val_print): Remove.
9410 * c-lang.h (c_val_print_array, cp_print_value_fields)
9411 (cp_print_value_fields_rtti): Don't declare.
9412 * c-lang.c (c_language_defn, cplus_language_defn)
9413 (asm_language_defn, minimal_language_defn): Update.
9414 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9415 (ada_val_print_enum): Take a struct value.
9416 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9417 (ada_val_print): Remove.
9418 (ada_value_print_1): Update.
9419 (printable_val_type): Remove.
9420 * ada-lang.h (ada_val_print): Don't declare.
9421 * ada-lang.c (ada_language_defn): Update.
9422
42331a1e
TT
94232020-03-13 Tom Tromey <tom@tromey.com>
9424
9425 * valprint.c (do_val_print): Update.
9426 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9427 a struct value.
9428 (value_to_value_object_no_release): Declare.
9429 * python/py-value.c (value_to_value_object_no_release): New
9430 function.
9431 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9432 struct value.
9433 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9434 function.
9435 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9436 a struct value.
9437 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9438 Declare.
9439 (gdbscm_apply_val_pretty_printer): Take a struct value.
9440 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9441 value.
9442 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9443 value.
9444 * extension-priv.h (struct extension_language_ops)
9445 <apply_val_pretty_printer>: Take a struct value.
9446 * cp-valprint.c (cp_print_value): Create a struct value.
9447 (cp_print_value): Update.
9448
3a916a97
TT
94492020-03-13 Tom Tromey <tom@tromey.com>
9450
9451 * ada-valprint.c (print_field_values): Call common_val_print.
9452
b59eac37
TT
94532020-03-13 Tom Tromey <tom@tromey.com>
9454
9455 * ada-valprint.c (val_print_packed_array_elements): Remove
9456 bitoffset and val parameters. Call common_val_print.
9457 (ada_val_print_string): Remove offset, address, and original_value
9458 parameters.
9459 (ada_val_print_array): Update.
9460 (ada_value_print_array): New function.
9461 (ada_value_print_1): Call it.
9462
03371129
TT
94632020-03-13 Tom Tromey <tom@tromey.com>
9464
9465 * ada-valprint.c (ada_value_print): Use common_val_print.
9466
2e088f8b
TT
94672020-03-13 Tom Tromey <tom@tromey.com>
9468
9469 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9470
39ef85a8
TT
94712020-03-13 Tom Tromey <tom@tromey.com>
9472
9473 * ada-valprint.c (ada_value_print_num): New function.
9474 (ada_value_print_1): Use it.
9475
b9fa6e07
TT
94762020-03-13 Tom Tromey <tom@tromey.com>
9477
9478 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9479
416595d6
TT
94802020-03-13 Tom Tromey <tom@tromey.com>
9481
9482 * ada-valprint.c (ada_value_print_ptr): New function.
9483 (ada_value_print_1): Use it.
9484
5b5e15ec
TT
94852020-03-13 Tom Tromey <tom@tromey.com>
9486
9487 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9488 call common_val_print.
9489 (ada_val_print_1): Update.
9490 (ada_value_print_1): New function.
9491 (ada_value_print_inner): Rewrite.
9492
fbf54e75
TT
94932020-03-13 Tom Tromey <tom@tromey.com>
9494
9495 * cp-valprint.c (cp_print_value_fields): Update.
9496 (cp_print_value): New function.
9497
64b653ca
TT
94982020-03-13 Tom Tromey <tom@tromey.com>
9499
9500 * m2-valprint.c (m2_value_print_inner): Use
9501 cp_print_value_fields.
9502 * cp-valprint.c (cp_print_value_fields): New function.
9503 * c-valprint.c (c_value_print_struct): New function.
9504 (c_value_print_inner): Use c_value_print_struct.
9505 * c-lang.h (cp_print_value_fields): Declare.
9506
6999f067
TT
95072020-03-13 Tom Tromey <tom@tromey.com>
9508
9509 * c-valprint.c (c_value_print_array): New function.
9510 (c_value_print_inner): Use it.
9511
ce80b8bd
TT
95122020-03-13 Tom Tromey <tom@tromey.com>
9513
9514 * c-valprint.c (c_value_print_memberptr): New function.
9515 (c_value_print_inner): Use it.
9516
2faac269
TT
95172020-03-13 Tom Tromey <tom@tromey.com>
9518
9519 * c-valprint.c (c_value_print_int): New function.
9520 (c_value_print_inner): Use it.
9521
da3e2c29
TT
95222020-03-13 Tom Tromey <tom@tromey.com>
9523
9524 * c-valprint.c (c_value_print_ptr): New function.
9525 (c_value_print_inner): Use it.
9526
50836231
TT
95272020-03-13 Tom Tromey <tom@tromey.com>
9528
9529 * c-valprint.c (c_value_print_inner): Rewrite.
9530
4f412b6e
TT
95312020-03-13 Tom Tromey <tom@tromey.com>
9532
9533 * valprint.c (generic_value_print_complex): New function.
9534 (generic_value_print): Use it.
9535
f5354008
TT
95362020-03-13 Tom Tromey <tom@tromey.com>
9537
9538 * valprint.c (generic_val_print_float): Don't call
9539 val_print_scalar_formatted.
9540 (generic_val_print, generic_value_print): Update.
9541
3eec3b05
TT
95422020-03-13 Tom Tromey <tom@tromey.com>
9543
9544 * valprint.c (generic_value_print_char): New function
9545 (generic_value_print): Use it.
9546
fdddfccb
TT
95472020-03-13 Tom Tromey <tom@tromey.com>
9548
9549 * valprint.c (generic_value_print_int): New function.
9550 (generic_value_print): Use it.
9551
6dde7521
TT
95522020-03-13 Tom Tromey <tom@tromey.com>
9553
9554 * valprint.c (generic_value_print_bool): New function.
9555 (generic_value_print): Use it.
9556
4112d2e6
TT
95572020-03-13 Tom Tromey <tom@tromey.com>
9558
9559 * valprint.c (generic_val_print_func): Simplify.
9560 (generic_val_print, generic_value_print): Update.
9561
65786af6
TT
95622020-03-13 Tom Tromey <tom@tromey.com>
9563
9564 * valprint.c (generic_val_print_flags): Remove.
9565 (generic_val_print, generic_value_print): Update.
9566 (val_print_type_code_flags): Add original_value parameter.
9567
40f3ce18
TT
95682020-03-13 Tom Tromey <tom@tromey.com>
9569
9570 * valprint.c (generic_val_print): Update.
9571 (generic_value_print): Update.
9572 * valprint.c (generic_val_print_enum): Don't call
9573 val_print_scalar_formatted.
9574
2a5b130b
TT
95752020-03-13 Tom Tromey <tom@tromey.com>
9576
9577 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9578 * valprint.c (generic_value_print_ptr): New function.
9579
abc66ce9
TT
95802020-03-13 Tom Tromey <tom@tromey.com>
9581
9582 * valprint.c (generic_value_print): Rewrite.
9583
07a32858
TT
95842020-03-13 Tom Tromey <tom@tromey.com>
9585
9586 * p-valprint.c (pascal_object_print_value_fields)
9587 (pascal_object_print_value): New functions.
9588
64d64d3a
TT
95892020-03-13 Tom Tromey <tom@tromey.com>
9590
9591 * p-valprint.c (pascal_value_print_inner): Rewrite.
9592
6a95a1f5
TT
95932020-03-13 Tom Tromey <tom@tromey.com>
9594
9595 * f-valprint.c (f_value_print_innner): Rewrite.
9596
59fcdac6
TT
95972020-03-13 Tom Tromey <tom@tromey.com>
9598
9599 * m2-valprint.c (m2_print_unbounded_array): New overload.
9600 (m2_print_unbounded_array): Update.
9601 (m2_print_array_contents): Take a struct value.
9602 (m2_value_print_inner): Rewrite.
9603
d133c3e1
TT
96042020-03-13 Tom Tromey <tom@tromey.com>
9605
9606 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9607 (d_value_print_inner): New function.
9608 * d-lang.h (d_value_print_inner): Declare.
9609 * d-lang.c (d_language_defn): Use d_value_print_inner.
9610
23b0f06b
TT
96112020-03-13 Tom Tromey <tom@tromey.com>
9612
9613 * go-valprint.c (go_value_print_inner): New function.
9614 * go-lang.h (go_value_print_inner): Declare.
9615 * go-lang.c (go_language_defn): Use go_value_print_inner.
9616
5f56f7cb
TT
96172020-03-13 Tom Tromey <tom@tromey.com>
9618
9619 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9620 API.
9621 (rust_val_print): Rewrite.
9622 (rust_value_print_inner): New function, from rust_val_print.
9623 (rust_language_defn): Use rust_value_print_inner.
9624
26792ee0
TT
96252020-03-13 Tom Tromey <tom@tromey.com>
9626
9627 * ada-valprint.c (ada_value_print_inner): New function.
9628 * ada-lang.h (ada_value_print_inner): Declare.
9629 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9630
24051bbe
TT
96312020-03-13 Tom Tromey <tom@tromey.com>
9632
9633 * f-valprint.c (f_value_print_innner): New function.
9634 * f-lang.h (f_value_print_innner): Declare.
9635 * f-lang.c (f_language_defn): Use f_value_print_innner.
9636
c0941be6
TT
96372020-03-13 Tom Tromey <tom@tromey.com>
9638
9639 * p-valprint.c (pascal_value_print_inner): New function.
9640 * p-lang.h (pascal_value_print_inner): Declare.
9641 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9642
62c4663d
TT
96432020-03-13 Tom Tromey <tom@tromey.com>
9644
9645 * m2-valprint.c (m2_value_print_inner): New function.
9646 * m2-lang.h (m2_value_print_inner): Declare.
9647 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9648
62182190
TT
96492020-03-13 Tom Tromey <tom@tromey.com>
9650
9651 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9652 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9653 * c-valprint.c (c_value_print_inner): New function.
9654 * c-lang.h (c_value_print_inner): Declare.
9655 * c-lang.c (c_language_defn, cplus_language_defn)
9656 (asm_language_defn, minimal_language_defn): Use
9657 c_value_print_inner.
9658
1e592a8a
TT
96592020-03-13 Tom Tromey <tom@tromey.com>
9660
9661 * p-valprint.c (pascal_object_print_value_fields): Now static.
9662 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9663
7fe471e9
TT
96642020-03-13 Tom Tromey <tom@tromey.com>
9665
9666 * c-valprint.c (c_val_print_array): Simplify.
9667
d121c6ce
TT
96682020-03-13 Tom Tromey <tom@tromey.com>
9669
9670 * valprint.c (value_print_array_elements): New function.
9671 * valprint.h (value_print_array_elements): Declare.
9672
4dba70ee
TT
96732020-03-13 Tom Tromey <tom@tromey.com>
9674
9675 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9676 * mips-tdep.c (mips_print_register): Use
9677 value_print_scalar_formatted.
9678
4f9ae810
TT
96792020-03-13 Tom Tromey <tom@tromey.com>
9680
9681 * valprint.h (value_print_scalar_formatted): Declare.
9682 * valprint.c (value_print_scalar_formatted): New function.
9683
156bfec9
TT
96842020-03-13 Tom Tromey <tom@tromey.com>
9685
9686 * valprint.h (generic_value_print): Declare.
9687 * valprint.c (generic_value_print): New function.
9688
2b4e573d
TT
96892020-03-13 Tom Tromey <tom@tromey.com>
9690
9691 * valprint.c (do_val_print): Call la_value_print_inner, if
9692 available.
9693 * rust-lang.c (rust_language_defn): Update.
9694 * p-lang.c (pascal_language_defn): Update.
9695 * opencl-lang.c (opencl_language_defn): Update.
9696 * objc-lang.c (objc_language_defn): Update.
9697 * m2-lang.c (m2_language_defn): Update.
9698 * language.h (struct language_defn) <la_value_print_inner>: New
9699 member.
9700 * language.c (unknown_language_defn, auto_language_defn): Update.
9701 * go-lang.c (go_language_defn): Update.
9702 * f-lang.c (f_language_defn): Update.
9703 * d-lang.c (d_language_defn): Update.
9704 * c-lang.c (c_language_defn, cplus_language_defn)
9705 (asm_language_defn, minimal_language_defn): Update.
9706 * ada-lang.c (ada_language_defn): Update.
9707
a1f6a07c
TT
97082020-03-13 Tom Tromey <tom@tromey.com>
9709
9710 * c-valprint.c (c_value_print): Use common_val_print.
9711
410cf315
TT
97122020-03-13 Tom Tromey <tom@tromey.com>
9713
9714 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9715
72a45c93
TT
97162020-03-13 Tom Tromey <tom@tromey.com>
9717
9718 * f-valprint.c (f77_print_array_1, f_val_print): Use
9719 common_val_print.
9720
040f66bd
TT
97212020-03-13 Tom Tromey <tom@tromey.com>
9722
9723 * riscv-tdep.c (riscv_print_one_register_info): Use
9724 common_val_print.
9725
a6e05a6c
TT
97262020-03-13 Tom Tromey <tom@tromey.com>
9727
9728 * mi/mi-main.c (output_register): Use common_val_print.
9729
3444c526
TT
97302020-03-13 Tom Tromey <tom@tromey.com>
9731
9732 * infcmd.c (default_print_one_register_info): Use
9733 common_val_print.
9734
c2a44efe
TT
97352020-03-13 Tom Tromey <tom@tromey.com>
9736
9737 * valprint.h (common_val_print_checked): Declare.
9738 * valprint.c (common_val_print_checked): New function.
9739 * stack.c (print_frame_arg): Use common_val_print_checked.
9740
b0c26e99
TT
97412020-03-13 Tom Tromey <tom@tromey.com>
9742
9743 * valprint.c (do_val_print): New function, from val_print.
9744 (val_print): Use do_val_print.
9745 (common_val_print): Use do_val_print.
9746
ce3acbe9
TT
97472020-03-13 Tom Tromey <tom@tromey.com>
9748
9749 * valprint.c (value_print): Use scoped_value_mark.
9750
96c7f873
TV
97512020-03-13 Tom de Vries <tdevries@suse.de>
9752
9753 PR symtab/25646
9754 * psymtab.c (partial_symtab::partial_symtab): Don't set
9755 globals_offset and statics_offset. Push element onto
9756 current_global_psymbols and current_static_psymbols stacks.
9757 (concat): New function.
9758 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9759 element from current_global_psymbols and current_static_psymbols
9760 stacks. Concat popped elements to global_psymbols and
9761 static_symbols.
9762 (add_psymbol_to_list): Use current_global_psymbols and
9763 current_static_psymbols stacks.
9764 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9765 current_static_psymbols fields.
9766
6ba0a321
CB
97672020-03-12 Christian Biesinger <cbiesinger@google.com>
9768
9769 * corelow.c (sniff_core_bfd): Remove.
9770 (class core_target) <m_core_vec>: Remove.
9771 (core_target::core_target): Update.
9772 (core_file_fns): Remove.
9773 (deprecated_add_core_fns): Remove.
9774 (default_core_sniffer): Remove.
9775 (sniff_core_bfd): Remove.
9776 (default_check_format): Remove.
9777 (gdb_check_format): Remove.
9778 (core_target_open): Update.
9779 (core_target::get_core_register_section): Update.
9780 (get_core_registers_cb): Update.
9781 (core_target::fetch_registers): Update.
9782 * gdbcore.h (struct core_fns): Remove.
9783 (deprecated_add_core_fns): Remove.
9784 (default_core_sniffer): Remove.
9785 (default_check_format): Remove.
9786
227031b2
TT
97872020-03-12 Tom Tromey <tom@tromey.com>
9788
9789 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9790 CORE_ADDR.
9791 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9792
53807e9f
TT
97932020-03-12 Tom Tromey <tom@tromey.com>
9794
9795 * remote.c (remote_target::download_tracepoint)
9796 (remote_target::enable_tracepoint)
9797 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9798 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9799 sprintf_vma.
9800
64f25102
TT
98012020-03-12 Tom Tromey <tom@tromey.com>
9802
9803 * symfile-mem.c: Update CORE_ADDR size assert.
9804
272cd5a3
SM
98052020-03-12 Simon Marchi <simon.marchi@efficios.com>
9806
9807 * selftest.m4: Move to gdbsupport/.
9808 * acinclude.m4: Update path to selftest.m4.
9809
74cd3f9d
SM
98102020-03-12 Simon Marchi <simon.marchi@efficios.com>
9811
9812 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9813 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9814 gdbarch-selfselftests.c and selftest-arch.c.
9815 (SUBDIR_UNITTESTS_OBS): Rename to...
9816 (SELFTESTS_OBS): ... this.
9817 (COMMON_SFILES): Remove disasm-selftests.c and
9818 gdbarch-selftests.c.
9819 * configure.ac: Don't add selftest-arch.{c,o} to
9820 CONFIG_{SRCS,OBS}.
9821 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9822 preprocessor conditions.
9823
db6878ac
SM
98242020-03-12 Simon Marchi <simon.marchi@efficios.com>
9825
9826 * configure.ac: Don't source bfd/development.sh.
9827 * selftest.m4: Modify comment.
9828 * configure: Re-generate.
9829
4d696a5c
SM
98302020-03-12 Simon Marchi <simon.marchi@efficios.com>
9831
9832 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9833 not "true" or "false".
9834 * configure: Re-generate.
9835
8dd8e1c7
CB
98362020-03-12 Christian Biesinger <cbiesinger@google.com>
9837
9838 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9839 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9840 renamed to arm_nbsd_supply_gregset.
9841 (fetch_register): Update to call arm_nbsd_supply_gregset.
9842 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9843 (arm_netbsd_nat_target::fetch_registers): Update.
9844 (fetch_elfcore_registers): Removed.
9845 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9846 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9847 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9848 not require NetBSD system headers.
9849 (arm_nbsd_regset): New struct.
9850 (arm_nbsd_iterate_over_regset_sections): New function.
9851 (arm_netbsd_init_abi_common): Updated to call
9852 set_gdbarch_iterate_over_regset_sections.
9853 * arm-nbsd-tdep.h: New file.
9854
dd69bf7a
KB
98552020-03-11 Kevin Buettner <kevinb@redhat.com>
9856
9857 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9858 recursion.
9859
a0761e34
SM
98602020-03-11 Simon Marchi <simon.marchi@efficios.com>
9861
9862 * configure: Re-generate.
9863
e7a82140
TT
98642020-03-11 Tom Tromey <tromey@adacore.com>
9865
9866 * ada-typeprint.c (print_choices): Fix comment.
9867
dcc050c8
AB
98682020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9869
9870 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9871 previous item in the list, when the list has no items.
9872
1c33af77
TV
98732020-03-11 Tom de Vries <tdevries@suse.de>
9874
9875 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9876 PROP_LOCLIST handling code.
9877
8c95582d
AB
98782020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9879
9880 * buildsym-legacy.c (record_line): Pass extra parameter to
9881 record_line.
9882 * buildsym.c (buildsym_compunit::record_line): Take an extra
9883 parameter, reduce duplication in the line table, and record the
9884 is_stmt flag in the line table.
9885 * buildsym.h (buildsym_compunit::record_line): Add extra
9886 parameter.
9887 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9888 non-statement lines.
9889 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9890 this to the symtab builder.
9891 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9892 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9893 through to dwarf_record_line_1.
9894 * infrun.c (process_event_stop_test): When stepping, don't stop at
9895 a non-statement instruction, and only refresh the step info when
9896 we land in the middle of a line's range. Also add an extra
9897 comment.
9898 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9899 field.
9900 * record-btrace.c (btrace_find_line_range): Only record lines
9901 marked as is-statement.
9902 * stack.c (frame_show_address): Show the frame address if we are
9903 in a non-statement sal.
9904 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9905 (maintenance_print_one_line_table): Print a header for the is_stmt
9906 column, and include is_stmt information in the output.
9907 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9908 preference to non-statements.
9909 (find_pcs_for_symtab_line): Prefer is-statement entries.
9910 (find_line_common): Likewise.
9911 * symtab.h (struct linetable_entry): Add is_stmt field.
9912 (struct symtab_and_line): Likewise.
9913 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9914 arranging the line table.
9915
e4003a34
TV
99162020-03-07 Tom de Vries <tdevries@suse.de>
9917
9918 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9919 DIE.
9920
e8932576
TT
99212020-03-07 Tom Tromey <tom@tromey.com>
9922
9923 * valops.c (value_literal_complex): Remove obsolete comment.
9924 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9925 comment.
9926
29734269
SM
99272020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9928
9929 * infrun.h: Forward-declare thread_info.
9930 (set_step_info): Add thread_info parameter, add doc.
9931 * infrun.c (set_step_info): Add thread_info parameter, move doc
9932 to header.
9933 * infrun.c (process_event_stop_test): Pass thread to
9934 set_step_info call.
9935 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9936 set_step_info.
9937 (prepare_one_step): Add thread_info parameter, pass it to
9938 set_step_frame and prepare_one_step (recursive) call.
9939 (step_1): Pass thread to prepare_one_step call.
9940 (step_command_fsm::should_stop): Pass thread to
9941 prepare_one_step.
9942 (until_next_fsm): Pass thread to set_step_frame call.
9943 (finish_command): Pass thread to set_step_info call.
9944
b7d64b29
HD
99452020-03-06 Hannes Domani <ssbssa@yahoo.de>
9946
9947 * windows-tdep.c (windows_solib_create_inferior_hook):
9948 Check if inferior is running.
9949
09f2921c
TV
99502020-03-06 Tom de Vries <tdevries@suse.de>
9951
9952 * NEWS: Fix "the the".
9953 * ctfread.c: Same.
9954
fd760e79
TV
99552020-03-06 Tom de Vries <tdevries@suse.de>
9956
9957 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9958
20ea4a60
AB
99592020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9960
9961 * .dir-locals.el: Add a comment referencing the other copies of
9962 this file.
9963
0afbabf0
JB
99642020-03-05 John Baldwin <jhb@FreeBSD.org>
9965
9966 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9967 psargs.
9968
842806cb
TBA
99692020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9970
9971 * .gitattributes: New file.
9972
be1e3d3e
TT
99732020-03-04 Tom Tromey <tom@tromey.com>
9974
9975 * symmisc.c (print_symbol_bcache_statistics)
9976 (print_objfile_statistics): Update.
9977 * symfile.c (allocate_symtab): Use intern.
9978 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9979 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9980 macro_cache>: Remove.
9981 <string_cache>: New member.
9982 (struct objfile) <intern>: New methods.
9983 * elfread.c (elf_symtab_read): Use intern.
9984 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9985 (dwarf2_compute_name, dwarf2_physname)
9986 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9987 names.
9988 (guess_partial_die_structure_name): Update.
9989 (partial_die_info::fixup): Intern name.
9990 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9991 name.
9992 (dwarf2_name): Intern name. Update.
9993 * buildsym.c (buildsym_compunit::get_macro_table): Use
9994 string_cache.
9995
4e7625fd
TT
99962020-03-04 Tom Tromey <tom@tromey.com>
9997
9998 * jit.c (bfd_open_from_target_memory): Make "target" const.
9999 * corefile.c (gnutarget): Now const.
10000 * gdbcore.h (gnutarget): Now const.
10001
46f9f931
HD
100022020-03-04 Hannes Domani <ssbssa@yahoo.de>
10003
10004 * NEWS: Mention support for WOW64 processes.
10005 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10006 (amd64_windows_segment_register_p): Remove static.
10007 (_initialize_amd64_windows_nat): Update.
10008 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10009 * i386-windows-nat.c (context_offset): Update.
10010 (i386_mappings): Rename and remove static.
10011 (i386_windows_segment_register_p): Remove static.
10012 (_initialize_i386_windows_nat): Update.
10013 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10014 (STATUS_WX86_SINGLE_STEP): New macro.
10015 (EnumProcessModulesEx): New macro.
10016 (Wow64SuspendThread): New macro.
10017 (Wow64GetThreadContext): New macro.
10018 (Wow64SetThreadContext): New macro.
10019 (Wow64GetThreadSelectorEntry): New macro.
10020 (windows_set_context_register_offsets): Add static.
10021 (windows_set_segment_register_p): Likewise.
10022 (windows_add_thread): Adapt for WOW64 processes.
10023 (windows_fetch_one_register): Likewise.
10024 (windows_nat_target::fetch_registers): Likewise.
10025 (windows_store_one_register): Likewise.
10026 (display_selector): Likewise.
10027 (display_selectors): Likewise.
10028 (handle_exception): Likewise.
10029 (windows_continue): Likewise.
10030 (windows_nat_target::resume): Likewise.
10031 (windows_add_all_dlls): Likewise.
10032 (do_initial_windows_stuff): Likewise.
10033 (windows_nat_target::attach): Likewise.
10034 (windows_get_exec_module_filename): Likewise.
10035 (windows_nat_target::create_inferior): Likewise.
10036 (windows_xfer_siginfo): Likewise.
10037 (_initialize_loadable): Initialize Wow64SuspendThread,
10038 Wow64GetThreadContext, Wow64SetThreadContext,
10039 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10040 * windows-nat.h (windows_set_context_register_offsets):
10041 Remove declaration.
10042 (windows_set_segment_register_p): Likewise.
10043 (i386_windows_segment_register_p): Add declaration.
10044 (amd64_windows_segment_register_p): Likewise.
10045
440cf44e
LM
100462020-03-04 Luis Machado <luis.machado@linaro.org>
10047
10048 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10049 in "info registers" for AArch64/ARM.
10050
10051 The change caused "info registers" to not print GPR's.
10052
10053 gdb/ChangeLog:
10054
10055 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10056
10057 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10058 when reg->group is empty and reggroup is not.
10059
1009d92f
TT
100602020-03-03 Tom Tromey <tromey@adacore.com>
10061
10062 * dwarf2/frame.c (struct dwarf2_frame_cache)
10063 <checked_tailcall_bottom, entry_cfa_sp_offset,
10064 entry_cfa_sp_offset_p>: Remove members.
10065 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10066 (dwarf2_frame_prev_register): Don't call
10067 dwarf2_tailcall_sniffer_first.
10068 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10069 * frame-unwind.c (add_unwinder): New fuction.
10070 (frame_unwind_init): Use it. Add tailcall unwinder.
10071
5e5d66b6
AB
100722020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10073 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10074
10075 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10076 value should be printed as true.
10077
584cf46d
HD
100782020-03-03 Hannes Domani <ssbssa@yahoo.de>
10079
10080 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10081 (windows_init_abi): Set and use windows_so_ops.
10082
7b973adc
SDJ
100832020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10084
10085 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10086 when verifying if dealing with a convenience variable.
10087
bb7b70ab
LM
100882020-03-03 Luis Machado <luis.machado@linaro.org>
10089
10090 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10091
9822cb57
SM
100922020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10093
10094 * infrun.c (gdbarch_supports_displaced_stepping): New.
10095 (use_displaced_stepping): Break up conditions in smaller pieces.
10096 Use gdbarch_supports_displaced_stepping.
10097 (displaced_step_prepare_throw): Use
10098 gdbarch_supports_displaced_stepping.
10099
63e163f2
AB
101002020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10101
10102 * NEWS: Mention new behaviour of the history filename.
10103 * top.c (write_history_p): Add comment.
10104 (show_write_history_p): Add header comment, give a different
10105 message when history writing is on, but the history filename is
10106 empty.
10107 (history_filename): Add comment.
10108 (history_filename_empty): New function.
10109 (show_history_filename): Add header comment, give a different
10110 message when the filename is empty.
10111 (init_history): Compare history_filename against nullptr, and only
10112 read history if the filename is not empty.
10113 (set_history_filename): Add header comment, and only make
10114 non-empty filenames absolute.
10115 (init_main): Make the filename argument to 'set history filename'
10116 optional.
10117
81b86b97
CB
101182020-03-02 Christian Biesinger <cbiesinger@google.com>
10119
10120 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10121 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10122 (fetch_fp_register): Update.
10123 (fetch_fp_regs): Update.
10124 (store_fp_register): Update.
10125 (store_fp_regs): Update.
10126 (arm_netbsd_nat_target::read_description): New function.
10127 (fetch_elfcore_registers): Update.
10128
24ed6739
AB
101292020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10130
10131 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10132 general_thread if the stop reply is missing a thread-id.
10133 (remote_target::process_stop_reply): Use the first non-exited
10134 thread if the target didn't pass a thread-id.
10135 * infrun.c (do_target_wait): Move call to
10136 switch_to_inferior_no_thread to ....
10137 (do_target_wait_1): ... here.
10138
a84bb2a0
JT
101392020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10140
10141 * debuginfod-support.c: Include defs.h first.
10142
658dadf0
TV
101432020-02-28 Tom de Vries <tdevries@suse.de>
10144
10145 * symfile.c (set_initial_language): Use default language for lookup.
10146
4ebe4877
SM
101472020-02-28 Simon Marchi <simon.marchi@efficios.com>
10148
10149 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10150 reader variable, pass `this` to read_cutu_die_from_dwo.
10151
e5da1139
AM
101522020-02-27 Aaron Merey <amerey@redhat.com>
10153
10154 * source.c (open_source_file): Check for nullptr when computing
10155 srcpath.
10156
317f7127
TT
101572020-02-27 Tom Tromey <tromey@adacore.com>
10158
10159 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10160 member.
10161 (dwarf2_add_field): Don't update nfields.
10162 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10163
3104d9ee
AB
101642020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10165
10166 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10167 abs.
10168
b83470bf
TT
101692020-02-26 Tom Tromey <tom@tromey.com>
10170
10171 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10172 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10173 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10174 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10175 per_cu_data.
10176
edfe0a0c
TT
101772020-02-26 Tom Tromey <tom@tromey.com>
10178
10179 * dwarf2/index-write.c (psym_index_map): Change type.
10180 (add_address_entry_worker, write_one_signatured_type)
10181 (recursively_count_psymbols, recursively_write_psymbols)
10182 (class debug_names, psyms_seen_size, write_gdbindex)
10183 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10184
0d79cdc4
AM
101852020-02-26 Aaron Merey <amerey@redhat.com>
10186
10187 * Makefile.in: Handle optional debuginfod support.
10188 * NEWS: Update.
10189 * README: Add --with-debuginfod summary.
10190 * config.in: Regenerate.
10191 * configure: Regenerate.
10192 * configure.ac: Handle optional debuginfod support.
10193 * debuginfod-support.c: debuginfod helper functions.
10194 * debuginfod-support.h: Ditto.
10195 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10196 summary.
10197 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10198 when a dwz file cannot be found.
10199 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10200 debuginfo file cannot be found.
10201 * source.c (open_source_file): Query debuginfod servers when a
10202 source file cannot be found.
10203 * top.c (print_gdb_configuration): Include
10204 --{with,without}-debuginfod in the output.
10205
b65ce565
JG
102062020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10207
10208 * thread.c (thr_try_catch_cmd): Print thread name.
10209
d4c9a4f8
SM
102102020-02-26 Simon Marchi <simon.marchi@efficios.com>
10211
10212 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10213 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10214 dwarf2_fetch_die_type_sect_off): Move to...
10215 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10216 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10217 dwarf2_fetch_die_type_sect_off): ... here.
10218 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10219 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10220 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10221
0dce4280
TV
102222020-02-26 Tom de Vries <tdevries@suse.de>
10223
10224 PR gdb/25603
10225 * symfile.c (set_initial_language): Exit-early if
10226 language_mode == language_mode_manual.
10227
450a1bfc
SM
102282020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10229
10230 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10231 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10232 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10233
9e80cfa1
AB
102342020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10235
10236 * gdbtypes.c (create_array_type_with_stride): Handle negative
10237 array strides.
10238 * valarith.c (value_subscripted_rvalue): Likewise.
10239
09624f1f
LM
102402020-02-25 Luis Machado <luis.machado@linaro.org>
10241
10242 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10243
8cb5117c
SM
102442020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10245
10246 * loc.h (dwarf2_get_die_type): Move to...
10247 * read.h (dwarf2_get_die_type): ... here.
10248 * read.c (dwarf2_get_die_type): Move doc to header.
10249
c325c44e
JB
102502020-02-25 Joel Brobecker <brobecker@adacore.com>
10251
10252 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10253 'gnulib/Makefile.in' to the list.
10254
4ac93832
TT
102552020-02-24 Tom Tromey <tom@tromey.com>
10256
10257 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10258 Remove.
10259 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10260 XOBNEWVEC.
10261
197400e8
TT
102622020-02-24 Tom Tromey <tom@tromey.com>
10263
10264 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10265 New method.
10266 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10267 (dw2_do_instantiate_symtab, dw2_get_file_names)
10268 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10269
76935768
TT
102702020-02-24 Tom Tromey <tom@tromey.com>
10271
10272 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10273 make_scoped_restore.
10274 (dwarf2_psymtab::read_symtab): Don't clear
10275 reading_partial_symbols.
10276
a88ef40d
TV
102772020-02-24 Tom de Vries <tdevries@suse.de>
10278
10279 PR gdb/25592
10280 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10281
c9af6521
TV
102822020-02-24 Tom de Vries <tdevries@suse.de>
10283
10284 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10285 commands layout next/prev/regs.
10286
5707a07a
TT
102872020-02-22 Tom Tromey <tom@tromey.com>
10288
10289 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10290 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10291
3b0fb49e
TT
102922020-02-22 Tom Tromey <tom@tromey.com>
10293
10294 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10295
283be8bf
TT
102962020-02-22 Tom Tromey <tom@tromey.com>
10297
10298 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10299 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10300 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10301 * tui/tui.c (_initialize_tui): Add usage text.
10302
ca793b96
TT
103032020-02-22 Tom Tromey <tom@tromey.com>
10304
10305 * tui/tui-win.c (tui_set_focus_command)
10306 (tui_set_win_height_command): Use error_no_arg.
10307 (_initialize_tui_win): Update help text.
10308 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10309
432b5c40
TT
103102020-02-22 Tom Tromey <tom@tromey.com>
10311
10312 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10313 * tui/tui-disasm.h (struct tui_disasm_window)
10314 <display_start_addr>: Declare.
10315 * tui/tui-source.h (struct tui_source_window)
10316 <display_start_addr>: Declare.
10317 * tui/tui-winsource.h (struct tui_source_window_base)
10318 <show_source_line, display_start_addr>: New methods.
10319 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10320 Rename and move to protected section.
10321 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10322 (tui_source_window_base::do_erase_source_content): Update.
10323 (tui_source_window_base::show_source_line): Now a method.
10324 (tui_source_window_base::show_source_content)
10325 (tui_source_window_base::tui_source_window_base)
10326 (tui_source_window_base::rerender)
10327 (tui_source_window_base::refill)
10328 (tui_source_window_base::do_scroll_horizontal)
10329 (tui_source_window_base::set_is_exec_point_at)
10330 (tui_source_window_base::update_breakpoint_info)
10331 (tui_source_window_base::update_exec_info): Update.
10332 * tui/tui-source.c (tui_source_window::set_contents)
10333 (tui_source_window::showing_source_p)
10334 (tui_source_window::do_scroll_vertical)
10335 (tui_source_window::location_matches_p)
10336 (tui_source_window::line_is_displayed): Update.
10337 (tui_source_window::display_start_addr): New method.
10338 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10339 (tui_disasm_window::do_scroll_vertical)
10340 (tui_disasm_window::location_matches_p): Update.
10341 (tui_disasm_window::display_start_addr): New method.
10342
01b1af32
TT
103432020-02-22 Tom Tromey <tom@tromey.com>
10344
10345 * NEWS: Add entry for gdb.register_window_type.
10346 * tui/tui-layout.h (window_factory): New typedef.
10347 (tui_register_window): Declare.
10348 * tui/tui-layout.c (saved_tui_windows): New global.
10349 (tui_apply_current_layout): Use it.
10350 (tui_register_window): New function.
10351 * python/python.c (do_start_initialization): Call
10352 gdbpy_initialize_tui.
10353 (python_GdbMethods): Add "register_window_type" function.
10354 * python/python-internal.h (gdbpy_register_tui_window)
10355 (gdbpy_initialize_tui): Declare.
10356 * python/py-tui.c: New file.
10357 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10358
fc96d20b
TT
103592020-02-22 Tom Tromey <tom@tromey.com>
10360
10361 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10362
935c78c0
TT
103632020-02-22 Tom Tromey <tom@tromey.com>
10364
10365 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10366 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10367 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10368 (tui_set_win_focus_to): Move from tui-win.c.
10369
0240c8f1
TT
103702020-02-22 Tom Tromey <tom@tromey.com>
10371
10372 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10373 functions.
10374 (known_window_types): New global.
10375 (tui_get_window_by_name): Reimplement.
10376 (initialize_known_windows): New function.
10377 (validate_window_name): Rewrite.
10378 (_initialize_tui_layout): Call initialize_known_windows.
10379
fdb01f0c
TT
103802020-02-22 Tom Tromey <tom@tromey.com>
10381
10382 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10383 Remove constants.
10384 * tui/tui-winsource.h (struct tui_source_window_base)
10385 <tui_source_window_base>: Remove parameter.
10386 * tui/tui-winsource.c
10387 (tui_source_window_base::tui_source_window_base): Remove
10388 parameter.
10389 (tui_source_window_base::refill): Update.
10390 * tui/tui-stack.h (struct tui_locator_window)
10391 <tui_locator_window>: Update.
10392 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10393 Default the constructor.
10394 * tui/tui-regs.h (struct tui_data_item_window)
10395 <tui_data_item_window>: Default the constructor.
10396 (struct tui_data_window) <tui_data_window>: Likewise.
10397 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10398 Default the constructor.
10399 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10400 Default the constructor.
10401 <type>: Remove.
10402 (struct tui_win_info) <tui_win_info>: Default the constructor.
10403 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10404 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10405 Default the constructor.
10406
865a5aec
TT
104072020-02-22 Tom Tromey <tom@tromey.com>
10408
10409 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10410 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10411 * tui/tui-win.c (tui_resize_all): Don't call
10412 tui_delete_invisible_windows.
10413 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10414 done.
10415 (tui_set_layout): Update.
10416 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10417 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10418 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10419
e098d18c
TT
104202020-02-22 Tom Tromey <tom@tromey.com>
10421
10422 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10423 correctly.
10424
eb9c8874
TT
104252020-02-22 Tom Tromey <tom@tromey.com>
10426
10427 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10428
7eed1a8e
TT
104292020-02-22 Tom Tromey <tom@tromey.com>
10430
10431 * tui/tui-winsource.h (struct tui_source_window_iterator)
10432 <inner_iterator>: New etytypedef.
10433 <tui_source_window_iterator>: Take "end" parameter.
10434 <tui_source_window_iterator>: Take iterator.
10435 <operator*, advance>: Update.
10436 <m_iter>: Change type.
10437 <m_end>: New field.
10438 (struct tui_source_windows) <begin, end>: Update.
10439 * tui/tui-layout.c (tui_windows): New global.
10440 (tui_apply_current_layout): Clear tui_windows.
10441 (tui_layout_window::apply): Update tui_windows.
10442 * tui/tui-data.h (tui_windows): Declare.
10443 (all_tui_windows): Now inline function.
10444 (class tui_window_iterator, struct all_tui_windows): Remove.
10445
7c043ba6
TT
104462020-02-22 Tom Tromey <tom@tromey.com>
10447
10448 PR tui/17850:
10449 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10450 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10451 "height" argument.
10452 (class tui_layout_window) <get_sizes>: Likewise.
10453 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10454 argument.
10455 <get_sizes>: Add "height" argument.
10456 <m_vertical>: New field.
10457 * tui/tui-layout.c (tui_layout_split::clone): Update.
10458 (tui_layout_split::get_sizes): Add "height" argument.
10459 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10460 (tui_new_layout_command): Parse "-horizontal".
10461 (_initialize_tui_layout): Update help string.
10462 (tui_layout_split::specification): Add "-horizontal" when needed.
10463 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10464 argument.
10465 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10466 New methods.
10467
6bc56648
TT
104682020-02-22 Tom Tromey <tom@tromey.com>
10469
10470 * tui/tui-layout.h (enum tui_adjust_result): New.
10471 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10472 (class tui_layout_window) <adjust_size>: Return
10473 tui_adjust_result. Rewrite.
10474 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10475 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10476
c22fef7e
TT
104772020-02-22 Tom Tromey <tom@tromey.com>
10478
10479 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10480 parameter and return types.
10481 (class tui_layout_base) <specification>: Add "depth".
10482 (class tui_layout_window) <specification>: Add "depth".
10483 (class tui_layout_split) <specification>: Add "depth".
10484 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10485 and return types.
10486 (tui_new_layout_command): Parse sub-layouts.
10487 (_initialize_tui_layout): Update help string.
10488 (tui_layout_window::specification): Add "depth".
10489 (add_layout_command): Update.
10490
ee325b61
TT
104912020-02-22 Tom Tromey <tom@tromey.com>
10492
10493 * NEWS: Add "tui new-layout" item.
10494 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10495 Add new-layout command to help text.
10496 (validate_window_name): New function.
10497 (tui_new_layout_command): New function.
10498 (_initialize_tui_layout): Register "new-layout".
10499 (tui_layout_window::specification): New method.
10500 (tui_layout_window::specification): New method.
10501 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10502 method.
10503 (class tui_layout_window) <specification>: New method.
10504 (class tui_layout_split) <specification>: New method.
10505
416eb92d
TT
105062020-02-22 Tom Tromey <tom@tromey.com>
10507
10508 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10509 * tui/tui-win.c (window_name_completer): Update comment.
10510 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10511 Declare method.
10512 (class tui_layout_window) <replace_window>: Likewise.
10513 (class tui_layout_split) <replace_window>: Likewise.
10514 (tui_set_layout): Don't declare.
10515 (tui_set_initial_layout): Declare function.
10516 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10517 (asm_regs_layout): New globals.
10518 (tui_current_layout, show_layout): Remove.
10519 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10520 (find_layout, tui_apply_layout): New function.
10521 (layout_completer): Remove.
10522 (tui_next_layout): Reimplement.
10523 (tui_next_layout_command): New function.
10524 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10525 (tui_regs_layout): Reimplement.
10526 (tui_regs_layout_command): New function.
10527 (extract_display_start_addr): Rewrite.
10528 (next_layout, prev_layout): Remove.
10529 (tui_layout_window::replace_window): New method.
10530 (tui_layout_split::replace_window): New method.
10531 (destroy_layout): New function.
10532 (layout_list): New global.
10533 (add_layout_command): New function.
10534 (initialize_layouts): Update.
10535 (tui_layout_command): New function.
10536 (_initialize_tui_layout): Install "layout" commands.
10537 * tui/tui-data.h (enum tui_layout_type): Remove.
10538 (tui_current_layout): Don't declare.
10539
0dbc2fc7
TT
105402020-02-22 Tom Tromey <tom@tromey.com>
10541
10542 * tui/tui-regs.c (tui_reg_layout): Remove.
10543 (tui_reg_command): Use tui_regs_layout.
10544 * tui/tui-layout.h (tui_reg_command): Declare.
10545 * tui/tui-layout.c (tui_reg_command): New function.
10546
5afe342e
TT
105472020-02-22 Tom Tromey <tom@tromey.com>
10548
10549 * tui/tui.c (tui_rl_delete_other_windows): Call
10550 tui_remove_some_windows.
10551 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10552 Declare method.
10553 (class tui_layout_window) <remove_windows>: New method.
10554 (class tui_layout_split) <remove_windows>: Declare.
10555 (tui_remove_some_windows): Declare.
10556 * tui/tui-layout.c (tui_remove_some_windows): New function.
10557 (tui_layout_split::remove_windows): New method.
10558
427326a8
TT
105592020-02-22 Tom Tromey <tom@tromey.com>
10560
10561 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10562 * tui/tui-layout.h (tui_next_layout): Declare.
10563 * tui/tui-layout.c (tui_next_layout): New function.
10564
3fe12b6d
TT
105652020-02-22 Tom Tromey <tom@tromey.com>
10566
10567 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10568 correct coordinates.
10569
59b8b5d2
TT
105702020-02-22 Tom Tromey <tom@tromey.com>
10571
10572 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10573 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10574 DATA_WIN case.
10575
2a3d458b
TT
105762020-02-22 Tom Tromey <tom@tromey.com>
10577
10578 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10579 TUI_DISASM_WIN, not tui_win_list.
10580
3f0cbb04
TT
105812020-02-22 Tom Tromey <tom@tromey.com>
10582
10583 * valprint.c (generic_val_print_enum_1)
10584 (val_print_type_code_flags): Style member names.
10585 * rust-lang.c (val_print_struct, rust_print_enum)
10586 (rust_print_struct_def, rust_internal_print_type): Style member
10587 names.
10588 * p-valprint.c (pascal_object_print_value_fields): Style member
10589 names. Only call fprintf_symbol_filtered for static members.
10590 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10591 * f-valprint.c (f_val_print): Style member names.
10592 * f-typeprint.c (f_type_print_base): Style member names.
10593 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10594 call fprintf_symbol_filtered for static members.
10595 (cp_print_class_member): Style member names.
10596 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10597 member names.
10598 * ada-valprint.c (ada_print_scalar): Style enum names.
10599 (ada_val_print_enum): Likewise.
10600 * ada-typeprint.c (print_enum_type): Style enum names.
10601
d4d947ae
TT
106022020-02-21 Tom Tromey <tom@tromey.com>
10603
10604 * psympriv.h (struct partial_symtab): Update comment.
10605
e94e944b
TT
106062020-02-21 Tom Tromey <tromey@adacore.com>
10607
10608 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10609 type is CORE_ADDR.
10610
1eb73179
TV
106112020-02-21 Tom de Vries <tdevries@suse.de>
10612
10613 PR gdb/25534
10614 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10615 if dependencies[i]->user != NULL.
10616
4f180d53
AT
106172020-02-21 Ali Tamur <tamur@google.com>
10618
10619 * dwarf2/read.c (dwarf2_name): Add null check.
10620
22b6cd70
TT
106212020-02-20 Tom Tromey <tom@tromey.com>
10622
10623 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10624 ">=", in binary search.
10625 (dwarf2_find_containing_comp_unit): New overload.
10626 (run_test): New self-test.
10627 (_initialize_dwarf2_read): Register new test.
10628
bd0cf5a6
NC
106292020-02-20 Nelson Chu <nelson.chu@sifive.com>
10630
10631 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10632 * riscv-tdep.h: Likewise.
10633 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10634 rv32-only CSR.
10635 * features/riscv/64bit-csr.xml: Regenerated.
10636
3f702acd
SDJ
106372020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10638 Tom Tromey <tom@tromey.com>
10639
10640 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10641 of 'fputc_unfiltered'.
10642 (putchar_unfiltered): Call 'fputc_unfiltered'.
10643 (fputc_unfiltered): Call 'fputs_unfiltered'.
10644
d13c7322
AB
106452020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10646
10647 * config.in: Regenerate.
10648 * configure: Regenerate.
10649 * configure.ac: Add --with-python-libdir option.
10650 * main.c: Use WITH_PYTHON_LIBDIR.
10651
869d8950
TT
106522020-02-19 Tom Tromey <tom@tromey.com>
10653
10654 * symtab.c (general_symbol_info::compute_and_set_names): Use
10655 obstack_strndup. Simplify call to symbol_set_demangled_name.
10656
298e9637
SM
106572020-02-19 Simon Marchi <simon.marchi@efficios.com>
10658
10659 * dwarf2/read.c (allocate_signatured_type_table,
10660 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10661 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10662 Remove objfile parameter, update all callers.
10663
08410482
DE
106642020-02-19 Doug Evans <dje@google.com>
10665
10666 PR rust/25535
10667 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10668 rust_enum_variant calculation.
10669
dfdeeca1
TT
106702020-02-19 Tom Tromey <tromey@adacore.com>
10671
10672 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10673
2ef5453b
TT
106742020-02-19 Tom Tromey <tromey@adacore.com>
10675
10676 * ada-lang.c (cache_symbol): Use obstack_strdup.
10677
9f1528a1
AB
106782020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10679
10680 * configure: Regenerate.
10681
d3c22fa8
TT
106822020-02-19 Tom Tromey <tromey@adacore.com>
10683
10684 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10685 NULL check.
10686
bf84f706
MR
106872020-02-19 Maciej W. Rozycki <macro@wdc.com>
10688
10689 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10690
d1c9b20f
AB
106912020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10692
10693 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10694 if GDBSERVER is not defined.
10695 (riscv_tdesc_cache): Likewise, also store const target_desc.
10696 (STATIC_IN_GDB): Define.
10697 (riscv_create_target_description): Update declaration with
10698 STATIC_IN_GDB.
10699 (riscv_lookup_target_description): New function, only define if
10700 GDBSERVER is not defined.
10701 * arch/riscv.h (riscv_create_target_description): Declare only
10702 when GDBSERVER is defined.
10703 (riscv_lookup_target_description): New declaration when GDBSERVER
10704 is not defined.
10705 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10706 (riscv_linux_read_features): ...this, and return
10707 riscv_gdbarch_features instead of target_desc.
10708 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10709 (riscv_linux_read_description): Rename to...
10710 (riscv_linux_read_features): ...this.
10711 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10712 Update to use riscv_gdbarch_features and
10713 riscv_lookup_target_description.
10714 * riscv-tdep.c (riscv_find_default_target_description): Use
10715 riscv_lookup_target_description instead of
10716 riscv_create_target_description.
10717
373d7ac0
SM
107182020-02-18 Simon Marchi <simon.marchi@efficios.com>
10719
10720 * valprint.c (generic_val_print_enum_1): When printing a flag
10721 enum with value 0 and there is no enumerator with value 0, print
10722 just "0" instead of "(unknown: 0x0)".
10723
b29a2df0
SM
107242020-02-18 Simon Marchi <simon.marchi@efficios.com>
10725
10726 * valprint.c (generic_val_print_enum_1): Print unknown part of
10727 flag enum in hex.
10728
6740f0cc
SM
107292020-02-18 Simon Marchi <simon.marchi@efficios.com>
10730
10731 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10732 flag enums to contain duplicate enumerators.
10733 * valprint.c (generic_val_print_enum_1): Update comment.
10734
edd45eb0
SM
107352020-02-18 Simon Marchi <simon.marchi@efficios.com>
10736
10737 * dwarf2/read.c: Include "count-one-bits.h".
10738 (update_enumeration_type_from_children): If an enumerator has
10739 multiple bits set, don't treat the enumeration as a "flag enum".
10740 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10741 of flag enums have 0 or 1 bit set.
10742
6d0cf446
BE
107432020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10744
10745 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10746 conversion.
10747 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10748 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10749 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10750 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10751 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10752
7001c1b7
SM
107532020-02-18 Simon Marchi <simon.marchi@efficios.com>
10754
10755 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10756
fdb61c6c
SM
107572020-02-14 Simon Marchi <simon.marchi@efficios.com>
10758
10759 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10760 displaced_step_closure_up.
10761 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10762 (struct displaced_step_closure_up):
10763 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10764 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10765 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10766 Likewise.
10767 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10768 * gdbarch.c, gdbarch.h: Re-generate.
10769 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10770 displaced_step_closure_up.
10771 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10772 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10773 * infrun.h (displaced_step_closure_up): New type alias.
10774 (struct displaced_step_inferior_state) <step_closure>: Change
10775 type to displaced_step_closure_up.
10776 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10777 displaced_step_closure_up.
10778 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10779
a4a38eb4
TT
107802020-02-14 Tom Tromey <tom@tromey.com>
10781
10782 * minidebug.c (gnu_debug_key): New global.
10783 (find_separate_debug_file_in_section): Use it.
10784
e8217e61
SM
107852020-02-14 Simon Marchi <simon.marchi@efficios.com>
10786
10787 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10788 std::unique_ptr.
10789 * gdbarch.c: Re-generate.
10790 * gdbarch.h: Re-generate.
10791 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10792 change.
10793 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10794 type to std::unique_ptr.
10795 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10796 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10797 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10798 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10799 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10800 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10801 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10802 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10803 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10804
d8d83535
SM
108052020-02-14 Simon Marchi <simon.marchi@efficios.com>
10806
10807 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10808 std::unique_ptr.
10809 (displaced_step_clear): Rename to...
10810 (displaced_step_reset): ... this. Just call displaced->reset ().
10811 (displaced_step_clear_cleanup): Rename to...
10812 (displaced_step_reset_cleanup): ... this.
10813 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10814 (displaced_step_fixup): Likewise.
10815 (resume_1): Likewise.
10816 (handle_inferior_event): Restore child's memory before calling
10817 displaced_step_fixup on the parent.
10818 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10819 to std::unique_ptr.
10820 <step_closure>: Change type to std::unique_ptr.
10821
5f661e03
SM
108222020-02-14 Simon Marchi <simon.marchi@efficios.com>
10823
10824 * arm-tdep.c: Include count-one-bits.h.
10825 (cleanup_block_store_pc): Use count_one_bits.
10826 (cleanup_block_load_pc): Use count_one_bits.
10827 (arm_copy_block_xfer): Use count_one_bits.
10828 (thumb2_copy_block_xfer): Use count_one_bits.
10829 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10830 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10831 (thumb_get_next_pcs_raw): Use count_one_bits.
10832 (arm_get_next_pcs_raw): Use count_one_bits_l.
10833 * arch/arm.c (bitcount): Remove.
10834 * arch/arm.h (bitcount): Remove.
10835
8084e579
TT
108362020-02-14 Tom Tromey <tromey@adacore.com>
10837
10838 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10839 Update.
10840 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10841 * dwarf2/loc.c (call_site_find_chain_1): Return
10842 unique_xmalloc_ptr.
10843 (call_site_find_chain): Likewise.
10844
258bf0ee
RB
108452020-02-14 Richard Biener <rguenther@suse.de>
10846
10847 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10848 on expression with division operators.
10849
f98a8458
AKS
108502020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10851
10852 * MAINTAINERS (Write After Approval): Adding myself.
10853
d1437c0e
TT
108542020-02-12 Tom Tromey <tom@tromey.com>
10855
10856 * event-loop.c (event_data, gdb_event, event_handler_func):
10857 Remove.
10858
3d4560f7
TT
108592020-02-12 Tom Tromey <tom@tromey.com>
10860
10861 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10862 (dwarf2_frame_objfile_data): Add comment.
10863 (find_comp_unit, set_comp_unit): New functions.
10864 (dwarf2_frame_find_fde): Use find_comp_unit.
10865 (dwarf2_build_frame_info): Use set_comp_unit.
10866
21982304
TT
108672020-02-12 Tom Tromey <tom@tromey.com>
10868
10869 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10870 (comp_unit): Don't initialize objfile.
10871 (execute_cfa_program): Add text_offset parameter.
10872 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10873 (dwarf2_frame_cache): Update.
10874 (dwarf2_build_frame_info): Don't set "objfile" member.
10875
4debb237
TT
108762020-02-12 Tom Tromey <tom@tromey.com>
10877
10878 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10879 (decode_frame_entry): Likewise.
10880 (dwarf2_build_frame_info): Update.
10881
0d404d44
TT
108822020-02-12 Tom Tromey <tom@tromey.com>
10883
10884 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10885 (decode_frame_entry_1): Use the comp_unit obstack.
10886
a7a3ae5c
TT
108872020-02-12 Tom Tromey <tom@tromey.com>
10888
10889 * dwarf2/frame.c (struct comp_unit): Add initializers and
10890 constructor.
10891 (dwarf2_frame_objfile_data): Store a comp_unit.
10892 (dwarf2_frame_find_fde): Update.
10893 (dwarf2_build_frame_info): Use "new".
10894
a9d65418
TT
108952020-02-12 Tom Tromey <tom@tromey.com>
10896
10897 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10898 (dwarf2_fde_table): Typedef for std::vector.
10899 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10900 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10901 (decode_frame_entry): Update.
10902 (dwarf2_build_frame_info): Use "new".
10903
7559c217
CB
109042020-02-12 Christian Biesinger <cbiesinger@google.com>
10905
10906 * arm-tdep.c (arm_gdbarch_init): Update.
10907 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10908 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10909 have_neon, is_m>: Change to bool.
10910
aeefc73c
CB
109112020-02-12 Christian Biesinger <cbiesinger@google.com>
10912
10913 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10914
d27b8e5f
TT
109152020-02-12 Tom Tromey <tom@tromey.com>
10916
10917 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10918
cd5900f3
HD
109192020-02-12 Hannes Domani <ssbssa@yahoo.de>
10920
10921 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10922 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10923
f056b22b
TT
109242020-02-11 Tom Tromey <tom@tromey.com>
10925
10926 * psymtab.h: Update comment.
10927
f92ff6b5
TT
109282020-02-11 Tom Tromey <tom@tromey.com>
10929
10930 * gdb_obstack.h (struct auto_obstack): Use
10931 DISABLE_COPY_AND_ASSIGN.
10932
3fd6912b
TT
109332020-02-11 Tom Tromey <tom@tromey.com>
10934
10935 * dwarf2/frame.h (struct objfile): Don't forward declare.
10936
69ed9b74
CB
109372020-02-11 Christian Biesinger <cbiesinger@google.com>
10938
10939 * cris-tdep.c (cris_supply_gregset): Change signature to match
10940 what struct regset expects.
10941 (cris_regset): New struct.
10942 (fetch_core_registers): Remove.
10943 (cris_iterate_over_regset_sections): New function.
10944 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10945 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10946
bda874f6
CB
109472020-02-11 Christian Biesinger <cbiesinger@google.com>
10948
10949 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10950 registers.
10951
754e1564
CB
109522020-02-11 Christian Biesinger <cbiesinger@google.com>
10953
10954 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10955
8ddd8e0e
SM
109562020-02-11 Simon Marchi <simon.marchi@efficios.com>
10957
10958 * configure: Re-generate.
10959
898e7f60
SM
109602020-02-11 Simon Marchi <simon.marchi@efficios.com>
10961
10962 * configure: Re-generate.
10963
58df732b
SM
109642020-02-11 Simon Marchi <simon.marchi@efficios.com>
10965
10966 * acinclude: Update warning.m4 path.
10967 * warning.m4: Move to gdbsupport.
10968
da5bd37e
TT
109692020-02-11 Tom Tromey <tromey@adacore.com>
10970
10971 * remote.c (remote_console_output): Update.
10972 * printcmd.c (printf_command): Update.
10973 * event-loop.c (gdb_wait_for_event): Update.
10974 * linux-nat.c (sigchld_handler): Update.
10975 * remote-sim.c (gdb_os_write_stdout): Update.
10976 (gdb_os_flush_stdout): Update.
10977 (gdb_os_flush_stderr): Update.
10978 (gdb_os_write_stderr): Update.
10979 * exceptions.c (print_exception): Update.
10980 * remote-fileio.c (remote_fileio_func_read): Update.
10981 (remote_fileio_func_write): Update.
10982 * tui/tui.c (tui_enable): Update.
10983 * tui/tui-interp.c (tui_interp::init): Update.
10984 * utils.c (init_page_info): Update.
10985 (putchar_unfiltered, fputc_unfiltered): Update.
10986 (gdb_flush): Update.
10987 (emit_style_escape): Update.
10988 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10989 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10990 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10991 (stderr_file::write): Update.
10992 (stderr_file::puts): Update.
10993 * ui-file.h (ui_file_isatty, ui_file_write)
10994 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10995 (ui_file_puts): Don't declare.
10996
85f0dd3c
TV
109972020-02-10 Tom de Vries <tdevries@suse.de>
10998
10999 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11000 sentinel to char *.
11001
2e927613
TV
110022020-02-09 Tom de Vries <tdevries@suse.de>
11003
11004 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11005 filename if it matches "<artificial>".
11006
6bafc845
HD
110072020-02-09 Hannes Domani <ssbssa@yahoo.de>
11008
11009 * windows-tdep.c (struct enum_value_name): New struct.
11010 (create_enum): New function.
11011 (windows_get_siginfo_type): Create and use enum types.
11012
7928d571
HD
110132020-02-09 Hannes Domani <ssbssa@yahoo.de>
11014
11015 * NEWS: Mention $_siginfo support for Windows.
11016 * windows-nat.c (handle_exception): Set siginfo_er.
11017 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11018 (windows_xfer_siginfo): New function.
11019 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11020 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11021 (init_windows_gdbarch_data): New function.
11022 (get_windows_gdbarch_data): New function.
11023 (windows_get_siginfo_type): New function.
11024 (windows_init_abi): Register windows_get_siginfo_type.
11025 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11026
6751ebae
TT
110272020-02-08 Tom Tromey <tom@tromey.com>
11028
11029 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11030 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11031 <keep>: Declare method.
11032 <m_keep>: Remove member.
11033 <~cutu_reader>: Remove.
11034 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11035 (cutu_reader::cutu_reader): Update.
11036 (cutu_reader::keep): Rename from ~cutu_reader.
11037 (process_psymtab_comp_unit, build_type_psymtabs_1)
11038 (process_skeletonless_type_unit, load_partial_comp_unit)
11039 (load_full_comp_unit, dwarf2_read_addr_index)
11040 (read_signatured_type): Update.
11041
135f5437
TT
110422020-02-08 Tom Tromey <tom@tromey.com>
11043
11044 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11045 "want_partial_unit" parameter.
11046 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11047 Inline check for DW_TAG_partial_unit.
11048 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11049
9f66ff1c
TT
110502020-02-08 Tom Tromey <tom@tromey.com>
11051
11052 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11053 read.c.
11054 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11055 read.c.
11056
c8a7a66f
TT
110572020-02-08 Tom Tromey <tom@tromey.com>
11058
11059 * dwarf2/read.c (read_address): Move to comp-unit.c.
11060 (dwarf2_rnglists_process, dwarf2_ranges_process)
11061 (read_attribute_value, dwarf_decode_lines_1)
11062 (var_decode_location, decode_locdesc): Update.
11063 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11064 read.c. Remove "cu" parameter.
11065 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11066 method.
11067
8266302d
TT
110682020-02-08 Tom Tromey <tom@tromey.com>
11069
11070 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11071 (read_indirect_line_string): Update.
11072 * dwarf2/comp-unit.c (read_offset): Remove.
11073 (read_comp_unit_head): Update.
11074 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11075 method.
11076 (read_offset): Don't declare.
11077
4057dfde
TT
110782020-02-08 Tom Tromey <tom@tromey.com>
11079
11080 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11081 * dwarf2/read.c (struct comp_unit_head): Move to
11082 dwarf2/comp-unit.h.
11083 (enum class rcuh_kind): Move to comp-unit.h.
11084 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11085 (read_comp_unit_head, error_check_comp_unit_head)
11086 (read_and_check_comp_unit_head): Move to comp-unit.c.
11087 (read_offset, dwarf_unit_type_name): Likewise.
11088 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11089 (cutu_reader::cutu_reader, read_call_site_scope)
11090 (find_partial_die, follow_die_offset): Update.
11091 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11092
24aa364d
TT
110932020-02-08 Tom Tromey <tom@tromey.com>
11094
11095 * dwarf2/read.c (read_offset_1): Move to leb.c.
11096 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11097 (dwarf_decode_macro_bytes): Update.
11098 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11099 * dwarf2/leb.h (read_offset): Declare.
11100
2c7d5afc
TT
111012020-02-08 Tom Tromey <tom@tromey.com>
11102
11103 * dwarf2/read.c (dwarf2_section_size): Remove.
11104 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11105 Update.
11106 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11107
4075cb26
TT
111082020-02-08 Tom Tromey <tom@tromey.com>
11109
11110 * dwarf2/read.c (read_initial_length): Move to leb.c.
11111 * dwarf2/leb.h (read_initial_length): Declare.
11112 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11113 handle_nonstd parameter.
11114 * dwarf2/frame.c (read_initial_length): Remove.
11115 (decode_frame_entry_1): Update.
11116
09ba997f
TT
111172020-02-08 Tom Tromey <tom@tromey.com>
11118
11119 * dwarf2/loc.c (dwarf2_find_location_expression)
11120 (dwarf_evaluate_loc_desc::get_tls_address)
11121 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11122 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11123 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11124 (dwarf2_compile_property_to_c)
11125 (dwarf2_loc_desc_get_symbol_read_needs)
11126 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11127 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11128 (loclist_describe_location, loclist_tracepoint_var_ref)
11129 (loclist_generate_c_location): Update.
11130 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11131 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11132 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11133 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11134 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11135 (dwarf2_per_cu_data::addr_size)
11136 (dwarf2_per_cu_data::ref_addr_size)
11137 (dwarf2_per_cu_data::text_offset)
11138 (dwarf2_per_cu_data::addr_type): Now methods.
11139 (per_cu_header_read_in): Make per_cu "const".
11140 (dwarf2_version): Remove.
11141 (dwarf2_per_cu_data::int_type): Now a method.
11142 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11143 (set_die_type, read_array_type, read_subrange_index_type)
11144 (read_tag_string_type, read_subrange_type): Update.
11145 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11146 offset_size, ref_addr_size, text_offset, addr_type, version,
11147 objfile, int_type, addr_sized_int_type>: Declare methods.
11148
96c738c0
TT
111492020-02-08 Tom Tromey <tom@tromey.com>
11150
11151 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11152 Move earlier.
11153
8fdd972c
TT
111542020-02-08 Tom Tromey <tom@tromey.com>
11155
11156 * dwarf2/read.h (dwarf_line_debug): Declare.
11157 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11158 * dwarf2/read.c: Move line_header code to new files.
11159 (dwarf_line_debug): No longer static.
11160 * dwarf2/line-header.c: New file.
11161 * dwarf2/line-header.h: New file.
11162
03075812
TT
111632020-02-08 Tom Tromey <tom@tromey.com>
11164
11165 * dwarf2/read.c (struct line_header) <file_full_name,
11166 file_file_name>: Return unique_xmalloc_ptr.
11167 (line_header::file_file_name): Update.
11168 (line_header::file_full_name): Update.
11169 (dw2_get_file_names_reader): Update.
11170 (macro_start_file): Update.
11171
bb822404
TT
111722020-02-08 Tom Tromey <tom@tromey.com>
11173
11174 * dwarf2/read.c (struct line_header) <file_full_name,
11175 file_file_name>: Declare methods.
11176 (dw2_get_file_names_reader): Update.
11177 (file_file_name): Now a method.
11178 (file_full_name): Likewise.
11179 (macro_start_file): Update.
11180
009b64fc
TT
111812020-02-08 Tom Tromey <tom@tromey.com>
11182
11183 * dwarf2/read.c (dwarf_always_disassemble)
11184 (show_dwarf_always_disassemble): Move to loc.c.
11185 (_initialize_dwarf2_read): Move "always-disassemble" registration
11186 to loc.c.
11187 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11188 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11189 static.
11190 (show_dwarf_always_disassemble): Move from read.c.
11191 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11192
5895093f
TT
111932020-02-08 Tom Tromey <tom@tromey.com>
11194
11195 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11196 (create_quick_file_names_table): Return htab_up.
11197 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11198 Update.
11199 * dwarf2/read.h (struct dwarf2_per_objfile)
11200 <quick_file_names_table>: Now htab_up.
11201
b3b32279
TT
112022020-02-08 Tom Tromey <tom@tromey.com>
11203
11204 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11205
1d33d811
TT
112062020-02-08 Tom Tromey <tom@tromey.com>
11207
11208 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11209 Rewrite.
11210 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11211 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11212 (abbrev_table::abbrev_table): No longer inline.
11213 (ABBREV_HASH_SIZE): Remove.
11214 (abbrev_table::m_abbrevs): Now an htab_up.
11215
86de1d91
TT
112162020-02-08 Tom Tromey <tom@tromey.com>
11217
11218 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11219 (cutu_reader): Update.
11220 (build_type_psymtabs_1): Update.
11221 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11222 (abbrev_table::alloc_abbrev): Update.
11223 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11224 (abbrev_table::read): New static method, renamed from
11225 abbrev_table_read_table.
11226 (abbrev_table::alloc_abbrev)
11227 (abbrev_table::add_abbrev): Now private.
11228 (abbrev_table::abbrev_table): Now private.
11229 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11230
0335378b
TT
112312020-02-08 Tom Tromey <tom@tromey.com>
11232
11233 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11234 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11235 htab_up.
11236
48b490f2
TT
112372020-02-08 Tom Tromey <tom@tromey.com>
11238
11239 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11240 htab_up.
11241 (lookup_dwo_unit_in_dwp): Update.
11242 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11243 on obstack.
11244
bc68fb19
TT
112452020-02-08 Tom Tromey <tom@tromey.com>
11246
11247 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11248 obstack.
11249
d15acc42
TT
112502020-02-08 Tom Tromey <tom@tromey.com>
11251
11252 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11253 line_header_hash.
11254 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11255 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11256 Change type to htab_up.
11257
eaa5fa8b
TT
112582020-02-08 Tom Tromey <tom@tromey.com>
11259
11260 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11261 htab_up. Don't allocate on obstack.
11262 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11263 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11264 Change type to htab_up.
11265
b0b6a987
TT
112662020-02-08 Tom Tromey <tom@tromey.com>
11267
11268 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11269 Change type to htab_up.
11270 * dwarf2/read.c (create_signatured_type_table_from_index)
11271 (create_signatured_type_table_from_debug_names)
11272 (create_all_type_units, add_type_unit)
11273 (lookup_dwo_signatured_type, lookup_signatured_type)
11274 (process_skeletonless_type_unit): Update.
11275 (create_debug_type_hash_table, create_debug_types_hash_table):
11276 Change type of types_htab.
11277 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11278 htab_up. Don't allocate on obstack.
11279 (create_cus_hash_table): Change type of cus_htab parameter.
11280 (struct dwo_file) <cus, tus>: Now htab_up.
11281 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11282 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11283 (queue_and_load_all_dwo_tus): Update.
11284 * dwarf2/index-write.c (write_gdbindex): Update.
11285 (write_debug_names): Update.
11286
39856def
TT
112872020-02-08 Tom Tromey <tom@tromey.com>
11288
11289 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11290 dwarf2/read.c. Remove "next" member. Add constructor ntad
11291 destructor.
11292 (struct dwarf2_per_objfile) <queue>: New member.
11293 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11294 dwarf2/read.h.
11295 (dwarf2_queue, dwarf2_queue_tail): Remove.
11296 (class dwarf2_queue_guard): Add parameter to constructor. Use
11297 DISABLE_COPY_AND_ASSIGN.
11298 <m_per_objfile>: New member.
11299 <~dwarf2_queue_guard>: Rewrite.
11300 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11301 Update.
11302 (~dwarf2_queue_item): New.
11303
3e225074
TT
113042020-02-08 Tom Tromey <tom@tromey.com>
11305
11306 * dwarf2/read.c (struct die_info) <has_children>: New member.
11307 (dw2_get_file_names_reader): Remove has_children.
11308 (dw2_get_file_names): Update.
11309 (read_cutu_die_from_dwo): Remove has_children.
11310 (cutu_reader::init_tu_and_read_dwo_dies)
11311 (cutu_reader::cutu_reader): Update.
11312 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11313 Remove has_children.
11314 (build_type_psymtabs_1, process_skeletonless_type_unit)
11315 (load_partial_comp_unit, load_full_comp_unit): Update.
11316 (create_dwo_cu_reader): Remove has_children.
11317 (create_cus_hash_table, read_die_and_children): Update.
11318 (read_full_die_1,read_full_die): Remove has_children.
11319 (read_signatured_type): Update.
11320 (class cutu_reader) <has_children>: Remove.
11321
82ca8957
TT
113222020-02-08 Tom Tromey <tom@tromey.com>
11323
11324 * dwarf2/expr.c: Rename from dwarf2expr.c.
11325 * dwarf2/expr.h: Rename from dwarf2expr.h.
11326 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11327 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11328 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11329 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11330 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11331 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11332 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11333 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11334 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11335 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11336 * dwarf2/loc.c: Rename from dwarf2loc.c.
11337 * dwarf2/loc.h: Rename from dwarf2loc.h.
11338 * dwarf2/read.c: Rename from dwarf2read.c.
11339 * dwarf2/read.h: Rename from dwarf2read.h.
11340 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11341 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11342 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11343 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11344 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11345 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11346 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11347 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11348 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11349 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11350 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11351 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11352 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11353 Update.
11354 * Makefile.in (COMMON_SFILES): Update.
11355 (HFILES_NO_SRCDIR): Update.
11356
9e35d499
TT
113572020-02-08 Tom Tromey <tom@tromey.com>
11358
11359 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11360 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11361
1eba2311
TT
113622020-02-08 Tom Tromey <tom@tromey.com>
11363
11364 * dwarf2read.h (struct die_info): Don't declare.
11365
e41c2da2
TT
113662020-02-08 Tom Tromey <tom@tromey.com>
11367
11368 * dwarf2read.h (die_info_ptr): Remove typedef.
11369
4fc6c0d5
TT
113702020-02-08 Tom Tromey <tom@tromey.com>
11371
11372 * dwarf2read.c (read_call_site_scope)
11373 (handle_data_member_location, dwarf2_add_member_fn)
11374 (mark_common_block_symbol_computed, read_common_block)
11375 (attr_to_dynamic_prop, partial_die_info::read)
11376 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11377 (dwarf2_symbol_mark_computed, set_die_type): Update.
11378 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11379 method.
11380 (attr_form_is_block): Don't declare.
11381 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11382
cd6c91b4
TT
113832020-02-08 Tom Tromey <tom@tromey.com>
11384
11385 * dwarf2read.c (dwarf2_find_base_address, )
11386 (read_call_site_scope, rust_containing_type)
11387 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11388 (handle_data_member_location, dwarf2_add_member_fn)
11389 (get_alignment, read_structure_type, process_structure_scope)
11390 (mark_common_block_symbol_computed, read_common_block)
11391 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11392 (partial_die_info::read, read_attribute_value, new_symbol)
11393 (lookup_die_type, dwarf2_get_ref_die_offset)
11394 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11395 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11396 (dwarf2_symbol_mark_computed): Update.
11397 * dwarf2/attribute.h (struct attribute) <value_as_address,
11398 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11399 methods.
11400 (value_as_address, attr_form_is_section_offset)
11401 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11402 * dwarf2/attribute.c (attribute::value_as_address)
11403 (attribute::form_is_section_offset, attribute::form_is_constant)
11404 (attribute::form_is_ref): Now methods.
11405
162dce55
TT
114062020-02-08 Tom Tromey <tom@tromey.com>
11407
11408 * dwarf2read.c (struct attribute, DW_STRING)
11409 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11410 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11411 (attr_form_is_block, attr_form_is_section_offset)
11412 (attr_form_is_constant, attr_form_is_ref): Move.
11413 * dwarf2/attribute.h: New file.
11414 * dwarf2/attribute.c: New file, from dwarf2read.c.
11415 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11416
3054dd54
TT
114172020-02-08 Tom Tromey <tom@tromey.com>
11418
11419 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11420 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11421 Move.
11422 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11423 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11424 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11425 abbrev.c.
11426 * dwarf2/abbrev.h: New file.
11427 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11428 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11429
96b79293
TT
114302020-02-08 Tom Tromey <tom@tromey.com>
11431
11432 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11433 (dwarf2_section_size, dwarf2_get_section_info)
11434 (create_signatured_type_table_from_debug_names)
11435 (create_addrmap_from_aranges, read_debug_names_from_section)
11436 (get_gdb_index_contents_from_section, read_comp_unit_head)
11437 (error_check_comp_unit_head, read_abbrev_offset)
11438 (create_debug_type_hash_table, init_cu_die_reader)
11439 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11440 (read_comp_units_from_section, create_cus_hash_table)
11441 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11442 (create_dwp_v2_section, dwarf2_rnglists_process)
11443 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11444 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11445 (read_indirect_string_from_dwz, read_addr_index_1)
11446 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11447 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11448 (fill_in_loclist_baton): Update.
11449 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11450 get_containing_section, get_bfd_owner, get_bfd_section,
11451 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11452 (dwarf2_read_section, get_section_name, get_section_file_name)
11453 (get_containing_section, get_section_bfd_owner)
11454 (get_section_bfd_section, get_section_name, get_section_file_name)
11455 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11456 declare.
11457 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11458 (dwarf2_section_info::get_bfd_owner)
11459 (dwarf2_section_info::get_bfd_section)
11460 (dwarf2_section_info::get_name)
11461 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11462 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11463 (dwarf2_section_info::read): Now methods.
11464 * dwarf-index-write.c (class debug_names): Update.
11465
2c86cff9
TT
114662020-02-08 Tom Tromey <tom@tromey.com>
11467
11468 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11469 Move to dwarf2/section.h.
11470 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11471 (get_section_bfd_section, get_section_name)
11472 (get_section_file_name, get_section_id, get_section_flags)
11473 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11474 dwarf2/section.c.
11475 * dwarf2/section.h: New file.
11476 * dwarf2/section.c: New file, from dwarf2read.c.
11477 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11478
f4382c45
TT
114792020-02-08 Tom Tromey <tom@tromey.com>
11480
11481 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11482 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11483 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11484 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11485 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11486 * dwarf2/leb.h: New file, from dwarf2read.c.
11487 * dwarf2/leb.c: New file, from dwarf2read.c.
11488 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11489 Remove.
11490 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11491 (COMMON_SFILES): Add dwarf2/leb.c.
11492
01840b7a
JB
114932020-02-08 Joel Brobecker <brobecker@adacore.com>
11494
11495 GDB 9.1 released.
11496
dfcb27e4
IB
114972020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11498
11499 PR gdb/25190:
aac66a4c
SM
11500 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11501 * gdb/remote.c (remote_console_output): Update.
11502 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11503 (ui_file_puts): ...this.
11504 * gdb/ui-file.h (ui_file_puts): Add declaration.
11505 * gdb/utils.c (emit_style_escape): Update.
11506 (flush_wrap_buffer): Update.
11507 (fputs_maybe_filtered): Update.
11508 (fputs_unfiltered): Add function.
dfcb27e4 11509
faa17681
IB
115102020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11511
aac66a4c
SM
11512 * gdb/event-loop.c (gdb_wait_for_event): Update.
11513 * gdb/printcmd.c (printf_command): Update.
11514 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11515 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11516 (gdb_os_flush_stderr): Update.
11517 * gdb/remote.c (remote_console_output): Update.
11518 * gdb/ui-file.c (gdb_flush): Rename to...
11519 (ui_file_flush): ...this.
11520 (stderr_file::write): Update.
11521 (stderr_file::puts): Update.
11522 * gdb/ui-file.h (gdb_flush): Rename to...
11523 (ui_file_flush): ...this.
11524 * gdb/utils.c (gdb_flush): Add function.
11525 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11526
5abbbe1d
TT
115272020-02-07 Tom Tromey <tromey@adacore.com>
11528
11529 PR breakpoints/24915:
11530 * source.c (find_and_open_source): Do not check basenames_may_differ.
11531
919adfe8
TT
115322020-02-07 Tom Tromey <tom@tromey.com>
11533
11534 * README: Update gdbserver documentation.
11535 * gdbserver: Move to top level.
11536 * configure.tgt (build_gdbserver): Remove.
11537 * configure.ac: Remove --enable-gdbserver.
11538 * configure: Rebuild.
11539 * Makefile.in (distclean): Don't mention gdbserver.
11540
1d5d29e7
SV
115412020-02-06 Shahab Vahedi <shahab@synopsys.com>
11542
11543 * source-cache.c (source_cache::ensure): Surround
11544 get_plain_source_lines with a try/catch.
11545 (source_cache::get_line_charpos): Get rid of try/catch
11546 and only check for the return value of "ensure".
11547 * tui/tui-source.c (tui_source_window::set_contents):
11548 Simplify "nlines" calculation.
11549
6eb1129c
SV
115502020-02-06 Shahab Vahedi <shahab@synopsys.com>
11551
11552 * MAINTAINERS (Write After Approval): Add myself.
11553
c6a42d11
CB
115542020-02-05 Christian Biesinger <cbiesinger@google.com>
11555
11556 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11557 function call.
11558
c8ecdda6
CB
115592020-02-05 Christian Biesinger <cbiesinger@google.com>
11560
11561 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11562
f6480e70
MR
115632020-02-05 Maciej W. Rozycki <macro@wdc.com>
11564
11565 * nat/riscv-linux-tdesc.h: New file.
11566 * nat/riscv-linux-tdesc.c: New file, taking code from...
11567 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11568 ... here.
11569 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11570 NATDEPFILES.
11571
dcc9fbc6
AB
115722020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11573
11574 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11575 we don't set the fake simulator ptid to the null_ptid.
11576
719546c4
SM
115772020-02-03 Simon Marchi <simon.marchi@efficios.com>
11578
11579 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11580 * gdbthread.h (class thread_info) <resumed>: Likewise.
11581 * infrun.c (resume_1): Likewise.
11582 (proceed): Likewise.
11583 (infrun_thread_stop_requested): Likewise.
11584 (stop_all_threads): Likewise.
11585 (handle_inferior_event): Likewise.
11586 (restart_threads): Likewise.
11587 (finish_step_over): Likewise.
11588 (keep_going_stepped_thread): Likewise.
11589 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11590 (linux_handle_extended_wait): Likewise.
11591 * record-btrace.c (get_thread_current_frame_id): Likewise.
11592 * record-full.c (record_full_wait_1): Likewise.
11593 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11594 * target.c (target_resume): Likewise.
11595 * thread.c (set_running_thread): Likewise.
11596
e409c542
AKS
115972020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11598
11599 * f-valprint.c (f77_print_array_1): Changed datatype of index
11600 variable to LONGEST from int to enable it to contain bound
11601 values correctly.
11602
ee98c0da
MR
116032020-02-03 Maciej W. Rozycki <macro@wdc.com>
11604
11605 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11606 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11607 offsets according to FLEN determined.
11608 (riscv_linux_nat_target::read_description): Determine FLEN
11609 dynamically.
11610 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11611 according to FLEN determined.
11612 (riscv_linux_nat_target::store_registers): Likewise.
11613
aa66aac4
SV
116142020-02-01 Shahab Vahedi <shahab@synopsys.com>
11615
11616 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11617 when reg->group is empty and reggroup is not.
11618
fd9faca8
TT
116192020-01-31 Tom Tromey <tromey@adacore.com>
11620
11621 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11622 Call beneath target's mourn_inferior after unpushing.
11623
42330a68
AB
116242020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11625
11626 PR tui/9765
11627 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11628 have enough lines to fill the screen, still return the lowest
11629 address we found.
11630
7a27a45b
AB
116312020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11632
11633 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11634 '-', '<', and '>' commands.
11635
c47f70e2
PA
116362020-01-29 Pedro Alves <palves@redhat.com>
11637 Sergio Durigan Junior <sergiodj@redhat.com>
11638
11639 * infcmd.c (construct_inferior_arguments): Assert that
11640 'argc' is greater than 0.
11641
5133a315
LM
116422020-01-29 Luis Machado <luis.machado@linaro.org>
11643
11644 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11645 (BRK_INSN_MASK): Define to 0xd4200000.
11646 (aarch64_program_breakpoint_here_p): New function.
11647 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11648 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11649 breakpoint.c.
11650 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11651 breakpoint.h
11652 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11653 call gdbarch_program_breakpoint_here_p.
11654 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11655 default_program_breakpoint_here_p, changed return type to bool and
11656 simplified.
11657 * breakpoint.h (program_breakpoint_here): Moved prototype to
11658 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11659 return type to bool.
11660 * gdbarch.c: Regenerate.
11661 * gdbarch.h: Regenerate.
11662 * gdbarch.sh (program_breakpoint_here_p): New method.
11663 * infrun.c (handle_signal_stop): Call
11664 gdbarch_program_breakpoint_here_p.
11665
168f8c6b
TT
116662020-01-26 Tom Tromey <tom@tromey.com>
11667
11668 * ctfread.c (struct ctf_fp_info): Reindent.
11669 (_initialize_ctfread): Remove.
11670
128a391f
TT
116712020-01-26 Tom Tromey <tom@tromey.com>
11672
11673 * psymtab.c (partial_map_expand_apply)
11674 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11675 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11676 (psym_print_stats, psym_expand_symtabs_for_function)
11677 (psym_map_symbol_filenames, psym_map_matching_symbols)
11678 (psym_expand_symtabs_matching)
11679 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11680 (maintenance_check_psymtabs): Use new methods.
11681 * psympriv.h (struct partial_symtab) <readin_p,
11682 get_compunit_symtab>: New methods.
11683 <readin, compunit_symtab>: Remove members.
11684 (struct standard_psymtab): New.
11685 (struct legacy_psymtab): Derive from standard_psymtab.
11686 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11687 standard_psymtab.
11688 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11689
0494dbec
TT
116902020-01-26 Tom Tromey <tom@tromey.com>
11691
11692 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11693 read_dependencies. Add assert.
11694 * psymtab.c (partial_symtab::read_dependencies): New method.
11695 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11696 method.
11697 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11698 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11699 read_dependencies.
11700 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11701 Add assert.
11702
8566b89b
TT
117032020-01-26 Tom Tromey <tom@tromey.com>
11704
11705 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11706 Call expand_psymtab.
11707 (xcoff_read_symtab): Call expand_psymtab.
11708 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11709 legacy_expand_psymtab.
11710 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11711 method.
11712 (struct legacy_psymtab) <expand_psymtab>: Implement.
11713 <legacy_expand_psymtab>: New member.
11714 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11715 (parse_partial_symbols): Set legacy_expand_psymtab.
11716 (psymtab_to_symtab_1): Change argument order. Call
11717 expand_psymtab.
11718 (new_psymtab): Set legacy_expand_psymtab.
11719 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11720 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11721 expand_psymtab.
11722 (dwarf2_psymtab::expand_psymtab): Rename from
11723 psymtab_to_symtab_1. Call expand_psymtab.
11724 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11725 (dbx_end_psymtab): Likewise.
11726 (dbx_psymtab_to_symtab_1): Change argument order. Call
11727 expand_psymtab.
11728 (dbx_read_symtab): Call expand_psymtab.
11729 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11730 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11731 (ctf_psymtab::read_symtab): Call expand_psymtab.
11732
077cbab2
TT
117332020-01-26 Tom Tromey <tom@tromey.com>
11734
11735 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11736 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11737 messages.
11738 * mdebugread.c (mdebug_read_symtab): Remove prints.
11739 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11740 assert.
11741 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11742
891813be
TT
117432020-01-26 Tom Tromey <tom@tromey.com>
11744
11745 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11746 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11747 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11748 legacy_symtab.
11749 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11750 * psymtab.c (psymtab_to_symtab): Call method.
11751 (dump_psymtab): Update.
11752 * psympriv.h (struct partial_symtab): Add virtual destructor.
11753 <read_symtab>: New method.
11754 (struct legacy_symtab): New.
11755 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11756 (struct pst_map) <pst>: Now a legacy_psymtab.
11757 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11758 (new_psymtab): Use legacy_psymtab.
11759 * dwarf2read.h (struct dwarf2_psymtab): New.
11760 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11761 * dwarf2read.c (dwarf2_create_include_psymtab)
11762 (dwarf2_build_include_psymtabs, create_type_unit_group)
11763 (create_partial_symtab, process_psymtab_comp_unit_reader)
11764 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11765 (set_partial_user): Use dwarf2_psymtab.
11766 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11767 (psymtab_to_symtab_1, process_full_comp_unit)
11768 (process_full_type_unit, dwarf2_ranges_read)
11769 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11770 (dwarf_decode_lines): Use dwarf2_psymtab.
11771 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11772 (add_address_entry_worker, write_one_signatured_type)
11773 (recursively_count_psymbols, recursively_write_psymbols)
11774 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11775 (write_debug_names): Likewise.
11776 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11777 <pst>: Now a legacy_psymtab.
11778 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11779 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11780 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11781 * ctfread.c (struct ctf_psymtab): New.
11782 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11783 ctf_psymtab.
11784 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11785 (create_partial_symtab): Return a ctf_psymtab.
11786 (scan_partial_symbols): Update.
11787
c3693a1d
TT
117882020-01-26 Tom Tromey <tom@tromey.com>
11789
11790 * xcoffread.c (xcoff_start_psymtab): Use new.
11791 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11792 renamed from start_psymtab_common.
11793 * psympriv.h (struct partial_symtab): Add new constructor.
11794 (start_psymtab_common): Don't declare.
11795 * mdebugread.c (parse_partial_symbols): Use new.
11796 * dwarf2read.c (create_partial_symtab): Use new.
11797 * dbxread.c (start_psymtab): Use new.
11798 * ctfread.c (create_partial_symtab): Use new.
11799
32caafd0
TT
118002020-01-26 Tom Tromey <tom@tromey.com>
11801
11802 * xcoffread.c (xcoff_end_psymtab): Use new.
11803 * psymtab.c (start_psymtab_common): Use new.
11804 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11805 Update.
11806 * psympriv.h (struct partial_symtab): Add parameters to
11807 constructor. Don't inline.
11808 (allocate_psymtab): Don't declare.
11809 * mdebugread.c (new_psymtab): Use new.
11810 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11811 * dbxread.c (dbx_end_psymtab): Use new.
11812
abaa2f23
TT
118132020-01-26 Tom Tromey <tom@tromey.com>
11814
11815 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11816 allocate_psymtab. Update documentation.
11817 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11818 allocate_psymtab. Do not use new.
11819 (allocate_psymtab): Use new. Update.
11820
6d94535f
TT
118212020-01-26 Tom Tromey <tom@tromey.com>
11822
11823 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11824 * psymtab.c (psym_print_stats): Update.
11825 * psympriv.h (struct partial_symtab) <readin,
11826 psymtabs_addrmap_supported, anonymous>: Now bool.
11827 * mdebugread.c (psymtab_to_symtab_1): Update.
11828 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11829 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11830 (process_full_comp_unit, process_full_type_unit): Update.
11831 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11832 * ctfread.c (psymtab_to_symtab): Update.
11833
6f17252b
TT
118342020-01-26 Tom Tromey <tom@tromey.com>
11835
11836 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11837 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11838 * psymtab.c (psymtab_storage): Delete psymtabs.
11839 (psymtab_storage::allocate_psymtab): Use new.
11840 (psymtab_storage::discard_psymtab): Use delete.
11841 * psympriv.h (struct partial_symtab): Add constructor and
11842 initializers.
11843
f6f1cebc
TT
118442020-01-26 Tom Tromey <tom@tromey.com>
11845
11846 * machoread.c: Do not include psympriv.h.
11847
e47e48f6
PW
118482020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11849
11850 * NEWS: Mention the new option and the set/show commands.
11851
a2fedca9
PW
118522020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11853
11854 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11855 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11856 (validate_exec_file): New variables, enums, functions.
11857 (exec_file_locate_attach, print_section_info): Style the filenames.
11858 (_initialize_exec): Install show_exec_file_mismatch_command and
11859 set_exec_file_mismatch_command.
11860 * gdbcore.h (validate_exec_file): Declare.
11861 * infcmd.c (attach_command): Call validate_exec_file.
11862 * remote.c ( remote_target::remote_add_inferior): Likewise.
11863
7ffa82e1
AB
118642020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11865
11866 * frame.c (find_frame_sal): Move call to get_next_frame into more
11867 inner scope.
11868 * inline-frame.c (inilne_state) <inline_state>: Update argument
11869 types.
11870 (inilne_state) <skipped_symbol>: Rename to...
11871 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11872 (skip_inline_frames): Build vector of skipped symbols and use this
11873 to reate the inline_state.
11874 (inline_skipped_symbol): Add a comment and some assertions, fetch
11875 skipped symbol from the list.
11876
3d92a3e3
AB
118772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11878
11879 * buildsym.c (lte_is_less_than): Delete.
11880 (buildsym_compunit::end_symtab_with_blockvector): Create local
11881 lambda function to sort line table entries, and use
11882 std::stable_sort instead of std::sort.
11883 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11884 markers when looking for a previous line.
11885
94a72be7
AB
118862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11887
11888 * dwarf2read.c (lnp_state_machine::record_line): Include
11889 end_sequence parameter in debug print out. Record the line if we
11890 are at an end_sequence marker even if it's not the start of a
11891 statement.
11892 * symmisc.c (maintenance_print_one_line_table): Print end of
11893 sequence markers with 'END' not '0'.
11894
53af73bf
PA
118952020-01-24 Pedro Alves <palves@redhat.com>
11896
11897 PR gdb/25410
11898 * thread.c (scoped_restore_current_thread::restore): Use
11899 switch_to_inferior_no_thread.
11900 * exec.c: Include "progspace-and-thread.h".
11901 (add_target_sections, remove_target_sections):
11902 scoped_restore_current_pspace_and_thread instead of
11903 scoped_restore_current_thread.
11904 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11905 and aspace to the inferior before calling clone_program_space.
11906 Remove stale comment.
11907
3050c6f4
CB
119082020-01-24 Christian Biesinger <cbiesinger@google.com>
11909
11910 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11911 (arm_netbsd_nat_target::fetch_registers): ...this.
11912 (arm_nbsd_nat_target::store_registers): Rename to...
11913 (arm_netbsd_nat_target::store_registers): ...this.
11914
73685c7e
CB
119152020-01-24 Christian Biesinger <cbiesinger@google.com>
11916
11917 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11918 register_t.
11919
89203d40
CB
119202020-01-24 Christian Biesinger <cbiesinger@google.com>
11921
11922 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11923 Update comment.
11924 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11925 Likewise.
11926 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11927 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11928 the correct replacement (iterate_over_regset_sections).
11929 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11930 Update comment.
11931
1ba1ac88
AB
119322020-01-24 Graham Markall <graham.markall@embecosm.com>
11933
11934 PR gdb/23718
11935 * gdb/python/python.c (execute_gdb_command): Call
11936 async_enable_stdin in catch block.
11937
f3364a6d
AB
119382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11939
11940 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11941 SWITCH_THRU_ALL_UIS.
11942
733d0a67
AB
119432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11944
11945 PR tui/9765
11946 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11947 comment, add extra parameter, and update to store previous symbol
11948 when appropriate.
11949 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11950 add extra parameter.
11951 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11952 remove unneeded parameter, add try/catch around gdb_print_insn,
11953 rewrite to add items to asm_lines vector.
11954 (tui_find_backward_disassembly_start_address): New function.
11955 (tui_find_disassembly_address): Updated throughout.
11956 (tui_disasm_window::set_contents): Update for changes to
11957 tui_disassemble.
11958 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11959 number of lines to scroll.
11960
b3b3bada
SM
119612020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11962
11963 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11964 (SECT_OFF_DATA): Likewise.
11965 (SECT_OFF_RODATA): Likewise.
11966 (SECT_OFF_TEXT): Likewise.
11967 (SECT_OFF_BSS): Likewise.
11968 (struct objfile) <text_section_offset, data_section_offset>: New
11969 methods.
11970 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11971 objfile::text_section_offset.
11972 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11973 * coffread.c (coff_symtab_read): Likewise.
11974 (enter_linenos): Likewise.
11975 (process_coff_symbol): Likewise.
11976 * ctfread.c (get_objfile_text_range): Likewise.
11977 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11978 Use objfile::data_section_offset.
11979 * dwarf2-frame.c (execute_cfa_program): Use
11980 objfile::text_section_offset.
11981 (dwarf2_frame_find_fde): Likewise.
11982 * dwarf2read.c (create_addrmap_from_index): Likewise.
11983 (create_addrmap_from_aranges): Likewise.
11984 (dw2_find_pc_sect_compunit_symtab): Likewise.
11985 (process_psymtab_comp_unit_reader): Likewise.
11986 (add_partial_symbol): Likewise.
11987 (add_partial_subprogram): Likewise.
11988 (process_full_comp_unit): Likewise.
11989 (read_file_scope): Likewise.
11990 (read_func_scope): Likewise.
11991 (read_lexical_block_scope): Likewise.
11992 (read_call_site_scope): Likewise.
11993 (dwarf2_rnglists_process): Likewise.
11994 (dwarf2_ranges_process): Likewise.
11995 (dwarf2_ranges_read): Likewise.
11996 (dwarf_decode_lines_1): Likewise.
11997 (new_symbol): Likewise.
11998 (dwarf2_fetch_die_loc_sect_off): Likewise.
11999 (dwarf2_per_cu_text_offset): Likewise.
12000 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12001 * hppa-tdep.c (read_unwind_info): Likewise.
12002 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12003 * psympriv.h (struct partial_symtab): Likewise.
12004 * psymtab.c (find_pc_sect_psymtab): Likewise.
12005 * solib-svr4.c (enable_break): Likewise.
12006 * stap-probe.c (relocate_address): Use
12007 objfile::data_section_offset.
12008 * xcoffread.c (enter_line_range): Use
12009 objfile::text_section_offset.
12010 (read_xcoff_symtab): Likewise.
12011
ab53f382
SM
120122020-01-23 Simon Marchi <simon.marchi@efficios.com>
12013
12014 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12015 declaration to narrower scopes.
12016
e7eee665
SM
120172020-01-23 Simon Marchi <simon.marchi@efficios.com>
12018
12019 * darwin-nat.h (struct darwin_exception_msg, enum
12020 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12021 Move up.
12022 (class darwin_nat_target) <wait_1, check_new_threads,
12023 decode_exception_message, decode_message, stop_inferior,
12024 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12025 * darwin-nat.c (darwin_check_new_threads): Rename to...
12026 (darwin_nat_target::check_new_threads): ... this.
12027 (darwin_suspend_inferior_it): Remove.
12028 (darwin_decode_exception_message): Rename to...
12029 (darwin_nat_target::decode_exception_message): ... this.
12030 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12031 (darwin_decode_message): Rename to...
12032 (darwin_nat_target::decode_message): ... this.
12033 (cancel_breakpoint): Rename to...
12034 (darwin_nat_target::cancel_breakpoint): ... this.
12035 (darwin_wait): Rename to...
12036 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12037 instead of iterate_over_inferiors.
12038 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12039 (darwin_stop_inferior): Rename to...
12040 (darwin_nat_target::stop_inferior): ... this.
12041 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12042 (darwin_init_thread_list): Rename to...
12043 (darwin_nat_target::init_thread_list): ... this.
12044 (darwin_ptrace_him): Rename to...
12045 (darwin_nat_target::ptrace_him): ... this.
12046 (darwin_nat_target::create_inferior): Pass lambda function to
12047 fork_inferior.
12048 (darwin_nat_target::detach): Call stop_inferior instead of
12049 darwin_stop_inferior.
12050 * fork-inferior.h (fork_inferior): Change init_trace_fun
12051 parameter to gdb::function_view.
12052 * fork-inferior.c (fork_inferior): Likewise.
12053
c162ed3e
HD
120542020-01-23 Hannes Domani <ssbssa@yahoo.de>
12055
12056 * i386-cygwin-tdep.c (core_process_module_section): Update.
12057 * windows-nat.c (struct lm_info_windows): Add text_offset.
12058 (windows_xfer_shared_libraries): Update.
12059 * windows-tdep.c (windows_xfer_shared_library):
12060 Add text_offset_cached argument.
12061 * windows-tdep.h (windows_xfer_shared_library): Update.
12062
a1237872
SM
120632020-01-21 Simon Marchi <simon.marchi@efficios.com>
12064
12065 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12066
b3ee6dd9
SM
120672020-01-21 Simon Marchi <simon.marchi@efficios.com>
12068
12069 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12070 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12071 replace with range-based for.
12072 (gdbsim_interrupt_inferior): Remove.
12073 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12074 with a range-based for. Inline code from
12075 gdbsim_interrupt_inferior.
12076
f9fac3c8
SM
120772020-01-21 Simon Marchi <simon.marchi@efficios.com>
12078
12079 * infrun.c (proceed): Fix indentation.
12080
f6474de9
TT
120812020-01-21 Tom Tromey <tromey@adacore.com>
12082
12083 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12084 * python/python.c (python_extension_ops): Update.
12085 (gdbpy_colorize): New function.
12086 * python/lib/gdb/__init__.py (colorize): New function.
12087 * extension.h (ext_lang_colorize): Declare.
12088 * extension.c (ext_lang_colorize): New function.
12089 * extension-priv.h (struct extension_language_ops) <colorize>: New
12090 member.
12091 * cli/cli-style.c (_initialize_cli_style): Update help text.
12092
f0c702d4
LM
120932020-01-21 Luis Machado <luis.machado@linaro.org>
12094
12095 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12096 <cond>: Change type to bool.
12097 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12098 (aarch64_displaced_step_cb): Likewise.
12099 (aarch64_displaced_step_tb): Likewise.
12100
1ab139e5
LM
121012020-01-21 Luis Machado <luis.machado@linaro.org>
12102
12103 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12104 output.
12105
0c271889
LM
121062020-01-21 Luis Machado <luis.machado@linaro.org>
12107
12108 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12109 <pc_adjust>: Adjust the documentation.
12110 (aarch64_displaced_step_fixup): Check if PC really moved before
12111 adjusting it.
12112
4d89c1c7
TT
121132020-01-19 Tom Tromey <tom@tromey.com>
12114
12115 * disasm.c (~gdb_disassembler): New destructor.
12116 (gdb_buffered_insn_length): Call disassemble_free_target.
12117 * disasm.h (class gdb_disassembler): Declare destructor. Use
12118 DISABLE_COPY_AND_ASSIGN.
12119
c0ab21c2
TT
121202020-01-19 Tom Tromey <tom@tromey.com>
12121
12122 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12123 (die_reader_func_ftype): Remove.
12124 (cutu_reader): New class.
12125 (dw2_get_file_names_reader): Remove "data" parameter.
12126 (dw2_get_file_names): Use cutu_reader.
12127 (create_debug_type_hash_table): Update.
12128 (read_cutu_die_from_dwo): Update comment.
12129 (lookup_dwo_unit): Add dwo_name parameter.
12130 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12131 die_reader_func_ftype and data parameters.
12132 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12133 Remove die_reader_func_ftype and data parameters.
12134 (~cutu_reader): New; from init_cutu_and_read_dies.
12135 (cutu_reader::cutu_reader): Rename from
12136 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12137 and data parameters.
12138 (init_cutu_and_read_dies_simple): Remove.
12139 (struct process_psymtab_comp_unit_data): Remove.
12140 (process_psymtab_comp_unit_reader): Remove data parameter; add
12141 want_partial_unit and pretend_language parameters.
12142 (process_psymtab_comp_unit): Use cutu_reader.
12143 (build_type_psymtabs_reader): Remove data parameter.
12144 (build_type_psymtabs_1): Use cutu_reader.
12145 (process_skeletonless_type_unit): Likewise.
12146 (load_partial_comp_unit_reader): Remove.
12147 (load_partial_comp_unit): Use cutu_reader.
12148 (load_full_comp_unit_reader): Remove.
12149 (load_full_comp_unit): Use cutu_reader.
12150 (struct create_dwo_cu_data): Remove.
12151 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12152 dwo_unit parameters.
12153 (create_cus_hash_table): Use cutu_reader.
12154 (struct dwarf2_read_addr_index_data): Remove.
12155 (dwarf2_read_addr_index_reader): Remove.
12156 (dwarf2_read_addr_index): Use cutu_reader.
12157 (read_signatured_type_reader): Remove.
12158 (read_signatured_type): Use cutu_reader.
12159
45bbae5c
TT
121602020-01-19 Tom Tromey <tom@tromey.com>
12161
12162 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12163 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12164 (tui_wrefresh): Declare.
12165 * tui/tui-wingeneral.c (suppress_output): New global.
12166 (tui_suppress_output, ~tui_suppress_output): New constructor and
12167 destructor.
12168 (tui_wrefresh): New function.
12169 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12170 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12171 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12172 method.
12173 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12174 tui_wrefresh.
12175 (tui_data_window::no_refresh): New method.
12176 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12177 (tui_reg_command): Use tui_suppress_output
12178 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12179 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12180 method.
12181 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12182
4f13c1c0
TT
121832020-01-19 Tom Tromey <tom@tromey.com>
12184
12185 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12186 Handle case where symtab is null.
12187
fa47e446
SM
121882020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12189
12190 * linux-fork.c (one_fork_p): Simplify.
12191
26f42329
SM
121922020-01-17 Simon Marchi <simon.marchi@efficios.com>
12193
12194 * top.c (struct qt_args): Remove.
12195 (kill_or_detach): Change return type to void, replace `void *`
12196 parameter with a proper one.
12197 (print_inferior_quit_action): Likewise.
12198 (quit_confirm): Use range-based for loop to iterate over inferiors.
12199 (quit_force): Likewise.
12200
a9ac81b1
SM
122012020-01-17 Simon Marchi <simon.marchi@efficios.com>
12202
12203 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12204 `void *` parameter with proper parameters.
12205 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12206 (print_one_inferior): Change return type to void, replace `void *`
12207 parameter with proper parameters.
12208 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12209 inferiors.
12210 (get_other_inferior): Remove.
12211 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12212 inferiors.
12213
788eca49
SM
122142020-01-17 Simon Marchi <simon.marchi@efficios.com>
12215
12216 * mi/mi-interp.c (report_initial_inferior): Remove.
12217 (mi_interp::init): Use range-based for to iterate over inferiors.
12218
d9bc85b6
SM
122192020-01-17 Simon Marchi <simon.marchi@efficios.com>
12220
12221 * python/py-inferior.c (build_inferior_list): Remove.
12222 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12223
40c94099
CB
122242020-01-16 Christian Biesinger <cbiesinger@google.com>
12225
12226 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12227 (btrace_stitch_trace): Likewise.
12228 * charset.c (intermediate_encoding): Likewise (vaild).
12229 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12230 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12231 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12232
e0cdfe3c
HD
122332020-01-16 Hannes Domani <ssbssa@yahoo.de>
12234
12235 * windows-tdep.c (windows_get_tlb_type):
12236 Add rtl_user_process_parameters type.
12237
790f1718 122382020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12239 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12240
12241 PR build/24805
12242 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12243 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12244 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12245 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12246 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12247 (ps_plog): Redeclare exported functions with default visibility.
12248
3112ed97
NA
122492020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12250
12251 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12252 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12253
8dc3273e
SM
122542020-01-15 Simon Marchi <simon.marchi@efficios.com>
12255
12256 * infcmd.c (post_create_inferior): Use get_thread_regcache
12257 instead of get_current_regcache.
12258
ff47f4f0
TT
122592020-01-14 Tom Tromey <tom@tromey.com>
12260
12261 PR symtab/12535:
12262 * python/python.c (gdbpy_decode_line): Treat empty string the same
12263 as no argument.
12264
975f45b7
TT
122652020-01-14 Tom Tromey <tom@tromey.com>
12266
12267 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12268
25e57356
TT
122692020-01-14 Tom Tromey <tom@tromey.com>
12270
12271 * nat/linux-btrace.c: Don't include <config.h>.
12272 * nat/linux-ptrace.c: Don't include <config.h>.
12273 * nat/x86-linux-dregs.c: Don't include <config.h>.
12274
05ea2a05
TT
122752020-01-14 Tom Tromey <tom@tromey.com>
12276
12277 * configure: Rebuild.
12278 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12279
01027315
TT
122802020-01-14 Tom Tromey <tom@tromey.com>
12281
12282 * nat/x86-linux-dregs.c: Include configh.h.
12283 * nat/linux-ptrace.c: Include configh.h.
12284 * nat/linux-btrace.c: Include configh.h.
12285 * defs.h: Include config.h, bfd.h.
12286 * configure.ac: Don't source common.host.
12287 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12288 * configure: Rebuild.
12289 * acinclude.m4: Update path.
12290 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12291 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12292 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12293 (CLIBS): Add LIBSUPPORT.
12294 (CDEPS): Likewise.
12295 (COMMON_SFILES): Remove gdbsupport files.
12296 (HFILES_NO_SRCDIR): Likewise.
12297 (stamp-version): Update path to create-version.sh.
12298 (ALLDEPFILES): Remove gdbsupport files.
12299
b2ceabe8
TT
123002020-01-14 Tom Tromey <tom@tromey.com>
12301
12302 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12303 USE_WIN32API when needed.
12304 * configure.ac (USE_WIN32API): Don't define.
12305 (WIN32LIBS): Use WIN32APILIBS.
12306 * configure: Rebuild.
12307
25c51f71
TT
123082020-01-14 Tom Tromey <tom@tromey.com>
12309
12310 * configure: Rebuild.
12311 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12312
717c684d
BE
123132020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12314
12315 * skip.c (skip_function_command): Make skip w/o arguments use the
12316 name of the inlined function if pc is inside any inlined function.
12317
7da6a5b9
LM
123182020-01-14 Luis Machado <luis.machado@linaro.org>
12319
12320 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12321 * infrun.c (resume_1): Likewise.
12322 (handle_inferior_event): Remove stale comment.
12323 * linux-nat.c (linux_nat_target::resume): Update comments.
12324 (save_stop_reason): Likewise.
12325 (linux_nat_filter_event): Likewise.
12326 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12327
44e4c775
AB
123282020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12329
12330 * elfread.c (record_minimal_symbol): Set section index to 0 for
12331 non-allocatable sections.
12332
18a8505e
AT
12333
123342020-01-13 Ali Tamur <tamur@google.com>
12335
12336 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12337 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12338 to gdb::optional. Update comments.
12339 (dwo_file): Update comments.
12340 (read_attribute): Update API to take an additional out parameter,
12341 need_reprocess. This is used to mark attributes that need other
12342 attributes (e.g. str_offsets_base) for correct computation which may not
12343 have been read yet.
12344 (read_attribute_reprocess): New function declaration.
12345 (read_addr_index): Likewise.
12346 (read_dwo_str_index): Likewise.
12347 (read_stub_str_index): Likewise.
12348 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12349 (lookup_addr_base): New function definition.
12350 (lookup_ranges_base): Likewise.
12351 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12352 lookup_ranges_base.
12353 (init_cutu_and_read_dies): Update comments.
12354 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12355 unit. This is used to inherit parent's str_offsets_base and addr_base.
12356 Update comments.
12357 (init_cutu_and_read_dies_simple): Reflect API changes.
12358 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12359 (create_cus_hash_table): Change API to take parent compile unit.
12360 Reflect API changes.
12361 (open_and_init_dwo_file): Reflect API changes.
12362 (dwarf2_get_pc_bounds): Update comments.
12363 (dwarf2_record_block_ranges): Likewise.
12364 (read_full_die_1): Change implementation to reprocess attributes that
12365 need str_offsets_base and addr_base.
12366 (partial_die_info::read): Likewise.
12367 (read_attribute_reprocess): New function definition.
12368 (read_attribute_value): Change API to take an additional out parameter,
12369 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12370 when a non-dwo compile unit has index based attributes.
12371 (read_attribute): Reflect API changes.
12372 (read_addr_index_1): Reflect API changes. Update comments.
12373 (dwarf2_read_addr_index_data): Reflect API changes.
12374 (dwarf2_read_addr_index): Likewise.
12375 (read_str_index): Change API and implementation. This becomes a helper
12376 to be used by the new string index related methods. Update error
12377 message and comments.
12378 (read_dwo_str_index): New function definition.
12379 (read_stub_str_index): Likewise.
12380 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12381 * symfile.h (dwarf2_debug_sections): Likewise.
12382 * xcoffread.c (dwarf2_debug_sections): Likewise.
12383
0cac9354
SM
123842020-01-13 Simon Marchi <simon.marchi@efficios.com>
12385
12386 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12387 core_reg_sect type to gdb_byte *.
12388 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12389 * cris-tdep.c (fetch_core_registers): Likewise.
12390 * corelow.c (core_target::get_core_register_section): Change
12391 type of `contents` to gdb::byte_vector.
12392
9a6d629c
AB
123932020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12394
12395 * tui/tui-wingeneral.c (box_win): Position the title in the center
12396 of the border.
12397
d8b2f9e3
SM
123982020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12399
12400 * corelow.c (core_target::get_core_register_section): Use
12401 std::vector instead of alloca.
12402
bb564c58
SM
124032020-01-13 Simon Marchi <simon.marchi@efficios.com>
12404
12405 * warning.m4: Add -Wmissing-declarations to build_warnings.
12406 * configure: Re-generate.
12407
6b366111
SM
124082020-01-13 Simon Marchi <simon.marchi@efficios.com>
12409
12410 * python/python.c (init__gdb_module): Add declaration.
12411
6c265988
SM
124122020-01-13 Simon Marchi <simon.marchi@efficios.com>
12413
12414 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12415 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12416 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12417 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12418 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12419 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12420 * ada-exp.y (_initialize_ada_exp): Add declaration.
12421 * ada-lang.c (_initialize_ada_language): Add declaration.
12422 * ada-tasks.c (_initialize_tasks): Add declaration.
12423 * agent.c (_initialize_agent): Add declaration.
12424 * aix-thread.c (_initialize_aix_thread): Add declaration.
12425 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12426 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12427 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12428 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12429 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12430 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12431 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12432 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12433 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12434 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12435 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12436 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12437 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12438 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12439 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12440 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12441 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12442 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12443 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12444 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12445 * annotate.c (_initialize_annotate): Add declaration.
12446 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12447 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12448 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12449 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12450 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12451 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12452 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12453 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12454 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12455 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12456 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12457 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12458 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12459 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12460 * auto-load.c (_initialize_auto_load): Add declaration.
12461 * auxv.c (_initialize_auxv): Add declaration.
12462 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12463 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12464 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12465 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12466 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12467 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12468 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12469 * breakpoint.c (_initialize_breakpoint): Add declaration.
12470 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12471 * btrace.c (_initialize_btrace): Add declaration.
12472 * charset.c (_initialize_charset): Add declaration.
12473 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12474 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12475 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12476 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12477 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12478 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12479 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12480 * coffread.c (_initialize_coffread): Add declaration.
12481 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12482 * compile/compile.c (_initialize_compile): Add declaration.
12483 * complaints.c (_initialize_complaints): Add declaration.
12484 * completer.c (_initialize_completer): Add declaration.
12485 * copying.c (_initialize_copying): Add declaration.
12486 * corefile.c (_initialize_core): Add declaration.
12487 * corelow.c (_initialize_corelow): Add declaration.
12488 * cp-abi.c (_initialize_cp_abi): Add declaration.
12489 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12490 * cp-support.c (_initialize_cp_support): Add declaration.
12491 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12492 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12493 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12494 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12495 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12496 * ctfread.c (_initialize_ctfread): Add declaration.
12497 * d-lang.c (_initialize_d_language): Add declaration.
12498 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12499 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12500 * dbxread.c (_initialize_dbxread): Add declaration.
12501 * dcache.c (_initialize_dcache): Add declaration.
12502 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12503 * disasm.c (_initialize_disasm): Add declaration.
12504 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12505 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12506 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12507 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12508 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12509 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12510 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12511 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12512 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12513 * elfread.c (_initialize_elfread): Add declaration.
12514 * exec.c (_initialize_exec): Add declaration.
12515 * extension.c (_initialize_extension): Add declaration.
12516 * f-lang.c (_initialize_f_language): Add declaration.
12517 * f-valprint.c (_initialize_f_valprint): Add declaration.
12518 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12519 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12520 * filesystem.c (_initialize_filesystem): Add declaration.
12521 * findcmd.c (_initialize_mem_search): Add declaration.
12522 * findvar.c (_initialize_findvar): Add declaration.
12523 * fork-child.c (_initialize_fork_child): Add declaration.
12524 * frame-base.c (_initialize_frame_base): Add declaration.
12525 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12526 * frame.c (_initialize_frame): Add declaration.
12527 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12528 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12529 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12530 * gcore.c (_initialize_gcore): Add declaration.
12531 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12532 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12533 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12534 * gdbarch.c (_initialize_gdbarch): Add declaration.
12535 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12536 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12537 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12538 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12539 * go-lang.c (_initialize_go_language): Add declaration.
12540 * go32-nat.c (_initialize_go32_nat): Add declaration.
12541 * guile/guile.c (_initialize_guile): Add declaration.
12542 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12543 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12544 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12545 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12546 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12547 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12548 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12549 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12550 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12551 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12552 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12553 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12554 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12555 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12556 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12557 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12558 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12559 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12560 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12561 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12562 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12563 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12564 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12565 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12566 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12567 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12568 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12569 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12570 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12571 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12572 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12573 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12574 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12575 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12576 * infcall.c (_initialize_infcall): Add declaration.
12577 * infcmd.c (_initialize_infcmd): Add declaration.
12578 * inflow.c (_initialize_inflow): Add declaration.
12579 * infrun.c (_initialize_infrun): Add declaration.
12580 * interps.c (_initialize_interpreter): Add declaration.
12581 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12582 * jit.c (_initialize_jit): Add declaration.
12583 * language.c (_initialize_language): Add declaration.
12584 * linux-fork.c (_initialize_linux_fork): Add declaration.
12585 * linux-nat.c (_initialize_linux_nat): Add declaration.
12586 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12587 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12588 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12589 * m2-lang.c (_initialize_m2_language): Add declaration.
12590 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12591 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12592 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12593 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12594 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12595 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12596 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12597 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12598 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12599 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12600 * machoread.c (_initialize_machoread): Add declaration.
12601 * macrocmd.c (_initialize_macrocmd): Add declaration.
12602 * macroscope.c (_initialize_macroscope): Add declaration.
12603 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12604 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12605 * maint.c (_initialize_maint_cmds): Add declaration.
12606 * mdebugread.c (_initialize_mdebugread): Add declaration.
12607 * memattr.c (_initialize_mem): Add declaration.
12608 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12609 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12610 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12611 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12612 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12613 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12614 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12615 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12616 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12617 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12618 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12619 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12620 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12621 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12622 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12623 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12624 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12625 * mipsread.c (_initialize_mipsread): Add declaration.
12626 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12627 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12628 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12629 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12630 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12631 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12632 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12633 * nto-procfs.c (_initialize_procfs): Add declaration.
12634 * objc-lang.c (_initialize_objc_language): Add declaration.
12635 * observable.c (_initialize_observer): Add declaration.
12636 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12637 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12638 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12639 * osabi.c (_initialize_gdb_osabi): Add declaration.
12640 * osdata.c (_initialize_osdata): Add declaration.
12641 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12642 * parse.c (_initialize_parse): Add declaration.
12643 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12644 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12645 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12646 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12647 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12648 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12649 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12650 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12651 * printcmd.c (_initialize_printcmd): Add declaration.
12652 * probe.c (_initialize_probe): Add declaration.
12653 * proc-api.c (_initialize_proc_api): Add declaration.
12654 * proc-events.c (_initialize_proc_events): Add declaration.
12655 * proc-service.c (_initialize_proc_service): Add declaration.
12656 * procfs.c (_initialize_procfs): Add declaration.
12657 * producer.c (_initialize_producer): Add declaration.
12658 * psymtab.c (_initialize_psymtab): Add declaration.
12659 * python/python.c (_initialize_python): Add declaration.
12660 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12661 * record-btrace.c (_initialize_record_btrace): Add declaration.
12662 * record-full.c (_initialize_record_full): Add declaration.
12663 * record.c (_initialize_record): Add declaration.
12664 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12665 * regcache.c (_initialize_regcache): Add declaration.
12666 * reggroups.c (_initialize_reggroup): Add declaration.
12667 * remote-notif.c (_initialize_notif): Add declaration.
12668 * remote-sim.c (_initialize_remote_sim): Add declaration.
12669 * remote.c (_initialize_remote): Add declaration.
12670 * reverse.c (_initialize_reverse): Add declaration.
12671 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12672 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12673 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12674 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12675 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12676 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12677 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12678 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12679 Add declaration.
12680 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12681 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12682 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12683 * rust-exp.y (_initialize_rust_exp): Add declaration.
12684 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12685 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12686 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12687 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12688 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12689 * score-tdep.c (_initialize_score_tdep): Add declaration.
12690 * ser-go32.c (_initialize_ser_dos): Add declaration.
12691 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12692 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12693 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12694 * ser-uds.c (_initialize_ser_socket): Add declaration.
12695 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12696 * serial.c (_initialize_serial): Add declaration.
12697 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12698 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12699 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12700 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12701 * skip.c (_initialize_step_skip): Add declaration.
12702 * sol-thread.c (_initialize_sol_thread): Add declaration.
12703 * solib-aix.c (_initialize_solib_aix): Add declaration.
12704 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12705 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12706 * solib-frv.c (_initialize_frv_solib): Add declaration.
12707 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12708 * solib-target.c (_initialize_solib_target): Add declaration.
12709 * solib.c (_initialize_solib): Add declaration.
12710 * source-cache.c (_initialize_source_cache): Add declaration.
12711 * source.c (_initialize_source): Add declaration.
12712 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12713 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12714 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12715 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12716 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12717 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12718 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12719 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12720 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12721 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12722 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12723 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12724 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12725 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12726 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12727 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12728 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12729 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12730 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12731 * stabsread.c (_initialize_stabsread): Add declaration.
12732 * stack.c (_initialize_stack): Add declaration.
12733 * stap-probe.c (_initialize_stap_probe): Add declaration.
12734 * std-regs.c (_initialize_frame_reg): Add declaration.
12735 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12736 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12737 * symfile.c (_initialize_symfile): Add declaration.
12738 * symmisc.c (_initialize_symmisc): Add declaration.
12739 * symtab.c (_initialize_symtab): Add declaration.
12740 * target.c (_initialize_target): Add declaration.
12741 * target-connection.c (_initialize_target_connection): Add
12742 declaration.
12743 * target-dcache.c (_initialize_target_dcache): Add declaration.
12744 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12745 * thread.c (_initialize_thread): Add declaration.
12746 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12747 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12748 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12749 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12750 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12751 * tracectf.c (_initialize_ctf): Add declaration.
12752 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12753 * tracefile.c (_initialize_tracefile): Add declaration.
12754 * tracepoint.c (_initialize_tracepoint): Add declaration.
12755 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12756 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12757 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12758 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12759 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12760 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12761 * tui/tui.c (_initialize_tui): Add declaration.
12762 * typeprint.c (_initialize_typeprint): Add declaration.
12763 * ui-style.c (_initialize_ui_style): Add declaration.
12764 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12765 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12766 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12767 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12768 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12769 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12770 * unittests/filtered_iterator-selftests.c
12771 (_initialize_filtered_iterator_selftests): Add declaration.
12772 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12773 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12774 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12775 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12776 * unittests/main-thread-selftests.c
12777 (_initialize_main_thread_selftests): Add declaration.
12778 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12779 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12780 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12781 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12782 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12783 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12784 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12785 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12786 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12787 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12788 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12789 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12790 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12791 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12792 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12793 declaration.
12794 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12795 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12796 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12797 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12798 * user-regs.c (_initialize_user_regs): Add declaration.
12799 * utils.c (_initialize_utils): Add declaration.
12800 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12801 * valops.c (_initialize_valops): Add declaration.
12802 * valprint.c (_initialize_valprint): Add declaration.
12803 * value.c (_initialize_values): Add declaration.
12804 * varobj.c (_initialize_varobj): Add declaration.
12805 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12806 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12807 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12808 * windows-nat.c (_initialize_windows_nat): Add declaration.
12809 (_initialize_check_for_gdb_ini): Add declaration.
12810 (_initialize_loadable): Add declaration.
12811 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12812 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12813 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12814 * xcoffread.c (_initialize_xcoffread): Add declaration.
12815 * xml-support.c (_initialize_xml_support): Add declaration.
12816 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12817 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12818 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12819 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12820
e2de1eec
SM
128212020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12822
12823 * regformats/regdat.sh: Generate declaration for init function.
12824
e0037b4c
SM
128252020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12826
12827 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12828 up.
12829 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12830 close_one_inferior>: New methods.
12831 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12832 pass down target to find_inferior_pid.
12833 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12834 Pass down target to find_inferior_ptid.
12835 (gdbsim_target::create_inferior): Pass down target to
12836 add_thread_silent.
12837 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12838 target down to find_inferior_ptid and switch_to_thread.
12839 (gdbsim_target::close): Update to call close_one_inferior.
12840 (struct resume_data): Remove.
12841 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12842 directly, rather than through a void pointer.
12843 (gdbsim_target::resume): Update to call resume_one_inferior.
12844
58920b5b
SM
128452020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12846
12847 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12848
4ec89149
PA
128492020-01-12 Pedro Alves <palves@redhat.com>
12850
12851 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12852 directly for the current inferior instead of
12853 discard_all_inferiors.
12854 (discard_all_inferiors): Delete.
12855
7c392d1d
TT
128562020-01-11 Tom Tromey <tom@tromey.com>
12857
12858 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12859 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12860 deprecated_safe_get_selected_frame.
12861
d9ebdab7
TBA
128622020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12863
12864 * inferior.c (print_inferior): Switch inferior before printing it.
12865
f3c469b9
PA
128662020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12867 Pedro Alves <palves@redhat.com>
12868
12869 * progspace-and-thread.c (switch_to_program_space_and_thread):
12870 Assert there's an inferior for PSPACE. Use
12871 switch_to_inferior_no_thread to switch the inferior too.
12872 * progspace.c (program_space::~program_space): Call
12873 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12874 (program_space::free_all_objfiles): Don't call clear_symtab_users
12875 here.
12876 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12877
65c574f6
PA
128782020-01-10 Pedro Alves <palves@redhat.com>
12879
12880 * NEWS: Mention multi-target debugging, "info connections", and
12881 "add-inferior -no-connection".
12882
2f4fcf00
PA
128832020-01-10 Pedro Alves <palves@redhat.com>
12884
12885 * infrun.c: Include "target-connection.h".
12886 (check_multi_target_resumption): New.
12887 (proceed): Call it.
12888 * target-connection.c (make_target_connection_string): Make
12889 extern.
12890 * target-connection.h (make_target_connection_string): Declare.
12891
121b3efd
PA
128922020-01-10 Pedro Alves <palves@redhat.com>
12893
12894 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12895 * inferior.c (uiout_field_connection): New function.
12896 (print_inferior): Add new "connection-id" column.
12897 (add_inferior_command): Show connection number/string of added
12898 inferior.
12899 * process-stratum-target.h
12900 (process_stratum_target::connection_string): New virtual method.
12901 (process_stratum_target::connection_number): New field.
12902 * remote.c (remote_target::connection_string): New override.
12903 * target-connection.c: New file.
12904 * target-connection.h: New file.
12905 * target.c (decref_target): Remove process_stratum targets from
12906 the connection list.
12907 (target_stack::push): Add process_stratum targets to the
12908 connection list.
12909
4f837581
PA
129102020-01-10 Pedro Alves <palves@redhat.com>
12911
12912 Revert:
12913 2016-04-12 Pedro Alves <palves@redhat.com>
12914 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12915 Remove references to name.
12916 * serial.h (struct serial) <name>: Delete.
12917
f4ec508e
PA
129182020-01-10 Pedro Alves <palves@redhat.com>
12919
12920 * gdbarch-selftests.c (register_to_value_test): Remove "target
12921 already pushed" check.
12922
5b6d1e4f
PA
129232020-01-10 Pedro Alves <palves@redhat.com>
12924 John Baldwin <jhb@FreeBSD.org>
12925
12926 * aarch64-linux-nat.c
12927 (aarch64_linux_nat_target::thread_architecture): Adjust.
12928 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12929 (task_command_1): Likewise.
12930 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12931 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12932 (aix_thread_target::store_registers)
12933 (aix_thread_target::thread_alive): Adjust.
12934 * amd64-fbsd-tdep.c: Include "inferior.h".
12935 (amd64fbsd_get_thread_local_address): Pass down target.
12936 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12937 thread's gdbarch instead of target_gdbarch.
12938 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12939 get_last_target_status.
12940 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12941 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12942 inferiors.
12943 (update_inserted_breakpoint_locations): Skip if inferiors with no
12944 execution.
12945 (update_global_location_list): When handling moribund locations,
12946 find representative inferior for location's pspace, and use thread
12947 count of its process_stratum target.
12948 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12949 * bsd-uthread.c (bsd_uthread_target::wait): Use
12950 as_process_stratum_target and adjust thread_change_ptid and
12951 add_thread calls.
12952 (bsd_uthread_target::update_thread_list): Use
12953 as_process_stratum_target and adjust find_thread_ptid,
12954 thread_change_ptid and add_thread calls.
12955 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12956 find_thread_ptid call.
12957 * corelow.c (add_to_thread_list): Adjust add_thread call.
12958 (core_target_open): Adjust add_thread_silent and thread_count
12959 calls.
12960 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12961 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12962 * event-top.c (async_disconnect): Pop targets from all inferiors.
12963 * exec.c (add_target_sections): Push exec target on all inferiors
12964 sharing the program space.
12965 (remove_target_sections): Remove the exec target from all
12966 inferiors sharing the program space.
12967 (exec_on_vfork): New.
12968 * exec.h (exec_on_vfork): Declare.
12969 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12970 Pass it down.
12971 (fbsd_nat_target::update_thread_list): Adjust.
12972 (fbsd_nat_target::resume): Adjust.
12973 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12974 down.
12975 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12976 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12977 get_thread_arch_regcache call.
12978 * fork-child.c (gdb_startup_inferior): Pass target down to
12979 startup_inferior and set_executing.
12980 * gdbthread.h (struct process_stratum_target): Forward declare.
12981 (add_thread, add_thread_silent, add_thread_with_info)
12982 (in_thread_list): Add process_stratum_target parameter.
12983 (find_thread_ptid(inferior*, ptid_t)): New overload.
12984 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12985 parameter.
12986 (all_threads()): Delete overload.
12987 (all_threads, all_non_exited_threads): Add process_stratum_target
12988 parameter.
12989 (all_threads_safe): Use brace initialization.
12990 (thread_count): Add process_stratum_target parameter.
12991 (set_resumed, set_running, set_stop_requested, set_executing)
12992 (threads_are_executing, finish_thread_state): Add
12993 process_stratum_target parameter.
12994 (switch_to_thread): Use is_current_thread.
12995 * i386-fbsd-tdep.c: Include "inferior.h".
12996 (i386fbsd_get_thread_local_address): Pass down target.
12997 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12998 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12999 have_inferiors check.
13000 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13001 (inf_ptrace_target::attach): Adjust.
13002 * infcall.c (run_inferior_call): Adjust.
13003 * infcmd.c (run_command_1): Pass target to
13004 scoped_finish_thread_state.
13005 (proceed_thread_callback): Skip inferiors with no execution.
13006 (continue_command): Rename 'all_threads' local to avoid hiding
13007 'all_threads' function. Adjust get_last_target_status call.
13008 (prepare_one_step): Adjust set_running call.
13009 (signal_command): Use user_visible_resume_target. Compare thread
13010 pointers instead of inferior_ptid.
13011 (info_program_command): Adjust to pass down target.
13012 (attach_command): Mark target's 'thread_executing' flag.
13013 (stop_current_target_threads_ns): New, factored out from ...
13014 (interrupt_target_1): ... this. Switch inferior before making
13015 target calls.
13016 * inferior-iter.h
13017 (struct all_inferiors_iterator, struct all_inferiors_range)
13018 (struct all_inferiors_safe_range)
13019 (struct all_non_exited_inferiors_range): Filter on
13020 process_stratum_target too. Remove explicit.
13021 * inferior.c (inferior::inferior): Push dummy target on target
13022 stack.
13023 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13024 Add process_stratum_target parameter, and pass it down.
13025 (have_live_inferiors): Adjust.
13026 (switch_to_inferior_and_push_target): New.
13027 (add_inferior_command, clone_inferior_command): Handle
13028 "-no-connection" parameter. Use
13029 switch_to_inferior_and_push_target.
13030 (_initialize_inferior): Mention "-no-connection" option in
13031 the help of "add-inferior" and "clone-inferior" commands.
13032 * inferior.h: Include "process-stratum-target.h".
13033 (interrupt_target_1): Use bool.
13034 (struct inferior) <push_target, unpush_target, target_is_pushed,
13035 find_target_beneath, top_target, process_target, target_at,
13036 m_stack>: New.
13037 (discard_all_inferiors): Delete.
13038 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13039 (all_inferiors, all_non_exited_inferiors): Add
13040 process_stratum_target parameter.
13041 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13042 (target_last_proc_target): New global.
13043 (follow_fork_inferior): Push target on new inferior. Pass target
13044 to add_thread_silent. Call exec_on_vfork. Handle target's
13045 reference count.
13046 (follow_fork): Adjust get_last_target_status call. Also consider
13047 target.
13048 (follow_exec): Push target on new inferior.
13049 (struct execution_control_state) <target>: New field.
13050 (user_visible_resume_target): New.
13051 (do_target_resume): Call target_async.
13052 (resume_1): Set target's threads_executing flag. Consider resume
13053 target.
13054 (commit_resume_all_targets): New.
13055 (proceed): Also consider resume target. Skip threads of inferiors
13056 with no execution. Commit resumtion in all targets.
13057 (start_remote): Pass current inferior to wait_for_inferior.
13058 (infrun_thread_stop_requested): Consider target as well. Pass
13059 thread_info pointer to clear_inline_frame_state instead of ptid.
13060 (infrun_thread_thread_exit): Consider target as well.
13061 (random_pending_event_thread): New inferior parameter. Use it.
13062 (do_target_wait): Rename to ...
13063 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13064 down.
13065 (threads_are_resumed_pending_p, do_target_wait): New.
13066 (prepare_for_detach): Adjust calls.
13067 (wait_for_inferior): New inferior parameter. Handle it. Use
13068 do_target_wait_1 instead of do_target_wait.
13069 (fetch_inferior_event): Adjust. Switch to representative
13070 inferior. Pass target down.
13071 (set_last_target_status): Add process_stratum_target parameter.
13072 Save target in global.
13073 (get_last_target_status): Add process_stratum_target parameter and
13074 handle it.
13075 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13076 (context_switch): Check inferior_ptid == null_ptid before calling
13077 inferior_thread().
13078 (get_inferior_stop_soon): Pass down target.
13079 (wait_one): Rename to ...
13080 (poll_one_curr_target): ... this.
13081 (struct wait_one_event): New.
13082 (wait_one): New.
13083 (stop_all_threads): Adjust.
13084 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13085 event's target.
13086 (switch_back_to_stepped_thread): Also consider target.
13087 (print_stop_event): Update.
13088 (normal_stop): Update. Also consider the resume target.
13089 * infrun.h (wait_for_inferior): Remove declaration.
13090 (user_visible_resume_target): New declaration.
13091 (get_last_target_status, set_last_target_status): New
13092 process_stratum_target parameter.
13093 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13094 process_stratum_target parameter, and use it.
13095 (clear_inline_frame_state (thread_info*)): New.
13096 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13097 process_stratum_target parameter.
13098 (clear_inline_frame_state (thread_info*)): Declare.
13099 * linux-fork.c (delete_checkpoint_command): Pass target down to
13100 find_thread_ptid.
13101 (checkpoint_command): Adjust.
13102 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13103 instead of just tweaking inferior_ptid.
13104 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13105 (exit_lwp): Pass target down to find_thread_ptid.
13106 (attach_proc_task_lwp_callback): Pass target down to
13107 add_thread/set_running/set_executing.
13108 (linux_nat_target::attach): Pass target down to
13109 thread_change_ptid.
13110 (get_detach_signal): Pass target down to find_thread_ptid.
13111 Consider last target status's target.
13112 (linux_resume_one_lwp_throw, resume_lwp)
13113 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13114 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13115 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13116 (linux_nat_target::async_wait_fd): New.
13117 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13118 target down.
13119 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13120 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13121 * linux-thread-db.c (struct thread_db_info::process_target): New
13122 field.
13123 (add_thread_db_info): Save target.
13124 (get_thread_db_info): New process_stratum_target parameter. Also
13125 match target.
13126 (delete_thread_db_info): New process_stratum_target parameter.
13127 Also match target.
13128 (thread_from_lwp): Adjust to pass down target.
13129 (thread_db_notice_clone): Pass down target.
13130 (check_thread_db_callback): Pass down target.
13131 (try_thread_db_load_1): Always push the thread_db target.
13132 (try_thread_db_load, record_thread): Pass target down.
13133 (thread_db_target::detach): Pass target down. Always unpush the
13134 thread_db target.
13135 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13136 target down. Always unpush the thread_db target.
13137 (find_new_threads_callback, thread_db_find_new_threads_2)
13138 (thread_db_target::update_thread_list): Pass target down.
13139 (thread_db_target::pid_to_str): Pass current inferior down.
13140 (thread_db_target::get_thread_local_address): Pass target down.
13141 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13142 target down.
13143 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13144 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13145 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13146 (procfs_init_inferior): Rename to ...
13147 (procfs_target::procfs_init_inferior): ... this and adjust.
13148 (procfs_target::create_inferior, procfs_notice_thread)
13149 (procfs_do_thread_registers): Adjust.
13150 * ppc-fbsd-tdep.c: Include "inferior.h".
13151 (ppcfbsd_get_thread_local_address): Pass down target.
13152 * proc-service.c (ps_xfer_memory): Switch current inferior and
13153 program space as well.
13154 (get_ps_regcache): Pass target down.
13155 * process-stratum-target.c
13156 (process_stratum_target::thread_address_space)
13157 (process_stratum_target::thread_architecture): Pass target down.
13158 * process-stratum-target.h
13159 (process_stratum_target::threads_executing): New field.
13160 (as_process_stratum_target): New.
13161 * ravenscar-thread.c
13162 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13163 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13164 down.
13165 * record-btrace.c (record_btrace_target::info_record): Adjust.
13166 (record_btrace_target::record_method)
13167 (record_btrace_target::record_is_replaying)
13168 (record_btrace_target::fetch_registers)
13169 (get_thread_current_frame_id, record_btrace_target::resume)
13170 (record_btrace_target::wait, record_btrace_target::stop): Pass
13171 target down.
13172 * record-full.c (record_full_wait_1): Switch to event thread.
13173 Pass target down.
13174 * regcache.c (regcache::regcache)
13175 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13176 process_stratum_target parameter and handle it.
13177 (current_thread_target): New global.
13178 (get_thread_regcache): Add process_stratum_target parameter and
13179 handle it. Switch inferior before calling target method.
13180 (get_thread_regcache): Pass target down.
13181 (get_thread_regcache_for_ptid): Pass target down.
13182 (registers_changed_ptid): Add process_stratum_target parameter and
13183 handle it.
13184 (registers_changed_thread, registers_changed): Pass target down.
13185 (test_get_thread_arch_aspace_regcache): New.
13186 (current_regcache_test): Define a couple local test_target_ops
13187 instances and use them for testing.
13188 (readwrite_regcache): Pass process_stratum_target parameter.
13189 (cooked_read_test, cooked_write_test): Pass mock_target down.
13190 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13191 (get_thread_arch_aspace_regcache): Add process_stratum_target
13192 parameter.
13193 (regcache::target): New method.
13194 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13195 (regcache::registers_changed_ptid): Add process_stratum_target
13196 parameter.
13197 (regcache::m_target): New field.
13198 (registers_changed_ptid): Add process_stratum_target parameter.
13199 * remote.c (remote_state::supports_vCont_probed): New field.
13200 (remote_target::async_wait_fd): New method.
13201 (remote_unpush_and_throw): Add remote_target parameter.
13202 (get_current_remote_target): Adjust.
13203 (remote_target::remote_add_inferior): Push target.
13204 (remote_target::remote_add_thread)
13205 (remote_target::remote_notice_new_inferior)
13206 (get_remote_thread_info): Pass target down.
13207 (remote_target::update_thread_list): Skip threads of inferiors
13208 bound to other targets. (remote_target::close): Don't discard
13209 inferiors. (remote_target::add_current_inferior_and_thread)
13210 (remote_target::process_initial_stop_replies)
13211 (remote_target::start_remote)
13212 (remote_target::remote_serial_quit_handler): Pass down target.
13213 (remote_target::remote_unpush_target): New remote_target
13214 parameter. Unpush the target from all inferiors.
13215 (remote_target::remote_unpush_and_throw): New remote_target
13216 parameter. Pass it down.
13217 (remote_target::open_1): Check whether the current inferior has
13218 execution instead of checking whether any inferior is live. Pass
13219 target down.
13220 (remote_target::remote_detach_1): Pass down target. Use
13221 remote_unpush_target.
13222 (extended_remote_target::attach): Pass down target.
13223 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13224 (remote_target::append_resumption): Pass down target.
13225 (remote_target::append_pending_thread_resumptions)
13226 (remote_target::remote_resume_with_hc, remote_target::resume)
13227 (remote_target::commit_resume): Pass down target.
13228 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13229 (remote_target::interrupt_query)
13230 (remote_target::remove_new_fork_children)
13231 (remote_target::check_pending_events_prevent_wildcard_vcont)
13232 (remote_target::remote_parse_stop_reply)
13233 (remote_target::process_stop_reply): Pass down target.
13234 (first_remote_resumed_thread): New remote_target parameter. Pass
13235 it down.
13236 (remote_target::wait_as): Pass down target.
13237 (unpush_and_perror): New remote_target parameter. Pass it down.
13238 (remote_target::readchar, remote_target::remote_serial_write)
13239 (remote_target::getpkt_or_notif_sane_1)
13240 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13241 down target.
13242 (remote_target::mourn_inferior): Pass down target. Use
13243 remote_unpush_target.
13244 (remote_target::core_of_thread)
13245 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13246 (remote_target::pid_to_exec_file)
13247 (remote_target::thread_handle_to_thread_info): Pass down target.
13248 (remote_target::async_wait_fd): New.
13249 * riscv-fbsd-tdep.c: Include "inferior.h".
13250 (riscv_fbsd_get_thread_local_address): Pass down target.
13251 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13252 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13253 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13254 Adjust.
13255 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13256 * solib-svr4.c (enable_break): Pass down target.
13257 * spu-multiarch.c (parse_spufs_run): Pass down target.
13258 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13259 * target-delegates.c: Regenerate.
13260 * target.c (g_target_stack): Delete.
13261 (current_top_target): Return the current inferior's top target.
13262 (target_has_execution_1): Refer to the passed-in inferior's top
13263 target.
13264 (target_supports_terminal_ours): Check whether the initial
13265 inferior was already created.
13266 (decref_target): New.
13267 (target_stack::push): Incref/decref the target.
13268 (push_target, push_target, unpush_target): Adjust.
13269 (target_stack::unpush): Defref target.
13270 (target_is_pushed): Return bool. Adjust to refer to the current
13271 inferior's target stack.
13272 (dispose_inferior): Delete, and inline parts ...
13273 (target_preopen): ... here. Only dispose of the current inferior.
13274 (target_detach): Hold strong target reference while detaching.
13275 Pass target down.
13276 (target_thread_name): Add assertion.
13277 (target_resume): Pass down target.
13278 (target_ops::beneath, find_target_at): Adjust to refer to the
13279 current inferior's target stack.
13280 (get_dummy_target): New.
13281 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13282 has a thread running.
13283 (initialize_targets): Rename to ...
13284 (_initialize_target): ... this.
13285 * target.h: Include "gdbsupport/refcounted-object.h".
13286 (struct target_ops): Inherit refcounted_object.
13287 (target_ops::shortname, target_ops::longname): Make const.
13288 (target_ops::async_wait_fd): New method.
13289 (decref_target): Declare.
13290 (struct target_ops_ref_policy): New.
13291 (target_ops_ref): New typedef.
13292 (get_dummy_target): Declare function.
13293 (target_is_pushed): Return bool.
13294 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13295 (all_matching_threads_iterator::all_matching_threads_iterator):
13296 Handle filter target.
13297 * thread-iter.h (struct all_matching_threads_iterator, struct
13298 all_matching_threads_range, class all_non_exited_threads_range):
13299 Filter by target too. Remove explicit.
13300 * thread.c (threads_executing): Delete.
13301 (inferior_thread): Pass down current inferior.
13302 (clear_thread_inferior_resources): Pass down thread pointer
13303 instead of ptid_t.
13304 (add_thread_silent, add_thread_with_info, add_thread): Add
13305 process_stratum_target parameter. Use it for thread and inferior
13306 searches.
13307 (is_current_thread): New.
13308 (thread_info::deletable): Use it.
13309 (find_thread_ptid, thread_count, in_thread_list)
13310 (thread_change_ptid, set_resumed, set_running): New
13311 process_stratum_target parameter. Pass it down.
13312 (set_executing): New process_stratum_target parameter. Pass it
13313 down. Adjust reference to 'threads_executing'.
13314 (threads_are_executing): New process_stratum_target parameter.
13315 Adjust reference to 'threads_executing'.
13316 (set_stop_requested, finish_thread_state): New
13317 process_stratum_target parameter. Pass it down.
13318 (switch_to_thread): Also match inferior.
13319 (switch_to_thread): New process_stratum_target parameter. Pass it
13320 down.
13321 (update_threads_executing): Reimplement.
13322 * top.c (quit_force): Pop targets from all inferior.
13323 (gdb_init): Don't call initialize_targets.
13324 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13325 Declare.
13326 (windows_add_thread, windows_delete_thread): Adjust.
13327 (get_windows_debug_event): Rename to ...
13328 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13329 * tracefile-tfile.c (tfile_target_open): Pass down target.
13330 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13331 Forward declare.
13332 (switch_to_thread): Add process_stratum_target parameter.
13333 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13334 parameter. Use it.
13335 (mi_on_resume): Pass target down.
13336 * nat/fork-inferior.c (startup_inferior): Add
13337 process_stratum_target parameter. Pass it down.
13338 * nat/fork-inferior.h (startup_inferior): Add
13339 process_stratum_target parameter.
13340 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13341
75c6c844
PA
133422020-01-10 Pedro Alves <palves@redhat.com>
13343
13344 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13345 directly. Instead find the first thread in the thread list and
13346 use switch_to_thread.
13347
78f2c40a
PA
133482020-01-10 Pedro Alves <palves@redhat.com>
13349
13350 * remote.c (remote_target::remote_add_inferior): Don't bind a
13351 process to the current inferior if the current inferior is already
13352 bound to a process.
13353
e7af6c70
TBA
133542020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13355 Pedro Alves <palves@redhat.com>
13356
13357 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13358 If no process is specified, return null_ptid instead of
13359 inferior_ptid.
13360 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13361 TARGET_WAITKIND_SIGNALLED with no pid.
13362
31ba933e
PA
133632020-01-10 Pedro Alves <palves@redhat.com>
13364
13365 * remote.c (first_remote_resumed_thread): New.
13366 (remote_target::wait_as): Use it as default event_ptid instead of
13367 inferior_ptid.
13368
735fc2ca
PA
133692020-01-10 Pedro Alves <palves@redhat.com>
13370
13371 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13372
c17e02e1
PA
133732020-01-10 Pedro Alves <palves@redhat.com>
13374
13375 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13376 not -1.
13377
ab1ddbcf
PA
133782020-01-10 Pedro Alves <palves@redhat.com>
13379
13380 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13381 ptid to get_last_target_status.
13382 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13383 ptid to get_last_target_status.
13384 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13385 get_last_target_status.
13386 (info_program_command): Don't pass a target_waitstatus to
13387 get_last_target_status.
13388 * infrun.c (init_wait_for_inferior): Use
13389 nullify_last_target_wait_ptid.
13390 (get_last_target_status): Handle nullptr arguments.
13391 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13392 (print_stop_event): Don't pass a ptid to get_last_target_status.
13393 (normal_stop): Don't pass a ptid to get_last_target_status.
13394 * infrun.h (get_last_target_status, set_last_target_status): Move
13395 comments here and update.
13396 (nullify_last_target_wait_ptid): Declare.
13397 * linux-fork.c (fork_load_infrun_state): Remove local extern
13398 declaration of nullify_last_target_wait_ptid.
13399 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13400 to get_last_target_status.
13401
f3f8ece4
PA
134022020-01-10 Pedro Alves <palves@redhat.com>
13403
13404 * gdbthread.h (scoped_restore_current_thread)
13405 <dont_restore, restore, m_dont_restore>: Declare.
13406 * thread.c (thread_alive): Add assertion. Return bool.
13407 (switch_to_thread_if_alive): New.
13408 (prune_threads): Switch inferior/thread.
13409 (print_thread_info_1): Switch thread before calling target methods.
13410 (scoped_restore_current_thread::restore): New, factored out from
13411 ...
13412 (scoped_restore_current_thread::~scoped_restore_current_thread):
13413 ... this.
13414 (scoped_restore_current_thread::scoped_restore_current_thread):
13415 Add assertion.
13416 (thread_apply_all_command, thread_select): Use
13417 switch_to_thread_if_alive.
13418 * infrun.c (proceed, restart_threads, handle_signal_stop)
13419 (switch_back_to_stepped_thread): Switch current thread before
13420 calling target methods.
13421
db2d40f7
PA
134222020-01-10 Pedro Alves <palves@redhat.com>
13423
13424 * inferior.c (switch_to_inferior_no_thread): New function,
13425 factored out from ...
13426 (inferior_command): ... here.
13427 * inferior.h (switch_to_inferior_no_thread): Declare.
13428 * mi/mi-main.c (run_one_inferior): Use
13429 switch_to_inferior_no_thread.
13430
bd420a2d
PA
134312020-01-10 Pedro Alves <palves@redhat.com>
13432
13433 * infcmd.c (kill_command): Remove dead code.
13434
ddf5db90
PA
134352020-01-10 Pedro Alves <palves@redhat.com>
13436
13437 * remote.c (remote_target::mourn_inferior): No longer check
13438 whether the target is running.
13439
5018ce90
PA
134402020-01-10 Pedro Alves <palves@redhat.com>
13441
13442 * corelow.c (core_target::has_execution): Change parameter type to
13443 inferior pointer.
13444 * inferior.c (number_of_live_inferiors): Use
13445 inferior::has_execution instead of target_has_execution_1.
13446 * inferior.h (inferior::has_execution): New.
13447 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13448 inferior::has_execution instead of target_has_execution_1.
13449 * process-stratum-target.c
13450 (process_stratum_target::has_execution): Change parameter type to
13451 inferior pointer. Check the inferior's PID instead of
13452 inferior_ptid.
13453 * process-stratum-target.h
13454 (process_stratum_target::has_execution): Change parameter type to
13455 inferior pointer.
13456 * record-full.c (record_full_core_target::has_execution): Change
13457 parameter type to inferior pointer.
13458 * target.c (target_has_execution_1): Change parameter type to
13459 inferior pointer.
13460 (target_has_execution_current): Adjust.
13461 * target.h (target_ops::has_execution): Change parameter type to
13462 inferior pointer.
13463 (target_has_execution_1): Change parameter type to inferior
13464 pointer. Change return type to bool.
13465 * tracefile.h (tracefile_target::has_execution): Change parameter
13466 type to inferior pointer.
13467
74375d18
PA
134682020-01-10 Pedro Alves <palves@redhat.com>
13469
13470 * exceptions.c (print_flush): Remove current_top_target() check.
13471
acdf84a6
PA
134722020-01-10 Pedro Alves <palves@redhat.com>
13473
13474 * remote.c (show_remote_exec_file): Show the current inferior's
13475 exec-file instead of the command variable's value.
13476
ec506636
PA
134772020-01-10 Pedro Alves <palves@redhat.com>
13478
13479 * record-full.c (record_full_resume_ptid): New global.
13480 (record_full_target::resume): Set it.
13481 (record_full_wait_1): Use record_full_resume_ptid instead of
13482 inferior_ptid.
13483
873657b9
PA
134842020-01-10 Pedro Alves <palves@redhat.com>
13485
13486 * gdbthread.h (scoped_restore_current_thread)
13487 <dont_restore, restore, m_dont_restore>: Declare.
13488 * thread.c (thread_alive): Add assertion. Return bool.
13489 (switch_to_thread_if_alive): New.
13490 (prune_threads): Switch inferior/thread.
13491 (print_thread_info_1): Switch thread before calling target methods.
13492 (scoped_restore_current_thread::restore): New, factored out from
13493 ...
13494 (scoped_restore_current_thread::~scoped_restore_current_thread):
13495 ... this.
13496 (scoped_restore_current_thread::scoped_restore_current_thread):
13497 Add assertion.
13498 (thread_apply_all_command, thread_select): Use
13499 switch_to_thread_if_alive.
13500
7f0ae84c
GB
135012020-01-10 George Barrett <bob@bob131.so>
13502
13503 * stap-probe.c (stap_modify_semaphore): Don't check for null
13504 semaphores.
13505 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13506 for null semaphores.
13507
f5a7c406
AB
135082020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13509
13510 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13511 all source windows, and maintain horizontal scroll status while
13512 doing so.
13513
9ae6bf64
TT
135142020-01-09 Tom Tromey <tom@tromey.com>
13515
13516 PR tui/18932:
13517 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13518 update_source_window, not print_source_lines.
13519
b2efe70c
AB
135202020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13521
13522 * tui/tui.c (tui_enable): Register tui hooks after calling
13523 tui_display_main.
13524
5f23a082
CB
135252020-01-09 Christian Biesinger <cbiesinger@google.com>
13526
13527 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13528
3061113b
SM
135292020-01-08 Simon Marchi <simon.marchi@efficios.com>
13530
13531 * thread.c (print_thread_info_1): Fix indentation.
13532
57d75002
CB
135332020-01-09 Christian Biesinger <cbiesinger@google.com>
13534
13535 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13536 unique_xmalloc_ptr outside the if to always free the demangled name.
13537
6a053cb1
TT
135382020-01-08 Tom Tromey <tromey@adacore.com>
13539
13540 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13541 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13542 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13543 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13544 Remove.
13545 (section_offsets): New typedef.
13546 * symtab.c (fixup_section, get_msymbol_address): Update.
13547 * symmisc.c (dump_msymbols): Update.
13548 * symfile.h (relative_addr_info_to_section_offsets)
13549 (symfile_map_offsets_to_segments): Update.
13550 * symfile.c (build_section_addr_info_from_objfile)
13551 (init_objfile_sect_indices): Update.
13552 (struct place_section_arg): Change type of "offsets".
13553 (place_section): Update.
13554 (relative_addr_info_to_section_offsets): Change type of
13555 "section_offsets". Remove "num_sections" parameter.
13556 (default_symfile_offsets, syms_from_objfile_1)
13557 (set_objfile_default_section_offset): Update.
13558 (reread_symbols): No need to preserve section offsets by hand.
13559 (symfile_map_offsets_to_segments): Change type of "offsets".
13560 * stap-probe.c (relocate_address): Update.
13561 * stabsread.h (process_one_symbol): Update.
13562 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13563 (solib_target_relocate_section_addresses): Update.
13564 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13565 Update.
13566 * solib-frv.c (frv_relocate_main_executable): Update.
13567 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13568 * solib-aix.c (solib_aix_get_section_offsets): Change return
13569 type.
13570 (solib_aix_solib_create_inferior_hook): Update.
13571 * remote.c (remote_target::get_offsets): Update.
13572 * psymtab.c (find_pc_sect_psymtab): Update.
13573 * psympriv.h (struct partial_symbol) <address, text_low,
13574 text_high>: Update.
13575 * objfiles.h (obj_section_offset): Update.
13576 (struct objfile) <section_offsets>: Change type.
13577 <num_sections>: Remove.
13578 (objfile_relocate): Update.
13579 * objfiles.c (entry_point_address_query): Update
13580 (relocate_one_symbol): Change type of "section_offsets".
13581 (objfile_relocate1, objfile_relocate1): Change type of
13582 "new_offsets".
13583 (objfile_rebase1): Update.
13584 * mipsread.c (mipscoff_symfile_read): Update.
13585 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13586 parameter.
13587 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13588 (parse_external, psymtab_to_symtab_1): Update.
13589 * machoread.c (macho_symfile_offsets): Update.
13590 * ia64-tdep.c (ia64_find_unwind_table): Update.
13591 * hppa-tdep.c (read_unwind_info): Update.
13592 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13593 * dwarf2read.c (create_addrmap_from_index)
13594 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13595 (process_psymtab_comp_unit_reader, add_partial_symbol)
13596 (add_partial_subprogram, process_full_comp_unit)
13597 (read_file_scope, read_func_scope, read_lexical_block_scope)
13598 (read_call_site_scope, dwarf2_rnglists_process)
13599 (dwarf2_ranges_process, dwarf2_ranges_read)
13600 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13601 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13602 Update.
13603 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13604 Update.
13605 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13606 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13607 (process_one_symbol): Change type of "section_offsets".
13608 * ctfread.c (get_objfile_text_range): Update.
13609 * coffread.c (coff_symtab_read, enter_linenos)
13610 (process_coff_symbol): Update.
13611 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13612 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13613
456e800a
TT
136142020-01-08 Tom Tromey <tromey@adacore.com>
13615
13616 * dwarf2read.c (parse_macro_definition): Use std::string.
13617 (parse_macro_definition): Likewise.
13618
6dfa2fc2
TT
136192020-01-08 Tom Tromey <tromey@adacore.com>
13620
13621 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13622 (ATTR_ALLOC_CHUNK): Remove.
13623
421d1616
TT
136242020-01-08 Tom Tromey <tromey@adacore.com>
13625
13626 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13627
43816ebc
TT
136282020-01-08 Tom Tromey <tromey@adacore.com>
13629
13630 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13631 (dwarf2_compute_name, open_dwo_file): Likewise.
13632 (process_enumeration_scope): Use std::vector.
13633 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13634 (partial_die_info::fixup, dwarf2_start_subfile)
13635 (guess_full_die_structure_name, dwarf2_name): Likewise.
13636 (determine_prefix): Update.
13637 (guess_full_die_structure_name): Make return type const.
13638 (partial_die_full_name): Return unique_xmalloc_ptr.
13639 (DW_FIELD_ALLOC_CHUNK): Remove.
13640
4212d509
TT
136412020-01-07 Tom Tromey <tromey@adacore.com>
13642
13643 PR build/24937:
13644 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13645
06a6207a
JT
136462020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13647
13648 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13649
153d79c4
AB
136502020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13651
13652 * stack.c (print_frame_info): Move disassemble_next_line code
13653 inside source_print block.
13654
66182876
EZ
136552020-01-06 Eli Zaretskii <eliz@gnu.org>
13656
13657 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13658 gdb/signals.h, as we are now using native signal symbols.
13659
cbfa8581
SV
136602020-01-06 Shahab Vahedi <shahab@synopsys.com>
13661
13662 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13663 overflow by an early check of content vs threshold.
aac66a4c 13664 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13665 Likewise.
13666
3f602821
EZ
136672020-01-06 Eli Zaretskii <eliz@gnu.org>
13668
13669 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13670
a08c904d
JT
136712020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13672
13673 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13674 export table if no section contains it's RVA.
13675
89a65580
EZ
136762020-01-06 Eli Zaretskii <eliz@gnu.org>
13677
13678 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13679
8b7fcda2
HD
136802020-01-06 Hannes Domani <ssbssa@yahoo.de>
13681
13682 * source.c (print_source_lines_base): Set last_line_listed.
13683
a61b4f69
SV
136842020-01-06 Shahab Vahedi <shahab@synopsys.com>
13685
13686 * tui/tui-disasm.c: Remove trailing spaces.
13687
559e7e50
EZ
136882020-01-06 Eli Zaretskii <eliz@gnu.org>
13689 Pedro Alves <palves@redhat.com>
13690
13691 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13692 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13693 (windows_gdb_signal_to_target): New function, uses the above
13694 enumeration to convert GDB internal signal codes to equivalent
13695 Windows codes.
13696 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13697 * windows-nat.c: Include "gdb_wait.h".
13698 (get_windows_debug_event): Extract the fatal exception from the
13699 exit status and convert to the equivalent Posix signal number.
13700 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13701 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13702 * gdbsupport/gdb_wait.c: New file, implements
13703 windows_status_to_termsig.
13704 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13705 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13706
f2302a34
AB
137072020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13708
13709 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13710 show_layout.
13711
6a5206eb
LM
137122020-01-05 Luis Machado <luis.machado@linaro.org>
13713
13714 * aarch64-linux-nat.c
13715 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13716 and bfd_mach_aarch64.
13717
6ec1d75e
PW
137182020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13719
13720 * ui-file.c (stdio_file::can_emit_style_escape)
13721 (tee_file::can_emit_style_escape): Ensure style is used also on
13722 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13723 to gdb_stdout.
13724 * main.c (set_gdb_data_directory): Use file style to output the
13725 warning that the given pathname is not a directory.
13726 * top.c (show_history_filename, gdb_safe_append_history)
13727 (show_gdb_datadir): Use file style.
13728
44f81a76
HD
137292020-01-03 Hannes Domani <ssbssa@yahoo.de>
13730
13731 * solib-target.c (struct lm_info_target):
13732 Change offsets to be a unique_xmalloc_ptr.
13733 (solib_target_relocate_section_addresses): Update.
13734
25057eb0
HD
137352020-01-03 Hannes Domani <ssbssa@yahoo.de>
13736
13737 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13738
6e2118f5
BE
137392020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13740
13741 * MAINTAINERS (Write After Approval): Add myself.
13742
8133c7dc
LM
137432020-01-02 Luis Machado <luis.machado@linaro.org>
13744
13745 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13746 Cell BE architecture.
13747 * target.h (struct target_ops) <thread_architecture>: Likewise.
13748
48189bec
HD
137492020-01-01 Hannes Domani <ssbssa@yahoo.de>
13750
13751 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13752
ead1063b
HD
137532020-01-01 Hannes Domani <ssbssa@yahoo.de>
13754
13755 * MAINTAINERS (Write After Approval): Add myself.
13756
e5d78223
JB
137572020-01-01 Joel Brobecker <brobecker@adacore.com>
13758
13759 * gdbarch.sh: Update copyright year range of generated files.
13760
b811d2c2
JB
137612020-01-01 Joel Brobecker <brobecker@adacore.com>
13762
13763 Update copyright year range in all GDB files.
13764
5f4def5c
JB
137652020-01-01 Joel Brobecker <brobecker@adacore.com>
13766
13767 * copyright.py: Convert to Python 3.
13768
51fd4002
JB
137692020-01-01 Joel Brobecker <brobecker@adacore.com>
13770
13771 * copyright.py: Adapt after move of gnulib directory from gdb
13772 directory to toplevel directory.
13773
5fb651f2
JB
137742020-01-01 Joel Brobecker <brobecker@adacore.com>
13775
13776 * copyright.py (main): Exit if run from the wrong directory.
13777
5dd8bf88
JB
137782020-01-01 Joel Brobecker <brobecker@adacore.com>
13779
13780 * top.c (print_gdb_version): Change copyright year to 2020.
13781
9f71dacb 137822020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13783
9f71dacb 13784 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13785
9f71dacb 13786For older changes see ChangeLog-2019.
c906108c
SS
13787\f
13788Local Variables:
13789mode: change-log
13790left-margin: 8
13791fill-column: 74
13792version-control: never
57da7796 13793coding: utf-8
c906108c 13794End:
This page took 2.927917 seconds and 4 git commands to generate.