]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: update instance_flags field name in gdb-gdb.py.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4d0bcfcf
SM
12020-09-16 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4 Change instance_flags to m_instance_flags.
5
fe830662
TT
62020-09-16 Tom Tromey <tromey@adacore.com>
7
8 PR gdb/26598:
9 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
10
fe5ddfc3
JB
112020-09-16 John Baldwin <jhb@FreeBSD.org>
12
13 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
14 PL_FLAG_EXEC.
15 (fbsd_nat_target::insert_exec_catchpoint)
16 (fbsd_nat_target::remove_exec_catchpoint): Always define.
17 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
18 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
19
e911c666
JB
202020-09-16 John Baldwin <jhb@FreeBSD.org>
21
22 * configure.ac: Remove check for kinfo_getvmmap().
23 * configure, config.in: Regenerate.
24 * fbsd-nat.c (fbsd_read_mapping): Remove
25 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
26 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
27 kinfo_get_vmmap() are always present.
28
1f17d372
JB
292020-09-16 John Baldwin <jhb@FreeBSD.org>
30
31 * fbsd-nat.c: Always include support for
32 TARGET_OBJECT_SIGNAL_INFO.
33
bcb1da7f
JB
342020-09-16 John Baldwin <jhb@FreeBSD.org>
35
36 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
37 sysctl and remove procfs fallback.
38
5515f729
JB
392020-09-16 John Baldwin <jhb@FreeBSD.org>
40
41 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
42 * fbsd-nat.h: Likewise.
43
da1df1db
TBA
442020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
45
46 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
47 argument.
48
0e25e767
AB
492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * ada-lang.c (ada_language_data): Delete.
52 (ada_language): Remove references to ada_language_data.
53 * c-lang.c (c_language_data): Delete.
54 (c_language): Remove references to c_language_data.
55 (cplus_language_data): Delete.
56 (cplus_language): Remove references to cplus_language_data.
57 (asm_language_data): Delete.
58 (asm_language): Remove references to asm_language_data.
59 (minimal_language_data): Delete.
60 (minimal_language): Remove references to minimal_language_data.
61 * d-lang.c (d_language_data): Delete.
62 (d_language): Remove references to d_language_data.
63 * f-lang.c (f_language_data): Delete.
64 (f_language): Remove references to f_language_data.
65 * go-lang.c (go_language_data): Delete.
66 (go_language): Remove references to go_language_data.
67 * language.c (unknown_language_data): Delete.
68 (unknown_language): Remove references to unknown_language_data.
69 (auto_language_data): Delete.
70 (auto_language): Remove references to auto_language_data.
71 * language.h (language_data): Delete struct.
72 (language_defn): No longer inherit from language_data.
73 * m2-lang.c (m2_language_data): Delete.
74 (m2_language): Remove references to m2_language_data.
75 * objc-lang.c (objc_language_data): Delete.
76 (objc_language): Remove references to objc_language_data.
77 * opencl-lang.c (opencl_language_data): Delete.
78 (opencl_language): Remove references to opencl_language_data.
79 * p-lang.c (pascal_language_data): Delete.
80 (pascal_language): Remove references to pascal_language_data.
81 * rust-lang.c (rust_language_data): Delete.
82 (rust_language): Remove references to rust_language_data.
83
b7c6e27d
AB
842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
85
86 * ada-lang.c (ada_language_data): Remove la_op_print_tab
87 initializer.
88 (ada_language::opcode_print_table): New member function.
89 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
90 (c_language::opcode_print_table): New member function.
91 (cplus_language_data): Remove la_op_print_tab initializer.
92 (cplus_language::opcode_print_table): New member function.
93 (asm_language_data): Remove la_op_print_tab initializer.
94 (asm_language::opcode_print_table): New member function.
95 (minimal_language_data): Remove la_op_print_tab initializer.
96 (minimal_language::opcode_print_table): New member function.
97 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
98 (d_language::opcode_print_table): New member function.
99 * expprint.c (print_subexp_standard): Update call to
100 opcode_print_table.
101 (op_string): Likewise.
102 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
103 (f_language::opcode_print_table): New member function.
104 * go-lang.c (go_language_data): Remove la_op_print_tab
105 initializer.
106 (go_language::opcode_print_table): New member function.
107 * language.c (unknown_language_data): Remove la_op_print_tab
108 initializer.
109 (unknown_language::opcode_print_table): New member function.
110 (auto_language_data): Remove la_op_print_tab initializer.
111 (auto_language::opcode_print_table): New member function.
112 * language.h (language_data): Remove la_op_print_tab field.
113 (language_defn::opcode_print_table): Declare new member function.
114 * m2-lang.c (m2_language_data): Remove la_op_print_tab
115 initializer.
116 (m2_language::opcode_print_table): New member function.
117 * objc-lang.c (objc_language_data): Remove la_op_print_tab
118 initializer.
119 (objc_language::opcode_print_table): New member function.
120 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
121 initializer.
122 (opencl_language::opcode_print_table): New member function.
123 * p-lang.c (pascal_language_data): Remove la_op_print_tab
124 initializer.
125 (pascal_language::opcode_print_table): New member function.
126 * rust-lang.c (rust_language_data): Remove la_op_print_tab
127 initializer.
128 (rust_language::opcode_print_table): New member function.
129
5aba6ebe
AB
1302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
131
132 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
133 (ada_language::expression_ops): New member function.
134 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
135 (c_language::expression_ops): New member function.
136 (cplus_language_data): Remove la_exp_desc initializer.
137 (cplus_language::expression_ops): New member function.
138 (asm_language_data): Remove la_exp_desc initializer.
139 (asm_language::expression_ops): New member function.
140 (minimal_language_data): Remove la_exp_desc initializer.
141 (minimal_language::expression_ops): New member function.
142 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
143 (d_language::expression_ops): New member function.
144 * eval.c (evaluate_subexp): Update call to expression_ops.
145 * expprint.c (print_subexp): Likewise.
146 (op_name): Likewise.
147 (dump_subexp_body): Likewise.
148 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
149 (f_language::expression_ops): New member function.
150 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
151 (go_language::expression_ops): New member function.
152 * language.c (language_defn::expression_ops): New function.
153 (unknown_language_data): Remove la_exp_desc initializer.
154 (auto_language_data): Likewise.
155 * language.h (language_data): Remove la_exp_desc field.
156 (language_defn::expression_ops): Declare new member function.
157 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
158 (m2_language::expression_ops): New member function.
159 * objc-lang.c (objc_language_data): Remove la_exp_desc
160 initializer.
161 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
162 initializer.
163 (opencl_language::expression_ops): New member function.
164 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
165 * parse.c (operator_length): Update call to expression_ops.
166 (exp_iterate): Likewise.
167 * rust-lang.c (rust_language_data): Remove la_exp_desc
168 initializer.
169 (ruse_language::expression_ops): New member function.
170
b63a3f3f
AB
1712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
172
173 * ada-lang.c (ada_language_data): Remove la_varobj_ops
174 initializer.
175 (ada_language::varobj_ops): New member function.
176 * c-lang.c (c_language_data): Remove la_varobj_ops
177 initializer.
178 (cplus_language_data): Likewise.
179 (cplus_language::varobj_ops): New member function.
180 (asm_language_data): Remove la_varobj_ops initializer.
181 (minimal_language_data): Likewise.
182 * d-lang.c (d_language_data): Likewise.
183 * f-lang.c (f_language_data): Likewise.
184 * go-lang.c (go_language_data): Likewise.
185 * language.c (language_defn::varobj_ops): New function.
186 (unknown_language_data): Remove la_varobj_ops
187 initializer.
188 (auto_language_data): Likewise.
189 * language.h (language_data): Remove la_varobj_ops field.
190 (language_defn::varobj_ops): Declare new member function.
191 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
192 * objc-lang.c (objc_language_data): Likewise.
193 * opencl-lang.c (opencl_language_data): Likewise.
194 * p-lang.c (pascal_language_data): Likewise.
195 * rust-lang.c (rust_language_data): Likewise.
196 * varobj.c (varobj_create): Update call to varobj_ops.
197 * varobj.h (default_varobj_ops): Delete define.
198
1ac14a04
AB
1992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
200
201 * ada-lang.c (ada_language_data): Remove la_macro_expansion
202 initializer.
203 * c-lang.c (c_language_data): Likewise.
204 (c_language::macro_expansion): New member function.
205 (cplus_language_data): Likewise.
206 (cplus_language::macro_expansion): New member function.
207 (asm_language_data): Likewise.
208 (asm_language::macro_expansion): New member function.
209 (minimal_language_data): Likewise.
210 (minimal_language::macro_expansion): New member function.
211 * d-lang.c (d_language_data): Remove la_macro_expansion
212 initializer.
213 * f-lang.c (f_language_data): Likewise.
214 * go-lang.c (go_language_data): Likewise.
215 * language.c (unknown_language_data): Likewise.
216 (auto_language_data): Likewise.
217 * language.h (language_data): Remove la_macro_expansion field.
218 (language_defn::macro_expansion): New member function.
219 * m2-lang.c (m2_language_data): Remove la_macro_expansion
220 initializer.
221 * objc-lang.c (objc_language_data): Likewise.
222 (objc_language::macro_expansion): New member function.
223 * opencl-lang.c (opencl_language_data): Likewise.
224 (opencl_language::macro_expansion): New member function.
225 * p-lang.c (pascal_language_data): Remove la_macro_expansion
226 initializer.
227 * rust-lang.c (rust_language_data): Likewise.
228 * symtab.c (default_collect_symbol_completion_matches_break_on):
229 Update call to macro_expansion.
230
3a3440fb
AB
2312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
232
233 * ada-lang.c (ada_language_data): Remove la_array_ordering
234 initializer.
235 * c-lang.c (c_language_data): Likewise.
236 (cplus_language_data): Likewise.
237 (asm_language_data): Likewise.
238 (minimal_language_data): Likewise.
239 * d-lang.c (d_language_data): Likewise.
240 * dwarf2/read.c (read_array_order): Update for call to
241 array_ordering.
242 * f-lang.c (f_language_data): Remove la_array_ordering
243 initializer.
244 (f_language::array_ordering): New member function.
245 * go-lang.c (go_language_data): Remove la_array_ordering
246 initializer.
247 * language.c (unknown_language_data): Likewise.
248 (auto_language_data): Likewise.
249 * language.h (language_data): Delete la_array_ordering field.
250 (language_defn::array_ordering): New member function.
251 * m2-lang.c (m2_language_data): Remove la_array_ordering
252 initializer.
253 * objc-lang.c (objc_language_data): Likewise.
254 * opencl-lang.c (opencl_language_data): Likewise.
255 * p-lang.c (pascal_language_data): Likewise.
256 * rust-lang.c (rust_language_data): Likewise.
257
0d201fa4
AB
2582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
259
260 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
261 initializer.
262 * c-lang.c (c_language_data): Likewise.
263 (cplus_language_data): Likewise.
264 (asm_language_data): Likewise.
265 (minimal_language_data): Likewise.
266 * d-lang.c (d_language_data): Likewise.
267 * f-lang.c (f_language_data): Likewise.
268 (f_language::case_sensitivity): New member function.
269 * go-lang.c (go_language_data): Remove la_case_sensitivity
270 initializer.
271 * language.c (enum case_mode): Moved here from language.h.
272 (case_mode): Make static.
273 (show_case_command): Update for case_sensitivity being a method.
274 (set_case_command): Likewise.
275 (set_range_case): Likewise.
276 (unknown_language_data): Remove la_case_sensitivity initializer.
277 (auto_language_data): Likewise.
278 * language.h (case_mode): Delete, move enum declaration to
279 language.c.
280 (language_data): Delete la_case_sensitivity field.
281 (language_defn::case_sensitivity): New member function.
282 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
283 initializer.
284 * objc-lang.c (objc_language_data): Likewise.
285 * opencl-lang.c (opencl_language_data): Likewise.
286 * p-lang.c (pascal_language_data): Likewise.
287 * rust-lang.c (rust_language_data): Likewise.
288
efdf6a73
AB
2892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * ada-lang.c (ada_language_data): Remove la_range_check
292 initializer.
293 * c-lang.c (c_language_data): Likewise.
294 (cplus_language_data): Likewise.
295 (asm_language_data): Likewise.
296 (minimal_language_data): Likewise.
297 * d-lang.c (d_language_data): Likewise.
298 * f-lang.c (f_language_data): Likewise.
299 (f_language::range_checking_on_by_default): New member function.
300 * go-lang.c (go_language_data): Remove la_range_check initializer.
301 * language.c (enum range_mode): Moved here from language.h.
302 (range_mode): Made static.
303 (show_range_command): Update to use
304 range_checking_on_by_default.
305 (set_range_command): Likewise.
306 (set_range_case): Likewise.
307 (unknown_language_data): Remove la_range_check initializer.
308 (auto_language_data): Likewise.
309 * language.h (range_mode): Delete. Enum definition moved to
310 language.c.
311 (language_data): Remove la_range_check field.
312 (language_defn::range_checking_on_by_default): New member
313 function.
314 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
315 (m2_language::range_checking_on_by_default): New member function.
316 * objc-lang.c (objc_language_data): Remove la_range_check
317 initializer.
318 * opencl-lang.c (opencl_language_data): Likewise.
319 * p-lang.c (pascal_language_data): Likewise.
320 (pascal_language::range_checking_on_by_default): New member
321 function.
322 * rust-lang.c (rust_language_data): Remove la_range_check
323 initializer.
324 (rust_language::range_checking_on_by_default): New member
325 function.
326
bf92aec5
AB
3272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
328
329 * dwarf2/read.c (dwarf2_physname): Remove special case for
330 language_go.
331 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
332 member function.
333
d3355e4d
AB
3342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
335
336 * ada-lang.c (ada_language_data): Remove
337 la_store_sym_names_in_linkage_form_p initializer.
338 (ada_language::store_sym_names_in_linkage_form_p): New member
339 function.
340 * c-lang.c (c_language_data): Remove
341 la_store_sym_names_in_linkage_form_p initializer.
342 (c_language::store_sym_names_in_linkage_form_p): New member
343 function.
344 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
345 initializer.
346 (asm_language_data): Likewise.
347 (asm_language::store_sym_names_in_linkage_form_p): New member
348 function.
349 (minimal_language_data): Remove
350 la_store_sym_names_in_linkage_form_p initializer.
351 (minimal_language::store_sym_names_in_linkage_form_p): New member
352 function.
353 * d-lang.c (d_language_data): Remove
354 la_store_sym_names_in_linkage_form_p initializer.
355 * dwarf2/read.c (dwarf2_physname): Update call to
356 store_sym_names_in_linkage_form_p.
357 * f-lang.c (f_language_data): Remove
358 la_store_sym_names_in_linkage_form_p initializer.
359 * go-lang.c (go_language_data): Remove
360 la_store_sym_names_in_linkage_form_p initializer.
361 * language.c (unknown_language_data): Remove
362 la_store_sym_names_in_linkage_form_p initializer.
363 (unknown_language::store_sym_names_in_linkage_form_p): New member
364 function.
365 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
366 initializer.
367 (auto_language::store_sym_names_in_linkage_form_p): New member
368 function.
369 * language.h (language_data): Remove
370 la_store_sym_names_in_linkage_form_p member variable.
371 (language_defn::store_sym_names_in_linkage_form_p): New member
372 function.
373 * m2-lang.c (m2_language_data): Remove
374 la_store_sym_names_in_linkage_form_p initializer.
375 * objc-lang.c (objc_language_data): Likewise.
376 * opencl-lang.c (opencl_language_data): Likewise.
377 * p-lang.c (pascal_language_data): Likewise.
378 * rust-lang.c (rust_language_data): Likewise.
379
22c12a6c
AB
3802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
381
382 * ada-lang.c (ada_language_data): Remove string_lower_bound
383 initializer.
384 * c-lang.c (c_language_data): Likewise.
385 (cplus_language_data): Likewise.
386 (asm_language_data): Likewise.
387 (minimal_language_data): Likewise.
388 * d-lang.c (d_language_data): Likewise.
389 * f-lang.c (f_language_data): Likewise.
390 * go-lang.c (go_language_data): Likewise.
391 * language.c (unknown_language_data): Likewise.
392 (auto_language_data): Likewise.
393 * language.h (language_data): Remove string_lower_bound field.
394 (language_defn::string_lower_bound): New member function.
395 * m2-lang.c (m2_language_data): Remove string_lower_bound
396 initializer.
397 (m2_language::string_lower_bound): New member function.
398 * objc-lang.c (objc_language_data): Remove string_lower_bound
399 initializer.
400 * opencl-lang.c (opencl_language_data): Likewise.
401 * p-lang.c (pascal_language_data): Likewise.
402 * rust-lang.c (rust_language_data): Likewise.
403 * valops.c (value_cstring): Update call to string_lower_bound.
404 (value_string): Likewise.
405 * value.c (allocate_repeated_value): Likewise.
406
1c236ddd
AB
4072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
408
409 * valops.c (value_repeat): Fix incorrect argument name in comment.
410
67bd3fd5
AB
4112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
412
413 * ada-lang.c (ada_language_data): Remove c_style_arrays
414 initializer.
415 (ada_language::c_style_arrays_p): New member fuction.
416 * c-lang.c (c_language_data): Remove c_style_arrays
417 initializer.
418 (cplus_language_data): Likewise.
419 (asm_language_data): Likewise.
420 (minimal_language_data): Likewise.
421 * d-lang.c (d_language_data): Likewise.
422 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
423 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
424 (f_language::c_style_arrays_p): New member function.
425 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
426 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
427 * language.c (unknown_language_data): Remove c_style_arrays
428 initializer.
429 (auto_language_data): Likewise.
430 * language.h (language_data): Remove c_style_arrays field.
431 (language_defn::c_style_arrays_p): New member function.
432 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
433 (m2_language::c_style_arrays_p): New member function.
434 * objc-lang.c (objc_language_data): Remove c_style_arrays
435 initializer.
436 * opencl-lang.c (opencl_language_data): Likewise.
437 * p-lang.c (pascal_language_data): Likewise.
438 * rust-lang.c (rust_language_data): Likewise.
439 * valarith.c (value_subscript): Update call to c_style_arrays_p,
440 and update local variable to a bool.
441 * valops.c (value_cast): Update call to c_style_arrays_p.
442 (value_array): Likewise.
443 * value.c (coerce_array): Likewise.
444
85967615
AB
4452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
446
447 * ada-lang.c (ada_language_data): Remove la_language initializer.
448 * c-lang.c (c_language_data): Likewise.
449 (cplus_language_data): Likewise.
450 (asm_language_data): Likewise.
451 (minimal_language_data): Likewise.
452 * d-lang.c (d_language_data): Likewise.
453 * f-lang.c (f_language_data): Likewise.
454 * go-lang.c (go_language_data): Likewise.
455 * language.c (unknown_language_data): Likewise.
456 (auto_language_data): Likewise.
457 * language.h (language_data): Remove la_language field.
458 (language_defn::language_defn): Initialise la_language field.
459 (language_defn::la_language): New member variable.
460 * m2-lang.c (m2_language_data): Remove la_language field.
461 * objc-lang.c (objc_language_data): Likewise.
462 * opencl-lang.c (opencl_language_data): Likewise.
463 * p-lang.c (pascal_language_data): Likewise.
464 * rust-lang.c (rust_language_data): Likewise.
465
e171d6f1
AB
4662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
467
468 * ada-lang.c (ada_extensions): Delete, moved into
469 ada_language::filename_extensions.
470 (ada_language_data): Remove la_filename_extensions initializer.
471 (ada_language::filename_extensions): New member function.
472 * c-lang.c (c_extensions): Delete, moved into
473 c_language::filename_extensions.
474 (c_language_data): Remove la_filename_extensions initializer.
475 (c_language::filename_extensions): New member function.
476 (cplus_extensions): Delete, moved into
477 cplus_language::filename_extensions.
478 (cplus_language_data): Remove la_filename_extensions initializer.
479 (cplus_language::filename_extensions): New member function.
480 (asm_extensions): Delete, moved into
481 asm_language::filename_extensions.
482 (asm_language_data): Remove la_filename_extensions initializer.
483 (asm_language::filename_extensions): New member function.
484 (minimal_language_data): Remove la_filename_extensions
485 initializer.
486 * d-lang.c (d_extensions): Delete, moved into
487 d_language::filename_extensions.
488 (d_language_data): Remove la_filename_extensions initializer.
489 (d_language::filename_extensions): New member function.
490 * f-lang.c (f_extensions): Delete, moved into
491 f_language::filename_extensions.
492 (f_language_data): Remove la_filename_extensions initializer.
493 (f_language::filename_extensions): New member function.
494 * go-lang.c (go_language_data): Remove la_filename_extensions
495 initializer.
496 * language.c (add_set_language_command): Update now that
497 filename_extensions returns a vector.
498 (unknown_language_data): Remove la_filename_extensions
499 initializer.
500 (auto_language_data): Likewise.
501 * language.h (language_data): Remove la_filename_extensions field.
502 (language_defn::filename_extensions): New member function.
503 * m2-lang.c (m2_language_data): Remove la_filename_extensions
504 initializer.
505 * objc-lang.c (objc_extensions): Delete, moved into
506 objc_language::filename_extensions.
507 (objc_language_data): Remove la_filename_extensions initializer.
508 (objc_language::filename_extensions): New member function.
509 * opencl-lang.c (opencl_language_data): Remove
510 la_filename_extensions initializer.
511 * p-lang.c (pascal_extensions): Delete, moved into
512 pascal_language::filename_extensions.
513 (pascal_language_data): Remove la_filename_extensions initializer.
514 (pascal_language::filename_extensions): New member function.
515 * rust-lang.c (rust_extensions): Delete, moved into
516 rust_language::filename_extensions.
517 (rust_language_data): Remove la_filename_extensions initializer.
518 (rust_language::filename_extensions): New member function.
519 * symfile.c (add_filename_language): Add new assert.
520
6f7664a9
AB
5212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
522
523 * ada-lang.c (ada_language_data): Remove la_name and
524 la_natural_name initializers.
525 (ada_language::name): New member function.
526 (ada_language::natural_name): New member function.
527 * c-lang.c (c_language_data): Remove la_name and
528 la_natural_name initializers.
529 (c_language::name): New member function.
530 (c_language::natural_name): New member function.
531 (cplus_language_data): Remove la_name and
532 la_natural_name initializers.
533 (cplus_language::name): New member function.
534 (cplus_language::natural_name): New member function.
535 (asm_language_data): Remove la_name and
536 la_natural_name initializers.
537 (asm_language::name): New member function.
538 (asm_language::natural_name): New member function.
539 (minimal_language_data): Remove la_name and
540 la_natural_name initializers.
541 (minimal_language::name): New member function.
542 (minimal_language::natural_name): New member function.
543 * compile/compile.c (compile_to_object): Update call to
544 lanugage_defn::name.
545 * d-lang.c (d_language_data): Remove la_name and
546 la_natural_name initializers.
547 (d_language::name): New member function.
548 (d_language::natural_name): New member function.
549 * expprint.c (print_subexp_standard): Update call to
550 language_defn::name.
551 (dump_raw_expression): Likewise
552 (dump_prefix_expression): Likewise.
553 * f-lang.c (f_language_data): Remove la_name and
554 la_natural_name initializers.
555 (f_language::name): New member function.
556 (f_language::natural_name): New member function.
557 * go-lang.c (go_language_data): Remove la_name and
558 la_natural_name initializers.
559 (go_language::name): New member function.
560 (go_language::natural_name): New member function.
561 * language.c (show_language_command): Update call to
562 language_defn::name.
563 (set_language_command): Likewise.
564 (language_enum): Likewise.
565 (language_str): Likewise.
566 (add_set_language_command): Likewise, use
567 language_defn::natural_name in the doc string.
568 (unknown_language_data): Remove la_name and
569 la_natural_name initializers.
570 (unknown_language::name): New member function.
571 (unknown_language::natural_name): New member function.
572 (auto_language_data): Remove la_name and
573 la_natural_name initializers.
574 (auto_language::name): New member function.
575 (auto_language::natural_name): New member function.
576 (language_lookup_primitive_type_as_symbol): Update call to
577 language_defn::name.
578 * language.h (language_data): Remove la_name and la_natural_name
579 member variables.
580 (language_defn::name): New member function.
581 (language_defn::natural_name): New member function.
582 * m2-lang.c (m2_language_data): Remove la_name and
583 la_natural_name initializers.
584 (m2_language::name): New member function.
585 (m2_language::natural_name): New member function.
586 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
587 language_defn::natural_name.
588 * objc-lang.c (objc_language_data): Remove la_name and
589 la_natural_name initializers.
590 (objc_language::name): New member function.
591 (objc_language::natural_name): New member function.
592 * opencl-lang.c (opencl_language_data): Remove la_name and
593 la_natural_name initializers.
594 (opencl_language::name): New member function.
595 (opencl_language::natural_name): New member function.
596 * p-lang.c (pascal_language_data): Remove la_name and
597 la_natural_name initializers.
598 (pascal_language::name): New member function.
599 (pascal_language::natural_name): New member function.
600 * rust-lang.c (rust_language_data): Remove la_name and
601 la_natural_name initializers.
602 (rust_language::name): New member function.
603 (rust_language::natural_name): New member function.
604 * symtab.c (lookup_language_this): Update call to
605 language_defn::name.
606
5bae7c4e
AB
6072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * ada-lang.c (ada_language_data): Remove la_name_of_this
610 initializer.
611 * ax-gdb.c (gen_expr): Update call to name_of_this.
612 * c-exp.y (classify_name): Likewise.
613 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
614 (cplus_language_data): Likewise.
615 (cplus_language::name_of_this): New member function.
616 (asm_language_data): Remove la_name_of_this initializer.
617 (minimal_language_data): Likewise.
618 * d-lang.c (d_language_data): Likewise.
619 (d_language::name_of_this): New member function.
620 * expprint.c (print_subexp_standard): Update call to name_of_this.
621 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
622 * go-lang.c (go_language_data): Likewise.
623 * language.c (unknown_language_data): Likewise.
624 (unknown_language::name_of_this): New member function.
625 (auto_language_data): Remove la_name_of_this initializer.
626 (auto_language::name_of_this): New member function.
627 * language.h (language_data): Delete la_name_of_this member
628 variable.
629 (language_defn::name_of_this): New member function.
630 * m2-lang.c (m2_language_data): Remove la_name_of_this
631 initializer.
632 * objc-lang.c (objc_language_data): Likewise.
633 (objc_language::name_of_this): New member function.
634 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
635 initializer.
636 * p-lang.c (pascal_language_data): Likewise.
637 (pascal_language::name_of_this): New member function.
638 * rust-lang.c (rust_language_data): Remove la_name_of_this
639 initializer.
640 * symtab.c (lookup_language_this): Update call to name_of_this.
641 (lookup_symbol_aux): Likewise.
642 * valops.c (value_of_this): Likewise.
643
22e3f3ed
AB
6442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
645
646 * ada-lang.c (ada_language_data): Remove
647 la_struct_too_deep_ellipsis initializer.
648 (ada_language::struct_too_deep_ellipsis): New member function.
649 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
650 initializer.
651 (cplus_language_data): Likewise.
652 (asm_language_data): Likewise.
653 (minimal_language_data): Likewise.
654 * cp-valprint.c (cp_print_value): Update call to
655 struct_too_deep_ellipsis.
656 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
657 initializer.
658 * f-lang.c (f_language_data): Likewise.
659 (f_language::struct_too_deep_ellipsis): New member function.
660 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
661 initializer.
662 * language.c (unknown_language_data): Likewise.
663 (auto_language_data): Likewise.
664 * language.h (language_data): Delete la_struct_too_deep_ellipsis
665 member variable.
666 (language_defn::struct_too_deep_ellipsis): New member function.
667 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
668 initializer.Q
669 * objc-lang.c (objc_language_data): Likewise.
670 * opencl-lang.c (opencl_language_data): Likewise.
671 * p-lang.c (pascal_language_data): Likewise.
672 * rust-lang.c (rust_language_data): Likewise.
673 * valprint.c (val_print_check_max_depth): Update call to
674 struct_too_deep_ellipsis.
675
ed29e1c7
FW
6762020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
677
678 * MAINTAINERS (Write After Approval): Add myself.
679
12d8f940
TT
6802020-09-15 Tom Tromey <tom@tromey.com>
681
682 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
683 Remove.
684
6b5a7bc7
TT
6852020-09-15 Tom Tromey <tom@tromey.com>
686
687 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
688 and TYPE_CODE_METHODPTR cases.
689 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
690 (c_value_print_inner): Update.
691 * valprint.c (generic_value_print_memberptr): New function, from
692 c_value_print_memberptr.
693 (generic_value_print): Use it. Call cplus_print_method_ptr.
694
47f0e2ff
TT
6952020-09-15 Tom Tromey <tromey@adacore.com>
696
697 * python/python-internal.h (PyInt_FromLong): Remove define.
698 * python/py-value.c (convert_value_from_python): Use
699 gdb_py_object_from_longest.
700 * python/py-type.c (typy_get_code): Use
701 gdb_py_object_from_longest.
702 * python/py-symtab.c (salpy_get_line): Use
703 gdb_py_object_from_longest.
704 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
705 gdb_py_object_from_longest.
706 * python/py-record.c (recpy_gap_reason_code): Use
707 gdb_py_object_from_longest.
708 * python/py-record-btrace.c (recpy_bt_insn_size)
709 (recpy_bt_func_level, btpy_list_count): Use
710 gdb_py_object_from_longest.
711 * python/py-infthread.c (gdbpy_create_ptid_object): Use
712 gdb_py_object_from_longest. Fix error handling.
713 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
714 gdb_py_object_from_longest.
715 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
716 gdb_py_object_from_longest.
717 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
718 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
719 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
720
512116ce
TT
7212020-09-15 Tom Tromey <tromey@adacore.com>
722
723 * python/python.c (gdbpy_parameter_value): Use
724 gdb_py_object_from_ulongest.
725
4ab1029c
TT
7262020-09-15 Tom Tromey <tromey@adacore.com>
727
728 * python/py-infevents.c (create_register_changed_event_object):
729 Use gdb_py_object_from_longest.
730 * python/py-exitedevent.c (create_exited_event_object): Use
731 gdb_py_object_from_longest.
732
062534d4
TT
7332020-09-15 Tom Tromey <tromey@adacore.com>
734
735 * python/python.c (gdbpy_parameter_value): Use
736 gdb_py_object_from_longest.
737 * python/py-type.c (convert_field, typy_range): Use
738 gdb_py_object_from_longest.
739 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
740 gdb_py_object_from_longest.
741 * python/py-lazy-string.c (stpy_get_length): Use
742 gdb_py_object_from_longest.
743 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
744 gdb_py_object_from_longest.
745 * python/py-infevents.c (create_memory_changed_event_object): Use
746 gdb_py_object_from_longest.
747 * python/py-inferior.c (infpy_get_num): Use
748 gdb_py_object_from_longest.
749 (infpy_get_pid): Likewise.
750
d1cab987
TT
7512020-09-15 Tom Tromey <tromey@adacore.com>
752
753 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
754 defines.
755 * python/py-value.c (valpy_long): Use
756 gdb_py_object_from_ulongest.
757 * python/py-symtab.c (salpy_get_pc): Use
758 gdb_py_object_from_ulongest.
759 (salpy_get_last): Likewise.
760 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
761 gdb_py_object_from_ulongest.
762 * python/py-lazy-string.c (stpy_get_address): Use
763 gdb_py_object_from_ulongest.
764 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
765 * python/py-arch.c (archpy_disassemble): Use
766 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
767 error handling.
768
4bde49dc
TT
7692020-09-15 Tom Tromey <tromey@adacore.com>
770
771 * python/python-internal.h (gdb_py_long_from_longest): Remove
772 defines.
773 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
774 * python/py-type.c (convert_field, typy_get_sizeof): Use
775 gdb_py_object_from_longest.
776 * python/py-record-btrace.c (btpy_list_index): Use
777 gdb_py_object_from_longest.
778
37431074
TT
7792020-09-15 Tom Tromey <tromey@adacore.com>
780
781 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
782 * python/py-record.c (recpy_element_number): Use
783 gdb_py_object_from_longest.
784 (recpy_gap_number): Likewise.
785
cbe25684
TT
7862020-09-15 Tom Tromey <tromey@adacore.com>
787
788 * top.c (ui::ui): Update.
789 (highest_ui_num): Remove.
790 * top.h (struct ui) <num>: Remove.
791
db92ac45
TT
7922020-09-15 Tom Tromey <tromey@adacore.com>
793
794 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
795 * ui-style.c (ansi_regex_text): Now array.
796 * rust-exp.y (number_regex_text): Now array.
797 * linespec.c (linespec_quote_characters): Now array.
798 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
799 Now arrays.
800
d2b31b67
SM
8012020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
802
803 * debuginfod-support.c (debuginfod_client_deleter): New.
804 (debuginfod_client_up): New.
805 (debuginfod_init): Return debuginfod_client_up.
806 (debuginfod_source_query): Adjust.
807 (debuginfod_debuginfo_query): Adjust.
808
3246bd8e
SM
8092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
810
811 * debuginfod-support.c (debuginfod_source_query): Use
812 make_unique_xstrdup.
813
10242f36
SM
8142020-09-14 Simon Marchi <simon.marchi@efficios.com>
815
816 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
817 with `type::instance_flags`.
818
e1044e6a
MM
8192020-09-14 Michael Mullin <masmullin@gmail.com>
820
821 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
822 Remove baton parameter.
823
04902b09
PA
8242020-09-14 Pedro Alves <pedro@palves.net>
825
826 * Makefile.in (SELFTESTS_SRCS): Add
827 unittests/enum-flags-selftests.c.
828 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
829 btrace_function_flags instead of enum btrace_function_flag.
830 * compile/compile-c-types.c (convert_qualified): Use
831 enum_flags::raw.
832 * compile/compile-cplus-symbols.c (convert_one_symbol)
833 (convert_symbol_bmsym):
834 * compile/compile-cplus-types.c (compile_cplus_convert_method)
835 (compile_cplus_convert_struct_or_union_methods)
836 (compile_cplus_instance::convert_qualified_base):
837 * go-exp.y (parse_string_or_char): Add cast to int.
838 * unittests/enum-flags-selftests.c: New file.
839 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
840 type to btrace_thread_flags from btrace_thread_flag.
841 (record_btrace_cancel_resume, record_btrace_step_thread): Change
842 local's type to btrace_thread_flags from btrace_thread_flag. Add
843 cast in DEBUG call.
844
69896a2c
PA
8452020-09-14 Pedro Alves <pedro@palves.net>
846
847 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
848 * gdbtypes.c (address_space_name_to_int): Rename to ...
849 (address_space_name_to_type_instance_flags): ... this.
850 (address_space_int_to_name): Rename to ...
851 (address_space_type_instance_flags_to_name): ... this.
852 * gdbtypes.h (address_space_name_to_int): Rename to ...
853 (address_space_name_to_type_instance_flags): ... this.
854 (address_space_int_to_name): Rename to ...
855 (address_space_type_instance_flags_to_name): ... this.
856 * type-stack.c (type_stack::insert): Adjust to rename.
857 * type-stack.h (type_stack::insert): Likewise.
858
314ad88d
PA
8592020-09-14 Pedro Alves <pedro@palves.net>
860 Andrew Burgess <andrew.burgess@embecosm.com>
861
862 * avr-tdep.c (avr_address_class_type_flags): Return
863 type_instance_flags.
864 (avr_address_class_type_flags_to_name): Take a
865 type_instance_flags.
866 (avr_address_class_name_to_type_flags): Return bool and take a
867 type_instance_flags.
868 * d-lang.c (build_d_types): Use type::set_instance_flags.
869 * ft32-tdep.c (ft32_address_class_type_flags): Return
870 type_instance_flags.
871 (ft32_address_class_type_flags_to_name): Take a
872 type_instance_flags.
873 (ft32_address_class_name_to_type_flags): Return bool and take a
874 type_instance_flags.
875 (ft32_gdbarch_init): Use type::set_instance_flags.
876 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
877 * gdbarch.h, gdbarch.c: Regenerate.
878 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
879 (address_class_name_to_type_flags): Use type_instance_flags and
880 bool.
881 * gdbtypes.c (address_space_name_to_int)
882 (address_space_int_to_name, make_qualified_type): Use
883 type_instance_flags.
884 (make_qualified_type): Use type_instance_flags and
885 type::set_instance_flags.
886 (make_type_with_address_space, make_cv_type, make_vector_type)
887 (check_typedef): Use type_instance_flags.
888 (recursive_dump_type): Cast type_instance_flags to unsigned for
889 printing.
890 (copy_type_recursive): Use type::set_instance_flags.
891 (gdbtypes_post_init): Use type::set_instance_flags.
892 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
893 <m_instance_flags>: ... this.
894 <instance_flags, set_instance_flags>: New methods.
895 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
896 (SET_TYPE_INSTANCE_FLAGS): New.
897 (address_space_name_to_int, address_space_int_to_name)
898 (make_type_with_address_space): Pass flags using
899 type_instance_flags instead of int.
900 * stabsread.c (cleanup_undefined_types_noname): Use
901 type::set_instance_flags.
902 * s390-tdep.c (s390_address_class_type_flags): Return
903 type_instance_flags.
904 (s390_address_class_type_flags_to_name): Take a
905 type_instance_flags.
906 (s390_address_class_name_to_type_flags): Return bool and take a
907 type_instance_flags.
908 * type-stack.c (type_stack::follow_types): Use
909 type_instance_flags.
910 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
911
27087b7f
TT
9122020-09-14 Tom Tromey <tromey@adacore.com>
913
914 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
915 * x86-tdep.c (x86_is_thunk_register_name)
916 (x86_in_indirect_branch_thunk): Update.
917 * sparc64-tdep.c (sparc64_fpu_register_names)
918 (sparc64_cp0_register_names, sparc64_register_names)
919 (sparc64_pseudo_register_names): Now const.
920 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
921 cp0_registers_num>: Now const.
922 * sparc-tdep.c (sparc_core_register_names)
923 (sparc32_fpu_register_names, sparc32_cp0_register_names)
924 (sparc32_pseudo_register_names): Now const.
925 (validate_tdesc_registers): Update.
926 * rust-lang.c (rust_extensions): Now const.
927 * p-lang.c (p_extensions): Now const.
928 * objc-lang.c (objc_extensions): Now const.
929 * nto-tdep.c (nto_thread_state_str): Now const.
930 * moxie-tdep.c (moxie_register_names): Now const.
931 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
932 Now const.
933 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
934 (mips_linux_reg_names): Now const.
935 (mips_gdbarch_init): Update.
936 * microblaze-tdep.c (microblaze_register_names): Now const.
937 * m68k-tdep.c (m68k_register_names): Now const.
938 * m32r-tdep.c (m32r_register_names): Now const.
939 * ia64-tdep.c (ia64_register_names): Now const.
940 * i386-tdep.h (struct gdbarch_tdep) <register_names,
941 ymmh_register_names, ymm16h_regnum, mpx_register_names,
942 k_register_names, zmmh_register_names, xmm_avx512_register_names,
943 ymm_avx512_register_names, pkeys_register_names>: Now const.
944 * i386-tdep.c (i386_register_names, i386_zmm_names)
945 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
946 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
947 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
948 * f-lang.c (f_extensions): Now const.
949 * d-lang.c (d_extensions): Now const.
950 * csky-tdep.c (csky_register_names): Now const.
951 * charset.c (default_charset_names, charset_enum): Now const.
952 (_initialize_charset): Update.
953 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
954 const.
955 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
956 (bsd_uthread_solib_loaded): Update.
957 (bsd_uthread_state): Now const.
958 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
959 (amd64_ymm_avx512_names, amd64_ymmh_names)
960 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
961 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
962 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
963 (amd64_dword_names): Now const.
964 * agent.c (can_use_agent_enum): Now const.
965 * ada-tasks.c (task_states, long_task_states): Now const.
966 * ada-lang.c (known_runtime_file_name_patterns)
967 (known_auxiliary_function_name_patterns, attribute_names)
968 (standard_exc, ada_extensions): Now const.
969
89806626
SM
9702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
971
972 * bcache.h (struct bcache) <bcache>: Remove constructor.
973 <m_hash_function, m_compare_function>: Remove.
974 <~bcache>: Make virtual.
975 <compare>: Remove static method, introduce virtual method.
976 <default_hash>: Remove.
977 <hash>: New virtual method.
978 * bcache.c (bcache::expand_hash_table): Update.
979 (bcache::insert): Update.
980 (bcache::hash): New.
981 (bcache::compare): Update comment and parameter names.
982 * gdbtypes.c (types_deeply_equal): Update.
983 * psymtab.h (struct psymbol_bcache): New struct.
984 (class psymtab_storage) <psymtab_storage>: Make default.
985 <psymbol_cache>: Change type to psymbol_bcache.
986 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
987 (psymbol_hash): Change to...
988 (psymbol_bcache::hash): ... this.
989 (psymbol_compare): Change to...
990 (psymbol_bcache::compare): ... this.
991
677c92fe
SM
9922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
993
994 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
995 checking for initial lwp.
996
3eba3a01
TT
9972020-09-14 Tom Tromey <tromey@adacore.com>
998
999 * m68k-tdep.c (m68k_extract_return_value): Use
1000 pointer_result_regnum.
1001 (m68k_store_return_value): Likewise.
1002 (m68k_reg_struct_return_p): Handle vectors and arrays.
1003 (m68k_return_value): Handle arrays.
1004 (m68k_svr4_return_value): Fix single-element aggregate handling.
1005 Handle long double. Adjust for embedded ABI.
1006 (m68k_svr4_init_abi): Set pointer_result_regnum.
1007 (m68k_embedded_init_abi): New function.
1008 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1009 (m68k_osabi_sniffer): New function.
1010 (_initialize_m68k_tdep): Register osabi sniffer.
1011 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1012 member.
1013
33f4dd48
SM
10142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1015
1016 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1017 with gdb::unique_xmalloc_ptr<char>.
1018
8400a90d
SM
10192020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1020
1021 * xml-support.h (xml_fetch_another): Change type to be a
1022 function_view.
1023 (xml_process_xincludes): Remove baton parameter.
1024 (xml_fetch_content_from_file): Change baton parameter to
1025 dirname.
1026 * xml-support.c (struct xinclude_parsing_data)
1027 <xinclude_parsing_data>: Remove baton parameter.
1028 <fetcher_baton>: Remove.
1029 (xinclude_start_include): Adjust.
1030 (xml_process_xincludes): Adjust.
1031 (xml_fetch_content_from_file): Replace baton parameter with
1032 dirname.
1033 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1034 (xml_init_syscalls_info): Use a lambda.
1035 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1036 (file_read_description_xml): Use a lambda.
1037 (fetch_available_features_from_target): Change baton parameter
1038 to target_ops.
1039 (target_read_description_xml): Use a lambda.
1040 (target_fetch_description_xml): Use a lambda.
1041 (string_read_description_xml): Update.
1042
04f5bab2
SM
10432020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1044
1045 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1046 uses with type::endianity_is_not_default.
1047
db558e34
SM
10482020-09-14 Simon Marchi <simon.marchi@efficios.com>
1049
1050 * gdbtypes.h (struct type) <endianity_is_not_default,
1051 set_endianity_is_not_default>: New methods.
1052 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1053 type::endianity_is_not_default, change all write call sites to
1054 use type::set_endianity_is_not_default.
1055
22c4c60c
SM
10562020-09-14 Simon Marchi <simon.marchi@efficios.com>
1057
1058 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1059 uses with type::is_fixed_instance.
1060
9cdd0d12
SM
10612020-09-14 Simon Marchi <simon.marchi@efficios.com>
1062
1063 * gdbtypes.h (struct type) <is_fixed_instance,
1064 set_is_fixed_instance>: New methods.
1065 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1066 write call sites to use type::set_is_fixed_instance.
1067
0becda7a
SM
10682020-09-14 Simon Marchi <simon.marchi@efficios.com>
1069
1070 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1071 uses with type::is_gnu_ifunc.
1072
03cc7249
SM
10732020-09-14 Simon Marchi <simon.marchi@efficios.com>
1074
1075 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1076 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1077 use type::set_is_gnu_ifunc.
1078
3f46044c
SM
10792020-09-14 Simon Marchi <simon.marchi@efficios.com>
1080
1081 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1082 uses with type::stub_is_supported.
1083
9baccff6
SM
10842020-09-14 Simon Marchi <simon.marchi@efficios.com>
1085
1086 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1087 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1088 use type::set_stub_is_supported.
1089
bd63c870
SM
10902020-09-14 Simon Marchi <simon.marchi@efficios.com>
1091
1092 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1093 uses with type::is_vector.
1094
2062087b
SM
10952020-09-14 Simon Marchi <simon.marchi@efficios.com>
1096
1097 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1098 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1099 use type::set_is_vector.
1100
a409645d
SM
11012020-09-14 Simon Marchi <simon.marchi@efficios.com>
1102
1103 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1104 uses with type::has_varargs.
1105
1d6286ed
SM
11062020-09-14 Simon Marchi <simon.marchi@efficios.com>
1107
1108 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1109 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1110 use type::set_has_varargs.
1111
7f9f399b
SM
11122020-09-14 Simon Marchi <simon.marchi@efficios.com>
1113
1114 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1115 uses with type::is_prototyped.
1116
27e69b7a
SM
11172020-09-14 Simon Marchi <simon.marchi@efficios.com>
1118
1119 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1120 New methods.
1121 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1122 call sites to use type::set_is_prototyped.
1123
d2183968
SM
11242020-09-14 Simon Marchi <simon.marchi@efficios.com>
1125
1126 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1127 uses with type::target_is_stub.
1128
8f53807e
SM
11292020-09-14 Simon Marchi <simon.marchi@efficios.com>
1130
1131 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1132 New methods.
1133 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1134 sites to use type::set_target_is_stub.
1135
e46d3488
SM
11362020-09-14 Simon Marchi <simon.marchi@efficios.com>
1137
1138 * gdbtypes.h (TYPE_STUB): Remove, replace all
1139 uses with type::is_stub.
1140
b4b73759
SM
11412020-09-14 Simon Marchi <simon.marchi@efficios.com>
1142
1143 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1144 (TYPE_STUB): Use type::is_stub, change all write call sites to
1145 use type::set_is_stub.
1146
20ce4123
SM
11472020-09-14 Simon Marchi <simon.marchi@efficios.com>
1148
1149 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1150 type::has_no_signedness.
1151
15152a54
SM
11522020-09-14 Simon Marchi <simon.marchi@efficios.com>
1153
1154 * gdbtypes.h (struct type) <has_no_signedness,
1155 set_has_no_signedness>: New methods.
1156 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1157 call sites to use type::set_has_no_signedness.
1158
c6d940a9
SM
11592020-09-14 Simon Marchi <simon.marchi@efficios.com>
1160
1161 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1162 type::is_unsigned.
1163
653223d3
SM
11642020-09-14 Simon Marchi <simon.marchi@efficios.com>
1165
1166 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1167 methods.
1168 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1169 sites to use type::set_is_unsigned.
1170
55ea94da
FH
11712020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1172 Adam Renquinha <arenquinha@cimeq.qc.ca>
1173
1174 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1175 pointer and stack frame offset when unwinding.
1176
6791b117
PA
11772020-09-13 Pedro Alves <pedro@palves.net>
1178
1179 * NEWS: Document "-break-insert --qualified".
1180 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1181
77f2120b
PA
11822020-09-13 Pedro Alves <pedro@palves.net>
1183
1184 * linespec.c (classify_mtype, compare_msyms): Delete.
1185 (search_minsyms_for_name): Remove classification logic. Instead
1186 filter out trampoline symbols if we also found an external
1187 function of the same name.
1188
ed6a896c
JB
11892020-09-13 Joel Brobecker <brobecker@adacore.com>
1190
1191 * NEWS: Create a new section for the next release branch.
1192 Rename the section of the current branch, now that it has
1193 been cut.
1194
32aea73e
JB
11952020-09-13 Joel Brobecker <brobecker@adacore.com>
1196
1197 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1198 * version.in: Bump version to 11.0.50.DATE-git.
1199
8087c3fa
JB
12002020-09-12 Joel Brobecker <brobecker@adacore.com>
1201
1202 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1203
2a67f09d
FW
12042020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1205 Felix Willgerodt <Felix.Willgerodt@intel.com>
1206
1207 * gdbarch.sh: Added bfloat16 type.
1208 * gdbarch.c: Regenerated.
1209 * gdbarch.h: Regenerated.
1210 * gdbtypes.c (floatformats_bfloat16): New struct.
1211 (gdbtypes_post_init): Add builtin_bfloat16.
1212 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1213 (floatformats_bfloat16): New struct.
1214 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1215 (i386_ymm_type): Add field "v16_bfloat16"
1216 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1217 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1218 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1219 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1220 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1221 * features/i386/64bit-avx512.c: Regenerated.
1222 * features/i386/64bit-sse.xml: Add bfloat16 type.
1223 * features/i386/64bit-sse.c: Regenerated.
1224
1347d111
FW
12252020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1226
1227 * i386-tdep.c (i386_zmm_type): Fix field names.
1228 (i386_ymm_type): Fix field names.
1229
7a4e8e7d
TBA
12302020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1231
1232 * breakpoint.c: Fix typo in the help message of the
1233 "set breakpoint condition-evaluation" command.
1234
cf4ac4be
KR
12352020-09-10 Kamil Rytarowski <n54@gmx.com>
1236
1237 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1238 * (nbsd_nat_target::pid_to_exec_file)
1239 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1240 (nbsd_nat_target::post_startup_inferior)
1241 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1242 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1243 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1244 * (nbsd_thread_lister): Remove.
1245
f404573e
KR
12462020-09-10 Kamil Rytarowski <n54@gmx.com>
1247
1248 * fork-inferior.c (startup_inferior): Avoid double free.
1249
1ccb2c17
KR
12502020-09-10 Kamil Rytarowski <n54@gmx.com>
1251
1252 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1253 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1254
feedfcc7
KR
12552020-09-10 Kamil Rytarowski <n54@gmx.com>
1256
1257 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1258 * netbsd-nat.c: Include <sys/ptrace.h>.
1259 * (netbsd_nat::enable_proc_events): Add.
1260
c489f8c6
KR
12612020-09-10 Kamil Rytarowski <n54@gmx.com>
1262
1263 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1264 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1265 (netbsd_nat::for_each_thread): Add.
1266 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1267 "gdbsupport/common-debug.h".
1268 * (netbsd_nat::netbsd_thread_lister)
1269 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1270 (netbsd_nat::for_each_thread): Add.
1271
330662f6
KR
12722020-09-10 Kamil Rytarowski <n54@gmx.com>
1273
1274 * netbsd-nat.h: Include <unistd.h>.
1275 * (netbsd_nat::pid_to_exec_file): Add.
1276 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1277 * (netbsd_nat::pid_to_exec_file) Add.
1278
70b67307
KR
12792020-09-10 Kamil Rytarowski <n54@gmx.com>
1280
1281 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1282
99cf6da6
KR
12832020-09-10 Kamil Rytarowski <n54@gmx.com>
1284
1285 * netbsd-nat.h: New file.
1286 * netbsd-nat.c: Likewise.
1287
1b788fb6
TT
12882020-09-09 Tom Tromey <tromey@adacore.com>
1289
1290 * ada-lang.c (remove_extra_symbols): Do not increment when
1291 removing an element
1292
03b0a45f
TT
12932020-09-08 Tom Tromey <tromey@adacore.com>
1294
1295 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1296
3cae4447
TT
12972020-09-08 Tom Tromey <tromey@adacore.com>
1298
1299 PR win32/25302:
1300 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1301 (gdb_bfd_init_data): New function.
1302 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1303
7f08fd51
TBA
13042020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1305
1306 * infrun.c (fetch_inferior_event): Use
1307 `switch_to_target_no_thread` to switch the target.
1308
3e6ff933
TT
13092020-09-06 Tom Tromey <tom@tromey.com>
1310
1311 * symfile.h (dwarf2_free_objfile): Don't declare.
1312
e56798df
AKS
13132020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1314
1315 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1316 to match 16 byte real/complex type generated by Flang compiler.
1317
8f5c6526
TV
13182020-09-03 Tom de Vries <tdevries@suse.de>
1319
1320 PR breakpoint/26546
1321 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1322 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1323
c5065df0
SM
13242020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1325
1326 * maint.c (index_digits): New function.
1327 (struct maint_print_section_data): Remove.
1328 (print_bfd_section_info): Remove print_data parameter, add arg
1329 and index_digits.
1330 (print_objfile_section_info): Likewise.
1331 (print_bfd_section_info_maybe_relocated): Likewise (plus
1332 objfile).
1333 (maintenance_info_sections): Adjust calls.
1334
02c6f3f1
TT
13352020-09-02 Tom Tromey <tromey@adacore.com>
1336
1337 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1338 for null pointers.
1339 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1340
ef5e5b0b
SM
13412020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1342
1343 * bcache.h (struct bcache) <insert>: Change type of `added` to
1344 pointer to bool.
1345 * bcache.c (bcache::insert): Likewise.
1346 * gdbtypes.c (check_types_worklist): Adjust.
1347 * psymtab.c (add_psymbol_to_bcache): Adjust.
1348
973695d6
KB
13492020-08-31 Kevin Buettner <kevinb@redhat.com>
1350
1351 * corelow.c (unordered_set): Include.
1352 (class core_target): Add field 'm_core_unavailable_mappings'.
1353 (core_target::build_file_mappings): Print only one warning
1354 per inaccessible file. Add unavailable/broken mappings
1355 to m_core_unavailable_mappings.
1356 (core_target::xfer_partial): Call...
1357 (core_target::xfer_memory_via_mappings): New method.
1358
264fc0e2
SM
13592020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1360
1361 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1362 type to bool.
1363
2de01bdb
SM
13642020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1365
1366 * dwarf2/read.c (struct field_info): Fix indentation.
1367
f3bd50f1
SM
13682020-08-31 Simon Marchi <simon.marchi@efficios.com>
1369
1370 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1371 ordering in comment.
1372 * frame.c (frame_id_eq): Fix indentation.
1373
22b9b4b0
SL
13742020-08-31 Scott Linder <scott@scottlinder.com>
1375 Simon Marchi <simon.marchi@efficios.com>
1376
1377 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1378 inline frame ids in outer frame.
1379
84154d16
SM
13802020-08-31 Simon Marchi <simon.marchi@efficios.com>
1381
1382 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1383 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1384 (outer_frame_id): Use FID_STACK_OUTER instead of
1385 FID_STACK_INVALID.
1386 (frame_id_p): Don't check for outer_frame_id.
1387
8efaf6b3
SM
13882020-08-31 Simon Marchi <simon.marchi@efficios.com>
1389
1390 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1391 regnum/frame in value. Call allocate_value_lazy.
1392 * frame.c (frame_unwind_register_value): Use
1393 val_print_not_saved.
1394
fe1fe7ea
SM
13952020-08-31 Simon Marchi <simon.marchi@efficios.com>
1396
1397 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1398
f7c7700d
PA
13992020-08-29 Pedro Alves <pedro@palves.net>
1400
1401 * progspace.c (print_program_space): Use all_inferiors. Switch to
1402 the inferior before calling target_pid_to_str.
1403
e0814aae
TT
14042020-08-28 Tom Tromey <tom@tromey.com>
1405
1406 * xcoffread.c (xcoff_end_psymtab): Update comment.
1407 * dbxread.c (dbx_end_psymtab): Update comment.
1408
626d2320
TV
14092020-08-28 Tom de Vries <tdevries@suse.de>
1410
1411 PR breakpoint/26544
1412 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1413 event_location.
1414 (create_breakpoint): Same.
1415 (base_breakpoint_decode_location): Same.
1416 (bkpt_create_sals_from_location): Same.
1417 (bkpt_decode_location): Same.
1418 (bkpt_probe_create_sals_from_location): Same.
1419 (bkpt_probe_decode_location): Same.
1420 (tracepoint_create_sals_from_location): Same.
1421 (tracepoint_decode_location): Same.
1422 (tracepoint_probe_decode_location): Same.
1423 (strace_marker_create_sals_from_location): Same.
1424 (strace_marker_decode_location): Same.
1425 (create_sals_from_location_default): Same.
1426 (decode_location_default): Same.
1427 * breakpoint.h (struct breakpoint_ops): Same.
1428 (create_breakpoint): Same.
1429 * linespec.h (decode_line_full): Same.
1430 * linespec.c (decode_line_full): Same. Throw error if
1431 result.size () == 0.
1432
df631783
PA
14332020-08-27 Pedro Alves <pedro@palves.net>
1434
1435 PR gdb/26524
1436 * breakpoint.c (until_break_fsm) <location_breakpoint,
1437 caller_breakpoint>: Delete fields.
1438 <breakpoints>: New field.
1439 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1440 two individual breakpoints.
1441 (until_break_fsm::should_stop): Loop over breakpoints in the
1442 breakpoint vector.
1443 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1444 vector.
1445 (until_break_command): Handle location expanding into multiple
1446 sals.
1447
b2b38aa4
PA
14482020-08-27 Pedro Alves <pedro@palves.net>
1449
1450 PR gdb/26523
1451 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1452 bp_until breakpoints user-specified locations. Update intro
1453 comment.
1454
b886559f
SM
14552020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1456
1457 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1458 gdb_bfd_sections): New.
1459 * maint.c (print_bfd_section_info): Change param type to
1460 maint_print_section_data.
1461 (print_objfile_section_info): Likewise.
1462 (print_bfd_section_info_maybe_relocated): Likewise.
1463 (maintenance_info_sections): Use gdb_bfd_sections.
1464
4c6e63bf
SV
14652020-08-25 Shahab Vahedi <shahab@synopsys.com>
1466
1467 * MAINTAINERS: Add ARC target and maintainer.
1468
8d7f0635
AK
14692020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1470
1471 * configure.tgt: ARC support for GNU/Linux.
1472 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1473 * arc-linux-tdep.c: New file.
1474 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1475 * arc-tdep.c (arc_write_pc): Use it.
1476
fdd8731b
SV
14772020-08-25 Shahab Vahedi <shahab@synopsys.com>
1478
1479 * arc-tdep.c (arc_check_for_hardware_loop): New.
1480 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1481
22459524
SV
14822020-08-25 Shahab Vahedi <shahab@synopsys.com>
1483
1484 * arc-tdep.h: Include "gdbarch.h".
1485
995d3a19
SV
14862020-08-25 Shahab Vahedi <shahab@synopsys.com>
1487
1488 * arch/arc.h
1489 (arc_gdbarch_features): New class to stir the selection of target XML.
1490 (arc_create_target_description): Use FEATURES to choose XML target.
1491 (arc_lookup_target_description): Use arc_create_target_description
1492 to create _new_ target descriptions or return the already created
1493 ones if the FEATURES is the same.
1494 * arch/arc.c: Implementation of prototypes described above.
1495 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1496 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1497 * arc-tdep.c (*_feature_name): Make feature names consistent.
1498 (arc_register_feature): A new struct to hold information about
1499 registers of a particular target/feature.
1500 (arc_check_tdesc_feature): Check if XML provides registers in
1501 compliance with ARC_REGISTER_FEATURE structs.
1502 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1503 (determine_*_reg_feature_set): Which feature name to look for.
1504 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1505 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1506 to expected ISA enums to be used in arc_gdbarch_features structs.
1507 * features/Makefile (FEATURE_XMLFILES): Add new files.
1508 * gdb/features/arc/v1-aux.c: New file.
1509 * gdb/features/arc/v1-aux.xml: Likewise.
1510 * gdb/features/arc/v1-core.c: Likewise.
1511 * gdb/features/arc/v1-core.xml: Likewise.
1512 * gdb/features/arc/v2-aux.c: Likewise.
1513 * gdb/features/arc/v2-aux.xml: Likewise.
1514 * gdb/features/arc/v2-core.c: Likewise.
1515 * gdb/features/arc/v2-core.xml: Likewise.
1516 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1517
3945d2d7
GM
15182020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1519 Andrew Burgess <andrew.burgess@embecosm.com>
1520
1521 PR m2/26372
fc5d6901 1522 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1523 an assert. Remove single element array indexing pattern as the
1524 MULTI_SUBSCRIPT support will handle this case too.
1525
2677f2d3
SM
15262020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * value.h (valprint_check_validity): Move declaration from
1529 here...
1530 * valprint.h (valprint_check_validity): ... to here.
1531
c426fddb
SM
15322020-08-24 Simon Marchi <simon.marchi@efficios.com>
1533
1534 * debug.h: New file.
1535 * debug.c (debug_prefixed_vprintf): New function.
1536 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1537 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1538
1eb8556f
SM
15392020-08-24 Simon Marchi <simon.marchi@efficios.com>
1540
1541 * infrun.h (infrun_debug_printf_1): New function declaration.
1542 (infrun_debug_printf): New macro.
1543 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1544 throughout.
1545 (infrun_debug_printf): New function.
1546 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1547 (handle_jit_event): Likewise.
1548
b8fff44e
MW
15492020-08-21 Mark Wielaard <mark@klomp.org>
1550
1551 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1552
d19c3068
SM
15532020-08-22 Simon Marchi <simon.marchi@efficios.com>
1554
1555 * frame.c (enum class frame_id_status): New.
1556 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1557 (fprintf_frame): Update.
1558 (compute_frame_id): Set frame id status to "computing" on entry.
1559 Set it back to "not_computed" on failure and to "computed" on
1560 success.
1561 (get_frame_id): Assert the frame id is not being computed.
1562 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1563 (create_new_frame): Likewise.
1564 (frame_cleanup_after_sniffer): Update assert.
1565
b70e516e
SM
15662020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1567
1568 * regcache.c (pid_ptid_regcache_map): New type.
1569 (target_ptid_regcache_map): Remove.
1570 (target_pid_ptid_regcache_map): New type.
1571 (regcaches): Change type to target_pid_ptid_regcache_map.
1572 (get_thread_arch_aspace_regcache): Update.
1573 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1574 case.
1575 (regcaches_size): Update.
1576 (regcache_count): Update.
1577 (registers_changed_ptid_target_pid_test): New.
1578 (_initialize_regcache): Register new test.
1579
cdd9148a
SM
15802020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1581
1582 * regcache.c (regcache_count): New.
1583 (struct regcache_test_data): New.
1584 (regcache_test_data_up): New.
1585 (populate_regcaches_for_test): New.
1586 (regcaches_test): Remove.
1587 (get_thread_arch_aspace_regcache_test): New.
1588 (registers_changed_ptid_all_test): New.
1589 (registers_changed_ptid_target_test): New.
1590 (registers_changed_ptid_target_ptid_test): New.
1591 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1592 (_initialize_regcache): Register new tests.
1593
dd125343
SM
15942020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1595
1596 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1597 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1598 gdbarch and aspace parameter. Use current inferior's aspace.
1599 Validate regcache's arch value.
1600 (regcaches_test): Update.
1601
3ee93972
SM
16022020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1603
1604 * regcache.c (regcaches_test): Call registers_changed.
1605
33bf4c5c
TBA
16062020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1607
1608 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1609
c2fd7fae
AKS
16102020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1611
1612 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1613 to find the end of prologue for flang compiled binaries.
1614 * arm-tdep.c (arm_skip_prologue): Likewise.
1615 * i386-tdep.c (i386_skip_prologue): Likewise.
1616 * producer.c (producer_is_llvm): New function.
1617 (producer_parsing_tests): Added new tests for clang/flang.
1618 * producer.h (producer_is_llvm): New declaration.
1619
9327494e
SM
16202020-08-18 Simon Marchi <simon.marchi@efficios.com>
1621
1622 * linux-nat.c (linux_nat_debug_printf): New function.
1623 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1624
d138725a
AM
16252020-08-18 Aaron Merey <amerey@redhat.com>
1626
1627 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1628 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1629 (CLIBS): Add DEBUGINFOD_LIBS.
1630
f9b11e6b
ST
16312020-08-17 Sergei Trofimovich <siarheit@google.com>
1632
1633 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1634 'gdbarch_num_regs'.
1635
3ae7ab99
TT
16362020-08-17 Tom Tromey <tromey@adacore.com>
1637
1638 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1639 ada_get_decoded_value returns NULL.
1640
b017825f
TT
16412020-08-17 Tom Tromey <tromey@adacore.com>
1642
1643 * python/py-inferior.c (infpy_search_memory): Use
1644 gdb_py_object_from_ulongest.
1645 * python/py-infevents.c (create_inferior_call_event_object)
1646 (create_memory_changed_event_object): Use
1647 gdb_py_object_from_ulongest.
1648 * python/py-linetable.c (ltpy_entry_get_pc): Use
1649 gdb_py_object_from_ulongest.
1650
7635cf79
SM
16512020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1652
1653 * loc.c (class symbol_needs_eval_context): Fix indentation.
1654
f54be24b
SM
16552020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1656
1657 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1658 bool.
1659
53d5a2a5
TV
16602020-08-17 Tom de Vries <tdevries@suse.de>
1661
1662 PR gdb/26393
1663 * gdbtypes.c (dump_dynamic_prop): New function.
1664 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1665
547ce8f0
TV
16662020-08-15 Tom de Vries <tdevries@suse.de>
1667
1668 PR backtrace/26390
1669 * stack.c (print_frame_args): Temporarily set the selected
1670 frame to FRAME while printing the frame's arguments.
1671
6ea815e7
PFC
16722020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1673
1674 PR breakpoints/26385
1675 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1676 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1677
6e562fa3
PFC
16782020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1679
1680 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1681 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1682 and >= to check return value instead of == -1 and != -1.
1683
d369b608
SM
16842020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1685
1686 * utils.h (class gdb_argv) <as_array_view>: New method.
1687 * utils.c (gdb_argv_as_array_view_test): New.
1688 (_initialize_utils): Register selftest.
1689 * maint.c (maintenance_selftest): Use the new method.
1690
b31488a3
KR
16912020-08-13 Kamil Rytarowski <n54@gmx.com>
1692
1693 * target.h (supports_dumpcore, dumpcore): New
1694 function declarations.
1695 * target.c (supports_dumpcore, dumpcore): New
1696 functions.
1697 * target-delegates.c: Rebuild.
1698 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1699 and target_dumpcore ().
1700
002a3166
AM
17012020-08-13 Aaron Merey <amerey@redhat.com>
1702
1703 * debuginfod-support.c: Replace global variables with user_data.
1704
ece5bc8a
SM
17052020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1706
1707 * maint.c (maintenance_selftest): Split args and pass array_view
1708 to run_tests.
1709
6d8a0a5e
LM
17102020-08-12 Luis Machado <luis.machado@linaro.org>
1711
1712 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1713 type's length.
1714 Use %s and pulongest to print the length.
1715
7cf663a9
PA
17162020-08-12 Pedro Alves <palves@redhat.com>
1717
1718 * NEWS: Move "Multi-target debugging support" item to the
1719 "Changes since GDB 9" section.
1720
27c7b875
PA
17212020-08-12 Pedro Alves <palves@redhat.com>
1722
1723 PR gdb/26336
1724 * progspace.c (program_space::remove_objfile): Invalidate the
1725 frame cache.
1726
1796a2a1
TV
17272020-08-11 Tom de Vries <tdevries@suse.de>
1728
1729 * MAINTAINERS: Mark ms1 as deleted.
1730
f8e3fe0d
LM
17312020-08-10 Luis Machado <luis.machado@linaro.org>
1732
1733 PR gdb/26310
1734
1735 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1736 act accordingly.
1737 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1738 movz/str/stur/stp skipping behavior.
1739
cc308722
LM
17402020-08-10 Luis Machado <luis.machado@linaro.org>
1741
1742 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1743 struct user_sve_header instead of struct sve_context.
1744
041d9819
SM
17452020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1746
1747 * read.h (dwarf2_fetch_die_loc_sect_off,
1748 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1749 `void *` parameter with function_view.
1750 * read.c (dwarf2_fetch_die_loc_sect_off,
1751 dwarf2_fetch_die_loc_cu_off): Likewise.
1752 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1753 (per_cu_dwarf_call): Adjust.
1754 (get_frame_address_in_block_wrapper): Remove.
1755 (indirect_synthetic_pointer): Adjust.
1756 (get_ax_pc): Remove.
1757 (dwarf2_compile_expr_to_ax): Adjust.
1758
38f8aa06
TV
17592020-08-08 Tom de Vries <tdevries@suse.de>
1760
1761 PR build/26344
1762 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1763 constructor.
1764 * regcache.c (get_thread_arch_aspace_regcache): Same.
1765
a52b3ae2
TT
17662020-08-07 Tom Tromey <tromey@adacore.com>
1767
1768 * ravenscar-thread.c
1769 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1770 New method.
1771 (ravenscar_thread_target::wait): Check
1772 runtime_initialized.
1773 (ravenscar_thread_target::prepare_to_store)
1774 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1775 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1776 (ravenscar_thread_target::stopped_by_watchpoint)
1777 (ravenscar_thread_target::stopped_data_address)
1778 (ravenscar_thread_target::core_of_thread): Use
1779 scoped_restore_current_thread and
1780 set_base_thread_from_ravenscar_task.
1781
0e29517d
TT
17822020-08-07 Tom Tromey <tromey@adacore.com>
1783
1784 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1785
592f9bd7
TT
17862020-08-07 Tom Tromey <tromey@adacore.com>
1787
1788 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1789 update_inferior_ptid before update_thread_list.
1790 (temporarily_change_regcache_ptid): New class.
1791 (ravenscar_thread_target::fetch_registers)
1792 (ravenscar_thread_target::store_registers)
1793 (ravenscar_thread_target::prepare_to_store): Use base thread when
1794 forwarding operation.
1795
39e2018a
TT
17962020-08-07 Tom Tromey <tromey@adacore.com>
1797
1798 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1799 "is_pid" case.
1800
2080266b
TT
18012020-08-07 Tom Tromey <tromey@adacore.com>
1802
1803 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1804 New methods.
1805 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1806 first.
1807 (ravenscar_thread_target::add_thread): Rename from
1808 ravenscar_add_thread.
1809 (ravenscar_thread_target::update_thread_list): Use a lambda.
1810 (ravenscar_thread_target::xfer_partial): New method.
1811
78c02f21
TT
18122020-08-07 Tom Tromey <tromey@adacore.com>
1813
1814 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1815 gdb::function_view.
1816 (iterate_over_live_ada_tasks): Change type of argument.
1817 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1818 of argument.
1819
d5d833af
TT
18202020-08-07 Tom Tromey <tromey@adacore.com>
1821
1822 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1823 Remove.
1824 (ravenscar_thread_target::extra_thread_info): Remove.
1825 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1826 defer to target beneath for non-Ravenscar threads.
1827
a8ac85bb
TT
18282020-08-07 Tom Tromey <tromey@adacore.com>
1829
1830 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1831 get_base_thread_from_ravenscar_task>: Now methods.
1832 <m_cpu_map>: New member.
1833 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1834 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1835 (ravenscar_thread_target::task_is_currently_active): Update.
1836 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1837 Now a method.
1838 (ravenscar_thread_target::add_active_thread): Put initial thread
1839 into the m_cpu_map.
1840
550ab58d
TT
18412020-08-07 Tom Tromey <tromey@adacore.com>
1842
1843 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1844 event_ptid.
1845
e9546579
TT
18462020-08-07 Tom Tromey <tromey@adacore.com>
1847
1848 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1849 runtime_initialized.
1850
3d4470e5
TT
18512020-08-07 Tom Tromey <tromey@adacore.com>
1852
1853 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1854 add_active_thread.
1855 (ravenscar_thread_target::add_active_thread): Now public.
1856 (ravenscar_inferior_created): Call add_active_thread after pushing
1857 the target.
1858
888bdb2b
SM
18592020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1860
1861 * regcache.c (ptid_regcache_map): New type.
1862 (target_ptid_regcache_map): New type.
1863 (regcaches): Change type to target_ptid_regcache_map.
1864 (get_thread_arch_aspace_regcache): Update to regcaches' new
1865 type.
1866 (regcache_thread_ptid_changed): Likewise.
1867 (registers_changed_ptid): Likewise.
1868 (regcaches_size): Likewise.
1869 (regcaches_test): Update.
1870 (regcache_thread_ptid_changed): Update.
1871 * regcache.h (regcache_up): New type.
1872 * gdbsupport/ptid.h (hash_ptid): New struct.
1873
b161a60d
SM
18742020-08-07 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * observable.h (thread_ptid_changed): Add parameter
1877 `process_stratum_target *`.
1878 * infrun.c (infrun_thread_ptid_changed): Add parameter
1879 `process_stratum_target *` and use it.
1880 (selftests): New namespace.
1881 (infrun_thread_ptid_changed): New function.
1882 (_initialize_infrun): Register selftest.
1883 * regcache.c (regcache_thread_ptid_changed): Add parameter
1884 `process_stratum_target *` and use it.
1885 (regcache_thread_ptid_changed): New function.
1886 (_initialize_regcache): Register selftest.
1887 * thread.c (thread_change_ptid): Pass target to
1888 thread_ptid_changed observable.
1889
d2854d8d
CT
18902020-08-06 Caroline Tice <cmtice@google.com>
1891
fe4c3d43
SM
1892 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1893 (struct dwp_sections): Update field comments. Add loclists and
1894 rnglists fields.
1895 (struct virtual_v2_dwo_sections): Rename struct to
1896 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1897 size & offset fields for loclists and rnglists.
1898 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1899 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1900 skipping dummy type units.
1901 (create_dwp_hash_table): Update the large comment above the function to
1902 discuss Version 5 DWP files as well, with references. Update all the
1903 version checks in the function to check for version 5 as well. Add new
1904 section at the end to create dwp hash table for version 5.
1905 (create_dwp_v2_section): Rename function to
1906 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1907 Add V5 to error message text.
1908 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1909 into calls to create_dwp_v2_or_v5_section.
1910 (create_dwo_unit_in_dwp_v5): New function.
1911 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1912 check for version2; add else clause to handle version 5.
1913 (open_and_init_dwo_file): Add code to check dwarf version & only call
1914 create_debug_types_hash_table (with sections.types) if version is not 5;
1915 else call create_debug_type_hash_table, with sections.info.
1916 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1917 version 5.
1918 (dwarf2_locate_v5_dwp_sections): New function.
1919 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1920 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1921
159ed7d9
SM
19222020-08-06 Simon Marchi <simon.marchi@efficios.com>
1923
1924 * regcache.h (class regcache): Remove friend
1925 registers_changed_ptid.
1926 <regcache_thread_ptid_changed>: Remove.
1927 <regcaches>: Remove.
1928 * regcache.c (regcache::regcaches): Rename to...
1929 (regcaches): ... this. Make static.
1930 (get_thread_arch_aspace_regcache): Update.
1931 (regcache::regcache_thread_ptid_changed): Rename to...
1932 (regcache_thread_ptid_changed): ... this. Update.
1933 (class regcache_access): Remove.
1934 (regcaches_test): Update.
1935 (_initialize_regcache): Update.
1936 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1937 <forward_list>.
1938
174981ae
SM
19392020-08-06 Simon Marchi <simon.marchi@efficios.com>
1940
1941 * regcache.h (class regcache) <current_regcache>: Rename to...
1942 <regcaches>: ... this. Move doc here.
1943 * regcache.c (regcache::current_regcache) Rename to...
1944 (regcache::regcaches): ... this. Move doc to header.
1945 (get_thread_arch_aspace_regcache): Update.
1946 (regcache::regcache_thread_ptid_changed): Update.
1947 (registers_changed_ptid): Update.
1948 (class regcache_access) <current_regcache_size>: Rename to...
1949 <regcaches_size>: ... this.
1950 (current_regcache_test): Rename to...
1951 (regcaches_test): ... this.
1952 (_initialize_regcache): Update.
1953
ed908db6
VC
19542020-08-06 Victor Collod <vcollod@nvidia.com>
1955
1956 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1957
b5582ab7
KB
19582020-08-05 Kevin Buettner <kevinb@redhat.com>
1959
1960 * corelow.c (core_target::build_file_mappings): Don't output
1961 null pathname in warning.
1962
ea946b86
SM
19632020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1964
1965 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1966 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1967 gdb.dwarf2/dw2-single-line-discriminators.exp,
1968 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1969
57d02173
TT
19702020-08-05 Tom Tromey <tromey@adacore.com>
1971
1972 PR rust/26197:
1973 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1974 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1975 Fix off-by-one and type size errors in ordinary case.
1976
5555c86d
TV
19772020-08-05 Tom de Vries <tdevries@suse.de>
1978
1979 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1980 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1981
97916bfe
SM
19822020-08-04 Simon Marchi <simon.marchi@efficios.com>
1983
1984 * frame.h (frame_id_p): Return bool.
1985 (frame_id_artificial_p): Return bool.
1986 (frame_id_eq): Return bool.
1987 (has_stack_frames): Return bool.
1988 (get_selected_frame): Fix typo in comment.
1989 (get_frame_pc_if_available): Return bool.
1990 (get_frame_address_in_block_if_available): Return bool.
1991 (get_frame_func_if_available): Return bool.
1992 (read_frame_register_unsigned): Return bool.
1993 (get_frame_register_bytes): Return bool.
1994 (safe_frame_unwind_memory): Return bool.
1995 (deprecated_frame_register_read): Return bool.
1996 (frame_unwinder_is): Return bool.
1997 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1998 bool.
1999 <this_id::p>: Likewise.
2000 <prev_p>: Likewise.
2001 (frame_stash_add): Return bool.
2002 (get_frame_id): Use bool.
2003 (frame_id_build_special) Use bool.
2004 (frame_id_build_unavailable_stack): Use bool.
2005 (frame_id_build): Use bool.
2006 (frame_id_p): Return bool, use true/false instead of 1/0.
2007 (frame_id_artificial_p): Likewise.
2008 (frame_id_eq): Likewise.
2009 (frame_id_inner): Likewise.
2010 (get_frame_func_if_available): Likewise.
2011 (read_frame_register_unsigned): Likewise.
2012 (deprecated_frame_register_read): Likewise.
2013 (get_frame_register_bytes): Likewise.
2014 (has_stack_frames): Likewise.
2015 (inside_main_func): Likewise.
2016 (inside_entry_func): Likewise.
2017 (get_frame_pc_if_available): Likewise.
2018 (get_frame_address_in_block_if_available): Likewise.
2019 (frame_unwinder_is): Likewise.
2020 (safe_frame_unwind_memory): Likewise.
2021 (frame_unwind_arch): Likewise.
2022
fedfee88
SM
20232020-08-04 Simon Marchi <simon.marchi@efficios.com>
2024
2025 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2026 type to cached_copy_status.
2027 (fprintf_frame): Adjust.
2028 (get_frame_func_if_available): Adjust.
2029 (frame_cleanup_after_sniffer): Adjust.
2030
6cfa9b59
MW
20312020-08-04 Mark Wielaard <mark@klomp.org>
2032
2033 * MAINTAINERS (Write After Approval): Update email address.
2034
66d6346b
SM
20352020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2036
2037 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2038 dynamic_prop::const_val.
2039
8a6d5e35
SM
20402020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2041
2042 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2043 dynamic_prop::kind.
2044
51d6067d
SM
20452020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2046
2047 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2048
b26e2ae7
JM
20492020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2050
2051 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2052
39791af2
JM
20532020-08-04 Weimin Pan <weimin.pan@oracle.com>
2054 Jose E. Marchesi <jose.marchesi@oracle.com>
2055
2056 * configure.tgt: Add entry for bpf-*-*.
2057 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2058 (ALLDEPFILES): Add bpf-tdep.c.
2059 * bpf-tdep.c: New file.
2060 * MAINTAINERS: Add bpf target and maintainer.
2061 * NEWS: Mention the support for the new target.
2062
521894aa
TV
20632020-08-04 Tom de Vries <tdevries@suse.de>
2064
2065 PR symtab/23270
2066 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2067 Error.
2068
5d6356e9
JB
20692020-08-03 John Baldwin <jhb@FreeBSD.org>
2070
2071 * syscalls/freebsd.xml: Regenerate.
2072
0cf82b81
JB
20732020-08-03 John Baldwin <jhb@FreeBSD.org>
2074
2075 * syscalls/update-freebsd.sh: Fix usage and year range.
2076
8f34b746
TV
20772020-08-03 Tom de Vries <tdevries@suse.de>
2078
2079 PR symtab/26333
2080 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2081 DW_LNE_lo_user/DW_LNE_hi_user range.
2082
5e500d33
SM
20832020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2084
2085 PR ada/26318
2086 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2087 kind.
2088
78319c15
TBA
20892020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2090
2091 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2092
4c55e970
TBA
20932020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2094
2095 * breakpoint.c (set_breakpoint_condition): Update the condition
2096 expressions after checking that the input condition string parses
2097 successfully and does not contain junk at the end.
2098
1e620590
TBA
20992020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2100
2101 * breakpoint.c (set_breakpoint_condition): Update the
2102 condition string after parsing the new condition successfully.
2103
c8693053
RO
21042020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2105
2106 * proc-api.c (_STRUCTURED_PROC): Don't define.
2107 * proc-events.c: Likewise.
2108 * proc-flags.c: Likewise.
2109 * proc-why.c: Likewise.
2110 * procfs.c: Likewise.
2111
2112 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2113 * configure, config.in: Regenerate.
2114
5a99adb8
TV
21152020-07-30 Tom de Vries <tdevries@suse.de>
2116
2117 PR build/26320
2118 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2119 m_red/m_green/m_blue in a union.
2120
8ba83e91
TV
21212020-07-29 Tom de Vries <tdevries@suse.de>
2122
2123 PR tdep/26280
2124 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2125
f75a0693
AB
21262020-07-28 Tom Tromey <tromey@adacore.com>
2127
2128 PR symtab/26270:
2129 * symtab.h (find_pc_partial_function_sym): Declare.
2130 * cli/cli-cmds.c (disassemble_command): Use
2131 find_pc_partial_function_sym. Check asm_demangle.
2132 * blockframe.c (cache_pc_function_sym): New global.
2133 (cache_pc_function_name): Remove.
2134 (clear_pc_function_cache): Update.
2135 (find_pc_partial_function_sym): New function, from
2136 find_pc_partial_function.
2137 (find_pc_partial_function): Rewrite using
2138 find_pc_partial_function_sym.
2139
16f3242c
TT
21402020-07-28 Tom Tromey <tromey@adacore.com>
2141
2142 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2143 help. Add usage.
2144
4888741a
TT
21452020-07-28 Tom Tromey <tromey@adacore.com>
2146
2147 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2148 <DW_OP_GNU_variable_value>: Cast to address type.
2149
4d46f402
KR
21502020-07-28 Kamil Rytarowski <n54@gmx.com>
2151
2152 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2153 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2154 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2155 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2156 (nbsd_get_siginfo_type): New.
2157 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2158 (_initialize_nbsd_tdep): New.
2159
d70f978b
L
21602020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2161
2162 PR binutils/26301
2163 * configure: Regenerated.
2164
377170fa
L
21652020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2166
2167 PR binutils/26301
2168 * configure: Regenerated.
2169
43d5901d
AB
21702020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2171
2172 * python/py-frame.c: Remove 'user-regs.h' include.
2173 (frapy_read_register): Rewrite to make use of
2174 gdbpy_parse_register_id.
2175 * python/py-registers.c (gdbpy_parse_register_id): New function,
2176 moved here from python/py-unwind.c. Updated the return type, and
2177 also accepts register descriptor objects.
2178 * python/py-unwind.c: Remove 'user-regs.h' include.
2179 (pyuw_parse_register_id): Moved to python/py-registers.c.
2180 (unwind_infopy_add_saved_register): Update to use
2181 gdbpy_parse_register_id.
2182 (pending_framepy_read_register): Likewise.
2183 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2184
14fa8fb3
AB
21852020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * python/py-registers.c: Add 'user-regs.h' include.
2188 (register_descriptor_iter_find): New function.
2189 (register_descriptor_iterator_object_methods): New static global
2190 methods array.
2191 (register_descriptor_iterator_object_type): Add pointer to methods
2192 array.
2193
ddce1758
JB
21942020-07-27 John Baldwin <jhb@FreeBSD.org>
2195
2196 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2197 for all architectures on FreeBSD 11.3 and later.
2198
a4089f52
TT
21992020-07-27 Tom Tromey <tromey@adacore.com>
2200
2201 * gcore.h (load_corefile): Don't declare.
2202
95420d30
TV
22032020-07-27 Tom de Vries <tdevries@suse.de>
2204
2205 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2206 * config.in: Regenerate.
2207 * configure: Regenerate.
2208
05a6b8c2
EZ
22092020-07-26 Eli Zaretskii <eliz@gnu.org>
2210
2211 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2212 ws2tcpip.h. When checking whether socklen_t type is defined, use
2213 ws2tcpip.h if it is available and sys/socket.h isn't.
2214 * configure: Regenerate.
2215 * config.in: Regenerate.
2216
e79eb02f
AB
22172020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2218
2219 PR fortran/23051
2220 PR fortran/26139
2221 * valops.c (value_ind): Pass address to
2222 readjust_indirect_value_type.
2223 * value.c (readjust_indirect_value_type): Make parameter
2224 non-const, and add extra address parameter. Resolve original type
2225 before using it.
2226 * value.h (readjust_indirect_value_type): Update function
2227 signature and comment.
2228
876518dd
TV
22292020-07-25 Tom de Vries <tdevries@suse.de>
2230
2231 PR symtab/26243
2232 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2233 entries.
2234
f6720b1c
AM
22352020-07-24 Aaron Merey <amerey@redhat.com>
2236
2237 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2238 * configure: Rebuild.
2239
513487e1
KB
22402020-07-23 Kevin Buettner <kevinb@redhat.com>
2241
2242 PR corefiles/26294
2243 * corelow.c (_initialize_corelow): Add period to help text
2244 for "maintenance print core-file-backed-mappings".
2245
e7bc9db8
PA
22462020-07-23 Pedro Alves <pedro@palves.net>
2247
2248 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2249 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2250 meanwhile.
2251 * frame.c (frame_cache_generation, get_frame_cache_generation):
2252 New.
2253 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2254 (get_prev_frame_if_no_cycle): On exception, don't touch
2255 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2256 * frame.h (get_frame_cache_generation): Declare.
2257
90fcc466
TV
22582020-07-23 Tom de Vries <tdevries@suse.de>
2259
2260 PR tui/26282
2261 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2262 New default constructor.
2263
78344df7
AB
22642020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2265
2266 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2267 exclude non-statement entries.
2268
b089853a
KB
22692020-07-22 Kevin Buettner <kevinb@redhat.com>
2270
2271 * NEWS (New commands): Mention new command
2272 "maintenance print core-file-backed-mappings".
2273
09c2f5d4
KB
22742020-07-22 Kevin Buettner <kevinb@redhat.com>
2275
2276 * corelow.c (gdbcmd.h): Include.
2277 (core_target::info_proc_mappings): New method.
2278 (get_current_core_target): New function.
2279 (maintenance_print_core_file_backed_mappings): New function.
2280 (_initialize_corelow): Add core-file-backed-mappings to
2281 "maint print" commands.
2282
9c5ec5c2 22832020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2284
9c5ec5c2
KB
2285 * linux-tdep.c (dump_note_entry_p): New function.
2286 (linux_dump_mapping_p_ftype): New typedef.
2287 (linux_find_memory_regions_full): Add new parameter,
2288 should_dump_mapping_p.
2289 (linux_find_memory_regions): Adjust call to
2290 linux_find_memory_regions_full.
2291 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2292 call to linux_find_memory_regions_full.
2293
db082f59
KB
22942020-07-22 Kevin Buettner <kevinb@redhat.com>
2295
2296 * corelow.c (solist.h, unordered_map): Include.
2297 (class core_target): Add field m_core_file_mappings and
2298 method build_file_mappings.
2299 (core_target::core_target): Call build_file_mappings.
2300 (core_target::~core_target): Free memory associated with
2301 m_core_file_mappings.
2302 (core_target::build_file_mappings): New method.
2303 (core_target::xfer_partial): Use m_core_file_mappings
2304 for memory transfers.
2305 * linux-tdep.c (linux_read_core_file_mappings): New
2306 function.
2307 (linux_core_info_proc_mappings): Rewrite to use
2308 linux_read_core_file_mappings.
2309 (linux_init_abi): Register linux_read_core_file_mappings.
2310
7e183d27
KB
23112020-07-22 Kevin Buettner <kevinb@redhat.com>
2312
2313 * arch-utils.c (default_read_core_file_mappings): New function.
2314 * arch-utils.c (default_read_core_file_mappings): Declare.
2315 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2316 * gdbarch.h, gdbarch.c: Regenerate.
2317
2735d421
KB
23182020-07-22 Kevin Buettner <kevinb@redhat.com>
2319
2320 PR corefiles/25631
2321 * corelow.c (core_target:xfer_partial): Revise
2322 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2323 case after first checking the stratum beneath the core
2324 target.
2325 (has_all_memory): Return true.
2326 * target.c (raw_memory_xfer_partial): Revise comment
2327 regarding use of has_all_memory.
2328
e56cb451
KB
23292020-07-22 Kevin Buettner <kevinb@redhat.com>
2330
2331 * exec.h (section_table_xfer_memory): Revise declaration,
2332 replacing section name parameter with an optional callback
2333 predicate.
2334 * exec.c (section_table_xfer_memory): Likewise.
2335 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2336 of section_table_xfer_memory.
2337
32fa152e
TT
23382020-07-22 Tom Tromey <tromey@adacore.com>
2339
2340 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2341 lookup_symbol_search_name.
2342
a67a1c41
AB
23432020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2344
2345 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2346 redundant local variable.
2347 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2348 reference, not pointer, update code accordingly.
2349
a7b4ff4f
SM
23502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2351 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2352
2353 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2354 * jit.c (jit_breakpoint_re_set_internal): Use the
2355 `skip_jit_symbol_lookup` field.
2356
2340e834
SM
23572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2358 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2359
2360 * jit.c (jit_read_descriptor): Define the descriptor address once,
2361 use twice.
2362 (jit_breakpoint_deleted): Move the declaration of the loop variable
2363 `iter` into the loop header.
2364 (jit_breakpoint_re_set_internal): Move the declaration of the local
2365 variable `objf_data` to the first point of definition.
2366 (jit_event_handler): Move the declaration of local variables
2367 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2368 Rename `objf` to `jited`.
2369
c1072906
SM
23702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2371
2372 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2373 Remove.
2374 * jit.c (get_jiter_objfile_data): Update.
2375
c8474dc3
TBA
23762020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2377 Simon Marchi <simon.marchi@polymtl.ca>
2378
2379 * jit.c (struct jit_program_space_data): Remove.
2380 (jit_program_space_key): Remove.
2381 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2382 stuff.
2383 (get_jit_program_space_data): Remove.
2384 (jit_breakpoint_deleted): Iterate on all of the program space's
2385 objfiles.
2386 (jit_inferior_init): Likewise.
2387 (jit_breakpoint_re_set_internal): Likewise. Also change return
2388 type to void.
2389 (jit_breakpoint_re_set): Pass current_program_space to
2390 jit_breakpoint_re_set_internal.
2391
77208eb7
SM
23922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2393
2394 * jit.h (struct jiter_objfile_data) <cached_code_address,
2395 jit_breakpoint>: Move to here from ...
2396 * jit.c (jit_program_space_data): ... here.
2397 (jiter_objfile_data::~jiter_objfile_data): Update.
2398 (jit_breakpoint_deleted): Update.
2399 (jit_breakpoint_re_set_internal): Update.
2400
8c1c720f
SM
24012020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2402
2403 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2404 checks.
2405 (jit_read_descriptor): Remove NULL check.
2406 (jit_event_handler): Add an assertion.
2407
0e74a041
SM
24082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2409
2410 * jit.h (struct jit_objfile_data): Split into...
2411 (struct jiter_objfile_data): ... this ...
2412 (struct jited_objfile_data): ... and this.
2413 * objfiles.h (struct objfile) <jit_data>: Remove.
2414 <jiter_data, jited_data>: New fields.
2415 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2416 (jiter_objfile_data::~jiter_objfile_data): ... this.
2417 (get_jit_objfile_data): Rename to ...
2418 (get_jiter_objfile_data): ... this.
2419 (add_objfile_entry): Update.
2420 (jit_read_descriptor): Use get_jiter_objfile_data.
2421 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2422 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2423 (jit_inferior_exit_hook): Use objfile's jited_data field.
2424
238b5c9f
SM
24252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2426
2427 * jit.h: Forward-declare `struct minimal_symbol`.
2428 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2429 constructor, destructor, and an objfile* field.
2430 * jit.c (jit_objfile_data): Remove.
2431 (struct jit_objfile_data): Migrate from here to jit.h.
2432 (jit_objfile_data::~jit_objfile_data): New destructor
2433 implementation with code moved from free_objfile_data.
2434 (free_objfile_data): Delete.
2435 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2436 (jit_find_objf_with_entry_addr): Ditto.
2437 (jit_inferior_exit_hook): Ditto.
2438 (_initialize_jit): Remove the call to
2439 register_objfile_data_with_cleanup.
2440 * objfiles.h (struct objfile) <jit_data>: New field.
2441
fe053b9e
TBA
24422020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2443
2444 * jit.h: Forward-declare `struct objfile`.
2445 (jit_event_handler): Add a second parameter, the JITer objfile.
2446 * jit.c (jit_read_descriptor): Change the signature to take the
2447 JITer objfile as an argument instead of the jit_program_space_data.
2448 (jit_inferior_init): Update the call to jit_read_descriptor.
2449 (jit_event_handler): Use the new JITer objfile argument when calling
2450 jit_read_descriptor.
2451 * breakpoint.c (handle_jit_event): Update the call to
2452 jit_event_handler to pass the JITer objfile.
2453
4cec0c66
JB
24542020-07-21 John Baldwin <jhb@FreeBSD.org>
2455
2456 * gdbarch.c: Regenerate.
2457 * gdbarch.h: Regenerate.
2458 * gdbarch.sh (handle_segmentation_fault): Remove method.
2459 * infrun.c (handle_segmentation_fault): Remove.
2460 (print_signal_received_reason): Remove call to
2461 handle_segmentation_fault.
2462
0e42f66a
JB
24632020-07-21 John Baldwin <jhb@FreeBSD.org>
2464
2465 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2466 Rename to sparc64_linux_report_signal_info and add siggnal
2467 argument.
2468 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2469 instead of sparc64_linux_handle_segmentation_fault.
2470
77bdfeb2
JB
24712020-07-21 John Baldwin <jhb@FreeBSD.org>
2472
2473 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2474 i386_linux_report_signal_info instead of
2475 i386_linux_handle_segmentation_fault.
2476 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2477 to i386_linux_report_signal_info and add siggnal argument.
2478 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2479 of i386_linux_handle_segmentation_fault.
2480 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2481 to i386_linux_report_signal_info and add siggnal argument.
2482
ad97bfc5
JB
24832020-07-21 John Baldwin <jhb@FreeBSD.org>
2484
2485 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2486 hook if present.
2487
272bb05c
JB
24882020-07-21 John Baldwin <jhb@FreeBSD.org>
2489
2490 * gdbarch.c: Regenerate.
2491 * gdbarch.h: Regenerate.
2492 * gdbarch.sh (report_signal_info): New method.
2493 * infrun.c (print_signal_received_reason): Invoke gdbarch
2494 report_signal_info hook if present.
2495
baf8791e
AB
24962020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2497
2498 * python/py-registers.c : Add 'unordered_map' include.
2499 (gdbpy_new_reggroup): Renamed to...
2500 (gdbpy_get_reggroup): ...this. Update to only create register
2501 group descriptors when needed.
2502 (gdbpy_reggroup_iter_next): Update.
2503
f7306dac
AB
25042020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2505
2506 * python/py-registers.c (gdbpy_register_object_data): New static
2507 global.
2508 (gdbpy_register_object_data_init): New function.
2509 (gdbpy_new_register_descriptor): Renamed to...
2510 (gdbpy_get_register_descriptor): ...this, and update to reuse
2511 existing register descriptors where possible.
2512 (gdbpy_register_descriptor_iter_next): Update.
2513 (gdbpy_initialize_registers): Register new gdbarch data.
2514
05c309a8
SM
25152020-07-21 Simon Marchi <simon.marchi@efficios.com>
2516
2517 * linux-nat.c (stopped_pids): Make static.
2518
d1fd641e
SM
25192020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2520
2521 PR ada/26235
2522 * gdbtypes.c (ada_discrete_type_low_bound,
2523 ada_discrete_type_high_bound): Handle undefined bounds.
2524
1de14d77
KR
25252020-07-21 Kamil Rytarowski <n54@gmx.com>
2526
2527 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2528 declaration.
2529 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2530 function.
2531
ed810cc7
JB
25322020-07-20 John Baldwin <jhb@FreeBSD.org>
2533
2534 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2535 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2536 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2537 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2538 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2539 method.
2540
ae5369e7
LC
25412020-07-20 Ludovic Courtès <ludo@gnu.org>
2542
2543 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2544 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2545 which are deprecated in Guile 3.0.
2546 * configure.ac (try_guile_versions): Add "guile-3.0".
2547 * configure (try_guile_versions): Regenerate.
2548 * NEWS: Update entry.
2549
68cf161c
LC
25502020-07-20 Ludovic Courtès <ludo@gnu.org>
2551 Doug Evans <dje@google.com>
2552
2553 PR gdb/21104
2554 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2555 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2556 USING_GUILE_BEFORE_2_2.
2557 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2558 Change type to 'scm_t_port_type *'.
2559 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2560 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2561 parameter and honor it. Update callers.
2562 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2563 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2564 functions.
2565 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2566 USING_GUILE_BEFORE_2_2.
2567 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2568 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2569 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2570 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2571 and 'SCM_PORT_TYPE'.
2572 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2573 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2574 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2575 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2576 [!USING_GUILE_BEFORE_2_2]: New functions.
2577 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2578 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2579 'gdbscm_memory_port_read'.
2580 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2581 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2582 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2583 function.
2584 (ioscm_init_memory_port): Remove.
2585 (ioscm_init_memory_port_stream): New function
2586 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2587 function.
2588 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2589 Return scm_from_uint (0).
2590 (gdbscm_set_memory_port_read_buffer_size_x)
2591 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2592 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2593 Return scm_from_uint (0).
2594 (gdbscm_set_memory_port_write_buffer_size_x)
2595 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2596 * configure.ac (try_guile_versions): Add "guile-2.2".
2597 * configure: Regenerate.
2598 * NEWS: Add entry.
2599
aee91db3
TT
26002020-07-18 Tom Tromey <tom@tromey.com>
2601
2602 * linux-nat.c (linux_multi_process): Remove.
2603 (linux_nat_target::supports_multi_process): Return true.
2604
0e267416
AB
26052020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2606
2607 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2608 (riscv_lookup_target_description): Return pointer out of
2609 unique_ptr.
2610 * target-descriptions.c (allocate_target_description): Add
2611 comment.
2612 (target_desc_deleter::operator()): Likewise.
2613 * target-descriptions.h (struct target_desc_deleter): Moved to
2614 gdbsupport/tdesc.h.
2615 (target_desc_up): Likewise.
2616
f80c8ec4
TT
26172020-07-17 Tom Tromey <tromey@adacore.com>
2618
2619 * linux-nat.c (linux_nat_target::supports_non_stop)
2620 (linux_nat_target::always_non_stop_p): Use "true".
2621 (linux_nat_target::supports_disable_randomization): Use "true" and
2622 "false".
2623
d0ce17d8
CT
26242020-07-16 Caroline Tice <cmtice@google.com>
2625
2626 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2627 (RNGLIST_HEADER_SIZE64): New constant definition.
2628 (struct dwop_section_names): Add rnglists_dwo.
2629 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2630 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2631 (struct dwo_sections): Add rnglists field.
2632 (read_attribut_reprocess): Add tag parameter.
2633 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2634 (cu_debug_rnglists_section): New function (decl & definition).
2635 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2636 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2637 die whose range is being checked; get rnglist section from
2638 cu_debug_rnglists_section, to get from either objfile or dwo file as
2639 appropriate. Add cases for DW_RLE_base_addressx,
2640 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2641 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2642 test inside if-condition and updating complaint message.
2643 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2644 dwarf2_rnglists_process.
2645 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2646 dwarf2_ranges_process.
2647 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2648 need_ranges_base and update comment appropriately. Also pass die tag
2649 to dwarf2_ranges_read.
2650 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2651 need_ranges_base and update comment appropriately. Also pass die tag
2652 to dwarf2_ranges_process.
2653 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2654 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2655 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2656 need_ranges_base and update comment appropriately. Also pass die tag
2657 to read_attribute_reprocess and dwarf2_ranges_read.
2658 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2659 and update function comment appropriately.
2660 (read_loclist_index): Call read_loclists_rnglists_header instead of
2661 read_loclist_header.
2662 (read_rnglist_index): New function.
2663 (read_attribute_reprocess): Add tag parameter. Add code for
2664 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2665 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2666
3dcc261c
AB
26672020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2668
2669 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2670 being resolved.
2671
ccb9eba6
AB
26722020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2673
2674 * arch-utils.c (show_architecture): Update formatting of messages.
2675
cf88be68
SM
26762020-07-12 Simon Marchi <simon.marchi@efficios.com>
2677
2678 * gdbtypes.h (struct type) <bounds>: Handle array and string
2679 types.
2680 * ada-lang.c (assign_aggregate): Use type::bounds on
2681 array/string type.
2682 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2683 * c-varobj.c (c_number_of_children): Likewise.
2684 (c_describe_child): Likewise.
2685 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2686 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2687 (f_type_print_base): Likewise.
2688 * f-valprint.c (f77_array_offset_tbl): Likewise.
2689 (f77_get_upperbound): Likewise.
2690 (f77_print_array_1): Likewise.
2691 * guile/scm-type.c (gdbscm_type_range): Likewise.
2692 * m2-typeprint.c (m2_array): Likewise.
2693 (m2_is_long_set_of_type): Likewise.
2694 * m2-valprint.c (get_long_set_bounds): Likewise.
2695 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2696 * python/py-type.c (typy_range): Likewise.
2697 * rust-lang.c (rust_internal_print_type): Likewise.
2698 * type-stack.c (type_stack::follow_types): Likewise.
2699 * valarith.c (value_subscripted_rvalue): Likewise.
2700 * valops.c (value_cast): Likewise.
2701
509971ae
SM
27022020-07-12 Simon Marchi <simon.marchi@efficios.com>
2703
2704 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2705 callers to use the equivalent accessor methods.
2706
107406b7
SM
27072020-07-12 Simon Marchi <simon.marchi@efficios.com>
2708
2709 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2710 (struct type) <bit_stride>: New method.
2711 (TYPE_BIT_STRIDE): Remove.
2712 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2713
bb789949
SM
27142020-07-12 Simon Marchi <simon.marchi@efficios.com>
2715
2716 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2717 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2718 callers to use the equivalent accessor methods instead.
2719
39498edb
SM
27202020-07-12 Simon Marchi <simon.marchi@efficios.com>
2721
2722 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2723 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2724 callers to use the equivalent accessor methods instead.
2725
3b606f38
SM
27262020-07-12 Simon Marchi <simon.marchi@efficios.com>
2727
2728 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2729 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2730 to use dynamic_prop::kind.
2731
064d9cb9
SM
27322020-07-12 Simon Marchi <simon.marchi@efficios.com>
2733
2734 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2735 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2736 to get the bound property's kind and check against
2737 PROP_UNDEFINED.
2738
5537ddd0
SM
27392020-07-12 Simon Marchi <simon.marchi@efficios.com>
2740
2741 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2742 all callers to use type::range_bounds followed by
2743 dynamic_prop::{low,high}.
2744
8c2e4e06
SM
27452020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2746
2747 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2748 const_val, set_const_val, baton, set_locexpr, set_loclist,
2749 set_addr_offset, variant_parts, set_variant_parts,
2750 original_type, set_original_type>: New methods.
2751 <kind>: Rename to...
2752 <m_kind>: ... this. Update all users to use the new methods
2753 instead.
2754 <data>: Rename to...
2755 <m_data>: ... this. Update all users to use the new methods
2756 instead.
2757
7c6f2712
SM
27582020-07-12 Simon Marchi <simon.marchi@efficios.com>
2759
2760 * gdbtypes.c (get_discrete_bounds): Return failure if
2761 the range type's bounds are not both defined and constant
2762 values.
2763 (get_array_bounds): Update comment. Remove undefined bound check.
2764
599088e3
SM
27652020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2766
2767 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2768 the type::bounds method directly.
2769
c4dfcb36
SM
27702020-07-12 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2773 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2774 are used to set the range type's bounds to use set_bounds.
2775
0a278aa7
PW
27762020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2777
2778 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2779
cce20f10
PA
27802020-07-10 Pedro Alves <pedro@palves.net>
2781
2782 * gdbthread.h (inferior_ref): Define.
2783 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2784 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2785 * thread.c
2786 (scoped_restore_current_thread::restore):
2787 Adjust to gdb::ref_ptr.
2788 (scoped_restore_current_thread::~scoped_restore_current_thread):
2789 Remove manual decref handling.
2790 (scoped_restore_current_thread::scoped_restore_current_thread):
2791 Adjust to use
2792 inferior_ref::new_reference/thread_info_ref::new_reference.
2793 Incref the thread before calling get_frame_id instead of after.
2794 Let TARGET_CLOSE_ERROR propagate.
2795
6d7aa592
PA
27962020-07-10 Pedro Alves <pedro@palves.net>
2797
2798 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2799 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2800 NOT_AVAILABLE_ERROR.
2801 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2802 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2803
b3e3a4c1
SM
28042020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2805 Pedro Alves <pedro@palves.net>
2806
2807 PR gdb/26199
2808 * infrun.c (threads_are_resumed_pending_p): Delete.
2809 (do_target_wait): Remove threads_are_executing and
2810 threads_are_resumed_pending_p checks from the inferior_matches
2811 lambda. Update comments.
2812
d6cc5d98
PA
28132020-07-10 Pedro Alves <pedro@palves.net>
2814
2815 PR gdb/26199
2816 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2817 executing threads.
2818
7d3badc6
PA
28192020-07-10 Pedro Alves <pedro@palves.net>
2820
2821 PR gdb/26199
2822 * infrun.c (handle_no_resumed): Handle multiple targets.
2823
42bd97a6
PA
28242020-07-10 Pedro Alves <pedro@palves.net>
2825
2826 PR gdb/26199
2827 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2828 target_is_async_p.
2829
43667cc6
PA
28302020-07-10 Pedro Alves <pedro@palves.net>
2831
2832 PR gdb/26199
2833 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2834 threads, not all threads.
2835
96118d11
PA
28362020-07-10 Pedro Alves <pedro@palves.net>
2837
2838 PR gdb/26199
2839 * remote.c (remote_target::open_1): Pass remote target pointer as
2840 data to create_async_event_handler.
2841 (remote_async_inferior_event_handler): Mark async event handler
2842 before returning if the remote target still has either pending
2843 events or unacknowledged notifications.
2844
54904d81
JB
28452020-07-10 John Baldwin <jhb@FreeBSD.org>
2846
2847 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2848 declaration.
2849 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2850 function.
2851
f37e5866
JB
28522020-07-09 John Baldwin <jhb@FreeBSD.org>
2853
2854 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2855 inferior_ptid.
2856
fc238d4a
JB
28572020-07-09 John Baldwin <jhb@FreeBSD.org>
2858
2859 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2860 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2861 AT_FREEBSD_PS_STRINGS.
2862
6e2469ff
HD
28632020-07-08 Hannes Domani <ssbssa@yahoo.de>
2864
2865 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2866 of debugfile path on Windows.
2867
d1076c41
JB
28682020-07-08 John Baldwin <jhb@FreeBSD.org>
2869
2870 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2871 argument to 'data'.
2872
15f3b077
TT
28732020-07-08 Tom Tromey <tromey@adacore.com>
2874
2875 * ada-lang.c (ada_exception_message_1): Use read_memory.
2876
9fc501fd
AB
28772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2878
2879 PR python/22748
2880 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2881 special handling for inline frames.
2882 * findvar.c (value_of_register_lazy): Skip inline frames when
2883 creating lazy register values.
2884 * frame.c (frame_id_computed_p): Delete definition.
2885 * frame.h (frame_id_computed_p): Delete declaration.
2886
64cb3757
AB
28872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2888
2889 * NEWS: Mention additions to Python API.
2890 * python/py-arch.c (archpy_register_groups): New function.
2891 (arch_object_methods): Add 'register_groups' method.
2892 * python/py-registers.c (reggroup_iterator_object): New struct.
2893 (reggroup_object): New struct.
2894 (gdbpy_new_reggroup): New function.
2895 (gdbpy_reggroup_to_string): New function.
2896 (gdbpy_reggroup_name): New function.
2897 (gdbpy_reggroup_iter): New function.
2898 (gdbpy_reggroup_iter_next): New function.
2899 (gdbpy_new_reggroup_iterator): New function
2900 (gdbpy_initialize_registers): Register new types.
2901 (reggroup_iterator_object_type): Define new Python type.
2902 (gdbpy_reggroup_getset): New static global.
2903 (reggroup_object_type): Define new Python type.
2904 * python/python-internal.h
2905
0f767f94
AB
29062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2907
2908 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2909 * python/py-arch.c (archpy_registers): New function.
2910 (arch_object_methods): Add 'registers' method.
2911 * python/py-registers.c: New file.
2912 * python/python-internal.h
2913 (gdbpy_new_register_descriptor_iterator): Declare.
2914 (gdbpy_initialize_registers): Declare.
2915 * python/python.c (do_start_initialization): Call
2916 gdbpy_initialize_registers.
2917 * NEWS: Mention additions to the Python API.
2918
87dbc774
AB
29192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2920
2921 * NEWS: Mention new Python API method.
2922 * python/py-unwind.c (pending_framepy_architecture): New function.
2923 (pending_frame_object_methods): Add architecture method.
2924
3bc98c0c
AB
29252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2926
2927 * gdbarch.c: Regenerate.
2928 * gdbarch.h: Regenerate.
2929 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2930 (gdbarch_data): Use internal_error for the case where
2931 deprecated_set_gdbarch_data was originally needed.
2932 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2933 and use passed in obstack.
2934 (libunwind_frame_set_descr): Should no longer get back NULL from
2935 gdbarch_data.
2936 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2937 type.
2938 * user-regs.c (user_regs_init): Update parameters, and use passed
2939 in obstack.
2940 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2941 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2942
d8cc8af6
TV
29432020-07-06 Tom de Vries <tdevries@suse.de>
2944
2945 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2946 End-Of-Sequence in lte_is_less_than.
2947 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2948 "gdb: Don't reorder line table entries too much when sorting".
2949
947f7597
TV
29502020-07-06 Tom de Vries <tdevries@suse.de>
2951
2952 PR tui/26205
2953 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2954
1e7c1b22
TV
29552020-07-05 Tom de Vries <tdevries@suse.de>
2956
2957 PR build/26187
2958 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2959 std::uncaught_exceptions instead of deprecated
2960 std::uncaught_exception.
2961
a36158ec
SM
29622020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2963
2964 * macroexp.h (macro_stringify): Return
2965 gdb::unique_xmalloc_ptr<char>.
2966 * macroexp.c (macro_stringify): Likewise.
2967 * macrotab.c (fixup_definition): Update.
2968
14d960c8
SM
29692020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2970
2971 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2972 (lex_one_token): Update.
2973 * macroexp.c (struct macro_buffer) <release>: Return
2974 gdb::unique_xmalloc_ptr<char>.
2975 (macro_stringify): Update.
2976 (macro_expand): Update.
2977 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2978 * macroexp.h (macro_expand_next): Likewise.
2979
211d5b1c
SM
29802020-07-02 Simon Marchi <simon.marchi@efficios.com>
2981
2982 * macroexp.h (macro_lookup_ftype): Remove.
2983 (macro_expand, macro_expand_once, macro_expand_next): Remove
2984 lookup function parameters, add scope parameter.
2985 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2986 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2987 * macroscope.h (standard_macro_lookup): Change parameter type
2988 to macro_scope.
2989 * macroscope.c (standard_macro_lookup): Likewise.
2990 * c-exp.y (lex_one_token): Update.
2991 * macrocmd.c (macro_expand_command): Likewise.
2992 (macro_expand_once_command): Likewise.
2993
b1a35af2
SM
29942020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2995
2996 * inf-loop.c (inferior_event_handler): Remove client_data param.
2997 * inf-loop.h (inferior_event_handler): Likewise.
2998 * infcmd.c (step_1): Adjust.
2999 * infrun.c (proceed): Adjust.
3000 (fetch_inferior_event): Remove client_data param.
3001 (infrun_async_inferior_event_handler): Adjust.
3002 * infrun.h (fetch_inferior_event): Remove `void *` param.
3003 * linux-nat.c (handle_target_event): Adjust.
3004 * record-btrace.c (record_btrace_handle_async_inferior_event):
3005 Adjust.
3006 * record-full.c (record_full_async_inferior_event_handler):
3007 Adjust.
3008 * remote.c (remote_async_inferior_event_handler): Adjust.
3009
1cdf9e33
TT
30102020-07-01 Tom Tromey <tom@tromey.com>
3011
3012 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3013 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3014
32c1e210
TT
30152020-07-01 Tom Tromey <tom@tromey.com>
3016
3017 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3018 tui_gen_win_info.
3019 (tui_win_info::make_window): Merge with
3020 tui_gen_win_info::make_window.
3021 (tui_win_info::make_visible): Move from tui_gen_win_info.
3022 * tui/tui-win.c (tui_win_info::max_width): Move from
3023 tui_gen_win_info.
3024 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3025 type.
3026 <window_factory>: Likewise.
3027 * tui/tui-layout.c (tui_win_info::resize): Move from
3028 tui_gen_win_info.
3029 (make_standard_window): Change return type.
3030 (get_locator_window, tui_get_window_by_name): Likewise.
3031 (tui_layout_window::apply): Remove a cast.
3032 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3033 (struct tui_win_info): Merge with tui_gen_win_info.
3034 (struct tui_gen_win_info): Remove.
3035
a30cb6da
TT
30362020-07-01 Tom Tromey <tom@tromey.com>
3037
3038 * tui/tui-stack.h (struct tui_locator_window): Derive from
3039 tui_win_info.
3040 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3041 <can_box>: New method.
3042
1eb2161f
TT
30432020-07-01 Tom Tromey <tom@tromey.com>
3044
3045 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3046
7134f2eb
TT
30472020-07-01 Tom Tromey <tom@tromey.com>
3048
3049 * tui/tui-regs.c (tui_data_window::display_registers_from)
3050 (tui_data_window::display_registers_from)
3051 (tui_data_window::first_data_item_displayed)
3052 (tui_data_window::delete_data_content_windows): Update.
3053 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3054 Remove.
3055 (tui_data_window::check_register_values): Update.
3056 (tui_data_item_window::rerender): Add parameters. Update.
3057 (tui_data_item_window::refresh_window): Remove.
3058 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3059 virtual.
3060 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3061 tui_gen_win_info.
3062 <refresh_window, max_height, min_height>: Remove.
3063 <rerender>: Add parameters.
3064 <x, y, visible>: New members.
3065 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3066 <m_item_width>: New member.
3067
22b7b041
TT
30682020-07-01 Tom Tromey <tom@tromey.com>
3069
3070 * tui/tui-regs.c (tui_data_window::show_register_group)
3071 (tui_data_window::check_register_values): Update.
3072 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3073 from item_no.
3074
c9753adb
TT
30752020-07-01 Tom Tromey <tom@tromey.com>
3076
3077 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3078 useless "if".
3079
9ab26b4a
TT
30802020-07-01 Tom Tromey <tom@tromey.com>
3081
3082 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3083 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3084
e555083f
TT
30852020-07-01 Tom Tromey <tom@tromey.com>
3086
3087 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3088 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3089 (struct tui_line_or_address): Move from tui-data.h.
3090 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3091 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3092 (tui_cmd_window, tui_source_window_base, tui_source_window)
3093 (tui_disasm_window): Don't declare.
3094 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3095 to tui-winsource.h.
3096 (SINGLE_KEY): Move to tui-stack.c.
3097
7a02bab7
TT
30982020-07-01 Tom Tromey <tom@tromey.com>
3099
3100 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3101 std::string.
3102 * tui/tui-regs.c (class tab_expansion_file): New.
3103 (tab_expansion_file::write): New method.
3104 (tui_register_format): Change return type. Use
3105 tab_expansion_file.
3106 (tui_get_register, tui_data_window::display_registers_from)
3107 (tui_data_item_window::rerender): Update.
3108 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3109 * tui/tui-io.c (tui_expand_tabs): Remove.
3110
ea68593b
TT
31112020-07-01 Tom Tromey <tom@tromey.com>
3112
3113 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3114
a8caed5d
FS
31152020-07-01 Fangrui Song <maskray@google.com>
3116
3117 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3118
9cdf9820
AKS
31192020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3120
3121 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3122 forms for DW_AT_associated and DW_AT_allocated attributes,
3123 which is already checked in function attr_to_dynamic_prop.
3124
a1520ad8
TT
31252020-06-30 Tom Tromey <tromey@adacore.com>
3126
3127 * dwarf2/read.c (quirk_rust_enum): Correctly call
3128 alloc_rust_variant for default-less enum.
3129
5ac58899
TT
31302020-06-30 Tom Tromey <tromey@adacore.com>
3131
3132 PR build/26183:
3133 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3134 gdb::to_string.
3135
19b187a9
SM
31362020-06-29 Simon Marchi <simon.marchi@efficios.com>
3137
3138 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3139 * gdbarch.h: Re-generate.
3140
cd4c4c07
TT
31412020-06-28 Tom Tromey <tom@tromey.com>
3142
3143 * command.h (cmd_types): Remove.
3144 (cmd_type): Don't declare.
3145 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3146 typedef.
3147 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3148 * cli/cli-decode.c (cmd_type): Remove.
3149
05779d57
PA
31502020-06-27 Pedro Alves <palves@redhat.com>
3151
3152 * fork-child.c (prefork_hook): Adjust.
3153 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3154 Delete.
3155 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3156 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3157 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3158 Remove declarations.
3159 (struct inferior) <set_tty, tty>: New methods.
3160 (struct inferior) <terminal>: Rename to ...
3161 (struct inferior) <m_terminal>: ... this and make private.
3162 * main.c (captured_main_1): Adjust.
3163 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3164 (mi_cmd_inferior_tty_show): Adjust.
3165 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3166 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3167
1776e3e5
NA
31682020-06-26 Nick Alcock <nick.alcock@oracle.com>
3169
3170 * configure.ac: Add --enable-libctf: handle --disable-static
3171 properly.
3172 * acinclude.m4: sinclude ../config/enable.m4.
3173 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3174 (LIBCTF): Substitute in.
3175 (CTF_DEPS): New, likewise.
3176 (CLIBS): libctf needs symbols from libbfd: move earlier.
3177 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3178 flags.
3179 * ctfread.c: Surround in ENABLE_LIBCTF.
3180 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3181 * configure: Regenerate.
3182 * config.in: Likewise.
3183
58373b80
SM
31842020-06-25 Simon Marchi <simon.marchi@efficios.com>
3185
3186 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3187
277474ee
SM
31882020-06-25 Simon Marchi <simon.marchi@efficios.com>
3189
3190 * inferior.h (struct inferior) <terminal>: Change type to
3191 gdb::unique_xmalloc_ptr<char>.
3192 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3193 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3194 field, adjust to unique pointer.
3195 (get_inferior_io_terminal): Adjust to unique pointer.
3196
6d74da72
AB
31972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3198
3199 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3200 registers, not just the known core set of registers.
3201
2e52d038
AB
32022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3203
3204 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3205 fflags, frm, and fcsr registers.
3206 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3207 restore groups.
3208 (riscv_tdesc_unknown_reg): New function.
3209 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3210 tdesc_use_registers.
3211 * riscv-tdep.h (struct gdbarch_tdep): Add
3212 unknown_csrs_first_regnum, unknown_csrs_count,
3213 duplicate_fflags_regnum, duplicate_frm_regnum, and
3214 duplicate_fcsr_regnum fields.
3215
be64fd07
AB
32162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3217
3218 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3219 callback, use the callback (when not null) to help number unknown
3220 registers.
3221 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3222 (tdesc_use_registers): Add extra parameter to declaration.
3223
3b9fce96
AB
32242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3225
3226 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3227 in the file.
3228 (class riscv_pending_register_alias): Likewise.
3229 (riscv_register_feature::register_info): Change 'required_p' field
3230 to 'required', and change its type. Add 'check' member function.
3231 (riscv_register_feature::register_info::check): Define new member
3232 function.
3233 (riscv_xreg_feature): Change initialisation of 'required' field.
3234 (riscv_freg_feature): Likewise.
3235 (riscv_virtual_feature): Likewise.
3236 (riscv_csr_feature): Likewise.
3237 (riscv_check_tdesc_feature): Take extra parameter, the csr
3238 tdesc_feature, rewrite the function to use the new
3239 riscv_register_feature::register_info::check function.
3240 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3241
865bad26
AB
32422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3243
3244 * features/Makefile: Remove all references to the deleted files
3245 below.
3246 * features/riscv/32bit-csr.c: Deleted.
3247 * features/riscv/32bit-csr.xml: Deleted.
3248 * features/riscv/64bit-csr.c: Deleted.
3249 * features/riscv/64bit-csr.xml: Deleted.
3250 * features/riscv/rebuild-csr-xml.sh: Deleted.
3251
ed69cbc8
AB
32522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3253
3254 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3255 whitespace error for declaration of names member variable.
3256 (struct riscv_register_feature): Add new prefer_first_name member
3257 variable, and fix whitespace error in declaration of registers.
3258 (riscv_xreg_feature): Initialize prefer_first_name field.
3259 (riscv_freg_feature): Likewise.
3260 (riscv_virtual_feature): Likewise.
3261 (riscv_csr_feature): Likewise.
3262 (riscv_register_name): Expand on comments. Remove register name
3263 modifications for CSR and virtual registers.
3264
4445e8f5
AB
32652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3266
3267 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3268 errors.
3269
767a879e
AB
32702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3273 riscv-opc.h.
3274 (class riscv_pending_register_alias): New class.
3275 (riscv_check_tdesc_feature): Take vector of pending aliases and
3276 populate it as appropriate.
3277 (riscv_setup_register_aliases): Delete.
3278 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3279 to riscv_check_tdesc_feature in all cases. Use the vector to
3280 create the register aliases.
3281
bb6e55f3
RO
32822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3283
3284 * sol2-tdep.c (sol2_static_transform_name): Remove.
3285 (sol2_init_abi): Don't register it.
3286 * gdbarch.sh (static_transform_name): Remove.
3287 * gdbarch.c, gdbarch.h: Regenerate.
3288
3289 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3290 gdbarch_static_transform_name.
3291 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3292 * stabsread.c (define_symbol) <'X'>: Remove.
3293 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3294 handling.
3295 <'V'>: Likewise.
3296 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3297 <'S'>: Remove call to gdbarch_static_transform_name.
3298
c6d36836
RO
32992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3300
3301 * procfs.c (procfs_pre_trace): New function.
3302 (procfs_target::create_inferior): Pass it to fork_inferior.
3303
a7e6196b
RO
33042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3305
3306 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3307 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3308 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3309 sol2-tdep.o, sparc-sol2-tdep.o.
3310 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3311 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3312 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3313 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3314
d412e696
RO
33152020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3316
3317 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3318 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3319 Call sol2_init_abi.
3320 Remove calls to set_gdbarch_skip_solib_resolver,
3321 set_gdbarch_core_pid_to_str.
3322 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3323 (i386_sol2_static_transform_name): Remove.
3324 (i386_sol2_init_abi): Call sol2_init_abi.
3325 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3326 set_gdbarch_static_transform_name,
3327 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3328 Use sol2_sigtramp_p.
3329 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3330 (sol2_sigtramp_p): New function.
3331 (sol2_static_transform_name): New function.
3332 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3333 (sol2_init_abi): New function.
3334 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3335 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3336 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3337 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3338 (sparc_sol2_static_transform_name): Remove.
3339 (sparc32_sol2_init_abi): Call sol2_init_abi.
3340 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3341 set_gdbarch_static_transform_name,
3342 set_gdbarch_skip_solib_resolver,
3343 set_gdbarch_core_pid_to_str.
3344 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3345 (sparc_sol2_static_transform_name): Remove
3346 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3347 call sol2_sigtramp_p.
3348 (sparc64_sol2_init_abi): Call sol2_init_abi.
3349 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3350 set_gdbarch_static_transform_name,
3351 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3352
a8654e7d
PW
33532020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3354
3355 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3356 * exec.c (validate_exec_file): If from_tty, set both
3357 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3358 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3359 and from_tty, unconditionally ask a confirmation.
3360
caa7fd04
AB
33612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3362
3363 * target-descriptions.c (tdesc_architecture_name): Protect against
3364 NULL pointer dereference.
3365 (maint_print_xml_tdesc_cmd): New function.
3366 (_initialize_target_descriptions): Register new 'maint print
3367 xml-tdesc' command and give it the filename completer.
3368 * NEWS: Mention new 'maint print xml-tdesc' command.
3369
fbf42f4e
AB
33702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3371
3372 * target-descriptions.c (class tdesc_compatible_info): New class.
3373 (struct target_desc): Change type of compatible vector.
3374 (tdesc_compatible_p): Update for change in type of
3375 target_desc::compatible.
3376 (tdesc_compatible_info_list): New function.
3377 (tdesc_compatible_info_arch_name): New function.
3378 (tdesc_add_compatible): Update for change in type of
3379 target_desc::compatible.
3380 (print_c_tdesc::visit_pre): Likewise.
3381
20821f4e
AB
33822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3383
3384 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3385 whitespace to underscore.
3386 (maint_print_c_tdesc_cmd): Use fake filename for target
3387 descriptions that came from the target.
3388 (_initialize_target_descriptions): Add filename command completion
3389 for 'maint print c-tdesc'.
3390
1fb5ee62
SM
33912020-06-23 Simon Marchi <simon.marchi@efficios.com>
3392
3393 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3394 lines.
3395
fc3ecb3e
SM
33962020-06-23 Simon Marchi <simon.marchi@efficios.com>
3397
3398 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3399 lines.
3400 (dwarf2_find_location_expression): Likewise.
3401 (call_site_parameter_matches): Likewise.
3402 (dwarf2_compile_expr_to_ax): Likewise.
3403 (disassemble_dwarf_expression): Likewise.
3404 (loclist_describe_location): Likewise.
3405
236ef034
PA
34062020-06-23 Pedro Alves <palves@redhat.com>
3407
3408 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3409 progspace-and-thread.h. Include scoped-mock-context.h instead.
3410 (register_to_value_test): Use scoped_mock_context.
3411 * regcache.c: Include "scoped-mock-context.h".
3412 (cooked_read_test): Don't error out if a target is already pushed.
3413 Use scoped_mock_context. Adjust.
3414 * scoped-mock-context.h: New file.
3415
39e7ecca
AB
34162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3417
3418 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3419 initializer.
3420 (ada_language::is_string_type_p): New member function.
3421 * c-lang.c (c_language_data): Delete la_is_string_type_p
3422 initializer.
3423 (cplus_language_data): Likewise.
3424 (asm_language_data): Likewise.
3425 (minimal_language_data): Likewise.
3426 * d-lang.c (d_language_data): Likewise.
3427 * f-lang.c (f_is_string_type_p): Delete function, implementation
3428 moved to f_language::is_string_type_p.
3429 (f_language_data): Delete la_is_string_type_p initializer.
3430 (f_language::is_string_type_p): New member function,
3431 implementation from f_is_string_type_p.
3432 * go-lang.c (go_is_string_type_p): Delete function, implementation
3433 moved to go_language::is_string_type_p.
3434 (go_language_data): Delete la_is_string_type_p initializer.
3435 (go_language::is_string_type_p): New member function,
3436 implementation from go_is_string_type_p.
3437 * language.c (language_defn::is_string_type_p): Define new member
3438 function.
3439 (default_is_string_type_p): Make static, add comment copied from
3440 header file.
3441 (unknown_language_data): Delete la_is_string_type_p initializer.
3442 (unknown_language::is_string_type_p): New member function.
3443 (auto_language_data): Delete la_is_string_type_p initializer.
3444 (auto_language::is_string_type_p): New member function.
3445 * language.h (language_data): Delete la_is_string_type_p field.
3446 (language_defn::is_string_type_p): Declare new function.
3447 (default_is_string_type_p): Delete desclaration, move comment to
3448 definition.
3449 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3450 moved to m2_language::is_string_type_p.
3451 (m2_language_data): Delete la_is_string_type_p initializer.
3452 (m2_language::is_string_type_p): New member function,
3453 implementation from m2_is_string_type_p.
3454 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3455 initializer.
3456 * opencl-lang.c (opencl_language_data): Likewise.
3457 * p-lang.c (pascal_is_string_type_p): Delete function,
3458 implementation moved to pascal_language::is_string_type_p.
3459 (pascal_language_data): Delete la_is_string_type_p initializer.
3460 (pascal_language::is_string_type_p): New member function,
3461 implementation from pascal_is_string_type_p.
3462 * rust-lang.c (rust_is_string_type_p): Delete function,
3463 implementation moved to rust_language::is_string_type_p.
3464 (rust_language_data): Delete la_is_string_type_p initializer.
3465 (rust_language::is_string_type_p): New member function,
3466 implementation from rust_is_string_type_p.
3467 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3468 is_string_type_p.
3469
4ffc13fb
AB
34702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3471
3472 * ada-lang.c (ada_language_data): Delete la_print_typedef
3473 initializer.
3474 (ada_language::print_typedef): New member function.
3475 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3476 (cplus_language_data): Likewise.
3477 (asm_language_data): Likewise.
3478 (minimal_language_data): Likewise.
3479 * d-lang.c (d_language_data): Likewise.
3480 * f-lang.c (f_language_data): Likewise.
3481 (f_language::print_typedef): New member function.
3482 * go-lang.c (go_language_data): Delete la_print_typedef
3483 initializer.
3484 * language.c (language_defn::print_typedef): Define member
3485 function.
3486 (unknown_language_data): Delete la_print_typedef initializer.
3487 (unknown_language::print_typedef): New member function.
3488 (auto_language_data): Delete la_print_typedef initializer.
3489 (auto_language::print_typedef): New member function.
3490 * language.h (language_data): Delete la_print_typedef field.
3491 (language_defn::print_typedef): Declare new member function.
3492 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3493 (default_print_typedef): Delete declaration.
3494 * m2-lang.c (m2_language_data): Delete la_print_typedef
3495 initializer.
3496 (m2_language::print_typedef): New member function.
3497 * objc-lang.c (objc_language_data): Delete la_print_typedef
3498 initializer.
3499 * opencl-lang.c (opencl_language_data): Likewise.
3500 * p-lang.c (pascal_language_data): Likewise.
3501 (pascal_language::print_typedef): New member function.
3502 * rust-lang.c (rust_print_typedef): Delete function,
3503 implementation moved to rust_language::print_typedef.
3504 (rust_language): Delete la_print_typedef initializer.
3505 (rust_language::print_typedef): New member function,
3506 implementation from rust_print_typedef.
3507 * typeprint.c (default_print_typedef): Delete.
3508
d711ee67
AB
35092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3510
3511 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3512 (ada_language::printstr): New member function.
3513 * c-lang.c (c_language_data): Delete la_printstr initializer.
3514 (cplus_language_data): Likewise.
3515 (asm_language_data): Likewise.
3516 (minimal_language_data): Likewise.
3517 * d-lang.c (d_language_data): Likewise.
3518 * f-lang.c (f_printstr): Rename to f_language::printstr.
3519 (f_language_data): Delete la_printstr initializer.
3520 (f_language::printstr): New member function, implementation from
3521 f_printstr.
3522 * go-lang.c (go_language_data): Delete la_printstr initializer.
3523 * language.c (language_defn::printstr): Define new member
3524 function.
3525 (unk_lang_printstr): Delete.
3526 (unknown_language_data): Delete la_printstr initializer.
3527 (unknown_language::printstr): New member function.
3528 (auto_language_data): Delete la_printstr initializer.
3529 (auto_language::printstr): New member function.
3530 * language.h (language_data): Delete la_printstr field.
3531 (language_defn::printstr): Declare new member function.
3532 (LA_PRINT_STRING): Update call to printstr.
3533 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3534 (m2_language_data): Delete la_printstr initializer.
3535 (m2_language::printstr): New member function, implementation from
3536 m2_printstr.
3537 * objc-lang.c (objc_language_data): Delete la_printstr
3538 initializer.
3539 * opencl-lang.c (opencl_language_data): Likewise.
3540 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3541 (pascal_language_data): Delete la_printstr initializer.
3542 (pascal_language::printstr): New member function, implementation
3543 from pascal_printstr.
3544 * p-lang.h (pascal_printstr): Delete declaration.
3545 * rust-lang.c (rust_printstr): Update header comment.
3546 (rust_language_data): Delete la_printstr initializer.
3547 (rust_language::printstr): New member function.
3548
52b50f2c
AB
35492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3550
3551 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3552 (ada_language::printchar): New member function.
3553 * c-lang.c (c_language_data): Delete la_printchar initializer.
3554 (cplus_language_data): Likewise.
3555 (asm_language_data): Likewise.
3556 (minimal_language_data): Likewise.
3557 * d-lang.c (d_language_data): Likewise.
3558 * f-lang.c (f_printchar): Rename to f_language::printchar.
3559 (f_language_data): Delete la_printchar initializer.
3560 (f_language::printchar): New member function, implementation from
3561 f_printchar.
3562 * go-lang.c (go_language_data): Delete la_printchar initializer.
3563 * language.c (unk_lang_printchar): Delete.
3564 (language_defn::printchar): Define new member function.
3565 (unknown_language_data): Delete la_printchar initializer.
3566 (unknown_language::printchar): New member function.
3567 (auto_language_data): Delete la_printchar initializer.
3568 (auto_language::printchar): New member function.
3569 * language.h (language_data): Delete la_printchar field.
3570 (language_defn::printchar): Declare new member function.
3571 (LA_PRINT_CHAR): Update call to printchar.
3572 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3573 (m2_language::printchar): New member function.
3574 * objc-lang.c (objc_language_data): Delete la_printchar
3575 initializer.
3576 * opencl-lang.c (opencl_language_data): Likewise.
3577 * p-lang.c (pascal_language_data): Delete la_printchar
3578 initializer.
3579 (pascal_language::printchar): New member function.
3580 * rust-lang.c (rust_printchar): Rename to
3581 rust_language::printchar.
3582 (rust_language_data): Delete la_printchar initializer.
3583 (rust_language::printchar): New member function, implementation
3584 from rust_printchar.
3585
ec8cec5b
AB
35862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3587
3588 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3589 (ada_language_data): Delete la_emitchar initializer.
3590 (ada_language::emitchar): New member function, implementation from
3591 emit_char.
3592 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3593 (cplus_language_data): Likewise.
3594 (asm_language_data): Likewise.
3595 (minimal_language_data): Likewise.
3596 * d-lang.c (d_language_data): Likewise.
3597 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3598 (f_language_data): Delete la_emitchar initializer.
3599 (f_language::emitchar): New member function, implementation from
3600 f_emit_char.
3601 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3602 * language.c (unk_lang_emit_char): Delete.
3603 (language_defn::emitchar): New member function definition.
3604 (unknown_language_data): Delete la_emitchar initializer.
3605 (unknown_language::emitchar): New member function.
3606 (auto_language_data): Delete la_emitchar initializer.
3607 (auto_language::emitchar): New member function.
3608 * language.h (language_data): Delete la_emitchar field.
3609 (language_defn::emitchar): New member field declaration.
3610 (LA_EMIT_CHAR): Update call to emitchar.
3611 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3612 (m2_language_data): Delete la_emitchar initializer.
3613 (m2_language::emitchar): New member function, implementation from
3614 m2_emit_char.
3615 * objc-lang.c (objc_language_data): Delete la_emitchar
3616 initializer.
3617 * opencl-lang.c (opencl_language_data): Likewise.
3618 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3619 (pascal_language_data): Delete la_emitchar initializer.
3620 (pascal_language::emitchar): New member function, implementation
3621 from pascal_emit_char.
3622 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3623 (rust_language_data): Delete la_emitchar initializer.
3624 (rust_language::emitchar): New member function, implementation
3625 from rust_emitchar.
3626
1bf9c363
AB
36272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3628
3629 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3630 (ada_language_data): Delete la_post_parser initializer.
3631 (ada_language::post_parser): New member function.
3632 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3633 (cplus_language_data): Likewise.
3634 (asm_language_data): Likewise.
3635 (minimal_language_data): Likewise.
3636 * d-lang.c (d_language_data): Likewise.
3637 * f-lang.c (f_language_data): Likewise.
3638 * go-lang.c (go_language_data): Likewise.
3639 * language.c (unknown_language_data): Likewise.
3640 (auto_language_data): Likewise.
3641 * language.h (language_data): Delete la_post_parser field.
3642 (language_defn::post_parser): New member function.
3643 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3644 * objc-lang.c (objc_language_data): Likewise.
3645 * opencl-lang.c (opencl_language_data): Likewise.
3646 * p-lang.c (pascal_language_data): Likewise.
3647 * parse.c (parse_exp_in_context): Update call to post_parser.
3648 (null_post_parser): Delete definition.
3649 * parser-defs.h (null_post_parser): Delete declaration.
3650 * rust-lang.c (rust_language_data): Delete la_post_parser
3651 initializer.
3652
87afa652
AB
36532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3654
3655 * ada-lang.c (parse): Rename to ada_language::parser.
3656 (ada_language_data): Delete la_parser initializer.
3657 (ada_language::parser): New member function, implementation from
3658 parse.
3659 * c-lang.c (c_language_data): Delete la_parser initializer.
3660 (cplus_language_data): Likewise.
3661 (asm_language_data): Likewise.
3662 (minimal_language_data): Likewise.
3663 * d-lang.c (d_language_data): Likewise.
3664 (d_language::parser): New member function.
3665 * f-lang.c (f_language_data): Delete la_parser initializer.
3666 (f_language::parser): New member function.
3667 * go-lang.c (go_language_data): Delete la_parser initializer.
3668 (go_language::parser): New member function.
3669 * language.c (unk_lang_parser): Delete.
3670 (language_defn::parser): Define new member function.
3671 (unknown_language_data): Delete la_parser initializer.
3672 (unknown_language::parser): New member function.
3673 (auto_language_data): Delete la_parser initializer.
3674 (auto_language::parser): New member function.
3675 * language.h (language_data): Delete la_parser field.
3676 (language_defn::parser): Declare new member function.
3677 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3678 (m2_language::parser): New member function.
3679 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3680 * opencl-lang.c (opencl_language_data): Likewise.
3681 * p-lang.c (pascal_language_data): Likewise.
3682 (pascal_language::parser): New member function.
3683 * parse.c (parse_exp_in_context): Update call to parser.
3684 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3685 (rust_language::parser): New member function.
3686
37825800
AB
36872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3688
3689 * top.c (print_gdb_configuration): Print --with-python-libdir
3690 configuration value.
3691
5b860c93
PW
36922020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3693
3694 * NEWS: Mention change to the alias command.
3695
cf00cd6f
PW
36962020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3697
3698 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3699 (alias_command_completer)
3700 (make_alias_options_def_group): New functions.
3701 (alias_opts, alias_option_defs): New struct and array.
3702 (alias_usage_error): Update usage.
3703 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3704 Use option framework.
3705 (_initialize_cli_cmds): Update alias command help.
3706 Update aliases command help.
3707 (show_user):
3708 Add NULL for new default_args lookup_cmd argument.
3709 (valid_command_p): Rename to validate_aliased_command.
3710 Add NULL for new default_args lookup_cmd argument. Verify that the
3711 aliased_command has no default args.
3712 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3713 (lookup_cmd_1, lookup_cmd): New argument default_args.
3714 (add_alias_cmd):
3715 Add NULL for new default_args lookup_cmd argument.
3716 (print_help_for_command): Show default args under the layout
3717 alias some_alias = some_aliased_cmd some_alias_default_arg.
3718 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3719 xfree default_args in destructor.
3720 * cli/cli-script.c (process_next_line, do_define_command):
3721 Add NULL for new default_args lookup_cmd argument.
3722 * command.h: Declare new default_args argument in lookup_cmd
3723 and lookup_cmd_1.
3724 * completer.c (complete_line_internal_1):
3725 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3726 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3727 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3728 Likewise.
3729 * infcmd.c (_initialize_infcmd): Likewise.
3730 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3731 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3732 * python/py-param.c (add_setshow_generic): Likewise.
3733 * remote.c (_initialize_remote): Likewise.
3734 * top.c (execute_command): Prepend default_args if command has some.
3735 (set_verbose):
3736 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3737 * tracepoint.c (validate_actionline, encode_actions_1):
3738 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3739
bd920864
TBA
37402020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3741
3742 * jit.c (jit_read_descriptor): Use bool as the return type.
3743 (jit_breakpoint_re_set_internal): Use bool as the return type.
3744 Invert the return value logic; return true if the jit breakpoint
3745 has been successfully initialized.
3746 (jit_inferior_init): Update the call to
3747 jit_breakpoint_re_set_internal.
3748
f8098322
PA
37492020-06-22 Pedro Alves <palves@redhat.com>
3750
3751 PR gdb/25939
3752 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3753 Use the current inferior instead. Don't return
3754 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3755 wait again.
3756 * sol-thread.c (sol_thread_target::wait): Don't reference
3757 inferior_ptid.
3758 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3759 (sol_update_thread_list_callback): Use the current inferior's pid
3760 instead of inferior_ptid.
3761
196535a6
RO
37622020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3763
3764 * procfs.c: Cleanup many comments.
3765
3766 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3767 (AFTER_WATCHFLAG): Replace by value.
3768
3769 (MAIN_PROC_NAME_FORMAT): Inline ...
3770 (create_procinfo): ... here.
3771
3772 (procfs_debug_inferior): Remove SYS_exec handling.
3773 (syscall_is_exec): Likewise.
3774 (procfs_set_exec_trap): Likewise.
3775
3776 (syscall_is_lwp_exit): Inline in callers.
3777 (syscall_is_exit): Likewise.
3778 (syscall_is_exec): Likewise.
3779 (syscall_is_lwp_create): Likewise.
3780
3781 (invalidate_cache): Remove #if 0 code.
3782
3783 (make_signal_thread_runnable): Remove.
3784 (procfs_target::resume): Remove #if 0 code.
3785
cf6f3e86
RO
37862020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3787
3788 PR gdb/25939
3789 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3790 call ...
3791 (procfs_target::create_inferior): ... here.
3792
48e9cc84
PW
37932020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3794
3795 * exec.c (validate_exec_file): Ensure the build-id is up to
3796 date by calling reopen_exec_file (that checks file timestamp
3797 to decide to re-read the file).
3798
3922b302
PA
37992020-06-18 Pedro Alves <palves@redhat.com>
3800
3801 PR gdb/25412
3802 * gdbthread.h (delete_thread, delete_thread_silent)
3803 (find_thread_ptid): Update comments.
3804 * thread.c (current_thread_): New global.
3805 (is_current_thread): Move higher, and reimplement.
3806 (inferior_thread): Reimplement.
3807 (set_thread_exited): Use bool. Add assertions.
3808 (add_thread_silent): Simplify thread-reuse handling by always
3809 calling delete_thread.
3810 (delete_thread): Remove intro comment.
3811 (find_thread_ptid): Skip exited threads.
3812 (switch_to_thread_no_regs): Write to current_thread_.
3813 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3814 INFERIOR_PTID. Clear current_thread_.
3815
6dbdab44
PA
38162020-06-18 Pedro Alves <palves@redhat.com>
3817
3818 * aix-thread.c (pd_update): Use switch_to_thread.
3819
2da4b788
PA
38202020-06-18 Pedro Alves <palves@redhat.com>
3821
3822 * ravenscar-thread.c (ravenscar_thread_target): Update.
3823 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3824 (ravenscar_thread_target::add_active_thread): ... this. Don't
3825 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3826 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3827
50838d1b
PA
38282020-06-18 Pedro Alves <palves@redhat.com>
3829
3830 * nat/windows-nat.c (current_windows_thread): Remove.
3831 * nat/windows-nat.h (current_windows_thread): Remove.
3832 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3833 Adjust.
3834 (display_selectors): Adjust to fetch the current
3835 windows_thread_info based on inferior_ptid.
3836 (fake_create_process): No longer write to current_windows_thread.
3837 (windows_nat_target::get_windows_debug_event):
3838 Don't set inferior_ptid or current_windows_thread.
3839 (windows_nat_target::wait): Adjust to not rely on
3840 current_windows_thread.
3841 (do_initial_windows_stuff): Now a method of windows_nat_target.
3842 Switch to the last_ptid thread.
3843 (windows_nat_target::attach): Adjust.
3844 (windows_nat_target::detach): Use switch_to_no_thread instead of
3845 writing to inferior_ptid directly.
3846 (windows_nat_target::create_inferior): Adjust.
3847
31ce04e9
PA
38482020-06-18 Pedro Alves <palves@redhat.com>
3849
3850 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3851
1ee1a363
PA
38522020-06-18 Pedro Alves <palves@redhat.com>
3853
3854 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3855 after creating it, instead of writing to inferior_ptid. Don't
3856 write to inferior_ptid.
3857
6d350754
PA
38582020-06-18 Pedro Alves <palves@redhat.com>
3859
3860 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3861
5d971d48
PA
38622020-06-18 Pedro Alves <palves@redhat.com>
3863
3864 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3865 it, instead of writing to inferior_ptid.
3866
86e57d1b
PA
38672020-06-18 Pedro Alves <palves@redhat.com>
3868
3869 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3870 to inferior_ptid.
3871
f2e1c129
PA
38722020-06-18 Pedro Alves <palves@redhat.com>
3873
3874 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3875 instead of writing to inferior_ptid directly.
3876
60db1b85
PA
38772020-06-18 Pedro Alves <palves@redhat.com>
3878
3879 * corelow.c (core_target::close): Use switch_to_no_thread instead
3880 of writing to inferior_ptid directly.
3881 (add_to_thread_list, core_target_open): Use switch_to_thread
3882 instead of writing to inferior_ptid directly.
3883
fe7d6a8d
PA
38842020-06-18 Pedro Alves <palves@redhat.com>
3885
3886 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3887 inferior_ptid.
3888 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3889 inferior_ptid.
3890 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3891 inferior_ptid directly.
3892 (darwin_nat_target::init_thread_list): Switch to thread, instead
3893 of writing to inferior_ptid.
3894 (darwin_nat_target::attach): Don't write to inferior_ptid.
3895 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3896
975f8708
PA
38972020-06-18 Pedro Alves <palves@redhat.com>
3898
3899 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3900 thread.
3901 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3902 Instead use switch_to_thread.
3903 (gnu_nat_target::detach): Use switch_to_no_thread
3904 instead of writing to inferior_ptid directly. Used passed-in
3905 inferior instead of looking up the inferior by pid.
3906
1a204730
PA
39072020-06-18 Pedro Alves <palves@redhat.com>
3908
3909 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3910 inferior_ptid.
3911
ebe84f23
PA
39122020-06-18 Pedro Alves <palves@redhat.com>
3913
3914 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3915 inferior_ptid.
3916 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3917 thread.
3918 (nto_procfs_target::detach): Avoid referencing
3919 inferior_ptid. Use switch_to_no_thread instead of writing to
3920 inferior_ptid directly.
3921 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3922 instead of writing to inferior_ptid directly.
3923 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3924 to thread.
3925
191f02e5
PA
39262020-06-18 Pedro Alves <palves@redhat.com>
3927
3928 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3929 after creating it, instead of writing to inferior_ptid.
3930 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3931 to inferior_ptid directly.
3932 (gdbsim_target::wait): Don't write to inferior_ptid.
3933
0ac55310
PA
39342020-06-18 Pedro Alves <palves@redhat.com>
3935
3936 * remote.c (remote_target::remote_notice_new_inferior): Use
3937 switch_to_thread instead of writing to inferior_ptid directly.
3938 (remote_target::add_current_inferior_and_thread): Use
3939 switch_to_no_thread instead of writing to inferior_ptid directly.
3940 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3941 and switch_to_thread instead of using set_current_inferior or
3942 writing to inferior_ptid directly.
3943
5233f39b
PA
39442020-06-18 Pedro Alves <palves@redhat.com>
3945
3946 * tracectf.c (ctf_target_open): Switch to added thread instead of
3947 writing to inferior_ptid directly.
3948 (ctf_target::close): Use switch_to_no_thread instead of writing to
3949 inferior_ptid directly.
3950
087e161b
PA
39512020-06-18 Pedro Alves <palves@redhat.com>
3952
3953 * tracefile-tfile.c (tfile_target_open): Don't write to
3954 inferior_ptid directly, instead switch to added thread.
3955 (tfile_target::close): Use switch_to_no_thread instead of writing
3956 to inferior_ptid directly.
3957
7fb43e53
PA
39582020-06-18 Pedro Alves <palves@redhat.com>
3959
3960 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3961 (procfs_target::detach): Use switch_to_no_thread
3962 instead of writing to inferior_ptid directly.
3963 (do_attach): Change return type to void. Switch to the added
3964 thread.
3965 (procfs_target::create_inferior): Switch to the added thread.
3966 (procfs_do_thread_registers): Don't write to inferior_ptid.
3967
18493a00
PA
39682020-06-18 Pedro Alves <palves@redhat.com>
3969
3970 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3971 of writing to inferior_ptid.
3972 (scoped_restore_exited_inferior): Delete.
3973 (handle_vfork_child_exec_or_exit): Simplify using
3974 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3975 instead of writing to inferior_ptid.
3976 (THREAD_STOPPED_BY): Delete.
3977 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3978 (thread_stopped_by_hw_breakpoint): Delete.
3979 (save_waitstatus): Use
3980 scoped_restore_current_thread+switch_to_thread, and call
3981 target_stopped_by_watchpoint instead of
3982 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3983 instead of thread_stopped_by_sw_breakpoint, and
3984 target_stopped_by_hw_breakpoint instead of
3985 thread_stopped_by_hw_breakpoint.
3986 (handle_inferior_event)
3987 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3988 inferior_ptid directly, nor
3989 set_current_inferior/set_current_program_space. Use
3990 switch_to_thread / switch_to_inferior_no_thread instead.
3991
a0776b13
PA
39922020-06-18 Pedro Alves <palves@redhat.com>
3993
3994 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3995 instead of writing to inferior_ptid.
3996
6155c136
PA
39972020-06-18 Pedro Alves <palves@redhat.com>
3998
3999 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4000 added thread.
4001 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4002 to the added thread.
4003 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4004 instead of writing to inferior_ptid.
4005
c5316fc6
PA
40062020-06-18 Pedro Alves <palves@redhat.com>
4007
4008 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4009 (register_to_value_test): Mock a program_space too. Heap-allocate
4010 the address space. Don't write to inferior_ptid. Use
4011 switch_to_thread instead.
4012
8df01799
PA
40132020-06-18 Pedro Alves <palves@redhat.com>
4014
4015 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4016 Delete.
4017 (find_signalled_thread()): New, factored out from
4018 linux_make_corefile_notes and adjusted to handle exited threads.
4019 (linux_make_corefile_notes): Adjust to use the new
4020 find_signalled_thread.
4021
41792d68
PA
40222020-06-18 Pedro Alves <palves@redhat.com>
4023
4024 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4025 of saving/restoring inferior_ptid.
4026
612f258a
TT
40272020-06-17 Tom Tromey <tom@tromey.com>
4028
4029 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4030 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4031 declare.
4032 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4033
efb763a5
SM
40342020-06-15 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4037 of partial symtabs.
4038
2951f6c0
SM
40392020-06-17 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * regformats/reg-arm.dat: Remove.
4042 * regformats/reg-bfin.dat: Remove.
4043 * regformats/reg-cris.dat: Remove.
4044 * regformats/reg-crisv32.dat: Remove.
4045 * regformats/reg-m32r.dat: Remove.
4046 * regformats/reg-tilegx.dat: Remove.
4047 * regformats/reg-tilegx32.dat: Remove.
4048
7d458ea5
SM
40492020-06-17 Simon Marchi <simon.marchi@efficios.com>
4050
4051 * features/Makefile (WHICH): Remove arm files.
4052 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4053 * regformats/arm/arm-with-neon.dat: Remove.
4054 * regformats/arm/arm-with-vfpv2.dat: Remove.
4055 * regformats/arm/arm-with-vfpv3.dat: Remove.
4056
3af96c0d
SM
40572020-06-17 Simon Marchi <simon.marchi@efficios.com>
4058
4059 * features/Makefile (XMLTOC): Remove rx.xml.
4060
b25e22fd
PA
40612020-06-17 Pedro Alves <palves@redhat.com>
4062
4063 * gdbthread.h (thread_control_state) <trap_expected> Update
4064 comments.
4065
a78a19b1
AB
40662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4067
4068 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4069 ada_language::lookup_symbol_nonlocal.
4070 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4071 (ada_language::lookup_symbol_nonlocal): New member function,
4072 implementation from ada_lookup_symbol_nonlocal.
4073 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4074 initializer.
4075 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4076 initializer.
4077 (cplus_language::lookup_symbol_nonlocal): New member function.
4078 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4079 (minimal_language_data) Likewise.
4080 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4081 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4082 initializer.
4083 (d_language::lookup_symbol_nonlocal): New member function.
4084 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4085 initializer.
4086 (f_language::lookup_symbol_nonlocal): New member function.
4087 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4088 initializer.
4089 * language.c (unknown_language_data): Likewise.
4090 (auto_language_data): Likewise.
4091 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4092 field.
4093 (language_defn::lookup_symbol_nonlocal): New member function.
4094 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4095 initializer.
4096 * objc-lang.c (objc_language_data): Likewise.
4097 * opencl-lang.c (opencl_language_data): Likewise.
4098 * p-lang.c (pascal_language_data): Likewise.
4099 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4100 rust_language::lookup_symbol_nonlocal.
4101 (rust_language_data): Delete la_lookup_symbol_nonlocal
4102 initializer.
4103 (rust_language::lookup_symbol_nonlocal): New member function,
4104 implementation from rust_lookup_symbol_nonlocal.
4105 * symtab.c (lookup_symbol_aux): Update call to
4106 lookup_symbol_nonlocal.
4107 (basic_lookup_symbol_nonlocal): Rename to...
4108 (language_defn::lookup_symbol_nonlocal): ...this, and update
4109 header comment. Remove language_defn parameter, and replace with
4110 uses of `this'.
4111 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4112
ebe2334e
AB
41132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4114
4115 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4116 initializer.
4117 (ada_language::value_print_inner): New member function.
4118 * c-lang.c (c_language_data): Delete la_value_print_inner
4119 initializer.
4120 (cplus_language_data): Likewise.
4121 (asm_language_data): Likewise.
4122 (minimal_language_data): Likewise.
4123 * d-lang.c (d_language_data): Likewise.
4124 (d_language::value_print_inner): New member function.
4125 * f-lang.c (f_language_data): Delete la_value_print_inner
4126 initializer.
4127 (f_language::value_print_inner): New member function.
4128 * f-lang.h (f_value_print_innner): Rename to...
4129 (f_value_print_inner): ...this (note spelling of 'inner').
4130 * f-valprint.c (f_value_print_innner): Rename to...
4131 (f_value_print_inner): ...this (note spelling of 'inner').
4132 * go-lang.c (go_language_data): Delete la_value_print_inner
4133 initializer.
4134 (go_language::value_print_inner): New member function.
4135 * language.c (language_defn::value_print_inner): Define new member
4136 function.
4137 (unk_lang_value_print_inner): Delete.
4138 (unknown_language_data): Delete la_value_print_inner initializer.
4139 (unknown_language::value_print_inner): New member function.
4140 (auto_language_data): Delete la_value_print_inner initializer.
4141 (auto_language::value_print_inner): New member function.
4142 * language.h (language_data): Delete la_value_print_inner field.
4143 (language_defn::value_print_inner): Delcare new member function.
4144 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4145 initializer.
4146 (m2_language::value_print_inner): New member function.
4147 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4148 initializer.
4149 * opencl-lang.c (opencl_language_data): Likewise.
4150 * p-lang.c (pascal_language_data): Likewise.
4151 (pascal_language::value_print_inner): New member function.
4152 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4153 initializer.
4154 (rust_language::value_print_inner): New member function.
4155 * valprint.c (do_val_print): Update call to value_print_inner.
4156
a1d1fa3e
AB
41572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4158
4159 * ada-lang.c (ada_language_data): Delete la_value_print
4160 initializer.
4161 (ada_language::value_print): New member function.
4162 * c-lang.c (c_language_data): Delete la_value_print initializer.
4163 (cplus_language_data): Likewise.
4164 (asm_language_data): Likewise.
4165 (minimal_language_data): Likewise.
4166 * d-lang.c (d_language_data): Likewise.
4167 * f-lang.c (f_language_data): Likewise.
4168 * go-lang.c (go_language_data): Likewise.
4169 * language.c (unk_lang_value_print): Delete.
4170 (language_defn::value_print): Define new member function.
4171 (unknown_language_data): Delete la_value_print initializer.
4172 (unknown_language::value_print): New member function.
4173 (auto_language_data): Delete la_value_print initializer.
4174 (auto_language::value_print): New member function.
4175 * language.h (language_data): Delete la_value_print field.
4176 (language_defn::value_print): Declare new member function.
4177 (LA_VALUE_PRINT): Update call to value_print.
4178 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4179 * objc-lang.c (objc_language_data): Likewise.
4180 * opencl-lang.c (opencl_language_data): Likewise.
4181 * p-lang.c (pascal_language_data): Likewise.
4182 (pascal_language::value_print): New member function.
4183 * rust-lang.c (rust_language_data): Delete la_value_print
4184 initializer.
4185
f16a9f57
AB
41862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4187
4188 * ada-lang.c (ada_watch_location_expression): Rename to
4189 ada_language::watch_location_expression.
4190 (ada_language_data): Delete la_watch_location_expression
4191 initializer.
4192 (ada_language::watch_location_expression): New member function,
4193 implementation from ada_watch_location_expression.
4194 * breakpoint.c (watch_command_1): Update call to
4195 watch_location_expression.
4196 * c-lang.c (c_watch_location_expression): Rename to
4197 language_defn::watch_location_expression.
4198 (c_language_data): Delete la_watch_location_expression
4199 initializer.
4200 (cplus_language_data): Likewise.
4201 (asm_language_data): Likewise.
4202 (minimal_language_data): Likewise.
4203 * c-lang.h (c_watch_location_expression): Delete declaration.
4204 * d-lang.c (d_language_data): Delete la_watch_location_expression
4205 initializer.
4206 * f-lang.c (f_language_data): Likewise.
4207 * go-lang.c (go_language_data): Likewise.
4208 * language.c (language_defn::watch_location_expression): Member
4209 function implementation from c_watch_location_expression.
4210 (unknown_language_data): Delete la_watch_location_expression
4211 initializer.
4212 (auto_language_data): Likewise.
4213 * language.h (language_data): Delete la_watch_location_expression
4214 field.
4215 (language_defn::watch_location_expression): Declare new member
4216 function.
4217 * m2-lang.c (m2_language_data): Delete
4218 la_watch_location_expression initializer.
4219 * objc-lang.c (objc_language_data): Likewise.
4220 * opencl-lang.c (opencl_language_data): Likewise.
4221 * p-lang.c (pascal_language_data): Likewise.
4222 * rust-lang.c (rust_watch_location_expression): Rename to
4223 rust_language::watch_location_expression.
4224 (rust_language_data): Delete la_watch_location_expression
4225 initializer.
4226 (rust_language::watch_location_expression): New member function,
4227 implementation from rust_watch_location_expression.
4228
7e56227d
AB
42292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4230
4231 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4232 ada_language::collect_symbol_completion_matches.
4233 (ada_language_data): Delete la_collect_symbol_completion_matches
4234 initializer.
4235 (ada_language::collect_symbol_completion_matches): New member
4236 function, implementation from
4237 ada_collect_symbol_completion_matches.
4238 * c-lang.c (c_language_data): Delete
4239 la_collect_symbol_completion_matches initializer.
4240 (cplus_language_data): Likewise.
4241 (asm_language_data): Likewise.
4242 (minimal_language_data): Likewise.
4243 * d-lang.c (d_language_data): Likewise.
4244 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4245 f_language::collect_symbol_completion_matches.
4246 (f_language_data): Delete la_collect_symbol_completion_matches
4247 initializer.
4248 (f_language::collect_symbol_completion_matches) New member
4249 function, implementation from f_collect_symbol_completion_matches.
4250 * go-lang.c (go_language_data): Delete
4251 la_collect_symbol_completion_matches initializer.
4252 * language.c (unknown_language_data): Likewise.
4253 (auto_language_data): Likewise.
4254 * language.h (language_data): Delete
4255 la_collect_symbol_completion_matches field.
4256 (language_defn::collect_symbol_completion_matches): New member
4257 function.
4258 * m2-lang.c (m2_language_data): Delete
4259 la_collect_symbol_completion_matches initializer.
4260 * objc-lang.c (objc_language_data): Likewise.
4261 * opencl-lang.c (opencl_language_data): Likewise.
4262 * p-lang.c (pascal_language_data): Likewise.
4263 * rust-lang.c (rust_language_data): Likewise.
4264 * symtab.c (default_collect_symbol_completion_matches): Delete.
4265 (collect_symbol_completion_matches): Update call to
4266 collect_symbol_completion_matches.
4267 (collect_symbol_completion_matches_type): Likewise.
4268 * symtab.h (default_collect_symbol_completion_matches): Delete
4269 declaration.
4270
53fc67f8
AB
42712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4272
4273 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4274 (ada_language_data): Delete la_word_break_characters initializer.
4275 (ada_language::word_break_characters): New member function.
4276 * c-lang.c (c_language_data): Delete la_word_break_characters
4277 initializer.
4278 (cplus_language_data): Likewise.
4279 (asm_language_data): Likewise.
4280 (minimal_language_data): Likewise.
4281 * completer.c: Update global comment.
4282 (advance_to_expression_complete_word_point): Update call to
4283 word_break_characters.
4284 (complete_files_symbols): Likewise.
4285 (complete_line_internal_1): Likewise.
4286 (default_completer_handle_brkchars): Likewise.
4287 (skip_quoted_chars): Likewise.
4288 * d-lang.c (d_language_data): Delete la_word_break_characters
4289 initializer.
4290 * f-lang.c (f_word_break_characters): Delete.
4291 (f_language_data): Delete la_word_break_characters initializer.
4292 (f_language::word_break_characters): New member function.
4293 * go-lang.c (go_language_data): Delete la_word_break_characters
4294 initializer.
4295 * language.c (unknown_language_data): Likewise.
4296 (auto_language_data): Likewise.
4297 * language.h (default_word_break_characters): Move declaration to
4298 earlier in the file.
4299 (language_data): Delete la_word_break_characters field.
4300 (language_defn::word_break_characters): New member function.
4301 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4302 initializer.
4303 * objc-lang.c (objc_language_data): Likewise.
4304 * opencl-lang.c (opencl_language_data): Likewise.
4305 * p-lang.c (pascal_language_data): Likewise.
4306 * rust-lang.c (rust_language_data): Likewise.
4307
c9debfb9
AB
43082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4309
4310 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4311 (ada_language_data): Delete la_get_symbol_name_matcher
4312 initializer.
4313 (language_defn::get_symbol_name_matcher_inner): New member
4314 function.
4315 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4316 initializer.
4317 (cplus_language_data): Likewise.
4318 (cplus_language::get_symbol_name_matcher_inner): New member
4319 function.
4320 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4321 (minimal_language_data): Likewise.
4322 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4323 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4324 initializer.
4325 * dictionary.c (iter_match_first_hashed): Update call to
4326 get_symbol_name_matcher.
4327 (iter_match_next_hashed): Likewise.
4328 (iter_match_next_linear): Likewise.
4329 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4330 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4331 initializer.
4332 (f_language::get_symbol_name_matcher_inner): New member function.
4333 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4334 initializer.
4335 * language.c (default_symbol_name_matcher): Update header comment,
4336 make static.
4337 (language_defn::get_symbol_name_matcher): New definition.
4338 (language_defn::get_symbol_name_matcher_inner): Likewise.
4339 (get_symbol_name_matcher): Delete.
4340 (unknown_language_data): Delete la_get_symbol_name_matcher
4341 initializer.
4342 (auto_language_data): Likewise.
4343 * language.h (language_data): Delete la_get_symbol_name_matcher
4344 field.
4345 (language_defn::get_symbol_name_matcher): New member function.
4346 (language_defn::get_symbol_name_matcher_inner): Likewise.
4347 (default_symbol_name_matcher): Delete declaration.
4348 * linespec.c (find_methods): Update call to
4349 get_symbol_name_matcher.
4350 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4351 initializer.
4352 * minsyms.c (lookup_minimal_symbol): Update call to
4353 get_symbol_name_matcher.
4354 (iterate_over_minimal_symbols): Likewise.
4355 * objc-lang.c (objc_language_data): Delete
4356 la_get_symbol_name_matcher initializer.
4357 * opencl-lang.c (opencl_language_data): Likewise.
4358 * p-lang.c (pascal_language_data): Likewise.
4359 * psymtab.c (psymbol_name_matches): Update call to
4360 get_symbol_name_matcher.
4361 * rust-lang.c (rust_language_data): Delete
4362 la_get_symbol_name_matcher initializer.
4363 * symtab.c (symbol_matches_search_name): Update call to
4364 get_symbol_name_matcher.
4365 (compare_symbol_name): Likewise.
4366
9a49ad8c
AB
43672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4368
4369 * ada-lang.c (ada_language_data): Delete la_compute_program
4370 initializer.
4371 * c-lang.c (c_language_data): Likewise.
4372 (c_language::compute_program): New member function.
4373 (cplus_language_data): Delete la_compute_program initializer.
4374 (cplus_language::compute_program): New member function.
4375 (asm_language_data): Delete la_compute_program initializer.
4376 (minimal_language_data): Likewise.
4377 * c-lang.h (c_compute_program): Update comment.
4378 (cplus_compute_program): Likewise.
4379 * compile/compile-c-support.c (c_compute_program): Likewise.
4380 (cplus_compute_program): Likewise.
4381 * compile/compile.c (compile_to_object): Update call to
4382 la_compute_program.
4383 * d-lang.c (d_language_data): Delete la_compute_program
4384 initializer.
4385 * f-lang.c (f_language_data): Likewise.
4386 * go-lang.c (go_language_data): Likewise.
4387 * language.c (unknown_language_data): Likewise.
4388 (auto_language_data): Likewise.
4389 * language.h (language_data): Delete la_compute_program field.
4390 (language_defn::compute_program): New member function.
4391 * m2-lang.c (m2_language_data): Delete la_compute_program
4392 initializer.
4393 * objc-lang.c (objc_language_data): Likewise.
4394 * opencl-lang.c (opencl_language_data): Likewise.
4395 * p-lang.c (pascal_language_data): Likewise.
4396 * rust-lang.c (rust_language_data): Likewise.
4397
eff93b4d
AB
43982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4399
4400 * ada-lang.c (ada_language_data) Delete
4401 la_class_name_from_physname initializer.
4402 * c-lang.c (c_language_data): Likewise.
4403 (cplus_language_data): Likewise.
4404 (cplus_language::class_name_from_physname): New member function.
4405 (asm_language_data): Delete la_class_name_from_physname
4406 initializer.
4407 (minimal_language_data): Likewise.
4408 * d-lang.c (d_language_data): Likewise.
4409 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4410 method on language_defn class.
4411 (guess_full_die_structure_name): Likewise.
4412 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4413 initializer.
4414 * go-lang.c (go_language_data): Likewise.
4415 * language.c (language_class_name_from_physname): Delete.
4416 (unk_lang_class_name): Delete.
4417 (unknown_language_data): Delete la_class_name_from_physname
4418 initializer.
4419 (auto_language_data): Likewise.
4420 * language.h (language_data): Delete la_class_name_from_physname
4421 field.
4422 (language_defn::class_name_from_physname): New function.
4423 (language_class_name_from_physname): Delete declaration.
4424 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4425 initializer.
4426 * objc-lang.c (objc_language_data): Likewise.
4427 * opencl-lang.c (opencl_language_data): Likewise.
4428 * p-lang.c (pascal_language_data): Likewise.
4429 * rust-lang.c (rust_language_data): Likewise.
4430
de543742
TT
44312020-06-16 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui-data.h (STATUS_NAME): New macro.
4434 * tui/tui-layout.c (tui_remove_some_windows)
4435 (initialize_known_windows, tui_register_window)
4436 (tui_layout_split::remove_windows, initialize_layouts)
4437 (tui_new_layout_command): Don't use hard-coded window names.
4438
a350efd4
TT
44392020-06-16 Tom Tromey <tom@tromey.com>
4440
4441 PR tui/25348:
4442 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4443 tui_initialize_readline. Only run once. Call rl_initialize.
4444 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4445 tui_initialize_readline.
4446 * tui/tui-io.c (tui_setup_io): Call
4447 tui_ensure_readline_initialized.
4448 * tui/tui-interp.c (tui_interp::init): Update.
4449
39ec0490
TT
44502020-06-16 Tom Tromey <tom@tromey.com>
4451
4452 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4453 Also preserve the status window.
4454
d2d1ea20
TT
44552020-06-16 Tom Tromey <tom@tromey.com>
4456
4457 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4458 where m_window==nullptr.
4459
66920317
TT
44602020-06-15 Tom Tromey <tromey@adacore.com>
4461
4462 * windows-nat.c (windows_nat::handle_output_debug_string):
4463 Update.
4464 (windows_nat::handle_ms_vc_exception): Update.
4465 * target.h (target_read_string): Change API.
4466 * target.c (target_read_string): Change API.
4467 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4468 Update.
4469 * solib-frv.c (frv_current_sos): Update.
4470 * solib-dsbt.c (dsbt_current_sos): Update.
4471 * solib-darwin.c (darwin_current_sos): Update.
4472 * linux-thread-db.c (inferior_has_bug): Update.
4473 * expprint.c (print_subexp_standard): Update.
4474 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4475 (ada_exception_message_1): Update.
4476
a5d871dd
TT
44772020-06-15 Tom Tromey <tromey@adacore.com>
4478
4479 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4480
670e35fa
TT
44812020-06-15 Tom Tromey <tromey@adacore.com>
4482
4483 * valprint.c (read_string): Update comment.
4484 * target.c (MIN): Remove.
4485 (target_read_string): Rewrite.
4486
f5272a3b
TT
44872020-06-15 Tom Tromey <tromey@adacore.com>
4488
4489 * corefile.c (read_memory_string): Remove.
4490 * ada-valprint.c (ada_value_print_ptr): Update.
4491 * ada-lang.h (ada_tag_name): Change return type.
4492 * ada-lang.c (type_from_tag): Update.
4493 (ada_tag_name_from_tsd): Change return type. Use
4494 target_read_string.
4495 (ada_tag_name): Likewise.
4496 * gdbcore.h (read_memory_string): Don't declare.
4497
2c074f49
HD
44982020-06-14 Hannes Domani <ssbssa@yahoo.de>
4499
4500 * symtab.c (rbreak_command): Ignore Windows drive colon.
4501
6a17d503
SM
45022020-06-12 Simon Marchi <simon.marchi@efficios.com>
4503
4504 * NEWS: Mention removed GDBserver host support.
4505
453c733f
NC
45062020-06-12 Nelson Chu <nelson.chu@sifive.com>
4507
4508 * features/riscv/rebuild-csr-xml.sh: Updated.
4509
2b4e6a3f
TT
45102020-06-11 Tom Tromey <tom@tromey.com>
4511
4512 PR gdb/18318:
4513 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4514
4412332f
JG
45152020-06-09 Jonny Grant <jg@jguk.org>
45162020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4517
4518 * main.c (captured_main_1): Don't print new line after help.
4519 (print_gdb_help): add mailing list and IRC channel information
4520 to --help. Add new lines between items in the footer. Remove
4521 quotes around bug url.
4522
2f33032a
KS
45232020-06-11 Keith Seitz <keiths@redhat.com>
4524
4525 PR gdb/21356
4526 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4527 Resolve typedefs for type length calculations.
4528
7ab96794
TV
45292020-06-10 Tom de Vries <tdevries@suse.de>
4530
4531 PR ada/24713
4532 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4533 (write_psymbols): Enable .gdb_index for ada.
4534 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4535 ada.
4536
e5f3ece2
TV
45372020-06-10 Tom de Vries <tdevries@suse.de>
4538
4539 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4540 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4541 namei" instead of "const char *name" argument.
4542 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4543 dw2_symtab_iter_init.
4544
940da03e
SM
45452020-06-08 Simon Marchi <simon.marchi@efficios.com>
4546
4547 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4548 to use type::field and field::type instead.
4549
b6cdac4b
SM
45502020-06-08 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4553 to use field::type instead.
4554
5d14b6e5
SM
45552020-06-08 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * gdbtypes.h (struct field) <type, set_type>: New methods.
4558 Rename `type` field to...
4559 <m_type>: ... this. Change references throughout to use type or
4560 set_type methods.
4561 (FIELD_TYPE): Use field::type. Change call sites that modify
4562 the field's type to use field::set_type instead.
4563
3d967001
SM
45642020-06-08 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4567 to use type::index_type instead.
4568
262abc0d
SM
45692020-06-08 Simon Marchi <simon.marchi@efficios.com>
4570
4571 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4572 methods.
4573 (TYPE_INDEX_TYPE): Use type::index_type.
4574 * gdbtypes.c (create_array_type_with_stride): Likewise.
4575
82836c92
TT
45762020-06-07 Tom Tromey <tom@tromey.com>
4577
4578 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4579 parameter.
4580 (generic_value_print): Update.
4581
940dace9
AB
45822020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4583
4584 Revert commit 982a38f60b0.
4585 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4586
982a38f6
AB
45872020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4588
4589 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4590 avoid use after free.
4591
82f06518
TV
45922020-06-05 Tom de Vries <tdevries@suse.de>
4593
4594 * NEWS: Fix typos.
4595
f8c41851
SM
45962020-06-04 Simon Marchi <simon.marchi@efficios.com>
4597
4598 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4599 the per_bfd object.
4600 (dwarf2_read_debug_names): Likewise.
4601 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4602 object when re-using a per_bfd object with an index.
4603
f9b5d5ea
TV
46042020-06-03 Tom de Vries <tdevries@suse.de>
4605
4606 PR symtab/26046
4607 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4608 children for C++.
4609 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4610 DW_TAG_subprogram.
4611
f6eee2d0
AB
46122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4613
4614 * ada-lang.c (ada_language_data): Delete skip_trampoline
4615 initializer.
4616 * c-lang.c (c_language_data): Likewise.
4617 (cplus_language_data): Likewise.
4618 (cplus_language::skip_trampoline): New member function.
4619 (asm_language_data): Delete skip_trampoline initializer.
4620 (minimal_language_data): Likewise.
4621 * d-lang.c (d_language_data): Likewise.
4622 * f-lang.c (f_language_data): Likewise.
4623 * go-lang.c (go_language_data): Likewise.
4624 * language.c (unk_lang_trampoline): Delete function.
4625 (skip_language_trampoline): Update.
4626 (unknown_language_data): Delete skip_trampoline initializer.
4627 (auto_language_data): Likewise.
4628 * language.h (language_data): Delete skip_trampoline field.
4629 (language_defn::skip_trampoline): New function.
4630 * m2-lang.c (m2_language_data): Delete skip_trampoline
4631 initializer.
4632 * objc-lang.c (objc_skip_trampoline): Delete function, move
4633 implementation to objc_language::skip_trampoline.
4634 (objc_language_data): Delete skip_trampoline initializer.
4635 (objc_language::skip_trampoline): New member function with
4636 implementation from objc_skip_trampoline.
4637 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4638 initializer.
4639 * p-lang.c (pascal_language_data): Likewise.
4640 * rust-lang.c (rust_language_data): Likewise.
4641
0a50df5d
AB
46422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4643
4644 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4645 (ada_language::demangle): New member function.
4646 * c-lang.c (c_language_data): Delete la_demangle initializer.
4647 (cplus_language_data): Delete la_demangle initializer.
4648 (cplus_language::demangle): New member function.
4649 (asm_language_data): Delete la_demangle initializer.
4650 (minimal_language_data): Delete la_demangle initializer.
4651 * d-lang.c (d_language_data): Delete la_demangle initializer.
4652 (d_language::demangle): New member function.
4653 * f-lang.c (f_language_data): Delete la_demangle initializer.
4654 (f_language::demangle): New member function.
4655 * go-lang.c (go_language_data): Delete la_demangle initializer.
4656 (go_language::demangle): New member function.
4657 * language.c (language_demangle): Update.
4658 (unk_lang_demangle): Delete.
4659 (unknown_language_data): Delete la_demangle initializer.
4660 (unknown_language::demangle): New member function.
4661 (auto_language_data): Delete la_demangle initializer.
4662 (auto_language::demangle): New member function.
4663 * language.h (language_data): Delete la_demangle field.
4664 (language_defn::demangle): New function.
4665 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4666 * objc-lang.c (objc_language_data): Delete la_demangle
4667 initializer.
4668 (objc_language::demangle): New member function.
4669 * opencl-lang.c (opencl_language_data): Delete la_demangle
4670 initializer.
4671 * p-lang.c (pascal_language_data): Likewise.
4672 * rust-lang.c (rust_language_data): Likewise.
4673 (rust_language::demangle): New member function.
4674
fbfb0a46
AB
46752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4676
4677 * ada-lang.c (ada_language_data): Delete la_print_type
4678 initializer.
4679 (ada_language::print_type): New member function.
4680 * c-lang.c (c_language_data): Delete la_print_type initializer.
4681 (c_language::print_type): New member function.
4682 (cplus_language_data): Delete la_print_type initializer.
4683 (cplus_language::print_type): New member function.
4684 (asm_language_data): Delete la_print_type initializer.
4685 (asm_language::print_type): New member function.
4686 (minimal_language_data): Delete la_print_type initializer.
4687 (minimal_language::print_type): New member function.
4688 * d-lang.c (d_language_data): Delete la_print_type initializer.
4689 (d_language::print_type): New member function.
4690 * f-lang.c (f_language_data): Delete la_print_type initializer.
4691 (f_language::print_type): New member function.
4692 * go-lang.c (go_language_data): Delete la_print_type initializer.
4693 (go_language::print_type): New member function.
4694 * language.c (unk_lang_print_type): Delete.
4695 (unknown_language_data): Delete la_print_type initializer.
4696 (unknown_language::print_type): New member function.
4697 (auto_language_data): Delete la_print_type initializer.
4698 (auto_language::print_type): New member function.
4699 * language.h (language_data): Delete la_print_type field.
4700 (language_defn::print_type): New function.
4701 (LA_PRINT_TYPE): Update.
4702 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4703 (m2_language::print_type): New member function.
4704 * objc-lang.c (objc_language_data): Delete la_print_type
4705 initializer.
4706 (objc_language::print_type): New member function.
4707 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4708 to opencl_language::print_type.
4709 (opencl_language_data): Delete la_print_type initializer.
4710 (opencl_language::print_type): New member function, implementation
4711 from opencl_print_type.
4712 * p-lang.c (pascal_language_data): Delete la_print_type
4713 initializer.
4714 (pascal_language::print_type): New member function.
4715 * rust-lang.c (rust_print_type): Delete, implementation moved to
4716 rust_language::print_type.
4717 (rust_language_data): Delete la_print_type initializer.
4718 (rust_language::print_type): New member function, implementation
4719 from rust_print_type.
4720
6f827019
AB
47212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4722
4723 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4724 implementation moves to...
4725 (ada_language::sniff_from_mangled_name): ...here. Update return
4726 type.
4727 (ada_language_data): Delete la_sniff_from_mangled_name
4728 initializer.
4729 * c-lang.c (c_language_data): Likewise.
4730 (cplus_language_data): Likewise.
4731 (cplus_language::sniff_from_mangled_name): New member function,
4732 implementation taken from gdb_sniff_from_mangled_name.
4733 (asm_language_data): Delete la_sniff_from_mangled_name
4734 initializer.
4735 (minimal_language_data): Likewise.
4736 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4737 implementation moves to cplus_language::sniff_from_mangled_name.
4738 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4739 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4740 moves to...
4741 (d_language::sniff_from_mangled_name): ...here.
4742 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4743 * f-lang.c (f_language_data): Likewise.
4744 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4745 moves to...
4746 (go_language::sniff_from_mangled_name): ...here.
4747 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4748 * language.c (language_sniff_from_mangled_name): Delete.
4749 (unknown_language_data): Delete la_sniff_from_mangled_name
4750 initializer.
4751 (auto_language_data): Likewise.
4752 * language.h (language_data): Delete la_sniff_from_mangled_name
4753 field.
4754 (language_defn::sniff_from_mangled_name): New function.
4755 (language_sniff_from_mangled_name): Delete declaration.
4756 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4757 field.
4758 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4759 implementation moves to...
4760 (objc_language::sniff_from_mangled_name): ...here.
4761 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4762 * opencl-lang.c (opencl_language_data): Likewise.
4763 * p-lang.c (pascal_language_data): Likewise.
4764 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4765 implementation moves to...
4766 (rust_language::sniff_from_mangled_name): ...here.
4767 (rust_language_data): Delete la_sniff_from_mangled_name
4768 initializer.
4769 * symtab.c (symbol_find_demangled_name): Call
4770 sniff_from_mangled_name member function.
4771
fb8006fd
AB
47722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4773
4774 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4775 initializer.
4776 * c-lang.c (c_language_data): Likewise.
4777 (cplus_language_data): Likewise.
4778 (cplus_language::search_name_hash): New member function.
4779 (asm_language_data): Delete la_search_name_hash initializer.
4780 (minimal_language_data): Likewise.
4781 * d-lang.c (d_language_data): Likewise.
4782 * dictionary.c (default_search_name_hash): Rename to...
4783 (language_defn::search_name_hash): ...this.
4784 * f-lang.c (f_language_data): Likewise.
4785 (f_language::search_name_hash): New member function.
4786 * go-lang.c (go_language_data): Delete la_search_name_hash
4787 initializer.
4788 * language.c (unknown_language_data): Likewise.
4789 (auto_language_data): Likewise.
4790 * language.h (struct language_data): Delete la_search_name_hash
4791 field.
4792 (language_defn::search_name_hash): Declare new member function.
4793 (default_search_name_hash): Delete declaration.
4794 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4795 initializer.
4796 * objc-lang.c (objc_language_data): Likewise.
4797 * opencl-lang.c (opencl_language_data): Likewise.
4798 * p-lang.c (pascal_language_data): Likewise.
4799 * rust-lang.c (rust_language_data): Likewise.
4800 * symtab.c (search_name_hash): Update call.
4801
8e25bafe
AB
48022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4803
4804 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4805 initializer.
4806 * c-lang.c (class compile_instance): Declare.
4807 (c_language_data): Delete la_get_compile_instance initializer.
4808 (c_language::get_compile_instance): New member function.
4809 (cplus_language_data): Delete la_get_compile_instance initializer.
4810 (cplus_language::get_compile_instance): New member function.
4811 (asm_language_data): Delete la_get_compile_instance initializer.
4812 (minimal_language_data): Likewise.
4813 * c-lang.h (c_get_compile_context): Update comment.
4814 (cplus_get_compile_context): Update comment.
4815 * compile/compile.c (compile_to_object): Update calls, don't rely
4816 on function pointer being NULL.
4817 * d-lang.c (d_language_data): Delete la_get_compile_instance
4818 initializer.
4819 * f-lang.c (f_language_data): Likewise.
4820 * go-lang.c (go_language_data): Likewise.
4821 * language.c (unknown_language_data): Likewise.
4822 (auto_language_data): Likewise.
4823 * language.h (language_data): Delete la_get_compile_instance field.
4824 (language_defn::get_compile_instance): New member function.
4825 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4826 initializer.
4827 * objc-lang.c (objc_language_data): Likewise.
4828 * opencl-lang.c (opencl_language_data): Likewise.
4829 * p-lang.c (pascal_language_data): Likewise.
4830 * rust-lang.c (rust_language_data): Likewise.
4831
4009ee92
AB
48322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4833
4834 * ada-lang.c (ada_add_all_symbols): Update comment.
4835 (ada_iterate_over_symbols): Delete, move implementation to...
4836 (ada_language::iterate_over_symbols): ...here, a new member
4837 function, rewrite to use range based for loop.
4838 (ada_language_data): Delete la_iterate_over_symbols initializer.
4839 * c-lang.c (c_language_data): Likewise.
4840 (cplus_language_data): Likewise.
4841 (asm_language_data): Likewise.
4842 (minimal_language_data): Likewise.
4843 * d-lang.c (d_language_data): Likewise.
4844 * f-lang.c (f_language_data): Likewise.
4845 * go-lang.c (go_language_data): Likewise.
4846 * language.c (unknown_language_data): Likewise.
4847 (auto_language_data): Likewise.
4848 * language.h (language_data): Delete la_iterate_over_symbols field.
4849 (language_defn::iterate_over_symbols): New member function.
4850 (LA_ITERATE_OVER_SYMBOLS): Update.
4851 * linespec.c (iterate_over_all_matching_symtabs): Update.
4852 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4853 initializer.
4854 * objc-lang.c (objc_language_data): Likewise.
4855 * opencl-lang.c (opencl_language_data): Likewise.
4856 * p-lang.c (pascal_language_data): Likewise.
4857 * rust-lang.c (rust_language_data): Likewise.
4858
54f4ca46
AB
48592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4860
4861 * ada-lang.c (ada_language_data): Delete
4862 la_lookup_transparent_type initializer.
4863 * c-lang.c (c_language_data): Likewise.
4864 (cplus_language_data): Likewise.
4865 (cplus_language::lookup_transparent_type): New member function.
4866 (asm_language_data): Delete la_lookup_transparent_type
4867 initializer.
4868 (minimal_language_data): Likewise.
4869 * d-lang.c (d_language_data): Likewise.
4870 * f-lang.c (f_language_data): Likewise.
4871 * go-lang.c (go_language_data): Likewise.
4872 * language.c (unknown_language_data): Likewise.
4873 (auto_language_data): Likewise.
4874 * language.h (struct language_data): Delete
4875 la_lookup_transparent_type field.
4876 (language_defn::lookup_transparent_type): New member function.
4877 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4878 initializer.
4879 * objc-lang.c (objc_language_data): Likewise.
4880 * opencl-lang.c (opencl_language_data): Likewise.
4881 * p-lang.c (pascal_language_data): Likewise.
4882 * rust-lang.c (rust_language_data): Likewise.
4883 * symtab.c (symbol_matches_domain): Update call.
4884
1fb314aa
AB
48852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4886
4887 * ada-lang.c (ada_language_arch_info): Delete function, move
4888 implementation to...
4889 (ada_language::language_arch_info): ...here, a new member
4890 function.
4891 (ada_language_data): Delete la_language_arch_info.
4892 * c-lang.c (c_language_data): Likewise.
4893 (c_language::language_arch_info): New member function.
4894 (cplus_language_arch_info): Delete function, move
4895 implementation to...
4896 (cplus_language::language_arch_info): ...here, a new member
4897 function.
4898 (cplus_language_data): Delete la_language_arch_info.
4899 (asm_language_data): Likewise.
4900 (asm_language::language_arch_info): New member function.
4901 (minimal_language_data): Delete la_language_arch_info.
4902 (minimal_language::language_arch_info): New member function.
4903 * d-lang.c (d_language_arch_info): Delete function, move
4904 implementation to...
4905 (d_language::language_arch_info): ...here, a new member
4906 function.
4907 (d_language_data): Delete la_language_arch_info.
4908 * f-lang.c (f_language_arch_info): Delete function, move
4909 implementation to...
4910 (f_language::language_arch_info): ...here, a new member
4911 function.
4912 (f_language_data): Delete la_language_arch_info.
4913 * go-lang.c (go_language_arch_info): Delete function, move
4914 implementation to...
4915 (go_language::language_arch_info): ...here, a new member
4916 function.
4917 (go_language_data): Delete la_language_arch_info.
4918 * language.c (unknown_language_data): Likewise.
4919 (unknown_language::language_arch_info): New member function.
4920 (auto_language_data): Delete la_language_arch_info.
4921 (auto_language::language_arch_info): New member function.
4922 (language_gdbarch_post_init): Update call to
4923 la_language_arch_info.
4924 * language.h (language_data): Delete la_language_arch_info
4925 function pointer.
4926 (language_defn::language_arch_info): New function.
4927 * m2-lang.c (m2_language_arch_info): Delete function, move
4928 implementation to...
4929 (m2_language::language_arch_info): ...here, a new member
4930 function.
4931 (m2_language_data): Delete la_language_arch_info.
4932 * objc-lang.c (objc_language_arch_info): Delete function, move
4933 implementation to...
4934 (objc_language::language_arch_info): ...here, a new member
4935 function.
4936 (objc_language_data): Delete la_language_arch_info.
4937 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4938 implementation to...
4939 (opencl_language::language_arch_info): ...here, a new member
4940 function.
4941 (opencl_language_data): Delete la_language_arch_info.
4942 * p-lang.c (pascal_language_arch_info): Delete function, move
4943 implementation to...
4944 (pascal_language::language_arch_info): ...here, a new member
4945 function.
4946 (pascal_language_data): Delete la_language_arch_info.
4947 * rust-lang.c (rust_language_arch_info): Delete function, move
4948 implementation to...
4949 (rust_language::language_arch_info): ...here, a new member
4950 function.
4951 (rust_language_data): Delete la_language_arch_info.
4952
48448202
AB
49532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4954
4955 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4956 initializer.
4957 * c-lang.c (c_language_data): Likewise.
4958 (cplus_language_data): Likewise.
4959 (cplus_language::pass_by_reference_info): New method.
4960 (asm_language_data): Delete la_pass_by_reference initializer.
4961 (minimal_language_data): Likewise.
4962 * cp-abi.c (cp_pass_by_reference): Remove use of
4963 default_pass_by_reference.
4964 * d-lang.c (d_language_data): Likewise.
4965 * f-lang.c (f_language_data): Likewise.
4966 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4967 default_pass_by_reference.
4968 * go-lang.c (go_language_data): Likewise.
4969 * language.c (language_pass_by_reference): Update.
4970 (default_pass_by_reference): Delete.
4971 (unknown_language_data): Delete la_pass_by_reference
4972 initializer.
4973 (auto_language_data): Likewise.
4974 * language.h (struct language_data): Delete la_pass_by_reference
4975 field.
4976 (language_defn::pass_by_reference_info): New member function.
4977 (default_pass_by_reference): Delete declaration.
4978 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4979 initializer.
4980 * objc-lang.c (objc_language_data): Likewise.
4981 * opencl-lang.c (opencl_language_data): Likewise.
4982 * p-lang.c (pascal_language_data): Likewise.
4983 * rust-lang.c (rust_language_data): Likewise.
4984
15e5fd35
AB
49852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4986
4987 * ada-lang.c (ada_read_var_value): Delete function, move
4988 implementation to...
4989 (ada_language::read_var_value): ...here.
4990 (ada_language_data): Delete la_read_var_value initializer.
4991 * c-lang.c (c_language_data): Likewise.
4992 (cplus_language_data): Likewise.
4993 (minimal_language_data): Likewise.
4994 * d-lang.c (d_language_data): Likewise.
4995 * f-lang.c (f_language_data): Likewise.
4996 * findvar.c (default_read_var_value): Rename to...
4997 (language_defn::read_var_value): ...this.
4998 * findvar.c (read_var_value): Update header comment, and change to
4999 call member function instead of function pointer.
5000 * go-lang.c (go_language_data): Likewise.
5001 * language.c (unknown_language_data): Delete la_read_var_value
5002 initializer.
5003 (auto_language_data): Likewise.
5004 * language.h (struct language_data): Delete la_read_var_value
5005 field.
5006 (language_defn::read_var_value): New member function.
5007 (default_read_var_value): Delete declaration.
5008 * m2-lang.c (m2_language_data): Delete la_read_var_value
5009 initializer.
5010 * objc-lang.c (objc_language_data): Likewise.
5011 * opencl-lang.c (opencl_language_data): Likewise.
5012 * p-lang.c (pascal_language_data): Likewise.
5013 * rust-lang.c (rust_language_data): Likewise.
5014 * value.h (default_read_var_value): Delete declaration.
5015
5bd40f2a
AB
50162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5017
5018 * ada-lang.c (ada_print_array_index): Delete function, move
5019 implementation to...
5020 (ada_language::print_array_index): ...here.
5021 (ada_language_data): Delete la_print_array_index initializer.
5022 * c-lang.c (c_language_data): Likewise.
5023 (cplus_language_data): Likewise.
5024 (minimal_language_data): Likewise.
5025 * d-lang.c (d_language_data): Likewise.
5026 * f-lang.c (f_language_data): Likewise.
5027 * go-lang.c (go_language_data): Likewise.
5028 * language.c (default_print_array_index): Delete function, move
5029 implementation to...
5030 (language_defn::print_array_index): ...here.
5031 (unknown_language_data): Delete la_print_array_index initializer.
5032 (auto_language_data): Likewise.
5033 * language.h (struct language_data): Delete la_print_array_index
5034 field.
5035 (language_defn::print_array_index): New member function.
5036 (LA_PRINT_ARRAY_INDEX): Update.
5037 (default_print_array_index): Delete declaration.
5038 * m2-lang.c (m2_language_data): Delete la_print_array_index
5039 initializer.
5040 * objc-lang.c (objc_language_data): Likewise.
5041 * opencl-lang.c (opencl_language_data): Likewise.
5042 * p-lang.c (pascal_language_data): Likewise.
5043 * rust-lang.c (rust_language_data): Likewise.
5044
0874fd07
AB
50452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5046
5047 * gdb/ada-lang.c (ada_language_defn): Convert to...
5048 (ada_language_data): ...this.
5049 (class ada_language): New class.
5050 (ada_language_defn): New static global.
5051 * gdb/c-lang.c (c_language_defn): Convert to...
5052 (c_language_data): ...this.
5053 (class c_language): New class.
5054 (c_language_defn): New static global.
5055 (cplus_language_defn): Convert to...
5056 (cplus_language_data): ...this.
5057 (class cplus_language): New class.
5058 (cplus_language_defn): New static global.
5059 (asm_language_defn): Convert to...
5060 (asm_language_data): ...this.
5061 (class asm_language): New class.
5062 (asm_language_defn): New static global.
5063 (minimal_language_defn): Convert to...
5064 (minimal_language_data): ...this.
5065 (class minimal_language): New class.
5066 (minimal_language_defn): New static global.
5067 * gdb/d-lang.c (d_language_defn): Convert to...
5068 (d_language_data): ...this.
5069 (class d_language): New class.
5070 (d_language_defn): New static global.
5071 * gdb/f-lang.c (f_language_defn): Convert to...
5072 (f_language_data): ...this.
5073 (class f_language): New class.
5074 (f_language_defn): New static global.
5075 * gdb/go-lang.c (go_language_defn): Convert to...
5076 (go_language_data): ...this.
5077 (class go_language): New class.
5078 (go_language_defn): New static global.
5079 * gdb/language.c (unknown_language_defn): Remove declaration.
5080 (current_language): Initialize to nullptr, real initialization is
5081 moved to _initialize_language.
5082 (languages): Delete global.
5083 (language_defn::languages): Define.
5084 (set_language_command): Use language_defn::languages.
5085 (set_language): Likewise.
5086 (range_error): Likewise.
5087 (language_enum): Likewise.
5088 (language_def): Likewise.
5089 (add_set_language_command): Use language_def::languages for the
5090 language list, and language_def to lookup language pointers.
5091 (skip_language_trampoline): Use language_defn::languages.
5092 (unknown_language_defn): Convert to...
5093 (unknown_language_data): ...this.
5094 (class unknown_language): New class.
5095 (unknown_language_defn): New static global.
5096 (auto_language_defn): Convert to...
5097 (auto_language_data): ...this.
5098 (class auto_language): New class.
5099 (auto_language_defn): New static global.
5100 (language_gdbarch_post_init): Use language_defn::languages.
5101 (_initialize_language): Initialize current_language.
5102 * gdb/language.h (struct language_defn): Rename to...
5103 (struct language_data): ...this.
5104 (struct language_defn): New.
5105 (auto_language_defn): Delete.
5106 (unknown_language_defn): Delete.
5107 (minimal_language_defn): Delete.
5108 (ada_language_defn): Delete.
5109 (asm_language_defn): Delete.
5110 (c_language_defn): Delete.
5111 (cplus_language_defn): Delete.
5112 (d_language_defn): Delete.
5113 (f_language_defn): Delete.
5114 (go_language_defn): Delete.
5115 (m2_language_defn): Delete.
5116 (objc_language_defn): Delete.
5117 (opencl_language_defn): Delete.
5118 (pascal_language_defn): Delete.
5119 (rust_language_defn): Delete.
5120 * gdb/m2-lang.c (m2_language_defn): Convert to...
5121 (m2_language_data): ...this.
5122 (class m2_language): New class.
5123 (m2_language_defn): New static global.
5124 * gdb/objc-lang.c (objc_language_defn): Convert to...
5125 (objc_language_data): ...this.
5126 (class objc_language): New class.
5127 (objc_language_defn): New static global.
5128 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5129 (opencl_language_data): ...this.
5130 (class opencl_language): New class.
5131 (opencl_language_defn): New static global.
5132 * gdb/p-lang.c (pascal_language_defn): Convert to...
5133 (pascal_language_data): ...this.
5134 (class pascal_language): New class.
5135 (pascal_language_defn): New static global.
5136 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5137 language pointer, update comment format.
5138 * gdb/rust-lang.c (rust_language_defn): Convert to...
5139 (rust_language_data): ...this.
5140 (class rust_language): New class.
5141 (rust_language_defn): New static global.
5142
1313c56e
AB
51432020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5144
5145 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5146 member variable.
5147 <m_stmt_at_address>: New member variable.
5148 (lnp_state_machine::record_line): Don't record some lines, update
5149 tracking of is_stmt at the same address.
5150 (lnp_state_machine::lnp_state_machine): Initialise new member
5151 variables.
5152
b7ed9f3d
ST
51532020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5154
5155 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5156 "-include gnu-nat-mig.h".
5157 * gnu-nat-mig.h: New file.
5158 * gnu-nat.c: Include "gnu-nat-mig.h".
5159 (exc_server, msg_reply_server, notify_server,
5160 process_reply_server): Remove declarations.
5161
14a8ad62
ST
51622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5163
5164 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5165 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5166 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5167 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5168 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5169 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5170 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5171 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5172 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5173 to gnu_nat_target class.
5174 * gnu-nat.c: Likewise.
5175 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5176 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5177 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5178 object.
5179 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5180 instead of `gnu_target'.
5181
0af5e106
ST
51822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5183
5184 * i386-gnu-tdep.c: Include "gdbcore.h"
5185 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5186 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5187 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5188 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5189 i386_gnu_sigcontext_addr): New functions
5190 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5191 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5192 tdep.
5193
078f2fc9
ST
51942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5195
5196 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5197 before fork_inferior call. Avoid calling it if target_is_pushed returns
5198 true.
5199
53dff92c
ST
52002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5201
5202 * gnu-nat.h (gnu_target): New variable declaration.
5203 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5204 gnu_target.
5205 * gnu-nat.c (gnu_target): New variable.
5206 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5207 add_thread_silent, and add_thread calls.
5208 (gnu_nat_target::create_inferior): Pass gnu_target to
5209 add_thread_silent, thread_change_ptid call.
5210 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5211 call.
5212
5a8b8627
ST
52132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5214
5215 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5216 (gnu_nat_target::find_memory_regions): Remove unused
5217 `old_address' variable.
5218
366f550a
ST
52192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5220
5221 * gnu-nat.c: Include "gdbarch.h".
5222
f14871bf
ST
52232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5224
5225 * reply_mig_hack.awk (Error return): Cast function through
5226 void *, to bypass compiler function call check.
5227
c6887cfb
ST
52282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5229
5230 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5231 $(srcdir)/reply_mig_hack.awk.
5232
6930bffe
ST
52332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5234
5235 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5236
112c22ed
JG
52372020-05-30 Jonny Grant <jg@jguk.org>
5238
5239 * configure.ac (ACX_BUGURL): change bug URL to https.
5240
f68f85b5
PA
52412020-05-30 Pedro Alves <palves@redhat.com>
5242
5243 * cp-support.c (replace_typedefs_template): New.
5244 (replace_typedefs_qualified_name): Handle
5245 DEMANGLE_COMPONENT_TEMPLATE.
5246
976ca316
SM
52472020-05-29 Simon Marchi <simon.marchi@efficios.com>
5248
5249 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5250 dwarf2/index-cache.h, dwarf2/index-write.c,
5251 dwarf2/index-write.h, dwarf2/line-header.c,
5252 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5253 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5254 variables and fields from `dwarf2_per_objfile` to just
5255 `per_objfile` throughout.
5256
989ade05
SM
52572020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5258
5259 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5260 <push_dwarf_reg_entry_value>: Add comment.
5261
c47bae85
KB
52622020-05-28 Kevin Buettner <kevinb@redhat.com>
5263 Keith Seitz <keiths@redhat.com>
5264
5265 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5266 instead of PyEval_ReleaseLock.
5267 (class gdbpy_gil): Move to earlier in file.
5268 (finalize_python): Set gdb_python_initialized.
5269 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5270 when not initialized.
5271
44486dcf
SM
52722020-05-28 Simon Marchi <simon.marchi@efficios.com>
5273
5274 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5275 <push_dwarf_reg_entry_value>: Remove assert. Override
5276 per_objfile with caller_per_objfile.
5277
f030440d
TV
52782020-05-28 Tom de Vries <tdevries@suse.de>
5279
5280 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5281 PR gold/15646 workaround to symbol kind "type".
5282
f0fbb768
TT
52832020-05-27 Tom Tromey <tromey@adacore.com>
5284
5285 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5286
af0b2a3e
TT
52872020-05-27 Tom Tromey <tromey@adacore.com>
5288
5289 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5290 Use htab_find_with_hash.
5291 <add_abbrev>: Remove "abbrev_number" parameter.
5292 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5293 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5294 (hash_abbrev): Add comment.
5295 (abbrev_table::lookup_abbrev): Move to header file.
5296 (abbrev_table::read): Update.
5297
7d00ffec
TT
52982020-05-27 Tom Tromey <tromey@adacore.com>
5299
5300 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5301 method.
5302 <canonical_name>: New member.
5303 <raw_name>: Rename from "name".
5304 (partial_die_info): Initialize canonical_name.
5305 (scan_partial_symbols): Check raw_name.
5306 (partial_die_parent_scope, partial_die_full_name)
5307 (add_partial_symbol, add_partial_subprogram)
5308 (add_partial_enumeration, load_partial_dies): Use "name" method.
5309 (partial_die_info::name): New method.
5310 (partial_die_info::read, guess_partial_die_structure_name)
5311 (partial_die_info::fixup): Update.
5312
697bba18
TT
53132020-05-27 Tom Tromey <tromey@adacore.com>
5314
5315 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5316 <get_ref_die_offset>: Inline.
5317 <get_ref_die_offset_complaint>: New method.
5318 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5319 (attribute::get_ref_die_offset_complaint): Rename from
5320 get_ref_die_offset. Just issue complaint.
5321
c17ace43
HD
53222020-05-27 Hannes Domani <ssbssa@yahoo.de>
5323
5324 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5325
96445f0b
HD
53262020-05-27 Hannes Domani <ssbssa@yahoo.de>
5327
5328 * exec.c (exec_file_attach): Use errno value of first openp failure.
5329
ac637ec3
HD
53302020-05-27 Hannes Domani <ssbssa@yahoo.de>
5331
5332 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5333 Don't close thread handle.
5334
17ee85fc
TT
53352020-05-27 Tom Tromey <tom@tromey.com>
5336 Simon Marchi <simon.marchi@efficios.com>
5337
5338 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5339 shared_ptr.
5340 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5341 member.
5342 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5343 dwarf2_per_bfd_objfile_data_key>: New globals.
5344 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5345 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5346 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5347 shared.
5348 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5349 short-circuit when sharing.
5350 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5351 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5352
39b16f87
SM
53532020-05-27 Simon Marchi <simon.marchi@efficios.com>
5354
5355 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5356 to...
5357 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5358 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5359
fcf23d5b
SM
53602020-05-27 Simon Marchi <simon.marchi@efficios.com>
5361
5362 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5363 build_name_components, find_name_components_bounds>:
5364 Add per_objfile parameter.
5365 (struct mapped_index) <symbol_name_at>: Likewise.
5366 (struct mapped_debug_names): Remove constructor.
5367 <dwarf2_per_objfile>: Remove field.
5368 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5369 (mapped_index_base::find_name_components_bounds,
5370 mapped_index_base::build_name_components,
5371 dw2_expand_symtabs_matching_symbol): Likewise.
5372 (class mock_mapped_index) <symbol_name_at>: Likewise.
5373 (check_match): Likewise.
5374 (check_find_bounds_finds): Likewise.
5375 (test_mapped_index_find_name_component_bounds): Update.
5376 (CHECK_MATCH): Update.
5377 (dw2_expand_symtabs_matching): Update.
5378 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5379 per_objfile parameter.
5380 <find_vec_in_debug_names>: Likewise.
5381 <m_per_objfile>: New field.
5382 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5383 parameter.
5384 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5385 (dw2_debug_names_iterator::next): Update.
5386 (dw2_debug_names_lookup_symbol): Update.
5387 (dw2_debug_names_expand_symtabs_for_function): Update.
5388 (dw2_debug_names_map_matching_symbols): Update.
5389 (dw2_debug_names_expand_symtabs_matching): Update.
5390 (dwarf2_read_debug_names): Update.
5391
7188ed02
SM
53922020-05-27 Simon Marchi <simon.marchi@efficios.com>
5393
5394 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5395 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5396 move to dwarf2_per_objfile.
5397 <read_in_chain>: Remove.
5398 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5399 remove_all_cus, age_comp_units>: New methods.
5400 <m_dwarf2_cus>: New member.
5401 (struct dwarf2_per_cu_data) <cu>: Remove.
5402 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5403 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5404 moved to methods of dwarf2_per_objfile.
5405 (dwarf2_clear_marks): Remove.
5406 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5407 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5408 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5409 (dwarf2_per_objfile::remove_all_cus): New.
5410 (class free_cached_comp_units) <~free_cached_comp_units>:
5411 Update.
5412 (load_cu): Update.
5413 (dw2_do_instantiate_symtab): Adjust.
5414 (fill_in_sig_entry_from_dwo_entry): Adjust.
5415 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5416 (cutu_reader::cutu_reader): Likewise.
5417 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5418 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5419 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5420 and dwarf2_per_objfile::age_comp_units.
5421 (load_partial_comp_unit): Update.
5422 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5423 (process_queue): Likewise.
5424 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5425 backlink.
5426 (dwarf2_read_addr_index): Likewise.
5427 (follow_die_offset): Likewise.
5428 (dwarf2_fetch_die_loc_sect_off): Likewise.
5429 (dwarf2_fetch_constant_bytes): Likewise.
5430 (dwarf2_fetch_die_type_sect_off): Likewise.
5431 (follow_die_sig_1): Likewise.
5432 (load_full_type_unit): Likewise.
5433 (read_signatured_type): Likewise.
5434 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5435 (dwarf2_cu::~dwarf2_cu): Remove.
5436 (dwarf2_per_objfile::get_cu): New.
5437 (dwarf2_per_objfile::set_cu): New.
5438 (age_cached_comp_units): Rename to...
5439 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5440 to std::unordered_map.
5441 (free_one_cached_comp_unit): Rename to...
5442 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5443 to std::unordered_map.
5444 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5445 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5446 a dwarf2_per_objfile in data.
5447 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5448 (dwarf2_clear_marks): Remove.
5449
2e671100
SM
54502020-05-27 Simon Marchi <simon.marchi@efficios.com>
5451
5452 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5453 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5454 (init_tu_and_read_dwo_dies): Likewise.
5455 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5456 (cutu_reader::cutu_reader): Likewise.
5457 (load_partial_comp_unit): Likewise.
5458 (process_psymtab_comp_unit): Update.
5459 (build_type_psymtabs_1): Update.
5460 (process_skeletonless_type_unit): Update.
5461 (load_full_comp_unit): Update.
5462 (find_partial_die): Update.
5463 (dwarf2_read_addr_index): Update.
5464 (read_signatured_type): Update.
5465
2e6a9f79
SM
54662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5467
5468 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5469 m_header_read_in>: New fields.
5470 <get_header>: New method.
5471 * dwarf2/read.c (per_cu_header_read_in): Remove.
5472 (dwarf2_per_cu_data::get_header): New.
5473 (dwarf2_per_cu_data::addr_size): Update.
5474 (dwarf2_per_cu_data::offset_size): Update.
5475 (dwarf2_per_cu_data::ref_addr_size): Update.
5476
1b555f17
SM
54772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5478
5479 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5480 (dw2_do_instantiate_symtab): Update.
5481 (queue_and_load_all_dwo_tus): Change parameter from
5482 dwarf2_per_cu_data to dwarf2_cu.
5483 (dwarf2_fetch_die_loc_sect_off): Update.
5484 (dwarf2_fetch_constant_bytes): Update.
5485 (dwarf2_fetch_die_type_sect_off): Update.
5486
8fc0b21d
SM
54872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5488
5489 * dwarf2/read.c (process_full_comp_unit,
5490 process_full_type_unit): Remove per_cu, per_objfile paramters.
5491 Add dwarf2_cu parameter.
5492 (process_queue): Update.
5493
168c9250
SM
54942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5495
5496 * dwarf2/read.c (create_cu_from_index_list): Replace
5497 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5498 (create_cus_from_index_list): Likewise.
5499 (create_cus_from_index): Likewise.
5500 (create_signatured_type_table_from_index): Likewise.
5501 (create_cus_from_debug_names_list): Likewise.
5502 (create_cus_from_debug_names): Likewise.
5503 (dwarf2_read_gdb_index): Update.
5504 (dwarf2_read_debug_names): Update.
5505
e286671b
TT
55062020-05-27 Tom Tromey <tom@tromey.com>
5507 Simon Marchi <simon.marchi@efficios.com>
5508
5509 * dwarf2/read.h (struct dwarf2_per_objfile)
5510 <get_type_for_signatured_type, set_type_for_signatured_type>:
5511 New methods.
5512 <m_type_map>: New member.
5513 (struct signatured_type) <type>: Remove.
5514 * dwarf2/read.c
5515 (dwarf2_per_objfile::get_type_for_signatured_type,
5516 dwarf2_per_objfile::set_type_for_signatured_type): New.
5517 (get_signatured_type): Use new methods.
5518
8adb8487
TT
55192020-05-27 Tom Tromey <tom@tromey.com>
5520 Simon Marchi <simon.marchi@efficios.com>
5521
5522 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5523 (struct dwarf2_per_objfile) <type_units>: New member.
5524 <get_type_unit_group_unshareable>: New method.
5525 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5526 num_symtabs, symtabs>: Remove; move to
5527 type_unit_group_unshareable.
5528 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5529 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5530 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5531
127bbf4b
SM
55322020-05-27 Simon Marchi <simon.marchi@efficios.com>
5533
5534 * dwarf2/read.h (struct dwarf2_per_cu_data):
5535 <dwarf2_per_objfile>: Remove.
5536 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5537 dwarf2_per_objfile.
5538 (create_signatured_type_table_from_index): Likewise.
5539 (create_signatured_type_table_from_debug_names): Likewise.
5540 (create_debug_type_hash_table): Likewise.
5541 (fill_in_sig_entry_from_dwo_entry): Likewise.
5542 (create_type_unit_group): Likewise.
5543 (read_comp_units_from_section): Likewise.
5544 (create_cus_hash_table): Likewise.
5545
f6e649dd
SM
55462020-05-27 Simon Marchi <simon.marchi@efficios.com>
5547
5548 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5549 dwarf2_per_cu_data::dwarf2_per_objfile.
5550 (compute_compunit_symtab_includes): Likewise.
5551 (dwarf2_cu::start_symtab): Likewise.
5552
aa66c379
SM
55532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5554
5555 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5556 parameter.
5557 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5558 (read_namespace_alias): Update.
5559 (lookup_die_type): Update.
5560 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5561 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5562 Update.
5563 (disassemble_dwarf_expression): Update.
5564
120ce1b5
SM
55652020-05-27 Simon Marchi <simon.marchi@efficios.com>
5566
5567 * dwarf2/read.h (struct dwarf2_queue_item): Add
5568 dwarf2_per_objfile parameter, assign new parameter.
5569 <per_objfile>: New field.
5570 * dwarf2/read.c (free_one_cached_comp_unit): Add
5571 dwarf2_per_objfile parameter.
5572 (queue_comp_unit): Likewise.
5573 (dw2_do_instantiate_symtab): Update.
5574 (process_psymtab_comp_unit): Update.
5575 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5576 (process_imported_unit_die): Update.
5577 (queue_and_load_dwo_tu): Update.
5578 (follow_die_offset): Update.
5579 (follow_die_sig_1): Update.
5580
9f47c707
SM
55812020-05-27 Simon Marchi <simon.marchi@efficios.com>
5582
5583 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5584 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5585 (read_call_site_scope): Assign per_objfile.
5586 (dwarf2_per_cu_data::objfile): Remove.
5587 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5588 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5589 dwarf2_per_objfile parameter.
5590 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5591 dwarf2_per_objfile parameter.
5592 (dwarf_expr_reg_to_entry_parameter): Add output
5593 dwarf2_per_objfile parameter.
5594 (locexpr_get_frame_base): Update.
5595 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5596 <push_dwarf_reg_entry_value>: Update.
5597 <call_site_to_target_addr>: Update.
5598 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5599 parameter.
5600 (value_of_dwarf_reg_entry): Update.
5601 (rw_pieced_value): Update.
5602 (indirect_synthetic_pointer): Update.
5603 (dwarf2_evaluate_property): Update.
5604 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5605 parameter.
5606 (locexpr_read_variable): Update.
5607 (locexpr_get_symbol_read_needs): Update.
5608 (loclist_read_variable): Update.
5609
14095eb3
SM
56102020-05-27 Simon Marchi <simon.marchi@efficios.com>
5611
5612 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5613 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5614 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5615 parameter.
5616 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5617 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5618 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5619 parameter.
5620 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5621 sect_variable_value): Add dwarf2_per_objfile parameter.
5622 (class dwarf_evaluate_loc_desc) <dwarf_call,
5623 dwarf_variable_value>: Update.
5624 (fetch_const_value_from_synthetic_pointer): Add
5625 dwarf2_per_objfile parameter.
5626 (fetch_const_value_from_synthetic_pointer): Update.
5627 (coerced_pieced_ref): Update.
5628 (class symbol_needs_eval_context) <dwarf_call,
5629 dwarf_variable_value>: Update.
5630 (dwarf2_compile_expr_to_ax): Update.
5631
3c3cd3d4
SM
56322020-05-27 Simon Marchi <simon.marchi@efficios.com>
5633
5634 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5635 parameter.
5636 (dwarf2_evaluate_loc_desc_full): Update.
5637
82ca3f51
SM
56382020-05-27 Simon Marchi <simon.marchi@efficios.com>
5639
5640 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5641 parameter.
5642 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5643 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5644 dwarf2_per_objfile parameter.
5645 (decode_debug_loc_dwo_addresses): Likewise.
5646 (dwarf2_find_location_expression): Update.
5647 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5648 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5649 parameter.
5650 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5651 parameter.
5652 (locexpr_describe_location_1): Likewise.
5653 (locexpr_describe_location): Update.
5654
4b167ea1
SM
56552020-05-27 Simon Marchi <simon.marchi@efficios.com>
5656
5657 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5658 Remove.
5659 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5660 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5661 (dwarf2_compile_property_to_c): Update.
5662 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5663 use text offset from objfile.
5664 (locexpr_tracepoint_var_ref): Update.
5665 (locexpr_generate_c_location): Update.
5666 (loclist_describe_location): Update.
5667 (loclist_tracepoint_var_ref): Update.
5668 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5669 dwarf2_per_objfile parameter.
5670 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5671 use text offset from objfile.
5672 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5673
89b07335
SM
56742020-05-27 Simon Marchi <simon.marchi@efficios.com>
5675
5676 * dwarf2/expr.h (struct dwarf_expr_context)
5677 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5678 <offset>: Remove.
5679 <per_objfile>: New member.
5680 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5681 dwarf2_per_objfile parameter. Don't set offset, set
5682 per_objfile.
5683 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5684 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5685 a dwarf2_per_objfile object instead of an offset.
5686 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5687 constructor.
5688 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5689 to dwarf2_expr_executor constructor. Don't set offset.
5690 (dwarf2_fetch_cfa_info): Update.
5691 (struct dwarf2_frame_cache) <text_offset>: Remove.
5692 <per_objfile>: New field.
5693 (dwarf2_frame_cache): Update.
5694 (dwarf2_frame_prev_register): Update.
5695 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5696 <dwarf_evaluate_loc_desc>: Add constructor.
5697 (dwarf2_evaluate_loc_desc_full): Update.
5698 (dwarf2_locexpr_baton_eval): Update.
5699 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5700 Add constructor.
5701 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5702
293e7e51
SM
57032020-05-27 Simon Marchi <simon.marchi@efficios.com>
5704
5705 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5706 addr_sized_int_type>: Move to dwarf2_cu.
5707 <int_type>: Move to dwarf2_per_objfile.
5708 (struct dwarf2_per_objfile) <int_type>: Move here.
5709 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5710 addr_sized_int_type>: Move here.
5711 (read_func_scope): Update.
5712 (read_array_type): Update.
5713 (read_tag_string_type): Update.
5714 (attr_to_dynamic_prop): Update.
5715 (dwarf2_per_cu_data::int_type): Rename to...
5716 (dwarf2_per_objfile::int_type): ... this.
5717 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5718 (dwarf2_cu::addr_sized_int_type): ... this.
5719 (read_subrange_type): Update.
5720 (dwarf2_per_cu_data::addr_type): Rename to...
5721 (dwarf2_cu::addr_type): ... this.
5722 (set_die_type): Update.
5723
64874a40
SM
57242020-05-27 Simon Marchi <simon.marchi@efficios.com>
5725
5726 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5727 data through per_cu->cu.
5728
4ab09049
SM
57292020-05-27 Simon Marchi <simon.marchi@efficios.com>
5730
5731 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5732 dwarf2_per_cu_data parameter fo dwarf2_cu.
5733 (lookup_dwo_type_unit): Likewise.
5734 (read_cutu_die_from_dwo): Likewise.
5735 (lookup_dwo_unit): Likewise.
5736 (open_and_init_dwo_file): Likewise.
5737 (lookup_dwo_cutu): Likewise.
5738 (lookup_dwo_comp_unit): Likewise.
5739 (lookup_dwo_type_unit): Likewise.
5740 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5741 (cutu_reader::cutu_reader): Update.
5742
47b14e86
SM
57432020-05-27 Simon Marchi <simon.marchi@efficios.com>
5744
5745 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5746 parameter.
5747 (process_full_type_unit): Likewise.
5748 (process_queue): Update.
5749
43182c09
SM
57502020-05-27 Simon Marchi <simon.marchi@efficios.com>
5751
5752 * dwarf2/read.c (recursively_compute_inclusions): Add
5753 dwarf2_per_objfile parameter.
5754 (compute_compunit_symtab_includes): Likewise.
5755 (process_cu_includes): Update.
5756
7aa104c4
SM
57572020-05-27 Simon Marchi <simon.marchi@efficios.com>
5758
5759 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5760 parameter.
5761 (create_type_unit_group): Update.
5762 (process_psymtab_comp_unit_reader): Update.
5763 (build_type_psymtabs_reader): Update.
5764
e3beb21d
SM
57652020-05-27 Simon Marchi <simon.marchi@efficios.com>
5766
5767 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5768 object through m_this_cu->cu.
5769
d460f660
SM
57702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5771
5772 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5773 the info parameter.
5774 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5775
ab432490
SM
57762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5777
5778 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5779 per_objfile parameter.
5780 (load_full_type_unit): Add per_objfile parameter.
5781 (read_signatured_type): Likewise.
5782 (load_full_comp_unit): Likewise.
5783 (load_cu): Likewise.
5784 (dw2_do_instantiate_symtab): Likewise.
5785 (dw2_get_file_names): Likewise.
5786 (dw2_map_symtabs_matching_filename): Update.
5787 (dw_expand_symtabs_matching_file_matcher): Update.
5788 (dw2_map_symbol_filenames): Update.
5789 (process_psymtab_comp_unit): Add per_objfile parameter.
5790 (build_type_psymtabs_1): Update.
5791 (process_skeletonless_type_unit): Update.
5792 (dwarf2_build_psymtabs_hard): Update.
5793 (load_partial_comp_unit): Add per_objfile parameter.
5794 (scan_partial_symbols): Update.
5795 (load_full_comp_unit): Add per_objfile parameter.
5796 (process_imported_unit_die): Update.
5797 (create_cus_hash_table): Update.
5798 (find_partial_die): Update.
5799 (dwarf2_read_addr_index): Update.
5800 (follow_die_offset): Update.
5801 (dwarf2_fetch_die_loc_sect_off): Update.
5802 (dwarf2_fetch_constant_bytes): Update.
5803 (dwarf2_fetch_die_type_sect_off): Update.
5804 (follow_die_sig_1): Update.
5805 (load_full_type_unit): Add per_objfile parameter.
5806 (read_signatured_type): Likewise.
5807
313bad1b
SM
58082020-05-27 Simon Marchi <simon.marchi@efficios.com>
5809
5810 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5811 of objfile_name.
5812
c3699833
SM
58132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5814
5815 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5816 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5817 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5818 field.
5819 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5820 (create_cus_from_index): Update.
5821 (dwarf2_read_gdb_index): Update.
5822 (create_cus_from_debug_names): Update.
5823 (dwarf2_read_debug_names): Update.
5824 (get_abbrev_section_for_cu): Update.
5825 (create_all_comp_units): Update.
5826 (read_attribute_value): Update.
5827 (get_debug_line_section): Update.
5828 * dwarf2/index-cache.c (index_cache::store): Update.
5829 * dwarf2/index-write.c (save_gdb_index_command): Update.
5830 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5831
1859c670
SM
58322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5833
5834 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5835 member.
5836 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5837 dwarf2_per_cu_data::per_bfd.
5838 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5839 (create_type_unit_group): Likewise.
5840 (queue_comp_unit): Remove reference to
5841 per_cu->dwarf2_per_objfile.
5842 (maybe_queue_comp_unit): Likewise.
5843 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5844 (create_cus_hash_table): Assign new field.
5845
5e22e966
SM
58462020-05-27 Simon Marchi <simon.marchi@efficios.com>
5847
5848 * dwarf2/read.c: Replace
5849 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5850 dwarf2_cu->per_objfile throughout.
5851
97a1449a
SM
58522020-05-27 Simon Marchi <simon.marchi@efficios.com>
5853
5854 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5855 parameter, don't use per_cu->dwarf2_per_objfile.
5856 (dw2_instantiate_symtab): Likewise.
5857 (dw2_find_last_source_symtab): Update.
5858 (dw2_map_expand_apply): Update.
5859 (dw2_lookup_symbol): Update.
5860 (dw2_expand_symtabs_for_function): Update.
5861 (dw2_expand_all_symtabs): Update.
5862 (dw2_expand_symtabs_with_fullname): Update.
5863 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5864 don't use per_cu->dwarf2_per_objfile.
5865 (dw2_expand_marked_cus): Update.
5866 (dw2_find_pc_sect_compunit_symtab): Update.
5867 (dw2_debug_names_lookup_symbol): Update.
5868 (dw2_debug_names_expand_symtabs_for_function): Update.
5869 (dw2_debug_names_map_matching_symbols): Update.
5870 (dwarf2_psymtab::expand_psymtab): Update.
5871
9e021579
SM
58722020-05-27 Simon Marchi <simon.marchi@efficios.com>
5873
5874 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5875 <per_objfile>: New member.
5876 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5877 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5878 call to dwarf2_cu.
5879 (cutu_reader::cutu_reader): Update.
5880 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5881
ae090bdb
SM
58822020-05-27 Simon Marchi <simon.marchi@efficios.com>
5883
5884 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5885 struct dwarf2_per_objfile.
5886 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5887 dwarf2_per_bfd.
5888 * dwarf2/read.c (set_die_type): Update.
5889 (get_die_type_at_offset): Update.
5890
af758d11
SM
58912020-05-27 Tom Tromey <tom@tromey.com>
5892 Simon Marchi <simon.marchi@efficios.com>
5893
5894 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5895 method.
5896 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5897 get_symtab, set_symtab>: New methods.
5898 <m_symtabs>: New field.
5899 (struct dwarf2_psymtab): Derive from partial_symtab.
5900 <readin_p, get_compunit_symtab>: Declare methods.
5901 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5902 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5903 New methods.
5904 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5905 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5906 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5907 (dw2_symtab_iter_next, dw2_print_stats)
5908 (dw2_expand_symtabs_with_fullname)
5909 (dw2_expand_symtabs_matching_one)
5910 (dw_expand_symtabs_matching_file_matcher)
5911 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5912 (dw2_debug_names_iterator::next)
5913 (dw2_debug_names_map_matching_symbols)
5914 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5915 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5916 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5917 New methods.
5918 (get_compunit_symtab, process_full_comp_unit)
5919 (process_full_type_unit): Update.
5920 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5921
5989a64e
SM
59222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5923
5924 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5925 then introduce a new dwarf2_per_objfile type.
5926 <read_line_string>: Move to the new dwarf2_per_objfile type.
5927 <objfile>: Likewise.
5928 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5929 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5930 dwarf2_per_objfile->per_bfd.
5931 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5932 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5933 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5934 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5935 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5936 (dwarf2_per_objfile::locate_sections): Rename to...
5937 (dwarf2_per_bfd::locate_sections): ... this.
5938 (dwarf2_per_objfile::get_cutu): Rename to...
5939 (dwarf2_per_bfd::get_cutu): ... this.
5940 (dwarf2_per_objfile::get_cu): Rename to...
5941 (dwarf2_per_bfd::get_cu): ... this.
5942 (dwarf2_per_objfile::get_tu): Rename to...
5943 (dwarf2_per_bfd::get_tu): ... this.
5944 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5945 (dwarf2_per_bfd::allocate_per_cu): ... this.
5946 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5947 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5948 (get_gdb_index_contents_ftype): Change parameter from
5949 dwarf2_per_objfile to dwarf2_per_bfd.
5950 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5951 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5952
a50264ba
TT
59532020-05-27 Tom Tromey <tom@tromey.com>
5954 Simon Marchi <simon.marchi@efficios.com>
5955
5956 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5957 (allocate_piece_closure): Set "per_objfile" member.
5958 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5959 (locexpr_describe_location, loclist_describe_location): Use new
5960 member.
5961 * dwarf2/read.c (read_call_site_scope)
5962 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5963 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5964 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5965 handle_data_member_location): Set per_objfile member.
5966 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5967 member.
5968 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5969
d3473f0c
TT
59702020-05-27 Tom Tromey <tom@tromey.com>
5971
5972 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5973 allocate_signatured_type>: Declare new methods.
5974 <m_num_psymtabs>: New member.
5975 (struct dwarf2_per_cu_data) <index>: New member.
5976 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5977 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5978 (create_cu_from_index_list): Use allocate_per_cu.
5979 (create_signatured_type_table_from_index)
5980 (create_signatured_type_table_from_debug_names)
5981 (create_debug_type_hash_table, add_type_unit)
5982 (read_comp_units_from_section): Use allocate_signatured_type.
5983
5717c425
TT
59842020-05-27 Tom Tromey <tom@tromey.com>
5985
5986 * psymtab.c (partial_map_expand_apply)
5987 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5988 (psym_lookup_global_symbol_language)
5989 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5990 (psym_print_stats, psym_expand_symtabs_for_function)
5991 (psym_map_symbol_filenames, psym_map_matching_symbols)
5992 (psym_expand_symtabs_matching)
5993 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5994 (maintenance_check_psymtabs): Update.
5995 * psympriv.h (struct partial_symtab) <readin_p,
5996 get_compunit_symtab>: Add objfile parameter.
5997 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5998 Likewise.
5999 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6000 get_compunit_symtab>: Likewise.
6001 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6002
45940949
TT
60032020-05-27 Tom Tromey <tom@tromey.com>
6004
6005 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6006 member.
6007 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6008 (create_cu_from_index_list)
6009 (create_signatured_type_table_from_index)
6010 (create_signatured_type_table_from_debug_names)
6011 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6012 (dwarf2_create_include_psymtab)
6013 (create_debug_type_hash_table, add_type_unit)
6014 (create_type_unit_group, read_comp_units_from_section)
6015 (dwarf2_compute_name, create_cus_hash_table)
6016 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6017 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6018 obstack.
6019 (dw2_get_real_path): Likewise. Change argument to
6020 dwarf2_per_objfile.
6021
f8c6d152
LM
60222020-05-27 Luis Machado <luis.machado@linaro.org>
6023
6024 PR tdep/26000
6025 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6026 for ldrd (immediate).
6027
e98d2e6d
PW
60282020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6029
6030 * command.h: Add comment giving the name of class_tui.
6031 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6032 create the fake command for the help for class_tui.
6033
53a47a3e
TT
60342020-05-26 Tom Tromey <tromey@adacore.com>
6035
6036 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6037 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6038 (val_atr): New function.
6039 (value_val_atr): Use it.
6040 * ada-valprint.c (print_optional_low_bound): Change low bound
6041 handling for enums.
6042 (val_print_packed_array_elements): Don't call discrete_position.
6043 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6044 discrete_position for enum types.
6045 * language.c (default_print_array_index): Change type.
6046 * language.h (struct language_defn) <la_print_array_index>: Add
6047 index_type parameter, change type of index_value.
6048 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6049 (default_print_array_index): Update.
6050 * valprint.c (maybe_print_array_index): Don't call
6051 value_from_longest. Update.
6052 (value_print_array_elements): Don't call discrete_position.
6053
0bc2354b
TT
60542020-05-26 Tom Tromey <tromey@adacore.com>
6055
6056 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6057 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6058
1218a4bf
CDA
60592020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6060
6061 PR gdb/13519
6062 * avr-tdep.c (avr_integer_to_address): Return data or code
6063 address accordingly to the second 'type' argument of the
6064 function.
6065
92651b1d
MW
60662020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6067
6068 * infcmd.c, inferior.h: (construct_inferior_arguments):
6069 Moved function from here to gdbsupport/common-inferior.{h,cc}
6070
0a4f5f8c
TT
60712020-05-23 Tom Tromey <tom@tromey.com>
6072
6073 Revert commit eca1f90c:
6074 * NEWS: Remove entry for completion styling.
6075 * completer.c (_rl_completion_prefix_display_length): Move
6076 declaration later.
6077 (gdb_fnprint): Revert.
6078 (gdb_display_match_list_1): Likewise.
6079 * cli/cli-style.c (completion_prefix_style)
6080 (completion_difference_style, completion_suffix_style): Remove.
6081 (_initialize_cli_style): Revert.
6082 * cli/cli-style.h (completion_prefix_style)
6083 (completion_difference_style, completion_suffix_style): Don't
6084 declare.
6085
e08bd6c5
PA
60862020-05-24 Pedro Alves <palves@redhat.com>
6087
6088 * symtab.c (completion_list_add_name): Return boolean indication
6089 of whether the symbol matched.
6090 (completion_list_add_symbol): Don't try to remove C++ aliases if
6091 the symbol didn't match in the first place.
6092 * symtab.h (completion_list_add_name): Return bool.
6093
ceacbf6e
SM
60942020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6095
6096 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6097 type::field.
6098
26f16254
JB
60992020-05-23 Joel Brobecker <brobecker@adacore.com>
6100
6101 GDB 9.2 released.
6102
eca1f90c
TT
61032020-05-23 Tom Tromey <tom@tromey.com>
6104
6105 * NEWS: Add entry for completion styling.
6106 * completer.c (_rl_completion_prefix_display_length): Move
6107 declaration earlier.
6108 (gdb_fnprint): Use completion_style.
6109 (gdb_display_match_list_1): Likewise.
6110 * cli/cli-style.c (completion_prefix_style)
6111 (completion_difference_style, completion_suffix_style): New
6112 globals.
6113 (_initialize_cli_style): Register new globals.
6114 * cli/cli-style.h (completion_prefix_style)
6115 (completion_difference_style, completion_suffix_style): Declare.
6116
51e2cfa2
PA
61172020-05-23 Pedro Alves <palves@redhat.com>
6118
6119 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6120 (parse_escape): Use ISDIGIT instead of isdigit.
6121 (puts_debug): Use gdb_isprint instead of isprint.
6122 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6123 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6124 ISSPACE instead of isspace.
6125 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6126 instead of isspace.
6127 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6128 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6129 instead of isxdigit and ISDIGIT instead of isdigit.
6130
80fc5e77
SM
61312020-05-22 Simon Marchi <simon.marchi@efficios.com>
6132
6133 * gdbtypes.h (struct type) <field>: New method.
6134 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6135 or type::field.
6136
3cabb6b0
SM
61372020-05-22 Simon Marchi <simon.marchi@efficios.com>
6138
6139 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6140 (TYPE_FIELDS): Use type::fields. Change all call sites that
6141 modify the propery to use type::set_fields instead.
6142
1f704f76
SM
61432020-05-22 Simon Marchi <simon.marchi@efficios.com>
6144
6145 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6146 type::num_fields instead.
6147
5e33d5f4
SM
61482020-05-22 Simon Marchi <simon.marchi@efficios.com>
6149
6150 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6151 methods.
6152 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6153 that modify the number of fields to use type::set_num_fields
6154 instead.
6155
9392ebb3
TT
61562020-05-22 Tom Tromey <tromey@adacore.com>
6157
6158 * compile/compile-object-load.h (munmap_list_free): Don't
6159 declare.
6160
7c13f4e8
AB
61612020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6162
6163 * annotate.c (annotate_source_line): Update return type, add call
6164 to update current symtab and line.
6165 * annotate.h (annotate_source_line): Update return type, and
6166 extend header comment.
6167 * source.c (info_line_command): Check annotation_level before
6168 calling annotate_source_line.
6169 * stack.c (print_frame_info): If calling annotate_source_line
6170 returns true, then don't print any other source line information.
6171
aa370940
SM
61722020-05-21 Simon Marchi <simon.marchi@efficios.com>
6173
6174 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6175
84d53fa9
SM
61762020-05-21 Simon Marchi <simon.marchi@efficios.com>
6177
6178 * coffread.c (patch_type): Remove NULL check before xfree.
6179 * corefile.c (set_gnutarget): Likewise.
6180 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6181 * exec.c (build_section_table): Likewise.
6182 * remote.c (remote_target::pass_signals): Likewise.
6183 * utils.c (n_spaces): Likewise.
6184 * cli/cli-script.c (document_command): Likewise.
6185 * i386-windows-tdep.c (core_process_module_section): Likewise.
6186 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6187
9d428aae
SM
61882020-05-20 Simon Marchi <simon.marchi@efficios.com>
6189
6190 * symfile.c (reread_symbols): Clear objfile's section_offsets
6191 vector and section indices, re-compute them by calling
6192 sym_offsets.
6193
250106a7
TT
61942020-05-20 Tom Tromey <tromey@adacore.com>
6195
6196 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6197 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6198
9a0bacfb
TV
61992020-05-20 Tom de Vries <tdevries@suse.de>
6200
6201 PR symtab/25833
6202 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6203
7b958a48
AM
62042020-05-20 Alan Modra <amodra@gmail.com>
6205
6206 PR 25993
6207 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6208 bfd_set_filename.
6209 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6210 passed to bfd_set_filename.
6211 * symfile-mem.c (add_vsyscall_page): Likewise for string
6212 passed to symbol_file_add_from_memory.
6213 (symbol_file_add_from_memory): Make name param a const char* and
6214 don't strdup.
6215
c7e97679
AM
62162020-05-20 Alan Modra <amodra@gmail.com>
6217
6218 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6219 rather than accessing bfd->filename directly.
6220 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6221 and use bfd_section_name.
6222 * dwarf2/frame.c (decode_frame_entry): Likewise.
6223 * exec.c (exec_set_section_address): Likewise.
6224 * solib-aix.c (solib_aix_bfd_open): Likewise.
6225 * stap-probe.c (get_stap_base_address): Likewise.
6226 * symfile.c (reread_symbols): Likewise.
6227
563c591b
TT
62282020-05-19 Tom Tromey <tromey@adacore.com>
6229
6230 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6231
f408d82c
SM
62322020-05-19 Simon Marchi <simon.marchi@efficios.com>
6233
6234 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6235
98c59b52
PA
62362020-05-19 Pedro Alves <palves@redhat.com>
6237
6238 * NEWS (set exec-file-mismatch): Adjust entry.
6239 * exec.c: Include "build-id.h".
6240 (validate_exec_file): Try to match build IDs instead of filenames.
6241 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6242 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6243 and pass down 'warn_if_slow'.
6244 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6245 gdb_bfd_open_closure to pass it down.
6246 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6247
4111f652
PA
62482020-05-19 Pedro Alves <palves@redhat.com>
6249
6250 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6251 * target.c (target_fileio_open_1): Rename to target_fileio_open
6252 and make extern. Use bool.
6253 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6254 (target_fileio_read_alloc_1): Adjust.
6255 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6256 (target_fileio_open_warn_if_slow): Delete declaration.
6257
ad80db5b
PA
62582020-05-19 Pedro Alves <palves@redhat.com>
6259
6260 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6261 Adjust all callers.
6262
1d6ce4d3
YS
62632020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6264
6265 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6266 whether disp is negative.
6267
9005fbbb
SM
62682020-05-19 Simon Marchi <simon.marchi@efficios.com>
6269
6270 * symfile.h (struct symfile_segment_data)
6271 <~symfile_segment_data>: Remove.
6272 <segment_info>: Change to std::vector.
6273 * symfile.c (default_symfile_segments): Update.
6274 * elfread.c (elf_symfile_segments): Update.
6275
68b888ff
SM
62762020-05-19 Simon Marchi <simon.marchi@efficios.com>
6277
6278 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6279 <segments>: New.
6280 <segment_bases, segment_sizes>: Remove.
6281 * symfile.c (default_symfile_segments): Update.
6282 * elfread.c (elf_symfile_segments): Update.
6283 * remote.c (remote_target::get_offsets): Update.
6284 * solib-target.c (solib_target_relocate_section_addresses):
6285 Update.
6286
62982abd
SM
62872020-05-19 Simon Marchi <simon.marchi@efficios.com>
6288
6289 * symfile.h (struct symfile_segment_data): Initialize fields.
6290 <~symfile_segment_data>: Add.
6291 (symfile_segment_data_up): New.
6292 (struct sym_fns) <sym_segments>: Return a
6293 symfile_segment_data_up.
6294 (default_symfile_segments): Return a symfile_segment_data_up.
6295 (free_symfile_segment_data): Remove.
6296 (get_symfile_segment_data): Return a symfile_segment_data_up.
6297 * symfile.c (default_symfile_segments): Likewise.
6298 (get_symfile_segment_data): Likewise.
6299 (free_symfile_segment_data): Remove.
6300 (symfile_find_segment_sections): Update.
6301 * elfread.c (elf_symfile_segments): Return a
6302 symfile_segment_data_up.
6303 * remote.c (remote_target::get_offsets): Update.
6304 * solib-target.c (solib_target_relocate_section_addresses):
6305 Update.
6306 * symfile-debug.c (debug_sym_segments): Return a
6307 symfile_segment_data_up.
6308
7f204339
RO
63092020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6310
e52a0f1b
RO
6311 PR build/25981
6312 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6313 Hardcode register numbers.
6314
7f204339
RO
6315 PR build/25981
6316 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6317 procfs_find_LDT_entry): Remove.
6318 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6319 procfs_find_LDT_entry): Remove.
6320 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6321 Remove.
6322
7f32a4d5
PA
63232020-05-17 Pedro Alves <palves@redhat.com>
6324 Andrew Burgess <andrew.burgess@embecosm.com>
6325 Keno Fischer <keno@juliacomputing.com>
6326
6327 PR gdb/25741
6328 * breakpoint.c (build_target_condition_list): Update comments.
6329 (build_target_command_list): Update comments and skip matching
6330 locations.
6331 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6332 a separate function. Simplify "set breakpoint auto-hw off"
6333 handling.
6334 (insert_breakpoints): Update comment.
6335 (tracepoint_locations_match): New parameter. For breakpoints,
6336 compare location types too, if the caller wants to.
6337 (handle_automatic_hardware_breakpoints): New functions.
6338 (bp_location_is_less_than): Also sort by location type and
6339 hardware breakpoint length.
6340 (update_global_location_list): Handle "set breakpoint auto-hw on"
6341 here.
6342 (update_breakpoint_locations): Ask breakpoint_locations_match to
6343 ignore location types.
6344
7d93a1e0
SM
63452020-05-16 Simon Marchi <simon.marchi@efficios.com>
6346
6347 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6348 type::name instead.
6349
d0e39ea2
SM
63502020-05-16 Simon Marchi <simon.marchi@efficios.com>
6351
6352 * gdbtypes.h (struct type) <name, set_name>: New methods.
6353 (TYPE_CODE): Use type::name. Change all call sites used to set
6354 the name to use type::set_name instead.
6355
2dab0c7b
TT
63562020-05-16 Tom Tromey <tom@tromey.com>
6357
6358 * top.c (quit_force): Update.
6359 * infrun.c (handle_no_resumed): Update.
6360 * top.h (all_uis): New function.
6361 (ALL_UIS): Remove.
6362
59f7bd8d
SM
63632020-05-16 Simon Marchi <simon.marchi@efficios.com>
6364
6365 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6366
9bf058f0
PA
63672020-05-16 Pedro Alves <palves@redhat.com>
6368
6369 * ia64-linux-nat.c
6370 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6371 Declare method.
6372 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6373
8f86ae1a
SM
63742020-05-15 Simon Marchi <simon.marchi@efficios.com>
6375
6376 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6377 (sparc64_adi_info): Likewise.
6378
d6bc0792
TT
63792020-05-15 Tom Tromey <tom@tromey.com>
6380
6381 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6382 block_objfile.
6383 (lookup_objfile_from_block): Remove.
6384 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6385 (lookup_global_symbol): Use block_objfile.
6386 * symtab.h (lookup_objfile_from_block): Don't declare.
6387 * printcmd.c (clear_dangling_display_expressions): Use
6388 block_objfile.
6389 * parse.c (operator_check_standard): Use block_objfile.
6390
8c14c3a3
TT
63912020-05-15 Tom Tromey <tom@tromey.com>
6392
6393 * language.c (language_alloc_type_symbol): Set
6394 SYMBOL_SECTION.
6395 * symtab.c (initialize_objfile_symbol): Remove.
6396 (allocate_symbol): Remove.
6397 (allocate_template_symbol): Remove.
6398 * dwarf2/read.c (fixup_go_packaging): Use "new".
6399 (new_symbol): Use "new".
6400 (read_variable): Don't call initialize_objfile_symbol. Use
6401 "new".
6402 (read_func_scope): Use "new".
6403 * xcoffread.c (process_xcoff_symbol): Don't call
6404 initialize_objfile_symbol.
6405 (SYMBOL_DUP): Remove.
6406 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6407 "new".
6408 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6409 (allocate_template_symbol): Don't declare.
6410 (struct symbol): Add copy constructor. Change defaults.
6411 * jit.c (finalize_symtab): Use "new".
6412 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6413 Use "new".
6414 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6415 (common_block_end): Use "new".
6416 * mdebugread.c (parse_symbol): Use "new".
6417 (new_symbol): Likewise.
6418
5b4a1a8d
PW
64192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6420
6421 * NEWS: Mention changes to help and apropos.
6422
57b4f16e
PW
64232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6424
6425 * command.h (enum command_class): Improve comments, document
6426 that class_alias is for user-defined aliases, give the class
6427 name for each class, remove unused class_xdb.
6428 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6429 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6430 by a precise class.
6431 * infcmd.c (_initialize_infcmd): Likewise.
6432 * reverse.c (_initialize_reverse): Likewise.
6433 * stack.c (_initialize_stack): Likewise.
6434 * symfile.c (_initialize_symfile): Likewise.
6435 * tracepoint.c (_initialize_tracepoint): Likewise.
6436
7c05caf7
PW
64372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6438
6439 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6440 when their aliased command is traversed.
6441 (help_cmd): Add fput_command_names_styled call to
6442 output command name and aliases when command has an alias.
6443
3b3aaacb
PW
64442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6445
6446 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6447 * cli/cli-decode.c (help_cmd_list): Declare as static,
6448 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6449 a command together with the command.
6450 (fput_command_name_styled, fput_command_names_styled): New functions.
6451 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6452 fput_command_name_styled.
6453 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6454 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6455
7aa1b46f
PW
64562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6457
6458 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6459 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6460 * command.h (cmd_show_list): Likewise.
6461 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6462 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6463
89bcba74
PW
64642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6465
6466 * unittests/command-def-selftests.c (traverse_command_structure):
6467 Verify all commands of a list have the same prefix command and
6468 that only the top cmdlist commands have a null prefix.
6469
3f4d92eb
PW
64702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6471
6472 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6473 as prefix, not one of its aliases.
6474 (set_cmd_prefix): Remove.
6475 (do_add_cmd): Centralize the setting of the prefix of a command, when
6476 command is defined after its full chain of prefix commands.
6477 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6478 (add_setshow_cmd_full): Likewise.
6479 (update_prefix_field_of_prefixed_commands): New function.
6480 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6481 update_prefix_field_of_prefixed_commands.
6482 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6483 addresses of remote_set_cmdlist and remote_show_cmdlist given
6484 as argument, not the address of an argument.
6485 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6486 * gdb/remote.c (_initialize_remote): Likewise.
6487
0605465f
PW
64882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6489
6490 * cli/cli-cmds.c (alias_command): Check for an existing alias
6491 using lookup_cmd_composition, as valid_command_p is too strict
6492 and forbids aliases that are the prefix of an existing alias
6493 or command.
6494 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6495 command is properly recognised as a valid command.
6496
58e6ac70
PW
64972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6498
6499 * unittests/help-doc-selftests.c: Rename to
6500 unittests/command-def-selftests.c
6501 * unittests/command-def-selftests.c (help_doc_tests): Update some
6502 comments.
6503 (command_structure_tests, traverse_command_structure): New namespace
6504 and function.
6505 (command_structure_invariants_tests): New function.
6506 (_initialize_command_def_selftests) Renamed from
6507 _initialize_help_doc_selftests, register command_structure_invariants
6508 selftest.
6509
a7b9ceb8
PW
65102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6511
6512 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6513 an alias of 'show'.
6514
b2188a06
JB
65152020-05-15 Joel Brobecker <brobecker@adacore.com>
6516
6517 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6518 ada_is_fixed_point_type. Update all callers.
6519 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6520 all callers.
6521 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6522 Update all callers.
6523 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6524 print_fixed_point_type. Update all callers.
6525 * ada-valprint.c (ada_value_print_num): Replace call to
6526 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6527
a51951c2
KB
65282020-05-14 Kevin Buettner <kevinb@redhat.com>
6529
6530 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6531 processors.
6532 (cpu_supports_bts): Add CV_AMD case.
6533
29d6859f
LM
65342020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6535 Simon Marchi <simon.marchi@efficios.com>
6536
6537 * infrun.c (stop_all_threads): Collect multiple wait events at
6538 each pass.
6539
78134374
SM
65402020-05-14 Simon Marchi <simon.marchi@efficios.com>
6541
6542 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6543 type::code instead.
6544
67607e24
SM
65452020-05-14 Simon Marchi <simon.marchi@efficios.com>
6546
6547 * gdbtypes.h (struct type) <code, set_code>: New methods.
6548 (TYPE_CODE): Use type::code. Change all call sites used to set
6549 the code to use type::set_code instead.
6550
a05575d3
TBA
65512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6552 Tom de Vries <tdevries@suse.de>
6553 Pedro Alves <palves@redhat.com>
6554
6555 PR threads/25478
6556 * infrun.c (stop_all_threads): Do NOT ignore
6557 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6558 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6559 received.
6560 (handle_no_resumed): Remove code handling a live inferior with no
6561 threads.
6562 * remote.c (has_single_non_exited_thread): New.
6563 (remote_target::update_thread_list): Do not delete a thread if is
6564 the last thread of the process.
6565 * thread.c (thread_select): Call delete_exited_threads instead of
6566 prune_threads.
6567
6ad82919
TBA
65682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6569
6570 * infrun.c (stop_all_threads): Enable/disable thread events of all
6571 targets. Move a debug message denoting the end of the function
6572 into the SCOPED_EXIT block.
6573
d890404b
TBA
65742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6575
6576 * process-stratum-target.h: Include <set>.
6577 (all_non_exited_process_targets, switch_to_target_no_thread): New
6578 function declarations.
6579 * process-stratum-target.c (all_non_exited_process_targets)
6580 (switch_to_target_no_thread): New function implementations.
6581
293b3ebc
TBA
65822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6583
6584 * infrun.c (handle_inferior_event): Extract out a piece of code
6585 into...
6586 (mark_non_executing_threads): ...this new function.
6587
7ca9b62a
TBA
65882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6589
6590 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6591 use.
6592
fc75c28b
TBA
65932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6594
6595 * regcache.c (regcache_read_pc_protected): New function
6596 implementation that returns 0 if the PC cannot read via
6597 'regcache_read_pc'.
6598 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6599 instead of 'regcache_read_pc'.
6600 (keep_going_pass_signal): Ditto.
6601
a89febbd
TT
66022020-05-13 Tom Tromey <tromey@adacore.com>
6603
6604 * ada-lang.c (align_value): Remove.
6605 (ada_template_to_fixed_record_type_1): Use align_up.
6606
f7e23710
TBA
66072020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6608
6609 * async-event.c: Update the copyright year.
6610 * async-event.h: Update the copyright year.
6611
02ff80c2
SM
66122020-05-12 Simon Marchi <simon.marchi@efficios.com>
6613
6614 * objfiles.h (is_addr_in_objfile,
6615 shared_objfile_contains_address_p): Return bool.
6616 * objfile.c (is_addr_in_objfile,
6617 shared_objfile_contains_address_p): Return bool.
6618
4fd6c7e8
TT
66192020-05-11 Tom Tromey <tromey@adacore.com>
6620
6621 * cli/cli-cmds.c (info_command): Restore.
6622 (_initialize_cli_cmds): Use add_prefix_command for "info".
6623 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6624
5eb68a39
TT
66252020-05-11 Tom Tromey <tromey@adacore.com>
6626
6627 * ada-lang.c (ada_value_primitive_field): Now public.
6628 * ada-lang.h (ada_value_primitive_field): Declare.
6629 * ada-valprint.c (print_field_values): Use
6630 ada_value_primitive_field for wrapper fields.
6631
7666722f
TV
66322020-05-11 Tom de Vries <tdevries@suse.de>
6633
6634 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6635 MODULE_DOMAIN.
6636
3ee6bb11
TV
66372020-05-11 Tom de Vries <tdevries@suse.de>
6638
6639 PR symtab/25941
6640 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6641 with length 0, if not gdb-produced.
6642 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6643
43434996
TV
66442020-05-09 Tom de Vries <tdevries@suse.de>
6645
6646 PR gdb/25955
6647 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6648 calculation.
6649
2f78cffc
TT
66502020-05-09 Tom Tromey <tom@tromey.com>
6651
6652 * top.c (server_command): Now bool.
6653 * top.h (server_command): Now bool.
6654
4f7bc5ed
TT
66552020-05-08 Tom Tromey <tromey@adacore.com>
6656
6657 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6658 already being processed.
6659
8be4b118
TT
66602020-05-08 Tom Tromey <tom@tromey.com>
6661
6662 * printcmd.c (struct display) <next>: Remove.
6663 <display>: New constructor.
6664 <exp_string>: Now a std::string.
6665 <enabled_p>: Now a bool.
6666 (display_number): Move definition earlier.
6667 (displays): Rename from display_chain. Now a std::vector.
6668 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6669 (display_command): Update.
6670 (do_one_display, disable_display)
6671 (enable_disable_display_command, do_enable_disable_display):
6672 Update.
6673 (free_display): Remove.
6674 (clear_displays): Rewrite.
6675 (delete_display): Update.
6676 (map_display_numbers): Use function_view. Remove "data"
6677 parameter. Update.
6678 (do_delete_display): Remove.
6679 (undisplay_command): Update.
6680 (do_one_display, do_displays, disable_display)
6681 (info_display_command): Update.
6682 (do_enable_disable_display): Remove.
6683 (enable_disable_display_command)
6684 (clear_dangling_display_expressions): Update.
6685
94c93c35
TT
66862020-05-08 Tom Tromey <tom@tromey.com>
6687
6688 * symtab.c (set_symbol_cache_size)
6689 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6690 (maintenance_print_symbol_cache_statistics): Update.
6691 * symmisc.c (print_symbol_bcache_statistics)
6692 (print_objfile_statistics, maintenance_print_objfiles)
6693 (maintenance_info_symtabs, maintenance_check_symtabs)
6694 (maintenance_expand_symtabs, maintenance_info_line_tables):
6695 Update.
6696 * symfile-debug.c (set_debug_symfile): Update.
6697 * source.c (forget_cached_source_info): Update.
6698 * python/python.c (gdbpy_progspaces): Update.
6699 * psymtab.c (maintenance_info_psymtabs): Update.
6700 * probe.c (parse_probes): Update.
6701 * linespec.c (iterate_over_all_matching_symtabs)
6702 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6703 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6704 * exec.c (exec_target::close): Update.
6705 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6706 * breakpoint.c (print_one_breakpoint_location)
6707 (create_longjmp_master_breakpoint)
6708 (create_std_terminate_master_breakpoint): Update.
6709 * progspace.c (program_spaces): Now a std::vector.
6710 (maybe_new_address_space): Update.
6711 (add_program_space): Remove.
6712 (program_space::program_space): Update.
6713 (remove_program_space): Update.
6714 (number_of_program_spaces): Remove.
6715 (print_program_space, update_address_spaces): Update.
6716 * progspace.h (program_spaces): Change type.
6717 (ALL_PSPACES): Remove.
6718 (number_of_program_spaces): Don't declare.
6719 (struct program_space) <next>: Remove.
6720
a1fd1ac9
TT
67212020-05-08 Tom Tromey <tom@tromey.com>
6722
6723 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6724 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6725 (enable_break): Update.
6726 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6727 (frv_fdpic_find_canonical_descriptor): Update.
6728 (frv_fetch_objfile_link_map): Update.
6729 * progspace.c (program_space::free_all_objfiles): Update.
6730 (program_space::solibs): New method.
6731 * progspace.h (struct program_space) <solibs>: New method.
6732 * solist.h (master_so_list): Don't declare.
6733 (ALL_SO_LIBS): Remove.
6734 * solib.h (so_list_head): Remove.
6735 (update_solib_list): Update comment.
6736 * solib.c (master_so_list): Remove.
6737 (solib_used, update_solib_list, solib_add)
6738 (info_sharedlibrary_command, clear_solib)
6739 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6740
38eae084
TT
67412020-05-08 Tom Tromey <tom@tromey.com>
6742
6743 * extension.c (extension_languages): Now a std::array.
6744 (ALL_EXTENSION_LANGUAGES): Remove.
6745 (get_ext_lang_defn, get_ext_lang_of_file)
6746 (eval_ext_lang_from_control_command): Update.
6747 (finish_ext_lang_initialization)
6748 (auto_load_ext_lang_scripts_for_objfile)
6749 (ext_lang_type_printers::ext_lang_type_printers)
6750 (apply_ext_lang_type_printers)
6751 (ext_lang_type_printers::~ext_lang_type_printers)
6752 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6753 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6754 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6755 (get_matching_xmethod_workers, ext_lang_colorize)
6756 (ext_lang_before_prompt): Update.
6757 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6758
596dc4ad
TT
67592020-05-08 Tom Tromey <tom@tromey.com>
6760
6761 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6762 overload.
6763 <swap_string, m_string>: Remove.
6764 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6765 Update.
6766 * stabsread.c (define_symbol, read_type): Update.
6767 * linespec.c (find_linespec_symbols): Update.
6768 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6769 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6770 * dbxread.c (read_dbx_symtab): Update.
6771 * cp-support.h (cp_canonicalize_string_full)
6772 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6773 Return unique_xmalloc_ptr.
6774 * cp-support.c (inspect_type): Update.
6775 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6776 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6777 Likewise.
6778 * c-typeprint.c (print_name_maybe_canonical): Update.
6779 * break-catch-throw.c (check_status_exception_catchpoint):
6780 Update.
6781
bf4cb9be
TV
67822020-05-08 Tom de Vries <tdevries@suse.de>
6783
6784 * infrun.c (follow_fork): Copy current_line and current_symtab to
6785 child thread.
6786
a1b68f28
SM
67872020-05-07 Simon Marchi <simon.marchi@efficios.com>
6788
6789 * async-event.c (struct async_signal_handler, struct
6790 async_event_handler): Reformat, remove typedef.
6791
98d48915
SM
67922020-05-07 Simon Marchi <simon.marchi@efficios.com>
6793
6794 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6795 access thistype->main_type->dyn_prop_list directly.
6796
7aa91313
SM
67972020-05-07 Simon Marchi <simon.marchi@efficios.com>
6798
6799 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6800 (remove_dyn_prop): Remove. Update all users to use
6801 type::remove_dyn_prop.
6802 * gdbtypes.c (remove_dyn_prop): Rename to...
6803 (type::remove_dyn_prop): ... this.
6804
5c54719c
SM
68052020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6806
6807 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6808 (add_dyn_prop): Remove. Update all users to use
6809 type::add_dyn_prop.
6810 * gdbtypes.c (add_dyn_prop): Rename to...
6811 (type::add_dyn_prop): ... this.
6812
24e99c6c
SM
68132020-05-07 Simon Marchi <simon.marchi@efficios.com>
6814
6815 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6816 (get_dyn_prop): Remove. Update all users to use
6817 type::dyn_prop.
6818 * gdbtypes.c (get_dyn_prop): Rename to...
6819 (type::dyn_prop): ... this.
6820
0d4bf016
SM
68212020-05-06 Simon Marchi <simon.marchi@efficios.com>
6822
6823 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6824
ac4a4f1c
SM
68252020-05-06 Simon Marchi <simon.marchi@efficios.com>
6826
6827 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6828 instruction, skip it if it's there.
6829
a3bbacc1
SM
68302020-05-05 Simon Marchi <simon.marchi@efficios.com>
6831
6832 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6833
c3236f84
SM
68342020-05-04 Simon Marchi <simon.marchi@efficios.com>
6835
6836 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6837 * gdbtypes.c (recursive_dump_type): Remove use of
6838 TYPE_INCOMPLETE.
6839
3b6acaee
TT
68402020-05-03 Tom Tromey <tom@tromey.com>
6841
6842 * breakpoint.c (catch_command, tcatch_command): Remove.
6843 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6844 add_show_prefix_cmd.
6845 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6846 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6847 Remove.
6848 (add_internal_problem_command): Use add_basic_prefix_cmd,
6849 add_show_prefix_cmd.
6850 * mips-tdep.c (set_mipsfpu_command): Remove.
6851 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6852 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6853 (_initialize_index_cache): Use add_basic_prefix_cmd.
6854 * memattr.c (dummy_cmd): Remove.
6855 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6856 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6857 (_initialize_tui_win): Use add_basic_prefix_cmd,
6858 add_show_prefix_cmd.
6859 * cli/cli-logging.c (set_logging_command): Remove.
6860 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6861 add_show_prefix_cmd.
6862 (show_logging_command): Remove.
6863 * target.c (target_command): Remove.
6864 (add_target): Use add_basic_prefix_cmd.
6865
a51119cd
HD
68662020-05-02 Hannes Domani <ssbssa@yahoo.de>
6867
6868 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6869
652fc23a 68702020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6871
652fc23a
PW
6872 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6873 info_command.
6874
117539e6
KR
68752020-04-30 Kamil Rytarowski <n54@gmx.com>
6876
6877 * nbsd-nat.c (nbsd_enable_proc_events)
6878 (nbsd_nat_target::post_startup_inferior): Add.
6879 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6880 (nbsd_nat_target::update_thread_list): Rewrite.
6881 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6882 "PTRACE_LWP_CREATE".
6883 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6884
102e38eb 68852020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6886
102e38eb
PW
6887 * stack.c (_initialize_stack): Remove duplicated creation
6888 of "frame" command and "f" alias.
6889
ee9d1e5f
HD
68902020-04-30 Hannes Domani <ssbssa@yahoo.de>
6891
6892 PR gdb/18706
6893 * gdbtypes.c (check_typedef): Calculate size of array of
6894 stubbed type.
6895
627c7fb8
HD
68962020-04-30 Hannes Domani <ssbssa@yahoo.de>
6897
6898 PR gdb/15559
6899 * i386-tdep.c (i386_push_dummy_call): Call
6900 i386_thiscall_push_dummy_call.
6901 (i386_thiscall_push_dummy_call): New function.
6902 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6903 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6904 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6905
ffc2844e
SM
69062020-04-29 Simon Marchi <simon.marchi@efficios.com>
6907
6908 * gdbarch.sh (do_read): Add shellcheck disable directive for
6909 warning SC2162.
6910
1207375d
SM
69112020-04-29 Simon Marchi <simon.marchi@efficios.com>
6912
6913 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6914 "referenced but not assigned" warning.
6915
9fdb2916
SM
69162020-04-29 Simon Marchi <simon.marchi@efficios.com>
6917
6918 * gdbarch.sh: Remove code that sets fallbackdefault.
6919
759cea5e
SM
69202020-04-29 Simon Marchi <simon.marchi@efficios.com>
6921
6922 * gdbarch.sh: Use shell operators && and || instead of
6923 -a and -o.
6924
cb02ab24
SM
69252020-04-29 Simon Marchi <simon.marchi@efficios.com>
6926
6927 * gdbarch.sh: Use $(...) instead of `...`.
6928
a6fc5ffc
SM
69292020-04-29 Simon Marchi <simon.marchi@efficios.com>
6930
6931 * gdbarch.sh: Use double quotes around variables.
6932
8d113d13
SM
69332020-04-29 Simon Marchi <simon.marchi@efficios.com>
6934
6935 * gdbarch.sh: Use %s with printf, instead of variables in the
6936 format string.
6937
ed6acedd
TT
69382020-04-29 Tom Tromey <tromey@adacore.com>
6939
6940 PR ada/25875:
6941 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6942 type fields here.
6943 (read_enumeration_type): Call
6944 update_enumeration_type_from_children later. Update comments.
6945 (process_enumeration_scope): Don't create type fields.
6946
b68b1b58
KR
69472020-04-29 Kamil Rytarowski <n54@gmx.com>
6948
6949 * nbsd-tdep.c: Include "xml-syscall.h".
6950 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6951
f94b2e03
KR
69522020-04-29 Kamil Rytarowski <n54@gmx.com>
6953
6954 * nbsd-nat.c: Include "sys/wait.h".
6955 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6956 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6957 (nbsd_nat_target::remove_exec_catchpoint)
6958 (nbsd_nat_target::set_syscall_catchpoint): Add.
6959 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6960 (nbsd_nat_target::insert_exec_catchpoint)
6961 (nbsd_nat_target::remove_exec_catchpoint)
6962 (nbsd_nat_target::set_syscall_catchpoint): Add.
6963 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6964 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6965 `nbsd_get_syscall_number'.
6966
fc49bc72
TT
69672020-04-29 Tom Tromey <tom@tromey.com>
6968
6969 * stack.c (print_block_frame_labels): Remove.
6970
d642b692
HD
69712020-04-29 Hannes Domani <ssbssa@yahoo.de>
6972
6973 PR gdb/17320
6974 * ada-valprint.c (val_print_packed_array_elements): Move array
6975 end bracket to new line.
6976 (ada_val_print_string): Remove extra spaces before first array
6977 element.
6978 * c-valprint.c (c_value_print_array): Likewise.
6979 * m2-valprint.c (m2_print_array_contents): Likewise.
6980 (m2_value_print_inner): Likewise.
6981 * p-valprint.c (pascal_value_print_inner): Likewise.
6982 * valprint.c (generic_val_print_array): Likewise.
6983 (value_print_array_elements): Move first array element and array
6984 end bracket to new line.
6985
ea90f227
TV
69862020-04-29 Tom de Vries <tdevries@suse.de>
6987
6988 PR symtab/25889
6989 * linespec.c (find_method): Fix ix calculation.
6990
4498ef4f
KR
69912020-04-28 Kamil Rytarowski <n54@gmx.com>
6992
6993 * syscalls/update-netbsd.sh: New file.
6994 * syscalls/netbsd.xml: Regenerate.
6995 * data-directory/Makefile.in: Register `netbsd.xml' in
6996 `SYSCALLS_FILES'.
6997
a55e30b5
SM
69982020-04-28 Simon Marchi <simon.marchi@efficios.com>
6999
7000 * syscalls/update-freebsd.sh: Add double quotes.
7001
2b2fbab8
TT
70022020-04-28 Tom Tromey <tom@tromey.com>
7003
7004 * NEWS: Update.
7005 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7006 (cmdpy_init): Allow class_tui.
7007
a65189c9
TV
70082020-04-28 Mark Williams <mark@myosotissp.com>
7009
7010 PR gdb/24480
7011 * dwarf2read.c: Add missing assingments to list_in_scope when
7012 start_symtab was already called.
7013
1b95cdb7
SM
70142020-04-28 Simon Marchi <simon.marchi@efficios.com>
7015
7016 PR gdb/25881
7017 * dwarf2/read.c (offset_map_type): Use
7018 gdb:hash_enum<sect_offset> as hash function.
7019
15cd93d0
TV
70202020-04-28 Tom de Vries <tdevries@suse.de>
7021
7022 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7023 with DW_AT_signature.
7024
1eb39914
SM
70252020-04-27 Simon Marchi <simon.marchi@efficios.com>
7026
7027 * configure.ac: Remove check for fs_base/gs_base in
7028 user_regs_struct.
7029 * configure: Re-generate.
7030 * config.in: Re-generate.
7031 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7032 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7033 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7034
991a3e2e
LM
70352020-04-27 Luis Machado <luis.machado@linaro.org>
7036
7037 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7038 problematic inline frame unwinding situation.
7039 * frame.c (frame_id_computed_p): New function.
7040 * frame.h (frame_id_computed_p): New prototype.
7041
361ba0e8
TT
70422020-04-26 Tom Tromey <tom@tromey.com>
7043
7044 * command.h (enum command_class) <class_pseudo>: Remove.
7045
bc3609fd
PW
70462020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7047
7048 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7049 and whitespace.
7050
b9771db7
KR
70512020-04-25 Kamil Rytarowski <n54@gmx.com>
7052
ec16513e
SM
7053 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7054 `PT_GET_PROCESS_STATE' block.
b9771db7 7055
7151c1af
TT
70562020-04-24 Tom Tromey <tom@tromey.com>
7057
7058 * symtab.h (symbol_get_demangled_name): Don't declare.
7059 * symtab.c (symbol_get_demangled_name): Remove.
7060 (general_symbol_info::natural_name)
7061 (general_symbol_info::demangled_name): Update.
7062
906bb4c5
TT
70632020-04-24 Tom Tromey <tom@tromey.com>
7064
7065 PR rust/25025:
7066 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7067
bcfe6157
TT
70682020-04-24 Tom Tromey <tom@tromey.com>
7069
7070 PR symtab/12707:
7071 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7072 exists.
7073 (new_symbol): Likewise.
7074 * compile/compile-object-load.c (get_out_value_type): Use
7075 symbol_matches_search_name.
7076
f049a313
TT
70772020-04-24 Tom Tromey <tom@tromey.com>
7078
7079 * dwarf2/read.c (add_partial_symbol): Do not call
7080 compute_and_set_names.
7081
76e288d1
TT
70822020-04-24 Tom Tromey <tom@tromey.com>
7083
7084 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7085 overload.
7086
2467f4f6
TT
70872020-04-24 Tom Tromey <tom@tromey.com>
7088
7089 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7090 (add_psymbol_to_list): New overload. Make old overload call new
7091 one.
7092 * psympriv.h (add_psymbol_to_list): New overload.
7093
e61108c9
TT
70942020-04-24 Tom Tromey <tom@tromey.com>
7095
7096 * dwarf2/read.c (partial_die_info::read) <case
7097 DW_AT_linkage_name>: Use value_as_string.
7098 (dwarf2_string_attr): Use value_as_string.
7099 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7100 method.
7101 * dwarf2/attribute.c (attribute::value_as_string): New method.
7102
8c87a452
TT
71032020-04-24 Tom Tromey <tom@tromey.com>
7104
7105 * symtab.c (general_symbol_info::natural_name)
7106 (general_symbol_info::demangled_name): Check for language_rust.
7107
787de330
TT
71082020-04-24 Tom Tromey <tom@tromey.com>
7109
7110 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7111 (dwarf2_physname): ... from here.
7112 (partial_die_info::read): Add Rust "{" hack.
7113
ff985671
TT
71142020-04-24 Tom Tromey <tom@tromey.com>
7115
7116 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7117 method.
7118 (symbol_set_demangled_name): Don't declare.
7119 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7120 symbol_set_demangled_name.
7121 (general_symbol_info::set_language)
7122 (general_symbol_info::compute_and_set_names): Update.
7123 * minsyms.c (minimal_symbol_reader::install): Update.
7124 * dwarf2/read.c (new_symbol): Update.
7125
1acda803
TT
71262020-04-24 Tom Tromey <tromey@adacore.com>
7127
7128 PR python/23662:
7129 * python/py-type.c (convert_field): Handle
7130 FIELD_LOC_KIND_DWARF_BLOCK.
7131 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7132 (typy_get_dynamic): Nw function.
7133 (type_object_getset): Add "dynamic".
7134 * NEWS: Add entry.
7135
d656f129
TT
71362020-04-24 Tom Tromey <tromey@adacore.com>
7137
7138 * ada-typeprint.c (print_choices, print_variant_part)
7139 (print_record_field_types_dynamic): New functions.
7140 (print_record_field_types): Use print_record_field_types_dynamic.
7141
7d79de9a
TT
71422020-04-24 Tom Tromey <tromey@adacore.com>
7143
7144 * dwarf2/read.c (handle_data_member_location): New overload.
7145 (dwarf2_add_field): Use it.
7146 (decode_locdesc): Add "computed" parameter. Update comment.
7147 * gdbtypes.c (is_dynamic_type_internal): Also look for
7148 FIELD_LOC_KIND_DWARF_BLOCK.
7149 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7150 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7151 virtual base classes.
7152 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7153 FIELD_LOC_KIND_DWARF_BLOCK.
7154
f8e89861
TT
71552020-04-24 Tom Tromey <tromey@adacore.com>
7156
7157 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7158 * gdbtypes.c (is_dynamic_type_internal): Check
7159 TYPE_HAS_DYNAMIC_LENGTH.
7160 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7161 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7162 New macros.
7163 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7164 constant.
7165
9c6a1327
TT
71662020-04-24 Tom Tromey <tromey@adacore.com>
7167
7168 * dwarf2/read.c (struct variant_field): Rewrite.
7169 (struct variant_part_builder): New.
7170 (struct nextfield): Remove "variant" field. Add "offset".
7171 (struct field_info): Add "current_variant_part" and
7172 "variant_parts".
7173 (alloc_discriminant_info): Remove.
7174 (alloc_rust_variant): New function.
7175 (quirk_rust_enum): Update.
7176 (dwarf2_add_field): Set "offset" member. Don't handle
7177 DW_TAG_variant_part.
7178 (offset_map_type): New typedef.
7179 (convert_variant_range, create_one_variant)
7180 (create_one_variant_part, create_variant_parts)
7181 (add_variant_property): New functions.
7182 (dwarf2_attach_fields_to_type): Call add_variant_property.
7183 (read_structure_type): Don't handle DW_TAG_variant_part.
7184 (handle_variant_part, handle_variant): New functions.
7185 (handle_struct_member_die): Use them.
7186 (process_structure_scope): Don't handle variant parts.
7187 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7188 (struct discriminant_info): Remove.
7189 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7190 (struct main_type) <flag_discriminated_union>: Remove.
7191 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7192 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7193 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7194 Update.
7195 * valops.c (value_union_variant): Remove.
7196 * value.h (value_union_variant): Don't declare.
7197
b249d2c2
TT
71982020-04-24 Tom Tromey <tromey@adacore.com>
7199
7200 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7201 (ada_value_primitive_packed_val): Update.
7202 * ada-valprint.c (ada_value_print_1): Update.
7203 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7204 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7205 just an address. Use evaluate_for_locexpr_baton.
7206 (dwarf2_evaluate_property): Update.
7207 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7208 array_view.
7209 * findvar.c (default_read_var_value): Update.
7210 * gdbtypes.c (compute_variant_fields_inner)
7211 (resolve_dynamic_type_internal): Update.
7212 (resolve_dynamic_type): Change type of valaddr parameter.
7213 * gdbtypes.h (resolve_dynamic_type): Update.
7214 * valarith.c (value_subscripted_rvalue): Update.
7215 * value.c (value_from_contents_and_address): Update.
7216
61122aa9
TT
72172020-04-24 Tom Tromey <tromey@adacore.com>
7218
7219 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7220 "push_initial_value" parameter.
7221 (dwarf2_evaluate_property): Likewise.
7222 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7223
ef83a141
TT
72242020-04-24 Tom Tromey <tromey@adacore.com>
7225
7226 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7227 (variant::matches, compute_variant_fields_recurse)
7228 (compute_variant_fields_inner, compute_variant_fields): New
7229 functions.
7230 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7231 Use resolved_type after type is made.
7232 (operator==): Add new cases.
7233 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7234 (struct discriminant_range, struct variant, struct variant_part):
7235 New.
7236 (union dynamic_prop_data) <variant_parts, original_type>: New
7237 members.
7238 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7239 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7240 constants.
7241 * value.c (unpack_bits_as_long): Now public.
7242 * value.h (unpack_bits_as_long): Declare.
7243
675127ec
TT
72442020-04-24 Tom Tromey <tromey@adacore.com>
7245
7246 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7247 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7248
9852ceef
HD
72492020-04-24 Hannes Domani <ssbssa@yahoo.de>
7250
7251 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7252
7632c6ce
KR
72532020-04-24 Kamil Rytarowski <n54@gmx.com>
7254
7255 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7256 (remove_fork_catchpoint, post_startup_inferior)
7257 (post_attach): Move...
7258 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7259 (remove_fork_catchpoint, post_startup_inferior)
7260 (post_attach): ...here.
7261 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7262 (remove_fork_catchpoint, post_startup_inferior)
7263 (post_attach): Move...
7264 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7265 (remove_fork_catchpoint, post_startup_inferior)
7266 (post_attach): ...here.
7267
7be2bb4f
TT
72682020-04-24 Tom Tromey <tromey@adacore.com>
7269
7270 * nat/windows-nat.h (struct windows_thread_info)
7271 <pc_adjusted>: New member.
7272 * windows-nat.c (windows_fetch_one_register): Check
7273 pc_adjusted.
7274 (windows_nat_target::get_windows_debug_event)
7275 (windows_nat_target::wait): Set pc_adjusted.
7276
f80cb3b4
TV
72772020-04-24 Tom de Vries <tdevries@suse.de>
7278
7279 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7280 Run gdb-add-index inside temp dir.
7281
29514b87
TT
72822020-04-23 Tom Tromey <tromey@adacore.com>
7283
7284 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7285 in loop.
7286
5939967b
LM
72872020-04-23 Luis Machado <luis.machado@linaro.org>
7288
7289 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7290 get_frame_register instead of gdbarch_unwind_pc.
7291
70bc38f5
TV
72922020-04-23 Tom de Vries <tdevries@suse.de>
7293
7294 * symtab.c (lookup_global_symbol): Prefer def over decl.
7295
de82891c
TV
72962020-04-23 Tom de Vries <tdevries@suse.de>
7297
7298 PR symtab/25807
7299 * block.c (best_symbol, better_symbol): Promote to external.
7300 * block.h (best_symbol, better_symbol): Declare.
7301 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7302 decl.
7303
ecc6c606
TT
73042020-04-23 Tom Tromey <tromey@adacore.com>
7305
7306 PR ada/25837:
7307 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7308 "const char *", not a "const std::string &".
7309 <name_and_matcher::operator==>: Update.
7310 * unittests/lookup_name_info-selftests.c: Change type of
7311 "result".
7312
740480b8
TT
73132020-04-23 Tom Tromey <tom@tromey.com>
7314
7315 * inferior.h (iterate_over_inferiors): Don't declare.
7316 * inferior.c (iterate_over_inferiors): Remove.
7317 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7318 Remove.
7319 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7320 use iterate_over_inferiors.
7321 (darwin_resume_inferior_it)
7322 (struct resume_inferior_threads_param)
7323 (darwin_resume_inferior_threads_it): Remove.
7324 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7325
ae3ab1f0
TV
73262020-04-23 Tom de Vries <tdevries@suse.de>
7327
7328 * blockframe.c (find_pc_partial_function): Use
7329 find_pc_sect_compunit_symtab rather than
7330 objfile->sf->qf->find_pc_sect_compunit_symtab.
7331
317d2668
TV
73322020-04-22 Tom de Vries <tdevries@suse.de>
7333
7334 PR symtab/25764
7335 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7336 in psymtabs.
7337
eea9e357
TV
73382020-04-22 Tom de Vries <tdevries@suse.de>
7339
7340 PR symtab/25801
7341 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7342 symtabs.
7343
3d5afab3
TV
73442020-04-22 Tom de Vries <tdevries@suse.de>
7345
7346 PR symtab/25700
7347 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7348 CU if already created.
7349
d43b7a2d
TBA
73502020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7351
7352 * infrun.c (displaced_step_fixup): Switch to the event_thread
7353 before calling displaced_step_restore, not after.
7354
d89edf9b
MM
73552020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7356
7357 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7358 its inferior is not recorded by us.
7359 (record_btrace_target_open): Replace call to
7360 all_non_exited_threads () with call to current_inferior
7361 ()->non_exited_threads ().
7362 (record_btrace_target::stop_recording): Likewise.
7363 (record_btrace_target::close): Likewise.
7364 (record_btrace_target::wait): Likewise.
7365 (record_btrace_target::record_stop_replaying): Likewise.
7366
5897fd49
MM
73672020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7368
7369 * btrace.c (btrace_enable): Throw an error on double enables and
7370 when enabling recording fails.
7371 (btrace_disable): Throw an error if the thread is not recorded.
7372
1a476b6d
MM
73732020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7374
7375 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7376 request if we do not have a thread_info.
7377
4778a5f8
TV
73782020-04-21 Tom de Vries <tdevries@suse.de>
7379
7380 PR gdb/25471
7381 * thread.c
7382 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7383 exception in get_frame_id.
7384
0fa7617d
TT
73852020-04-20 Tom Tromey <tromey@adacore.com>
7386
7387 * python/python.c (struct gdbpy_event): Mark move constructor as
7388 noexcept.
7389 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7390 constructor as noexcept.
7391 * completer.h (struct completion_result): Mark move constructor as
7392 noexcept.
7393 * completer.c (completion_result::completion_result): Use
7394 initialization style. Don't call reset_match_list.
7395
ad23bda0
MS
73962020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7397
7398 * MAINTAINERS (Write After Approval): Add myself.
7399
45e1f031
TT
74002020-04-18 Tom Tromey <tom@tromey.com>
7401
7402 * windows-tdep.c (init_w32_command_list)
7403 (w32_prefix_command_valid): Restore.
7404 (_initialize_windows_tdep): Call init_w32_command_list.
7405
08feed99
TT
74062020-04-18 Tom Tromey <tom@tromey.com>
7407
7408 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7409 * value.c (value_fn_field): Update.
7410 * valops.c (find_function_in_inferior)
7411 (value_allocate_space_in_inferior): Update.
7412 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7413 Update.
7414 * tui/tui-source.c (tui_source_window::set_contents): Update.
7415 * symtab.c (lookup_global_or_static_symbol)
7416 (find_function_start_sal_1, skip_prologue_sal)
7417 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7418 * symmisc.c (dump_msymbols, dump_symtab_1)
7419 (maintenance_print_one_line_table): Update.
7420 * symfile.c (init_entry_point_info, section_is_mapped)
7421 (list_overlays_command, simple_read_overlay_table)
7422 (simple_overlay_update_1): Update.
7423 * stap-probe.c (handle_stap_probe): Update.
7424 * stabsread.c (dbx_init_float_type, define_symbol)
7425 (read_one_struct_field, read_enum_type, read_range_type): Update.
7426 * source.c (info_line_command): Update.
7427 * python/python.c (gdbpy_source_objfile_script)
7428 (gdbpy_execute_objfile_script): Update.
7429 * python/py-type.c (save_objfile_types): Update.
7430 * python/py-objfile.c (py_free_objfile): Update.
7431 * python/py-inferior.c (python_new_objfile): Update.
7432 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7433 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7434 (maintenance_check_psymtabs): Update.
7435 * printcmd.c (info_address_command): Update.
7436 * objfiles.h (struct objfile) <arch>: New method, from
7437 get_objfile_arch.
7438 (get_objfile_arch): Don't declare.
7439 * objfiles.c (get_objfile_arch): Remove.
7440 (filter_overlapping_sections): Update.
7441 * minsyms.c (msymbol_is_function): Update.
7442 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7443 (output_nondebug_symbol): Update.
7444 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7445 (mdebug_expand_psymtab): Update.
7446 * machoread.c (macho_add_oso_symfile): Update.
7447 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7448 Update.
7449 * linux-fork.c (checkpoint_command): Update.
7450 * linespec.c (convert_linespec_to_sals): Update.
7451 * jit.c (finalize_symtab): Update.
7452 * infrun.c (insert_exception_resume_from_probe): Update.
7453 * ia64-tdep.c (ia64_find_unwind_table): Update.
7454 * hppa-tdep.c (internalize_unwinds): Update.
7455 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7456 Update.
7457 * gcore.c (call_target_sbrk): Update.
7458 * elfread.c (record_minimal_symbol, elf_symtab_read)
7459 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7460 (elf_gnu_ifunc_resolve_by_got): Update.
7461 * dwarf2/read.c (create_addrmap_from_index)
7462 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7463 (read_debug_names_from_section)
7464 (process_psymtab_comp_unit_reader, add_partial_symbol)
7465 (add_partial_subprogram, process_full_comp_unit)
7466 (read_file_scope, read_func_scope, read_lexical_block_scope)
7467 (read_call_site_scope, dwarf2_ranges_read)
7468 (dwarf2_record_block_ranges, dwarf2_add_field)
7469 (mark_common_block_symbol_computed, read_tag_pointer_type)
7470 (read_tag_string_type, dwarf2_init_float_type)
7471 (dwarf2_init_complex_target_type, read_base_type)
7472 (partial_die_info::read, partial_die_info::read)
7473 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7474 (dwarf2_fetch_die_loc_sect_off): Update.
7475 * dwarf2/loc.c (dwarf2_find_location_expression)
7476 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7477 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7478 (dwarf2_loc_desc_get_symbol_read_needs)
7479 (locexpr_describe_location_piece, locexpr_describe_location_1)
7480 (loclist_describe_location): Update.
7481 * dwarf2/index-write.c (write_debug_names): Update.
7482 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7483 * dtrace-probe.c (dtrace_process_dof): Update.
7484 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7485 (process_one_symbol): Update.
7486 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7487 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7488 (coff_read_enum_type): Update.
7489 * cli/cli-cmds.c (edit_command, list_command): Update.
7490 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7491 * breakpoint.c (create_overlay_event_breakpoint)
7492 (create_longjmp_master_breakpoint)
7493 (create_std_terminate_master_breakpoint)
7494 (create_exception_master_breakpoint, get_sal_arch): Update.
7495 * block.c (block_gdbarch): Update.
7496 * annotate.c (annotate_source_line): Update.
7497
0743fc83
TT
74982020-04-17 Tom Tromey <tromey@adacore.com>
7499
7500 * auto-load.c (show_auto_load_cmd): Remove.
7501 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7502 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7503 (maintenance_print_arc_command): Remove.
7504 * tui/tui-win.c (tui_command): Remove.
7505 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7506 * tui/tui-layout.c (tui_layout_command): Remove.
7507 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7508 * python/python.c (user_set_python, user_show_python): Remove.
7509 (_initialize_python): Use add_basic_prefix_cmd,
7510 add_show_prefix_cmd.
7511 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7512 (install_gdb_commands): Use add_basic_prefix_cmd,
7513 add_show_prefix_cmd.
7514 (info_guile_command): Remove.
7515 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7516 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7517 add_show_prefix_cmd.
7518 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7519 Remove do_set and do_show parameters.
7520 * cli/cli-style.c (set_style, show_style): Remove.
7521 (_initialize_cli_style): Use add_basic_prefix_cmd,
7522 add_show_prefix_cmd.
7523 (cli_style_option::add_setshow_commands): Remove do_set and
7524 do_show parameters.
7525 (cli_style_option::add_setshow_commands): Use
7526 add_basic_prefix_cmd, add_show_prefix_cmd.
7527 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7528 (set_style_name): Remove.
7529 * cli/cli-dump.c (dump_command, append_command): Remove.
7530 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7531 (tekhex_dump_command, binary_dump_command)
7532 (binary_append_command): Remove.
7533 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7534 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7535 (init_w32_command_list): Remove; move into ...
7536 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7537 * valprint.c (set_print, show_print, set_print_raw)
7538 (show_print_raw): Remove.
7539 (_initialize_valprint): Use add_basic_prefix_cmd,
7540 add_show_prefix_cmd.
7541 * typeprint.c (set_print_type, show_print_type): Remove.
7542 (_initialize_typeprint): Use add_basic_prefix_cmd,
7543 add_show_prefix_cmd.
7544 * record.c (set_record_command, show_record_command): Remove.
7545 (_initialize_record): Use add_basic_prefix_cmd,
7546 add_show_prefix_cmd.
7547 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7548 add_show_prefix_cmd.
7549 (info_command, show_command, set_debug, show_debug): Remove.
7550 * top.h (set_history, show_history): Don't declare.
7551 * top.c (set_history, show_history): Remove.
7552 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7553 (unset_tdesc_cmd): Remove.
7554 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7555 add_show_prefix_cmd.
7556 * symtab.c (info_module_command): Remove.
7557 (_initialize_symtab): Use add_basic_prefix_cmd.
7558 * symfile.c (overlay_command): Remove.
7559 (_initialize_symfile): Use add_basic_prefix_cmd.
7560 * sparc64-tdep.c (info_adi_command): Remove.
7561 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7562 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7563 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7564 add_show_prefix_cmd.
7565 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7566 (_initialize_serial): Use add_basic_prefix_cmd,
7567 add_show_prefix_cmd.
7568 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7569 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7570 add_show_prefix_cmd.
7571 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7572 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7573 add_show_prefix_cmd.
7574 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7575 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7576 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7577 add_show_prefix_cmd.
7578 * remote.c (remote_command, set_remote_cmd): Remove.
7579 (_initialize_remote): Use add_basic_prefix_cmd.
7580 * record-full.c (set_record_full_command)
7581 (show_record_full_command): Remove.
7582 (_initialize_record_full): Use add_basic_prefix_cmd,
7583 add_show_prefix_cmd.
7584 * record-btrace.c (cmd_set_record_btrace)
7585 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7586 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7587 (cmd_show_record_btrace_pt): Remove.
7588 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7589 add_show_prefix_cmd.
7590 * ravenscar-thread.c (set_ravenscar_command)
7591 (show_ravenscar_command): Remove.
7592 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7593 add_show_prefix_cmd.
7594 * mips-tdep.c (show_mips_command, set_mips_command)
7595 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7596 add_show_prefix_cmd.
7597 * maint.c (maintenance_command, maintenance_info_command)
7598 (maintenance_check_command, maintenance_print_command)
7599 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7600 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7601 add_show_prefix_cmd.
7602 (show_per_command_cmd): Remove.
7603 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7604 Remove.
7605 (maintenance_show_test_settings_cmd): Remove.
7606 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7607 add_show_prefix_cmd.
7608 * maint-test-options.c (maintenance_test_options_command):
7609 Remove.
7610 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7611 * macrocmd.c (macro_command): Remove
7612 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7613 * language.c (set_check, show_check): Remove.
7614 (_initialize_language): Use add_basic_prefix_cmd,
7615 add_show_prefix_cmd.
7616 * infcmd.c (unset_command): Remove.
7617 (_initialize_infcmd): Use add_basic_prefix_cmd.
7618 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7619 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7620 add_show_prefix_cmd.
7621 * go32-nat.c (go32_info_dos_command): Remove.
7622 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7623 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7624 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7625 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7626 (_initialize_frame): Use add_basic_prefix_cmd,
7627 add_show_prefix_cmd.
7628 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7629 (_initialize_dcache): Use add_basic_prefix_cmd,
7630 add_show_prefix_cmd.
7631 * cp-support.c (maint_cplus_command): Remove.
7632 (_initialize_cp_support): Use add_basic_prefix_cmd.
7633 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7634 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7635 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7636 add_basic_prefix_cmd, add_show_prefix_cmd.
7637 * breakpoint.c (save_command): Remove.
7638 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7639 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7640 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7641 add_show_prefix_cmd.
7642 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7643 (set_ada_command, show_ada_command): Remove.
7644 (_initialize_ada_language): Use add_basic_prefix_cmd,
7645 add_show_prefix_cmd.
7646 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7647
3557f442
KR
76482020-04-16 Kamil Rytarowski <n54@gmx.com>
7649
7650 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7651 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7652
16197208
SM
76532020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7654
7655 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7656 warning messages.
7657
00ac85d3
SM
76582020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7659
7660 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7661 import table is not at beginning of .idata section.
7662
381ce63f
PA
76632020-04-16 Pedro Alves <palves@redhat.com>
7664
7665 * inferior.c (delete_inferior): Use delete operator directly
7666 instead of delete_program_space.
7667 * progspace.c (add_program_space): New, factored out from
7668 program_space::program_space.
7669 (remove_program_space): New, factored out from
7670 delete_program_space.
7671 (program_space::program_space): Remove intro comment. Rewrite.
7672 (program_space::~program_space): Remove intro comment. Call
7673 remove_program_space.
7674 (delete_program_space): Delete.
7675 * progspace.h (program_space::program_space): Make explicit. Move
7676 intro comment here, adjusted.
7677 (program_space::~program_space): Move intro comment here,
7678 adjusted.
7679 (delete_program_space): Remove.
7680
a010605f
TT
76812020-04-16 Tom Tromey <tromey@adacore.com>
7682
7683 * windows-nat.c (windows_nat::handle_access_violation): New
7684 function.
7685 * nat/windows-nat.h (handle_access_violation): Declare.
7686 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7687 windows-nat.c. Call handle_access_violation.
7688
efba5c23
TV
76892020-04-16 Tom de Vries <tdevries@suse.de>
7690
7691 PR symtab/25791
7692 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7693 CUs without psymtab.
7694
97ed802d
KB
76952020-04-16 Kevin Buettner <kevinb@redhat.com>
7696
7697 * python/python.c (do_start_initialization): Don't call
7698 PyEval_InitThreads for Python 3.9 and beyond.
7699
c7d64809
KR
77002020-04-15 Kamil Rytarowski <n54@gmx.com>
7701
7702 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7703 thread functions.
7704 (obsd_nat_target::wait): Likewise.
7705
ce127a96
TT
77062020-04-15 Tom Tromey <tromey@adacore.com>
7707
7708 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7709 (DEBUG_EXCEPT): Use debug_printf.
7710
99f1bc6a
AB
77112020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7712
7713 * completer.c (class completion_tracker::completion_hash_entry)
7714 <hash_name>: New member function.
7715 (completion_tracker::discard_completions): New callback to hash a
7716 completion_hash_entry, pass this to htab_create_alloc.
7717
a0e9b532
JT
77182016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7719
7720 * windows-nat.c (windows_make_so): Warn rather than stopping with
7721 an error if realpath() fails.
7722
06ca5dd4
KR
77232020-04-14 Kamil Rytarowski <n54@gmx.com>
7724
7725 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7726 (nbsd_nat_target::info_proc): Add do_status.
7727
194d088f
TV
77282020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7729 Tom de Vries <tdevries@suse.de>
7730
7731 PR symtab/25718
7732 * psympriv.h (struct partial_symtab::read_symtab)
7733 (struct partial_symtab::expand_psymtab)
7734 (struct partial_symtab::read_dependencies): Update comments.
7735 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7736 read_symtab for includer.
7737 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7738 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7739 (struct dwarf2_include_psymtab::m_readin): Remove.
7740 (struct dwarf2_include_psymtab::includer): New member function.
7741 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7742
c1a66c06
TV
77432020-04-14 Tom de Vries <tdevries@suse.de>
7744
7745 PR symtab/25720
7746 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7747 with NULL symbol_matcher and lookup_name.
7748 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7749 and lookup_name.
7750 * dwarf2/read.c (dw2_expand_symtabs_matching)
7751 (dw2_debug_names_expand_symtabs_matching): Same.
7752 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7753 Make lookup_name a pointer. Update comment.
7754 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7755 lookup_name being a pointer.
7756 * symfile.c (expand_symtabs_matching): Same.
7757 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7758 * linespec.c (iterate_over_all_matching_symtabs): Same.
7759
400b5eca
TT
77602020-04-13 Tom Tromey <tom@tromey.com>
7761
7762 * run-on-main-thread.c: Update include.
7763 * unittests/main-thread-selftests.c: Update include.
7764 * tui/tui-win.c: Update include.
7765 * tui/tui-io.c: Update include.
7766 * tui/tui-interp.c: Update include.
7767 * tui/tui-hooks.c: Update include.
7768 * top.h: Update include.
7769 * top.c: Update include.
7770 * ser-base.c: Update include.
7771 * remote.c: Update include.
7772 * remote-notif.c: Update include.
7773 * remote-fileio.c: Update include.
7774 * record-full.c: Update include.
7775 * record-btrace.c: Update include.
7776 * python/python.c: Update include.
7777 * posix-hdep.c: Update include.
7778 * mingw-hdep.c: Update include.
7779 * mi/mi-main.c: Update include.
7780 * mi/mi-interp.c: Update include.
7781 * main.c: Update include.
7782 * linux-nat.c: Update include.
7783 * interps.c: Update include.
7784 * infrun.c: Update include.
7785 * inf-loop.c: Update include.
7786 * event-top.c: Update include.
7787 * event-loop.c: Move to ../gdbsupport/.
7788 * event-loop.h: Move to ../gdbsupport/.
7789 * async-event.h: Update include.
7790 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7791
93b54c8e
TT
77922020-04-13 Tom Tromey <tom@tromey.com>
7793
7794 * tui/tui-win.c: Include async-event.h.
7795 * remote.c: Include async-event.h.
7796 * remote-notif.c: Include async-event.h.
7797 * record-full.c: Include async-event.h.
7798 * record-btrace.c: Include async-event.h.
7799 * infrun.c: Include async-event.h.
7800 * event-top.c: Include async-event.h.
7801 * event-loop.h: Move some declarations to async-event.h.
7802 * event-loop.c: Don't include ser-event.h or top.h. Move some
7803 code to async-event.c.
7804 * async-event.h: New file.
7805 * async-event.c: New file.
7806 * Makefile.in (COMMON_SFILES): Add async-event.c.
7807 (HFILES_NO_SRCDIR): Add async-event.h.
7808
c1cd3163
TT
78092020-04-13 Tom Tromey <tom@tromey.com>
7810
7811 * utils.c (flush_streams): New function.
7812 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7813
29f2bf4f
TT
78142020-04-13 Tom Tromey <tom@tromey.com>
7815
7816 * event-loop.c (handle_file_event): Use warning, not
7817 printf_unfiltered.
7818
98029d02
TT
78192020-04-13 Tom Tromey <tom@tromey.com>
7820
7821 * event-loop.c: Include <chrono>.
7822
06cc9596
TT
78232020-04-13 Tom Tromey <tom@tromey.com>
7824
7825 * gdb_select.h: Move to ../gdbsupport/.
7826 * event-loop.c: Update include path.
7827 * top.c: Update include path.
7828 * ser-base.c: Update include path.
7829 * ui-file.c: Update include path.
7830 * ser-tcp.c: Update include path.
7831 * guile/scm-ports.c: Update include path.
7832 * posix-hdep.c: Update include path.
7833 * ser-unix.c: Update include path.
7834 * gdb_usleep.c: Update include path.
7835 * mingw-hdep.c: Update include path.
7836 * inflow.c: Update include path.
7837 * infrun.c: Update include path.
7838 * event-top.c: Update include path.
7839
8ae8e197
TT
78402020-04-13 Tom Tromey <tom@tromey.com>
7841
7842 * configure: Rebuild.
7843 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7844
58cf28e8
TT
78452020-04-13 Tom Tromey <tom@tromey.com>
7846
7847 * event-loop.h (start_event_loop): Don't declare.
7848 * event-loop.c (start_event_loop): Move...
7849 * main.c (start_event_loop): ...here. Now static.
7850
b7f999ae
SDJ
78512020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7852
7853 * MAINTAINERS: Update my email address.
7854
1085dfd4
KR
78552020-04-12 Kamil Rytarowski <n54@gmx.com>
7856
7857 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7858 IP_ALL.
7859
49d1d1f5
KR
78602020-04-12 Kamil Rytarowski <n54@gmx.com>
7861
7862 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7863 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7864
b4848d2a
KR
78652020-04-12 Kamil Rytarowski <n54@gmx.com>
7866
7867 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7868 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7869
51c133d5
KR
78702020-04-12 Kamil Rytarowski <n54@gmx.com>
7871
7872 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7873
54b8cbd0
KR
78742020-04-11 Kamil Rytarowski <n54@gmx.com>
7875
7876 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7877 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7878 (nbsd_nat_target::info_proc): New functions.
7879 * nbsd-nat.c (kinfo_get_vmmap): New function.
7880 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7881 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7882 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7883 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7884 functions.
7885 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7886 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7887 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7888 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7889 (KINFO_VME_FLAG_GROWS_DOWN): New.
7890
cf83625d
AS
78912020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7892
7893 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7894 bit shift.
7895
0c4311ab
TT
78962020-04-10 Tom Tromey <tromey@adacore.com>
7897
7898 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7899
3e65b3e9
TT
79002020-04-10 Tom Tromey <tromey@adacore.com>
7901
7902 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7903 separate debug files.
7904
13302e95
HD
79052020-04-10 Hannes Domani <ssbssa@yahoo.de>
7906
7907 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7908 Move to...
7909 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7910 ... here.
7911 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7912 Check for STATUS_WX86_BREAKPOINT.
7913 (windows_nat_target::wait): Same.
7914
bdfc1e8a
TV
79152020-04-10 Tom de Vries <tdevries@suse.de>
7916
7917 PR cli/25808
7918 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7919
f4460aec
SM
79202020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7921
7922 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7923 (Write After Approval): Remove Tom de Vries.
7924
a25198bb
BE
79252020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7926
7927 revert partially:
7928 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7929
aac66a4c
SM
7930 * buildsym.c (record_line): Fix undefined behavior and preserve
7931 lines at eof.
a25198bb 7932
206c98a6
KR
79332020-04-09 Kamil Rytarowski <n54@gmx.com>
7934
7935 * auxv.h (svr4_auxv_parse): New.
7936 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7937 and generic_auxv_parse.
7938 (svr4_auxv_parse): Add.
7939 * obsd-tdep.c: Include "auxv.h".
7940 (obsd_auxv_parse): Remove.
7941 (obsd_init_abi): Remove comment.
7942 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7943 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7944 * nbsd-tdep.c: Include "auxv.h".
7945 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7946
71fbdbaf
TT
79472020-04-08 Tom Tromey <tromey@adacore.com>
7948
7949 * nat/windows-nat.h (last_wait_event): Don't declare.
7950 (wait_for_debug_event): Update comment.
7951 * nat/windows-nat.c (last_wait_event): Now static.
7952
2c1d95e8
TT
79532020-04-08 Tom Tromey <tromey@adacore.com>
7954
7955 * windows-nat.c (wait_for_debug_event): Move to
7956 nat/windows-nat.c.
7957 * nat/windows-nat.h (wait_for_debug_event): Declare.
7958 * nat/windows-nat.c (wait_for_debug_event): Move from
7959 windows-nat.c. No longer static.
7960
d2977bc4
TT
79612020-04-08 Tom Tromey <tromey@adacore.com>
7962
7963 * windows-nat.c (get_windows_debug_event): Use
7964 fetch_pending_stop.
7965 * nat/windows-nat.h (fetch_pending_stop): Declare.
7966 * nat/windows-nat.c (fetch_pending_stop): New function.
7967
e758e19c
TT
79682020-04-08 Tom Tromey <tromey@adacore.com>
7969
7970 * windows-nat.c (windows_continue): Use matching_pending_stop and
7971 continue_last_debug_event.
7972 * nat/windows-nat.h (matching_pending_stop)
7973 (continue_last_debug_event): Declare.
7974 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7975 (matching_pending_stop, continue_last_debug_event): New
7976 functions.
7977
8d30e395
TT
79782020-04-08 Tom Tromey <tromey@adacore.com>
7979
7980 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7981 (handle_exception_result): Move to nat/windows-nat.h.
7982 (DEBUG_EXCEPTION_SIMPLE): Remove.
7983 (windows_nat::handle_ms_vc_exception): New function.
7984 (handle_exception): Move to nat/windows-nat.c.
7985 (get_windows_debug_event): Update.
7986 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7987 nat/windows-nat.c.
7988 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7989 (handle_exception_result): Move from windows-nat.c.
7990 (handle_exception): Declare.
7991 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7992 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7993 windows-nat.c.
7994
29de418d
TT
79952020-04-08 Tom Tromey <tromey@adacore.com>
7996
7997 * windows-nat.c (exception_count, event_count): Remove.
7998 (handle_exception, get_windows_debug_event)
7999 (do_initial_windows_stuff): Update.
8000
a816ba18
TT
80012020-04-08 Tom Tromey <tromey@adacore.com>
8002
8003 * windows-nat.c (windows_nat::handle_load_dll)
8004 (windows_nat::handle_unload_dll): Rename. No longer static.
8005 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8006 Declare.
8007
a00caa12
TT
80082020-04-08 Tom Tromey <tromey@adacore.com>
8009
8010 * complaints.h (stop_whining): Declare at top-level.
8011 (complaint): Don't declare stop_whining.
8012
d41b524f
TT
80132020-04-08 Tom Tromey <tromey@adacore.com>
8014
8015 * windows-nat.c (windows_nat::handle_output_debug_string):
8016 Rename. No longer static.
8017 * nat/windows-nat.h (handle_output_debug_string): Declare.
8018
3c76026d
TT
80192020-04-08 Tom Tromey <tromey@adacore.com>
8020
8021 * 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 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8025 (display_selectors, fake_create_process)
8026 (get_windows_debug_event): Update.
8027 * nat/windows-nat.h (current_process_handle, current_process_id)
8028 (main_thread_id, last_sig, current_event, last_wait_event)
8029 (current_windows_thread, desired_stop_thread_id, pending_stops)
8030 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8031 * nat/windows-nat.c (current_process_handle, current_process_id)
8032 (main_thread_id, last_sig, current_event, last_wait_event)
8033 (current_windows_thread, desired_stop_thread_id, pending_stops)
8034 (siginfo_er): New globals. Move from windows-nat.c.
8035
9d8679cc
TT
80362020-04-08 Tom Tromey <tromey@adacore.com>
8037
8038 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8039 (handle_load_dll): Update.
8040 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8041
28688adf
TT
80422020-04-08 Tom Tromey <tromey@adacore.com>
8043
8044 * windows-nat.c (enum thread_disposition_type): Move to
8045 nat/windows-nat.h.
8046 (windows_nat::thread_rec): Rename from thread_rec. No longer
8047 static.
8048 (windows_add_thread, windows_nat_target::fetch_registers)
8049 (windows_nat_target::store_registers, handle_exception)
8050 (windows_nat_target::resume, get_windows_debug_event)
8051 (windows_nat_target::get_tib_address)
8052 (windows_nat_target::thread_name)
8053 (windows_nat_target::thread_alive): Update.
8054 * nat/windows-nat.h (enum thread_disposition_type): Move from
8055 windows-nat.c.
8056 (thread_rec): Declare.
8057
4834dad0
TT
80582020-04-08 Tom Tromey <tromey@adacore.com>
8059
8060 * windows-nat.c: Add "using namespace".
8061 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8062 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8063
65bafd5b
TT
80642020-04-08 Tom Tromey <tromey@adacore.com>
8065
8066 * nat/windows-nat.h (struct windows_thread_info): Declare
8067 destructor.
8068 * nat/windows-nat.c (~windows_thread_info): New.
8069
0a4afda3
TT
80702020-04-08 Tom Tromey <tromey@adacore.com>
8071
8072 PR gdb/22992
8073 * windows-nat.c (current_event): Update comment.
8074 (last_wait_event, desired_stop_thread_id): New globals.
8075 (struct pending_stop): New.
8076 (pending_stops): New global.
8077 (windows_nat_target) <stopped_by_sw_breakpoint>
8078 <supports_stopped_by_sw_breakpoint>: New methods.
8079 (windows_fetch_one_register): Add assertions. Adjust PC.
8080 (windows_continue): Handle pending stops. Suspend other threads
8081 when stepping. Use last_wait_event
8082 (wait_for_debug_event): New function.
8083 (get_windows_debug_event): Use wait_for_debug_event. Handle
8084 pending stops. Queue spurious stops.
8085 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8086 (windows_nat_target::kill): Use wait_for_debug_event.
8087 * nat/windows-nat.h (struct windows_thread_info)
8088 <stopped_at_software_breakpoint>: New field.
8089 * nat/windows-nat.c (windows_thread_info::resume): Clear
8090 stopped_at_software_breakpoint.
8091
8e61ebec
TT
80922020-04-08 Tom Tromey <tromey@adacore.com>
8093
8094 * windows-nat.c (enum thread_disposition_type): New.
8095 (thread_rec): Replace "get_context" parameter with "disposition";
8096 change type.
8097 (windows_add_thread, windows_nat_target::fetch_registers)
8098 (windows_nat_target::store_registers, handle_exception)
8099 (windows_nat_target::resume, get_windows_debug_event)
8100 (windows_nat_target::get_tib_address)
8101 (windows_nat_target::thread_name)
8102 (windows_nat_target::thread_alive): Update.
8103
98a03287
TT
81042020-04-08 Tom Tromey <tromey@adacore.com>
8105
8106 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8107 (windows_continue): Use windows_continue::resume.
8108 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8109 resume>: Declare new methods.
8110 * nat/windows-nat.c: New file.
8111 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8112
7c7411bc
TT
81132020-04-08 Tom Tromey <tromey@adacore.com>
8114
8115 * windows-nat.c (windows_add_thread, windows_delete_thread)
8116 (windows_nat_target::fetch_registers)
8117 (windows_nat_target::store_registers, fake_create_process)
8118 (windows_nat_target::resume, windows_nat_target::resume)
8119 (get_windows_debug_event, windows_nat_target::wait)
8120 (windows_nat_target::pid_to_str)
8121 (windows_nat_target::get_tib_address)
8122 (windows_nat_target::get_ada_task_ptid)
8123 (windows_nat_target::thread_name)
8124 (windows_nat_target::thread_alive): Use lwp, not tid.
8125
2950fdf7
TT
81262020-04-08 Tom Tromey <tromey@adacore.com>
8127
8128 * windows-nat.c (handle_exception)
8129 (windows_nat_target::thread_name): Update.
8130 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8131 <name>: Now unique_xmalloc_ptr.
8132
62fe396b
TT
81332020-04-08 Tom Tromey <tromey@adacore.com>
8134
8135 * windows-nat.c (thread_rec)
8136 (windows_nat_target::fetch_registers): Update.
8137 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8138 Update comment.
8139 <debug_registers_changed, reload_context>: Now bool.
8140
e9534bd2
TT
81412020-04-08 Tom Tromey <tromey@adacore.com>
8142
8143 * windows-nat.c (windows_add_thread): Use new.
8144 (windows_init_thread_list, windows_delete_thread): Use delete.
8145 (get_windows_debug_event): Update.
8146 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8147 destructor, and initializers.
8148
ae1f8880
TT
81492020-04-08 Tom Tromey <tromey@adacore.com>
8150
8151 * windows-nat.c (struct windows_thread_info): Remove.
8152 * nat/windows-nat.h: New file.
8153
55a1e039
TT
81542020-04-08 Tom Tromey <tromey@adacore.com>
8155
8156 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8157 (thread_rec, windows_add_thread, windows_delete_thread)
8158 (windows_continue): Update.
8159
93366324
TT
81602020-04-08 Tom Tromey <tromey@adacore.com>
8161
8162 * windows-nat.c (struct windows_thread_info): Remove typedef.
8163 (thread_head): Remove.
8164 (thread_list): New global.
8165 (thread_rec, windows_add_thread, windows_init_thread_list)
8166 (windows_delete_thread, windows_continue): Update.
8167
0f2265e2
SM
81682020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8169
8170 * windows-tdep.h (windows_init_abi): Add comment.
8171 (cygwin_init_abi): New declaration.
8172 * windows-tdep.c: Split signal enumeration in two, one for
8173 Windows and one for Cygwin.
8174 (windows_gdb_signal_to_target): Only deal with signal of the
8175 Windows OS ABI.
8176 (cygwin_gdb_signal_to_target): New function.
8177 (windows_init_abi): Rename to windows_init_abi_common, don't set
8178 gdb_signal_to_target gdbarch method. Add new new function with
8179 this name.
8180 (cygwin_init_abi): New function.
8181 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8182 comment. Don't call windows_init_abi.
8183 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8184 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8185 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8186 i386_windows_init_abi_common, don't call windows_init_abi. Add
8187 a new function of this name.
8188 (i386_cygwin_init_abi): New function.
8189 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8190 OS ABI Cygwin.
8191
3810f182
SM
81922020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8193
8194 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8195 parameter.c.
8196 (dwarf2_read_gdb_index): Update.
8197
063f8e80
KR
81982020-04-07 Kamil Rytarowski <n54@gmx.com>
8199
8200 * nbsd-tdep.c: Include "objfiles.h".
8201 (nbsd_skip_solib_resolver): New.
8202 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8203
85a9510c 82042020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8205
8206 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8207 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8208 with DW_LLE_base_addressx are being emitted in DWARFv5.
8209 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8210 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8211 unsigned integer.
8212
9fc3eaae 82132020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8214
8215 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8216 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8217 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8218 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8219 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8220 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8221 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8222
8223
41144253 82242020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8225
8226 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8227 (read_loclist_index): New function definition.
8228 (lookup_loclist_base): New function definition.
8229 (read_loclist_header): New function definition.
8230 (dwarf2_cu): Add loclist_base and loclist_header field.
8231 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8232 (read_full_die_1): Read the value of DW_AT_loclists_base.
8233 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8234 (read_attribute_value): Handle DW_FORM_loclistx.
8235 (skip_one_die): Handle DW_FORM_loclistx.
8236 (loclist_header): New structure declaration.
8237 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8238
9f4e76a4
SM
82392020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8240
8241 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8242 constructor. Remove `addr` parameter from other constructor and
8243 add `per_cu` parameter.
8244 * dwarf2/read.c (create_partial_symtab): Update.
8245
25c11aca
TV
82462020-04-07 Tom de Vries <tdevries@suse.de>
8247
8248 PR symtab/25796
8249 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8250 (partial_die_info::fixup): Inherit has_const_value.
8251
5707e24b
TV
82522020-04-07 Tom de Vries <tdevries@suse.de>
8253
8254 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8255 symbols without address.
8256
05f00e22
KR
82572020-04-06 Kamil Rytarowski <n54@gmx.com>
8258
8259 * nbsd-nat.h (struct thread_info): Add forward declaration.
8260 (nbsd_nat_target::thread_alive): Add.
8261 (nbsd_nat_target::thread_name): Likewise.
8262 (nbsd_nat_target::update_thread_list): Likewise.
8263 (update_thread_list::post_attach): Likewise.
8264 (post_attach::pid_to_str): Likewise.
8265 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8266 (nbsd_thread_lister): Add.
8267 (nbsd_nat_target::thread_alive): Likewise.
8268 (nbsd_nat_target::thread_name): Likewise.
8269 (nbsd_add_threads): Likewise.
8270 (update_thread_list::post_attach): Likewise.
8271 (nbsd_nat_target::update_thread_list): Likewise.
8272 (post_attach::pid_to_str): Likewise.
8273
6ee448cc
TT
82742020-04-06 Tom Tromey <tromey@adacore.com>
8275
8276 * ada-valprint.c (print_variant_part): Extract the variant field.
8277 (print_field_values): Use the field as the outer value when
8278 recursing.
8279
dea34e8c
TT
82802020-04-06 Tom Tromey <tromey@adacore.com>
8281
8282 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8283 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8284 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8285 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8286 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8287
93689ce9
TT
82882020-04-06 Tom Tromey <tromey@adacore.com>
8289
8290 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8291 TYPE_CODE_ERROR.
8292
79743962
KR
82932020-04-06 Kamil Rytarowski <n54@gmx.com>
8294
8295 * nbsd-tdep.c: Include "gdbarch.h".
8296 Define enum with NetBSD signal numbers.
8297 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8298 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8299 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8300 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8301 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8302 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8303 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8304 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8305 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8306 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8307 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8308 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8309
9e7c9a03
HD
83102020-04-03 Hannes Domani <ssbssa@yahoo.de>
8311
8312 PR gdb/25325
8313 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8314
d9e49b61
TT
83152020-04-03 Tom Tromey <tromey@adacore.com>
8316
8317 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8318 Read constant block.
8319
e0fc5c3f
SM
83202020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8321
8322 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8323 (gdb_bfd_get_full_section_contents): New declaration.
8324 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8325 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8326 gdb_bfd_get_full_section_contents.
8327
e2ff18a0
SM
83282020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8329
8330 * exec.c (build_section_table): Replace internal_error with
8331 gdb_assert.
8332 (section_table_xfer_memory_partial): Likewise.
8333 * mdebugread.c (parse_partial_symbols): Likewise.
8334 * psymtab.c (lookup_partial_symbol): Likewise.
8335 * utils.c (wrap_here): Likewise.
8336
0830d301
TT
83372020-04-02 Tom Tromey <tromey@adacore.com>
8338
8339 * f-lang.c (build_fortran_types): Use arch_type to initialize
8340 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8341
e7da7f8f
TT
83422020-04-02 Tom Tromey <tromey@adacore.com>
8343
8344 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8345 of attributes.
8346
c90d28ac
AB
83472020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8348 Bernd Edlinger <bernd.edlinger@hotmail.de>
8349 Tom Tromey <tromey@adacore.com>
8350
8351 * buildsym.c (buildsym_compunit::record_line): Remove
8352 deduplication code.
8353
1aa98955
TV
83542020-04-02 Tom de Vries <tdevries@suse.de>
8355
8356 PR ada/24671
8357 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8358
d3214198
TV
83592020-04-02 Tom de Vries <tdevries@suse.de>
8360
8361 * dwarf2/read.c (dwarf2_gdb_index_functions,
8362 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8363 NULL.
8364 * psymtab.c (psym_lookup_global_symbol_language): New function.
8365 (psym_functions): Init psym_lookup_global_symbol_language with
8366 psym_lookup_global_symbol_language.
8367 * symfile-debug.c (debug_sym_quick_functions): Init
8368 lookup_global_symbol_language with NULL.
8369 * symfile.c (set_initial_language): Remove fixme comment.
8370 * symfile.h (struct quick_symbol_functions): Add
8371 lookup_global_symbol_language.
8372 * symtab.c (find_quick_global_symbol_language): New function.
8373 (find_main_name): Use find_quick_global_symbol_language.
8374
2836752f
SM
83752020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8376
8377 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8378
64dc2d4b
BE
83792020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8380
8381 * buildsym.c (record_line): Fix undefined behavior and preserve
8382 lines at eof.
8383
bbe3dc41
BE
83842020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8385
8386 * buildsym.c (record_line): Fix the resizing condition.
8387
6b4a335b
TT
83882020-04-01 Tom Tromey <tom@tromey.com>
8389
8390 * value.h (value_literal_complex): Add comment.
8391 * valops.c (value_literal_complex): Refer to value.h.
8392
3638a098
TT
83932020-04-01 Tom Tromey <tom@tromey.com>
8394
8395 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8396 (scalar_type): New rule, from typebase.
8397 (typebase): Use scalar_type. Recognize complex types.
8398 (field_name): Handle FLOAT_KEYWORD.
8399 (ident_tokens): Add _Complex and __complex__.
8400
c34e8714
TT
84012020-04-01 Tom Tromey <tom@tromey.com>
8402
8403 PR exp/25299:
8404 * valarith.c (promotion_type, complex_binop): New functions.
8405 (scalar_binop): Handle complex numbers. Use promotion_type.
8406 (value_pos, value_neg, value_complement): Handle complex numbers.
8407
fa649bb7
TT
84082020-04-01 Tom Tromey <tom@tromey.com>
8409
8410 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8411 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8412 (parse_number): Handle complex numbers.
8413
981c08ce
TT
84142020-04-01 Tom Tromey <tom@tromey.com>
8415
8416 * c-valprint.c (c_decorations): Change complex suffix to "i".
8417
4c99290d
TT
84182020-04-01 Tom Tromey <tom@tromey.com>
8419
8420 * valprint.c (generic_value_print_complex): Use accessors.
8421 * value.h (value_real_part, value_imaginary_part): Declare.
8422 * valops.c (value_real_part, value_imaginary_part): New
8423 functions.
8424 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8425
5b930b45
TT
84262020-04-01 Tom Tromey <tom@tromey.com>
8427
8428 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8429 (read_range_type): Update.
8430 * mdebugread.c (basic_type): Update.
8431 * go-lang.c (build_go_types): Use init_complex_type.
8432 * gdbtypes.h (struct main_type) <complex_type>: New member.
8433 (init_complex_type): Update.
8434 (arch_complex_type): Don't declare.
8435 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8436 Make name if none given. Use alloc_type_copy. Look for cached
8437 complex type.
8438 (arch_complex_type): Remove.
8439 (gdbtypes_post_init): Use init_complex_type.
8440 * f-lang.c (build_fortran_types): Use init_complex_type.
8441 * dwarf2/read.c (read_base_type): Update.
8442 * d-lang.c (build_d_types): Use init_complex_type.
8443 * ctfread.c (read_base_type): Update.
8444
53cccef1
TBA
84452020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8446
8447 * infrun.c (stop_all_threads): Update assertion, plus when
8448 stopping threads, take into account that we might be trying
8449 to stop an all-stop target.
8450 (stop_waiting): Call 'stop_all_threads' if there exists a
8451 non-stop target.
8452
a0714d30
TBA
84532020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8454
8455 * target.h (exists_non_stop_target): New function declaration.
8456 * target.c (exists_non_stop_target): New function.
8457
60e22c1e
HD
84582020-04-01 Hannes Domani <ssbssa@yahoo.de>
8459
8460 PR gdb/24789
8461 * eval.c (is_integral_or_integral_reference): New function.
8462 (evaluate_subexp_standard): Allow integer references in
8463 pointer arithmetic.
8464
e139a727
TBA
84652020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8466
8467 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8468 check for no ptid in the stop reply when the target is non-stop.
8469
e0802d59
TT
84702020-04-01 Tom Tromey <tromey@adacore.com>
8471
8472 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8473 "name" parameter to rvalue reference. Initialize m_name_holder.
8474 <lookup_name_info>: New overloads.
8475 <name>: Return gdb::string_view.
8476 <c_str>: New method.
8477 <make_ignore_params>: Update.
8478 <search_name_hash>: Update.
8479 <language_lookup_name>: Return const char *.
8480 <m_name>: Change type.
8481 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8482 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8483 (lookup_name_info::match_any): Update.
8484 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8485 Update.
8486 * minsyms.c (linkage_name_str): Update.
8487 * language.c (default_symbol_name_matcher): Update.
8488 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8489 Update.
8490 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8491 (ada_lookup_name_info::ada_lookup_name_info): Update.
8492 (literal_symbol_name_matcher): Update.
8493
8c072cb6
TT
84942020-04-01 Tom Tromey <tromey@adacore.com>
8495
8496 * psymtab.c (psymtab_search_name): Remove function.
8497 (psym_lookup_symbol): Create search name and lookup name here.
8498 (lookup_partial_symbol): Remove "name" parameter; add
8499 lookup_name.
8500 (psym_expand_symtabs_for_function): Update.
8501
6f29a534
TT
85022020-03-31 Joel Jones <joelkevinjones@gmail.com>
8503
8504 PR tui/25597:
8505 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8506
af62665e
TT
85072020-03-31 Tom Tromey <tromey@adacore.com>
8508
8509 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8510 memcpy.
8511
d1a89da5
NC
85122020-03-30 Nelson Chu <nelson.chu@sifive.com>
8513
8514 * features/riscv/32bit-csr.xml: Regenerated.
8515 * features/riscv/64bit-csr.xml: Regenerated.
8516
d8af9068
TT
85172020-03-30 Tom Tromey <tromey@adacore.com>
8518
8519 * ada-valprint.c (print_variant_part): Update.
8520 * ada-lang.h (ada_which_variant_applies): Update.
8521 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8522 outer_valaddr parameters; replace with "outer" value parameter.
8523 (to_fixed_variant_branch_type): Update.
8524
227c0bf4
PFC
85252020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8526
8527 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8528 <list>. Remove inclusion of observable.h.
8529 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8530 (struct arch_lwp_info): New struct.
8531 (class ppc_linux_dreg_interface): New class.
8532 (struct ppc_linux_process_info): New struct.
8533 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8534 <low_new_clone, low_forget_process, low_prepare_to_resume>
8535 <copy_thread_dreg_state, mark_thread_stale>
8536 <mark_debug_registers_changed, register_hw_breakpoint>
8537 <clear_hw_breakpoint, register_wp, clear_wp>
8538 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8539 <num_memory_accesses, get_trigger_type>
8540 <create_watchpoint_request, hwdebug_point_cmp>
8541 <init_arch_lwp_info, get_arch_lwp_info>
8542 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8543 methods.
8544 <struct ptid_hash>: New inner struct.
8545 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8546 members.
8547 (saved_dabr_value, hwdebug_info, max_slots_number)
8548 (struct hw_break_tuple, struct thread_points, ppc_threads)
8549 (have_ptrace_hwdebug_interface)
8550 (hwdebug_find_thread_points_by_tid)
8551 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8552 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8553 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8554 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8555 use m_dreg_interface.
8556 (hwdebug_point_cmp): Change to...
8557 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8558 reference arguments instead of pointers.
8559 (ppc_linux_nat_target::ranged_break_num_registers): Use
8560 m_dreg_interface.
8561 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8562 m_dreg_interface. Call register_hw_breakpoint.
8563 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8564 m_dreg_interface. Call clear_hw_breakpoint.
8565 (get_trigger_type): Change to...
8566 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8567 comment.
8568 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8569 use m_dreg_interface. Call register_hw_breakpoint.
8570 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8571 use m_dreg_interface. Call clear_hw_breakpoint.
8572 (can_use_watchpoint_cond_accel): Change to...
8573 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8574 method. Update comment, use m_dreg_interface and
8575 m_process_info.
8576 (calculate_dvc): Change to...
8577 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8578 m_dreg_interface.
8579 (num_memory_accesses): Change to...
8580 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8581 (check_condition): Change to...
8582 (ppc_linux_nat_target::check_condition): ...this method.
8583 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8584 comment, use m_dreg_interface.
8585 (create_watchpoint_request): Change to...
8586 (ppc_linux_nat_target::create_watchpoint_request): ...this
8587 method. Use m_dreg_interface.
8588 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8589 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8590 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8591 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8592 (ppc_linux_nat_target::low_forget_process)
8593 (ppc_linux_nat_target::low_new_fork)
8594 (ppc_linux_nat_target::low_new_clone)
8595 (ppc_linux_nat_target::low_delete_thread)
8596 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8597 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8598 only call mark_thread_stale.
8599 (ppc_linux_thread_exit): Remove.
8600 (ppc_linux_nat_target::stopped_data_address): Change to...
8601 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8602 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8603 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8604 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8605 comment. Call low_stopped_data_address.
8606 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8607 m_dreg_interface.
8608 (ppc_linux_nat_target::masked_watch_num_registers): Use
8609 m_dreg_interface.
8610 (ppc_linux_nat_target::copy_thread_dreg_state)
8611 (ppc_linux_nat_target::mark_thread_stale)
8612 (ppc_linux_nat_target::mark_debug_registers_changed)
8613 (ppc_linux_nat_target::register_hw_breakpoint)
8614 (ppc_linux_nat_target::clear_hw_breakpoint)
8615 (ppc_linux_nat_target::register_wp)
8616 (ppc_linux_nat_target::clear_wp)
8617 (ppc_linux_nat_target::init_arch_lwp_info)
8618 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8619 (_initialize_ppc_linux_nat): Remove observer callback.
8620
4db10d8f
PFC
86212020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8622
8623 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8624 (ppc_linux_nat_target::auxv_parse)
8625 (ppc_linux_nat_target::read_description)
8626 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8627 Move up.
8628
1310c1b0
PFC
86292020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8630
8631 * linux-nat.h (low_new_clone): New method.
8632 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8633
69b037c3
SM
86342020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8635
8636 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8637 (dbx_expand_psymtab): ... this.
8638 (start_psymtab): Update.
8639 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8640 (mdebug_expand_psymtab): ... this.
8641 (parse_partial_symbols): Update.
8642 (new_psymtab): Update.
8643 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8644 (xcoff_expand_psymtab): ... this.
8645 (xcoff_start_psymtab): Update.
8646
48993951
SM
86472020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8648
8649 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8650 <expand_dependencies>: ... this.
8651 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8652 (partial_symtab::expand_dependencies): ... this.
8653 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8654 Update.
8655 (dwarf2_psymtab::expand_psymtab): Update.
8656 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8657 * mdebugread.c (psymtab_to_symtab_1): Update.
8658 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8659
3ad83046
SM
86602020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8661
8662 * psympriv.h (discard_psymtab): Remove.
8663 * dbxread.c (dbx_end_psymtab): Update.
8664 * xcoffread.c (xcoff_end_psymtab): Update.
8665
4d1b9ab6
TT
86662020-03-28 Tom Tromey <tom@tromey.com>
8667
8668 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8669 comment.
8670
f1749218
TT
86712020-03-28 Tom Tromey <tom@tromey.com>
8672
8673 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8674
ebea7626
HD
86752020-03-27 Hannes Domani <ssbssa@yahoo.de>
8676
8677 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8678
a879b4d5
JB
86792020-03-26 John Baldwin <jhb@FreeBSD.org>
8680
8681 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8682
0826b30a
TT
86832020-03-26 Tom Tromey <tom@tromey.com>
8684
8685 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8686 (mark_common_block_symbol_computed, read_tag_string_type)
8687 (attr_to_dynamic_prop, read_subrange_type): Update.
8688 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8689 to be methods on struct attribute.
8690 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8691 (read_call_site_scope, partial_die_info::read)
8692 (partial_die_info::read, lookup_die_type, follow_die_ref):
8693 Update.
8694 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8695 from dwarf2_get_ref_die_offset.
8696 (attribute::constant_value): New method, from
8697 dwarf2_get_attr_constant_value.
8698 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8699 Declare method.
8700 <constant_value>: New method.
8701
2b2558bf
TT
87022020-03-26 Tom Tromey <tom@tromey.com>
8703
8704 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8705 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8706 (dwarf_type_encoding_name): Move to stringify.c.
8707 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8708 * dwarf2/stringify.c: New file.
8709 * dwarf2/stringify.h: New file.
8710
eeb64781
TT
87112020-03-26 Tom Tromey <tom@tromey.com>
8712
8713 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8714 Rewrite.
8715
a39fdb41
TT
87162020-03-26 Tom Tromey <tom@tromey.com>
8717
8718 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8719 methods.
8720 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8721 (lookup_ranges_base): Likewise.
8722 (read_cutu_die_from_dwo, read_full_die_1): Update.
8723
436c571c
TT
87242020-03-26 Tom Tromey <tom@tromey.com>
8725
8726 * dwarf2/read.c (read_import_statement, read_file_scope)
8727 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8728 (read_lexical_block_scope, read_call_site_scope)
8729 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8730 (handle_struct_member_die, process_structure_scope)
8731 (update_enumeration_type_from_children)
8732 (process_enumeration_scope, read_array_type, read_common_block)
8733 (read_namespace, read_module, read_subroutine_type): Update.
8734 (sibling_die): Remove.
8735
052c8bb8
TT
87362020-03-26 Tom Tromey <tom@tromey.com>
8737
8738 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8739 (build_type_psymtabs_reader, read_structure_type)
8740 (read_enumeration_type, read_full_die_1): Update.
8741 (dwarf2_attr_no_follow): Move to die.h.
8742 * dwarf2/die.h (struct die_info) <attr>: New method.
8743
2b24b6e4
TT
87442020-03-26 Tom Tromey <tom@tromey.com>
8745
8746 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8747 <base_address>: Now an optional.
8748 (dwarf2_find_base_address, dwarf2_rnglists_process)
8749 (dwarf2_ranges_process, fill_in_loclist_baton)
8750 (dwarf2_symbol_mark_computed): Update.
8751
c2d50fd0
TT
87522020-03-26 Tom Tromey <tom@tromey.com>
8753
8754 * dwarf2/read.c (struct die_info): Move to die.h.
8755 * dwarf2/die.h: New file.
8756
0df7ad3a
TT
87572020-03-26 Tom Tromey <tom@tromey.com>
8758
8759 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8760 * dwarf2/read.c
8761 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8762 Move to line-header.c.
8763 (read_checked_initial_length_and_offset, read_formatted_entries):
8764 Likewise.
8765 (dwarf_decode_line_header): Split into two.
8766 * dwarf2/line-header.c
8767 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8768 Move from read.c.
8769 (read_checked_initial_length_and_offset, read_formatted_entries):
8770 Likewise.
8771 (dwarf_decode_line_header): New function, split from read.c.
8772
86c0bb4c
TT
87732020-03-26 Tom Tromey <tom@tromey.com>
8774
8775 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8776 Declare method.
8777 * dwarf2/read.c (read_attribute_value): Update.
8778 (dwarf2_per_objfile::read_line_string): Rename from
8779 read_indirect_line_string.
8780 (read_formatted_entries): Update.
8781
2ef46c2f
TT
87822020-03-26 Tom Tromey <tom@tromey.com>
8783
8784 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8785 variable.
8786
4f9c1eda
TT
87872020-03-26 Tom Tromey <tom@tromey.com>
8788
8789 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8790 const.
8791 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8792 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8793 parameter const.
8794
5a0e026f
TT
87952020-03-26 Tom Tromey <tom@tromey.com>
8796
8797 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8798 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8799 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8800 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8801
8844c11b
TT
88022020-03-26 Tom Tromey <tom@tromey.com>
8803
8804 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8805 file_names_size, file_full_name, file_file_name>: Use const.
8806 <file_name_at, file_names>: Add const overload.
8807 * dwarf2/line-header.c (line_header::file_file_name)
8808 (line_header::file_full_name): Update.
8809
c90ec28a
TT
88102020-03-26 Tom Tromey <tom@tromey.com>
8811
8812 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8813 (macro_start_file, consume_improper_spaces)
8814 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8815 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8816 (dwarf_decode_macros): Move to macro.c.
8817 * dwarf2/macro.c: New file.
8818 * dwarf2/macro.h: New file.
8819 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8820
4f44ae6c
TT
88212020-03-26 Tom Tromey <tom@tromey.com>
8822
8823 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8824 method.
8825 * dwarf2/section.c: New method. From
8826 read_indirect_string_at_offset_from.
8827 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8828 (read_indirect_string_at_offset_from): Move to section.c.
8829 (read_indirect_string_at_offset): Rewrite.
8830 (read_indirect_line_string_at_offset): Remove.
8831 (read_indirect_string, read_indirect_line_string)
8832 (dwarf_decode_macro_bytes): Update.
8833
a0194fa8
TT
88342020-03-26 Tom Tromey <tom@tromey.com>
8835
8836 * dwarf2/section.h (struct dwarf2_section_info)
8837 <overload_complaint>: Declare.
8838 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8839 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8840 Rename from dwarf2_section_buffer_overflow_complaint.
8841 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8842 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8843
3d27bbdb
TT
88442020-03-26 Tom Tromey <tom@tromey.com>
8845
8846 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8847 Declare.
8848 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8849 Move from read.c.
8850 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8851 to section.c.
8852
9eac9650
TT
88532020-03-26 Tom Tromey <tom@tromey.com>
8854
8855 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8856
bf80d710
TT
88572020-03-26 Tom Tromey <tom@tromey.com>
8858
8859 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8860 "builder".
8861 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8862 parameter.
8863 (dwarf_decode_macros): Update.
8864
0314b390
TT
88652020-03-26 Tom Tromey <tom@tromey.com>
8866
8867 * dwarf2/read.c (read_attribute_value): Update.
8868 (read_indirect_string_from_dwz): Move to dwz.c; change into
8869 method.
8870 (dwarf_decode_macro_bytes): Update.
8871 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8872 * dwarf2/dwz.c: New file.
8873 * Makefile.in (COMMON_SFILES): Add dwz.c.
8874
9fda78b6
TT
88752020-03-26 Tom Tromey <tom@tromey.com>
8876
8877 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8878 * dwarf2/read.c: Add include.
8879 * dwarf2/index-write.c: Add include.
8880 * dwarf2/index-cache.c: Add include.
8881 * dwarf2/dwz.h: New file.
8882
33aa3c10
TT
88832020-03-25 Tom Tromey <tom@tromey.com>
8884
8885 * compile/compile-object-load.c (get_out_value_type): Mention
8886 correct symbol name in error message.
8887
d503b685
HD
88882020-03-25 Hannes Domani <ssbssa@yahoo.de>
8889
8890 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8891
7b1eff95
TV
88922020-03-25 Tom de Vries <tdevries@suse.de>
8893
8894 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8895 * symmisc.c (dump_symtab_1): Print user and includes fields.
8896 (maintenance_info_symtabs): Same.
8897
dd895392
AB
88982020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8899
8900 PR gdb/25534
8901 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8902 (riscv_regcache_cooked_write): New function.
8903 (riscv_push_dummy_call): Use new function.
8904 (riscv_return_value): Likewise.
8905
5ab2fbf1
SM
89062020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8907
8908 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8909 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8910 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8911 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8912 * infrun.c (follow_fork): Likewise.
8913 (follow_fork_inferior): Likewise.
8914 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8915 * linux-nat.h (class linux_nat_target): Likewise.
8916 * remote.c (class remote_target) <follow_fork>: Likewise.
8917 (remote_target::follow_fork): Likewise.
8918 * target-delegates.c: Re-generate.
8919 * target.c (default_follow_fork): Likewise.
8920 (target_follow_fork): Likewise.
8921 * target.h (struct target_ops) <follow_fork>: Likewise.
8922 (target_follow_fork): Likewise.
8923
a64fafb5
TV
89242020-03-24 Tom de Vries <tdevries@suse.de>
8925
8926 * psymtab.c (maintenance_info_psymtabs): Print user field.
8927
fe26d3a3
TT
89282020-03-20 Tom Tromey <tromey@adacore.com>
8929
8930 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8931 const.
8932 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8933 const.
8934
c884cc46
SM
89352020-03-20 Simon Marchi <simon.marchi@efficios.com>
8936
8937 * ptrace.m4: Don't check for ptrace declaration.
8938 * config.in: Re-generate.
8939 * configure: Re-generate.
8940 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8941 not defined.
8942
1ff700c2
KR
89432020-03-20 Kamil Rytarowski <n54@gmx.com>
8944
8945 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8946 `PTRACE_TYPE_RET'.
8947 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8948 * sparc-nat.c (gdb_ptrace): Likewise.
8949 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8950
f7d4f0b1
TT
89512020-03-20 Tom Tromey <tromey@adacore.com>
8952
8953 * c-exp.y (lex_one_token): Fix assert.
8954
f67210ff
TT
89552020-03-20 Tom Tromey <tromey@adacore.com>
8956
8957 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8958 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8959 strncpy call.
8960
1773be9e
TT
89612020-03-20 Tom Tromey <tromey@adacore.com>
8962
8963 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8964
70304be9
TT
89652020-03-20 Tom Tromey <tromey@adacore.com>
8966
8967 * ada-valprint.c (print_variant_part): Remove parameters; switch
8968 to value-based API.
8969 (print_field_values): Likewise.
8970 (ada_val_print_struct_union): Likewise.
8971 (ada_value_print_1): Update.
8972
9faa006d
KR
89732020-03-20 Kamil Rytarowski <n54@gmx.com>
8974
8975 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8976 nbsd_nat_target instead of inf_ptrace_target.
8977 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8978 nbsd_nat_target.
8979
4a90f062
KR
89802020-03-20 Kamil Rytarowski <n54@gmx.com>
8981
8982 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8983 it to the ptrace call.
8984 * (store_registers): Likewise.
8985
89862020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
8987
8988 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8989 it to the ptrace call.
8990 * (store_registers): Likewise.
8991
2d07da27
LM
89922020-03-19 Luis Machado <luis.machado@linaro.org>
8993
8994 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8995 valid, fetch vg value from ptrace.
8996
f09db380
KR
89972020-03-19 Kamil Rytarowski <n54@gmx.com>
8998 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8999 * inf-ptrace.c: Likewise.
9000 * (gdb_ptrace): Add.
9001 * (inf_ptrace_target::resume): Update.
9002 * (inf_ptrace_target::xfer_partial): Likewise.
9003 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9004 * (inf_ptrace_peek_poke): Update.
9005
fcc7376e
KR
90062020-03-19 Kamil Rytarowski <n54@gmx.com>
9007
9008 * x86-bsd-nat.c (gdb_ptrace): New.
9009 * (x86bsd_dr_set): Add new argument `ptid'.
9010 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9011 x86bsd_dr_set_addr): Update.
9012
cada5fc9
AB
90132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9014
9015 * remote.c (remote_target::process_stop_reply): Handle events for
9016 all threads differently.
9017
19a2740f
AB
90182020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9019
9020 * completer.c (completion_tracker::remove_completion): Define new
9021 function.
9022 * completer.h (completion_tracker::remove_completion): Declare new
9023 function.
9024 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9025 when adding a C++ function symbol.
9026
724fd9ba
AB
90272020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9028
9029 * completer.c (completion_tracker::completion_hash_entry): Define
9030 new class.
9031 (advance_to_filename_complete_word_point): Call
9032 recompute_lowest_common_denominator.
9033 (completion_tracker::completion_tracker): Call discard_completions
9034 to setup the hash table.
9035 (completion_tracker::discard_completions): Allow for being called
9036 from the constructor, pass new equal function, and element deleter
9037 when constructing the hash table. Initialise new class member
9038 variables.
9039 (completion_tracker::maybe_add_completion): Remove use of
9040 m_entries_vec, and store more information into m_entries_hash.
9041 (completion_tracker::recompute_lcd_visitor): New function, most
9042 content taken from...
9043 (completion_tracker::recompute_lowest_common_denominator):
9044 ...here, this now just visits each item in the hash calling the
9045 above visitor.
9046 (completion_tracker::build_completion_result): Remove use of
9047 m_entries_vec, call recompute_lowest_common_denominator.
9048 * completer.h (completion_tracker::have_completions): Remove use
9049 of m_entries_vec.
9050 (completion_tracker::completion_hash_entry): Declare new class.
9051 (completion_tracker::recompute_lowest_common_denominator): Change
9052 function signature.
9053 (completion_tracker::recompute_lcd_visitor): Declare new function.
9054 (completion_tracker::m_entries_vec): Delete.
9055 (completion_tracker::m_entries_hash): Initialize to NULL.
9056 (completion_tracker::m_lowest_common_denominator_valid): New
9057 member variable.
9058 (completion_tracker::m_lowest_common_denominator_max_length): New
9059 member variable.
9060
5a82b8a1
KR
90612020-03-17 Kamil Rytarowski <n54@gmx.com>
9062
9063 * regformats/regdef.h: Put reg in gdb namespace.
9064
fb516a69
KR
90652020-03-17 Kamil Rytarowski <n54@gmx.com>
9066
9067 * i386-bsd-nat.c (gdb_ptrace): New.
9068 * (i386bsd_fetch_inferior_registers,
9069 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9070 * (i386bsd_fetch_inferior_registers,
9071 i386bsd_store_inferior_registers) Use gdb_ptrace.
9072
1c0aa1fb
KR
90732020-03-17 Kamil Rytarowski <n54@gmx.com>
9074
9075 * amd64-bsd-nat.c (gdb_ptrace): New.
9076 * (amd64bsd_fetch_inferior_registers,
9077 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9078 * (amd64bsd_fetch_inferior_registers,
9079 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9080
5ccd2fb7
KR
90812020-03-17 Kamil Rytarowski <n54@gmx.com>
9082
9083 * user-regs.c (user_reg::read): Rename to...
9084 (user_reg::xread): ...this.
9085 * (append_user_reg): Rename argument `read' to `xread'.
9086 * (user_reg_add_builtin): Likewise.
9087 * (user_reg_add): Likewise.
9088 * (value_of_user_reg): Likewise.
9089
2108a63a
KR
90902020-03-17 Kamil Rytarowski <n54@gmx.com>
9091
9092 * sparc-nat.c (gdb_ptrace): New.
9093 * sparc-nat.c (sparc_fetch_inferior_registers)
9094 (sparc_store_inferior_registers) Remove obsolete comment.
9095 * sparc-nat.c (sparc_fetch_inferior_registers)
9096 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9097 * sparc-nat.c (sparc_fetch_inferior_registers)
9098 (sparc_store_inferior_registers) Use gdb_ptrace.
9099
a225c9a8
KR
91002020-03-17 Kamil Rytarowski <n54@gmx.com>
9101
9102 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9103 it to the ptrace call.
9104 * sh-nbsd-nat.c (store_registers): Likewise.
9105
98097623
KR
91062020-03-17 Kamil Rytarowski <n54@gmx.com>
9107
9108 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9109 nbsd_nat_target instead of inf_ptrace_target.
9110 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9111 nbsd_nat_target.
9112
9e38d619
KR
91132020-03-17 Kamil Rytarowski <n54@gmx.com>
9114
9115 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9116
a2ecbe9f
KR
91172020-03-17 Kamil Rytarowski <n54@gmx.com>
9118
9119 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9120 <sys/sysctl.h>.
9121 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9122
58990295
TV
91232020-03-17 Tom de Vries <tdevries@suse.de>
9124
9125 PR gdb/23710
9126 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9127 fields.
9128 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9129 fields.
9130 (process_imported_unit_die): Skip import of c++ CUs.
9131
771dd3a8
TT
91322020-03-16 Tom Tromey <tom@tromey.com>
9133
9134 * p-valprint.c (pascal_object_print_value): Initialize
9135 base_value.
9136
817a7585
AK
91372020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9138 Shahab Vahedi <shahab@synopsys.com>
9139
9140 * Makefile.in: Add arch/arc.o
9141 * configure.tgt: Likewise.
9142 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9143 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9144 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9145 * arc-tdep.h (arc_read_description): Add proto type.
9146 * arch/arc.c: New file.
9147 * arch/arc.h: Likewise.
9148 * features/Makefile: Replace old target descriptions with new.
9149 * features/arc-arcompact.c: Remove.
9150 * features/arc-arcompact.xml: Likewise.
9151 * features/arc-v2.c: Likewise
9152 * features/arc-v2.xml: Likewise
9153 * features/arc/aux-arcompact.xml: New file.
9154 * features/arc/aux-v2.xml: Likewise.
9155 * features/arc/core-arcompact.xml: Likewise.
9156 * features/arc/core-v2.xml: Likewise.
9157 * features/arc/aux-arcompact.c: Generate.
9158 * features/arc/aux-v2.c: Likewise.
9159 * features/arc/core-arcompact.c: Likewise.
9160 * features/arc/core-v2.c: Likewise.
9161 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9162
67430cd0
TT
91632020-03-16 Tom Tromey <tromey@adacore.com>
9164
9165 PR gdb/25663:
9166 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9167 putting value into bcache.
9168
30efb6c7
SM
91692020-03-16 Simon Marchi <simon.marchi@efficios.com>
9170
9171 PR gdb/21500
9172 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9173 to...
9174 (amd64_windows_init_abi_common): ... this. Don't set size of
9175 long type.
9176 (amd64_windows_init_abi): New function.
9177 (amd64_cygwin_init_abi): New function.
9178 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9179 the Cygwin OS ABI.
9180 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9181 comment.
9182
8db52437
SM
91832020-03-16 Simon Marchi <simon.marchi@efficios.com>
9184
9185 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9186 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9187 (pe_import_directory_entry): New struct type.
9188 (is_linked_with_cygwin_dll): New function.
9189 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9190 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9191 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9192
5982a56a
SM
91932020-03-16 Simon Marchi <simon.marchi@efficios.com>
9194
9195 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9196 i386_cygwin_core_osabi_sniffer.
9197
7a1998df
SM
91982020-03-16 Simon Marchi <simon.marchi@efficios.com>
9199
9200 * i386-cygwin-tdep.c: Rename to...
9201 * i386-windows-tdep.c: ... this.
9202 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9203 i386-windows-tdep.c.
9204 * configure.tgt: Likewise.
9205
053205cc
SM
92062020-03-16 Simon Marchi <simon.marchi@efficios.com>
9207
9208 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9209 * osabi.c (gdb_osabi_names): Add "Windows".
9210 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9211 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9212 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9213 i386_cygwin_osabi_sniffer.
9214 (_initialize_i386_cygwin_tdep): Register OS ABI
9215 GDB_OSABI_WINDOWS for i386.
9216 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9217 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9218 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9219 for x86-64.
9220 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9221 when the target matches '*-*-mingw*'.
9222
fe4b2ee6
SM
92232020-03-16 Simon Marchi <simon.marchi@efficios.com>
9224
9225 * defs.h (enum gdb_osabi): Move to...
9226 * osabi.h (enum gdb_osabi): ... here.
9227 * gdbarch.sh: Include osabi.h in gdbarch.h.
9228 * gdbarch.h: Re-generate.
9229
cb9b645d
SM
92302020-03-16 Simon Marchi <simon.marchi@efficios.com>
9231
9232 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9233 function.
9234 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9235
3293bbaf
TT
92362020-03-14 Tom Tromey <tom@tromey.com>
9237
9238 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9239 for C++.
9240 (c_type_print_modifier): Likewise. Add "language" parameter.
9241 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9242 (c_type_print_base_1): Update.
9243 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9244 constants.
9245 * type-stack.c (type_stack::insert): Handle tp_atomic and
9246 tp_restrict.
9247 (type_stack::follow_type_instance_flags): Likewise.
9248 (type_stack::follow_types): Likewise. Merge type-following code.
9249 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9250 (space_identifier, cv_with_space_id)
9251 (const_or_volatile_or_space_identifier_noopt)
9252 (const_or_volatile_or_space_identifier): Remove.
9253 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9254 rules.
9255 (ptr_operator, typebase): Update.
9256 (enum token_flag) <FLAG_C>: New constant.
9257 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9258 "_Atomic".
9259 (lex_one_token): Handle FLAG_C.
9260
154151a6
KR
92612020-03-14 Kamil Rytarowski <n54@gmx.com>
9262
9263 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9264 it to the ptrace call.
9265 * m68k-bsd-nat.c (store_registers): Likewise.
9266
bc107784
KR
92672020-03-14 Kamil Rytarowski <n54@gmx.com>
9268
9269 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9270 gdb_byte *.
9271 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9272 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9273 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9274
01a80117
KR
92752020-03-14 Kamil Rytarowski <n54@gmx.com>
9276
9277 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9278 nbsd_nat_target instead of inf_ptrace_target.
9279 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9280 nbsd_nat_target.
9281
f90280ca
KR
92822020-03-14 Kamil Rytarowski <n54@gmx.com>
9283
9284 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9285 register_t.
9286
6def66f1
KR
92872020-03-14 Kamil Rytarowski <n54@gmx.com>
9288
9289 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9290 it to the ptrace call.
9291 * alpha-bsd-nat.c (store_registers): Likewise.
9292
66eaca97
KR
92932020-03-14 Kamil Rytarowski <n54@gmx.com>
9294
9295 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9296 includes.
9297 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9298 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9299 fill_fpregset): Likewise.
9300
4fed520b
KR
93012020-03-14 Kamil Rytarowski <n54@gmx.com>
9302
9303 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9304 nbsd_nat_target instead of inf_ptrace_target.
9305 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9306 nbsd_nat_target.
9307
2190cf06
KR
93082020-03-14 Kamil Rytarowski <n54@gmx.com>
9309
9310 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9311 register_t.
9312
75c56d3d
KR
93132020-03-14 Kamil Rytarowski <n54@gmx.com>
9314
9315 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9316 it to the ptrace call.
9317 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9318 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9319 * arm-nbsd-nat.c (store_register): Likewise.
9320 * arm-nbsd-nat.c (store_regs): Likewise.
9321 * arm-nbsd-nat.c (store_fp_register): Likewise.
9322 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9323
6018d381
KR
93242020-03-14 Kamil Rytarowski <n54@gmx.com>
9325
9326 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9327 nbsd_nat_target instead of inf_ptrace_target.
9328 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9329 nbsd_nat_target.
9330
013f99f0
KR
93312020-03-14 Kamil Rytarowski <n54@gmx.com>
9332
9333 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9334 it to the ptrace call.
9335 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9336
12753073
KR
93372020-03-14 Kamil Rytarowski <n54@gmx.com>
9338
6227b330
KR
9339 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9340 it to the ptrace call.
9341 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9342
93432020-03-14 Kamil Rytarowski <n54@gmx.com>
9344
9345 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9346 gdb_byte *.
12753073
KR
9347 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9348
d5be5fa4
KR
93492020-03-14 Kamil Rytarowski <n54@gmx.com>
9350
9351 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9352 instead of inf_ptrace_target.
9353 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9354 nbsd_nat_target.
9355
8110f842
KR
93562020-03-14 Kamil Rytarowski <n54@gmx.com>
9357
9358 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9359 register_t.
9360
52feded7
KR
93612020-03-14 Kamil Rytarowski <n54@gmx.com>
9362
9363 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9364 register_t.
9365
25567eee
KR
93662020-03-14 Kamil Rytarowski <n54@gmx.com>
9367
9368 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9369 register_t.
9370
426a9c18
TT
93712020-03-13 Tom Tromey <tom@tromey.com>
9372
9373 * value.h (val_print): Don't declare.
9374 * valprint.h (val_print_array_elements)
9375 (val_print_scalar_formatted, generic_val_print): Don't declare.
9376 * valprint.c (generic_val_print_array): Take a struct value.
9377 (generic_val_print_ptr, generic_val_print_memberptr)
9378 (generic_val_print_bool, generic_val_print_int)
9379 (generic_val_print_char, generic_val_print_complex)
9380 (generic_val_print): Remove.
9381 (generic_value_print): Update.
9382 (do_val_print): Remove unused parameters. Don't call
9383 la_val_print.
9384 (val_print): Remove.
9385 (common_val_print): Update. Don't call value_check_printable.
9386 (val_print_scalar_formatted, val_print_array_elements): Remove.
9387 * rust-lang.c (rust_val_print): Remove.
9388 (rust_language_defn): Update.
9389 * p-valprint.c (pascal_val_print): Remove.
9390 (pascal_value_print_inner): Update.
9391 (pascal_object_print_val_fields, pascal_object_print_val):
9392 Remove.
9393 (pascal_object_print_static_field): Update.
9394 * p-lang.h (pascal_val_print): Don't declare.
9395 * p-lang.c (pascal_language_defn): Update.
9396 * opencl-lang.c (opencl_language_defn): Update.
9397 * objc-lang.c (objc_language_defn): Update.
9398 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9399 * m2-lang.h (m2_val_print): Don't declare.
9400 * m2-lang.c (m2_language_defn): Update.
9401 * language.h (struct language_defn) <la_val_print>: Remove.
9402 * language.c (unk_lang_value_print_inner): Rename. Change
9403 argument types.
9404 (unknown_language_defn, auto_language_defn): Update.
9405 * go-valprint.c (go_val_print): Remove.
9406 * go-lang.h (go_val_print): Don't declare.
9407 * go-lang.c (go_language_defn): Update.
9408 * f-valprint.c (f_val_print): Remove.
9409 * f-lang.h (f_value_print): Don't declare.
9410 * f-lang.c (f_language_defn): Update.
9411 * d-valprint.c (d_val_print): Remove.
9412 * d-lang.h (d_value_print): Don't declare.
9413 * d-lang.c (d_language_defn): Update.
9414 * cp-valprint.c (cp_print_value_fields)
9415 (cp_print_value_fields_rtti, cp_print_value): Remove.
9416 (cp_print_static_field): Update.
9417 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9418 (c_val_print_struct, c_val_print_union, c_val_print_int)
9419 (c_val_print_memberptr, c_val_print): Remove.
9420 * c-lang.h (c_val_print_array, cp_print_value_fields)
9421 (cp_print_value_fields_rtti): Don't declare.
9422 * c-lang.c (c_language_defn, cplus_language_defn)
9423 (asm_language_defn, minimal_language_defn): Update.
9424 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9425 (ada_val_print_enum): Take a struct value.
9426 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9427 (ada_val_print): Remove.
9428 (ada_value_print_1): Update.
9429 (printable_val_type): Remove.
9430 * ada-lang.h (ada_val_print): Don't declare.
9431 * ada-lang.c (ada_language_defn): Update.
9432
42331a1e
TT
94332020-03-13 Tom Tromey <tom@tromey.com>
9434
9435 * valprint.c (do_val_print): Update.
9436 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9437 a struct value.
9438 (value_to_value_object_no_release): Declare.
9439 * python/py-value.c (value_to_value_object_no_release): New
9440 function.
9441 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9442 struct value.
9443 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9444 function.
9445 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9446 a struct value.
9447 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9448 Declare.
9449 (gdbscm_apply_val_pretty_printer): Take a struct value.
9450 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9451 value.
9452 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9453 value.
9454 * extension-priv.h (struct extension_language_ops)
9455 <apply_val_pretty_printer>: Take a struct value.
9456 * cp-valprint.c (cp_print_value): Create a struct value.
9457 (cp_print_value): Update.
9458
3a916a97
TT
94592020-03-13 Tom Tromey <tom@tromey.com>
9460
9461 * ada-valprint.c (print_field_values): Call common_val_print.
9462
b59eac37
TT
94632020-03-13 Tom Tromey <tom@tromey.com>
9464
9465 * ada-valprint.c (val_print_packed_array_elements): Remove
9466 bitoffset and val parameters. Call common_val_print.
9467 (ada_val_print_string): Remove offset, address, and original_value
9468 parameters.
9469 (ada_val_print_array): Update.
9470 (ada_value_print_array): New function.
9471 (ada_value_print_1): Call it.
9472
03371129
TT
94732020-03-13 Tom Tromey <tom@tromey.com>
9474
9475 * ada-valprint.c (ada_value_print): Use common_val_print.
9476
2e088f8b
TT
94772020-03-13 Tom Tromey <tom@tromey.com>
9478
9479 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9480
39ef85a8
TT
94812020-03-13 Tom Tromey <tom@tromey.com>
9482
9483 * ada-valprint.c (ada_value_print_num): New function.
9484 (ada_value_print_1): Use it.
9485
b9fa6e07
TT
94862020-03-13 Tom Tromey <tom@tromey.com>
9487
9488 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9489
416595d6
TT
94902020-03-13 Tom Tromey <tom@tromey.com>
9491
9492 * ada-valprint.c (ada_value_print_ptr): New function.
9493 (ada_value_print_1): Use it.
9494
5b5e15ec
TT
94952020-03-13 Tom Tromey <tom@tromey.com>
9496
9497 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9498 call common_val_print.
9499 (ada_val_print_1): Update.
9500 (ada_value_print_1): New function.
9501 (ada_value_print_inner): Rewrite.
9502
fbf54e75
TT
95032020-03-13 Tom Tromey <tom@tromey.com>
9504
9505 * cp-valprint.c (cp_print_value_fields): Update.
9506 (cp_print_value): New function.
9507
64b653ca
TT
95082020-03-13 Tom Tromey <tom@tromey.com>
9509
9510 * m2-valprint.c (m2_value_print_inner): Use
9511 cp_print_value_fields.
9512 * cp-valprint.c (cp_print_value_fields): New function.
9513 * c-valprint.c (c_value_print_struct): New function.
9514 (c_value_print_inner): Use c_value_print_struct.
9515 * c-lang.h (cp_print_value_fields): Declare.
9516
6999f067
TT
95172020-03-13 Tom Tromey <tom@tromey.com>
9518
9519 * c-valprint.c (c_value_print_array): New function.
9520 (c_value_print_inner): Use it.
9521
ce80b8bd
TT
95222020-03-13 Tom Tromey <tom@tromey.com>
9523
9524 * c-valprint.c (c_value_print_memberptr): New function.
9525 (c_value_print_inner): Use it.
9526
2faac269
TT
95272020-03-13 Tom Tromey <tom@tromey.com>
9528
9529 * c-valprint.c (c_value_print_int): New function.
9530 (c_value_print_inner): Use it.
9531
da3e2c29
TT
95322020-03-13 Tom Tromey <tom@tromey.com>
9533
9534 * c-valprint.c (c_value_print_ptr): New function.
9535 (c_value_print_inner): Use it.
9536
50836231
TT
95372020-03-13 Tom Tromey <tom@tromey.com>
9538
9539 * c-valprint.c (c_value_print_inner): Rewrite.
9540
4f412b6e
TT
95412020-03-13 Tom Tromey <tom@tromey.com>
9542
9543 * valprint.c (generic_value_print_complex): New function.
9544 (generic_value_print): Use it.
9545
f5354008
TT
95462020-03-13 Tom Tromey <tom@tromey.com>
9547
9548 * valprint.c (generic_val_print_float): Don't call
9549 val_print_scalar_formatted.
9550 (generic_val_print, generic_value_print): Update.
9551
3eec3b05
TT
95522020-03-13 Tom Tromey <tom@tromey.com>
9553
9554 * valprint.c (generic_value_print_char): New function
9555 (generic_value_print): Use it.
9556
fdddfccb
TT
95572020-03-13 Tom Tromey <tom@tromey.com>
9558
9559 * valprint.c (generic_value_print_int): New function.
9560 (generic_value_print): Use it.
9561
6dde7521
TT
95622020-03-13 Tom Tromey <tom@tromey.com>
9563
9564 * valprint.c (generic_value_print_bool): New function.
9565 (generic_value_print): Use it.
9566
4112d2e6
TT
95672020-03-13 Tom Tromey <tom@tromey.com>
9568
9569 * valprint.c (generic_val_print_func): Simplify.
9570 (generic_val_print, generic_value_print): Update.
9571
65786af6
TT
95722020-03-13 Tom Tromey <tom@tromey.com>
9573
9574 * valprint.c (generic_val_print_flags): Remove.
9575 (generic_val_print, generic_value_print): Update.
9576 (val_print_type_code_flags): Add original_value parameter.
9577
40f3ce18
TT
95782020-03-13 Tom Tromey <tom@tromey.com>
9579
9580 * valprint.c (generic_val_print): Update.
9581 (generic_value_print): Update.
9582 * valprint.c (generic_val_print_enum): Don't call
9583 val_print_scalar_formatted.
9584
2a5b130b
TT
95852020-03-13 Tom Tromey <tom@tromey.com>
9586
9587 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9588 * valprint.c (generic_value_print_ptr): New function.
9589
abc66ce9
TT
95902020-03-13 Tom Tromey <tom@tromey.com>
9591
9592 * valprint.c (generic_value_print): Rewrite.
9593
07a32858
TT
95942020-03-13 Tom Tromey <tom@tromey.com>
9595
9596 * p-valprint.c (pascal_object_print_value_fields)
9597 (pascal_object_print_value): New functions.
9598
64d64d3a
TT
95992020-03-13 Tom Tromey <tom@tromey.com>
9600
9601 * p-valprint.c (pascal_value_print_inner): Rewrite.
9602
6a95a1f5
TT
96032020-03-13 Tom Tromey <tom@tromey.com>
9604
9605 * f-valprint.c (f_value_print_innner): Rewrite.
9606
59fcdac6
TT
96072020-03-13 Tom Tromey <tom@tromey.com>
9608
9609 * m2-valprint.c (m2_print_unbounded_array): New overload.
9610 (m2_print_unbounded_array): Update.
9611 (m2_print_array_contents): Take a struct value.
9612 (m2_value_print_inner): Rewrite.
9613
d133c3e1
TT
96142020-03-13 Tom Tromey <tom@tromey.com>
9615
9616 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9617 (d_value_print_inner): New function.
9618 * d-lang.h (d_value_print_inner): Declare.
9619 * d-lang.c (d_language_defn): Use d_value_print_inner.
9620
23b0f06b
TT
96212020-03-13 Tom Tromey <tom@tromey.com>
9622
9623 * go-valprint.c (go_value_print_inner): New function.
9624 * go-lang.h (go_value_print_inner): Declare.
9625 * go-lang.c (go_language_defn): Use go_value_print_inner.
9626
5f56f7cb
TT
96272020-03-13 Tom Tromey <tom@tromey.com>
9628
9629 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9630 API.
9631 (rust_val_print): Rewrite.
9632 (rust_value_print_inner): New function, from rust_val_print.
9633 (rust_language_defn): Use rust_value_print_inner.
9634
26792ee0
TT
96352020-03-13 Tom Tromey <tom@tromey.com>
9636
9637 * ada-valprint.c (ada_value_print_inner): New function.
9638 * ada-lang.h (ada_value_print_inner): Declare.
9639 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9640
24051bbe
TT
96412020-03-13 Tom Tromey <tom@tromey.com>
9642
9643 * f-valprint.c (f_value_print_innner): New function.
9644 * f-lang.h (f_value_print_innner): Declare.
9645 * f-lang.c (f_language_defn): Use f_value_print_innner.
9646
c0941be6
TT
96472020-03-13 Tom Tromey <tom@tromey.com>
9648
9649 * p-valprint.c (pascal_value_print_inner): New function.
9650 * p-lang.h (pascal_value_print_inner): Declare.
9651 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9652
62c4663d
TT
96532020-03-13 Tom Tromey <tom@tromey.com>
9654
9655 * m2-valprint.c (m2_value_print_inner): New function.
9656 * m2-lang.h (m2_value_print_inner): Declare.
9657 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9658
62182190
TT
96592020-03-13 Tom Tromey <tom@tromey.com>
9660
9661 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9662 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9663 * c-valprint.c (c_value_print_inner): New function.
9664 * c-lang.h (c_value_print_inner): Declare.
9665 * c-lang.c (c_language_defn, cplus_language_defn)
9666 (asm_language_defn, minimal_language_defn): Use
9667 c_value_print_inner.
9668
1e592a8a
TT
96692020-03-13 Tom Tromey <tom@tromey.com>
9670
9671 * p-valprint.c (pascal_object_print_value_fields): Now static.
9672 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9673
7fe471e9
TT
96742020-03-13 Tom Tromey <tom@tromey.com>
9675
9676 * c-valprint.c (c_val_print_array): Simplify.
9677
d121c6ce
TT
96782020-03-13 Tom Tromey <tom@tromey.com>
9679
9680 * valprint.c (value_print_array_elements): New function.
9681 * valprint.h (value_print_array_elements): Declare.
9682
4dba70ee
TT
96832020-03-13 Tom Tromey <tom@tromey.com>
9684
9685 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9686 * mips-tdep.c (mips_print_register): Use
9687 value_print_scalar_formatted.
9688
4f9ae810
TT
96892020-03-13 Tom Tromey <tom@tromey.com>
9690
9691 * valprint.h (value_print_scalar_formatted): Declare.
9692 * valprint.c (value_print_scalar_formatted): New function.
9693
156bfec9
TT
96942020-03-13 Tom Tromey <tom@tromey.com>
9695
9696 * valprint.h (generic_value_print): Declare.
9697 * valprint.c (generic_value_print): New function.
9698
2b4e573d
TT
96992020-03-13 Tom Tromey <tom@tromey.com>
9700
9701 * valprint.c (do_val_print): Call la_value_print_inner, if
9702 available.
9703 * rust-lang.c (rust_language_defn): Update.
9704 * p-lang.c (pascal_language_defn): Update.
9705 * opencl-lang.c (opencl_language_defn): Update.
9706 * objc-lang.c (objc_language_defn): Update.
9707 * m2-lang.c (m2_language_defn): Update.
9708 * language.h (struct language_defn) <la_value_print_inner>: New
9709 member.
9710 * language.c (unknown_language_defn, auto_language_defn): Update.
9711 * go-lang.c (go_language_defn): Update.
9712 * f-lang.c (f_language_defn): Update.
9713 * d-lang.c (d_language_defn): Update.
9714 * c-lang.c (c_language_defn, cplus_language_defn)
9715 (asm_language_defn, minimal_language_defn): Update.
9716 * ada-lang.c (ada_language_defn): Update.
9717
a1f6a07c
TT
97182020-03-13 Tom Tromey <tom@tromey.com>
9719
9720 * c-valprint.c (c_value_print): Use common_val_print.
9721
410cf315
TT
97222020-03-13 Tom Tromey <tom@tromey.com>
9723
9724 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9725
72a45c93
TT
97262020-03-13 Tom Tromey <tom@tromey.com>
9727
9728 * f-valprint.c (f77_print_array_1, f_val_print): Use
9729 common_val_print.
9730
040f66bd
TT
97312020-03-13 Tom Tromey <tom@tromey.com>
9732
9733 * riscv-tdep.c (riscv_print_one_register_info): Use
9734 common_val_print.
9735
a6e05a6c
TT
97362020-03-13 Tom Tromey <tom@tromey.com>
9737
9738 * mi/mi-main.c (output_register): Use common_val_print.
9739
3444c526
TT
97402020-03-13 Tom Tromey <tom@tromey.com>
9741
9742 * infcmd.c (default_print_one_register_info): Use
9743 common_val_print.
9744
c2a44efe
TT
97452020-03-13 Tom Tromey <tom@tromey.com>
9746
9747 * valprint.h (common_val_print_checked): Declare.
9748 * valprint.c (common_val_print_checked): New function.
9749 * stack.c (print_frame_arg): Use common_val_print_checked.
9750
b0c26e99
TT
97512020-03-13 Tom Tromey <tom@tromey.com>
9752
9753 * valprint.c (do_val_print): New function, from val_print.
9754 (val_print): Use do_val_print.
9755 (common_val_print): Use do_val_print.
9756
ce3acbe9
TT
97572020-03-13 Tom Tromey <tom@tromey.com>
9758
9759 * valprint.c (value_print): Use scoped_value_mark.
9760
96c7f873
TV
97612020-03-13 Tom de Vries <tdevries@suse.de>
9762
9763 PR symtab/25646
9764 * psymtab.c (partial_symtab::partial_symtab): Don't set
9765 globals_offset and statics_offset. Push element onto
9766 current_global_psymbols and current_static_psymbols stacks.
9767 (concat): New function.
9768 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9769 element from current_global_psymbols and current_static_psymbols
9770 stacks. Concat popped elements to global_psymbols and
9771 static_symbols.
9772 (add_psymbol_to_list): Use current_global_psymbols and
9773 current_static_psymbols stacks.
9774 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9775 current_static_psymbols fields.
9776
6ba0a321
CB
97772020-03-12 Christian Biesinger <cbiesinger@google.com>
9778
9779 * corelow.c (sniff_core_bfd): Remove.
9780 (class core_target) <m_core_vec>: Remove.
9781 (core_target::core_target): Update.
9782 (core_file_fns): Remove.
9783 (deprecated_add_core_fns): Remove.
9784 (default_core_sniffer): Remove.
9785 (sniff_core_bfd): Remove.
9786 (default_check_format): Remove.
9787 (gdb_check_format): Remove.
9788 (core_target_open): Update.
9789 (core_target::get_core_register_section): Update.
9790 (get_core_registers_cb): Update.
9791 (core_target::fetch_registers): Update.
9792 * gdbcore.h (struct core_fns): Remove.
9793 (deprecated_add_core_fns): Remove.
9794 (default_core_sniffer): Remove.
9795 (default_check_format): Remove.
9796
227031b2
TT
97972020-03-12 Tom Tromey <tom@tromey.com>
9798
9799 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9800 CORE_ADDR.
9801 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9802
53807e9f
TT
98032020-03-12 Tom Tromey <tom@tromey.com>
9804
9805 * remote.c (remote_target::download_tracepoint)
9806 (remote_target::enable_tracepoint)
9807 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9808 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9809 sprintf_vma.
9810
64f25102
TT
98112020-03-12 Tom Tromey <tom@tromey.com>
9812
9813 * symfile-mem.c: Update CORE_ADDR size assert.
9814
272cd5a3
SM
98152020-03-12 Simon Marchi <simon.marchi@efficios.com>
9816
9817 * selftest.m4: Move to gdbsupport/.
9818 * acinclude.m4: Update path to selftest.m4.
9819
74cd3f9d
SM
98202020-03-12 Simon Marchi <simon.marchi@efficios.com>
9821
9822 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9823 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9824 gdbarch-selfselftests.c and selftest-arch.c.
9825 (SUBDIR_UNITTESTS_OBS): Rename to...
9826 (SELFTESTS_OBS): ... this.
9827 (COMMON_SFILES): Remove disasm-selftests.c and
9828 gdbarch-selftests.c.
9829 * configure.ac: Don't add selftest-arch.{c,o} to
9830 CONFIG_{SRCS,OBS}.
9831 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9832 preprocessor conditions.
9833
db6878ac
SM
98342020-03-12 Simon Marchi <simon.marchi@efficios.com>
9835
9836 * configure.ac: Don't source bfd/development.sh.
9837 * selftest.m4: Modify comment.
9838 * configure: Re-generate.
9839
4d696a5c
SM
98402020-03-12 Simon Marchi <simon.marchi@efficios.com>
9841
9842 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9843 not "true" or "false".
9844 * configure: Re-generate.
9845
8dd8e1c7
CB
98462020-03-12 Christian Biesinger <cbiesinger@google.com>
9847
9848 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9849 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9850 renamed to arm_nbsd_supply_gregset.
9851 (fetch_register): Update to call arm_nbsd_supply_gregset.
9852 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9853 (arm_netbsd_nat_target::fetch_registers): Update.
9854 (fetch_elfcore_registers): Removed.
9855 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9856 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9857 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9858 not require NetBSD system headers.
9859 (arm_nbsd_regset): New struct.
9860 (arm_nbsd_iterate_over_regset_sections): New function.
9861 (arm_netbsd_init_abi_common): Updated to call
9862 set_gdbarch_iterate_over_regset_sections.
9863 * arm-nbsd-tdep.h: New file.
9864
dd69bf7a
KB
98652020-03-11 Kevin Buettner <kevinb@redhat.com>
9866
9867 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9868 recursion.
9869
a0761e34
SM
98702020-03-11 Simon Marchi <simon.marchi@efficios.com>
9871
9872 * configure: Re-generate.
9873
e7a82140
TT
98742020-03-11 Tom Tromey <tromey@adacore.com>
9875
9876 * ada-typeprint.c (print_choices): Fix comment.
9877
dcc050c8
AB
98782020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9879
9880 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9881 previous item in the list, when the list has no items.
9882
1c33af77
TV
98832020-03-11 Tom de Vries <tdevries@suse.de>
9884
9885 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9886 PROP_LOCLIST handling code.
9887
8c95582d
AB
98882020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9889
9890 * buildsym-legacy.c (record_line): Pass extra parameter to
9891 record_line.
9892 * buildsym.c (buildsym_compunit::record_line): Take an extra
9893 parameter, reduce duplication in the line table, and record the
9894 is_stmt flag in the line table.
9895 * buildsym.h (buildsym_compunit::record_line): Add extra
9896 parameter.
9897 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9898 non-statement lines.
9899 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9900 this to the symtab builder.
9901 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9902 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9903 through to dwarf_record_line_1.
9904 * infrun.c (process_event_stop_test): When stepping, don't stop at
9905 a non-statement instruction, and only refresh the step info when
9906 we land in the middle of a line's range. Also add an extra
9907 comment.
9908 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9909 field.
9910 * record-btrace.c (btrace_find_line_range): Only record lines
9911 marked as is-statement.
9912 * stack.c (frame_show_address): Show the frame address if we are
9913 in a non-statement sal.
9914 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9915 (maintenance_print_one_line_table): Print a header for the is_stmt
9916 column, and include is_stmt information in the output.
9917 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9918 preference to non-statements.
9919 (find_pcs_for_symtab_line): Prefer is-statement entries.
9920 (find_line_common): Likewise.
9921 * symtab.h (struct linetable_entry): Add is_stmt field.
9922 (struct symtab_and_line): Likewise.
9923 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9924 arranging the line table.
9925
e4003a34
TV
99262020-03-07 Tom de Vries <tdevries@suse.de>
9927
9928 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9929 DIE.
9930
e8932576
TT
99312020-03-07 Tom Tromey <tom@tromey.com>
9932
9933 * valops.c (value_literal_complex): Remove obsolete comment.
9934 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9935 comment.
9936
29734269
SM
99372020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9938
9939 * infrun.h: Forward-declare thread_info.
9940 (set_step_info): Add thread_info parameter, add doc.
9941 * infrun.c (set_step_info): Add thread_info parameter, move doc
9942 to header.
9943 * infrun.c (process_event_stop_test): Pass thread to
9944 set_step_info call.
9945 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9946 set_step_info.
9947 (prepare_one_step): Add thread_info parameter, pass it to
9948 set_step_frame and prepare_one_step (recursive) call.
9949 (step_1): Pass thread to prepare_one_step call.
9950 (step_command_fsm::should_stop): Pass thread to
9951 prepare_one_step.
9952 (until_next_fsm): Pass thread to set_step_frame call.
9953 (finish_command): Pass thread to set_step_info call.
9954
b7d64b29
HD
99552020-03-06 Hannes Domani <ssbssa@yahoo.de>
9956
9957 * windows-tdep.c (windows_solib_create_inferior_hook):
9958 Check if inferior is running.
9959
09f2921c
TV
99602020-03-06 Tom de Vries <tdevries@suse.de>
9961
9962 * NEWS: Fix "the the".
9963 * ctfread.c: Same.
9964
fd760e79
TV
99652020-03-06 Tom de Vries <tdevries@suse.de>
9966
9967 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9968
20ea4a60
AB
99692020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9970
9971 * .dir-locals.el: Add a comment referencing the other copies of
9972 this file.
9973
0afbabf0
JB
99742020-03-05 John Baldwin <jhb@FreeBSD.org>
9975
9976 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9977 psargs.
9978
842806cb
TBA
99792020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9980
9981 * .gitattributes: New file.
9982
be1e3d3e
TT
99832020-03-04 Tom Tromey <tom@tromey.com>
9984
9985 * symmisc.c (print_symbol_bcache_statistics)
9986 (print_objfile_statistics): Update.
9987 * symfile.c (allocate_symtab): Use intern.
9988 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9989 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9990 macro_cache>: Remove.
9991 <string_cache>: New member.
9992 (struct objfile) <intern>: New methods.
9993 * elfread.c (elf_symtab_read): Use intern.
9994 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9995 (dwarf2_compute_name, dwarf2_physname)
9996 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9997 names.
9998 (guess_partial_die_structure_name): Update.
9999 (partial_die_info::fixup): Intern name.
10000 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10001 name.
10002 (dwarf2_name): Intern name. Update.
10003 * buildsym.c (buildsym_compunit::get_macro_table): Use
10004 string_cache.
10005
4e7625fd
TT
100062020-03-04 Tom Tromey <tom@tromey.com>
10007
10008 * jit.c (bfd_open_from_target_memory): Make "target" const.
10009 * corefile.c (gnutarget): Now const.
10010 * gdbcore.h (gnutarget): Now const.
10011
46f9f931
HD
100122020-03-04 Hannes Domani <ssbssa@yahoo.de>
10013
10014 * NEWS: Mention support for WOW64 processes.
10015 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10016 (amd64_windows_segment_register_p): Remove static.
10017 (_initialize_amd64_windows_nat): Update.
10018 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10019 * i386-windows-nat.c (context_offset): Update.
10020 (i386_mappings): Rename and remove static.
10021 (i386_windows_segment_register_p): Remove static.
10022 (_initialize_i386_windows_nat): Update.
10023 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10024 (STATUS_WX86_SINGLE_STEP): New macro.
10025 (EnumProcessModulesEx): New macro.
10026 (Wow64SuspendThread): New macro.
10027 (Wow64GetThreadContext): New macro.
10028 (Wow64SetThreadContext): New macro.
10029 (Wow64GetThreadSelectorEntry): New macro.
10030 (windows_set_context_register_offsets): Add static.
10031 (windows_set_segment_register_p): Likewise.
10032 (windows_add_thread): Adapt for WOW64 processes.
10033 (windows_fetch_one_register): Likewise.
10034 (windows_nat_target::fetch_registers): Likewise.
10035 (windows_store_one_register): Likewise.
10036 (display_selector): Likewise.
10037 (display_selectors): Likewise.
10038 (handle_exception): Likewise.
10039 (windows_continue): Likewise.
10040 (windows_nat_target::resume): Likewise.
10041 (windows_add_all_dlls): Likewise.
10042 (do_initial_windows_stuff): Likewise.
10043 (windows_nat_target::attach): Likewise.
10044 (windows_get_exec_module_filename): Likewise.
10045 (windows_nat_target::create_inferior): Likewise.
10046 (windows_xfer_siginfo): Likewise.
10047 (_initialize_loadable): Initialize Wow64SuspendThread,
10048 Wow64GetThreadContext, Wow64SetThreadContext,
10049 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10050 * windows-nat.h (windows_set_context_register_offsets):
10051 Remove declaration.
10052 (windows_set_segment_register_p): Likewise.
10053 (i386_windows_segment_register_p): Add declaration.
10054 (amd64_windows_segment_register_p): Likewise.
10055
440cf44e
LM
100562020-03-04 Luis Machado <luis.machado@linaro.org>
10057
10058 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10059 in "info registers" for AArch64/ARM.
10060
10061 The change caused "info registers" to not print GPR's.
10062
10063 gdb/ChangeLog:
10064
10065 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10066
10067 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10068 when reg->group is empty and reggroup is not.
10069
1009d92f
TT
100702020-03-03 Tom Tromey <tromey@adacore.com>
10071
10072 * dwarf2/frame.c (struct dwarf2_frame_cache)
10073 <checked_tailcall_bottom, entry_cfa_sp_offset,
10074 entry_cfa_sp_offset_p>: Remove members.
10075 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10076 (dwarf2_frame_prev_register): Don't call
10077 dwarf2_tailcall_sniffer_first.
10078 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10079 * frame-unwind.c (add_unwinder): New fuction.
10080 (frame_unwind_init): Use it. Add tailcall unwinder.
10081
5e5d66b6
AB
100822020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10083 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10084
10085 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10086 value should be printed as true.
10087
584cf46d
HD
100882020-03-03 Hannes Domani <ssbssa@yahoo.de>
10089
10090 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10091 (windows_init_abi): Set and use windows_so_ops.
10092
7b973adc
SDJ
100932020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10094
10095 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10096 when verifying if dealing with a convenience variable.
10097
bb7b70ab
LM
100982020-03-03 Luis Machado <luis.machado@linaro.org>
10099
10100 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10101
9822cb57
SM
101022020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10103
10104 * infrun.c (gdbarch_supports_displaced_stepping): New.
10105 (use_displaced_stepping): Break up conditions in smaller pieces.
10106 Use gdbarch_supports_displaced_stepping.
10107 (displaced_step_prepare_throw): Use
10108 gdbarch_supports_displaced_stepping.
10109
63e163f2
AB
101102020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10111
10112 * NEWS: Mention new behaviour of the history filename.
10113 * top.c (write_history_p): Add comment.
10114 (show_write_history_p): Add header comment, give a different
10115 message when history writing is on, but the history filename is
10116 empty.
10117 (history_filename): Add comment.
10118 (history_filename_empty): New function.
10119 (show_history_filename): Add header comment, give a different
10120 message when the filename is empty.
10121 (init_history): Compare history_filename against nullptr, and only
10122 read history if the filename is not empty.
10123 (set_history_filename): Add header comment, and only make
10124 non-empty filenames absolute.
10125 (init_main): Make the filename argument to 'set history filename'
10126 optional.
10127
81b86b97
CB
101282020-03-02 Christian Biesinger <cbiesinger@google.com>
10129
10130 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10131 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10132 (fetch_fp_register): Update.
10133 (fetch_fp_regs): Update.
10134 (store_fp_register): Update.
10135 (store_fp_regs): Update.
10136 (arm_netbsd_nat_target::read_description): New function.
10137 (fetch_elfcore_registers): Update.
10138
24ed6739
AB
101392020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10140
10141 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10142 general_thread if the stop reply is missing a thread-id.
10143 (remote_target::process_stop_reply): Use the first non-exited
10144 thread if the target didn't pass a thread-id.
10145 * infrun.c (do_target_wait): Move call to
10146 switch_to_inferior_no_thread to ....
10147 (do_target_wait_1): ... here.
10148
a84bb2a0
JT
101492020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10150
10151 * debuginfod-support.c: Include defs.h first.
10152
658dadf0
TV
101532020-02-28 Tom de Vries <tdevries@suse.de>
10154
10155 * symfile.c (set_initial_language): Use default language for lookup.
10156
4ebe4877
SM
101572020-02-28 Simon Marchi <simon.marchi@efficios.com>
10158
10159 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10160 reader variable, pass `this` to read_cutu_die_from_dwo.
10161
e5da1139
AM
101622020-02-27 Aaron Merey <amerey@redhat.com>
10163
10164 * source.c (open_source_file): Check for nullptr when computing
10165 srcpath.
10166
317f7127
TT
101672020-02-27 Tom Tromey <tromey@adacore.com>
10168
10169 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10170 member.
10171 (dwarf2_add_field): Don't update nfields.
10172 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10173
3104d9ee
AB
101742020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10175
10176 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10177 abs.
10178
b83470bf
TT
101792020-02-26 Tom Tromey <tom@tromey.com>
10180
10181 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10182 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10183 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10184 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10185 per_cu_data.
10186
edfe0a0c
TT
101872020-02-26 Tom Tromey <tom@tromey.com>
10188
10189 * dwarf2/index-write.c (psym_index_map): Change type.
10190 (add_address_entry_worker, write_one_signatured_type)
10191 (recursively_count_psymbols, recursively_write_psymbols)
10192 (class debug_names, psyms_seen_size, write_gdbindex)
10193 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10194
0d79cdc4
AM
101952020-02-26 Aaron Merey <amerey@redhat.com>
10196
10197 * Makefile.in: Handle optional debuginfod support.
10198 * NEWS: Update.
10199 * README: Add --with-debuginfod summary.
10200 * config.in: Regenerate.
10201 * configure: Regenerate.
10202 * configure.ac: Handle optional debuginfod support.
10203 * debuginfod-support.c: debuginfod helper functions.
10204 * debuginfod-support.h: Ditto.
10205 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10206 summary.
10207 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10208 when a dwz file cannot be found.
10209 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10210 debuginfo file cannot be found.
10211 * source.c (open_source_file): Query debuginfod servers when a
10212 source file cannot be found.
10213 * top.c (print_gdb_configuration): Include
10214 --{with,without}-debuginfod in the output.
10215
b65ce565
JG
102162020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10217
10218 * thread.c (thr_try_catch_cmd): Print thread name.
10219
d4c9a4f8
SM
102202020-02-26 Simon Marchi <simon.marchi@efficios.com>
10221
10222 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10223 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10224 dwarf2_fetch_die_type_sect_off): Move to...
10225 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10226 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10227 dwarf2_fetch_die_type_sect_off): ... here.
10228 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10229 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10230 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10231
0dce4280
TV
102322020-02-26 Tom de Vries <tdevries@suse.de>
10233
10234 PR gdb/25603
10235 * symfile.c (set_initial_language): Exit-early if
10236 language_mode == language_mode_manual.
10237
450a1bfc
SM
102382020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10239
10240 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10241 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10242 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10243
9e80cfa1
AB
102442020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10245
10246 * gdbtypes.c (create_array_type_with_stride): Handle negative
10247 array strides.
10248 * valarith.c (value_subscripted_rvalue): Likewise.
10249
09624f1f
LM
102502020-02-25 Luis Machado <luis.machado@linaro.org>
10251
10252 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10253
8cb5117c
SM
102542020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10255
10256 * loc.h (dwarf2_get_die_type): Move to...
10257 * read.h (dwarf2_get_die_type): ... here.
10258 * read.c (dwarf2_get_die_type): Move doc to header.
10259
c325c44e
JB
102602020-02-25 Joel Brobecker <brobecker@adacore.com>
10261
10262 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10263 'gnulib/Makefile.in' to the list.
10264
4ac93832
TT
102652020-02-24 Tom Tromey <tom@tromey.com>
10266
10267 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10268 Remove.
10269 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10270 XOBNEWVEC.
10271
197400e8
TT
102722020-02-24 Tom Tromey <tom@tromey.com>
10273
10274 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10275 New method.
10276 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10277 (dw2_do_instantiate_symtab, dw2_get_file_names)
10278 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10279
76935768
TT
102802020-02-24 Tom Tromey <tom@tromey.com>
10281
10282 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10283 make_scoped_restore.
10284 (dwarf2_psymtab::read_symtab): Don't clear
10285 reading_partial_symbols.
10286
a88ef40d
TV
102872020-02-24 Tom de Vries <tdevries@suse.de>
10288
10289 PR gdb/25592
10290 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10291
c9af6521
TV
102922020-02-24 Tom de Vries <tdevries@suse.de>
10293
10294 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10295 commands layout next/prev/regs.
10296
5707a07a
TT
102972020-02-22 Tom Tromey <tom@tromey.com>
10298
10299 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10300 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10301
3b0fb49e
TT
103022020-02-22 Tom Tromey <tom@tromey.com>
10303
10304 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10305
283be8bf
TT
103062020-02-22 Tom Tromey <tom@tromey.com>
10307
10308 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10309 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10310 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10311 * tui/tui.c (_initialize_tui): Add usage text.
10312
ca793b96
TT
103132020-02-22 Tom Tromey <tom@tromey.com>
10314
10315 * tui/tui-win.c (tui_set_focus_command)
10316 (tui_set_win_height_command): Use error_no_arg.
10317 (_initialize_tui_win): Update help text.
10318 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10319
432b5c40
TT
103202020-02-22 Tom Tromey <tom@tromey.com>
10321
10322 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10323 * tui/tui-disasm.h (struct tui_disasm_window)
10324 <display_start_addr>: Declare.
10325 * tui/tui-source.h (struct tui_source_window)
10326 <display_start_addr>: Declare.
10327 * tui/tui-winsource.h (struct tui_source_window_base)
10328 <show_source_line, display_start_addr>: New methods.
10329 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10330 Rename and move to protected section.
10331 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10332 (tui_source_window_base::do_erase_source_content): Update.
10333 (tui_source_window_base::show_source_line): Now a method.
10334 (tui_source_window_base::show_source_content)
10335 (tui_source_window_base::tui_source_window_base)
10336 (tui_source_window_base::rerender)
10337 (tui_source_window_base::refill)
10338 (tui_source_window_base::do_scroll_horizontal)
10339 (tui_source_window_base::set_is_exec_point_at)
10340 (tui_source_window_base::update_breakpoint_info)
10341 (tui_source_window_base::update_exec_info): Update.
10342 * tui/tui-source.c (tui_source_window::set_contents)
10343 (tui_source_window::showing_source_p)
10344 (tui_source_window::do_scroll_vertical)
10345 (tui_source_window::location_matches_p)
10346 (tui_source_window::line_is_displayed): Update.
10347 (tui_source_window::display_start_addr): New method.
10348 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10349 (tui_disasm_window::do_scroll_vertical)
10350 (tui_disasm_window::location_matches_p): Update.
10351 (tui_disasm_window::display_start_addr): New method.
10352
01b1af32
TT
103532020-02-22 Tom Tromey <tom@tromey.com>
10354
10355 * NEWS: Add entry for gdb.register_window_type.
10356 * tui/tui-layout.h (window_factory): New typedef.
10357 (tui_register_window): Declare.
10358 * tui/tui-layout.c (saved_tui_windows): New global.
10359 (tui_apply_current_layout): Use it.
10360 (tui_register_window): New function.
10361 * python/python.c (do_start_initialization): Call
10362 gdbpy_initialize_tui.
10363 (python_GdbMethods): Add "register_window_type" function.
10364 * python/python-internal.h (gdbpy_register_tui_window)
10365 (gdbpy_initialize_tui): Declare.
10366 * python/py-tui.c: New file.
10367 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10368
fc96d20b
TT
103692020-02-22 Tom Tromey <tom@tromey.com>
10370
10371 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10372
935c78c0
TT
103732020-02-22 Tom Tromey <tom@tromey.com>
10374
10375 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10376 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10377 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10378 (tui_set_win_focus_to): Move from tui-win.c.
10379
0240c8f1
TT
103802020-02-22 Tom Tromey <tom@tromey.com>
10381
10382 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10383 functions.
10384 (known_window_types): New global.
10385 (tui_get_window_by_name): Reimplement.
10386 (initialize_known_windows): New function.
10387 (validate_window_name): Rewrite.
10388 (_initialize_tui_layout): Call initialize_known_windows.
10389
fdb01f0c
TT
103902020-02-22 Tom Tromey <tom@tromey.com>
10391
10392 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10393 Remove constants.
10394 * tui/tui-winsource.h (struct tui_source_window_base)
10395 <tui_source_window_base>: Remove parameter.
10396 * tui/tui-winsource.c
10397 (tui_source_window_base::tui_source_window_base): Remove
10398 parameter.
10399 (tui_source_window_base::refill): Update.
10400 * tui/tui-stack.h (struct tui_locator_window)
10401 <tui_locator_window>: Update.
10402 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10403 Default the constructor.
10404 * tui/tui-regs.h (struct tui_data_item_window)
10405 <tui_data_item_window>: Default the constructor.
10406 (struct tui_data_window) <tui_data_window>: Likewise.
10407 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10408 Default the constructor.
10409 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10410 Default the constructor.
10411 <type>: Remove.
10412 (struct tui_win_info) <tui_win_info>: Default the constructor.
10413 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10414 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10415 Default the constructor.
10416
865a5aec
TT
104172020-02-22 Tom Tromey <tom@tromey.com>
10418
10419 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10420 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10421 * tui/tui-win.c (tui_resize_all): Don't call
10422 tui_delete_invisible_windows.
10423 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10424 done.
10425 (tui_set_layout): Update.
10426 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10427 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10428 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10429
e098d18c
TT
104302020-02-22 Tom Tromey <tom@tromey.com>
10431
10432 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10433 correctly.
10434
eb9c8874
TT
104352020-02-22 Tom Tromey <tom@tromey.com>
10436
10437 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10438
7eed1a8e
TT
104392020-02-22 Tom Tromey <tom@tromey.com>
10440
10441 * tui/tui-winsource.h (struct tui_source_window_iterator)
10442 <inner_iterator>: New etytypedef.
10443 <tui_source_window_iterator>: Take "end" parameter.
10444 <tui_source_window_iterator>: Take iterator.
10445 <operator*, advance>: Update.
10446 <m_iter>: Change type.
10447 <m_end>: New field.
10448 (struct tui_source_windows) <begin, end>: Update.
10449 * tui/tui-layout.c (tui_windows): New global.
10450 (tui_apply_current_layout): Clear tui_windows.
10451 (tui_layout_window::apply): Update tui_windows.
10452 * tui/tui-data.h (tui_windows): Declare.
10453 (all_tui_windows): Now inline function.
10454 (class tui_window_iterator, struct all_tui_windows): Remove.
10455
7c043ba6
TT
104562020-02-22 Tom Tromey <tom@tromey.com>
10457
10458 PR tui/17850:
10459 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10460 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10461 "height" argument.
10462 (class tui_layout_window) <get_sizes>: Likewise.
10463 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10464 argument.
10465 <get_sizes>: Add "height" argument.
10466 <m_vertical>: New field.
10467 * tui/tui-layout.c (tui_layout_split::clone): Update.
10468 (tui_layout_split::get_sizes): Add "height" argument.
10469 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10470 (tui_new_layout_command): Parse "-horizontal".
10471 (_initialize_tui_layout): Update help string.
10472 (tui_layout_split::specification): Add "-horizontal" when needed.
10473 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10474 argument.
10475 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10476 New methods.
10477
6bc56648
TT
104782020-02-22 Tom Tromey <tom@tromey.com>
10479
10480 * tui/tui-layout.h (enum tui_adjust_result): New.
10481 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10482 (class tui_layout_window) <adjust_size>: Return
10483 tui_adjust_result. Rewrite.
10484 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10485 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10486
c22fef7e
TT
104872020-02-22 Tom Tromey <tom@tromey.com>
10488
10489 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10490 parameter and return types.
10491 (class tui_layout_base) <specification>: Add "depth".
10492 (class tui_layout_window) <specification>: Add "depth".
10493 (class tui_layout_split) <specification>: Add "depth".
10494 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10495 and return types.
10496 (tui_new_layout_command): Parse sub-layouts.
10497 (_initialize_tui_layout): Update help string.
10498 (tui_layout_window::specification): Add "depth".
10499 (add_layout_command): Update.
10500
ee325b61
TT
105012020-02-22 Tom Tromey <tom@tromey.com>
10502
10503 * NEWS: Add "tui new-layout" item.
10504 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10505 Add new-layout command to help text.
10506 (validate_window_name): New function.
10507 (tui_new_layout_command): New function.
10508 (_initialize_tui_layout): Register "new-layout".
10509 (tui_layout_window::specification): New method.
10510 (tui_layout_window::specification): New method.
10511 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10512 method.
10513 (class tui_layout_window) <specification>: New method.
10514 (class tui_layout_split) <specification>: New method.
10515
416eb92d
TT
105162020-02-22 Tom Tromey <tom@tromey.com>
10517
10518 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10519 * tui/tui-win.c (window_name_completer): Update comment.
10520 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10521 Declare method.
10522 (class tui_layout_window) <replace_window>: Likewise.
10523 (class tui_layout_split) <replace_window>: Likewise.
10524 (tui_set_layout): Don't declare.
10525 (tui_set_initial_layout): Declare function.
10526 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10527 (asm_regs_layout): New globals.
10528 (tui_current_layout, show_layout): Remove.
10529 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10530 (find_layout, tui_apply_layout): New function.
10531 (layout_completer): Remove.
10532 (tui_next_layout): Reimplement.
10533 (tui_next_layout_command): New function.
10534 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10535 (tui_regs_layout): Reimplement.
10536 (tui_regs_layout_command): New function.
10537 (extract_display_start_addr): Rewrite.
10538 (next_layout, prev_layout): Remove.
10539 (tui_layout_window::replace_window): New method.
10540 (tui_layout_split::replace_window): New method.
10541 (destroy_layout): New function.
10542 (layout_list): New global.
10543 (add_layout_command): New function.
10544 (initialize_layouts): Update.
10545 (tui_layout_command): New function.
10546 (_initialize_tui_layout): Install "layout" commands.
10547 * tui/tui-data.h (enum tui_layout_type): Remove.
10548 (tui_current_layout): Don't declare.
10549
0dbc2fc7
TT
105502020-02-22 Tom Tromey <tom@tromey.com>
10551
10552 * tui/tui-regs.c (tui_reg_layout): Remove.
10553 (tui_reg_command): Use tui_regs_layout.
10554 * tui/tui-layout.h (tui_reg_command): Declare.
10555 * tui/tui-layout.c (tui_reg_command): New function.
10556
5afe342e
TT
105572020-02-22 Tom Tromey <tom@tromey.com>
10558
10559 * tui/tui.c (tui_rl_delete_other_windows): Call
10560 tui_remove_some_windows.
10561 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10562 Declare method.
10563 (class tui_layout_window) <remove_windows>: New method.
10564 (class tui_layout_split) <remove_windows>: Declare.
10565 (tui_remove_some_windows): Declare.
10566 * tui/tui-layout.c (tui_remove_some_windows): New function.
10567 (tui_layout_split::remove_windows): New method.
10568
427326a8
TT
105692020-02-22 Tom Tromey <tom@tromey.com>
10570
10571 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10572 * tui/tui-layout.h (tui_next_layout): Declare.
10573 * tui/tui-layout.c (tui_next_layout): New function.
10574
3fe12b6d
TT
105752020-02-22 Tom Tromey <tom@tromey.com>
10576
10577 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10578 correct coordinates.
10579
59b8b5d2
TT
105802020-02-22 Tom Tromey <tom@tromey.com>
10581
10582 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10583 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10584 DATA_WIN case.
10585
2a3d458b
TT
105862020-02-22 Tom Tromey <tom@tromey.com>
10587
10588 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10589 TUI_DISASM_WIN, not tui_win_list.
10590
3f0cbb04
TT
105912020-02-22 Tom Tromey <tom@tromey.com>
10592
10593 * valprint.c (generic_val_print_enum_1)
10594 (val_print_type_code_flags): Style member names.
10595 * rust-lang.c (val_print_struct, rust_print_enum)
10596 (rust_print_struct_def, rust_internal_print_type): Style member
10597 names.
10598 * p-valprint.c (pascal_object_print_value_fields): Style member
10599 names. Only call fprintf_symbol_filtered for static members.
10600 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10601 * f-valprint.c (f_val_print): Style member names.
10602 * f-typeprint.c (f_type_print_base): Style member names.
10603 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10604 call fprintf_symbol_filtered for static members.
10605 (cp_print_class_member): Style member names.
10606 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10607 member names.
10608 * ada-valprint.c (ada_print_scalar): Style enum names.
10609 (ada_val_print_enum): Likewise.
10610 * ada-typeprint.c (print_enum_type): Style enum names.
10611
d4d947ae
TT
106122020-02-21 Tom Tromey <tom@tromey.com>
10613
10614 * psympriv.h (struct partial_symtab): Update comment.
10615
e94e944b
TT
106162020-02-21 Tom Tromey <tromey@adacore.com>
10617
10618 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10619 type is CORE_ADDR.
10620
1eb73179
TV
106212020-02-21 Tom de Vries <tdevries@suse.de>
10622
10623 PR gdb/25534
10624 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10625 if dependencies[i]->user != NULL.
10626
4f180d53
AT
106272020-02-21 Ali Tamur <tamur@google.com>
10628
10629 * dwarf2/read.c (dwarf2_name): Add null check.
10630
22b6cd70
TT
106312020-02-20 Tom Tromey <tom@tromey.com>
10632
10633 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10634 ">=", in binary search.
10635 (dwarf2_find_containing_comp_unit): New overload.
10636 (run_test): New self-test.
10637 (_initialize_dwarf2_read): Register new test.
10638
bd0cf5a6
NC
106392020-02-20 Nelson Chu <nelson.chu@sifive.com>
10640
10641 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10642 * riscv-tdep.h: Likewise.
10643 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10644 rv32-only CSR.
10645 * features/riscv/64bit-csr.xml: Regenerated.
10646
3f702acd
SDJ
106472020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10648 Tom Tromey <tom@tromey.com>
10649
10650 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10651 of 'fputc_unfiltered'.
10652 (putchar_unfiltered): Call 'fputc_unfiltered'.
10653 (fputc_unfiltered): Call 'fputs_unfiltered'.
10654
d13c7322
AB
106552020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10656
10657 * config.in: Regenerate.
10658 * configure: Regenerate.
10659 * configure.ac: Add --with-python-libdir option.
10660 * main.c: Use WITH_PYTHON_LIBDIR.
10661
869d8950
TT
106622020-02-19 Tom Tromey <tom@tromey.com>
10663
10664 * symtab.c (general_symbol_info::compute_and_set_names): Use
10665 obstack_strndup. Simplify call to symbol_set_demangled_name.
10666
298e9637
SM
106672020-02-19 Simon Marchi <simon.marchi@efficios.com>
10668
10669 * dwarf2/read.c (allocate_signatured_type_table,
10670 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10671 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10672 Remove objfile parameter, update all callers.
10673
08410482
DE
106742020-02-19 Doug Evans <dje@google.com>
10675
10676 PR rust/25535
10677 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10678 rust_enum_variant calculation.
10679
dfdeeca1
TT
106802020-02-19 Tom Tromey <tromey@adacore.com>
10681
10682 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10683
2ef5453b
TT
106842020-02-19 Tom Tromey <tromey@adacore.com>
10685
10686 * ada-lang.c (cache_symbol): Use obstack_strdup.
10687
9f1528a1
AB
106882020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10689
10690 * configure: Regenerate.
10691
d3c22fa8
TT
106922020-02-19 Tom Tromey <tromey@adacore.com>
10693
10694 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10695 NULL check.
10696
bf84f706
MR
106972020-02-19 Maciej W. Rozycki <macro@wdc.com>
10698
10699 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10700
d1c9b20f
AB
107012020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10702
10703 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10704 if GDBSERVER is not defined.
10705 (riscv_tdesc_cache): Likewise, also store const target_desc.
10706 (STATIC_IN_GDB): Define.
10707 (riscv_create_target_description): Update declaration with
10708 STATIC_IN_GDB.
10709 (riscv_lookup_target_description): New function, only define if
10710 GDBSERVER is not defined.
10711 * arch/riscv.h (riscv_create_target_description): Declare only
10712 when GDBSERVER is defined.
10713 (riscv_lookup_target_description): New declaration when GDBSERVER
10714 is not defined.
10715 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10716 (riscv_linux_read_features): ...this, and return
10717 riscv_gdbarch_features instead of target_desc.
10718 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10719 (riscv_linux_read_description): Rename to...
10720 (riscv_linux_read_features): ...this.
10721 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10722 Update to use riscv_gdbarch_features and
10723 riscv_lookup_target_description.
10724 * riscv-tdep.c (riscv_find_default_target_description): Use
10725 riscv_lookup_target_description instead of
10726 riscv_create_target_description.
10727
373d7ac0
SM
107282020-02-18 Simon Marchi <simon.marchi@efficios.com>
10729
10730 * valprint.c (generic_val_print_enum_1): When printing a flag
10731 enum with value 0 and there is no enumerator with value 0, print
10732 just "0" instead of "(unknown: 0x0)".
10733
b29a2df0
SM
107342020-02-18 Simon Marchi <simon.marchi@efficios.com>
10735
10736 * valprint.c (generic_val_print_enum_1): Print unknown part of
10737 flag enum in hex.
10738
6740f0cc
SM
107392020-02-18 Simon Marchi <simon.marchi@efficios.com>
10740
10741 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10742 flag enums to contain duplicate enumerators.
10743 * valprint.c (generic_val_print_enum_1): Update comment.
10744
edd45eb0
SM
107452020-02-18 Simon Marchi <simon.marchi@efficios.com>
10746
10747 * dwarf2/read.c: Include "count-one-bits.h".
10748 (update_enumeration_type_from_children): If an enumerator has
10749 multiple bits set, don't treat the enumeration as a "flag enum".
10750 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10751 of flag enums have 0 or 1 bit set.
10752
6d0cf446
BE
107532020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10754
10755 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10756 conversion.
10757 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10758 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10759 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10760 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10761 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10762
7001c1b7
SM
107632020-02-18 Simon Marchi <simon.marchi@efficios.com>
10764
10765 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10766
fdb61c6c
SM
107672020-02-14 Simon Marchi <simon.marchi@efficios.com>
10768
10769 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10770 displaced_step_closure_up.
10771 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10772 (struct displaced_step_closure_up):
10773 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10774 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10775 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10776 Likewise.
10777 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10778 * gdbarch.c, gdbarch.h: Re-generate.
10779 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10780 displaced_step_closure_up.
10781 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10782 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10783 * infrun.h (displaced_step_closure_up): New type alias.
10784 (struct displaced_step_inferior_state) <step_closure>: Change
10785 type to displaced_step_closure_up.
10786 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10787 displaced_step_closure_up.
10788 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10789
a4a38eb4
TT
107902020-02-14 Tom Tromey <tom@tromey.com>
10791
10792 * minidebug.c (gnu_debug_key): New global.
10793 (find_separate_debug_file_in_section): Use it.
10794
e8217e61
SM
107952020-02-14 Simon Marchi <simon.marchi@efficios.com>
10796
10797 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10798 std::unique_ptr.
10799 * gdbarch.c: Re-generate.
10800 * gdbarch.h: Re-generate.
10801 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10802 change.
10803 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10804 type to std::unique_ptr.
10805 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10806 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10807 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10808 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10809 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10810 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10811 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10812 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10813 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10814
d8d83535
SM
108152020-02-14 Simon Marchi <simon.marchi@efficios.com>
10816
10817 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10818 std::unique_ptr.
10819 (displaced_step_clear): Rename to...
10820 (displaced_step_reset): ... this. Just call displaced->reset ().
10821 (displaced_step_clear_cleanup): Rename to...
10822 (displaced_step_reset_cleanup): ... this.
10823 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10824 (displaced_step_fixup): Likewise.
10825 (resume_1): Likewise.
10826 (handle_inferior_event): Restore child's memory before calling
10827 displaced_step_fixup on the parent.
10828 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10829 to std::unique_ptr.
10830 <step_closure>: Change type to std::unique_ptr.
10831
5f661e03
SM
108322020-02-14 Simon Marchi <simon.marchi@efficios.com>
10833
10834 * arm-tdep.c: Include count-one-bits.h.
10835 (cleanup_block_store_pc): Use count_one_bits.
10836 (cleanup_block_load_pc): Use count_one_bits.
10837 (arm_copy_block_xfer): Use count_one_bits.
10838 (thumb2_copy_block_xfer): Use count_one_bits.
10839 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10840 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10841 (thumb_get_next_pcs_raw): Use count_one_bits.
10842 (arm_get_next_pcs_raw): Use count_one_bits_l.
10843 * arch/arm.c (bitcount): Remove.
10844 * arch/arm.h (bitcount): Remove.
10845
8084e579
TT
108462020-02-14 Tom Tromey <tromey@adacore.com>
10847
10848 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10849 Update.
10850 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10851 * dwarf2/loc.c (call_site_find_chain_1): Return
10852 unique_xmalloc_ptr.
10853 (call_site_find_chain): Likewise.
10854
258bf0ee
RB
108552020-02-14 Richard Biener <rguenther@suse.de>
10856
10857 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10858 on expression with division operators.
10859
f98a8458
AKS
108602020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10861
10862 * MAINTAINERS (Write After Approval): Adding myself.
10863
d1437c0e
TT
108642020-02-12 Tom Tromey <tom@tromey.com>
10865
10866 * event-loop.c (event_data, gdb_event, event_handler_func):
10867 Remove.
10868
3d4560f7
TT
108692020-02-12 Tom Tromey <tom@tromey.com>
10870
10871 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10872 (dwarf2_frame_objfile_data): Add comment.
10873 (find_comp_unit, set_comp_unit): New functions.
10874 (dwarf2_frame_find_fde): Use find_comp_unit.
10875 (dwarf2_build_frame_info): Use set_comp_unit.
10876
21982304
TT
108772020-02-12 Tom Tromey <tom@tromey.com>
10878
10879 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10880 (comp_unit): Don't initialize objfile.
10881 (execute_cfa_program): Add text_offset parameter.
10882 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10883 (dwarf2_frame_cache): Update.
10884 (dwarf2_build_frame_info): Don't set "objfile" member.
10885
4debb237
TT
108862020-02-12 Tom Tromey <tom@tromey.com>
10887
10888 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10889 (decode_frame_entry): Likewise.
10890 (dwarf2_build_frame_info): Update.
10891
0d404d44
TT
108922020-02-12 Tom Tromey <tom@tromey.com>
10893
10894 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10895 (decode_frame_entry_1): Use the comp_unit obstack.
10896
a7a3ae5c
TT
108972020-02-12 Tom Tromey <tom@tromey.com>
10898
10899 * dwarf2/frame.c (struct comp_unit): Add initializers and
10900 constructor.
10901 (dwarf2_frame_objfile_data): Store a comp_unit.
10902 (dwarf2_frame_find_fde): Update.
10903 (dwarf2_build_frame_info): Use "new".
10904
a9d65418
TT
109052020-02-12 Tom Tromey <tom@tromey.com>
10906
10907 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10908 (dwarf2_fde_table): Typedef for std::vector.
10909 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10910 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10911 (decode_frame_entry): Update.
10912 (dwarf2_build_frame_info): Use "new".
10913
7559c217
CB
109142020-02-12 Christian Biesinger <cbiesinger@google.com>
10915
10916 * arm-tdep.c (arm_gdbarch_init): Update.
10917 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10918 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10919 have_neon, is_m>: Change to bool.
10920
aeefc73c
CB
109212020-02-12 Christian Biesinger <cbiesinger@google.com>
10922
10923 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10924
d27b8e5f
TT
109252020-02-12 Tom Tromey <tom@tromey.com>
10926
10927 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10928
cd5900f3
HD
109292020-02-12 Hannes Domani <ssbssa@yahoo.de>
10930
10931 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10932 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10933
f056b22b
TT
109342020-02-11 Tom Tromey <tom@tromey.com>
10935
10936 * psymtab.h: Update comment.
10937
f92ff6b5
TT
109382020-02-11 Tom Tromey <tom@tromey.com>
10939
10940 * gdb_obstack.h (struct auto_obstack): Use
10941 DISABLE_COPY_AND_ASSIGN.
10942
3fd6912b
TT
109432020-02-11 Tom Tromey <tom@tromey.com>
10944
10945 * dwarf2/frame.h (struct objfile): Don't forward declare.
10946
69ed9b74
CB
109472020-02-11 Christian Biesinger <cbiesinger@google.com>
10948
10949 * cris-tdep.c (cris_supply_gregset): Change signature to match
10950 what struct regset expects.
10951 (cris_regset): New struct.
10952 (fetch_core_registers): Remove.
10953 (cris_iterate_over_regset_sections): New function.
10954 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10955 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10956
bda874f6
CB
109572020-02-11 Christian Biesinger <cbiesinger@google.com>
10958
10959 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10960 registers.
10961
754e1564
CB
109622020-02-11 Christian Biesinger <cbiesinger@google.com>
10963
10964 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10965
8ddd8e0e
SM
109662020-02-11 Simon Marchi <simon.marchi@efficios.com>
10967
10968 * configure: Re-generate.
10969
898e7f60
SM
109702020-02-11 Simon Marchi <simon.marchi@efficios.com>
10971
10972 * configure: Re-generate.
10973
58df732b
SM
109742020-02-11 Simon Marchi <simon.marchi@efficios.com>
10975
10976 * acinclude: Update warning.m4 path.
10977 * warning.m4: Move to gdbsupport.
10978
da5bd37e
TT
109792020-02-11 Tom Tromey <tromey@adacore.com>
10980
10981 * remote.c (remote_console_output): Update.
10982 * printcmd.c (printf_command): Update.
10983 * event-loop.c (gdb_wait_for_event): Update.
10984 * linux-nat.c (sigchld_handler): Update.
10985 * remote-sim.c (gdb_os_write_stdout): Update.
10986 (gdb_os_flush_stdout): Update.
10987 (gdb_os_flush_stderr): Update.
10988 (gdb_os_write_stderr): Update.
10989 * exceptions.c (print_exception): Update.
10990 * remote-fileio.c (remote_fileio_func_read): Update.
10991 (remote_fileio_func_write): Update.
10992 * tui/tui.c (tui_enable): Update.
10993 * tui/tui-interp.c (tui_interp::init): Update.
10994 * utils.c (init_page_info): Update.
10995 (putchar_unfiltered, fputc_unfiltered): Update.
10996 (gdb_flush): Update.
10997 (emit_style_escape): Update.
10998 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10999 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11000 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11001 (stderr_file::write): Update.
11002 (stderr_file::puts): Update.
11003 * ui-file.h (ui_file_isatty, ui_file_write)
11004 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11005 (ui_file_puts): Don't declare.
11006
85f0dd3c
TV
110072020-02-10 Tom de Vries <tdevries@suse.de>
11008
11009 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11010 sentinel to char *.
11011
2e927613
TV
110122020-02-09 Tom de Vries <tdevries@suse.de>
11013
11014 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11015 filename if it matches "<artificial>".
11016
6bafc845
HD
110172020-02-09 Hannes Domani <ssbssa@yahoo.de>
11018
11019 * windows-tdep.c (struct enum_value_name): New struct.
11020 (create_enum): New function.
11021 (windows_get_siginfo_type): Create and use enum types.
11022
7928d571
HD
110232020-02-09 Hannes Domani <ssbssa@yahoo.de>
11024
11025 * NEWS: Mention $_siginfo support for Windows.
11026 * windows-nat.c (handle_exception): Set siginfo_er.
11027 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11028 (windows_xfer_siginfo): New function.
11029 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11030 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11031 (init_windows_gdbarch_data): New function.
11032 (get_windows_gdbarch_data): New function.
11033 (windows_get_siginfo_type): New function.
11034 (windows_init_abi): Register windows_get_siginfo_type.
11035 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11036
6751ebae
TT
110372020-02-08 Tom Tromey <tom@tromey.com>
11038
11039 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11040 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11041 <keep>: Declare method.
11042 <m_keep>: Remove member.
11043 <~cutu_reader>: Remove.
11044 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11045 (cutu_reader::cutu_reader): Update.
11046 (cutu_reader::keep): Rename from ~cutu_reader.
11047 (process_psymtab_comp_unit, build_type_psymtabs_1)
11048 (process_skeletonless_type_unit, load_partial_comp_unit)
11049 (load_full_comp_unit, dwarf2_read_addr_index)
11050 (read_signatured_type): Update.
11051
135f5437
TT
110522020-02-08 Tom Tromey <tom@tromey.com>
11053
11054 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11055 "want_partial_unit" parameter.
11056 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11057 Inline check for DW_TAG_partial_unit.
11058 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11059
9f66ff1c
TT
110602020-02-08 Tom Tromey <tom@tromey.com>
11061
11062 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11063 read.c.
11064 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11065 read.c.
11066
c8a7a66f
TT
110672020-02-08 Tom Tromey <tom@tromey.com>
11068
11069 * dwarf2/read.c (read_address): Move to comp-unit.c.
11070 (dwarf2_rnglists_process, dwarf2_ranges_process)
11071 (read_attribute_value, dwarf_decode_lines_1)
11072 (var_decode_location, decode_locdesc): Update.
11073 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11074 read.c. Remove "cu" parameter.
11075 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11076 method.
11077
8266302d
TT
110782020-02-08 Tom Tromey <tom@tromey.com>
11079
11080 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11081 (read_indirect_line_string): Update.
11082 * dwarf2/comp-unit.c (read_offset): Remove.
11083 (read_comp_unit_head): Update.
11084 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11085 method.
11086 (read_offset): Don't declare.
11087
4057dfde
TT
110882020-02-08 Tom Tromey <tom@tromey.com>
11089
11090 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11091 * dwarf2/read.c (struct comp_unit_head): Move to
11092 dwarf2/comp-unit.h.
11093 (enum class rcuh_kind): Move to comp-unit.h.
11094 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11095 (read_comp_unit_head, error_check_comp_unit_head)
11096 (read_and_check_comp_unit_head): Move to comp-unit.c.
11097 (read_offset, dwarf_unit_type_name): Likewise.
11098 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11099 (cutu_reader::cutu_reader, read_call_site_scope)
11100 (find_partial_die, follow_die_offset): Update.
11101 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11102
24aa364d
TT
111032020-02-08 Tom Tromey <tom@tromey.com>
11104
11105 * dwarf2/read.c (read_offset_1): Move to leb.c.
11106 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11107 (dwarf_decode_macro_bytes): Update.
11108 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11109 * dwarf2/leb.h (read_offset): Declare.
11110
2c7d5afc
TT
111112020-02-08 Tom Tromey <tom@tromey.com>
11112
11113 * dwarf2/read.c (dwarf2_section_size): Remove.
11114 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11115 Update.
11116 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11117
4075cb26
TT
111182020-02-08 Tom Tromey <tom@tromey.com>
11119
11120 * dwarf2/read.c (read_initial_length): Move to leb.c.
11121 * dwarf2/leb.h (read_initial_length): Declare.
11122 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11123 handle_nonstd parameter.
11124 * dwarf2/frame.c (read_initial_length): Remove.
11125 (decode_frame_entry_1): Update.
11126
09ba997f
TT
111272020-02-08 Tom Tromey <tom@tromey.com>
11128
11129 * dwarf2/loc.c (dwarf2_find_location_expression)
11130 (dwarf_evaluate_loc_desc::get_tls_address)
11131 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11132 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11133 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11134 (dwarf2_compile_property_to_c)
11135 (dwarf2_loc_desc_get_symbol_read_needs)
11136 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11137 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11138 (loclist_describe_location, loclist_tracepoint_var_ref)
11139 (loclist_generate_c_location): Update.
11140 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11141 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11142 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11143 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11144 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11145 (dwarf2_per_cu_data::addr_size)
11146 (dwarf2_per_cu_data::ref_addr_size)
11147 (dwarf2_per_cu_data::text_offset)
11148 (dwarf2_per_cu_data::addr_type): Now methods.
11149 (per_cu_header_read_in): Make per_cu "const".
11150 (dwarf2_version): Remove.
11151 (dwarf2_per_cu_data::int_type): Now a method.
11152 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11153 (set_die_type, read_array_type, read_subrange_index_type)
11154 (read_tag_string_type, read_subrange_type): Update.
11155 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11156 offset_size, ref_addr_size, text_offset, addr_type, version,
11157 objfile, int_type, addr_sized_int_type>: Declare methods.
11158
96c738c0
TT
111592020-02-08 Tom Tromey <tom@tromey.com>
11160
11161 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11162 Move earlier.
11163
8fdd972c
TT
111642020-02-08 Tom Tromey <tom@tromey.com>
11165
11166 * dwarf2/read.h (dwarf_line_debug): Declare.
11167 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11168 * dwarf2/read.c: Move line_header code to new files.
11169 (dwarf_line_debug): No longer static.
11170 * dwarf2/line-header.c: New file.
11171 * dwarf2/line-header.h: New file.
11172
03075812
TT
111732020-02-08 Tom Tromey <tom@tromey.com>
11174
11175 * dwarf2/read.c (struct line_header) <file_full_name,
11176 file_file_name>: Return unique_xmalloc_ptr.
11177 (line_header::file_file_name): Update.
11178 (line_header::file_full_name): Update.
11179 (dw2_get_file_names_reader): Update.
11180 (macro_start_file): Update.
11181
bb822404
TT
111822020-02-08 Tom Tromey <tom@tromey.com>
11183
11184 * dwarf2/read.c (struct line_header) <file_full_name,
11185 file_file_name>: Declare methods.
11186 (dw2_get_file_names_reader): Update.
11187 (file_file_name): Now a method.
11188 (file_full_name): Likewise.
11189 (macro_start_file): Update.
11190
009b64fc
TT
111912020-02-08 Tom Tromey <tom@tromey.com>
11192
11193 * dwarf2/read.c (dwarf_always_disassemble)
11194 (show_dwarf_always_disassemble): Move to loc.c.
11195 (_initialize_dwarf2_read): Move "always-disassemble" registration
11196 to loc.c.
11197 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11198 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11199 static.
11200 (show_dwarf_always_disassemble): Move from read.c.
11201 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11202
5895093f
TT
112032020-02-08 Tom Tromey <tom@tromey.com>
11204
11205 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11206 (create_quick_file_names_table): Return htab_up.
11207 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11208 Update.
11209 * dwarf2/read.h (struct dwarf2_per_objfile)
11210 <quick_file_names_table>: Now htab_up.
11211
b3b32279
TT
112122020-02-08 Tom Tromey <tom@tromey.com>
11213
11214 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11215
1d33d811
TT
112162020-02-08 Tom Tromey <tom@tromey.com>
11217
11218 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11219 Rewrite.
11220 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11221 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11222 (abbrev_table::abbrev_table): No longer inline.
11223 (ABBREV_HASH_SIZE): Remove.
11224 (abbrev_table::m_abbrevs): Now an htab_up.
11225
86de1d91
TT
112262020-02-08 Tom Tromey <tom@tromey.com>
11227
11228 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11229 (cutu_reader): Update.
11230 (build_type_psymtabs_1): Update.
11231 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11232 (abbrev_table::alloc_abbrev): Update.
11233 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11234 (abbrev_table::read): New static method, renamed from
11235 abbrev_table_read_table.
11236 (abbrev_table::alloc_abbrev)
11237 (abbrev_table::add_abbrev): Now private.
11238 (abbrev_table::abbrev_table): Now private.
11239 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11240
0335378b
TT
112412020-02-08 Tom Tromey <tom@tromey.com>
11242
11243 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11244 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11245 htab_up.
11246
48b490f2
TT
112472020-02-08 Tom Tromey <tom@tromey.com>
11248
11249 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11250 htab_up.
11251 (lookup_dwo_unit_in_dwp): Update.
11252 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11253 on obstack.
11254
bc68fb19
TT
112552020-02-08 Tom Tromey <tom@tromey.com>
11256
11257 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11258 obstack.
11259
d15acc42
TT
112602020-02-08 Tom Tromey <tom@tromey.com>
11261
11262 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11263 line_header_hash.
11264 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11265 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11266 Change type to htab_up.
11267
eaa5fa8b
TT
112682020-02-08 Tom Tromey <tom@tromey.com>
11269
11270 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11271 htab_up. Don't allocate on obstack.
11272 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11273 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11274 Change type to htab_up.
11275
b0b6a987
TT
112762020-02-08 Tom Tromey <tom@tromey.com>
11277
11278 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11279 Change type to htab_up.
11280 * dwarf2/read.c (create_signatured_type_table_from_index)
11281 (create_signatured_type_table_from_debug_names)
11282 (create_all_type_units, add_type_unit)
11283 (lookup_dwo_signatured_type, lookup_signatured_type)
11284 (process_skeletonless_type_unit): Update.
11285 (create_debug_type_hash_table, create_debug_types_hash_table):
11286 Change type of types_htab.
11287 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11288 htab_up. Don't allocate on obstack.
11289 (create_cus_hash_table): Change type of cus_htab parameter.
11290 (struct dwo_file) <cus, tus>: Now htab_up.
11291 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11292 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11293 (queue_and_load_all_dwo_tus): Update.
11294 * dwarf2/index-write.c (write_gdbindex): Update.
11295 (write_debug_names): Update.
11296
39856def
TT
112972020-02-08 Tom Tromey <tom@tromey.com>
11298
11299 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11300 dwarf2/read.c. Remove "next" member. Add constructor ntad
11301 destructor.
11302 (struct dwarf2_per_objfile) <queue>: New member.
11303 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11304 dwarf2/read.h.
11305 (dwarf2_queue, dwarf2_queue_tail): Remove.
11306 (class dwarf2_queue_guard): Add parameter to constructor. Use
11307 DISABLE_COPY_AND_ASSIGN.
11308 <m_per_objfile>: New member.
11309 <~dwarf2_queue_guard>: Rewrite.
11310 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11311 Update.
11312 (~dwarf2_queue_item): New.
11313
3e225074
TT
113142020-02-08 Tom Tromey <tom@tromey.com>
11315
11316 * dwarf2/read.c (struct die_info) <has_children>: New member.
11317 (dw2_get_file_names_reader): Remove has_children.
11318 (dw2_get_file_names): Update.
11319 (read_cutu_die_from_dwo): Remove has_children.
11320 (cutu_reader::init_tu_and_read_dwo_dies)
11321 (cutu_reader::cutu_reader): Update.
11322 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11323 Remove has_children.
11324 (build_type_psymtabs_1, process_skeletonless_type_unit)
11325 (load_partial_comp_unit, load_full_comp_unit): Update.
11326 (create_dwo_cu_reader): Remove has_children.
11327 (create_cus_hash_table, read_die_and_children): Update.
11328 (read_full_die_1,read_full_die): Remove has_children.
11329 (read_signatured_type): Update.
11330 (class cutu_reader) <has_children>: Remove.
11331
82ca8957
TT
113322020-02-08 Tom Tromey <tom@tromey.com>
11333
11334 * dwarf2/expr.c: Rename from dwarf2expr.c.
11335 * dwarf2/expr.h: Rename from dwarf2expr.h.
11336 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11337 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11338 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11339 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11340 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11341 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11342 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11343 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11344 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11345 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11346 * dwarf2/loc.c: Rename from dwarf2loc.c.
11347 * dwarf2/loc.h: Rename from dwarf2loc.h.
11348 * dwarf2/read.c: Rename from dwarf2read.c.
11349 * dwarf2/read.h: Rename from dwarf2read.h.
11350 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11351 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11352 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11353 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11354 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11355 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11356 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11357 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11358 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11359 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11360 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11361 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11362 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11363 Update.
11364 * Makefile.in (COMMON_SFILES): Update.
11365 (HFILES_NO_SRCDIR): Update.
11366
9e35d499
TT
113672020-02-08 Tom Tromey <tom@tromey.com>
11368
11369 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11370 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11371
1eba2311
TT
113722020-02-08 Tom Tromey <tom@tromey.com>
11373
11374 * dwarf2read.h (struct die_info): Don't declare.
11375
e41c2da2
TT
113762020-02-08 Tom Tromey <tom@tromey.com>
11377
11378 * dwarf2read.h (die_info_ptr): Remove typedef.
11379
4fc6c0d5
TT
113802020-02-08 Tom Tromey <tom@tromey.com>
11381
11382 * dwarf2read.c (read_call_site_scope)
11383 (handle_data_member_location, dwarf2_add_member_fn)
11384 (mark_common_block_symbol_computed, read_common_block)
11385 (attr_to_dynamic_prop, partial_die_info::read)
11386 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11387 (dwarf2_symbol_mark_computed, set_die_type): Update.
11388 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11389 method.
11390 (attr_form_is_block): Don't declare.
11391 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11392
cd6c91b4
TT
113932020-02-08 Tom Tromey <tom@tromey.com>
11394
11395 * dwarf2read.c (dwarf2_find_base_address, )
11396 (read_call_site_scope, rust_containing_type)
11397 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11398 (handle_data_member_location, dwarf2_add_member_fn)
11399 (get_alignment, read_structure_type, process_structure_scope)
11400 (mark_common_block_symbol_computed, read_common_block)
11401 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11402 (partial_die_info::read, read_attribute_value, new_symbol)
11403 (lookup_die_type, dwarf2_get_ref_die_offset)
11404 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11405 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11406 (dwarf2_symbol_mark_computed): Update.
11407 * dwarf2/attribute.h (struct attribute) <value_as_address,
11408 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11409 methods.
11410 (value_as_address, attr_form_is_section_offset)
11411 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11412 * dwarf2/attribute.c (attribute::value_as_address)
11413 (attribute::form_is_section_offset, attribute::form_is_constant)
11414 (attribute::form_is_ref): Now methods.
11415
162dce55
TT
114162020-02-08 Tom Tromey <tom@tromey.com>
11417
11418 * dwarf2read.c (struct attribute, DW_STRING)
11419 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11420 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11421 (attr_form_is_block, attr_form_is_section_offset)
11422 (attr_form_is_constant, attr_form_is_ref): Move.
11423 * dwarf2/attribute.h: New file.
11424 * dwarf2/attribute.c: New file, from dwarf2read.c.
11425 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11426
3054dd54
TT
114272020-02-08 Tom Tromey <tom@tromey.com>
11428
11429 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11430 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11431 Move.
11432 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11433 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11434 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11435 abbrev.c.
11436 * dwarf2/abbrev.h: New file.
11437 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11438 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11439
96b79293
TT
114402020-02-08 Tom Tromey <tom@tromey.com>
11441
11442 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11443 (dwarf2_section_size, dwarf2_get_section_info)
11444 (create_signatured_type_table_from_debug_names)
11445 (create_addrmap_from_aranges, read_debug_names_from_section)
11446 (get_gdb_index_contents_from_section, read_comp_unit_head)
11447 (error_check_comp_unit_head, read_abbrev_offset)
11448 (create_debug_type_hash_table, init_cu_die_reader)
11449 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11450 (read_comp_units_from_section, create_cus_hash_table)
11451 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11452 (create_dwp_v2_section, dwarf2_rnglists_process)
11453 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11454 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11455 (read_indirect_string_from_dwz, read_addr_index_1)
11456 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11457 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11458 (fill_in_loclist_baton): Update.
11459 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11460 get_containing_section, get_bfd_owner, get_bfd_section,
11461 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11462 (dwarf2_read_section, get_section_name, get_section_file_name)
11463 (get_containing_section, get_section_bfd_owner)
11464 (get_section_bfd_section, get_section_name, get_section_file_name)
11465 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11466 declare.
11467 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11468 (dwarf2_section_info::get_bfd_owner)
11469 (dwarf2_section_info::get_bfd_section)
11470 (dwarf2_section_info::get_name)
11471 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11472 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11473 (dwarf2_section_info::read): Now methods.
11474 * dwarf-index-write.c (class debug_names): Update.
11475
2c86cff9
TT
114762020-02-08 Tom Tromey <tom@tromey.com>
11477
11478 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11479 Move to dwarf2/section.h.
11480 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11481 (get_section_bfd_section, get_section_name)
11482 (get_section_file_name, get_section_id, get_section_flags)
11483 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11484 dwarf2/section.c.
11485 * dwarf2/section.h: New file.
11486 * dwarf2/section.c: New file, from dwarf2read.c.
11487 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11488
f4382c45
TT
114892020-02-08 Tom Tromey <tom@tromey.com>
11490
11491 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11492 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11493 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11494 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11495 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11496 * dwarf2/leb.h: New file, from dwarf2read.c.
11497 * dwarf2/leb.c: New file, from dwarf2read.c.
11498 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11499 Remove.
11500 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11501 (COMMON_SFILES): Add dwarf2/leb.c.
11502
01840b7a
JB
115032020-02-08 Joel Brobecker <brobecker@adacore.com>
11504
11505 GDB 9.1 released.
11506
dfcb27e4
IB
115072020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11508
11509 PR gdb/25190:
aac66a4c
SM
11510 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11511 * gdb/remote.c (remote_console_output): Update.
11512 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11513 (ui_file_puts): ...this.
11514 * gdb/ui-file.h (ui_file_puts): Add declaration.
11515 * gdb/utils.c (emit_style_escape): Update.
11516 (flush_wrap_buffer): Update.
11517 (fputs_maybe_filtered): Update.
11518 (fputs_unfiltered): Add function.
dfcb27e4 11519
faa17681
IB
115202020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11521
aac66a4c
SM
11522 * gdb/event-loop.c (gdb_wait_for_event): Update.
11523 * gdb/printcmd.c (printf_command): Update.
11524 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11525 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11526 (gdb_os_flush_stderr): Update.
11527 * gdb/remote.c (remote_console_output): Update.
11528 * gdb/ui-file.c (gdb_flush): Rename to...
11529 (ui_file_flush): ...this.
11530 (stderr_file::write): Update.
11531 (stderr_file::puts): Update.
11532 * gdb/ui-file.h (gdb_flush): Rename to...
11533 (ui_file_flush): ...this.
11534 * gdb/utils.c (gdb_flush): Add function.
11535 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11536
5abbbe1d
TT
115372020-02-07 Tom Tromey <tromey@adacore.com>
11538
11539 PR breakpoints/24915:
11540 * source.c (find_and_open_source): Do not check basenames_may_differ.
11541
919adfe8
TT
115422020-02-07 Tom Tromey <tom@tromey.com>
11543
11544 * README: Update gdbserver documentation.
11545 * gdbserver: Move to top level.
11546 * configure.tgt (build_gdbserver): Remove.
11547 * configure.ac: Remove --enable-gdbserver.
11548 * configure: Rebuild.
11549 * Makefile.in (distclean): Don't mention gdbserver.
11550
1d5d29e7
SV
115512020-02-06 Shahab Vahedi <shahab@synopsys.com>
11552
11553 * source-cache.c (source_cache::ensure): Surround
11554 get_plain_source_lines with a try/catch.
11555 (source_cache::get_line_charpos): Get rid of try/catch
11556 and only check for the return value of "ensure".
11557 * tui/tui-source.c (tui_source_window::set_contents):
11558 Simplify "nlines" calculation.
11559
6eb1129c
SV
115602020-02-06 Shahab Vahedi <shahab@synopsys.com>
11561
11562 * MAINTAINERS (Write After Approval): Add myself.
11563
c6a42d11
CB
115642020-02-05 Christian Biesinger <cbiesinger@google.com>
11565
11566 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11567 function call.
11568
c8ecdda6
CB
115692020-02-05 Christian Biesinger <cbiesinger@google.com>
11570
11571 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11572
f6480e70
MR
115732020-02-05 Maciej W. Rozycki <macro@wdc.com>
11574
11575 * nat/riscv-linux-tdesc.h: New file.
11576 * nat/riscv-linux-tdesc.c: New file, taking code from...
11577 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11578 ... here.
11579 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11580 NATDEPFILES.
11581
dcc9fbc6
AB
115822020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11583
11584 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11585 we don't set the fake simulator ptid to the null_ptid.
11586
719546c4
SM
115872020-02-03 Simon Marchi <simon.marchi@efficios.com>
11588
11589 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11590 * gdbthread.h (class thread_info) <resumed>: Likewise.
11591 * infrun.c (resume_1): Likewise.
11592 (proceed): Likewise.
11593 (infrun_thread_stop_requested): Likewise.
11594 (stop_all_threads): Likewise.
11595 (handle_inferior_event): Likewise.
11596 (restart_threads): Likewise.
11597 (finish_step_over): Likewise.
11598 (keep_going_stepped_thread): Likewise.
11599 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11600 (linux_handle_extended_wait): Likewise.
11601 * record-btrace.c (get_thread_current_frame_id): Likewise.
11602 * record-full.c (record_full_wait_1): Likewise.
11603 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11604 * target.c (target_resume): Likewise.
11605 * thread.c (set_running_thread): Likewise.
11606
e409c542
AKS
116072020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11608
11609 * f-valprint.c (f77_print_array_1): Changed datatype of index
11610 variable to LONGEST from int to enable it to contain bound
11611 values correctly.
11612
ee98c0da
MR
116132020-02-03 Maciej W. Rozycki <macro@wdc.com>
11614
11615 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11616 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11617 offsets according to FLEN determined.
11618 (riscv_linux_nat_target::read_description): Determine FLEN
11619 dynamically.
11620 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11621 according to FLEN determined.
11622 (riscv_linux_nat_target::store_registers): Likewise.
11623
aa66aac4
SV
116242020-02-01 Shahab Vahedi <shahab@synopsys.com>
11625
11626 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11627 when reg->group is empty and reggroup is not.
11628
fd9faca8
TT
116292020-01-31 Tom Tromey <tromey@adacore.com>
11630
11631 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11632 Call beneath target's mourn_inferior after unpushing.
11633
42330a68
AB
116342020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11635
11636 PR tui/9765
11637 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11638 have enough lines to fill the screen, still return the lowest
11639 address we found.
11640
7a27a45b
AB
116412020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11642
11643 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11644 '-', '<', and '>' commands.
11645
c47f70e2
PA
116462020-01-29 Pedro Alves <palves@redhat.com>
11647 Sergio Durigan Junior <sergiodj@redhat.com>
11648
11649 * infcmd.c (construct_inferior_arguments): Assert that
11650 'argc' is greater than 0.
11651
5133a315
LM
116522020-01-29 Luis Machado <luis.machado@linaro.org>
11653
11654 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11655 (BRK_INSN_MASK): Define to 0xd4200000.
11656 (aarch64_program_breakpoint_here_p): New function.
11657 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11658 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11659 breakpoint.c.
11660 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11661 breakpoint.h
11662 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11663 call gdbarch_program_breakpoint_here_p.
11664 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11665 default_program_breakpoint_here_p, changed return type to bool and
11666 simplified.
11667 * breakpoint.h (program_breakpoint_here): Moved prototype to
11668 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11669 return type to bool.
11670 * gdbarch.c: Regenerate.
11671 * gdbarch.h: Regenerate.
11672 * gdbarch.sh (program_breakpoint_here_p): New method.
11673 * infrun.c (handle_signal_stop): Call
11674 gdbarch_program_breakpoint_here_p.
11675
168f8c6b
TT
116762020-01-26 Tom Tromey <tom@tromey.com>
11677
11678 * ctfread.c (struct ctf_fp_info): Reindent.
11679 (_initialize_ctfread): Remove.
11680
128a391f
TT
116812020-01-26 Tom Tromey <tom@tromey.com>
11682
11683 * psymtab.c (partial_map_expand_apply)
11684 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11685 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11686 (psym_print_stats, psym_expand_symtabs_for_function)
11687 (psym_map_symbol_filenames, psym_map_matching_symbols)
11688 (psym_expand_symtabs_matching)
11689 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11690 (maintenance_check_psymtabs): Use new methods.
11691 * psympriv.h (struct partial_symtab) <readin_p,
11692 get_compunit_symtab>: New methods.
11693 <readin, compunit_symtab>: Remove members.
11694 (struct standard_psymtab): New.
11695 (struct legacy_psymtab): Derive from standard_psymtab.
11696 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11697 standard_psymtab.
11698 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11699
0494dbec
TT
117002020-01-26 Tom Tromey <tom@tromey.com>
11701
11702 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11703 read_dependencies. Add assert.
11704 * psymtab.c (partial_symtab::read_dependencies): New method.
11705 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11706 method.
11707 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11708 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11709 read_dependencies.
11710 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11711 Add assert.
11712
8566b89b
TT
117132020-01-26 Tom Tromey <tom@tromey.com>
11714
11715 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11716 Call expand_psymtab.
11717 (xcoff_read_symtab): Call expand_psymtab.
11718 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11719 legacy_expand_psymtab.
11720 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11721 method.
11722 (struct legacy_psymtab) <expand_psymtab>: Implement.
11723 <legacy_expand_psymtab>: New member.
11724 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11725 (parse_partial_symbols): Set legacy_expand_psymtab.
11726 (psymtab_to_symtab_1): Change argument order. Call
11727 expand_psymtab.
11728 (new_psymtab): Set legacy_expand_psymtab.
11729 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11730 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11731 expand_psymtab.
11732 (dwarf2_psymtab::expand_psymtab): Rename from
11733 psymtab_to_symtab_1. Call expand_psymtab.
11734 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11735 (dbx_end_psymtab): Likewise.
11736 (dbx_psymtab_to_symtab_1): Change argument order. Call
11737 expand_psymtab.
11738 (dbx_read_symtab): Call expand_psymtab.
11739 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11740 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11741 (ctf_psymtab::read_symtab): Call expand_psymtab.
11742
077cbab2
TT
117432020-01-26 Tom Tromey <tom@tromey.com>
11744
11745 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11746 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11747 messages.
11748 * mdebugread.c (mdebug_read_symtab): Remove prints.
11749 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11750 assert.
11751 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11752
891813be
TT
117532020-01-26 Tom Tromey <tom@tromey.com>
11754
11755 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11756 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11757 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11758 legacy_symtab.
11759 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11760 * psymtab.c (psymtab_to_symtab): Call method.
11761 (dump_psymtab): Update.
11762 * psympriv.h (struct partial_symtab): Add virtual destructor.
11763 <read_symtab>: New method.
11764 (struct legacy_symtab): New.
11765 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11766 (struct pst_map) <pst>: Now a legacy_psymtab.
11767 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11768 (new_psymtab): Use legacy_psymtab.
11769 * dwarf2read.h (struct dwarf2_psymtab): New.
11770 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11771 * dwarf2read.c (dwarf2_create_include_psymtab)
11772 (dwarf2_build_include_psymtabs, create_type_unit_group)
11773 (create_partial_symtab, process_psymtab_comp_unit_reader)
11774 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11775 (set_partial_user): Use dwarf2_psymtab.
11776 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11777 (psymtab_to_symtab_1, process_full_comp_unit)
11778 (process_full_type_unit, dwarf2_ranges_read)
11779 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11780 (dwarf_decode_lines): Use dwarf2_psymtab.
11781 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11782 (add_address_entry_worker, write_one_signatured_type)
11783 (recursively_count_psymbols, recursively_write_psymbols)
11784 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11785 (write_debug_names): Likewise.
11786 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11787 <pst>: Now a legacy_psymtab.
11788 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11789 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11790 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11791 * ctfread.c (struct ctf_psymtab): New.
11792 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11793 ctf_psymtab.
11794 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11795 (create_partial_symtab): Return a ctf_psymtab.
11796 (scan_partial_symbols): Update.
11797
c3693a1d
TT
117982020-01-26 Tom Tromey <tom@tromey.com>
11799
11800 * xcoffread.c (xcoff_start_psymtab): Use new.
11801 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11802 renamed from start_psymtab_common.
11803 * psympriv.h (struct partial_symtab): Add new constructor.
11804 (start_psymtab_common): Don't declare.
11805 * mdebugread.c (parse_partial_symbols): Use new.
11806 * dwarf2read.c (create_partial_symtab): Use new.
11807 * dbxread.c (start_psymtab): Use new.
11808 * ctfread.c (create_partial_symtab): Use new.
11809
32caafd0
TT
118102020-01-26 Tom Tromey <tom@tromey.com>
11811
11812 * xcoffread.c (xcoff_end_psymtab): Use new.
11813 * psymtab.c (start_psymtab_common): Use new.
11814 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11815 Update.
11816 * psympriv.h (struct partial_symtab): Add parameters to
11817 constructor. Don't inline.
11818 (allocate_psymtab): Don't declare.
11819 * mdebugread.c (new_psymtab): Use new.
11820 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11821 * dbxread.c (dbx_end_psymtab): Use new.
11822
abaa2f23
TT
118232020-01-26 Tom Tromey <tom@tromey.com>
11824
11825 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11826 allocate_psymtab. Update documentation.
11827 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11828 allocate_psymtab. Do not use new.
11829 (allocate_psymtab): Use new. Update.
11830
6d94535f
TT
118312020-01-26 Tom Tromey <tom@tromey.com>
11832
11833 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11834 * psymtab.c (psym_print_stats): Update.
11835 * psympriv.h (struct partial_symtab) <readin,
11836 psymtabs_addrmap_supported, anonymous>: Now bool.
11837 * mdebugread.c (psymtab_to_symtab_1): Update.
11838 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11839 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11840 (process_full_comp_unit, process_full_type_unit): Update.
11841 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11842 * ctfread.c (psymtab_to_symtab): Update.
11843
6f17252b
TT
118442020-01-26 Tom Tromey <tom@tromey.com>
11845
11846 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11847 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11848 * psymtab.c (psymtab_storage): Delete psymtabs.
11849 (psymtab_storage::allocate_psymtab): Use new.
11850 (psymtab_storage::discard_psymtab): Use delete.
11851 * psympriv.h (struct partial_symtab): Add constructor and
11852 initializers.
11853
f6f1cebc
TT
118542020-01-26 Tom Tromey <tom@tromey.com>
11855
11856 * machoread.c: Do not include psympriv.h.
11857
e47e48f6
PW
118582020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11859
11860 * NEWS: Mention the new option and the set/show commands.
11861
a2fedca9
PW
118622020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11863
11864 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11865 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11866 (validate_exec_file): New variables, enums, functions.
11867 (exec_file_locate_attach, print_section_info): Style the filenames.
11868 (_initialize_exec): Install show_exec_file_mismatch_command and
11869 set_exec_file_mismatch_command.
11870 * gdbcore.h (validate_exec_file): Declare.
11871 * infcmd.c (attach_command): Call validate_exec_file.
11872 * remote.c ( remote_target::remote_add_inferior): Likewise.
11873
7ffa82e1
AB
118742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11875
11876 * frame.c (find_frame_sal): Move call to get_next_frame into more
11877 inner scope.
11878 * inline-frame.c (inilne_state) <inline_state>: Update argument
11879 types.
11880 (inilne_state) <skipped_symbol>: Rename to...
11881 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11882 (skip_inline_frames): Build vector of skipped symbols and use this
11883 to reate the inline_state.
11884 (inline_skipped_symbol): Add a comment and some assertions, fetch
11885 skipped symbol from the list.
11886
3d92a3e3
AB
118872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11888
11889 * buildsym.c (lte_is_less_than): Delete.
11890 (buildsym_compunit::end_symtab_with_blockvector): Create local
11891 lambda function to sort line table entries, and use
11892 std::stable_sort instead of std::sort.
11893 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11894 markers when looking for a previous line.
11895
94a72be7
AB
118962020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11897
11898 * dwarf2read.c (lnp_state_machine::record_line): Include
11899 end_sequence parameter in debug print out. Record the line if we
11900 are at an end_sequence marker even if it's not the start of a
11901 statement.
11902 * symmisc.c (maintenance_print_one_line_table): Print end of
11903 sequence markers with 'END' not '0'.
11904
53af73bf
PA
119052020-01-24 Pedro Alves <palves@redhat.com>
11906
11907 PR gdb/25410
11908 * thread.c (scoped_restore_current_thread::restore): Use
11909 switch_to_inferior_no_thread.
11910 * exec.c: Include "progspace-and-thread.h".
11911 (add_target_sections, remove_target_sections):
11912 scoped_restore_current_pspace_and_thread instead of
11913 scoped_restore_current_thread.
11914 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11915 and aspace to the inferior before calling clone_program_space.
11916 Remove stale comment.
11917
3050c6f4
CB
119182020-01-24 Christian Biesinger <cbiesinger@google.com>
11919
11920 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11921 (arm_netbsd_nat_target::fetch_registers): ...this.
11922 (arm_nbsd_nat_target::store_registers): Rename to...
11923 (arm_netbsd_nat_target::store_registers): ...this.
11924
73685c7e
CB
119252020-01-24 Christian Biesinger <cbiesinger@google.com>
11926
11927 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11928 register_t.
11929
89203d40
CB
119302020-01-24 Christian Biesinger <cbiesinger@google.com>
11931
11932 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11933 Update comment.
11934 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11935 Likewise.
11936 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11937 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11938 the correct replacement (iterate_over_regset_sections).
11939 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11940 Update comment.
11941
1ba1ac88
AB
119422020-01-24 Graham Markall <graham.markall@embecosm.com>
11943
11944 PR gdb/23718
11945 * gdb/python/python.c (execute_gdb_command): Call
11946 async_enable_stdin in catch block.
11947
f3364a6d
AB
119482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11949
11950 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11951 SWITCH_THRU_ALL_UIS.
11952
733d0a67
AB
119532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11954
11955 PR tui/9765
11956 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11957 comment, add extra parameter, and update to store previous symbol
11958 when appropriate.
11959 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11960 add extra parameter.
11961 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11962 remove unneeded parameter, add try/catch around gdb_print_insn,
11963 rewrite to add items to asm_lines vector.
11964 (tui_find_backward_disassembly_start_address): New function.
11965 (tui_find_disassembly_address): Updated throughout.
11966 (tui_disasm_window::set_contents): Update for changes to
11967 tui_disassemble.
11968 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11969 number of lines to scroll.
11970
b3b3bada
SM
119712020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11972
11973 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11974 (SECT_OFF_DATA): Likewise.
11975 (SECT_OFF_RODATA): Likewise.
11976 (SECT_OFF_TEXT): Likewise.
11977 (SECT_OFF_BSS): Likewise.
11978 (struct objfile) <text_section_offset, data_section_offset>: New
11979 methods.
11980 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11981 objfile::text_section_offset.
11982 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11983 * coffread.c (coff_symtab_read): Likewise.
11984 (enter_linenos): Likewise.
11985 (process_coff_symbol): Likewise.
11986 * ctfread.c (get_objfile_text_range): Likewise.
11987 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11988 Use objfile::data_section_offset.
11989 * dwarf2-frame.c (execute_cfa_program): Use
11990 objfile::text_section_offset.
11991 (dwarf2_frame_find_fde): Likewise.
11992 * dwarf2read.c (create_addrmap_from_index): Likewise.
11993 (create_addrmap_from_aranges): Likewise.
11994 (dw2_find_pc_sect_compunit_symtab): Likewise.
11995 (process_psymtab_comp_unit_reader): Likewise.
11996 (add_partial_symbol): Likewise.
11997 (add_partial_subprogram): Likewise.
11998 (process_full_comp_unit): Likewise.
11999 (read_file_scope): Likewise.
12000 (read_func_scope): Likewise.
12001 (read_lexical_block_scope): Likewise.
12002 (read_call_site_scope): Likewise.
12003 (dwarf2_rnglists_process): Likewise.
12004 (dwarf2_ranges_process): Likewise.
12005 (dwarf2_ranges_read): Likewise.
12006 (dwarf_decode_lines_1): Likewise.
12007 (new_symbol): Likewise.
12008 (dwarf2_fetch_die_loc_sect_off): Likewise.
12009 (dwarf2_per_cu_text_offset): Likewise.
12010 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12011 * hppa-tdep.c (read_unwind_info): Likewise.
12012 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12013 * psympriv.h (struct partial_symtab): Likewise.
12014 * psymtab.c (find_pc_sect_psymtab): Likewise.
12015 * solib-svr4.c (enable_break): Likewise.
12016 * stap-probe.c (relocate_address): Use
12017 objfile::data_section_offset.
12018 * xcoffread.c (enter_line_range): Use
12019 objfile::text_section_offset.
12020 (read_xcoff_symtab): Likewise.
12021
ab53f382
SM
120222020-01-23 Simon Marchi <simon.marchi@efficios.com>
12023
12024 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12025 declaration to narrower scopes.
12026
e7eee665
SM
120272020-01-23 Simon Marchi <simon.marchi@efficios.com>
12028
12029 * darwin-nat.h (struct darwin_exception_msg, enum
12030 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12031 Move up.
12032 (class darwin_nat_target) <wait_1, check_new_threads,
12033 decode_exception_message, decode_message, stop_inferior,
12034 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12035 * darwin-nat.c (darwin_check_new_threads): Rename to...
12036 (darwin_nat_target::check_new_threads): ... this.
12037 (darwin_suspend_inferior_it): Remove.
12038 (darwin_decode_exception_message): Rename to...
12039 (darwin_nat_target::decode_exception_message): ... this.
12040 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12041 (darwin_decode_message): Rename to...
12042 (darwin_nat_target::decode_message): ... this.
12043 (cancel_breakpoint): Rename to...
12044 (darwin_nat_target::cancel_breakpoint): ... this.
12045 (darwin_wait): Rename to...
12046 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12047 instead of iterate_over_inferiors.
12048 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12049 (darwin_stop_inferior): Rename to...
12050 (darwin_nat_target::stop_inferior): ... this.
12051 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12052 (darwin_init_thread_list): Rename to...
12053 (darwin_nat_target::init_thread_list): ... this.
12054 (darwin_ptrace_him): Rename to...
12055 (darwin_nat_target::ptrace_him): ... this.
12056 (darwin_nat_target::create_inferior): Pass lambda function to
12057 fork_inferior.
12058 (darwin_nat_target::detach): Call stop_inferior instead of
12059 darwin_stop_inferior.
12060 * fork-inferior.h (fork_inferior): Change init_trace_fun
12061 parameter to gdb::function_view.
12062 * fork-inferior.c (fork_inferior): Likewise.
12063
c162ed3e
HD
120642020-01-23 Hannes Domani <ssbssa@yahoo.de>
12065
12066 * i386-cygwin-tdep.c (core_process_module_section): Update.
12067 * windows-nat.c (struct lm_info_windows): Add text_offset.
12068 (windows_xfer_shared_libraries): Update.
12069 * windows-tdep.c (windows_xfer_shared_library):
12070 Add text_offset_cached argument.
12071 * windows-tdep.h (windows_xfer_shared_library): Update.
12072
a1237872
SM
120732020-01-21 Simon Marchi <simon.marchi@efficios.com>
12074
12075 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12076
b3ee6dd9
SM
120772020-01-21 Simon Marchi <simon.marchi@efficios.com>
12078
12079 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12080 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12081 replace with range-based for.
12082 (gdbsim_interrupt_inferior): Remove.
12083 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12084 with a range-based for. Inline code from
12085 gdbsim_interrupt_inferior.
12086
f9fac3c8
SM
120872020-01-21 Simon Marchi <simon.marchi@efficios.com>
12088
12089 * infrun.c (proceed): Fix indentation.
12090
f6474de9
TT
120912020-01-21 Tom Tromey <tromey@adacore.com>
12092
12093 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12094 * python/python.c (python_extension_ops): Update.
12095 (gdbpy_colorize): New function.
12096 * python/lib/gdb/__init__.py (colorize): New function.
12097 * extension.h (ext_lang_colorize): Declare.
12098 * extension.c (ext_lang_colorize): New function.
12099 * extension-priv.h (struct extension_language_ops) <colorize>: New
12100 member.
12101 * cli/cli-style.c (_initialize_cli_style): Update help text.
12102
f0c702d4
LM
121032020-01-21 Luis Machado <luis.machado@linaro.org>
12104
12105 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12106 <cond>: Change type to bool.
12107 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12108 (aarch64_displaced_step_cb): Likewise.
12109 (aarch64_displaced_step_tb): Likewise.
12110
1ab139e5
LM
121112020-01-21 Luis Machado <luis.machado@linaro.org>
12112
12113 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12114 output.
12115
0c271889
LM
121162020-01-21 Luis Machado <luis.machado@linaro.org>
12117
12118 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12119 <pc_adjust>: Adjust the documentation.
12120 (aarch64_displaced_step_fixup): Check if PC really moved before
12121 adjusting it.
12122
4d89c1c7
TT
121232020-01-19 Tom Tromey <tom@tromey.com>
12124
12125 * disasm.c (~gdb_disassembler): New destructor.
12126 (gdb_buffered_insn_length): Call disassemble_free_target.
12127 * disasm.h (class gdb_disassembler): Declare destructor. Use
12128 DISABLE_COPY_AND_ASSIGN.
12129
c0ab21c2
TT
121302020-01-19 Tom Tromey <tom@tromey.com>
12131
12132 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12133 (die_reader_func_ftype): Remove.
12134 (cutu_reader): New class.
12135 (dw2_get_file_names_reader): Remove "data" parameter.
12136 (dw2_get_file_names): Use cutu_reader.
12137 (create_debug_type_hash_table): Update.
12138 (read_cutu_die_from_dwo): Update comment.
12139 (lookup_dwo_unit): Add dwo_name parameter.
12140 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12141 die_reader_func_ftype and data parameters.
12142 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12143 Remove die_reader_func_ftype and data parameters.
12144 (~cutu_reader): New; from init_cutu_and_read_dies.
12145 (cutu_reader::cutu_reader): Rename from
12146 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12147 and data parameters.
12148 (init_cutu_and_read_dies_simple): Remove.
12149 (struct process_psymtab_comp_unit_data): Remove.
12150 (process_psymtab_comp_unit_reader): Remove data parameter; add
12151 want_partial_unit and pretend_language parameters.
12152 (process_psymtab_comp_unit): Use cutu_reader.
12153 (build_type_psymtabs_reader): Remove data parameter.
12154 (build_type_psymtabs_1): Use cutu_reader.
12155 (process_skeletonless_type_unit): Likewise.
12156 (load_partial_comp_unit_reader): Remove.
12157 (load_partial_comp_unit): Use cutu_reader.
12158 (load_full_comp_unit_reader): Remove.
12159 (load_full_comp_unit): Use cutu_reader.
12160 (struct create_dwo_cu_data): Remove.
12161 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12162 dwo_unit parameters.
12163 (create_cus_hash_table): Use cutu_reader.
12164 (struct dwarf2_read_addr_index_data): Remove.
12165 (dwarf2_read_addr_index_reader): Remove.
12166 (dwarf2_read_addr_index): Use cutu_reader.
12167 (read_signatured_type_reader): Remove.
12168 (read_signatured_type): Use cutu_reader.
12169
45bbae5c
TT
121702020-01-19 Tom Tromey <tom@tromey.com>
12171
12172 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12173 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12174 (tui_wrefresh): Declare.
12175 * tui/tui-wingeneral.c (suppress_output): New global.
12176 (tui_suppress_output, ~tui_suppress_output): New constructor and
12177 destructor.
12178 (tui_wrefresh): New function.
12179 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12180 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12181 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12182 method.
12183 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12184 tui_wrefresh.
12185 (tui_data_window::no_refresh): New method.
12186 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12187 (tui_reg_command): Use tui_suppress_output
12188 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12189 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12190 method.
12191 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12192
4f13c1c0
TT
121932020-01-19 Tom Tromey <tom@tromey.com>
12194
12195 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12196 Handle case where symtab is null.
12197
fa47e446
SM
121982020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12199
12200 * linux-fork.c (one_fork_p): Simplify.
12201
26f42329
SM
122022020-01-17 Simon Marchi <simon.marchi@efficios.com>
12203
12204 * top.c (struct qt_args): Remove.
12205 (kill_or_detach): Change return type to void, replace `void *`
12206 parameter with a proper one.
12207 (print_inferior_quit_action): Likewise.
12208 (quit_confirm): Use range-based for loop to iterate over inferiors.
12209 (quit_force): Likewise.
12210
a9ac81b1
SM
122112020-01-17 Simon Marchi <simon.marchi@efficios.com>
12212
12213 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12214 `void *` parameter with proper parameters.
12215 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12216 (print_one_inferior): Change return type to void, replace `void *`
12217 parameter with proper parameters.
12218 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12219 inferiors.
12220 (get_other_inferior): Remove.
12221 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12222 inferiors.
12223
788eca49
SM
122242020-01-17 Simon Marchi <simon.marchi@efficios.com>
12225
12226 * mi/mi-interp.c (report_initial_inferior): Remove.
12227 (mi_interp::init): Use range-based for to iterate over inferiors.
12228
d9bc85b6
SM
122292020-01-17 Simon Marchi <simon.marchi@efficios.com>
12230
12231 * python/py-inferior.c (build_inferior_list): Remove.
12232 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12233
40c94099
CB
122342020-01-16 Christian Biesinger <cbiesinger@google.com>
12235
12236 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12237 (btrace_stitch_trace): Likewise.
12238 * charset.c (intermediate_encoding): Likewise (vaild).
12239 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12240 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12241 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12242
e0cdfe3c
HD
122432020-01-16 Hannes Domani <ssbssa@yahoo.de>
12244
12245 * windows-tdep.c (windows_get_tlb_type):
12246 Add rtl_user_process_parameters type.
12247
790f1718 122482020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12249 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12250
12251 PR build/24805
12252 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12253 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12254 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12255 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12256 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12257 (ps_plog): Redeclare exported functions with default visibility.
12258
3112ed97
NA
122592020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12260
12261 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12262 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12263
8dc3273e
SM
122642020-01-15 Simon Marchi <simon.marchi@efficios.com>
12265
12266 * infcmd.c (post_create_inferior): Use get_thread_regcache
12267 instead of get_current_regcache.
12268
ff47f4f0
TT
122692020-01-14 Tom Tromey <tom@tromey.com>
12270
12271 PR symtab/12535:
12272 * python/python.c (gdbpy_decode_line): Treat empty string the same
12273 as no argument.
12274
975f45b7
TT
122752020-01-14 Tom Tromey <tom@tromey.com>
12276
12277 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12278
25e57356
TT
122792020-01-14 Tom Tromey <tom@tromey.com>
12280
12281 * nat/linux-btrace.c: Don't include <config.h>.
12282 * nat/linux-ptrace.c: Don't include <config.h>.
12283 * nat/x86-linux-dregs.c: Don't include <config.h>.
12284
05ea2a05
TT
122852020-01-14 Tom Tromey <tom@tromey.com>
12286
12287 * configure: Rebuild.
12288 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12289
01027315
TT
122902020-01-14 Tom Tromey <tom@tromey.com>
12291
12292 * nat/x86-linux-dregs.c: Include configh.h.
12293 * nat/linux-ptrace.c: Include configh.h.
12294 * nat/linux-btrace.c: Include configh.h.
12295 * defs.h: Include config.h, bfd.h.
12296 * configure.ac: Don't source common.host.
12297 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12298 * configure: Rebuild.
12299 * acinclude.m4: Update path.
12300 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12301 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12302 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12303 (CLIBS): Add LIBSUPPORT.
12304 (CDEPS): Likewise.
12305 (COMMON_SFILES): Remove gdbsupport files.
12306 (HFILES_NO_SRCDIR): Likewise.
12307 (stamp-version): Update path to create-version.sh.
12308 (ALLDEPFILES): Remove gdbsupport files.
12309
b2ceabe8
TT
123102020-01-14 Tom Tromey <tom@tromey.com>
12311
12312 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12313 USE_WIN32API when needed.
12314 * configure.ac (USE_WIN32API): Don't define.
12315 (WIN32LIBS): Use WIN32APILIBS.
12316 * configure: Rebuild.
12317
25c51f71
TT
123182020-01-14 Tom Tromey <tom@tromey.com>
12319
12320 * configure: Rebuild.
12321 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12322
717c684d
BE
123232020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12324
12325 * skip.c (skip_function_command): Make skip w/o arguments use the
12326 name of the inlined function if pc is inside any inlined function.
12327
7da6a5b9
LM
123282020-01-14 Luis Machado <luis.machado@linaro.org>
12329
12330 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12331 * infrun.c (resume_1): Likewise.
12332 (handle_inferior_event): Remove stale comment.
12333 * linux-nat.c (linux_nat_target::resume): Update comments.
12334 (save_stop_reason): Likewise.
12335 (linux_nat_filter_event): Likewise.
12336 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12337
44e4c775
AB
123382020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12339
12340 * elfread.c (record_minimal_symbol): Set section index to 0 for
12341 non-allocatable sections.
12342
18a8505e
AT
12343
123442020-01-13 Ali Tamur <tamur@google.com>
12345
12346 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12347 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12348 to gdb::optional. Update comments.
12349 (dwo_file): Update comments.
12350 (read_attribute): Update API to take an additional out parameter,
12351 need_reprocess. This is used to mark attributes that need other
12352 attributes (e.g. str_offsets_base) for correct computation which may not
12353 have been read yet.
12354 (read_attribute_reprocess): New function declaration.
12355 (read_addr_index): Likewise.
12356 (read_dwo_str_index): Likewise.
12357 (read_stub_str_index): Likewise.
12358 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12359 (lookup_addr_base): New function definition.
12360 (lookup_ranges_base): Likewise.
12361 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12362 lookup_ranges_base.
12363 (init_cutu_and_read_dies): Update comments.
12364 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12365 unit. This is used to inherit parent's str_offsets_base and addr_base.
12366 Update comments.
12367 (init_cutu_and_read_dies_simple): Reflect API changes.
12368 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12369 (create_cus_hash_table): Change API to take parent compile unit.
12370 Reflect API changes.
12371 (open_and_init_dwo_file): Reflect API changes.
12372 (dwarf2_get_pc_bounds): Update comments.
12373 (dwarf2_record_block_ranges): Likewise.
12374 (read_full_die_1): Change implementation to reprocess attributes that
12375 need str_offsets_base and addr_base.
12376 (partial_die_info::read): Likewise.
12377 (read_attribute_reprocess): New function definition.
12378 (read_attribute_value): Change API to take an additional out parameter,
12379 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12380 when a non-dwo compile unit has index based attributes.
12381 (read_attribute): Reflect API changes.
12382 (read_addr_index_1): Reflect API changes. Update comments.
12383 (dwarf2_read_addr_index_data): Reflect API changes.
12384 (dwarf2_read_addr_index): Likewise.
12385 (read_str_index): Change API and implementation. This becomes a helper
12386 to be used by the new string index related methods. Update error
12387 message and comments.
12388 (read_dwo_str_index): New function definition.
12389 (read_stub_str_index): Likewise.
12390 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12391 * symfile.h (dwarf2_debug_sections): Likewise.
12392 * xcoffread.c (dwarf2_debug_sections): Likewise.
12393
0cac9354
SM
123942020-01-13 Simon Marchi <simon.marchi@efficios.com>
12395
12396 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12397 core_reg_sect type to gdb_byte *.
12398 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12399 * cris-tdep.c (fetch_core_registers): Likewise.
12400 * corelow.c (core_target::get_core_register_section): Change
12401 type of `contents` to gdb::byte_vector.
12402
9a6d629c
AB
124032020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12404
12405 * tui/tui-wingeneral.c (box_win): Position the title in the center
12406 of the border.
12407
d8b2f9e3
SM
124082020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12409
12410 * corelow.c (core_target::get_core_register_section): Use
12411 std::vector instead of alloca.
12412
bb564c58
SM
124132020-01-13 Simon Marchi <simon.marchi@efficios.com>
12414
12415 * warning.m4: Add -Wmissing-declarations to build_warnings.
12416 * configure: Re-generate.
12417
6b366111
SM
124182020-01-13 Simon Marchi <simon.marchi@efficios.com>
12419
12420 * python/python.c (init__gdb_module): Add declaration.
12421
6c265988
SM
124222020-01-13 Simon Marchi <simon.marchi@efficios.com>
12423
12424 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12425 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12426 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12427 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12428 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12429 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12430 * ada-exp.y (_initialize_ada_exp): Add declaration.
12431 * ada-lang.c (_initialize_ada_language): Add declaration.
12432 * ada-tasks.c (_initialize_tasks): Add declaration.
12433 * agent.c (_initialize_agent): Add declaration.
12434 * aix-thread.c (_initialize_aix_thread): Add declaration.
12435 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12436 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12437 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12438 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12439 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12440 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12441 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12442 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12443 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12444 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12445 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12446 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12447 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12448 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12449 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12450 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12451 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12452 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12453 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12454 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12455 * annotate.c (_initialize_annotate): Add declaration.
12456 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12457 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12458 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12459 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12460 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12461 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12462 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12463 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12464 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12465 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12466 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12467 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12468 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12469 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12470 * auto-load.c (_initialize_auto_load): Add declaration.
12471 * auxv.c (_initialize_auxv): Add declaration.
12472 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12473 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12474 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12475 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12476 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12477 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12478 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12479 * breakpoint.c (_initialize_breakpoint): Add declaration.
12480 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12481 * btrace.c (_initialize_btrace): Add declaration.
12482 * charset.c (_initialize_charset): Add declaration.
12483 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12484 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12485 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12486 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12487 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12488 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12489 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12490 * coffread.c (_initialize_coffread): Add declaration.
12491 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12492 * compile/compile.c (_initialize_compile): Add declaration.
12493 * complaints.c (_initialize_complaints): Add declaration.
12494 * completer.c (_initialize_completer): Add declaration.
12495 * copying.c (_initialize_copying): Add declaration.
12496 * corefile.c (_initialize_core): Add declaration.
12497 * corelow.c (_initialize_corelow): Add declaration.
12498 * cp-abi.c (_initialize_cp_abi): Add declaration.
12499 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12500 * cp-support.c (_initialize_cp_support): Add declaration.
12501 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12502 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12503 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12504 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12505 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12506 * ctfread.c (_initialize_ctfread): Add declaration.
12507 * d-lang.c (_initialize_d_language): Add declaration.
12508 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12509 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12510 * dbxread.c (_initialize_dbxread): Add declaration.
12511 * dcache.c (_initialize_dcache): Add declaration.
12512 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12513 * disasm.c (_initialize_disasm): Add declaration.
12514 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12515 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12516 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12517 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12518 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12519 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12520 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12521 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12522 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12523 * elfread.c (_initialize_elfread): Add declaration.
12524 * exec.c (_initialize_exec): Add declaration.
12525 * extension.c (_initialize_extension): Add declaration.
12526 * f-lang.c (_initialize_f_language): Add declaration.
12527 * f-valprint.c (_initialize_f_valprint): Add declaration.
12528 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12529 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12530 * filesystem.c (_initialize_filesystem): Add declaration.
12531 * findcmd.c (_initialize_mem_search): Add declaration.
12532 * findvar.c (_initialize_findvar): Add declaration.
12533 * fork-child.c (_initialize_fork_child): Add declaration.
12534 * frame-base.c (_initialize_frame_base): Add declaration.
12535 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12536 * frame.c (_initialize_frame): Add declaration.
12537 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12538 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12539 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12540 * gcore.c (_initialize_gcore): Add declaration.
12541 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12542 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12543 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12544 * gdbarch.c (_initialize_gdbarch): Add declaration.
12545 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12546 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12547 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12548 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12549 * go-lang.c (_initialize_go_language): Add declaration.
12550 * go32-nat.c (_initialize_go32_nat): Add declaration.
12551 * guile/guile.c (_initialize_guile): Add declaration.
12552 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12553 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12554 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12555 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12556 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12557 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12558 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12559 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12560 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12561 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12562 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12563 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12564 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12565 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12566 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12567 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12568 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12569 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12570 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12571 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12572 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12573 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12574 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12575 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12576 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12577 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12578 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12579 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12580 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12581 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12582 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12583 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12584 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12585 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12586 * infcall.c (_initialize_infcall): Add declaration.
12587 * infcmd.c (_initialize_infcmd): Add declaration.
12588 * inflow.c (_initialize_inflow): Add declaration.
12589 * infrun.c (_initialize_infrun): Add declaration.
12590 * interps.c (_initialize_interpreter): Add declaration.
12591 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12592 * jit.c (_initialize_jit): Add declaration.
12593 * language.c (_initialize_language): Add declaration.
12594 * linux-fork.c (_initialize_linux_fork): Add declaration.
12595 * linux-nat.c (_initialize_linux_nat): Add declaration.
12596 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12597 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12598 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12599 * m2-lang.c (_initialize_m2_language): Add declaration.
12600 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12601 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12602 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12603 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12604 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12605 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12606 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12607 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12608 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12609 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12610 * machoread.c (_initialize_machoread): Add declaration.
12611 * macrocmd.c (_initialize_macrocmd): Add declaration.
12612 * macroscope.c (_initialize_macroscope): Add declaration.
12613 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12614 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12615 * maint.c (_initialize_maint_cmds): Add declaration.
12616 * mdebugread.c (_initialize_mdebugread): Add declaration.
12617 * memattr.c (_initialize_mem): Add declaration.
12618 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12619 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12620 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12621 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12622 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12623 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12624 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12625 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12626 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12627 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12628 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12629 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12630 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12631 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12632 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12633 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12634 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12635 * mipsread.c (_initialize_mipsread): Add declaration.
12636 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12637 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12638 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12639 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12640 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12641 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12642 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12643 * nto-procfs.c (_initialize_procfs): Add declaration.
12644 * objc-lang.c (_initialize_objc_language): Add declaration.
12645 * observable.c (_initialize_observer): Add declaration.
12646 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12647 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12648 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12649 * osabi.c (_initialize_gdb_osabi): Add declaration.
12650 * osdata.c (_initialize_osdata): Add declaration.
12651 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12652 * parse.c (_initialize_parse): Add declaration.
12653 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12654 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12655 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12656 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12657 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12658 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12659 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12660 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12661 * printcmd.c (_initialize_printcmd): Add declaration.
12662 * probe.c (_initialize_probe): Add declaration.
12663 * proc-api.c (_initialize_proc_api): Add declaration.
12664 * proc-events.c (_initialize_proc_events): Add declaration.
12665 * proc-service.c (_initialize_proc_service): Add declaration.
12666 * procfs.c (_initialize_procfs): Add declaration.
12667 * producer.c (_initialize_producer): Add declaration.
12668 * psymtab.c (_initialize_psymtab): Add declaration.
12669 * python/python.c (_initialize_python): Add declaration.
12670 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12671 * record-btrace.c (_initialize_record_btrace): Add declaration.
12672 * record-full.c (_initialize_record_full): Add declaration.
12673 * record.c (_initialize_record): Add declaration.
12674 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12675 * regcache.c (_initialize_regcache): Add declaration.
12676 * reggroups.c (_initialize_reggroup): Add declaration.
12677 * remote-notif.c (_initialize_notif): Add declaration.
12678 * remote-sim.c (_initialize_remote_sim): Add declaration.
12679 * remote.c (_initialize_remote): Add declaration.
12680 * reverse.c (_initialize_reverse): Add declaration.
12681 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12682 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12683 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12684 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12685 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12686 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12687 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12688 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12689 Add declaration.
12690 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12691 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12692 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12693 * rust-exp.y (_initialize_rust_exp): Add declaration.
12694 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12695 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12696 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12697 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12698 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12699 * score-tdep.c (_initialize_score_tdep): Add declaration.
12700 * ser-go32.c (_initialize_ser_dos): Add declaration.
12701 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12702 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12703 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12704 * ser-uds.c (_initialize_ser_socket): Add declaration.
12705 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12706 * serial.c (_initialize_serial): Add declaration.
12707 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12708 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12709 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12710 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12711 * skip.c (_initialize_step_skip): Add declaration.
12712 * sol-thread.c (_initialize_sol_thread): Add declaration.
12713 * solib-aix.c (_initialize_solib_aix): Add declaration.
12714 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12715 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12716 * solib-frv.c (_initialize_frv_solib): Add declaration.
12717 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12718 * solib-target.c (_initialize_solib_target): Add declaration.
12719 * solib.c (_initialize_solib): Add declaration.
12720 * source-cache.c (_initialize_source_cache): Add declaration.
12721 * source.c (_initialize_source): Add declaration.
12722 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12723 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12724 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12725 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12726 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12727 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12728 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12729 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12730 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12731 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12732 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12733 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12734 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12735 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12736 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12737 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12738 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12739 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12740 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12741 * stabsread.c (_initialize_stabsread): Add declaration.
12742 * stack.c (_initialize_stack): Add declaration.
12743 * stap-probe.c (_initialize_stap_probe): Add declaration.
12744 * std-regs.c (_initialize_frame_reg): Add declaration.
12745 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12746 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12747 * symfile.c (_initialize_symfile): Add declaration.
12748 * symmisc.c (_initialize_symmisc): Add declaration.
12749 * symtab.c (_initialize_symtab): Add declaration.
12750 * target.c (_initialize_target): Add declaration.
12751 * target-connection.c (_initialize_target_connection): Add
12752 declaration.
12753 * target-dcache.c (_initialize_target_dcache): Add declaration.
12754 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12755 * thread.c (_initialize_thread): Add declaration.
12756 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12757 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12758 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12759 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12760 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12761 * tracectf.c (_initialize_ctf): Add declaration.
12762 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12763 * tracefile.c (_initialize_tracefile): Add declaration.
12764 * tracepoint.c (_initialize_tracepoint): Add declaration.
12765 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12766 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12767 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12768 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12769 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12770 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12771 * tui/tui.c (_initialize_tui): Add declaration.
12772 * typeprint.c (_initialize_typeprint): Add declaration.
12773 * ui-style.c (_initialize_ui_style): Add declaration.
12774 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12775 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12776 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12777 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12778 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12779 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12780 * unittests/filtered_iterator-selftests.c
12781 (_initialize_filtered_iterator_selftests): Add declaration.
12782 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12783 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12784 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12785 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12786 * unittests/main-thread-selftests.c
12787 (_initialize_main_thread_selftests): Add declaration.
12788 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12789 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12790 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12791 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12792 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12793 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12794 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12795 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12796 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12797 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12798 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12799 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12800 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12801 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12802 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12803 declaration.
12804 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12805 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12806 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12807 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12808 * user-regs.c (_initialize_user_regs): Add declaration.
12809 * utils.c (_initialize_utils): Add declaration.
12810 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12811 * valops.c (_initialize_valops): Add declaration.
12812 * valprint.c (_initialize_valprint): Add declaration.
12813 * value.c (_initialize_values): Add declaration.
12814 * varobj.c (_initialize_varobj): Add declaration.
12815 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12816 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12817 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12818 * windows-nat.c (_initialize_windows_nat): Add declaration.
12819 (_initialize_check_for_gdb_ini): Add declaration.
12820 (_initialize_loadable): Add declaration.
12821 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12822 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12823 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12824 * xcoffread.c (_initialize_xcoffread): Add declaration.
12825 * xml-support.c (_initialize_xml_support): Add declaration.
12826 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12827 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12828 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12829 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12830
e2de1eec
SM
128312020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12832
12833 * regformats/regdat.sh: Generate declaration for init function.
12834
e0037b4c
SM
128352020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12836
12837 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12838 up.
12839 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12840 close_one_inferior>: New methods.
12841 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12842 pass down target to find_inferior_pid.
12843 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12844 Pass down target to find_inferior_ptid.
12845 (gdbsim_target::create_inferior): Pass down target to
12846 add_thread_silent.
12847 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12848 target down to find_inferior_ptid and switch_to_thread.
12849 (gdbsim_target::close): Update to call close_one_inferior.
12850 (struct resume_data): Remove.
12851 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12852 directly, rather than through a void pointer.
12853 (gdbsim_target::resume): Update to call resume_one_inferior.
12854
58920b5b
SM
128552020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12856
12857 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12858
4ec89149
PA
128592020-01-12 Pedro Alves <palves@redhat.com>
12860
12861 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12862 directly for the current inferior instead of
12863 discard_all_inferiors.
12864 (discard_all_inferiors): Delete.
12865
7c392d1d
TT
128662020-01-11 Tom Tromey <tom@tromey.com>
12867
12868 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12869 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12870 deprecated_safe_get_selected_frame.
12871
d9ebdab7
TBA
128722020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12873
12874 * inferior.c (print_inferior): Switch inferior before printing it.
12875
f3c469b9
PA
128762020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12877 Pedro Alves <palves@redhat.com>
12878
12879 * progspace-and-thread.c (switch_to_program_space_and_thread):
12880 Assert there's an inferior for PSPACE. Use
12881 switch_to_inferior_no_thread to switch the inferior too.
12882 * progspace.c (program_space::~program_space): Call
12883 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12884 (program_space::free_all_objfiles): Don't call clear_symtab_users
12885 here.
12886 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12887
65c574f6
PA
128882020-01-10 Pedro Alves <palves@redhat.com>
12889
12890 * NEWS: Mention multi-target debugging, "info connections", and
12891 "add-inferior -no-connection".
12892
2f4fcf00
PA
128932020-01-10 Pedro Alves <palves@redhat.com>
12894
12895 * infrun.c: Include "target-connection.h".
12896 (check_multi_target_resumption): New.
12897 (proceed): Call it.
12898 * target-connection.c (make_target_connection_string): Make
12899 extern.
12900 * target-connection.h (make_target_connection_string): Declare.
12901
121b3efd
PA
129022020-01-10 Pedro Alves <palves@redhat.com>
12903
12904 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12905 * inferior.c (uiout_field_connection): New function.
12906 (print_inferior): Add new "connection-id" column.
12907 (add_inferior_command): Show connection number/string of added
12908 inferior.
12909 * process-stratum-target.h
12910 (process_stratum_target::connection_string): New virtual method.
12911 (process_stratum_target::connection_number): New field.
12912 * remote.c (remote_target::connection_string): New override.
12913 * target-connection.c: New file.
12914 * target-connection.h: New file.
12915 * target.c (decref_target): Remove process_stratum targets from
12916 the connection list.
12917 (target_stack::push): Add process_stratum targets to the
12918 connection list.
12919
4f837581
PA
129202020-01-10 Pedro Alves <palves@redhat.com>
12921
12922 Revert:
12923 2016-04-12 Pedro Alves <palves@redhat.com>
12924 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12925 Remove references to name.
12926 * serial.h (struct serial) <name>: Delete.
12927
f4ec508e
PA
129282020-01-10 Pedro Alves <palves@redhat.com>
12929
12930 * gdbarch-selftests.c (register_to_value_test): Remove "target
12931 already pushed" check.
12932
5b6d1e4f
PA
129332020-01-10 Pedro Alves <palves@redhat.com>
12934 John Baldwin <jhb@FreeBSD.org>
12935
12936 * aarch64-linux-nat.c
12937 (aarch64_linux_nat_target::thread_architecture): Adjust.
12938 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12939 (task_command_1): Likewise.
12940 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12941 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12942 (aix_thread_target::store_registers)
12943 (aix_thread_target::thread_alive): Adjust.
12944 * amd64-fbsd-tdep.c: Include "inferior.h".
12945 (amd64fbsd_get_thread_local_address): Pass down target.
12946 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12947 thread's gdbarch instead of target_gdbarch.
12948 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12949 get_last_target_status.
12950 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12951 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12952 inferiors.
12953 (update_inserted_breakpoint_locations): Skip if inferiors with no
12954 execution.
12955 (update_global_location_list): When handling moribund locations,
12956 find representative inferior for location's pspace, and use thread
12957 count of its process_stratum target.
12958 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12959 * bsd-uthread.c (bsd_uthread_target::wait): Use
12960 as_process_stratum_target and adjust thread_change_ptid and
12961 add_thread calls.
12962 (bsd_uthread_target::update_thread_list): Use
12963 as_process_stratum_target and adjust find_thread_ptid,
12964 thread_change_ptid and add_thread calls.
12965 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12966 find_thread_ptid call.
12967 * corelow.c (add_to_thread_list): Adjust add_thread call.
12968 (core_target_open): Adjust add_thread_silent and thread_count
12969 calls.
12970 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12971 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12972 * event-top.c (async_disconnect): Pop targets from all inferiors.
12973 * exec.c (add_target_sections): Push exec target on all inferiors
12974 sharing the program space.
12975 (remove_target_sections): Remove the exec target from all
12976 inferiors sharing the program space.
12977 (exec_on_vfork): New.
12978 * exec.h (exec_on_vfork): Declare.
12979 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12980 Pass it down.
12981 (fbsd_nat_target::update_thread_list): Adjust.
12982 (fbsd_nat_target::resume): Adjust.
12983 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12984 down.
12985 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12986 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12987 get_thread_arch_regcache call.
12988 * fork-child.c (gdb_startup_inferior): Pass target down to
12989 startup_inferior and set_executing.
12990 * gdbthread.h (struct process_stratum_target): Forward declare.
12991 (add_thread, add_thread_silent, add_thread_with_info)
12992 (in_thread_list): Add process_stratum_target parameter.
12993 (find_thread_ptid(inferior*, ptid_t)): New overload.
12994 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12995 parameter.
12996 (all_threads()): Delete overload.
12997 (all_threads, all_non_exited_threads): Add process_stratum_target
12998 parameter.
12999 (all_threads_safe): Use brace initialization.
13000 (thread_count): Add process_stratum_target parameter.
13001 (set_resumed, set_running, set_stop_requested, set_executing)
13002 (threads_are_executing, finish_thread_state): Add
13003 process_stratum_target parameter.
13004 (switch_to_thread): Use is_current_thread.
13005 * i386-fbsd-tdep.c: Include "inferior.h".
13006 (i386fbsd_get_thread_local_address): Pass down target.
13007 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13008 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13009 have_inferiors check.
13010 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13011 (inf_ptrace_target::attach): Adjust.
13012 * infcall.c (run_inferior_call): Adjust.
13013 * infcmd.c (run_command_1): Pass target to
13014 scoped_finish_thread_state.
13015 (proceed_thread_callback): Skip inferiors with no execution.
13016 (continue_command): Rename 'all_threads' local to avoid hiding
13017 'all_threads' function. Adjust get_last_target_status call.
13018 (prepare_one_step): Adjust set_running call.
13019 (signal_command): Use user_visible_resume_target. Compare thread
13020 pointers instead of inferior_ptid.
13021 (info_program_command): Adjust to pass down target.
13022 (attach_command): Mark target's 'thread_executing' flag.
13023 (stop_current_target_threads_ns): New, factored out from ...
13024 (interrupt_target_1): ... this. Switch inferior before making
13025 target calls.
13026 * inferior-iter.h
13027 (struct all_inferiors_iterator, struct all_inferiors_range)
13028 (struct all_inferiors_safe_range)
13029 (struct all_non_exited_inferiors_range): Filter on
13030 process_stratum_target too. Remove explicit.
13031 * inferior.c (inferior::inferior): Push dummy target on target
13032 stack.
13033 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13034 Add process_stratum_target parameter, and pass it down.
13035 (have_live_inferiors): Adjust.
13036 (switch_to_inferior_and_push_target): New.
13037 (add_inferior_command, clone_inferior_command): Handle
13038 "-no-connection" parameter. Use
13039 switch_to_inferior_and_push_target.
13040 (_initialize_inferior): Mention "-no-connection" option in
13041 the help of "add-inferior" and "clone-inferior" commands.
13042 * inferior.h: Include "process-stratum-target.h".
13043 (interrupt_target_1): Use bool.
13044 (struct inferior) <push_target, unpush_target, target_is_pushed,
13045 find_target_beneath, top_target, process_target, target_at,
13046 m_stack>: New.
13047 (discard_all_inferiors): Delete.
13048 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13049 (all_inferiors, all_non_exited_inferiors): Add
13050 process_stratum_target parameter.
13051 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13052 (target_last_proc_target): New global.
13053 (follow_fork_inferior): Push target on new inferior. Pass target
13054 to add_thread_silent. Call exec_on_vfork. Handle target's
13055 reference count.
13056 (follow_fork): Adjust get_last_target_status call. Also consider
13057 target.
13058 (follow_exec): Push target on new inferior.
13059 (struct execution_control_state) <target>: New field.
13060 (user_visible_resume_target): New.
13061 (do_target_resume): Call target_async.
13062 (resume_1): Set target's threads_executing flag. Consider resume
13063 target.
13064 (commit_resume_all_targets): New.
13065 (proceed): Also consider resume target. Skip threads of inferiors
13066 with no execution. Commit resumtion in all targets.
13067 (start_remote): Pass current inferior to wait_for_inferior.
13068 (infrun_thread_stop_requested): Consider target as well. Pass
13069 thread_info pointer to clear_inline_frame_state instead of ptid.
13070 (infrun_thread_thread_exit): Consider target as well.
13071 (random_pending_event_thread): New inferior parameter. Use it.
13072 (do_target_wait): Rename to ...
13073 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13074 down.
13075 (threads_are_resumed_pending_p, do_target_wait): New.
13076 (prepare_for_detach): Adjust calls.
13077 (wait_for_inferior): New inferior parameter. Handle it. Use
13078 do_target_wait_1 instead of do_target_wait.
13079 (fetch_inferior_event): Adjust. Switch to representative
13080 inferior. Pass target down.
13081 (set_last_target_status): Add process_stratum_target parameter.
13082 Save target in global.
13083 (get_last_target_status): Add process_stratum_target parameter and
13084 handle it.
13085 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13086 (context_switch): Check inferior_ptid == null_ptid before calling
13087 inferior_thread().
13088 (get_inferior_stop_soon): Pass down target.
13089 (wait_one): Rename to ...
13090 (poll_one_curr_target): ... this.
13091 (struct wait_one_event): New.
13092 (wait_one): New.
13093 (stop_all_threads): Adjust.
13094 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13095 event's target.
13096 (switch_back_to_stepped_thread): Also consider target.
13097 (print_stop_event): Update.
13098 (normal_stop): Update. Also consider the resume target.
13099 * infrun.h (wait_for_inferior): Remove declaration.
13100 (user_visible_resume_target): New declaration.
13101 (get_last_target_status, set_last_target_status): New
13102 process_stratum_target parameter.
13103 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13104 process_stratum_target parameter, and use it.
13105 (clear_inline_frame_state (thread_info*)): New.
13106 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13107 process_stratum_target parameter.
13108 (clear_inline_frame_state (thread_info*)): Declare.
13109 * linux-fork.c (delete_checkpoint_command): Pass target down to
13110 find_thread_ptid.
13111 (checkpoint_command): Adjust.
13112 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13113 instead of just tweaking inferior_ptid.
13114 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13115 (exit_lwp): Pass target down to find_thread_ptid.
13116 (attach_proc_task_lwp_callback): Pass target down to
13117 add_thread/set_running/set_executing.
13118 (linux_nat_target::attach): Pass target down to
13119 thread_change_ptid.
13120 (get_detach_signal): Pass target down to find_thread_ptid.
13121 Consider last target status's target.
13122 (linux_resume_one_lwp_throw, resume_lwp)
13123 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13124 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13125 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13126 (linux_nat_target::async_wait_fd): New.
13127 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13128 target down.
13129 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13130 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13131 * linux-thread-db.c (struct thread_db_info::process_target): New
13132 field.
13133 (add_thread_db_info): Save target.
13134 (get_thread_db_info): New process_stratum_target parameter. Also
13135 match target.
13136 (delete_thread_db_info): New process_stratum_target parameter.
13137 Also match target.
13138 (thread_from_lwp): Adjust to pass down target.
13139 (thread_db_notice_clone): Pass down target.
13140 (check_thread_db_callback): Pass down target.
13141 (try_thread_db_load_1): Always push the thread_db target.
13142 (try_thread_db_load, record_thread): Pass target down.
13143 (thread_db_target::detach): Pass target down. Always unpush the
13144 thread_db target.
13145 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13146 target down. Always unpush the thread_db target.
13147 (find_new_threads_callback, thread_db_find_new_threads_2)
13148 (thread_db_target::update_thread_list): Pass target down.
13149 (thread_db_target::pid_to_str): Pass current inferior down.
13150 (thread_db_target::get_thread_local_address): Pass target down.
13151 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13152 target down.
13153 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13154 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13155 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13156 (procfs_init_inferior): Rename to ...
13157 (procfs_target::procfs_init_inferior): ... this and adjust.
13158 (procfs_target::create_inferior, procfs_notice_thread)
13159 (procfs_do_thread_registers): Adjust.
13160 * ppc-fbsd-tdep.c: Include "inferior.h".
13161 (ppcfbsd_get_thread_local_address): Pass down target.
13162 * proc-service.c (ps_xfer_memory): Switch current inferior and
13163 program space as well.
13164 (get_ps_regcache): Pass target down.
13165 * process-stratum-target.c
13166 (process_stratum_target::thread_address_space)
13167 (process_stratum_target::thread_architecture): Pass target down.
13168 * process-stratum-target.h
13169 (process_stratum_target::threads_executing): New field.
13170 (as_process_stratum_target): New.
13171 * ravenscar-thread.c
13172 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13173 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13174 down.
13175 * record-btrace.c (record_btrace_target::info_record): Adjust.
13176 (record_btrace_target::record_method)
13177 (record_btrace_target::record_is_replaying)
13178 (record_btrace_target::fetch_registers)
13179 (get_thread_current_frame_id, record_btrace_target::resume)
13180 (record_btrace_target::wait, record_btrace_target::stop): Pass
13181 target down.
13182 * record-full.c (record_full_wait_1): Switch to event thread.
13183 Pass target down.
13184 * regcache.c (regcache::regcache)
13185 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13186 process_stratum_target parameter and handle it.
13187 (current_thread_target): New global.
13188 (get_thread_regcache): Add process_stratum_target parameter and
13189 handle it. Switch inferior before calling target method.
13190 (get_thread_regcache): Pass target down.
13191 (get_thread_regcache_for_ptid): Pass target down.
13192 (registers_changed_ptid): Add process_stratum_target parameter and
13193 handle it.
13194 (registers_changed_thread, registers_changed): Pass target down.
13195 (test_get_thread_arch_aspace_regcache): New.
13196 (current_regcache_test): Define a couple local test_target_ops
13197 instances and use them for testing.
13198 (readwrite_regcache): Pass process_stratum_target parameter.
13199 (cooked_read_test, cooked_write_test): Pass mock_target down.
13200 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13201 (get_thread_arch_aspace_regcache): Add process_stratum_target
13202 parameter.
13203 (regcache::target): New method.
13204 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13205 (regcache::registers_changed_ptid): Add process_stratum_target
13206 parameter.
13207 (regcache::m_target): New field.
13208 (registers_changed_ptid): Add process_stratum_target parameter.
13209 * remote.c (remote_state::supports_vCont_probed): New field.
13210 (remote_target::async_wait_fd): New method.
13211 (remote_unpush_and_throw): Add remote_target parameter.
13212 (get_current_remote_target): Adjust.
13213 (remote_target::remote_add_inferior): Push target.
13214 (remote_target::remote_add_thread)
13215 (remote_target::remote_notice_new_inferior)
13216 (get_remote_thread_info): Pass target down.
13217 (remote_target::update_thread_list): Skip threads of inferiors
13218 bound to other targets. (remote_target::close): Don't discard
13219 inferiors. (remote_target::add_current_inferior_and_thread)
13220 (remote_target::process_initial_stop_replies)
13221 (remote_target::start_remote)
13222 (remote_target::remote_serial_quit_handler): Pass down target.
13223 (remote_target::remote_unpush_target): New remote_target
13224 parameter. Unpush the target from all inferiors.
13225 (remote_target::remote_unpush_and_throw): New remote_target
13226 parameter. Pass it down.
13227 (remote_target::open_1): Check whether the current inferior has
13228 execution instead of checking whether any inferior is live. Pass
13229 target down.
13230 (remote_target::remote_detach_1): Pass down target. Use
13231 remote_unpush_target.
13232 (extended_remote_target::attach): Pass down target.
13233 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13234 (remote_target::append_resumption): Pass down target.
13235 (remote_target::append_pending_thread_resumptions)
13236 (remote_target::remote_resume_with_hc, remote_target::resume)
13237 (remote_target::commit_resume): Pass down target.
13238 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13239 (remote_target::interrupt_query)
13240 (remote_target::remove_new_fork_children)
13241 (remote_target::check_pending_events_prevent_wildcard_vcont)
13242 (remote_target::remote_parse_stop_reply)
13243 (remote_target::process_stop_reply): Pass down target.
13244 (first_remote_resumed_thread): New remote_target parameter. Pass
13245 it down.
13246 (remote_target::wait_as): Pass down target.
13247 (unpush_and_perror): New remote_target parameter. Pass it down.
13248 (remote_target::readchar, remote_target::remote_serial_write)
13249 (remote_target::getpkt_or_notif_sane_1)
13250 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13251 down target.
13252 (remote_target::mourn_inferior): Pass down target. Use
13253 remote_unpush_target.
13254 (remote_target::core_of_thread)
13255 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13256 (remote_target::pid_to_exec_file)
13257 (remote_target::thread_handle_to_thread_info): Pass down target.
13258 (remote_target::async_wait_fd): New.
13259 * riscv-fbsd-tdep.c: Include "inferior.h".
13260 (riscv_fbsd_get_thread_local_address): Pass down target.
13261 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13262 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13263 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13264 Adjust.
13265 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13266 * solib-svr4.c (enable_break): Pass down target.
13267 * spu-multiarch.c (parse_spufs_run): Pass down target.
13268 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13269 * target-delegates.c: Regenerate.
13270 * target.c (g_target_stack): Delete.
13271 (current_top_target): Return the current inferior's top target.
13272 (target_has_execution_1): Refer to the passed-in inferior's top
13273 target.
13274 (target_supports_terminal_ours): Check whether the initial
13275 inferior was already created.
13276 (decref_target): New.
13277 (target_stack::push): Incref/decref the target.
13278 (push_target, push_target, unpush_target): Adjust.
13279 (target_stack::unpush): Defref target.
13280 (target_is_pushed): Return bool. Adjust to refer to the current
13281 inferior's target stack.
13282 (dispose_inferior): Delete, and inline parts ...
13283 (target_preopen): ... here. Only dispose of the current inferior.
13284 (target_detach): Hold strong target reference while detaching.
13285 Pass target down.
13286 (target_thread_name): Add assertion.
13287 (target_resume): Pass down target.
13288 (target_ops::beneath, find_target_at): Adjust to refer to the
13289 current inferior's target stack.
13290 (get_dummy_target): New.
13291 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13292 has a thread running.
13293 (initialize_targets): Rename to ...
13294 (_initialize_target): ... this.
13295 * target.h: Include "gdbsupport/refcounted-object.h".
13296 (struct target_ops): Inherit refcounted_object.
13297 (target_ops::shortname, target_ops::longname): Make const.
13298 (target_ops::async_wait_fd): New method.
13299 (decref_target): Declare.
13300 (struct target_ops_ref_policy): New.
13301 (target_ops_ref): New typedef.
13302 (get_dummy_target): Declare function.
13303 (target_is_pushed): Return bool.
13304 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13305 (all_matching_threads_iterator::all_matching_threads_iterator):
13306 Handle filter target.
13307 * thread-iter.h (struct all_matching_threads_iterator, struct
13308 all_matching_threads_range, class all_non_exited_threads_range):
13309 Filter by target too. Remove explicit.
13310 * thread.c (threads_executing): Delete.
13311 (inferior_thread): Pass down current inferior.
13312 (clear_thread_inferior_resources): Pass down thread pointer
13313 instead of ptid_t.
13314 (add_thread_silent, add_thread_with_info, add_thread): Add
13315 process_stratum_target parameter. Use it for thread and inferior
13316 searches.
13317 (is_current_thread): New.
13318 (thread_info::deletable): Use it.
13319 (find_thread_ptid, thread_count, in_thread_list)
13320 (thread_change_ptid, set_resumed, set_running): New
13321 process_stratum_target parameter. Pass it down.
13322 (set_executing): New process_stratum_target parameter. Pass it
13323 down. Adjust reference to 'threads_executing'.
13324 (threads_are_executing): New process_stratum_target parameter.
13325 Adjust reference to 'threads_executing'.
13326 (set_stop_requested, finish_thread_state): New
13327 process_stratum_target parameter. Pass it down.
13328 (switch_to_thread): Also match inferior.
13329 (switch_to_thread): New process_stratum_target parameter. Pass it
13330 down.
13331 (update_threads_executing): Reimplement.
13332 * top.c (quit_force): Pop targets from all inferior.
13333 (gdb_init): Don't call initialize_targets.
13334 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13335 Declare.
13336 (windows_add_thread, windows_delete_thread): Adjust.
13337 (get_windows_debug_event): Rename to ...
13338 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13339 * tracefile-tfile.c (tfile_target_open): Pass down target.
13340 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13341 Forward declare.
13342 (switch_to_thread): Add process_stratum_target parameter.
13343 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13344 parameter. Use it.
13345 (mi_on_resume): Pass target down.
13346 * nat/fork-inferior.c (startup_inferior): Add
13347 process_stratum_target parameter. Pass it down.
13348 * nat/fork-inferior.h (startup_inferior): Add
13349 process_stratum_target parameter.
13350 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13351
75c6c844
PA
133522020-01-10 Pedro Alves <palves@redhat.com>
13353
13354 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13355 directly. Instead find the first thread in the thread list and
13356 use switch_to_thread.
13357
78f2c40a
PA
133582020-01-10 Pedro Alves <palves@redhat.com>
13359
13360 * remote.c (remote_target::remote_add_inferior): Don't bind a
13361 process to the current inferior if the current inferior is already
13362 bound to a process.
13363
e7af6c70
TBA
133642020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13365 Pedro Alves <palves@redhat.com>
13366
13367 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13368 If no process is specified, return null_ptid instead of
13369 inferior_ptid.
13370 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13371 TARGET_WAITKIND_SIGNALLED with no pid.
13372
31ba933e
PA
133732020-01-10 Pedro Alves <palves@redhat.com>
13374
13375 * remote.c (first_remote_resumed_thread): New.
13376 (remote_target::wait_as): Use it as default event_ptid instead of
13377 inferior_ptid.
13378
735fc2ca
PA
133792020-01-10 Pedro Alves <palves@redhat.com>
13380
13381 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13382
c17e02e1
PA
133832020-01-10 Pedro Alves <palves@redhat.com>
13384
13385 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13386 not -1.
13387
ab1ddbcf
PA
133882020-01-10 Pedro Alves <palves@redhat.com>
13389
13390 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13391 ptid to get_last_target_status.
13392 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13393 ptid to get_last_target_status.
13394 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13395 get_last_target_status.
13396 (info_program_command): Don't pass a target_waitstatus to
13397 get_last_target_status.
13398 * infrun.c (init_wait_for_inferior): Use
13399 nullify_last_target_wait_ptid.
13400 (get_last_target_status): Handle nullptr arguments.
13401 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13402 (print_stop_event): Don't pass a ptid to get_last_target_status.
13403 (normal_stop): Don't pass a ptid to get_last_target_status.
13404 * infrun.h (get_last_target_status, set_last_target_status): Move
13405 comments here and update.
13406 (nullify_last_target_wait_ptid): Declare.
13407 * linux-fork.c (fork_load_infrun_state): Remove local extern
13408 declaration of nullify_last_target_wait_ptid.
13409 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13410 to get_last_target_status.
13411
f3f8ece4
PA
134122020-01-10 Pedro Alves <palves@redhat.com>
13413
13414 * gdbthread.h (scoped_restore_current_thread)
13415 <dont_restore, restore, m_dont_restore>: Declare.
13416 * thread.c (thread_alive): Add assertion. Return bool.
13417 (switch_to_thread_if_alive): New.
13418 (prune_threads): Switch inferior/thread.
13419 (print_thread_info_1): Switch thread before calling target methods.
13420 (scoped_restore_current_thread::restore): New, factored out from
13421 ...
13422 (scoped_restore_current_thread::~scoped_restore_current_thread):
13423 ... this.
13424 (scoped_restore_current_thread::scoped_restore_current_thread):
13425 Add assertion.
13426 (thread_apply_all_command, thread_select): Use
13427 switch_to_thread_if_alive.
13428 * infrun.c (proceed, restart_threads, handle_signal_stop)
13429 (switch_back_to_stepped_thread): Switch current thread before
13430 calling target methods.
13431
db2d40f7
PA
134322020-01-10 Pedro Alves <palves@redhat.com>
13433
13434 * inferior.c (switch_to_inferior_no_thread): New function,
13435 factored out from ...
13436 (inferior_command): ... here.
13437 * inferior.h (switch_to_inferior_no_thread): Declare.
13438 * mi/mi-main.c (run_one_inferior): Use
13439 switch_to_inferior_no_thread.
13440
bd420a2d
PA
134412020-01-10 Pedro Alves <palves@redhat.com>
13442
13443 * infcmd.c (kill_command): Remove dead code.
13444
ddf5db90
PA
134452020-01-10 Pedro Alves <palves@redhat.com>
13446
13447 * remote.c (remote_target::mourn_inferior): No longer check
13448 whether the target is running.
13449
5018ce90
PA
134502020-01-10 Pedro Alves <palves@redhat.com>
13451
13452 * corelow.c (core_target::has_execution): Change parameter type to
13453 inferior pointer.
13454 * inferior.c (number_of_live_inferiors): Use
13455 inferior::has_execution instead of target_has_execution_1.
13456 * inferior.h (inferior::has_execution): New.
13457 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13458 inferior::has_execution instead of target_has_execution_1.
13459 * process-stratum-target.c
13460 (process_stratum_target::has_execution): Change parameter type to
13461 inferior pointer. Check the inferior's PID instead of
13462 inferior_ptid.
13463 * process-stratum-target.h
13464 (process_stratum_target::has_execution): Change parameter type to
13465 inferior pointer.
13466 * record-full.c (record_full_core_target::has_execution): Change
13467 parameter type to inferior pointer.
13468 * target.c (target_has_execution_1): Change parameter type to
13469 inferior pointer.
13470 (target_has_execution_current): Adjust.
13471 * target.h (target_ops::has_execution): Change parameter type to
13472 inferior pointer.
13473 (target_has_execution_1): Change parameter type to inferior
13474 pointer. Change return type to bool.
13475 * tracefile.h (tracefile_target::has_execution): Change parameter
13476 type to inferior pointer.
13477
74375d18
PA
134782020-01-10 Pedro Alves <palves@redhat.com>
13479
13480 * exceptions.c (print_flush): Remove current_top_target() check.
13481
acdf84a6
PA
134822020-01-10 Pedro Alves <palves@redhat.com>
13483
13484 * remote.c (show_remote_exec_file): Show the current inferior's
13485 exec-file instead of the command variable's value.
13486
ec506636
PA
134872020-01-10 Pedro Alves <palves@redhat.com>
13488
13489 * record-full.c (record_full_resume_ptid): New global.
13490 (record_full_target::resume): Set it.
13491 (record_full_wait_1): Use record_full_resume_ptid instead of
13492 inferior_ptid.
13493
873657b9
PA
134942020-01-10 Pedro Alves <palves@redhat.com>
13495
13496 * gdbthread.h (scoped_restore_current_thread)
13497 <dont_restore, restore, m_dont_restore>: Declare.
13498 * thread.c (thread_alive): Add assertion. Return bool.
13499 (switch_to_thread_if_alive): New.
13500 (prune_threads): Switch inferior/thread.
13501 (print_thread_info_1): Switch thread before calling target methods.
13502 (scoped_restore_current_thread::restore): New, factored out from
13503 ...
13504 (scoped_restore_current_thread::~scoped_restore_current_thread):
13505 ... this.
13506 (scoped_restore_current_thread::scoped_restore_current_thread):
13507 Add assertion.
13508 (thread_apply_all_command, thread_select): Use
13509 switch_to_thread_if_alive.
13510
7f0ae84c
GB
135112020-01-10 George Barrett <bob@bob131.so>
13512
13513 * stap-probe.c (stap_modify_semaphore): Don't check for null
13514 semaphores.
13515 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13516 for null semaphores.
13517
f5a7c406
AB
135182020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13519
13520 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13521 all source windows, and maintain horizontal scroll status while
13522 doing so.
13523
9ae6bf64
TT
135242020-01-09 Tom Tromey <tom@tromey.com>
13525
13526 PR tui/18932:
13527 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13528 update_source_window, not print_source_lines.
13529
b2efe70c
AB
135302020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13531
13532 * tui/tui.c (tui_enable): Register tui hooks after calling
13533 tui_display_main.
13534
5f23a082
CB
135352020-01-09 Christian Biesinger <cbiesinger@google.com>
13536
13537 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13538
3061113b
SM
135392020-01-08 Simon Marchi <simon.marchi@efficios.com>
13540
13541 * thread.c (print_thread_info_1): Fix indentation.
13542
57d75002
CB
135432020-01-09 Christian Biesinger <cbiesinger@google.com>
13544
13545 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13546 unique_xmalloc_ptr outside the if to always free the demangled name.
13547
6a053cb1
TT
135482020-01-08 Tom Tromey <tromey@adacore.com>
13549
13550 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13551 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13552 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13553 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13554 Remove.
13555 (section_offsets): New typedef.
13556 * symtab.c (fixup_section, get_msymbol_address): Update.
13557 * symmisc.c (dump_msymbols): Update.
13558 * symfile.h (relative_addr_info_to_section_offsets)
13559 (symfile_map_offsets_to_segments): Update.
13560 * symfile.c (build_section_addr_info_from_objfile)
13561 (init_objfile_sect_indices): Update.
13562 (struct place_section_arg): Change type of "offsets".
13563 (place_section): Update.
13564 (relative_addr_info_to_section_offsets): Change type of
13565 "section_offsets". Remove "num_sections" parameter.
13566 (default_symfile_offsets, syms_from_objfile_1)
13567 (set_objfile_default_section_offset): Update.
13568 (reread_symbols): No need to preserve section offsets by hand.
13569 (symfile_map_offsets_to_segments): Change type of "offsets".
13570 * stap-probe.c (relocate_address): Update.
13571 * stabsread.h (process_one_symbol): Update.
13572 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13573 (solib_target_relocate_section_addresses): Update.
13574 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13575 Update.
13576 * solib-frv.c (frv_relocate_main_executable): Update.
13577 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13578 * solib-aix.c (solib_aix_get_section_offsets): Change return
13579 type.
13580 (solib_aix_solib_create_inferior_hook): Update.
13581 * remote.c (remote_target::get_offsets): Update.
13582 * psymtab.c (find_pc_sect_psymtab): Update.
13583 * psympriv.h (struct partial_symbol) <address, text_low,
13584 text_high>: Update.
13585 * objfiles.h (obj_section_offset): Update.
13586 (struct objfile) <section_offsets>: Change type.
13587 <num_sections>: Remove.
13588 (objfile_relocate): Update.
13589 * objfiles.c (entry_point_address_query): Update
13590 (relocate_one_symbol): Change type of "section_offsets".
13591 (objfile_relocate1, objfile_relocate1): Change type of
13592 "new_offsets".
13593 (objfile_rebase1): Update.
13594 * mipsread.c (mipscoff_symfile_read): Update.
13595 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13596 parameter.
13597 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13598 (parse_external, psymtab_to_symtab_1): Update.
13599 * machoread.c (macho_symfile_offsets): Update.
13600 * ia64-tdep.c (ia64_find_unwind_table): Update.
13601 * hppa-tdep.c (read_unwind_info): Update.
13602 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13603 * dwarf2read.c (create_addrmap_from_index)
13604 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13605 (process_psymtab_comp_unit_reader, add_partial_symbol)
13606 (add_partial_subprogram, process_full_comp_unit)
13607 (read_file_scope, read_func_scope, read_lexical_block_scope)
13608 (read_call_site_scope, dwarf2_rnglists_process)
13609 (dwarf2_ranges_process, dwarf2_ranges_read)
13610 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13611 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13612 Update.
13613 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13614 Update.
13615 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13616 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13617 (process_one_symbol): Change type of "section_offsets".
13618 * ctfread.c (get_objfile_text_range): Update.
13619 * coffread.c (coff_symtab_read, enter_linenos)
13620 (process_coff_symbol): Update.
13621 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13622 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13623
456e800a
TT
136242020-01-08 Tom Tromey <tromey@adacore.com>
13625
13626 * dwarf2read.c (parse_macro_definition): Use std::string.
13627 (parse_macro_definition): Likewise.
13628
6dfa2fc2
TT
136292020-01-08 Tom Tromey <tromey@adacore.com>
13630
13631 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13632 (ATTR_ALLOC_CHUNK): Remove.
13633
421d1616
TT
136342020-01-08 Tom Tromey <tromey@adacore.com>
13635
13636 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13637
43816ebc
TT
136382020-01-08 Tom Tromey <tromey@adacore.com>
13639
13640 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13641 (dwarf2_compute_name, open_dwo_file): Likewise.
13642 (process_enumeration_scope): Use std::vector.
13643 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13644 (partial_die_info::fixup, dwarf2_start_subfile)
13645 (guess_full_die_structure_name, dwarf2_name): Likewise.
13646 (determine_prefix): Update.
13647 (guess_full_die_structure_name): Make return type const.
13648 (partial_die_full_name): Return unique_xmalloc_ptr.
13649 (DW_FIELD_ALLOC_CHUNK): Remove.
13650
4212d509
TT
136512020-01-07 Tom Tromey <tromey@adacore.com>
13652
13653 PR build/24937:
13654 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13655
06a6207a
JT
136562020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13657
13658 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13659
153d79c4
AB
136602020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13661
13662 * stack.c (print_frame_info): Move disassemble_next_line code
13663 inside source_print block.
13664
66182876
EZ
136652020-01-06 Eli Zaretskii <eliz@gnu.org>
13666
13667 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13668 gdb/signals.h, as we are now using native signal symbols.
13669
cbfa8581
SV
136702020-01-06 Shahab Vahedi <shahab@synopsys.com>
13671
13672 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13673 overflow by an early check of content vs threshold.
aac66a4c 13674 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13675 Likewise.
13676
3f602821
EZ
136772020-01-06 Eli Zaretskii <eliz@gnu.org>
13678
13679 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13680
a08c904d
JT
136812020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13682
13683 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13684 export table if no section contains it's RVA.
13685
89a65580
EZ
136862020-01-06 Eli Zaretskii <eliz@gnu.org>
13687
13688 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13689
8b7fcda2
HD
136902020-01-06 Hannes Domani <ssbssa@yahoo.de>
13691
13692 * source.c (print_source_lines_base): Set last_line_listed.
13693
a61b4f69
SV
136942020-01-06 Shahab Vahedi <shahab@synopsys.com>
13695
13696 * tui/tui-disasm.c: Remove trailing spaces.
13697
559e7e50
EZ
136982020-01-06 Eli Zaretskii <eliz@gnu.org>
13699 Pedro Alves <palves@redhat.com>
13700
13701 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13702 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13703 (windows_gdb_signal_to_target): New function, uses the above
13704 enumeration to convert GDB internal signal codes to equivalent
13705 Windows codes.
13706 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13707 * windows-nat.c: Include "gdb_wait.h".
13708 (get_windows_debug_event): Extract the fatal exception from the
13709 exit status and convert to the equivalent Posix signal number.
13710 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13711 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13712 * gdbsupport/gdb_wait.c: New file, implements
13713 windows_status_to_termsig.
13714 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13715 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13716
f2302a34
AB
137172020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13718
13719 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13720 show_layout.
13721
6a5206eb
LM
137222020-01-05 Luis Machado <luis.machado@linaro.org>
13723
13724 * aarch64-linux-nat.c
13725 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13726 and bfd_mach_aarch64.
13727
6ec1d75e
PW
137282020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13729
13730 * ui-file.c (stdio_file::can_emit_style_escape)
13731 (tee_file::can_emit_style_escape): Ensure style is used also on
13732 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13733 to gdb_stdout.
13734 * main.c (set_gdb_data_directory): Use file style to output the
13735 warning that the given pathname is not a directory.
13736 * top.c (show_history_filename, gdb_safe_append_history)
13737 (show_gdb_datadir): Use file style.
13738
44f81a76
HD
137392020-01-03 Hannes Domani <ssbssa@yahoo.de>
13740
13741 * solib-target.c (struct lm_info_target):
13742 Change offsets to be a unique_xmalloc_ptr.
13743 (solib_target_relocate_section_addresses): Update.
13744
25057eb0
HD
137452020-01-03 Hannes Domani <ssbssa@yahoo.de>
13746
13747 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13748
6e2118f5
BE
137492020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13750
13751 * MAINTAINERS (Write After Approval): Add myself.
13752
8133c7dc
LM
137532020-01-02 Luis Machado <luis.machado@linaro.org>
13754
13755 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13756 Cell BE architecture.
13757 * target.h (struct target_ops) <thread_architecture>: Likewise.
13758
48189bec
HD
137592020-01-01 Hannes Domani <ssbssa@yahoo.de>
13760
13761 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13762
ead1063b
HD
137632020-01-01 Hannes Domani <ssbssa@yahoo.de>
13764
13765 * MAINTAINERS (Write After Approval): Add myself.
13766
e5d78223
JB
137672020-01-01 Joel Brobecker <brobecker@adacore.com>
13768
13769 * gdbarch.sh: Update copyright year range of generated files.
13770
b811d2c2
JB
137712020-01-01 Joel Brobecker <brobecker@adacore.com>
13772
13773 Update copyright year range in all GDB files.
13774
5f4def5c
JB
137752020-01-01 Joel Brobecker <brobecker@adacore.com>
13776
13777 * copyright.py: Convert to Python 3.
13778
51fd4002
JB
137792020-01-01 Joel Brobecker <brobecker@adacore.com>
13780
13781 * copyright.py: Adapt after move of gnulib directory from gdb
13782 directory to toplevel directory.
13783
5fb651f2
JB
137842020-01-01 Joel Brobecker <brobecker@adacore.com>
13785
13786 * copyright.py (main): Exit if run from the wrong directory.
13787
5dd8bf88
JB
137882020-01-01 Joel Brobecker <brobecker@adacore.com>
13789
13790 * top.c (print_gdb_version): Change copyright year to 2020.
13791
9f71dacb 137922020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13793
9f71dacb 13794 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13795
9f71dacb 13796For older changes see ChangeLog-2019.
c906108c
SS
13797\f
13798Local Variables:
13799mode: change-log
13800left-margin: 8
13801fill-column: 74
13802version-control: never
57da7796 13803coding: utf-8
c906108c 13804End: