]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Make c-exp.y:name_obstack static
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9519b2ee
TT
12020-09-17 Tom Tromey <tromey@adacore.com>
2
3 * c-exp.y (name_obstack): Now static.
4
d2cd4113
CC
52020-09-17 Chungyi Chi <demonic@csie.io>
6
7 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
8
b650a282
SM
92020-09-16 Simon Marchi <simon.marchi@efficios.com>
10
11 * breakpoint.h (init_catchpoint): Change int parameter to bool.
12 (add_solib_catchpoint): Likewise.
13 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
14 to bool.
15 (add_solib_catchpoint): Change int parameter/variable to bool.
16 (catch_load_or_unload): Likewise.
17 (init_catchpoint): Likewise.
18 (create_fork_vfork_event_catchpoint): Likewise.
19 (catch_fork_command_1): Likewise.
20 (catch_exec_command_1): Likewise.
21
4d0bcfcf
SM
222020-09-16 Simon Marchi <simon.marchi@efficios.com>
23
24 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
25 Change instance_flags to m_instance_flags.
26
fe830662
TT
272020-09-16 Tom Tromey <tromey@adacore.com>
28
29 PR gdb/26598:
30 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
31
fe5ddfc3
JB
322020-09-16 John Baldwin <jhb@FreeBSD.org>
33
34 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
35 PL_FLAG_EXEC.
36 (fbsd_nat_target::insert_exec_catchpoint)
37 (fbsd_nat_target::remove_exec_catchpoint): Always define.
38 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
39 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
40
e911c666
JB
412020-09-16 John Baldwin <jhb@FreeBSD.org>
42
43 * configure.ac: Remove check for kinfo_getvmmap().
44 * configure, config.in: Regenerate.
45 * fbsd-nat.c (fbsd_read_mapping): Remove
46 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
47 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
48 kinfo_get_vmmap() are always present.
49
1f17d372
JB
502020-09-16 John Baldwin <jhb@FreeBSD.org>
51
52 * fbsd-nat.c: Always include support for
53 TARGET_OBJECT_SIGNAL_INFO.
54
bcb1da7f
JB
552020-09-16 John Baldwin <jhb@FreeBSD.org>
56
57 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
58 sysctl and remove procfs fallback.
59
5515f729
JB
602020-09-16 John Baldwin <jhb@FreeBSD.org>
61
62 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
63 * fbsd-nat.h: Likewise.
64
da1df1db
TBA
652020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
66
67 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
68 argument.
69
0e25e767
AB
702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
71
72 * ada-lang.c (ada_language_data): Delete.
73 (ada_language): Remove references to ada_language_data.
74 * c-lang.c (c_language_data): Delete.
75 (c_language): Remove references to c_language_data.
76 (cplus_language_data): Delete.
77 (cplus_language): Remove references to cplus_language_data.
78 (asm_language_data): Delete.
79 (asm_language): Remove references to asm_language_data.
80 (minimal_language_data): Delete.
81 (minimal_language): Remove references to minimal_language_data.
82 * d-lang.c (d_language_data): Delete.
83 (d_language): Remove references to d_language_data.
84 * f-lang.c (f_language_data): Delete.
85 (f_language): Remove references to f_language_data.
86 * go-lang.c (go_language_data): Delete.
87 (go_language): Remove references to go_language_data.
88 * language.c (unknown_language_data): Delete.
89 (unknown_language): Remove references to unknown_language_data.
90 (auto_language_data): Delete.
91 (auto_language): Remove references to auto_language_data.
92 * language.h (language_data): Delete struct.
93 (language_defn): No longer inherit from language_data.
94 * m2-lang.c (m2_language_data): Delete.
95 (m2_language): Remove references to m2_language_data.
96 * objc-lang.c (objc_language_data): Delete.
97 (objc_language): Remove references to objc_language_data.
98 * opencl-lang.c (opencl_language_data): Delete.
99 (opencl_language): Remove references to opencl_language_data.
100 * p-lang.c (pascal_language_data): Delete.
101 (pascal_language): Remove references to pascal_language_data.
102 * rust-lang.c (rust_language_data): Delete.
103 (rust_language): Remove references to rust_language_data.
104
b7c6e27d
AB
1052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
106
107 * ada-lang.c (ada_language_data): Remove la_op_print_tab
108 initializer.
109 (ada_language::opcode_print_table): New member function.
110 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
111 (c_language::opcode_print_table): New member function.
112 (cplus_language_data): Remove la_op_print_tab initializer.
113 (cplus_language::opcode_print_table): New member function.
114 (asm_language_data): Remove la_op_print_tab initializer.
115 (asm_language::opcode_print_table): New member function.
116 (minimal_language_data): Remove la_op_print_tab initializer.
117 (minimal_language::opcode_print_table): New member function.
118 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
119 (d_language::opcode_print_table): New member function.
120 * expprint.c (print_subexp_standard): Update call to
121 opcode_print_table.
122 (op_string): Likewise.
123 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
124 (f_language::opcode_print_table): New member function.
125 * go-lang.c (go_language_data): Remove la_op_print_tab
126 initializer.
127 (go_language::opcode_print_table): New member function.
128 * language.c (unknown_language_data): Remove la_op_print_tab
129 initializer.
130 (unknown_language::opcode_print_table): New member function.
131 (auto_language_data): Remove la_op_print_tab initializer.
132 (auto_language::opcode_print_table): New member function.
133 * language.h (language_data): Remove la_op_print_tab field.
134 (language_defn::opcode_print_table): Declare new member function.
135 * m2-lang.c (m2_language_data): Remove la_op_print_tab
136 initializer.
137 (m2_language::opcode_print_table): New member function.
138 * objc-lang.c (objc_language_data): Remove la_op_print_tab
139 initializer.
140 (objc_language::opcode_print_table): New member function.
141 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
142 initializer.
143 (opencl_language::opcode_print_table): New member function.
144 * p-lang.c (pascal_language_data): Remove la_op_print_tab
145 initializer.
146 (pascal_language::opcode_print_table): New member function.
147 * rust-lang.c (rust_language_data): Remove la_op_print_tab
148 initializer.
149 (rust_language::opcode_print_table): New member function.
150
5aba6ebe
AB
1512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
154 (ada_language::expression_ops): New member function.
155 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
156 (c_language::expression_ops): New member function.
157 (cplus_language_data): Remove la_exp_desc initializer.
158 (cplus_language::expression_ops): New member function.
159 (asm_language_data): Remove la_exp_desc initializer.
160 (asm_language::expression_ops): New member function.
161 (minimal_language_data): Remove la_exp_desc initializer.
162 (minimal_language::expression_ops): New member function.
163 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
164 (d_language::expression_ops): New member function.
165 * eval.c (evaluate_subexp): Update call to expression_ops.
166 * expprint.c (print_subexp): Likewise.
167 (op_name): Likewise.
168 (dump_subexp_body): Likewise.
169 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
170 (f_language::expression_ops): New member function.
171 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
172 (go_language::expression_ops): New member function.
173 * language.c (language_defn::expression_ops): New function.
174 (unknown_language_data): Remove la_exp_desc initializer.
175 (auto_language_data): Likewise.
176 * language.h (language_data): Remove la_exp_desc field.
177 (language_defn::expression_ops): Declare new member function.
178 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
179 (m2_language::expression_ops): New member function.
180 * objc-lang.c (objc_language_data): Remove la_exp_desc
181 initializer.
182 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
183 initializer.
184 (opencl_language::expression_ops): New member function.
185 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
186 * parse.c (operator_length): Update call to expression_ops.
187 (exp_iterate): Likewise.
188 * rust-lang.c (rust_language_data): Remove la_exp_desc
189 initializer.
190 (ruse_language::expression_ops): New member function.
191
b63a3f3f
AB
1922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
193
194 * ada-lang.c (ada_language_data): Remove la_varobj_ops
195 initializer.
196 (ada_language::varobj_ops): New member function.
197 * c-lang.c (c_language_data): Remove la_varobj_ops
198 initializer.
199 (cplus_language_data): Likewise.
200 (cplus_language::varobj_ops): New member function.
201 (asm_language_data): Remove la_varobj_ops initializer.
202 (minimal_language_data): Likewise.
203 * d-lang.c (d_language_data): Likewise.
204 * f-lang.c (f_language_data): Likewise.
205 * go-lang.c (go_language_data): Likewise.
206 * language.c (language_defn::varobj_ops): New function.
207 (unknown_language_data): Remove la_varobj_ops
208 initializer.
209 (auto_language_data): Likewise.
210 * language.h (language_data): Remove la_varobj_ops field.
211 (language_defn::varobj_ops): Declare new member function.
212 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
213 * objc-lang.c (objc_language_data): Likewise.
214 * opencl-lang.c (opencl_language_data): Likewise.
215 * p-lang.c (pascal_language_data): Likewise.
216 * rust-lang.c (rust_language_data): Likewise.
217 * varobj.c (varobj_create): Update call to varobj_ops.
218 * varobj.h (default_varobj_ops): Delete define.
219
1ac14a04
AB
2202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
221
222 * ada-lang.c (ada_language_data): Remove la_macro_expansion
223 initializer.
224 * c-lang.c (c_language_data): Likewise.
225 (c_language::macro_expansion): New member function.
226 (cplus_language_data): Likewise.
227 (cplus_language::macro_expansion): New member function.
228 (asm_language_data): Likewise.
229 (asm_language::macro_expansion): New member function.
230 (minimal_language_data): Likewise.
231 (minimal_language::macro_expansion): New member function.
232 * d-lang.c (d_language_data): Remove la_macro_expansion
233 initializer.
234 * f-lang.c (f_language_data): Likewise.
235 * go-lang.c (go_language_data): Likewise.
236 * language.c (unknown_language_data): Likewise.
237 (auto_language_data): Likewise.
238 * language.h (language_data): Remove la_macro_expansion field.
239 (language_defn::macro_expansion): New member function.
240 * m2-lang.c (m2_language_data): Remove la_macro_expansion
241 initializer.
242 * objc-lang.c (objc_language_data): Likewise.
243 (objc_language::macro_expansion): New member function.
244 * opencl-lang.c (opencl_language_data): Likewise.
245 (opencl_language::macro_expansion): New member function.
246 * p-lang.c (pascal_language_data): Remove la_macro_expansion
247 initializer.
248 * rust-lang.c (rust_language_data): Likewise.
249 * symtab.c (default_collect_symbol_completion_matches_break_on):
250 Update call to macro_expansion.
251
3a3440fb
AB
2522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
253
254 * ada-lang.c (ada_language_data): Remove la_array_ordering
255 initializer.
256 * c-lang.c (c_language_data): Likewise.
257 (cplus_language_data): Likewise.
258 (asm_language_data): Likewise.
259 (minimal_language_data): Likewise.
260 * d-lang.c (d_language_data): Likewise.
261 * dwarf2/read.c (read_array_order): Update for call to
262 array_ordering.
263 * f-lang.c (f_language_data): Remove la_array_ordering
264 initializer.
265 (f_language::array_ordering): New member function.
266 * go-lang.c (go_language_data): Remove la_array_ordering
267 initializer.
268 * language.c (unknown_language_data): Likewise.
269 (auto_language_data): Likewise.
270 * language.h (language_data): Delete la_array_ordering field.
271 (language_defn::array_ordering): New member function.
272 * m2-lang.c (m2_language_data): Remove la_array_ordering
273 initializer.
274 * objc-lang.c (objc_language_data): Likewise.
275 * opencl-lang.c (opencl_language_data): Likewise.
276 * p-lang.c (pascal_language_data): Likewise.
277 * rust-lang.c (rust_language_data): Likewise.
278
0d201fa4
AB
2792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
280
281 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
282 initializer.
283 * c-lang.c (c_language_data): Likewise.
284 (cplus_language_data): Likewise.
285 (asm_language_data): Likewise.
286 (minimal_language_data): Likewise.
287 * d-lang.c (d_language_data): Likewise.
288 * f-lang.c (f_language_data): Likewise.
289 (f_language::case_sensitivity): New member function.
290 * go-lang.c (go_language_data): Remove la_case_sensitivity
291 initializer.
292 * language.c (enum case_mode): Moved here from language.h.
293 (case_mode): Make static.
294 (show_case_command): Update for case_sensitivity being a method.
295 (set_case_command): Likewise.
296 (set_range_case): Likewise.
297 (unknown_language_data): Remove la_case_sensitivity initializer.
298 (auto_language_data): Likewise.
299 * language.h (case_mode): Delete, move enum declaration to
300 language.c.
301 (language_data): Delete la_case_sensitivity field.
302 (language_defn::case_sensitivity): New member function.
303 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
304 initializer.
305 * objc-lang.c (objc_language_data): Likewise.
306 * opencl-lang.c (opencl_language_data): Likewise.
307 * p-lang.c (pascal_language_data): Likewise.
308 * rust-lang.c (rust_language_data): Likewise.
309
efdf6a73
AB
3102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
311
312 * ada-lang.c (ada_language_data): Remove la_range_check
313 initializer.
314 * c-lang.c (c_language_data): Likewise.
315 (cplus_language_data): Likewise.
316 (asm_language_data): Likewise.
317 (minimal_language_data): Likewise.
318 * d-lang.c (d_language_data): Likewise.
319 * f-lang.c (f_language_data): Likewise.
320 (f_language::range_checking_on_by_default): New member function.
321 * go-lang.c (go_language_data): Remove la_range_check initializer.
322 * language.c (enum range_mode): Moved here from language.h.
323 (range_mode): Made static.
324 (show_range_command): Update to use
325 range_checking_on_by_default.
326 (set_range_command): Likewise.
327 (set_range_case): Likewise.
328 (unknown_language_data): Remove la_range_check initializer.
329 (auto_language_data): Likewise.
330 * language.h (range_mode): Delete. Enum definition moved to
331 language.c.
332 (language_data): Remove la_range_check field.
333 (language_defn::range_checking_on_by_default): New member
334 function.
335 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
336 (m2_language::range_checking_on_by_default): New member function.
337 * objc-lang.c (objc_language_data): Remove la_range_check
338 initializer.
339 * opencl-lang.c (opencl_language_data): Likewise.
340 * p-lang.c (pascal_language_data): Likewise.
341 (pascal_language::range_checking_on_by_default): New member
342 function.
343 * rust-lang.c (rust_language_data): Remove la_range_check
344 initializer.
345 (rust_language::range_checking_on_by_default): New member
346 function.
347
bf92aec5
AB
3482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
349
350 * dwarf2/read.c (dwarf2_physname): Remove special case for
351 language_go.
352 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
353 member function.
354
d3355e4d
AB
3552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
356
357 * ada-lang.c (ada_language_data): Remove
358 la_store_sym_names_in_linkage_form_p initializer.
359 (ada_language::store_sym_names_in_linkage_form_p): New member
360 function.
361 * c-lang.c (c_language_data): Remove
362 la_store_sym_names_in_linkage_form_p initializer.
363 (c_language::store_sym_names_in_linkage_form_p): New member
364 function.
365 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
366 initializer.
367 (asm_language_data): Likewise.
368 (asm_language::store_sym_names_in_linkage_form_p): New member
369 function.
370 (minimal_language_data): Remove
371 la_store_sym_names_in_linkage_form_p initializer.
372 (minimal_language::store_sym_names_in_linkage_form_p): New member
373 function.
374 * d-lang.c (d_language_data): Remove
375 la_store_sym_names_in_linkage_form_p initializer.
376 * dwarf2/read.c (dwarf2_physname): Update call to
377 store_sym_names_in_linkage_form_p.
378 * f-lang.c (f_language_data): Remove
379 la_store_sym_names_in_linkage_form_p initializer.
380 * go-lang.c (go_language_data): Remove
381 la_store_sym_names_in_linkage_form_p initializer.
382 * language.c (unknown_language_data): Remove
383 la_store_sym_names_in_linkage_form_p initializer.
384 (unknown_language::store_sym_names_in_linkage_form_p): New member
385 function.
386 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
387 initializer.
388 (auto_language::store_sym_names_in_linkage_form_p): New member
389 function.
390 * language.h (language_data): Remove
391 la_store_sym_names_in_linkage_form_p member variable.
392 (language_defn::store_sym_names_in_linkage_form_p): New member
393 function.
394 * m2-lang.c (m2_language_data): Remove
395 la_store_sym_names_in_linkage_form_p initializer.
396 * objc-lang.c (objc_language_data): Likewise.
397 * opencl-lang.c (opencl_language_data): Likewise.
398 * p-lang.c (pascal_language_data): Likewise.
399 * rust-lang.c (rust_language_data): Likewise.
400
22c12a6c
AB
4012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
402
403 * ada-lang.c (ada_language_data): Remove string_lower_bound
404 initializer.
405 * c-lang.c (c_language_data): Likewise.
406 (cplus_language_data): Likewise.
407 (asm_language_data): Likewise.
408 (minimal_language_data): Likewise.
409 * d-lang.c (d_language_data): Likewise.
410 * f-lang.c (f_language_data): Likewise.
411 * go-lang.c (go_language_data): Likewise.
412 * language.c (unknown_language_data): Likewise.
413 (auto_language_data): Likewise.
414 * language.h (language_data): Remove string_lower_bound field.
415 (language_defn::string_lower_bound): New member function.
416 * m2-lang.c (m2_language_data): Remove string_lower_bound
417 initializer.
418 (m2_language::string_lower_bound): New member function.
419 * objc-lang.c (objc_language_data): Remove string_lower_bound
420 initializer.
421 * opencl-lang.c (opencl_language_data): Likewise.
422 * p-lang.c (pascal_language_data): Likewise.
423 * rust-lang.c (rust_language_data): Likewise.
424 * valops.c (value_cstring): Update call to string_lower_bound.
425 (value_string): Likewise.
426 * value.c (allocate_repeated_value): Likewise.
427
1c236ddd
AB
4282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
429
430 * valops.c (value_repeat): Fix incorrect argument name in comment.
431
67bd3fd5
AB
4322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
433
434 * ada-lang.c (ada_language_data): Remove c_style_arrays
435 initializer.
436 (ada_language::c_style_arrays_p): New member fuction.
437 * c-lang.c (c_language_data): Remove c_style_arrays
438 initializer.
439 (cplus_language_data): Likewise.
440 (asm_language_data): Likewise.
441 (minimal_language_data): Likewise.
442 * d-lang.c (d_language_data): Likewise.
443 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
444 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
445 (f_language::c_style_arrays_p): New member function.
446 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
447 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
448 * language.c (unknown_language_data): Remove c_style_arrays
449 initializer.
450 (auto_language_data): Likewise.
451 * language.h (language_data): Remove c_style_arrays field.
452 (language_defn::c_style_arrays_p): New member function.
453 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
454 (m2_language::c_style_arrays_p): New member function.
455 * objc-lang.c (objc_language_data): Remove c_style_arrays
456 initializer.
457 * opencl-lang.c (opencl_language_data): Likewise.
458 * p-lang.c (pascal_language_data): Likewise.
459 * rust-lang.c (rust_language_data): Likewise.
460 * valarith.c (value_subscript): Update call to c_style_arrays_p,
461 and update local variable to a bool.
462 * valops.c (value_cast): Update call to c_style_arrays_p.
463 (value_array): Likewise.
464 * value.c (coerce_array): Likewise.
465
85967615
AB
4662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
467
468 * ada-lang.c (ada_language_data): Remove la_language initializer.
469 * c-lang.c (c_language_data): Likewise.
470 (cplus_language_data): Likewise.
471 (asm_language_data): Likewise.
472 (minimal_language_data): Likewise.
473 * d-lang.c (d_language_data): Likewise.
474 * f-lang.c (f_language_data): Likewise.
475 * go-lang.c (go_language_data): Likewise.
476 * language.c (unknown_language_data): Likewise.
477 (auto_language_data): Likewise.
478 * language.h (language_data): Remove la_language field.
479 (language_defn::language_defn): Initialise la_language field.
480 (language_defn::la_language): New member variable.
481 * m2-lang.c (m2_language_data): Remove la_language field.
482 * objc-lang.c (objc_language_data): Likewise.
483 * opencl-lang.c (opencl_language_data): Likewise.
484 * p-lang.c (pascal_language_data): Likewise.
485 * rust-lang.c (rust_language_data): Likewise.
486
e171d6f1
AB
4872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
488
489 * ada-lang.c (ada_extensions): Delete, moved into
490 ada_language::filename_extensions.
491 (ada_language_data): Remove la_filename_extensions initializer.
492 (ada_language::filename_extensions): New member function.
493 * c-lang.c (c_extensions): Delete, moved into
494 c_language::filename_extensions.
495 (c_language_data): Remove la_filename_extensions initializer.
496 (c_language::filename_extensions): New member function.
497 (cplus_extensions): Delete, moved into
498 cplus_language::filename_extensions.
499 (cplus_language_data): Remove la_filename_extensions initializer.
500 (cplus_language::filename_extensions): New member function.
501 (asm_extensions): Delete, moved into
502 asm_language::filename_extensions.
503 (asm_language_data): Remove la_filename_extensions initializer.
504 (asm_language::filename_extensions): New member function.
505 (minimal_language_data): Remove la_filename_extensions
506 initializer.
507 * d-lang.c (d_extensions): Delete, moved into
508 d_language::filename_extensions.
509 (d_language_data): Remove la_filename_extensions initializer.
510 (d_language::filename_extensions): New member function.
511 * f-lang.c (f_extensions): Delete, moved into
512 f_language::filename_extensions.
513 (f_language_data): Remove la_filename_extensions initializer.
514 (f_language::filename_extensions): New member function.
515 * go-lang.c (go_language_data): Remove la_filename_extensions
516 initializer.
517 * language.c (add_set_language_command): Update now that
518 filename_extensions returns a vector.
519 (unknown_language_data): Remove la_filename_extensions
520 initializer.
521 (auto_language_data): Likewise.
522 * language.h (language_data): Remove la_filename_extensions field.
523 (language_defn::filename_extensions): New member function.
524 * m2-lang.c (m2_language_data): Remove la_filename_extensions
525 initializer.
526 * objc-lang.c (objc_extensions): Delete, moved into
527 objc_language::filename_extensions.
528 (objc_language_data): Remove la_filename_extensions initializer.
529 (objc_language::filename_extensions): New member function.
530 * opencl-lang.c (opencl_language_data): Remove
531 la_filename_extensions initializer.
532 * p-lang.c (pascal_extensions): Delete, moved into
533 pascal_language::filename_extensions.
534 (pascal_language_data): Remove la_filename_extensions initializer.
535 (pascal_language::filename_extensions): New member function.
536 * rust-lang.c (rust_extensions): Delete, moved into
537 rust_language::filename_extensions.
538 (rust_language_data): Remove la_filename_extensions initializer.
539 (rust_language::filename_extensions): New member function.
540 * symfile.c (add_filename_language): Add new assert.
541
6f7664a9
AB
5422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
543
544 * ada-lang.c (ada_language_data): Remove la_name and
545 la_natural_name initializers.
546 (ada_language::name): New member function.
547 (ada_language::natural_name): New member function.
548 * c-lang.c (c_language_data): Remove la_name and
549 la_natural_name initializers.
550 (c_language::name): New member function.
551 (c_language::natural_name): New member function.
552 (cplus_language_data): Remove la_name and
553 la_natural_name initializers.
554 (cplus_language::name): New member function.
555 (cplus_language::natural_name): New member function.
556 (asm_language_data): Remove la_name and
557 la_natural_name initializers.
558 (asm_language::name): New member function.
559 (asm_language::natural_name): New member function.
560 (minimal_language_data): Remove la_name and
561 la_natural_name initializers.
562 (minimal_language::name): New member function.
563 (minimal_language::natural_name): New member function.
564 * compile/compile.c (compile_to_object): Update call to
565 lanugage_defn::name.
566 * d-lang.c (d_language_data): Remove la_name and
567 la_natural_name initializers.
568 (d_language::name): New member function.
569 (d_language::natural_name): New member function.
570 * expprint.c (print_subexp_standard): Update call to
571 language_defn::name.
572 (dump_raw_expression): Likewise
573 (dump_prefix_expression): Likewise.
574 * f-lang.c (f_language_data): Remove la_name and
575 la_natural_name initializers.
576 (f_language::name): New member function.
577 (f_language::natural_name): New member function.
578 * go-lang.c (go_language_data): Remove la_name and
579 la_natural_name initializers.
580 (go_language::name): New member function.
581 (go_language::natural_name): New member function.
582 * language.c (show_language_command): Update call to
583 language_defn::name.
584 (set_language_command): Likewise.
585 (language_enum): Likewise.
586 (language_str): Likewise.
587 (add_set_language_command): Likewise, use
588 language_defn::natural_name in the doc string.
589 (unknown_language_data): Remove la_name and
590 la_natural_name initializers.
591 (unknown_language::name): New member function.
592 (unknown_language::natural_name): New member function.
593 (auto_language_data): Remove la_name and
594 la_natural_name initializers.
595 (auto_language::name): New member function.
596 (auto_language::natural_name): New member function.
597 (language_lookup_primitive_type_as_symbol): Update call to
598 language_defn::name.
599 * language.h (language_data): Remove la_name and la_natural_name
600 member variables.
601 (language_defn::name): New member function.
602 (language_defn::natural_name): New member function.
603 * m2-lang.c (m2_language_data): Remove la_name and
604 la_natural_name initializers.
605 (m2_language::name): New member function.
606 (m2_language::natural_name): New member function.
607 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
608 language_defn::natural_name.
609 * objc-lang.c (objc_language_data): Remove la_name and
610 la_natural_name initializers.
611 (objc_language::name): New member function.
612 (objc_language::natural_name): New member function.
613 * opencl-lang.c (opencl_language_data): Remove la_name and
614 la_natural_name initializers.
615 (opencl_language::name): New member function.
616 (opencl_language::natural_name): New member function.
617 * p-lang.c (pascal_language_data): Remove la_name and
618 la_natural_name initializers.
619 (pascal_language::name): New member function.
620 (pascal_language::natural_name): New member function.
621 * rust-lang.c (rust_language_data): Remove la_name and
622 la_natural_name initializers.
623 (rust_language::name): New member function.
624 (rust_language::natural_name): New member function.
625 * symtab.c (lookup_language_this): Update call to
626 language_defn::name.
627
5bae7c4e
AB
6282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
629
630 * ada-lang.c (ada_language_data): Remove la_name_of_this
631 initializer.
632 * ax-gdb.c (gen_expr): Update call to name_of_this.
633 * c-exp.y (classify_name): Likewise.
634 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
635 (cplus_language_data): Likewise.
636 (cplus_language::name_of_this): New member function.
637 (asm_language_data): Remove la_name_of_this initializer.
638 (minimal_language_data): Likewise.
639 * d-lang.c (d_language_data): Likewise.
640 (d_language::name_of_this): New member function.
641 * expprint.c (print_subexp_standard): Update call to name_of_this.
642 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
643 * go-lang.c (go_language_data): Likewise.
644 * language.c (unknown_language_data): Likewise.
645 (unknown_language::name_of_this): New member function.
646 (auto_language_data): Remove la_name_of_this initializer.
647 (auto_language::name_of_this): New member function.
648 * language.h (language_data): Delete la_name_of_this member
649 variable.
650 (language_defn::name_of_this): New member function.
651 * m2-lang.c (m2_language_data): Remove la_name_of_this
652 initializer.
653 * objc-lang.c (objc_language_data): Likewise.
654 (objc_language::name_of_this): New member function.
655 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
656 initializer.
657 * p-lang.c (pascal_language_data): Likewise.
658 (pascal_language::name_of_this): New member function.
659 * rust-lang.c (rust_language_data): Remove la_name_of_this
660 initializer.
661 * symtab.c (lookup_language_this): Update call to name_of_this.
662 (lookup_symbol_aux): Likewise.
663 * valops.c (value_of_this): Likewise.
664
22e3f3ed
AB
6652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
666
667 * ada-lang.c (ada_language_data): Remove
668 la_struct_too_deep_ellipsis initializer.
669 (ada_language::struct_too_deep_ellipsis): New member function.
670 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
671 initializer.
672 (cplus_language_data): Likewise.
673 (asm_language_data): Likewise.
674 (minimal_language_data): Likewise.
675 * cp-valprint.c (cp_print_value): Update call to
676 struct_too_deep_ellipsis.
677 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
678 initializer.
679 * f-lang.c (f_language_data): Likewise.
680 (f_language::struct_too_deep_ellipsis): New member function.
681 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
682 initializer.
683 * language.c (unknown_language_data): Likewise.
684 (auto_language_data): Likewise.
685 * language.h (language_data): Delete la_struct_too_deep_ellipsis
686 member variable.
687 (language_defn::struct_too_deep_ellipsis): New member function.
688 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
689 initializer.Q
690 * objc-lang.c (objc_language_data): Likewise.
691 * opencl-lang.c (opencl_language_data): Likewise.
692 * p-lang.c (pascal_language_data): Likewise.
693 * rust-lang.c (rust_language_data): Likewise.
694 * valprint.c (val_print_check_max_depth): Update call to
695 struct_too_deep_ellipsis.
696
ed29e1c7
FW
6972020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
698
699 * MAINTAINERS (Write After Approval): Add myself.
700
12d8f940
TT
7012020-09-15 Tom Tromey <tom@tromey.com>
702
703 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
704 Remove.
705
6b5a7bc7
TT
7062020-09-15 Tom Tromey <tom@tromey.com>
707
708 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
709 and TYPE_CODE_METHODPTR cases.
710 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
711 (c_value_print_inner): Update.
712 * valprint.c (generic_value_print_memberptr): New function, from
713 c_value_print_memberptr.
714 (generic_value_print): Use it. Call cplus_print_method_ptr.
715
47f0e2ff
TT
7162020-09-15 Tom Tromey <tromey@adacore.com>
717
718 * python/python-internal.h (PyInt_FromLong): Remove define.
719 * python/py-value.c (convert_value_from_python): Use
720 gdb_py_object_from_longest.
721 * python/py-type.c (typy_get_code): Use
722 gdb_py_object_from_longest.
723 * python/py-symtab.c (salpy_get_line): Use
724 gdb_py_object_from_longest.
725 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
726 gdb_py_object_from_longest.
727 * python/py-record.c (recpy_gap_reason_code): Use
728 gdb_py_object_from_longest.
729 * python/py-record-btrace.c (recpy_bt_insn_size)
730 (recpy_bt_func_level, btpy_list_count): Use
731 gdb_py_object_from_longest.
732 * python/py-infthread.c (gdbpy_create_ptid_object): Use
733 gdb_py_object_from_longest. Fix error handling.
734 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
735 gdb_py_object_from_longest.
736 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
737 gdb_py_object_from_longest.
738 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
739 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
740 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
741
512116ce
TT
7422020-09-15 Tom Tromey <tromey@adacore.com>
743
744 * python/python.c (gdbpy_parameter_value): Use
745 gdb_py_object_from_ulongest.
746
4ab1029c
TT
7472020-09-15 Tom Tromey <tromey@adacore.com>
748
749 * python/py-infevents.c (create_register_changed_event_object):
750 Use gdb_py_object_from_longest.
751 * python/py-exitedevent.c (create_exited_event_object): Use
752 gdb_py_object_from_longest.
753
062534d4
TT
7542020-09-15 Tom Tromey <tromey@adacore.com>
755
756 * python/python.c (gdbpy_parameter_value): Use
757 gdb_py_object_from_longest.
758 * python/py-type.c (convert_field, typy_range): Use
759 gdb_py_object_from_longest.
760 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
761 gdb_py_object_from_longest.
762 * python/py-lazy-string.c (stpy_get_length): Use
763 gdb_py_object_from_longest.
764 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
765 gdb_py_object_from_longest.
766 * python/py-infevents.c (create_memory_changed_event_object): Use
767 gdb_py_object_from_longest.
768 * python/py-inferior.c (infpy_get_num): Use
769 gdb_py_object_from_longest.
770 (infpy_get_pid): Likewise.
771
d1cab987
TT
7722020-09-15 Tom Tromey <tromey@adacore.com>
773
774 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
775 defines.
776 * python/py-value.c (valpy_long): Use
777 gdb_py_object_from_ulongest.
778 * python/py-symtab.c (salpy_get_pc): Use
779 gdb_py_object_from_ulongest.
780 (salpy_get_last): Likewise.
781 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
782 gdb_py_object_from_ulongest.
783 * python/py-lazy-string.c (stpy_get_address): Use
784 gdb_py_object_from_ulongest.
785 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
786 * python/py-arch.c (archpy_disassemble): Use
787 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
788 error handling.
789
4bde49dc
TT
7902020-09-15 Tom Tromey <tromey@adacore.com>
791
792 * python/python-internal.h (gdb_py_long_from_longest): Remove
793 defines.
794 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
795 * python/py-type.c (convert_field, typy_get_sizeof): Use
796 gdb_py_object_from_longest.
797 * python/py-record-btrace.c (btpy_list_index): Use
798 gdb_py_object_from_longest.
799
37431074
TT
8002020-09-15 Tom Tromey <tromey@adacore.com>
801
802 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
803 * python/py-record.c (recpy_element_number): Use
804 gdb_py_object_from_longest.
805 (recpy_gap_number): Likewise.
806
cbe25684
TT
8072020-09-15 Tom Tromey <tromey@adacore.com>
808
809 * top.c (ui::ui): Update.
810 (highest_ui_num): Remove.
811 * top.h (struct ui) <num>: Remove.
812
db92ac45
TT
8132020-09-15 Tom Tromey <tromey@adacore.com>
814
815 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
816 * ui-style.c (ansi_regex_text): Now array.
817 * rust-exp.y (number_regex_text): Now array.
818 * linespec.c (linespec_quote_characters): Now array.
819 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
820 Now arrays.
821
d2b31b67
SM
8222020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
823
824 * debuginfod-support.c (debuginfod_client_deleter): New.
825 (debuginfod_client_up): New.
826 (debuginfod_init): Return debuginfod_client_up.
827 (debuginfod_source_query): Adjust.
828 (debuginfod_debuginfo_query): Adjust.
829
3246bd8e
SM
8302020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
831
832 * debuginfod-support.c (debuginfod_source_query): Use
833 make_unique_xstrdup.
834
10242f36
SM
8352020-09-14 Simon Marchi <simon.marchi@efficios.com>
836
837 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
838 with `type::instance_flags`.
839
e1044e6a
MM
8402020-09-14 Michael Mullin <masmullin@gmail.com>
841
842 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
843 Remove baton parameter.
844
04902b09
PA
8452020-09-14 Pedro Alves <pedro@palves.net>
846
847 * Makefile.in (SELFTESTS_SRCS): Add
848 unittests/enum-flags-selftests.c.
849 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
850 btrace_function_flags instead of enum btrace_function_flag.
851 * compile/compile-c-types.c (convert_qualified): Use
852 enum_flags::raw.
853 * compile/compile-cplus-symbols.c (convert_one_symbol)
854 (convert_symbol_bmsym):
855 * compile/compile-cplus-types.c (compile_cplus_convert_method)
856 (compile_cplus_convert_struct_or_union_methods)
857 (compile_cplus_instance::convert_qualified_base):
858 * go-exp.y (parse_string_or_char): Add cast to int.
859 * unittests/enum-flags-selftests.c: New file.
860 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
861 type to btrace_thread_flags from btrace_thread_flag.
862 (record_btrace_cancel_resume, record_btrace_step_thread): Change
863 local's type to btrace_thread_flags from btrace_thread_flag. Add
864 cast in DEBUG call.
865
69896a2c
PA
8662020-09-14 Pedro Alves <pedro@palves.net>
867
868 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
869 * gdbtypes.c (address_space_name_to_int): Rename to ...
870 (address_space_name_to_type_instance_flags): ... this.
871 (address_space_int_to_name): Rename to ...
872 (address_space_type_instance_flags_to_name): ... this.
873 * gdbtypes.h (address_space_name_to_int): Rename to ...
874 (address_space_name_to_type_instance_flags): ... this.
875 (address_space_int_to_name): Rename to ...
876 (address_space_type_instance_flags_to_name): ... this.
877 * type-stack.c (type_stack::insert): Adjust to rename.
878 * type-stack.h (type_stack::insert): Likewise.
879
314ad88d
PA
8802020-09-14 Pedro Alves <pedro@palves.net>
881 Andrew Burgess <andrew.burgess@embecosm.com>
882
883 * avr-tdep.c (avr_address_class_type_flags): Return
884 type_instance_flags.
885 (avr_address_class_type_flags_to_name): Take a
886 type_instance_flags.
887 (avr_address_class_name_to_type_flags): Return bool and take a
888 type_instance_flags.
889 * d-lang.c (build_d_types): Use type::set_instance_flags.
890 * ft32-tdep.c (ft32_address_class_type_flags): Return
891 type_instance_flags.
892 (ft32_address_class_type_flags_to_name): Take a
893 type_instance_flags.
894 (ft32_address_class_name_to_type_flags): Return bool and take a
895 type_instance_flags.
896 (ft32_gdbarch_init): Use type::set_instance_flags.
897 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
898 * gdbarch.h, gdbarch.c: Regenerate.
899 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
900 (address_class_name_to_type_flags): Use type_instance_flags and
901 bool.
902 * gdbtypes.c (address_space_name_to_int)
903 (address_space_int_to_name, make_qualified_type): Use
904 type_instance_flags.
905 (make_qualified_type): Use type_instance_flags and
906 type::set_instance_flags.
907 (make_type_with_address_space, make_cv_type, make_vector_type)
908 (check_typedef): Use type_instance_flags.
909 (recursive_dump_type): Cast type_instance_flags to unsigned for
910 printing.
911 (copy_type_recursive): Use type::set_instance_flags.
912 (gdbtypes_post_init): Use type::set_instance_flags.
913 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
914 <m_instance_flags>: ... this.
915 <instance_flags, set_instance_flags>: New methods.
916 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
917 (SET_TYPE_INSTANCE_FLAGS): New.
918 (address_space_name_to_int, address_space_int_to_name)
919 (make_type_with_address_space): Pass flags using
920 type_instance_flags instead of int.
921 * stabsread.c (cleanup_undefined_types_noname): Use
922 type::set_instance_flags.
923 * s390-tdep.c (s390_address_class_type_flags): Return
924 type_instance_flags.
925 (s390_address_class_type_flags_to_name): Take a
926 type_instance_flags.
927 (s390_address_class_name_to_type_flags): Return bool and take a
928 type_instance_flags.
929 * type-stack.c (type_stack::follow_types): Use
930 type_instance_flags.
931 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
932
27087b7f
TT
9332020-09-14 Tom Tromey <tromey@adacore.com>
934
935 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
936 * x86-tdep.c (x86_is_thunk_register_name)
937 (x86_in_indirect_branch_thunk): Update.
938 * sparc64-tdep.c (sparc64_fpu_register_names)
939 (sparc64_cp0_register_names, sparc64_register_names)
940 (sparc64_pseudo_register_names): Now const.
941 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
942 cp0_registers_num>: Now const.
943 * sparc-tdep.c (sparc_core_register_names)
944 (sparc32_fpu_register_names, sparc32_cp0_register_names)
945 (sparc32_pseudo_register_names): Now const.
946 (validate_tdesc_registers): Update.
947 * rust-lang.c (rust_extensions): Now const.
948 * p-lang.c (p_extensions): Now const.
949 * objc-lang.c (objc_extensions): Now const.
950 * nto-tdep.c (nto_thread_state_str): Now const.
951 * moxie-tdep.c (moxie_register_names): Now const.
952 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
953 Now const.
954 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
955 (mips_linux_reg_names): Now const.
956 (mips_gdbarch_init): Update.
957 * microblaze-tdep.c (microblaze_register_names): Now const.
958 * m68k-tdep.c (m68k_register_names): Now const.
959 * m32r-tdep.c (m32r_register_names): Now const.
960 * ia64-tdep.c (ia64_register_names): Now const.
961 * i386-tdep.h (struct gdbarch_tdep) <register_names,
962 ymmh_register_names, ymm16h_regnum, mpx_register_names,
963 k_register_names, zmmh_register_names, xmm_avx512_register_names,
964 ymm_avx512_register_names, pkeys_register_names>: Now const.
965 * i386-tdep.c (i386_register_names, i386_zmm_names)
966 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
967 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
968 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
969 * f-lang.c (f_extensions): Now const.
970 * d-lang.c (d_extensions): Now const.
971 * csky-tdep.c (csky_register_names): Now const.
972 * charset.c (default_charset_names, charset_enum): Now const.
973 (_initialize_charset): Update.
974 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
975 const.
976 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
977 (bsd_uthread_solib_loaded): Update.
978 (bsd_uthread_state): Now const.
979 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
980 (amd64_ymm_avx512_names, amd64_ymmh_names)
981 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
982 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
983 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
984 (amd64_dword_names): Now const.
985 * agent.c (can_use_agent_enum): Now const.
986 * ada-tasks.c (task_states, long_task_states): Now const.
987 * ada-lang.c (known_runtime_file_name_patterns)
988 (known_auxiliary_function_name_patterns, attribute_names)
989 (standard_exc, ada_extensions): Now const.
990
89806626
SM
9912020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
992
993 * bcache.h (struct bcache) <bcache>: Remove constructor.
994 <m_hash_function, m_compare_function>: Remove.
995 <~bcache>: Make virtual.
996 <compare>: Remove static method, introduce virtual method.
997 <default_hash>: Remove.
998 <hash>: New virtual method.
999 * bcache.c (bcache::expand_hash_table): Update.
1000 (bcache::insert): Update.
1001 (bcache::hash): New.
1002 (bcache::compare): Update comment and parameter names.
1003 * gdbtypes.c (types_deeply_equal): Update.
1004 * psymtab.h (struct psymbol_bcache): New struct.
1005 (class psymtab_storage) <psymtab_storage>: Make default.
1006 <psymbol_cache>: Change type to psymbol_bcache.
1007 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1008 (psymbol_hash): Change to...
1009 (psymbol_bcache::hash): ... this.
1010 (psymbol_compare): Change to...
1011 (psymbol_bcache::compare): ... this.
1012
677c92fe
SM
10132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1014
1015 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1016 checking for initial lwp.
1017
3eba3a01
TT
10182020-09-14 Tom Tromey <tromey@adacore.com>
1019
1020 * m68k-tdep.c (m68k_extract_return_value): Use
1021 pointer_result_regnum.
1022 (m68k_store_return_value): Likewise.
1023 (m68k_reg_struct_return_p): Handle vectors and arrays.
1024 (m68k_return_value): Handle arrays.
1025 (m68k_svr4_return_value): Fix single-element aggregate handling.
1026 Handle long double. Adjust for embedded ABI.
1027 (m68k_svr4_init_abi): Set pointer_result_regnum.
1028 (m68k_embedded_init_abi): New function.
1029 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1030 (m68k_osabi_sniffer): New function.
1031 (_initialize_m68k_tdep): Register osabi sniffer.
1032 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1033 member.
1034
33f4dd48
SM
10352020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1036
1037 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1038 with gdb::unique_xmalloc_ptr<char>.
1039
8400a90d
SM
10402020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1041
1042 * xml-support.h (xml_fetch_another): Change type to be a
1043 function_view.
1044 (xml_process_xincludes): Remove baton parameter.
1045 (xml_fetch_content_from_file): Change baton parameter to
1046 dirname.
1047 * xml-support.c (struct xinclude_parsing_data)
1048 <xinclude_parsing_data>: Remove baton parameter.
1049 <fetcher_baton>: Remove.
1050 (xinclude_start_include): Adjust.
1051 (xml_process_xincludes): Adjust.
1052 (xml_fetch_content_from_file): Replace baton parameter with
1053 dirname.
1054 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1055 (xml_init_syscalls_info): Use a lambda.
1056 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1057 (file_read_description_xml): Use a lambda.
1058 (fetch_available_features_from_target): Change baton parameter
1059 to target_ops.
1060 (target_read_description_xml): Use a lambda.
1061 (target_fetch_description_xml): Use a lambda.
1062 (string_read_description_xml): Update.
1063
04f5bab2
SM
10642020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1065
1066 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1067 uses with type::endianity_is_not_default.
1068
db558e34
SM
10692020-09-14 Simon Marchi <simon.marchi@efficios.com>
1070
1071 * gdbtypes.h (struct type) <endianity_is_not_default,
1072 set_endianity_is_not_default>: New methods.
1073 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1074 type::endianity_is_not_default, change all write call sites to
1075 use type::set_endianity_is_not_default.
1076
22c4c60c
SM
10772020-09-14 Simon Marchi <simon.marchi@efficios.com>
1078
1079 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1080 uses with type::is_fixed_instance.
1081
9cdd0d12
SM
10822020-09-14 Simon Marchi <simon.marchi@efficios.com>
1083
1084 * gdbtypes.h (struct type) <is_fixed_instance,
1085 set_is_fixed_instance>: New methods.
1086 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1087 write call sites to use type::set_is_fixed_instance.
1088
0becda7a
SM
10892020-09-14 Simon Marchi <simon.marchi@efficios.com>
1090
1091 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1092 uses with type::is_gnu_ifunc.
1093
03cc7249
SM
10942020-09-14 Simon Marchi <simon.marchi@efficios.com>
1095
1096 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1097 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1098 use type::set_is_gnu_ifunc.
1099
3f46044c
SM
11002020-09-14 Simon Marchi <simon.marchi@efficios.com>
1101
1102 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1103 uses with type::stub_is_supported.
1104
9baccff6
SM
11052020-09-14 Simon Marchi <simon.marchi@efficios.com>
1106
1107 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1108 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1109 use type::set_stub_is_supported.
1110
bd63c870
SM
11112020-09-14 Simon Marchi <simon.marchi@efficios.com>
1112
1113 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1114 uses with type::is_vector.
1115
2062087b
SM
11162020-09-14 Simon Marchi <simon.marchi@efficios.com>
1117
1118 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1119 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1120 use type::set_is_vector.
1121
a409645d
SM
11222020-09-14 Simon Marchi <simon.marchi@efficios.com>
1123
1124 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1125 uses with type::has_varargs.
1126
1d6286ed
SM
11272020-09-14 Simon Marchi <simon.marchi@efficios.com>
1128
1129 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1130 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1131 use type::set_has_varargs.
1132
7f9f399b
SM
11332020-09-14 Simon Marchi <simon.marchi@efficios.com>
1134
1135 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1136 uses with type::is_prototyped.
1137
27e69b7a
SM
11382020-09-14 Simon Marchi <simon.marchi@efficios.com>
1139
1140 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1141 New methods.
1142 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1143 call sites to use type::set_is_prototyped.
1144
d2183968
SM
11452020-09-14 Simon Marchi <simon.marchi@efficios.com>
1146
1147 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1148 uses with type::target_is_stub.
1149
8f53807e
SM
11502020-09-14 Simon Marchi <simon.marchi@efficios.com>
1151
1152 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1153 New methods.
1154 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1155 sites to use type::set_target_is_stub.
1156
e46d3488
SM
11572020-09-14 Simon Marchi <simon.marchi@efficios.com>
1158
1159 * gdbtypes.h (TYPE_STUB): Remove, replace all
1160 uses with type::is_stub.
1161
b4b73759
SM
11622020-09-14 Simon Marchi <simon.marchi@efficios.com>
1163
1164 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1165 (TYPE_STUB): Use type::is_stub, change all write call sites to
1166 use type::set_is_stub.
1167
20ce4123
SM
11682020-09-14 Simon Marchi <simon.marchi@efficios.com>
1169
1170 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1171 type::has_no_signedness.
1172
15152a54
SM
11732020-09-14 Simon Marchi <simon.marchi@efficios.com>
1174
1175 * gdbtypes.h (struct type) <has_no_signedness,
1176 set_has_no_signedness>: New methods.
1177 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1178 call sites to use type::set_has_no_signedness.
1179
c6d940a9
SM
11802020-09-14 Simon Marchi <simon.marchi@efficios.com>
1181
1182 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1183 type::is_unsigned.
1184
653223d3
SM
11852020-09-14 Simon Marchi <simon.marchi@efficios.com>
1186
1187 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1188 methods.
1189 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1190 sites to use type::set_is_unsigned.
1191
55ea94da
FH
11922020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1193 Adam Renquinha <arenquinha@cimeq.qc.ca>
1194
1195 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1196 pointer and stack frame offset when unwinding.
1197
6791b117
PA
11982020-09-13 Pedro Alves <pedro@palves.net>
1199
1200 * NEWS: Document "-break-insert --qualified".
1201 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1202
77f2120b
PA
12032020-09-13 Pedro Alves <pedro@palves.net>
1204
1205 * linespec.c (classify_mtype, compare_msyms): Delete.
1206 (search_minsyms_for_name): Remove classification logic. Instead
1207 filter out trampoline symbols if we also found an external
1208 function of the same name.
1209
ed6a896c
JB
12102020-09-13 Joel Brobecker <brobecker@adacore.com>
1211
1212 * NEWS: Create a new section for the next release branch.
1213 Rename the section of the current branch, now that it has
1214 been cut.
1215
32aea73e
JB
12162020-09-13 Joel Brobecker <brobecker@adacore.com>
1217
1218 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1219 * version.in: Bump version to 11.0.50.DATE-git.
1220
8087c3fa
JB
12212020-09-12 Joel Brobecker <brobecker@adacore.com>
1222
1223 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1224
2a67f09d
FW
12252020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1226 Felix Willgerodt <Felix.Willgerodt@intel.com>
1227
1228 * gdbarch.sh: Added bfloat16 type.
1229 * gdbarch.c: Regenerated.
1230 * gdbarch.h: Regenerated.
1231 * gdbtypes.c (floatformats_bfloat16): New struct.
1232 (gdbtypes_post_init): Add builtin_bfloat16.
1233 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1234 (floatformats_bfloat16): New struct.
1235 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1236 (i386_ymm_type): Add field "v16_bfloat16"
1237 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1238 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1239 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1240 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1241 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1242 * features/i386/64bit-avx512.c: Regenerated.
1243 * features/i386/64bit-sse.xml: Add bfloat16 type.
1244 * features/i386/64bit-sse.c: Regenerated.
1245
1347d111
FW
12462020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1247
1248 * i386-tdep.c (i386_zmm_type): Fix field names.
1249 (i386_ymm_type): Fix field names.
1250
7a4e8e7d
TBA
12512020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1252
1253 * breakpoint.c: Fix typo in the help message of the
1254 "set breakpoint condition-evaluation" command.
1255
cf4ac4be
KR
12562020-09-10 Kamil Rytarowski <n54@gmx.com>
1257
1258 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1259 * (nbsd_nat_target::pid_to_exec_file)
1260 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1261 (nbsd_nat_target::post_startup_inferior)
1262 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1263 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1264 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1265 * (nbsd_thread_lister): Remove.
1266
f404573e
KR
12672020-09-10 Kamil Rytarowski <n54@gmx.com>
1268
1269 * fork-inferior.c (startup_inferior): Avoid double free.
1270
1ccb2c17
KR
12712020-09-10 Kamil Rytarowski <n54@gmx.com>
1272
1273 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1274 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1275
feedfcc7
KR
12762020-09-10 Kamil Rytarowski <n54@gmx.com>
1277
1278 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1279 * netbsd-nat.c: Include <sys/ptrace.h>.
1280 * (netbsd_nat::enable_proc_events): Add.
1281
c489f8c6
KR
12822020-09-10 Kamil Rytarowski <n54@gmx.com>
1283
1284 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1285 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1286 (netbsd_nat::for_each_thread): Add.
1287 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1288 "gdbsupport/common-debug.h".
1289 * (netbsd_nat::netbsd_thread_lister)
1290 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1291 (netbsd_nat::for_each_thread): Add.
1292
330662f6
KR
12932020-09-10 Kamil Rytarowski <n54@gmx.com>
1294
1295 * netbsd-nat.h: Include <unistd.h>.
1296 * (netbsd_nat::pid_to_exec_file): Add.
1297 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1298 * (netbsd_nat::pid_to_exec_file) Add.
1299
70b67307
KR
13002020-09-10 Kamil Rytarowski <n54@gmx.com>
1301
1302 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1303
99cf6da6
KR
13042020-09-10 Kamil Rytarowski <n54@gmx.com>
1305
1306 * netbsd-nat.h: New file.
1307 * netbsd-nat.c: Likewise.
1308
1b788fb6
TT
13092020-09-09 Tom Tromey <tromey@adacore.com>
1310
1311 * ada-lang.c (remove_extra_symbols): Do not increment when
1312 removing an element
1313
03b0a45f
TT
13142020-09-08 Tom Tromey <tromey@adacore.com>
1315
1316 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1317
3cae4447
TT
13182020-09-08 Tom Tromey <tromey@adacore.com>
1319
1320 PR win32/25302:
1321 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1322 (gdb_bfd_init_data): New function.
1323 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1324
7f08fd51
TBA
13252020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1326
1327 * infrun.c (fetch_inferior_event): Use
1328 `switch_to_target_no_thread` to switch the target.
1329
3e6ff933
TT
13302020-09-06 Tom Tromey <tom@tromey.com>
1331
1332 * symfile.h (dwarf2_free_objfile): Don't declare.
1333
e56798df
AKS
13342020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1335
1336 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1337 to match 16 byte real/complex type generated by Flang compiler.
1338
8f5c6526
TV
13392020-09-03 Tom de Vries <tdevries@suse.de>
1340
1341 PR breakpoint/26546
1342 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1343 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1344
c5065df0
SM
13452020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1346
1347 * maint.c (index_digits): New function.
1348 (struct maint_print_section_data): Remove.
1349 (print_bfd_section_info): Remove print_data parameter, add arg
1350 and index_digits.
1351 (print_objfile_section_info): Likewise.
1352 (print_bfd_section_info_maybe_relocated): Likewise (plus
1353 objfile).
1354 (maintenance_info_sections): Adjust calls.
1355
02c6f3f1
TT
13562020-09-02 Tom Tromey <tromey@adacore.com>
1357
1358 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1359 for null pointers.
1360 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1361
ef5e5b0b
SM
13622020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1363
1364 * bcache.h (struct bcache) <insert>: Change type of `added` to
1365 pointer to bool.
1366 * bcache.c (bcache::insert): Likewise.
1367 * gdbtypes.c (check_types_worklist): Adjust.
1368 * psymtab.c (add_psymbol_to_bcache): Adjust.
1369
973695d6
KB
13702020-08-31 Kevin Buettner <kevinb@redhat.com>
1371
1372 * corelow.c (unordered_set): Include.
1373 (class core_target): Add field 'm_core_unavailable_mappings'.
1374 (core_target::build_file_mappings): Print only one warning
1375 per inaccessible file. Add unavailable/broken mappings
1376 to m_core_unavailable_mappings.
1377 (core_target::xfer_partial): Call...
1378 (core_target::xfer_memory_via_mappings): New method.
1379
264fc0e2
SM
13802020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1381
1382 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1383 type to bool.
1384
2de01bdb
SM
13852020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1386
1387 * dwarf2/read.c (struct field_info): Fix indentation.
1388
f3bd50f1
SM
13892020-08-31 Simon Marchi <simon.marchi@efficios.com>
1390
1391 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1392 ordering in comment.
1393 * frame.c (frame_id_eq): Fix indentation.
1394
22b9b4b0
SL
13952020-08-31 Scott Linder <scott@scottlinder.com>
1396 Simon Marchi <simon.marchi@efficios.com>
1397
1398 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1399 inline frame ids in outer frame.
1400
84154d16
SM
14012020-08-31 Simon Marchi <simon.marchi@efficios.com>
1402
1403 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1404 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1405 (outer_frame_id): Use FID_STACK_OUTER instead of
1406 FID_STACK_INVALID.
1407 (frame_id_p): Don't check for outer_frame_id.
1408
8efaf6b3
SM
14092020-08-31 Simon Marchi <simon.marchi@efficios.com>
1410
1411 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1412 regnum/frame in value. Call allocate_value_lazy.
1413 * frame.c (frame_unwind_register_value): Use
1414 val_print_not_saved.
1415
fe1fe7ea
SM
14162020-08-31 Simon Marchi <simon.marchi@efficios.com>
1417
1418 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1419
f7c7700d
PA
14202020-08-29 Pedro Alves <pedro@palves.net>
1421
1422 * progspace.c (print_program_space): Use all_inferiors. Switch to
1423 the inferior before calling target_pid_to_str.
1424
e0814aae
TT
14252020-08-28 Tom Tromey <tom@tromey.com>
1426
1427 * xcoffread.c (xcoff_end_psymtab): Update comment.
1428 * dbxread.c (dbx_end_psymtab): Update comment.
1429
626d2320
TV
14302020-08-28 Tom de Vries <tdevries@suse.de>
1431
1432 PR breakpoint/26544
1433 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1434 event_location.
1435 (create_breakpoint): Same.
1436 (base_breakpoint_decode_location): Same.
1437 (bkpt_create_sals_from_location): Same.
1438 (bkpt_decode_location): Same.
1439 (bkpt_probe_create_sals_from_location): Same.
1440 (bkpt_probe_decode_location): Same.
1441 (tracepoint_create_sals_from_location): Same.
1442 (tracepoint_decode_location): Same.
1443 (tracepoint_probe_decode_location): Same.
1444 (strace_marker_create_sals_from_location): Same.
1445 (strace_marker_decode_location): Same.
1446 (create_sals_from_location_default): Same.
1447 (decode_location_default): Same.
1448 * breakpoint.h (struct breakpoint_ops): Same.
1449 (create_breakpoint): Same.
1450 * linespec.h (decode_line_full): Same.
1451 * linespec.c (decode_line_full): Same. Throw error if
1452 result.size () == 0.
1453
df631783
PA
14542020-08-27 Pedro Alves <pedro@palves.net>
1455
1456 PR gdb/26524
1457 * breakpoint.c (until_break_fsm) <location_breakpoint,
1458 caller_breakpoint>: Delete fields.
1459 <breakpoints>: New field.
1460 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1461 two individual breakpoints.
1462 (until_break_fsm::should_stop): Loop over breakpoints in the
1463 breakpoint vector.
1464 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1465 vector.
1466 (until_break_command): Handle location expanding into multiple
1467 sals.
1468
b2b38aa4
PA
14692020-08-27 Pedro Alves <pedro@palves.net>
1470
1471 PR gdb/26523
1472 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1473 bp_until breakpoints user-specified locations. Update intro
1474 comment.
1475
b886559f
SM
14762020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1477
1478 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1479 gdb_bfd_sections): New.
1480 * maint.c (print_bfd_section_info): Change param type to
1481 maint_print_section_data.
1482 (print_objfile_section_info): Likewise.
1483 (print_bfd_section_info_maybe_relocated): Likewise.
1484 (maintenance_info_sections): Use gdb_bfd_sections.
1485
4c6e63bf
SV
14862020-08-25 Shahab Vahedi <shahab@synopsys.com>
1487
1488 * MAINTAINERS: Add ARC target and maintainer.
1489
8d7f0635
AK
14902020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1491
1492 * configure.tgt: ARC support for GNU/Linux.
1493 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1494 * arc-linux-tdep.c: New file.
1495 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1496 * arc-tdep.c (arc_write_pc): Use it.
1497
fdd8731b
SV
14982020-08-25 Shahab Vahedi <shahab@synopsys.com>
1499
1500 * arc-tdep.c (arc_check_for_hardware_loop): New.
1501 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1502
22459524
SV
15032020-08-25 Shahab Vahedi <shahab@synopsys.com>
1504
1505 * arc-tdep.h: Include "gdbarch.h".
1506
995d3a19
SV
15072020-08-25 Shahab Vahedi <shahab@synopsys.com>
1508
1509 * arch/arc.h
1510 (arc_gdbarch_features): New class to stir the selection of target XML.
1511 (arc_create_target_description): Use FEATURES to choose XML target.
1512 (arc_lookup_target_description): Use arc_create_target_description
1513 to create _new_ target descriptions or return the already created
1514 ones if the FEATURES is the same.
1515 * arch/arc.c: Implementation of prototypes described above.
1516 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1517 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1518 * arc-tdep.c (*_feature_name): Make feature names consistent.
1519 (arc_register_feature): A new struct to hold information about
1520 registers of a particular target/feature.
1521 (arc_check_tdesc_feature): Check if XML provides registers in
1522 compliance with ARC_REGISTER_FEATURE structs.
1523 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1524 (determine_*_reg_feature_set): Which feature name to look for.
1525 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1526 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1527 to expected ISA enums to be used in arc_gdbarch_features structs.
1528 * features/Makefile (FEATURE_XMLFILES): Add new files.
1529 * gdb/features/arc/v1-aux.c: New file.
1530 * gdb/features/arc/v1-aux.xml: Likewise.
1531 * gdb/features/arc/v1-core.c: Likewise.
1532 * gdb/features/arc/v1-core.xml: Likewise.
1533 * gdb/features/arc/v2-aux.c: Likewise.
1534 * gdb/features/arc/v2-aux.xml: Likewise.
1535 * gdb/features/arc/v2-core.c: Likewise.
1536 * gdb/features/arc/v2-core.xml: Likewise.
1537 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1538
3945d2d7
GM
15392020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1540 Andrew Burgess <andrew.burgess@embecosm.com>
1541
1542 PR m2/26372
fc5d6901 1543 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1544 an assert. Remove single element array indexing pattern as the
1545 MULTI_SUBSCRIPT support will handle this case too.
1546
2677f2d3
SM
15472020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1548
1549 * value.h (valprint_check_validity): Move declaration from
1550 here...
1551 * valprint.h (valprint_check_validity): ... to here.
1552
c426fddb
SM
15532020-08-24 Simon Marchi <simon.marchi@efficios.com>
1554
1555 * debug.h: New file.
1556 * debug.c (debug_prefixed_vprintf): New function.
1557 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1558 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1559
1eb8556f
SM
15602020-08-24 Simon Marchi <simon.marchi@efficios.com>
1561
1562 * infrun.h (infrun_debug_printf_1): New function declaration.
1563 (infrun_debug_printf): New macro.
1564 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1565 throughout.
1566 (infrun_debug_printf): New function.
1567 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1568 (handle_jit_event): Likewise.
1569
b8fff44e
MW
15702020-08-21 Mark Wielaard <mark@klomp.org>
1571
1572 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1573
d19c3068
SM
15742020-08-22 Simon Marchi <simon.marchi@efficios.com>
1575
1576 * frame.c (enum class frame_id_status): New.
1577 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1578 (fprintf_frame): Update.
1579 (compute_frame_id): Set frame id status to "computing" on entry.
1580 Set it back to "not_computed" on failure and to "computed" on
1581 success.
1582 (get_frame_id): Assert the frame id is not being computed.
1583 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1584 (create_new_frame): Likewise.
1585 (frame_cleanup_after_sniffer): Update assert.
1586
b70e516e
SM
15872020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1588
1589 * regcache.c (pid_ptid_regcache_map): New type.
1590 (target_ptid_regcache_map): Remove.
1591 (target_pid_ptid_regcache_map): New type.
1592 (regcaches): Change type to target_pid_ptid_regcache_map.
1593 (get_thread_arch_aspace_regcache): Update.
1594 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1595 case.
1596 (regcaches_size): Update.
1597 (regcache_count): Update.
1598 (registers_changed_ptid_target_pid_test): New.
1599 (_initialize_regcache): Register new test.
1600
cdd9148a
SM
16012020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1602
1603 * regcache.c (regcache_count): New.
1604 (struct regcache_test_data): New.
1605 (regcache_test_data_up): New.
1606 (populate_regcaches_for_test): New.
1607 (regcaches_test): Remove.
1608 (get_thread_arch_aspace_regcache_test): New.
1609 (registers_changed_ptid_all_test): New.
1610 (registers_changed_ptid_target_test): New.
1611 (registers_changed_ptid_target_ptid_test): New.
1612 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1613 (_initialize_regcache): Register new tests.
1614
dd125343
SM
16152020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1616
1617 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1618 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1619 gdbarch and aspace parameter. Use current inferior's aspace.
1620 Validate regcache's arch value.
1621 (regcaches_test): Update.
1622
3ee93972
SM
16232020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1624
1625 * regcache.c (regcaches_test): Call registers_changed.
1626
33bf4c5c
TBA
16272020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1628
1629 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1630
c2fd7fae
AKS
16312020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1632
1633 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1634 to find the end of prologue for flang compiled binaries.
1635 * arm-tdep.c (arm_skip_prologue): Likewise.
1636 * i386-tdep.c (i386_skip_prologue): Likewise.
1637 * producer.c (producer_is_llvm): New function.
1638 (producer_parsing_tests): Added new tests for clang/flang.
1639 * producer.h (producer_is_llvm): New declaration.
1640
9327494e
SM
16412020-08-18 Simon Marchi <simon.marchi@efficios.com>
1642
1643 * linux-nat.c (linux_nat_debug_printf): New function.
1644 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1645
d138725a
AM
16462020-08-18 Aaron Merey <amerey@redhat.com>
1647
1648 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1649 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1650 (CLIBS): Add DEBUGINFOD_LIBS.
1651
f9b11e6b
ST
16522020-08-17 Sergei Trofimovich <siarheit@google.com>
1653
1654 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1655 'gdbarch_num_regs'.
1656
3ae7ab99
TT
16572020-08-17 Tom Tromey <tromey@adacore.com>
1658
1659 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1660 ada_get_decoded_value returns NULL.
1661
b017825f
TT
16622020-08-17 Tom Tromey <tromey@adacore.com>
1663
1664 * python/py-inferior.c (infpy_search_memory): Use
1665 gdb_py_object_from_ulongest.
1666 * python/py-infevents.c (create_inferior_call_event_object)
1667 (create_memory_changed_event_object): Use
1668 gdb_py_object_from_ulongest.
1669 * python/py-linetable.c (ltpy_entry_get_pc): Use
1670 gdb_py_object_from_ulongest.
1671
7635cf79
SM
16722020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1673
1674 * loc.c (class symbol_needs_eval_context): Fix indentation.
1675
f54be24b
SM
16762020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1677
1678 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1679 bool.
1680
53d5a2a5
TV
16812020-08-17 Tom de Vries <tdevries@suse.de>
1682
1683 PR gdb/26393
1684 * gdbtypes.c (dump_dynamic_prop): New function.
1685 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1686
547ce8f0
TV
16872020-08-15 Tom de Vries <tdevries@suse.de>
1688
1689 PR backtrace/26390
1690 * stack.c (print_frame_args): Temporarily set the selected
1691 frame to FRAME while printing the frame's arguments.
1692
6ea815e7
PFC
16932020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1694
1695 PR breakpoints/26385
1696 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1697 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1698
6e562fa3
PFC
16992020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1700
1701 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1702 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1703 and >= to check return value instead of == -1 and != -1.
1704
d369b608
SM
17052020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1706
1707 * utils.h (class gdb_argv) <as_array_view>: New method.
1708 * utils.c (gdb_argv_as_array_view_test): New.
1709 (_initialize_utils): Register selftest.
1710 * maint.c (maintenance_selftest): Use the new method.
1711
b31488a3
KR
17122020-08-13 Kamil Rytarowski <n54@gmx.com>
1713
1714 * target.h (supports_dumpcore, dumpcore): New
1715 function declarations.
1716 * target.c (supports_dumpcore, dumpcore): New
1717 functions.
1718 * target-delegates.c: Rebuild.
1719 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1720 and target_dumpcore ().
1721
002a3166
AM
17222020-08-13 Aaron Merey <amerey@redhat.com>
1723
1724 * debuginfod-support.c: Replace global variables with user_data.
1725
ece5bc8a
SM
17262020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1727
1728 * maint.c (maintenance_selftest): Split args and pass array_view
1729 to run_tests.
1730
6d8a0a5e
LM
17312020-08-12 Luis Machado <luis.machado@linaro.org>
1732
1733 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1734 type's length.
1735 Use %s and pulongest to print the length.
1736
7cf663a9
PA
17372020-08-12 Pedro Alves <palves@redhat.com>
1738
1739 * NEWS: Move "Multi-target debugging support" item to the
1740 "Changes since GDB 9" section.
1741
27c7b875
PA
17422020-08-12 Pedro Alves <palves@redhat.com>
1743
1744 PR gdb/26336
1745 * progspace.c (program_space::remove_objfile): Invalidate the
1746 frame cache.
1747
1796a2a1
TV
17482020-08-11 Tom de Vries <tdevries@suse.de>
1749
1750 * MAINTAINERS: Mark ms1 as deleted.
1751
f8e3fe0d
LM
17522020-08-10 Luis Machado <luis.machado@linaro.org>
1753
1754 PR gdb/26310
1755
1756 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1757 act accordingly.
1758 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1759 movz/str/stur/stp skipping behavior.
1760
cc308722
LM
17612020-08-10 Luis Machado <luis.machado@linaro.org>
1762
1763 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1764 struct user_sve_header instead of struct sve_context.
1765
041d9819
SM
17662020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1767
1768 * read.h (dwarf2_fetch_die_loc_sect_off,
1769 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1770 `void *` parameter with function_view.
1771 * read.c (dwarf2_fetch_die_loc_sect_off,
1772 dwarf2_fetch_die_loc_cu_off): Likewise.
1773 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1774 (per_cu_dwarf_call): Adjust.
1775 (get_frame_address_in_block_wrapper): Remove.
1776 (indirect_synthetic_pointer): Adjust.
1777 (get_ax_pc): Remove.
1778 (dwarf2_compile_expr_to_ax): Adjust.
1779
38f8aa06
TV
17802020-08-08 Tom de Vries <tdevries@suse.de>
1781
1782 PR build/26344
1783 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1784 constructor.
1785 * regcache.c (get_thread_arch_aspace_regcache): Same.
1786
a52b3ae2
TT
17872020-08-07 Tom Tromey <tromey@adacore.com>
1788
1789 * ravenscar-thread.c
1790 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1791 New method.
1792 (ravenscar_thread_target::wait): Check
1793 runtime_initialized.
1794 (ravenscar_thread_target::prepare_to_store)
1795 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1796 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1797 (ravenscar_thread_target::stopped_by_watchpoint)
1798 (ravenscar_thread_target::stopped_data_address)
1799 (ravenscar_thread_target::core_of_thread): Use
1800 scoped_restore_current_thread and
1801 set_base_thread_from_ravenscar_task.
1802
0e29517d
TT
18032020-08-07 Tom Tromey <tromey@adacore.com>
1804
1805 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1806
592f9bd7
TT
18072020-08-07 Tom Tromey <tromey@adacore.com>
1808
1809 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1810 update_inferior_ptid before update_thread_list.
1811 (temporarily_change_regcache_ptid): New class.
1812 (ravenscar_thread_target::fetch_registers)
1813 (ravenscar_thread_target::store_registers)
1814 (ravenscar_thread_target::prepare_to_store): Use base thread when
1815 forwarding operation.
1816
39e2018a
TT
18172020-08-07 Tom Tromey <tromey@adacore.com>
1818
1819 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1820 "is_pid" case.
1821
2080266b
TT
18222020-08-07 Tom Tromey <tromey@adacore.com>
1823
1824 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1825 New methods.
1826 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1827 first.
1828 (ravenscar_thread_target::add_thread): Rename from
1829 ravenscar_add_thread.
1830 (ravenscar_thread_target::update_thread_list): Use a lambda.
1831 (ravenscar_thread_target::xfer_partial): New method.
1832
78c02f21
TT
18332020-08-07 Tom Tromey <tromey@adacore.com>
1834
1835 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1836 gdb::function_view.
1837 (iterate_over_live_ada_tasks): Change type of argument.
1838 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1839 of argument.
1840
d5d833af
TT
18412020-08-07 Tom Tromey <tromey@adacore.com>
1842
1843 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1844 Remove.
1845 (ravenscar_thread_target::extra_thread_info): Remove.
1846 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1847 defer to target beneath for non-Ravenscar threads.
1848
a8ac85bb
TT
18492020-08-07 Tom Tromey <tromey@adacore.com>
1850
1851 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1852 get_base_thread_from_ravenscar_task>: Now methods.
1853 <m_cpu_map>: New member.
1854 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1855 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1856 (ravenscar_thread_target::task_is_currently_active): Update.
1857 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1858 Now a method.
1859 (ravenscar_thread_target::add_active_thread): Put initial thread
1860 into the m_cpu_map.
1861
550ab58d
TT
18622020-08-07 Tom Tromey <tromey@adacore.com>
1863
1864 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1865 event_ptid.
1866
e9546579
TT
18672020-08-07 Tom Tromey <tromey@adacore.com>
1868
1869 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1870 runtime_initialized.
1871
3d4470e5
TT
18722020-08-07 Tom Tromey <tromey@adacore.com>
1873
1874 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1875 add_active_thread.
1876 (ravenscar_thread_target::add_active_thread): Now public.
1877 (ravenscar_inferior_created): Call add_active_thread after pushing
1878 the target.
1879
888bdb2b
SM
18802020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1881
1882 * regcache.c (ptid_regcache_map): New type.
1883 (target_ptid_regcache_map): New type.
1884 (regcaches): Change type to target_ptid_regcache_map.
1885 (get_thread_arch_aspace_regcache): Update to regcaches' new
1886 type.
1887 (regcache_thread_ptid_changed): Likewise.
1888 (registers_changed_ptid): Likewise.
1889 (regcaches_size): Likewise.
1890 (regcaches_test): Update.
1891 (regcache_thread_ptid_changed): Update.
1892 * regcache.h (regcache_up): New type.
1893 * gdbsupport/ptid.h (hash_ptid): New struct.
1894
b161a60d
SM
18952020-08-07 Simon Marchi <simon.marchi@efficios.com>
1896
1897 * observable.h (thread_ptid_changed): Add parameter
1898 `process_stratum_target *`.
1899 * infrun.c (infrun_thread_ptid_changed): Add parameter
1900 `process_stratum_target *` and use it.
1901 (selftests): New namespace.
1902 (infrun_thread_ptid_changed): New function.
1903 (_initialize_infrun): Register selftest.
1904 * regcache.c (regcache_thread_ptid_changed): Add parameter
1905 `process_stratum_target *` and use it.
1906 (regcache_thread_ptid_changed): New function.
1907 (_initialize_regcache): Register selftest.
1908 * thread.c (thread_change_ptid): Pass target to
1909 thread_ptid_changed observable.
1910
d2854d8d
CT
19112020-08-06 Caroline Tice <cmtice@google.com>
1912
fe4c3d43
SM
1913 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1914 (struct dwp_sections): Update field comments. Add loclists and
1915 rnglists fields.
1916 (struct virtual_v2_dwo_sections): Rename struct to
1917 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1918 size & offset fields for loclists and rnglists.
1919 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1920 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1921 skipping dummy type units.
1922 (create_dwp_hash_table): Update the large comment above the function to
1923 discuss Version 5 DWP files as well, with references. Update all the
1924 version checks in the function to check for version 5 as well. Add new
1925 section at the end to create dwp hash table for version 5.
1926 (create_dwp_v2_section): Rename function to
1927 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1928 Add V5 to error message text.
1929 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1930 into calls to create_dwp_v2_or_v5_section.
1931 (create_dwo_unit_in_dwp_v5): New function.
1932 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1933 check for version2; add else clause to handle version 5.
1934 (open_and_init_dwo_file): Add code to check dwarf version & only call
1935 create_debug_types_hash_table (with sections.types) if version is not 5;
1936 else call create_debug_type_hash_table, with sections.info.
1937 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1938 version 5.
1939 (dwarf2_locate_v5_dwp_sections): New function.
1940 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1941 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1942
159ed7d9
SM
19432020-08-06 Simon Marchi <simon.marchi@efficios.com>
1944
1945 * regcache.h (class regcache): Remove friend
1946 registers_changed_ptid.
1947 <regcache_thread_ptid_changed>: Remove.
1948 <regcaches>: Remove.
1949 * regcache.c (regcache::regcaches): Rename to...
1950 (regcaches): ... this. Make static.
1951 (get_thread_arch_aspace_regcache): Update.
1952 (regcache::regcache_thread_ptid_changed): Rename to...
1953 (regcache_thread_ptid_changed): ... this. Update.
1954 (class regcache_access): Remove.
1955 (regcaches_test): Update.
1956 (_initialize_regcache): Update.
1957 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1958 <forward_list>.
1959
174981ae
SM
19602020-08-06 Simon Marchi <simon.marchi@efficios.com>
1961
1962 * regcache.h (class regcache) <current_regcache>: Rename to...
1963 <regcaches>: ... this. Move doc here.
1964 * regcache.c (regcache::current_regcache) Rename to...
1965 (regcache::regcaches): ... this. Move doc to header.
1966 (get_thread_arch_aspace_regcache): Update.
1967 (regcache::regcache_thread_ptid_changed): Update.
1968 (registers_changed_ptid): Update.
1969 (class regcache_access) <current_regcache_size>: Rename to...
1970 <regcaches_size>: ... this.
1971 (current_regcache_test): Rename to...
1972 (regcaches_test): ... this.
1973 (_initialize_regcache): Update.
1974
ed908db6
VC
19752020-08-06 Victor Collod <vcollod@nvidia.com>
1976
1977 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1978
b5582ab7
KB
19792020-08-05 Kevin Buettner <kevinb@redhat.com>
1980
1981 * corelow.c (core_target::build_file_mappings): Don't output
1982 null pathname in warning.
1983
ea946b86
SM
19842020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1985
1986 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1987 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1988 gdb.dwarf2/dw2-single-line-discriminators.exp,
1989 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1990
57d02173
TT
19912020-08-05 Tom Tromey <tromey@adacore.com>
1992
1993 PR rust/26197:
1994 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1995 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1996 Fix off-by-one and type size errors in ordinary case.
1997
5555c86d
TV
19982020-08-05 Tom de Vries <tdevries@suse.de>
1999
2000 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2001 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2002
97916bfe
SM
20032020-08-04 Simon Marchi <simon.marchi@efficios.com>
2004
2005 * frame.h (frame_id_p): Return bool.
2006 (frame_id_artificial_p): Return bool.
2007 (frame_id_eq): Return bool.
2008 (has_stack_frames): Return bool.
2009 (get_selected_frame): Fix typo in comment.
2010 (get_frame_pc_if_available): Return bool.
2011 (get_frame_address_in_block_if_available): Return bool.
2012 (get_frame_func_if_available): Return bool.
2013 (read_frame_register_unsigned): Return bool.
2014 (get_frame_register_bytes): Return bool.
2015 (safe_frame_unwind_memory): Return bool.
2016 (deprecated_frame_register_read): Return bool.
2017 (frame_unwinder_is): Return bool.
2018 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2019 bool.
2020 <this_id::p>: Likewise.
2021 <prev_p>: Likewise.
2022 (frame_stash_add): Return bool.
2023 (get_frame_id): Use bool.
2024 (frame_id_build_special) Use bool.
2025 (frame_id_build_unavailable_stack): Use bool.
2026 (frame_id_build): Use bool.
2027 (frame_id_p): Return bool, use true/false instead of 1/0.
2028 (frame_id_artificial_p): Likewise.
2029 (frame_id_eq): Likewise.
2030 (frame_id_inner): Likewise.
2031 (get_frame_func_if_available): Likewise.
2032 (read_frame_register_unsigned): Likewise.
2033 (deprecated_frame_register_read): Likewise.
2034 (get_frame_register_bytes): Likewise.
2035 (has_stack_frames): Likewise.
2036 (inside_main_func): Likewise.
2037 (inside_entry_func): Likewise.
2038 (get_frame_pc_if_available): Likewise.
2039 (get_frame_address_in_block_if_available): Likewise.
2040 (frame_unwinder_is): Likewise.
2041 (safe_frame_unwind_memory): Likewise.
2042 (frame_unwind_arch): Likewise.
2043
fedfee88
SM
20442020-08-04 Simon Marchi <simon.marchi@efficios.com>
2045
2046 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2047 type to cached_copy_status.
2048 (fprintf_frame): Adjust.
2049 (get_frame_func_if_available): Adjust.
2050 (frame_cleanup_after_sniffer): Adjust.
2051
6cfa9b59
MW
20522020-08-04 Mark Wielaard <mark@klomp.org>
2053
2054 * MAINTAINERS (Write After Approval): Update email address.
2055
66d6346b
SM
20562020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2057
2058 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2059 dynamic_prop::const_val.
2060
8a6d5e35
SM
20612020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2062
2063 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2064 dynamic_prop::kind.
2065
51d6067d
SM
20662020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2067
2068 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2069
b26e2ae7
JM
20702020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2071
2072 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2073
39791af2
JM
20742020-08-04 Weimin Pan <weimin.pan@oracle.com>
2075 Jose E. Marchesi <jose.marchesi@oracle.com>
2076
2077 * configure.tgt: Add entry for bpf-*-*.
2078 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2079 (ALLDEPFILES): Add bpf-tdep.c.
2080 * bpf-tdep.c: New file.
2081 * MAINTAINERS: Add bpf target and maintainer.
2082 * NEWS: Mention the support for the new target.
2083
521894aa
TV
20842020-08-04 Tom de Vries <tdevries@suse.de>
2085
2086 PR symtab/23270
2087 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2088 Error.
2089
5d6356e9
JB
20902020-08-03 John Baldwin <jhb@FreeBSD.org>
2091
2092 * syscalls/freebsd.xml: Regenerate.
2093
0cf82b81
JB
20942020-08-03 John Baldwin <jhb@FreeBSD.org>
2095
2096 * syscalls/update-freebsd.sh: Fix usage and year range.
2097
8f34b746
TV
20982020-08-03 Tom de Vries <tdevries@suse.de>
2099
2100 PR symtab/26333
2101 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2102 DW_LNE_lo_user/DW_LNE_hi_user range.
2103
5e500d33
SM
21042020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2105
2106 PR ada/26318
2107 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2108 kind.
2109
78319c15
TBA
21102020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2111
2112 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2113
4c55e970
TBA
21142020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2115
2116 * breakpoint.c (set_breakpoint_condition): Update the condition
2117 expressions after checking that the input condition string parses
2118 successfully and does not contain junk at the end.
2119
1e620590
TBA
21202020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2121
2122 * breakpoint.c (set_breakpoint_condition): Update the
2123 condition string after parsing the new condition successfully.
2124
c8693053
RO
21252020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2126
2127 * proc-api.c (_STRUCTURED_PROC): Don't define.
2128 * proc-events.c: Likewise.
2129 * proc-flags.c: Likewise.
2130 * proc-why.c: Likewise.
2131 * procfs.c: Likewise.
2132
2133 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2134 * configure, config.in: Regenerate.
2135
5a99adb8
TV
21362020-07-30 Tom de Vries <tdevries@suse.de>
2137
2138 PR build/26320
2139 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2140 m_red/m_green/m_blue in a union.
2141
8ba83e91
TV
21422020-07-29 Tom de Vries <tdevries@suse.de>
2143
2144 PR tdep/26280
2145 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2146
f75a0693
AB
21472020-07-28 Tom Tromey <tromey@adacore.com>
2148
2149 PR symtab/26270:
2150 * symtab.h (find_pc_partial_function_sym): Declare.
2151 * cli/cli-cmds.c (disassemble_command): Use
2152 find_pc_partial_function_sym. Check asm_demangle.
2153 * blockframe.c (cache_pc_function_sym): New global.
2154 (cache_pc_function_name): Remove.
2155 (clear_pc_function_cache): Update.
2156 (find_pc_partial_function_sym): New function, from
2157 find_pc_partial_function.
2158 (find_pc_partial_function): Rewrite using
2159 find_pc_partial_function_sym.
2160
16f3242c
TT
21612020-07-28 Tom Tromey <tromey@adacore.com>
2162
2163 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2164 help. Add usage.
2165
4888741a
TT
21662020-07-28 Tom Tromey <tromey@adacore.com>
2167
2168 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2169 <DW_OP_GNU_variable_value>: Cast to address type.
2170
4d46f402
KR
21712020-07-28 Kamil Rytarowski <n54@gmx.com>
2172
2173 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2174 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2175 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2176 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2177 (nbsd_get_siginfo_type): New.
2178 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2179 (_initialize_nbsd_tdep): New.
2180
d70f978b
L
21812020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2182
2183 PR binutils/26301
2184 * configure: Regenerated.
2185
377170fa
L
21862020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2187
2188 PR binutils/26301
2189 * configure: Regenerated.
2190
43d5901d
AB
21912020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2192
2193 * python/py-frame.c: Remove 'user-regs.h' include.
2194 (frapy_read_register): Rewrite to make use of
2195 gdbpy_parse_register_id.
2196 * python/py-registers.c (gdbpy_parse_register_id): New function,
2197 moved here from python/py-unwind.c. Updated the return type, and
2198 also accepts register descriptor objects.
2199 * python/py-unwind.c: Remove 'user-regs.h' include.
2200 (pyuw_parse_register_id): Moved to python/py-registers.c.
2201 (unwind_infopy_add_saved_register): Update to use
2202 gdbpy_parse_register_id.
2203 (pending_framepy_read_register): Likewise.
2204 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2205
14fa8fb3
AB
22062020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2207
2208 * python/py-registers.c: Add 'user-regs.h' include.
2209 (register_descriptor_iter_find): New function.
2210 (register_descriptor_iterator_object_methods): New static global
2211 methods array.
2212 (register_descriptor_iterator_object_type): Add pointer to methods
2213 array.
2214
ddce1758
JB
22152020-07-27 John Baldwin <jhb@FreeBSD.org>
2216
2217 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2218 for all architectures on FreeBSD 11.3 and later.
2219
a4089f52
TT
22202020-07-27 Tom Tromey <tromey@adacore.com>
2221
2222 * gcore.h (load_corefile): Don't declare.
2223
95420d30
TV
22242020-07-27 Tom de Vries <tdevries@suse.de>
2225
2226 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2227 * config.in: Regenerate.
2228 * configure: Regenerate.
2229
05a6b8c2
EZ
22302020-07-26 Eli Zaretskii <eliz@gnu.org>
2231
2232 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2233 ws2tcpip.h. When checking whether socklen_t type is defined, use
2234 ws2tcpip.h if it is available and sys/socket.h isn't.
2235 * configure: Regenerate.
2236 * config.in: Regenerate.
2237
e79eb02f
AB
22382020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2239
2240 PR fortran/23051
2241 PR fortran/26139
2242 * valops.c (value_ind): Pass address to
2243 readjust_indirect_value_type.
2244 * value.c (readjust_indirect_value_type): Make parameter
2245 non-const, and add extra address parameter. Resolve original type
2246 before using it.
2247 * value.h (readjust_indirect_value_type): Update function
2248 signature and comment.
2249
876518dd
TV
22502020-07-25 Tom de Vries <tdevries@suse.de>
2251
2252 PR symtab/26243
2253 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2254 entries.
2255
f6720b1c
AM
22562020-07-24 Aaron Merey <amerey@redhat.com>
2257
2258 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2259 * configure: Rebuild.
2260
513487e1
KB
22612020-07-23 Kevin Buettner <kevinb@redhat.com>
2262
2263 PR corefiles/26294
2264 * corelow.c (_initialize_corelow): Add period to help text
2265 for "maintenance print core-file-backed-mappings".
2266
e7bc9db8
PA
22672020-07-23 Pedro Alves <pedro@palves.net>
2268
2269 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2270 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2271 meanwhile.
2272 * frame.c (frame_cache_generation, get_frame_cache_generation):
2273 New.
2274 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2275 (get_prev_frame_if_no_cycle): On exception, don't touch
2276 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2277 * frame.h (get_frame_cache_generation): Declare.
2278
90fcc466
TV
22792020-07-23 Tom de Vries <tdevries@suse.de>
2280
2281 PR tui/26282
2282 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2283 New default constructor.
2284
78344df7
AB
22852020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2286
2287 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2288 exclude non-statement entries.
2289
b089853a
KB
22902020-07-22 Kevin Buettner <kevinb@redhat.com>
2291
2292 * NEWS (New commands): Mention new command
2293 "maintenance print core-file-backed-mappings".
2294
09c2f5d4
KB
22952020-07-22 Kevin Buettner <kevinb@redhat.com>
2296
2297 * corelow.c (gdbcmd.h): Include.
2298 (core_target::info_proc_mappings): New method.
2299 (get_current_core_target): New function.
2300 (maintenance_print_core_file_backed_mappings): New function.
2301 (_initialize_corelow): Add core-file-backed-mappings to
2302 "maint print" commands.
2303
9c5ec5c2 23042020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2305
9c5ec5c2
KB
2306 * linux-tdep.c (dump_note_entry_p): New function.
2307 (linux_dump_mapping_p_ftype): New typedef.
2308 (linux_find_memory_regions_full): Add new parameter,
2309 should_dump_mapping_p.
2310 (linux_find_memory_regions): Adjust call to
2311 linux_find_memory_regions_full.
2312 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2313 call to linux_find_memory_regions_full.
2314
db082f59
KB
23152020-07-22 Kevin Buettner <kevinb@redhat.com>
2316
2317 * corelow.c (solist.h, unordered_map): Include.
2318 (class core_target): Add field m_core_file_mappings and
2319 method build_file_mappings.
2320 (core_target::core_target): Call build_file_mappings.
2321 (core_target::~core_target): Free memory associated with
2322 m_core_file_mappings.
2323 (core_target::build_file_mappings): New method.
2324 (core_target::xfer_partial): Use m_core_file_mappings
2325 for memory transfers.
2326 * linux-tdep.c (linux_read_core_file_mappings): New
2327 function.
2328 (linux_core_info_proc_mappings): Rewrite to use
2329 linux_read_core_file_mappings.
2330 (linux_init_abi): Register linux_read_core_file_mappings.
2331
7e183d27
KB
23322020-07-22 Kevin Buettner <kevinb@redhat.com>
2333
2334 * arch-utils.c (default_read_core_file_mappings): New function.
2335 * arch-utils.c (default_read_core_file_mappings): Declare.
2336 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2337 * gdbarch.h, gdbarch.c: Regenerate.
2338
2735d421
KB
23392020-07-22 Kevin Buettner <kevinb@redhat.com>
2340
2341 PR corefiles/25631
2342 * corelow.c (core_target:xfer_partial): Revise
2343 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2344 case after first checking the stratum beneath the core
2345 target.
2346 (has_all_memory): Return true.
2347 * target.c (raw_memory_xfer_partial): Revise comment
2348 regarding use of has_all_memory.
2349
e56cb451
KB
23502020-07-22 Kevin Buettner <kevinb@redhat.com>
2351
2352 * exec.h (section_table_xfer_memory): Revise declaration,
2353 replacing section name parameter with an optional callback
2354 predicate.
2355 * exec.c (section_table_xfer_memory): Likewise.
2356 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2357 of section_table_xfer_memory.
2358
32fa152e
TT
23592020-07-22 Tom Tromey <tromey@adacore.com>
2360
2361 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2362 lookup_symbol_search_name.
2363
a67a1c41
AB
23642020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2365
2366 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2367 redundant local variable.
2368 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2369 reference, not pointer, update code accordingly.
2370
a7b4ff4f
SM
23712020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2372 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2373
2374 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2375 * jit.c (jit_breakpoint_re_set_internal): Use the
2376 `skip_jit_symbol_lookup` field.
2377
2340e834
SM
23782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2379 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2380
2381 * jit.c (jit_read_descriptor): Define the descriptor address once,
2382 use twice.
2383 (jit_breakpoint_deleted): Move the declaration of the loop variable
2384 `iter` into the loop header.
2385 (jit_breakpoint_re_set_internal): Move the declaration of the local
2386 variable `objf_data` to the first point of definition.
2387 (jit_event_handler): Move the declaration of local variables
2388 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2389 Rename `objf` to `jited`.
2390
c1072906
SM
23912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2392
2393 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2394 Remove.
2395 * jit.c (get_jiter_objfile_data): Update.
2396
c8474dc3
TBA
23972020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2398 Simon Marchi <simon.marchi@polymtl.ca>
2399
2400 * jit.c (struct jit_program_space_data): Remove.
2401 (jit_program_space_key): Remove.
2402 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2403 stuff.
2404 (get_jit_program_space_data): Remove.
2405 (jit_breakpoint_deleted): Iterate on all of the program space's
2406 objfiles.
2407 (jit_inferior_init): Likewise.
2408 (jit_breakpoint_re_set_internal): Likewise. Also change return
2409 type to void.
2410 (jit_breakpoint_re_set): Pass current_program_space to
2411 jit_breakpoint_re_set_internal.
2412
77208eb7
SM
24132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2414
2415 * jit.h (struct jiter_objfile_data) <cached_code_address,
2416 jit_breakpoint>: Move to here from ...
2417 * jit.c (jit_program_space_data): ... here.
2418 (jiter_objfile_data::~jiter_objfile_data): Update.
2419 (jit_breakpoint_deleted): Update.
2420 (jit_breakpoint_re_set_internal): Update.
2421
8c1c720f
SM
24222020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2423
2424 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2425 checks.
2426 (jit_read_descriptor): Remove NULL check.
2427 (jit_event_handler): Add an assertion.
2428
0e74a041
SM
24292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2430
2431 * jit.h (struct jit_objfile_data): Split into...
2432 (struct jiter_objfile_data): ... this ...
2433 (struct jited_objfile_data): ... and this.
2434 * objfiles.h (struct objfile) <jit_data>: Remove.
2435 <jiter_data, jited_data>: New fields.
2436 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2437 (jiter_objfile_data::~jiter_objfile_data): ... this.
2438 (get_jit_objfile_data): Rename to ...
2439 (get_jiter_objfile_data): ... this.
2440 (add_objfile_entry): Update.
2441 (jit_read_descriptor): Use get_jiter_objfile_data.
2442 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2443 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2444 (jit_inferior_exit_hook): Use objfile's jited_data field.
2445
238b5c9f
SM
24462020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2447
2448 * jit.h: Forward-declare `struct minimal_symbol`.
2449 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2450 constructor, destructor, and an objfile* field.
2451 * jit.c (jit_objfile_data): Remove.
2452 (struct jit_objfile_data): Migrate from here to jit.h.
2453 (jit_objfile_data::~jit_objfile_data): New destructor
2454 implementation with code moved from free_objfile_data.
2455 (free_objfile_data): Delete.
2456 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2457 (jit_find_objf_with_entry_addr): Ditto.
2458 (jit_inferior_exit_hook): Ditto.
2459 (_initialize_jit): Remove the call to
2460 register_objfile_data_with_cleanup.
2461 * objfiles.h (struct objfile) <jit_data>: New field.
2462
fe053b9e
TBA
24632020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2464
2465 * jit.h: Forward-declare `struct objfile`.
2466 (jit_event_handler): Add a second parameter, the JITer objfile.
2467 * jit.c (jit_read_descriptor): Change the signature to take the
2468 JITer objfile as an argument instead of the jit_program_space_data.
2469 (jit_inferior_init): Update the call to jit_read_descriptor.
2470 (jit_event_handler): Use the new JITer objfile argument when calling
2471 jit_read_descriptor.
2472 * breakpoint.c (handle_jit_event): Update the call to
2473 jit_event_handler to pass the JITer objfile.
2474
4cec0c66
JB
24752020-07-21 John Baldwin <jhb@FreeBSD.org>
2476
2477 * gdbarch.c: Regenerate.
2478 * gdbarch.h: Regenerate.
2479 * gdbarch.sh (handle_segmentation_fault): Remove method.
2480 * infrun.c (handle_segmentation_fault): Remove.
2481 (print_signal_received_reason): Remove call to
2482 handle_segmentation_fault.
2483
0e42f66a
JB
24842020-07-21 John Baldwin <jhb@FreeBSD.org>
2485
2486 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2487 Rename to sparc64_linux_report_signal_info and add siggnal
2488 argument.
2489 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2490 instead of sparc64_linux_handle_segmentation_fault.
2491
77bdfeb2
JB
24922020-07-21 John Baldwin <jhb@FreeBSD.org>
2493
2494 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2495 i386_linux_report_signal_info instead of
2496 i386_linux_handle_segmentation_fault.
2497 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2498 to i386_linux_report_signal_info and add siggnal argument.
2499 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2500 of i386_linux_handle_segmentation_fault.
2501 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2502 to i386_linux_report_signal_info and add siggnal argument.
2503
ad97bfc5
JB
25042020-07-21 John Baldwin <jhb@FreeBSD.org>
2505
2506 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2507 hook if present.
2508
272bb05c
JB
25092020-07-21 John Baldwin <jhb@FreeBSD.org>
2510
2511 * gdbarch.c: Regenerate.
2512 * gdbarch.h: Regenerate.
2513 * gdbarch.sh (report_signal_info): New method.
2514 * infrun.c (print_signal_received_reason): Invoke gdbarch
2515 report_signal_info hook if present.
2516
baf8791e
AB
25172020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * python/py-registers.c : Add 'unordered_map' include.
2520 (gdbpy_new_reggroup): Renamed to...
2521 (gdbpy_get_reggroup): ...this. Update to only create register
2522 group descriptors when needed.
2523 (gdbpy_reggroup_iter_next): Update.
2524
f7306dac
AB
25252020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2526
2527 * python/py-registers.c (gdbpy_register_object_data): New static
2528 global.
2529 (gdbpy_register_object_data_init): New function.
2530 (gdbpy_new_register_descriptor): Renamed to...
2531 (gdbpy_get_register_descriptor): ...this, and update to reuse
2532 existing register descriptors where possible.
2533 (gdbpy_register_descriptor_iter_next): Update.
2534 (gdbpy_initialize_registers): Register new gdbarch data.
2535
05c309a8
SM
25362020-07-21 Simon Marchi <simon.marchi@efficios.com>
2537
2538 * linux-nat.c (stopped_pids): Make static.
2539
d1fd641e
SM
25402020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2541
2542 PR ada/26235
2543 * gdbtypes.c (ada_discrete_type_low_bound,
2544 ada_discrete_type_high_bound): Handle undefined bounds.
2545
1de14d77
KR
25462020-07-21 Kamil Rytarowski <n54@gmx.com>
2547
2548 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2549 declaration.
2550 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2551 function.
2552
ed810cc7
JB
25532020-07-20 John Baldwin <jhb@FreeBSD.org>
2554
2555 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2556 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2557 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2558 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2559 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2560 method.
2561
ae5369e7
LC
25622020-07-20 Ludovic Courtès <ludo@gnu.org>
2563
2564 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2565 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2566 which are deprecated in Guile 3.0.
2567 * configure.ac (try_guile_versions): Add "guile-3.0".
2568 * configure (try_guile_versions): Regenerate.
2569 * NEWS: Update entry.
2570
68cf161c
LC
25712020-07-20 Ludovic Courtès <ludo@gnu.org>
2572 Doug Evans <dje@google.com>
2573
2574 PR gdb/21104
2575 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2576 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2577 USING_GUILE_BEFORE_2_2.
2578 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2579 Change type to 'scm_t_port_type *'.
2580 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2581 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2582 parameter and honor it. Update callers.
2583 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2584 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2585 functions.
2586 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2587 USING_GUILE_BEFORE_2_2.
2588 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2589 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2590 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2591 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2592 and 'SCM_PORT_TYPE'.
2593 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2594 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2595 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2596 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2597 [!USING_GUILE_BEFORE_2_2]: New functions.
2598 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2599 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2600 'gdbscm_memory_port_read'.
2601 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2602 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2603 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2604 function.
2605 (ioscm_init_memory_port): Remove.
2606 (ioscm_init_memory_port_stream): New function
2607 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2608 function.
2609 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2610 Return scm_from_uint (0).
2611 (gdbscm_set_memory_port_read_buffer_size_x)
2612 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2613 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2614 Return scm_from_uint (0).
2615 (gdbscm_set_memory_port_write_buffer_size_x)
2616 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2617 * configure.ac (try_guile_versions): Add "guile-2.2".
2618 * configure: Regenerate.
2619 * NEWS: Add entry.
2620
aee91db3
TT
26212020-07-18 Tom Tromey <tom@tromey.com>
2622
2623 * linux-nat.c (linux_multi_process): Remove.
2624 (linux_nat_target::supports_multi_process): Return true.
2625
0e267416
AB
26262020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2627
2628 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2629 (riscv_lookup_target_description): Return pointer out of
2630 unique_ptr.
2631 * target-descriptions.c (allocate_target_description): Add
2632 comment.
2633 (target_desc_deleter::operator()): Likewise.
2634 * target-descriptions.h (struct target_desc_deleter): Moved to
2635 gdbsupport/tdesc.h.
2636 (target_desc_up): Likewise.
2637
f80c8ec4
TT
26382020-07-17 Tom Tromey <tromey@adacore.com>
2639
2640 * linux-nat.c (linux_nat_target::supports_non_stop)
2641 (linux_nat_target::always_non_stop_p): Use "true".
2642 (linux_nat_target::supports_disable_randomization): Use "true" and
2643 "false".
2644
d0ce17d8
CT
26452020-07-16 Caroline Tice <cmtice@google.com>
2646
2647 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2648 (RNGLIST_HEADER_SIZE64): New constant definition.
2649 (struct dwop_section_names): Add rnglists_dwo.
2650 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2651 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2652 (struct dwo_sections): Add rnglists field.
2653 (read_attribut_reprocess): Add tag parameter.
2654 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2655 (cu_debug_rnglists_section): New function (decl & definition).
2656 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2657 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2658 die whose range is being checked; get rnglist section from
2659 cu_debug_rnglists_section, to get from either objfile or dwo file as
2660 appropriate. Add cases for DW_RLE_base_addressx,
2661 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2662 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2663 test inside if-condition and updating complaint message.
2664 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2665 dwarf2_rnglists_process.
2666 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2667 dwarf2_ranges_process.
2668 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2669 need_ranges_base and update comment appropriately. Also pass die tag
2670 to dwarf2_ranges_read.
2671 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2672 need_ranges_base and update comment appropriately. Also pass die tag
2673 to dwarf2_ranges_process.
2674 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2675 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2676 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2677 need_ranges_base and update comment appropriately. Also pass die tag
2678 to read_attribute_reprocess and dwarf2_ranges_read.
2679 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2680 and update function comment appropriately.
2681 (read_loclist_index): Call read_loclists_rnglists_header instead of
2682 read_loclist_header.
2683 (read_rnglist_index): New function.
2684 (read_attribute_reprocess): Add tag parameter. Add code for
2685 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2686 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2687
3dcc261c
AB
26882020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2689
2690 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2691 being resolved.
2692
ccb9eba6
AB
26932020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2694
2695 * arch-utils.c (show_architecture): Update formatting of messages.
2696
cf88be68
SM
26972020-07-12 Simon Marchi <simon.marchi@efficios.com>
2698
2699 * gdbtypes.h (struct type) <bounds>: Handle array and string
2700 types.
2701 * ada-lang.c (assign_aggregate): Use type::bounds on
2702 array/string type.
2703 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2704 * c-varobj.c (c_number_of_children): Likewise.
2705 (c_describe_child): Likewise.
2706 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2707 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2708 (f_type_print_base): Likewise.
2709 * f-valprint.c (f77_array_offset_tbl): Likewise.
2710 (f77_get_upperbound): Likewise.
2711 (f77_print_array_1): Likewise.
2712 * guile/scm-type.c (gdbscm_type_range): Likewise.
2713 * m2-typeprint.c (m2_array): Likewise.
2714 (m2_is_long_set_of_type): Likewise.
2715 * m2-valprint.c (get_long_set_bounds): Likewise.
2716 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2717 * python/py-type.c (typy_range): Likewise.
2718 * rust-lang.c (rust_internal_print_type): Likewise.
2719 * type-stack.c (type_stack::follow_types): Likewise.
2720 * valarith.c (value_subscripted_rvalue): Likewise.
2721 * valops.c (value_cast): Likewise.
2722
509971ae
SM
27232020-07-12 Simon Marchi <simon.marchi@efficios.com>
2724
2725 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2726 callers to use the equivalent accessor methods.
2727
107406b7
SM
27282020-07-12 Simon Marchi <simon.marchi@efficios.com>
2729
2730 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2731 (struct type) <bit_stride>: New method.
2732 (TYPE_BIT_STRIDE): Remove.
2733 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2734
bb789949
SM
27352020-07-12 Simon Marchi <simon.marchi@efficios.com>
2736
2737 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2738 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2739 callers to use the equivalent accessor methods instead.
2740
39498edb
SM
27412020-07-12 Simon Marchi <simon.marchi@efficios.com>
2742
2743 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2744 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2745 callers to use the equivalent accessor methods instead.
2746
3b606f38
SM
27472020-07-12 Simon Marchi <simon.marchi@efficios.com>
2748
2749 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2750 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2751 to use dynamic_prop::kind.
2752
064d9cb9
SM
27532020-07-12 Simon Marchi <simon.marchi@efficios.com>
2754
2755 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2756 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2757 to get the bound property's kind and check against
2758 PROP_UNDEFINED.
2759
5537ddd0
SM
27602020-07-12 Simon Marchi <simon.marchi@efficios.com>
2761
2762 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2763 all callers to use type::range_bounds followed by
2764 dynamic_prop::{low,high}.
2765
8c2e4e06
SM
27662020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2767
2768 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2769 const_val, set_const_val, baton, set_locexpr, set_loclist,
2770 set_addr_offset, variant_parts, set_variant_parts,
2771 original_type, set_original_type>: New methods.
2772 <kind>: Rename to...
2773 <m_kind>: ... this. Update all users to use the new methods
2774 instead.
2775 <data>: Rename to...
2776 <m_data>: ... this. Update all users to use the new methods
2777 instead.
2778
7c6f2712
SM
27792020-07-12 Simon Marchi <simon.marchi@efficios.com>
2780
2781 * gdbtypes.c (get_discrete_bounds): Return failure if
2782 the range type's bounds are not both defined and constant
2783 values.
2784 (get_array_bounds): Update comment. Remove undefined bound check.
2785
599088e3
SM
27862020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2787
2788 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2789 the type::bounds method directly.
2790
c4dfcb36
SM
27912020-07-12 Simon Marchi <simon.marchi@efficios.com>
2792
2793 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2794 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2795 are used to set the range type's bounds to use set_bounds.
2796
0a278aa7
PW
27972020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2798
2799 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2800
cce20f10
PA
28012020-07-10 Pedro Alves <pedro@palves.net>
2802
2803 * gdbthread.h (inferior_ref): Define.
2804 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2805 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2806 * thread.c
2807 (scoped_restore_current_thread::restore):
2808 Adjust to gdb::ref_ptr.
2809 (scoped_restore_current_thread::~scoped_restore_current_thread):
2810 Remove manual decref handling.
2811 (scoped_restore_current_thread::scoped_restore_current_thread):
2812 Adjust to use
2813 inferior_ref::new_reference/thread_info_ref::new_reference.
2814 Incref the thread before calling get_frame_id instead of after.
2815 Let TARGET_CLOSE_ERROR propagate.
2816
6d7aa592
PA
28172020-07-10 Pedro Alves <pedro@palves.net>
2818
2819 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2820 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2821 NOT_AVAILABLE_ERROR.
2822 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2823 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2824
b3e3a4c1
SM
28252020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2826 Pedro Alves <pedro@palves.net>
2827
2828 PR gdb/26199
2829 * infrun.c (threads_are_resumed_pending_p): Delete.
2830 (do_target_wait): Remove threads_are_executing and
2831 threads_are_resumed_pending_p checks from the inferior_matches
2832 lambda. Update comments.
2833
d6cc5d98
PA
28342020-07-10 Pedro Alves <pedro@palves.net>
2835
2836 PR gdb/26199
2837 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2838 executing threads.
2839
7d3badc6
PA
28402020-07-10 Pedro Alves <pedro@palves.net>
2841
2842 PR gdb/26199
2843 * infrun.c (handle_no_resumed): Handle multiple targets.
2844
42bd97a6
PA
28452020-07-10 Pedro Alves <pedro@palves.net>
2846
2847 PR gdb/26199
2848 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2849 target_is_async_p.
2850
43667cc6
PA
28512020-07-10 Pedro Alves <pedro@palves.net>
2852
2853 PR gdb/26199
2854 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2855 threads, not all threads.
2856
96118d11
PA
28572020-07-10 Pedro Alves <pedro@palves.net>
2858
2859 PR gdb/26199
2860 * remote.c (remote_target::open_1): Pass remote target pointer as
2861 data to create_async_event_handler.
2862 (remote_async_inferior_event_handler): Mark async event handler
2863 before returning if the remote target still has either pending
2864 events or unacknowledged notifications.
2865
54904d81
JB
28662020-07-10 John Baldwin <jhb@FreeBSD.org>
2867
2868 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2869 declaration.
2870 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2871 function.
2872
f37e5866
JB
28732020-07-09 John Baldwin <jhb@FreeBSD.org>
2874
2875 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2876 inferior_ptid.
2877
fc238d4a
JB
28782020-07-09 John Baldwin <jhb@FreeBSD.org>
2879
2880 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2881 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2882 AT_FREEBSD_PS_STRINGS.
2883
6e2469ff
HD
28842020-07-08 Hannes Domani <ssbssa@yahoo.de>
2885
2886 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2887 of debugfile path on Windows.
2888
d1076c41
JB
28892020-07-08 John Baldwin <jhb@FreeBSD.org>
2890
2891 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2892 argument to 'data'.
2893
15f3b077
TT
28942020-07-08 Tom Tromey <tromey@adacore.com>
2895
2896 * ada-lang.c (ada_exception_message_1): Use read_memory.
2897
9fc501fd
AB
28982020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2899
2900 PR python/22748
2901 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2902 special handling for inline frames.
2903 * findvar.c (value_of_register_lazy): Skip inline frames when
2904 creating lazy register values.
2905 * frame.c (frame_id_computed_p): Delete definition.
2906 * frame.h (frame_id_computed_p): Delete declaration.
2907
64cb3757
AB
29082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2909
2910 * NEWS: Mention additions to Python API.
2911 * python/py-arch.c (archpy_register_groups): New function.
2912 (arch_object_methods): Add 'register_groups' method.
2913 * python/py-registers.c (reggroup_iterator_object): New struct.
2914 (reggroup_object): New struct.
2915 (gdbpy_new_reggroup): New function.
2916 (gdbpy_reggroup_to_string): New function.
2917 (gdbpy_reggroup_name): New function.
2918 (gdbpy_reggroup_iter): New function.
2919 (gdbpy_reggroup_iter_next): New function.
2920 (gdbpy_new_reggroup_iterator): New function
2921 (gdbpy_initialize_registers): Register new types.
2922 (reggroup_iterator_object_type): Define new Python type.
2923 (gdbpy_reggroup_getset): New static global.
2924 (reggroup_object_type): Define new Python type.
2925 * python/python-internal.h
2926
0f767f94
AB
29272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2928
2929 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2930 * python/py-arch.c (archpy_registers): New function.
2931 (arch_object_methods): Add 'registers' method.
2932 * python/py-registers.c: New file.
2933 * python/python-internal.h
2934 (gdbpy_new_register_descriptor_iterator): Declare.
2935 (gdbpy_initialize_registers): Declare.
2936 * python/python.c (do_start_initialization): Call
2937 gdbpy_initialize_registers.
2938 * NEWS: Mention additions to the Python API.
2939
87dbc774
AB
29402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2941
2942 * NEWS: Mention new Python API method.
2943 * python/py-unwind.c (pending_framepy_architecture): New function.
2944 (pending_frame_object_methods): Add architecture method.
2945
3bc98c0c
AB
29462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2947
2948 * gdbarch.c: Regenerate.
2949 * gdbarch.h: Regenerate.
2950 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2951 (gdbarch_data): Use internal_error for the case where
2952 deprecated_set_gdbarch_data was originally needed.
2953 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2954 and use passed in obstack.
2955 (libunwind_frame_set_descr): Should no longer get back NULL from
2956 gdbarch_data.
2957 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2958 type.
2959 * user-regs.c (user_regs_init): Update parameters, and use passed
2960 in obstack.
2961 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2962 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2963
d8cc8af6
TV
29642020-07-06 Tom de Vries <tdevries@suse.de>
2965
2966 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2967 End-Of-Sequence in lte_is_less_than.
2968 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2969 "gdb: Don't reorder line table entries too much when sorting".
2970
947f7597
TV
29712020-07-06 Tom de Vries <tdevries@suse.de>
2972
2973 PR tui/26205
2974 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2975
1e7c1b22
TV
29762020-07-05 Tom de Vries <tdevries@suse.de>
2977
2978 PR build/26187
2979 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2980 std::uncaught_exceptions instead of deprecated
2981 std::uncaught_exception.
2982
a36158ec
SM
29832020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2984
2985 * macroexp.h (macro_stringify): Return
2986 gdb::unique_xmalloc_ptr<char>.
2987 * macroexp.c (macro_stringify): Likewise.
2988 * macrotab.c (fixup_definition): Update.
2989
14d960c8
SM
29902020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2991
2992 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2993 (lex_one_token): Update.
2994 * macroexp.c (struct macro_buffer) <release>: Return
2995 gdb::unique_xmalloc_ptr<char>.
2996 (macro_stringify): Update.
2997 (macro_expand): Update.
2998 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2999 * macroexp.h (macro_expand_next): Likewise.
3000
211d5b1c
SM
30012020-07-02 Simon Marchi <simon.marchi@efficios.com>
3002
3003 * macroexp.h (macro_lookup_ftype): Remove.
3004 (macro_expand, macro_expand_once, macro_expand_next): Remove
3005 lookup function parameters, add scope parameter.
3006 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3007 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3008 * macroscope.h (standard_macro_lookup): Change parameter type
3009 to macro_scope.
3010 * macroscope.c (standard_macro_lookup): Likewise.
3011 * c-exp.y (lex_one_token): Update.
3012 * macrocmd.c (macro_expand_command): Likewise.
3013 (macro_expand_once_command): Likewise.
3014
b1a35af2
SM
30152020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3016
3017 * inf-loop.c (inferior_event_handler): Remove client_data param.
3018 * inf-loop.h (inferior_event_handler): Likewise.
3019 * infcmd.c (step_1): Adjust.
3020 * infrun.c (proceed): Adjust.
3021 (fetch_inferior_event): Remove client_data param.
3022 (infrun_async_inferior_event_handler): Adjust.
3023 * infrun.h (fetch_inferior_event): Remove `void *` param.
3024 * linux-nat.c (handle_target_event): Adjust.
3025 * record-btrace.c (record_btrace_handle_async_inferior_event):
3026 Adjust.
3027 * record-full.c (record_full_async_inferior_event_handler):
3028 Adjust.
3029 * remote.c (remote_async_inferior_event_handler): Adjust.
3030
1cdf9e33
TT
30312020-07-01 Tom Tromey <tom@tromey.com>
3032
3033 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3034 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3035
32c1e210
TT
30362020-07-01 Tom Tromey <tom@tromey.com>
3037
3038 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3039 tui_gen_win_info.
3040 (tui_win_info::make_window): Merge with
3041 tui_gen_win_info::make_window.
3042 (tui_win_info::make_visible): Move from tui_gen_win_info.
3043 * tui/tui-win.c (tui_win_info::max_width): Move from
3044 tui_gen_win_info.
3045 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3046 type.
3047 <window_factory>: Likewise.
3048 * tui/tui-layout.c (tui_win_info::resize): Move from
3049 tui_gen_win_info.
3050 (make_standard_window): Change return type.
3051 (get_locator_window, tui_get_window_by_name): Likewise.
3052 (tui_layout_window::apply): Remove a cast.
3053 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3054 (struct tui_win_info): Merge with tui_gen_win_info.
3055 (struct tui_gen_win_info): Remove.
3056
a30cb6da
TT
30572020-07-01 Tom Tromey <tom@tromey.com>
3058
3059 * tui/tui-stack.h (struct tui_locator_window): Derive from
3060 tui_win_info.
3061 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3062 <can_box>: New method.
3063
1eb2161f
TT
30642020-07-01 Tom Tromey <tom@tromey.com>
3065
3066 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3067
7134f2eb
TT
30682020-07-01 Tom Tromey <tom@tromey.com>
3069
3070 * tui/tui-regs.c (tui_data_window::display_registers_from)
3071 (tui_data_window::display_registers_from)
3072 (tui_data_window::first_data_item_displayed)
3073 (tui_data_window::delete_data_content_windows): Update.
3074 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3075 Remove.
3076 (tui_data_window::check_register_values): Update.
3077 (tui_data_item_window::rerender): Add parameters. Update.
3078 (tui_data_item_window::refresh_window): Remove.
3079 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3080 virtual.
3081 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3082 tui_gen_win_info.
3083 <refresh_window, max_height, min_height>: Remove.
3084 <rerender>: Add parameters.
3085 <x, y, visible>: New members.
3086 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3087 <m_item_width>: New member.
3088
22b7b041
TT
30892020-07-01 Tom Tromey <tom@tromey.com>
3090
3091 * tui/tui-regs.c (tui_data_window::show_register_group)
3092 (tui_data_window::check_register_values): Update.
3093 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3094 from item_no.
3095
c9753adb
TT
30962020-07-01 Tom Tromey <tom@tromey.com>
3097
3098 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3099 useless "if".
3100
9ab26b4a
TT
31012020-07-01 Tom Tromey <tom@tromey.com>
3102
3103 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3104 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3105
e555083f
TT
31062020-07-01 Tom Tromey <tom@tromey.com>
3107
3108 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3109 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3110 (struct tui_line_or_address): Move from tui-data.h.
3111 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3112 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3113 (tui_cmd_window, tui_source_window_base, tui_source_window)
3114 (tui_disasm_window): Don't declare.
3115 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3116 to tui-winsource.h.
3117 (SINGLE_KEY): Move to tui-stack.c.
3118
7a02bab7
TT
31192020-07-01 Tom Tromey <tom@tromey.com>
3120
3121 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3122 std::string.
3123 * tui/tui-regs.c (class tab_expansion_file): New.
3124 (tab_expansion_file::write): New method.
3125 (tui_register_format): Change return type. Use
3126 tab_expansion_file.
3127 (tui_get_register, tui_data_window::display_registers_from)
3128 (tui_data_item_window::rerender): Update.
3129 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3130 * tui/tui-io.c (tui_expand_tabs): Remove.
3131
ea68593b
TT
31322020-07-01 Tom Tromey <tom@tromey.com>
3133
3134 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3135
a8caed5d
FS
31362020-07-01 Fangrui Song <maskray@google.com>
3137
3138 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3139
9cdf9820
AKS
31402020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3141
3142 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3143 forms for DW_AT_associated and DW_AT_allocated attributes,
3144 which is already checked in function attr_to_dynamic_prop.
3145
a1520ad8
TT
31462020-06-30 Tom Tromey <tromey@adacore.com>
3147
3148 * dwarf2/read.c (quirk_rust_enum): Correctly call
3149 alloc_rust_variant for default-less enum.
3150
5ac58899
TT
31512020-06-30 Tom Tromey <tromey@adacore.com>
3152
3153 PR build/26183:
3154 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3155 gdb::to_string.
3156
19b187a9
SM
31572020-06-29 Simon Marchi <simon.marchi@efficios.com>
3158
3159 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3160 * gdbarch.h: Re-generate.
3161
cd4c4c07
TT
31622020-06-28 Tom Tromey <tom@tromey.com>
3163
3164 * command.h (cmd_types): Remove.
3165 (cmd_type): Don't declare.
3166 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3167 typedef.
3168 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3169 * cli/cli-decode.c (cmd_type): Remove.
3170
05779d57
PA
31712020-06-27 Pedro Alves <palves@redhat.com>
3172
3173 * fork-child.c (prefork_hook): Adjust.
3174 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3175 Delete.
3176 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3177 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3178 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3179 Remove declarations.
3180 (struct inferior) <set_tty, tty>: New methods.
3181 (struct inferior) <terminal>: Rename to ...
3182 (struct inferior) <m_terminal>: ... this and make private.
3183 * main.c (captured_main_1): Adjust.
3184 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3185 (mi_cmd_inferior_tty_show): Adjust.
3186 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3187 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3188
1776e3e5
NA
31892020-06-26 Nick Alcock <nick.alcock@oracle.com>
3190
3191 * configure.ac: Add --enable-libctf: handle --disable-static
3192 properly.
3193 * acinclude.m4: sinclude ../config/enable.m4.
3194 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3195 (LIBCTF): Substitute in.
3196 (CTF_DEPS): New, likewise.
3197 (CLIBS): libctf needs symbols from libbfd: move earlier.
3198 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3199 flags.
3200 * ctfread.c: Surround in ENABLE_LIBCTF.
3201 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3202 * configure: Regenerate.
3203 * config.in: Likewise.
3204
58373b80
SM
32052020-06-25 Simon Marchi <simon.marchi@efficios.com>
3206
3207 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3208
277474ee
SM
32092020-06-25 Simon Marchi <simon.marchi@efficios.com>
3210
3211 * inferior.h (struct inferior) <terminal>: Change type to
3212 gdb::unique_xmalloc_ptr<char>.
3213 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3214 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3215 field, adjust to unique pointer.
3216 (get_inferior_io_terminal): Adjust to unique pointer.
3217
6d74da72
AB
32182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3219
3220 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3221 registers, not just the known core set of registers.
3222
2e52d038
AB
32232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3224
3225 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3226 fflags, frm, and fcsr registers.
3227 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3228 restore groups.
3229 (riscv_tdesc_unknown_reg): New function.
3230 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3231 tdesc_use_registers.
3232 * riscv-tdep.h (struct gdbarch_tdep): Add
3233 unknown_csrs_first_regnum, unknown_csrs_count,
3234 duplicate_fflags_regnum, duplicate_frm_regnum, and
3235 duplicate_fcsr_regnum fields.
3236
be64fd07
AB
32372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3238
3239 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3240 callback, use the callback (when not null) to help number unknown
3241 registers.
3242 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3243 (tdesc_use_registers): Add extra parameter to declaration.
3244
3b9fce96
AB
32452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3246
3247 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3248 in the file.
3249 (class riscv_pending_register_alias): Likewise.
3250 (riscv_register_feature::register_info): Change 'required_p' field
3251 to 'required', and change its type. Add 'check' member function.
3252 (riscv_register_feature::register_info::check): Define new member
3253 function.
3254 (riscv_xreg_feature): Change initialisation of 'required' field.
3255 (riscv_freg_feature): Likewise.
3256 (riscv_virtual_feature): Likewise.
3257 (riscv_csr_feature): Likewise.
3258 (riscv_check_tdesc_feature): Take extra parameter, the csr
3259 tdesc_feature, rewrite the function to use the new
3260 riscv_register_feature::register_info::check function.
3261 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3262
865bad26
AB
32632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3264
3265 * features/Makefile: Remove all references to the deleted files
3266 below.
3267 * features/riscv/32bit-csr.c: Deleted.
3268 * features/riscv/32bit-csr.xml: Deleted.
3269 * features/riscv/64bit-csr.c: Deleted.
3270 * features/riscv/64bit-csr.xml: Deleted.
3271 * features/riscv/rebuild-csr-xml.sh: Deleted.
3272
ed69cbc8
AB
32732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3274
3275 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3276 whitespace error for declaration of names member variable.
3277 (struct riscv_register_feature): Add new prefer_first_name member
3278 variable, and fix whitespace error in declaration of registers.
3279 (riscv_xreg_feature): Initialize prefer_first_name field.
3280 (riscv_freg_feature): Likewise.
3281 (riscv_virtual_feature): Likewise.
3282 (riscv_csr_feature): Likewise.
3283 (riscv_register_name): Expand on comments. Remove register name
3284 modifications for CSR and virtual registers.
3285
4445e8f5
AB
32862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3287
3288 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3289 errors.
3290
767a879e
AB
32912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3292
3293 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3294 riscv-opc.h.
3295 (class riscv_pending_register_alias): New class.
3296 (riscv_check_tdesc_feature): Take vector of pending aliases and
3297 populate it as appropriate.
3298 (riscv_setup_register_aliases): Delete.
3299 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3300 to riscv_check_tdesc_feature in all cases. Use the vector to
3301 create the register aliases.
3302
bb6e55f3
RO
33032020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3304
3305 * sol2-tdep.c (sol2_static_transform_name): Remove.
3306 (sol2_init_abi): Don't register it.
3307 * gdbarch.sh (static_transform_name): Remove.
3308 * gdbarch.c, gdbarch.h: Regenerate.
3309
3310 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3311 gdbarch_static_transform_name.
3312 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3313 * stabsread.c (define_symbol) <'X'>: Remove.
3314 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3315 handling.
3316 <'V'>: Likewise.
3317 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3318 <'S'>: Remove call to gdbarch_static_transform_name.
3319
c6d36836
RO
33202020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3321
3322 * procfs.c (procfs_pre_trace): New function.
3323 (procfs_target::create_inferior): Pass it to fork_inferior.
3324
a7e6196b
RO
33252020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3326
3327 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3328 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3329 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3330 sol2-tdep.o, sparc-sol2-tdep.o.
3331 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3332 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3333 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3334 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3335
d412e696
RO
33362020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3337
3338 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3339 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3340 Call sol2_init_abi.
3341 Remove calls to set_gdbarch_skip_solib_resolver,
3342 set_gdbarch_core_pid_to_str.
3343 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3344 (i386_sol2_static_transform_name): Remove.
3345 (i386_sol2_init_abi): Call sol2_init_abi.
3346 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3347 set_gdbarch_static_transform_name,
3348 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3349 Use sol2_sigtramp_p.
3350 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3351 (sol2_sigtramp_p): New function.
3352 (sol2_static_transform_name): New function.
3353 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3354 (sol2_init_abi): New function.
3355 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3356 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3357 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3358 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3359 (sparc_sol2_static_transform_name): Remove.
3360 (sparc32_sol2_init_abi): Call sol2_init_abi.
3361 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3362 set_gdbarch_static_transform_name,
3363 set_gdbarch_skip_solib_resolver,
3364 set_gdbarch_core_pid_to_str.
3365 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3366 (sparc_sol2_static_transform_name): Remove
3367 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3368 call sol2_sigtramp_p.
3369 (sparc64_sol2_init_abi): Call sol2_init_abi.
3370 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3371 set_gdbarch_static_transform_name,
3372 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3373
a8654e7d
PW
33742020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3375
3376 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3377 * exec.c (validate_exec_file): If from_tty, set both
3378 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3379 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3380 and from_tty, unconditionally ask a confirmation.
3381
caa7fd04
AB
33822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3383
3384 * target-descriptions.c (tdesc_architecture_name): Protect against
3385 NULL pointer dereference.
3386 (maint_print_xml_tdesc_cmd): New function.
3387 (_initialize_target_descriptions): Register new 'maint print
3388 xml-tdesc' command and give it the filename completer.
3389 * NEWS: Mention new 'maint print xml-tdesc' command.
3390
fbf42f4e
AB
33912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3392
3393 * target-descriptions.c (class tdesc_compatible_info): New class.
3394 (struct target_desc): Change type of compatible vector.
3395 (tdesc_compatible_p): Update for change in type of
3396 target_desc::compatible.
3397 (tdesc_compatible_info_list): New function.
3398 (tdesc_compatible_info_arch_name): New function.
3399 (tdesc_add_compatible): Update for change in type of
3400 target_desc::compatible.
3401 (print_c_tdesc::visit_pre): Likewise.
3402
20821f4e
AB
34032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3404
3405 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3406 whitespace to underscore.
3407 (maint_print_c_tdesc_cmd): Use fake filename for target
3408 descriptions that came from the target.
3409 (_initialize_target_descriptions): Add filename command completion
3410 for 'maint print c-tdesc'.
3411
1fb5ee62
SM
34122020-06-23 Simon Marchi <simon.marchi@efficios.com>
3413
3414 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3415 lines.
3416
fc3ecb3e
SM
34172020-06-23 Simon Marchi <simon.marchi@efficios.com>
3418
3419 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3420 lines.
3421 (dwarf2_find_location_expression): Likewise.
3422 (call_site_parameter_matches): Likewise.
3423 (dwarf2_compile_expr_to_ax): Likewise.
3424 (disassemble_dwarf_expression): Likewise.
3425 (loclist_describe_location): Likewise.
3426
236ef034
PA
34272020-06-23 Pedro Alves <palves@redhat.com>
3428
3429 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3430 progspace-and-thread.h. Include scoped-mock-context.h instead.
3431 (register_to_value_test): Use scoped_mock_context.
3432 * regcache.c: Include "scoped-mock-context.h".
3433 (cooked_read_test): Don't error out if a target is already pushed.
3434 Use scoped_mock_context. Adjust.
3435 * scoped-mock-context.h: New file.
3436
39e7ecca
AB
34372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3438
3439 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3440 initializer.
3441 (ada_language::is_string_type_p): New member function.
3442 * c-lang.c (c_language_data): Delete la_is_string_type_p
3443 initializer.
3444 (cplus_language_data): Likewise.
3445 (asm_language_data): Likewise.
3446 (minimal_language_data): Likewise.
3447 * d-lang.c (d_language_data): Likewise.
3448 * f-lang.c (f_is_string_type_p): Delete function, implementation
3449 moved to f_language::is_string_type_p.
3450 (f_language_data): Delete la_is_string_type_p initializer.
3451 (f_language::is_string_type_p): New member function,
3452 implementation from f_is_string_type_p.
3453 * go-lang.c (go_is_string_type_p): Delete function, implementation
3454 moved to go_language::is_string_type_p.
3455 (go_language_data): Delete la_is_string_type_p initializer.
3456 (go_language::is_string_type_p): New member function,
3457 implementation from go_is_string_type_p.
3458 * language.c (language_defn::is_string_type_p): Define new member
3459 function.
3460 (default_is_string_type_p): Make static, add comment copied from
3461 header file.
3462 (unknown_language_data): Delete la_is_string_type_p initializer.
3463 (unknown_language::is_string_type_p): New member function.
3464 (auto_language_data): Delete la_is_string_type_p initializer.
3465 (auto_language::is_string_type_p): New member function.
3466 * language.h (language_data): Delete la_is_string_type_p field.
3467 (language_defn::is_string_type_p): Declare new function.
3468 (default_is_string_type_p): Delete desclaration, move comment to
3469 definition.
3470 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3471 moved to m2_language::is_string_type_p.
3472 (m2_language_data): Delete la_is_string_type_p initializer.
3473 (m2_language::is_string_type_p): New member function,
3474 implementation from m2_is_string_type_p.
3475 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3476 initializer.
3477 * opencl-lang.c (opencl_language_data): Likewise.
3478 * p-lang.c (pascal_is_string_type_p): Delete function,
3479 implementation moved to pascal_language::is_string_type_p.
3480 (pascal_language_data): Delete la_is_string_type_p initializer.
3481 (pascal_language::is_string_type_p): New member function,
3482 implementation from pascal_is_string_type_p.
3483 * rust-lang.c (rust_is_string_type_p): Delete function,
3484 implementation moved to rust_language::is_string_type_p.
3485 (rust_language_data): Delete la_is_string_type_p initializer.
3486 (rust_language::is_string_type_p): New member function,
3487 implementation from rust_is_string_type_p.
3488 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3489 is_string_type_p.
3490
4ffc13fb
AB
34912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3492
3493 * ada-lang.c (ada_language_data): Delete la_print_typedef
3494 initializer.
3495 (ada_language::print_typedef): New member function.
3496 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3497 (cplus_language_data): Likewise.
3498 (asm_language_data): Likewise.
3499 (minimal_language_data): Likewise.
3500 * d-lang.c (d_language_data): Likewise.
3501 * f-lang.c (f_language_data): Likewise.
3502 (f_language::print_typedef): New member function.
3503 * go-lang.c (go_language_data): Delete la_print_typedef
3504 initializer.
3505 * language.c (language_defn::print_typedef): Define member
3506 function.
3507 (unknown_language_data): Delete la_print_typedef initializer.
3508 (unknown_language::print_typedef): New member function.
3509 (auto_language_data): Delete la_print_typedef initializer.
3510 (auto_language::print_typedef): New member function.
3511 * language.h (language_data): Delete la_print_typedef field.
3512 (language_defn::print_typedef): Declare new member function.
3513 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3514 (default_print_typedef): Delete declaration.
3515 * m2-lang.c (m2_language_data): Delete la_print_typedef
3516 initializer.
3517 (m2_language::print_typedef): New member function.
3518 * objc-lang.c (objc_language_data): Delete la_print_typedef
3519 initializer.
3520 * opencl-lang.c (opencl_language_data): Likewise.
3521 * p-lang.c (pascal_language_data): Likewise.
3522 (pascal_language::print_typedef): New member function.
3523 * rust-lang.c (rust_print_typedef): Delete function,
3524 implementation moved to rust_language::print_typedef.
3525 (rust_language): Delete la_print_typedef initializer.
3526 (rust_language::print_typedef): New member function,
3527 implementation from rust_print_typedef.
3528 * typeprint.c (default_print_typedef): Delete.
3529
d711ee67
AB
35302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3531
3532 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3533 (ada_language::printstr): New member function.
3534 * c-lang.c (c_language_data): Delete la_printstr initializer.
3535 (cplus_language_data): Likewise.
3536 (asm_language_data): Likewise.
3537 (minimal_language_data): Likewise.
3538 * d-lang.c (d_language_data): Likewise.
3539 * f-lang.c (f_printstr): Rename to f_language::printstr.
3540 (f_language_data): Delete la_printstr initializer.
3541 (f_language::printstr): New member function, implementation from
3542 f_printstr.
3543 * go-lang.c (go_language_data): Delete la_printstr initializer.
3544 * language.c (language_defn::printstr): Define new member
3545 function.
3546 (unk_lang_printstr): Delete.
3547 (unknown_language_data): Delete la_printstr initializer.
3548 (unknown_language::printstr): New member function.
3549 (auto_language_data): Delete la_printstr initializer.
3550 (auto_language::printstr): New member function.
3551 * language.h (language_data): Delete la_printstr field.
3552 (language_defn::printstr): Declare new member function.
3553 (LA_PRINT_STRING): Update call to printstr.
3554 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3555 (m2_language_data): Delete la_printstr initializer.
3556 (m2_language::printstr): New member function, implementation from
3557 m2_printstr.
3558 * objc-lang.c (objc_language_data): Delete la_printstr
3559 initializer.
3560 * opencl-lang.c (opencl_language_data): Likewise.
3561 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3562 (pascal_language_data): Delete la_printstr initializer.
3563 (pascal_language::printstr): New member function, implementation
3564 from pascal_printstr.
3565 * p-lang.h (pascal_printstr): Delete declaration.
3566 * rust-lang.c (rust_printstr): Update header comment.
3567 (rust_language_data): Delete la_printstr initializer.
3568 (rust_language::printstr): New member function.
3569
52b50f2c
AB
35702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3571
3572 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3573 (ada_language::printchar): New member function.
3574 * c-lang.c (c_language_data): Delete la_printchar initializer.
3575 (cplus_language_data): Likewise.
3576 (asm_language_data): Likewise.
3577 (minimal_language_data): Likewise.
3578 * d-lang.c (d_language_data): Likewise.
3579 * f-lang.c (f_printchar): Rename to f_language::printchar.
3580 (f_language_data): Delete la_printchar initializer.
3581 (f_language::printchar): New member function, implementation from
3582 f_printchar.
3583 * go-lang.c (go_language_data): Delete la_printchar initializer.
3584 * language.c (unk_lang_printchar): Delete.
3585 (language_defn::printchar): Define new member function.
3586 (unknown_language_data): Delete la_printchar initializer.
3587 (unknown_language::printchar): New member function.
3588 (auto_language_data): Delete la_printchar initializer.
3589 (auto_language::printchar): New member function.
3590 * language.h (language_data): Delete la_printchar field.
3591 (language_defn::printchar): Declare new member function.
3592 (LA_PRINT_CHAR): Update call to printchar.
3593 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3594 (m2_language::printchar): New member function.
3595 * objc-lang.c (objc_language_data): Delete la_printchar
3596 initializer.
3597 * opencl-lang.c (opencl_language_data): Likewise.
3598 * p-lang.c (pascal_language_data): Delete la_printchar
3599 initializer.
3600 (pascal_language::printchar): New member function.
3601 * rust-lang.c (rust_printchar): Rename to
3602 rust_language::printchar.
3603 (rust_language_data): Delete la_printchar initializer.
3604 (rust_language::printchar): New member function, implementation
3605 from rust_printchar.
3606
ec8cec5b
AB
36072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3608
3609 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3610 (ada_language_data): Delete la_emitchar initializer.
3611 (ada_language::emitchar): New member function, implementation from
3612 emit_char.
3613 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3614 (cplus_language_data): Likewise.
3615 (asm_language_data): Likewise.
3616 (minimal_language_data): Likewise.
3617 * d-lang.c (d_language_data): Likewise.
3618 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3619 (f_language_data): Delete la_emitchar initializer.
3620 (f_language::emitchar): New member function, implementation from
3621 f_emit_char.
3622 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3623 * language.c (unk_lang_emit_char): Delete.
3624 (language_defn::emitchar): New member function definition.
3625 (unknown_language_data): Delete la_emitchar initializer.
3626 (unknown_language::emitchar): New member function.
3627 (auto_language_data): Delete la_emitchar initializer.
3628 (auto_language::emitchar): New member function.
3629 * language.h (language_data): Delete la_emitchar field.
3630 (language_defn::emitchar): New member field declaration.
3631 (LA_EMIT_CHAR): Update call to emitchar.
3632 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3633 (m2_language_data): Delete la_emitchar initializer.
3634 (m2_language::emitchar): New member function, implementation from
3635 m2_emit_char.
3636 * objc-lang.c (objc_language_data): Delete la_emitchar
3637 initializer.
3638 * opencl-lang.c (opencl_language_data): Likewise.
3639 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3640 (pascal_language_data): Delete la_emitchar initializer.
3641 (pascal_language::emitchar): New member function, implementation
3642 from pascal_emit_char.
3643 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3644 (rust_language_data): Delete la_emitchar initializer.
3645 (rust_language::emitchar): New member function, implementation
3646 from rust_emitchar.
3647
1bf9c363
AB
36482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3649
3650 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3651 (ada_language_data): Delete la_post_parser initializer.
3652 (ada_language::post_parser): New member function.
3653 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3654 (cplus_language_data): Likewise.
3655 (asm_language_data): Likewise.
3656 (minimal_language_data): Likewise.
3657 * d-lang.c (d_language_data): Likewise.
3658 * f-lang.c (f_language_data): Likewise.
3659 * go-lang.c (go_language_data): Likewise.
3660 * language.c (unknown_language_data): Likewise.
3661 (auto_language_data): Likewise.
3662 * language.h (language_data): Delete la_post_parser field.
3663 (language_defn::post_parser): New member function.
3664 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3665 * objc-lang.c (objc_language_data): Likewise.
3666 * opencl-lang.c (opencl_language_data): Likewise.
3667 * p-lang.c (pascal_language_data): Likewise.
3668 * parse.c (parse_exp_in_context): Update call to post_parser.
3669 (null_post_parser): Delete definition.
3670 * parser-defs.h (null_post_parser): Delete declaration.
3671 * rust-lang.c (rust_language_data): Delete la_post_parser
3672 initializer.
3673
87afa652
AB
36742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3675
3676 * ada-lang.c (parse): Rename to ada_language::parser.
3677 (ada_language_data): Delete la_parser initializer.
3678 (ada_language::parser): New member function, implementation from
3679 parse.
3680 * c-lang.c (c_language_data): Delete la_parser initializer.
3681 (cplus_language_data): Likewise.
3682 (asm_language_data): Likewise.
3683 (minimal_language_data): Likewise.
3684 * d-lang.c (d_language_data): Likewise.
3685 (d_language::parser): New member function.
3686 * f-lang.c (f_language_data): Delete la_parser initializer.
3687 (f_language::parser): New member function.
3688 * go-lang.c (go_language_data): Delete la_parser initializer.
3689 (go_language::parser): New member function.
3690 * language.c (unk_lang_parser): Delete.
3691 (language_defn::parser): Define new member function.
3692 (unknown_language_data): Delete la_parser initializer.
3693 (unknown_language::parser): New member function.
3694 (auto_language_data): Delete la_parser initializer.
3695 (auto_language::parser): New member function.
3696 * language.h (language_data): Delete la_parser field.
3697 (language_defn::parser): Declare new member function.
3698 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3699 (m2_language::parser): New member function.
3700 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3701 * opencl-lang.c (opencl_language_data): Likewise.
3702 * p-lang.c (pascal_language_data): Likewise.
3703 (pascal_language::parser): New member function.
3704 * parse.c (parse_exp_in_context): Update call to parser.
3705 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3706 (rust_language::parser): New member function.
3707
37825800
AB
37082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3709
3710 * top.c (print_gdb_configuration): Print --with-python-libdir
3711 configuration value.
3712
5b860c93
PW
37132020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3714
3715 * NEWS: Mention change to the alias command.
3716
cf00cd6f
PW
37172020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3718
3719 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3720 (alias_command_completer)
3721 (make_alias_options_def_group): New functions.
3722 (alias_opts, alias_option_defs): New struct and array.
3723 (alias_usage_error): Update usage.
3724 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3725 Use option framework.
3726 (_initialize_cli_cmds): Update alias command help.
3727 Update aliases command help.
3728 (show_user):
3729 Add NULL for new default_args lookup_cmd argument.
3730 (valid_command_p): Rename to validate_aliased_command.
3731 Add NULL for new default_args lookup_cmd argument. Verify that the
3732 aliased_command has no default args.
3733 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3734 (lookup_cmd_1, lookup_cmd): New argument default_args.
3735 (add_alias_cmd):
3736 Add NULL for new default_args lookup_cmd argument.
3737 (print_help_for_command): Show default args under the layout
3738 alias some_alias = some_aliased_cmd some_alias_default_arg.
3739 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3740 xfree default_args in destructor.
3741 * cli/cli-script.c (process_next_line, do_define_command):
3742 Add NULL for new default_args lookup_cmd argument.
3743 * command.h: Declare new default_args argument in lookup_cmd
3744 and lookup_cmd_1.
3745 * completer.c (complete_line_internal_1):
3746 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3747 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3748 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3749 Likewise.
3750 * infcmd.c (_initialize_infcmd): Likewise.
3751 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3752 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3753 * python/py-param.c (add_setshow_generic): Likewise.
3754 * remote.c (_initialize_remote): Likewise.
3755 * top.c (execute_command): Prepend default_args if command has some.
3756 (set_verbose):
3757 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3758 * tracepoint.c (validate_actionline, encode_actions_1):
3759 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3760
bd920864
TBA
37612020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3762
3763 * jit.c (jit_read_descriptor): Use bool as the return type.
3764 (jit_breakpoint_re_set_internal): Use bool as the return type.
3765 Invert the return value logic; return true if the jit breakpoint
3766 has been successfully initialized.
3767 (jit_inferior_init): Update the call to
3768 jit_breakpoint_re_set_internal.
3769
f8098322
PA
37702020-06-22 Pedro Alves <palves@redhat.com>
3771
3772 PR gdb/25939
3773 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3774 Use the current inferior instead. Don't return
3775 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3776 wait again.
3777 * sol-thread.c (sol_thread_target::wait): Don't reference
3778 inferior_ptid.
3779 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3780 (sol_update_thread_list_callback): Use the current inferior's pid
3781 instead of inferior_ptid.
3782
196535a6
RO
37832020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3784
3785 * procfs.c: Cleanup many comments.
3786
3787 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3788 (AFTER_WATCHFLAG): Replace by value.
3789
3790 (MAIN_PROC_NAME_FORMAT): Inline ...
3791 (create_procinfo): ... here.
3792
3793 (procfs_debug_inferior): Remove SYS_exec handling.
3794 (syscall_is_exec): Likewise.
3795 (procfs_set_exec_trap): Likewise.
3796
3797 (syscall_is_lwp_exit): Inline in callers.
3798 (syscall_is_exit): Likewise.
3799 (syscall_is_exec): Likewise.
3800 (syscall_is_lwp_create): Likewise.
3801
3802 (invalidate_cache): Remove #if 0 code.
3803
3804 (make_signal_thread_runnable): Remove.
3805 (procfs_target::resume): Remove #if 0 code.
3806
cf6f3e86
RO
38072020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3808
3809 PR gdb/25939
3810 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3811 call ...
3812 (procfs_target::create_inferior): ... here.
3813
48e9cc84
PW
38142020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3815
3816 * exec.c (validate_exec_file): Ensure the build-id is up to
3817 date by calling reopen_exec_file (that checks file timestamp
3818 to decide to re-read the file).
3819
3922b302
PA
38202020-06-18 Pedro Alves <palves@redhat.com>
3821
3822 PR gdb/25412
3823 * gdbthread.h (delete_thread, delete_thread_silent)
3824 (find_thread_ptid): Update comments.
3825 * thread.c (current_thread_): New global.
3826 (is_current_thread): Move higher, and reimplement.
3827 (inferior_thread): Reimplement.
3828 (set_thread_exited): Use bool. Add assertions.
3829 (add_thread_silent): Simplify thread-reuse handling by always
3830 calling delete_thread.
3831 (delete_thread): Remove intro comment.
3832 (find_thread_ptid): Skip exited threads.
3833 (switch_to_thread_no_regs): Write to current_thread_.
3834 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3835 INFERIOR_PTID. Clear current_thread_.
3836
6dbdab44
PA
38372020-06-18 Pedro Alves <palves@redhat.com>
3838
3839 * aix-thread.c (pd_update): Use switch_to_thread.
3840
2da4b788
PA
38412020-06-18 Pedro Alves <palves@redhat.com>
3842
3843 * ravenscar-thread.c (ravenscar_thread_target): Update.
3844 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3845 (ravenscar_thread_target::add_active_thread): ... this. Don't
3846 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3847 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3848
50838d1b
PA
38492020-06-18 Pedro Alves <palves@redhat.com>
3850
3851 * nat/windows-nat.c (current_windows_thread): Remove.
3852 * nat/windows-nat.h (current_windows_thread): Remove.
3853 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3854 Adjust.
3855 (display_selectors): Adjust to fetch the current
3856 windows_thread_info based on inferior_ptid.
3857 (fake_create_process): No longer write to current_windows_thread.
3858 (windows_nat_target::get_windows_debug_event):
3859 Don't set inferior_ptid or current_windows_thread.
3860 (windows_nat_target::wait): Adjust to not rely on
3861 current_windows_thread.
3862 (do_initial_windows_stuff): Now a method of windows_nat_target.
3863 Switch to the last_ptid thread.
3864 (windows_nat_target::attach): Adjust.
3865 (windows_nat_target::detach): Use switch_to_no_thread instead of
3866 writing to inferior_ptid directly.
3867 (windows_nat_target::create_inferior): Adjust.
3868
31ce04e9
PA
38692020-06-18 Pedro Alves <palves@redhat.com>
3870
3871 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3872
1ee1a363
PA
38732020-06-18 Pedro Alves <palves@redhat.com>
3874
3875 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3876 after creating it, instead of writing to inferior_ptid. Don't
3877 write to inferior_ptid.
3878
6d350754
PA
38792020-06-18 Pedro Alves <palves@redhat.com>
3880
3881 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3882
5d971d48
PA
38832020-06-18 Pedro Alves <palves@redhat.com>
3884
3885 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3886 it, instead of writing to inferior_ptid.
3887
86e57d1b
PA
38882020-06-18 Pedro Alves <palves@redhat.com>
3889
3890 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3891 to inferior_ptid.
3892
f2e1c129
PA
38932020-06-18 Pedro Alves <palves@redhat.com>
3894
3895 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3896 instead of writing to inferior_ptid directly.
3897
60db1b85
PA
38982020-06-18 Pedro Alves <palves@redhat.com>
3899
3900 * corelow.c (core_target::close): Use switch_to_no_thread instead
3901 of writing to inferior_ptid directly.
3902 (add_to_thread_list, core_target_open): Use switch_to_thread
3903 instead of writing to inferior_ptid directly.
3904
fe7d6a8d
PA
39052020-06-18 Pedro Alves <palves@redhat.com>
3906
3907 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3908 inferior_ptid.
3909 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3910 inferior_ptid.
3911 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3912 inferior_ptid directly.
3913 (darwin_nat_target::init_thread_list): Switch to thread, instead
3914 of writing to inferior_ptid.
3915 (darwin_nat_target::attach): Don't write to inferior_ptid.
3916 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3917
975f8708
PA
39182020-06-18 Pedro Alves <palves@redhat.com>
3919
3920 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3921 thread.
3922 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3923 Instead use switch_to_thread.
3924 (gnu_nat_target::detach): Use switch_to_no_thread
3925 instead of writing to inferior_ptid directly. Used passed-in
3926 inferior instead of looking up the inferior by pid.
3927
1a204730
PA
39282020-06-18 Pedro Alves <palves@redhat.com>
3929
3930 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3931 inferior_ptid.
3932
ebe84f23
PA
39332020-06-18 Pedro Alves <palves@redhat.com>
3934
3935 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3936 inferior_ptid.
3937 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3938 thread.
3939 (nto_procfs_target::detach): Avoid referencing
3940 inferior_ptid. Use switch_to_no_thread instead of writing to
3941 inferior_ptid directly.
3942 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3943 instead of writing to inferior_ptid directly.
3944 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3945 to thread.
3946
191f02e5
PA
39472020-06-18 Pedro Alves <palves@redhat.com>
3948
3949 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3950 after creating it, instead of writing to inferior_ptid.
3951 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3952 to inferior_ptid directly.
3953 (gdbsim_target::wait): Don't write to inferior_ptid.
3954
0ac55310
PA
39552020-06-18 Pedro Alves <palves@redhat.com>
3956
3957 * remote.c (remote_target::remote_notice_new_inferior): Use
3958 switch_to_thread instead of writing to inferior_ptid directly.
3959 (remote_target::add_current_inferior_and_thread): Use
3960 switch_to_no_thread instead of writing to inferior_ptid directly.
3961 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3962 and switch_to_thread instead of using set_current_inferior or
3963 writing to inferior_ptid directly.
3964
5233f39b
PA
39652020-06-18 Pedro Alves <palves@redhat.com>
3966
3967 * tracectf.c (ctf_target_open): Switch to added thread instead of
3968 writing to inferior_ptid directly.
3969 (ctf_target::close): Use switch_to_no_thread instead of writing to
3970 inferior_ptid directly.
3971
087e161b
PA
39722020-06-18 Pedro Alves <palves@redhat.com>
3973
3974 * tracefile-tfile.c (tfile_target_open): Don't write to
3975 inferior_ptid directly, instead switch to added thread.
3976 (tfile_target::close): Use switch_to_no_thread instead of writing
3977 to inferior_ptid directly.
3978
7fb43e53
PA
39792020-06-18 Pedro Alves <palves@redhat.com>
3980
3981 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3982 (procfs_target::detach): Use switch_to_no_thread
3983 instead of writing to inferior_ptid directly.
3984 (do_attach): Change return type to void. Switch to the added
3985 thread.
3986 (procfs_target::create_inferior): Switch to the added thread.
3987 (procfs_do_thread_registers): Don't write to inferior_ptid.
3988
18493a00
PA
39892020-06-18 Pedro Alves <palves@redhat.com>
3990
3991 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3992 of writing to inferior_ptid.
3993 (scoped_restore_exited_inferior): Delete.
3994 (handle_vfork_child_exec_or_exit): Simplify using
3995 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3996 instead of writing to inferior_ptid.
3997 (THREAD_STOPPED_BY): Delete.
3998 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3999 (thread_stopped_by_hw_breakpoint): Delete.
4000 (save_waitstatus): Use
4001 scoped_restore_current_thread+switch_to_thread, and call
4002 target_stopped_by_watchpoint instead of
4003 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4004 instead of thread_stopped_by_sw_breakpoint, and
4005 target_stopped_by_hw_breakpoint instead of
4006 thread_stopped_by_hw_breakpoint.
4007 (handle_inferior_event)
4008 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4009 inferior_ptid directly, nor
4010 set_current_inferior/set_current_program_space. Use
4011 switch_to_thread / switch_to_inferior_no_thread instead.
4012
a0776b13
PA
40132020-06-18 Pedro Alves <palves@redhat.com>
4014
4015 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4016 instead of writing to inferior_ptid.
4017
6155c136
PA
40182020-06-18 Pedro Alves <palves@redhat.com>
4019
4020 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4021 added thread.
4022 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4023 to the added thread.
4024 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4025 instead of writing to inferior_ptid.
4026
c5316fc6
PA
40272020-06-18 Pedro Alves <palves@redhat.com>
4028
4029 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4030 (register_to_value_test): Mock a program_space too. Heap-allocate
4031 the address space. Don't write to inferior_ptid. Use
4032 switch_to_thread instead.
4033
8df01799
PA
40342020-06-18 Pedro Alves <palves@redhat.com>
4035
4036 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4037 Delete.
4038 (find_signalled_thread()): New, factored out from
4039 linux_make_corefile_notes and adjusted to handle exited threads.
4040 (linux_make_corefile_notes): Adjust to use the new
4041 find_signalled_thread.
4042
41792d68
PA
40432020-06-18 Pedro Alves <palves@redhat.com>
4044
4045 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4046 of saving/restoring inferior_ptid.
4047
612f258a
TT
40482020-06-17 Tom Tromey <tom@tromey.com>
4049
4050 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4051 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4052 declare.
4053 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4054
efb763a5
SM
40552020-06-15 Simon Marchi <simon.marchi@efficios.com>
4056
4057 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4058 of partial symtabs.
4059
2951f6c0
SM
40602020-06-17 Simon Marchi <simon.marchi@efficios.com>
4061
4062 * regformats/reg-arm.dat: Remove.
4063 * regformats/reg-bfin.dat: Remove.
4064 * regformats/reg-cris.dat: Remove.
4065 * regformats/reg-crisv32.dat: Remove.
4066 * regformats/reg-m32r.dat: Remove.
4067 * regformats/reg-tilegx.dat: Remove.
4068 * regformats/reg-tilegx32.dat: Remove.
4069
7d458ea5
SM
40702020-06-17 Simon Marchi <simon.marchi@efficios.com>
4071
4072 * features/Makefile (WHICH): Remove arm files.
4073 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4074 * regformats/arm/arm-with-neon.dat: Remove.
4075 * regformats/arm/arm-with-vfpv2.dat: Remove.
4076 * regformats/arm/arm-with-vfpv3.dat: Remove.
4077
3af96c0d
SM
40782020-06-17 Simon Marchi <simon.marchi@efficios.com>
4079
4080 * features/Makefile (XMLTOC): Remove rx.xml.
4081
b25e22fd
PA
40822020-06-17 Pedro Alves <palves@redhat.com>
4083
4084 * gdbthread.h (thread_control_state) <trap_expected> Update
4085 comments.
4086
a78a19b1
AB
40872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4088
4089 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4090 ada_language::lookup_symbol_nonlocal.
4091 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4092 (ada_language::lookup_symbol_nonlocal): New member function,
4093 implementation from ada_lookup_symbol_nonlocal.
4094 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4095 initializer.
4096 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4097 initializer.
4098 (cplus_language::lookup_symbol_nonlocal): New member function.
4099 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4100 (minimal_language_data) Likewise.
4101 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4102 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4103 initializer.
4104 (d_language::lookup_symbol_nonlocal): New member function.
4105 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4106 initializer.
4107 (f_language::lookup_symbol_nonlocal): New member function.
4108 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4109 initializer.
4110 * language.c (unknown_language_data): Likewise.
4111 (auto_language_data): Likewise.
4112 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4113 field.
4114 (language_defn::lookup_symbol_nonlocal): New member function.
4115 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4116 initializer.
4117 * objc-lang.c (objc_language_data): Likewise.
4118 * opencl-lang.c (opencl_language_data): Likewise.
4119 * p-lang.c (pascal_language_data): Likewise.
4120 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4121 rust_language::lookup_symbol_nonlocal.
4122 (rust_language_data): Delete la_lookup_symbol_nonlocal
4123 initializer.
4124 (rust_language::lookup_symbol_nonlocal): New member function,
4125 implementation from rust_lookup_symbol_nonlocal.
4126 * symtab.c (lookup_symbol_aux): Update call to
4127 lookup_symbol_nonlocal.
4128 (basic_lookup_symbol_nonlocal): Rename to...
4129 (language_defn::lookup_symbol_nonlocal): ...this, and update
4130 header comment. Remove language_defn parameter, and replace with
4131 uses of `this'.
4132 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4133
ebe2334e
AB
41342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4135
4136 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4137 initializer.
4138 (ada_language::value_print_inner): New member function.
4139 * c-lang.c (c_language_data): Delete la_value_print_inner
4140 initializer.
4141 (cplus_language_data): Likewise.
4142 (asm_language_data): Likewise.
4143 (minimal_language_data): Likewise.
4144 * d-lang.c (d_language_data): Likewise.
4145 (d_language::value_print_inner): New member function.
4146 * f-lang.c (f_language_data): Delete la_value_print_inner
4147 initializer.
4148 (f_language::value_print_inner): New member function.
4149 * f-lang.h (f_value_print_innner): Rename to...
4150 (f_value_print_inner): ...this (note spelling of 'inner').
4151 * f-valprint.c (f_value_print_innner): Rename to...
4152 (f_value_print_inner): ...this (note spelling of 'inner').
4153 * go-lang.c (go_language_data): Delete la_value_print_inner
4154 initializer.
4155 (go_language::value_print_inner): New member function.
4156 * language.c (language_defn::value_print_inner): Define new member
4157 function.
4158 (unk_lang_value_print_inner): Delete.
4159 (unknown_language_data): Delete la_value_print_inner initializer.
4160 (unknown_language::value_print_inner): New member function.
4161 (auto_language_data): Delete la_value_print_inner initializer.
4162 (auto_language::value_print_inner): New member function.
4163 * language.h (language_data): Delete la_value_print_inner field.
4164 (language_defn::value_print_inner): Delcare new member function.
4165 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4166 initializer.
4167 (m2_language::value_print_inner): New member function.
4168 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4169 initializer.
4170 * opencl-lang.c (opencl_language_data): Likewise.
4171 * p-lang.c (pascal_language_data): Likewise.
4172 (pascal_language::value_print_inner): New member function.
4173 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4174 initializer.
4175 (rust_language::value_print_inner): New member function.
4176 * valprint.c (do_val_print): Update call to value_print_inner.
4177
a1d1fa3e
AB
41782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4179
4180 * ada-lang.c (ada_language_data): Delete la_value_print
4181 initializer.
4182 (ada_language::value_print): New member function.
4183 * c-lang.c (c_language_data): Delete la_value_print initializer.
4184 (cplus_language_data): Likewise.
4185 (asm_language_data): Likewise.
4186 (minimal_language_data): Likewise.
4187 * d-lang.c (d_language_data): Likewise.
4188 * f-lang.c (f_language_data): Likewise.
4189 * go-lang.c (go_language_data): Likewise.
4190 * language.c (unk_lang_value_print): Delete.
4191 (language_defn::value_print): Define new member function.
4192 (unknown_language_data): Delete la_value_print initializer.
4193 (unknown_language::value_print): New member function.
4194 (auto_language_data): Delete la_value_print initializer.
4195 (auto_language::value_print): New member function.
4196 * language.h (language_data): Delete la_value_print field.
4197 (language_defn::value_print): Declare new member function.
4198 (LA_VALUE_PRINT): Update call to value_print.
4199 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4200 * objc-lang.c (objc_language_data): Likewise.
4201 * opencl-lang.c (opencl_language_data): Likewise.
4202 * p-lang.c (pascal_language_data): Likewise.
4203 (pascal_language::value_print): New member function.
4204 * rust-lang.c (rust_language_data): Delete la_value_print
4205 initializer.
4206
f16a9f57
AB
42072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4208
4209 * ada-lang.c (ada_watch_location_expression): Rename to
4210 ada_language::watch_location_expression.
4211 (ada_language_data): Delete la_watch_location_expression
4212 initializer.
4213 (ada_language::watch_location_expression): New member function,
4214 implementation from ada_watch_location_expression.
4215 * breakpoint.c (watch_command_1): Update call to
4216 watch_location_expression.
4217 * c-lang.c (c_watch_location_expression): Rename to
4218 language_defn::watch_location_expression.
4219 (c_language_data): Delete la_watch_location_expression
4220 initializer.
4221 (cplus_language_data): Likewise.
4222 (asm_language_data): Likewise.
4223 (minimal_language_data): Likewise.
4224 * c-lang.h (c_watch_location_expression): Delete declaration.
4225 * d-lang.c (d_language_data): Delete la_watch_location_expression
4226 initializer.
4227 * f-lang.c (f_language_data): Likewise.
4228 * go-lang.c (go_language_data): Likewise.
4229 * language.c (language_defn::watch_location_expression): Member
4230 function implementation from c_watch_location_expression.
4231 (unknown_language_data): Delete la_watch_location_expression
4232 initializer.
4233 (auto_language_data): Likewise.
4234 * language.h (language_data): Delete la_watch_location_expression
4235 field.
4236 (language_defn::watch_location_expression): Declare new member
4237 function.
4238 * m2-lang.c (m2_language_data): Delete
4239 la_watch_location_expression initializer.
4240 * objc-lang.c (objc_language_data): Likewise.
4241 * opencl-lang.c (opencl_language_data): Likewise.
4242 * p-lang.c (pascal_language_data): Likewise.
4243 * rust-lang.c (rust_watch_location_expression): Rename to
4244 rust_language::watch_location_expression.
4245 (rust_language_data): Delete la_watch_location_expression
4246 initializer.
4247 (rust_language::watch_location_expression): New member function,
4248 implementation from rust_watch_location_expression.
4249
7e56227d
AB
42502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4251
4252 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4253 ada_language::collect_symbol_completion_matches.
4254 (ada_language_data): Delete la_collect_symbol_completion_matches
4255 initializer.
4256 (ada_language::collect_symbol_completion_matches): New member
4257 function, implementation from
4258 ada_collect_symbol_completion_matches.
4259 * c-lang.c (c_language_data): Delete
4260 la_collect_symbol_completion_matches initializer.
4261 (cplus_language_data): Likewise.
4262 (asm_language_data): Likewise.
4263 (minimal_language_data): Likewise.
4264 * d-lang.c (d_language_data): Likewise.
4265 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4266 f_language::collect_symbol_completion_matches.
4267 (f_language_data): Delete la_collect_symbol_completion_matches
4268 initializer.
4269 (f_language::collect_symbol_completion_matches) New member
4270 function, implementation from f_collect_symbol_completion_matches.
4271 * go-lang.c (go_language_data): Delete
4272 la_collect_symbol_completion_matches initializer.
4273 * language.c (unknown_language_data): Likewise.
4274 (auto_language_data): Likewise.
4275 * language.h (language_data): Delete
4276 la_collect_symbol_completion_matches field.
4277 (language_defn::collect_symbol_completion_matches): New member
4278 function.
4279 * m2-lang.c (m2_language_data): Delete
4280 la_collect_symbol_completion_matches initializer.
4281 * objc-lang.c (objc_language_data): Likewise.
4282 * opencl-lang.c (opencl_language_data): Likewise.
4283 * p-lang.c (pascal_language_data): Likewise.
4284 * rust-lang.c (rust_language_data): Likewise.
4285 * symtab.c (default_collect_symbol_completion_matches): Delete.
4286 (collect_symbol_completion_matches): Update call to
4287 collect_symbol_completion_matches.
4288 (collect_symbol_completion_matches_type): Likewise.
4289 * symtab.h (default_collect_symbol_completion_matches): Delete
4290 declaration.
4291
53fc67f8
AB
42922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4293
4294 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4295 (ada_language_data): Delete la_word_break_characters initializer.
4296 (ada_language::word_break_characters): New member function.
4297 * c-lang.c (c_language_data): Delete la_word_break_characters
4298 initializer.
4299 (cplus_language_data): Likewise.
4300 (asm_language_data): Likewise.
4301 (minimal_language_data): Likewise.
4302 * completer.c: Update global comment.
4303 (advance_to_expression_complete_word_point): Update call to
4304 word_break_characters.
4305 (complete_files_symbols): Likewise.
4306 (complete_line_internal_1): Likewise.
4307 (default_completer_handle_brkchars): Likewise.
4308 (skip_quoted_chars): Likewise.
4309 * d-lang.c (d_language_data): Delete la_word_break_characters
4310 initializer.
4311 * f-lang.c (f_word_break_characters): Delete.
4312 (f_language_data): Delete la_word_break_characters initializer.
4313 (f_language::word_break_characters): New member function.
4314 * go-lang.c (go_language_data): Delete la_word_break_characters
4315 initializer.
4316 * language.c (unknown_language_data): Likewise.
4317 (auto_language_data): Likewise.
4318 * language.h (default_word_break_characters): Move declaration to
4319 earlier in the file.
4320 (language_data): Delete la_word_break_characters field.
4321 (language_defn::word_break_characters): New member function.
4322 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4323 initializer.
4324 * objc-lang.c (objc_language_data): Likewise.
4325 * opencl-lang.c (opencl_language_data): Likewise.
4326 * p-lang.c (pascal_language_data): Likewise.
4327 * rust-lang.c (rust_language_data): Likewise.
4328
c9debfb9
AB
43292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4330
4331 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4332 (ada_language_data): Delete la_get_symbol_name_matcher
4333 initializer.
4334 (language_defn::get_symbol_name_matcher_inner): New member
4335 function.
4336 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4337 initializer.
4338 (cplus_language_data): Likewise.
4339 (cplus_language::get_symbol_name_matcher_inner): New member
4340 function.
4341 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4342 (minimal_language_data): Likewise.
4343 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4344 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4345 initializer.
4346 * dictionary.c (iter_match_first_hashed): Update call to
4347 get_symbol_name_matcher.
4348 (iter_match_next_hashed): Likewise.
4349 (iter_match_next_linear): Likewise.
4350 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4351 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4352 initializer.
4353 (f_language::get_symbol_name_matcher_inner): New member function.
4354 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4355 initializer.
4356 * language.c (default_symbol_name_matcher): Update header comment,
4357 make static.
4358 (language_defn::get_symbol_name_matcher): New definition.
4359 (language_defn::get_symbol_name_matcher_inner): Likewise.
4360 (get_symbol_name_matcher): Delete.
4361 (unknown_language_data): Delete la_get_symbol_name_matcher
4362 initializer.
4363 (auto_language_data): Likewise.
4364 * language.h (language_data): Delete la_get_symbol_name_matcher
4365 field.
4366 (language_defn::get_symbol_name_matcher): New member function.
4367 (language_defn::get_symbol_name_matcher_inner): Likewise.
4368 (default_symbol_name_matcher): Delete declaration.
4369 * linespec.c (find_methods): Update call to
4370 get_symbol_name_matcher.
4371 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4372 initializer.
4373 * minsyms.c (lookup_minimal_symbol): Update call to
4374 get_symbol_name_matcher.
4375 (iterate_over_minimal_symbols): Likewise.
4376 * objc-lang.c (objc_language_data): Delete
4377 la_get_symbol_name_matcher initializer.
4378 * opencl-lang.c (opencl_language_data): Likewise.
4379 * p-lang.c (pascal_language_data): Likewise.
4380 * psymtab.c (psymbol_name_matches): Update call to
4381 get_symbol_name_matcher.
4382 * rust-lang.c (rust_language_data): Delete
4383 la_get_symbol_name_matcher initializer.
4384 * symtab.c (symbol_matches_search_name): Update call to
4385 get_symbol_name_matcher.
4386 (compare_symbol_name): Likewise.
4387
9a49ad8c
AB
43882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4389
4390 * ada-lang.c (ada_language_data): Delete la_compute_program
4391 initializer.
4392 * c-lang.c (c_language_data): Likewise.
4393 (c_language::compute_program): New member function.
4394 (cplus_language_data): Delete la_compute_program initializer.
4395 (cplus_language::compute_program): New member function.
4396 (asm_language_data): Delete la_compute_program initializer.
4397 (minimal_language_data): Likewise.
4398 * c-lang.h (c_compute_program): Update comment.
4399 (cplus_compute_program): Likewise.
4400 * compile/compile-c-support.c (c_compute_program): Likewise.
4401 (cplus_compute_program): Likewise.
4402 * compile/compile.c (compile_to_object): Update call to
4403 la_compute_program.
4404 * d-lang.c (d_language_data): Delete la_compute_program
4405 initializer.
4406 * f-lang.c (f_language_data): Likewise.
4407 * go-lang.c (go_language_data): Likewise.
4408 * language.c (unknown_language_data): Likewise.
4409 (auto_language_data): Likewise.
4410 * language.h (language_data): Delete la_compute_program field.
4411 (language_defn::compute_program): New member function.
4412 * m2-lang.c (m2_language_data): Delete la_compute_program
4413 initializer.
4414 * objc-lang.c (objc_language_data): Likewise.
4415 * opencl-lang.c (opencl_language_data): Likewise.
4416 * p-lang.c (pascal_language_data): Likewise.
4417 * rust-lang.c (rust_language_data): Likewise.
4418
eff93b4d
AB
44192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4420
4421 * ada-lang.c (ada_language_data) Delete
4422 la_class_name_from_physname initializer.
4423 * c-lang.c (c_language_data): Likewise.
4424 (cplus_language_data): Likewise.
4425 (cplus_language::class_name_from_physname): New member function.
4426 (asm_language_data): Delete la_class_name_from_physname
4427 initializer.
4428 (minimal_language_data): Likewise.
4429 * d-lang.c (d_language_data): Likewise.
4430 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4431 method on language_defn class.
4432 (guess_full_die_structure_name): Likewise.
4433 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4434 initializer.
4435 * go-lang.c (go_language_data): Likewise.
4436 * language.c (language_class_name_from_physname): Delete.
4437 (unk_lang_class_name): Delete.
4438 (unknown_language_data): Delete la_class_name_from_physname
4439 initializer.
4440 (auto_language_data): Likewise.
4441 * language.h (language_data): Delete la_class_name_from_physname
4442 field.
4443 (language_defn::class_name_from_physname): New function.
4444 (language_class_name_from_physname): Delete declaration.
4445 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4446 initializer.
4447 * objc-lang.c (objc_language_data): Likewise.
4448 * opencl-lang.c (opencl_language_data): Likewise.
4449 * p-lang.c (pascal_language_data): Likewise.
4450 * rust-lang.c (rust_language_data): Likewise.
4451
de543742
TT
44522020-06-16 Tom Tromey <tom@tromey.com>
4453
4454 * tui/tui-data.h (STATUS_NAME): New macro.
4455 * tui/tui-layout.c (tui_remove_some_windows)
4456 (initialize_known_windows, tui_register_window)
4457 (tui_layout_split::remove_windows, initialize_layouts)
4458 (tui_new_layout_command): Don't use hard-coded window names.
4459
a350efd4
TT
44602020-06-16 Tom Tromey <tom@tromey.com>
4461
4462 PR tui/25348:
4463 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4464 tui_initialize_readline. Only run once. Call rl_initialize.
4465 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4466 tui_initialize_readline.
4467 * tui/tui-io.c (tui_setup_io): Call
4468 tui_ensure_readline_initialized.
4469 * tui/tui-interp.c (tui_interp::init): Update.
4470
39ec0490
TT
44712020-06-16 Tom Tromey <tom@tromey.com>
4472
4473 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4474 Also preserve the status window.
4475
d2d1ea20
TT
44762020-06-16 Tom Tromey <tom@tromey.com>
4477
4478 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4479 where m_window==nullptr.
4480
66920317
TT
44812020-06-15 Tom Tromey <tromey@adacore.com>
4482
4483 * windows-nat.c (windows_nat::handle_output_debug_string):
4484 Update.
4485 (windows_nat::handle_ms_vc_exception): Update.
4486 * target.h (target_read_string): Change API.
4487 * target.c (target_read_string): Change API.
4488 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4489 Update.
4490 * solib-frv.c (frv_current_sos): Update.
4491 * solib-dsbt.c (dsbt_current_sos): Update.
4492 * solib-darwin.c (darwin_current_sos): Update.
4493 * linux-thread-db.c (inferior_has_bug): Update.
4494 * expprint.c (print_subexp_standard): Update.
4495 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4496 (ada_exception_message_1): Update.
4497
a5d871dd
TT
44982020-06-15 Tom Tromey <tromey@adacore.com>
4499
4500 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4501
670e35fa
TT
45022020-06-15 Tom Tromey <tromey@adacore.com>
4503
4504 * valprint.c (read_string): Update comment.
4505 * target.c (MIN): Remove.
4506 (target_read_string): Rewrite.
4507
f5272a3b
TT
45082020-06-15 Tom Tromey <tromey@adacore.com>
4509
4510 * corefile.c (read_memory_string): Remove.
4511 * ada-valprint.c (ada_value_print_ptr): Update.
4512 * ada-lang.h (ada_tag_name): Change return type.
4513 * ada-lang.c (type_from_tag): Update.
4514 (ada_tag_name_from_tsd): Change return type. Use
4515 target_read_string.
4516 (ada_tag_name): Likewise.
4517 * gdbcore.h (read_memory_string): Don't declare.
4518
2c074f49
HD
45192020-06-14 Hannes Domani <ssbssa@yahoo.de>
4520
4521 * symtab.c (rbreak_command): Ignore Windows drive colon.
4522
6a17d503
SM
45232020-06-12 Simon Marchi <simon.marchi@efficios.com>
4524
4525 * NEWS: Mention removed GDBserver host support.
4526
453c733f
NC
45272020-06-12 Nelson Chu <nelson.chu@sifive.com>
4528
4529 * features/riscv/rebuild-csr-xml.sh: Updated.
4530
2b4e6a3f
TT
45312020-06-11 Tom Tromey <tom@tromey.com>
4532
4533 PR gdb/18318:
4534 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4535
4412332f
JG
45362020-06-09 Jonny Grant <jg@jguk.org>
45372020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4538
4539 * main.c (captured_main_1): Don't print new line after help.
4540 (print_gdb_help): add mailing list and IRC channel information
4541 to --help. Add new lines between items in the footer. Remove
4542 quotes around bug url.
4543
2f33032a
KS
45442020-06-11 Keith Seitz <keiths@redhat.com>
4545
4546 PR gdb/21356
4547 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4548 Resolve typedefs for type length calculations.
4549
7ab96794
TV
45502020-06-10 Tom de Vries <tdevries@suse.de>
4551
4552 PR ada/24713
4553 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4554 (write_psymbols): Enable .gdb_index for ada.
4555 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4556 ada.
4557
e5f3ece2
TV
45582020-06-10 Tom de Vries <tdevries@suse.de>
4559
4560 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4561 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4562 namei" instead of "const char *name" argument.
4563 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4564 dw2_symtab_iter_init.
4565
940da03e
SM
45662020-06-08 Simon Marchi <simon.marchi@efficios.com>
4567
4568 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4569 to use type::field and field::type instead.
4570
b6cdac4b
SM
45712020-06-08 Simon Marchi <simon.marchi@efficios.com>
4572
4573 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4574 to use field::type instead.
4575
5d14b6e5
SM
45762020-06-08 Simon Marchi <simon.marchi@efficios.com>
4577
4578 * gdbtypes.h (struct field) <type, set_type>: New methods.
4579 Rename `type` field to...
4580 <m_type>: ... this. Change references throughout to use type or
4581 set_type methods.
4582 (FIELD_TYPE): Use field::type. Change call sites that modify
4583 the field's type to use field::set_type instead.
4584
3d967001
SM
45852020-06-08 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4588 to use type::index_type instead.
4589
262abc0d
SM
45902020-06-08 Simon Marchi <simon.marchi@efficios.com>
4591
4592 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4593 methods.
4594 (TYPE_INDEX_TYPE): Use type::index_type.
4595 * gdbtypes.c (create_array_type_with_stride): Likewise.
4596
82836c92
TT
45972020-06-07 Tom Tromey <tom@tromey.com>
4598
4599 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4600 parameter.
4601 (generic_value_print): Update.
4602
940dace9
AB
46032020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4604
4605 Revert commit 982a38f60b0.
4606 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4607
982a38f6
AB
46082020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4609
4610 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4611 avoid use after free.
4612
82f06518
TV
46132020-06-05 Tom de Vries <tdevries@suse.de>
4614
4615 * NEWS: Fix typos.
4616
f8c41851
SM
46172020-06-04 Simon Marchi <simon.marchi@efficios.com>
4618
4619 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4620 the per_bfd object.
4621 (dwarf2_read_debug_names): Likewise.
4622 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4623 object when re-using a per_bfd object with an index.
4624
f9b5d5ea
TV
46252020-06-03 Tom de Vries <tdevries@suse.de>
4626
4627 PR symtab/26046
4628 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4629 children for C++.
4630 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4631 DW_TAG_subprogram.
4632
f6eee2d0
AB
46332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4634
4635 * ada-lang.c (ada_language_data): Delete skip_trampoline
4636 initializer.
4637 * c-lang.c (c_language_data): Likewise.
4638 (cplus_language_data): Likewise.
4639 (cplus_language::skip_trampoline): New member function.
4640 (asm_language_data): Delete skip_trampoline initializer.
4641 (minimal_language_data): Likewise.
4642 * d-lang.c (d_language_data): Likewise.
4643 * f-lang.c (f_language_data): Likewise.
4644 * go-lang.c (go_language_data): Likewise.
4645 * language.c (unk_lang_trampoline): Delete function.
4646 (skip_language_trampoline): Update.
4647 (unknown_language_data): Delete skip_trampoline initializer.
4648 (auto_language_data): Likewise.
4649 * language.h (language_data): Delete skip_trampoline field.
4650 (language_defn::skip_trampoline): New function.
4651 * m2-lang.c (m2_language_data): Delete skip_trampoline
4652 initializer.
4653 * objc-lang.c (objc_skip_trampoline): Delete function, move
4654 implementation to objc_language::skip_trampoline.
4655 (objc_language_data): Delete skip_trampoline initializer.
4656 (objc_language::skip_trampoline): New member function with
4657 implementation from objc_skip_trampoline.
4658 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4659 initializer.
4660 * p-lang.c (pascal_language_data): Likewise.
4661 * rust-lang.c (rust_language_data): Likewise.
4662
0a50df5d
AB
46632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4664
4665 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4666 (ada_language::demangle): New member function.
4667 * c-lang.c (c_language_data): Delete la_demangle initializer.
4668 (cplus_language_data): Delete la_demangle initializer.
4669 (cplus_language::demangle): New member function.
4670 (asm_language_data): Delete la_demangle initializer.
4671 (minimal_language_data): Delete la_demangle initializer.
4672 * d-lang.c (d_language_data): Delete la_demangle initializer.
4673 (d_language::demangle): New member function.
4674 * f-lang.c (f_language_data): Delete la_demangle initializer.
4675 (f_language::demangle): New member function.
4676 * go-lang.c (go_language_data): Delete la_demangle initializer.
4677 (go_language::demangle): New member function.
4678 * language.c (language_demangle): Update.
4679 (unk_lang_demangle): Delete.
4680 (unknown_language_data): Delete la_demangle initializer.
4681 (unknown_language::demangle): New member function.
4682 (auto_language_data): Delete la_demangle initializer.
4683 (auto_language::demangle): New member function.
4684 * language.h (language_data): Delete la_demangle field.
4685 (language_defn::demangle): New function.
4686 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4687 * objc-lang.c (objc_language_data): Delete la_demangle
4688 initializer.
4689 (objc_language::demangle): New member function.
4690 * opencl-lang.c (opencl_language_data): Delete la_demangle
4691 initializer.
4692 * p-lang.c (pascal_language_data): Likewise.
4693 * rust-lang.c (rust_language_data): Likewise.
4694 (rust_language::demangle): New member function.
4695
fbfb0a46
AB
46962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4697
4698 * ada-lang.c (ada_language_data): Delete la_print_type
4699 initializer.
4700 (ada_language::print_type): New member function.
4701 * c-lang.c (c_language_data): Delete la_print_type initializer.
4702 (c_language::print_type): New member function.
4703 (cplus_language_data): Delete la_print_type initializer.
4704 (cplus_language::print_type): New member function.
4705 (asm_language_data): Delete la_print_type initializer.
4706 (asm_language::print_type): New member function.
4707 (minimal_language_data): Delete la_print_type initializer.
4708 (minimal_language::print_type): New member function.
4709 * d-lang.c (d_language_data): Delete la_print_type initializer.
4710 (d_language::print_type): New member function.
4711 * f-lang.c (f_language_data): Delete la_print_type initializer.
4712 (f_language::print_type): New member function.
4713 * go-lang.c (go_language_data): Delete la_print_type initializer.
4714 (go_language::print_type): New member function.
4715 * language.c (unk_lang_print_type): Delete.
4716 (unknown_language_data): Delete la_print_type initializer.
4717 (unknown_language::print_type): New member function.
4718 (auto_language_data): Delete la_print_type initializer.
4719 (auto_language::print_type): New member function.
4720 * language.h (language_data): Delete la_print_type field.
4721 (language_defn::print_type): New function.
4722 (LA_PRINT_TYPE): Update.
4723 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4724 (m2_language::print_type): New member function.
4725 * objc-lang.c (objc_language_data): Delete la_print_type
4726 initializer.
4727 (objc_language::print_type): New member function.
4728 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4729 to opencl_language::print_type.
4730 (opencl_language_data): Delete la_print_type initializer.
4731 (opencl_language::print_type): New member function, implementation
4732 from opencl_print_type.
4733 * p-lang.c (pascal_language_data): Delete la_print_type
4734 initializer.
4735 (pascal_language::print_type): New member function.
4736 * rust-lang.c (rust_print_type): Delete, implementation moved to
4737 rust_language::print_type.
4738 (rust_language_data): Delete la_print_type initializer.
4739 (rust_language::print_type): New member function, implementation
4740 from rust_print_type.
4741
6f827019
AB
47422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4743
4744 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4745 implementation moves to...
4746 (ada_language::sniff_from_mangled_name): ...here. Update return
4747 type.
4748 (ada_language_data): Delete la_sniff_from_mangled_name
4749 initializer.
4750 * c-lang.c (c_language_data): Likewise.
4751 (cplus_language_data): Likewise.
4752 (cplus_language::sniff_from_mangled_name): New member function,
4753 implementation taken from gdb_sniff_from_mangled_name.
4754 (asm_language_data): Delete la_sniff_from_mangled_name
4755 initializer.
4756 (minimal_language_data): Likewise.
4757 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4758 implementation moves to cplus_language::sniff_from_mangled_name.
4759 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4760 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4761 moves to...
4762 (d_language::sniff_from_mangled_name): ...here.
4763 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4764 * f-lang.c (f_language_data): Likewise.
4765 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4766 moves to...
4767 (go_language::sniff_from_mangled_name): ...here.
4768 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4769 * language.c (language_sniff_from_mangled_name): Delete.
4770 (unknown_language_data): Delete la_sniff_from_mangled_name
4771 initializer.
4772 (auto_language_data): Likewise.
4773 * language.h (language_data): Delete la_sniff_from_mangled_name
4774 field.
4775 (language_defn::sniff_from_mangled_name): New function.
4776 (language_sniff_from_mangled_name): Delete declaration.
4777 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4778 field.
4779 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4780 implementation moves to...
4781 (objc_language::sniff_from_mangled_name): ...here.
4782 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4783 * opencl-lang.c (opencl_language_data): Likewise.
4784 * p-lang.c (pascal_language_data): Likewise.
4785 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4786 implementation moves to...
4787 (rust_language::sniff_from_mangled_name): ...here.
4788 (rust_language_data): Delete la_sniff_from_mangled_name
4789 initializer.
4790 * symtab.c (symbol_find_demangled_name): Call
4791 sniff_from_mangled_name member function.
4792
fb8006fd
AB
47932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4794
4795 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4796 initializer.
4797 * c-lang.c (c_language_data): Likewise.
4798 (cplus_language_data): Likewise.
4799 (cplus_language::search_name_hash): New member function.
4800 (asm_language_data): Delete la_search_name_hash initializer.
4801 (minimal_language_data): Likewise.
4802 * d-lang.c (d_language_data): Likewise.
4803 * dictionary.c (default_search_name_hash): Rename to...
4804 (language_defn::search_name_hash): ...this.
4805 * f-lang.c (f_language_data): Likewise.
4806 (f_language::search_name_hash): New member function.
4807 * go-lang.c (go_language_data): Delete la_search_name_hash
4808 initializer.
4809 * language.c (unknown_language_data): Likewise.
4810 (auto_language_data): Likewise.
4811 * language.h (struct language_data): Delete la_search_name_hash
4812 field.
4813 (language_defn::search_name_hash): Declare new member function.
4814 (default_search_name_hash): Delete declaration.
4815 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4816 initializer.
4817 * objc-lang.c (objc_language_data): Likewise.
4818 * opencl-lang.c (opencl_language_data): Likewise.
4819 * p-lang.c (pascal_language_data): Likewise.
4820 * rust-lang.c (rust_language_data): Likewise.
4821 * symtab.c (search_name_hash): Update call.
4822
8e25bafe
AB
48232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4824
4825 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4826 initializer.
4827 * c-lang.c (class compile_instance): Declare.
4828 (c_language_data): Delete la_get_compile_instance initializer.
4829 (c_language::get_compile_instance): New member function.
4830 (cplus_language_data): Delete la_get_compile_instance initializer.
4831 (cplus_language::get_compile_instance): New member function.
4832 (asm_language_data): Delete la_get_compile_instance initializer.
4833 (minimal_language_data): Likewise.
4834 * c-lang.h (c_get_compile_context): Update comment.
4835 (cplus_get_compile_context): Update comment.
4836 * compile/compile.c (compile_to_object): Update calls, don't rely
4837 on function pointer being NULL.
4838 * d-lang.c (d_language_data): Delete la_get_compile_instance
4839 initializer.
4840 * f-lang.c (f_language_data): Likewise.
4841 * go-lang.c (go_language_data): Likewise.
4842 * language.c (unknown_language_data): Likewise.
4843 (auto_language_data): Likewise.
4844 * language.h (language_data): Delete la_get_compile_instance field.
4845 (language_defn::get_compile_instance): New member function.
4846 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4847 initializer.
4848 * objc-lang.c (objc_language_data): Likewise.
4849 * opencl-lang.c (opencl_language_data): Likewise.
4850 * p-lang.c (pascal_language_data): Likewise.
4851 * rust-lang.c (rust_language_data): Likewise.
4852
4009ee92
AB
48532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4854
4855 * ada-lang.c (ada_add_all_symbols): Update comment.
4856 (ada_iterate_over_symbols): Delete, move implementation to...
4857 (ada_language::iterate_over_symbols): ...here, a new member
4858 function, rewrite to use range based for loop.
4859 (ada_language_data): Delete la_iterate_over_symbols initializer.
4860 * c-lang.c (c_language_data): Likewise.
4861 (cplus_language_data): Likewise.
4862 (asm_language_data): Likewise.
4863 (minimal_language_data): Likewise.
4864 * d-lang.c (d_language_data): Likewise.
4865 * f-lang.c (f_language_data): Likewise.
4866 * go-lang.c (go_language_data): Likewise.
4867 * language.c (unknown_language_data): Likewise.
4868 (auto_language_data): Likewise.
4869 * language.h (language_data): Delete la_iterate_over_symbols field.
4870 (language_defn::iterate_over_symbols): New member function.
4871 (LA_ITERATE_OVER_SYMBOLS): Update.
4872 * linespec.c (iterate_over_all_matching_symtabs): Update.
4873 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4874 initializer.
4875 * objc-lang.c (objc_language_data): Likewise.
4876 * opencl-lang.c (opencl_language_data): Likewise.
4877 * p-lang.c (pascal_language_data): Likewise.
4878 * rust-lang.c (rust_language_data): Likewise.
4879
54f4ca46
AB
48802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4881
4882 * ada-lang.c (ada_language_data): Delete
4883 la_lookup_transparent_type initializer.
4884 * c-lang.c (c_language_data): Likewise.
4885 (cplus_language_data): Likewise.
4886 (cplus_language::lookup_transparent_type): New member function.
4887 (asm_language_data): Delete la_lookup_transparent_type
4888 initializer.
4889 (minimal_language_data): Likewise.
4890 * d-lang.c (d_language_data): Likewise.
4891 * f-lang.c (f_language_data): Likewise.
4892 * go-lang.c (go_language_data): Likewise.
4893 * language.c (unknown_language_data): Likewise.
4894 (auto_language_data): Likewise.
4895 * language.h (struct language_data): Delete
4896 la_lookup_transparent_type field.
4897 (language_defn::lookup_transparent_type): New member function.
4898 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4899 initializer.
4900 * objc-lang.c (objc_language_data): Likewise.
4901 * opencl-lang.c (opencl_language_data): Likewise.
4902 * p-lang.c (pascal_language_data): Likewise.
4903 * rust-lang.c (rust_language_data): Likewise.
4904 * symtab.c (symbol_matches_domain): Update call.
4905
1fb314aa
AB
49062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4907
4908 * ada-lang.c (ada_language_arch_info): Delete function, move
4909 implementation to...
4910 (ada_language::language_arch_info): ...here, a new member
4911 function.
4912 (ada_language_data): Delete la_language_arch_info.
4913 * c-lang.c (c_language_data): Likewise.
4914 (c_language::language_arch_info): New member function.
4915 (cplus_language_arch_info): Delete function, move
4916 implementation to...
4917 (cplus_language::language_arch_info): ...here, a new member
4918 function.
4919 (cplus_language_data): Delete la_language_arch_info.
4920 (asm_language_data): Likewise.
4921 (asm_language::language_arch_info): New member function.
4922 (minimal_language_data): Delete la_language_arch_info.
4923 (minimal_language::language_arch_info): New member function.
4924 * d-lang.c (d_language_arch_info): Delete function, move
4925 implementation to...
4926 (d_language::language_arch_info): ...here, a new member
4927 function.
4928 (d_language_data): Delete la_language_arch_info.
4929 * f-lang.c (f_language_arch_info): Delete function, move
4930 implementation to...
4931 (f_language::language_arch_info): ...here, a new member
4932 function.
4933 (f_language_data): Delete la_language_arch_info.
4934 * go-lang.c (go_language_arch_info): Delete function, move
4935 implementation to...
4936 (go_language::language_arch_info): ...here, a new member
4937 function.
4938 (go_language_data): Delete la_language_arch_info.
4939 * language.c (unknown_language_data): Likewise.
4940 (unknown_language::language_arch_info): New member function.
4941 (auto_language_data): Delete la_language_arch_info.
4942 (auto_language::language_arch_info): New member function.
4943 (language_gdbarch_post_init): Update call to
4944 la_language_arch_info.
4945 * language.h (language_data): Delete la_language_arch_info
4946 function pointer.
4947 (language_defn::language_arch_info): New function.
4948 * m2-lang.c (m2_language_arch_info): Delete function, move
4949 implementation to...
4950 (m2_language::language_arch_info): ...here, a new member
4951 function.
4952 (m2_language_data): Delete la_language_arch_info.
4953 * objc-lang.c (objc_language_arch_info): Delete function, move
4954 implementation to...
4955 (objc_language::language_arch_info): ...here, a new member
4956 function.
4957 (objc_language_data): Delete la_language_arch_info.
4958 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4959 implementation to...
4960 (opencl_language::language_arch_info): ...here, a new member
4961 function.
4962 (opencl_language_data): Delete la_language_arch_info.
4963 * p-lang.c (pascal_language_arch_info): Delete function, move
4964 implementation to...
4965 (pascal_language::language_arch_info): ...here, a new member
4966 function.
4967 (pascal_language_data): Delete la_language_arch_info.
4968 * rust-lang.c (rust_language_arch_info): Delete function, move
4969 implementation to...
4970 (rust_language::language_arch_info): ...here, a new member
4971 function.
4972 (rust_language_data): Delete la_language_arch_info.
4973
48448202
AB
49742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4975
4976 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4977 initializer.
4978 * c-lang.c (c_language_data): Likewise.
4979 (cplus_language_data): Likewise.
4980 (cplus_language::pass_by_reference_info): New method.
4981 (asm_language_data): Delete la_pass_by_reference initializer.
4982 (minimal_language_data): Likewise.
4983 * cp-abi.c (cp_pass_by_reference): Remove use of
4984 default_pass_by_reference.
4985 * d-lang.c (d_language_data): Likewise.
4986 * f-lang.c (f_language_data): Likewise.
4987 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4988 default_pass_by_reference.
4989 * go-lang.c (go_language_data): Likewise.
4990 * language.c (language_pass_by_reference): Update.
4991 (default_pass_by_reference): Delete.
4992 (unknown_language_data): Delete la_pass_by_reference
4993 initializer.
4994 (auto_language_data): Likewise.
4995 * language.h (struct language_data): Delete la_pass_by_reference
4996 field.
4997 (language_defn::pass_by_reference_info): New member function.
4998 (default_pass_by_reference): Delete declaration.
4999 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5000 initializer.
5001 * objc-lang.c (objc_language_data): Likewise.
5002 * opencl-lang.c (opencl_language_data): Likewise.
5003 * p-lang.c (pascal_language_data): Likewise.
5004 * rust-lang.c (rust_language_data): Likewise.
5005
15e5fd35
AB
50062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5007
5008 * ada-lang.c (ada_read_var_value): Delete function, move
5009 implementation to...
5010 (ada_language::read_var_value): ...here.
5011 (ada_language_data): Delete la_read_var_value initializer.
5012 * c-lang.c (c_language_data): Likewise.
5013 (cplus_language_data): Likewise.
5014 (minimal_language_data): Likewise.
5015 * d-lang.c (d_language_data): Likewise.
5016 * f-lang.c (f_language_data): Likewise.
5017 * findvar.c (default_read_var_value): Rename to...
5018 (language_defn::read_var_value): ...this.
5019 * findvar.c (read_var_value): Update header comment, and change to
5020 call member function instead of function pointer.
5021 * go-lang.c (go_language_data): Likewise.
5022 * language.c (unknown_language_data): Delete la_read_var_value
5023 initializer.
5024 (auto_language_data): Likewise.
5025 * language.h (struct language_data): Delete la_read_var_value
5026 field.
5027 (language_defn::read_var_value): New member function.
5028 (default_read_var_value): Delete declaration.
5029 * m2-lang.c (m2_language_data): Delete la_read_var_value
5030 initializer.
5031 * objc-lang.c (objc_language_data): Likewise.
5032 * opencl-lang.c (opencl_language_data): Likewise.
5033 * p-lang.c (pascal_language_data): Likewise.
5034 * rust-lang.c (rust_language_data): Likewise.
5035 * value.h (default_read_var_value): Delete declaration.
5036
5bd40f2a
AB
50372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5038
5039 * ada-lang.c (ada_print_array_index): Delete function, move
5040 implementation to...
5041 (ada_language::print_array_index): ...here.
5042 (ada_language_data): Delete la_print_array_index initializer.
5043 * c-lang.c (c_language_data): Likewise.
5044 (cplus_language_data): Likewise.
5045 (minimal_language_data): Likewise.
5046 * d-lang.c (d_language_data): Likewise.
5047 * f-lang.c (f_language_data): Likewise.
5048 * go-lang.c (go_language_data): Likewise.
5049 * language.c (default_print_array_index): Delete function, move
5050 implementation to...
5051 (language_defn::print_array_index): ...here.
5052 (unknown_language_data): Delete la_print_array_index initializer.
5053 (auto_language_data): Likewise.
5054 * language.h (struct language_data): Delete la_print_array_index
5055 field.
5056 (language_defn::print_array_index): New member function.
5057 (LA_PRINT_ARRAY_INDEX): Update.
5058 (default_print_array_index): Delete declaration.
5059 * m2-lang.c (m2_language_data): Delete la_print_array_index
5060 initializer.
5061 * objc-lang.c (objc_language_data): Likewise.
5062 * opencl-lang.c (opencl_language_data): Likewise.
5063 * p-lang.c (pascal_language_data): Likewise.
5064 * rust-lang.c (rust_language_data): Likewise.
5065
0874fd07
AB
50662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5067
5068 * gdb/ada-lang.c (ada_language_defn): Convert to...
5069 (ada_language_data): ...this.
5070 (class ada_language): New class.
5071 (ada_language_defn): New static global.
5072 * gdb/c-lang.c (c_language_defn): Convert to...
5073 (c_language_data): ...this.
5074 (class c_language): New class.
5075 (c_language_defn): New static global.
5076 (cplus_language_defn): Convert to...
5077 (cplus_language_data): ...this.
5078 (class cplus_language): New class.
5079 (cplus_language_defn): New static global.
5080 (asm_language_defn): Convert to...
5081 (asm_language_data): ...this.
5082 (class asm_language): New class.
5083 (asm_language_defn): New static global.
5084 (minimal_language_defn): Convert to...
5085 (minimal_language_data): ...this.
5086 (class minimal_language): New class.
5087 (minimal_language_defn): New static global.
5088 * gdb/d-lang.c (d_language_defn): Convert to...
5089 (d_language_data): ...this.
5090 (class d_language): New class.
5091 (d_language_defn): New static global.
5092 * gdb/f-lang.c (f_language_defn): Convert to...
5093 (f_language_data): ...this.
5094 (class f_language): New class.
5095 (f_language_defn): New static global.
5096 * gdb/go-lang.c (go_language_defn): Convert to...
5097 (go_language_data): ...this.
5098 (class go_language): New class.
5099 (go_language_defn): New static global.
5100 * gdb/language.c (unknown_language_defn): Remove declaration.
5101 (current_language): Initialize to nullptr, real initialization is
5102 moved to _initialize_language.
5103 (languages): Delete global.
5104 (language_defn::languages): Define.
5105 (set_language_command): Use language_defn::languages.
5106 (set_language): Likewise.
5107 (range_error): Likewise.
5108 (language_enum): Likewise.
5109 (language_def): Likewise.
5110 (add_set_language_command): Use language_def::languages for the
5111 language list, and language_def to lookup language pointers.
5112 (skip_language_trampoline): Use language_defn::languages.
5113 (unknown_language_defn): Convert to...
5114 (unknown_language_data): ...this.
5115 (class unknown_language): New class.
5116 (unknown_language_defn): New static global.
5117 (auto_language_defn): Convert to...
5118 (auto_language_data): ...this.
5119 (class auto_language): New class.
5120 (auto_language_defn): New static global.
5121 (language_gdbarch_post_init): Use language_defn::languages.
5122 (_initialize_language): Initialize current_language.
5123 * gdb/language.h (struct language_defn): Rename to...
5124 (struct language_data): ...this.
5125 (struct language_defn): New.
5126 (auto_language_defn): Delete.
5127 (unknown_language_defn): Delete.
5128 (minimal_language_defn): Delete.
5129 (ada_language_defn): Delete.
5130 (asm_language_defn): Delete.
5131 (c_language_defn): Delete.
5132 (cplus_language_defn): Delete.
5133 (d_language_defn): Delete.
5134 (f_language_defn): Delete.
5135 (go_language_defn): Delete.
5136 (m2_language_defn): Delete.
5137 (objc_language_defn): Delete.
5138 (opencl_language_defn): Delete.
5139 (pascal_language_defn): Delete.
5140 (rust_language_defn): Delete.
5141 * gdb/m2-lang.c (m2_language_defn): Convert to...
5142 (m2_language_data): ...this.
5143 (class m2_language): New class.
5144 (m2_language_defn): New static global.
5145 * gdb/objc-lang.c (objc_language_defn): Convert to...
5146 (objc_language_data): ...this.
5147 (class objc_language): New class.
5148 (objc_language_defn): New static global.
5149 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5150 (opencl_language_data): ...this.
5151 (class opencl_language): New class.
5152 (opencl_language_defn): New static global.
5153 * gdb/p-lang.c (pascal_language_defn): Convert to...
5154 (pascal_language_data): ...this.
5155 (class pascal_language): New class.
5156 (pascal_language_defn): New static global.
5157 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5158 language pointer, update comment format.
5159 * gdb/rust-lang.c (rust_language_defn): Convert to...
5160 (rust_language_data): ...this.
5161 (class rust_language): New class.
5162 (rust_language_defn): New static global.
5163
1313c56e
AB
51642020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5165
5166 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5167 member variable.
5168 <m_stmt_at_address>: New member variable.
5169 (lnp_state_machine::record_line): Don't record some lines, update
5170 tracking of is_stmt at the same address.
5171 (lnp_state_machine::lnp_state_machine): Initialise new member
5172 variables.
5173
b7ed9f3d
ST
51742020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5175
5176 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5177 "-include gnu-nat-mig.h".
5178 * gnu-nat-mig.h: New file.
5179 * gnu-nat.c: Include "gnu-nat-mig.h".
5180 (exc_server, msg_reply_server, notify_server,
5181 process_reply_server): Remove declarations.
5182
14a8ad62
ST
51832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5184
5185 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5186 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5187 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5188 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5189 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5190 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5191 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5192 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5193 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5194 to gnu_nat_target class.
5195 * gnu-nat.c: Likewise.
5196 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5197 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5198 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5199 object.
5200 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5201 instead of `gnu_target'.
5202
0af5e106
ST
52032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5204
5205 * i386-gnu-tdep.c: Include "gdbcore.h"
5206 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5207 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5208 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5209 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5210 i386_gnu_sigcontext_addr): New functions
5211 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5212 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5213 tdep.
5214
078f2fc9
ST
52152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5216
5217 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5218 before fork_inferior call. Avoid calling it if target_is_pushed returns
5219 true.
5220
53dff92c
ST
52212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5222
5223 * gnu-nat.h (gnu_target): New variable declaration.
5224 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5225 gnu_target.
5226 * gnu-nat.c (gnu_target): New variable.
5227 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5228 add_thread_silent, and add_thread calls.
5229 (gnu_nat_target::create_inferior): Pass gnu_target to
5230 add_thread_silent, thread_change_ptid call.
5231 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5232 call.
5233
5a8b8627
ST
52342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5235
5236 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5237 (gnu_nat_target::find_memory_regions): Remove unused
5238 `old_address' variable.
5239
366f550a
ST
52402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5241
5242 * gnu-nat.c: Include "gdbarch.h".
5243
f14871bf
ST
52442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5245
5246 * reply_mig_hack.awk (Error return): Cast function through
5247 void *, to bypass compiler function call check.
5248
c6887cfb
ST
52492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5250
5251 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5252 $(srcdir)/reply_mig_hack.awk.
5253
6930bffe
ST
52542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5255
5256 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5257
112c22ed
JG
52582020-05-30 Jonny Grant <jg@jguk.org>
5259
5260 * configure.ac (ACX_BUGURL): change bug URL to https.
5261
f68f85b5
PA
52622020-05-30 Pedro Alves <palves@redhat.com>
5263
5264 * cp-support.c (replace_typedefs_template): New.
5265 (replace_typedefs_qualified_name): Handle
5266 DEMANGLE_COMPONENT_TEMPLATE.
5267
976ca316
SM
52682020-05-29 Simon Marchi <simon.marchi@efficios.com>
5269
5270 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5271 dwarf2/index-cache.h, dwarf2/index-write.c,
5272 dwarf2/index-write.h, dwarf2/line-header.c,
5273 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5274 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5275 variables and fields from `dwarf2_per_objfile` to just
5276 `per_objfile` throughout.
5277
989ade05
SM
52782020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5279
5280 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5281 <push_dwarf_reg_entry_value>: Add comment.
5282
c47bae85
KB
52832020-05-28 Kevin Buettner <kevinb@redhat.com>
5284 Keith Seitz <keiths@redhat.com>
5285
5286 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5287 instead of PyEval_ReleaseLock.
5288 (class gdbpy_gil): Move to earlier in file.
5289 (finalize_python): Set gdb_python_initialized.
5290 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5291 when not initialized.
5292
44486dcf
SM
52932020-05-28 Simon Marchi <simon.marchi@efficios.com>
5294
5295 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5296 <push_dwarf_reg_entry_value>: Remove assert. Override
5297 per_objfile with caller_per_objfile.
5298
f030440d
TV
52992020-05-28 Tom de Vries <tdevries@suse.de>
5300
5301 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5302 PR gold/15646 workaround to symbol kind "type".
5303
f0fbb768
TT
53042020-05-27 Tom Tromey <tromey@adacore.com>
5305
5306 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5307
af0b2a3e
TT
53082020-05-27 Tom Tromey <tromey@adacore.com>
5309
5310 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5311 Use htab_find_with_hash.
5312 <add_abbrev>: Remove "abbrev_number" parameter.
5313 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5314 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5315 (hash_abbrev): Add comment.
5316 (abbrev_table::lookup_abbrev): Move to header file.
5317 (abbrev_table::read): Update.
5318
7d00ffec
TT
53192020-05-27 Tom Tromey <tromey@adacore.com>
5320
5321 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5322 method.
5323 <canonical_name>: New member.
5324 <raw_name>: Rename from "name".
5325 (partial_die_info): Initialize canonical_name.
5326 (scan_partial_symbols): Check raw_name.
5327 (partial_die_parent_scope, partial_die_full_name)
5328 (add_partial_symbol, add_partial_subprogram)
5329 (add_partial_enumeration, load_partial_dies): Use "name" method.
5330 (partial_die_info::name): New method.
5331 (partial_die_info::read, guess_partial_die_structure_name)
5332 (partial_die_info::fixup): Update.
5333
697bba18
TT
53342020-05-27 Tom Tromey <tromey@adacore.com>
5335
5336 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5337 <get_ref_die_offset>: Inline.
5338 <get_ref_die_offset_complaint>: New method.
5339 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5340 (attribute::get_ref_die_offset_complaint): Rename from
5341 get_ref_die_offset. Just issue complaint.
5342
c17ace43
HD
53432020-05-27 Hannes Domani <ssbssa@yahoo.de>
5344
5345 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5346
96445f0b
HD
53472020-05-27 Hannes Domani <ssbssa@yahoo.de>
5348
5349 * exec.c (exec_file_attach): Use errno value of first openp failure.
5350
ac637ec3
HD
53512020-05-27 Hannes Domani <ssbssa@yahoo.de>
5352
5353 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5354 Don't close thread handle.
5355
17ee85fc
TT
53562020-05-27 Tom Tromey <tom@tromey.com>
5357 Simon Marchi <simon.marchi@efficios.com>
5358
5359 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5360 shared_ptr.
5361 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5362 member.
5363 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5364 dwarf2_per_bfd_objfile_data_key>: New globals.
5365 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5366 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5367 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5368 shared.
5369 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5370 short-circuit when sharing.
5371 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5372 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5373
39b16f87
SM
53742020-05-27 Simon Marchi <simon.marchi@efficios.com>
5375
5376 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5377 to...
5378 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5379 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5380
fcf23d5b
SM
53812020-05-27 Simon Marchi <simon.marchi@efficios.com>
5382
5383 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5384 build_name_components, find_name_components_bounds>:
5385 Add per_objfile parameter.
5386 (struct mapped_index) <symbol_name_at>: Likewise.
5387 (struct mapped_debug_names): Remove constructor.
5388 <dwarf2_per_objfile>: Remove field.
5389 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5390 (mapped_index_base::find_name_components_bounds,
5391 mapped_index_base::build_name_components,
5392 dw2_expand_symtabs_matching_symbol): Likewise.
5393 (class mock_mapped_index) <symbol_name_at>: Likewise.
5394 (check_match): Likewise.
5395 (check_find_bounds_finds): Likewise.
5396 (test_mapped_index_find_name_component_bounds): Update.
5397 (CHECK_MATCH): Update.
5398 (dw2_expand_symtabs_matching): Update.
5399 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5400 per_objfile parameter.
5401 <find_vec_in_debug_names>: Likewise.
5402 <m_per_objfile>: New field.
5403 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5404 parameter.
5405 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5406 (dw2_debug_names_iterator::next): Update.
5407 (dw2_debug_names_lookup_symbol): Update.
5408 (dw2_debug_names_expand_symtabs_for_function): Update.
5409 (dw2_debug_names_map_matching_symbols): Update.
5410 (dw2_debug_names_expand_symtabs_matching): Update.
5411 (dwarf2_read_debug_names): Update.
5412
7188ed02
SM
54132020-05-27 Simon Marchi <simon.marchi@efficios.com>
5414
5415 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5416 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5417 move to dwarf2_per_objfile.
5418 <read_in_chain>: Remove.
5419 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5420 remove_all_cus, age_comp_units>: New methods.
5421 <m_dwarf2_cus>: New member.
5422 (struct dwarf2_per_cu_data) <cu>: Remove.
5423 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5424 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5425 moved to methods of dwarf2_per_objfile.
5426 (dwarf2_clear_marks): Remove.
5427 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5428 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5429 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5430 (dwarf2_per_objfile::remove_all_cus): New.
5431 (class free_cached_comp_units) <~free_cached_comp_units>:
5432 Update.
5433 (load_cu): Update.
5434 (dw2_do_instantiate_symtab): Adjust.
5435 (fill_in_sig_entry_from_dwo_entry): Adjust.
5436 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5437 (cutu_reader::cutu_reader): Likewise.
5438 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5439 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5440 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5441 and dwarf2_per_objfile::age_comp_units.
5442 (load_partial_comp_unit): Update.
5443 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5444 (process_queue): Likewise.
5445 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5446 backlink.
5447 (dwarf2_read_addr_index): Likewise.
5448 (follow_die_offset): Likewise.
5449 (dwarf2_fetch_die_loc_sect_off): Likewise.
5450 (dwarf2_fetch_constant_bytes): Likewise.
5451 (dwarf2_fetch_die_type_sect_off): Likewise.
5452 (follow_die_sig_1): Likewise.
5453 (load_full_type_unit): Likewise.
5454 (read_signatured_type): Likewise.
5455 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5456 (dwarf2_cu::~dwarf2_cu): Remove.
5457 (dwarf2_per_objfile::get_cu): New.
5458 (dwarf2_per_objfile::set_cu): New.
5459 (age_cached_comp_units): Rename to...
5460 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5461 to std::unordered_map.
5462 (free_one_cached_comp_unit): Rename to...
5463 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5464 to std::unordered_map.
5465 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5466 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5467 a dwarf2_per_objfile in data.
5468 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5469 (dwarf2_clear_marks): Remove.
5470
2e671100
SM
54712020-05-27 Simon Marchi <simon.marchi@efficios.com>
5472
5473 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5474 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5475 (init_tu_and_read_dwo_dies): Likewise.
5476 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5477 (cutu_reader::cutu_reader): Likewise.
5478 (load_partial_comp_unit): Likewise.
5479 (process_psymtab_comp_unit): Update.
5480 (build_type_psymtabs_1): Update.
5481 (process_skeletonless_type_unit): Update.
5482 (load_full_comp_unit): Update.
5483 (find_partial_die): Update.
5484 (dwarf2_read_addr_index): Update.
5485 (read_signatured_type): Update.
5486
2e6a9f79
SM
54872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5488
5489 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5490 m_header_read_in>: New fields.
5491 <get_header>: New method.
5492 * dwarf2/read.c (per_cu_header_read_in): Remove.
5493 (dwarf2_per_cu_data::get_header): New.
5494 (dwarf2_per_cu_data::addr_size): Update.
5495 (dwarf2_per_cu_data::offset_size): Update.
5496 (dwarf2_per_cu_data::ref_addr_size): Update.
5497
1b555f17
SM
54982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5499
5500 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5501 (dw2_do_instantiate_symtab): Update.
5502 (queue_and_load_all_dwo_tus): Change parameter from
5503 dwarf2_per_cu_data to dwarf2_cu.
5504 (dwarf2_fetch_die_loc_sect_off): Update.
5505 (dwarf2_fetch_constant_bytes): Update.
5506 (dwarf2_fetch_die_type_sect_off): Update.
5507
8fc0b21d
SM
55082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5509
5510 * dwarf2/read.c (process_full_comp_unit,
5511 process_full_type_unit): Remove per_cu, per_objfile paramters.
5512 Add dwarf2_cu parameter.
5513 (process_queue): Update.
5514
168c9250
SM
55152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5516
5517 * dwarf2/read.c (create_cu_from_index_list): Replace
5518 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5519 (create_cus_from_index_list): Likewise.
5520 (create_cus_from_index): Likewise.
5521 (create_signatured_type_table_from_index): Likewise.
5522 (create_cus_from_debug_names_list): Likewise.
5523 (create_cus_from_debug_names): Likewise.
5524 (dwarf2_read_gdb_index): Update.
5525 (dwarf2_read_debug_names): Update.
5526
e286671b
TT
55272020-05-27 Tom Tromey <tom@tromey.com>
5528 Simon Marchi <simon.marchi@efficios.com>
5529
5530 * dwarf2/read.h (struct dwarf2_per_objfile)
5531 <get_type_for_signatured_type, set_type_for_signatured_type>:
5532 New methods.
5533 <m_type_map>: New member.
5534 (struct signatured_type) <type>: Remove.
5535 * dwarf2/read.c
5536 (dwarf2_per_objfile::get_type_for_signatured_type,
5537 dwarf2_per_objfile::set_type_for_signatured_type): New.
5538 (get_signatured_type): Use new methods.
5539
8adb8487
TT
55402020-05-27 Tom Tromey <tom@tromey.com>
5541 Simon Marchi <simon.marchi@efficios.com>
5542
5543 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5544 (struct dwarf2_per_objfile) <type_units>: New member.
5545 <get_type_unit_group_unshareable>: New method.
5546 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5547 num_symtabs, symtabs>: Remove; move to
5548 type_unit_group_unshareable.
5549 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5550 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5551 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5552
127bbf4b
SM
55532020-05-27 Simon Marchi <simon.marchi@efficios.com>
5554
5555 * dwarf2/read.h (struct dwarf2_per_cu_data):
5556 <dwarf2_per_objfile>: Remove.
5557 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5558 dwarf2_per_objfile.
5559 (create_signatured_type_table_from_index): Likewise.
5560 (create_signatured_type_table_from_debug_names): Likewise.
5561 (create_debug_type_hash_table): Likewise.
5562 (fill_in_sig_entry_from_dwo_entry): Likewise.
5563 (create_type_unit_group): Likewise.
5564 (read_comp_units_from_section): Likewise.
5565 (create_cus_hash_table): Likewise.
5566
f6e649dd
SM
55672020-05-27 Simon Marchi <simon.marchi@efficios.com>
5568
5569 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5570 dwarf2_per_cu_data::dwarf2_per_objfile.
5571 (compute_compunit_symtab_includes): Likewise.
5572 (dwarf2_cu::start_symtab): Likewise.
5573
aa66c379
SM
55742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5575
5576 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5577 parameter.
5578 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5579 (read_namespace_alias): Update.
5580 (lookup_die_type): Update.
5581 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5582 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5583 Update.
5584 (disassemble_dwarf_expression): Update.
5585
120ce1b5
SM
55862020-05-27 Simon Marchi <simon.marchi@efficios.com>
5587
5588 * dwarf2/read.h (struct dwarf2_queue_item): Add
5589 dwarf2_per_objfile parameter, assign new parameter.
5590 <per_objfile>: New field.
5591 * dwarf2/read.c (free_one_cached_comp_unit): Add
5592 dwarf2_per_objfile parameter.
5593 (queue_comp_unit): Likewise.
5594 (dw2_do_instantiate_symtab): Update.
5595 (process_psymtab_comp_unit): Update.
5596 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5597 (process_imported_unit_die): Update.
5598 (queue_and_load_dwo_tu): Update.
5599 (follow_die_offset): Update.
5600 (follow_die_sig_1): Update.
5601
9f47c707
SM
56022020-05-27 Simon Marchi <simon.marchi@efficios.com>
5603
5604 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5605 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5606 (read_call_site_scope): Assign per_objfile.
5607 (dwarf2_per_cu_data::objfile): Remove.
5608 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5609 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5610 dwarf2_per_objfile parameter.
5611 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5612 dwarf2_per_objfile parameter.
5613 (dwarf_expr_reg_to_entry_parameter): Add output
5614 dwarf2_per_objfile parameter.
5615 (locexpr_get_frame_base): Update.
5616 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5617 <push_dwarf_reg_entry_value>: Update.
5618 <call_site_to_target_addr>: Update.
5619 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5620 parameter.
5621 (value_of_dwarf_reg_entry): Update.
5622 (rw_pieced_value): Update.
5623 (indirect_synthetic_pointer): Update.
5624 (dwarf2_evaluate_property): Update.
5625 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5626 parameter.
5627 (locexpr_read_variable): Update.
5628 (locexpr_get_symbol_read_needs): Update.
5629 (loclist_read_variable): Update.
5630
14095eb3
SM
56312020-05-27 Simon Marchi <simon.marchi@efficios.com>
5632
5633 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5634 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5635 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5636 parameter.
5637 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5638 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5639 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5640 parameter.
5641 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5642 sect_variable_value): Add dwarf2_per_objfile parameter.
5643 (class dwarf_evaluate_loc_desc) <dwarf_call,
5644 dwarf_variable_value>: Update.
5645 (fetch_const_value_from_synthetic_pointer): Add
5646 dwarf2_per_objfile parameter.
5647 (fetch_const_value_from_synthetic_pointer): Update.
5648 (coerced_pieced_ref): Update.
5649 (class symbol_needs_eval_context) <dwarf_call,
5650 dwarf_variable_value>: Update.
5651 (dwarf2_compile_expr_to_ax): Update.
5652
3c3cd3d4
SM
56532020-05-27 Simon Marchi <simon.marchi@efficios.com>
5654
5655 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5656 parameter.
5657 (dwarf2_evaluate_loc_desc_full): Update.
5658
82ca3f51
SM
56592020-05-27 Simon Marchi <simon.marchi@efficios.com>
5660
5661 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5662 parameter.
5663 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5664 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5665 dwarf2_per_objfile parameter.
5666 (decode_debug_loc_dwo_addresses): Likewise.
5667 (dwarf2_find_location_expression): Update.
5668 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5669 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5670 parameter.
5671 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5672 parameter.
5673 (locexpr_describe_location_1): Likewise.
5674 (locexpr_describe_location): Update.
5675
4b167ea1
SM
56762020-05-27 Simon Marchi <simon.marchi@efficios.com>
5677
5678 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5679 Remove.
5680 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5681 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5682 (dwarf2_compile_property_to_c): Update.
5683 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5684 use text offset from objfile.
5685 (locexpr_tracepoint_var_ref): Update.
5686 (locexpr_generate_c_location): Update.
5687 (loclist_describe_location): Update.
5688 (loclist_tracepoint_var_ref): Update.
5689 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5690 dwarf2_per_objfile parameter.
5691 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5692 use text offset from objfile.
5693 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5694
89b07335
SM
56952020-05-27 Simon Marchi <simon.marchi@efficios.com>
5696
5697 * dwarf2/expr.h (struct dwarf_expr_context)
5698 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5699 <offset>: Remove.
5700 <per_objfile>: New member.
5701 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5702 dwarf2_per_objfile parameter. Don't set offset, set
5703 per_objfile.
5704 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5705 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5706 a dwarf2_per_objfile object instead of an offset.
5707 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5708 constructor.
5709 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5710 to dwarf2_expr_executor constructor. Don't set offset.
5711 (dwarf2_fetch_cfa_info): Update.
5712 (struct dwarf2_frame_cache) <text_offset>: Remove.
5713 <per_objfile>: New field.
5714 (dwarf2_frame_cache): Update.
5715 (dwarf2_frame_prev_register): Update.
5716 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5717 <dwarf_evaluate_loc_desc>: Add constructor.
5718 (dwarf2_evaluate_loc_desc_full): Update.
5719 (dwarf2_locexpr_baton_eval): Update.
5720 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5721 Add constructor.
5722 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5723
293e7e51
SM
57242020-05-27 Simon Marchi <simon.marchi@efficios.com>
5725
5726 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5727 addr_sized_int_type>: Move to dwarf2_cu.
5728 <int_type>: Move to dwarf2_per_objfile.
5729 (struct dwarf2_per_objfile) <int_type>: Move here.
5730 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5731 addr_sized_int_type>: Move here.
5732 (read_func_scope): Update.
5733 (read_array_type): Update.
5734 (read_tag_string_type): Update.
5735 (attr_to_dynamic_prop): Update.
5736 (dwarf2_per_cu_data::int_type): Rename to...
5737 (dwarf2_per_objfile::int_type): ... this.
5738 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5739 (dwarf2_cu::addr_sized_int_type): ... this.
5740 (read_subrange_type): Update.
5741 (dwarf2_per_cu_data::addr_type): Rename to...
5742 (dwarf2_cu::addr_type): ... this.
5743 (set_die_type): Update.
5744
64874a40
SM
57452020-05-27 Simon Marchi <simon.marchi@efficios.com>
5746
5747 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5748 data through per_cu->cu.
5749
4ab09049
SM
57502020-05-27 Simon Marchi <simon.marchi@efficios.com>
5751
5752 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5753 dwarf2_per_cu_data parameter fo dwarf2_cu.
5754 (lookup_dwo_type_unit): Likewise.
5755 (read_cutu_die_from_dwo): Likewise.
5756 (lookup_dwo_unit): Likewise.
5757 (open_and_init_dwo_file): Likewise.
5758 (lookup_dwo_cutu): Likewise.
5759 (lookup_dwo_comp_unit): Likewise.
5760 (lookup_dwo_type_unit): Likewise.
5761 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5762 (cutu_reader::cutu_reader): Update.
5763
47b14e86
SM
57642020-05-27 Simon Marchi <simon.marchi@efficios.com>
5765
5766 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5767 parameter.
5768 (process_full_type_unit): Likewise.
5769 (process_queue): Update.
5770
43182c09
SM
57712020-05-27 Simon Marchi <simon.marchi@efficios.com>
5772
5773 * dwarf2/read.c (recursively_compute_inclusions): Add
5774 dwarf2_per_objfile parameter.
5775 (compute_compunit_symtab_includes): Likewise.
5776 (process_cu_includes): Update.
5777
7aa104c4
SM
57782020-05-27 Simon Marchi <simon.marchi@efficios.com>
5779
5780 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5781 parameter.
5782 (create_type_unit_group): Update.
5783 (process_psymtab_comp_unit_reader): Update.
5784 (build_type_psymtabs_reader): Update.
5785
e3beb21d
SM
57862020-05-27 Simon Marchi <simon.marchi@efficios.com>
5787
5788 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5789 object through m_this_cu->cu.
5790
d460f660
SM
57912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5792
5793 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5794 the info parameter.
5795 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5796
ab432490
SM
57972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5798
5799 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5800 per_objfile parameter.
5801 (load_full_type_unit): Add per_objfile parameter.
5802 (read_signatured_type): Likewise.
5803 (load_full_comp_unit): Likewise.
5804 (load_cu): Likewise.
5805 (dw2_do_instantiate_symtab): Likewise.
5806 (dw2_get_file_names): Likewise.
5807 (dw2_map_symtabs_matching_filename): Update.
5808 (dw_expand_symtabs_matching_file_matcher): Update.
5809 (dw2_map_symbol_filenames): Update.
5810 (process_psymtab_comp_unit): Add per_objfile parameter.
5811 (build_type_psymtabs_1): Update.
5812 (process_skeletonless_type_unit): Update.
5813 (dwarf2_build_psymtabs_hard): Update.
5814 (load_partial_comp_unit): Add per_objfile parameter.
5815 (scan_partial_symbols): Update.
5816 (load_full_comp_unit): Add per_objfile parameter.
5817 (process_imported_unit_die): Update.
5818 (create_cus_hash_table): Update.
5819 (find_partial_die): Update.
5820 (dwarf2_read_addr_index): Update.
5821 (follow_die_offset): Update.
5822 (dwarf2_fetch_die_loc_sect_off): Update.
5823 (dwarf2_fetch_constant_bytes): Update.
5824 (dwarf2_fetch_die_type_sect_off): Update.
5825 (follow_die_sig_1): Update.
5826 (load_full_type_unit): Add per_objfile parameter.
5827 (read_signatured_type): Likewise.
5828
313bad1b
SM
58292020-05-27 Simon Marchi <simon.marchi@efficios.com>
5830
5831 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5832 of objfile_name.
5833
c3699833
SM
58342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5835
5836 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5837 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5838 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5839 field.
5840 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5841 (create_cus_from_index): Update.
5842 (dwarf2_read_gdb_index): Update.
5843 (create_cus_from_debug_names): Update.
5844 (dwarf2_read_debug_names): Update.
5845 (get_abbrev_section_for_cu): Update.
5846 (create_all_comp_units): Update.
5847 (read_attribute_value): Update.
5848 (get_debug_line_section): Update.
5849 * dwarf2/index-cache.c (index_cache::store): Update.
5850 * dwarf2/index-write.c (save_gdb_index_command): Update.
5851 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5852
1859c670
SM
58532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5854
5855 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5856 member.
5857 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5858 dwarf2_per_cu_data::per_bfd.
5859 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5860 (create_type_unit_group): Likewise.
5861 (queue_comp_unit): Remove reference to
5862 per_cu->dwarf2_per_objfile.
5863 (maybe_queue_comp_unit): Likewise.
5864 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5865 (create_cus_hash_table): Assign new field.
5866
5e22e966
SM
58672020-05-27 Simon Marchi <simon.marchi@efficios.com>
5868
5869 * dwarf2/read.c: Replace
5870 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5871 dwarf2_cu->per_objfile throughout.
5872
97a1449a
SM
58732020-05-27 Simon Marchi <simon.marchi@efficios.com>
5874
5875 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5876 parameter, don't use per_cu->dwarf2_per_objfile.
5877 (dw2_instantiate_symtab): Likewise.
5878 (dw2_find_last_source_symtab): Update.
5879 (dw2_map_expand_apply): Update.
5880 (dw2_lookup_symbol): Update.
5881 (dw2_expand_symtabs_for_function): Update.
5882 (dw2_expand_all_symtabs): Update.
5883 (dw2_expand_symtabs_with_fullname): Update.
5884 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5885 don't use per_cu->dwarf2_per_objfile.
5886 (dw2_expand_marked_cus): Update.
5887 (dw2_find_pc_sect_compunit_symtab): Update.
5888 (dw2_debug_names_lookup_symbol): Update.
5889 (dw2_debug_names_expand_symtabs_for_function): Update.
5890 (dw2_debug_names_map_matching_symbols): Update.
5891 (dwarf2_psymtab::expand_psymtab): Update.
5892
9e021579
SM
58932020-05-27 Simon Marchi <simon.marchi@efficios.com>
5894
5895 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5896 <per_objfile>: New member.
5897 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5898 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5899 call to dwarf2_cu.
5900 (cutu_reader::cutu_reader): Update.
5901 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5902
ae090bdb
SM
59032020-05-27 Simon Marchi <simon.marchi@efficios.com>
5904
5905 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5906 struct dwarf2_per_objfile.
5907 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5908 dwarf2_per_bfd.
5909 * dwarf2/read.c (set_die_type): Update.
5910 (get_die_type_at_offset): Update.
5911
af758d11
SM
59122020-05-27 Tom Tromey <tom@tromey.com>
5913 Simon Marchi <simon.marchi@efficios.com>
5914
5915 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5916 method.
5917 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5918 get_symtab, set_symtab>: New methods.
5919 <m_symtabs>: New field.
5920 (struct dwarf2_psymtab): Derive from partial_symtab.
5921 <readin_p, get_compunit_symtab>: Declare methods.
5922 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5923 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5924 New methods.
5925 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5926 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5927 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5928 (dw2_symtab_iter_next, dw2_print_stats)
5929 (dw2_expand_symtabs_with_fullname)
5930 (dw2_expand_symtabs_matching_one)
5931 (dw_expand_symtabs_matching_file_matcher)
5932 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5933 (dw2_debug_names_iterator::next)
5934 (dw2_debug_names_map_matching_symbols)
5935 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5936 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5937 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5938 New methods.
5939 (get_compunit_symtab, process_full_comp_unit)
5940 (process_full_type_unit): Update.
5941 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5942
5989a64e
SM
59432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5944
5945 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5946 then introduce a new dwarf2_per_objfile type.
5947 <read_line_string>: Move to the new dwarf2_per_objfile type.
5948 <objfile>: Likewise.
5949 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5950 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5951 dwarf2_per_objfile->per_bfd.
5952 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5953 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5954 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5955 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5956 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5957 (dwarf2_per_objfile::locate_sections): Rename to...
5958 (dwarf2_per_bfd::locate_sections): ... this.
5959 (dwarf2_per_objfile::get_cutu): Rename to...
5960 (dwarf2_per_bfd::get_cutu): ... this.
5961 (dwarf2_per_objfile::get_cu): Rename to...
5962 (dwarf2_per_bfd::get_cu): ... this.
5963 (dwarf2_per_objfile::get_tu): Rename to...
5964 (dwarf2_per_bfd::get_tu): ... this.
5965 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5966 (dwarf2_per_bfd::allocate_per_cu): ... this.
5967 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5968 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5969 (get_gdb_index_contents_ftype): Change parameter from
5970 dwarf2_per_objfile to dwarf2_per_bfd.
5971 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5972 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5973
a50264ba
TT
59742020-05-27 Tom Tromey <tom@tromey.com>
5975 Simon Marchi <simon.marchi@efficios.com>
5976
5977 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5978 (allocate_piece_closure): Set "per_objfile" member.
5979 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5980 (locexpr_describe_location, loclist_describe_location): Use new
5981 member.
5982 * dwarf2/read.c (read_call_site_scope)
5983 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5984 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5985 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5986 handle_data_member_location): Set per_objfile member.
5987 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5988 member.
5989 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5990
d3473f0c
TT
59912020-05-27 Tom Tromey <tom@tromey.com>
5992
5993 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5994 allocate_signatured_type>: Declare new methods.
5995 <m_num_psymtabs>: New member.
5996 (struct dwarf2_per_cu_data) <index>: New member.
5997 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5998 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5999 (create_cu_from_index_list): Use allocate_per_cu.
6000 (create_signatured_type_table_from_index)
6001 (create_signatured_type_table_from_debug_names)
6002 (create_debug_type_hash_table, add_type_unit)
6003 (read_comp_units_from_section): Use allocate_signatured_type.
6004
5717c425
TT
60052020-05-27 Tom Tromey <tom@tromey.com>
6006
6007 * psymtab.c (partial_map_expand_apply)
6008 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6009 (psym_lookup_global_symbol_language)
6010 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6011 (psym_print_stats, psym_expand_symtabs_for_function)
6012 (psym_map_symbol_filenames, psym_map_matching_symbols)
6013 (psym_expand_symtabs_matching)
6014 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6015 (maintenance_check_psymtabs): Update.
6016 * psympriv.h (struct partial_symtab) <readin_p,
6017 get_compunit_symtab>: Add objfile parameter.
6018 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6019 Likewise.
6020 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6021 get_compunit_symtab>: Likewise.
6022 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6023
45940949
TT
60242020-05-27 Tom Tromey <tom@tromey.com>
6025
6026 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6027 member.
6028 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6029 (create_cu_from_index_list)
6030 (create_signatured_type_table_from_index)
6031 (create_signatured_type_table_from_debug_names)
6032 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6033 (dwarf2_create_include_psymtab)
6034 (create_debug_type_hash_table, add_type_unit)
6035 (create_type_unit_group, read_comp_units_from_section)
6036 (dwarf2_compute_name, create_cus_hash_table)
6037 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6038 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6039 obstack.
6040 (dw2_get_real_path): Likewise. Change argument to
6041 dwarf2_per_objfile.
6042
f8c6d152
LM
60432020-05-27 Luis Machado <luis.machado@linaro.org>
6044
6045 PR tdep/26000
6046 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6047 for ldrd (immediate).
6048
e98d2e6d
PW
60492020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6050
6051 * command.h: Add comment giving the name of class_tui.
6052 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6053 create the fake command for the help for class_tui.
6054
53a47a3e
TT
60552020-05-26 Tom Tromey <tromey@adacore.com>
6056
6057 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6058 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6059 (val_atr): New function.
6060 (value_val_atr): Use it.
6061 * ada-valprint.c (print_optional_low_bound): Change low bound
6062 handling for enums.
6063 (val_print_packed_array_elements): Don't call discrete_position.
6064 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6065 discrete_position for enum types.
6066 * language.c (default_print_array_index): Change type.
6067 * language.h (struct language_defn) <la_print_array_index>: Add
6068 index_type parameter, change type of index_value.
6069 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6070 (default_print_array_index): Update.
6071 * valprint.c (maybe_print_array_index): Don't call
6072 value_from_longest. Update.
6073 (value_print_array_elements): Don't call discrete_position.
6074
0bc2354b
TT
60752020-05-26 Tom Tromey <tromey@adacore.com>
6076
6077 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6078 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6079
1218a4bf
CDA
60802020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6081
6082 PR gdb/13519
6083 * avr-tdep.c (avr_integer_to_address): Return data or code
6084 address accordingly to the second 'type' argument of the
6085 function.
6086
92651b1d
MW
60872020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6088
6089 * infcmd.c, inferior.h: (construct_inferior_arguments):
6090 Moved function from here to gdbsupport/common-inferior.{h,cc}
6091
0a4f5f8c
TT
60922020-05-23 Tom Tromey <tom@tromey.com>
6093
6094 Revert commit eca1f90c:
6095 * NEWS: Remove entry for completion styling.
6096 * completer.c (_rl_completion_prefix_display_length): Move
6097 declaration later.
6098 (gdb_fnprint): Revert.
6099 (gdb_display_match_list_1): Likewise.
6100 * cli/cli-style.c (completion_prefix_style)
6101 (completion_difference_style, completion_suffix_style): Remove.
6102 (_initialize_cli_style): Revert.
6103 * cli/cli-style.h (completion_prefix_style)
6104 (completion_difference_style, completion_suffix_style): Don't
6105 declare.
6106
e08bd6c5
PA
61072020-05-24 Pedro Alves <palves@redhat.com>
6108
6109 * symtab.c (completion_list_add_name): Return boolean indication
6110 of whether the symbol matched.
6111 (completion_list_add_symbol): Don't try to remove C++ aliases if
6112 the symbol didn't match in the first place.
6113 * symtab.h (completion_list_add_name): Return bool.
6114
ceacbf6e
SM
61152020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6116
6117 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6118 type::field.
6119
26f16254
JB
61202020-05-23 Joel Brobecker <brobecker@adacore.com>
6121
6122 GDB 9.2 released.
6123
eca1f90c
TT
61242020-05-23 Tom Tromey <tom@tromey.com>
6125
6126 * NEWS: Add entry for completion styling.
6127 * completer.c (_rl_completion_prefix_display_length): Move
6128 declaration earlier.
6129 (gdb_fnprint): Use completion_style.
6130 (gdb_display_match_list_1): Likewise.
6131 * cli/cli-style.c (completion_prefix_style)
6132 (completion_difference_style, completion_suffix_style): New
6133 globals.
6134 (_initialize_cli_style): Register new globals.
6135 * cli/cli-style.h (completion_prefix_style)
6136 (completion_difference_style, completion_suffix_style): Declare.
6137
51e2cfa2
PA
61382020-05-23 Pedro Alves <palves@redhat.com>
6139
6140 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6141 (parse_escape): Use ISDIGIT instead of isdigit.
6142 (puts_debug): Use gdb_isprint instead of isprint.
6143 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6144 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6145 ISSPACE instead of isspace.
6146 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6147 instead of isspace.
6148 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6149 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6150 instead of isxdigit and ISDIGIT instead of isdigit.
6151
80fc5e77
SM
61522020-05-22 Simon Marchi <simon.marchi@efficios.com>
6153
6154 * gdbtypes.h (struct type) <field>: New method.
6155 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6156 or type::field.
6157
3cabb6b0
SM
61582020-05-22 Simon Marchi <simon.marchi@efficios.com>
6159
6160 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6161 (TYPE_FIELDS): Use type::fields. Change all call sites that
6162 modify the propery to use type::set_fields instead.
6163
1f704f76
SM
61642020-05-22 Simon Marchi <simon.marchi@efficios.com>
6165
6166 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6167 type::num_fields instead.
6168
5e33d5f4
SM
61692020-05-22 Simon Marchi <simon.marchi@efficios.com>
6170
6171 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6172 methods.
6173 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6174 that modify the number of fields to use type::set_num_fields
6175 instead.
6176
9392ebb3
TT
61772020-05-22 Tom Tromey <tromey@adacore.com>
6178
6179 * compile/compile-object-load.h (munmap_list_free): Don't
6180 declare.
6181
7c13f4e8
AB
61822020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6183
6184 * annotate.c (annotate_source_line): Update return type, add call
6185 to update current symtab and line.
6186 * annotate.h (annotate_source_line): Update return type, and
6187 extend header comment.
6188 * source.c (info_line_command): Check annotation_level before
6189 calling annotate_source_line.
6190 * stack.c (print_frame_info): If calling annotate_source_line
6191 returns true, then don't print any other source line information.
6192
aa370940
SM
61932020-05-21 Simon Marchi <simon.marchi@efficios.com>
6194
6195 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6196
84d53fa9
SM
61972020-05-21 Simon Marchi <simon.marchi@efficios.com>
6198
6199 * coffread.c (patch_type): Remove NULL check before xfree.
6200 * corefile.c (set_gnutarget): Likewise.
6201 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6202 * exec.c (build_section_table): Likewise.
6203 * remote.c (remote_target::pass_signals): Likewise.
6204 * utils.c (n_spaces): Likewise.
6205 * cli/cli-script.c (document_command): Likewise.
6206 * i386-windows-tdep.c (core_process_module_section): Likewise.
6207 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6208
9d428aae
SM
62092020-05-20 Simon Marchi <simon.marchi@efficios.com>
6210
6211 * symfile.c (reread_symbols): Clear objfile's section_offsets
6212 vector and section indices, re-compute them by calling
6213 sym_offsets.
6214
250106a7
TT
62152020-05-20 Tom Tromey <tromey@adacore.com>
6216
6217 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6218 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6219
9a0bacfb
TV
62202020-05-20 Tom de Vries <tdevries@suse.de>
6221
6222 PR symtab/25833
6223 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6224
7b958a48
AM
62252020-05-20 Alan Modra <amodra@gmail.com>
6226
6227 PR 25993
6228 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6229 bfd_set_filename.
6230 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6231 passed to bfd_set_filename.
6232 * symfile-mem.c (add_vsyscall_page): Likewise for string
6233 passed to symbol_file_add_from_memory.
6234 (symbol_file_add_from_memory): Make name param a const char* and
6235 don't strdup.
6236
c7e97679
AM
62372020-05-20 Alan Modra <amodra@gmail.com>
6238
6239 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6240 rather than accessing bfd->filename directly.
6241 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6242 and use bfd_section_name.
6243 * dwarf2/frame.c (decode_frame_entry): Likewise.
6244 * exec.c (exec_set_section_address): Likewise.
6245 * solib-aix.c (solib_aix_bfd_open): Likewise.
6246 * stap-probe.c (get_stap_base_address): Likewise.
6247 * symfile.c (reread_symbols): Likewise.
6248
563c591b
TT
62492020-05-19 Tom Tromey <tromey@adacore.com>
6250
6251 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6252
f408d82c
SM
62532020-05-19 Simon Marchi <simon.marchi@efficios.com>
6254
6255 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6256
98c59b52
PA
62572020-05-19 Pedro Alves <palves@redhat.com>
6258
6259 * NEWS (set exec-file-mismatch): Adjust entry.
6260 * exec.c: Include "build-id.h".
6261 (validate_exec_file): Try to match build IDs instead of filenames.
6262 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6263 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6264 and pass down 'warn_if_slow'.
6265 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6266 gdb_bfd_open_closure to pass it down.
6267 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6268
4111f652
PA
62692020-05-19 Pedro Alves <palves@redhat.com>
6270
6271 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6272 * target.c (target_fileio_open_1): Rename to target_fileio_open
6273 and make extern. Use bool.
6274 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6275 (target_fileio_read_alloc_1): Adjust.
6276 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6277 (target_fileio_open_warn_if_slow): Delete declaration.
6278
ad80db5b
PA
62792020-05-19 Pedro Alves <palves@redhat.com>
6280
6281 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6282 Adjust all callers.
6283
1d6ce4d3
YS
62842020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6285
6286 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6287 whether disp is negative.
6288
9005fbbb
SM
62892020-05-19 Simon Marchi <simon.marchi@efficios.com>
6290
6291 * symfile.h (struct symfile_segment_data)
6292 <~symfile_segment_data>: Remove.
6293 <segment_info>: Change to std::vector.
6294 * symfile.c (default_symfile_segments): Update.
6295 * elfread.c (elf_symfile_segments): Update.
6296
68b888ff
SM
62972020-05-19 Simon Marchi <simon.marchi@efficios.com>
6298
6299 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6300 <segments>: New.
6301 <segment_bases, segment_sizes>: Remove.
6302 * symfile.c (default_symfile_segments): Update.
6303 * elfread.c (elf_symfile_segments): Update.
6304 * remote.c (remote_target::get_offsets): Update.
6305 * solib-target.c (solib_target_relocate_section_addresses):
6306 Update.
6307
62982abd
SM
63082020-05-19 Simon Marchi <simon.marchi@efficios.com>
6309
6310 * symfile.h (struct symfile_segment_data): Initialize fields.
6311 <~symfile_segment_data>: Add.
6312 (symfile_segment_data_up): New.
6313 (struct sym_fns) <sym_segments>: Return a
6314 symfile_segment_data_up.
6315 (default_symfile_segments): Return a symfile_segment_data_up.
6316 (free_symfile_segment_data): Remove.
6317 (get_symfile_segment_data): Return a symfile_segment_data_up.
6318 * symfile.c (default_symfile_segments): Likewise.
6319 (get_symfile_segment_data): Likewise.
6320 (free_symfile_segment_data): Remove.
6321 (symfile_find_segment_sections): Update.
6322 * elfread.c (elf_symfile_segments): Return a
6323 symfile_segment_data_up.
6324 * remote.c (remote_target::get_offsets): Update.
6325 * solib-target.c (solib_target_relocate_section_addresses):
6326 Update.
6327 * symfile-debug.c (debug_sym_segments): Return a
6328 symfile_segment_data_up.
6329
7f204339
RO
63302020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6331
e52a0f1b
RO
6332 PR build/25981
6333 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6334 Hardcode register numbers.
6335
7f204339
RO
6336 PR build/25981
6337 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6338 procfs_find_LDT_entry): Remove.
6339 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6340 procfs_find_LDT_entry): Remove.
6341 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6342 Remove.
6343
7f32a4d5
PA
63442020-05-17 Pedro Alves <palves@redhat.com>
6345 Andrew Burgess <andrew.burgess@embecosm.com>
6346 Keno Fischer <keno@juliacomputing.com>
6347
6348 PR gdb/25741
6349 * breakpoint.c (build_target_condition_list): Update comments.
6350 (build_target_command_list): Update comments and skip matching
6351 locations.
6352 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6353 a separate function. Simplify "set breakpoint auto-hw off"
6354 handling.
6355 (insert_breakpoints): Update comment.
6356 (tracepoint_locations_match): New parameter. For breakpoints,
6357 compare location types too, if the caller wants to.
6358 (handle_automatic_hardware_breakpoints): New functions.
6359 (bp_location_is_less_than): Also sort by location type and
6360 hardware breakpoint length.
6361 (update_global_location_list): Handle "set breakpoint auto-hw on"
6362 here.
6363 (update_breakpoint_locations): Ask breakpoint_locations_match to
6364 ignore location types.
6365
7d93a1e0
SM
63662020-05-16 Simon Marchi <simon.marchi@efficios.com>
6367
6368 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6369 type::name instead.
6370
d0e39ea2
SM
63712020-05-16 Simon Marchi <simon.marchi@efficios.com>
6372
6373 * gdbtypes.h (struct type) <name, set_name>: New methods.
6374 (TYPE_CODE): Use type::name. Change all call sites used to set
6375 the name to use type::set_name instead.
6376
2dab0c7b
TT
63772020-05-16 Tom Tromey <tom@tromey.com>
6378
6379 * top.c (quit_force): Update.
6380 * infrun.c (handle_no_resumed): Update.
6381 * top.h (all_uis): New function.
6382 (ALL_UIS): Remove.
6383
59f7bd8d
SM
63842020-05-16 Simon Marchi <simon.marchi@efficios.com>
6385
6386 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6387
9bf058f0
PA
63882020-05-16 Pedro Alves <palves@redhat.com>
6389
6390 * ia64-linux-nat.c
6391 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6392 Declare method.
6393 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6394
8f86ae1a
SM
63952020-05-15 Simon Marchi <simon.marchi@efficios.com>
6396
6397 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6398 (sparc64_adi_info): Likewise.
6399
d6bc0792
TT
64002020-05-15 Tom Tromey <tom@tromey.com>
6401
6402 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6403 block_objfile.
6404 (lookup_objfile_from_block): Remove.
6405 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6406 (lookup_global_symbol): Use block_objfile.
6407 * symtab.h (lookup_objfile_from_block): Don't declare.
6408 * printcmd.c (clear_dangling_display_expressions): Use
6409 block_objfile.
6410 * parse.c (operator_check_standard): Use block_objfile.
6411
8c14c3a3
TT
64122020-05-15 Tom Tromey <tom@tromey.com>
6413
6414 * language.c (language_alloc_type_symbol): Set
6415 SYMBOL_SECTION.
6416 * symtab.c (initialize_objfile_symbol): Remove.
6417 (allocate_symbol): Remove.
6418 (allocate_template_symbol): Remove.
6419 * dwarf2/read.c (fixup_go_packaging): Use "new".
6420 (new_symbol): Use "new".
6421 (read_variable): Don't call initialize_objfile_symbol. Use
6422 "new".
6423 (read_func_scope): Use "new".
6424 * xcoffread.c (process_xcoff_symbol): Don't call
6425 initialize_objfile_symbol.
6426 (SYMBOL_DUP): Remove.
6427 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6428 "new".
6429 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6430 (allocate_template_symbol): Don't declare.
6431 (struct symbol): Add copy constructor. Change defaults.
6432 * jit.c (finalize_symtab): Use "new".
6433 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6434 Use "new".
6435 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6436 (common_block_end): Use "new".
6437 * mdebugread.c (parse_symbol): Use "new".
6438 (new_symbol): Likewise.
6439
5b4a1a8d
PW
64402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6441
6442 * NEWS: Mention changes to help and apropos.
6443
57b4f16e
PW
64442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6445
6446 * command.h (enum command_class): Improve comments, document
6447 that class_alias is for user-defined aliases, give the class
6448 name for each class, remove unused class_xdb.
6449 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6450 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6451 by a precise class.
6452 * infcmd.c (_initialize_infcmd): Likewise.
6453 * reverse.c (_initialize_reverse): Likewise.
6454 * stack.c (_initialize_stack): Likewise.
6455 * symfile.c (_initialize_symfile): Likewise.
6456 * tracepoint.c (_initialize_tracepoint): Likewise.
6457
7c05caf7
PW
64582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6459
6460 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6461 when their aliased command is traversed.
6462 (help_cmd): Add fput_command_names_styled call to
6463 output command name and aliases when command has an alias.
6464
3b3aaacb
PW
64652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6466
6467 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6468 * cli/cli-decode.c (help_cmd_list): Declare as static,
6469 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6470 a command together with the command.
6471 (fput_command_name_styled, fput_command_names_styled): New functions.
6472 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6473 fput_command_name_styled.
6474 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6475 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6476
7aa1b46f
PW
64772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6478
6479 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6480 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6481 * command.h (cmd_show_list): Likewise.
6482 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6483 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6484
89bcba74
PW
64852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6486
6487 * unittests/command-def-selftests.c (traverse_command_structure):
6488 Verify all commands of a list have the same prefix command and
6489 that only the top cmdlist commands have a null prefix.
6490
3f4d92eb
PW
64912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6492
6493 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6494 as prefix, not one of its aliases.
6495 (set_cmd_prefix): Remove.
6496 (do_add_cmd): Centralize the setting of the prefix of a command, when
6497 command is defined after its full chain of prefix commands.
6498 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6499 (add_setshow_cmd_full): Likewise.
6500 (update_prefix_field_of_prefixed_commands): New function.
6501 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6502 update_prefix_field_of_prefixed_commands.
6503 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6504 addresses of remote_set_cmdlist and remote_show_cmdlist given
6505 as argument, not the address of an argument.
6506 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6507 * gdb/remote.c (_initialize_remote): Likewise.
6508
0605465f
PW
65092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6510
6511 * cli/cli-cmds.c (alias_command): Check for an existing alias
6512 using lookup_cmd_composition, as valid_command_p is too strict
6513 and forbids aliases that are the prefix of an existing alias
6514 or command.
6515 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6516 command is properly recognised as a valid command.
6517
58e6ac70
PW
65182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6519
6520 * unittests/help-doc-selftests.c: Rename to
6521 unittests/command-def-selftests.c
6522 * unittests/command-def-selftests.c (help_doc_tests): Update some
6523 comments.
6524 (command_structure_tests, traverse_command_structure): New namespace
6525 and function.
6526 (command_structure_invariants_tests): New function.
6527 (_initialize_command_def_selftests) Renamed from
6528 _initialize_help_doc_selftests, register command_structure_invariants
6529 selftest.
6530
a7b9ceb8
PW
65312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6532
6533 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6534 an alias of 'show'.
6535
b2188a06
JB
65362020-05-15 Joel Brobecker <brobecker@adacore.com>
6537
6538 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6539 ada_is_fixed_point_type. Update all callers.
6540 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6541 all callers.
6542 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6543 Update all callers.
6544 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6545 print_fixed_point_type. Update all callers.
6546 * ada-valprint.c (ada_value_print_num): Replace call to
6547 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6548
a51951c2
KB
65492020-05-14 Kevin Buettner <kevinb@redhat.com>
6550
6551 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6552 processors.
6553 (cpu_supports_bts): Add CV_AMD case.
6554
29d6859f
LM
65552020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6556 Simon Marchi <simon.marchi@efficios.com>
6557
6558 * infrun.c (stop_all_threads): Collect multiple wait events at
6559 each pass.
6560
78134374
SM
65612020-05-14 Simon Marchi <simon.marchi@efficios.com>
6562
6563 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6564 type::code instead.
6565
67607e24
SM
65662020-05-14 Simon Marchi <simon.marchi@efficios.com>
6567
6568 * gdbtypes.h (struct type) <code, set_code>: New methods.
6569 (TYPE_CODE): Use type::code. Change all call sites used to set
6570 the code to use type::set_code instead.
6571
a05575d3
TBA
65722020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6573 Tom de Vries <tdevries@suse.de>
6574 Pedro Alves <palves@redhat.com>
6575
6576 PR threads/25478
6577 * infrun.c (stop_all_threads): Do NOT ignore
6578 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6579 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6580 received.
6581 (handle_no_resumed): Remove code handling a live inferior with no
6582 threads.
6583 * remote.c (has_single_non_exited_thread): New.
6584 (remote_target::update_thread_list): Do not delete a thread if is
6585 the last thread of the process.
6586 * thread.c (thread_select): Call delete_exited_threads instead of
6587 prune_threads.
6588
6ad82919
TBA
65892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6590
6591 * infrun.c (stop_all_threads): Enable/disable thread events of all
6592 targets. Move a debug message denoting the end of the function
6593 into the SCOPED_EXIT block.
6594
d890404b
TBA
65952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6596
6597 * process-stratum-target.h: Include <set>.
6598 (all_non_exited_process_targets, switch_to_target_no_thread): New
6599 function declarations.
6600 * process-stratum-target.c (all_non_exited_process_targets)
6601 (switch_to_target_no_thread): New function implementations.
6602
293b3ebc
TBA
66032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6604
6605 * infrun.c (handle_inferior_event): Extract out a piece of code
6606 into...
6607 (mark_non_executing_threads): ...this new function.
6608
7ca9b62a
TBA
66092020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6610
6611 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6612 use.
6613
fc75c28b
TBA
66142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6615
6616 * regcache.c (regcache_read_pc_protected): New function
6617 implementation that returns 0 if the PC cannot read via
6618 'regcache_read_pc'.
6619 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6620 instead of 'regcache_read_pc'.
6621 (keep_going_pass_signal): Ditto.
6622
a89febbd
TT
66232020-05-13 Tom Tromey <tromey@adacore.com>
6624
6625 * ada-lang.c (align_value): Remove.
6626 (ada_template_to_fixed_record_type_1): Use align_up.
6627
f7e23710
TBA
66282020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6629
6630 * async-event.c: Update the copyright year.
6631 * async-event.h: Update the copyright year.
6632
02ff80c2
SM
66332020-05-12 Simon Marchi <simon.marchi@efficios.com>
6634
6635 * objfiles.h (is_addr_in_objfile,
6636 shared_objfile_contains_address_p): Return bool.
6637 * objfile.c (is_addr_in_objfile,
6638 shared_objfile_contains_address_p): Return bool.
6639
4fd6c7e8
TT
66402020-05-11 Tom Tromey <tromey@adacore.com>
6641
6642 * cli/cli-cmds.c (info_command): Restore.
6643 (_initialize_cli_cmds): Use add_prefix_command for "info".
6644 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6645
5eb68a39
TT
66462020-05-11 Tom Tromey <tromey@adacore.com>
6647
6648 * ada-lang.c (ada_value_primitive_field): Now public.
6649 * ada-lang.h (ada_value_primitive_field): Declare.
6650 * ada-valprint.c (print_field_values): Use
6651 ada_value_primitive_field for wrapper fields.
6652
7666722f
TV
66532020-05-11 Tom de Vries <tdevries@suse.de>
6654
6655 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6656 MODULE_DOMAIN.
6657
3ee6bb11
TV
66582020-05-11 Tom de Vries <tdevries@suse.de>
6659
6660 PR symtab/25941
6661 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6662 with length 0, if not gdb-produced.
6663 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6664
43434996
TV
66652020-05-09 Tom de Vries <tdevries@suse.de>
6666
6667 PR gdb/25955
6668 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6669 calculation.
6670
2f78cffc
TT
66712020-05-09 Tom Tromey <tom@tromey.com>
6672
6673 * top.c (server_command): Now bool.
6674 * top.h (server_command): Now bool.
6675
4f7bc5ed
TT
66762020-05-08 Tom Tromey <tromey@adacore.com>
6677
6678 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6679 already being processed.
6680
8be4b118
TT
66812020-05-08 Tom Tromey <tom@tromey.com>
6682
6683 * printcmd.c (struct display) <next>: Remove.
6684 <display>: New constructor.
6685 <exp_string>: Now a std::string.
6686 <enabled_p>: Now a bool.
6687 (display_number): Move definition earlier.
6688 (displays): Rename from display_chain. Now a std::vector.
6689 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6690 (display_command): Update.
6691 (do_one_display, disable_display)
6692 (enable_disable_display_command, do_enable_disable_display):
6693 Update.
6694 (free_display): Remove.
6695 (clear_displays): Rewrite.
6696 (delete_display): Update.
6697 (map_display_numbers): Use function_view. Remove "data"
6698 parameter. Update.
6699 (do_delete_display): Remove.
6700 (undisplay_command): Update.
6701 (do_one_display, do_displays, disable_display)
6702 (info_display_command): Update.
6703 (do_enable_disable_display): Remove.
6704 (enable_disable_display_command)
6705 (clear_dangling_display_expressions): Update.
6706
94c93c35
TT
67072020-05-08 Tom Tromey <tom@tromey.com>
6708
6709 * symtab.c (set_symbol_cache_size)
6710 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6711 (maintenance_print_symbol_cache_statistics): Update.
6712 * symmisc.c (print_symbol_bcache_statistics)
6713 (print_objfile_statistics, maintenance_print_objfiles)
6714 (maintenance_info_symtabs, maintenance_check_symtabs)
6715 (maintenance_expand_symtabs, maintenance_info_line_tables):
6716 Update.
6717 * symfile-debug.c (set_debug_symfile): Update.
6718 * source.c (forget_cached_source_info): Update.
6719 * python/python.c (gdbpy_progspaces): Update.
6720 * psymtab.c (maintenance_info_psymtabs): Update.
6721 * probe.c (parse_probes): Update.
6722 * linespec.c (iterate_over_all_matching_symtabs)
6723 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6724 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6725 * exec.c (exec_target::close): Update.
6726 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6727 * breakpoint.c (print_one_breakpoint_location)
6728 (create_longjmp_master_breakpoint)
6729 (create_std_terminate_master_breakpoint): Update.
6730 * progspace.c (program_spaces): Now a std::vector.
6731 (maybe_new_address_space): Update.
6732 (add_program_space): Remove.
6733 (program_space::program_space): Update.
6734 (remove_program_space): Update.
6735 (number_of_program_spaces): Remove.
6736 (print_program_space, update_address_spaces): Update.
6737 * progspace.h (program_spaces): Change type.
6738 (ALL_PSPACES): Remove.
6739 (number_of_program_spaces): Don't declare.
6740 (struct program_space) <next>: Remove.
6741
a1fd1ac9
TT
67422020-05-08 Tom Tromey <tom@tromey.com>
6743
6744 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6745 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6746 (enable_break): Update.
6747 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6748 (frv_fdpic_find_canonical_descriptor): Update.
6749 (frv_fetch_objfile_link_map): Update.
6750 * progspace.c (program_space::free_all_objfiles): Update.
6751 (program_space::solibs): New method.
6752 * progspace.h (struct program_space) <solibs>: New method.
6753 * solist.h (master_so_list): Don't declare.
6754 (ALL_SO_LIBS): Remove.
6755 * solib.h (so_list_head): Remove.
6756 (update_solib_list): Update comment.
6757 * solib.c (master_so_list): Remove.
6758 (solib_used, update_solib_list, solib_add)
6759 (info_sharedlibrary_command, clear_solib)
6760 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6761
38eae084
TT
67622020-05-08 Tom Tromey <tom@tromey.com>
6763
6764 * extension.c (extension_languages): Now a std::array.
6765 (ALL_EXTENSION_LANGUAGES): Remove.
6766 (get_ext_lang_defn, get_ext_lang_of_file)
6767 (eval_ext_lang_from_control_command): Update.
6768 (finish_ext_lang_initialization)
6769 (auto_load_ext_lang_scripts_for_objfile)
6770 (ext_lang_type_printers::ext_lang_type_printers)
6771 (apply_ext_lang_type_printers)
6772 (ext_lang_type_printers::~ext_lang_type_printers)
6773 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6774 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6775 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6776 (get_matching_xmethod_workers, ext_lang_colorize)
6777 (ext_lang_before_prompt): Update.
6778 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6779
596dc4ad
TT
67802020-05-08 Tom Tromey <tom@tromey.com>
6781
6782 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6783 overload.
6784 <swap_string, m_string>: Remove.
6785 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6786 Update.
6787 * stabsread.c (define_symbol, read_type): Update.
6788 * linespec.c (find_linespec_symbols): Update.
6789 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6790 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6791 * dbxread.c (read_dbx_symtab): Update.
6792 * cp-support.h (cp_canonicalize_string_full)
6793 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6794 Return unique_xmalloc_ptr.
6795 * cp-support.c (inspect_type): Update.
6796 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6797 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6798 Likewise.
6799 * c-typeprint.c (print_name_maybe_canonical): Update.
6800 * break-catch-throw.c (check_status_exception_catchpoint):
6801 Update.
6802
bf4cb9be
TV
68032020-05-08 Tom de Vries <tdevries@suse.de>
6804
6805 * infrun.c (follow_fork): Copy current_line and current_symtab to
6806 child thread.
6807
a1b68f28
SM
68082020-05-07 Simon Marchi <simon.marchi@efficios.com>
6809
6810 * async-event.c (struct async_signal_handler, struct
6811 async_event_handler): Reformat, remove typedef.
6812
98d48915
SM
68132020-05-07 Simon Marchi <simon.marchi@efficios.com>
6814
6815 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6816 access thistype->main_type->dyn_prop_list directly.
6817
7aa91313
SM
68182020-05-07 Simon Marchi <simon.marchi@efficios.com>
6819
6820 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6821 (remove_dyn_prop): Remove. Update all users to use
6822 type::remove_dyn_prop.
6823 * gdbtypes.c (remove_dyn_prop): Rename to...
6824 (type::remove_dyn_prop): ... this.
6825
5c54719c
SM
68262020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6827
6828 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6829 (add_dyn_prop): Remove. Update all users to use
6830 type::add_dyn_prop.
6831 * gdbtypes.c (add_dyn_prop): Rename to...
6832 (type::add_dyn_prop): ... this.
6833
24e99c6c
SM
68342020-05-07 Simon Marchi <simon.marchi@efficios.com>
6835
6836 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6837 (get_dyn_prop): Remove. Update all users to use
6838 type::dyn_prop.
6839 * gdbtypes.c (get_dyn_prop): Rename to...
6840 (type::dyn_prop): ... this.
6841
0d4bf016
SM
68422020-05-06 Simon Marchi <simon.marchi@efficios.com>
6843
6844 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6845
ac4a4f1c
SM
68462020-05-06 Simon Marchi <simon.marchi@efficios.com>
6847
6848 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6849 instruction, skip it if it's there.
6850
a3bbacc1
SM
68512020-05-05 Simon Marchi <simon.marchi@efficios.com>
6852
6853 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6854
c3236f84
SM
68552020-05-04 Simon Marchi <simon.marchi@efficios.com>
6856
6857 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6858 * gdbtypes.c (recursive_dump_type): Remove use of
6859 TYPE_INCOMPLETE.
6860
3b6acaee
TT
68612020-05-03 Tom Tromey <tom@tromey.com>
6862
6863 * breakpoint.c (catch_command, tcatch_command): Remove.
6864 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6865 add_show_prefix_cmd.
6866 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6867 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6868 Remove.
6869 (add_internal_problem_command): Use add_basic_prefix_cmd,
6870 add_show_prefix_cmd.
6871 * mips-tdep.c (set_mipsfpu_command): Remove.
6872 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6873 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6874 (_initialize_index_cache): Use add_basic_prefix_cmd.
6875 * memattr.c (dummy_cmd): Remove.
6876 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6877 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6878 (_initialize_tui_win): Use add_basic_prefix_cmd,
6879 add_show_prefix_cmd.
6880 * cli/cli-logging.c (set_logging_command): Remove.
6881 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6882 add_show_prefix_cmd.
6883 (show_logging_command): Remove.
6884 * target.c (target_command): Remove.
6885 (add_target): Use add_basic_prefix_cmd.
6886
a51119cd
HD
68872020-05-02 Hannes Domani <ssbssa@yahoo.de>
6888
6889 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6890
652fc23a 68912020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6892
652fc23a
PW
6893 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6894 info_command.
6895
117539e6
KR
68962020-04-30 Kamil Rytarowski <n54@gmx.com>
6897
6898 * nbsd-nat.c (nbsd_enable_proc_events)
6899 (nbsd_nat_target::post_startup_inferior): Add.
6900 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6901 (nbsd_nat_target::update_thread_list): Rewrite.
6902 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6903 "PTRACE_LWP_CREATE".
6904 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6905
102e38eb 69062020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6907
102e38eb
PW
6908 * stack.c (_initialize_stack): Remove duplicated creation
6909 of "frame" command and "f" alias.
6910
ee9d1e5f
HD
69112020-04-30 Hannes Domani <ssbssa@yahoo.de>
6912
6913 PR gdb/18706
6914 * gdbtypes.c (check_typedef): Calculate size of array of
6915 stubbed type.
6916
627c7fb8
HD
69172020-04-30 Hannes Domani <ssbssa@yahoo.de>
6918
6919 PR gdb/15559
6920 * i386-tdep.c (i386_push_dummy_call): Call
6921 i386_thiscall_push_dummy_call.
6922 (i386_thiscall_push_dummy_call): New function.
6923 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6924 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6925 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6926
ffc2844e
SM
69272020-04-29 Simon Marchi <simon.marchi@efficios.com>
6928
6929 * gdbarch.sh (do_read): Add shellcheck disable directive for
6930 warning SC2162.
6931
1207375d
SM
69322020-04-29 Simon Marchi <simon.marchi@efficios.com>
6933
6934 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6935 "referenced but not assigned" warning.
6936
9fdb2916
SM
69372020-04-29 Simon Marchi <simon.marchi@efficios.com>
6938
6939 * gdbarch.sh: Remove code that sets fallbackdefault.
6940
759cea5e
SM
69412020-04-29 Simon Marchi <simon.marchi@efficios.com>
6942
6943 * gdbarch.sh: Use shell operators && and || instead of
6944 -a and -o.
6945
cb02ab24
SM
69462020-04-29 Simon Marchi <simon.marchi@efficios.com>
6947
6948 * gdbarch.sh: Use $(...) instead of `...`.
6949
a6fc5ffc
SM
69502020-04-29 Simon Marchi <simon.marchi@efficios.com>
6951
6952 * gdbarch.sh: Use double quotes around variables.
6953
8d113d13
SM
69542020-04-29 Simon Marchi <simon.marchi@efficios.com>
6955
6956 * gdbarch.sh: Use %s with printf, instead of variables in the
6957 format string.
6958
ed6acedd
TT
69592020-04-29 Tom Tromey <tromey@adacore.com>
6960
6961 PR ada/25875:
6962 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6963 type fields here.
6964 (read_enumeration_type): Call
6965 update_enumeration_type_from_children later. Update comments.
6966 (process_enumeration_scope): Don't create type fields.
6967
b68b1b58
KR
69682020-04-29 Kamil Rytarowski <n54@gmx.com>
6969
6970 * nbsd-tdep.c: Include "xml-syscall.h".
6971 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6972
f94b2e03
KR
69732020-04-29 Kamil Rytarowski <n54@gmx.com>
6974
6975 * nbsd-nat.c: Include "sys/wait.h".
6976 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6977 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6978 (nbsd_nat_target::remove_exec_catchpoint)
6979 (nbsd_nat_target::set_syscall_catchpoint): Add.
6980 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6981 (nbsd_nat_target::insert_exec_catchpoint)
6982 (nbsd_nat_target::remove_exec_catchpoint)
6983 (nbsd_nat_target::set_syscall_catchpoint): Add.
6984 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6985 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6986 `nbsd_get_syscall_number'.
6987
fc49bc72
TT
69882020-04-29 Tom Tromey <tom@tromey.com>
6989
6990 * stack.c (print_block_frame_labels): Remove.
6991
d642b692
HD
69922020-04-29 Hannes Domani <ssbssa@yahoo.de>
6993
6994 PR gdb/17320
6995 * ada-valprint.c (val_print_packed_array_elements): Move array
6996 end bracket to new line.
6997 (ada_val_print_string): Remove extra spaces before first array
6998 element.
6999 * c-valprint.c (c_value_print_array): Likewise.
7000 * m2-valprint.c (m2_print_array_contents): Likewise.
7001 (m2_value_print_inner): Likewise.
7002 * p-valprint.c (pascal_value_print_inner): Likewise.
7003 * valprint.c (generic_val_print_array): Likewise.
7004 (value_print_array_elements): Move first array element and array
7005 end bracket to new line.
7006
ea90f227
TV
70072020-04-29 Tom de Vries <tdevries@suse.de>
7008
7009 PR symtab/25889
7010 * linespec.c (find_method): Fix ix calculation.
7011
4498ef4f
KR
70122020-04-28 Kamil Rytarowski <n54@gmx.com>
7013
7014 * syscalls/update-netbsd.sh: New file.
7015 * syscalls/netbsd.xml: Regenerate.
7016 * data-directory/Makefile.in: Register `netbsd.xml' in
7017 `SYSCALLS_FILES'.
7018
a55e30b5
SM
70192020-04-28 Simon Marchi <simon.marchi@efficios.com>
7020
7021 * syscalls/update-freebsd.sh: Add double quotes.
7022
2b2fbab8
TT
70232020-04-28 Tom Tromey <tom@tromey.com>
7024
7025 * NEWS: Update.
7026 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7027 (cmdpy_init): Allow class_tui.
7028
a65189c9
TV
70292020-04-28 Mark Williams <mark@myosotissp.com>
7030
7031 PR gdb/24480
7032 * dwarf2read.c: Add missing assingments to list_in_scope when
7033 start_symtab was already called.
7034
1b95cdb7
SM
70352020-04-28 Simon Marchi <simon.marchi@efficios.com>
7036
7037 PR gdb/25881
7038 * dwarf2/read.c (offset_map_type): Use
7039 gdb:hash_enum<sect_offset> as hash function.
7040
15cd93d0
TV
70412020-04-28 Tom de Vries <tdevries@suse.de>
7042
7043 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7044 with DW_AT_signature.
7045
1eb39914
SM
70462020-04-27 Simon Marchi <simon.marchi@efficios.com>
7047
7048 * configure.ac: Remove check for fs_base/gs_base in
7049 user_regs_struct.
7050 * configure: Re-generate.
7051 * config.in: Re-generate.
7052 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7053 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7054 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7055
991a3e2e
LM
70562020-04-27 Luis Machado <luis.machado@linaro.org>
7057
7058 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7059 problematic inline frame unwinding situation.
7060 * frame.c (frame_id_computed_p): New function.
7061 * frame.h (frame_id_computed_p): New prototype.
7062
361ba0e8
TT
70632020-04-26 Tom Tromey <tom@tromey.com>
7064
7065 * command.h (enum command_class) <class_pseudo>: Remove.
7066
bc3609fd
PW
70672020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7068
7069 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7070 and whitespace.
7071
b9771db7
KR
70722020-04-25 Kamil Rytarowski <n54@gmx.com>
7073
ec16513e
SM
7074 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7075 `PT_GET_PROCESS_STATE' block.
b9771db7 7076
7151c1af
TT
70772020-04-24 Tom Tromey <tom@tromey.com>
7078
7079 * symtab.h (symbol_get_demangled_name): Don't declare.
7080 * symtab.c (symbol_get_demangled_name): Remove.
7081 (general_symbol_info::natural_name)
7082 (general_symbol_info::demangled_name): Update.
7083
906bb4c5
TT
70842020-04-24 Tom Tromey <tom@tromey.com>
7085
7086 PR rust/25025:
7087 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7088
bcfe6157
TT
70892020-04-24 Tom Tromey <tom@tromey.com>
7090
7091 PR symtab/12707:
7092 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7093 exists.
7094 (new_symbol): Likewise.
7095 * compile/compile-object-load.c (get_out_value_type): Use
7096 symbol_matches_search_name.
7097
f049a313
TT
70982020-04-24 Tom Tromey <tom@tromey.com>
7099
7100 * dwarf2/read.c (add_partial_symbol): Do not call
7101 compute_and_set_names.
7102
76e288d1
TT
71032020-04-24 Tom Tromey <tom@tromey.com>
7104
7105 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7106 overload.
7107
2467f4f6
TT
71082020-04-24 Tom Tromey <tom@tromey.com>
7109
7110 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7111 (add_psymbol_to_list): New overload. Make old overload call new
7112 one.
7113 * psympriv.h (add_psymbol_to_list): New overload.
7114
e61108c9
TT
71152020-04-24 Tom Tromey <tom@tromey.com>
7116
7117 * dwarf2/read.c (partial_die_info::read) <case
7118 DW_AT_linkage_name>: Use value_as_string.
7119 (dwarf2_string_attr): Use value_as_string.
7120 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7121 method.
7122 * dwarf2/attribute.c (attribute::value_as_string): New method.
7123
8c87a452
TT
71242020-04-24 Tom Tromey <tom@tromey.com>
7125
7126 * symtab.c (general_symbol_info::natural_name)
7127 (general_symbol_info::demangled_name): Check for language_rust.
7128
787de330
TT
71292020-04-24 Tom Tromey <tom@tromey.com>
7130
7131 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7132 (dwarf2_physname): ... from here.
7133 (partial_die_info::read): Add Rust "{" hack.
7134
ff985671
TT
71352020-04-24 Tom Tromey <tom@tromey.com>
7136
7137 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7138 method.
7139 (symbol_set_demangled_name): Don't declare.
7140 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7141 symbol_set_demangled_name.
7142 (general_symbol_info::set_language)
7143 (general_symbol_info::compute_and_set_names): Update.
7144 * minsyms.c (minimal_symbol_reader::install): Update.
7145 * dwarf2/read.c (new_symbol): Update.
7146
1acda803
TT
71472020-04-24 Tom Tromey <tromey@adacore.com>
7148
7149 PR python/23662:
7150 * python/py-type.c (convert_field): Handle
7151 FIELD_LOC_KIND_DWARF_BLOCK.
7152 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7153 (typy_get_dynamic): Nw function.
7154 (type_object_getset): Add "dynamic".
7155 * NEWS: Add entry.
7156
d656f129
TT
71572020-04-24 Tom Tromey <tromey@adacore.com>
7158
7159 * ada-typeprint.c (print_choices, print_variant_part)
7160 (print_record_field_types_dynamic): New functions.
7161 (print_record_field_types): Use print_record_field_types_dynamic.
7162
7d79de9a
TT
71632020-04-24 Tom Tromey <tromey@adacore.com>
7164
7165 * dwarf2/read.c (handle_data_member_location): New overload.
7166 (dwarf2_add_field): Use it.
7167 (decode_locdesc): Add "computed" parameter. Update comment.
7168 * gdbtypes.c (is_dynamic_type_internal): Also look for
7169 FIELD_LOC_KIND_DWARF_BLOCK.
7170 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7171 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7172 virtual base classes.
7173 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7174 FIELD_LOC_KIND_DWARF_BLOCK.
7175
f8e89861
TT
71762020-04-24 Tom Tromey <tromey@adacore.com>
7177
7178 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7179 * gdbtypes.c (is_dynamic_type_internal): Check
7180 TYPE_HAS_DYNAMIC_LENGTH.
7181 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7182 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7183 New macros.
7184 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7185 constant.
7186
9c6a1327
TT
71872020-04-24 Tom Tromey <tromey@adacore.com>
7188
7189 * dwarf2/read.c (struct variant_field): Rewrite.
7190 (struct variant_part_builder): New.
7191 (struct nextfield): Remove "variant" field. Add "offset".
7192 (struct field_info): Add "current_variant_part" and
7193 "variant_parts".
7194 (alloc_discriminant_info): Remove.
7195 (alloc_rust_variant): New function.
7196 (quirk_rust_enum): Update.
7197 (dwarf2_add_field): Set "offset" member. Don't handle
7198 DW_TAG_variant_part.
7199 (offset_map_type): New typedef.
7200 (convert_variant_range, create_one_variant)
7201 (create_one_variant_part, create_variant_parts)
7202 (add_variant_property): New functions.
7203 (dwarf2_attach_fields_to_type): Call add_variant_property.
7204 (read_structure_type): Don't handle DW_TAG_variant_part.
7205 (handle_variant_part, handle_variant): New functions.
7206 (handle_struct_member_die): Use them.
7207 (process_structure_scope): Don't handle variant parts.
7208 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7209 (struct discriminant_info): Remove.
7210 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7211 (struct main_type) <flag_discriminated_union>: Remove.
7212 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7213 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7214 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7215 Update.
7216 * valops.c (value_union_variant): Remove.
7217 * value.h (value_union_variant): Don't declare.
7218
b249d2c2
TT
72192020-04-24 Tom Tromey <tromey@adacore.com>
7220
7221 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7222 (ada_value_primitive_packed_val): Update.
7223 * ada-valprint.c (ada_value_print_1): Update.
7224 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7225 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7226 just an address. Use evaluate_for_locexpr_baton.
7227 (dwarf2_evaluate_property): Update.
7228 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7229 array_view.
7230 * findvar.c (default_read_var_value): Update.
7231 * gdbtypes.c (compute_variant_fields_inner)
7232 (resolve_dynamic_type_internal): Update.
7233 (resolve_dynamic_type): Change type of valaddr parameter.
7234 * gdbtypes.h (resolve_dynamic_type): Update.
7235 * valarith.c (value_subscripted_rvalue): Update.
7236 * value.c (value_from_contents_and_address): Update.
7237
61122aa9
TT
72382020-04-24 Tom Tromey <tromey@adacore.com>
7239
7240 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7241 "push_initial_value" parameter.
7242 (dwarf2_evaluate_property): Likewise.
7243 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7244
ef83a141
TT
72452020-04-24 Tom Tromey <tromey@adacore.com>
7246
7247 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7248 (variant::matches, compute_variant_fields_recurse)
7249 (compute_variant_fields_inner, compute_variant_fields): New
7250 functions.
7251 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7252 Use resolved_type after type is made.
7253 (operator==): Add new cases.
7254 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7255 (struct discriminant_range, struct variant, struct variant_part):
7256 New.
7257 (union dynamic_prop_data) <variant_parts, original_type>: New
7258 members.
7259 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7260 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7261 constants.
7262 * value.c (unpack_bits_as_long): Now public.
7263 * value.h (unpack_bits_as_long): Declare.
7264
675127ec
TT
72652020-04-24 Tom Tromey <tromey@adacore.com>
7266
7267 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7268 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7269
9852ceef
HD
72702020-04-24 Hannes Domani <ssbssa@yahoo.de>
7271
7272 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7273
7632c6ce
KR
72742020-04-24 Kamil Rytarowski <n54@gmx.com>
7275
7276 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7277 (remove_fork_catchpoint, post_startup_inferior)
7278 (post_attach): Move...
7279 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7280 (remove_fork_catchpoint, post_startup_inferior)
7281 (post_attach): ...here.
7282 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7283 (remove_fork_catchpoint, post_startup_inferior)
7284 (post_attach): Move...
7285 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7286 (remove_fork_catchpoint, post_startup_inferior)
7287 (post_attach): ...here.
7288
7be2bb4f
TT
72892020-04-24 Tom Tromey <tromey@adacore.com>
7290
7291 * nat/windows-nat.h (struct windows_thread_info)
7292 <pc_adjusted>: New member.
7293 * windows-nat.c (windows_fetch_one_register): Check
7294 pc_adjusted.
7295 (windows_nat_target::get_windows_debug_event)
7296 (windows_nat_target::wait): Set pc_adjusted.
7297
f80cb3b4
TV
72982020-04-24 Tom de Vries <tdevries@suse.de>
7299
7300 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7301 Run gdb-add-index inside temp dir.
7302
29514b87
TT
73032020-04-23 Tom Tromey <tromey@adacore.com>
7304
7305 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7306 in loop.
7307
5939967b
LM
73082020-04-23 Luis Machado <luis.machado@linaro.org>
7309
7310 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7311 get_frame_register instead of gdbarch_unwind_pc.
7312
70bc38f5
TV
73132020-04-23 Tom de Vries <tdevries@suse.de>
7314
7315 * symtab.c (lookup_global_symbol): Prefer def over decl.
7316
de82891c
TV
73172020-04-23 Tom de Vries <tdevries@suse.de>
7318
7319 PR symtab/25807
7320 * block.c (best_symbol, better_symbol): Promote to external.
7321 * block.h (best_symbol, better_symbol): Declare.
7322 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7323 decl.
7324
ecc6c606
TT
73252020-04-23 Tom Tromey <tromey@adacore.com>
7326
7327 PR ada/25837:
7328 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7329 "const char *", not a "const std::string &".
7330 <name_and_matcher::operator==>: Update.
7331 * unittests/lookup_name_info-selftests.c: Change type of
7332 "result".
7333
740480b8
TT
73342020-04-23 Tom Tromey <tom@tromey.com>
7335
7336 * inferior.h (iterate_over_inferiors): Don't declare.
7337 * inferior.c (iterate_over_inferiors): Remove.
7338 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7339 Remove.
7340 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7341 use iterate_over_inferiors.
7342 (darwin_resume_inferior_it)
7343 (struct resume_inferior_threads_param)
7344 (darwin_resume_inferior_threads_it): Remove.
7345 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7346
ae3ab1f0
TV
73472020-04-23 Tom de Vries <tdevries@suse.de>
7348
7349 * blockframe.c (find_pc_partial_function): Use
7350 find_pc_sect_compunit_symtab rather than
7351 objfile->sf->qf->find_pc_sect_compunit_symtab.
7352
317d2668
TV
73532020-04-22 Tom de Vries <tdevries@suse.de>
7354
7355 PR symtab/25764
7356 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7357 in psymtabs.
7358
eea9e357
TV
73592020-04-22 Tom de Vries <tdevries@suse.de>
7360
7361 PR symtab/25801
7362 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7363 symtabs.
7364
3d5afab3
TV
73652020-04-22 Tom de Vries <tdevries@suse.de>
7366
7367 PR symtab/25700
7368 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7369 CU if already created.
7370
d43b7a2d
TBA
73712020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7372
7373 * infrun.c (displaced_step_fixup): Switch to the event_thread
7374 before calling displaced_step_restore, not after.
7375
d89edf9b
MM
73762020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7377
7378 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7379 its inferior is not recorded by us.
7380 (record_btrace_target_open): Replace call to
7381 all_non_exited_threads () with call to current_inferior
7382 ()->non_exited_threads ().
7383 (record_btrace_target::stop_recording): Likewise.
7384 (record_btrace_target::close): Likewise.
7385 (record_btrace_target::wait): Likewise.
7386 (record_btrace_target::record_stop_replaying): Likewise.
7387
5897fd49
MM
73882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7389
7390 * btrace.c (btrace_enable): Throw an error on double enables and
7391 when enabling recording fails.
7392 (btrace_disable): Throw an error if the thread is not recorded.
7393
1a476b6d
MM
73942020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7395
7396 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7397 request if we do not have a thread_info.
7398
4778a5f8
TV
73992020-04-21 Tom de Vries <tdevries@suse.de>
7400
7401 PR gdb/25471
7402 * thread.c
7403 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7404 exception in get_frame_id.
7405
0fa7617d
TT
74062020-04-20 Tom Tromey <tromey@adacore.com>
7407
7408 * python/python.c (struct gdbpy_event): Mark move constructor as
7409 noexcept.
7410 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7411 constructor as noexcept.
7412 * completer.h (struct completion_result): Mark move constructor as
7413 noexcept.
7414 * completer.c (completion_result::completion_result): Use
7415 initialization style. Don't call reset_match_list.
7416
ad23bda0
MS
74172020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7418
7419 * MAINTAINERS (Write After Approval): Add myself.
7420
45e1f031
TT
74212020-04-18 Tom Tromey <tom@tromey.com>
7422
7423 * windows-tdep.c (init_w32_command_list)
7424 (w32_prefix_command_valid): Restore.
7425 (_initialize_windows_tdep): Call init_w32_command_list.
7426
08feed99
TT
74272020-04-18 Tom Tromey <tom@tromey.com>
7428
7429 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7430 * value.c (value_fn_field): Update.
7431 * valops.c (find_function_in_inferior)
7432 (value_allocate_space_in_inferior): Update.
7433 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7434 Update.
7435 * tui/tui-source.c (tui_source_window::set_contents): Update.
7436 * symtab.c (lookup_global_or_static_symbol)
7437 (find_function_start_sal_1, skip_prologue_sal)
7438 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7439 * symmisc.c (dump_msymbols, dump_symtab_1)
7440 (maintenance_print_one_line_table): Update.
7441 * symfile.c (init_entry_point_info, section_is_mapped)
7442 (list_overlays_command, simple_read_overlay_table)
7443 (simple_overlay_update_1): Update.
7444 * stap-probe.c (handle_stap_probe): Update.
7445 * stabsread.c (dbx_init_float_type, define_symbol)
7446 (read_one_struct_field, read_enum_type, read_range_type): Update.
7447 * source.c (info_line_command): Update.
7448 * python/python.c (gdbpy_source_objfile_script)
7449 (gdbpy_execute_objfile_script): Update.
7450 * python/py-type.c (save_objfile_types): Update.
7451 * python/py-objfile.c (py_free_objfile): Update.
7452 * python/py-inferior.c (python_new_objfile): Update.
7453 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7454 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7455 (maintenance_check_psymtabs): Update.
7456 * printcmd.c (info_address_command): Update.
7457 * objfiles.h (struct objfile) <arch>: New method, from
7458 get_objfile_arch.
7459 (get_objfile_arch): Don't declare.
7460 * objfiles.c (get_objfile_arch): Remove.
7461 (filter_overlapping_sections): Update.
7462 * minsyms.c (msymbol_is_function): Update.
7463 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7464 (output_nondebug_symbol): Update.
7465 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7466 (mdebug_expand_psymtab): Update.
7467 * machoread.c (macho_add_oso_symfile): Update.
7468 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7469 Update.
7470 * linux-fork.c (checkpoint_command): Update.
7471 * linespec.c (convert_linespec_to_sals): Update.
7472 * jit.c (finalize_symtab): Update.
7473 * infrun.c (insert_exception_resume_from_probe): Update.
7474 * ia64-tdep.c (ia64_find_unwind_table): Update.
7475 * hppa-tdep.c (internalize_unwinds): Update.
7476 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7477 Update.
7478 * gcore.c (call_target_sbrk): Update.
7479 * elfread.c (record_minimal_symbol, elf_symtab_read)
7480 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7481 (elf_gnu_ifunc_resolve_by_got): Update.
7482 * dwarf2/read.c (create_addrmap_from_index)
7483 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7484 (read_debug_names_from_section)
7485 (process_psymtab_comp_unit_reader, add_partial_symbol)
7486 (add_partial_subprogram, process_full_comp_unit)
7487 (read_file_scope, read_func_scope, read_lexical_block_scope)
7488 (read_call_site_scope, dwarf2_ranges_read)
7489 (dwarf2_record_block_ranges, dwarf2_add_field)
7490 (mark_common_block_symbol_computed, read_tag_pointer_type)
7491 (read_tag_string_type, dwarf2_init_float_type)
7492 (dwarf2_init_complex_target_type, read_base_type)
7493 (partial_die_info::read, partial_die_info::read)
7494 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7495 (dwarf2_fetch_die_loc_sect_off): Update.
7496 * dwarf2/loc.c (dwarf2_find_location_expression)
7497 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7498 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7499 (dwarf2_loc_desc_get_symbol_read_needs)
7500 (locexpr_describe_location_piece, locexpr_describe_location_1)
7501 (loclist_describe_location): Update.
7502 * dwarf2/index-write.c (write_debug_names): Update.
7503 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7504 * dtrace-probe.c (dtrace_process_dof): Update.
7505 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7506 (process_one_symbol): Update.
7507 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7508 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7509 (coff_read_enum_type): Update.
7510 * cli/cli-cmds.c (edit_command, list_command): Update.
7511 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7512 * breakpoint.c (create_overlay_event_breakpoint)
7513 (create_longjmp_master_breakpoint)
7514 (create_std_terminate_master_breakpoint)
7515 (create_exception_master_breakpoint, get_sal_arch): Update.
7516 * block.c (block_gdbarch): Update.
7517 * annotate.c (annotate_source_line): Update.
7518
0743fc83
TT
75192020-04-17 Tom Tromey <tromey@adacore.com>
7520
7521 * auto-load.c (show_auto_load_cmd): Remove.
7522 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7523 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7524 (maintenance_print_arc_command): Remove.
7525 * tui/tui-win.c (tui_command): Remove.
7526 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7527 * tui/tui-layout.c (tui_layout_command): Remove.
7528 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7529 * python/python.c (user_set_python, user_show_python): Remove.
7530 (_initialize_python): Use add_basic_prefix_cmd,
7531 add_show_prefix_cmd.
7532 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7533 (install_gdb_commands): Use add_basic_prefix_cmd,
7534 add_show_prefix_cmd.
7535 (info_guile_command): Remove.
7536 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7537 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7538 add_show_prefix_cmd.
7539 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7540 Remove do_set and do_show parameters.
7541 * cli/cli-style.c (set_style, show_style): Remove.
7542 (_initialize_cli_style): Use add_basic_prefix_cmd,
7543 add_show_prefix_cmd.
7544 (cli_style_option::add_setshow_commands): Remove do_set and
7545 do_show parameters.
7546 (cli_style_option::add_setshow_commands): Use
7547 add_basic_prefix_cmd, add_show_prefix_cmd.
7548 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7549 (set_style_name): Remove.
7550 * cli/cli-dump.c (dump_command, append_command): Remove.
7551 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7552 (tekhex_dump_command, binary_dump_command)
7553 (binary_append_command): Remove.
7554 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7555 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7556 (init_w32_command_list): Remove; move into ...
7557 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7558 * valprint.c (set_print, show_print, set_print_raw)
7559 (show_print_raw): Remove.
7560 (_initialize_valprint): Use add_basic_prefix_cmd,
7561 add_show_prefix_cmd.
7562 * typeprint.c (set_print_type, show_print_type): Remove.
7563 (_initialize_typeprint): Use add_basic_prefix_cmd,
7564 add_show_prefix_cmd.
7565 * record.c (set_record_command, show_record_command): Remove.
7566 (_initialize_record): Use add_basic_prefix_cmd,
7567 add_show_prefix_cmd.
7568 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7569 add_show_prefix_cmd.
7570 (info_command, show_command, set_debug, show_debug): Remove.
7571 * top.h (set_history, show_history): Don't declare.
7572 * top.c (set_history, show_history): Remove.
7573 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7574 (unset_tdesc_cmd): Remove.
7575 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7576 add_show_prefix_cmd.
7577 * symtab.c (info_module_command): Remove.
7578 (_initialize_symtab): Use add_basic_prefix_cmd.
7579 * symfile.c (overlay_command): Remove.
7580 (_initialize_symfile): Use add_basic_prefix_cmd.
7581 * sparc64-tdep.c (info_adi_command): Remove.
7582 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7583 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7584 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7585 add_show_prefix_cmd.
7586 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7587 (_initialize_serial): Use add_basic_prefix_cmd,
7588 add_show_prefix_cmd.
7589 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7590 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7591 add_show_prefix_cmd.
7592 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7593 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7594 add_show_prefix_cmd.
7595 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7596 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7597 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7598 add_show_prefix_cmd.
7599 * remote.c (remote_command, set_remote_cmd): Remove.
7600 (_initialize_remote): Use add_basic_prefix_cmd.
7601 * record-full.c (set_record_full_command)
7602 (show_record_full_command): Remove.
7603 (_initialize_record_full): Use add_basic_prefix_cmd,
7604 add_show_prefix_cmd.
7605 * record-btrace.c (cmd_set_record_btrace)
7606 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7607 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7608 (cmd_show_record_btrace_pt): Remove.
7609 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7610 add_show_prefix_cmd.
7611 * ravenscar-thread.c (set_ravenscar_command)
7612 (show_ravenscar_command): Remove.
7613 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7614 add_show_prefix_cmd.
7615 * mips-tdep.c (show_mips_command, set_mips_command)
7616 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7617 add_show_prefix_cmd.
7618 * maint.c (maintenance_command, maintenance_info_command)
7619 (maintenance_check_command, maintenance_print_command)
7620 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7621 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7622 add_show_prefix_cmd.
7623 (show_per_command_cmd): Remove.
7624 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7625 Remove.
7626 (maintenance_show_test_settings_cmd): Remove.
7627 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7628 add_show_prefix_cmd.
7629 * maint-test-options.c (maintenance_test_options_command):
7630 Remove.
7631 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7632 * macrocmd.c (macro_command): Remove
7633 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7634 * language.c (set_check, show_check): Remove.
7635 (_initialize_language): Use add_basic_prefix_cmd,
7636 add_show_prefix_cmd.
7637 * infcmd.c (unset_command): Remove.
7638 (_initialize_infcmd): Use add_basic_prefix_cmd.
7639 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7640 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7641 add_show_prefix_cmd.
7642 * go32-nat.c (go32_info_dos_command): Remove.
7643 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7644 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7645 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7646 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7647 (_initialize_frame): Use add_basic_prefix_cmd,
7648 add_show_prefix_cmd.
7649 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7650 (_initialize_dcache): Use add_basic_prefix_cmd,
7651 add_show_prefix_cmd.
7652 * cp-support.c (maint_cplus_command): Remove.
7653 (_initialize_cp_support): Use add_basic_prefix_cmd.
7654 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7655 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7656 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7657 add_basic_prefix_cmd, add_show_prefix_cmd.
7658 * breakpoint.c (save_command): Remove.
7659 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7660 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7661 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7662 add_show_prefix_cmd.
7663 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7664 (set_ada_command, show_ada_command): Remove.
7665 (_initialize_ada_language): Use add_basic_prefix_cmd,
7666 add_show_prefix_cmd.
7667 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7668
3557f442
KR
76692020-04-16 Kamil Rytarowski <n54@gmx.com>
7670
7671 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7672 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7673
16197208
SM
76742020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7675
7676 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7677 warning messages.
7678
00ac85d3
SM
76792020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7680
7681 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7682 import table is not at beginning of .idata section.
7683
381ce63f
PA
76842020-04-16 Pedro Alves <palves@redhat.com>
7685
7686 * inferior.c (delete_inferior): Use delete operator directly
7687 instead of delete_program_space.
7688 * progspace.c (add_program_space): New, factored out from
7689 program_space::program_space.
7690 (remove_program_space): New, factored out from
7691 delete_program_space.
7692 (program_space::program_space): Remove intro comment. Rewrite.
7693 (program_space::~program_space): Remove intro comment. Call
7694 remove_program_space.
7695 (delete_program_space): Delete.
7696 * progspace.h (program_space::program_space): Make explicit. Move
7697 intro comment here, adjusted.
7698 (program_space::~program_space): Move intro comment here,
7699 adjusted.
7700 (delete_program_space): Remove.
7701
a010605f
TT
77022020-04-16 Tom Tromey <tromey@adacore.com>
7703
7704 * windows-nat.c (windows_nat::handle_access_violation): New
7705 function.
7706 * nat/windows-nat.h (handle_access_violation): Declare.
7707 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7708 windows-nat.c. Call handle_access_violation.
7709
efba5c23
TV
77102020-04-16 Tom de Vries <tdevries@suse.de>
7711
7712 PR symtab/25791
7713 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7714 CUs without psymtab.
7715
97ed802d
KB
77162020-04-16 Kevin Buettner <kevinb@redhat.com>
7717
7718 * python/python.c (do_start_initialization): Don't call
7719 PyEval_InitThreads for Python 3.9 and beyond.
7720
c7d64809
KR
77212020-04-15 Kamil Rytarowski <n54@gmx.com>
7722
7723 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7724 thread functions.
7725 (obsd_nat_target::wait): Likewise.
7726
ce127a96
TT
77272020-04-15 Tom Tromey <tromey@adacore.com>
7728
7729 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7730 (DEBUG_EXCEPT): Use debug_printf.
7731
99f1bc6a
AB
77322020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7733
7734 * completer.c (class completion_tracker::completion_hash_entry)
7735 <hash_name>: New member function.
7736 (completion_tracker::discard_completions): New callback to hash a
7737 completion_hash_entry, pass this to htab_create_alloc.
7738
a0e9b532
JT
77392016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7740
7741 * windows-nat.c (windows_make_so): Warn rather than stopping with
7742 an error if realpath() fails.
7743
06ca5dd4
KR
77442020-04-14 Kamil Rytarowski <n54@gmx.com>
7745
7746 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7747 (nbsd_nat_target::info_proc): Add do_status.
7748
194d088f
TV
77492020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7750 Tom de Vries <tdevries@suse.de>
7751
7752 PR symtab/25718
7753 * psympriv.h (struct partial_symtab::read_symtab)
7754 (struct partial_symtab::expand_psymtab)
7755 (struct partial_symtab::read_dependencies): Update comments.
7756 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7757 read_symtab for includer.
7758 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7759 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7760 (struct dwarf2_include_psymtab::m_readin): Remove.
7761 (struct dwarf2_include_psymtab::includer): New member function.
7762 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7763
c1a66c06
TV
77642020-04-14 Tom de Vries <tdevries@suse.de>
7765
7766 PR symtab/25720
7767 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7768 with NULL symbol_matcher and lookup_name.
7769 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7770 and lookup_name.
7771 * dwarf2/read.c (dw2_expand_symtabs_matching)
7772 (dw2_debug_names_expand_symtabs_matching): Same.
7773 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7774 Make lookup_name a pointer. Update comment.
7775 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7776 lookup_name being a pointer.
7777 * symfile.c (expand_symtabs_matching): Same.
7778 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7779 * linespec.c (iterate_over_all_matching_symtabs): Same.
7780
400b5eca
TT
77812020-04-13 Tom Tromey <tom@tromey.com>
7782
7783 * run-on-main-thread.c: Update include.
7784 * unittests/main-thread-selftests.c: Update include.
7785 * tui/tui-win.c: Update include.
7786 * tui/tui-io.c: Update include.
7787 * tui/tui-interp.c: Update include.
7788 * tui/tui-hooks.c: Update include.
7789 * top.h: Update include.
7790 * top.c: Update include.
7791 * ser-base.c: Update include.
7792 * remote.c: Update include.
7793 * remote-notif.c: Update include.
7794 * remote-fileio.c: Update include.
7795 * record-full.c: Update include.
7796 * record-btrace.c: Update include.
7797 * python/python.c: Update include.
7798 * posix-hdep.c: Update include.
7799 * mingw-hdep.c: Update include.
7800 * mi/mi-main.c: Update include.
7801 * mi/mi-interp.c: Update include.
7802 * main.c: Update include.
7803 * linux-nat.c: Update include.
7804 * interps.c: Update include.
7805 * infrun.c: Update include.
7806 * inf-loop.c: Update include.
7807 * event-top.c: Update include.
7808 * event-loop.c: Move to ../gdbsupport/.
7809 * event-loop.h: Move to ../gdbsupport/.
7810 * async-event.h: Update include.
7811 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7812
93b54c8e
TT
78132020-04-13 Tom Tromey <tom@tromey.com>
7814
7815 * tui/tui-win.c: Include async-event.h.
7816 * remote.c: Include async-event.h.
7817 * remote-notif.c: Include async-event.h.
7818 * record-full.c: Include async-event.h.
7819 * record-btrace.c: Include async-event.h.
7820 * infrun.c: Include async-event.h.
7821 * event-top.c: Include async-event.h.
7822 * event-loop.h: Move some declarations to async-event.h.
7823 * event-loop.c: Don't include ser-event.h or top.h. Move some
7824 code to async-event.c.
7825 * async-event.h: New file.
7826 * async-event.c: New file.
7827 * Makefile.in (COMMON_SFILES): Add async-event.c.
7828 (HFILES_NO_SRCDIR): Add async-event.h.
7829
c1cd3163
TT
78302020-04-13 Tom Tromey <tom@tromey.com>
7831
7832 * utils.c (flush_streams): New function.
7833 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7834
29f2bf4f
TT
78352020-04-13 Tom Tromey <tom@tromey.com>
7836
7837 * event-loop.c (handle_file_event): Use warning, not
7838 printf_unfiltered.
7839
98029d02
TT
78402020-04-13 Tom Tromey <tom@tromey.com>
7841
7842 * event-loop.c: Include <chrono>.
7843
06cc9596
TT
78442020-04-13 Tom Tromey <tom@tromey.com>
7845
7846 * gdb_select.h: Move to ../gdbsupport/.
7847 * event-loop.c: Update include path.
7848 * top.c: Update include path.
7849 * ser-base.c: Update include path.
7850 * ui-file.c: Update include path.
7851 * ser-tcp.c: Update include path.
7852 * guile/scm-ports.c: Update include path.
7853 * posix-hdep.c: Update include path.
7854 * ser-unix.c: Update include path.
7855 * gdb_usleep.c: Update include path.
7856 * mingw-hdep.c: Update include path.
7857 * inflow.c: Update include path.
7858 * infrun.c: Update include path.
7859 * event-top.c: Update include path.
7860
8ae8e197
TT
78612020-04-13 Tom Tromey <tom@tromey.com>
7862
7863 * configure: Rebuild.
7864 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7865
58cf28e8
TT
78662020-04-13 Tom Tromey <tom@tromey.com>
7867
7868 * event-loop.h (start_event_loop): Don't declare.
7869 * event-loop.c (start_event_loop): Move...
7870 * main.c (start_event_loop): ...here. Now static.
7871
b7f999ae
SDJ
78722020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7873
7874 * MAINTAINERS: Update my email address.
7875
1085dfd4
KR
78762020-04-12 Kamil Rytarowski <n54@gmx.com>
7877
7878 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7879 IP_ALL.
7880
49d1d1f5
KR
78812020-04-12 Kamil Rytarowski <n54@gmx.com>
7882
7883 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7884 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7885
b4848d2a
KR
78862020-04-12 Kamil Rytarowski <n54@gmx.com>
7887
7888 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7889 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7890
51c133d5
KR
78912020-04-12 Kamil Rytarowski <n54@gmx.com>
7892
7893 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7894
54b8cbd0
KR
78952020-04-11 Kamil Rytarowski <n54@gmx.com>
7896
7897 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7898 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7899 (nbsd_nat_target::info_proc): New functions.
7900 * nbsd-nat.c (kinfo_get_vmmap): New function.
7901 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7902 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7903 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7904 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7905 functions.
7906 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7907 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7908 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7909 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7910 (KINFO_VME_FLAG_GROWS_DOWN): New.
7911
cf83625d
AS
79122020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7913
7914 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7915 bit shift.
7916
0c4311ab
TT
79172020-04-10 Tom Tromey <tromey@adacore.com>
7918
7919 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7920
3e65b3e9
TT
79212020-04-10 Tom Tromey <tromey@adacore.com>
7922
7923 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7924 separate debug files.
7925
13302e95
HD
79262020-04-10 Hannes Domani <ssbssa@yahoo.de>
7927
7928 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7929 Move to...
7930 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7931 ... here.
7932 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7933 Check for STATUS_WX86_BREAKPOINT.
7934 (windows_nat_target::wait): Same.
7935
bdfc1e8a
TV
79362020-04-10 Tom de Vries <tdevries@suse.de>
7937
7938 PR cli/25808
7939 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7940
f4460aec
SM
79412020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7942
7943 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7944 (Write After Approval): Remove Tom de Vries.
7945
a25198bb
BE
79462020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7947
7948 revert partially:
7949 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7950
aac66a4c
SM
7951 * buildsym.c (record_line): Fix undefined behavior and preserve
7952 lines at eof.
a25198bb 7953
206c98a6
KR
79542020-04-09 Kamil Rytarowski <n54@gmx.com>
7955
7956 * auxv.h (svr4_auxv_parse): New.
7957 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7958 and generic_auxv_parse.
7959 (svr4_auxv_parse): Add.
7960 * obsd-tdep.c: Include "auxv.h".
7961 (obsd_auxv_parse): Remove.
7962 (obsd_init_abi): Remove comment.
7963 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7964 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7965 * nbsd-tdep.c: Include "auxv.h".
7966 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7967
71fbdbaf
TT
79682020-04-08 Tom Tromey <tromey@adacore.com>
7969
7970 * nat/windows-nat.h (last_wait_event): Don't declare.
7971 (wait_for_debug_event): Update comment.
7972 * nat/windows-nat.c (last_wait_event): Now static.
7973
2c1d95e8
TT
79742020-04-08 Tom Tromey <tromey@adacore.com>
7975
7976 * windows-nat.c (wait_for_debug_event): Move to
7977 nat/windows-nat.c.
7978 * nat/windows-nat.h (wait_for_debug_event): Declare.
7979 * nat/windows-nat.c (wait_for_debug_event): Move from
7980 windows-nat.c. No longer static.
7981
d2977bc4
TT
79822020-04-08 Tom Tromey <tromey@adacore.com>
7983
7984 * windows-nat.c (get_windows_debug_event): Use
7985 fetch_pending_stop.
7986 * nat/windows-nat.h (fetch_pending_stop): Declare.
7987 * nat/windows-nat.c (fetch_pending_stop): New function.
7988
e758e19c
TT
79892020-04-08 Tom Tromey <tromey@adacore.com>
7990
7991 * windows-nat.c (windows_continue): Use matching_pending_stop and
7992 continue_last_debug_event.
7993 * nat/windows-nat.h (matching_pending_stop)
7994 (continue_last_debug_event): Declare.
7995 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7996 (matching_pending_stop, continue_last_debug_event): New
7997 functions.
7998
8d30e395
TT
79992020-04-08 Tom Tromey <tromey@adacore.com>
8000
8001 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8002 (handle_exception_result): Move to nat/windows-nat.h.
8003 (DEBUG_EXCEPTION_SIMPLE): Remove.
8004 (windows_nat::handle_ms_vc_exception): New function.
8005 (handle_exception): Move to nat/windows-nat.c.
8006 (get_windows_debug_event): Update.
8007 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8008 nat/windows-nat.c.
8009 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8010 (handle_exception_result): Move from windows-nat.c.
8011 (handle_exception): Declare.
8012 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8013 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8014 windows-nat.c.
8015
29de418d
TT
80162020-04-08 Tom Tromey <tromey@adacore.com>
8017
8018 * windows-nat.c (exception_count, event_count): Remove.
8019 (handle_exception, get_windows_debug_event)
8020 (do_initial_windows_stuff): Update.
8021
a816ba18
TT
80222020-04-08 Tom Tromey <tromey@adacore.com>
8023
8024 * windows-nat.c (windows_nat::handle_load_dll)
8025 (windows_nat::handle_unload_dll): Rename. No longer static.
8026 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8027 Declare.
8028
a00caa12
TT
80292020-04-08 Tom Tromey <tromey@adacore.com>
8030
8031 * complaints.h (stop_whining): Declare at top-level.
8032 (complaint): Don't declare stop_whining.
8033
d41b524f
TT
80342020-04-08 Tom Tromey <tromey@adacore.com>
8035
8036 * windows-nat.c (windows_nat::handle_output_debug_string):
8037 Rename. No longer static.
8038 * nat/windows-nat.h (handle_output_debug_string): Declare.
8039
3c76026d
TT
80402020-04-08 Tom Tromey <tromey@adacore.com>
8041
8042 * windows-nat.c (current_process_handle, current_process_id)
8043 (main_thread_id, last_sig, current_event, last_wait_event)
8044 (current_windows_thread, desired_stop_thread_id, pending_stops)
8045 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8046 (display_selectors, fake_create_process)
8047 (get_windows_debug_event): Update.
8048 * nat/windows-nat.h (current_process_handle, current_process_id)
8049 (main_thread_id, last_sig, current_event, last_wait_event)
8050 (current_windows_thread, desired_stop_thread_id, pending_stops)
8051 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8052 * nat/windows-nat.c (current_process_handle, current_process_id)
8053 (main_thread_id, last_sig, current_event, last_wait_event)
8054 (current_windows_thread, desired_stop_thread_id, pending_stops)
8055 (siginfo_er): New globals. Move from windows-nat.c.
8056
9d8679cc
TT
80572020-04-08 Tom Tromey <tromey@adacore.com>
8058
8059 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8060 (handle_load_dll): Update.
8061 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8062
28688adf
TT
80632020-04-08 Tom Tromey <tromey@adacore.com>
8064
8065 * windows-nat.c (enum thread_disposition_type): Move to
8066 nat/windows-nat.h.
8067 (windows_nat::thread_rec): Rename from thread_rec. No longer
8068 static.
8069 (windows_add_thread, windows_nat_target::fetch_registers)
8070 (windows_nat_target::store_registers, handle_exception)
8071 (windows_nat_target::resume, get_windows_debug_event)
8072 (windows_nat_target::get_tib_address)
8073 (windows_nat_target::thread_name)
8074 (windows_nat_target::thread_alive): Update.
8075 * nat/windows-nat.h (enum thread_disposition_type): Move from
8076 windows-nat.c.
8077 (thread_rec): Declare.
8078
4834dad0
TT
80792020-04-08 Tom Tromey <tromey@adacore.com>
8080
8081 * windows-nat.c: Add "using namespace".
8082 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8083 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8084
65bafd5b
TT
80852020-04-08 Tom Tromey <tromey@adacore.com>
8086
8087 * nat/windows-nat.h (struct windows_thread_info): Declare
8088 destructor.
8089 * nat/windows-nat.c (~windows_thread_info): New.
8090
0a4afda3
TT
80912020-04-08 Tom Tromey <tromey@adacore.com>
8092
8093 PR gdb/22992
8094 * windows-nat.c (current_event): Update comment.
8095 (last_wait_event, desired_stop_thread_id): New globals.
8096 (struct pending_stop): New.
8097 (pending_stops): New global.
8098 (windows_nat_target) <stopped_by_sw_breakpoint>
8099 <supports_stopped_by_sw_breakpoint>: New methods.
8100 (windows_fetch_one_register): Add assertions. Adjust PC.
8101 (windows_continue): Handle pending stops. Suspend other threads
8102 when stepping. Use last_wait_event
8103 (wait_for_debug_event): New function.
8104 (get_windows_debug_event): Use wait_for_debug_event. Handle
8105 pending stops. Queue spurious stops.
8106 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8107 (windows_nat_target::kill): Use wait_for_debug_event.
8108 * nat/windows-nat.h (struct windows_thread_info)
8109 <stopped_at_software_breakpoint>: New field.
8110 * nat/windows-nat.c (windows_thread_info::resume): Clear
8111 stopped_at_software_breakpoint.
8112
8e61ebec
TT
81132020-04-08 Tom Tromey <tromey@adacore.com>
8114
8115 * windows-nat.c (enum thread_disposition_type): New.
8116 (thread_rec): Replace "get_context" parameter with "disposition";
8117 change type.
8118 (windows_add_thread, windows_nat_target::fetch_registers)
8119 (windows_nat_target::store_registers, handle_exception)
8120 (windows_nat_target::resume, get_windows_debug_event)
8121 (windows_nat_target::get_tib_address)
8122 (windows_nat_target::thread_name)
8123 (windows_nat_target::thread_alive): Update.
8124
98a03287
TT
81252020-04-08 Tom Tromey <tromey@adacore.com>
8126
8127 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8128 (windows_continue): Use windows_continue::resume.
8129 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8130 resume>: Declare new methods.
8131 * nat/windows-nat.c: New file.
8132 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8133
7c7411bc
TT
81342020-04-08 Tom Tromey <tromey@adacore.com>
8135
8136 * windows-nat.c (windows_add_thread, windows_delete_thread)
8137 (windows_nat_target::fetch_registers)
8138 (windows_nat_target::store_registers, fake_create_process)
8139 (windows_nat_target::resume, windows_nat_target::resume)
8140 (get_windows_debug_event, windows_nat_target::wait)
8141 (windows_nat_target::pid_to_str)
8142 (windows_nat_target::get_tib_address)
8143 (windows_nat_target::get_ada_task_ptid)
8144 (windows_nat_target::thread_name)
8145 (windows_nat_target::thread_alive): Use lwp, not tid.
8146
2950fdf7
TT
81472020-04-08 Tom Tromey <tromey@adacore.com>
8148
8149 * windows-nat.c (handle_exception)
8150 (windows_nat_target::thread_name): Update.
8151 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8152 <name>: Now unique_xmalloc_ptr.
8153
62fe396b
TT
81542020-04-08 Tom Tromey <tromey@adacore.com>
8155
8156 * windows-nat.c (thread_rec)
8157 (windows_nat_target::fetch_registers): Update.
8158 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8159 Update comment.
8160 <debug_registers_changed, reload_context>: Now bool.
8161
e9534bd2
TT
81622020-04-08 Tom Tromey <tromey@adacore.com>
8163
8164 * windows-nat.c (windows_add_thread): Use new.
8165 (windows_init_thread_list, windows_delete_thread): Use delete.
8166 (get_windows_debug_event): Update.
8167 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8168 destructor, and initializers.
8169
ae1f8880
TT
81702020-04-08 Tom Tromey <tromey@adacore.com>
8171
8172 * windows-nat.c (struct windows_thread_info): Remove.
8173 * nat/windows-nat.h: New file.
8174
55a1e039
TT
81752020-04-08 Tom Tromey <tromey@adacore.com>
8176
8177 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8178 (thread_rec, windows_add_thread, windows_delete_thread)
8179 (windows_continue): Update.
8180
93366324
TT
81812020-04-08 Tom Tromey <tromey@adacore.com>
8182
8183 * windows-nat.c (struct windows_thread_info): Remove typedef.
8184 (thread_head): Remove.
8185 (thread_list): New global.
8186 (thread_rec, windows_add_thread, windows_init_thread_list)
8187 (windows_delete_thread, windows_continue): Update.
8188
0f2265e2
SM
81892020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8190
8191 * windows-tdep.h (windows_init_abi): Add comment.
8192 (cygwin_init_abi): New declaration.
8193 * windows-tdep.c: Split signal enumeration in two, one for
8194 Windows and one for Cygwin.
8195 (windows_gdb_signal_to_target): Only deal with signal of the
8196 Windows OS ABI.
8197 (cygwin_gdb_signal_to_target): New function.
8198 (windows_init_abi): Rename to windows_init_abi_common, don't set
8199 gdb_signal_to_target gdbarch method. Add new new function with
8200 this name.
8201 (cygwin_init_abi): New function.
8202 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8203 comment. Don't call windows_init_abi.
8204 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8205 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8206 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8207 i386_windows_init_abi_common, don't call windows_init_abi. Add
8208 a new function of this name.
8209 (i386_cygwin_init_abi): New function.
8210 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8211 OS ABI Cygwin.
8212
3810f182
SM
82132020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8214
8215 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8216 parameter.c.
8217 (dwarf2_read_gdb_index): Update.
8218
063f8e80
KR
82192020-04-07 Kamil Rytarowski <n54@gmx.com>
8220
8221 * nbsd-tdep.c: Include "objfiles.h".
8222 (nbsd_skip_solib_resolver): New.
8223 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8224
85a9510c 82252020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8226
8227 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8228 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8229 with DW_LLE_base_addressx are being emitted in DWARFv5.
8230 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8231 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8232 unsigned integer.
8233
9fc3eaae 82342020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8235
8236 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8237 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8238 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8239 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8240 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8241 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8242 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8243
8244
41144253 82452020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8246
8247 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8248 (read_loclist_index): New function definition.
8249 (lookup_loclist_base): New function definition.
8250 (read_loclist_header): New function definition.
8251 (dwarf2_cu): Add loclist_base and loclist_header field.
8252 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8253 (read_full_die_1): Read the value of DW_AT_loclists_base.
8254 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8255 (read_attribute_value): Handle DW_FORM_loclistx.
8256 (skip_one_die): Handle DW_FORM_loclistx.
8257 (loclist_header): New structure declaration.
8258 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8259
9f4e76a4
SM
82602020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8261
8262 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8263 constructor. Remove `addr` parameter from other constructor and
8264 add `per_cu` parameter.
8265 * dwarf2/read.c (create_partial_symtab): Update.
8266
25c11aca
TV
82672020-04-07 Tom de Vries <tdevries@suse.de>
8268
8269 PR symtab/25796
8270 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8271 (partial_die_info::fixup): Inherit has_const_value.
8272
5707e24b
TV
82732020-04-07 Tom de Vries <tdevries@suse.de>
8274
8275 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8276 symbols without address.
8277
05f00e22
KR
82782020-04-06 Kamil Rytarowski <n54@gmx.com>
8279
8280 * nbsd-nat.h (struct thread_info): Add forward declaration.
8281 (nbsd_nat_target::thread_alive): Add.
8282 (nbsd_nat_target::thread_name): Likewise.
8283 (nbsd_nat_target::update_thread_list): Likewise.
8284 (update_thread_list::post_attach): Likewise.
8285 (post_attach::pid_to_str): Likewise.
8286 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8287 (nbsd_thread_lister): Add.
8288 (nbsd_nat_target::thread_alive): Likewise.
8289 (nbsd_nat_target::thread_name): Likewise.
8290 (nbsd_add_threads): Likewise.
8291 (update_thread_list::post_attach): Likewise.
8292 (nbsd_nat_target::update_thread_list): Likewise.
8293 (post_attach::pid_to_str): Likewise.
8294
6ee448cc
TT
82952020-04-06 Tom Tromey <tromey@adacore.com>
8296
8297 * ada-valprint.c (print_variant_part): Extract the variant field.
8298 (print_field_values): Use the field as the outer value when
8299 recursing.
8300
dea34e8c
TT
83012020-04-06 Tom Tromey <tromey@adacore.com>
8302
8303 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8304 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8305 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8306 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8307 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8308
93689ce9
TT
83092020-04-06 Tom Tromey <tromey@adacore.com>
8310
8311 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8312 TYPE_CODE_ERROR.
8313
79743962
KR
83142020-04-06 Kamil Rytarowski <n54@gmx.com>
8315
8316 * nbsd-tdep.c: Include "gdbarch.h".
8317 Define enum with NetBSD signal numbers.
8318 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8319 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8320 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8321 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8322 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8323 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8324 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8325 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8326 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8327 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8328 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8329 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8330
9e7c9a03
HD
83312020-04-03 Hannes Domani <ssbssa@yahoo.de>
8332
8333 PR gdb/25325
8334 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8335
d9e49b61
TT
83362020-04-03 Tom Tromey <tromey@adacore.com>
8337
8338 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8339 Read constant block.
8340
e0fc5c3f
SM
83412020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8342
8343 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8344 (gdb_bfd_get_full_section_contents): New declaration.
8345 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8346 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8347 gdb_bfd_get_full_section_contents.
8348
e2ff18a0
SM
83492020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8350
8351 * exec.c (build_section_table): Replace internal_error with
8352 gdb_assert.
8353 (section_table_xfer_memory_partial): Likewise.
8354 * mdebugread.c (parse_partial_symbols): Likewise.
8355 * psymtab.c (lookup_partial_symbol): Likewise.
8356 * utils.c (wrap_here): Likewise.
8357
0830d301
TT
83582020-04-02 Tom Tromey <tromey@adacore.com>
8359
8360 * f-lang.c (build_fortran_types): Use arch_type to initialize
8361 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8362
e7da7f8f
TT
83632020-04-02 Tom Tromey <tromey@adacore.com>
8364
8365 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8366 of attributes.
8367
c90d28ac
AB
83682020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8369 Bernd Edlinger <bernd.edlinger@hotmail.de>
8370 Tom Tromey <tromey@adacore.com>
8371
8372 * buildsym.c (buildsym_compunit::record_line): Remove
8373 deduplication code.
8374
1aa98955
TV
83752020-04-02 Tom de Vries <tdevries@suse.de>
8376
8377 PR ada/24671
8378 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8379
d3214198
TV
83802020-04-02 Tom de Vries <tdevries@suse.de>
8381
8382 * dwarf2/read.c (dwarf2_gdb_index_functions,
8383 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8384 NULL.
8385 * psymtab.c (psym_lookup_global_symbol_language): New function.
8386 (psym_functions): Init psym_lookup_global_symbol_language with
8387 psym_lookup_global_symbol_language.
8388 * symfile-debug.c (debug_sym_quick_functions): Init
8389 lookup_global_symbol_language with NULL.
8390 * symfile.c (set_initial_language): Remove fixme comment.
8391 * symfile.h (struct quick_symbol_functions): Add
8392 lookup_global_symbol_language.
8393 * symtab.c (find_quick_global_symbol_language): New function.
8394 (find_main_name): Use find_quick_global_symbol_language.
8395
2836752f
SM
83962020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8397
8398 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8399
64dc2d4b
BE
84002020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8401
8402 * buildsym.c (record_line): Fix undefined behavior and preserve
8403 lines at eof.
8404
bbe3dc41
BE
84052020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8406
8407 * buildsym.c (record_line): Fix the resizing condition.
8408
6b4a335b
TT
84092020-04-01 Tom Tromey <tom@tromey.com>
8410
8411 * value.h (value_literal_complex): Add comment.
8412 * valops.c (value_literal_complex): Refer to value.h.
8413
3638a098
TT
84142020-04-01 Tom Tromey <tom@tromey.com>
8415
8416 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8417 (scalar_type): New rule, from typebase.
8418 (typebase): Use scalar_type. Recognize complex types.
8419 (field_name): Handle FLOAT_KEYWORD.
8420 (ident_tokens): Add _Complex and __complex__.
8421
c34e8714
TT
84222020-04-01 Tom Tromey <tom@tromey.com>
8423
8424 PR exp/25299:
8425 * valarith.c (promotion_type, complex_binop): New functions.
8426 (scalar_binop): Handle complex numbers. Use promotion_type.
8427 (value_pos, value_neg, value_complement): Handle complex numbers.
8428
fa649bb7
TT
84292020-04-01 Tom Tromey <tom@tromey.com>
8430
8431 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8432 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8433 (parse_number): Handle complex numbers.
8434
981c08ce
TT
84352020-04-01 Tom Tromey <tom@tromey.com>
8436
8437 * c-valprint.c (c_decorations): Change complex suffix to "i".
8438
4c99290d
TT
84392020-04-01 Tom Tromey <tom@tromey.com>
8440
8441 * valprint.c (generic_value_print_complex): Use accessors.
8442 * value.h (value_real_part, value_imaginary_part): Declare.
8443 * valops.c (value_real_part, value_imaginary_part): New
8444 functions.
8445 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8446
5b930b45
TT
84472020-04-01 Tom Tromey <tom@tromey.com>
8448
8449 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8450 (read_range_type): Update.
8451 * mdebugread.c (basic_type): Update.
8452 * go-lang.c (build_go_types): Use init_complex_type.
8453 * gdbtypes.h (struct main_type) <complex_type>: New member.
8454 (init_complex_type): Update.
8455 (arch_complex_type): Don't declare.
8456 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8457 Make name if none given. Use alloc_type_copy. Look for cached
8458 complex type.
8459 (arch_complex_type): Remove.
8460 (gdbtypes_post_init): Use init_complex_type.
8461 * f-lang.c (build_fortran_types): Use init_complex_type.
8462 * dwarf2/read.c (read_base_type): Update.
8463 * d-lang.c (build_d_types): Use init_complex_type.
8464 * ctfread.c (read_base_type): Update.
8465
53cccef1
TBA
84662020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8467
8468 * infrun.c (stop_all_threads): Update assertion, plus when
8469 stopping threads, take into account that we might be trying
8470 to stop an all-stop target.
8471 (stop_waiting): Call 'stop_all_threads' if there exists a
8472 non-stop target.
8473
a0714d30
TBA
84742020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8475
8476 * target.h (exists_non_stop_target): New function declaration.
8477 * target.c (exists_non_stop_target): New function.
8478
60e22c1e
HD
84792020-04-01 Hannes Domani <ssbssa@yahoo.de>
8480
8481 PR gdb/24789
8482 * eval.c (is_integral_or_integral_reference): New function.
8483 (evaluate_subexp_standard): Allow integer references in
8484 pointer arithmetic.
8485
e139a727
TBA
84862020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8487
8488 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8489 check for no ptid in the stop reply when the target is non-stop.
8490
e0802d59
TT
84912020-04-01 Tom Tromey <tromey@adacore.com>
8492
8493 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8494 "name" parameter to rvalue reference. Initialize m_name_holder.
8495 <lookup_name_info>: New overloads.
8496 <name>: Return gdb::string_view.
8497 <c_str>: New method.
8498 <make_ignore_params>: Update.
8499 <search_name_hash>: Update.
8500 <language_lookup_name>: Return const char *.
8501 <m_name>: Change type.
8502 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8503 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8504 (lookup_name_info::match_any): Update.
8505 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8506 Update.
8507 * minsyms.c (linkage_name_str): Update.
8508 * language.c (default_symbol_name_matcher): Update.
8509 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8510 Update.
8511 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8512 (ada_lookup_name_info::ada_lookup_name_info): Update.
8513 (literal_symbol_name_matcher): Update.
8514
8c072cb6
TT
85152020-04-01 Tom Tromey <tromey@adacore.com>
8516
8517 * psymtab.c (psymtab_search_name): Remove function.
8518 (psym_lookup_symbol): Create search name and lookup name here.
8519 (lookup_partial_symbol): Remove "name" parameter; add
8520 lookup_name.
8521 (psym_expand_symtabs_for_function): Update.
8522
6f29a534
TT
85232020-03-31 Joel Jones <joelkevinjones@gmail.com>
8524
8525 PR tui/25597:
8526 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8527
af62665e
TT
85282020-03-31 Tom Tromey <tromey@adacore.com>
8529
8530 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8531 memcpy.
8532
d1a89da5
NC
85332020-03-30 Nelson Chu <nelson.chu@sifive.com>
8534
8535 * features/riscv/32bit-csr.xml: Regenerated.
8536 * features/riscv/64bit-csr.xml: Regenerated.
8537
d8af9068
TT
85382020-03-30 Tom Tromey <tromey@adacore.com>
8539
8540 * ada-valprint.c (print_variant_part): Update.
8541 * ada-lang.h (ada_which_variant_applies): Update.
8542 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8543 outer_valaddr parameters; replace with "outer" value parameter.
8544 (to_fixed_variant_branch_type): Update.
8545
227c0bf4
PFC
85462020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8547
8548 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8549 <list>. Remove inclusion of observable.h.
8550 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8551 (struct arch_lwp_info): New struct.
8552 (class ppc_linux_dreg_interface): New class.
8553 (struct ppc_linux_process_info): New struct.
8554 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8555 <low_new_clone, low_forget_process, low_prepare_to_resume>
8556 <copy_thread_dreg_state, mark_thread_stale>
8557 <mark_debug_registers_changed, register_hw_breakpoint>
8558 <clear_hw_breakpoint, register_wp, clear_wp>
8559 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8560 <num_memory_accesses, get_trigger_type>
8561 <create_watchpoint_request, hwdebug_point_cmp>
8562 <init_arch_lwp_info, get_arch_lwp_info>
8563 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8564 methods.
8565 <struct ptid_hash>: New inner struct.
8566 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8567 members.
8568 (saved_dabr_value, hwdebug_info, max_slots_number)
8569 (struct hw_break_tuple, struct thread_points, ppc_threads)
8570 (have_ptrace_hwdebug_interface)
8571 (hwdebug_find_thread_points_by_tid)
8572 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8573 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8574 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8575 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8576 use m_dreg_interface.
8577 (hwdebug_point_cmp): Change to...
8578 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8579 reference arguments instead of pointers.
8580 (ppc_linux_nat_target::ranged_break_num_registers): Use
8581 m_dreg_interface.
8582 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8583 m_dreg_interface. Call register_hw_breakpoint.
8584 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8585 m_dreg_interface. Call clear_hw_breakpoint.
8586 (get_trigger_type): Change to...
8587 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8588 comment.
8589 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8590 use m_dreg_interface. Call register_hw_breakpoint.
8591 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8592 use m_dreg_interface. Call clear_hw_breakpoint.
8593 (can_use_watchpoint_cond_accel): Change to...
8594 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8595 method. Update comment, use m_dreg_interface and
8596 m_process_info.
8597 (calculate_dvc): Change to...
8598 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8599 m_dreg_interface.
8600 (num_memory_accesses): Change to...
8601 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8602 (check_condition): Change to...
8603 (ppc_linux_nat_target::check_condition): ...this method.
8604 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8605 comment, use m_dreg_interface.
8606 (create_watchpoint_request): Change to...
8607 (ppc_linux_nat_target::create_watchpoint_request): ...this
8608 method. Use m_dreg_interface.
8609 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8610 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8611 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8612 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8613 (ppc_linux_nat_target::low_forget_process)
8614 (ppc_linux_nat_target::low_new_fork)
8615 (ppc_linux_nat_target::low_new_clone)
8616 (ppc_linux_nat_target::low_delete_thread)
8617 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8618 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8619 only call mark_thread_stale.
8620 (ppc_linux_thread_exit): Remove.
8621 (ppc_linux_nat_target::stopped_data_address): Change to...
8622 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8623 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8624 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8625 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8626 comment. Call low_stopped_data_address.
8627 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8628 m_dreg_interface.
8629 (ppc_linux_nat_target::masked_watch_num_registers): Use
8630 m_dreg_interface.
8631 (ppc_linux_nat_target::copy_thread_dreg_state)
8632 (ppc_linux_nat_target::mark_thread_stale)
8633 (ppc_linux_nat_target::mark_debug_registers_changed)
8634 (ppc_linux_nat_target::register_hw_breakpoint)
8635 (ppc_linux_nat_target::clear_hw_breakpoint)
8636 (ppc_linux_nat_target::register_wp)
8637 (ppc_linux_nat_target::clear_wp)
8638 (ppc_linux_nat_target::init_arch_lwp_info)
8639 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8640 (_initialize_ppc_linux_nat): Remove observer callback.
8641
4db10d8f
PFC
86422020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8643
8644 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8645 (ppc_linux_nat_target::auxv_parse)
8646 (ppc_linux_nat_target::read_description)
8647 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8648 Move up.
8649
1310c1b0
PFC
86502020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8651
8652 * linux-nat.h (low_new_clone): New method.
8653 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8654
69b037c3
SM
86552020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8656
8657 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8658 (dbx_expand_psymtab): ... this.
8659 (start_psymtab): Update.
8660 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8661 (mdebug_expand_psymtab): ... this.
8662 (parse_partial_symbols): Update.
8663 (new_psymtab): Update.
8664 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8665 (xcoff_expand_psymtab): ... this.
8666 (xcoff_start_psymtab): Update.
8667
48993951
SM
86682020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8669
8670 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8671 <expand_dependencies>: ... this.
8672 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8673 (partial_symtab::expand_dependencies): ... this.
8674 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8675 Update.
8676 (dwarf2_psymtab::expand_psymtab): Update.
8677 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8678 * mdebugread.c (psymtab_to_symtab_1): Update.
8679 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8680
3ad83046
SM
86812020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8682
8683 * psympriv.h (discard_psymtab): Remove.
8684 * dbxread.c (dbx_end_psymtab): Update.
8685 * xcoffread.c (xcoff_end_psymtab): Update.
8686
4d1b9ab6
TT
86872020-03-28 Tom Tromey <tom@tromey.com>
8688
8689 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8690 comment.
8691
f1749218
TT
86922020-03-28 Tom Tromey <tom@tromey.com>
8693
8694 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8695
ebea7626
HD
86962020-03-27 Hannes Domani <ssbssa@yahoo.de>
8697
8698 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8699
a879b4d5
JB
87002020-03-26 John Baldwin <jhb@FreeBSD.org>
8701
8702 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8703
0826b30a
TT
87042020-03-26 Tom Tromey <tom@tromey.com>
8705
8706 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8707 (mark_common_block_symbol_computed, read_tag_string_type)
8708 (attr_to_dynamic_prop, read_subrange_type): Update.
8709 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8710 to be methods on struct attribute.
8711 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8712 (read_call_site_scope, partial_die_info::read)
8713 (partial_die_info::read, lookup_die_type, follow_die_ref):
8714 Update.
8715 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8716 from dwarf2_get_ref_die_offset.
8717 (attribute::constant_value): New method, from
8718 dwarf2_get_attr_constant_value.
8719 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8720 Declare method.
8721 <constant_value>: New method.
8722
2b2558bf
TT
87232020-03-26 Tom Tromey <tom@tromey.com>
8724
8725 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8726 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8727 (dwarf_type_encoding_name): Move to stringify.c.
8728 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8729 * dwarf2/stringify.c: New file.
8730 * dwarf2/stringify.h: New file.
8731
eeb64781
TT
87322020-03-26 Tom Tromey <tom@tromey.com>
8733
8734 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8735 Rewrite.
8736
a39fdb41
TT
87372020-03-26 Tom Tromey <tom@tromey.com>
8738
8739 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8740 methods.
8741 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8742 (lookup_ranges_base): Likewise.
8743 (read_cutu_die_from_dwo, read_full_die_1): Update.
8744
436c571c
TT
87452020-03-26 Tom Tromey <tom@tromey.com>
8746
8747 * dwarf2/read.c (read_import_statement, read_file_scope)
8748 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8749 (read_lexical_block_scope, read_call_site_scope)
8750 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8751 (handle_struct_member_die, process_structure_scope)
8752 (update_enumeration_type_from_children)
8753 (process_enumeration_scope, read_array_type, read_common_block)
8754 (read_namespace, read_module, read_subroutine_type): Update.
8755 (sibling_die): Remove.
8756
052c8bb8
TT
87572020-03-26 Tom Tromey <tom@tromey.com>
8758
8759 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8760 (build_type_psymtabs_reader, read_structure_type)
8761 (read_enumeration_type, read_full_die_1): Update.
8762 (dwarf2_attr_no_follow): Move to die.h.
8763 * dwarf2/die.h (struct die_info) <attr>: New method.
8764
2b24b6e4
TT
87652020-03-26 Tom Tromey <tom@tromey.com>
8766
8767 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8768 <base_address>: Now an optional.
8769 (dwarf2_find_base_address, dwarf2_rnglists_process)
8770 (dwarf2_ranges_process, fill_in_loclist_baton)
8771 (dwarf2_symbol_mark_computed): Update.
8772
c2d50fd0
TT
87732020-03-26 Tom Tromey <tom@tromey.com>
8774
8775 * dwarf2/read.c (struct die_info): Move to die.h.
8776 * dwarf2/die.h: New file.
8777
0df7ad3a
TT
87782020-03-26 Tom Tromey <tom@tromey.com>
8779
8780 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8781 * dwarf2/read.c
8782 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8783 Move to line-header.c.
8784 (read_checked_initial_length_and_offset, read_formatted_entries):
8785 Likewise.
8786 (dwarf_decode_line_header): Split into two.
8787 * dwarf2/line-header.c
8788 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8789 Move from read.c.
8790 (read_checked_initial_length_and_offset, read_formatted_entries):
8791 Likewise.
8792 (dwarf_decode_line_header): New function, split from read.c.
8793
86c0bb4c
TT
87942020-03-26 Tom Tromey <tom@tromey.com>
8795
8796 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8797 Declare method.
8798 * dwarf2/read.c (read_attribute_value): Update.
8799 (dwarf2_per_objfile::read_line_string): Rename from
8800 read_indirect_line_string.
8801 (read_formatted_entries): Update.
8802
2ef46c2f
TT
88032020-03-26 Tom Tromey <tom@tromey.com>
8804
8805 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8806 variable.
8807
4f9c1eda
TT
88082020-03-26 Tom Tromey <tom@tromey.com>
8809
8810 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8811 const.
8812 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8813 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8814 parameter const.
8815
5a0e026f
TT
88162020-03-26 Tom Tromey <tom@tromey.com>
8817
8818 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8819 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8820 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8821 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8822
8844c11b
TT
88232020-03-26 Tom Tromey <tom@tromey.com>
8824
8825 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8826 file_names_size, file_full_name, file_file_name>: Use const.
8827 <file_name_at, file_names>: Add const overload.
8828 * dwarf2/line-header.c (line_header::file_file_name)
8829 (line_header::file_full_name): Update.
8830
c90ec28a
TT
88312020-03-26 Tom Tromey <tom@tromey.com>
8832
8833 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8834 (macro_start_file, consume_improper_spaces)
8835 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8836 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8837 (dwarf_decode_macros): Move to macro.c.
8838 * dwarf2/macro.c: New file.
8839 * dwarf2/macro.h: New file.
8840 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8841
4f44ae6c
TT
88422020-03-26 Tom Tromey <tom@tromey.com>
8843
8844 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8845 method.
8846 * dwarf2/section.c: New method. From
8847 read_indirect_string_at_offset_from.
8848 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8849 (read_indirect_string_at_offset_from): Move to section.c.
8850 (read_indirect_string_at_offset): Rewrite.
8851 (read_indirect_line_string_at_offset): Remove.
8852 (read_indirect_string, read_indirect_line_string)
8853 (dwarf_decode_macro_bytes): Update.
8854
a0194fa8
TT
88552020-03-26 Tom Tromey <tom@tromey.com>
8856
8857 * dwarf2/section.h (struct dwarf2_section_info)
8858 <overload_complaint>: Declare.
8859 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8860 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8861 Rename from dwarf2_section_buffer_overflow_complaint.
8862 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8863 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8864
3d27bbdb
TT
88652020-03-26 Tom Tromey <tom@tromey.com>
8866
8867 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8868 Declare.
8869 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8870 Move from read.c.
8871 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8872 to section.c.
8873
9eac9650
TT
88742020-03-26 Tom Tromey <tom@tromey.com>
8875
8876 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8877
bf80d710
TT
88782020-03-26 Tom Tromey <tom@tromey.com>
8879
8880 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8881 "builder".
8882 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8883 parameter.
8884 (dwarf_decode_macros): Update.
8885
0314b390
TT
88862020-03-26 Tom Tromey <tom@tromey.com>
8887
8888 * dwarf2/read.c (read_attribute_value): Update.
8889 (read_indirect_string_from_dwz): Move to dwz.c; change into
8890 method.
8891 (dwarf_decode_macro_bytes): Update.
8892 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8893 * dwarf2/dwz.c: New file.
8894 * Makefile.in (COMMON_SFILES): Add dwz.c.
8895
9fda78b6
TT
88962020-03-26 Tom Tromey <tom@tromey.com>
8897
8898 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8899 * dwarf2/read.c: Add include.
8900 * dwarf2/index-write.c: Add include.
8901 * dwarf2/index-cache.c: Add include.
8902 * dwarf2/dwz.h: New file.
8903
33aa3c10
TT
89042020-03-25 Tom Tromey <tom@tromey.com>
8905
8906 * compile/compile-object-load.c (get_out_value_type): Mention
8907 correct symbol name in error message.
8908
d503b685
HD
89092020-03-25 Hannes Domani <ssbssa@yahoo.de>
8910
8911 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8912
7b1eff95
TV
89132020-03-25 Tom de Vries <tdevries@suse.de>
8914
8915 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8916 * symmisc.c (dump_symtab_1): Print user and includes fields.
8917 (maintenance_info_symtabs): Same.
8918
dd895392
AB
89192020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8920
8921 PR gdb/25534
8922 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8923 (riscv_regcache_cooked_write): New function.
8924 (riscv_push_dummy_call): Use new function.
8925 (riscv_return_value): Likewise.
8926
5ab2fbf1
SM
89272020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8928
8929 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8930 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8931 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8932 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8933 * infrun.c (follow_fork): Likewise.
8934 (follow_fork_inferior): Likewise.
8935 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8936 * linux-nat.h (class linux_nat_target): Likewise.
8937 * remote.c (class remote_target) <follow_fork>: Likewise.
8938 (remote_target::follow_fork): Likewise.
8939 * target-delegates.c: Re-generate.
8940 * target.c (default_follow_fork): Likewise.
8941 (target_follow_fork): Likewise.
8942 * target.h (struct target_ops) <follow_fork>: Likewise.
8943 (target_follow_fork): Likewise.
8944
a64fafb5
TV
89452020-03-24 Tom de Vries <tdevries@suse.de>
8946
8947 * psymtab.c (maintenance_info_psymtabs): Print user field.
8948
fe26d3a3
TT
89492020-03-20 Tom Tromey <tromey@adacore.com>
8950
8951 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8952 const.
8953 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8954 const.
8955
c884cc46
SM
89562020-03-20 Simon Marchi <simon.marchi@efficios.com>
8957
8958 * ptrace.m4: Don't check for ptrace declaration.
8959 * config.in: Re-generate.
8960 * configure: Re-generate.
8961 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8962 not defined.
8963
1ff700c2
KR
89642020-03-20 Kamil Rytarowski <n54@gmx.com>
8965
8966 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8967 `PTRACE_TYPE_RET'.
8968 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8969 * sparc-nat.c (gdb_ptrace): Likewise.
8970 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8971
f7d4f0b1
TT
89722020-03-20 Tom Tromey <tromey@adacore.com>
8973
8974 * c-exp.y (lex_one_token): Fix assert.
8975
f67210ff
TT
89762020-03-20 Tom Tromey <tromey@adacore.com>
8977
8978 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8979 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8980 strncpy call.
8981
1773be9e
TT
89822020-03-20 Tom Tromey <tromey@adacore.com>
8983
8984 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8985
70304be9
TT
89862020-03-20 Tom Tromey <tromey@adacore.com>
8987
8988 * ada-valprint.c (print_variant_part): Remove parameters; switch
8989 to value-based API.
8990 (print_field_values): Likewise.
8991 (ada_val_print_struct_union): Likewise.
8992 (ada_value_print_1): Update.
8993
9faa006d
KR
89942020-03-20 Kamil Rytarowski <n54@gmx.com>
8995
8996 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8997 nbsd_nat_target instead of inf_ptrace_target.
8998 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8999 nbsd_nat_target.
9000
4a90f062
KR
90012020-03-20 Kamil Rytarowski <n54@gmx.com>
9002
9003 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9004 it to the ptrace call.
9005 * (store_registers): Likewise.
9006
90072020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9008
9009 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9010 it to the ptrace call.
9011 * (store_registers): Likewise.
9012
2d07da27
LM
90132020-03-19 Luis Machado <luis.machado@linaro.org>
9014
9015 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9016 valid, fetch vg value from ptrace.
9017
f09db380
KR
90182020-03-19 Kamil Rytarowski <n54@gmx.com>
9019 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9020 * inf-ptrace.c: Likewise.
9021 * (gdb_ptrace): Add.
9022 * (inf_ptrace_target::resume): Update.
9023 * (inf_ptrace_target::xfer_partial): Likewise.
9024 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9025 * (inf_ptrace_peek_poke): Update.
9026
fcc7376e
KR
90272020-03-19 Kamil Rytarowski <n54@gmx.com>
9028
9029 * x86-bsd-nat.c (gdb_ptrace): New.
9030 * (x86bsd_dr_set): Add new argument `ptid'.
9031 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9032 x86bsd_dr_set_addr): Update.
9033
cada5fc9
AB
90342020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9035
9036 * remote.c (remote_target::process_stop_reply): Handle events for
9037 all threads differently.
9038
19a2740f
AB
90392020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9040
9041 * completer.c (completion_tracker::remove_completion): Define new
9042 function.
9043 * completer.h (completion_tracker::remove_completion): Declare new
9044 function.
9045 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9046 when adding a C++ function symbol.
9047
724fd9ba
AB
90482020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9049
9050 * completer.c (completion_tracker::completion_hash_entry): Define
9051 new class.
9052 (advance_to_filename_complete_word_point): Call
9053 recompute_lowest_common_denominator.
9054 (completion_tracker::completion_tracker): Call discard_completions
9055 to setup the hash table.
9056 (completion_tracker::discard_completions): Allow for being called
9057 from the constructor, pass new equal function, and element deleter
9058 when constructing the hash table. Initialise new class member
9059 variables.
9060 (completion_tracker::maybe_add_completion): Remove use of
9061 m_entries_vec, and store more information into m_entries_hash.
9062 (completion_tracker::recompute_lcd_visitor): New function, most
9063 content taken from...
9064 (completion_tracker::recompute_lowest_common_denominator):
9065 ...here, this now just visits each item in the hash calling the
9066 above visitor.
9067 (completion_tracker::build_completion_result): Remove use of
9068 m_entries_vec, call recompute_lowest_common_denominator.
9069 * completer.h (completion_tracker::have_completions): Remove use
9070 of m_entries_vec.
9071 (completion_tracker::completion_hash_entry): Declare new class.
9072 (completion_tracker::recompute_lowest_common_denominator): Change
9073 function signature.
9074 (completion_tracker::recompute_lcd_visitor): Declare new function.
9075 (completion_tracker::m_entries_vec): Delete.
9076 (completion_tracker::m_entries_hash): Initialize to NULL.
9077 (completion_tracker::m_lowest_common_denominator_valid): New
9078 member variable.
9079 (completion_tracker::m_lowest_common_denominator_max_length): New
9080 member variable.
9081
5a82b8a1
KR
90822020-03-17 Kamil Rytarowski <n54@gmx.com>
9083
9084 * regformats/regdef.h: Put reg in gdb namespace.
9085
fb516a69
KR
90862020-03-17 Kamil Rytarowski <n54@gmx.com>
9087
9088 * i386-bsd-nat.c (gdb_ptrace): New.
9089 * (i386bsd_fetch_inferior_registers,
9090 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9091 * (i386bsd_fetch_inferior_registers,
9092 i386bsd_store_inferior_registers) Use gdb_ptrace.
9093
1c0aa1fb
KR
90942020-03-17 Kamil Rytarowski <n54@gmx.com>
9095
9096 * amd64-bsd-nat.c (gdb_ptrace): New.
9097 * (amd64bsd_fetch_inferior_registers,
9098 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9099 * (amd64bsd_fetch_inferior_registers,
9100 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9101
5ccd2fb7
KR
91022020-03-17 Kamil Rytarowski <n54@gmx.com>
9103
9104 * user-regs.c (user_reg::read): Rename to...
9105 (user_reg::xread): ...this.
9106 * (append_user_reg): Rename argument `read' to `xread'.
9107 * (user_reg_add_builtin): Likewise.
9108 * (user_reg_add): Likewise.
9109 * (value_of_user_reg): Likewise.
9110
2108a63a
KR
91112020-03-17 Kamil Rytarowski <n54@gmx.com>
9112
9113 * sparc-nat.c (gdb_ptrace): New.
9114 * sparc-nat.c (sparc_fetch_inferior_registers)
9115 (sparc_store_inferior_registers) Remove obsolete comment.
9116 * sparc-nat.c (sparc_fetch_inferior_registers)
9117 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9118 * sparc-nat.c (sparc_fetch_inferior_registers)
9119 (sparc_store_inferior_registers) Use gdb_ptrace.
9120
a225c9a8
KR
91212020-03-17 Kamil Rytarowski <n54@gmx.com>
9122
9123 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9124 it to the ptrace call.
9125 * sh-nbsd-nat.c (store_registers): Likewise.
9126
98097623
KR
91272020-03-17 Kamil Rytarowski <n54@gmx.com>
9128
9129 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9130 nbsd_nat_target instead of inf_ptrace_target.
9131 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9132 nbsd_nat_target.
9133
9e38d619
KR
91342020-03-17 Kamil Rytarowski <n54@gmx.com>
9135
9136 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9137
a2ecbe9f
KR
91382020-03-17 Kamil Rytarowski <n54@gmx.com>
9139
9140 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9141 <sys/sysctl.h>.
9142 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9143
58990295
TV
91442020-03-17 Tom de Vries <tdevries@suse.de>
9145
9146 PR gdb/23710
9147 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9148 fields.
9149 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9150 fields.
9151 (process_imported_unit_die): Skip import of c++ CUs.
9152
771dd3a8
TT
91532020-03-16 Tom Tromey <tom@tromey.com>
9154
9155 * p-valprint.c (pascal_object_print_value): Initialize
9156 base_value.
9157
817a7585
AK
91582020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9159 Shahab Vahedi <shahab@synopsys.com>
9160
9161 * Makefile.in: Add arch/arc.o
9162 * configure.tgt: Likewise.
9163 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9164 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9165 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9166 * arc-tdep.h (arc_read_description): Add proto type.
9167 * arch/arc.c: New file.
9168 * arch/arc.h: Likewise.
9169 * features/Makefile: Replace old target descriptions with new.
9170 * features/arc-arcompact.c: Remove.
9171 * features/arc-arcompact.xml: Likewise.
9172 * features/arc-v2.c: Likewise
9173 * features/arc-v2.xml: Likewise
9174 * features/arc/aux-arcompact.xml: New file.
9175 * features/arc/aux-v2.xml: Likewise.
9176 * features/arc/core-arcompact.xml: Likewise.
9177 * features/arc/core-v2.xml: Likewise.
9178 * features/arc/aux-arcompact.c: Generate.
9179 * features/arc/aux-v2.c: Likewise.
9180 * features/arc/core-arcompact.c: Likewise.
9181 * features/arc/core-v2.c: Likewise.
9182 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9183
67430cd0
TT
91842020-03-16 Tom Tromey <tromey@adacore.com>
9185
9186 PR gdb/25663:
9187 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9188 putting value into bcache.
9189
30efb6c7
SM
91902020-03-16 Simon Marchi <simon.marchi@efficios.com>
9191
9192 PR gdb/21500
9193 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9194 to...
9195 (amd64_windows_init_abi_common): ... this. Don't set size of
9196 long type.
9197 (amd64_windows_init_abi): New function.
9198 (amd64_cygwin_init_abi): New function.
9199 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9200 the Cygwin OS ABI.
9201 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9202 comment.
9203
8db52437
SM
92042020-03-16 Simon Marchi <simon.marchi@efficios.com>
9205
9206 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9207 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9208 (pe_import_directory_entry): New struct type.
9209 (is_linked_with_cygwin_dll): New function.
9210 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9211 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9212 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9213
5982a56a
SM
92142020-03-16 Simon Marchi <simon.marchi@efficios.com>
9215
9216 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9217 i386_cygwin_core_osabi_sniffer.
9218
7a1998df
SM
92192020-03-16 Simon Marchi <simon.marchi@efficios.com>
9220
9221 * i386-cygwin-tdep.c: Rename to...
9222 * i386-windows-tdep.c: ... this.
9223 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9224 i386-windows-tdep.c.
9225 * configure.tgt: Likewise.
9226
053205cc
SM
92272020-03-16 Simon Marchi <simon.marchi@efficios.com>
9228
9229 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9230 * osabi.c (gdb_osabi_names): Add "Windows".
9231 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9232 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9233 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9234 i386_cygwin_osabi_sniffer.
9235 (_initialize_i386_cygwin_tdep): Register OS ABI
9236 GDB_OSABI_WINDOWS for i386.
9237 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9238 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9239 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9240 for x86-64.
9241 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9242 when the target matches '*-*-mingw*'.
9243
fe4b2ee6
SM
92442020-03-16 Simon Marchi <simon.marchi@efficios.com>
9245
9246 * defs.h (enum gdb_osabi): Move to...
9247 * osabi.h (enum gdb_osabi): ... here.
9248 * gdbarch.sh: Include osabi.h in gdbarch.h.
9249 * gdbarch.h: Re-generate.
9250
cb9b645d
SM
92512020-03-16 Simon Marchi <simon.marchi@efficios.com>
9252
9253 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9254 function.
9255 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9256
3293bbaf
TT
92572020-03-14 Tom Tromey <tom@tromey.com>
9258
9259 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9260 for C++.
9261 (c_type_print_modifier): Likewise. Add "language" parameter.
9262 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9263 (c_type_print_base_1): Update.
9264 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9265 constants.
9266 * type-stack.c (type_stack::insert): Handle tp_atomic and
9267 tp_restrict.
9268 (type_stack::follow_type_instance_flags): Likewise.
9269 (type_stack::follow_types): Likewise. Merge type-following code.
9270 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9271 (space_identifier, cv_with_space_id)
9272 (const_or_volatile_or_space_identifier_noopt)
9273 (const_or_volatile_or_space_identifier): Remove.
9274 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9275 rules.
9276 (ptr_operator, typebase): Update.
9277 (enum token_flag) <FLAG_C>: New constant.
9278 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9279 "_Atomic".
9280 (lex_one_token): Handle FLAG_C.
9281
154151a6
KR
92822020-03-14 Kamil Rytarowski <n54@gmx.com>
9283
9284 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9285 it to the ptrace call.
9286 * m68k-bsd-nat.c (store_registers): Likewise.
9287
bc107784
KR
92882020-03-14 Kamil Rytarowski <n54@gmx.com>
9289
9290 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9291 gdb_byte *.
9292 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9293 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9294 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9295
01a80117
KR
92962020-03-14 Kamil Rytarowski <n54@gmx.com>
9297
9298 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9299 nbsd_nat_target instead of inf_ptrace_target.
9300 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9301 nbsd_nat_target.
9302
f90280ca
KR
93032020-03-14 Kamil Rytarowski <n54@gmx.com>
9304
9305 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9306 register_t.
9307
6def66f1
KR
93082020-03-14 Kamil Rytarowski <n54@gmx.com>
9309
9310 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9311 it to the ptrace call.
9312 * alpha-bsd-nat.c (store_registers): Likewise.
9313
66eaca97
KR
93142020-03-14 Kamil Rytarowski <n54@gmx.com>
9315
9316 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9317 includes.
9318 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9319 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9320 fill_fpregset): Likewise.
9321
4fed520b
KR
93222020-03-14 Kamil Rytarowski <n54@gmx.com>
9323
9324 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9325 nbsd_nat_target instead of inf_ptrace_target.
9326 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9327 nbsd_nat_target.
9328
2190cf06
KR
93292020-03-14 Kamil Rytarowski <n54@gmx.com>
9330
9331 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9332 register_t.
9333
75c56d3d
KR
93342020-03-14 Kamil Rytarowski <n54@gmx.com>
9335
9336 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9337 it to the ptrace call.
9338 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9339 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9340 * arm-nbsd-nat.c (store_register): Likewise.
9341 * arm-nbsd-nat.c (store_regs): Likewise.
9342 * arm-nbsd-nat.c (store_fp_register): Likewise.
9343 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9344
6018d381
KR
93452020-03-14 Kamil Rytarowski <n54@gmx.com>
9346
9347 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9348 nbsd_nat_target instead of inf_ptrace_target.
9349 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9350 nbsd_nat_target.
9351
013f99f0
KR
93522020-03-14 Kamil Rytarowski <n54@gmx.com>
9353
9354 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9355 it to the ptrace call.
9356 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9357
12753073
KR
93582020-03-14 Kamil Rytarowski <n54@gmx.com>
9359
6227b330
KR
9360 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9361 it to the ptrace call.
9362 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9363
93642020-03-14 Kamil Rytarowski <n54@gmx.com>
9365
9366 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9367 gdb_byte *.
12753073
KR
9368 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9369
d5be5fa4
KR
93702020-03-14 Kamil Rytarowski <n54@gmx.com>
9371
9372 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9373 instead of inf_ptrace_target.
9374 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9375 nbsd_nat_target.
9376
8110f842
KR
93772020-03-14 Kamil Rytarowski <n54@gmx.com>
9378
9379 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9380 register_t.
9381
52feded7
KR
93822020-03-14 Kamil Rytarowski <n54@gmx.com>
9383
9384 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9385 register_t.
9386
25567eee
KR
93872020-03-14 Kamil Rytarowski <n54@gmx.com>
9388
9389 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9390 register_t.
9391
426a9c18
TT
93922020-03-13 Tom Tromey <tom@tromey.com>
9393
9394 * value.h (val_print): Don't declare.
9395 * valprint.h (val_print_array_elements)
9396 (val_print_scalar_formatted, generic_val_print): Don't declare.
9397 * valprint.c (generic_val_print_array): Take a struct value.
9398 (generic_val_print_ptr, generic_val_print_memberptr)
9399 (generic_val_print_bool, generic_val_print_int)
9400 (generic_val_print_char, generic_val_print_complex)
9401 (generic_val_print): Remove.
9402 (generic_value_print): Update.
9403 (do_val_print): Remove unused parameters. Don't call
9404 la_val_print.
9405 (val_print): Remove.
9406 (common_val_print): Update. Don't call value_check_printable.
9407 (val_print_scalar_formatted, val_print_array_elements): Remove.
9408 * rust-lang.c (rust_val_print): Remove.
9409 (rust_language_defn): Update.
9410 * p-valprint.c (pascal_val_print): Remove.
9411 (pascal_value_print_inner): Update.
9412 (pascal_object_print_val_fields, pascal_object_print_val):
9413 Remove.
9414 (pascal_object_print_static_field): Update.
9415 * p-lang.h (pascal_val_print): Don't declare.
9416 * p-lang.c (pascal_language_defn): Update.
9417 * opencl-lang.c (opencl_language_defn): Update.
9418 * objc-lang.c (objc_language_defn): Update.
9419 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9420 * m2-lang.h (m2_val_print): Don't declare.
9421 * m2-lang.c (m2_language_defn): Update.
9422 * language.h (struct language_defn) <la_val_print>: Remove.
9423 * language.c (unk_lang_value_print_inner): Rename. Change
9424 argument types.
9425 (unknown_language_defn, auto_language_defn): Update.
9426 * go-valprint.c (go_val_print): Remove.
9427 * go-lang.h (go_val_print): Don't declare.
9428 * go-lang.c (go_language_defn): Update.
9429 * f-valprint.c (f_val_print): Remove.
9430 * f-lang.h (f_value_print): Don't declare.
9431 * f-lang.c (f_language_defn): Update.
9432 * d-valprint.c (d_val_print): Remove.
9433 * d-lang.h (d_value_print): Don't declare.
9434 * d-lang.c (d_language_defn): Update.
9435 * cp-valprint.c (cp_print_value_fields)
9436 (cp_print_value_fields_rtti, cp_print_value): Remove.
9437 (cp_print_static_field): Update.
9438 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9439 (c_val_print_struct, c_val_print_union, c_val_print_int)
9440 (c_val_print_memberptr, c_val_print): Remove.
9441 * c-lang.h (c_val_print_array, cp_print_value_fields)
9442 (cp_print_value_fields_rtti): Don't declare.
9443 * c-lang.c (c_language_defn, cplus_language_defn)
9444 (asm_language_defn, minimal_language_defn): Update.
9445 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9446 (ada_val_print_enum): Take a struct value.
9447 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9448 (ada_val_print): Remove.
9449 (ada_value_print_1): Update.
9450 (printable_val_type): Remove.
9451 * ada-lang.h (ada_val_print): Don't declare.
9452 * ada-lang.c (ada_language_defn): Update.
9453
42331a1e
TT
94542020-03-13 Tom Tromey <tom@tromey.com>
9455
9456 * valprint.c (do_val_print): Update.
9457 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9458 a struct value.
9459 (value_to_value_object_no_release): Declare.
9460 * python/py-value.c (value_to_value_object_no_release): New
9461 function.
9462 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9463 struct value.
9464 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9465 function.
9466 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9467 a struct value.
9468 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9469 Declare.
9470 (gdbscm_apply_val_pretty_printer): Take a struct value.
9471 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9472 value.
9473 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9474 value.
9475 * extension-priv.h (struct extension_language_ops)
9476 <apply_val_pretty_printer>: Take a struct value.
9477 * cp-valprint.c (cp_print_value): Create a struct value.
9478 (cp_print_value): Update.
9479
3a916a97
TT
94802020-03-13 Tom Tromey <tom@tromey.com>
9481
9482 * ada-valprint.c (print_field_values): Call common_val_print.
9483
b59eac37
TT
94842020-03-13 Tom Tromey <tom@tromey.com>
9485
9486 * ada-valprint.c (val_print_packed_array_elements): Remove
9487 bitoffset and val parameters. Call common_val_print.
9488 (ada_val_print_string): Remove offset, address, and original_value
9489 parameters.
9490 (ada_val_print_array): Update.
9491 (ada_value_print_array): New function.
9492 (ada_value_print_1): Call it.
9493
03371129
TT
94942020-03-13 Tom Tromey <tom@tromey.com>
9495
9496 * ada-valprint.c (ada_value_print): Use common_val_print.
9497
2e088f8b
TT
94982020-03-13 Tom Tromey <tom@tromey.com>
9499
9500 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9501
39ef85a8
TT
95022020-03-13 Tom Tromey <tom@tromey.com>
9503
9504 * ada-valprint.c (ada_value_print_num): New function.
9505 (ada_value_print_1): Use it.
9506
b9fa6e07
TT
95072020-03-13 Tom Tromey <tom@tromey.com>
9508
9509 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9510
416595d6
TT
95112020-03-13 Tom Tromey <tom@tromey.com>
9512
9513 * ada-valprint.c (ada_value_print_ptr): New function.
9514 (ada_value_print_1): Use it.
9515
5b5e15ec
TT
95162020-03-13 Tom Tromey <tom@tromey.com>
9517
9518 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9519 call common_val_print.
9520 (ada_val_print_1): Update.
9521 (ada_value_print_1): New function.
9522 (ada_value_print_inner): Rewrite.
9523
fbf54e75
TT
95242020-03-13 Tom Tromey <tom@tromey.com>
9525
9526 * cp-valprint.c (cp_print_value_fields): Update.
9527 (cp_print_value): New function.
9528
64b653ca
TT
95292020-03-13 Tom Tromey <tom@tromey.com>
9530
9531 * m2-valprint.c (m2_value_print_inner): Use
9532 cp_print_value_fields.
9533 * cp-valprint.c (cp_print_value_fields): New function.
9534 * c-valprint.c (c_value_print_struct): New function.
9535 (c_value_print_inner): Use c_value_print_struct.
9536 * c-lang.h (cp_print_value_fields): Declare.
9537
6999f067
TT
95382020-03-13 Tom Tromey <tom@tromey.com>
9539
9540 * c-valprint.c (c_value_print_array): New function.
9541 (c_value_print_inner): Use it.
9542
ce80b8bd
TT
95432020-03-13 Tom Tromey <tom@tromey.com>
9544
9545 * c-valprint.c (c_value_print_memberptr): New function.
9546 (c_value_print_inner): Use it.
9547
2faac269
TT
95482020-03-13 Tom Tromey <tom@tromey.com>
9549
9550 * c-valprint.c (c_value_print_int): New function.
9551 (c_value_print_inner): Use it.
9552
da3e2c29
TT
95532020-03-13 Tom Tromey <tom@tromey.com>
9554
9555 * c-valprint.c (c_value_print_ptr): New function.
9556 (c_value_print_inner): Use it.
9557
50836231
TT
95582020-03-13 Tom Tromey <tom@tromey.com>
9559
9560 * c-valprint.c (c_value_print_inner): Rewrite.
9561
4f412b6e
TT
95622020-03-13 Tom Tromey <tom@tromey.com>
9563
9564 * valprint.c (generic_value_print_complex): New function.
9565 (generic_value_print): Use it.
9566
f5354008
TT
95672020-03-13 Tom Tromey <tom@tromey.com>
9568
9569 * valprint.c (generic_val_print_float): Don't call
9570 val_print_scalar_formatted.
9571 (generic_val_print, generic_value_print): Update.
9572
3eec3b05
TT
95732020-03-13 Tom Tromey <tom@tromey.com>
9574
9575 * valprint.c (generic_value_print_char): New function
9576 (generic_value_print): Use it.
9577
fdddfccb
TT
95782020-03-13 Tom Tromey <tom@tromey.com>
9579
9580 * valprint.c (generic_value_print_int): New function.
9581 (generic_value_print): Use it.
9582
6dde7521
TT
95832020-03-13 Tom Tromey <tom@tromey.com>
9584
9585 * valprint.c (generic_value_print_bool): New function.
9586 (generic_value_print): Use it.
9587
4112d2e6
TT
95882020-03-13 Tom Tromey <tom@tromey.com>
9589
9590 * valprint.c (generic_val_print_func): Simplify.
9591 (generic_val_print, generic_value_print): Update.
9592
65786af6
TT
95932020-03-13 Tom Tromey <tom@tromey.com>
9594
9595 * valprint.c (generic_val_print_flags): Remove.
9596 (generic_val_print, generic_value_print): Update.
9597 (val_print_type_code_flags): Add original_value parameter.
9598
40f3ce18
TT
95992020-03-13 Tom Tromey <tom@tromey.com>
9600
9601 * valprint.c (generic_val_print): Update.
9602 (generic_value_print): Update.
9603 * valprint.c (generic_val_print_enum): Don't call
9604 val_print_scalar_formatted.
9605
2a5b130b
TT
96062020-03-13 Tom Tromey <tom@tromey.com>
9607
9608 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9609 * valprint.c (generic_value_print_ptr): New function.
9610
abc66ce9
TT
96112020-03-13 Tom Tromey <tom@tromey.com>
9612
9613 * valprint.c (generic_value_print): Rewrite.
9614
07a32858
TT
96152020-03-13 Tom Tromey <tom@tromey.com>
9616
9617 * p-valprint.c (pascal_object_print_value_fields)
9618 (pascal_object_print_value): New functions.
9619
64d64d3a
TT
96202020-03-13 Tom Tromey <tom@tromey.com>
9621
9622 * p-valprint.c (pascal_value_print_inner): Rewrite.
9623
6a95a1f5
TT
96242020-03-13 Tom Tromey <tom@tromey.com>
9625
9626 * f-valprint.c (f_value_print_innner): Rewrite.
9627
59fcdac6
TT
96282020-03-13 Tom Tromey <tom@tromey.com>
9629
9630 * m2-valprint.c (m2_print_unbounded_array): New overload.
9631 (m2_print_unbounded_array): Update.
9632 (m2_print_array_contents): Take a struct value.
9633 (m2_value_print_inner): Rewrite.
9634
d133c3e1
TT
96352020-03-13 Tom Tromey <tom@tromey.com>
9636
9637 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9638 (d_value_print_inner): New function.
9639 * d-lang.h (d_value_print_inner): Declare.
9640 * d-lang.c (d_language_defn): Use d_value_print_inner.
9641
23b0f06b
TT
96422020-03-13 Tom Tromey <tom@tromey.com>
9643
9644 * go-valprint.c (go_value_print_inner): New function.
9645 * go-lang.h (go_value_print_inner): Declare.
9646 * go-lang.c (go_language_defn): Use go_value_print_inner.
9647
5f56f7cb
TT
96482020-03-13 Tom Tromey <tom@tromey.com>
9649
9650 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9651 API.
9652 (rust_val_print): Rewrite.
9653 (rust_value_print_inner): New function, from rust_val_print.
9654 (rust_language_defn): Use rust_value_print_inner.
9655
26792ee0
TT
96562020-03-13 Tom Tromey <tom@tromey.com>
9657
9658 * ada-valprint.c (ada_value_print_inner): New function.
9659 * ada-lang.h (ada_value_print_inner): Declare.
9660 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9661
24051bbe
TT
96622020-03-13 Tom Tromey <tom@tromey.com>
9663
9664 * f-valprint.c (f_value_print_innner): New function.
9665 * f-lang.h (f_value_print_innner): Declare.
9666 * f-lang.c (f_language_defn): Use f_value_print_innner.
9667
c0941be6
TT
96682020-03-13 Tom Tromey <tom@tromey.com>
9669
9670 * p-valprint.c (pascal_value_print_inner): New function.
9671 * p-lang.h (pascal_value_print_inner): Declare.
9672 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9673
62c4663d
TT
96742020-03-13 Tom Tromey <tom@tromey.com>
9675
9676 * m2-valprint.c (m2_value_print_inner): New function.
9677 * m2-lang.h (m2_value_print_inner): Declare.
9678 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9679
62182190
TT
96802020-03-13 Tom Tromey <tom@tromey.com>
9681
9682 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9683 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9684 * c-valprint.c (c_value_print_inner): New function.
9685 * c-lang.h (c_value_print_inner): Declare.
9686 * c-lang.c (c_language_defn, cplus_language_defn)
9687 (asm_language_defn, minimal_language_defn): Use
9688 c_value_print_inner.
9689
1e592a8a
TT
96902020-03-13 Tom Tromey <tom@tromey.com>
9691
9692 * p-valprint.c (pascal_object_print_value_fields): Now static.
9693 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9694
7fe471e9
TT
96952020-03-13 Tom Tromey <tom@tromey.com>
9696
9697 * c-valprint.c (c_val_print_array): Simplify.
9698
d121c6ce
TT
96992020-03-13 Tom Tromey <tom@tromey.com>
9700
9701 * valprint.c (value_print_array_elements): New function.
9702 * valprint.h (value_print_array_elements): Declare.
9703
4dba70ee
TT
97042020-03-13 Tom Tromey <tom@tromey.com>
9705
9706 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9707 * mips-tdep.c (mips_print_register): Use
9708 value_print_scalar_formatted.
9709
4f9ae810
TT
97102020-03-13 Tom Tromey <tom@tromey.com>
9711
9712 * valprint.h (value_print_scalar_formatted): Declare.
9713 * valprint.c (value_print_scalar_formatted): New function.
9714
156bfec9
TT
97152020-03-13 Tom Tromey <tom@tromey.com>
9716
9717 * valprint.h (generic_value_print): Declare.
9718 * valprint.c (generic_value_print): New function.
9719
2b4e573d
TT
97202020-03-13 Tom Tromey <tom@tromey.com>
9721
9722 * valprint.c (do_val_print): Call la_value_print_inner, if
9723 available.
9724 * rust-lang.c (rust_language_defn): Update.
9725 * p-lang.c (pascal_language_defn): Update.
9726 * opencl-lang.c (opencl_language_defn): Update.
9727 * objc-lang.c (objc_language_defn): Update.
9728 * m2-lang.c (m2_language_defn): Update.
9729 * language.h (struct language_defn) <la_value_print_inner>: New
9730 member.
9731 * language.c (unknown_language_defn, auto_language_defn): Update.
9732 * go-lang.c (go_language_defn): Update.
9733 * f-lang.c (f_language_defn): Update.
9734 * d-lang.c (d_language_defn): Update.
9735 * c-lang.c (c_language_defn, cplus_language_defn)
9736 (asm_language_defn, minimal_language_defn): Update.
9737 * ada-lang.c (ada_language_defn): Update.
9738
a1f6a07c
TT
97392020-03-13 Tom Tromey <tom@tromey.com>
9740
9741 * c-valprint.c (c_value_print): Use common_val_print.
9742
410cf315
TT
97432020-03-13 Tom Tromey <tom@tromey.com>
9744
9745 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9746
72a45c93
TT
97472020-03-13 Tom Tromey <tom@tromey.com>
9748
9749 * f-valprint.c (f77_print_array_1, f_val_print): Use
9750 common_val_print.
9751
040f66bd
TT
97522020-03-13 Tom Tromey <tom@tromey.com>
9753
9754 * riscv-tdep.c (riscv_print_one_register_info): Use
9755 common_val_print.
9756
a6e05a6c
TT
97572020-03-13 Tom Tromey <tom@tromey.com>
9758
9759 * mi/mi-main.c (output_register): Use common_val_print.
9760
3444c526
TT
97612020-03-13 Tom Tromey <tom@tromey.com>
9762
9763 * infcmd.c (default_print_one_register_info): Use
9764 common_val_print.
9765
c2a44efe
TT
97662020-03-13 Tom Tromey <tom@tromey.com>
9767
9768 * valprint.h (common_val_print_checked): Declare.
9769 * valprint.c (common_val_print_checked): New function.
9770 * stack.c (print_frame_arg): Use common_val_print_checked.
9771
b0c26e99
TT
97722020-03-13 Tom Tromey <tom@tromey.com>
9773
9774 * valprint.c (do_val_print): New function, from val_print.
9775 (val_print): Use do_val_print.
9776 (common_val_print): Use do_val_print.
9777
ce3acbe9
TT
97782020-03-13 Tom Tromey <tom@tromey.com>
9779
9780 * valprint.c (value_print): Use scoped_value_mark.
9781
96c7f873
TV
97822020-03-13 Tom de Vries <tdevries@suse.de>
9783
9784 PR symtab/25646
9785 * psymtab.c (partial_symtab::partial_symtab): Don't set
9786 globals_offset and statics_offset. Push element onto
9787 current_global_psymbols and current_static_psymbols stacks.
9788 (concat): New function.
9789 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9790 element from current_global_psymbols and current_static_psymbols
9791 stacks. Concat popped elements to global_psymbols and
9792 static_symbols.
9793 (add_psymbol_to_list): Use current_global_psymbols and
9794 current_static_psymbols stacks.
9795 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9796 current_static_psymbols fields.
9797
6ba0a321
CB
97982020-03-12 Christian Biesinger <cbiesinger@google.com>
9799
9800 * corelow.c (sniff_core_bfd): Remove.
9801 (class core_target) <m_core_vec>: Remove.
9802 (core_target::core_target): Update.
9803 (core_file_fns): Remove.
9804 (deprecated_add_core_fns): Remove.
9805 (default_core_sniffer): Remove.
9806 (sniff_core_bfd): Remove.
9807 (default_check_format): Remove.
9808 (gdb_check_format): Remove.
9809 (core_target_open): Update.
9810 (core_target::get_core_register_section): Update.
9811 (get_core_registers_cb): Update.
9812 (core_target::fetch_registers): Update.
9813 * gdbcore.h (struct core_fns): Remove.
9814 (deprecated_add_core_fns): Remove.
9815 (default_core_sniffer): Remove.
9816 (default_check_format): Remove.
9817
227031b2
TT
98182020-03-12 Tom Tromey <tom@tromey.com>
9819
9820 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9821 CORE_ADDR.
9822 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9823
53807e9f
TT
98242020-03-12 Tom Tromey <tom@tromey.com>
9825
9826 * remote.c (remote_target::download_tracepoint)
9827 (remote_target::enable_tracepoint)
9828 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9829 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9830 sprintf_vma.
9831
64f25102
TT
98322020-03-12 Tom Tromey <tom@tromey.com>
9833
9834 * symfile-mem.c: Update CORE_ADDR size assert.
9835
272cd5a3
SM
98362020-03-12 Simon Marchi <simon.marchi@efficios.com>
9837
9838 * selftest.m4: Move to gdbsupport/.
9839 * acinclude.m4: Update path to selftest.m4.
9840
74cd3f9d
SM
98412020-03-12 Simon Marchi <simon.marchi@efficios.com>
9842
9843 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9844 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9845 gdbarch-selfselftests.c and selftest-arch.c.
9846 (SUBDIR_UNITTESTS_OBS): Rename to...
9847 (SELFTESTS_OBS): ... this.
9848 (COMMON_SFILES): Remove disasm-selftests.c and
9849 gdbarch-selftests.c.
9850 * configure.ac: Don't add selftest-arch.{c,o} to
9851 CONFIG_{SRCS,OBS}.
9852 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9853 preprocessor conditions.
9854
db6878ac
SM
98552020-03-12 Simon Marchi <simon.marchi@efficios.com>
9856
9857 * configure.ac: Don't source bfd/development.sh.
9858 * selftest.m4: Modify comment.
9859 * configure: Re-generate.
9860
4d696a5c
SM
98612020-03-12 Simon Marchi <simon.marchi@efficios.com>
9862
9863 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9864 not "true" or "false".
9865 * configure: Re-generate.
9866
8dd8e1c7
CB
98672020-03-12 Christian Biesinger <cbiesinger@google.com>
9868
9869 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9870 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9871 renamed to arm_nbsd_supply_gregset.
9872 (fetch_register): Update to call arm_nbsd_supply_gregset.
9873 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9874 (arm_netbsd_nat_target::fetch_registers): Update.
9875 (fetch_elfcore_registers): Removed.
9876 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9877 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9878 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9879 not require NetBSD system headers.
9880 (arm_nbsd_regset): New struct.
9881 (arm_nbsd_iterate_over_regset_sections): New function.
9882 (arm_netbsd_init_abi_common): Updated to call
9883 set_gdbarch_iterate_over_regset_sections.
9884 * arm-nbsd-tdep.h: New file.
9885
dd69bf7a
KB
98862020-03-11 Kevin Buettner <kevinb@redhat.com>
9887
9888 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9889 recursion.
9890
a0761e34
SM
98912020-03-11 Simon Marchi <simon.marchi@efficios.com>
9892
9893 * configure: Re-generate.
9894
e7a82140
TT
98952020-03-11 Tom Tromey <tromey@adacore.com>
9896
9897 * ada-typeprint.c (print_choices): Fix comment.
9898
dcc050c8
AB
98992020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9900
9901 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9902 previous item in the list, when the list has no items.
9903
1c33af77
TV
99042020-03-11 Tom de Vries <tdevries@suse.de>
9905
9906 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9907 PROP_LOCLIST handling code.
9908
8c95582d
AB
99092020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9910
9911 * buildsym-legacy.c (record_line): Pass extra parameter to
9912 record_line.
9913 * buildsym.c (buildsym_compunit::record_line): Take an extra
9914 parameter, reduce duplication in the line table, and record the
9915 is_stmt flag in the line table.
9916 * buildsym.h (buildsym_compunit::record_line): Add extra
9917 parameter.
9918 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9919 non-statement lines.
9920 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9921 this to the symtab builder.
9922 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9923 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9924 through to dwarf_record_line_1.
9925 * infrun.c (process_event_stop_test): When stepping, don't stop at
9926 a non-statement instruction, and only refresh the step info when
9927 we land in the middle of a line's range. Also add an extra
9928 comment.
9929 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9930 field.
9931 * record-btrace.c (btrace_find_line_range): Only record lines
9932 marked as is-statement.
9933 * stack.c (frame_show_address): Show the frame address if we are
9934 in a non-statement sal.
9935 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9936 (maintenance_print_one_line_table): Print a header for the is_stmt
9937 column, and include is_stmt information in the output.
9938 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9939 preference to non-statements.
9940 (find_pcs_for_symtab_line): Prefer is-statement entries.
9941 (find_line_common): Likewise.
9942 * symtab.h (struct linetable_entry): Add is_stmt field.
9943 (struct symtab_and_line): Likewise.
9944 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9945 arranging the line table.
9946
e4003a34
TV
99472020-03-07 Tom de Vries <tdevries@suse.de>
9948
9949 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9950 DIE.
9951
e8932576
TT
99522020-03-07 Tom Tromey <tom@tromey.com>
9953
9954 * valops.c (value_literal_complex): Remove obsolete comment.
9955 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9956 comment.
9957
29734269
SM
99582020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9959
9960 * infrun.h: Forward-declare thread_info.
9961 (set_step_info): Add thread_info parameter, add doc.
9962 * infrun.c (set_step_info): Add thread_info parameter, move doc
9963 to header.
9964 * infrun.c (process_event_stop_test): Pass thread to
9965 set_step_info call.
9966 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9967 set_step_info.
9968 (prepare_one_step): Add thread_info parameter, pass it to
9969 set_step_frame and prepare_one_step (recursive) call.
9970 (step_1): Pass thread to prepare_one_step call.
9971 (step_command_fsm::should_stop): Pass thread to
9972 prepare_one_step.
9973 (until_next_fsm): Pass thread to set_step_frame call.
9974 (finish_command): Pass thread to set_step_info call.
9975
b7d64b29
HD
99762020-03-06 Hannes Domani <ssbssa@yahoo.de>
9977
9978 * windows-tdep.c (windows_solib_create_inferior_hook):
9979 Check if inferior is running.
9980
09f2921c
TV
99812020-03-06 Tom de Vries <tdevries@suse.de>
9982
9983 * NEWS: Fix "the the".
9984 * ctfread.c: Same.
9985
fd760e79
TV
99862020-03-06 Tom de Vries <tdevries@suse.de>
9987
9988 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9989
20ea4a60
AB
99902020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9991
9992 * .dir-locals.el: Add a comment referencing the other copies of
9993 this file.
9994
0afbabf0
JB
99952020-03-05 John Baldwin <jhb@FreeBSD.org>
9996
9997 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9998 psargs.
9999
842806cb
TBA
100002020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10001
10002 * .gitattributes: New file.
10003
be1e3d3e
TT
100042020-03-04 Tom Tromey <tom@tromey.com>
10005
10006 * symmisc.c (print_symbol_bcache_statistics)
10007 (print_objfile_statistics): Update.
10008 * symfile.c (allocate_symtab): Use intern.
10009 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10010 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10011 macro_cache>: Remove.
10012 <string_cache>: New member.
10013 (struct objfile) <intern>: New methods.
10014 * elfread.c (elf_symtab_read): Use intern.
10015 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10016 (dwarf2_compute_name, dwarf2_physname)
10017 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10018 names.
10019 (guess_partial_die_structure_name): Update.
10020 (partial_die_info::fixup): Intern name.
10021 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10022 name.
10023 (dwarf2_name): Intern name. Update.
10024 * buildsym.c (buildsym_compunit::get_macro_table): Use
10025 string_cache.
10026
4e7625fd
TT
100272020-03-04 Tom Tromey <tom@tromey.com>
10028
10029 * jit.c (bfd_open_from_target_memory): Make "target" const.
10030 * corefile.c (gnutarget): Now const.
10031 * gdbcore.h (gnutarget): Now const.
10032
46f9f931
HD
100332020-03-04 Hannes Domani <ssbssa@yahoo.de>
10034
10035 * NEWS: Mention support for WOW64 processes.
10036 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10037 (amd64_windows_segment_register_p): Remove static.
10038 (_initialize_amd64_windows_nat): Update.
10039 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10040 * i386-windows-nat.c (context_offset): Update.
10041 (i386_mappings): Rename and remove static.
10042 (i386_windows_segment_register_p): Remove static.
10043 (_initialize_i386_windows_nat): Update.
10044 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10045 (STATUS_WX86_SINGLE_STEP): New macro.
10046 (EnumProcessModulesEx): New macro.
10047 (Wow64SuspendThread): New macro.
10048 (Wow64GetThreadContext): New macro.
10049 (Wow64SetThreadContext): New macro.
10050 (Wow64GetThreadSelectorEntry): New macro.
10051 (windows_set_context_register_offsets): Add static.
10052 (windows_set_segment_register_p): Likewise.
10053 (windows_add_thread): Adapt for WOW64 processes.
10054 (windows_fetch_one_register): Likewise.
10055 (windows_nat_target::fetch_registers): Likewise.
10056 (windows_store_one_register): Likewise.
10057 (display_selector): Likewise.
10058 (display_selectors): Likewise.
10059 (handle_exception): Likewise.
10060 (windows_continue): Likewise.
10061 (windows_nat_target::resume): Likewise.
10062 (windows_add_all_dlls): Likewise.
10063 (do_initial_windows_stuff): Likewise.
10064 (windows_nat_target::attach): Likewise.
10065 (windows_get_exec_module_filename): Likewise.
10066 (windows_nat_target::create_inferior): Likewise.
10067 (windows_xfer_siginfo): Likewise.
10068 (_initialize_loadable): Initialize Wow64SuspendThread,
10069 Wow64GetThreadContext, Wow64SetThreadContext,
10070 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10071 * windows-nat.h (windows_set_context_register_offsets):
10072 Remove declaration.
10073 (windows_set_segment_register_p): Likewise.
10074 (i386_windows_segment_register_p): Add declaration.
10075 (amd64_windows_segment_register_p): Likewise.
10076
440cf44e
LM
100772020-03-04 Luis Machado <luis.machado@linaro.org>
10078
10079 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10080 in "info registers" for AArch64/ARM.
10081
10082 The change caused "info registers" to not print GPR's.
10083
10084 gdb/ChangeLog:
10085
10086 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10087
10088 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10089 when reg->group is empty and reggroup is not.
10090
1009d92f
TT
100912020-03-03 Tom Tromey <tromey@adacore.com>
10092
10093 * dwarf2/frame.c (struct dwarf2_frame_cache)
10094 <checked_tailcall_bottom, entry_cfa_sp_offset,
10095 entry_cfa_sp_offset_p>: Remove members.
10096 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10097 (dwarf2_frame_prev_register): Don't call
10098 dwarf2_tailcall_sniffer_first.
10099 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10100 * frame-unwind.c (add_unwinder): New fuction.
10101 (frame_unwind_init): Use it. Add tailcall unwinder.
10102
5e5d66b6
AB
101032020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10104 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10105
10106 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10107 value should be printed as true.
10108
584cf46d
HD
101092020-03-03 Hannes Domani <ssbssa@yahoo.de>
10110
10111 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10112 (windows_init_abi): Set and use windows_so_ops.
10113
7b973adc
SDJ
101142020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10115
10116 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10117 when verifying if dealing with a convenience variable.
10118
bb7b70ab
LM
101192020-03-03 Luis Machado <luis.machado@linaro.org>
10120
10121 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10122
9822cb57
SM
101232020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10124
10125 * infrun.c (gdbarch_supports_displaced_stepping): New.
10126 (use_displaced_stepping): Break up conditions in smaller pieces.
10127 Use gdbarch_supports_displaced_stepping.
10128 (displaced_step_prepare_throw): Use
10129 gdbarch_supports_displaced_stepping.
10130
63e163f2
AB
101312020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10132
10133 * NEWS: Mention new behaviour of the history filename.
10134 * top.c (write_history_p): Add comment.
10135 (show_write_history_p): Add header comment, give a different
10136 message when history writing is on, but the history filename is
10137 empty.
10138 (history_filename): Add comment.
10139 (history_filename_empty): New function.
10140 (show_history_filename): Add header comment, give a different
10141 message when the filename is empty.
10142 (init_history): Compare history_filename against nullptr, and only
10143 read history if the filename is not empty.
10144 (set_history_filename): Add header comment, and only make
10145 non-empty filenames absolute.
10146 (init_main): Make the filename argument to 'set history filename'
10147 optional.
10148
81b86b97
CB
101492020-03-02 Christian Biesinger <cbiesinger@google.com>
10150
10151 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10152 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10153 (fetch_fp_register): Update.
10154 (fetch_fp_regs): Update.
10155 (store_fp_register): Update.
10156 (store_fp_regs): Update.
10157 (arm_netbsd_nat_target::read_description): New function.
10158 (fetch_elfcore_registers): Update.
10159
24ed6739
AB
101602020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10161
10162 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10163 general_thread if the stop reply is missing a thread-id.
10164 (remote_target::process_stop_reply): Use the first non-exited
10165 thread if the target didn't pass a thread-id.
10166 * infrun.c (do_target_wait): Move call to
10167 switch_to_inferior_no_thread to ....
10168 (do_target_wait_1): ... here.
10169
a84bb2a0
JT
101702020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10171
10172 * debuginfod-support.c: Include defs.h first.
10173
658dadf0
TV
101742020-02-28 Tom de Vries <tdevries@suse.de>
10175
10176 * symfile.c (set_initial_language): Use default language for lookup.
10177
4ebe4877
SM
101782020-02-28 Simon Marchi <simon.marchi@efficios.com>
10179
10180 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10181 reader variable, pass `this` to read_cutu_die_from_dwo.
10182
e5da1139
AM
101832020-02-27 Aaron Merey <amerey@redhat.com>
10184
10185 * source.c (open_source_file): Check for nullptr when computing
10186 srcpath.
10187
317f7127
TT
101882020-02-27 Tom Tromey <tromey@adacore.com>
10189
10190 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10191 member.
10192 (dwarf2_add_field): Don't update nfields.
10193 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10194
3104d9ee
AB
101952020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10196
10197 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10198 abs.
10199
b83470bf
TT
102002020-02-26 Tom Tromey <tom@tromey.com>
10201
10202 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10203 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10204 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10205 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10206 per_cu_data.
10207
edfe0a0c
TT
102082020-02-26 Tom Tromey <tom@tromey.com>
10209
10210 * dwarf2/index-write.c (psym_index_map): Change type.
10211 (add_address_entry_worker, write_one_signatured_type)
10212 (recursively_count_psymbols, recursively_write_psymbols)
10213 (class debug_names, psyms_seen_size, write_gdbindex)
10214 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10215
0d79cdc4
AM
102162020-02-26 Aaron Merey <amerey@redhat.com>
10217
10218 * Makefile.in: Handle optional debuginfod support.
10219 * NEWS: Update.
10220 * README: Add --with-debuginfod summary.
10221 * config.in: Regenerate.
10222 * configure: Regenerate.
10223 * configure.ac: Handle optional debuginfod support.
10224 * debuginfod-support.c: debuginfod helper functions.
10225 * debuginfod-support.h: Ditto.
10226 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10227 summary.
10228 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10229 when a dwz file cannot be found.
10230 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10231 debuginfo file cannot be found.
10232 * source.c (open_source_file): Query debuginfod servers when a
10233 source file cannot be found.
10234 * top.c (print_gdb_configuration): Include
10235 --{with,without}-debuginfod in the output.
10236
b65ce565
JG
102372020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10238
10239 * thread.c (thr_try_catch_cmd): Print thread name.
10240
d4c9a4f8
SM
102412020-02-26 Simon Marchi <simon.marchi@efficios.com>
10242
10243 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10244 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10245 dwarf2_fetch_die_type_sect_off): Move to...
10246 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10247 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10248 dwarf2_fetch_die_type_sect_off): ... here.
10249 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10250 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10251 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10252
0dce4280
TV
102532020-02-26 Tom de Vries <tdevries@suse.de>
10254
10255 PR gdb/25603
10256 * symfile.c (set_initial_language): Exit-early if
10257 language_mode == language_mode_manual.
10258
450a1bfc
SM
102592020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10260
10261 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10262 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10263 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10264
9e80cfa1
AB
102652020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10266
10267 * gdbtypes.c (create_array_type_with_stride): Handle negative
10268 array strides.
10269 * valarith.c (value_subscripted_rvalue): Likewise.
10270
09624f1f
LM
102712020-02-25 Luis Machado <luis.machado@linaro.org>
10272
10273 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10274
8cb5117c
SM
102752020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10276
10277 * loc.h (dwarf2_get_die_type): Move to...
10278 * read.h (dwarf2_get_die_type): ... here.
10279 * read.c (dwarf2_get_die_type): Move doc to header.
10280
c325c44e
JB
102812020-02-25 Joel Brobecker <brobecker@adacore.com>
10282
10283 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10284 'gnulib/Makefile.in' to the list.
10285
4ac93832
TT
102862020-02-24 Tom Tromey <tom@tromey.com>
10287
10288 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10289 Remove.
10290 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10291 XOBNEWVEC.
10292
197400e8
TT
102932020-02-24 Tom Tromey <tom@tromey.com>
10294
10295 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10296 New method.
10297 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10298 (dw2_do_instantiate_symtab, dw2_get_file_names)
10299 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10300
76935768
TT
103012020-02-24 Tom Tromey <tom@tromey.com>
10302
10303 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10304 make_scoped_restore.
10305 (dwarf2_psymtab::read_symtab): Don't clear
10306 reading_partial_symbols.
10307
a88ef40d
TV
103082020-02-24 Tom de Vries <tdevries@suse.de>
10309
10310 PR gdb/25592
10311 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10312
c9af6521
TV
103132020-02-24 Tom de Vries <tdevries@suse.de>
10314
10315 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10316 commands layout next/prev/regs.
10317
5707a07a
TT
103182020-02-22 Tom Tromey <tom@tromey.com>
10319
10320 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10321 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10322
3b0fb49e
TT
103232020-02-22 Tom Tromey <tom@tromey.com>
10324
10325 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10326
283be8bf
TT
103272020-02-22 Tom Tromey <tom@tromey.com>
10328
10329 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10330 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10331 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10332 * tui/tui.c (_initialize_tui): Add usage text.
10333
ca793b96
TT
103342020-02-22 Tom Tromey <tom@tromey.com>
10335
10336 * tui/tui-win.c (tui_set_focus_command)
10337 (tui_set_win_height_command): Use error_no_arg.
10338 (_initialize_tui_win): Update help text.
10339 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10340
432b5c40
TT
103412020-02-22 Tom Tromey <tom@tromey.com>
10342
10343 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10344 * tui/tui-disasm.h (struct tui_disasm_window)
10345 <display_start_addr>: Declare.
10346 * tui/tui-source.h (struct tui_source_window)
10347 <display_start_addr>: Declare.
10348 * tui/tui-winsource.h (struct tui_source_window_base)
10349 <show_source_line, display_start_addr>: New methods.
10350 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10351 Rename and move to protected section.
10352 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10353 (tui_source_window_base::do_erase_source_content): Update.
10354 (tui_source_window_base::show_source_line): Now a method.
10355 (tui_source_window_base::show_source_content)
10356 (tui_source_window_base::tui_source_window_base)
10357 (tui_source_window_base::rerender)
10358 (tui_source_window_base::refill)
10359 (tui_source_window_base::do_scroll_horizontal)
10360 (tui_source_window_base::set_is_exec_point_at)
10361 (tui_source_window_base::update_breakpoint_info)
10362 (tui_source_window_base::update_exec_info): Update.
10363 * tui/tui-source.c (tui_source_window::set_contents)
10364 (tui_source_window::showing_source_p)
10365 (tui_source_window::do_scroll_vertical)
10366 (tui_source_window::location_matches_p)
10367 (tui_source_window::line_is_displayed): Update.
10368 (tui_source_window::display_start_addr): New method.
10369 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10370 (tui_disasm_window::do_scroll_vertical)
10371 (tui_disasm_window::location_matches_p): Update.
10372 (tui_disasm_window::display_start_addr): New method.
10373
01b1af32
TT
103742020-02-22 Tom Tromey <tom@tromey.com>
10375
10376 * NEWS: Add entry for gdb.register_window_type.
10377 * tui/tui-layout.h (window_factory): New typedef.
10378 (tui_register_window): Declare.
10379 * tui/tui-layout.c (saved_tui_windows): New global.
10380 (tui_apply_current_layout): Use it.
10381 (tui_register_window): New function.
10382 * python/python.c (do_start_initialization): Call
10383 gdbpy_initialize_tui.
10384 (python_GdbMethods): Add "register_window_type" function.
10385 * python/python-internal.h (gdbpy_register_tui_window)
10386 (gdbpy_initialize_tui): Declare.
10387 * python/py-tui.c: New file.
10388 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10389
fc96d20b
TT
103902020-02-22 Tom Tromey <tom@tromey.com>
10391
10392 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10393
935c78c0
TT
103942020-02-22 Tom Tromey <tom@tromey.com>
10395
10396 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10397 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10398 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10399 (tui_set_win_focus_to): Move from tui-win.c.
10400
0240c8f1
TT
104012020-02-22 Tom Tromey <tom@tromey.com>
10402
10403 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10404 functions.
10405 (known_window_types): New global.
10406 (tui_get_window_by_name): Reimplement.
10407 (initialize_known_windows): New function.
10408 (validate_window_name): Rewrite.
10409 (_initialize_tui_layout): Call initialize_known_windows.
10410
fdb01f0c
TT
104112020-02-22 Tom Tromey <tom@tromey.com>
10412
10413 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10414 Remove constants.
10415 * tui/tui-winsource.h (struct tui_source_window_base)
10416 <tui_source_window_base>: Remove parameter.
10417 * tui/tui-winsource.c
10418 (tui_source_window_base::tui_source_window_base): Remove
10419 parameter.
10420 (tui_source_window_base::refill): Update.
10421 * tui/tui-stack.h (struct tui_locator_window)
10422 <tui_locator_window>: Update.
10423 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10424 Default the constructor.
10425 * tui/tui-regs.h (struct tui_data_item_window)
10426 <tui_data_item_window>: Default the constructor.
10427 (struct tui_data_window) <tui_data_window>: Likewise.
10428 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10429 Default the constructor.
10430 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10431 Default the constructor.
10432 <type>: Remove.
10433 (struct tui_win_info) <tui_win_info>: Default the constructor.
10434 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10435 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10436 Default the constructor.
10437
865a5aec
TT
104382020-02-22 Tom Tromey <tom@tromey.com>
10439
10440 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10441 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10442 * tui/tui-win.c (tui_resize_all): Don't call
10443 tui_delete_invisible_windows.
10444 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10445 done.
10446 (tui_set_layout): Update.
10447 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10448 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10449 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10450
e098d18c
TT
104512020-02-22 Tom Tromey <tom@tromey.com>
10452
10453 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10454 correctly.
10455
eb9c8874
TT
104562020-02-22 Tom Tromey <tom@tromey.com>
10457
10458 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10459
7eed1a8e
TT
104602020-02-22 Tom Tromey <tom@tromey.com>
10461
10462 * tui/tui-winsource.h (struct tui_source_window_iterator)
10463 <inner_iterator>: New etytypedef.
10464 <tui_source_window_iterator>: Take "end" parameter.
10465 <tui_source_window_iterator>: Take iterator.
10466 <operator*, advance>: Update.
10467 <m_iter>: Change type.
10468 <m_end>: New field.
10469 (struct tui_source_windows) <begin, end>: Update.
10470 * tui/tui-layout.c (tui_windows): New global.
10471 (tui_apply_current_layout): Clear tui_windows.
10472 (tui_layout_window::apply): Update tui_windows.
10473 * tui/tui-data.h (tui_windows): Declare.
10474 (all_tui_windows): Now inline function.
10475 (class tui_window_iterator, struct all_tui_windows): Remove.
10476
7c043ba6
TT
104772020-02-22 Tom Tromey <tom@tromey.com>
10478
10479 PR tui/17850:
10480 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10481 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10482 "height" argument.
10483 (class tui_layout_window) <get_sizes>: Likewise.
10484 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10485 argument.
10486 <get_sizes>: Add "height" argument.
10487 <m_vertical>: New field.
10488 * tui/tui-layout.c (tui_layout_split::clone): Update.
10489 (tui_layout_split::get_sizes): Add "height" argument.
10490 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10491 (tui_new_layout_command): Parse "-horizontal".
10492 (_initialize_tui_layout): Update help string.
10493 (tui_layout_split::specification): Add "-horizontal" when needed.
10494 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10495 argument.
10496 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10497 New methods.
10498
6bc56648
TT
104992020-02-22 Tom Tromey <tom@tromey.com>
10500
10501 * tui/tui-layout.h (enum tui_adjust_result): New.
10502 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10503 (class tui_layout_window) <adjust_size>: Return
10504 tui_adjust_result. Rewrite.
10505 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10506 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10507
c22fef7e
TT
105082020-02-22 Tom Tromey <tom@tromey.com>
10509
10510 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10511 parameter and return types.
10512 (class tui_layout_base) <specification>: Add "depth".
10513 (class tui_layout_window) <specification>: Add "depth".
10514 (class tui_layout_split) <specification>: Add "depth".
10515 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10516 and return types.
10517 (tui_new_layout_command): Parse sub-layouts.
10518 (_initialize_tui_layout): Update help string.
10519 (tui_layout_window::specification): Add "depth".
10520 (add_layout_command): Update.
10521
ee325b61
TT
105222020-02-22 Tom Tromey <tom@tromey.com>
10523
10524 * NEWS: Add "tui new-layout" item.
10525 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10526 Add new-layout command to help text.
10527 (validate_window_name): New function.
10528 (tui_new_layout_command): New function.
10529 (_initialize_tui_layout): Register "new-layout".
10530 (tui_layout_window::specification): New method.
10531 (tui_layout_window::specification): New method.
10532 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10533 method.
10534 (class tui_layout_window) <specification>: New method.
10535 (class tui_layout_split) <specification>: New method.
10536
416eb92d
TT
105372020-02-22 Tom Tromey <tom@tromey.com>
10538
10539 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10540 * tui/tui-win.c (window_name_completer): Update comment.
10541 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10542 Declare method.
10543 (class tui_layout_window) <replace_window>: Likewise.
10544 (class tui_layout_split) <replace_window>: Likewise.
10545 (tui_set_layout): Don't declare.
10546 (tui_set_initial_layout): Declare function.
10547 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10548 (asm_regs_layout): New globals.
10549 (tui_current_layout, show_layout): Remove.
10550 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10551 (find_layout, tui_apply_layout): New function.
10552 (layout_completer): Remove.
10553 (tui_next_layout): Reimplement.
10554 (tui_next_layout_command): New function.
10555 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10556 (tui_regs_layout): Reimplement.
10557 (tui_regs_layout_command): New function.
10558 (extract_display_start_addr): Rewrite.
10559 (next_layout, prev_layout): Remove.
10560 (tui_layout_window::replace_window): New method.
10561 (tui_layout_split::replace_window): New method.
10562 (destroy_layout): New function.
10563 (layout_list): New global.
10564 (add_layout_command): New function.
10565 (initialize_layouts): Update.
10566 (tui_layout_command): New function.
10567 (_initialize_tui_layout): Install "layout" commands.
10568 * tui/tui-data.h (enum tui_layout_type): Remove.
10569 (tui_current_layout): Don't declare.
10570
0dbc2fc7
TT
105712020-02-22 Tom Tromey <tom@tromey.com>
10572
10573 * tui/tui-regs.c (tui_reg_layout): Remove.
10574 (tui_reg_command): Use tui_regs_layout.
10575 * tui/tui-layout.h (tui_reg_command): Declare.
10576 * tui/tui-layout.c (tui_reg_command): New function.
10577
5afe342e
TT
105782020-02-22 Tom Tromey <tom@tromey.com>
10579
10580 * tui/tui.c (tui_rl_delete_other_windows): Call
10581 tui_remove_some_windows.
10582 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10583 Declare method.
10584 (class tui_layout_window) <remove_windows>: New method.
10585 (class tui_layout_split) <remove_windows>: Declare.
10586 (tui_remove_some_windows): Declare.
10587 * tui/tui-layout.c (tui_remove_some_windows): New function.
10588 (tui_layout_split::remove_windows): New method.
10589
427326a8
TT
105902020-02-22 Tom Tromey <tom@tromey.com>
10591
10592 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10593 * tui/tui-layout.h (tui_next_layout): Declare.
10594 * tui/tui-layout.c (tui_next_layout): New function.
10595
3fe12b6d
TT
105962020-02-22 Tom Tromey <tom@tromey.com>
10597
10598 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10599 correct coordinates.
10600
59b8b5d2
TT
106012020-02-22 Tom Tromey <tom@tromey.com>
10602
10603 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10604 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10605 DATA_WIN case.
10606
2a3d458b
TT
106072020-02-22 Tom Tromey <tom@tromey.com>
10608
10609 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10610 TUI_DISASM_WIN, not tui_win_list.
10611
3f0cbb04
TT
106122020-02-22 Tom Tromey <tom@tromey.com>
10613
10614 * valprint.c (generic_val_print_enum_1)
10615 (val_print_type_code_flags): Style member names.
10616 * rust-lang.c (val_print_struct, rust_print_enum)
10617 (rust_print_struct_def, rust_internal_print_type): Style member
10618 names.
10619 * p-valprint.c (pascal_object_print_value_fields): Style member
10620 names. Only call fprintf_symbol_filtered for static members.
10621 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10622 * f-valprint.c (f_val_print): Style member names.
10623 * f-typeprint.c (f_type_print_base): Style member names.
10624 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10625 call fprintf_symbol_filtered for static members.
10626 (cp_print_class_member): Style member names.
10627 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10628 member names.
10629 * ada-valprint.c (ada_print_scalar): Style enum names.
10630 (ada_val_print_enum): Likewise.
10631 * ada-typeprint.c (print_enum_type): Style enum names.
10632
d4d947ae
TT
106332020-02-21 Tom Tromey <tom@tromey.com>
10634
10635 * psympriv.h (struct partial_symtab): Update comment.
10636
e94e944b
TT
106372020-02-21 Tom Tromey <tromey@adacore.com>
10638
10639 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10640 type is CORE_ADDR.
10641
1eb73179
TV
106422020-02-21 Tom de Vries <tdevries@suse.de>
10643
10644 PR gdb/25534
10645 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10646 if dependencies[i]->user != NULL.
10647
4f180d53
AT
106482020-02-21 Ali Tamur <tamur@google.com>
10649
10650 * dwarf2/read.c (dwarf2_name): Add null check.
10651
22b6cd70
TT
106522020-02-20 Tom Tromey <tom@tromey.com>
10653
10654 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10655 ">=", in binary search.
10656 (dwarf2_find_containing_comp_unit): New overload.
10657 (run_test): New self-test.
10658 (_initialize_dwarf2_read): Register new test.
10659
bd0cf5a6
NC
106602020-02-20 Nelson Chu <nelson.chu@sifive.com>
10661
10662 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10663 * riscv-tdep.h: Likewise.
10664 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10665 rv32-only CSR.
10666 * features/riscv/64bit-csr.xml: Regenerated.
10667
3f702acd
SDJ
106682020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10669 Tom Tromey <tom@tromey.com>
10670
10671 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10672 of 'fputc_unfiltered'.
10673 (putchar_unfiltered): Call 'fputc_unfiltered'.
10674 (fputc_unfiltered): Call 'fputs_unfiltered'.
10675
d13c7322
AB
106762020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10677
10678 * config.in: Regenerate.
10679 * configure: Regenerate.
10680 * configure.ac: Add --with-python-libdir option.
10681 * main.c: Use WITH_PYTHON_LIBDIR.
10682
869d8950
TT
106832020-02-19 Tom Tromey <tom@tromey.com>
10684
10685 * symtab.c (general_symbol_info::compute_and_set_names): Use
10686 obstack_strndup. Simplify call to symbol_set_demangled_name.
10687
298e9637
SM
106882020-02-19 Simon Marchi <simon.marchi@efficios.com>
10689
10690 * dwarf2/read.c (allocate_signatured_type_table,
10691 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10692 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10693 Remove objfile parameter, update all callers.
10694
08410482
DE
106952020-02-19 Doug Evans <dje@google.com>
10696
10697 PR rust/25535
10698 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10699 rust_enum_variant calculation.
10700
dfdeeca1
TT
107012020-02-19 Tom Tromey <tromey@adacore.com>
10702
10703 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10704
2ef5453b
TT
107052020-02-19 Tom Tromey <tromey@adacore.com>
10706
10707 * ada-lang.c (cache_symbol): Use obstack_strdup.
10708
9f1528a1
AB
107092020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10710
10711 * configure: Regenerate.
10712
d3c22fa8
TT
107132020-02-19 Tom Tromey <tromey@adacore.com>
10714
10715 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10716 NULL check.
10717
bf84f706
MR
107182020-02-19 Maciej W. Rozycki <macro@wdc.com>
10719
10720 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10721
d1c9b20f
AB
107222020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10723
10724 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10725 if GDBSERVER is not defined.
10726 (riscv_tdesc_cache): Likewise, also store const target_desc.
10727 (STATIC_IN_GDB): Define.
10728 (riscv_create_target_description): Update declaration with
10729 STATIC_IN_GDB.
10730 (riscv_lookup_target_description): New function, only define if
10731 GDBSERVER is not defined.
10732 * arch/riscv.h (riscv_create_target_description): Declare only
10733 when GDBSERVER is defined.
10734 (riscv_lookup_target_description): New declaration when GDBSERVER
10735 is not defined.
10736 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10737 (riscv_linux_read_features): ...this, and return
10738 riscv_gdbarch_features instead of target_desc.
10739 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10740 (riscv_linux_read_description): Rename to...
10741 (riscv_linux_read_features): ...this.
10742 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10743 Update to use riscv_gdbarch_features and
10744 riscv_lookup_target_description.
10745 * riscv-tdep.c (riscv_find_default_target_description): Use
10746 riscv_lookup_target_description instead of
10747 riscv_create_target_description.
10748
373d7ac0
SM
107492020-02-18 Simon Marchi <simon.marchi@efficios.com>
10750
10751 * valprint.c (generic_val_print_enum_1): When printing a flag
10752 enum with value 0 and there is no enumerator with value 0, print
10753 just "0" instead of "(unknown: 0x0)".
10754
b29a2df0
SM
107552020-02-18 Simon Marchi <simon.marchi@efficios.com>
10756
10757 * valprint.c (generic_val_print_enum_1): Print unknown part of
10758 flag enum in hex.
10759
6740f0cc
SM
107602020-02-18 Simon Marchi <simon.marchi@efficios.com>
10761
10762 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10763 flag enums to contain duplicate enumerators.
10764 * valprint.c (generic_val_print_enum_1): Update comment.
10765
edd45eb0
SM
107662020-02-18 Simon Marchi <simon.marchi@efficios.com>
10767
10768 * dwarf2/read.c: Include "count-one-bits.h".
10769 (update_enumeration_type_from_children): If an enumerator has
10770 multiple bits set, don't treat the enumeration as a "flag enum".
10771 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10772 of flag enums have 0 or 1 bit set.
10773
6d0cf446
BE
107742020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10775
10776 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10777 conversion.
10778 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10779 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10780 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10781 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10782 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10783
7001c1b7
SM
107842020-02-18 Simon Marchi <simon.marchi@efficios.com>
10785
10786 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10787
fdb61c6c
SM
107882020-02-14 Simon Marchi <simon.marchi@efficios.com>
10789
10790 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10791 displaced_step_closure_up.
10792 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10793 (struct displaced_step_closure_up):
10794 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10795 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10796 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10797 Likewise.
10798 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10799 * gdbarch.c, gdbarch.h: Re-generate.
10800 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10801 displaced_step_closure_up.
10802 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10803 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10804 * infrun.h (displaced_step_closure_up): New type alias.
10805 (struct displaced_step_inferior_state) <step_closure>: Change
10806 type to displaced_step_closure_up.
10807 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10808 displaced_step_closure_up.
10809 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10810
a4a38eb4
TT
108112020-02-14 Tom Tromey <tom@tromey.com>
10812
10813 * minidebug.c (gnu_debug_key): New global.
10814 (find_separate_debug_file_in_section): Use it.
10815
e8217e61
SM
108162020-02-14 Simon Marchi <simon.marchi@efficios.com>
10817
10818 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10819 std::unique_ptr.
10820 * gdbarch.c: Re-generate.
10821 * gdbarch.h: Re-generate.
10822 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10823 change.
10824 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10825 type to std::unique_ptr.
10826 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10827 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10828 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10829 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10830 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10831 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10832 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10833 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10834 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10835
d8d83535
SM
108362020-02-14 Simon Marchi <simon.marchi@efficios.com>
10837
10838 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10839 std::unique_ptr.
10840 (displaced_step_clear): Rename to...
10841 (displaced_step_reset): ... this. Just call displaced->reset ().
10842 (displaced_step_clear_cleanup): Rename to...
10843 (displaced_step_reset_cleanup): ... this.
10844 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10845 (displaced_step_fixup): Likewise.
10846 (resume_1): Likewise.
10847 (handle_inferior_event): Restore child's memory before calling
10848 displaced_step_fixup on the parent.
10849 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10850 to std::unique_ptr.
10851 <step_closure>: Change type to std::unique_ptr.
10852
5f661e03
SM
108532020-02-14 Simon Marchi <simon.marchi@efficios.com>
10854
10855 * arm-tdep.c: Include count-one-bits.h.
10856 (cleanup_block_store_pc): Use count_one_bits.
10857 (cleanup_block_load_pc): Use count_one_bits.
10858 (arm_copy_block_xfer): Use count_one_bits.
10859 (thumb2_copy_block_xfer): Use count_one_bits.
10860 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10861 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10862 (thumb_get_next_pcs_raw): Use count_one_bits.
10863 (arm_get_next_pcs_raw): Use count_one_bits_l.
10864 * arch/arm.c (bitcount): Remove.
10865 * arch/arm.h (bitcount): Remove.
10866
8084e579
TT
108672020-02-14 Tom Tromey <tromey@adacore.com>
10868
10869 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10870 Update.
10871 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10872 * dwarf2/loc.c (call_site_find_chain_1): Return
10873 unique_xmalloc_ptr.
10874 (call_site_find_chain): Likewise.
10875
258bf0ee
RB
108762020-02-14 Richard Biener <rguenther@suse.de>
10877
10878 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10879 on expression with division operators.
10880
f98a8458
AKS
108812020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10882
10883 * MAINTAINERS (Write After Approval): Adding myself.
10884
d1437c0e
TT
108852020-02-12 Tom Tromey <tom@tromey.com>
10886
10887 * event-loop.c (event_data, gdb_event, event_handler_func):
10888 Remove.
10889
3d4560f7
TT
108902020-02-12 Tom Tromey <tom@tromey.com>
10891
10892 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10893 (dwarf2_frame_objfile_data): Add comment.
10894 (find_comp_unit, set_comp_unit): New functions.
10895 (dwarf2_frame_find_fde): Use find_comp_unit.
10896 (dwarf2_build_frame_info): Use set_comp_unit.
10897
21982304
TT
108982020-02-12 Tom Tromey <tom@tromey.com>
10899
10900 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10901 (comp_unit): Don't initialize objfile.
10902 (execute_cfa_program): Add text_offset parameter.
10903 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10904 (dwarf2_frame_cache): Update.
10905 (dwarf2_build_frame_info): Don't set "objfile" member.
10906
4debb237
TT
109072020-02-12 Tom Tromey <tom@tromey.com>
10908
10909 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10910 (decode_frame_entry): Likewise.
10911 (dwarf2_build_frame_info): Update.
10912
0d404d44
TT
109132020-02-12 Tom Tromey <tom@tromey.com>
10914
10915 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10916 (decode_frame_entry_1): Use the comp_unit obstack.
10917
a7a3ae5c
TT
109182020-02-12 Tom Tromey <tom@tromey.com>
10919
10920 * dwarf2/frame.c (struct comp_unit): Add initializers and
10921 constructor.
10922 (dwarf2_frame_objfile_data): Store a comp_unit.
10923 (dwarf2_frame_find_fde): Update.
10924 (dwarf2_build_frame_info): Use "new".
10925
a9d65418
TT
109262020-02-12 Tom Tromey <tom@tromey.com>
10927
10928 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10929 (dwarf2_fde_table): Typedef for std::vector.
10930 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10931 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10932 (decode_frame_entry): Update.
10933 (dwarf2_build_frame_info): Use "new".
10934
7559c217
CB
109352020-02-12 Christian Biesinger <cbiesinger@google.com>
10936
10937 * arm-tdep.c (arm_gdbarch_init): Update.
10938 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10939 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10940 have_neon, is_m>: Change to bool.
10941
aeefc73c
CB
109422020-02-12 Christian Biesinger <cbiesinger@google.com>
10943
10944 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10945
d27b8e5f
TT
109462020-02-12 Tom Tromey <tom@tromey.com>
10947
10948 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10949
cd5900f3
HD
109502020-02-12 Hannes Domani <ssbssa@yahoo.de>
10951
10952 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10953 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10954
f056b22b
TT
109552020-02-11 Tom Tromey <tom@tromey.com>
10956
10957 * psymtab.h: Update comment.
10958
f92ff6b5
TT
109592020-02-11 Tom Tromey <tom@tromey.com>
10960
10961 * gdb_obstack.h (struct auto_obstack): Use
10962 DISABLE_COPY_AND_ASSIGN.
10963
3fd6912b
TT
109642020-02-11 Tom Tromey <tom@tromey.com>
10965
10966 * dwarf2/frame.h (struct objfile): Don't forward declare.
10967
69ed9b74
CB
109682020-02-11 Christian Biesinger <cbiesinger@google.com>
10969
10970 * cris-tdep.c (cris_supply_gregset): Change signature to match
10971 what struct regset expects.
10972 (cris_regset): New struct.
10973 (fetch_core_registers): Remove.
10974 (cris_iterate_over_regset_sections): New function.
10975 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10976 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10977
bda874f6
CB
109782020-02-11 Christian Biesinger <cbiesinger@google.com>
10979
10980 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10981 registers.
10982
754e1564
CB
109832020-02-11 Christian Biesinger <cbiesinger@google.com>
10984
10985 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10986
8ddd8e0e
SM
109872020-02-11 Simon Marchi <simon.marchi@efficios.com>
10988
10989 * configure: Re-generate.
10990
898e7f60
SM
109912020-02-11 Simon Marchi <simon.marchi@efficios.com>
10992
10993 * configure: Re-generate.
10994
58df732b
SM
109952020-02-11 Simon Marchi <simon.marchi@efficios.com>
10996
10997 * acinclude: Update warning.m4 path.
10998 * warning.m4: Move to gdbsupport.
10999
da5bd37e
TT
110002020-02-11 Tom Tromey <tromey@adacore.com>
11001
11002 * remote.c (remote_console_output): Update.
11003 * printcmd.c (printf_command): Update.
11004 * event-loop.c (gdb_wait_for_event): Update.
11005 * linux-nat.c (sigchld_handler): Update.
11006 * remote-sim.c (gdb_os_write_stdout): Update.
11007 (gdb_os_flush_stdout): Update.
11008 (gdb_os_flush_stderr): Update.
11009 (gdb_os_write_stderr): Update.
11010 * exceptions.c (print_exception): Update.
11011 * remote-fileio.c (remote_fileio_func_read): Update.
11012 (remote_fileio_func_write): Update.
11013 * tui/tui.c (tui_enable): Update.
11014 * tui/tui-interp.c (tui_interp::init): Update.
11015 * utils.c (init_page_info): Update.
11016 (putchar_unfiltered, fputc_unfiltered): Update.
11017 (gdb_flush): Update.
11018 (emit_style_escape): Update.
11019 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11020 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11021 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11022 (stderr_file::write): Update.
11023 (stderr_file::puts): Update.
11024 * ui-file.h (ui_file_isatty, ui_file_write)
11025 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11026 (ui_file_puts): Don't declare.
11027
85f0dd3c
TV
110282020-02-10 Tom de Vries <tdevries@suse.de>
11029
11030 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11031 sentinel to char *.
11032
2e927613
TV
110332020-02-09 Tom de Vries <tdevries@suse.de>
11034
11035 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11036 filename if it matches "<artificial>".
11037
6bafc845
HD
110382020-02-09 Hannes Domani <ssbssa@yahoo.de>
11039
11040 * windows-tdep.c (struct enum_value_name): New struct.
11041 (create_enum): New function.
11042 (windows_get_siginfo_type): Create and use enum types.
11043
7928d571
HD
110442020-02-09 Hannes Domani <ssbssa@yahoo.de>
11045
11046 * NEWS: Mention $_siginfo support for Windows.
11047 * windows-nat.c (handle_exception): Set siginfo_er.
11048 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11049 (windows_xfer_siginfo): New function.
11050 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11051 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11052 (init_windows_gdbarch_data): New function.
11053 (get_windows_gdbarch_data): New function.
11054 (windows_get_siginfo_type): New function.
11055 (windows_init_abi): Register windows_get_siginfo_type.
11056 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11057
6751ebae
TT
110582020-02-08 Tom Tromey <tom@tromey.com>
11059
11060 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11061 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11062 <keep>: Declare method.
11063 <m_keep>: Remove member.
11064 <~cutu_reader>: Remove.
11065 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11066 (cutu_reader::cutu_reader): Update.
11067 (cutu_reader::keep): Rename from ~cutu_reader.
11068 (process_psymtab_comp_unit, build_type_psymtabs_1)
11069 (process_skeletonless_type_unit, load_partial_comp_unit)
11070 (load_full_comp_unit, dwarf2_read_addr_index)
11071 (read_signatured_type): Update.
11072
135f5437
TT
110732020-02-08 Tom Tromey <tom@tromey.com>
11074
11075 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11076 "want_partial_unit" parameter.
11077 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11078 Inline check for DW_TAG_partial_unit.
11079 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11080
9f66ff1c
TT
110812020-02-08 Tom Tromey <tom@tromey.com>
11082
11083 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11084 read.c.
11085 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11086 read.c.
11087
c8a7a66f
TT
110882020-02-08 Tom Tromey <tom@tromey.com>
11089
11090 * dwarf2/read.c (read_address): Move to comp-unit.c.
11091 (dwarf2_rnglists_process, dwarf2_ranges_process)
11092 (read_attribute_value, dwarf_decode_lines_1)
11093 (var_decode_location, decode_locdesc): Update.
11094 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11095 read.c. Remove "cu" parameter.
11096 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11097 method.
11098
8266302d
TT
110992020-02-08 Tom Tromey <tom@tromey.com>
11100
11101 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11102 (read_indirect_line_string): Update.
11103 * dwarf2/comp-unit.c (read_offset): Remove.
11104 (read_comp_unit_head): Update.
11105 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11106 method.
11107 (read_offset): Don't declare.
11108
4057dfde
TT
111092020-02-08 Tom Tromey <tom@tromey.com>
11110
11111 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11112 * dwarf2/read.c (struct comp_unit_head): Move to
11113 dwarf2/comp-unit.h.
11114 (enum class rcuh_kind): Move to comp-unit.h.
11115 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11116 (read_comp_unit_head, error_check_comp_unit_head)
11117 (read_and_check_comp_unit_head): Move to comp-unit.c.
11118 (read_offset, dwarf_unit_type_name): Likewise.
11119 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11120 (cutu_reader::cutu_reader, read_call_site_scope)
11121 (find_partial_die, follow_die_offset): Update.
11122 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11123
24aa364d
TT
111242020-02-08 Tom Tromey <tom@tromey.com>
11125
11126 * dwarf2/read.c (read_offset_1): Move to leb.c.
11127 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11128 (dwarf_decode_macro_bytes): Update.
11129 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11130 * dwarf2/leb.h (read_offset): Declare.
11131
2c7d5afc
TT
111322020-02-08 Tom Tromey <tom@tromey.com>
11133
11134 * dwarf2/read.c (dwarf2_section_size): Remove.
11135 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11136 Update.
11137 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11138
4075cb26
TT
111392020-02-08 Tom Tromey <tom@tromey.com>
11140
11141 * dwarf2/read.c (read_initial_length): Move to leb.c.
11142 * dwarf2/leb.h (read_initial_length): Declare.
11143 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11144 handle_nonstd parameter.
11145 * dwarf2/frame.c (read_initial_length): Remove.
11146 (decode_frame_entry_1): Update.
11147
09ba997f
TT
111482020-02-08 Tom Tromey <tom@tromey.com>
11149
11150 * dwarf2/loc.c (dwarf2_find_location_expression)
11151 (dwarf_evaluate_loc_desc::get_tls_address)
11152 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11153 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11154 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11155 (dwarf2_compile_property_to_c)
11156 (dwarf2_loc_desc_get_symbol_read_needs)
11157 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11158 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11159 (loclist_describe_location, loclist_tracepoint_var_ref)
11160 (loclist_generate_c_location): Update.
11161 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11162 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11163 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11164 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11165 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11166 (dwarf2_per_cu_data::addr_size)
11167 (dwarf2_per_cu_data::ref_addr_size)
11168 (dwarf2_per_cu_data::text_offset)
11169 (dwarf2_per_cu_data::addr_type): Now methods.
11170 (per_cu_header_read_in): Make per_cu "const".
11171 (dwarf2_version): Remove.
11172 (dwarf2_per_cu_data::int_type): Now a method.
11173 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11174 (set_die_type, read_array_type, read_subrange_index_type)
11175 (read_tag_string_type, read_subrange_type): Update.
11176 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11177 offset_size, ref_addr_size, text_offset, addr_type, version,
11178 objfile, int_type, addr_sized_int_type>: Declare methods.
11179
96c738c0
TT
111802020-02-08 Tom Tromey <tom@tromey.com>
11181
11182 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11183 Move earlier.
11184
8fdd972c
TT
111852020-02-08 Tom Tromey <tom@tromey.com>
11186
11187 * dwarf2/read.h (dwarf_line_debug): Declare.
11188 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11189 * dwarf2/read.c: Move line_header code to new files.
11190 (dwarf_line_debug): No longer static.
11191 * dwarf2/line-header.c: New file.
11192 * dwarf2/line-header.h: New file.
11193
03075812
TT
111942020-02-08 Tom Tromey <tom@tromey.com>
11195
11196 * dwarf2/read.c (struct line_header) <file_full_name,
11197 file_file_name>: Return unique_xmalloc_ptr.
11198 (line_header::file_file_name): Update.
11199 (line_header::file_full_name): Update.
11200 (dw2_get_file_names_reader): Update.
11201 (macro_start_file): Update.
11202
bb822404
TT
112032020-02-08 Tom Tromey <tom@tromey.com>
11204
11205 * dwarf2/read.c (struct line_header) <file_full_name,
11206 file_file_name>: Declare methods.
11207 (dw2_get_file_names_reader): Update.
11208 (file_file_name): Now a method.
11209 (file_full_name): Likewise.
11210 (macro_start_file): Update.
11211
009b64fc
TT
112122020-02-08 Tom Tromey <tom@tromey.com>
11213
11214 * dwarf2/read.c (dwarf_always_disassemble)
11215 (show_dwarf_always_disassemble): Move to loc.c.
11216 (_initialize_dwarf2_read): Move "always-disassemble" registration
11217 to loc.c.
11218 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11219 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11220 static.
11221 (show_dwarf_always_disassemble): Move from read.c.
11222 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11223
5895093f
TT
112242020-02-08 Tom Tromey <tom@tromey.com>
11225
11226 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11227 (create_quick_file_names_table): Return htab_up.
11228 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11229 Update.
11230 * dwarf2/read.h (struct dwarf2_per_objfile)
11231 <quick_file_names_table>: Now htab_up.
11232
b3b32279
TT
112332020-02-08 Tom Tromey <tom@tromey.com>
11234
11235 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11236
1d33d811
TT
112372020-02-08 Tom Tromey <tom@tromey.com>
11238
11239 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11240 Rewrite.
11241 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11242 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11243 (abbrev_table::abbrev_table): No longer inline.
11244 (ABBREV_HASH_SIZE): Remove.
11245 (abbrev_table::m_abbrevs): Now an htab_up.
11246
86de1d91
TT
112472020-02-08 Tom Tromey <tom@tromey.com>
11248
11249 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11250 (cutu_reader): Update.
11251 (build_type_psymtabs_1): Update.
11252 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11253 (abbrev_table::alloc_abbrev): Update.
11254 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11255 (abbrev_table::read): New static method, renamed from
11256 abbrev_table_read_table.
11257 (abbrev_table::alloc_abbrev)
11258 (abbrev_table::add_abbrev): Now private.
11259 (abbrev_table::abbrev_table): Now private.
11260 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11261
0335378b
TT
112622020-02-08 Tom Tromey <tom@tromey.com>
11263
11264 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11265 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11266 htab_up.
11267
48b490f2
TT
112682020-02-08 Tom Tromey <tom@tromey.com>
11269
11270 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11271 htab_up.
11272 (lookup_dwo_unit_in_dwp): Update.
11273 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11274 on obstack.
11275
bc68fb19
TT
112762020-02-08 Tom Tromey <tom@tromey.com>
11277
11278 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11279 obstack.
11280
d15acc42
TT
112812020-02-08 Tom Tromey <tom@tromey.com>
11282
11283 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11284 line_header_hash.
11285 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11286 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11287 Change type to htab_up.
11288
eaa5fa8b
TT
112892020-02-08 Tom Tromey <tom@tromey.com>
11290
11291 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11292 htab_up. Don't allocate on obstack.
11293 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11294 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11295 Change type to htab_up.
11296
b0b6a987
TT
112972020-02-08 Tom Tromey <tom@tromey.com>
11298
11299 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11300 Change type to htab_up.
11301 * dwarf2/read.c (create_signatured_type_table_from_index)
11302 (create_signatured_type_table_from_debug_names)
11303 (create_all_type_units, add_type_unit)
11304 (lookup_dwo_signatured_type, lookup_signatured_type)
11305 (process_skeletonless_type_unit): Update.
11306 (create_debug_type_hash_table, create_debug_types_hash_table):
11307 Change type of types_htab.
11308 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11309 htab_up. Don't allocate on obstack.
11310 (create_cus_hash_table): Change type of cus_htab parameter.
11311 (struct dwo_file) <cus, tus>: Now htab_up.
11312 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11313 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11314 (queue_and_load_all_dwo_tus): Update.
11315 * dwarf2/index-write.c (write_gdbindex): Update.
11316 (write_debug_names): Update.
11317
39856def
TT
113182020-02-08 Tom Tromey <tom@tromey.com>
11319
11320 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11321 dwarf2/read.c. Remove "next" member. Add constructor ntad
11322 destructor.
11323 (struct dwarf2_per_objfile) <queue>: New member.
11324 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11325 dwarf2/read.h.
11326 (dwarf2_queue, dwarf2_queue_tail): Remove.
11327 (class dwarf2_queue_guard): Add parameter to constructor. Use
11328 DISABLE_COPY_AND_ASSIGN.
11329 <m_per_objfile>: New member.
11330 <~dwarf2_queue_guard>: Rewrite.
11331 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11332 Update.
11333 (~dwarf2_queue_item): New.
11334
3e225074
TT
113352020-02-08 Tom Tromey <tom@tromey.com>
11336
11337 * dwarf2/read.c (struct die_info) <has_children>: New member.
11338 (dw2_get_file_names_reader): Remove has_children.
11339 (dw2_get_file_names): Update.
11340 (read_cutu_die_from_dwo): Remove has_children.
11341 (cutu_reader::init_tu_and_read_dwo_dies)
11342 (cutu_reader::cutu_reader): Update.
11343 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11344 Remove has_children.
11345 (build_type_psymtabs_1, process_skeletonless_type_unit)
11346 (load_partial_comp_unit, load_full_comp_unit): Update.
11347 (create_dwo_cu_reader): Remove has_children.
11348 (create_cus_hash_table, read_die_and_children): Update.
11349 (read_full_die_1,read_full_die): Remove has_children.
11350 (read_signatured_type): Update.
11351 (class cutu_reader) <has_children>: Remove.
11352
82ca8957
TT
113532020-02-08 Tom Tromey <tom@tromey.com>
11354
11355 * dwarf2/expr.c: Rename from dwarf2expr.c.
11356 * dwarf2/expr.h: Rename from dwarf2expr.h.
11357 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11358 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11359 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11360 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11361 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11362 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11363 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11364 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11365 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11366 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11367 * dwarf2/loc.c: Rename from dwarf2loc.c.
11368 * dwarf2/loc.h: Rename from dwarf2loc.h.
11369 * dwarf2/read.c: Rename from dwarf2read.c.
11370 * dwarf2/read.h: Rename from dwarf2read.h.
11371 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11372 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11373 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11374 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11375 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11376 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11377 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11378 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11379 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11380 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11381 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11382 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11383 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11384 Update.
11385 * Makefile.in (COMMON_SFILES): Update.
11386 (HFILES_NO_SRCDIR): Update.
11387
9e35d499
TT
113882020-02-08 Tom Tromey <tom@tromey.com>
11389
11390 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11391 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11392
1eba2311
TT
113932020-02-08 Tom Tromey <tom@tromey.com>
11394
11395 * dwarf2read.h (struct die_info): Don't declare.
11396
e41c2da2
TT
113972020-02-08 Tom Tromey <tom@tromey.com>
11398
11399 * dwarf2read.h (die_info_ptr): Remove typedef.
11400
4fc6c0d5
TT
114012020-02-08 Tom Tromey <tom@tromey.com>
11402
11403 * dwarf2read.c (read_call_site_scope)
11404 (handle_data_member_location, dwarf2_add_member_fn)
11405 (mark_common_block_symbol_computed, read_common_block)
11406 (attr_to_dynamic_prop, partial_die_info::read)
11407 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11408 (dwarf2_symbol_mark_computed, set_die_type): Update.
11409 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11410 method.
11411 (attr_form_is_block): Don't declare.
11412 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11413
cd6c91b4
TT
114142020-02-08 Tom Tromey <tom@tromey.com>
11415
11416 * dwarf2read.c (dwarf2_find_base_address, )
11417 (read_call_site_scope, rust_containing_type)
11418 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11419 (handle_data_member_location, dwarf2_add_member_fn)
11420 (get_alignment, read_structure_type, process_structure_scope)
11421 (mark_common_block_symbol_computed, read_common_block)
11422 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11423 (partial_die_info::read, read_attribute_value, new_symbol)
11424 (lookup_die_type, dwarf2_get_ref_die_offset)
11425 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11426 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11427 (dwarf2_symbol_mark_computed): Update.
11428 * dwarf2/attribute.h (struct attribute) <value_as_address,
11429 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11430 methods.
11431 (value_as_address, attr_form_is_section_offset)
11432 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11433 * dwarf2/attribute.c (attribute::value_as_address)
11434 (attribute::form_is_section_offset, attribute::form_is_constant)
11435 (attribute::form_is_ref): Now methods.
11436
162dce55
TT
114372020-02-08 Tom Tromey <tom@tromey.com>
11438
11439 * dwarf2read.c (struct attribute, DW_STRING)
11440 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11441 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11442 (attr_form_is_block, attr_form_is_section_offset)
11443 (attr_form_is_constant, attr_form_is_ref): Move.
11444 * dwarf2/attribute.h: New file.
11445 * dwarf2/attribute.c: New file, from dwarf2read.c.
11446 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11447
3054dd54
TT
114482020-02-08 Tom Tromey <tom@tromey.com>
11449
11450 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11451 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11452 Move.
11453 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11454 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11455 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11456 abbrev.c.
11457 * dwarf2/abbrev.h: New file.
11458 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11459 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11460
96b79293
TT
114612020-02-08 Tom Tromey <tom@tromey.com>
11462
11463 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11464 (dwarf2_section_size, dwarf2_get_section_info)
11465 (create_signatured_type_table_from_debug_names)
11466 (create_addrmap_from_aranges, read_debug_names_from_section)
11467 (get_gdb_index_contents_from_section, read_comp_unit_head)
11468 (error_check_comp_unit_head, read_abbrev_offset)
11469 (create_debug_type_hash_table, init_cu_die_reader)
11470 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11471 (read_comp_units_from_section, create_cus_hash_table)
11472 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11473 (create_dwp_v2_section, dwarf2_rnglists_process)
11474 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11475 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11476 (read_indirect_string_from_dwz, read_addr_index_1)
11477 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11478 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11479 (fill_in_loclist_baton): Update.
11480 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11481 get_containing_section, get_bfd_owner, get_bfd_section,
11482 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11483 (dwarf2_read_section, get_section_name, get_section_file_name)
11484 (get_containing_section, get_section_bfd_owner)
11485 (get_section_bfd_section, get_section_name, get_section_file_name)
11486 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11487 declare.
11488 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11489 (dwarf2_section_info::get_bfd_owner)
11490 (dwarf2_section_info::get_bfd_section)
11491 (dwarf2_section_info::get_name)
11492 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11493 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11494 (dwarf2_section_info::read): Now methods.
11495 * dwarf-index-write.c (class debug_names): Update.
11496
2c86cff9
TT
114972020-02-08 Tom Tromey <tom@tromey.com>
11498
11499 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11500 Move to dwarf2/section.h.
11501 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11502 (get_section_bfd_section, get_section_name)
11503 (get_section_file_name, get_section_id, get_section_flags)
11504 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11505 dwarf2/section.c.
11506 * dwarf2/section.h: New file.
11507 * dwarf2/section.c: New file, from dwarf2read.c.
11508 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11509
f4382c45
TT
115102020-02-08 Tom Tromey <tom@tromey.com>
11511
11512 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11513 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11514 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11515 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11516 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11517 * dwarf2/leb.h: New file, from dwarf2read.c.
11518 * dwarf2/leb.c: New file, from dwarf2read.c.
11519 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11520 Remove.
11521 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11522 (COMMON_SFILES): Add dwarf2/leb.c.
11523
01840b7a
JB
115242020-02-08 Joel Brobecker <brobecker@adacore.com>
11525
11526 GDB 9.1 released.
11527
dfcb27e4
IB
115282020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11529
11530 PR gdb/25190:
aac66a4c
SM
11531 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11532 * gdb/remote.c (remote_console_output): Update.
11533 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11534 (ui_file_puts): ...this.
11535 * gdb/ui-file.h (ui_file_puts): Add declaration.
11536 * gdb/utils.c (emit_style_escape): Update.
11537 (flush_wrap_buffer): Update.
11538 (fputs_maybe_filtered): Update.
11539 (fputs_unfiltered): Add function.
dfcb27e4 11540
faa17681
IB
115412020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11542
aac66a4c
SM
11543 * gdb/event-loop.c (gdb_wait_for_event): Update.
11544 * gdb/printcmd.c (printf_command): Update.
11545 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11546 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11547 (gdb_os_flush_stderr): Update.
11548 * gdb/remote.c (remote_console_output): Update.
11549 * gdb/ui-file.c (gdb_flush): Rename to...
11550 (ui_file_flush): ...this.
11551 (stderr_file::write): Update.
11552 (stderr_file::puts): Update.
11553 * gdb/ui-file.h (gdb_flush): Rename to...
11554 (ui_file_flush): ...this.
11555 * gdb/utils.c (gdb_flush): Add function.
11556 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11557
5abbbe1d
TT
115582020-02-07 Tom Tromey <tromey@adacore.com>
11559
11560 PR breakpoints/24915:
11561 * source.c (find_and_open_source): Do not check basenames_may_differ.
11562
919adfe8
TT
115632020-02-07 Tom Tromey <tom@tromey.com>
11564
11565 * README: Update gdbserver documentation.
11566 * gdbserver: Move to top level.
11567 * configure.tgt (build_gdbserver): Remove.
11568 * configure.ac: Remove --enable-gdbserver.
11569 * configure: Rebuild.
11570 * Makefile.in (distclean): Don't mention gdbserver.
11571
1d5d29e7
SV
115722020-02-06 Shahab Vahedi <shahab@synopsys.com>
11573
11574 * source-cache.c (source_cache::ensure): Surround
11575 get_plain_source_lines with a try/catch.
11576 (source_cache::get_line_charpos): Get rid of try/catch
11577 and only check for the return value of "ensure".
11578 * tui/tui-source.c (tui_source_window::set_contents):
11579 Simplify "nlines" calculation.
11580
6eb1129c
SV
115812020-02-06 Shahab Vahedi <shahab@synopsys.com>
11582
11583 * MAINTAINERS (Write After Approval): Add myself.
11584
c6a42d11
CB
115852020-02-05 Christian Biesinger <cbiesinger@google.com>
11586
11587 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11588 function call.
11589
c8ecdda6
CB
115902020-02-05 Christian Biesinger <cbiesinger@google.com>
11591
11592 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11593
f6480e70
MR
115942020-02-05 Maciej W. Rozycki <macro@wdc.com>
11595
11596 * nat/riscv-linux-tdesc.h: New file.
11597 * nat/riscv-linux-tdesc.c: New file, taking code from...
11598 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11599 ... here.
11600 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11601 NATDEPFILES.
11602
dcc9fbc6
AB
116032020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11604
11605 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11606 we don't set the fake simulator ptid to the null_ptid.
11607
719546c4
SM
116082020-02-03 Simon Marchi <simon.marchi@efficios.com>
11609
11610 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11611 * gdbthread.h (class thread_info) <resumed>: Likewise.
11612 * infrun.c (resume_1): Likewise.
11613 (proceed): Likewise.
11614 (infrun_thread_stop_requested): Likewise.
11615 (stop_all_threads): Likewise.
11616 (handle_inferior_event): Likewise.
11617 (restart_threads): Likewise.
11618 (finish_step_over): Likewise.
11619 (keep_going_stepped_thread): Likewise.
11620 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11621 (linux_handle_extended_wait): Likewise.
11622 * record-btrace.c (get_thread_current_frame_id): Likewise.
11623 * record-full.c (record_full_wait_1): Likewise.
11624 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11625 * target.c (target_resume): Likewise.
11626 * thread.c (set_running_thread): Likewise.
11627
e409c542
AKS
116282020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11629
11630 * f-valprint.c (f77_print_array_1): Changed datatype of index
11631 variable to LONGEST from int to enable it to contain bound
11632 values correctly.
11633
ee98c0da
MR
116342020-02-03 Maciej W. Rozycki <macro@wdc.com>
11635
11636 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11637 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11638 offsets according to FLEN determined.
11639 (riscv_linux_nat_target::read_description): Determine FLEN
11640 dynamically.
11641 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11642 according to FLEN determined.
11643 (riscv_linux_nat_target::store_registers): Likewise.
11644
aa66aac4
SV
116452020-02-01 Shahab Vahedi <shahab@synopsys.com>
11646
11647 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11648 when reg->group is empty and reggroup is not.
11649
fd9faca8
TT
116502020-01-31 Tom Tromey <tromey@adacore.com>
11651
11652 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11653 Call beneath target's mourn_inferior after unpushing.
11654
42330a68
AB
116552020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11656
11657 PR tui/9765
11658 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11659 have enough lines to fill the screen, still return the lowest
11660 address we found.
11661
7a27a45b
AB
116622020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11663
11664 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11665 '-', '<', and '>' commands.
11666
c47f70e2
PA
116672020-01-29 Pedro Alves <palves@redhat.com>
11668 Sergio Durigan Junior <sergiodj@redhat.com>
11669
11670 * infcmd.c (construct_inferior_arguments): Assert that
11671 'argc' is greater than 0.
11672
5133a315
LM
116732020-01-29 Luis Machado <luis.machado@linaro.org>
11674
11675 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11676 (BRK_INSN_MASK): Define to 0xd4200000.
11677 (aarch64_program_breakpoint_here_p): New function.
11678 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11679 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11680 breakpoint.c.
11681 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11682 breakpoint.h
11683 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11684 call gdbarch_program_breakpoint_here_p.
11685 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11686 default_program_breakpoint_here_p, changed return type to bool and
11687 simplified.
11688 * breakpoint.h (program_breakpoint_here): Moved prototype to
11689 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11690 return type to bool.
11691 * gdbarch.c: Regenerate.
11692 * gdbarch.h: Regenerate.
11693 * gdbarch.sh (program_breakpoint_here_p): New method.
11694 * infrun.c (handle_signal_stop): Call
11695 gdbarch_program_breakpoint_here_p.
11696
168f8c6b
TT
116972020-01-26 Tom Tromey <tom@tromey.com>
11698
11699 * ctfread.c (struct ctf_fp_info): Reindent.
11700 (_initialize_ctfread): Remove.
11701
128a391f
TT
117022020-01-26 Tom Tromey <tom@tromey.com>
11703
11704 * psymtab.c (partial_map_expand_apply)
11705 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11706 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11707 (psym_print_stats, psym_expand_symtabs_for_function)
11708 (psym_map_symbol_filenames, psym_map_matching_symbols)
11709 (psym_expand_symtabs_matching)
11710 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11711 (maintenance_check_psymtabs): Use new methods.
11712 * psympriv.h (struct partial_symtab) <readin_p,
11713 get_compunit_symtab>: New methods.
11714 <readin, compunit_symtab>: Remove members.
11715 (struct standard_psymtab): New.
11716 (struct legacy_psymtab): Derive from standard_psymtab.
11717 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11718 standard_psymtab.
11719 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11720
0494dbec
TT
117212020-01-26 Tom Tromey <tom@tromey.com>
11722
11723 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11724 read_dependencies. Add assert.
11725 * psymtab.c (partial_symtab::read_dependencies): New method.
11726 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11727 method.
11728 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11729 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11730 read_dependencies.
11731 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11732 Add assert.
11733
8566b89b
TT
117342020-01-26 Tom Tromey <tom@tromey.com>
11735
11736 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11737 Call expand_psymtab.
11738 (xcoff_read_symtab): Call expand_psymtab.
11739 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11740 legacy_expand_psymtab.
11741 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11742 method.
11743 (struct legacy_psymtab) <expand_psymtab>: Implement.
11744 <legacy_expand_psymtab>: New member.
11745 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11746 (parse_partial_symbols): Set legacy_expand_psymtab.
11747 (psymtab_to_symtab_1): Change argument order. Call
11748 expand_psymtab.
11749 (new_psymtab): Set legacy_expand_psymtab.
11750 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11751 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11752 expand_psymtab.
11753 (dwarf2_psymtab::expand_psymtab): Rename from
11754 psymtab_to_symtab_1. Call expand_psymtab.
11755 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11756 (dbx_end_psymtab): Likewise.
11757 (dbx_psymtab_to_symtab_1): Change argument order. Call
11758 expand_psymtab.
11759 (dbx_read_symtab): Call expand_psymtab.
11760 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11761 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11762 (ctf_psymtab::read_symtab): Call expand_psymtab.
11763
077cbab2
TT
117642020-01-26 Tom Tromey <tom@tromey.com>
11765
11766 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11767 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11768 messages.
11769 * mdebugread.c (mdebug_read_symtab): Remove prints.
11770 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11771 assert.
11772 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11773
891813be
TT
117742020-01-26 Tom Tromey <tom@tromey.com>
11775
11776 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11777 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11778 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11779 legacy_symtab.
11780 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11781 * psymtab.c (psymtab_to_symtab): Call method.
11782 (dump_psymtab): Update.
11783 * psympriv.h (struct partial_symtab): Add virtual destructor.
11784 <read_symtab>: New method.
11785 (struct legacy_symtab): New.
11786 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11787 (struct pst_map) <pst>: Now a legacy_psymtab.
11788 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11789 (new_psymtab): Use legacy_psymtab.
11790 * dwarf2read.h (struct dwarf2_psymtab): New.
11791 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11792 * dwarf2read.c (dwarf2_create_include_psymtab)
11793 (dwarf2_build_include_psymtabs, create_type_unit_group)
11794 (create_partial_symtab, process_psymtab_comp_unit_reader)
11795 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11796 (set_partial_user): Use dwarf2_psymtab.
11797 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11798 (psymtab_to_symtab_1, process_full_comp_unit)
11799 (process_full_type_unit, dwarf2_ranges_read)
11800 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11801 (dwarf_decode_lines): Use dwarf2_psymtab.
11802 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11803 (add_address_entry_worker, write_one_signatured_type)
11804 (recursively_count_psymbols, recursively_write_psymbols)
11805 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11806 (write_debug_names): Likewise.
11807 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11808 <pst>: Now a legacy_psymtab.
11809 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11810 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11811 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11812 * ctfread.c (struct ctf_psymtab): New.
11813 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11814 ctf_psymtab.
11815 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11816 (create_partial_symtab): Return a ctf_psymtab.
11817 (scan_partial_symbols): Update.
11818
c3693a1d
TT
118192020-01-26 Tom Tromey <tom@tromey.com>
11820
11821 * xcoffread.c (xcoff_start_psymtab): Use new.
11822 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11823 renamed from start_psymtab_common.
11824 * psympriv.h (struct partial_symtab): Add new constructor.
11825 (start_psymtab_common): Don't declare.
11826 * mdebugread.c (parse_partial_symbols): Use new.
11827 * dwarf2read.c (create_partial_symtab): Use new.
11828 * dbxread.c (start_psymtab): Use new.
11829 * ctfread.c (create_partial_symtab): Use new.
11830
32caafd0
TT
118312020-01-26 Tom Tromey <tom@tromey.com>
11832
11833 * xcoffread.c (xcoff_end_psymtab): Use new.
11834 * psymtab.c (start_psymtab_common): Use new.
11835 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11836 Update.
11837 * psympriv.h (struct partial_symtab): Add parameters to
11838 constructor. Don't inline.
11839 (allocate_psymtab): Don't declare.
11840 * mdebugread.c (new_psymtab): Use new.
11841 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11842 * dbxread.c (dbx_end_psymtab): Use new.
11843
abaa2f23
TT
118442020-01-26 Tom Tromey <tom@tromey.com>
11845
11846 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11847 allocate_psymtab. Update documentation.
11848 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11849 allocate_psymtab. Do not use new.
11850 (allocate_psymtab): Use new. Update.
11851
6d94535f
TT
118522020-01-26 Tom Tromey <tom@tromey.com>
11853
11854 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11855 * psymtab.c (psym_print_stats): Update.
11856 * psympriv.h (struct partial_symtab) <readin,
11857 psymtabs_addrmap_supported, anonymous>: Now bool.
11858 * mdebugread.c (psymtab_to_symtab_1): Update.
11859 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11860 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11861 (process_full_comp_unit, process_full_type_unit): Update.
11862 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11863 * ctfread.c (psymtab_to_symtab): Update.
11864
6f17252b
TT
118652020-01-26 Tom Tromey <tom@tromey.com>
11866
11867 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11868 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11869 * psymtab.c (psymtab_storage): Delete psymtabs.
11870 (psymtab_storage::allocate_psymtab): Use new.
11871 (psymtab_storage::discard_psymtab): Use delete.
11872 * psympriv.h (struct partial_symtab): Add constructor and
11873 initializers.
11874
f6f1cebc
TT
118752020-01-26 Tom Tromey <tom@tromey.com>
11876
11877 * machoread.c: Do not include psympriv.h.
11878
e47e48f6
PW
118792020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11880
11881 * NEWS: Mention the new option and the set/show commands.
11882
a2fedca9
PW
118832020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11884
11885 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11886 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11887 (validate_exec_file): New variables, enums, functions.
11888 (exec_file_locate_attach, print_section_info): Style the filenames.
11889 (_initialize_exec): Install show_exec_file_mismatch_command and
11890 set_exec_file_mismatch_command.
11891 * gdbcore.h (validate_exec_file): Declare.
11892 * infcmd.c (attach_command): Call validate_exec_file.
11893 * remote.c ( remote_target::remote_add_inferior): Likewise.
11894
7ffa82e1
AB
118952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11896
11897 * frame.c (find_frame_sal): Move call to get_next_frame into more
11898 inner scope.
11899 * inline-frame.c (inilne_state) <inline_state>: Update argument
11900 types.
11901 (inilne_state) <skipped_symbol>: Rename to...
11902 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11903 (skip_inline_frames): Build vector of skipped symbols and use this
11904 to reate the inline_state.
11905 (inline_skipped_symbol): Add a comment and some assertions, fetch
11906 skipped symbol from the list.
11907
3d92a3e3
AB
119082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11909
11910 * buildsym.c (lte_is_less_than): Delete.
11911 (buildsym_compunit::end_symtab_with_blockvector): Create local
11912 lambda function to sort line table entries, and use
11913 std::stable_sort instead of std::sort.
11914 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11915 markers when looking for a previous line.
11916
94a72be7
AB
119172020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11918
11919 * dwarf2read.c (lnp_state_machine::record_line): Include
11920 end_sequence parameter in debug print out. Record the line if we
11921 are at an end_sequence marker even if it's not the start of a
11922 statement.
11923 * symmisc.c (maintenance_print_one_line_table): Print end of
11924 sequence markers with 'END' not '0'.
11925
53af73bf
PA
119262020-01-24 Pedro Alves <palves@redhat.com>
11927
11928 PR gdb/25410
11929 * thread.c (scoped_restore_current_thread::restore): Use
11930 switch_to_inferior_no_thread.
11931 * exec.c: Include "progspace-and-thread.h".
11932 (add_target_sections, remove_target_sections):
11933 scoped_restore_current_pspace_and_thread instead of
11934 scoped_restore_current_thread.
11935 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11936 and aspace to the inferior before calling clone_program_space.
11937 Remove stale comment.
11938
3050c6f4
CB
119392020-01-24 Christian Biesinger <cbiesinger@google.com>
11940
11941 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11942 (arm_netbsd_nat_target::fetch_registers): ...this.
11943 (arm_nbsd_nat_target::store_registers): Rename to...
11944 (arm_netbsd_nat_target::store_registers): ...this.
11945
73685c7e
CB
119462020-01-24 Christian Biesinger <cbiesinger@google.com>
11947
11948 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11949 register_t.
11950
89203d40
CB
119512020-01-24 Christian Biesinger <cbiesinger@google.com>
11952
11953 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11954 Update comment.
11955 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11956 Likewise.
11957 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11958 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11959 the correct replacement (iterate_over_regset_sections).
11960 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11961 Update comment.
11962
1ba1ac88
AB
119632020-01-24 Graham Markall <graham.markall@embecosm.com>
11964
11965 PR gdb/23718
11966 * gdb/python/python.c (execute_gdb_command): Call
11967 async_enable_stdin in catch block.
11968
f3364a6d
AB
119692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11970
11971 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11972 SWITCH_THRU_ALL_UIS.
11973
733d0a67
AB
119742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11975
11976 PR tui/9765
11977 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11978 comment, add extra parameter, and update to store previous symbol
11979 when appropriate.
11980 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11981 add extra parameter.
11982 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11983 remove unneeded parameter, add try/catch around gdb_print_insn,
11984 rewrite to add items to asm_lines vector.
11985 (tui_find_backward_disassembly_start_address): New function.
11986 (tui_find_disassembly_address): Updated throughout.
11987 (tui_disasm_window::set_contents): Update for changes to
11988 tui_disassemble.
11989 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11990 number of lines to scroll.
11991
b3b3bada
SM
119922020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11993
11994 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11995 (SECT_OFF_DATA): Likewise.
11996 (SECT_OFF_RODATA): Likewise.
11997 (SECT_OFF_TEXT): Likewise.
11998 (SECT_OFF_BSS): Likewise.
11999 (struct objfile) <text_section_offset, data_section_offset>: New
12000 methods.
12001 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12002 objfile::text_section_offset.
12003 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12004 * coffread.c (coff_symtab_read): Likewise.
12005 (enter_linenos): Likewise.
12006 (process_coff_symbol): Likewise.
12007 * ctfread.c (get_objfile_text_range): Likewise.
12008 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12009 Use objfile::data_section_offset.
12010 * dwarf2-frame.c (execute_cfa_program): Use
12011 objfile::text_section_offset.
12012 (dwarf2_frame_find_fde): Likewise.
12013 * dwarf2read.c (create_addrmap_from_index): Likewise.
12014 (create_addrmap_from_aranges): Likewise.
12015 (dw2_find_pc_sect_compunit_symtab): Likewise.
12016 (process_psymtab_comp_unit_reader): Likewise.
12017 (add_partial_symbol): Likewise.
12018 (add_partial_subprogram): Likewise.
12019 (process_full_comp_unit): Likewise.
12020 (read_file_scope): Likewise.
12021 (read_func_scope): Likewise.
12022 (read_lexical_block_scope): Likewise.
12023 (read_call_site_scope): Likewise.
12024 (dwarf2_rnglists_process): Likewise.
12025 (dwarf2_ranges_process): Likewise.
12026 (dwarf2_ranges_read): Likewise.
12027 (dwarf_decode_lines_1): Likewise.
12028 (new_symbol): Likewise.
12029 (dwarf2_fetch_die_loc_sect_off): Likewise.
12030 (dwarf2_per_cu_text_offset): Likewise.
12031 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12032 * hppa-tdep.c (read_unwind_info): Likewise.
12033 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12034 * psympriv.h (struct partial_symtab): Likewise.
12035 * psymtab.c (find_pc_sect_psymtab): Likewise.
12036 * solib-svr4.c (enable_break): Likewise.
12037 * stap-probe.c (relocate_address): Use
12038 objfile::data_section_offset.
12039 * xcoffread.c (enter_line_range): Use
12040 objfile::text_section_offset.
12041 (read_xcoff_symtab): Likewise.
12042
ab53f382
SM
120432020-01-23 Simon Marchi <simon.marchi@efficios.com>
12044
12045 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12046 declaration to narrower scopes.
12047
e7eee665
SM
120482020-01-23 Simon Marchi <simon.marchi@efficios.com>
12049
12050 * darwin-nat.h (struct darwin_exception_msg, enum
12051 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12052 Move up.
12053 (class darwin_nat_target) <wait_1, check_new_threads,
12054 decode_exception_message, decode_message, stop_inferior,
12055 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12056 * darwin-nat.c (darwin_check_new_threads): Rename to...
12057 (darwin_nat_target::check_new_threads): ... this.
12058 (darwin_suspend_inferior_it): Remove.
12059 (darwin_decode_exception_message): Rename to...
12060 (darwin_nat_target::decode_exception_message): ... this.
12061 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12062 (darwin_decode_message): Rename to...
12063 (darwin_nat_target::decode_message): ... this.
12064 (cancel_breakpoint): Rename to...
12065 (darwin_nat_target::cancel_breakpoint): ... this.
12066 (darwin_wait): Rename to...
12067 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12068 instead of iterate_over_inferiors.
12069 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12070 (darwin_stop_inferior): Rename to...
12071 (darwin_nat_target::stop_inferior): ... this.
12072 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12073 (darwin_init_thread_list): Rename to...
12074 (darwin_nat_target::init_thread_list): ... this.
12075 (darwin_ptrace_him): Rename to...
12076 (darwin_nat_target::ptrace_him): ... this.
12077 (darwin_nat_target::create_inferior): Pass lambda function to
12078 fork_inferior.
12079 (darwin_nat_target::detach): Call stop_inferior instead of
12080 darwin_stop_inferior.
12081 * fork-inferior.h (fork_inferior): Change init_trace_fun
12082 parameter to gdb::function_view.
12083 * fork-inferior.c (fork_inferior): Likewise.
12084
c162ed3e
HD
120852020-01-23 Hannes Domani <ssbssa@yahoo.de>
12086
12087 * i386-cygwin-tdep.c (core_process_module_section): Update.
12088 * windows-nat.c (struct lm_info_windows): Add text_offset.
12089 (windows_xfer_shared_libraries): Update.
12090 * windows-tdep.c (windows_xfer_shared_library):
12091 Add text_offset_cached argument.
12092 * windows-tdep.h (windows_xfer_shared_library): Update.
12093
a1237872
SM
120942020-01-21 Simon Marchi <simon.marchi@efficios.com>
12095
12096 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12097
b3ee6dd9
SM
120982020-01-21 Simon Marchi <simon.marchi@efficios.com>
12099
12100 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12101 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12102 replace with range-based for.
12103 (gdbsim_interrupt_inferior): Remove.
12104 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12105 with a range-based for. Inline code from
12106 gdbsim_interrupt_inferior.
12107
f9fac3c8
SM
121082020-01-21 Simon Marchi <simon.marchi@efficios.com>
12109
12110 * infrun.c (proceed): Fix indentation.
12111
f6474de9
TT
121122020-01-21 Tom Tromey <tromey@adacore.com>
12113
12114 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12115 * python/python.c (python_extension_ops): Update.
12116 (gdbpy_colorize): New function.
12117 * python/lib/gdb/__init__.py (colorize): New function.
12118 * extension.h (ext_lang_colorize): Declare.
12119 * extension.c (ext_lang_colorize): New function.
12120 * extension-priv.h (struct extension_language_ops) <colorize>: New
12121 member.
12122 * cli/cli-style.c (_initialize_cli_style): Update help text.
12123
f0c702d4
LM
121242020-01-21 Luis Machado <luis.machado@linaro.org>
12125
12126 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12127 <cond>: Change type to bool.
12128 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12129 (aarch64_displaced_step_cb): Likewise.
12130 (aarch64_displaced_step_tb): Likewise.
12131
1ab139e5
LM
121322020-01-21 Luis Machado <luis.machado@linaro.org>
12133
12134 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12135 output.
12136
0c271889
LM
121372020-01-21 Luis Machado <luis.machado@linaro.org>
12138
12139 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12140 <pc_adjust>: Adjust the documentation.
12141 (aarch64_displaced_step_fixup): Check if PC really moved before
12142 adjusting it.
12143
4d89c1c7
TT
121442020-01-19 Tom Tromey <tom@tromey.com>
12145
12146 * disasm.c (~gdb_disassembler): New destructor.
12147 (gdb_buffered_insn_length): Call disassemble_free_target.
12148 * disasm.h (class gdb_disassembler): Declare destructor. Use
12149 DISABLE_COPY_AND_ASSIGN.
12150
c0ab21c2
TT
121512020-01-19 Tom Tromey <tom@tromey.com>
12152
12153 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12154 (die_reader_func_ftype): Remove.
12155 (cutu_reader): New class.
12156 (dw2_get_file_names_reader): Remove "data" parameter.
12157 (dw2_get_file_names): Use cutu_reader.
12158 (create_debug_type_hash_table): Update.
12159 (read_cutu_die_from_dwo): Update comment.
12160 (lookup_dwo_unit): Add dwo_name parameter.
12161 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12162 die_reader_func_ftype and data parameters.
12163 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12164 Remove die_reader_func_ftype and data parameters.
12165 (~cutu_reader): New; from init_cutu_and_read_dies.
12166 (cutu_reader::cutu_reader): Rename from
12167 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12168 and data parameters.
12169 (init_cutu_and_read_dies_simple): Remove.
12170 (struct process_psymtab_comp_unit_data): Remove.
12171 (process_psymtab_comp_unit_reader): Remove data parameter; add
12172 want_partial_unit and pretend_language parameters.
12173 (process_psymtab_comp_unit): Use cutu_reader.
12174 (build_type_psymtabs_reader): Remove data parameter.
12175 (build_type_psymtabs_1): Use cutu_reader.
12176 (process_skeletonless_type_unit): Likewise.
12177 (load_partial_comp_unit_reader): Remove.
12178 (load_partial_comp_unit): Use cutu_reader.
12179 (load_full_comp_unit_reader): Remove.
12180 (load_full_comp_unit): Use cutu_reader.
12181 (struct create_dwo_cu_data): Remove.
12182 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12183 dwo_unit parameters.
12184 (create_cus_hash_table): Use cutu_reader.
12185 (struct dwarf2_read_addr_index_data): Remove.
12186 (dwarf2_read_addr_index_reader): Remove.
12187 (dwarf2_read_addr_index): Use cutu_reader.
12188 (read_signatured_type_reader): Remove.
12189 (read_signatured_type): Use cutu_reader.
12190
45bbae5c
TT
121912020-01-19 Tom Tromey <tom@tromey.com>
12192
12193 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12194 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12195 (tui_wrefresh): Declare.
12196 * tui/tui-wingeneral.c (suppress_output): New global.
12197 (tui_suppress_output, ~tui_suppress_output): New constructor and
12198 destructor.
12199 (tui_wrefresh): New function.
12200 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12201 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12202 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12203 method.
12204 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12205 tui_wrefresh.
12206 (tui_data_window::no_refresh): New method.
12207 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12208 (tui_reg_command): Use tui_suppress_output
12209 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12210 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12211 method.
12212 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12213
4f13c1c0
TT
122142020-01-19 Tom Tromey <tom@tromey.com>
12215
12216 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12217 Handle case where symtab is null.
12218
fa47e446
SM
122192020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12220
12221 * linux-fork.c (one_fork_p): Simplify.
12222
26f42329
SM
122232020-01-17 Simon Marchi <simon.marchi@efficios.com>
12224
12225 * top.c (struct qt_args): Remove.
12226 (kill_or_detach): Change return type to void, replace `void *`
12227 parameter with a proper one.
12228 (print_inferior_quit_action): Likewise.
12229 (quit_confirm): Use range-based for loop to iterate over inferiors.
12230 (quit_force): Likewise.
12231
a9ac81b1
SM
122322020-01-17 Simon Marchi <simon.marchi@efficios.com>
12233
12234 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12235 `void *` parameter with proper parameters.
12236 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12237 (print_one_inferior): Change return type to void, replace `void *`
12238 parameter with proper parameters.
12239 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12240 inferiors.
12241 (get_other_inferior): Remove.
12242 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12243 inferiors.
12244
788eca49
SM
122452020-01-17 Simon Marchi <simon.marchi@efficios.com>
12246
12247 * mi/mi-interp.c (report_initial_inferior): Remove.
12248 (mi_interp::init): Use range-based for to iterate over inferiors.
12249
d9bc85b6
SM
122502020-01-17 Simon Marchi <simon.marchi@efficios.com>
12251
12252 * python/py-inferior.c (build_inferior_list): Remove.
12253 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12254
40c94099
CB
122552020-01-16 Christian Biesinger <cbiesinger@google.com>
12256
12257 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12258 (btrace_stitch_trace): Likewise.
12259 * charset.c (intermediate_encoding): Likewise (vaild).
12260 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12261 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12262 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12263
e0cdfe3c
HD
122642020-01-16 Hannes Domani <ssbssa@yahoo.de>
12265
12266 * windows-tdep.c (windows_get_tlb_type):
12267 Add rtl_user_process_parameters type.
12268
790f1718 122692020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12270 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12271
12272 PR build/24805
12273 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12274 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12275 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12276 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12277 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12278 (ps_plog): Redeclare exported functions with default visibility.
12279
3112ed97
NA
122802020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12281
12282 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12283 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12284
8dc3273e
SM
122852020-01-15 Simon Marchi <simon.marchi@efficios.com>
12286
12287 * infcmd.c (post_create_inferior): Use get_thread_regcache
12288 instead of get_current_regcache.
12289
ff47f4f0
TT
122902020-01-14 Tom Tromey <tom@tromey.com>
12291
12292 PR symtab/12535:
12293 * python/python.c (gdbpy_decode_line): Treat empty string the same
12294 as no argument.
12295
975f45b7
TT
122962020-01-14 Tom Tromey <tom@tromey.com>
12297
12298 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12299
25e57356
TT
123002020-01-14 Tom Tromey <tom@tromey.com>
12301
12302 * nat/linux-btrace.c: Don't include <config.h>.
12303 * nat/linux-ptrace.c: Don't include <config.h>.
12304 * nat/x86-linux-dregs.c: Don't include <config.h>.
12305
05ea2a05
TT
123062020-01-14 Tom Tromey <tom@tromey.com>
12307
12308 * configure: Rebuild.
12309 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12310
01027315
TT
123112020-01-14 Tom Tromey <tom@tromey.com>
12312
12313 * nat/x86-linux-dregs.c: Include configh.h.
12314 * nat/linux-ptrace.c: Include configh.h.
12315 * nat/linux-btrace.c: Include configh.h.
12316 * defs.h: Include config.h, bfd.h.
12317 * configure.ac: Don't source common.host.
12318 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12319 * configure: Rebuild.
12320 * acinclude.m4: Update path.
12321 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12322 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12323 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12324 (CLIBS): Add LIBSUPPORT.
12325 (CDEPS): Likewise.
12326 (COMMON_SFILES): Remove gdbsupport files.
12327 (HFILES_NO_SRCDIR): Likewise.
12328 (stamp-version): Update path to create-version.sh.
12329 (ALLDEPFILES): Remove gdbsupport files.
12330
b2ceabe8
TT
123312020-01-14 Tom Tromey <tom@tromey.com>
12332
12333 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12334 USE_WIN32API when needed.
12335 * configure.ac (USE_WIN32API): Don't define.
12336 (WIN32LIBS): Use WIN32APILIBS.
12337 * configure: Rebuild.
12338
25c51f71
TT
123392020-01-14 Tom Tromey <tom@tromey.com>
12340
12341 * configure: Rebuild.
12342 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12343
717c684d
BE
123442020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12345
12346 * skip.c (skip_function_command): Make skip w/o arguments use the
12347 name of the inlined function if pc is inside any inlined function.
12348
7da6a5b9
LM
123492020-01-14 Luis Machado <luis.machado@linaro.org>
12350
12351 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12352 * infrun.c (resume_1): Likewise.
12353 (handle_inferior_event): Remove stale comment.
12354 * linux-nat.c (linux_nat_target::resume): Update comments.
12355 (save_stop_reason): Likewise.
12356 (linux_nat_filter_event): Likewise.
12357 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12358
44e4c775
AB
123592020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12360
12361 * elfread.c (record_minimal_symbol): Set section index to 0 for
12362 non-allocatable sections.
12363
18a8505e
AT
12364
123652020-01-13 Ali Tamur <tamur@google.com>
12366
12367 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12368 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12369 to gdb::optional. Update comments.
12370 (dwo_file): Update comments.
12371 (read_attribute): Update API to take an additional out parameter,
12372 need_reprocess. This is used to mark attributes that need other
12373 attributes (e.g. str_offsets_base) for correct computation which may not
12374 have been read yet.
12375 (read_attribute_reprocess): New function declaration.
12376 (read_addr_index): Likewise.
12377 (read_dwo_str_index): Likewise.
12378 (read_stub_str_index): Likewise.
12379 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12380 (lookup_addr_base): New function definition.
12381 (lookup_ranges_base): Likewise.
12382 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12383 lookup_ranges_base.
12384 (init_cutu_and_read_dies): Update comments.
12385 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12386 unit. This is used to inherit parent's str_offsets_base and addr_base.
12387 Update comments.
12388 (init_cutu_and_read_dies_simple): Reflect API changes.
12389 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12390 (create_cus_hash_table): Change API to take parent compile unit.
12391 Reflect API changes.
12392 (open_and_init_dwo_file): Reflect API changes.
12393 (dwarf2_get_pc_bounds): Update comments.
12394 (dwarf2_record_block_ranges): Likewise.
12395 (read_full_die_1): Change implementation to reprocess attributes that
12396 need str_offsets_base and addr_base.
12397 (partial_die_info::read): Likewise.
12398 (read_attribute_reprocess): New function definition.
12399 (read_attribute_value): Change API to take an additional out parameter,
12400 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12401 when a non-dwo compile unit has index based attributes.
12402 (read_attribute): Reflect API changes.
12403 (read_addr_index_1): Reflect API changes. Update comments.
12404 (dwarf2_read_addr_index_data): Reflect API changes.
12405 (dwarf2_read_addr_index): Likewise.
12406 (read_str_index): Change API and implementation. This becomes a helper
12407 to be used by the new string index related methods. Update error
12408 message and comments.
12409 (read_dwo_str_index): New function definition.
12410 (read_stub_str_index): Likewise.
12411 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12412 * symfile.h (dwarf2_debug_sections): Likewise.
12413 * xcoffread.c (dwarf2_debug_sections): Likewise.
12414
0cac9354
SM
124152020-01-13 Simon Marchi <simon.marchi@efficios.com>
12416
12417 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12418 core_reg_sect type to gdb_byte *.
12419 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12420 * cris-tdep.c (fetch_core_registers): Likewise.
12421 * corelow.c (core_target::get_core_register_section): Change
12422 type of `contents` to gdb::byte_vector.
12423
9a6d629c
AB
124242020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12425
12426 * tui/tui-wingeneral.c (box_win): Position the title in the center
12427 of the border.
12428
d8b2f9e3
SM
124292020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12430
12431 * corelow.c (core_target::get_core_register_section): Use
12432 std::vector instead of alloca.
12433
bb564c58
SM
124342020-01-13 Simon Marchi <simon.marchi@efficios.com>
12435
12436 * warning.m4: Add -Wmissing-declarations to build_warnings.
12437 * configure: Re-generate.
12438
6b366111
SM
124392020-01-13 Simon Marchi <simon.marchi@efficios.com>
12440
12441 * python/python.c (init__gdb_module): Add declaration.
12442
6c265988
SM
124432020-01-13 Simon Marchi <simon.marchi@efficios.com>
12444
12445 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12446 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12447 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12448 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12449 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12450 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12451 * ada-exp.y (_initialize_ada_exp): Add declaration.
12452 * ada-lang.c (_initialize_ada_language): Add declaration.
12453 * ada-tasks.c (_initialize_tasks): Add declaration.
12454 * agent.c (_initialize_agent): Add declaration.
12455 * aix-thread.c (_initialize_aix_thread): Add declaration.
12456 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12457 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12458 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12459 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12460 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12461 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12462 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12463 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12464 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12465 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12466 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12467 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12468 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12469 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12470 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12471 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12472 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12473 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12474 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12475 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12476 * annotate.c (_initialize_annotate): Add declaration.
12477 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12478 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12479 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12480 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12481 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12482 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12483 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12484 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12485 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12486 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12487 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12488 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12489 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12490 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12491 * auto-load.c (_initialize_auto_load): Add declaration.
12492 * auxv.c (_initialize_auxv): Add declaration.
12493 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12494 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12495 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12496 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12497 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12498 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12499 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12500 * breakpoint.c (_initialize_breakpoint): Add declaration.
12501 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12502 * btrace.c (_initialize_btrace): Add declaration.
12503 * charset.c (_initialize_charset): Add declaration.
12504 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12505 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12506 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12507 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12508 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12509 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12510 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12511 * coffread.c (_initialize_coffread): Add declaration.
12512 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12513 * compile/compile.c (_initialize_compile): Add declaration.
12514 * complaints.c (_initialize_complaints): Add declaration.
12515 * completer.c (_initialize_completer): Add declaration.
12516 * copying.c (_initialize_copying): Add declaration.
12517 * corefile.c (_initialize_core): Add declaration.
12518 * corelow.c (_initialize_corelow): Add declaration.
12519 * cp-abi.c (_initialize_cp_abi): Add declaration.
12520 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12521 * cp-support.c (_initialize_cp_support): Add declaration.
12522 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12523 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12524 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12525 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12526 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12527 * ctfread.c (_initialize_ctfread): Add declaration.
12528 * d-lang.c (_initialize_d_language): Add declaration.
12529 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12530 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12531 * dbxread.c (_initialize_dbxread): Add declaration.
12532 * dcache.c (_initialize_dcache): Add declaration.
12533 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12534 * disasm.c (_initialize_disasm): Add declaration.
12535 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12536 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12537 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12538 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12539 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12540 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12541 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12542 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12543 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12544 * elfread.c (_initialize_elfread): Add declaration.
12545 * exec.c (_initialize_exec): Add declaration.
12546 * extension.c (_initialize_extension): Add declaration.
12547 * f-lang.c (_initialize_f_language): Add declaration.
12548 * f-valprint.c (_initialize_f_valprint): Add declaration.
12549 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12550 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12551 * filesystem.c (_initialize_filesystem): Add declaration.
12552 * findcmd.c (_initialize_mem_search): Add declaration.
12553 * findvar.c (_initialize_findvar): Add declaration.
12554 * fork-child.c (_initialize_fork_child): Add declaration.
12555 * frame-base.c (_initialize_frame_base): Add declaration.
12556 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12557 * frame.c (_initialize_frame): Add declaration.
12558 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12559 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12560 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12561 * gcore.c (_initialize_gcore): Add declaration.
12562 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12563 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12564 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12565 * gdbarch.c (_initialize_gdbarch): Add declaration.
12566 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12567 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12568 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12569 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12570 * go-lang.c (_initialize_go_language): Add declaration.
12571 * go32-nat.c (_initialize_go32_nat): Add declaration.
12572 * guile/guile.c (_initialize_guile): Add declaration.
12573 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12574 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12575 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12576 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12577 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12578 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12579 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12580 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12581 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12582 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12583 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12584 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12585 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12586 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12587 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12588 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12589 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12590 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12591 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12592 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12593 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12594 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12595 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12596 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12597 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12598 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12599 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12600 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12601 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12602 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12603 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12604 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12605 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12606 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12607 * infcall.c (_initialize_infcall): Add declaration.
12608 * infcmd.c (_initialize_infcmd): Add declaration.
12609 * inflow.c (_initialize_inflow): Add declaration.
12610 * infrun.c (_initialize_infrun): Add declaration.
12611 * interps.c (_initialize_interpreter): Add declaration.
12612 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12613 * jit.c (_initialize_jit): Add declaration.
12614 * language.c (_initialize_language): Add declaration.
12615 * linux-fork.c (_initialize_linux_fork): Add declaration.
12616 * linux-nat.c (_initialize_linux_nat): Add declaration.
12617 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12618 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12619 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12620 * m2-lang.c (_initialize_m2_language): Add declaration.
12621 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12622 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12623 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12624 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12625 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12626 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12627 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12628 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12629 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12630 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12631 * machoread.c (_initialize_machoread): Add declaration.
12632 * macrocmd.c (_initialize_macrocmd): Add declaration.
12633 * macroscope.c (_initialize_macroscope): Add declaration.
12634 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12635 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12636 * maint.c (_initialize_maint_cmds): Add declaration.
12637 * mdebugread.c (_initialize_mdebugread): Add declaration.
12638 * memattr.c (_initialize_mem): Add declaration.
12639 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12640 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12641 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12642 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12643 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12644 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12645 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12646 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12647 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12648 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12649 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12650 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12651 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12652 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12653 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12654 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12655 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12656 * mipsread.c (_initialize_mipsread): Add declaration.
12657 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12658 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12659 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12660 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12661 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12662 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12663 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12664 * nto-procfs.c (_initialize_procfs): Add declaration.
12665 * objc-lang.c (_initialize_objc_language): Add declaration.
12666 * observable.c (_initialize_observer): Add declaration.
12667 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12668 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12669 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12670 * osabi.c (_initialize_gdb_osabi): Add declaration.
12671 * osdata.c (_initialize_osdata): Add declaration.
12672 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12673 * parse.c (_initialize_parse): Add declaration.
12674 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12675 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12676 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12677 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12678 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12679 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12680 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12681 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12682 * printcmd.c (_initialize_printcmd): Add declaration.
12683 * probe.c (_initialize_probe): Add declaration.
12684 * proc-api.c (_initialize_proc_api): Add declaration.
12685 * proc-events.c (_initialize_proc_events): Add declaration.
12686 * proc-service.c (_initialize_proc_service): Add declaration.
12687 * procfs.c (_initialize_procfs): Add declaration.
12688 * producer.c (_initialize_producer): Add declaration.
12689 * psymtab.c (_initialize_psymtab): Add declaration.
12690 * python/python.c (_initialize_python): Add declaration.
12691 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12692 * record-btrace.c (_initialize_record_btrace): Add declaration.
12693 * record-full.c (_initialize_record_full): Add declaration.
12694 * record.c (_initialize_record): Add declaration.
12695 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12696 * regcache.c (_initialize_regcache): Add declaration.
12697 * reggroups.c (_initialize_reggroup): Add declaration.
12698 * remote-notif.c (_initialize_notif): Add declaration.
12699 * remote-sim.c (_initialize_remote_sim): Add declaration.
12700 * remote.c (_initialize_remote): Add declaration.
12701 * reverse.c (_initialize_reverse): Add declaration.
12702 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12703 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12704 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12705 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12706 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12707 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12708 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12709 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12710 Add declaration.
12711 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12712 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12713 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12714 * rust-exp.y (_initialize_rust_exp): Add declaration.
12715 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12716 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12717 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12718 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12719 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12720 * score-tdep.c (_initialize_score_tdep): Add declaration.
12721 * ser-go32.c (_initialize_ser_dos): Add declaration.
12722 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12723 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12724 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12725 * ser-uds.c (_initialize_ser_socket): Add declaration.
12726 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12727 * serial.c (_initialize_serial): Add declaration.
12728 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12729 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12730 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12731 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12732 * skip.c (_initialize_step_skip): Add declaration.
12733 * sol-thread.c (_initialize_sol_thread): Add declaration.
12734 * solib-aix.c (_initialize_solib_aix): Add declaration.
12735 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12736 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12737 * solib-frv.c (_initialize_frv_solib): Add declaration.
12738 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12739 * solib-target.c (_initialize_solib_target): Add declaration.
12740 * solib.c (_initialize_solib): Add declaration.
12741 * source-cache.c (_initialize_source_cache): Add declaration.
12742 * source.c (_initialize_source): Add declaration.
12743 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12744 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12745 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12746 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12747 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12748 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12749 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12750 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12751 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12752 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12753 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12754 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12755 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12756 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12757 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12758 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12759 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12760 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12761 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12762 * stabsread.c (_initialize_stabsread): Add declaration.
12763 * stack.c (_initialize_stack): Add declaration.
12764 * stap-probe.c (_initialize_stap_probe): Add declaration.
12765 * std-regs.c (_initialize_frame_reg): Add declaration.
12766 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12767 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12768 * symfile.c (_initialize_symfile): Add declaration.
12769 * symmisc.c (_initialize_symmisc): Add declaration.
12770 * symtab.c (_initialize_symtab): Add declaration.
12771 * target.c (_initialize_target): Add declaration.
12772 * target-connection.c (_initialize_target_connection): Add
12773 declaration.
12774 * target-dcache.c (_initialize_target_dcache): Add declaration.
12775 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12776 * thread.c (_initialize_thread): Add declaration.
12777 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12778 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12779 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12780 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12781 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12782 * tracectf.c (_initialize_ctf): Add declaration.
12783 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12784 * tracefile.c (_initialize_tracefile): Add declaration.
12785 * tracepoint.c (_initialize_tracepoint): Add declaration.
12786 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12787 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12788 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12789 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12790 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12791 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12792 * tui/tui.c (_initialize_tui): Add declaration.
12793 * typeprint.c (_initialize_typeprint): Add declaration.
12794 * ui-style.c (_initialize_ui_style): Add declaration.
12795 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12796 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12797 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12798 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12799 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12800 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12801 * unittests/filtered_iterator-selftests.c
12802 (_initialize_filtered_iterator_selftests): Add declaration.
12803 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12804 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12805 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12806 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12807 * unittests/main-thread-selftests.c
12808 (_initialize_main_thread_selftests): Add declaration.
12809 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12810 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12811 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12812 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12813 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12814 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12815 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12816 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12817 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12818 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12819 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12820 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12821 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12822 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12823 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12824 declaration.
12825 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12826 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12827 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12828 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12829 * user-regs.c (_initialize_user_regs): Add declaration.
12830 * utils.c (_initialize_utils): Add declaration.
12831 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12832 * valops.c (_initialize_valops): Add declaration.
12833 * valprint.c (_initialize_valprint): Add declaration.
12834 * value.c (_initialize_values): Add declaration.
12835 * varobj.c (_initialize_varobj): Add declaration.
12836 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12837 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12838 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12839 * windows-nat.c (_initialize_windows_nat): Add declaration.
12840 (_initialize_check_for_gdb_ini): Add declaration.
12841 (_initialize_loadable): Add declaration.
12842 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12843 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12844 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12845 * xcoffread.c (_initialize_xcoffread): Add declaration.
12846 * xml-support.c (_initialize_xml_support): Add declaration.
12847 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12848 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12849 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12850 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12851
e2de1eec
SM
128522020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12853
12854 * regformats/regdat.sh: Generate declaration for init function.
12855
e0037b4c
SM
128562020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12857
12858 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12859 up.
12860 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12861 close_one_inferior>: New methods.
12862 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12863 pass down target to find_inferior_pid.
12864 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12865 Pass down target to find_inferior_ptid.
12866 (gdbsim_target::create_inferior): Pass down target to
12867 add_thread_silent.
12868 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12869 target down to find_inferior_ptid and switch_to_thread.
12870 (gdbsim_target::close): Update to call close_one_inferior.
12871 (struct resume_data): Remove.
12872 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12873 directly, rather than through a void pointer.
12874 (gdbsim_target::resume): Update to call resume_one_inferior.
12875
58920b5b
SM
128762020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12877
12878 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12879
4ec89149
PA
128802020-01-12 Pedro Alves <palves@redhat.com>
12881
12882 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12883 directly for the current inferior instead of
12884 discard_all_inferiors.
12885 (discard_all_inferiors): Delete.
12886
7c392d1d
TT
128872020-01-11 Tom Tromey <tom@tromey.com>
12888
12889 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12890 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12891 deprecated_safe_get_selected_frame.
12892
d9ebdab7
TBA
128932020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12894
12895 * inferior.c (print_inferior): Switch inferior before printing it.
12896
f3c469b9
PA
128972020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12898 Pedro Alves <palves@redhat.com>
12899
12900 * progspace-and-thread.c (switch_to_program_space_and_thread):
12901 Assert there's an inferior for PSPACE. Use
12902 switch_to_inferior_no_thread to switch the inferior too.
12903 * progspace.c (program_space::~program_space): Call
12904 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12905 (program_space::free_all_objfiles): Don't call clear_symtab_users
12906 here.
12907 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12908
65c574f6
PA
129092020-01-10 Pedro Alves <palves@redhat.com>
12910
12911 * NEWS: Mention multi-target debugging, "info connections", and
12912 "add-inferior -no-connection".
12913
2f4fcf00
PA
129142020-01-10 Pedro Alves <palves@redhat.com>
12915
12916 * infrun.c: Include "target-connection.h".
12917 (check_multi_target_resumption): New.
12918 (proceed): Call it.
12919 * target-connection.c (make_target_connection_string): Make
12920 extern.
12921 * target-connection.h (make_target_connection_string): Declare.
12922
121b3efd
PA
129232020-01-10 Pedro Alves <palves@redhat.com>
12924
12925 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12926 * inferior.c (uiout_field_connection): New function.
12927 (print_inferior): Add new "connection-id" column.
12928 (add_inferior_command): Show connection number/string of added
12929 inferior.
12930 * process-stratum-target.h
12931 (process_stratum_target::connection_string): New virtual method.
12932 (process_stratum_target::connection_number): New field.
12933 * remote.c (remote_target::connection_string): New override.
12934 * target-connection.c: New file.
12935 * target-connection.h: New file.
12936 * target.c (decref_target): Remove process_stratum targets from
12937 the connection list.
12938 (target_stack::push): Add process_stratum targets to the
12939 connection list.
12940
4f837581
PA
129412020-01-10 Pedro Alves <palves@redhat.com>
12942
12943 Revert:
12944 2016-04-12 Pedro Alves <palves@redhat.com>
12945 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12946 Remove references to name.
12947 * serial.h (struct serial) <name>: Delete.
12948
f4ec508e
PA
129492020-01-10 Pedro Alves <palves@redhat.com>
12950
12951 * gdbarch-selftests.c (register_to_value_test): Remove "target
12952 already pushed" check.
12953
5b6d1e4f
PA
129542020-01-10 Pedro Alves <palves@redhat.com>
12955 John Baldwin <jhb@FreeBSD.org>
12956
12957 * aarch64-linux-nat.c
12958 (aarch64_linux_nat_target::thread_architecture): Adjust.
12959 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12960 (task_command_1): Likewise.
12961 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12962 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12963 (aix_thread_target::store_registers)
12964 (aix_thread_target::thread_alive): Adjust.
12965 * amd64-fbsd-tdep.c: Include "inferior.h".
12966 (amd64fbsd_get_thread_local_address): Pass down target.
12967 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12968 thread's gdbarch instead of target_gdbarch.
12969 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12970 get_last_target_status.
12971 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12972 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12973 inferiors.
12974 (update_inserted_breakpoint_locations): Skip if inferiors with no
12975 execution.
12976 (update_global_location_list): When handling moribund locations,
12977 find representative inferior for location's pspace, and use thread
12978 count of its process_stratum target.
12979 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12980 * bsd-uthread.c (bsd_uthread_target::wait): Use
12981 as_process_stratum_target and adjust thread_change_ptid and
12982 add_thread calls.
12983 (bsd_uthread_target::update_thread_list): Use
12984 as_process_stratum_target and adjust find_thread_ptid,
12985 thread_change_ptid and add_thread calls.
12986 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12987 find_thread_ptid call.
12988 * corelow.c (add_to_thread_list): Adjust add_thread call.
12989 (core_target_open): Adjust add_thread_silent and thread_count
12990 calls.
12991 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12992 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12993 * event-top.c (async_disconnect): Pop targets from all inferiors.
12994 * exec.c (add_target_sections): Push exec target on all inferiors
12995 sharing the program space.
12996 (remove_target_sections): Remove the exec target from all
12997 inferiors sharing the program space.
12998 (exec_on_vfork): New.
12999 * exec.h (exec_on_vfork): Declare.
13000 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13001 Pass it down.
13002 (fbsd_nat_target::update_thread_list): Adjust.
13003 (fbsd_nat_target::resume): Adjust.
13004 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13005 down.
13006 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13007 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13008 get_thread_arch_regcache call.
13009 * fork-child.c (gdb_startup_inferior): Pass target down to
13010 startup_inferior and set_executing.
13011 * gdbthread.h (struct process_stratum_target): Forward declare.
13012 (add_thread, add_thread_silent, add_thread_with_info)
13013 (in_thread_list): Add process_stratum_target parameter.
13014 (find_thread_ptid(inferior*, ptid_t)): New overload.
13015 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13016 parameter.
13017 (all_threads()): Delete overload.
13018 (all_threads, all_non_exited_threads): Add process_stratum_target
13019 parameter.
13020 (all_threads_safe): Use brace initialization.
13021 (thread_count): Add process_stratum_target parameter.
13022 (set_resumed, set_running, set_stop_requested, set_executing)
13023 (threads_are_executing, finish_thread_state): Add
13024 process_stratum_target parameter.
13025 (switch_to_thread): Use is_current_thread.
13026 * i386-fbsd-tdep.c: Include "inferior.h".
13027 (i386fbsd_get_thread_local_address): Pass down target.
13028 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13029 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13030 have_inferiors check.
13031 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13032 (inf_ptrace_target::attach): Adjust.
13033 * infcall.c (run_inferior_call): Adjust.
13034 * infcmd.c (run_command_1): Pass target to
13035 scoped_finish_thread_state.
13036 (proceed_thread_callback): Skip inferiors with no execution.
13037 (continue_command): Rename 'all_threads' local to avoid hiding
13038 'all_threads' function. Adjust get_last_target_status call.
13039 (prepare_one_step): Adjust set_running call.
13040 (signal_command): Use user_visible_resume_target. Compare thread
13041 pointers instead of inferior_ptid.
13042 (info_program_command): Adjust to pass down target.
13043 (attach_command): Mark target's 'thread_executing' flag.
13044 (stop_current_target_threads_ns): New, factored out from ...
13045 (interrupt_target_1): ... this. Switch inferior before making
13046 target calls.
13047 * inferior-iter.h
13048 (struct all_inferiors_iterator, struct all_inferiors_range)
13049 (struct all_inferiors_safe_range)
13050 (struct all_non_exited_inferiors_range): Filter on
13051 process_stratum_target too. Remove explicit.
13052 * inferior.c (inferior::inferior): Push dummy target on target
13053 stack.
13054 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13055 Add process_stratum_target parameter, and pass it down.
13056 (have_live_inferiors): Adjust.
13057 (switch_to_inferior_and_push_target): New.
13058 (add_inferior_command, clone_inferior_command): Handle
13059 "-no-connection" parameter. Use
13060 switch_to_inferior_and_push_target.
13061 (_initialize_inferior): Mention "-no-connection" option in
13062 the help of "add-inferior" and "clone-inferior" commands.
13063 * inferior.h: Include "process-stratum-target.h".
13064 (interrupt_target_1): Use bool.
13065 (struct inferior) <push_target, unpush_target, target_is_pushed,
13066 find_target_beneath, top_target, process_target, target_at,
13067 m_stack>: New.
13068 (discard_all_inferiors): Delete.
13069 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13070 (all_inferiors, all_non_exited_inferiors): Add
13071 process_stratum_target parameter.
13072 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13073 (target_last_proc_target): New global.
13074 (follow_fork_inferior): Push target on new inferior. Pass target
13075 to add_thread_silent. Call exec_on_vfork. Handle target's
13076 reference count.
13077 (follow_fork): Adjust get_last_target_status call. Also consider
13078 target.
13079 (follow_exec): Push target on new inferior.
13080 (struct execution_control_state) <target>: New field.
13081 (user_visible_resume_target): New.
13082 (do_target_resume): Call target_async.
13083 (resume_1): Set target's threads_executing flag. Consider resume
13084 target.
13085 (commit_resume_all_targets): New.
13086 (proceed): Also consider resume target. Skip threads of inferiors
13087 with no execution. Commit resumtion in all targets.
13088 (start_remote): Pass current inferior to wait_for_inferior.
13089 (infrun_thread_stop_requested): Consider target as well. Pass
13090 thread_info pointer to clear_inline_frame_state instead of ptid.
13091 (infrun_thread_thread_exit): Consider target as well.
13092 (random_pending_event_thread): New inferior parameter. Use it.
13093 (do_target_wait): Rename to ...
13094 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13095 down.
13096 (threads_are_resumed_pending_p, do_target_wait): New.
13097 (prepare_for_detach): Adjust calls.
13098 (wait_for_inferior): New inferior parameter. Handle it. Use
13099 do_target_wait_1 instead of do_target_wait.
13100 (fetch_inferior_event): Adjust. Switch to representative
13101 inferior. Pass target down.
13102 (set_last_target_status): Add process_stratum_target parameter.
13103 Save target in global.
13104 (get_last_target_status): Add process_stratum_target parameter and
13105 handle it.
13106 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13107 (context_switch): Check inferior_ptid == null_ptid before calling
13108 inferior_thread().
13109 (get_inferior_stop_soon): Pass down target.
13110 (wait_one): Rename to ...
13111 (poll_one_curr_target): ... this.
13112 (struct wait_one_event): New.
13113 (wait_one): New.
13114 (stop_all_threads): Adjust.
13115 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13116 event's target.
13117 (switch_back_to_stepped_thread): Also consider target.
13118 (print_stop_event): Update.
13119 (normal_stop): Update. Also consider the resume target.
13120 * infrun.h (wait_for_inferior): Remove declaration.
13121 (user_visible_resume_target): New declaration.
13122 (get_last_target_status, set_last_target_status): New
13123 process_stratum_target parameter.
13124 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13125 process_stratum_target parameter, and use it.
13126 (clear_inline_frame_state (thread_info*)): New.
13127 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13128 process_stratum_target parameter.
13129 (clear_inline_frame_state (thread_info*)): Declare.
13130 * linux-fork.c (delete_checkpoint_command): Pass target down to
13131 find_thread_ptid.
13132 (checkpoint_command): Adjust.
13133 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13134 instead of just tweaking inferior_ptid.
13135 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13136 (exit_lwp): Pass target down to find_thread_ptid.
13137 (attach_proc_task_lwp_callback): Pass target down to
13138 add_thread/set_running/set_executing.
13139 (linux_nat_target::attach): Pass target down to
13140 thread_change_ptid.
13141 (get_detach_signal): Pass target down to find_thread_ptid.
13142 Consider last target status's target.
13143 (linux_resume_one_lwp_throw, resume_lwp)
13144 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13145 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13146 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13147 (linux_nat_target::async_wait_fd): New.
13148 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13149 target down.
13150 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13151 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13152 * linux-thread-db.c (struct thread_db_info::process_target): New
13153 field.
13154 (add_thread_db_info): Save target.
13155 (get_thread_db_info): New process_stratum_target parameter. Also
13156 match target.
13157 (delete_thread_db_info): New process_stratum_target parameter.
13158 Also match target.
13159 (thread_from_lwp): Adjust to pass down target.
13160 (thread_db_notice_clone): Pass down target.
13161 (check_thread_db_callback): Pass down target.
13162 (try_thread_db_load_1): Always push the thread_db target.
13163 (try_thread_db_load, record_thread): Pass target down.
13164 (thread_db_target::detach): Pass target down. Always unpush the
13165 thread_db target.
13166 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13167 target down. Always unpush the thread_db target.
13168 (find_new_threads_callback, thread_db_find_new_threads_2)
13169 (thread_db_target::update_thread_list): Pass target down.
13170 (thread_db_target::pid_to_str): Pass current inferior down.
13171 (thread_db_target::get_thread_local_address): Pass target down.
13172 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13173 target down.
13174 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13175 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13176 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13177 (procfs_init_inferior): Rename to ...
13178 (procfs_target::procfs_init_inferior): ... this and adjust.
13179 (procfs_target::create_inferior, procfs_notice_thread)
13180 (procfs_do_thread_registers): Adjust.
13181 * ppc-fbsd-tdep.c: Include "inferior.h".
13182 (ppcfbsd_get_thread_local_address): Pass down target.
13183 * proc-service.c (ps_xfer_memory): Switch current inferior and
13184 program space as well.
13185 (get_ps_regcache): Pass target down.
13186 * process-stratum-target.c
13187 (process_stratum_target::thread_address_space)
13188 (process_stratum_target::thread_architecture): Pass target down.
13189 * process-stratum-target.h
13190 (process_stratum_target::threads_executing): New field.
13191 (as_process_stratum_target): New.
13192 * ravenscar-thread.c
13193 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13194 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13195 down.
13196 * record-btrace.c (record_btrace_target::info_record): Adjust.
13197 (record_btrace_target::record_method)
13198 (record_btrace_target::record_is_replaying)
13199 (record_btrace_target::fetch_registers)
13200 (get_thread_current_frame_id, record_btrace_target::resume)
13201 (record_btrace_target::wait, record_btrace_target::stop): Pass
13202 target down.
13203 * record-full.c (record_full_wait_1): Switch to event thread.
13204 Pass target down.
13205 * regcache.c (regcache::regcache)
13206 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13207 process_stratum_target parameter and handle it.
13208 (current_thread_target): New global.
13209 (get_thread_regcache): Add process_stratum_target parameter and
13210 handle it. Switch inferior before calling target method.
13211 (get_thread_regcache): Pass target down.
13212 (get_thread_regcache_for_ptid): Pass target down.
13213 (registers_changed_ptid): Add process_stratum_target parameter and
13214 handle it.
13215 (registers_changed_thread, registers_changed): Pass target down.
13216 (test_get_thread_arch_aspace_regcache): New.
13217 (current_regcache_test): Define a couple local test_target_ops
13218 instances and use them for testing.
13219 (readwrite_regcache): Pass process_stratum_target parameter.
13220 (cooked_read_test, cooked_write_test): Pass mock_target down.
13221 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13222 (get_thread_arch_aspace_regcache): Add process_stratum_target
13223 parameter.
13224 (regcache::target): New method.
13225 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13226 (regcache::registers_changed_ptid): Add process_stratum_target
13227 parameter.
13228 (regcache::m_target): New field.
13229 (registers_changed_ptid): Add process_stratum_target parameter.
13230 * remote.c (remote_state::supports_vCont_probed): New field.
13231 (remote_target::async_wait_fd): New method.
13232 (remote_unpush_and_throw): Add remote_target parameter.
13233 (get_current_remote_target): Adjust.
13234 (remote_target::remote_add_inferior): Push target.
13235 (remote_target::remote_add_thread)
13236 (remote_target::remote_notice_new_inferior)
13237 (get_remote_thread_info): Pass target down.
13238 (remote_target::update_thread_list): Skip threads of inferiors
13239 bound to other targets. (remote_target::close): Don't discard
13240 inferiors. (remote_target::add_current_inferior_and_thread)
13241 (remote_target::process_initial_stop_replies)
13242 (remote_target::start_remote)
13243 (remote_target::remote_serial_quit_handler): Pass down target.
13244 (remote_target::remote_unpush_target): New remote_target
13245 parameter. Unpush the target from all inferiors.
13246 (remote_target::remote_unpush_and_throw): New remote_target
13247 parameter. Pass it down.
13248 (remote_target::open_1): Check whether the current inferior has
13249 execution instead of checking whether any inferior is live. Pass
13250 target down.
13251 (remote_target::remote_detach_1): Pass down target. Use
13252 remote_unpush_target.
13253 (extended_remote_target::attach): Pass down target.
13254 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13255 (remote_target::append_resumption): Pass down target.
13256 (remote_target::append_pending_thread_resumptions)
13257 (remote_target::remote_resume_with_hc, remote_target::resume)
13258 (remote_target::commit_resume): Pass down target.
13259 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13260 (remote_target::interrupt_query)
13261 (remote_target::remove_new_fork_children)
13262 (remote_target::check_pending_events_prevent_wildcard_vcont)
13263 (remote_target::remote_parse_stop_reply)
13264 (remote_target::process_stop_reply): Pass down target.
13265 (first_remote_resumed_thread): New remote_target parameter. Pass
13266 it down.
13267 (remote_target::wait_as): Pass down target.
13268 (unpush_and_perror): New remote_target parameter. Pass it down.
13269 (remote_target::readchar, remote_target::remote_serial_write)
13270 (remote_target::getpkt_or_notif_sane_1)
13271 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13272 down target.
13273 (remote_target::mourn_inferior): Pass down target. Use
13274 remote_unpush_target.
13275 (remote_target::core_of_thread)
13276 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13277 (remote_target::pid_to_exec_file)
13278 (remote_target::thread_handle_to_thread_info): Pass down target.
13279 (remote_target::async_wait_fd): New.
13280 * riscv-fbsd-tdep.c: Include "inferior.h".
13281 (riscv_fbsd_get_thread_local_address): Pass down target.
13282 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13283 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13284 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13285 Adjust.
13286 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13287 * solib-svr4.c (enable_break): Pass down target.
13288 * spu-multiarch.c (parse_spufs_run): Pass down target.
13289 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13290 * target-delegates.c: Regenerate.
13291 * target.c (g_target_stack): Delete.
13292 (current_top_target): Return the current inferior's top target.
13293 (target_has_execution_1): Refer to the passed-in inferior's top
13294 target.
13295 (target_supports_terminal_ours): Check whether the initial
13296 inferior was already created.
13297 (decref_target): New.
13298 (target_stack::push): Incref/decref the target.
13299 (push_target, push_target, unpush_target): Adjust.
13300 (target_stack::unpush): Defref target.
13301 (target_is_pushed): Return bool. Adjust to refer to the current
13302 inferior's target stack.
13303 (dispose_inferior): Delete, and inline parts ...
13304 (target_preopen): ... here. Only dispose of the current inferior.
13305 (target_detach): Hold strong target reference while detaching.
13306 Pass target down.
13307 (target_thread_name): Add assertion.
13308 (target_resume): Pass down target.
13309 (target_ops::beneath, find_target_at): Adjust to refer to the
13310 current inferior's target stack.
13311 (get_dummy_target): New.
13312 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13313 has a thread running.
13314 (initialize_targets): Rename to ...
13315 (_initialize_target): ... this.
13316 * target.h: Include "gdbsupport/refcounted-object.h".
13317 (struct target_ops): Inherit refcounted_object.
13318 (target_ops::shortname, target_ops::longname): Make const.
13319 (target_ops::async_wait_fd): New method.
13320 (decref_target): Declare.
13321 (struct target_ops_ref_policy): New.
13322 (target_ops_ref): New typedef.
13323 (get_dummy_target): Declare function.
13324 (target_is_pushed): Return bool.
13325 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13326 (all_matching_threads_iterator::all_matching_threads_iterator):
13327 Handle filter target.
13328 * thread-iter.h (struct all_matching_threads_iterator, struct
13329 all_matching_threads_range, class all_non_exited_threads_range):
13330 Filter by target too. Remove explicit.
13331 * thread.c (threads_executing): Delete.
13332 (inferior_thread): Pass down current inferior.
13333 (clear_thread_inferior_resources): Pass down thread pointer
13334 instead of ptid_t.
13335 (add_thread_silent, add_thread_with_info, add_thread): Add
13336 process_stratum_target parameter. Use it for thread and inferior
13337 searches.
13338 (is_current_thread): New.
13339 (thread_info::deletable): Use it.
13340 (find_thread_ptid, thread_count, in_thread_list)
13341 (thread_change_ptid, set_resumed, set_running): New
13342 process_stratum_target parameter. Pass it down.
13343 (set_executing): New process_stratum_target parameter. Pass it
13344 down. Adjust reference to 'threads_executing'.
13345 (threads_are_executing): New process_stratum_target parameter.
13346 Adjust reference to 'threads_executing'.
13347 (set_stop_requested, finish_thread_state): New
13348 process_stratum_target parameter. Pass it down.
13349 (switch_to_thread): Also match inferior.
13350 (switch_to_thread): New process_stratum_target parameter. Pass it
13351 down.
13352 (update_threads_executing): Reimplement.
13353 * top.c (quit_force): Pop targets from all inferior.
13354 (gdb_init): Don't call initialize_targets.
13355 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13356 Declare.
13357 (windows_add_thread, windows_delete_thread): Adjust.
13358 (get_windows_debug_event): Rename to ...
13359 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13360 * tracefile-tfile.c (tfile_target_open): Pass down target.
13361 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13362 Forward declare.
13363 (switch_to_thread): Add process_stratum_target parameter.
13364 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13365 parameter. Use it.
13366 (mi_on_resume): Pass target down.
13367 * nat/fork-inferior.c (startup_inferior): Add
13368 process_stratum_target parameter. Pass it down.
13369 * nat/fork-inferior.h (startup_inferior): Add
13370 process_stratum_target parameter.
13371 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13372
75c6c844
PA
133732020-01-10 Pedro Alves <palves@redhat.com>
13374
13375 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13376 directly. Instead find the first thread in the thread list and
13377 use switch_to_thread.
13378
78f2c40a
PA
133792020-01-10 Pedro Alves <palves@redhat.com>
13380
13381 * remote.c (remote_target::remote_add_inferior): Don't bind a
13382 process to the current inferior if the current inferior is already
13383 bound to a process.
13384
e7af6c70
TBA
133852020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13386 Pedro Alves <palves@redhat.com>
13387
13388 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13389 If no process is specified, return null_ptid instead of
13390 inferior_ptid.
13391 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13392 TARGET_WAITKIND_SIGNALLED with no pid.
13393
31ba933e
PA
133942020-01-10 Pedro Alves <palves@redhat.com>
13395
13396 * remote.c (first_remote_resumed_thread): New.
13397 (remote_target::wait_as): Use it as default event_ptid instead of
13398 inferior_ptid.
13399
735fc2ca
PA
134002020-01-10 Pedro Alves <palves@redhat.com>
13401
13402 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13403
c17e02e1
PA
134042020-01-10 Pedro Alves <palves@redhat.com>
13405
13406 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13407 not -1.
13408
ab1ddbcf
PA
134092020-01-10 Pedro Alves <palves@redhat.com>
13410
13411 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13412 ptid to get_last_target_status.
13413 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13414 ptid to get_last_target_status.
13415 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13416 get_last_target_status.
13417 (info_program_command): Don't pass a target_waitstatus to
13418 get_last_target_status.
13419 * infrun.c (init_wait_for_inferior): Use
13420 nullify_last_target_wait_ptid.
13421 (get_last_target_status): Handle nullptr arguments.
13422 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13423 (print_stop_event): Don't pass a ptid to get_last_target_status.
13424 (normal_stop): Don't pass a ptid to get_last_target_status.
13425 * infrun.h (get_last_target_status, set_last_target_status): Move
13426 comments here and update.
13427 (nullify_last_target_wait_ptid): Declare.
13428 * linux-fork.c (fork_load_infrun_state): Remove local extern
13429 declaration of nullify_last_target_wait_ptid.
13430 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13431 to get_last_target_status.
13432
f3f8ece4
PA
134332020-01-10 Pedro Alves <palves@redhat.com>
13434
13435 * gdbthread.h (scoped_restore_current_thread)
13436 <dont_restore, restore, m_dont_restore>: Declare.
13437 * thread.c (thread_alive): Add assertion. Return bool.
13438 (switch_to_thread_if_alive): New.
13439 (prune_threads): Switch inferior/thread.
13440 (print_thread_info_1): Switch thread before calling target methods.
13441 (scoped_restore_current_thread::restore): New, factored out from
13442 ...
13443 (scoped_restore_current_thread::~scoped_restore_current_thread):
13444 ... this.
13445 (scoped_restore_current_thread::scoped_restore_current_thread):
13446 Add assertion.
13447 (thread_apply_all_command, thread_select): Use
13448 switch_to_thread_if_alive.
13449 * infrun.c (proceed, restart_threads, handle_signal_stop)
13450 (switch_back_to_stepped_thread): Switch current thread before
13451 calling target methods.
13452
db2d40f7
PA
134532020-01-10 Pedro Alves <palves@redhat.com>
13454
13455 * inferior.c (switch_to_inferior_no_thread): New function,
13456 factored out from ...
13457 (inferior_command): ... here.
13458 * inferior.h (switch_to_inferior_no_thread): Declare.
13459 * mi/mi-main.c (run_one_inferior): Use
13460 switch_to_inferior_no_thread.
13461
bd420a2d
PA
134622020-01-10 Pedro Alves <palves@redhat.com>
13463
13464 * infcmd.c (kill_command): Remove dead code.
13465
ddf5db90
PA
134662020-01-10 Pedro Alves <palves@redhat.com>
13467
13468 * remote.c (remote_target::mourn_inferior): No longer check
13469 whether the target is running.
13470
5018ce90
PA
134712020-01-10 Pedro Alves <palves@redhat.com>
13472
13473 * corelow.c (core_target::has_execution): Change parameter type to
13474 inferior pointer.
13475 * inferior.c (number_of_live_inferiors): Use
13476 inferior::has_execution instead of target_has_execution_1.
13477 * inferior.h (inferior::has_execution): New.
13478 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13479 inferior::has_execution instead of target_has_execution_1.
13480 * process-stratum-target.c
13481 (process_stratum_target::has_execution): Change parameter type to
13482 inferior pointer. Check the inferior's PID instead of
13483 inferior_ptid.
13484 * process-stratum-target.h
13485 (process_stratum_target::has_execution): Change parameter type to
13486 inferior pointer.
13487 * record-full.c (record_full_core_target::has_execution): Change
13488 parameter type to inferior pointer.
13489 * target.c (target_has_execution_1): Change parameter type to
13490 inferior pointer.
13491 (target_has_execution_current): Adjust.
13492 * target.h (target_ops::has_execution): Change parameter type to
13493 inferior pointer.
13494 (target_has_execution_1): Change parameter type to inferior
13495 pointer. Change return type to bool.
13496 * tracefile.h (tracefile_target::has_execution): Change parameter
13497 type to inferior pointer.
13498
74375d18
PA
134992020-01-10 Pedro Alves <palves@redhat.com>
13500
13501 * exceptions.c (print_flush): Remove current_top_target() check.
13502
acdf84a6
PA
135032020-01-10 Pedro Alves <palves@redhat.com>
13504
13505 * remote.c (show_remote_exec_file): Show the current inferior's
13506 exec-file instead of the command variable's value.
13507
ec506636
PA
135082020-01-10 Pedro Alves <palves@redhat.com>
13509
13510 * record-full.c (record_full_resume_ptid): New global.
13511 (record_full_target::resume): Set it.
13512 (record_full_wait_1): Use record_full_resume_ptid instead of
13513 inferior_ptid.
13514
873657b9
PA
135152020-01-10 Pedro Alves <palves@redhat.com>
13516
13517 * gdbthread.h (scoped_restore_current_thread)
13518 <dont_restore, restore, m_dont_restore>: Declare.
13519 * thread.c (thread_alive): Add assertion. Return bool.
13520 (switch_to_thread_if_alive): New.
13521 (prune_threads): Switch inferior/thread.
13522 (print_thread_info_1): Switch thread before calling target methods.
13523 (scoped_restore_current_thread::restore): New, factored out from
13524 ...
13525 (scoped_restore_current_thread::~scoped_restore_current_thread):
13526 ... this.
13527 (scoped_restore_current_thread::scoped_restore_current_thread):
13528 Add assertion.
13529 (thread_apply_all_command, thread_select): Use
13530 switch_to_thread_if_alive.
13531
7f0ae84c
GB
135322020-01-10 George Barrett <bob@bob131.so>
13533
13534 * stap-probe.c (stap_modify_semaphore): Don't check for null
13535 semaphores.
13536 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13537 for null semaphores.
13538
f5a7c406
AB
135392020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13540
13541 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13542 all source windows, and maintain horizontal scroll status while
13543 doing so.
13544
9ae6bf64
TT
135452020-01-09 Tom Tromey <tom@tromey.com>
13546
13547 PR tui/18932:
13548 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13549 update_source_window, not print_source_lines.
13550
b2efe70c
AB
135512020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13552
13553 * tui/tui.c (tui_enable): Register tui hooks after calling
13554 tui_display_main.
13555
5f23a082
CB
135562020-01-09 Christian Biesinger <cbiesinger@google.com>
13557
13558 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13559
3061113b
SM
135602020-01-08 Simon Marchi <simon.marchi@efficios.com>
13561
13562 * thread.c (print_thread_info_1): Fix indentation.
13563
57d75002
CB
135642020-01-09 Christian Biesinger <cbiesinger@google.com>
13565
13566 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13567 unique_xmalloc_ptr outside the if to always free the demangled name.
13568
6a053cb1
TT
135692020-01-08 Tom Tromey <tromey@adacore.com>
13570
13571 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13572 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13573 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13574 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13575 Remove.
13576 (section_offsets): New typedef.
13577 * symtab.c (fixup_section, get_msymbol_address): Update.
13578 * symmisc.c (dump_msymbols): Update.
13579 * symfile.h (relative_addr_info_to_section_offsets)
13580 (symfile_map_offsets_to_segments): Update.
13581 * symfile.c (build_section_addr_info_from_objfile)
13582 (init_objfile_sect_indices): Update.
13583 (struct place_section_arg): Change type of "offsets".
13584 (place_section): Update.
13585 (relative_addr_info_to_section_offsets): Change type of
13586 "section_offsets". Remove "num_sections" parameter.
13587 (default_symfile_offsets, syms_from_objfile_1)
13588 (set_objfile_default_section_offset): Update.
13589 (reread_symbols): No need to preserve section offsets by hand.
13590 (symfile_map_offsets_to_segments): Change type of "offsets".
13591 * stap-probe.c (relocate_address): Update.
13592 * stabsread.h (process_one_symbol): Update.
13593 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13594 (solib_target_relocate_section_addresses): Update.
13595 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13596 Update.
13597 * solib-frv.c (frv_relocate_main_executable): Update.
13598 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13599 * solib-aix.c (solib_aix_get_section_offsets): Change return
13600 type.
13601 (solib_aix_solib_create_inferior_hook): Update.
13602 * remote.c (remote_target::get_offsets): Update.
13603 * psymtab.c (find_pc_sect_psymtab): Update.
13604 * psympriv.h (struct partial_symbol) <address, text_low,
13605 text_high>: Update.
13606 * objfiles.h (obj_section_offset): Update.
13607 (struct objfile) <section_offsets>: Change type.
13608 <num_sections>: Remove.
13609 (objfile_relocate): Update.
13610 * objfiles.c (entry_point_address_query): Update
13611 (relocate_one_symbol): Change type of "section_offsets".
13612 (objfile_relocate1, objfile_relocate1): Change type of
13613 "new_offsets".
13614 (objfile_rebase1): Update.
13615 * mipsread.c (mipscoff_symfile_read): Update.
13616 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13617 parameter.
13618 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13619 (parse_external, psymtab_to_symtab_1): Update.
13620 * machoread.c (macho_symfile_offsets): Update.
13621 * ia64-tdep.c (ia64_find_unwind_table): Update.
13622 * hppa-tdep.c (read_unwind_info): Update.
13623 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13624 * dwarf2read.c (create_addrmap_from_index)
13625 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13626 (process_psymtab_comp_unit_reader, add_partial_symbol)
13627 (add_partial_subprogram, process_full_comp_unit)
13628 (read_file_scope, read_func_scope, read_lexical_block_scope)
13629 (read_call_site_scope, dwarf2_rnglists_process)
13630 (dwarf2_ranges_process, dwarf2_ranges_read)
13631 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13632 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13633 Update.
13634 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13635 Update.
13636 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13637 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13638 (process_one_symbol): Change type of "section_offsets".
13639 * ctfread.c (get_objfile_text_range): Update.
13640 * coffread.c (coff_symtab_read, enter_linenos)
13641 (process_coff_symbol): Update.
13642 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13643 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13644
456e800a
TT
136452020-01-08 Tom Tromey <tromey@adacore.com>
13646
13647 * dwarf2read.c (parse_macro_definition): Use std::string.
13648 (parse_macro_definition): Likewise.
13649
6dfa2fc2
TT
136502020-01-08 Tom Tromey <tromey@adacore.com>
13651
13652 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13653 (ATTR_ALLOC_CHUNK): Remove.
13654
421d1616
TT
136552020-01-08 Tom Tromey <tromey@adacore.com>
13656
13657 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13658
43816ebc
TT
136592020-01-08 Tom Tromey <tromey@adacore.com>
13660
13661 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13662 (dwarf2_compute_name, open_dwo_file): Likewise.
13663 (process_enumeration_scope): Use std::vector.
13664 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13665 (partial_die_info::fixup, dwarf2_start_subfile)
13666 (guess_full_die_structure_name, dwarf2_name): Likewise.
13667 (determine_prefix): Update.
13668 (guess_full_die_structure_name): Make return type const.
13669 (partial_die_full_name): Return unique_xmalloc_ptr.
13670 (DW_FIELD_ALLOC_CHUNK): Remove.
13671
4212d509
TT
136722020-01-07 Tom Tromey <tromey@adacore.com>
13673
13674 PR build/24937:
13675 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13676
06a6207a
JT
136772020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13678
13679 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13680
153d79c4
AB
136812020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13682
13683 * stack.c (print_frame_info): Move disassemble_next_line code
13684 inside source_print block.
13685
66182876
EZ
136862020-01-06 Eli Zaretskii <eliz@gnu.org>
13687
13688 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13689 gdb/signals.h, as we are now using native signal symbols.
13690
cbfa8581
SV
136912020-01-06 Shahab Vahedi <shahab@synopsys.com>
13692
13693 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13694 overflow by an early check of content vs threshold.
aac66a4c 13695 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13696 Likewise.
13697
3f602821
EZ
136982020-01-06 Eli Zaretskii <eliz@gnu.org>
13699
13700 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13701
a08c904d
JT
137022020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13703
13704 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13705 export table if no section contains it's RVA.
13706
89a65580
EZ
137072020-01-06 Eli Zaretskii <eliz@gnu.org>
13708
13709 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13710
8b7fcda2
HD
137112020-01-06 Hannes Domani <ssbssa@yahoo.de>
13712
13713 * source.c (print_source_lines_base): Set last_line_listed.
13714
a61b4f69
SV
137152020-01-06 Shahab Vahedi <shahab@synopsys.com>
13716
13717 * tui/tui-disasm.c: Remove trailing spaces.
13718
559e7e50
EZ
137192020-01-06 Eli Zaretskii <eliz@gnu.org>
13720 Pedro Alves <palves@redhat.com>
13721
13722 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13723 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13724 (windows_gdb_signal_to_target): New function, uses the above
13725 enumeration to convert GDB internal signal codes to equivalent
13726 Windows codes.
13727 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13728 * windows-nat.c: Include "gdb_wait.h".
13729 (get_windows_debug_event): Extract the fatal exception from the
13730 exit status and convert to the equivalent Posix signal number.
13731 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13732 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13733 * gdbsupport/gdb_wait.c: New file, implements
13734 windows_status_to_termsig.
13735 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13736 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13737
f2302a34
AB
137382020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13739
13740 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13741 show_layout.
13742
6a5206eb
LM
137432020-01-05 Luis Machado <luis.machado@linaro.org>
13744
13745 * aarch64-linux-nat.c
13746 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13747 and bfd_mach_aarch64.
13748
6ec1d75e
PW
137492020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13750
13751 * ui-file.c (stdio_file::can_emit_style_escape)
13752 (tee_file::can_emit_style_escape): Ensure style is used also on
13753 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13754 to gdb_stdout.
13755 * main.c (set_gdb_data_directory): Use file style to output the
13756 warning that the given pathname is not a directory.
13757 * top.c (show_history_filename, gdb_safe_append_history)
13758 (show_gdb_datadir): Use file style.
13759
44f81a76
HD
137602020-01-03 Hannes Domani <ssbssa@yahoo.de>
13761
13762 * solib-target.c (struct lm_info_target):
13763 Change offsets to be a unique_xmalloc_ptr.
13764 (solib_target_relocate_section_addresses): Update.
13765
25057eb0
HD
137662020-01-03 Hannes Domani <ssbssa@yahoo.de>
13767
13768 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13769
6e2118f5
BE
137702020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13771
13772 * MAINTAINERS (Write After Approval): Add myself.
13773
8133c7dc
LM
137742020-01-02 Luis Machado <luis.machado@linaro.org>
13775
13776 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13777 Cell BE architecture.
13778 * target.h (struct target_ops) <thread_architecture>: Likewise.
13779
48189bec
HD
137802020-01-01 Hannes Domani <ssbssa@yahoo.de>
13781
13782 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13783
ead1063b
HD
137842020-01-01 Hannes Domani <ssbssa@yahoo.de>
13785
13786 * MAINTAINERS (Write After Approval): Add myself.
13787
e5d78223
JB
137882020-01-01 Joel Brobecker <brobecker@adacore.com>
13789
13790 * gdbarch.sh: Update copyright year range of generated files.
13791
b811d2c2
JB
137922020-01-01 Joel Brobecker <brobecker@adacore.com>
13793
13794 Update copyright year range in all GDB files.
13795
5f4def5c
JB
137962020-01-01 Joel Brobecker <brobecker@adacore.com>
13797
13798 * copyright.py: Convert to Python 3.
13799
51fd4002
JB
138002020-01-01 Joel Brobecker <brobecker@adacore.com>
13801
13802 * copyright.py: Adapt after move of gnulib directory from gdb
13803 directory to toplevel directory.
13804
5fb651f2
JB
138052020-01-01 Joel Brobecker <brobecker@adacore.com>
13806
13807 * copyright.py (main): Exit if run from the wrong directory.
13808
5dd8bf88
JB
138092020-01-01 Joel Brobecker <brobecker@adacore.com>
13810
13811 * top.c (print_gdb_version): Change copyright year to 2020.
13812
9f71dacb 138132020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13814
9f71dacb 13815 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13816
9f71dacb 13817For older changes see ChangeLog-2019.
c906108c
SS
13818\f
13819Local Variables:
13820mode: change-log
13821left-margin: 8
13822fill-column: 74
13823version-control: never
57da7796 13824coding: utf-8
c906108c 13825End: