Use htab_up in completion_tracker
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
32580f6d
TT
12020-09-17 Tom Tromey <tom@tromey.com>
2
3 * completer.c (completion_tracker::discard_completions)
4 (completion_tracker::~completion_tracker)
5 (completion_tracker::maybe_add_completion)
6 (completion_tracker::remove_completion)
7 (completion_tracker::recompute_lowest_common_denominator)
8 (completion_tracker::build_completion_result): Update.
9 * completer.h (class completion_tracker) <have_completions>:
10 Update.
11 <m_entries_hash>: Now htab_up.
12
c1fb9836
TT
132020-09-17 Tom Tromey <tom@tromey.com>
14
15 * breakpoint.c (ambiguous_names_p): Use htab_up.
16
88f07206
TT
172020-09-17 Tom Tromey <tom@tromey.com>
18
19 * auto-load.c (struct auto_load_pspace_info)
20 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
21 <loaded_script_files, loaded_script_texts>: Change type to
22 htab_up.
23 (~auto_load_pspace_info) Remove.
24 (init_loaded_scripts_info, maybe_add_script_file)
25 (maybe_add_script_text, auto_load_info_scripts): Update.
26
9519b2ee
TT
272020-09-17 Tom Tromey <tromey@adacore.com>
28
29 * c-exp.y (name_obstack): Now static.
30
d2cd4113
CC
312020-09-17 Chungyi Chi <demonic@csie.io>
32
33 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
34
b650a282
SM
352020-09-16 Simon Marchi <simon.marchi@efficios.com>
36
37 * breakpoint.h (init_catchpoint): Change int parameter to bool.
38 (add_solib_catchpoint): Likewise.
39 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
40 to bool.
41 (add_solib_catchpoint): Change int parameter/variable to bool.
42 (catch_load_or_unload): Likewise.
43 (init_catchpoint): Likewise.
44 (create_fork_vfork_event_catchpoint): Likewise.
45 (catch_fork_command_1): Likewise.
46 (catch_exec_command_1): Likewise.
47
4d0bcfcf
SM
482020-09-16 Simon Marchi <simon.marchi@efficios.com>
49
50 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
51 Change instance_flags to m_instance_flags.
52
fe830662
TT
532020-09-16 Tom Tromey <tromey@adacore.com>
54
55 PR gdb/26598:
56 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
57
fe5ddfc3
JB
582020-09-16 John Baldwin <jhb@FreeBSD.org>
59
60 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
61 PL_FLAG_EXEC.
62 (fbsd_nat_target::insert_exec_catchpoint)
63 (fbsd_nat_target::remove_exec_catchpoint): Always define.
64 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
65 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
66
e911c666
JB
672020-09-16 John Baldwin <jhb@FreeBSD.org>
68
69 * configure.ac: Remove check for kinfo_getvmmap().
70 * configure, config.in: Regenerate.
71 * fbsd-nat.c (fbsd_read_mapping): Remove
72 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
73 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
74 kinfo_get_vmmap() are always present.
75
1f17d372
JB
762020-09-16 John Baldwin <jhb@FreeBSD.org>
77
78 * fbsd-nat.c: Always include support for
79 TARGET_OBJECT_SIGNAL_INFO.
80
bcb1da7f
JB
812020-09-16 John Baldwin <jhb@FreeBSD.org>
82
83 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
84 sysctl and remove procfs fallback.
85
5515f729
JB
862020-09-16 John Baldwin <jhb@FreeBSD.org>
87
88 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
89 * fbsd-nat.h: Likewise.
90
da1df1db
TBA
912020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
92
93 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
94 argument.
95
0e25e767
AB
962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
97
98 * ada-lang.c (ada_language_data): Delete.
99 (ada_language): Remove references to ada_language_data.
100 * c-lang.c (c_language_data): Delete.
101 (c_language): Remove references to c_language_data.
102 (cplus_language_data): Delete.
103 (cplus_language): Remove references to cplus_language_data.
104 (asm_language_data): Delete.
105 (asm_language): Remove references to asm_language_data.
106 (minimal_language_data): Delete.
107 (minimal_language): Remove references to minimal_language_data.
108 * d-lang.c (d_language_data): Delete.
109 (d_language): Remove references to d_language_data.
110 * f-lang.c (f_language_data): Delete.
111 (f_language): Remove references to f_language_data.
112 * go-lang.c (go_language_data): Delete.
113 (go_language): Remove references to go_language_data.
114 * language.c (unknown_language_data): Delete.
115 (unknown_language): Remove references to unknown_language_data.
116 (auto_language_data): Delete.
117 (auto_language): Remove references to auto_language_data.
118 * language.h (language_data): Delete struct.
119 (language_defn): No longer inherit from language_data.
120 * m2-lang.c (m2_language_data): Delete.
121 (m2_language): Remove references to m2_language_data.
122 * objc-lang.c (objc_language_data): Delete.
123 (objc_language): Remove references to objc_language_data.
124 * opencl-lang.c (opencl_language_data): Delete.
125 (opencl_language): Remove references to opencl_language_data.
126 * p-lang.c (pascal_language_data): Delete.
127 (pascal_language): Remove references to pascal_language_data.
128 * rust-lang.c (rust_language_data): Delete.
129 (rust_language): Remove references to rust_language_data.
130
b7c6e27d
AB
1312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
132
133 * ada-lang.c (ada_language_data): Remove la_op_print_tab
134 initializer.
135 (ada_language::opcode_print_table): New member function.
136 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
137 (c_language::opcode_print_table): New member function.
138 (cplus_language_data): Remove la_op_print_tab initializer.
139 (cplus_language::opcode_print_table): New member function.
140 (asm_language_data): Remove la_op_print_tab initializer.
141 (asm_language::opcode_print_table): New member function.
142 (minimal_language_data): Remove la_op_print_tab initializer.
143 (minimal_language::opcode_print_table): New member function.
144 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
145 (d_language::opcode_print_table): New member function.
146 * expprint.c (print_subexp_standard): Update call to
147 opcode_print_table.
148 (op_string): Likewise.
149 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
150 (f_language::opcode_print_table): New member function.
151 * go-lang.c (go_language_data): Remove la_op_print_tab
152 initializer.
153 (go_language::opcode_print_table): New member function.
154 * language.c (unknown_language_data): Remove la_op_print_tab
155 initializer.
156 (unknown_language::opcode_print_table): New member function.
157 (auto_language_data): Remove la_op_print_tab initializer.
158 (auto_language::opcode_print_table): New member function.
159 * language.h (language_data): Remove la_op_print_tab field.
160 (language_defn::opcode_print_table): Declare new member function.
161 * m2-lang.c (m2_language_data): Remove la_op_print_tab
162 initializer.
163 (m2_language::opcode_print_table): New member function.
164 * objc-lang.c (objc_language_data): Remove la_op_print_tab
165 initializer.
166 (objc_language::opcode_print_table): New member function.
167 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
168 initializer.
169 (opencl_language::opcode_print_table): New member function.
170 * p-lang.c (pascal_language_data): Remove la_op_print_tab
171 initializer.
172 (pascal_language::opcode_print_table): New member function.
173 * rust-lang.c (rust_language_data): Remove la_op_print_tab
174 initializer.
175 (rust_language::opcode_print_table): New member function.
176
5aba6ebe
AB
1772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
178
179 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
180 (ada_language::expression_ops): New member function.
181 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
182 (c_language::expression_ops): New member function.
183 (cplus_language_data): Remove la_exp_desc initializer.
184 (cplus_language::expression_ops): New member function.
185 (asm_language_data): Remove la_exp_desc initializer.
186 (asm_language::expression_ops): New member function.
187 (minimal_language_data): Remove la_exp_desc initializer.
188 (minimal_language::expression_ops): New member function.
189 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
190 (d_language::expression_ops): New member function.
191 * eval.c (evaluate_subexp): Update call to expression_ops.
192 * expprint.c (print_subexp): Likewise.
193 (op_name): Likewise.
194 (dump_subexp_body): Likewise.
195 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
196 (f_language::expression_ops): New member function.
197 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
198 (go_language::expression_ops): New member function.
199 * language.c (language_defn::expression_ops): New function.
200 (unknown_language_data): Remove la_exp_desc initializer.
201 (auto_language_data): Likewise.
202 * language.h (language_data): Remove la_exp_desc field.
203 (language_defn::expression_ops): Declare new member function.
204 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
205 (m2_language::expression_ops): New member function.
206 * objc-lang.c (objc_language_data): Remove la_exp_desc
207 initializer.
208 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
209 initializer.
210 (opencl_language::expression_ops): New member function.
211 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
212 * parse.c (operator_length): Update call to expression_ops.
213 (exp_iterate): Likewise.
214 * rust-lang.c (rust_language_data): Remove la_exp_desc
215 initializer.
216 (ruse_language::expression_ops): New member function.
217
b63a3f3f
AB
2182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
219
220 * ada-lang.c (ada_language_data): Remove la_varobj_ops
221 initializer.
222 (ada_language::varobj_ops): New member function.
223 * c-lang.c (c_language_data): Remove la_varobj_ops
224 initializer.
225 (cplus_language_data): Likewise.
226 (cplus_language::varobj_ops): New member function.
227 (asm_language_data): Remove la_varobj_ops initializer.
228 (minimal_language_data): Likewise.
229 * d-lang.c (d_language_data): Likewise.
230 * f-lang.c (f_language_data): Likewise.
231 * go-lang.c (go_language_data): Likewise.
232 * language.c (language_defn::varobj_ops): New function.
233 (unknown_language_data): Remove la_varobj_ops
234 initializer.
235 (auto_language_data): Likewise.
236 * language.h (language_data): Remove la_varobj_ops field.
237 (language_defn::varobj_ops): Declare new member function.
238 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
239 * objc-lang.c (objc_language_data): Likewise.
240 * opencl-lang.c (opencl_language_data): Likewise.
241 * p-lang.c (pascal_language_data): Likewise.
242 * rust-lang.c (rust_language_data): Likewise.
243 * varobj.c (varobj_create): Update call to varobj_ops.
244 * varobj.h (default_varobj_ops): Delete define.
245
1ac14a04
AB
2462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
247
248 * ada-lang.c (ada_language_data): Remove la_macro_expansion
249 initializer.
250 * c-lang.c (c_language_data): Likewise.
251 (c_language::macro_expansion): New member function.
252 (cplus_language_data): Likewise.
253 (cplus_language::macro_expansion): New member function.
254 (asm_language_data): Likewise.
255 (asm_language::macro_expansion): New member function.
256 (minimal_language_data): Likewise.
257 (minimal_language::macro_expansion): New member function.
258 * d-lang.c (d_language_data): Remove la_macro_expansion
259 initializer.
260 * f-lang.c (f_language_data): Likewise.
261 * go-lang.c (go_language_data): Likewise.
262 * language.c (unknown_language_data): Likewise.
263 (auto_language_data): Likewise.
264 * language.h (language_data): Remove la_macro_expansion field.
265 (language_defn::macro_expansion): New member function.
266 * m2-lang.c (m2_language_data): Remove la_macro_expansion
267 initializer.
268 * objc-lang.c (objc_language_data): Likewise.
269 (objc_language::macro_expansion): New member function.
270 * opencl-lang.c (opencl_language_data): Likewise.
271 (opencl_language::macro_expansion): New member function.
272 * p-lang.c (pascal_language_data): Remove la_macro_expansion
273 initializer.
274 * rust-lang.c (rust_language_data): Likewise.
275 * symtab.c (default_collect_symbol_completion_matches_break_on):
276 Update call to macro_expansion.
277
3a3440fb
AB
2782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
279
280 * ada-lang.c (ada_language_data): Remove la_array_ordering
281 initializer.
282 * c-lang.c (c_language_data): Likewise.
283 (cplus_language_data): Likewise.
284 (asm_language_data): Likewise.
285 (minimal_language_data): Likewise.
286 * d-lang.c (d_language_data): Likewise.
287 * dwarf2/read.c (read_array_order): Update for call to
288 array_ordering.
289 * f-lang.c (f_language_data): Remove la_array_ordering
290 initializer.
291 (f_language::array_ordering): New member function.
292 * go-lang.c (go_language_data): Remove la_array_ordering
293 initializer.
294 * language.c (unknown_language_data): Likewise.
295 (auto_language_data): Likewise.
296 * language.h (language_data): Delete la_array_ordering field.
297 (language_defn::array_ordering): New member function.
298 * m2-lang.c (m2_language_data): Remove la_array_ordering
299 initializer.
300 * objc-lang.c (objc_language_data): Likewise.
301 * opencl-lang.c (opencl_language_data): Likewise.
302 * p-lang.c (pascal_language_data): Likewise.
303 * rust-lang.c (rust_language_data): Likewise.
304
0d201fa4
AB
3052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
306
307 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
308 initializer.
309 * c-lang.c (c_language_data): Likewise.
310 (cplus_language_data): Likewise.
311 (asm_language_data): Likewise.
312 (minimal_language_data): Likewise.
313 * d-lang.c (d_language_data): Likewise.
314 * f-lang.c (f_language_data): Likewise.
315 (f_language::case_sensitivity): New member function.
316 * go-lang.c (go_language_data): Remove la_case_sensitivity
317 initializer.
318 * language.c (enum case_mode): Moved here from language.h.
319 (case_mode): Make static.
320 (show_case_command): Update for case_sensitivity being a method.
321 (set_case_command): Likewise.
322 (set_range_case): Likewise.
323 (unknown_language_data): Remove la_case_sensitivity initializer.
324 (auto_language_data): Likewise.
325 * language.h (case_mode): Delete, move enum declaration to
326 language.c.
327 (language_data): Delete la_case_sensitivity field.
328 (language_defn::case_sensitivity): New member function.
329 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
330 initializer.
331 * objc-lang.c (objc_language_data): Likewise.
332 * opencl-lang.c (opencl_language_data): Likewise.
333 * p-lang.c (pascal_language_data): Likewise.
334 * rust-lang.c (rust_language_data): Likewise.
335
efdf6a73
AB
3362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
337
338 * ada-lang.c (ada_language_data): Remove la_range_check
339 initializer.
340 * c-lang.c (c_language_data): Likewise.
341 (cplus_language_data): Likewise.
342 (asm_language_data): Likewise.
343 (minimal_language_data): Likewise.
344 * d-lang.c (d_language_data): Likewise.
345 * f-lang.c (f_language_data): Likewise.
346 (f_language::range_checking_on_by_default): New member function.
347 * go-lang.c (go_language_data): Remove la_range_check initializer.
348 * language.c (enum range_mode): Moved here from language.h.
349 (range_mode): Made static.
350 (show_range_command): Update to use
351 range_checking_on_by_default.
352 (set_range_command): Likewise.
353 (set_range_case): Likewise.
354 (unknown_language_data): Remove la_range_check initializer.
355 (auto_language_data): Likewise.
356 * language.h (range_mode): Delete. Enum definition moved to
357 language.c.
358 (language_data): Remove la_range_check field.
359 (language_defn::range_checking_on_by_default): New member
360 function.
361 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
362 (m2_language::range_checking_on_by_default): New member function.
363 * objc-lang.c (objc_language_data): Remove la_range_check
364 initializer.
365 * opencl-lang.c (opencl_language_data): Likewise.
366 * p-lang.c (pascal_language_data): Likewise.
367 (pascal_language::range_checking_on_by_default): New member
368 function.
369 * rust-lang.c (rust_language_data): Remove la_range_check
370 initializer.
371 (rust_language::range_checking_on_by_default): New member
372 function.
373
bf92aec5
AB
3742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * dwarf2/read.c (dwarf2_physname): Remove special case for
377 language_go.
378 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
379 member function.
380
d3355e4d
AB
3812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
382
383 * ada-lang.c (ada_language_data): Remove
384 la_store_sym_names_in_linkage_form_p initializer.
385 (ada_language::store_sym_names_in_linkage_form_p): New member
386 function.
387 * c-lang.c (c_language_data): Remove
388 la_store_sym_names_in_linkage_form_p initializer.
389 (c_language::store_sym_names_in_linkage_form_p): New member
390 function.
391 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
392 initializer.
393 (asm_language_data): Likewise.
394 (asm_language::store_sym_names_in_linkage_form_p): New member
395 function.
396 (minimal_language_data): Remove
397 la_store_sym_names_in_linkage_form_p initializer.
398 (minimal_language::store_sym_names_in_linkage_form_p): New member
399 function.
400 * d-lang.c (d_language_data): Remove
401 la_store_sym_names_in_linkage_form_p initializer.
402 * dwarf2/read.c (dwarf2_physname): Update call to
403 store_sym_names_in_linkage_form_p.
404 * f-lang.c (f_language_data): Remove
405 la_store_sym_names_in_linkage_form_p initializer.
406 * go-lang.c (go_language_data): Remove
407 la_store_sym_names_in_linkage_form_p initializer.
408 * language.c (unknown_language_data): Remove
409 la_store_sym_names_in_linkage_form_p initializer.
410 (unknown_language::store_sym_names_in_linkage_form_p): New member
411 function.
412 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
413 initializer.
414 (auto_language::store_sym_names_in_linkage_form_p): New member
415 function.
416 * language.h (language_data): Remove
417 la_store_sym_names_in_linkage_form_p member variable.
418 (language_defn::store_sym_names_in_linkage_form_p): New member
419 function.
420 * m2-lang.c (m2_language_data): Remove
421 la_store_sym_names_in_linkage_form_p initializer.
422 * objc-lang.c (objc_language_data): Likewise.
423 * opencl-lang.c (opencl_language_data): Likewise.
424 * p-lang.c (pascal_language_data): Likewise.
425 * rust-lang.c (rust_language_data): Likewise.
426
22c12a6c
AB
4272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
428
429 * ada-lang.c (ada_language_data): Remove string_lower_bound
430 initializer.
431 * c-lang.c (c_language_data): Likewise.
432 (cplus_language_data): Likewise.
433 (asm_language_data): Likewise.
434 (minimal_language_data): Likewise.
435 * d-lang.c (d_language_data): Likewise.
436 * f-lang.c (f_language_data): Likewise.
437 * go-lang.c (go_language_data): Likewise.
438 * language.c (unknown_language_data): Likewise.
439 (auto_language_data): Likewise.
440 * language.h (language_data): Remove string_lower_bound field.
441 (language_defn::string_lower_bound): New member function.
442 * m2-lang.c (m2_language_data): Remove string_lower_bound
443 initializer.
444 (m2_language::string_lower_bound): New member function.
445 * objc-lang.c (objc_language_data): Remove string_lower_bound
446 initializer.
447 * opencl-lang.c (opencl_language_data): Likewise.
448 * p-lang.c (pascal_language_data): Likewise.
449 * rust-lang.c (rust_language_data): Likewise.
450 * valops.c (value_cstring): Update call to string_lower_bound.
451 (value_string): Likewise.
452 * value.c (allocate_repeated_value): Likewise.
453
1c236ddd
AB
4542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
455
456 * valops.c (value_repeat): Fix incorrect argument name in comment.
457
67bd3fd5
AB
4582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
459
460 * ada-lang.c (ada_language_data): Remove c_style_arrays
461 initializer.
462 (ada_language::c_style_arrays_p): New member fuction.
463 * c-lang.c (c_language_data): Remove c_style_arrays
464 initializer.
465 (cplus_language_data): Likewise.
466 (asm_language_data): Likewise.
467 (minimal_language_data): Likewise.
468 * d-lang.c (d_language_data): Likewise.
469 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
470 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
471 (f_language::c_style_arrays_p): New member function.
472 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
473 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
474 * language.c (unknown_language_data): Remove c_style_arrays
475 initializer.
476 (auto_language_data): Likewise.
477 * language.h (language_data): Remove c_style_arrays field.
478 (language_defn::c_style_arrays_p): New member function.
479 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
480 (m2_language::c_style_arrays_p): New member function.
481 * objc-lang.c (objc_language_data): Remove c_style_arrays
482 initializer.
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 * valarith.c (value_subscript): Update call to c_style_arrays_p,
487 and update local variable to a bool.
488 * valops.c (value_cast): Update call to c_style_arrays_p.
489 (value_array): Likewise.
490 * value.c (coerce_array): Likewise.
491
85967615
AB
4922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
493
494 * ada-lang.c (ada_language_data): Remove la_language initializer.
495 * c-lang.c (c_language_data): Likewise.
496 (cplus_language_data): Likewise.
497 (asm_language_data): Likewise.
498 (minimal_language_data): Likewise.
499 * d-lang.c (d_language_data): Likewise.
500 * f-lang.c (f_language_data): Likewise.
501 * go-lang.c (go_language_data): Likewise.
502 * language.c (unknown_language_data): Likewise.
503 (auto_language_data): Likewise.
504 * language.h (language_data): Remove la_language field.
505 (language_defn::language_defn): Initialise la_language field.
506 (language_defn::la_language): New member variable.
507 * m2-lang.c (m2_language_data): Remove la_language field.
508 * objc-lang.c (objc_language_data): Likewise.
509 * opencl-lang.c (opencl_language_data): Likewise.
510 * p-lang.c (pascal_language_data): Likewise.
511 * rust-lang.c (rust_language_data): Likewise.
512
e171d6f1
AB
5132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
514
515 * ada-lang.c (ada_extensions): Delete, moved into
516 ada_language::filename_extensions.
517 (ada_language_data): Remove la_filename_extensions initializer.
518 (ada_language::filename_extensions): New member function.
519 * c-lang.c (c_extensions): Delete, moved into
520 c_language::filename_extensions.
521 (c_language_data): Remove la_filename_extensions initializer.
522 (c_language::filename_extensions): New member function.
523 (cplus_extensions): Delete, moved into
524 cplus_language::filename_extensions.
525 (cplus_language_data): Remove la_filename_extensions initializer.
526 (cplus_language::filename_extensions): New member function.
527 (asm_extensions): Delete, moved into
528 asm_language::filename_extensions.
529 (asm_language_data): Remove la_filename_extensions initializer.
530 (asm_language::filename_extensions): New member function.
531 (minimal_language_data): Remove la_filename_extensions
532 initializer.
533 * d-lang.c (d_extensions): Delete, moved into
534 d_language::filename_extensions.
535 (d_language_data): Remove la_filename_extensions initializer.
536 (d_language::filename_extensions): New member function.
537 * f-lang.c (f_extensions): Delete, moved into
538 f_language::filename_extensions.
539 (f_language_data): Remove la_filename_extensions initializer.
540 (f_language::filename_extensions): New member function.
541 * go-lang.c (go_language_data): Remove la_filename_extensions
542 initializer.
543 * language.c (add_set_language_command): Update now that
544 filename_extensions returns a vector.
545 (unknown_language_data): Remove la_filename_extensions
546 initializer.
547 (auto_language_data): Likewise.
548 * language.h (language_data): Remove la_filename_extensions field.
549 (language_defn::filename_extensions): New member function.
550 * m2-lang.c (m2_language_data): Remove la_filename_extensions
551 initializer.
552 * objc-lang.c (objc_extensions): Delete, moved into
553 objc_language::filename_extensions.
554 (objc_language_data): Remove la_filename_extensions initializer.
555 (objc_language::filename_extensions): New member function.
556 * opencl-lang.c (opencl_language_data): Remove
557 la_filename_extensions initializer.
558 * p-lang.c (pascal_extensions): Delete, moved into
559 pascal_language::filename_extensions.
560 (pascal_language_data): Remove la_filename_extensions initializer.
561 (pascal_language::filename_extensions): New member function.
562 * rust-lang.c (rust_extensions): Delete, moved into
563 rust_language::filename_extensions.
564 (rust_language_data): Remove la_filename_extensions initializer.
565 (rust_language::filename_extensions): New member function.
566 * symfile.c (add_filename_language): Add new assert.
567
6f7664a9
AB
5682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * ada-lang.c (ada_language_data): Remove la_name and
571 la_natural_name initializers.
572 (ada_language::name): New member function.
573 (ada_language::natural_name): New member function.
574 * c-lang.c (c_language_data): Remove la_name and
575 la_natural_name initializers.
576 (c_language::name): New member function.
577 (c_language::natural_name): New member function.
578 (cplus_language_data): Remove la_name and
579 la_natural_name initializers.
580 (cplus_language::name): New member function.
581 (cplus_language::natural_name): New member function.
582 (asm_language_data): Remove la_name and
583 la_natural_name initializers.
584 (asm_language::name): New member function.
585 (asm_language::natural_name): New member function.
586 (minimal_language_data): Remove la_name and
587 la_natural_name initializers.
588 (minimal_language::name): New member function.
589 (minimal_language::natural_name): New member function.
590 * compile/compile.c (compile_to_object): Update call to
591 lanugage_defn::name.
592 * d-lang.c (d_language_data): Remove la_name and
593 la_natural_name initializers.
594 (d_language::name): New member function.
595 (d_language::natural_name): New member function.
596 * expprint.c (print_subexp_standard): Update call to
597 language_defn::name.
598 (dump_raw_expression): Likewise
599 (dump_prefix_expression): Likewise.
600 * f-lang.c (f_language_data): Remove la_name and
601 la_natural_name initializers.
602 (f_language::name): New member function.
603 (f_language::natural_name): New member function.
604 * go-lang.c (go_language_data): Remove la_name and
605 la_natural_name initializers.
606 (go_language::name): New member function.
607 (go_language::natural_name): New member function.
608 * language.c (show_language_command): Update call to
609 language_defn::name.
610 (set_language_command): Likewise.
611 (language_enum): Likewise.
612 (language_str): Likewise.
613 (add_set_language_command): Likewise, use
614 language_defn::natural_name in the doc string.
615 (unknown_language_data): Remove la_name and
616 la_natural_name initializers.
617 (unknown_language::name): New member function.
618 (unknown_language::natural_name): New member function.
619 (auto_language_data): Remove la_name and
620 la_natural_name initializers.
621 (auto_language::name): New member function.
622 (auto_language::natural_name): New member function.
623 (language_lookup_primitive_type_as_symbol): Update call to
624 language_defn::name.
625 * language.h (language_data): Remove la_name and la_natural_name
626 member variables.
627 (language_defn::name): New member function.
628 (language_defn::natural_name): New member function.
629 * m2-lang.c (m2_language_data): Remove la_name and
630 la_natural_name initializers.
631 (m2_language::name): New member function.
632 (m2_language::natural_name): New member function.
633 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
634 language_defn::natural_name.
635 * objc-lang.c (objc_language_data): Remove la_name and
636 la_natural_name initializers.
637 (objc_language::name): New member function.
638 (objc_language::natural_name): New member function.
639 * opencl-lang.c (opencl_language_data): Remove la_name and
640 la_natural_name initializers.
641 (opencl_language::name): New member function.
642 (opencl_language::natural_name): New member function.
643 * p-lang.c (pascal_language_data): Remove la_name and
644 la_natural_name initializers.
645 (pascal_language::name): New member function.
646 (pascal_language::natural_name): New member function.
647 * rust-lang.c (rust_language_data): Remove la_name and
648 la_natural_name initializers.
649 (rust_language::name): New member function.
650 (rust_language::natural_name): New member function.
651 * symtab.c (lookup_language_this): Update call to
652 language_defn::name.
653
5bae7c4e
AB
6542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
655
656 * ada-lang.c (ada_language_data): Remove la_name_of_this
657 initializer.
658 * ax-gdb.c (gen_expr): Update call to name_of_this.
659 * c-exp.y (classify_name): Likewise.
660 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
661 (cplus_language_data): Likewise.
662 (cplus_language::name_of_this): New member function.
663 (asm_language_data): Remove la_name_of_this initializer.
664 (minimal_language_data): Likewise.
665 * d-lang.c (d_language_data): Likewise.
666 (d_language::name_of_this): New member function.
667 * expprint.c (print_subexp_standard): Update call to name_of_this.
668 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
669 * go-lang.c (go_language_data): Likewise.
670 * language.c (unknown_language_data): Likewise.
671 (unknown_language::name_of_this): New member function.
672 (auto_language_data): Remove la_name_of_this initializer.
673 (auto_language::name_of_this): New member function.
674 * language.h (language_data): Delete la_name_of_this member
675 variable.
676 (language_defn::name_of_this): New member function.
677 * m2-lang.c (m2_language_data): Remove la_name_of_this
678 initializer.
679 * objc-lang.c (objc_language_data): Likewise.
680 (objc_language::name_of_this): New member function.
681 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
682 initializer.
683 * p-lang.c (pascal_language_data): Likewise.
684 (pascal_language::name_of_this): New member function.
685 * rust-lang.c (rust_language_data): Remove la_name_of_this
686 initializer.
687 * symtab.c (lookup_language_this): Update call to name_of_this.
688 (lookup_symbol_aux): Likewise.
689 * valops.c (value_of_this): Likewise.
690
22e3f3ed
AB
6912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * ada-lang.c (ada_language_data): Remove
694 la_struct_too_deep_ellipsis initializer.
695 (ada_language::struct_too_deep_ellipsis): New member function.
696 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
697 initializer.
698 (cplus_language_data): Likewise.
699 (asm_language_data): Likewise.
700 (minimal_language_data): Likewise.
701 * cp-valprint.c (cp_print_value): Update call to
702 struct_too_deep_ellipsis.
703 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
704 initializer.
705 * f-lang.c (f_language_data): Likewise.
706 (f_language::struct_too_deep_ellipsis): New member function.
707 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
708 initializer.
709 * language.c (unknown_language_data): Likewise.
710 (auto_language_data): Likewise.
711 * language.h (language_data): Delete la_struct_too_deep_ellipsis
712 member variable.
713 (language_defn::struct_too_deep_ellipsis): New member function.
714 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
715 initializer.Q
716 * objc-lang.c (objc_language_data): Likewise.
717 * opencl-lang.c (opencl_language_data): Likewise.
718 * p-lang.c (pascal_language_data): Likewise.
719 * rust-lang.c (rust_language_data): Likewise.
720 * valprint.c (val_print_check_max_depth): Update call to
721 struct_too_deep_ellipsis.
722
ed29e1c7
FW
7232020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
724
725 * MAINTAINERS (Write After Approval): Add myself.
726
12d8f940
TT
7272020-09-15 Tom Tromey <tom@tromey.com>
728
729 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
730 Remove.
731
6b5a7bc7
TT
7322020-09-15 Tom Tromey <tom@tromey.com>
733
734 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
735 and TYPE_CODE_METHODPTR cases.
736 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
737 (c_value_print_inner): Update.
738 * valprint.c (generic_value_print_memberptr): New function, from
739 c_value_print_memberptr.
740 (generic_value_print): Use it. Call cplus_print_method_ptr.
741
47f0e2ff
TT
7422020-09-15 Tom Tromey <tromey@adacore.com>
743
744 * python/python-internal.h (PyInt_FromLong): Remove define.
745 * python/py-value.c (convert_value_from_python): Use
746 gdb_py_object_from_longest.
747 * python/py-type.c (typy_get_code): Use
748 gdb_py_object_from_longest.
749 * python/py-symtab.c (salpy_get_line): Use
750 gdb_py_object_from_longest.
751 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
752 gdb_py_object_from_longest.
753 * python/py-record.c (recpy_gap_reason_code): Use
754 gdb_py_object_from_longest.
755 * python/py-record-btrace.c (recpy_bt_insn_size)
756 (recpy_bt_func_level, btpy_list_count): Use
757 gdb_py_object_from_longest.
758 * python/py-infthread.c (gdbpy_create_ptid_object): Use
759 gdb_py_object_from_longest. Fix error handling.
760 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
761 gdb_py_object_from_longest.
762 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
763 gdb_py_object_from_longest.
764 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
765 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
766 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
767
512116ce
TT
7682020-09-15 Tom Tromey <tromey@adacore.com>
769
770 * python/python.c (gdbpy_parameter_value): Use
771 gdb_py_object_from_ulongest.
772
4ab1029c
TT
7732020-09-15 Tom Tromey <tromey@adacore.com>
774
775 * python/py-infevents.c (create_register_changed_event_object):
776 Use gdb_py_object_from_longest.
777 * python/py-exitedevent.c (create_exited_event_object): Use
778 gdb_py_object_from_longest.
779
062534d4
TT
7802020-09-15 Tom Tromey <tromey@adacore.com>
781
782 * python/python.c (gdbpy_parameter_value): Use
783 gdb_py_object_from_longest.
784 * python/py-type.c (convert_field, typy_range): Use
785 gdb_py_object_from_longest.
786 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
787 gdb_py_object_from_longest.
788 * python/py-lazy-string.c (stpy_get_length): Use
789 gdb_py_object_from_longest.
790 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
791 gdb_py_object_from_longest.
792 * python/py-infevents.c (create_memory_changed_event_object): Use
793 gdb_py_object_from_longest.
794 * python/py-inferior.c (infpy_get_num): Use
795 gdb_py_object_from_longest.
796 (infpy_get_pid): Likewise.
797
d1cab987
TT
7982020-09-15 Tom Tromey <tromey@adacore.com>
799
800 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
801 defines.
802 * python/py-value.c (valpy_long): Use
803 gdb_py_object_from_ulongest.
804 * python/py-symtab.c (salpy_get_pc): Use
805 gdb_py_object_from_ulongest.
806 (salpy_get_last): Likewise.
807 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
808 gdb_py_object_from_ulongest.
809 * python/py-lazy-string.c (stpy_get_address): Use
810 gdb_py_object_from_ulongest.
811 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
812 * python/py-arch.c (archpy_disassemble): Use
813 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
814 error handling.
815
4bde49dc
TT
8162020-09-15 Tom Tromey <tromey@adacore.com>
817
818 * python/python-internal.h (gdb_py_long_from_longest): Remove
819 defines.
820 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
821 * python/py-type.c (convert_field, typy_get_sizeof): Use
822 gdb_py_object_from_longest.
823 * python/py-record-btrace.c (btpy_list_index): Use
824 gdb_py_object_from_longest.
825
37431074
TT
8262020-09-15 Tom Tromey <tromey@adacore.com>
827
828 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
829 * python/py-record.c (recpy_element_number): Use
830 gdb_py_object_from_longest.
831 (recpy_gap_number): Likewise.
832
cbe25684
TT
8332020-09-15 Tom Tromey <tromey@adacore.com>
834
835 * top.c (ui::ui): Update.
836 (highest_ui_num): Remove.
837 * top.h (struct ui) <num>: Remove.
838
db92ac45
TT
8392020-09-15 Tom Tromey <tromey@adacore.com>
840
841 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
842 * ui-style.c (ansi_regex_text): Now array.
843 * rust-exp.y (number_regex_text): Now array.
844 * linespec.c (linespec_quote_characters): Now array.
845 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
846 Now arrays.
847
d2b31b67
SM
8482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
849
850 * debuginfod-support.c (debuginfod_client_deleter): New.
851 (debuginfod_client_up): New.
852 (debuginfod_init): Return debuginfod_client_up.
853 (debuginfod_source_query): Adjust.
854 (debuginfod_debuginfo_query): Adjust.
855
3246bd8e
SM
8562020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
857
858 * debuginfod-support.c (debuginfod_source_query): Use
859 make_unique_xstrdup.
860
10242f36
SM
8612020-09-14 Simon Marchi <simon.marchi@efficios.com>
862
863 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
864 with `type::instance_flags`.
865
e1044e6a
MM
8662020-09-14 Michael Mullin <masmullin@gmail.com>
867
868 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
869 Remove baton parameter.
870
04902b09
PA
8712020-09-14 Pedro Alves <pedro@palves.net>
872
873 * Makefile.in (SELFTESTS_SRCS): Add
874 unittests/enum-flags-selftests.c.
875 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
876 btrace_function_flags instead of enum btrace_function_flag.
877 * compile/compile-c-types.c (convert_qualified): Use
878 enum_flags::raw.
879 * compile/compile-cplus-symbols.c (convert_one_symbol)
880 (convert_symbol_bmsym):
881 * compile/compile-cplus-types.c (compile_cplus_convert_method)
882 (compile_cplus_convert_struct_or_union_methods)
883 (compile_cplus_instance::convert_qualified_base):
884 * go-exp.y (parse_string_or_char): Add cast to int.
885 * unittests/enum-flags-selftests.c: New file.
886 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
887 type to btrace_thread_flags from btrace_thread_flag.
888 (record_btrace_cancel_resume, record_btrace_step_thread): Change
889 local's type to btrace_thread_flags from btrace_thread_flag. Add
890 cast in DEBUG call.
891
69896a2c
PA
8922020-09-14 Pedro Alves <pedro@palves.net>
893
894 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
895 * gdbtypes.c (address_space_name_to_int): Rename to ...
896 (address_space_name_to_type_instance_flags): ... this.
897 (address_space_int_to_name): Rename to ...
898 (address_space_type_instance_flags_to_name): ... this.
899 * gdbtypes.h (address_space_name_to_int): Rename to ...
900 (address_space_name_to_type_instance_flags): ... this.
901 (address_space_int_to_name): Rename to ...
902 (address_space_type_instance_flags_to_name): ... this.
903 * type-stack.c (type_stack::insert): Adjust to rename.
904 * type-stack.h (type_stack::insert): Likewise.
905
314ad88d
PA
9062020-09-14 Pedro Alves <pedro@palves.net>
907 Andrew Burgess <andrew.burgess@embecosm.com>
908
909 * avr-tdep.c (avr_address_class_type_flags): Return
910 type_instance_flags.
911 (avr_address_class_type_flags_to_name): Take a
912 type_instance_flags.
913 (avr_address_class_name_to_type_flags): Return bool and take a
914 type_instance_flags.
915 * d-lang.c (build_d_types): Use type::set_instance_flags.
916 * ft32-tdep.c (ft32_address_class_type_flags): Return
917 type_instance_flags.
918 (ft32_address_class_type_flags_to_name): Take a
919 type_instance_flags.
920 (ft32_address_class_name_to_type_flags): Return bool and take a
921 type_instance_flags.
922 (ft32_gdbarch_init): Use type::set_instance_flags.
923 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
924 * gdbarch.h, gdbarch.c: Regenerate.
925 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
926 (address_class_name_to_type_flags): Use type_instance_flags and
927 bool.
928 * gdbtypes.c (address_space_name_to_int)
929 (address_space_int_to_name, make_qualified_type): Use
930 type_instance_flags.
931 (make_qualified_type): Use type_instance_flags and
932 type::set_instance_flags.
933 (make_type_with_address_space, make_cv_type, make_vector_type)
934 (check_typedef): Use type_instance_flags.
935 (recursive_dump_type): Cast type_instance_flags to unsigned for
936 printing.
937 (copy_type_recursive): Use type::set_instance_flags.
938 (gdbtypes_post_init): Use type::set_instance_flags.
939 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
940 <m_instance_flags>: ... this.
941 <instance_flags, set_instance_flags>: New methods.
942 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
943 (SET_TYPE_INSTANCE_FLAGS): New.
944 (address_space_name_to_int, address_space_int_to_name)
945 (make_type_with_address_space): Pass flags using
946 type_instance_flags instead of int.
947 * stabsread.c (cleanup_undefined_types_noname): Use
948 type::set_instance_flags.
949 * s390-tdep.c (s390_address_class_type_flags): Return
950 type_instance_flags.
951 (s390_address_class_type_flags_to_name): Take a
952 type_instance_flags.
953 (s390_address_class_name_to_type_flags): Return bool and take a
954 type_instance_flags.
955 * type-stack.c (type_stack::follow_types): Use
956 type_instance_flags.
957 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
958
27087b7f
TT
9592020-09-14 Tom Tromey <tromey@adacore.com>
960
961 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
962 * x86-tdep.c (x86_is_thunk_register_name)
963 (x86_in_indirect_branch_thunk): Update.
964 * sparc64-tdep.c (sparc64_fpu_register_names)
965 (sparc64_cp0_register_names, sparc64_register_names)
966 (sparc64_pseudo_register_names): Now const.
967 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
968 cp0_registers_num>: Now const.
969 * sparc-tdep.c (sparc_core_register_names)
970 (sparc32_fpu_register_names, sparc32_cp0_register_names)
971 (sparc32_pseudo_register_names): Now const.
972 (validate_tdesc_registers): Update.
973 * rust-lang.c (rust_extensions): Now const.
974 * p-lang.c (p_extensions): Now const.
975 * objc-lang.c (objc_extensions): Now const.
976 * nto-tdep.c (nto_thread_state_str): Now const.
977 * moxie-tdep.c (moxie_register_names): Now const.
978 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
979 Now const.
980 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
981 (mips_linux_reg_names): Now const.
982 (mips_gdbarch_init): Update.
983 * microblaze-tdep.c (microblaze_register_names): Now const.
984 * m68k-tdep.c (m68k_register_names): Now const.
985 * m32r-tdep.c (m32r_register_names): Now const.
986 * ia64-tdep.c (ia64_register_names): Now const.
987 * i386-tdep.h (struct gdbarch_tdep) <register_names,
988 ymmh_register_names, ymm16h_regnum, mpx_register_names,
989 k_register_names, zmmh_register_names, xmm_avx512_register_names,
990 ymm_avx512_register_names, pkeys_register_names>: Now const.
991 * i386-tdep.c (i386_register_names, i386_zmm_names)
992 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
993 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
994 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
995 * f-lang.c (f_extensions): Now const.
996 * d-lang.c (d_extensions): Now const.
997 * csky-tdep.c (csky_register_names): Now const.
998 * charset.c (default_charset_names, charset_enum): Now const.
999 (_initialize_charset): Update.
1000 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1001 const.
1002 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1003 (bsd_uthread_solib_loaded): Update.
1004 (bsd_uthread_state): Now const.
1005 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1006 (amd64_ymm_avx512_names, amd64_ymmh_names)
1007 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1008 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1009 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1010 (amd64_dword_names): Now const.
1011 * agent.c (can_use_agent_enum): Now const.
1012 * ada-tasks.c (task_states, long_task_states): Now const.
1013 * ada-lang.c (known_runtime_file_name_patterns)
1014 (known_auxiliary_function_name_patterns, attribute_names)
1015 (standard_exc, ada_extensions): Now const.
1016
89806626
SM
10172020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1018
1019 * bcache.h (struct bcache) <bcache>: Remove constructor.
1020 <m_hash_function, m_compare_function>: Remove.
1021 <~bcache>: Make virtual.
1022 <compare>: Remove static method, introduce virtual method.
1023 <default_hash>: Remove.
1024 <hash>: New virtual method.
1025 * bcache.c (bcache::expand_hash_table): Update.
1026 (bcache::insert): Update.
1027 (bcache::hash): New.
1028 (bcache::compare): Update comment and parameter names.
1029 * gdbtypes.c (types_deeply_equal): Update.
1030 * psymtab.h (struct psymbol_bcache): New struct.
1031 (class psymtab_storage) <psymtab_storage>: Make default.
1032 <psymbol_cache>: Change type to psymbol_bcache.
1033 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1034 (psymbol_hash): Change to...
1035 (psymbol_bcache::hash): ... this.
1036 (psymbol_compare): Change to...
1037 (psymbol_bcache::compare): ... this.
1038
677c92fe
SM
10392020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1040
1041 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1042 checking for initial lwp.
1043
3eba3a01
TT
10442020-09-14 Tom Tromey <tromey@adacore.com>
1045
1046 * m68k-tdep.c (m68k_extract_return_value): Use
1047 pointer_result_regnum.
1048 (m68k_store_return_value): Likewise.
1049 (m68k_reg_struct_return_p): Handle vectors and arrays.
1050 (m68k_return_value): Handle arrays.
1051 (m68k_svr4_return_value): Fix single-element aggregate handling.
1052 Handle long double. Adjust for embedded ABI.
1053 (m68k_svr4_init_abi): Set pointer_result_regnum.
1054 (m68k_embedded_init_abi): New function.
1055 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1056 (m68k_osabi_sniffer): New function.
1057 (_initialize_m68k_tdep): Register osabi sniffer.
1058 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1059 member.
1060
33f4dd48
SM
10612020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1062
1063 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1064 with gdb::unique_xmalloc_ptr<char>.
1065
8400a90d
SM
10662020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1067
1068 * xml-support.h (xml_fetch_another): Change type to be a
1069 function_view.
1070 (xml_process_xincludes): Remove baton parameter.
1071 (xml_fetch_content_from_file): Change baton parameter to
1072 dirname.
1073 * xml-support.c (struct xinclude_parsing_data)
1074 <xinclude_parsing_data>: Remove baton parameter.
1075 <fetcher_baton>: Remove.
1076 (xinclude_start_include): Adjust.
1077 (xml_process_xincludes): Adjust.
1078 (xml_fetch_content_from_file): Replace baton parameter with
1079 dirname.
1080 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1081 (xml_init_syscalls_info): Use a lambda.
1082 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1083 (file_read_description_xml): Use a lambda.
1084 (fetch_available_features_from_target): Change baton parameter
1085 to target_ops.
1086 (target_read_description_xml): Use a lambda.
1087 (target_fetch_description_xml): Use a lambda.
1088 (string_read_description_xml): Update.
1089
04f5bab2
SM
10902020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1091
1092 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1093 uses with type::endianity_is_not_default.
1094
db558e34
SM
10952020-09-14 Simon Marchi <simon.marchi@efficios.com>
1096
1097 * gdbtypes.h (struct type) <endianity_is_not_default,
1098 set_endianity_is_not_default>: New methods.
1099 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1100 type::endianity_is_not_default, change all write call sites to
1101 use type::set_endianity_is_not_default.
1102
22c4c60c
SM
11032020-09-14 Simon Marchi <simon.marchi@efficios.com>
1104
1105 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1106 uses with type::is_fixed_instance.
1107
9cdd0d12
SM
11082020-09-14 Simon Marchi <simon.marchi@efficios.com>
1109
1110 * gdbtypes.h (struct type) <is_fixed_instance,
1111 set_is_fixed_instance>: New methods.
1112 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1113 write call sites to use type::set_is_fixed_instance.
1114
0becda7a
SM
11152020-09-14 Simon Marchi <simon.marchi@efficios.com>
1116
1117 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1118 uses with type::is_gnu_ifunc.
1119
03cc7249
SM
11202020-09-14 Simon Marchi <simon.marchi@efficios.com>
1121
1122 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1123 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1124 use type::set_is_gnu_ifunc.
1125
3f46044c
SM
11262020-09-14 Simon Marchi <simon.marchi@efficios.com>
1127
1128 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1129 uses with type::stub_is_supported.
1130
9baccff6
SM
11312020-09-14 Simon Marchi <simon.marchi@efficios.com>
1132
1133 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1134 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1135 use type::set_stub_is_supported.
1136
bd63c870
SM
11372020-09-14 Simon Marchi <simon.marchi@efficios.com>
1138
1139 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1140 uses with type::is_vector.
1141
2062087b
SM
11422020-09-14 Simon Marchi <simon.marchi@efficios.com>
1143
1144 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1145 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1146 use type::set_is_vector.
1147
a409645d
SM
11482020-09-14 Simon Marchi <simon.marchi@efficios.com>
1149
1150 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1151 uses with type::has_varargs.
1152
1d6286ed
SM
11532020-09-14 Simon Marchi <simon.marchi@efficios.com>
1154
1155 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1156 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1157 use type::set_has_varargs.
1158
7f9f399b
SM
11592020-09-14 Simon Marchi <simon.marchi@efficios.com>
1160
1161 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1162 uses with type::is_prototyped.
1163
27e69b7a
SM
11642020-09-14 Simon Marchi <simon.marchi@efficios.com>
1165
1166 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1167 New methods.
1168 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1169 call sites to use type::set_is_prototyped.
1170
d2183968
SM
11712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1172
1173 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1174 uses with type::target_is_stub.
1175
8f53807e
SM
11762020-09-14 Simon Marchi <simon.marchi@efficios.com>
1177
1178 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1179 New methods.
1180 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1181 sites to use type::set_target_is_stub.
1182
e46d3488
SM
11832020-09-14 Simon Marchi <simon.marchi@efficios.com>
1184
1185 * gdbtypes.h (TYPE_STUB): Remove, replace all
1186 uses with type::is_stub.
1187
b4b73759
SM
11882020-09-14 Simon Marchi <simon.marchi@efficios.com>
1189
1190 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1191 (TYPE_STUB): Use type::is_stub, change all write call sites to
1192 use type::set_is_stub.
1193
20ce4123
SM
11942020-09-14 Simon Marchi <simon.marchi@efficios.com>
1195
1196 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1197 type::has_no_signedness.
1198
15152a54
SM
11992020-09-14 Simon Marchi <simon.marchi@efficios.com>
1200
1201 * gdbtypes.h (struct type) <has_no_signedness,
1202 set_has_no_signedness>: New methods.
1203 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1204 call sites to use type::set_has_no_signedness.
1205
c6d940a9
SM
12062020-09-14 Simon Marchi <simon.marchi@efficios.com>
1207
1208 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1209 type::is_unsigned.
1210
653223d3
SM
12112020-09-14 Simon Marchi <simon.marchi@efficios.com>
1212
1213 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1214 methods.
1215 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1216 sites to use type::set_is_unsigned.
1217
55ea94da
FH
12182020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1219 Adam Renquinha <arenquinha@cimeq.qc.ca>
1220
1221 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1222 pointer and stack frame offset when unwinding.
1223
6791b117
PA
12242020-09-13 Pedro Alves <pedro@palves.net>
1225
1226 * NEWS: Document "-break-insert --qualified".
1227 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1228
77f2120b
PA
12292020-09-13 Pedro Alves <pedro@palves.net>
1230
1231 * linespec.c (classify_mtype, compare_msyms): Delete.
1232 (search_minsyms_for_name): Remove classification logic. Instead
1233 filter out trampoline symbols if we also found an external
1234 function of the same name.
1235
ed6a896c
JB
12362020-09-13 Joel Brobecker <brobecker@adacore.com>
1237
1238 * NEWS: Create a new section for the next release branch.
1239 Rename the section of the current branch, now that it has
1240 been cut.
1241
32aea73e
JB
12422020-09-13 Joel Brobecker <brobecker@adacore.com>
1243
1244 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1245 * version.in: Bump version to 11.0.50.DATE-git.
1246
8087c3fa
JB
12472020-09-12 Joel Brobecker <brobecker@adacore.com>
1248
1249 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1250
2a67f09d
FW
12512020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1252 Felix Willgerodt <Felix.Willgerodt@intel.com>
1253
1254 * gdbarch.sh: Added bfloat16 type.
1255 * gdbarch.c: Regenerated.
1256 * gdbarch.h: Regenerated.
1257 * gdbtypes.c (floatformats_bfloat16): New struct.
1258 (gdbtypes_post_init): Add builtin_bfloat16.
1259 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1260 (floatformats_bfloat16): New struct.
1261 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1262 (i386_ymm_type): Add field "v16_bfloat16"
1263 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1264 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1265 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1266 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1267 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1268 * features/i386/64bit-avx512.c: Regenerated.
1269 * features/i386/64bit-sse.xml: Add bfloat16 type.
1270 * features/i386/64bit-sse.c: Regenerated.
1271
1347d111
FW
12722020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1273
1274 * i386-tdep.c (i386_zmm_type): Fix field names.
1275 (i386_ymm_type): Fix field names.
1276
7a4e8e7d
TBA
12772020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1278
1279 * breakpoint.c: Fix typo in the help message of the
1280 "set breakpoint condition-evaluation" command.
1281
cf4ac4be
KR
12822020-09-10 Kamil Rytarowski <n54@gmx.com>
1283
1284 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1285 * (nbsd_nat_target::pid_to_exec_file)
1286 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1287 (nbsd_nat_target::post_startup_inferior)
1288 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1289 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1290 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1291 * (nbsd_thread_lister): Remove.
1292
f404573e
KR
12932020-09-10 Kamil Rytarowski <n54@gmx.com>
1294
1295 * fork-inferior.c (startup_inferior): Avoid double free.
1296
1ccb2c17
KR
12972020-09-10 Kamil Rytarowski <n54@gmx.com>
1298
1299 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1300 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1301
feedfcc7
KR
13022020-09-10 Kamil Rytarowski <n54@gmx.com>
1303
1304 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1305 * netbsd-nat.c: Include <sys/ptrace.h>.
1306 * (netbsd_nat::enable_proc_events): Add.
1307
c489f8c6
KR
13082020-09-10 Kamil Rytarowski <n54@gmx.com>
1309
1310 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1311 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1312 (netbsd_nat::for_each_thread): Add.
1313 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1314 "gdbsupport/common-debug.h".
1315 * (netbsd_nat::netbsd_thread_lister)
1316 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1317 (netbsd_nat::for_each_thread): Add.
1318
330662f6
KR
13192020-09-10 Kamil Rytarowski <n54@gmx.com>
1320
1321 * netbsd-nat.h: Include <unistd.h>.
1322 * (netbsd_nat::pid_to_exec_file): Add.
1323 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1324 * (netbsd_nat::pid_to_exec_file) Add.
1325
70b67307
KR
13262020-09-10 Kamil Rytarowski <n54@gmx.com>
1327
1328 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1329
99cf6da6
KR
13302020-09-10 Kamil Rytarowski <n54@gmx.com>
1331
1332 * netbsd-nat.h: New file.
1333 * netbsd-nat.c: Likewise.
1334
1b788fb6
TT
13352020-09-09 Tom Tromey <tromey@adacore.com>
1336
1337 * ada-lang.c (remove_extra_symbols): Do not increment when
1338 removing an element
1339
03b0a45f
TT
13402020-09-08 Tom Tromey <tromey@adacore.com>
1341
1342 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1343
3cae4447
TT
13442020-09-08 Tom Tromey <tromey@adacore.com>
1345
1346 PR win32/25302:
1347 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1348 (gdb_bfd_init_data): New function.
1349 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1350
7f08fd51
TBA
13512020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1352
1353 * infrun.c (fetch_inferior_event): Use
1354 `switch_to_target_no_thread` to switch the target.
1355
3e6ff933
TT
13562020-09-06 Tom Tromey <tom@tromey.com>
1357
1358 * symfile.h (dwarf2_free_objfile): Don't declare.
1359
e56798df
AKS
13602020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1361
1362 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1363 to match 16 byte real/complex type generated by Flang compiler.
1364
8f5c6526
TV
13652020-09-03 Tom de Vries <tdevries@suse.de>
1366
1367 PR breakpoint/26546
1368 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1369 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1370
c5065df0
SM
13712020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1372
1373 * maint.c (index_digits): New function.
1374 (struct maint_print_section_data): Remove.
1375 (print_bfd_section_info): Remove print_data parameter, add arg
1376 and index_digits.
1377 (print_objfile_section_info): Likewise.
1378 (print_bfd_section_info_maybe_relocated): Likewise (plus
1379 objfile).
1380 (maintenance_info_sections): Adjust calls.
1381
02c6f3f1
TT
13822020-09-02 Tom Tromey <tromey@adacore.com>
1383
1384 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1385 for null pointers.
1386 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1387
ef5e5b0b
SM
13882020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1389
1390 * bcache.h (struct bcache) <insert>: Change type of `added` to
1391 pointer to bool.
1392 * bcache.c (bcache::insert): Likewise.
1393 * gdbtypes.c (check_types_worklist): Adjust.
1394 * psymtab.c (add_psymbol_to_bcache): Adjust.
1395
973695d6
KB
13962020-08-31 Kevin Buettner <kevinb@redhat.com>
1397
1398 * corelow.c (unordered_set): Include.
1399 (class core_target): Add field 'm_core_unavailable_mappings'.
1400 (core_target::build_file_mappings): Print only one warning
1401 per inaccessible file. Add unavailable/broken mappings
1402 to m_core_unavailable_mappings.
1403 (core_target::xfer_partial): Call...
1404 (core_target::xfer_memory_via_mappings): New method.
1405
264fc0e2
SM
14062020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1407
1408 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1409 type to bool.
1410
2de01bdb
SM
14112020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1412
1413 * dwarf2/read.c (struct field_info): Fix indentation.
1414
f3bd50f1
SM
14152020-08-31 Simon Marchi <simon.marchi@efficios.com>
1416
1417 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1418 ordering in comment.
1419 * frame.c (frame_id_eq): Fix indentation.
1420
22b9b4b0
SL
14212020-08-31 Scott Linder <scott@scottlinder.com>
1422 Simon Marchi <simon.marchi@efficios.com>
1423
1424 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1425 inline frame ids in outer frame.
1426
84154d16
SM
14272020-08-31 Simon Marchi <simon.marchi@efficios.com>
1428
1429 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1430 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1431 (outer_frame_id): Use FID_STACK_OUTER instead of
1432 FID_STACK_INVALID.
1433 (frame_id_p): Don't check for outer_frame_id.
1434
8efaf6b3
SM
14352020-08-31 Simon Marchi <simon.marchi@efficios.com>
1436
1437 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1438 regnum/frame in value. Call allocate_value_lazy.
1439 * frame.c (frame_unwind_register_value): Use
1440 val_print_not_saved.
1441
fe1fe7ea
SM
14422020-08-31 Simon Marchi <simon.marchi@efficios.com>
1443
1444 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1445
f7c7700d
PA
14462020-08-29 Pedro Alves <pedro@palves.net>
1447
1448 * progspace.c (print_program_space): Use all_inferiors. Switch to
1449 the inferior before calling target_pid_to_str.
1450
e0814aae
TT
14512020-08-28 Tom Tromey <tom@tromey.com>
1452
1453 * xcoffread.c (xcoff_end_psymtab): Update comment.
1454 * dbxread.c (dbx_end_psymtab): Update comment.
1455
626d2320
TV
14562020-08-28 Tom de Vries <tdevries@suse.de>
1457
1458 PR breakpoint/26544
1459 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1460 event_location.
1461 (create_breakpoint): Same.
1462 (base_breakpoint_decode_location): Same.
1463 (bkpt_create_sals_from_location): Same.
1464 (bkpt_decode_location): Same.
1465 (bkpt_probe_create_sals_from_location): Same.
1466 (bkpt_probe_decode_location): Same.
1467 (tracepoint_create_sals_from_location): Same.
1468 (tracepoint_decode_location): Same.
1469 (tracepoint_probe_decode_location): Same.
1470 (strace_marker_create_sals_from_location): Same.
1471 (strace_marker_decode_location): Same.
1472 (create_sals_from_location_default): Same.
1473 (decode_location_default): Same.
1474 * breakpoint.h (struct breakpoint_ops): Same.
1475 (create_breakpoint): Same.
1476 * linespec.h (decode_line_full): Same.
1477 * linespec.c (decode_line_full): Same. Throw error if
1478 result.size () == 0.
1479
df631783
PA
14802020-08-27 Pedro Alves <pedro@palves.net>
1481
1482 PR gdb/26524
1483 * breakpoint.c (until_break_fsm) <location_breakpoint,
1484 caller_breakpoint>: Delete fields.
1485 <breakpoints>: New field.
1486 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1487 two individual breakpoints.
1488 (until_break_fsm::should_stop): Loop over breakpoints in the
1489 breakpoint vector.
1490 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1491 vector.
1492 (until_break_command): Handle location expanding into multiple
1493 sals.
1494
b2b38aa4
PA
14952020-08-27 Pedro Alves <pedro@palves.net>
1496
1497 PR gdb/26523
1498 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1499 bp_until breakpoints user-specified locations. Update intro
1500 comment.
1501
b886559f
SM
15022020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1503
1504 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1505 gdb_bfd_sections): New.
1506 * maint.c (print_bfd_section_info): Change param type to
1507 maint_print_section_data.
1508 (print_objfile_section_info): Likewise.
1509 (print_bfd_section_info_maybe_relocated): Likewise.
1510 (maintenance_info_sections): Use gdb_bfd_sections.
1511
4c6e63bf
SV
15122020-08-25 Shahab Vahedi <shahab@synopsys.com>
1513
1514 * MAINTAINERS: Add ARC target and maintainer.
1515
8d7f0635
AK
15162020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1517
1518 * configure.tgt: ARC support for GNU/Linux.
1519 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1520 * arc-linux-tdep.c: New file.
1521 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1522 * arc-tdep.c (arc_write_pc): Use it.
1523
fdd8731b
SV
15242020-08-25 Shahab Vahedi <shahab@synopsys.com>
1525
1526 * arc-tdep.c (arc_check_for_hardware_loop): New.
1527 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1528
22459524
SV
15292020-08-25 Shahab Vahedi <shahab@synopsys.com>
1530
1531 * arc-tdep.h: Include "gdbarch.h".
1532
995d3a19
SV
15332020-08-25 Shahab Vahedi <shahab@synopsys.com>
1534
1535 * arch/arc.h
1536 (arc_gdbarch_features): New class to stir the selection of target XML.
1537 (arc_create_target_description): Use FEATURES to choose XML target.
1538 (arc_lookup_target_description): Use arc_create_target_description
1539 to create _new_ target descriptions or return the already created
1540 ones if the FEATURES is the same.
1541 * arch/arc.c: Implementation of prototypes described above.
1542 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1543 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1544 * arc-tdep.c (*_feature_name): Make feature names consistent.
1545 (arc_register_feature): A new struct to hold information about
1546 registers of a particular target/feature.
1547 (arc_check_tdesc_feature): Check if XML provides registers in
1548 compliance with ARC_REGISTER_FEATURE structs.
1549 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1550 (determine_*_reg_feature_set): Which feature name to look for.
1551 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1552 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1553 to expected ISA enums to be used in arc_gdbarch_features structs.
1554 * features/Makefile (FEATURE_XMLFILES): Add new files.
1555 * gdb/features/arc/v1-aux.c: New file.
1556 * gdb/features/arc/v1-aux.xml: Likewise.
1557 * gdb/features/arc/v1-core.c: Likewise.
1558 * gdb/features/arc/v1-core.xml: Likewise.
1559 * gdb/features/arc/v2-aux.c: Likewise.
1560 * gdb/features/arc/v2-aux.xml: Likewise.
1561 * gdb/features/arc/v2-core.c: Likewise.
1562 * gdb/features/arc/v2-core.xml: Likewise.
1563 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1564
3945d2d7
GM
15652020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1566 Andrew Burgess <andrew.burgess@embecosm.com>
1567
1568 PR m2/26372
fc5d6901 1569 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1570 an assert. Remove single element array indexing pattern as the
1571 MULTI_SUBSCRIPT support will handle this case too.
1572
2677f2d3
SM
15732020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1574
1575 * value.h (valprint_check_validity): Move declaration from
1576 here...
1577 * valprint.h (valprint_check_validity): ... to here.
1578
c426fddb
SM
15792020-08-24 Simon Marchi <simon.marchi@efficios.com>
1580
1581 * debug.h: New file.
1582 * debug.c (debug_prefixed_vprintf): New function.
1583 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1584 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1585
1eb8556f
SM
15862020-08-24 Simon Marchi <simon.marchi@efficios.com>
1587
1588 * infrun.h (infrun_debug_printf_1): New function declaration.
1589 (infrun_debug_printf): New macro.
1590 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1591 throughout.
1592 (infrun_debug_printf): New function.
1593 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1594 (handle_jit_event): Likewise.
1595
b8fff44e
MW
15962020-08-21 Mark Wielaard <mark@klomp.org>
1597
1598 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1599
d19c3068
SM
16002020-08-22 Simon Marchi <simon.marchi@efficios.com>
1601
1602 * frame.c (enum class frame_id_status): New.
1603 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1604 (fprintf_frame): Update.
1605 (compute_frame_id): Set frame id status to "computing" on entry.
1606 Set it back to "not_computed" on failure and to "computed" on
1607 success.
1608 (get_frame_id): Assert the frame id is not being computed.
1609 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1610 (create_new_frame): Likewise.
1611 (frame_cleanup_after_sniffer): Update assert.
1612
b70e516e
SM
16132020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1614
1615 * regcache.c (pid_ptid_regcache_map): New type.
1616 (target_ptid_regcache_map): Remove.
1617 (target_pid_ptid_regcache_map): New type.
1618 (regcaches): Change type to target_pid_ptid_regcache_map.
1619 (get_thread_arch_aspace_regcache): Update.
1620 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1621 case.
1622 (regcaches_size): Update.
1623 (regcache_count): Update.
1624 (registers_changed_ptid_target_pid_test): New.
1625 (_initialize_regcache): Register new test.
1626
cdd9148a
SM
16272020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1628
1629 * regcache.c (regcache_count): New.
1630 (struct regcache_test_data): New.
1631 (regcache_test_data_up): New.
1632 (populate_regcaches_for_test): New.
1633 (regcaches_test): Remove.
1634 (get_thread_arch_aspace_regcache_test): New.
1635 (registers_changed_ptid_all_test): New.
1636 (registers_changed_ptid_target_test): New.
1637 (registers_changed_ptid_target_ptid_test): New.
1638 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1639 (_initialize_regcache): Register new tests.
1640
dd125343
SM
16412020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1642
1643 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1644 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1645 gdbarch and aspace parameter. Use current inferior's aspace.
1646 Validate regcache's arch value.
1647 (regcaches_test): Update.
1648
3ee93972
SM
16492020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1650
1651 * regcache.c (regcaches_test): Call registers_changed.
1652
33bf4c5c
TBA
16532020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1654
1655 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1656
c2fd7fae
AKS
16572020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1658
1659 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1660 to find the end of prologue for flang compiled binaries.
1661 * arm-tdep.c (arm_skip_prologue): Likewise.
1662 * i386-tdep.c (i386_skip_prologue): Likewise.
1663 * producer.c (producer_is_llvm): New function.
1664 (producer_parsing_tests): Added new tests for clang/flang.
1665 * producer.h (producer_is_llvm): New declaration.
1666
9327494e
SM
16672020-08-18 Simon Marchi <simon.marchi@efficios.com>
1668
1669 * linux-nat.c (linux_nat_debug_printf): New function.
1670 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1671
d138725a
AM
16722020-08-18 Aaron Merey <amerey@redhat.com>
1673
1674 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1675 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1676 (CLIBS): Add DEBUGINFOD_LIBS.
1677
f9b11e6b
ST
16782020-08-17 Sergei Trofimovich <siarheit@google.com>
1679
1680 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1681 'gdbarch_num_regs'.
1682
3ae7ab99
TT
16832020-08-17 Tom Tromey <tromey@adacore.com>
1684
1685 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1686 ada_get_decoded_value returns NULL.
1687
b017825f
TT
16882020-08-17 Tom Tromey <tromey@adacore.com>
1689
1690 * python/py-inferior.c (infpy_search_memory): Use
1691 gdb_py_object_from_ulongest.
1692 * python/py-infevents.c (create_inferior_call_event_object)
1693 (create_memory_changed_event_object): Use
1694 gdb_py_object_from_ulongest.
1695 * python/py-linetable.c (ltpy_entry_get_pc): Use
1696 gdb_py_object_from_ulongest.
1697
7635cf79
SM
16982020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1699
1700 * loc.c (class symbol_needs_eval_context): Fix indentation.
1701
f54be24b
SM
17022020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1703
1704 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1705 bool.
1706
53d5a2a5
TV
17072020-08-17 Tom de Vries <tdevries@suse.de>
1708
1709 PR gdb/26393
1710 * gdbtypes.c (dump_dynamic_prop): New function.
1711 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1712
547ce8f0
TV
17132020-08-15 Tom de Vries <tdevries@suse.de>
1714
1715 PR backtrace/26390
1716 * stack.c (print_frame_args): Temporarily set the selected
1717 frame to FRAME while printing the frame's arguments.
1718
6ea815e7
PFC
17192020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1720
1721 PR breakpoints/26385
1722 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1723 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1724
6e562fa3
PFC
17252020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1726
1727 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1728 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1729 and >= to check return value instead of == -1 and != -1.
1730
d369b608
SM
17312020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1732
1733 * utils.h (class gdb_argv) <as_array_view>: New method.
1734 * utils.c (gdb_argv_as_array_view_test): New.
1735 (_initialize_utils): Register selftest.
1736 * maint.c (maintenance_selftest): Use the new method.
1737
b31488a3
KR
17382020-08-13 Kamil Rytarowski <n54@gmx.com>
1739
1740 * target.h (supports_dumpcore, dumpcore): New
1741 function declarations.
1742 * target.c (supports_dumpcore, dumpcore): New
1743 functions.
1744 * target-delegates.c: Rebuild.
1745 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1746 and target_dumpcore ().
1747
002a3166
AM
17482020-08-13 Aaron Merey <amerey@redhat.com>
1749
1750 * debuginfod-support.c: Replace global variables with user_data.
1751
ece5bc8a
SM
17522020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1753
1754 * maint.c (maintenance_selftest): Split args and pass array_view
1755 to run_tests.
1756
6d8a0a5e
LM
17572020-08-12 Luis Machado <luis.machado@linaro.org>
1758
1759 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1760 type's length.
1761 Use %s and pulongest to print the length.
1762
7cf663a9
PA
17632020-08-12 Pedro Alves <palves@redhat.com>
1764
1765 * NEWS: Move "Multi-target debugging support" item to the
1766 "Changes since GDB 9" section.
1767
27c7b875
PA
17682020-08-12 Pedro Alves <palves@redhat.com>
1769
1770 PR gdb/26336
1771 * progspace.c (program_space::remove_objfile): Invalidate the
1772 frame cache.
1773
1796a2a1
TV
17742020-08-11 Tom de Vries <tdevries@suse.de>
1775
1776 * MAINTAINERS: Mark ms1 as deleted.
1777
f8e3fe0d
LM
17782020-08-10 Luis Machado <luis.machado@linaro.org>
1779
1780 PR gdb/26310
1781
1782 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1783 act accordingly.
1784 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1785 movz/str/stur/stp skipping behavior.
1786
cc308722
LM
17872020-08-10 Luis Machado <luis.machado@linaro.org>
1788
1789 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1790 struct user_sve_header instead of struct sve_context.
1791
041d9819
SM
17922020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1793
1794 * read.h (dwarf2_fetch_die_loc_sect_off,
1795 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1796 `void *` parameter with function_view.
1797 * read.c (dwarf2_fetch_die_loc_sect_off,
1798 dwarf2_fetch_die_loc_cu_off): Likewise.
1799 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1800 (per_cu_dwarf_call): Adjust.
1801 (get_frame_address_in_block_wrapper): Remove.
1802 (indirect_synthetic_pointer): Adjust.
1803 (get_ax_pc): Remove.
1804 (dwarf2_compile_expr_to_ax): Adjust.
1805
38f8aa06
TV
18062020-08-08 Tom de Vries <tdevries@suse.de>
1807
1808 PR build/26344
1809 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1810 constructor.
1811 * regcache.c (get_thread_arch_aspace_regcache): Same.
1812
a52b3ae2
TT
18132020-08-07 Tom Tromey <tromey@adacore.com>
1814
1815 * ravenscar-thread.c
1816 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1817 New method.
1818 (ravenscar_thread_target::wait): Check
1819 runtime_initialized.
1820 (ravenscar_thread_target::prepare_to_store)
1821 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1822 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1823 (ravenscar_thread_target::stopped_by_watchpoint)
1824 (ravenscar_thread_target::stopped_data_address)
1825 (ravenscar_thread_target::core_of_thread): Use
1826 scoped_restore_current_thread and
1827 set_base_thread_from_ravenscar_task.
1828
0e29517d
TT
18292020-08-07 Tom Tromey <tromey@adacore.com>
1830
1831 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1832
592f9bd7
TT
18332020-08-07 Tom Tromey <tromey@adacore.com>
1834
1835 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1836 update_inferior_ptid before update_thread_list.
1837 (temporarily_change_regcache_ptid): New class.
1838 (ravenscar_thread_target::fetch_registers)
1839 (ravenscar_thread_target::store_registers)
1840 (ravenscar_thread_target::prepare_to_store): Use base thread when
1841 forwarding operation.
1842
39e2018a
TT
18432020-08-07 Tom Tromey <tromey@adacore.com>
1844
1845 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1846 "is_pid" case.
1847
2080266b
TT
18482020-08-07 Tom Tromey <tromey@adacore.com>
1849
1850 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1851 New methods.
1852 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1853 first.
1854 (ravenscar_thread_target::add_thread): Rename from
1855 ravenscar_add_thread.
1856 (ravenscar_thread_target::update_thread_list): Use a lambda.
1857 (ravenscar_thread_target::xfer_partial): New method.
1858
78c02f21
TT
18592020-08-07 Tom Tromey <tromey@adacore.com>
1860
1861 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1862 gdb::function_view.
1863 (iterate_over_live_ada_tasks): Change type of argument.
1864 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1865 of argument.
1866
d5d833af
TT
18672020-08-07 Tom Tromey <tromey@adacore.com>
1868
1869 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1870 Remove.
1871 (ravenscar_thread_target::extra_thread_info): Remove.
1872 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1873 defer to target beneath for non-Ravenscar threads.
1874
a8ac85bb
TT
18752020-08-07 Tom Tromey <tromey@adacore.com>
1876
1877 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1878 get_base_thread_from_ravenscar_task>: Now methods.
1879 <m_cpu_map>: New member.
1880 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1881 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1882 (ravenscar_thread_target::task_is_currently_active): Update.
1883 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1884 Now a method.
1885 (ravenscar_thread_target::add_active_thread): Put initial thread
1886 into the m_cpu_map.
1887
550ab58d
TT
18882020-08-07 Tom Tromey <tromey@adacore.com>
1889
1890 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1891 event_ptid.
1892
e9546579
TT
18932020-08-07 Tom Tromey <tromey@adacore.com>
1894
1895 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1896 runtime_initialized.
1897
3d4470e5
TT
18982020-08-07 Tom Tromey <tromey@adacore.com>
1899
1900 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1901 add_active_thread.
1902 (ravenscar_thread_target::add_active_thread): Now public.
1903 (ravenscar_inferior_created): Call add_active_thread after pushing
1904 the target.
1905
888bdb2b
SM
19062020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1907
1908 * regcache.c (ptid_regcache_map): New type.
1909 (target_ptid_regcache_map): New type.
1910 (regcaches): Change type to target_ptid_regcache_map.
1911 (get_thread_arch_aspace_regcache): Update to regcaches' new
1912 type.
1913 (regcache_thread_ptid_changed): Likewise.
1914 (registers_changed_ptid): Likewise.
1915 (regcaches_size): Likewise.
1916 (regcaches_test): Update.
1917 (regcache_thread_ptid_changed): Update.
1918 * regcache.h (regcache_up): New type.
1919 * gdbsupport/ptid.h (hash_ptid): New struct.
1920
b161a60d
SM
19212020-08-07 Simon Marchi <simon.marchi@efficios.com>
1922
1923 * observable.h (thread_ptid_changed): Add parameter
1924 `process_stratum_target *`.
1925 * infrun.c (infrun_thread_ptid_changed): Add parameter
1926 `process_stratum_target *` and use it.
1927 (selftests): New namespace.
1928 (infrun_thread_ptid_changed): New function.
1929 (_initialize_infrun): Register selftest.
1930 * regcache.c (regcache_thread_ptid_changed): Add parameter
1931 `process_stratum_target *` and use it.
1932 (regcache_thread_ptid_changed): New function.
1933 (_initialize_regcache): Register selftest.
1934 * thread.c (thread_change_ptid): Pass target to
1935 thread_ptid_changed observable.
1936
d2854d8d
CT
19372020-08-06 Caroline Tice <cmtice@google.com>
1938
fe4c3d43
SM
1939 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1940 (struct dwp_sections): Update field comments. Add loclists and
1941 rnglists fields.
1942 (struct virtual_v2_dwo_sections): Rename struct to
1943 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1944 size & offset fields for loclists and rnglists.
1945 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1946 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1947 skipping dummy type units.
1948 (create_dwp_hash_table): Update the large comment above the function to
1949 discuss Version 5 DWP files as well, with references. Update all the
1950 version checks in the function to check for version 5 as well. Add new
1951 section at the end to create dwp hash table for version 5.
1952 (create_dwp_v2_section): Rename function to
1953 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1954 Add V5 to error message text.
1955 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1956 into calls to create_dwp_v2_or_v5_section.
1957 (create_dwo_unit_in_dwp_v5): New function.
1958 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1959 check for version2; add else clause to handle version 5.
1960 (open_and_init_dwo_file): Add code to check dwarf version & only call
1961 create_debug_types_hash_table (with sections.types) if version is not 5;
1962 else call create_debug_type_hash_table, with sections.info.
1963 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1964 version 5.
1965 (dwarf2_locate_v5_dwp_sections): New function.
1966 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1967 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1968
159ed7d9
SM
19692020-08-06 Simon Marchi <simon.marchi@efficios.com>
1970
1971 * regcache.h (class regcache): Remove friend
1972 registers_changed_ptid.
1973 <regcache_thread_ptid_changed>: Remove.
1974 <regcaches>: Remove.
1975 * regcache.c (regcache::regcaches): Rename to...
1976 (regcaches): ... this. Make static.
1977 (get_thread_arch_aspace_regcache): Update.
1978 (regcache::regcache_thread_ptid_changed): Rename to...
1979 (regcache_thread_ptid_changed): ... this. Update.
1980 (class regcache_access): Remove.
1981 (regcaches_test): Update.
1982 (_initialize_regcache): Update.
1983 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1984 <forward_list>.
1985
174981ae
SM
19862020-08-06 Simon Marchi <simon.marchi@efficios.com>
1987
1988 * regcache.h (class regcache) <current_regcache>: Rename to...
1989 <regcaches>: ... this. Move doc here.
1990 * regcache.c (regcache::current_regcache) Rename to...
1991 (regcache::regcaches): ... this. Move doc to header.
1992 (get_thread_arch_aspace_regcache): Update.
1993 (regcache::regcache_thread_ptid_changed): Update.
1994 (registers_changed_ptid): Update.
1995 (class regcache_access) <current_regcache_size>: Rename to...
1996 <regcaches_size>: ... this.
1997 (current_regcache_test): Rename to...
1998 (regcaches_test): ... this.
1999 (_initialize_regcache): Update.
2000
ed908db6
VC
20012020-08-06 Victor Collod <vcollod@nvidia.com>
2002
2003 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2004
b5582ab7
KB
20052020-08-05 Kevin Buettner <kevinb@redhat.com>
2006
2007 * corelow.c (core_target::build_file_mappings): Don't output
2008 null pathname in warning.
2009
ea946b86
SM
20102020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2011
2012 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2013 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2014 gdb.dwarf2/dw2-single-line-discriminators.exp,
2015 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2016
57d02173
TT
20172020-08-05 Tom Tromey <tromey@adacore.com>
2018
2019 PR rust/26197:
2020 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2021 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2022 Fix off-by-one and type size errors in ordinary case.
2023
5555c86d
TV
20242020-08-05 Tom de Vries <tdevries@suse.de>
2025
2026 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2027 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2028
97916bfe
SM
20292020-08-04 Simon Marchi <simon.marchi@efficios.com>
2030
2031 * frame.h (frame_id_p): Return bool.
2032 (frame_id_artificial_p): Return bool.
2033 (frame_id_eq): Return bool.
2034 (has_stack_frames): Return bool.
2035 (get_selected_frame): Fix typo in comment.
2036 (get_frame_pc_if_available): Return bool.
2037 (get_frame_address_in_block_if_available): Return bool.
2038 (get_frame_func_if_available): Return bool.
2039 (read_frame_register_unsigned): Return bool.
2040 (get_frame_register_bytes): Return bool.
2041 (safe_frame_unwind_memory): Return bool.
2042 (deprecated_frame_register_read): Return bool.
2043 (frame_unwinder_is): Return bool.
2044 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2045 bool.
2046 <this_id::p>: Likewise.
2047 <prev_p>: Likewise.
2048 (frame_stash_add): Return bool.
2049 (get_frame_id): Use bool.
2050 (frame_id_build_special) Use bool.
2051 (frame_id_build_unavailable_stack): Use bool.
2052 (frame_id_build): Use bool.
2053 (frame_id_p): Return bool, use true/false instead of 1/0.
2054 (frame_id_artificial_p): Likewise.
2055 (frame_id_eq): Likewise.
2056 (frame_id_inner): Likewise.
2057 (get_frame_func_if_available): Likewise.
2058 (read_frame_register_unsigned): Likewise.
2059 (deprecated_frame_register_read): Likewise.
2060 (get_frame_register_bytes): Likewise.
2061 (has_stack_frames): Likewise.
2062 (inside_main_func): Likewise.
2063 (inside_entry_func): Likewise.
2064 (get_frame_pc_if_available): Likewise.
2065 (get_frame_address_in_block_if_available): Likewise.
2066 (frame_unwinder_is): Likewise.
2067 (safe_frame_unwind_memory): Likewise.
2068 (frame_unwind_arch): Likewise.
2069
fedfee88
SM
20702020-08-04 Simon Marchi <simon.marchi@efficios.com>
2071
2072 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2073 type to cached_copy_status.
2074 (fprintf_frame): Adjust.
2075 (get_frame_func_if_available): Adjust.
2076 (frame_cleanup_after_sniffer): Adjust.
2077
6cfa9b59
MW
20782020-08-04 Mark Wielaard <mark@klomp.org>
2079
2080 * MAINTAINERS (Write After Approval): Update email address.
2081
66d6346b
SM
20822020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2083
2084 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2085 dynamic_prop::const_val.
2086
8a6d5e35
SM
20872020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2088
2089 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2090 dynamic_prop::kind.
2091
51d6067d
SM
20922020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2093
2094 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2095
b26e2ae7
JM
20962020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2097
2098 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2099
39791af2
JM
21002020-08-04 Weimin Pan <weimin.pan@oracle.com>
2101 Jose E. Marchesi <jose.marchesi@oracle.com>
2102
2103 * configure.tgt: Add entry for bpf-*-*.
2104 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2105 (ALLDEPFILES): Add bpf-tdep.c.
2106 * bpf-tdep.c: New file.
2107 * MAINTAINERS: Add bpf target and maintainer.
2108 * NEWS: Mention the support for the new target.
2109
521894aa
TV
21102020-08-04 Tom de Vries <tdevries@suse.de>
2111
2112 PR symtab/23270
2113 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2114 Error.
2115
5d6356e9
JB
21162020-08-03 John Baldwin <jhb@FreeBSD.org>
2117
2118 * syscalls/freebsd.xml: Regenerate.
2119
0cf82b81
JB
21202020-08-03 John Baldwin <jhb@FreeBSD.org>
2121
2122 * syscalls/update-freebsd.sh: Fix usage and year range.
2123
8f34b746
TV
21242020-08-03 Tom de Vries <tdevries@suse.de>
2125
2126 PR symtab/26333
2127 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2128 DW_LNE_lo_user/DW_LNE_hi_user range.
2129
5e500d33
SM
21302020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2131
2132 PR ada/26318
2133 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2134 kind.
2135
78319c15
TBA
21362020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2137
2138 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2139
4c55e970
TBA
21402020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2141
2142 * breakpoint.c (set_breakpoint_condition): Update the condition
2143 expressions after checking that the input condition string parses
2144 successfully and does not contain junk at the end.
2145
1e620590
TBA
21462020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2147
2148 * breakpoint.c (set_breakpoint_condition): Update the
2149 condition string after parsing the new condition successfully.
2150
c8693053
RO
21512020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2152
2153 * proc-api.c (_STRUCTURED_PROC): Don't define.
2154 * proc-events.c: Likewise.
2155 * proc-flags.c: Likewise.
2156 * proc-why.c: Likewise.
2157 * procfs.c: Likewise.
2158
2159 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2160 * configure, config.in: Regenerate.
2161
5a99adb8
TV
21622020-07-30 Tom de Vries <tdevries@suse.de>
2163
2164 PR build/26320
2165 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2166 m_red/m_green/m_blue in a union.
2167
8ba83e91
TV
21682020-07-29 Tom de Vries <tdevries@suse.de>
2169
2170 PR tdep/26280
2171 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2172
f75a0693
AB
21732020-07-28 Tom Tromey <tromey@adacore.com>
2174
2175 PR symtab/26270:
2176 * symtab.h (find_pc_partial_function_sym): Declare.
2177 * cli/cli-cmds.c (disassemble_command): Use
2178 find_pc_partial_function_sym. Check asm_demangle.
2179 * blockframe.c (cache_pc_function_sym): New global.
2180 (cache_pc_function_name): Remove.
2181 (clear_pc_function_cache): Update.
2182 (find_pc_partial_function_sym): New function, from
2183 find_pc_partial_function.
2184 (find_pc_partial_function): Rewrite using
2185 find_pc_partial_function_sym.
2186
16f3242c
TT
21872020-07-28 Tom Tromey <tromey@adacore.com>
2188
2189 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2190 help. Add usage.
2191
4888741a
TT
21922020-07-28 Tom Tromey <tromey@adacore.com>
2193
2194 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2195 <DW_OP_GNU_variable_value>: Cast to address type.
2196
4d46f402
KR
21972020-07-28 Kamil Rytarowski <n54@gmx.com>
2198
2199 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2200 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2201 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2202 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2203 (nbsd_get_siginfo_type): New.
2204 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2205 (_initialize_nbsd_tdep): New.
2206
d70f978b
L
22072020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2208
2209 PR binutils/26301
2210 * configure: Regenerated.
2211
377170fa
L
22122020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2213
2214 PR binutils/26301
2215 * configure: Regenerated.
2216
43d5901d
AB
22172020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2218
2219 * python/py-frame.c: Remove 'user-regs.h' include.
2220 (frapy_read_register): Rewrite to make use of
2221 gdbpy_parse_register_id.
2222 * python/py-registers.c (gdbpy_parse_register_id): New function,
2223 moved here from python/py-unwind.c. Updated the return type, and
2224 also accepts register descriptor objects.
2225 * python/py-unwind.c: Remove 'user-regs.h' include.
2226 (pyuw_parse_register_id): Moved to python/py-registers.c.
2227 (unwind_infopy_add_saved_register): Update to use
2228 gdbpy_parse_register_id.
2229 (pending_framepy_read_register): Likewise.
2230 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2231
14fa8fb3
AB
22322020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2233
2234 * python/py-registers.c: Add 'user-regs.h' include.
2235 (register_descriptor_iter_find): New function.
2236 (register_descriptor_iterator_object_methods): New static global
2237 methods array.
2238 (register_descriptor_iterator_object_type): Add pointer to methods
2239 array.
2240
ddce1758
JB
22412020-07-27 John Baldwin <jhb@FreeBSD.org>
2242
2243 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2244 for all architectures on FreeBSD 11.3 and later.
2245
a4089f52
TT
22462020-07-27 Tom Tromey <tromey@adacore.com>
2247
2248 * gcore.h (load_corefile): Don't declare.
2249
95420d30
TV
22502020-07-27 Tom de Vries <tdevries@suse.de>
2251
2252 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2253 * config.in: Regenerate.
2254 * configure: Regenerate.
2255
05a6b8c2
EZ
22562020-07-26 Eli Zaretskii <eliz@gnu.org>
2257
2258 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2259 ws2tcpip.h. When checking whether socklen_t type is defined, use
2260 ws2tcpip.h if it is available and sys/socket.h isn't.
2261 * configure: Regenerate.
2262 * config.in: Regenerate.
2263
e79eb02f
AB
22642020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2265
2266 PR fortran/23051
2267 PR fortran/26139
2268 * valops.c (value_ind): Pass address to
2269 readjust_indirect_value_type.
2270 * value.c (readjust_indirect_value_type): Make parameter
2271 non-const, and add extra address parameter. Resolve original type
2272 before using it.
2273 * value.h (readjust_indirect_value_type): Update function
2274 signature and comment.
2275
876518dd
TV
22762020-07-25 Tom de Vries <tdevries@suse.de>
2277
2278 PR symtab/26243
2279 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2280 entries.
2281
f6720b1c
AM
22822020-07-24 Aaron Merey <amerey@redhat.com>
2283
2284 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2285 * configure: Rebuild.
2286
513487e1
KB
22872020-07-23 Kevin Buettner <kevinb@redhat.com>
2288
2289 PR corefiles/26294
2290 * corelow.c (_initialize_corelow): Add period to help text
2291 for "maintenance print core-file-backed-mappings".
2292
e7bc9db8
PA
22932020-07-23 Pedro Alves <pedro@palves.net>
2294
2295 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2296 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2297 meanwhile.
2298 * frame.c (frame_cache_generation, get_frame_cache_generation):
2299 New.
2300 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2301 (get_prev_frame_if_no_cycle): On exception, don't touch
2302 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2303 * frame.h (get_frame_cache_generation): Declare.
2304
90fcc466
TV
23052020-07-23 Tom de Vries <tdevries@suse.de>
2306
2307 PR tui/26282
2308 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2309 New default constructor.
2310
78344df7
AB
23112020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2312
2313 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2314 exclude non-statement entries.
2315
b089853a
KB
23162020-07-22 Kevin Buettner <kevinb@redhat.com>
2317
2318 * NEWS (New commands): Mention new command
2319 "maintenance print core-file-backed-mappings".
2320
09c2f5d4
KB
23212020-07-22 Kevin Buettner <kevinb@redhat.com>
2322
2323 * corelow.c (gdbcmd.h): Include.
2324 (core_target::info_proc_mappings): New method.
2325 (get_current_core_target): New function.
2326 (maintenance_print_core_file_backed_mappings): New function.
2327 (_initialize_corelow): Add core-file-backed-mappings to
2328 "maint print" commands.
2329
9c5ec5c2 23302020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2331
9c5ec5c2
KB
2332 * linux-tdep.c (dump_note_entry_p): New function.
2333 (linux_dump_mapping_p_ftype): New typedef.
2334 (linux_find_memory_regions_full): Add new parameter,
2335 should_dump_mapping_p.
2336 (linux_find_memory_regions): Adjust call to
2337 linux_find_memory_regions_full.
2338 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2339 call to linux_find_memory_regions_full.
2340
db082f59
KB
23412020-07-22 Kevin Buettner <kevinb@redhat.com>
2342
2343 * corelow.c (solist.h, unordered_map): Include.
2344 (class core_target): Add field m_core_file_mappings and
2345 method build_file_mappings.
2346 (core_target::core_target): Call build_file_mappings.
2347 (core_target::~core_target): Free memory associated with
2348 m_core_file_mappings.
2349 (core_target::build_file_mappings): New method.
2350 (core_target::xfer_partial): Use m_core_file_mappings
2351 for memory transfers.
2352 * linux-tdep.c (linux_read_core_file_mappings): New
2353 function.
2354 (linux_core_info_proc_mappings): Rewrite to use
2355 linux_read_core_file_mappings.
2356 (linux_init_abi): Register linux_read_core_file_mappings.
2357
7e183d27
KB
23582020-07-22 Kevin Buettner <kevinb@redhat.com>
2359
2360 * arch-utils.c (default_read_core_file_mappings): New function.
2361 * arch-utils.c (default_read_core_file_mappings): Declare.
2362 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2363 * gdbarch.h, gdbarch.c: Regenerate.
2364
2735d421
KB
23652020-07-22 Kevin Buettner <kevinb@redhat.com>
2366
2367 PR corefiles/25631
2368 * corelow.c (core_target:xfer_partial): Revise
2369 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2370 case after first checking the stratum beneath the core
2371 target.
2372 (has_all_memory): Return true.
2373 * target.c (raw_memory_xfer_partial): Revise comment
2374 regarding use of has_all_memory.
2375
e56cb451
KB
23762020-07-22 Kevin Buettner <kevinb@redhat.com>
2377
2378 * exec.h (section_table_xfer_memory): Revise declaration,
2379 replacing section name parameter with an optional callback
2380 predicate.
2381 * exec.c (section_table_xfer_memory): Likewise.
2382 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2383 of section_table_xfer_memory.
2384
32fa152e
TT
23852020-07-22 Tom Tromey <tromey@adacore.com>
2386
2387 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2388 lookup_symbol_search_name.
2389
a67a1c41
AB
23902020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2391
2392 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2393 redundant local variable.
2394 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2395 reference, not pointer, update code accordingly.
2396
a7b4ff4f
SM
23972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2398 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2399
2400 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2401 * jit.c (jit_breakpoint_re_set_internal): Use the
2402 `skip_jit_symbol_lookup` field.
2403
2340e834
SM
24042020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2405 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2406
2407 * jit.c (jit_read_descriptor): Define the descriptor address once,
2408 use twice.
2409 (jit_breakpoint_deleted): Move the declaration of the loop variable
2410 `iter` into the loop header.
2411 (jit_breakpoint_re_set_internal): Move the declaration of the local
2412 variable `objf_data` to the first point of definition.
2413 (jit_event_handler): Move the declaration of local variables
2414 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2415 Rename `objf` to `jited`.
2416
c1072906
SM
24172020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2418
2419 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2420 Remove.
2421 * jit.c (get_jiter_objfile_data): Update.
2422
c8474dc3
TBA
24232020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2424 Simon Marchi <simon.marchi@polymtl.ca>
2425
2426 * jit.c (struct jit_program_space_data): Remove.
2427 (jit_program_space_key): Remove.
2428 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2429 stuff.
2430 (get_jit_program_space_data): Remove.
2431 (jit_breakpoint_deleted): Iterate on all of the program space's
2432 objfiles.
2433 (jit_inferior_init): Likewise.
2434 (jit_breakpoint_re_set_internal): Likewise. Also change return
2435 type to void.
2436 (jit_breakpoint_re_set): Pass current_program_space to
2437 jit_breakpoint_re_set_internal.
2438
77208eb7
SM
24392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2440
2441 * jit.h (struct jiter_objfile_data) <cached_code_address,
2442 jit_breakpoint>: Move to here from ...
2443 * jit.c (jit_program_space_data): ... here.
2444 (jiter_objfile_data::~jiter_objfile_data): Update.
2445 (jit_breakpoint_deleted): Update.
2446 (jit_breakpoint_re_set_internal): Update.
2447
8c1c720f
SM
24482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2449
2450 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2451 checks.
2452 (jit_read_descriptor): Remove NULL check.
2453 (jit_event_handler): Add an assertion.
2454
0e74a041
SM
24552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * jit.h (struct jit_objfile_data): Split into...
2458 (struct jiter_objfile_data): ... this ...
2459 (struct jited_objfile_data): ... and this.
2460 * objfiles.h (struct objfile) <jit_data>: Remove.
2461 <jiter_data, jited_data>: New fields.
2462 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2463 (jiter_objfile_data::~jiter_objfile_data): ... this.
2464 (get_jit_objfile_data): Rename to ...
2465 (get_jiter_objfile_data): ... this.
2466 (add_objfile_entry): Update.
2467 (jit_read_descriptor): Use get_jiter_objfile_data.
2468 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2469 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2470 (jit_inferior_exit_hook): Use objfile's jited_data field.
2471
238b5c9f
SM
24722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2473
2474 * jit.h: Forward-declare `struct minimal_symbol`.
2475 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2476 constructor, destructor, and an objfile* field.
2477 * jit.c (jit_objfile_data): Remove.
2478 (struct jit_objfile_data): Migrate from here to jit.h.
2479 (jit_objfile_data::~jit_objfile_data): New destructor
2480 implementation with code moved from free_objfile_data.
2481 (free_objfile_data): Delete.
2482 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2483 (jit_find_objf_with_entry_addr): Ditto.
2484 (jit_inferior_exit_hook): Ditto.
2485 (_initialize_jit): Remove the call to
2486 register_objfile_data_with_cleanup.
2487 * objfiles.h (struct objfile) <jit_data>: New field.
2488
fe053b9e
TBA
24892020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2490
2491 * jit.h: Forward-declare `struct objfile`.
2492 (jit_event_handler): Add a second parameter, the JITer objfile.
2493 * jit.c (jit_read_descriptor): Change the signature to take the
2494 JITer objfile as an argument instead of the jit_program_space_data.
2495 (jit_inferior_init): Update the call to jit_read_descriptor.
2496 (jit_event_handler): Use the new JITer objfile argument when calling
2497 jit_read_descriptor.
2498 * breakpoint.c (handle_jit_event): Update the call to
2499 jit_event_handler to pass the JITer objfile.
2500
4cec0c66
JB
25012020-07-21 John Baldwin <jhb@FreeBSD.org>
2502
2503 * gdbarch.c: Regenerate.
2504 * gdbarch.h: Regenerate.
2505 * gdbarch.sh (handle_segmentation_fault): Remove method.
2506 * infrun.c (handle_segmentation_fault): Remove.
2507 (print_signal_received_reason): Remove call to
2508 handle_segmentation_fault.
2509
0e42f66a
JB
25102020-07-21 John Baldwin <jhb@FreeBSD.org>
2511
2512 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2513 Rename to sparc64_linux_report_signal_info and add siggnal
2514 argument.
2515 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2516 instead of sparc64_linux_handle_segmentation_fault.
2517
77bdfeb2
JB
25182020-07-21 John Baldwin <jhb@FreeBSD.org>
2519
2520 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2521 i386_linux_report_signal_info instead of
2522 i386_linux_handle_segmentation_fault.
2523 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2524 to i386_linux_report_signal_info and add siggnal argument.
2525 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2526 of i386_linux_handle_segmentation_fault.
2527 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2528 to i386_linux_report_signal_info and add siggnal argument.
2529
ad97bfc5
JB
25302020-07-21 John Baldwin <jhb@FreeBSD.org>
2531
2532 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2533 hook if present.
2534
272bb05c
JB
25352020-07-21 John Baldwin <jhb@FreeBSD.org>
2536
2537 * gdbarch.c: Regenerate.
2538 * gdbarch.h: Regenerate.
2539 * gdbarch.sh (report_signal_info): New method.
2540 * infrun.c (print_signal_received_reason): Invoke gdbarch
2541 report_signal_info hook if present.
2542
baf8791e
AB
25432020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 * python/py-registers.c : Add 'unordered_map' include.
2546 (gdbpy_new_reggroup): Renamed to...
2547 (gdbpy_get_reggroup): ...this. Update to only create register
2548 group descriptors when needed.
2549 (gdbpy_reggroup_iter_next): Update.
2550
f7306dac
AB
25512020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2552
2553 * python/py-registers.c (gdbpy_register_object_data): New static
2554 global.
2555 (gdbpy_register_object_data_init): New function.
2556 (gdbpy_new_register_descriptor): Renamed to...
2557 (gdbpy_get_register_descriptor): ...this, and update to reuse
2558 existing register descriptors where possible.
2559 (gdbpy_register_descriptor_iter_next): Update.
2560 (gdbpy_initialize_registers): Register new gdbarch data.
2561
05c309a8
SM
25622020-07-21 Simon Marchi <simon.marchi@efficios.com>
2563
2564 * linux-nat.c (stopped_pids): Make static.
2565
d1fd641e
SM
25662020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2567
2568 PR ada/26235
2569 * gdbtypes.c (ada_discrete_type_low_bound,
2570 ada_discrete_type_high_bound): Handle undefined bounds.
2571
1de14d77
KR
25722020-07-21 Kamil Rytarowski <n54@gmx.com>
2573
2574 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2575 declaration.
2576 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2577 function.
2578
ed810cc7
JB
25792020-07-20 John Baldwin <jhb@FreeBSD.org>
2580
2581 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2582 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2583 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2584 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2585 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2586 method.
2587
ae5369e7
LC
25882020-07-20 Ludovic Courtès <ludo@gnu.org>
2589
2590 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2591 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2592 which are deprecated in Guile 3.0.
2593 * configure.ac (try_guile_versions): Add "guile-3.0".
2594 * configure (try_guile_versions): Regenerate.
2595 * NEWS: Update entry.
2596
68cf161c
LC
25972020-07-20 Ludovic Courtès <ludo@gnu.org>
2598 Doug Evans <dje@google.com>
2599
2600 PR gdb/21104
2601 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2602 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2603 USING_GUILE_BEFORE_2_2.
2604 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2605 Change type to 'scm_t_port_type *'.
2606 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2607 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2608 parameter and honor it. Update callers.
2609 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2610 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2611 functions.
2612 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2613 USING_GUILE_BEFORE_2_2.
2614 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2615 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2616 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2617 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2618 and 'SCM_PORT_TYPE'.
2619 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2620 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2621 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2622 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2623 [!USING_GUILE_BEFORE_2_2]: New functions.
2624 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2625 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2626 'gdbscm_memory_port_read'.
2627 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2628 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2629 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2630 function.
2631 (ioscm_init_memory_port): Remove.
2632 (ioscm_init_memory_port_stream): New function
2633 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2634 function.
2635 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2636 Return scm_from_uint (0).
2637 (gdbscm_set_memory_port_read_buffer_size_x)
2638 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2639 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2640 Return scm_from_uint (0).
2641 (gdbscm_set_memory_port_write_buffer_size_x)
2642 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2643 * configure.ac (try_guile_versions): Add "guile-2.2".
2644 * configure: Regenerate.
2645 * NEWS: Add entry.
2646
aee91db3
TT
26472020-07-18 Tom Tromey <tom@tromey.com>
2648
2649 * linux-nat.c (linux_multi_process): Remove.
2650 (linux_nat_target::supports_multi_process): Return true.
2651
0e267416
AB
26522020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2653
2654 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2655 (riscv_lookup_target_description): Return pointer out of
2656 unique_ptr.
2657 * target-descriptions.c (allocate_target_description): Add
2658 comment.
2659 (target_desc_deleter::operator()): Likewise.
2660 * target-descriptions.h (struct target_desc_deleter): Moved to
2661 gdbsupport/tdesc.h.
2662 (target_desc_up): Likewise.
2663
f80c8ec4
TT
26642020-07-17 Tom Tromey <tromey@adacore.com>
2665
2666 * linux-nat.c (linux_nat_target::supports_non_stop)
2667 (linux_nat_target::always_non_stop_p): Use "true".
2668 (linux_nat_target::supports_disable_randomization): Use "true" and
2669 "false".
2670
d0ce17d8
CT
26712020-07-16 Caroline Tice <cmtice@google.com>
2672
2673 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2674 (RNGLIST_HEADER_SIZE64): New constant definition.
2675 (struct dwop_section_names): Add rnglists_dwo.
2676 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2677 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2678 (struct dwo_sections): Add rnglists field.
2679 (read_attribut_reprocess): Add tag parameter.
2680 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2681 (cu_debug_rnglists_section): New function (decl & definition).
2682 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2683 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2684 die whose range is being checked; get rnglist section from
2685 cu_debug_rnglists_section, to get from either objfile or dwo file as
2686 appropriate. Add cases for DW_RLE_base_addressx,
2687 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2688 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2689 test inside if-condition and updating complaint message.
2690 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2691 dwarf2_rnglists_process.
2692 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2693 dwarf2_ranges_process.
2694 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2695 need_ranges_base and update comment appropriately. Also pass die tag
2696 to dwarf2_ranges_read.
2697 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2698 need_ranges_base and update comment appropriately. Also pass die tag
2699 to dwarf2_ranges_process.
2700 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2701 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2702 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2703 need_ranges_base and update comment appropriately. Also pass die tag
2704 to read_attribute_reprocess and dwarf2_ranges_read.
2705 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2706 and update function comment appropriately.
2707 (read_loclist_index): Call read_loclists_rnglists_header instead of
2708 read_loclist_header.
2709 (read_rnglist_index): New function.
2710 (read_attribute_reprocess): Add tag parameter. Add code for
2711 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2712 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2713
3dcc261c
AB
27142020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2715
2716 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2717 being resolved.
2718
ccb9eba6
AB
27192020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2720
2721 * arch-utils.c (show_architecture): Update formatting of messages.
2722
cf88be68
SM
27232020-07-12 Simon Marchi <simon.marchi@efficios.com>
2724
2725 * gdbtypes.h (struct type) <bounds>: Handle array and string
2726 types.
2727 * ada-lang.c (assign_aggregate): Use type::bounds on
2728 array/string type.
2729 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2730 * c-varobj.c (c_number_of_children): Likewise.
2731 (c_describe_child): Likewise.
2732 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2733 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2734 (f_type_print_base): Likewise.
2735 * f-valprint.c (f77_array_offset_tbl): Likewise.
2736 (f77_get_upperbound): Likewise.
2737 (f77_print_array_1): Likewise.
2738 * guile/scm-type.c (gdbscm_type_range): Likewise.
2739 * m2-typeprint.c (m2_array): Likewise.
2740 (m2_is_long_set_of_type): Likewise.
2741 * m2-valprint.c (get_long_set_bounds): Likewise.
2742 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2743 * python/py-type.c (typy_range): Likewise.
2744 * rust-lang.c (rust_internal_print_type): Likewise.
2745 * type-stack.c (type_stack::follow_types): Likewise.
2746 * valarith.c (value_subscripted_rvalue): Likewise.
2747 * valops.c (value_cast): Likewise.
2748
509971ae
SM
27492020-07-12 Simon Marchi <simon.marchi@efficios.com>
2750
2751 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2752 callers to use the equivalent accessor methods.
2753
107406b7
SM
27542020-07-12 Simon Marchi <simon.marchi@efficios.com>
2755
2756 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2757 (struct type) <bit_stride>: New method.
2758 (TYPE_BIT_STRIDE): Remove.
2759 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2760
bb789949
SM
27612020-07-12 Simon Marchi <simon.marchi@efficios.com>
2762
2763 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2764 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2765 callers to use the equivalent accessor methods instead.
2766
39498edb
SM
27672020-07-12 Simon Marchi <simon.marchi@efficios.com>
2768
2769 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2770 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2771 callers to use the equivalent accessor methods instead.
2772
3b606f38
SM
27732020-07-12 Simon Marchi <simon.marchi@efficios.com>
2774
2775 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2776 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2777 to use dynamic_prop::kind.
2778
064d9cb9
SM
27792020-07-12 Simon Marchi <simon.marchi@efficios.com>
2780
2781 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2782 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2783 to get the bound property's kind and check against
2784 PROP_UNDEFINED.
2785
5537ddd0
SM
27862020-07-12 Simon Marchi <simon.marchi@efficios.com>
2787
2788 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2789 all callers to use type::range_bounds followed by
2790 dynamic_prop::{low,high}.
2791
8c2e4e06
SM
27922020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2793
2794 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2795 const_val, set_const_val, baton, set_locexpr, set_loclist,
2796 set_addr_offset, variant_parts, set_variant_parts,
2797 original_type, set_original_type>: New methods.
2798 <kind>: Rename to...
2799 <m_kind>: ... this. Update all users to use the new methods
2800 instead.
2801 <data>: Rename to...
2802 <m_data>: ... this. Update all users to use the new methods
2803 instead.
2804
7c6f2712
SM
28052020-07-12 Simon Marchi <simon.marchi@efficios.com>
2806
2807 * gdbtypes.c (get_discrete_bounds): Return failure if
2808 the range type's bounds are not both defined and constant
2809 values.
2810 (get_array_bounds): Update comment. Remove undefined bound check.
2811
599088e3
SM
28122020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2813
2814 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2815 the type::bounds method directly.
2816
c4dfcb36
SM
28172020-07-12 Simon Marchi <simon.marchi@efficios.com>
2818
2819 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2820 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2821 are used to set the range type's bounds to use set_bounds.
2822
0a278aa7
PW
28232020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2824
2825 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2826
cce20f10
PA
28272020-07-10 Pedro Alves <pedro@palves.net>
2828
2829 * gdbthread.h (inferior_ref): Define.
2830 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2831 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2832 * thread.c
2833 (scoped_restore_current_thread::restore):
2834 Adjust to gdb::ref_ptr.
2835 (scoped_restore_current_thread::~scoped_restore_current_thread):
2836 Remove manual decref handling.
2837 (scoped_restore_current_thread::scoped_restore_current_thread):
2838 Adjust to use
2839 inferior_ref::new_reference/thread_info_ref::new_reference.
2840 Incref the thread before calling get_frame_id instead of after.
2841 Let TARGET_CLOSE_ERROR propagate.
2842
6d7aa592
PA
28432020-07-10 Pedro Alves <pedro@palves.net>
2844
2845 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2846 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2847 NOT_AVAILABLE_ERROR.
2848 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2849 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2850
b3e3a4c1
SM
28512020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2852 Pedro Alves <pedro@palves.net>
2853
2854 PR gdb/26199
2855 * infrun.c (threads_are_resumed_pending_p): Delete.
2856 (do_target_wait): Remove threads_are_executing and
2857 threads_are_resumed_pending_p checks from the inferior_matches
2858 lambda. Update comments.
2859
d6cc5d98
PA
28602020-07-10 Pedro Alves <pedro@palves.net>
2861
2862 PR gdb/26199
2863 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2864 executing threads.
2865
7d3badc6
PA
28662020-07-10 Pedro Alves <pedro@palves.net>
2867
2868 PR gdb/26199
2869 * infrun.c (handle_no_resumed): Handle multiple targets.
2870
42bd97a6
PA
28712020-07-10 Pedro Alves <pedro@palves.net>
2872
2873 PR gdb/26199
2874 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2875 target_is_async_p.
2876
43667cc6
PA
28772020-07-10 Pedro Alves <pedro@palves.net>
2878
2879 PR gdb/26199
2880 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2881 threads, not all threads.
2882
96118d11
PA
28832020-07-10 Pedro Alves <pedro@palves.net>
2884
2885 PR gdb/26199
2886 * remote.c (remote_target::open_1): Pass remote target pointer as
2887 data to create_async_event_handler.
2888 (remote_async_inferior_event_handler): Mark async event handler
2889 before returning if the remote target still has either pending
2890 events or unacknowledged notifications.
2891
54904d81
JB
28922020-07-10 John Baldwin <jhb@FreeBSD.org>
2893
2894 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2895 declaration.
2896 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2897 function.
2898
f37e5866
JB
28992020-07-09 John Baldwin <jhb@FreeBSD.org>
2900
2901 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2902 inferior_ptid.
2903
fc238d4a
JB
29042020-07-09 John Baldwin <jhb@FreeBSD.org>
2905
2906 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2907 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2908 AT_FREEBSD_PS_STRINGS.
2909
6e2469ff
HD
29102020-07-08 Hannes Domani <ssbssa@yahoo.de>
2911
2912 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2913 of debugfile path on Windows.
2914
d1076c41
JB
29152020-07-08 John Baldwin <jhb@FreeBSD.org>
2916
2917 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2918 argument to 'data'.
2919
15f3b077
TT
29202020-07-08 Tom Tromey <tromey@adacore.com>
2921
2922 * ada-lang.c (ada_exception_message_1): Use read_memory.
2923
9fc501fd
AB
29242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2925
2926 PR python/22748
2927 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2928 special handling for inline frames.
2929 * findvar.c (value_of_register_lazy): Skip inline frames when
2930 creating lazy register values.
2931 * frame.c (frame_id_computed_p): Delete definition.
2932 * frame.h (frame_id_computed_p): Delete declaration.
2933
64cb3757
AB
29342020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2935
2936 * NEWS: Mention additions to Python API.
2937 * python/py-arch.c (archpy_register_groups): New function.
2938 (arch_object_methods): Add 'register_groups' method.
2939 * python/py-registers.c (reggroup_iterator_object): New struct.
2940 (reggroup_object): New struct.
2941 (gdbpy_new_reggroup): New function.
2942 (gdbpy_reggroup_to_string): New function.
2943 (gdbpy_reggroup_name): New function.
2944 (gdbpy_reggroup_iter): New function.
2945 (gdbpy_reggroup_iter_next): New function.
2946 (gdbpy_new_reggroup_iterator): New function
2947 (gdbpy_initialize_registers): Register new types.
2948 (reggroup_iterator_object_type): Define new Python type.
2949 (gdbpy_reggroup_getset): New static global.
2950 (reggroup_object_type): Define new Python type.
2951 * python/python-internal.h
2952
0f767f94
AB
29532020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2954
2955 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2956 * python/py-arch.c (archpy_registers): New function.
2957 (arch_object_methods): Add 'registers' method.
2958 * python/py-registers.c: New file.
2959 * python/python-internal.h
2960 (gdbpy_new_register_descriptor_iterator): Declare.
2961 (gdbpy_initialize_registers): Declare.
2962 * python/python.c (do_start_initialization): Call
2963 gdbpy_initialize_registers.
2964 * NEWS: Mention additions to the Python API.
2965
87dbc774
AB
29662020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2967
2968 * NEWS: Mention new Python API method.
2969 * python/py-unwind.c (pending_framepy_architecture): New function.
2970 (pending_frame_object_methods): Add architecture method.
2971
3bc98c0c
AB
29722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2973
2974 * gdbarch.c: Regenerate.
2975 * gdbarch.h: Regenerate.
2976 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2977 (gdbarch_data): Use internal_error for the case where
2978 deprecated_set_gdbarch_data was originally needed.
2979 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2980 and use passed in obstack.
2981 (libunwind_frame_set_descr): Should no longer get back NULL from
2982 gdbarch_data.
2983 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2984 type.
2985 * user-regs.c (user_regs_init): Update parameters, and use passed
2986 in obstack.
2987 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2988 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2989
d8cc8af6
TV
29902020-07-06 Tom de Vries <tdevries@suse.de>
2991
2992 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2993 End-Of-Sequence in lte_is_less_than.
2994 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2995 "gdb: Don't reorder line table entries too much when sorting".
2996
947f7597
TV
29972020-07-06 Tom de Vries <tdevries@suse.de>
2998
2999 PR tui/26205
3000 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3001
1e7c1b22
TV
30022020-07-05 Tom de Vries <tdevries@suse.de>
3003
3004 PR build/26187
3005 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3006 std::uncaught_exceptions instead of deprecated
3007 std::uncaught_exception.
3008
a36158ec
SM
30092020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3010
3011 * macroexp.h (macro_stringify): Return
3012 gdb::unique_xmalloc_ptr<char>.
3013 * macroexp.c (macro_stringify): Likewise.
3014 * macrotab.c (fixup_definition): Update.
3015
14d960c8
SM
30162020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3017
3018 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3019 (lex_one_token): Update.
3020 * macroexp.c (struct macro_buffer) <release>: Return
3021 gdb::unique_xmalloc_ptr<char>.
3022 (macro_stringify): Update.
3023 (macro_expand): Update.
3024 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3025 * macroexp.h (macro_expand_next): Likewise.
3026
211d5b1c
SM
30272020-07-02 Simon Marchi <simon.marchi@efficios.com>
3028
3029 * macroexp.h (macro_lookup_ftype): Remove.
3030 (macro_expand, macro_expand_once, macro_expand_next): Remove
3031 lookup function parameters, add scope parameter.
3032 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3033 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3034 * macroscope.h (standard_macro_lookup): Change parameter type
3035 to macro_scope.
3036 * macroscope.c (standard_macro_lookup): Likewise.
3037 * c-exp.y (lex_one_token): Update.
3038 * macrocmd.c (macro_expand_command): Likewise.
3039 (macro_expand_once_command): Likewise.
3040
b1a35af2
SM
30412020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3042
3043 * inf-loop.c (inferior_event_handler): Remove client_data param.
3044 * inf-loop.h (inferior_event_handler): Likewise.
3045 * infcmd.c (step_1): Adjust.
3046 * infrun.c (proceed): Adjust.
3047 (fetch_inferior_event): Remove client_data param.
3048 (infrun_async_inferior_event_handler): Adjust.
3049 * infrun.h (fetch_inferior_event): Remove `void *` param.
3050 * linux-nat.c (handle_target_event): Adjust.
3051 * record-btrace.c (record_btrace_handle_async_inferior_event):
3052 Adjust.
3053 * record-full.c (record_full_async_inferior_event_handler):
3054 Adjust.
3055 * remote.c (remote_async_inferior_event_handler): Adjust.
3056
1cdf9e33
TT
30572020-07-01 Tom Tromey <tom@tromey.com>
3058
3059 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3060 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3061
32c1e210
TT
30622020-07-01 Tom Tromey <tom@tromey.com>
3063
3064 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3065 tui_gen_win_info.
3066 (tui_win_info::make_window): Merge with
3067 tui_gen_win_info::make_window.
3068 (tui_win_info::make_visible): Move from tui_gen_win_info.
3069 * tui/tui-win.c (tui_win_info::max_width): Move from
3070 tui_gen_win_info.
3071 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3072 type.
3073 <window_factory>: Likewise.
3074 * tui/tui-layout.c (tui_win_info::resize): Move from
3075 tui_gen_win_info.
3076 (make_standard_window): Change return type.
3077 (get_locator_window, tui_get_window_by_name): Likewise.
3078 (tui_layout_window::apply): Remove a cast.
3079 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3080 (struct tui_win_info): Merge with tui_gen_win_info.
3081 (struct tui_gen_win_info): Remove.
3082
a30cb6da
TT
30832020-07-01 Tom Tromey <tom@tromey.com>
3084
3085 * tui/tui-stack.h (struct tui_locator_window): Derive from
3086 tui_win_info.
3087 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3088 <can_box>: New method.
3089
1eb2161f
TT
30902020-07-01 Tom Tromey <tom@tromey.com>
3091
3092 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3093
7134f2eb
TT
30942020-07-01 Tom Tromey <tom@tromey.com>
3095
3096 * tui/tui-regs.c (tui_data_window::display_registers_from)
3097 (tui_data_window::display_registers_from)
3098 (tui_data_window::first_data_item_displayed)
3099 (tui_data_window::delete_data_content_windows): Update.
3100 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3101 Remove.
3102 (tui_data_window::check_register_values): Update.
3103 (tui_data_item_window::rerender): Add parameters. Update.
3104 (tui_data_item_window::refresh_window): Remove.
3105 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3106 virtual.
3107 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3108 tui_gen_win_info.
3109 <refresh_window, max_height, min_height>: Remove.
3110 <rerender>: Add parameters.
3111 <x, y, visible>: New members.
3112 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3113 <m_item_width>: New member.
3114
22b7b041
TT
31152020-07-01 Tom Tromey <tom@tromey.com>
3116
3117 * tui/tui-regs.c (tui_data_window::show_register_group)
3118 (tui_data_window::check_register_values): Update.
3119 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3120 from item_no.
3121
c9753adb
TT
31222020-07-01 Tom Tromey <tom@tromey.com>
3123
3124 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3125 useless "if".
3126
9ab26b4a
TT
31272020-07-01 Tom Tromey <tom@tromey.com>
3128
3129 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3130 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3131
e555083f
TT
31322020-07-01 Tom Tromey <tom@tromey.com>
3133
3134 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3135 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3136 (struct tui_line_or_address): Move from tui-data.h.
3137 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3138 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3139 (tui_cmd_window, tui_source_window_base, tui_source_window)
3140 (tui_disasm_window): Don't declare.
3141 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3142 to tui-winsource.h.
3143 (SINGLE_KEY): Move to tui-stack.c.
3144
7a02bab7
TT
31452020-07-01 Tom Tromey <tom@tromey.com>
3146
3147 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3148 std::string.
3149 * tui/tui-regs.c (class tab_expansion_file): New.
3150 (tab_expansion_file::write): New method.
3151 (tui_register_format): Change return type. Use
3152 tab_expansion_file.
3153 (tui_get_register, tui_data_window::display_registers_from)
3154 (tui_data_item_window::rerender): Update.
3155 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3156 * tui/tui-io.c (tui_expand_tabs): Remove.
3157
ea68593b
TT
31582020-07-01 Tom Tromey <tom@tromey.com>
3159
3160 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3161
a8caed5d
FS
31622020-07-01 Fangrui Song <maskray@google.com>
3163
3164 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3165
9cdf9820
AKS
31662020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3167
3168 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3169 forms for DW_AT_associated and DW_AT_allocated attributes,
3170 which is already checked in function attr_to_dynamic_prop.
3171
a1520ad8
TT
31722020-06-30 Tom Tromey <tromey@adacore.com>
3173
3174 * dwarf2/read.c (quirk_rust_enum): Correctly call
3175 alloc_rust_variant for default-less enum.
3176
5ac58899
TT
31772020-06-30 Tom Tromey <tromey@adacore.com>
3178
3179 PR build/26183:
3180 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3181 gdb::to_string.
3182
19b187a9
SM
31832020-06-29 Simon Marchi <simon.marchi@efficios.com>
3184
3185 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3186 * gdbarch.h: Re-generate.
3187
cd4c4c07
TT
31882020-06-28 Tom Tromey <tom@tromey.com>
3189
3190 * command.h (cmd_types): Remove.
3191 (cmd_type): Don't declare.
3192 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3193 typedef.
3194 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3195 * cli/cli-decode.c (cmd_type): Remove.
3196
05779d57
PA
31972020-06-27 Pedro Alves <palves@redhat.com>
3198
3199 * fork-child.c (prefork_hook): Adjust.
3200 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3201 Delete.
3202 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3203 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3204 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3205 Remove declarations.
3206 (struct inferior) <set_tty, tty>: New methods.
3207 (struct inferior) <terminal>: Rename to ...
3208 (struct inferior) <m_terminal>: ... this and make private.
3209 * main.c (captured_main_1): Adjust.
3210 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3211 (mi_cmd_inferior_tty_show): Adjust.
3212 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3213 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3214
1776e3e5
NA
32152020-06-26 Nick Alcock <nick.alcock@oracle.com>
3216
3217 * configure.ac: Add --enable-libctf: handle --disable-static
3218 properly.
3219 * acinclude.m4: sinclude ../config/enable.m4.
3220 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3221 (LIBCTF): Substitute in.
3222 (CTF_DEPS): New, likewise.
3223 (CLIBS): libctf needs symbols from libbfd: move earlier.
3224 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3225 flags.
3226 * ctfread.c: Surround in ENABLE_LIBCTF.
3227 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3228 * configure: Regenerate.
3229 * config.in: Likewise.
3230
58373b80
SM
32312020-06-25 Simon Marchi <simon.marchi@efficios.com>
3232
3233 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3234
277474ee
SM
32352020-06-25 Simon Marchi <simon.marchi@efficios.com>
3236
3237 * inferior.h (struct inferior) <terminal>: Change type to
3238 gdb::unique_xmalloc_ptr<char>.
3239 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3240 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3241 field, adjust to unique pointer.
3242 (get_inferior_io_terminal): Adjust to unique pointer.
3243
6d74da72
AB
32442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3245
3246 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3247 registers, not just the known core set of registers.
3248
2e52d038
AB
32492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3250
3251 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3252 fflags, frm, and fcsr registers.
3253 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3254 restore groups.
3255 (riscv_tdesc_unknown_reg): New function.
3256 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3257 tdesc_use_registers.
3258 * riscv-tdep.h (struct gdbarch_tdep): Add
3259 unknown_csrs_first_regnum, unknown_csrs_count,
3260 duplicate_fflags_regnum, duplicate_frm_regnum, and
3261 duplicate_fcsr_regnum fields.
3262
be64fd07
AB
32632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3264
3265 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3266 callback, use the callback (when not null) to help number unknown
3267 registers.
3268 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3269 (tdesc_use_registers): Add extra parameter to declaration.
3270
3b9fce96
AB
32712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3272
3273 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3274 in the file.
3275 (class riscv_pending_register_alias): Likewise.
3276 (riscv_register_feature::register_info): Change 'required_p' field
3277 to 'required', and change its type. Add 'check' member function.
3278 (riscv_register_feature::register_info::check): Define new member
3279 function.
3280 (riscv_xreg_feature): Change initialisation of 'required' field.
3281 (riscv_freg_feature): Likewise.
3282 (riscv_virtual_feature): Likewise.
3283 (riscv_csr_feature): Likewise.
3284 (riscv_check_tdesc_feature): Take extra parameter, the csr
3285 tdesc_feature, rewrite the function to use the new
3286 riscv_register_feature::register_info::check function.
3287 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3288
865bad26
AB
32892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3290
3291 * features/Makefile: Remove all references to the deleted files
3292 below.
3293 * features/riscv/32bit-csr.c: Deleted.
3294 * features/riscv/32bit-csr.xml: Deleted.
3295 * features/riscv/64bit-csr.c: Deleted.
3296 * features/riscv/64bit-csr.xml: Deleted.
3297 * features/riscv/rebuild-csr-xml.sh: Deleted.
3298
ed69cbc8
AB
32992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3300
3301 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3302 whitespace error for declaration of names member variable.
3303 (struct riscv_register_feature): Add new prefer_first_name member
3304 variable, and fix whitespace error in declaration of registers.
3305 (riscv_xreg_feature): Initialize prefer_first_name field.
3306 (riscv_freg_feature): Likewise.
3307 (riscv_virtual_feature): Likewise.
3308 (riscv_csr_feature): Likewise.
3309 (riscv_register_name): Expand on comments. Remove register name
3310 modifications for CSR and virtual registers.
3311
4445e8f5
AB
33122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3313
3314 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3315 errors.
3316
767a879e
AB
33172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3318
3319 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3320 riscv-opc.h.
3321 (class riscv_pending_register_alias): New class.
3322 (riscv_check_tdesc_feature): Take vector of pending aliases and
3323 populate it as appropriate.
3324 (riscv_setup_register_aliases): Delete.
3325 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3326 to riscv_check_tdesc_feature in all cases. Use the vector to
3327 create the register aliases.
3328
bb6e55f3
RO
33292020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3330
3331 * sol2-tdep.c (sol2_static_transform_name): Remove.
3332 (sol2_init_abi): Don't register it.
3333 * gdbarch.sh (static_transform_name): Remove.
3334 * gdbarch.c, gdbarch.h: Regenerate.
3335
3336 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3337 gdbarch_static_transform_name.
3338 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3339 * stabsread.c (define_symbol) <'X'>: Remove.
3340 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3341 handling.
3342 <'V'>: Likewise.
3343 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3344 <'S'>: Remove call to gdbarch_static_transform_name.
3345
c6d36836
RO
33462020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3347
3348 * procfs.c (procfs_pre_trace): New function.
3349 (procfs_target::create_inferior): Pass it to fork_inferior.
3350
a7e6196b
RO
33512020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3352
3353 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3354 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3355 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3356 sol2-tdep.o, sparc-sol2-tdep.o.
3357 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3358 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3359 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3360 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3361
d412e696
RO
33622020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3363
3364 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3365 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3366 Call sol2_init_abi.
3367 Remove calls to set_gdbarch_skip_solib_resolver,
3368 set_gdbarch_core_pid_to_str.
3369 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3370 (i386_sol2_static_transform_name): Remove.
3371 (i386_sol2_init_abi): Call sol2_init_abi.
3372 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3373 set_gdbarch_static_transform_name,
3374 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3375 Use sol2_sigtramp_p.
3376 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3377 (sol2_sigtramp_p): New function.
3378 (sol2_static_transform_name): New function.
3379 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3380 (sol2_init_abi): New function.
3381 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3382 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3383 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3384 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3385 (sparc_sol2_static_transform_name): Remove.
3386 (sparc32_sol2_init_abi): Call sol2_init_abi.
3387 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3388 set_gdbarch_static_transform_name,
3389 set_gdbarch_skip_solib_resolver,
3390 set_gdbarch_core_pid_to_str.
3391 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3392 (sparc_sol2_static_transform_name): Remove
3393 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3394 call sol2_sigtramp_p.
3395 (sparc64_sol2_init_abi): Call sol2_init_abi.
3396 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3397 set_gdbarch_static_transform_name,
3398 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3399
a8654e7d
PW
34002020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3401
3402 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3403 * exec.c (validate_exec_file): If from_tty, set both
3404 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3405 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3406 and from_tty, unconditionally ask a confirmation.
3407
caa7fd04
AB
34082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3409
3410 * target-descriptions.c (tdesc_architecture_name): Protect against
3411 NULL pointer dereference.
3412 (maint_print_xml_tdesc_cmd): New function.
3413 (_initialize_target_descriptions): Register new 'maint print
3414 xml-tdesc' command and give it the filename completer.
3415 * NEWS: Mention new 'maint print xml-tdesc' command.
3416
fbf42f4e
AB
34172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3418
3419 * target-descriptions.c (class tdesc_compatible_info): New class.
3420 (struct target_desc): Change type of compatible vector.
3421 (tdesc_compatible_p): Update for change in type of
3422 target_desc::compatible.
3423 (tdesc_compatible_info_list): New function.
3424 (tdesc_compatible_info_arch_name): New function.
3425 (tdesc_add_compatible): Update for change in type of
3426 target_desc::compatible.
3427 (print_c_tdesc::visit_pre): Likewise.
3428
20821f4e
AB
34292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3432 whitespace to underscore.
3433 (maint_print_c_tdesc_cmd): Use fake filename for target
3434 descriptions that came from the target.
3435 (_initialize_target_descriptions): Add filename command completion
3436 for 'maint print c-tdesc'.
3437
1fb5ee62
SM
34382020-06-23 Simon Marchi <simon.marchi@efficios.com>
3439
3440 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3441 lines.
3442
fc3ecb3e
SM
34432020-06-23 Simon Marchi <simon.marchi@efficios.com>
3444
3445 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3446 lines.
3447 (dwarf2_find_location_expression): Likewise.
3448 (call_site_parameter_matches): Likewise.
3449 (dwarf2_compile_expr_to_ax): Likewise.
3450 (disassemble_dwarf_expression): Likewise.
3451 (loclist_describe_location): Likewise.
3452
236ef034
PA
34532020-06-23 Pedro Alves <palves@redhat.com>
3454
3455 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3456 progspace-and-thread.h. Include scoped-mock-context.h instead.
3457 (register_to_value_test): Use scoped_mock_context.
3458 * regcache.c: Include "scoped-mock-context.h".
3459 (cooked_read_test): Don't error out if a target is already pushed.
3460 Use scoped_mock_context. Adjust.
3461 * scoped-mock-context.h: New file.
3462
39e7ecca
AB
34632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3464
3465 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3466 initializer.
3467 (ada_language::is_string_type_p): New member function.
3468 * c-lang.c (c_language_data): Delete la_is_string_type_p
3469 initializer.
3470 (cplus_language_data): Likewise.
3471 (asm_language_data): Likewise.
3472 (minimal_language_data): Likewise.
3473 * d-lang.c (d_language_data): Likewise.
3474 * f-lang.c (f_is_string_type_p): Delete function, implementation
3475 moved to f_language::is_string_type_p.
3476 (f_language_data): Delete la_is_string_type_p initializer.
3477 (f_language::is_string_type_p): New member function,
3478 implementation from f_is_string_type_p.
3479 * go-lang.c (go_is_string_type_p): Delete function, implementation
3480 moved to go_language::is_string_type_p.
3481 (go_language_data): Delete la_is_string_type_p initializer.
3482 (go_language::is_string_type_p): New member function,
3483 implementation from go_is_string_type_p.
3484 * language.c (language_defn::is_string_type_p): Define new member
3485 function.
3486 (default_is_string_type_p): Make static, add comment copied from
3487 header file.
3488 (unknown_language_data): Delete la_is_string_type_p initializer.
3489 (unknown_language::is_string_type_p): New member function.
3490 (auto_language_data): Delete la_is_string_type_p initializer.
3491 (auto_language::is_string_type_p): New member function.
3492 * language.h (language_data): Delete la_is_string_type_p field.
3493 (language_defn::is_string_type_p): Declare new function.
3494 (default_is_string_type_p): Delete desclaration, move comment to
3495 definition.
3496 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3497 moved to m2_language::is_string_type_p.
3498 (m2_language_data): Delete la_is_string_type_p initializer.
3499 (m2_language::is_string_type_p): New member function,
3500 implementation from m2_is_string_type_p.
3501 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3502 initializer.
3503 * opencl-lang.c (opencl_language_data): Likewise.
3504 * p-lang.c (pascal_is_string_type_p): Delete function,
3505 implementation moved to pascal_language::is_string_type_p.
3506 (pascal_language_data): Delete la_is_string_type_p initializer.
3507 (pascal_language::is_string_type_p): New member function,
3508 implementation from pascal_is_string_type_p.
3509 * rust-lang.c (rust_is_string_type_p): Delete function,
3510 implementation moved to rust_language::is_string_type_p.
3511 (rust_language_data): Delete la_is_string_type_p initializer.
3512 (rust_language::is_string_type_p): New member function,
3513 implementation from rust_is_string_type_p.
3514 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3515 is_string_type_p.
3516
4ffc13fb
AB
35172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3518
3519 * ada-lang.c (ada_language_data): Delete la_print_typedef
3520 initializer.
3521 (ada_language::print_typedef): New member function.
3522 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3523 (cplus_language_data): Likewise.
3524 (asm_language_data): Likewise.
3525 (minimal_language_data): Likewise.
3526 * d-lang.c (d_language_data): Likewise.
3527 * f-lang.c (f_language_data): Likewise.
3528 (f_language::print_typedef): New member function.
3529 * go-lang.c (go_language_data): Delete la_print_typedef
3530 initializer.
3531 * language.c (language_defn::print_typedef): Define member
3532 function.
3533 (unknown_language_data): Delete la_print_typedef initializer.
3534 (unknown_language::print_typedef): New member function.
3535 (auto_language_data): Delete la_print_typedef initializer.
3536 (auto_language::print_typedef): New member function.
3537 * language.h (language_data): Delete la_print_typedef field.
3538 (language_defn::print_typedef): Declare new member function.
3539 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3540 (default_print_typedef): Delete declaration.
3541 * m2-lang.c (m2_language_data): Delete la_print_typedef
3542 initializer.
3543 (m2_language::print_typedef): New member function.
3544 * objc-lang.c (objc_language_data): Delete la_print_typedef
3545 initializer.
3546 * opencl-lang.c (opencl_language_data): Likewise.
3547 * p-lang.c (pascal_language_data): Likewise.
3548 (pascal_language::print_typedef): New member function.
3549 * rust-lang.c (rust_print_typedef): Delete function,
3550 implementation moved to rust_language::print_typedef.
3551 (rust_language): Delete la_print_typedef initializer.
3552 (rust_language::print_typedef): New member function,
3553 implementation from rust_print_typedef.
3554 * typeprint.c (default_print_typedef): Delete.
3555
d711ee67
AB
35562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3557
3558 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3559 (ada_language::printstr): New member function.
3560 * c-lang.c (c_language_data): Delete la_printstr initializer.
3561 (cplus_language_data): Likewise.
3562 (asm_language_data): Likewise.
3563 (minimal_language_data): Likewise.
3564 * d-lang.c (d_language_data): Likewise.
3565 * f-lang.c (f_printstr): Rename to f_language::printstr.
3566 (f_language_data): Delete la_printstr initializer.
3567 (f_language::printstr): New member function, implementation from
3568 f_printstr.
3569 * go-lang.c (go_language_data): Delete la_printstr initializer.
3570 * language.c (language_defn::printstr): Define new member
3571 function.
3572 (unk_lang_printstr): Delete.
3573 (unknown_language_data): Delete la_printstr initializer.
3574 (unknown_language::printstr): New member function.
3575 (auto_language_data): Delete la_printstr initializer.
3576 (auto_language::printstr): New member function.
3577 * language.h (language_data): Delete la_printstr field.
3578 (language_defn::printstr): Declare new member function.
3579 (LA_PRINT_STRING): Update call to printstr.
3580 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3581 (m2_language_data): Delete la_printstr initializer.
3582 (m2_language::printstr): New member function, implementation from
3583 m2_printstr.
3584 * objc-lang.c (objc_language_data): Delete la_printstr
3585 initializer.
3586 * opencl-lang.c (opencl_language_data): Likewise.
3587 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3588 (pascal_language_data): Delete la_printstr initializer.
3589 (pascal_language::printstr): New member function, implementation
3590 from pascal_printstr.
3591 * p-lang.h (pascal_printstr): Delete declaration.
3592 * rust-lang.c (rust_printstr): Update header comment.
3593 (rust_language_data): Delete la_printstr initializer.
3594 (rust_language::printstr): New member function.
3595
52b50f2c
AB
35962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3597
3598 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3599 (ada_language::printchar): New member function.
3600 * c-lang.c (c_language_data): Delete la_printchar initializer.
3601 (cplus_language_data): Likewise.
3602 (asm_language_data): Likewise.
3603 (minimal_language_data): Likewise.
3604 * d-lang.c (d_language_data): Likewise.
3605 * f-lang.c (f_printchar): Rename to f_language::printchar.
3606 (f_language_data): Delete la_printchar initializer.
3607 (f_language::printchar): New member function, implementation from
3608 f_printchar.
3609 * go-lang.c (go_language_data): Delete la_printchar initializer.
3610 * language.c (unk_lang_printchar): Delete.
3611 (language_defn::printchar): Define new member function.
3612 (unknown_language_data): Delete la_printchar initializer.
3613 (unknown_language::printchar): New member function.
3614 (auto_language_data): Delete la_printchar initializer.
3615 (auto_language::printchar): New member function.
3616 * language.h (language_data): Delete la_printchar field.
3617 (language_defn::printchar): Declare new member function.
3618 (LA_PRINT_CHAR): Update call to printchar.
3619 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3620 (m2_language::printchar): New member function.
3621 * objc-lang.c (objc_language_data): Delete la_printchar
3622 initializer.
3623 * opencl-lang.c (opencl_language_data): Likewise.
3624 * p-lang.c (pascal_language_data): Delete la_printchar
3625 initializer.
3626 (pascal_language::printchar): New member function.
3627 * rust-lang.c (rust_printchar): Rename to
3628 rust_language::printchar.
3629 (rust_language_data): Delete la_printchar initializer.
3630 (rust_language::printchar): New member function, implementation
3631 from rust_printchar.
3632
ec8cec5b
AB
36332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3634
3635 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3636 (ada_language_data): Delete la_emitchar initializer.
3637 (ada_language::emitchar): New member function, implementation from
3638 emit_char.
3639 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3640 (cplus_language_data): Likewise.
3641 (asm_language_data): Likewise.
3642 (minimal_language_data): Likewise.
3643 * d-lang.c (d_language_data): Likewise.
3644 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3645 (f_language_data): Delete la_emitchar initializer.
3646 (f_language::emitchar): New member function, implementation from
3647 f_emit_char.
3648 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3649 * language.c (unk_lang_emit_char): Delete.
3650 (language_defn::emitchar): New member function definition.
3651 (unknown_language_data): Delete la_emitchar initializer.
3652 (unknown_language::emitchar): New member function.
3653 (auto_language_data): Delete la_emitchar initializer.
3654 (auto_language::emitchar): New member function.
3655 * language.h (language_data): Delete la_emitchar field.
3656 (language_defn::emitchar): New member field declaration.
3657 (LA_EMIT_CHAR): Update call to emitchar.
3658 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3659 (m2_language_data): Delete la_emitchar initializer.
3660 (m2_language::emitchar): New member function, implementation from
3661 m2_emit_char.
3662 * objc-lang.c (objc_language_data): Delete la_emitchar
3663 initializer.
3664 * opencl-lang.c (opencl_language_data): Likewise.
3665 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3666 (pascal_language_data): Delete la_emitchar initializer.
3667 (pascal_language::emitchar): New member function, implementation
3668 from pascal_emit_char.
3669 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3670 (rust_language_data): Delete la_emitchar initializer.
3671 (rust_language::emitchar): New member function, implementation
3672 from rust_emitchar.
3673
1bf9c363
AB
36742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3675
3676 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3677 (ada_language_data): Delete la_post_parser initializer.
3678 (ada_language::post_parser): New member function.
3679 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3680 (cplus_language_data): Likewise.
3681 (asm_language_data): Likewise.
3682 (minimal_language_data): Likewise.
3683 * d-lang.c (d_language_data): Likewise.
3684 * f-lang.c (f_language_data): Likewise.
3685 * go-lang.c (go_language_data): Likewise.
3686 * language.c (unknown_language_data): Likewise.
3687 (auto_language_data): Likewise.
3688 * language.h (language_data): Delete la_post_parser field.
3689 (language_defn::post_parser): New member function.
3690 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3691 * objc-lang.c (objc_language_data): Likewise.
3692 * opencl-lang.c (opencl_language_data): Likewise.
3693 * p-lang.c (pascal_language_data): Likewise.
3694 * parse.c (parse_exp_in_context): Update call to post_parser.
3695 (null_post_parser): Delete definition.
3696 * parser-defs.h (null_post_parser): Delete declaration.
3697 * rust-lang.c (rust_language_data): Delete la_post_parser
3698 initializer.
3699
87afa652
AB
37002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3701
3702 * ada-lang.c (parse): Rename to ada_language::parser.
3703 (ada_language_data): Delete la_parser initializer.
3704 (ada_language::parser): New member function, implementation from
3705 parse.
3706 * c-lang.c (c_language_data): Delete la_parser initializer.
3707 (cplus_language_data): Likewise.
3708 (asm_language_data): Likewise.
3709 (minimal_language_data): Likewise.
3710 * d-lang.c (d_language_data): Likewise.
3711 (d_language::parser): New member function.
3712 * f-lang.c (f_language_data): Delete la_parser initializer.
3713 (f_language::parser): New member function.
3714 * go-lang.c (go_language_data): Delete la_parser initializer.
3715 (go_language::parser): New member function.
3716 * language.c (unk_lang_parser): Delete.
3717 (language_defn::parser): Define new member function.
3718 (unknown_language_data): Delete la_parser initializer.
3719 (unknown_language::parser): New member function.
3720 (auto_language_data): Delete la_parser initializer.
3721 (auto_language::parser): New member function.
3722 * language.h (language_data): Delete la_parser field.
3723 (language_defn::parser): Declare new member function.
3724 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3725 (m2_language::parser): New member function.
3726 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3727 * opencl-lang.c (opencl_language_data): Likewise.
3728 * p-lang.c (pascal_language_data): Likewise.
3729 (pascal_language::parser): New member function.
3730 * parse.c (parse_exp_in_context): Update call to parser.
3731 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3732 (rust_language::parser): New member function.
3733
37825800
AB
37342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3735
3736 * top.c (print_gdb_configuration): Print --with-python-libdir
3737 configuration value.
3738
5b860c93
PW
37392020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3740
3741 * NEWS: Mention change to the alias command.
3742
cf00cd6f
PW
37432020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3744
3745 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3746 (alias_command_completer)
3747 (make_alias_options_def_group): New functions.
3748 (alias_opts, alias_option_defs): New struct and array.
3749 (alias_usage_error): Update usage.
3750 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3751 Use option framework.
3752 (_initialize_cli_cmds): Update alias command help.
3753 Update aliases command help.
3754 (show_user):
3755 Add NULL for new default_args lookup_cmd argument.
3756 (valid_command_p): Rename to validate_aliased_command.
3757 Add NULL for new default_args lookup_cmd argument. Verify that the
3758 aliased_command has no default args.
3759 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3760 (lookup_cmd_1, lookup_cmd): New argument default_args.
3761 (add_alias_cmd):
3762 Add NULL for new default_args lookup_cmd argument.
3763 (print_help_for_command): Show default args under the layout
3764 alias some_alias = some_aliased_cmd some_alias_default_arg.
3765 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3766 xfree default_args in destructor.
3767 * cli/cli-script.c (process_next_line, do_define_command):
3768 Add NULL for new default_args lookup_cmd argument.
3769 * command.h: Declare new default_args argument in lookup_cmd
3770 and lookup_cmd_1.
3771 * completer.c (complete_line_internal_1):
3772 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3773 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3774 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3775 Likewise.
3776 * infcmd.c (_initialize_infcmd): Likewise.
3777 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3778 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3779 * python/py-param.c (add_setshow_generic): Likewise.
3780 * remote.c (_initialize_remote): Likewise.
3781 * top.c (execute_command): Prepend default_args if command has some.
3782 (set_verbose):
3783 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3784 * tracepoint.c (validate_actionline, encode_actions_1):
3785 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3786
bd920864
TBA
37872020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3788
3789 * jit.c (jit_read_descriptor): Use bool as the return type.
3790 (jit_breakpoint_re_set_internal): Use bool as the return type.
3791 Invert the return value logic; return true if the jit breakpoint
3792 has been successfully initialized.
3793 (jit_inferior_init): Update the call to
3794 jit_breakpoint_re_set_internal.
3795
f8098322
PA
37962020-06-22 Pedro Alves <palves@redhat.com>
3797
3798 PR gdb/25939
3799 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3800 Use the current inferior instead. Don't return
3801 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3802 wait again.
3803 * sol-thread.c (sol_thread_target::wait): Don't reference
3804 inferior_ptid.
3805 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3806 (sol_update_thread_list_callback): Use the current inferior's pid
3807 instead of inferior_ptid.
3808
196535a6
RO
38092020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3810
3811 * procfs.c: Cleanup many comments.
3812
3813 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3814 (AFTER_WATCHFLAG): Replace by value.
3815
3816 (MAIN_PROC_NAME_FORMAT): Inline ...
3817 (create_procinfo): ... here.
3818
3819 (procfs_debug_inferior): Remove SYS_exec handling.
3820 (syscall_is_exec): Likewise.
3821 (procfs_set_exec_trap): Likewise.
3822
3823 (syscall_is_lwp_exit): Inline in callers.
3824 (syscall_is_exit): Likewise.
3825 (syscall_is_exec): Likewise.
3826 (syscall_is_lwp_create): Likewise.
3827
3828 (invalidate_cache): Remove #if 0 code.
3829
3830 (make_signal_thread_runnable): Remove.
3831 (procfs_target::resume): Remove #if 0 code.
3832
cf6f3e86
RO
38332020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3834
3835 PR gdb/25939
3836 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3837 call ...
3838 (procfs_target::create_inferior): ... here.
3839
48e9cc84
PW
38402020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3841
3842 * exec.c (validate_exec_file): Ensure the build-id is up to
3843 date by calling reopen_exec_file (that checks file timestamp
3844 to decide to re-read the file).
3845
3922b302
PA
38462020-06-18 Pedro Alves <palves@redhat.com>
3847
3848 PR gdb/25412
3849 * gdbthread.h (delete_thread, delete_thread_silent)
3850 (find_thread_ptid): Update comments.
3851 * thread.c (current_thread_): New global.
3852 (is_current_thread): Move higher, and reimplement.
3853 (inferior_thread): Reimplement.
3854 (set_thread_exited): Use bool. Add assertions.
3855 (add_thread_silent): Simplify thread-reuse handling by always
3856 calling delete_thread.
3857 (delete_thread): Remove intro comment.
3858 (find_thread_ptid): Skip exited threads.
3859 (switch_to_thread_no_regs): Write to current_thread_.
3860 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3861 INFERIOR_PTID. Clear current_thread_.
3862
6dbdab44
PA
38632020-06-18 Pedro Alves <palves@redhat.com>
3864
3865 * aix-thread.c (pd_update): Use switch_to_thread.
3866
2da4b788
PA
38672020-06-18 Pedro Alves <palves@redhat.com>
3868
3869 * ravenscar-thread.c (ravenscar_thread_target): Update.
3870 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3871 (ravenscar_thread_target::add_active_thread): ... this. Don't
3872 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3873 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3874
50838d1b
PA
38752020-06-18 Pedro Alves <palves@redhat.com>
3876
3877 * nat/windows-nat.c (current_windows_thread): Remove.
3878 * nat/windows-nat.h (current_windows_thread): Remove.
3879 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3880 Adjust.
3881 (display_selectors): Adjust to fetch the current
3882 windows_thread_info based on inferior_ptid.
3883 (fake_create_process): No longer write to current_windows_thread.
3884 (windows_nat_target::get_windows_debug_event):
3885 Don't set inferior_ptid or current_windows_thread.
3886 (windows_nat_target::wait): Adjust to not rely on
3887 current_windows_thread.
3888 (do_initial_windows_stuff): Now a method of windows_nat_target.
3889 Switch to the last_ptid thread.
3890 (windows_nat_target::attach): Adjust.
3891 (windows_nat_target::detach): Use switch_to_no_thread instead of
3892 writing to inferior_ptid directly.
3893 (windows_nat_target::create_inferior): Adjust.
3894
31ce04e9
PA
38952020-06-18 Pedro Alves <palves@redhat.com>
3896
3897 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3898
1ee1a363
PA
38992020-06-18 Pedro Alves <palves@redhat.com>
3900
3901 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3902 after creating it, instead of writing to inferior_ptid. Don't
3903 write to inferior_ptid.
3904
6d350754
PA
39052020-06-18 Pedro Alves <palves@redhat.com>
3906
3907 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3908
5d971d48
PA
39092020-06-18 Pedro Alves <palves@redhat.com>
3910
3911 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3912 it, instead of writing to inferior_ptid.
3913
86e57d1b
PA
39142020-06-18 Pedro Alves <palves@redhat.com>
3915
3916 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3917 to inferior_ptid.
3918
f2e1c129
PA
39192020-06-18 Pedro Alves <palves@redhat.com>
3920
3921 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3922 instead of writing to inferior_ptid directly.
3923
60db1b85
PA
39242020-06-18 Pedro Alves <palves@redhat.com>
3925
3926 * corelow.c (core_target::close): Use switch_to_no_thread instead
3927 of writing to inferior_ptid directly.
3928 (add_to_thread_list, core_target_open): Use switch_to_thread
3929 instead of writing to inferior_ptid directly.
3930
fe7d6a8d
PA
39312020-06-18 Pedro Alves <palves@redhat.com>
3932
3933 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3934 inferior_ptid.
3935 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3936 inferior_ptid.
3937 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3938 inferior_ptid directly.
3939 (darwin_nat_target::init_thread_list): Switch to thread, instead
3940 of writing to inferior_ptid.
3941 (darwin_nat_target::attach): Don't write to inferior_ptid.
3942 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3943
975f8708
PA
39442020-06-18 Pedro Alves <palves@redhat.com>
3945
3946 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3947 thread.
3948 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3949 Instead use switch_to_thread.
3950 (gnu_nat_target::detach): Use switch_to_no_thread
3951 instead of writing to inferior_ptid directly. Used passed-in
3952 inferior instead of looking up the inferior by pid.
3953
1a204730
PA
39542020-06-18 Pedro Alves <palves@redhat.com>
3955
3956 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3957 inferior_ptid.
3958
ebe84f23
PA
39592020-06-18 Pedro Alves <palves@redhat.com>
3960
3961 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3962 inferior_ptid.
3963 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3964 thread.
3965 (nto_procfs_target::detach): Avoid referencing
3966 inferior_ptid. Use switch_to_no_thread instead of writing to
3967 inferior_ptid directly.
3968 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3969 instead of writing to inferior_ptid directly.
3970 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3971 to thread.
3972
191f02e5
PA
39732020-06-18 Pedro Alves <palves@redhat.com>
3974
3975 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3976 after creating it, instead of writing to inferior_ptid.
3977 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3978 to inferior_ptid directly.
3979 (gdbsim_target::wait): Don't write to inferior_ptid.
3980
0ac55310
PA
39812020-06-18 Pedro Alves <palves@redhat.com>
3982
3983 * remote.c (remote_target::remote_notice_new_inferior): Use
3984 switch_to_thread instead of writing to inferior_ptid directly.
3985 (remote_target::add_current_inferior_and_thread): Use
3986 switch_to_no_thread instead of writing to inferior_ptid directly.
3987 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3988 and switch_to_thread instead of using set_current_inferior or
3989 writing to inferior_ptid directly.
3990
5233f39b
PA
39912020-06-18 Pedro Alves <palves@redhat.com>
3992
3993 * tracectf.c (ctf_target_open): Switch to added thread instead of
3994 writing to inferior_ptid directly.
3995 (ctf_target::close): Use switch_to_no_thread instead of writing to
3996 inferior_ptid directly.
3997
087e161b
PA
39982020-06-18 Pedro Alves <palves@redhat.com>
3999
4000 * tracefile-tfile.c (tfile_target_open): Don't write to
4001 inferior_ptid directly, instead switch to added thread.
4002 (tfile_target::close): Use switch_to_no_thread instead of writing
4003 to inferior_ptid directly.
4004
7fb43e53
PA
40052020-06-18 Pedro Alves <palves@redhat.com>
4006
4007 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4008 (procfs_target::detach): Use switch_to_no_thread
4009 instead of writing to inferior_ptid directly.
4010 (do_attach): Change return type to void. Switch to the added
4011 thread.
4012 (procfs_target::create_inferior): Switch to the added thread.
4013 (procfs_do_thread_registers): Don't write to inferior_ptid.
4014
18493a00
PA
40152020-06-18 Pedro Alves <palves@redhat.com>
4016
4017 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4018 of writing to inferior_ptid.
4019 (scoped_restore_exited_inferior): Delete.
4020 (handle_vfork_child_exec_or_exit): Simplify using
4021 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4022 instead of writing to inferior_ptid.
4023 (THREAD_STOPPED_BY): Delete.
4024 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4025 (thread_stopped_by_hw_breakpoint): Delete.
4026 (save_waitstatus): Use
4027 scoped_restore_current_thread+switch_to_thread, and call
4028 target_stopped_by_watchpoint instead of
4029 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4030 instead of thread_stopped_by_sw_breakpoint, and
4031 target_stopped_by_hw_breakpoint instead of
4032 thread_stopped_by_hw_breakpoint.
4033 (handle_inferior_event)
4034 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4035 inferior_ptid directly, nor
4036 set_current_inferior/set_current_program_space. Use
4037 switch_to_thread / switch_to_inferior_no_thread instead.
4038
a0776b13
PA
40392020-06-18 Pedro Alves <palves@redhat.com>
4040
4041 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4042 instead of writing to inferior_ptid.
4043
6155c136
PA
40442020-06-18 Pedro Alves <palves@redhat.com>
4045
4046 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4047 added thread.
4048 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4049 to the added thread.
4050 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4051 instead of writing to inferior_ptid.
4052
c5316fc6
PA
40532020-06-18 Pedro Alves <palves@redhat.com>
4054
4055 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4056 (register_to_value_test): Mock a program_space too. Heap-allocate
4057 the address space. Don't write to inferior_ptid. Use
4058 switch_to_thread instead.
4059
8df01799
PA
40602020-06-18 Pedro Alves <palves@redhat.com>
4061
4062 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4063 Delete.
4064 (find_signalled_thread()): New, factored out from
4065 linux_make_corefile_notes and adjusted to handle exited threads.
4066 (linux_make_corefile_notes): Adjust to use the new
4067 find_signalled_thread.
4068
41792d68
PA
40692020-06-18 Pedro Alves <palves@redhat.com>
4070
4071 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4072 of saving/restoring inferior_ptid.
4073
612f258a
TT
40742020-06-17 Tom Tromey <tom@tromey.com>
4075
4076 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4077 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4078 declare.
4079 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4080
efb763a5
SM
40812020-06-15 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4084 of partial symtabs.
4085
2951f6c0
SM
40862020-06-17 Simon Marchi <simon.marchi@efficios.com>
4087
4088 * regformats/reg-arm.dat: Remove.
4089 * regformats/reg-bfin.dat: Remove.
4090 * regformats/reg-cris.dat: Remove.
4091 * regformats/reg-crisv32.dat: Remove.
4092 * regformats/reg-m32r.dat: Remove.
4093 * regformats/reg-tilegx.dat: Remove.
4094 * regformats/reg-tilegx32.dat: Remove.
4095
7d458ea5
SM
40962020-06-17 Simon Marchi <simon.marchi@efficios.com>
4097
4098 * features/Makefile (WHICH): Remove arm files.
4099 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4100 * regformats/arm/arm-with-neon.dat: Remove.
4101 * regformats/arm/arm-with-vfpv2.dat: Remove.
4102 * regformats/arm/arm-with-vfpv3.dat: Remove.
4103
3af96c0d
SM
41042020-06-17 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * features/Makefile (XMLTOC): Remove rx.xml.
4107
b25e22fd
PA
41082020-06-17 Pedro Alves <palves@redhat.com>
4109
4110 * gdbthread.h (thread_control_state) <trap_expected> Update
4111 comments.
4112
a78a19b1
AB
41132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4114
4115 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4116 ada_language::lookup_symbol_nonlocal.
4117 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4118 (ada_language::lookup_symbol_nonlocal): New member function,
4119 implementation from ada_lookup_symbol_nonlocal.
4120 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4121 initializer.
4122 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4123 initializer.
4124 (cplus_language::lookup_symbol_nonlocal): New member function.
4125 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4126 (minimal_language_data) Likewise.
4127 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4128 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4129 initializer.
4130 (d_language::lookup_symbol_nonlocal): New member function.
4131 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4132 initializer.
4133 (f_language::lookup_symbol_nonlocal): New member function.
4134 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4135 initializer.
4136 * language.c (unknown_language_data): Likewise.
4137 (auto_language_data): Likewise.
4138 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4139 field.
4140 (language_defn::lookup_symbol_nonlocal): New member function.
4141 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4142 initializer.
4143 * objc-lang.c (objc_language_data): Likewise.
4144 * opencl-lang.c (opencl_language_data): Likewise.
4145 * p-lang.c (pascal_language_data): Likewise.
4146 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4147 rust_language::lookup_symbol_nonlocal.
4148 (rust_language_data): Delete la_lookup_symbol_nonlocal
4149 initializer.
4150 (rust_language::lookup_symbol_nonlocal): New member function,
4151 implementation from rust_lookup_symbol_nonlocal.
4152 * symtab.c (lookup_symbol_aux): Update call to
4153 lookup_symbol_nonlocal.
4154 (basic_lookup_symbol_nonlocal): Rename to...
4155 (language_defn::lookup_symbol_nonlocal): ...this, and update
4156 header comment. Remove language_defn parameter, and replace with
4157 uses of `this'.
4158 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4159
ebe2334e
AB
41602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4161
4162 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4163 initializer.
4164 (ada_language::value_print_inner): New member function.
4165 * c-lang.c (c_language_data): Delete la_value_print_inner
4166 initializer.
4167 (cplus_language_data): Likewise.
4168 (asm_language_data): Likewise.
4169 (minimal_language_data): Likewise.
4170 * d-lang.c (d_language_data): Likewise.
4171 (d_language::value_print_inner): New member function.
4172 * f-lang.c (f_language_data): Delete la_value_print_inner
4173 initializer.
4174 (f_language::value_print_inner): New member function.
4175 * f-lang.h (f_value_print_innner): Rename to...
4176 (f_value_print_inner): ...this (note spelling of 'inner').
4177 * f-valprint.c (f_value_print_innner): Rename to...
4178 (f_value_print_inner): ...this (note spelling of 'inner').
4179 * go-lang.c (go_language_data): Delete la_value_print_inner
4180 initializer.
4181 (go_language::value_print_inner): New member function.
4182 * language.c (language_defn::value_print_inner): Define new member
4183 function.
4184 (unk_lang_value_print_inner): Delete.
4185 (unknown_language_data): Delete la_value_print_inner initializer.
4186 (unknown_language::value_print_inner): New member function.
4187 (auto_language_data): Delete la_value_print_inner initializer.
4188 (auto_language::value_print_inner): New member function.
4189 * language.h (language_data): Delete la_value_print_inner field.
4190 (language_defn::value_print_inner): Delcare new member function.
4191 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4192 initializer.
4193 (m2_language::value_print_inner): New member function.
4194 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4195 initializer.
4196 * opencl-lang.c (opencl_language_data): Likewise.
4197 * p-lang.c (pascal_language_data): Likewise.
4198 (pascal_language::value_print_inner): New member function.
4199 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4200 initializer.
4201 (rust_language::value_print_inner): New member function.
4202 * valprint.c (do_val_print): Update call to value_print_inner.
4203
a1d1fa3e
AB
42042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4205
4206 * ada-lang.c (ada_language_data): Delete la_value_print
4207 initializer.
4208 (ada_language::value_print): New member function.
4209 * c-lang.c (c_language_data): Delete la_value_print initializer.
4210 (cplus_language_data): Likewise.
4211 (asm_language_data): Likewise.
4212 (minimal_language_data): Likewise.
4213 * d-lang.c (d_language_data): Likewise.
4214 * f-lang.c (f_language_data): Likewise.
4215 * go-lang.c (go_language_data): Likewise.
4216 * language.c (unk_lang_value_print): Delete.
4217 (language_defn::value_print): Define new member function.
4218 (unknown_language_data): Delete la_value_print initializer.
4219 (unknown_language::value_print): New member function.
4220 (auto_language_data): Delete la_value_print initializer.
4221 (auto_language::value_print): New member function.
4222 * language.h (language_data): Delete la_value_print field.
4223 (language_defn::value_print): Declare new member function.
4224 (LA_VALUE_PRINT): Update call to value_print.
4225 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4226 * objc-lang.c (objc_language_data): Likewise.
4227 * opencl-lang.c (opencl_language_data): Likewise.
4228 * p-lang.c (pascal_language_data): Likewise.
4229 (pascal_language::value_print): New member function.
4230 * rust-lang.c (rust_language_data): Delete la_value_print
4231 initializer.
4232
f16a9f57
AB
42332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * ada-lang.c (ada_watch_location_expression): Rename to
4236 ada_language::watch_location_expression.
4237 (ada_language_data): Delete la_watch_location_expression
4238 initializer.
4239 (ada_language::watch_location_expression): New member function,
4240 implementation from ada_watch_location_expression.
4241 * breakpoint.c (watch_command_1): Update call to
4242 watch_location_expression.
4243 * c-lang.c (c_watch_location_expression): Rename to
4244 language_defn::watch_location_expression.
4245 (c_language_data): Delete la_watch_location_expression
4246 initializer.
4247 (cplus_language_data): Likewise.
4248 (asm_language_data): Likewise.
4249 (minimal_language_data): Likewise.
4250 * c-lang.h (c_watch_location_expression): Delete declaration.
4251 * d-lang.c (d_language_data): Delete la_watch_location_expression
4252 initializer.
4253 * f-lang.c (f_language_data): Likewise.
4254 * go-lang.c (go_language_data): Likewise.
4255 * language.c (language_defn::watch_location_expression): Member
4256 function implementation from c_watch_location_expression.
4257 (unknown_language_data): Delete la_watch_location_expression
4258 initializer.
4259 (auto_language_data): Likewise.
4260 * language.h (language_data): Delete la_watch_location_expression
4261 field.
4262 (language_defn::watch_location_expression): Declare new member
4263 function.
4264 * m2-lang.c (m2_language_data): Delete
4265 la_watch_location_expression initializer.
4266 * objc-lang.c (objc_language_data): Likewise.
4267 * opencl-lang.c (opencl_language_data): Likewise.
4268 * p-lang.c (pascal_language_data): Likewise.
4269 * rust-lang.c (rust_watch_location_expression): Rename to
4270 rust_language::watch_location_expression.
4271 (rust_language_data): Delete la_watch_location_expression
4272 initializer.
4273 (rust_language::watch_location_expression): New member function,
4274 implementation from rust_watch_location_expression.
4275
7e56227d
AB
42762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4277
4278 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4279 ada_language::collect_symbol_completion_matches.
4280 (ada_language_data): Delete la_collect_symbol_completion_matches
4281 initializer.
4282 (ada_language::collect_symbol_completion_matches): New member
4283 function, implementation from
4284 ada_collect_symbol_completion_matches.
4285 * c-lang.c (c_language_data): Delete
4286 la_collect_symbol_completion_matches initializer.
4287 (cplus_language_data): Likewise.
4288 (asm_language_data): Likewise.
4289 (minimal_language_data): Likewise.
4290 * d-lang.c (d_language_data): Likewise.
4291 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4292 f_language::collect_symbol_completion_matches.
4293 (f_language_data): Delete la_collect_symbol_completion_matches
4294 initializer.
4295 (f_language::collect_symbol_completion_matches) New member
4296 function, implementation from f_collect_symbol_completion_matches.
4297 * go-lang.c (go_language_data): Delete
4298 la_collect_symbol_completion_matches initializer.
4299 * language.c (unknown_language_data): Likewise.
4300 (auto_language_data): Likewise.
4301 * language.h (language_data): Delete
4302 la_collect_symbol_completion_matches field.
4303 (language_defn::collect_symbol_completion_matches): New member
4304 function.
4305 * m2-lang.c (m2_language_data): Delete
4306 la_collect_symbol_completion_matches initializer.
4307 * objc-lang.c (objc_language_data): Likewise.
4308 * opencl-lang.c (opencl_language_data): Likewise.
4309 * p-lang.c (pascal_language_data): Likewise.
4310 * rust-lang.c (rust_language_data): Likewise.
4311 * symtab.c (default_collect_symbol_completion_matches): Delete.
4312 (collect_symbol_completion_matches): Update call to
4313 collect_symbol_completion_matches.
4314 (collect_symbol_completion_matches_type): Likewise.
4315 * symtab.h (default_collect_symbol_completion_matches): Delete
4316 declaration.
4317
53fc67f8
AB
43182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4319
4320 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4321 (ada_language_data): Delete la_word_break_characters initializer.
4322 (ada_language::word_break_characters): New member function.
4323 * c-lang.c (c_language_data): Delete la_word_break_characters
4324 initializer.
4325 (cplus_language_data): Likewise.
4326 (asm_language_data): Likewise.
4327 (minimal_language_data): Likewise.
4328 * completer.c: Update global comment.
4329 (advance_to_expression_complete_word_point): Update call to
4330 word_break_characters.
4331 (complete_files_symbols): Likewise.
4332 (complete_line_internal_1): Likewise.
4333 (default_completer_handle_brkchars): Likewise.
4334 (skip_quoted_chars): Likewise.
4335 * d-lang.c (d_language_data): Delete la_word_break_characters
4336 initializer.
4337 * f-lang.c (f_word_break_characters): Delete.
4338 (f_language_data): Delete la_word_break_characters initializer.
4339 (f_language::word_break_characters): New member function.
4340 * go-lang.c (go_language_data): Delete la_word_break_characters
4341 initializer.
4342 * language.c (unknown_language_data): Likewise.
4343 (auto_language_data): Likewise.
4344 * language.h (default_word_break_characters): Move declaration to
4345 earlier in the file.
4346 (language_data): Delete la_word_break_characters field.
4347 (language_defn::word_break_characters): New member function.
4348 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4349 initializer.
4350 * objc-lang.c (objc_language_data): Likewise.
4351 * opencl-lang.c (opencl_language_data): Likewise.
4352 * p-lang.c (pascal_language_data): Likewise.
4353 * rust-lang.c (rust_language_data): Likewise.
4354
c9debfb9
AB
43552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4356
4357 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4358 (ada_language_data): Delete la_get_symbol_name_matcher
4359 initializer.
4360 (language_defn::get_symbol_name_matcher_inner): New member
4361 function.
4362 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4363 initializer.
4364 (cplus_language_data): Likewise.
4365 (cplus_language::get_symbol_name_matcher_inner): New member
4366 function.
4367 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4368 (minimal_language_data): Likewise.
4369 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4370 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4371 initializer.
4372 * dictionary.c (iter_match_first_hashed): Update call to
4373 get_symbol_name_matcher.
4374 (iter_match_next_hashed): Likewise.
4375 (iter_match_next_linear): Likewise.
4376 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4377 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4378 initializer.
4379 (f_language::get_symbol_name_matcher_inner): New member function.
4380 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4381 initializer.
4382 * language.c (default_symbol_name_matcher): Update header comment,
4383 make static.
4384 (language_defn::get_symbol_name_matcher): New definition.
4385 (language_defn::get_symbol_name_matcher_inner): Likewise.
4386 (get_symbol_name_matcher): Delete.
4387 (unknown_language_data): Delete la_get_symbol_name_matcher
4388 initializer.
4389 (auto_language_data): Likewise.
4390 * language.h (language_data): Delete la_get_symbol_name_matcher
4391 field.
4392 (language_defn::get_symbol_name_matcher): New member function.
4393 (language_defn::get_symbol_name_matcher_inner): Likewise.
4394 (default_symbol_name_matcher): Delete declaration.
4395 * linespec.c (find_methods): Update call to
4396 get_symbol_name_matcher.
4397 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4398 initializer.
4399 * minsyms.c (lookup_minimal_symbol): Update call to
4400 get_symbol_name_matcher.
4401 (iterate_over_minimal_symbols): Likewise.
4402 * objc-lang.c (objc_language_data): Delete
4403 la_get_symbol_name_matcher initializer.
4404 * opencl-lang.c (opencl_language_data): Likewise.
4405 * p-lang.c (pascal_language_data): Likewise.
4406 * psymtab.c (psymbol_name_matches): Update call to
4407 get_symbol_name_matcher.
4408 * rust-lang.c (rust_language_data): Delete
4409 la_get_symbol_name_matcher initializer.
4410 * symtab.c (symbol_matches_search_name): Update call to
4411 get_symbol_name_matcher.
4412 (compare_symbol_name): Likewise.
4413
9a49ad8c
AB
44142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4415
4416 * ada-lang.c (ada_language_data): Delete la_compute_program
4417 initializer.
4418 * c-lang.c (c_language_data): Likewise.
4419 (c_language::compute_program): New member function.
4420 (cplus_language_data): Delete la_compute_program initializer.
4421 (cplus_language::compute_program): New member function.
4422 (asm_language_data): Delete la_compute_program initializer.
4423 (minimal_language_data): Likewise.
4424 * c-lang.h (c_compute_program): Update comment.
4425 (cplus_compute_program): Likewise.
4426 * compile/compile-c-support.c (c_compute_program): Likewise.
4427 (cplus_compute_program): Likewise.
4428 * compile/compile.c (compile_to_object): Update call to
4429 la_compute_program.
4430 * d-lang.c (d_language_data): Delete la_compute_program
4431 initializer.
4432 * f-lang.c (f_language_data): Likewise.
4433 * go-lang.c (go_language_data): Likewise.
4434 * language.c (unknown_language_data): Likewise.
4435 (auto_language_data): Likewise.
4436 * language.h (language_data): Delete la_compute_program field.
4437 (language_defn::compute_program): New member function.
4438 * m2-lang.c (m2_language_data): Delete la_compute_program
4439 initializer.
4440 * objc-lang.c (objc_language_data): Likewise.
4441 * opencl-lang.c (opencl_language_data): Likewise.
4442 * p-lang.c (pascal_language_data): Likewise.
4443 * rust-lang.c (rust_language_data): Likewise.
4444
eff93b4d
AB
44452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4446
4447 * ada-lang.c (ada_language_data) Delete
4448 la_class_name_from_physname initializer.
4449 * c-lang.c (c_language_data): Likewise.
4450 (cplus_language_data): Likewise.
4451 (cplus_language::class_name_from_physname): New member function.
4452 (asm_language_data): Delete la_class_name_from_physname
4453 initializer.
4454 (minimal_language_data): Likewise.
4455 * d-lang.c (d_language_data): Likewise.
4456 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4457 method on language_defn class.
4458 (guess_full_die_structure_name): Likewise.
4459 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4460 initializer.
4461 * go-lang.c (go_language_data): Likewise.
4462 * language.c (language_class_name_from_physname): Delete.
4463 (unk_lang_class_name): Delete.
4464 (unknown_language_data): Delete la_class_name_from_physname
4465 initializer.
4466 (auto_language_data): Likewise.
4467 * language.h (language_data): Delete la_class_name_from_physname
4468 field.
4469 (language_defn::class_name_from_physname): New function.
4470 (language_class_name_from_physname): Delete declaration.
4471 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4472 initializer.
4473 * objc-lang.c (objc_language_data): Likewise.
4474 * opencl-lang.c (opencl_language_data): Likewise.
4475 * p-lang.c (pascal_language_data): Likewise.
4476 * rust-lang.c (rust_language_data): Likewise.
4477
de543742
TT
44782020-06-16 Tom Tromey <tom@tromey.com>
4479
4480 * tui/tui-data.h (STATUS_NAME): New macro.
4481 * tui/tui-layout.c (tui_remove_some_windows)
4482 (initialize_known_windows, tui_register_window)
4483 (tui_layout_split::remove_windows, initialize_layouts)
4484 (tui_new_layout_command): Don't use hard-coded window names.
4485
a350efd4
TT
44862020-06-16 Tom Tromey <tom@tromey.com>
4487
4488 PR tui/25348:
4489 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4490 tui_initialize_readline. Only run once. Call rl_initialize.
4491 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4492 tui_initialize_readline.
4493 * tui/tui-io.c (tui_setup_io): Call
4494 tui_ensure_readline_initialized.
4495 * tui/tui-interp.c (tui_interp::init): Update.
4496
39ec0490
TT
44972020-06-16 Tom Tromey <tom@tromey.com>
4498
4499 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4500 Also preserve the status window.
4501
d2d1ea20
TT
45022020-06-16 Tom Tromey <tom@tromey.com>
4503
4504 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4505 where m_window==nullptr.
4506
66920317
TT
45072020-06-15 Tom Tromey <tromey@adacore.com>
4508
4509 * windows-nat.c (windows_nat::handle_output_debug_string):
4510 Update.
4511 (windows_nat::handle_ms_vc_exception): Update.
4512 * target.h (target_read_string): Change API.
4513 * target.c (target_read_string): Change API.
4514 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4515 Update.
4516 * solib-frv.c (frv_current_sos): Update.
4517 * solib-dsbt.c (dsbt_current_sos): Update.
4518 * solib-darwin.c (darwin_current_sos): Update.
4519 * linux-thread-db.c (inferior_has_bug): Update.
4520 * expprint.c (print_subexp_standard): Update.
4521 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4522 (ada_exception_message_1): Update.
4523
a5d871dd
TT
45242020-06-15 Tom Tromey <tromey@adacore.com>
4525
4526 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4527
670e35fa
TT
45282020-06-15 Tom Tromey <tromey@adacore.com>
4529
4530 * valprint.c (read_string): Update comment.
4531 * target.c (MIN): Remove.
4532 (target_read_string): Rewrite.
4533
f5272a3b
TT
45342020-06-15 Tom Tromey <tromey@adacore.com>
4535
4536 * corefile.c (read_memory_string): Remove.
4537 * ada-valprint.c (ada_value_print_ptr): Update.
4538 * ada-lang.h (ada_tag_name): Change return type.
4539 * ada-lang.c (type_from_tag): Update.
4540 (ada_tag_name_from_tsd): Change return type. Use
4541 target_read_string.
4542 (ada_tag_name): Likewise.
4543 * gdbcore.h (read_memory_string): Don't declare.
4544
2c074f49
HD
45452020-06-14 Hannes Domani <ssbssa@yahoo.de>
4546
4547 * symtab.c (rbreak_command): Ignore Windows drive colon.
4548
6a17d503
SM
45492020-06-12 Simon Marchi <simon.marchi@efficios.com>
4550
4551 * NEWS: Mention removed GDBserver host support.
4552
453c733f
NC
45532020-06-12 Nelson Chu <nelson.chu@sifive.com>
4554
4555 * features/riscv/rebuild-csr-xml.sh: Updated.
4556
2b4e6a3f
TT
45572020-06-11 Tom Tromey <tom@tromey.com>
4558
4559 PR gdb/18318:
4560 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4561
4412332f
JG
45622020-06-09 Jonny Grant <jg@jguk.org>
45632020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4564
4565 * main.c (captured_main_1): Don't print new line after help.
4566 (print_gdb_help): add mailing list and IRC channel information
4567 to --help. Add new lines between items in the footer. Remove
4568 quotes around bug url.
4569
2f33032a
KS
45702020-06-11 Keith Seitz <keiths@redhat.com>
4571
4572 PR gdb/21356
4573 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4574 Resolve typedefs for type length calculations.
4575
7ab96794
TV
45762020-06-10 Tom de Vries <tdevries@suse.de>
4577
4578 PR ada/24713
4579 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4580 (write_psymbols): Enable .gdb_index for ada.
4581 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4582 ada.
4583
e5f3ece2
TV
45842020-06-10 Tom de Vries <tdevries@suse.de>
4585
4586 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4587 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4588 namei" instead of "const char *name" argument.
4589 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4590 dw2_symtab_iter_init.
4591
940da03e
SM
45922020-06-08 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4595 to use type::field and field::type instead.
4596
b6cdac4b
SM
45972020-06-08 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4600 to use field::type instead.
4601
5d14b6e5
SM
46022020-06-08 Simon Marchi <simon.marchi@efficios.com>
4603
4604 * gdbtypes.h (struct field) <type, set_type>: New methods.
4605 Rename `type` field to...
4606 <m_type>: ... this. Change references throughout to use type or
4607 set_type methods.
4608 (FIELD_TYPE): Use field::type. Change call sites that modify
4609 the field's type to use field::set_type instead.
4610
3d967001
SM
46112020-06-08 Simon Marchi <simon.marchi@efficios.com>
4612
4613 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4614 to use type::index_type instead.
4615
262abc0d
SM
46162020-06-08 Simon Marchi <simon.marchi@efficios.com>
4617
4618 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4619 methods.
4620 (TYPE_INDEX_TYPE): Use type::index_type.
4621 * gdbtypes.c (create_array_type_with_stride): Likewise.
4622
82836c92
TT
46232020-06-07 Tom Tromey <tom@tromey.com>
4624
4625 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4626 parameter.
4627 (generic_value_print): Update.
4628
940dace9
AB
46292020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4630
4631 Revert commit 982a38f60b0.
4632 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4633
982a38f6
AB
46342020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4635
4636 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4637 avoid use after free.
4638
82f06518
TV
46392020-06-05 Tom de Vries <tdevries@suse.de>
4640
4641 * NEWS: Fix typos.
4642
f8c41851
SM
46432020-06-04 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4646 the per_bfd object.
4647 (dwarf2_read_debug_names): Likewise.
4648 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4649 object when re-using a per_bfd object with an index.
4650
f9b5d5ea
TV
46512020-06-03 Tom de Vries <tdevries@suse.de>
4652
4653 PR symtab/26046
4654 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4655 children for C++.
4656 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4657 DW_TAG_subprogram.
4658
f6eee2d0
AB
46592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4660
4661 * ada-lang.c (ada_language_data): Delete skip_trampoline
4662 initializer.
4663 * c-lang.c (c_language_data): Likewise.
4664 (cplus_language_data): Likewise.
4665 (cplus_language::skip_trampoline): New member function.
4666 (asm_language_data): Delete skip_trampoline initializer.
4667 (minimal_language_data): Likewise.
4668 * d-lang.c (d_language_data): Likewise.
4669 * f-lang.c (f_language_data): Likewise.
4670 * go-lang.c (go_language_data): Likewise.
4671 * language.c (unk_lang_trampoline): Delete function.
4672 (skip_language_trampoline): Update.
4673 (unknown_language_data): Delete skip_trampoline initializer.
4674 (auto_language_data): Likewise.
4675 * language.h (language_data): Delete skip_trampoline field.
4676 (language_defn::skip_trampoline): New function.
4677 * m2-lang.c (m2_language_data): Delete skip_trampoline
4678 initializer.
4679 * objc-lang.c (objc_skip_trampoline): Delete function, move
4680 implementation to objc_language::skip_trampoline.
4681 (objc_language_data): Delete skip_trampoline initializer.
4682 (objc_language::skip_trampoline): New member function with
4683 implementation from objc_skip_trampoline.
4684 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4685 initializer.
4686 * p-lang.c (pascal_language_data): Likewise.
4687 * rust-lang.c (rust_language_data): Likewise.
4688
0a50df5d
AB
46892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4690
4691 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4692 (ada_language::demangle): New member function.
4693 * c-lang.c (c_language_data): Delete la_demangle initializer.
4694 (cplus_language_data): Delete la_demangle initializer.
4695 (cplus_language::demangle): New member function.
4696 (asm_language_data): Delete la_demangle initializer.
4697 (minimal_language_data): Delete la_demangle initializer.
4698 * d-lang.c (d_language_data): Delete la_demangle initializer.
4699 (d_language::demangle): New member function.
4700 * f-lang.c (f_language_data): Delete la_demangle initializer.
4701 (f_language::demangle): New member function.
4702 * go-lang.c (go_language_data): Delete la_demangle initializer.
4703 (go_language::demangle): New member function.
4704 * language.c (language_demangle): Update.
4705 (unk_lang_demangle): Delete.
4706 (unknown_language_data): Delete la_demangle initializer.
4707 (unknown_language::demangle): New member function.
4708 (auto_language_data): Delete la_demangle initializer.
4709 (auto_language::demangle): New member function.
4710 * language.h (language_data): Delete la_demangle field.
4711 (language_defn::demangle): New function.
4712 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4713 * objc-lang.c (objc_language_data): Delete la_demangle
4714 initializer.
4715 (objc_language::demangle): New member function.
4716 * opencl-lang.c (opencl_language_data): Delete la_demangle
4717 initializer.
4718 * p-lang.c (pascal_language_data): Likewise.
4719 * rust-lang.c (rust_language_data): Likewise.
4720 (rust_language::demangle): New member function.
4721
fbfb0a46
AB
47222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4723
4724 * ada-lang.c (ada_language_data): Delete la_print_type
4725 initializer.
4726 (ada_language::print_type): New member function.
4727 * c-lang.c (c_language_data): Delete la_print_type initializer.
4728 (c_language::print_type): New member function.
4729 (cplus_language_data): Delete la_print_type initializer.
4730 (cplus_language::print_type): New member function.
4731 (asm_language_data): Delete la_print_type initializer.
4732 (asm_language::print_type): New member function.
4733 (minimal_language_data): Delete la_print_type initializer.
4734 (minimal_language::print_type): New member function.
4735 * d-lang.c (d_language_data): Delete la_print_type initializer.
4736 (d_language::print_type): New member function.
4737 * f-lang.c (f_language_data): Delete la_print_type initializer.
4738 (f_language::print_type): New member function.
4739 * go-lang.c (go_language_data): Delete la_print_type initializer.
4740 (go_language::print_type): New member function.
4741 * language.c (unk_lang_print_type): Delete.
4742 (unknown_language_data): Delete la_print_type initializer.
4743 (unknown_language::print_type): New member function.
4744 (auto_language_data): Delete la_print_type initializer.
4745 (auto_language::print_type): New member function.
4746 * language.h (language_data): Delete la_print_type field.
4747 (language_defn::print_type): New function.
4748 (LA_PRINT_TYPE): Update.
4749 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4750 (m2_language::print_type): New member function.
4751 * objc-lang.c (objc_language_data): Delete la_print_type
4752 initializer.
4753 (objc_language::print_type): New member function.
4754 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4755 to opencl_language::print_type.
4756 (opencl_language_data): Delete la_print_type initializer.
4757 (opencl_language::print_type): New member function, implementation
4758 from opencl_print_type.
4759 * p-lang.c (pascal_language_data): Delete la_print_type
4760 initializer.
4761 (pascal_language::print_type): New member function.
4762 * rust-lang.c (rust_print_type): Delete, implementation moved to
4763 rust_language::print_type.
4764 (rust_language_data): Delete la_print_type initializer.
4765 (rust_language::print_type): New member function, implementation
4766 from rust_print_type.
4767
6f827019
AB
47682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4769
4770 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4771 implementation moves to...
4772 (ada_language::sniff_from_mangled_name): ...here. Update return
4773 type.
4774 (ada_language_data): Delete la_sniff_from_mangled_name
4775 initializer.
4776 * c-lang.c (c_language_data): Likewise.
4777 (cplus_language_data): Likewise.
4778 (cplus_language::sniff_from_mangled_name): New member function,
4779 implementation taken from gdb_sniff_from_mangled_name.
4780 (asm_language_data): Delete la_sniff_from_mangled_name
4781 initializer.
4782 (minimal_language_data): Likewise.
4783 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4784 implementation moves to cplus_language::sniff_from_mangled_name.
4785 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4786 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4787 moves to...
4788 (d_language::sniff_from_mangled_name): ...here.
4789 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4790 * f-lang.c (f_language_data): Likewise.
4791 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4792 moves to...
4793 (go_language::sniff_from_mangled_name): ...here.
4794 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4795 * language.c (language_sniff_from_mangled_name): Delete.
4796 (unknown_language_data): Delete la_sniff_from_mangled_name
4797 initializer.
4798 (auto_language_data): Likewise.
4799 * language.h (language_data): Delete la_sniff_from_mangled_name
4800 field.
4801 (language_defn::sniff_from_mangled_name): New function.
4802 (language_sniff_from_mangled_name): Delete declaration.
4803 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4804 field.
4805 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4806 implementation moves to...
4807 (objc_language::sniff_from_mangled_name): ...here.
4808 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4809 * opencl-lang.c (opencl_language_data): Likewise.
4810 * p-lang.c (pascal_language_data): Likewise.
4811 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4812 implementation moves to...
4813 (rust_language::sniff_from_mangled_name): ...here.
4814 (rust_language_data): Delete la_sniff_from_mangled_name
4815 initializer.
4816 * symtab.c (symbol_find_demangled_name): Call
4817 sniff_from_mangled_name member function.
4818
fb8006fd
AB
48192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4820
4821 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4822 initializer.
4823 * c-lang.c (c_language_data): Likewise.
4824 (cplus_language_data): Likewise.
4825 (cplus_language::search_name_hash): New member function.
4826 (asm_language_data): Delete la_search_name_hash initializer.
4827 (minimal_language_data): Likewise.
4828 * d-lang.c (d_language_data): Likewise.
4829 * dictionary.c (default_search_name_hash): Rename to...
4830 (language_defn::search_name_hash): ...this.
4831 * f-lang.c (f_language_data): Likewise.
4832 (f_language::search_name_hash): New member function.
4833 * go-lang.c (go_language_data): Delete la_search_name_hash
4834 initializer.
4835 * language.c (unknown_language_data): Likewise.
4836 (auto_language_data): Likewise.
4837 * language.h (struct language_data): Delete la_search_name_hash
4838 field.
4839 (language_defn::search_name_hash): Declare new member function.
4840 (default_search_name_hash): Delete declaration.
4841 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4842 initializer.
4843 * objc-lang.c (objc_language_data): Likewise.
4844 * opencl-lang.c (opencl_language_data): Likewise.
4845 * p-lang.c (pascal_language_data): Likewise.
4846 * rust-lang.c (rust_language_data): Likewise.
4847 * symtab.c (search_name_hash): Update call.
4848
8e25bafe
AB
48492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4850
4851 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4852 initializer.
4853 * c-lang.c (class compile_instance): Declare.
4854 (c_language_data): Delete la_get_compile_instance initializer.
4855 (c_language::get_compile_instance): New member function.
4856 (cplus_language_data): Delete la_get_compile_instance initializer.
4857 (cplus_language::get_compile_instance): New member function.
4858 (asm_language_data): Delete la_get_compile_instance initializer.
4859 (minimal_language_data): Likewise.
4860 * c-lang.h (c_get_compile_context): Update comment.
4861 (cplus_get_compile_context): Update comment.
4862 * compile/compile.c (compile_to_object): Update calls, don't rely
4863 on function pointer being NULL.
4864 * d-lang.c (d_language_data): Delete la_get_compile_instance
4865 initializer.
4866 * f-lang.c (f_language_data): Likewise.
4867 * go-lang.c (go_language_data): Likewise.
4868 * language.c (unknown_language_data): Likewise.
4869 (auto_language_data): Likewise.
4870 * language.h (language_data): Delete la_get_compile_instance field.
4871 (language_defn::get_compile_instance): New member function.
4872 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4873 initializer.
4874 * objc-lang.c (objc_language_data): Likewise.
4875 * opencl-lang.c (opencl_language_data): Likewise.
4876 * p-lang.c (pascal_language_data): Likewise.
4877 * rust-lang.c (rust_language_data): Likewise.
4878
4009ee92
AB
48792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4880
4881 * ada-lang.c (ada_add_all_symbols): Update comment.
4882 (ada_iterate_over_symbols): Delete, move implementation to...
4883 (ada_language::iterate_over_symbols): ...here, a new member
4884 function, rewrite to use range based for loop.
4885 (ada_language_data): Delete la_iterate_over_symbols initializer.
4886 * c-lang.c (c_language_data): Likewise.
4887 (cplus_language_data): Likewise.
4888 (asm_language_data): Likewise.
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 (language_data): Delete la_iterate_over_symbols field.
4896 (language_defn::iterate_over_symbols): New member function.
4897 (LA_ITERATE_OVER_SYMBOLS): Update.
4898 * linespec.c (iterate_over_all_matching_symtabs): Update.
4899 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4900 initializer.
4901 * objc-lang.c (objc_language_data): Likewise.
4902 * opencl-lang.c (opencl_language_data): Likewise.
4903 * p-lang.c (pascal_language_data): Likewise.
4904 * rust-lang.c (rust_language_data): Likewise.
4905
54f4ca46
AB
49062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4907
4908 * ada-lang.c (ada_language_data): Delete
4909 la_lookup_transparent_type initializer.
4910 * c-lang.c (c_language_data): Likewise.
4911 (cplus_language_data): Likewise.
4912 (cplus_language::lookup_transparent_type): New member function.
4913 (asm_language_data): Delete la_lookup_transparent_type
4914 initializer.
4915 (minimal_language_data): Likewise.
4916 * d-lang.c (d_language_data): Likewise.
4917 * f-lang.c (f_language_data): Likewise.
4918 * go-lang.c (go_language_data): Likewise.
4919 * language.c (unknown_language_data): Likewise.
4920 (auto_language_data): Likewise.
4921 * language.h (struct language_data): Delete
4922 la_lookup_transparent_type field.
4923 (language_defn::lookup_transparent_type): New member function.
4924 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4925 initializer.
4926 * objc-lang.c (objc_language_data): Likewise.
4927 * opencl-lang.c (opencl_language_data): Likewise.
4928 * p-lang.c (pascal_language_data): Likewise.
4929 * rust-lang.c (rust_language_data): Likewise.
4930 * symtab.c (symbol_matches_domain): Update call.
4931
1fb314aa
AB
49322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4933
4934 * ada-lang.c (ada_language_arch_info): Delete function, move
4935 implementation to...
4936 (ada_language::language_arch_info): ...here, a new member
4937 function.
4938 (ada_language_data): Delete la_language_arch_info.
4939 * c-lang.c (c_language_data): Likewise.
4940 (c_language::language_arch_info): New member function.
4941 (cplus_language_arch_info): Delete function, move
4942 implementation to...
4943 (cplus_language::language_arch_info): ...here, a new member
4944 function.
4945 (cplus_language_data): Delete la_language_arch_info.
4946 (asm_language_data): Likewise.
4947 (asm_language::language_arch_info): New member function.
4948 (minimal_language_data): Delete la_language_arch_info.
4949 (minimal_language::language_arch_info): New member function.
4950 * d-lang.c (d_language_arch_info): Delete function, move
4951 implementation to...
4952 (d_language::language_arch_info): ...here, a new member
4953 function.
4954 (d_language_data): Delete la_language_arch_info.
4955 * f-lang.c (f_language_arch_info): Delete function, move
4956 implementation to...
4957 (f_language::language_arch_info): ...here, a new member
4958 function.
4959 (f_language_data): Delete la_language_arch_info.
4960 * go-lang.c (go_language_arch_info): Delete function, move
4961 implementation to...
4962 (go_language::language_arch_info): ...here, a new member
4963 function.
4964 (go_language_data): Delete la_language_arch_info.
4965 * language.c (unknown_language_data): Likewise.
4966 (unknown_language::language_arch_info): New member function.
4967 (auto_language_data): Delete la_language_arch_info.
4968 (auto_language::language_arch_info): New member function.
4969 (language_gdbarch_post_init): Update call to
4970 la_language_arch_info.
4971 * language.h (language_data): Delete la_language_arch_info
4972 function pointer.
4973 (language_defn::language_arch_info): New function.
4974 * m2-lang.c (m2_language_arch_info): Delete function, move
4975 implementation to...
4976 (m2_language::language_arch_info): ...here, a new member
4977 function.
4978 (m2_language_data): Delete la_language_arch_info.
4979 * objc-lang.c (objc_language_arch_info): Delete function, move
4980 implementation to...
4981 (objc_language::language_arch_info): ...here, a new member
4982 function.
4983 (objc_language_data): Delete la_language_arch_info.
4984 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4985 implementation to...
4986 (opencl_language::language_arch_info): ...here, a new member
4987 function.
4988 (opencl_language_data): Delete la_language_arch_info.
4989 * p-lang.c (pascal_language_arch_info): Delete function, move
4990 implementation to...
4991 (pascal_language::language_arch_info): ...here, a new member
4992 function.
4993 (pascal_language_data): Delete la_language_arch_info.
4994 * rust-lang.c (rust_language_arch_info): Delete function, move
4995 implementation to...
4996 (rust_language::language_arch_info): ...here, a new member
4997 function.
4998 (rust_language_data): Delete la_language_arch_info.
4999
48448202
AB
50002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5001
5002 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5003 initializer.
5004 * c-lang.c (c_language_data): Likewise.
5005 (cplus_language_data): Likewise.
5006 (cplus_language::pass_by_reference_info): New method.
5007 (asm_language_data): Delete la_pass_by_reference initializer.
5008 (minimal_language_data): Likewise.
5009 * cp-abi.c (cp_pass_by_reference): Remove use of
5010 default_pass_by_reference.
5011 * d-lang.c (d_language_data): Likewise.
5012 * f-lang.c (f_language_data): Likewise.
5013 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5014 default_pass_by_reference.
5015 * go-lang.c (go_language_data): Likewise.
5016 * language.c (language_pass_by_reference): Update.
5017 (default_pass_by_reference): Delete.
5018 (unknown_language_data): Delete la_pass_by_reference
5019 initializer.
5020 (auto_language_data): Likewise.
5021 * language.h (struct language_data): Delete la_pass_by_reference
5022 field.
5023 (language_defn::pass_by_reference_info): New member function.
5024 (default_pass_by_reference): Delete declaration.
5025 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5026 initializer.
5027 * objc-lang.c (objc_language_data): Likewise.
5028 * opencl-lang.c (opencl_language_data): Likewise.
5029 * p-lang.c (pascal_language_data): Likewise.
5030 * rust-lang.c (rust_language_data): Likewise.
5031
15e5fd35
AB
50322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5033
5034 * ada-lang.c (ada_read_var_value): Delete function, move
5035 implementation to...
5036 (ada_language::read_var_value): ...here.
5037 (ada_language_data): Delete la_read_var_value initializer.
5038 * c-lang.c (c_language_data): Likewise.
5039 (cplus_language_data): Likewise.
5040 (minimal_language_data): Likewise.
5041 * d-lang.c (d_language_data): Likewise.
5042 * f-lang.c (f_language_data): Likewise.
5043 * findvar.c (default_read_var_value): Rename to...
5044 (language_defn::read_var_value): ...this.
5045 * findvar.c (read_var_value): Update header comment, and change to
5046 call member function instead of function pointer.
5047 * go-lang.c (go_language_data): Likewise.
5048 * language.c (unknown_language_data): Delete la_read_var_value
5049 initializer.
5050 (auto_language_data): Likewise.
5051 * language.h (struct language_data): Delete la_read_var_value
5052 field.
5053 (language_defn::read_var_value): New member function.
5054 (default_read_var_value): Delete declaration.
5055 * m2-lang.c (m2_language_data): Delete la_read_var_value
5056 initializer.
5057 * objc-lang.c (objc_language_data): Likewise.
5058 * opencl-lang.c (opencl_language_data): Likewise.
5059 * p-lang.c (pascal_language_data): Likewise.
5060 * rust-lang.c (rust_language_data): Likewise.
5061 * value.h (default_read_var_value): Delete declaration.
5062
5bd40f2a
AB
50632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5064
5065 * ada-lang.c (ada_print_array_index): Delete function, move
5066 implementation to...
5067 (ada_language::print_array_index): ...here.
5068 (ada_language_data): Delete la_print_array_index initializer.
5069 * c-lang.c (c_language_data): Likewise.
5070 (cplus_language_data): Likewise.
5071 (minimal_language_data): Likewise.
5072 * d-lang.c (d_language_data): Likewise.
5073 * f-lang.c (f_language_data): Likewise.
5074 * go-lang.c (go_language_data): Likewise.
5075 * language.c (default_print_array_index): Delete function, move
5076 implementation to...
5077 (language_defn::print_array_index): ...here.
5078 (unknown_language_data): Delete la_print_array_index initializer.
5079 (auto_language_data): Likewise.
5080 * language.h (struct language_data): Delete la_print_array_index
5081 field.
5082 (language_defn::print_array_index): New member function.
5083 (LA_PRINT_ARRAY_INDEX): Update.
5084 (default_print_array_index): Delete declaration.
5085 * m2-lang.c (m2_language_data): Delete la_print_array_index
5086 initializer.
5087 * objc-lang.c (objc_language_data): Likewise.
5088 * opencl-lang.c (opencl_language_data): Likewise.
5089 * p-lang.c (pascal_language_data): Likewise.
5090 * rust-lang.c (rust_language_data): Likewise.
5091
0874fd07
AB
50922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5093
5094 * gdb/ada-lang.c (ada_language_defn): Convert to...
5095 (ada_language_data): ...this.
5096 (class ada_language): New class.
5097 (ada_language_defn): New static global.
5098 * gdb/c-lang.c (c_language_defn): Convert to...
5099 (c_language_data): ...this.
5100 (class c_language): New class.
5101 (c_language_defn): New static global.
5102 (cplus_language_defn): Convert to...
5103 (cplus_language_data): ...this.
5104 (class cplus_language): New class.
5105 (cplus_language_defn): New static global.
5106 (asm_language_defn): Convert to...
5107 (asm_language_data): ...this.
5108 (class asm_language): New class.
5109 (asm_language_defn): New static global.
5110 (minimal_language_defn): Convert to...
5111 (minimal_language_data): ...this.
5112 (class minimal_language): New class.
5113 (minimal_language_defn): New static global.
5114 * gdb/d-lang.c (d_language_defn): Convert to...
5115 (d_language_data): ...this.
5116 (class d_language): New class.
5117 (d_language_defn): New static global.
5118 * gdb/f-lang.c (f_language_defn): Convert to...
5119 (f_language_data): ...this.
5120 (class f_language): New class.
5121 (f_language_defn): New static global.
5122 * gdb/go-lang.c (go_language_defn): Convert to...
5123 (go_language_data): ...this.
5124 (class go_language): New class.
5125 (go_language_defn): New static global.
5126 * gdb/language.c (unknown_language_defn): Remove declaration.
5127 (current_language): Initialize to nullptr, real initialization is
5128 moved to _initialize_language.
5129 (languages): Delete global.
5130 (language_defn::languages): Define.
5131 (set_language_command): Use language_defn::languages.
5132 (set_language): Likewise.
5133 (range_error): Likewise.
5134 (language_enum): Likewise.
5135 (language_def): Likewise.
5136 (add_set_language_command): Use language_def::languages for the
5137 language list, and language_def to lookup language pointers.
5138 (skip_language_trampoline): Use language_defn::languages.
5139 (unknown_language_defn): Convert to...
5140 (unknown_language_data): ...this.
5141 (class unknown_language): New class.
5142 (unknown_language_defn): New static global.
5143 (auto_language_defn): Convert to...
5144 (auto_language_data): ...this.
5145 (class auto_language): New class.
5146 (auto_language_defn): New static global.
5147 (language_gdbarch_post_init): Use language_defn::languages.
5148 (_initialize_language): Initialize current_language.
5149 * gdb/language.h (struct language_defn): Rename to...
5150 (struct language_data): ...this.
5151 (struct language_defn): New.
5152 (auto_language_defn): Delete.
5153 (unknown_language_defn): Delete.
5154 (minimal_language_defn): Delete.
5155 (ada_language_defn): Delete.
5156 (asm_language_defn): Delete.
5157 (c_language_defn): Delete.
5158 (cplus_language_defn): Delete.
5159 (d_language_defn): Delete.
5160 (f_language_defn): Delete.
5161 (go_language_defn): Delete.
5162 (m2_language_defn): Delete.
5163 (objc_language_defn): Delete.
5164 (opencl_language_defn): Delete.
5165 (pascal_language_defn): Delete.
5166 (rust_language_defn): Delete.
5167 * gdb/m2-lang.c (m2_language_defn): Convert to...
5168 (m2_language_data): ...this.
5169 (class m2_language): New class.
5170 (m2_language_defn): New static global.
5171 * gdb/objc-lang.c (objc_language_defn): Convert to...
5172 (objc_language_data): ...this.
5173 (class objc_language): New class.
5174 (objc_language_defn): New static global.
5175 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5176 (opencl_language_data): ...this.
5177 (class opencl_language): New class.
5178 (opencl_language_defn): New static global.
5179 * gdb/p-lang.c (pascal_language_defn): Convert to...
5180 (pascal_language_data): ...this.
5181 (class pascal_language): New class.
5182 (pascal_language_defn): New static global.
5183 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5184 language pointer, update comment format.
5185 * gdb/rust-lang.c (rust_language_defn): Convert to...
5186 (rust_language_data): ...this.
5187 (class rust_language): New class.
5188 (rust_language_defn): New static global.
5189
1313c56e
AB
51902020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5191
5192 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5193 member variable.
5194 <m_stmt_at_address>: New member variable.
5195 (lnp_state_machine::record_line): Don't record some lines, update
5196 tracking of is_stmt at the same address.
5197 (lnp_state_machine::lnp_state_machine): Initialise new member
5198 variables.
5199
b7ed9f3d
ST
52002020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5201
5202 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5203 "-include gnu-nat-mig.h".
5204 * gnu-nat-mig.h: New file.
5205 * gnu-nat.c: Include "gnu-nat-mig.h".
5206 (exc_server, msg_reply_server, notify_server,
5207 process_reply_server): Remove declarations.
5208
14a8ad62
ST
52092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5210
5211 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5212 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5213 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5214 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5215 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5216 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5217 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5218 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5219 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5220 to gnu_nat_target class.
5221 * gnu-nat.c: Likewise.
5222 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5223 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5224 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5225 object.
5226 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5227 instead of `gnu_target'.
5228
0af5e106
ST
52292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5230
5231 * i386-gnu-tdep.c: Include "gdbcore.h"
5232 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5233 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5234 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5235 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5236 i386_gnu_sigcontext_addr): New functions
5237 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5238 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5239 tdep.
5240
078f2fc9
ST
52412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5242
5243 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5244 before fork_inferior call. Avoid calling it if target_is_pushed returns
5245 true.
5246
53dff92c
ST
52472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5248
5249 * gnu-nat.h (gnu_target): New variable declaration.
5250 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5251 gnu_target.
5252 * gnu-nat.c (gnu_target): New variable.
5253 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5254 add_thread_silent, and add_thread calls.
5255 (gnu_nat_target::create_inferior): Pass gnu_target to
5256 add_thread_silent, thread_change_ptid call.
5257 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5258 call.
5259
5a8b8627
ST
52602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5261
5262 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5263 (gnu_nat_target::find_memory_regions): Remove unused
5264 `old_address' variable.
5265
366f550a
ST
52662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5267
5268 * gnu-nat.c: Include "gdbarch.h".
5269
f14871bf
ST
52702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5271
5272 * reply_mig_hack.awk (Error return): Cast function through
5273 void *, to bypass compiler function call check.
5274
c6887cfb
ST
52752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5276
5277 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5278 $(srcdir)/reply_mig_hack.awk.
5279
6930bffe
ST
52802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5281
5282 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5283
112c22ed
JG
52842020-05-30 Jonny Grant <jg@jguk.org>
5285
5286 * configure.ac (ACX_BUGURL): change bug URL to https.
5287
f68f85b5
PA
52882020-05-30 Pedro Alves <palves@redhat.com>
5289
5290 * cp-support.c (replace_typedefs_template): New.
5291 (replace_typedefs_qualified_name): Handle
5292 DEMANGLE_COMPONENT_TEMPLATE.
5293
976ca316
SM
52942020-05-29 Simon Marchi <simon.marchi@efficios.com>
5295
5296 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5297 dwarf2/index-cache.h, dwarf2/index-write.c,
5298 dwarf2/index-write.h, dwarf2/line-header.c,
5299 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5300 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5301 variables and fields from `dwarf2_per_objfile` to just
5302 `per_objfile` throughout.
5303
989ade05
SM
53042020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5305
5306 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5307 <push_dwarf_reg_entry_value>: Add comment.
5308
c47bae85
KB
53092020-05-28 Kevin Buettner <kevinb@redhat.com>
5310 Keith Seitz <keiths@redhat.com>
5311
5312 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5313 instead of PyEval_ReleaseLock.
5314 (class gdbpy_gil): Move to earlier in file.
5315 (finalize_python): Set gdb_python_initialized.
5316 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5317 when not initialized.
5318
44486dcf
SM
53192020-05-28 Simon Marchi <simon.marchi@efficios.com>
5320
5321 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5322 <push_dwarf_reg_entry_value>: Remove assert. Override
5323 per_objfile with caller_per_objfile.
5324
f030440d
TV
53252020-05-28 Tom de Vries <tdevries@suse.de>
5326
5327 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5328 PR gold/15646 workaround to symbol kind "type".
5329
f0fbb768
TT
53302020-05-27 Tom Tromey <tromey@adacore.com>
5331
5332 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5333
af0b2a3e
TT
53342020-05-27 Tom Tromey <tromey@adacore.com>
5335
5336 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5337 Use htab_find_with_hash.
5338 <add_abbrev>: Remove "abbrev_number" parameter.
5339 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5340 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5341 (hash_abbrev): Add comment.
5342 (abbrev_table::lookup_abbrev): Move to header file.
5343 (abbrev_table::read): Update.
5344
7d00ffec
TT
53452020-05-27 Tom Tromey <tromey@adacore.com>
5346
5347 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5348 method.
5349 <canonical_name>: New member.
5350 <raw_name>: Rename from "name".
5351 (partial_die_info): Initialize canonical_name.
5352 (scan_partial_symbols): Check raw_name.
5353 (partial_die_parent_scope, partial_die_full_name)
5354 (add_partial_symbol, add_partial_subprogram)
5355 (add_partial_enumeration, load_partial_dies): Use "name" method.
5356 (partial_die_info::name): New method.
5357 (partial_die_info::read, guess_partial_die_structure_name)
5358 (partial_die_info::fixup): Update.
5359
697bba18
TT
53602020-05-27 Tom Tromey <tromey@adacore.com>
5361
5362 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5363 <get_ref_die_offset>: Inline.
5364 <get_ref_die_offset_complaint>: New method.
5365 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5366 (attribute::get_ref_die_offset_complaint): Rename from
5367 get_ref_die_offset. Just issue complaint.
5368
c17ace43
HD
53692020-05-27 Hannes Domani <ssbssa@yahoo.de>
5370
5371 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5372
96445f0b
HD
53732020-05-27 Hannes Domani <ssbssa@yahoo.de>
5374
5375 * exec.c (exec_file_attach): Use errno value of first openp failure.
5376
ac637ec3
HD
53772020-05-27 Hannes Domani <ssbssa@yahoo.de>
5378
5379 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5380 Don't close thread handle.
5381
17ee85fc
TT
53822020-05-27 Tom Tromey <tom@tromey.com>
5383 Simon Marchi <simon.marchi@efficios.com>
5384
5385 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5386 shared_ptr.
5387 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5388 member.
5389 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5390 dwarf2_per_bfd_objfile_data_key>: New globals.
5391 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5392 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5393 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5394 shared.
5395 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5396 short-circuit when sharing.
5397 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5398 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5399
39b16f87
SM
54002020-05-27 Simon Marchi <simon.marchi@efficios.com>
5401
5402 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5403 to...
5404 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5405 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5406
fcf23d5b
SM
54072020-05-27 Simon Marchi <simon.marchi@efficios.com>
5408
5409 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5410 build_name_components, find_name_components_bounds>:
5411 Add per_objfile parameter.
5412 (struct mapped_index) <symbol_name_at>: Likewise.
5413 (struct mapped_debug_names): Remove constructor.
5414 <dwarf2_per_objfile>: Remove field.
5415 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5416 (mapped_index_base::find_name_components_bounds,
5417 mapped_index_base::build_name_components,
5418 dw2_expand_symtabs_matching_symbol): Likewise.
5419 (class mock_mapped_index) <symbol_name_at>: Likewise.
5420 (check_match): Likewise.
5421 (check_find_bounds_finds): Likewise.
5422 (test_mapped_index_find_name_component_bounds): Update.
5423 (CHECK_MATCH): Update.
5424 (dw2_expand_symtabs_matching): Update.
5425 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5426 per_objfile parameter.
5427 <find_vec_in_debug_names>: Likewise.
5428 <m_per_objfile>: New field.
5429 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5430 parameter.
5431 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5432 (dw2_debug_names_iterator::next): Update.
5433 (dw2_debug_names_lookup_symbol): Update.
5434 (dw2_debug_names_expand_symtabs_for_function): Update.
5435 (dw2_debug_names_map_matching_symbols): Update.
5436 (dw2_debug_names_expand_symtabs_matching): Update.
5437 (dwarf2_read_debug_names): Update.
5438
7188ed02
SM
54392020-05-27 Simon Marchi <simon.marchi@efficios.com>
5440
5441 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5442 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5443 move to dwarf2_per_objfile.
5444 <read_in_chain>: Remove.
5445 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5446 remove_all_cus, age_comp_units>: New methods.
5447 <m_dwarf2_cus>: New member.
5448 (struct dwarf2_per_cu_data) <cu>: Remove.
5449 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5450 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5451 moved to methods of dwarf2_per_objfile.
5452 (dwarf2_clear_marks): Remove.
5453 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5454 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5455 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5456 (dwarf2_per_objfile::remove_all_cus): New.
5457 (class free_cached_comp_units) <~free_cached_comp_units>:
5458 Update.
5459 (load_cu): Update.
5460 (dw2_do_instantiate_symtab): Adjust.
5461 (fill_in_sig_entry_from_dwo_entry): Adjust.
5462 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5463 (cutu_reader::cutu_reader): Likewise.
5464 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5465 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5466 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5467 and dwarf2_per_objfile::age_comp_units.
5468 (load_partial_comp_unit): Update.
5469 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5470 (process_queue): Likewise.
5471 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5472 backlink.
5473 (dwarf2_read_addr_index): Likewise.
5474 (follow_die_offset): Likewise.
5475 (dwarf2_fetch_die_loc_sect_off): Likewise.
5476 (dwarf2_fetch_constant_bytes): Likewise.
5477 (dwarf2_fetch_die_type_sect_off): Likewise.
5478 (follow_die_sig_1): Likewise.
5479 (load_full_type_unit): Likewise.
5480 (read_signatured_type): Likewise.
5481 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5482 (dwarf2_cu::~dwarf2_cu): Remove.
5483 (dwarf2_per_objfile::get_cu): New.
5484 (dwarf2_per_objfile::set_cu): New.
5485 (age_cached_comp_units): Rename to...
5486 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5487 to std::unordered_map.
5488 (free_one_cached_comp_unit): Rename to...
5489 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5490 to std::unordered_map.
5491 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5492 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5493 a dwarf2_per_objfile in data.
5494 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5495 (dwarf2_clear_marks): Remove.
5496
2e671100
SM
54972020-05-27 Simon Marchi <simon.marchi@efficios.com>
5498
5499 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5500 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5501 (init_tu_and_read_dwo_dies): Likewise.
5502 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5503 (cutu_reader::cutu_reader): Likewise.
5504 (load_partial_comp_unit): Likewise.
5505 (process_psymtab_comp_unit): Update.
5506 (build_type_psymtabs_1): Update.
5507 (process_skeletonless_type_unit): Update.
5508 (load_full_comp_unit): Update.
5509 (find_partial_die): Update.
5510 (dwarf2_read_addr_index): Update.
5511 (read_signatured_type): Update.
5512
2e6a9f79
SM
55132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5514
5515 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5516 m_header_read_in>: New fields.
5517 <get_header>: New method.
5518 * dwarf2/read.c (per_cu_header_read_in): Remove.
5519 (dwarf2_per_cu_data::get_header): New.
5520 (dwarf2_per_cu_data::addr_size): Update.
5521 (dwarf2_per_cu_data::offset_size): Update.
5522 (dwarf2_per_cu_data::ref_addr_size): Update.
5523
1b555f17
SM
55242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5525
5526 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5527 (dw2_do_instantiate_symtab): Update.
5528 (queue_and_load_all_dwo_tus): Change parameter from
5529 dwarf2_per_cu_data to dwarf2_cu.
5530 (dwarf2_fetch_die_loc_sect_off): Update.
5531 (dwarf2_fetch_constant_bytes): Update.
5532 (dwarf2_fetch_die_type_sect_off): Update.
5533
8fc0b21d
SM
55342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5535
5536 * dwarf2/read.c (process_full_comp_unit,
5537 process_full_type_unit): Remove per_cu, per_objfile paramters.
5538 Add dwarf2_cu parameter.
5539 (process_queue): Update.
5540
168c9250
SM
55412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5542
5543 * dwarf2/read.c (create_cu_from_index_list): Replace
5544 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5545 (create_cus_from_index_list): Likewise.
5546 (create_cus_from_index): Likewise.
5547 (create_signatured_type_table_from_index): Likewise.
5548 (create_cus_from_debug_names_list): Likewise.
5549 (create_cus_from_debug_names): Likewise.
5550 (dwarf2_read_gdb_index): Update.
5551 (dwarf2_read_debug_names): Update.
5552
e286671b
TT
55532020-05-27 Tom Tromey <tom@tromey.com>
5554 Simon Marchi <simon.marchi@efficios.com>
5555
5556 * dwarf2/read.h (struct dwarf2_per_objfile)
5557 <get_type_for_signatured_type, set_type_for_signatured_type>:
5558 New methods.
5559 <m_type_map>: New member.
5560 (struct signatured_type) <type>: Remove.
5561 * dwarf2/read.c
5562 (dwarf2_per_objfile::get_type_for_signatured_type,
5563 dwarf2_per_objfile::set_type_for_signatured_type): New.
5564 (get_signatured_type): Use new methods.
5565
8adb8487
TT
55662020-05-27 Tom Tromey <tom@tromey.com>
5567 Simon Marchi <simon.marchi@efficios.com>
5568
5569 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5570 (struct dwarf2_per_objfile) <type_units>: New member.
5571 <get_type_unit_group_unshareable>: New method.
5572 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5573 num_symtabs, symtabs>: Remove; move to
5574 type_unit_group_unshareable.
5575 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5576 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5577 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5578
127bbf4b
SM
55792020-05-27 Simon Marchi <simon.marchi@efficios.com>
5580
5581 * dwarf2/read.h (struct dwarf2_per_cu_data):
5582 <dwarf2_per_objfile>: Remove.
5583 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5584 dwarf2_per_objfile.
5585 (create_signatured_type_table_from_index): Likewise.
5586 (create_signatured_type_table_from_debug_names): Likewise.
5587 (create_debug_type_hash_table): Likewise.
5588 (fill_in_sig_entry_from_dwo_entry): Likewise.
5589 (create_type_unit_group): Likewise.
5590 (read_comp_units_from_section): Likewise.
5591 (create_cus_hash_table): Likewise.
5592
f6e649dd
SM
55932020-05-27 Simon Marchi <simon.marchi@efficios.com>
5594
5595 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5596 dwarf2_per_cu_data::dwarf2_per_objfile.
5597 (compute_compunit_symtab_includes): Likewise.
5598 (dwarf2_cu::start_symtab): Likewise.
5599
aa66c379
SM
56002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5601
5602 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5603 parameter.
5604 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5605 (read_namespace_alias): Update.
5606 (lookup_die_type): Update.
5607 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5608 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5609 Update.
5610 (disassemble_dwarf_expression): Update.
5611
120ce1b5
SM
56122020-05-27 Simon Marchi <simon.marchi@efficios.com>
5613
5614 * dwarf2/read.h (struct dwarf2_queue_item): Add
5615 dwarf2_per_objfile parameter, assign new parameter.
5616 <per_objfile>: New field.
5617 * dwarf2/read.c (free_one_cached_comp_unit): Add
5618 dwarf2_per_objfile parameter.
5619 (queue_comp_unit): Likewise.
5620 (dw2_do_instantiate_symtab): Update.
5621 (process_psymtab_comp_unit): Update.
5622 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5623 (process_imported_unit_die): Update.
5624 (queue_and_load_dwo_tu): Update.
5625 (follow_die_offset): Update.
5626 (follow_die_sig_1): Update.
5627
9f47c707
SM
56282020-05-27 Simon Marchi <simon.marchi@efficios.com>
5629
5630 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5631 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5632 (read_call_site_scope): Assign per_objfile.
5633 (dwarf2_per_cu_data::objfile): Remove.
5634 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5635 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5636 dwarf2_per_objfile parameter.
5637 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5638 dwarf2_per_objfile parameter.
5639 (dwarf_expr_reg_to_entry_parameter): Add output
5640 dwarf2_per_objfile parameter.
5641 (locexpr_get_frame_base): Update.
5642 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5643 <push_dwarf_reg_entry_value>: Update.
5644 <call_site_to_target_addr>: Update.
5645 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5646 parameter.
5647 (value_of_dwarf_reg_entry): Update.
5648 (rw_pieced_value): Update.
5649 (indirect_synthetic_pointer): Update.
5650 (dwarf2_evaluate_property): Update.
5651 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5652 parameter.
5653 (locexpr_read_variable): Update.
5654 (locexpr_get_symbol_read_needs): Update.
5655 (loclist_read_variable): Update.
5656
14095eb3
SM
56572020-05-27 Simon Marchi <simon.marchi@efficios.com>
5658
5659 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5660 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5661 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5662 parameter.
5663 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5664 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5665 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5666 parameter.
5667 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5668 sect_variable_value): Add dwarf2_per_objfile parameter.
5669 (class dwarf_evaluate_loc_desc) <dwarf_call,
5670 dwarf_variable_value>: Update.
5671 (fetch_const_value_from_synthetic_pointer): Add
5672 dwarf2_per_objfile parameter.
5673 (fetch_const_value_from_synthetic_pointer): Update.
5674 (coerced_pieced_ref): Update.
5675 (class symbol_needs_eval_context) <dwarf_call,
5676 dwarf_variable_value>: Update.
5677 (dwarf2_compile_expr_to_ax): Update.
5678
3c3cd3d4
SM
56792020-05-27 Simon Marchi <simon.marchi@efficios.com>
5680
5681 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5682 parameter.
5683 (dwarf2_evaluate_loc_desc_full): Update.
5684
82ca3f51
SM
56852020-05-27 Simon Marchi <simon.marchi@efficios.com>
5686
5687 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5688 parameter.
5689 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5690 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5691 dwarf2_per_objfile parameter.
5692 (decode_debug_loc_dwo_addresses): Likewise.
5693 (dwarf2_find_location_expression): Update.
5694 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5695 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5696 parameter.
5697 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5698 parameter.
5699 (locexpr_describe_location_1): Likewise.
5700 (locexpr_describe_location): Update.
5701
4b167ea1
SM
57022020-05-27 Simon Marchi <simon.marchi@efficios.com>
5703
5704 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5705 Remove.
5706 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5707 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5708 (dwarf2_compile_property_to_c): Update.
5709 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5710 use text offset from objfile.
5711 (locexpr_tracepoint_var_ref): Update.
5712 (locexpr_generate_c_location): Update.
5713 (loclist_describe_location): Update.
5714 (loclist_tracepoint_var_ref): Update.
5715 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5716 dwarf2_per_objfile parameter.
5717 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5718 use text offset from objfile.
5719 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5720
89b07335
SM
57212020-05-27 Simon Marchi <simon.marchi@efficios.com>
5722
5723 * dwarf2/expr.h (struct dwarf_expr_context)
5724 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5725 <offset>: Remove.
5726 <per_objfile>: New member.
5727 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5728 dwarf2_per_objfile parameter. Don't set offset, set
5729 per_objfile.
5730 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5731 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5732 a dwarf2_per_objfile object instead of an offset.
5733 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5734 constructor.
5735 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5736 to dwarf2_expr_executor constructor. Don't set offset.
5737 (dwarf2_fetch_cfa_info): Update.
5738 (struct dwarf2_frame_cache) <text_offset>: Remove.
5739 <per_objfile>: New field.
5740 (dwarf2_frame_cache): Update.
5741 (dwarf2_frame_prev_register): Update.
5742 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5743 <dwarf_evaluate_loc_desc>: Add constructor.
5744 (dwarf2_evaluate_loc_desc_full): Update.
5745 (dwarf2_locexpr_baton_eval): Update.
5746 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5747 Add constructor.
5748 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5749
293e7e51
SM
57502020-05-27 Simon Marchi <simon.marchi@efficios.com>
5751
5752 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5753 addr_sized_int_type>: Move to dwarf2_cu.
5754 <int_type>: Move to dwarf2_per_objfile.
5755 (struct dwarf2_per_objfile) <int_type>: Move here.
5756 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5757 addr_sized_int_type>: Move here.
5758 (read_func_scope): Update.
5759 (read_array_type): Update.
5760 (read_tag_string_type): Update.
5761 (attr_to_dynamic_prop): Update.
5762 (dwarf2_per_cu_data::int_type): Rename to...
5763 (dwarf2_per_objfile::int_type): ... this.
5764 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5765 (dwarf2_cu::addr_sized_int_type): ... this.
5766 (read_subrange_type): Update.
5767 (dwarf2_per_cu_data::addr_type): Rename to...
5768 (dwarf2_cu::addr_type): ... this.
5769 (set_die_type): Update.
5770
64874a40
SM
57712020-05-27 Simon Marchi <simon.marchi@efficios.com>
5772
5773 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5774 data through per_cu->cu.
5775
4ab09049
SM
57762020-05-27 Simon Marchi <simon.marchi@efficios.com>
5777
5778 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5779 dwarf2_per_cu_data parameter fo dwarf2_cu.
5780 (lookup_dwo_type_unit): Likewise.
5781 (read_cutu_die_from_dwo): Likewise.
5782 (lookup_dwo_unit): Likewise.
5783 (open_and_init_dwo_file): Likewise.
5784 (lookup_dwo_cutu): Likewise.
5785 (lookup_dwo_comp_unit): Likewise.
5786 (lookup_dwo_type_unit): Likewise.
5787 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5788 (cutu_reader::cutu_reader): Update.
5789
47b14e86
SM
57902020-05-27 Simon Marchi <simon.marchi@efficios.com>
5791
5792 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5793 parameter.
5794 (process_full_type_unit): Likewise.
5795 (process_queue): Update.
5796
43182c09
SM
57972020-05-27 Simon Marchi <simon.marchi@efficios.com>
5798
5799 * dwarf2/read.c (recursively_compute_inclusions): Add
5800 dwarf2_per_objfile parameter.
5801 (compute_compunit_symtab_includes): Likewise.
5802 (process_cu_includes): Update.
5803
7aa104c4
SM
58042020-05-27 Simon Marchi <simon.marchi@efficios.com>
5805
5806 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5807 parameter.
5808 (create_type_unit_group): Update.
5809 (process_psymtab_comp_unit_reader): Update.
5810 (build_type_psymtabs_reader): Update.
5811
e3beb21d
SM
58122020-05-27 Simon Marchi <simon.marchi@efficios.com>
5813
5814 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5815 object through m_this_cu->cu.
5816
d460f660
SM
58172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5818
5819 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5820 the info parameter.
5821 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5822
ab432490
SM
58232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5824
5825 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5826 per_objfile parameter.
5827 (load_full_type_unit): Add per_objfile parameter.
5828 (read_signatured_type): Likewise.
5829 (load_full_comp_unit): Likewise.
5830 (load_cu): Likewise.
5831 (dw2_do_instantiate_symtab): Likewise.
5832 (dw2_get_file_names): Likewise.
5833 (dw2_map_symtabs_matching_filename): Update.
5834 (dw_expand_symtabs_matching_file_matcher): Update.
5835 (dw2_map_symbol_filenames): Update.
5836 (process_psymtab_comp_unit): Add per_objfile parameter.
5837 (build_type_psymtabs_1): Update.
5838 (process_skeletonless_type_unit): Update.
5839 (dwarf2_build_psymtabs_hard): Update.
5840 (load_partial_comp_unit): Add per_objfile parameter.
5841 (scan_partial_symbols): Update.
5842 (load_full_comp_unit): Add per_objfile parameter.
5843 (process_imported_unit_die): Update.
5844 (create_cus_hash_table): Update.
5845 (find_partial_die): Update.
5846 (dwarf2_read_addr_index): Update.
5847 (follow_die_offset): Update.
5848 (dwarf2_fetch_die_loc_sect_off): Update.
5849 (dwarf2_fetch_constant_bytes): Update.
5850 (dwarf2_fetch_die_type_sect_off): Update.
5851 (follow_die_sig_1): Update.
5852 (load_full_type_unit): Add per_objfile parameter.
5853 (read_signatured_type): Likewise.
5854
313bad1b
SM
58552020-05-27 Simon Marchi <simon.marchi@efficios.com>
5856
5857 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5858 of objfile_name.
5859
c3699833
SM
58602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5861
5862 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5863 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5864 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5865 field.
5866 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5867 (create_cus_from_index): Update.
5868 (dwarf2_read_gdb_index): Update.
5869 (create_cus_from_debug_names): Update.
5870 (dwarf2_read_debug_names): Update.
5871 (get_abbrev_section_for_cu): Update.
5872 (create_all_comp_units): Update.
5873 (read_attribute_value): Update.
5874 (get_debug_line_section): Update.
5875 * dwarf2/index-cache.c (index_cache::store): Update.
5876 * dwarf2/index-write.c (save_gdb_index_command): Update.
5877 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5878
1859c670
SM
58792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5880
5881 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5882 member.
5883 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5884 dwarf2_per_cu_data::per_bfd.
5885 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5886 (create_type_unit_group): Likewise.
5887 (queue_comp_unit): Remove reference to
5888 per_cu->dwarf2_per_objfile.
5889 (maybe_queue_comp_unit): Likewise.
5890 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5891 (create_cus_hash_table): Assign new field.
5892
5e22e966
SM
58932020-05-27 Simon Marchi <simon.marchi@efficios.com>
5894
5895 * dwarf2/read.c: Replace
5896 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5897 dwarf2_cu->per_objfile throughout.
5898
97a1449a
SM
58992020-05-27 Simon Marchi <simon.marchi@efficios.com>
5900
5901 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5902 parameter, don't use per_cu->dwarf2_per_objfile.
5903 (dw2_instantiate_symtab): Likewise.
5904 (dw2_find_last_source_symtab): Update.
5905 (dw2_map_expand_apply): Update.
5906 (dw2_lookup_symbol): Update.
5907 (dw2_expand_symtabs_for_function): Update.
5908 (dw2_expand_all_symtabs): Update.
5909 (dw2_expand_symtabs_with_fullname): Update.
5910 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5911 don't use per_cu->dwarf2_per_objfile.
5912 (dw2_expand_marked_cus): Update.
5913 (dw2_find_pc_sect_compunit_symtab): Update.
5914 (dw2_debug_names_lookup_symbol): Update.
5915 (dw2_debug_names_expand_symtabs_for_function): Update.
5916 (dw2_debug_names_map_matching_symbols): Update.
5917 (dwarf2_psymtab::expand_psymtab): Update.
5918
9e021579
SM
59192020-05-27 Simon Marchi <simon.marchi@efficios.com>
5920
5921 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5922 <per_objfile>: New member.
5923 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5924 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5925 call to dwarf2_cu.
5926 (cutu_reader::cutu_reader): Update.
5927 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5928
ae090bdb
SM
59292020-05-27 Simon Marchi <simon.marchi@efficios.com>
5930
5931 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5932 struct dwarf2_per_objfile.
5933 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5934 dwarf2_per_bfd.
5935 * dwarf2/read.c (set_die_type): Update.
5936 (get_die_type_at_offset): Update.
5937
af758d11
SM
59382020-05-27 Tom Tromey <tom@tromey.com>
5939 Simon Marchi <simon.marchi@efficios.com>
5940
5941 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5942 method.
5943 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5944 get_symtab, set_symtab>: New methods.
5945 <m_symtabs>: New field.
5946 (struct dwarf2_psymtab): Derive from partial_symtab.
5947 <readin_p, get_compunit_symtab>: Declare methods.
5948 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5949 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5950 New methods.
5951 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5952 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5953 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5954 (dw2_symtab_iter_next, dw2_print_stats)
5955 (dw2_expand_symtabs_with_fullname)
5956 (dw2_expand_symtabs_matching_one)
5957 (dw_expand_symtabs_matching_file_matcher)
5958 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5959 (dw2_debug_names_iterator::next)
5960 (dw2_debug_names_map_matching_symbols)
5961 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5962 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5963 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5964 New methods.
5965 (get_compunit_symtab, process_full_comp_unit)
5966 (process_full_type_unit): Update.
5967 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5968
5989a64e
SM
59692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5970
5971 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5972 then introduce a new dwarf2_per_objfile type.
5973 <read_line_string>: Move to the new dwarf2_per_objfile type.
5974 <objfile>: Likewise.
5975 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5976 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5977 dwarf2_per_objfile->per_bfd.
5978 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5979 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5980 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5981 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5982 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5983 (dwarf2_per_objfile::locate_sections): Rename to...
5984 (dwarf2_per_bfd::locate_sections): ... this.
5985 (dwarf2_per_objfile::get_cutu): Rename to...
5986 (dwarf2_per_bfd::get_cutu): ... this.
5987 (dwarf2_per_objfile::get_cu): Rename to...
5988 (dwarf2_per_bfd::get_cu): ... this.
5989 (dwarf2_per_objfile::get_tu): Rename to...
5990 (dwarf2_per_bfd::get_tu): ... this.
5991 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5992 (dwarf2_per_bfd::allocate_per_cu): ... this.
5993 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5994 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5995 (get_gdb_index_contents_ftype): Change parameter from
5996 dwarf2_per_objfile to dwarf2_per_bfd.
5997 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5998 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5999
a50264ba
TT
60002020-05-27 Tom Tromey <tom@tromey.com>
6001 Simon Marchi <simon.marchi@efficios.com>
6002
6003 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6004 (allocate_piece_closure): Set "per_objfile" member.
6005 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6006 (locexpr_describe_location, loclist_describe_location): Use new
6007 member.
6008 * dwarf2/read.c (read_call_site_scope)
6009 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6010 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6011 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6012 handle_data_member_location): Set per_objfile member.
6013 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6014 member.
6015 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6016
d3473f0c
TT
60172020-05-27 Tom Tromey <tom@tromey.com>
6018
6019 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6020 allocate_signatured_type>: Declare new methods.
6021 <m_num_psymtabs>: New member.
6022 (struct dwarf2_per_cu_data) <index>: New member.
6023 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6024 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6025 (create_cu_from_index_list): Use allocate_per_cu.
6026 (create_signatured_type_table_from_index)
6027 (create_signatured_type_table_from_debug_names)
6028 (create_debug_type_hash_table, add_type_unit)
6029 (read_comp_units_from_section): Use allocate_signatured_type.
6030
5717c425
TT
60312020-05-27 Tom Tromey <tom@tromey.com>
6032
6033 * psymtab.c (partial_map_expand_apply)
6034 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6035 (psym_lookup_global_symbol_language)
6036 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6037 (psym_print_stats, psym_expand_symtabs_for_function)
6038 (psym_map_symbol_filenames, psym_map_matching_symbols)
6039 (psym_expand_symtabs_matching)
6040 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6041 (maintenance_check_psymtabs): Update.
6042 * psympriv.h (struct partial_symtab) <readin_p,
6043 get_compunit_symtab>: Add objfile parameter.
6044 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6045 Likewise.
6046 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6047 get_compunit_symtab>: Likewise.
6048 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6049
45940949
TT
60502020-05-27 Tom Tromey <tom@tromey.com>
6051
6052 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6053 member.
6054 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6055 (create_cu_from_index_list)
6056 (create_signatured_type_table_from_index)
6057 (create_signatured_type_table_from_debug_names)
6058 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6059 (dwarf2_create_include_psymtab)
6060 (create_debug_type_hash_table, add_type_unit)
6061 (create_type_unit_group, read_comp_units_from_section)
6062 (dwarf2_compute_name, create_cus_hash_table)
6063 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6064 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6065 obstack.
6066 (dw2_get_real_path): Likewise. Change argument to
6067 dwarf2_per_objfile.
6068
f8c6d152
LM
60692020-05-27 Luis Machado <luis.machado@linaro.org>
6070
6071 PR tdep/26000
6072 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6073 for ldrd (immediate).
6074
e98d2e6d
PW
60752020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6076
6077 * command.h: Add comment giving the name of class_tui.
6078 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6079 create the fake command for the help for class_tui.
6080
53a47a3e
TT
60812020-05-26 Tom Tromey <tromey@adacore.com>
6082
6083 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6084 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6085 (val_atr): New function.
6086 (value_val_atr): Use it.
6087 * ada-valprint.c (print_optional_low_bound): Change low bound
6088 handling for enums.
6089 (val_print_packed_array_elements): Don't call discrete_position.
6090 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6091 discrete_position for enum types.
6092 * language.c (default_print_array_index): Change type.
6093 * language.h (struct language_defn) <la_print_array_index>: Add
6094 index_type parameter, change type of index_value.
6095 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6096 (default_print_array_index): Update.
6097 * valprint.c (maybe_print_array_index): Don't call
6098 value_from_longest. Update.
6099 (value_print_array_elements): Don't call discrete_position.
6100
0bc2354b
TT
61012020-05-26 Tom Tromey <tromey@adacore.com>
6102
6103 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6104 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6105
1218a4bf
CDA
61062020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6107
6108 PR gdb/13519
6109 * avr-tdep.c (avr_integer_to_address): Return data or code
6110 address accordingly to the second 'type' argument of the
6111 function.
6112
92651b1d
MW
61132020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6114
6115 * infcmd.c, inferior.h: (construct_inferior_arguments):
6116 Moved function from here to gdbsupport/common-inferior.{h,cc}
6117
0a4f5f8c
TT
61182020-05-23 Tom Tromey <tom@tromey.com>
6119
6120 Revert commit eca1f90c:
6121 * NEWS: Remove entry for completion styling.
6122 * completer.c (_rl_completion_prefix_display_length): Move
6123 declaration later.
6124 (gdb_fnprint): Revert.
6125 (gdb_display_match_list_1): Likewise.
6126 * cli/cli-style.c (completion_prefix_style)
6127 (completion_difference_style, completion_suffix_style): Remove.
6128 (_initialize_cli_style): Revert.
6129 * cli/cli-style.h (completion_prefix_style)
6130 (completion_difference_style, completion_suffix_style): Don't
6131 declare.
6132
e08bd6c5
PA
61332020-05-24 Pedro Alves <palves@redhat.com>
6134
6135 * symtab.c (completion_list_add_name): Return boolean indication
6136 of whether the symbol matched.
6137 (completion_list_add_symbol): Don't try to remove C++ aliases if
6138 the symbol didn't match in the first place.
6139 * symtab.h (completion_list_add_name): Return bool.
6140
ceacbf6e
SM
61412020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6142
6143 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6144 type::field.
6145
26f16254
JB
61462020-05-23 Joel Brobecker <brobecker@adacore.com>
6147
6148 GDB 9.2 released.
6149
eca1f90c
TT
61502020-05-23 Tom Tromey <tom@tromey.com>
6151
6152 * NEWS: Add entry for completion styling.
6153 * completer.c (_rl_completion_prefix_display_length): Move
6154 declaration earlier.
6155 (gdb_fnprint): Use completion_style.
6156 (gdb_display_match_list_1): Likewise.
6157 * cli/cli-style.c (completion_prefix_style)
6158 (completion_difference_style, completion_suffix_style): New
6159 globals.
6160 (_initialize_cli_style): Register new globals.
6161 * cli/cli-style.h (completion_prefix_style)
6162 (completion_difference_style, completion_suffix_style): Declare.
6163
51e2cfa2
PA
61642020-05-23 Pedro Alves <palves@redhat.com>
6165
6166 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6167 (parse_escape): Use ISDIGIT instead of isdigit.
6168 (puts_debug): Use gdb_isprint instead of isprint.
6169 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6170 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6171 ISSPACE instead of isspace.
6172 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6173 instead of isspace.
6174 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6175 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6176 instead of isxdigit and ISDIGIT instead of isdigit.
6177
80fc5e77
SM
61782020-05-22 Simon Marchi <simon.marchi@efficios.com>
6179
6180 * gdbtypes.h (struct type) <field>: New method.
6181 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6182 or type::field.
6183
3cabb6b0
SM
61842020-05-22 Simon Marchi <simon.marchi@efficios.com>
6185
6186 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6187 (TYPE_FIELDS): Use type::fields. Change all call sites that
6188 modify the propery to use type::set_fields instead.
6189
1f704f76
SM
61902020-05-22 Simon Marchi <simon.marchi@efficios.com>
6191
6192 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6193 type::num_fields instead.
6194
5e33d5f4
SM
61952020-05-22 Simon Marchi <simon.marchi@efficios.com>
6196
6197 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6198 methods.
6199 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6200 that modify the number of fields to use type::set_num_fields
6201 instead.
6202
9392ebb3
TT
62032020-05-22 Tom Tromey <tromey@adacore.com>
6204
6205 * compile/compile-object-load.h (munmap_list_free): Don't
6206 declare.
6207
7c13f4e8
AB
62082020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6209
6210 * annotate.c (annotate_source_line): Update return type, add call
6211 to update current symtab and line.
6212 * annotate.h (annotate_source_line): Update return type, and
6213 extend header comment.
6214 * source.c (info_line_command): Check annotation_level before
6215 calling annotate_source_line.
6216 * stack.c (print_frame_info): If calling annotate_source_line
6217 returns true, then don't print any other source line information.
6218
aa370940
SM
62192020-05-21 Simon Marchi <simon.marchi@efficios.com>
6220
6221 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6222
84d53fa9
SM
62232020-05-21 Simon Marchi <simon.marchi@efficios.com>
6224
6225 * coffread.c (patch_type): Remove NULL check before xfree.
6226 * corefile.c (set_gnutarget): Likewise.
6227 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6228 * exec.c (build_section_table): Likewise.
6229 * remote.c (remote_target::pass_signals): Likewise.
6230 * utils.c (n_spaces): Likewise.
6231 * cli/cli-script.c (document_command): Likewise.
6232 * i386-windows-tdep.c (core_process_module_section): Likewise.
6233 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6234
9d428aae
SM
62352020-05-20 Simon Marchi <simon.marchi@efficios.com>
6236
6237 * symfile.c (reread_symbols): Clear objfile's section_offsets
6238 vector and section indices, re-compute them by calling
6239 sym_offsets.
6240
250106a7
TT
62412020-05-20 Tom Tromey <tromey@adacore.com>
6242
6243 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6244 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6245
9a0bacfb
TV
62462020-05-20 Tom de Vries <tdevries@suse.de>
6247
6248 PR symtab/25833
6249 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6250
7b958a48
AM
62512020-05-20 Alan Modra <amodra@gmail.com>
6252
6253 PR 25993
6254 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6255 bfd_set_filename.
6256 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6257 passed to bfd_set_filename.
6258 * symfile-mem.c (add_vsyscall_page): Likewise for string
6259 passed to symbol_file_add_from_memory.
6260 (symbol_file_add_from_memory): Make name param a const char* and
6261 don't strdup.
6262
c7e97679
AM
62632020-05-20 Alan Modra <amodra@gmail.com>
6264
6265 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6266 rather than accessing bfd->filename directly.
6267 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6268 and use bfd_section_name.
6269 * dwarf2/frame.c (decode_frame_entry): Likewise.
6270 * exec.c (exec_set_section_address): Likewise.
6271 * solib-aix.c (solib_aix_bfd_open): Likewise.
6272 * stap-probe.c (get_stap_base_address): Likewise.
6273 * symfile.c (reread_symbols): Likewise.
6274
563c591b
TT
62752020-05-19 Tom Tromey <tromey@adacore.com>
6276
6277 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6278
f408d82c
SM
62792020-05-19 Simon Marchi <simon.marchi@efficios.com>
6280
6281 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6282
98c59b52
PA
62832020-05-19 Pedro Alves <palves@redhat.com>
6284
6285 * NEWS (set exec-file-mismatch): Adjust entry.
6286 * exec.c: Include "build-id.h".
6287 (validate_exec_file): Try to match build IDs instead of filenames.
6288 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6289 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6290 and pass down 'warn_if_slow'.
6291 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6292 gdb_bfd_open_closure to pass it down.
6293 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6294
4111f652
PA
62952020-05-19 Pedro Alves <palves@redhat.com>
6296
6297 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6298 * target.c (target_fileio_open_1): Rename to target_fileio_open
6299 and make extern. Use bool.
6300 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6301 (target_fileio_read_alloc_1): Adjust.
6302 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6303 (target_fileio_open_warn_if_slow): Delete declaration.
6304
ad80db5b
PA
63052020-05-19 Pedro Alves <palves@redhat.com>
6306
6307 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6308 Adjust all callers.
6309
1d6ce4d3
YS
63102020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6311
6312 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6313 whether disp is negative.
6314
9005fbbb
SM
63152020-05-19 Simon Marchi <simon.marchi@efficios.com>
6316
6317 * symfile.h (struct symfile_segment_data)
6318 <~symfile_segment_data>: Remove.
6319 <segment_info>: Change to std::vector.
6320 * symfile.c (default_symfile_segments): Update.
6321 * elfread.c (elf_symfile_segments): Update.
6322
68b888ff
SM
63232020-05-19 Simon Marchi <simon.marchi@efficios.com>
6324
6325 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6326 <segments>: New.
6327 <segment_bases, segment_sizes>: Remove.
6328 * symfile.c (default_symfile_segments): Update.
6329 * elfread.c (elf_symfile_segments): Update.
6330 * remote.c (remote_target::get_offsets): Update.
6331 * solib-target.c (solib_target_relocate_section_addresses):
6332 Update.
6333
62982abd
SM
63342020-05-19 Simon Marchi <simon.marchi@efficios.com>
6335
6336 * symfile.h (struct symfile_segment_data): Initialize fields.
6337 <~symfile_segment_data>: Add.
6338 (symfile_segment_data_up): New.
6339 (struct sym_fns) <sym_segments>: Return a
6340 symfile_segment_data_up.
6341 (default_symfile_segments): Return a symfile_segment_data_up.
6342 (free_symfile_segment_data): Remove.
6343 (get_symfile_segment_data): Return a symfile_segment_data_up.
6344 * symfile.c (default_symfile_segments): Likewise.
6345 (get_symfile_segment_data): Likewise.
6346 (free_symfile_segment_data): Remove.
6347 (symfile_find_segment_sections): Update.
6348 * elfread.c (elf_symfile_segments): Return a
6349 symfile_segment_data_up.
6350 * remote.c (remote_target::get_offsets): Update.
6351 * solib-target.c (solib_target_relocate_section_addresses):
6352 Update.
6353 * symfile-debug.c (debug_sym_segments): Return a
6354 symfile_segment_data_up.
6355
7f204339
RO
63562020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6357
e52a0f1b
RO
6358 PR build/25981
6359 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6360 Hardcode register numbers.
6361
7f204339
RO
6362 PR build/25981
6363 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6364 procfs_find_LDT_entry): Remove.
6365 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6366 procfs_find_LDT_entry): Remove.
6367 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6368 Remove.
6369
7f32a4d5
PA
63702020-05-17 Pedro Alves <palves@redhat.com>
6371 Andrew Burgess <andrew.burgess@embecosm.com>
6372 Keno Fischer <keno@juliacomputing.com>
6373
6374 PR gdb/25741
6375 * breakpoint.c (build_target_condition_list): Update comments.
6376 (build_target_command_list): Update comments and skip matching
6377 locations.
6378 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6379 a separate function. Simplify "set breakpoint auto-hw off"
6380 handling.
6381 (insert_breakpoints): Update comment.
6382 (tracepoint_locations_match): New parameter. For breakpoints,
6383 compare location types too, if the caller wants to.
6384 (handle_automatic_hardware_breakpoints): New functions.
6385 (bp_location_is_less_than): Also sort by location type and
6386 hardware breakpoint length.
6387 (update_global_location_list): Handle "set breakpoint auto-hw on"
6388 here.
6389 (update_breakpoint_locations): Ask breakpoint_locations_match to
6390 ignore location types.
6391
7d93a1e0
SM
63922020-05-16 Simon Marchi <simon.marchi@efficios.com>
6393
6394 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6395 type::name instead.
6396
d0e39ea2
SM
63972020-05-16 Simon Marchi <simon.marchi@efficios.com>
6398
6399 * gdbtypes.h (struct type) <name, set_name>: New methods.
6400 (TYPE_CODE): Use type::name. Change all call sites used to set
6401 the name to use type::set_name instead.
6402
2dab0c7b
TT
64032020-05-16 Tom Tromey <tom@tromey.com>
6404
6405 * top.c (quit_force): Update.
6406 * infrun.c (handle_no_resumed): Update.
6407 * top.h (all_uis): New function.
6408 (ALL_UIS): Remove.
6409
59f7bd8d
SM
64102020-05-16 Simon Marchi <simon.marchi@efficios.com>
6411
6412 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6413
9bf058f0
PA
64142020-05-16 Pedro Alves <palves@redhat.com>
6415
6416 * ia64-linux-nat.c
6417 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6418 Declare method.
6419 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6420
8f86ae1a
SM
64212020-05-15 Simon Marchi <simon.marchi@efficios.com>
6422
6423 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6424 (sparc64_adi_info): Likewise.
6425
d6bc0792
TT
64262020-05-15 Tom Tromey <tom@tromey.com>
6427
6428 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6429 block_objfile.
6430 (lookup_objfile_from_block): Remove.
6431 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6432 (lookup_global_symbol): Use block_objfile.
6433 * symtab.h (lookup_objfile_from_block): Don't declare.
6434 * printcmd.c (clear_dangling_display_expressions): Use
6435 block_objfile.
6436 * parse.c (operator_check_standard): Use block_objfile.
6437
8c14c3a3
TT
64382020-05-15 Tom Tromey <tom@tromey.com>
6439
6440 * language.c (language_alloc_type_symbol): Set
6441 SYMBOL_SECTION.
6442 * symtab.c (initialize_objfile_symbol): Remove.
6443 (allocate_symbol): Remove.
6444 (allocate_template_symbol): Remove.
6445 * dwarf2/read.c (fixup_go_packaging): Use "new".
6446 (new_symbol): Use "new".
6447 (read_variable): Don't call initialize_objfile_symbol. Use
6448 "new".
6449 (read_func_scope): Use "new".
6450 * xcoffread.c (process_xcoff_symbol): Don't call
6451 initialize_objfile_symbol.
6452 (SYMBOL_DUP): Remove.
6453 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6454 "new".
6455 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6456 (allocate_template_symbol): Don't declare.
6457 (struct symbol): Add copy constructor. Change defaults.
6458 * jit.c (finalize_symtab): Use "new".
6459 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6460 Use "new".
6461 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6462 (common_block_end): Use "new".
6463 * mdebugread.c (parse_symbol): Use "new".
6464 (new_symbol): Likewise.
6465
5b4a1a8d
PW
64662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6467
6468 * NEWS: Mention changes to help and apropos.
6469
57b4f16e
PW
64702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6471
6472 * command.h (enum command_class): Improve comments, document
6473 that class_alias is for user-defined aliases, give the class
6474 name for each class, remove unused class_xdb.
6475 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6476 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6477 by a precise class.
6478 * infcmd.c (_initialize_infcmd): Likewise.
6479 * reverse.c (_initialize_reverse): Likewise.
6480 * stack.c (_initialize_stack): Likewise.
6481 * symfile.c (_initialize_symfile): Likewise.
6482 * tracepoint.c (_initialize_tracepoint): Likewise.
6483
7c05caf7
PW
64842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6485
6486 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6487 when their aliased command is traversed.
6488 (help_cmd): Add fput_command_names_styled call to
6489 output command name and aliases when command has an alias.
6490
3b3aaacb
PW
64912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6492
6493 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6494 * cli/cli-decode.c (help_cmd_list): Declare as static,
6495 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6496 a command together with the command.
6497 (fput_command_name_styled, fput_command_names_styled): New functions.
6498 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6499 fput_command_name_styled.
6500 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6501 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6502
7aa1b46f
PW
65032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6504
6505 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6506 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6507 * command.h (cmd_show_list): Likewise.
6508 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6509 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6510
89bcba74
PW
65112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6512
6513 * unittests/command-def-selftests.c (traverse_command_structure):
6514 Verify all commands of a list have the same prefix command and
6515 that only the top cmdlist commands have a null prefix.
6516
3f4d92eb
PW
65172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6518
6519 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6520 as prefix, not one of its aliases.
6521 (set_cmd_prefix): Remove.
6522 (do_add_cmd): Centralize the setting of the prefix of a command, when
6523 command is defined after its full chain of prefix commands.
6524 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6525 (add_setshow_cmd_full): Likewise.
6526 (update_prefix_field_of_prefixed_commands): New function.
6527 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6528 update_prefix_field_of_prefixed_commands.
6529 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6530 addresses of remote_set_cmdlist and remote_show_cmdlist given
6531 as argument, not the address of an argument.
6532 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6533 * gdb/remote.c (_initialize_remote): Likewise.
6534
0605465f
PW
65352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6536
6537 * cli/cli-cmds.c (alias_command): Check for an existing alias
6538 using lookup_cmd_composition, as valid_command_p is too strict
6539 and forbids aliases that are the prefix of an existing alias
6540 or command.
6541 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6542 command is properly recognised as a valid command.
6543
58e6ac70
PW
65442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6545
6546 * unittests/help-doc-selftests.c: Rename to
6547 unittests/command-def-selftests.c
6548 * unittests/command-def-selftests.c (help_doc_tests): Update some
6549 comments.
6550 (command_structure_tests, traverse_command_structure): New namespace
6551 and function.
6552 (command_structure_invariants_tests): New function.
6553 (_initialize_command_def_selftests) Renamed from
6554 _initialize_help_doc_selftests, register command_structure_invariants
6555 selftest.
6556
a7b9ceb8
PW
65572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6558
6559 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6560 an alias of 'show'.
6561
b2188a06
JB
65622020-05-15 Joel Brobecker <brobecker@adacore.com>
6563
6564 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6565 ada_is_fixed_point_type. Update all callers.
6566 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6567 all callers.
6568 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6569 Update all callers.
6570 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6571 print_fixed_point_type. Update all callers.
6572 * ada-valprint.c (ada_value_print_num): Replace call to
6573 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6574
a51951c2
KB
65752020-05-14 Kevin Buettner <kevinb@redhat.com>
6576
6577 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6578 processors.
6579 (cpu_supports_bts): Add CV_AMD case.
6580
29d6859f
LM
65812020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6582 Simon Marchi <simon.marchi@efficios.com>
6583
6584 * infrun.c (stop_all_threads): Collect multiple wait events at
6585 each pass.
6586
78134374
SM
65872020-05-14 Simon Marchi <simon.marchi@efficios.com>
6588
6589 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6590 type::code instead.
6591
67607e24
SM
65922020-05-14 Simon Marchi <simon.marchi@efficios.com>
6593
6594 * gdbtypes.h (struct type) <code, set_code>: New methods.
6595 (TYPE_CODE): Use type::code. Change all call sites used to set
6596 the code to use type::set_code instead.
6597
a05575d3
TBA
65982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6599 Tom de Vries <tdevries@suse.de>
6600 Pedro Alves <palves@redhat.com>
6601
6602 PR threads/25478
6603 * infrun.c (stop_all_threads): Do NOT ignore
6604 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6605 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6606 received.
6607 (handle_no_resumed): Remove code handling a live inferior with no
6608 threads.
6609 * remote.c (has_single_non_exited_thread): New.
6610 (remote_target::update_thread_list): Do not delete a thread if is
6611 the last thread of the process.
6612 * thread.c (thread_select): Call delete_exited_threads instead of
6613 prune_threads.
6614
6ad82919
TBA
66152020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6616
6617 * infrun.c (stop_all_threads): Enable/disable thread events of all
6618 targets. Move a debug message denoting the end of the function
6619 into the SCOPED_EXIT block.
6620
d890404b
TBA
66212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6622
6623 * process-stratum-target.h: Include <set>.
6624 (all_non_exited_process_targets, switch_to_target_no_thread): New
6625 function declarations.
6626 * process-stratum-target.c (all_non_exited_process_targets)
6627 (switch_to_target_no_thread): New function implementations.
6628
293b3ebc
TBA
66292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6630
6631 * infrun.c (handle_inferior_event): Extract out a piece of code
6632 into...
6633 (mark_non_executing_threads): ...this new function.
6634
7ca9b62a
TBA
66352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6636
6637 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6638 use.
6639
fc75c28b
TBA
66402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6641
6642 * regcache.c (regcache_read_pc_protected): New function
6643 implementation that returns 0 if the PC cannot read via
6644 'regcache_read_pc'.
6645 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6646 instead of 'regcache_read_pc'.
6647 (keep_going_pass_signal): Ditto.
6648
a89febbd
TT
66492020-05-13 Tom Tromey <tromey@adacore.com>
6650
6651 * ada-lang.c (align_value): Remove.
6652 (ada_template_to_fixed_record_type_1): Use align_up.
6653
f7e23710
TBA
66542020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6655
6656 * async-event.c: Update the copyright year.
6657 * async-event.h: Update the copyright year.
6658
02ff80c2
SM
66592020-05-12 Simon Marchi <simon.marchi@efficios.com>
6660
6661 * objfiles.h (is_addr_in_objfile,
6662 shared_objfile_contains_address_p): Return bool.
6663 * objfile.c (is_addr_in_objfile,
6664 shared_objfile_contains_address_p): Return bool.
6665
4fd6c7e8
TT
66662020-05-11 Tom Tromey <tromey@adacore.com>
6667
6668 * cli/cli-cmds.c (info_command): Restore.
6669 (_initialize_cli_cmds): Use add_prefix_command for "info".
6670 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6671
5eb68a39
TT
66722020-05-11 Tom Tromey <tromey@adacore.com>
6673
6674 * ada-lang.c (ada_value_primitive_field): Now public.
6675 * ada-lang.h (ada_value_primitive_field): Declare.
6676 * ada-valprint.c (print_field_values): Use
6677 ada_value_primitive_field for wrapper fields.
6678
7666722f
TV
66792020-05-11 Tom de Vries <tdevries@suse.de>
6680
6681 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6682 MODULE_DOMAIN.
6683
3ee6bb11
TV
66842020-05-11 Tom de Vries <tdevries@suse.de>
6685
6686 PR symtab/25941
6687 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6688 with length 0, if not gdb-produced.
6689 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6690
43434996
TV
66912020-05-09 Tom de Vries <tdevries@suse.de>
6692
6693 PR gdb/25955
6694 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6695 calculation.
6696
2f78cffc
TT
66972020-05-09 Tom Tromey <tom@tromey.com>
6698
6699 * top.c (server_command): Now bool.
6700 * top.h (server_command): Now bool.
6701
4f7bc5ed
TT
67022020-05-08 Tom Tromey <tromey@adacore.com>
6703
6704 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6705 already being processed.
6706
8be4b118
TT
67072020-05-08 Tom Tromey <tom@tromey.com>
6708
6709 * printcmd.c (struct display) <next>: Remove.
6710 <display>: New constructor.
6711 <exp_string>: Now a std::string.
6712 <enabled_p>: Now a bool.
6713 (display_number): Move definition earlier.
6714 (displays): Rename from display_chain. Now a std::vector.
6715 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6716 (display_command): Update.
6717 (do_one_display, disable_display)
6718 (enable_disable_display_command, do_enable_disable_display):
6719 Update.
6720 (free_display): Remove.
6721 (clear_displays): Rewrite.
6722 (delete_display): Update.
6723 (map_display_numbers): Use function_view. Remove "data"
6724 parameter. Update.
6725 (do_delete_display): Remove.
6726 (undisplay_command): Update.
6727 (do_one_display, do_displays, disable_display)
6728 (info_display_command): Update.
6729 (do_enable_disable_display): Remove.
6730 (enable_disable_display_command)
6731 (clear_dangling_display_expressions): Update.
6732
94c93c35
TT
67332020-05-08 Tom Tromey <tom@tromey.com>
6734
6735 * symtab.c (set_symbol_cache_size)
6736 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6737 (maintenance_print_symbol_cache_statistics): Update.
6738 * symmisc.c (print_symbol_bcache_statistics)
6739 (print_objfile_statistics, maintenance_print_objfiles)
6740 (maintenance_info_symtabs, maintenance_check_symtabs)
6741 (maintenance_expand_symtabs, maintenance_info_line_tables):
6742 Update.
6743 * symfile-debug.c (set_debug_symfile): Update.
6744 * source.c (forget_cached_source_info): Update.
6745 * python/python.c (gdbpy_progspaces): Update.
6746 * psymtab.c (maintenance_info_psymtabs): Update.
6747 * probe.c (parse_probes): Update.
6748 * linespec.c (iterate_over_all_matching_symtabs)
6749 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6750 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6751 * exec.c (exec_target::close): Update.
6752 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6753 * breakpoint.c (print_one_breakpoint_location)
6754 (create_longjmp_master_breakpoint)
6755 (create_std_terminate_master_breakpoint): Update.
6756 * progspace.c (program_spaces): Now a std::vector.
6757 (maybe_new_address_space): Update.
6758 (add_program_space): Remove.
6759 (program_space::program_space): Update.
6760 (remove_program_space): Update.
6761 (number_of_program_spaces): Remove.
6762 (print_program_space, update_address_spaces): Update.
6763 * progspace.h (program_spaces): Change type.
6764 (ALL_PSPACES): Remove.
6765 (number_of_program_spaces): Don't declare.
6766 (struct program_space) <next>: Remove.
6767
a1fd1ac9
TT
67682020-05-08 Tom Tromey <tom@tromey.com>
6769
6770 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6771 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6772 (enable_break): Update.
6773 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6774 (frv_fdpic_find_canonical_descriptor): Update.
6775 (frv_fetch_objfile_link_map): Update.
6776 * progspace.c (program_space::free_all_objfiles): Update.
6777 (program_space::solibs): New method.
6778 * progspace.h (struct program_space) <solibs>: New method.
6779 * solist.h (master_so_list): Don't declare.
6780 (ALL_SO_LIBS): Remove.
6781 * solib.h (so_list_head): Remove.
6782 (update_solib_list): Update comment.
6783 * solib.c (master_so_list): Remove.
6784 (solib_used, update_solib_list, solib_add)
6785 (info_sharedlibrary_command, clear_solib)
6786 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6787
38eae084
TT
67882020-05-08 Tom Tromey <tom@tromey.com>
6789
6790 * extension.c (extension_languages): Now a std::array.
6791 (ALL_EXTENSION_LANGUAGES): Remove.
6792 (get_ext_lang_defn, get_ext_lang_of_file)
6793 (eval_ext_lang_from_control_command): Update.
6794 (finish_ext_lang_initialization)
6795 (auto_load_ext_lang_scripts_for_objfile)
6796 (ext_lang_type_printers::ext_lang_type_printers)
6797 (apply_ext_lang_type_printers)
6798 (ext_lang_type_printers::~ext_lang_type_printers)
6799 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6800 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6801 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6802 (get_matching_xmethod_workers, ext_lang_colorize)
6803 (ext_lang_before_prompt): Update.
6804 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6805
596dc4ad
TT
68062020-05-08 Tom Tromey <tom@tromey.com>
6807
6808 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6809 overload.
6810 <swap_string, m_string>: Remove.
6811 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6812 Update.
6813 * stabsread.c (define_symbol, read_type): Update.
6814 * linespec.c (find_linespec_symbols): Update.
6815 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6816 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6817 * dbxread.c (read_dbx_symtab): Update.
6818 * cp-support.h (cp_canonicalize_string_full)
6819 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6820 Return unique_xmalloc_ptr.
6821 * cp-support.c (inspect_type): Update.
6822 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6823 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6824 Likewise.
6825 * c-typeprint.c (print_name_maybe_canonical): Update.
6826 * break-catch-throw.c (check_status_exception_catchpoint):
6827 Update.
6828
bf4cb9be
TV
68292020-05-08 Tom de Vries <tdevries@suse.de>
6830
6831 * infrun.c (follow_fork): Copy current_line and current_symtab to
6832 child thread.
6833
a1b68f28
SM
68342020-05-07 Simon Marchi <simon.marchi@efficios.com>
6835
6836 * async-event.c (struct async_signal_handler, struct
6837 async_event_handler): Reformat, remove typedef.
6838
98d48915
SM
68392020-05-07 Simon Marchi <simon.marchi@efficios.com>
6840
6841 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6842 access thistype->main_type->dyn_prop_list directly.
6843
7aa91313
SM
68442020-05-07 Simon Marchi <simon.marchi@efficios.com>
6845
6846 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6847 (remove_dyn_prop): Remove. Update all users to use
6848 type::remove_dyn_prop.
6849 * gdbtypes.c (remove_dyn_prop): Rename to...
6850 (type::remove_dyn_prop): ... this.
6851
5c54719c
SM
68522020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6853
6854 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6855 (add_dyn_prop): Remove. Update all users to use
6856 type::add_dyn_prop.
6857 * gdbtypes.c (add_dyn_prop): Rename to...
6858 (type::add_dyn_prop): ... this.
6859
24e99c6c
SM
68602020-05-07 Simon Marchi <simon.marchi@efficios.com>
6861
6862 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6863 (get_dyn_prop): Remove. Update all users to use
6864 type::dyn_prop.
6865 * gdbtypes.c (get_dyn_prop): Rename to...
6866 (type::dyn_prop): ... this.
6867
0d4bf016
SM
68682020-05-06 Simon Marchi <simon.marchi@efficios.com>
6869
6870 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6871
ac4a4f1c
SM
68722020-05-06 Simon Marchi <simon.marchi@efficios.com>
6873
6874 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6875 instruction, skip it if it's there.
6876
a3bbacc1
SM
68772020-05-05 Simon Marchi <simon.marchi@efficios.com>
6878
6879 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6880
c3236f84
SM
68812020-05-04 Simon Marchi <simon.marchi@efficios.com>
6882
6883 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6884 * gdbtypes.c (recursive_dump_type): Remove use of
6885 TYPE_INCOMPLETE.
6886
3b6acaee
TT
68872020-05-03 Tom Tromey <tom@tromey.com>
6888
6889 * breakpoint.c (catch_command, tcatch_command): Remove.
6890 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6891 add_show_prefix_cmd.
6892 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6893 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6894 Remove.
6895 (add_internal_problem_command): Use add_basic_prefix_cmd,
6896 add_show_prefix_cmd.
6897 * mips-tdep.c (set_mipsfpu_command): Remove.
6898 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6899 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6900 (_initialize_index_cache): Use add_basic_prefix_cmd.
6901 * memattr.c (dummy_cmd): Remove.
6902 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6903 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6904 (_initialize_tui_win): Use add_basic_prefix_cmd,
6905 add_show_prefix_cmd.
6906 * cli/cli-logging.c (set_logging_command): Remove.
6907 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6908 add_show_prefix_cmd.
6909 (show_logging_command): Remove.
6910 * target.c (target_command): Remove.
6911 (add_target): Use add_basic_prefix_cmd.
6912
a51119cd
HD
69132020-05-02 Hannes Domani <ssbssa@yahoo.de>
6914
6915 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6916
652fc23a 69172020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6918
652fc23a
PW
6919 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6920 info_command.
6921
117539e6
KR
69222020-04-30 Kamil Rytarowski <n54@gmx.com>
6923
6924 * nbsd-nat.c (nbsd_enable_proc_events)
6925 (nbsd_nat_target::post_startup_inferior): Add.
6926 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6927 (nbsd_nat_target::update_thread_list): Rewrite.
6928 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6929 "PTRACE_LWP_CREATE".
6930 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6931
102e38eb 69322020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6933
102e38eb
PW
6934 * stack.c (_initialize_stack): Remove duplicated creation
6935 of "frame" command and "f" alias.
6936
ee9d1e5f
HD
69372020-04-30 Hannes Domani <ssbssa@yahoo.de>
6938
6939 PR gdb/18706
6940 * gdbtypes.c (check_typedef): Calculate size of array of
6941 stubbed type.
6942
627c7fb8
HD
69432020-04-30 Hannes Domani <ssbssa@yahoo.de>
6944
6945 PR gdb/15559
6946 * i386-tdep.c (i386_push_dummy_call): Call
6947 i386_thiscall_push_dummy_call.
6948 (i386_thiscall_push_dummy_call): New function.
6949 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6950 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6951 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6952
ffc2844e
SM
69532020-04-29 Simon Marchi <simon.marchi@efficios.com>
6954
6955 * gdbarch.sh (do_read): Add shellcheck disable directive for
6956 warning SC2162.
6957
1207375d
SM
69582020-04-29 Simon Marchi <simon.marchi@efficios.com>
6959
6960 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6961 "referenced but not assigned" warning.
6962
9fdb2916
SM
69632020-04-29 Simon Marchi <simon.marchi@efficios.com>
6964
6965 * gdbarch.sh: Remove code that sets fallbackdefault.
6966
759cea5e
SM
69672020-04-29 Simon Marchi <simon.marchi@efficios.com>
6968
6969 * gdbarch.sh: Use shell operators && and || instead of
6970 -a and -o.
6971
cb02ab24
SM
69722020-04-29 Simon Marchi <simon.marchi@efficios.com>
6973
6974 * gdbarch.sh: Use $(...) instead of `...`.
6975
a6fc5ffc
SM
69762020-04-29 Simon Marchi <simon.marchi@efficios.com>
6977
6978 * gdbarch.sh: Use double quotes around variables.
6979
8d113d13
SM
69802020-04-29 Simon Marchi <simon.marchi@efficios.com>
6981
6982 * gdbarch.sh: Use %s with printf, instead of variables in the
6983 format string.
6984
ed6acedd
TT
69852020-04-29 Tom Tromey <tromey@adacore.com>
6986
6987 PR ada/25875:
6988 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6989 type fields here.
6990 (read_enumeration_type): Call
6991 update_enumeration_type_from_children later. Update comments.
6992 (process_enumeration_scope): Don't create type fields.
6993
b68b1b58
KR
69942020-04-29 Kamil Rytarowski <n54@gmx.com>
6995
6996 * nbsd-tdep.c: Include "xml-syscall.h".
6997 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6998
f94b2e03
KR
69992020-04-29 Kamil Rytarowski <n54@gmx.com>
7000
7001 * nbsd-nat.c: Include "sys/wait.h".
7002 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7003 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7004 (nbsd_nat_target::remove_exec_catchpoint)
7005 (nbsd_nat_target::set_syscall_catchpoint): Add.
7006 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7007 (nbsd_nat_target::insert_exec_catchpoint)
7008 (nbsd_nat_target::remove_exec_catchpoint)
7009 (nbsd_nat_target::set_syscall_catchpoint): Add.
7010 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7011 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7012 `nbsd_get_syscall_number'.
7013
fc49bc72
TT
70142020-04-29 Tom Tromey <tom@tromey.com>
7015
7016 * stack.c (print_block_frame_labels): Remove.
7017
d642b692
HD
70182020-04-29 Hannes Domani <ssbssa@yahoo.de>
7019
7020 PR gdb/17320
7021 * ada-valprint.c (val_print_packed_array_elements): Move array
7022 end bracket to new line.
7023 (ada_val_print_string): Remove extra spaces before first array
7024 element.
7025 * c-valprint.c (c_value_print_array): Likewise.
7026 * m2-valprint.c (m2_print_array_contents): Likewise.
7027 (m2_value_print_inner): Likewise.
7028 * p-valprint.c (pascal_value_print_inner): Likewise.
7029 * valprint.c (generic_val_print_array): Likewise.
7030 (value_print_array_elements): Move first array element and array
7031 end bracket to new line.
7032
ea90f227
TV
70332020-04-29 Tom de Vries <tdevries@suse.de>
7034
7035 PR symtab/25889
7036 * linespec.c (find_method): Fix ix calculation.
7037
4498ef4f
KR
70382020-04-28 Kamil Rytarowski <n54@gmx.com>
7039
7040 * syscalls/update-netbsd.sh: New file.
7041 * syscalls/netbsd.xml: Regenerate.
7042 * data-directory/Makefile.in: Register `netbsd.xml' in
7043 `SYSCALLS_FILES'.
7044
a55e30b5
SM
70452020-04-28 Simon Marchi <simon.marchi@efficios.com>
7046
7047 * syscalls/update-freebsd.sh: Add double quotes.
7048
2b2fbab8
TT
70492020-04-28 Tom Tromey <tom@tromey.com>
7050
7051 * NEWS: Update.
7052 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7053 (cmdpy_init): Allow class_tui.
7054
a65189c9
TV
70552020-04-28 Mark Williams <mark@myosotissp.com>
7056
7057 PR gdb/24480
7058 * dwarf2read.c: Add missing assingments to list_in_scope when
7059 start_symtab was already called.
7060
1b95cdb7
SM
70612020-04-28 Simon Marchi <simon.marchi@efficios.com>
7062
7063 PR gdb/25881
7064 * dwarf2/read.c (offset_map_type): Use
7065 gdb:hash_enum<sect_offset> as hash function.
7066
15cd93d0
TV
70672020-04-28 Tom de Vries <tdevries@suse.de>
7068
7069 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7070 with DW_AT_signature.
7071
1eb39914
SM
70722020-04-27 Simon Marchi <simon.marchi@efficios.com>
7073
7074 * configure.ac: Remove check for fs_base/gs_base in
7075 user_regs_struct.
7076 * configure: Re-generate.
7077 * config.in: Re-generate.
7078 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7079 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7080 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7081
991a3e2e
LM
70822020-04-27 Luis Machado <luis.machado@linaro.org>
7083
7084 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7085 problematic inline frame unwinding situation.
7086 * frame.c (frame_id_computed_p): New function.
7087 * frame.h (frame_id_computed_p): New prototype.
7088
361ba0e8
TT
70892020-04-26 Tom Tromey <tom@tromey.com>
7090
7091 * command.h (enum command_class) <class_pseudo>: Remove.
7092
bc3609fd
PW
70932020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7094
7095 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7096 and whitespace.
7097
b9771db7
KR
70982020-04-25 Kamil Rytarowski <n54@gmx.com>
7099
ec16513e
SM
7100 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7101 `PT_GET_PROCESS_STATE' block.
b9771db7 7102
7151c1af
TT
71032020-04-24 Tom Tromey <tom@tromey.com>
7104
7105 * symtab.h (symbol_get_demangled_name): Don't declare.
7106 * symtab.c (symbol_get_demangled_name): Remove.
7107 (general_symbol_info::natural_name)
7108 (general_symbol_info::demangled_name): Update.
7109
906bb4c5
TT
71102020-04-24 Tom Tromey <tom@tromey.com>
7111
7112 PR rust/25025:
7113 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7114
bcfe6157
TT
71152020-04-24 Tom Tromey <tom@tromey.com>
7116
7117 PR symtab/12707:
7118 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7119 exists.
7120 (new_symbol): Likewise.
7121 * compile/compile-object-load.c (get_out_value_type): Use
7122 symbol_matches_search_name.
7123
f049a313
TT
71242020-04-24 Tom Tromey <tom@tromey.com>
7125
7126 * dwarf2/read.c (add_partial_symbol): Do not call
7127 compute_and_set_names.
7128
76e288d1
TT
71292020-04-24 Tom Tromey <tom@tromey.com>
7130
7131 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7132 overload.
7133
2467f4f6
TT
71342020-04-24 Tom Tromey <tom@tromey.com>
7135
7136 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7137 (add_psymbol_to_list): New overload. Make old overload call new
7138 one.
7139 * psympriv.h (add_psymbol_to_list): New overload.
7140
e61108c9
TT
71412020-04-24 Tom Tromey <tom@tromey.com>
7142
7143 * dwarf2/read.c (partial_die_info::read) <case
7144 DW_AT_linkage_name>: Use value_as_string.
7145 (dwarf2_string_attr): Use value_as_string.
7146 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7147 method.
7148 * dwarf2/attribute.c (attribute::value_as_string): New method.
7149
8c87a452
TT
71502020-04-24 Tom Tromey <tom@tromey.com>
7151
7152 * symtab.c (general_symbol_info::natural_name)
7153 (general_symbol_info::demangled_name): Check for language_rust.
7154
787de330
TT
71552020-04-24 Tom Tromey <tom@tromey.com>
7156
7157 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7158 (dwarf2_physname): ... from here.
7159 (partial_die_info::read): Add Rust "{" hack.
7160
ff985671
TT
71612020-04-24 Tom Tromey <tom@tromey.com>
7162
7163 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7164 method.
7165 (symbol_set_demangled_name): Don't declare.
7166 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7167 symbol_set_demangled_name.
7168 (general_symbol_info::set_language)
7169 (general_symbol_info::compute_and_set_names): Update.
7170 * minsyms.c (minimal_symbol_reader::install): Update.
7171 * dwarf2/read.c (new_symbol): Update.
7172
1acda803
TT
71732020-04-24 Tom Tromey <tromey@adacore.com>
7174
7175 PR python/23662:
7176 * python/py-type.c (convert_field): Handle
7177 FIELD_LOC_KIND_DWARF_BLOCK.
7178 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7179 (typy_get_dynamic): Nw function.
7180 (type_object_getset): Add "dynamic".
7181 * NEWS: Add entry.
7182
d656f129
TT
71832020-04-24 Tom Tromey <tromey@adacore.com>
7184
7185 * ada-typeprint.c (print_choices, print_variant_part)
7186 (print_record_field_types_dynamic): New functions.
7187 (print_record_field_types): Use print_record_field_types_dynamic.
7188
7d79de9a
TT
71892020-04-24 Tom Tromey <tromey@adacore.com>
7190
7191 * dwarf2/read.c (handle_data_member_location): New overload.
7192 (dwarf2_add_field): Use it.
7193 (decode_locdesc): Add "computed" parameter. Update comment.
7194 * gdbtypes.c (is_dynamic_type_internal): Also look for
7195 FIELD_LOC_KIND_DWARF_BLOCK.
7196 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7197 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7198 virtual base classes.
7199 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7200 FIELD_LOC_KIND_DWARF_BLOCK.
7201
f8e89861
TT
72022020-04-24 Tom Tromey <tromey@adacore.com>
7203
7204 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7205 * gdbtypes.c (is_dynamic_type_internal): Check
7206 TYPE_HAS_DYNAMIC_LENGTH.
7207 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7208 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7209 New macros.
7210 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7211 constant.
7212
9c6a1327
TT
72132020-04-24 Tom Tromey <tromey@adacore.com>
7214
7215 * dwarf2/read.c (struct variant_field): Rewrite.
7216 (struct variant_part_builder): New.
7217 (struct nextfield): Remove "variant" field. Add "offset".
7218 (struct field_info): Add "current_variant_part" and
7219 "variant_parts".
7220 (alloc_discriminant_info): Remove.
7221 (alloc_rust_variant): New function.
7222 (quirk_rust_enum): Update.
7223 (dwarf2_add_field): Set "offset" member. Don't handle
7224 DW_TAG_variant_part.
7225 (offset_map_type): New typedef.
7226 (convert_variant_range, create_one_variant)
7227 (create_one_variant_part, create_variant_parts)
7228 (add_variant_property): New functions.
7229 (dwarf2_attach_fields_to_type): Call add_variant_property.
7230 (read_structure_type): Don't handle DW_TAG_variant_part.
7231 (handle_variant_part, handle_variant): New functions.
7232 (handle_struct_member_die): Use them.
7233 (process_structure_scope): Don't handle variant parts.
7234 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7235 (struct discriminant_info): Remove.
7236 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7237 (struct main_type) <flag_discriminated_union>: Remove.
7238 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7239 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7240 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7241 Update.
7242 * valops.c (value_union_variant): Remove.
7243 * value.h (value_union_variant): Don't declare.
7244
b249d2c2
TT
72452020-04-24 Tom Tromey <tromey@adacore.com>
7246
7247 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7248 (ada_value_primitive_packed_val): Update.
7249 * ada-valprint.c (ada_value_print_1): Update.
7250 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7251 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7252 just an address. Use evaluate_for_locexpr_baton.
7253 (dwarf2_evaluate_property): Update.
7254 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7255 array_view.
7256 * findvar.c (default_read_var_value): Update.
7257 * gdbtypes.c (compute_variant_fields_inner)
7258 (resolve_dynamic_type_internal): Update.
7259 (resolve_dynamic_type): Change type of valaddr parameter.
7260 * gdbtypes.h (resolve_dynamic_type): Update.
7261 * valarith.c (value_subscripted_rvalue): Update.
7262 * value.c (value_from_contents_and_address): Update.
7263
61122aa9
TT
72642020-04-24 Tom Tromey <tromey@adacore.com>
7265
7266 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7267 "push_initial_value" parameter.
7268 (dwarf2_evaluate_property): Likewise.
7269 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7270
ef83a141
TT
72712020-04-24 Tom Tromey <tromey@adacore.com>
7272
7273 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7274 (variant::matches, compute_variant_fields_recurse)
7275 (compute_variant_fields_inner, compute_variant_fields): New
7276 functions.
7277 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7278 Use resolved_type after type is made.
7279 (operator==): Add new cases.
7280 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7281 (struct discriminant_range, struct variant, struct variant_part):
7282 New.
7283 (union dynamic_prop_data) <variant_parts, original_type>: New
7284 members.
7285 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7286 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7287 constants.
7288 * value.c (unpack_bits_as_long): Now public.
7289 * value.h (unpack_bits_as_long): Declare.
7290
675127ec
TT
72912020-04-24 Tom Tromey <tromey@adacore.com>
7292
7293 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7294 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7295
9852ceef
HD
72962020-04-24 Hannes Domani <ssbssa@yahoo.de>
7297
7298 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7299
7632c6ce
KR
73002020-04-24 Kamil Rytarowski <n54@gmx.com>
7301
7302 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7303 (remove_fork_catchpoint, post_startup_inferior)
7304 (post_attach): Move...
7305 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7306 (remove_fork_catchpoint, post_startup_inferior)
7307 (post_attach): ...here.
7308 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7309 (remove_fork_catchpoint, post_startup_inferior)
7310 (post_attach): Move...
7311 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7312 (remove_fork_catchpoint, post_startup_inferior)
7313 (post_attach): ...here.
7314
7be2bb4f
TT
73152020-04-24 Tom Tromey <tromey@adacore.com>
7316
7317 * nat/windows-nat.h (struct windows_thread_info)
7318 <pc_adjusted>: New member.
7319 * windows-nat.c (windows_fetch_one_register): Check
7320 pc_adjusted.
7321 (windows_nat_target::get_windows_debug_event)
7322 (windows_nat_target::wait): Set pc_adjusted.
7323
f80cb3b4
TV
73242020-04-24 Tom de Vries <tdevries@suse.de>
7325
7326 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7327 Run gdb-add-index inside temp dir.
7328
29514b87
TT
73292020-04-23 Tom Tromey <tromey@adacore.com>
7330
7331 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7332 in loop.
7333
5939967b
LM
73342020-04-23 Luis Machado <luis.machado@linaro.org>
7335
7336 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7337 get_frame_register instead of gdbarch_unwind_pc.
7338
70bc38f5
TV
73392020-04-23 Tom de Vries <tdevries@suse.de>
7340
7341 * symtab.c (lookup_global_symbol): Prefer def over decl.
7342
de82891c
TV
73432020-04-23 Tom de Vries <tdevries@suse.de>
7344
7345 PR symtab/25807
7346 * block.c (best_symbol, better_symbol): Promote to external.
7347 * block.h (best_symbol, better_symbol): Declare.
7348 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7349 decl.
7350
ecc6c606
TT
73512020-04-23 Tom Tromey <tromey@adacore.com>
7352
7353 PR ada/25837:
7354 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7355 "const char *", not a "const std::string &".
7356 <name_and_matcher::operator==>: Update.
7357 * unittests/lookup_name_info-selftests.c: Change type of
7358 "result".
7359
740480b8
TT
73602020-04-23 Tom Tromey <tom@tromey.com>
7361
7362 * inferior.h (iterate_over_inferiors): Don't declare.
7363 * inferior.c (iterate_over_inferiors): Remove.
7364 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7365 Remove.
7366 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7367 use iterate_over_inferiors.
7368 (darwin_resume_inferior_it)
7369 (struct resume_inferior_threads_param)
7370 (darwin_resume_inferior_threads_it): Remove.
7371 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7372
ae3ab1f0
TV
73732020-04-23 Tom de Vries <tdevries@suse.de>
7374
7375 * blockframe.c (find_pc_partial_function): Use
7376 find_pc_sect_compunit_symtab rather than
7377 objfile->sf->qf->find_pc_sect_compunit_symtab.
7378
317d2668
TV
73792020-04-22 Tom de Vries <tdevries@suse.de>
7380
7381 PR symtab/25764
7382 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7383 in psymtabs.
7384
eea9e357
TV
73852020-04-22 Tom de Vries <tdevries@suse.de>
7386
7387 PR symtab/25801
7388 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7389 symtabs.
7390
3d5afab3
TV
73912020-04-22 Tom de Vries <tdevries@suse.de>
7392
7393 PR symtab/25700
7394 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7395 CU if already created.
7396
d43b7a2d
TBA
73972020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7398
7399 * infrun.c (displaced_step_fixup): Switch to the event_thread
7400 before calling displaced_step_restore, not after.
7401
d89edf9b
MM
74022020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7403
7404 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7405 its inferior is not recorded by us.
7406 (record_btrace_target_open): Replace call to
7407 all_non_exited_threads () with call to current_inferior
7408 ()->non_exited_threads ().
7409 (record_btrace_target::stop_recording): Likewise.
7410 (record_btrace_target::close): Likewise.
7411 (record_btrace_target::wait): Likewise.
7412 (record_btrace_target::record_stop_replaying): Likewise.
7413
5897fd49
MM
74142020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7415
7416 * btrace.c (btrace_enable): Throw an error on double enables and
7417 when enabling recording fails.
7418 (btrace_disable): Throw an error if the thread is not recorded.
7419
1a476b6d
MM
74202020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7421
7422 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7423 request if we do not have a thread_info.
7424
4778a5f8
TV
74252020-04-21 Tom de Vries <tdevries@suse.de>
7426
7427 PR gdb/25471
7428 * thread.c
7429 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7430 exception in get_frame_id.
7431
0fa7617d
TT
74322020-04-20 Tom Tromey <tromey@adacore.com>
7433
7434 * python/python.c (struct gdbpy_event): Mark move constructor as
7435 noexcept.
7436 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7437 constructor as noexcept.
7438 * completer.h (struct completion_result): Mark move constructor as
7439 noexcept.
7440 * completer.c (completion_result::completion_result): Use
7441 initialization style. Don't call reset_match_list.
7442
ad23bda0
MS
74432020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7444
7445 * MAINTAINERS (Write After Approval): Add myself.
7446
45e1f031
TT
74472020-04-18 Tom Tromey <tom@tromey.com>
7448
7449 * windows-tdep.c (init_w32_command_list)
7450 (w32_prefix_command_valid): Restore.
7451 (_initialize_windows_tdep): Call init_w32_command_list.
7452
08feed99
TT
74532020-04-18 Tom Tromey <tom@tromey.com>
7454
7455 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7456 * value.c (value_fn_field): Update.
7457 * valops.c (find_function_in_inferior)
7458 (value_allocate_space_in_inferior): Update.
7459 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7460 Update.
7461 * tui/tui-source.c (tui_source_window::set_contents): Update.
7462 * symtab.c (lookup_global_or_static_symbol)
7463 (find_function_start_sal_1, skip_prologue_sal)
7464 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7465 * symmisc.c (dump_msymbols, dump_symtab_1)
7466 (maintenance_print_one_line_table): Update.
7467 * symfile.c (init_entry_point_info, section_is_mapped)
7468 (list_overlays_command, simple_read_overlay_table)
7469 (simple_overlay_update_1): Update.
7470 * stap-probe.c (handle_stap_probe): Update.
7471 * stabsread.c (dbx_init_float_type, define_symbol)
7472 (read_one_struct_field, read_enum_type, read_range_type): Update.
7473 * source.c (info_line_command): Update.
7474 * python/python.c (gdbpy_source_objfile_script)
7475 (gdbpy_execute_objfile_script): Update.
7476 * python/py-type.c (save_objfile_types): Update.
7477 * python/py-objfile.c (py_free_objfile): Update.
7478 * python/py-inferior.c (python_new_objfile): Update.
7479 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7480 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7481 (maintenance_check_psymtabs): Update.
7482 * printcmd.c (info_address_command): Update.
7483 * objfiles.h (struct objfile) <arch>: New method, from
7484 get_objfile_arch.
7485 (get_objfile_arch): Don't declare.
7486 * objfiles.c (get_objfile_arch): Remove.
7487 (filter_overlapping_sections): Update.
7488 * minsyms.c (msymbol_is_function): Update.
7489 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7490 (output_nondebug_symbol): Update.
7491 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7492 (mdebug_expand_psymtab): Update.
7493 * machoread.c (macho_add_oso_symfile): Update.
7494 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7495 Update.
7496 * linux-fork.c (checkpoint_command): Update.
7497 * linespec.c (convert_linespec_to_sals): Update.
7498 * jit.c (finalize_symtab): Update.
7499 * infrun.c (insert_exception_resume_from_probe): Update.
7500 * ia64-tdep.c (ia64_find_unwind_table): Update.
7501 * hppa-tdep.c (internalize_unwinds): Update.
7502 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7503 Update.
7504 * gcore.c (call_target_sbrk): Update.
7505 * elfread.c (record_minimal_symbol, elf_symtab_read)
7506 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7507 (elf_gnu_ifunc_resolve_by_got): Update.
7508 * dwarf2/read.c (create_addrmap_from_index)
7509 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7510 (read_debug_names_from_section)
7511 (process_psymtab_comp_unit_reader, add_partial_symbol)
7512 (add_partial_subprogram, process_full_comp_unit)
7513 (read_file_scope, read_func_scope, read_lexical_block_scope)
7514 (read_call_site_scope, dwarf2_ranges_read)
7515 (dwarf2_record_block_ranges, dwarf2_add_field)
7516 (mark_common_block_symbol_computed, read_tag_pointer_type)
7517 (read_tag_string_type, dwarf2_init_float_type)
7518 (dwarf2_init_complex_target_type, read_base_type)
7519 (partial_die_info::read, partial_die_info::read)
7520 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7521 (dwarf2_fetch_die_loc_sect_off): Update.
7522 * dwarf2/loc.c (dwarf2_find_location_expression)
7523 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7524 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7525 (dwarf2_loc_desc_get_symbol_read_needs)
7526 (locexpr_describe_location_piece, locexpr_describe_location_1)
7527 (loclist_describe_location): Update.
7528 * dwarf2/index-write.c (write_debug_names): Update.
7529 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7530 * dtrace-probe.c (dtrace_process_dof): Update.
7531 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7532 (process_one_symbol): Update.
7533 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7534 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7535 (coff_read_enum_type): Update.
7536 * cli/cli-cmds.c (edit_command, list_command): Update.
7537 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7538 * breakpoint.c (create_overlay_event_breakpoint)
7539 (create_longjmp_master_breakpoint)
7540 (create_std_terminate_master_breakpoint)
7541 (create_exception_master_breakpoint, get_sal_arch): Update.
7542 * block.c (block_gdbarch): Update.
7543 * annotate.c (annotate_source_line): Update.
7544
0743fc83
TT
75452020-04-17 Tom Tromey <tromey@adacore.com>
7546
7547 * auto-load.c (show_auto_load_cmd): Remove.
7548 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7549 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7550 (maintenance_print_arc_command): Remove.
7551 * tui/tui-win.c (tui_command): Remove.
7552 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7553 * tui/tui-layout.c (tui_layout_command): Remove.
7554 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7555 * python/python.c (user_set_python, user_show_python): Remove.
7556 (_initialize_python): Use add_basic_prefix_cmd,
7557 add_show_prefix_cmd.
7558 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7559 (install_gdb_commands): Use add_basic_prefix_cmd,
7560 add_show_prefix_cmd.
7561 (info_guile_command): Remove.
7562 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7563 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7564 add_show_prefix_cmd.
7565 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7566 Remove do_set and do_show parameters.
7567 * cli/cli-style.c (set_style, show_style): Remove.
7568 (_initialize_cli_style): Use add_basic_prefix_cmd,
7569 add_show_prefix_cmd.
7570 (cli_style_option::add_setshow_commands): Remove do_set and
7571 do_show parameters.
7572 (cli_style_option::add_setshow_commands): Use
7573 add_basic_prefix_cmd, add_show_prefix_cmd.
7574 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7575 (set_style_name): Remove.
7576 * cli/cli-dump.c (dump_command, append_command): Remove.
7577 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7578 (tekhex_dump_command, binary_dump_command)
7579 (binary_append_command): Remove.
7580 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7581 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7582 (init_w32_command_list): Remove; move into ...
7583 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7584 * valprint.c (set_print, show_print, set_print_raw)
7585 (show_print_raw): Remove.
7586 (_initialize_valprint): Use add_basic_prefix_cmd,
7587 add_show_prefix_cmd.
7588 * typeprint.c (set_print_type, show_print_type): Remove.
7589 (_initialize_typeprint): Use add_basic_prefix_cmd,
7590 add_show_prefix_cmd.
7591 * record.c (set_record_command, show_record_command): Remove.
7592 (_initialize_record): Use add_basic_prefix_cmd,
7593 add_show_prefix_cmd.
7594 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7595 add_show_prefix_cmd.
7596 (info_command, show_command, set_debug, show_debug): Remove.
7597 * top.h (set_history, show_history): Don't declare.
7598 * top.c (set_history, show_history): Remove.
7599 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7600 (unset_tdesc_cmd): Remove.
7601 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7602 add_show_prefix_cmd.
7603 * symtab.c (info_module_command): Remove.
7604 (_initialize_symtab): Use add_basic_prefix_cmd.
7605 * symfile.c (overlay_command): Remove.
7606 (_initialize_symfile): Use add_basic_prefix_cmd.
7607 * sparc64-tdep.c (info_adi_command): Remove.
7608 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7609 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7610 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7611 add_show_prefix_cmd.
7612 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7613 (_initialize_serial): Use add_basic_prefix_cmd,
7614 add_show_prefix_cmd.
7615 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7616 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7617 add_show_prefix_cmd.
7618 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7619 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7620 add_show_prefix_cmd.
7621 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7622 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7623 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7624 add_show_prefix_cmd.
7625 * remote.c (remote_command, set_remote_cmd): Remove.
7626 (_initialize_remote): Use add_basic_prefix_cmd.
7627 * record-full.c (set_record_full_command)
7628 (show_record_full_command): Remove.
7629 (_initialize_record_full): Use add_basic_prefix_cmd,
7630 add_show_prefix_cmd.
7631 * record-btrace.c (cmd_set_record_btrace)
7632 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7633 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7634 (cmd_show_record_btrace_pt): Remove.
7635 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7636 add_show_prefix_cmd.
7637 * ravenscar-thread.c (set_ravenscar_command)
7638 (show_ravenscar_command): Remove.
7639 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7640 add_show_prefix_cmd.
7641 * mips-tdep.c (show_mips_command, set_mips_command)
7642 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7643 add_show_prefix_cmd.
7644 * maint.c (maintenance_command, maintenance_info_command)
7645 (maintenance_check_command, maintenance_print_command)
7646 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7647 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7648 add_show_prefix_cmd.
7649 (show_per_command_cmd): Remove.
7650 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7651 Remove.
7652 (maintenance_show_test_settings_cmd): Remove.
7653 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7654 add_show_prefix_cmd.
7655 * maint-test-options.c (maintenance_test_options_command):
7656 Remove.
7657 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7658 * macrocmd.c (macro_command): Remove
7659 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7660 * language.c (set_check, show_check): Remove.
7661 (_initialize_language): Use add_basic_prefix_cmd,
7662 add_show_prefix_cmd.
7663 * infcmd.c (unset_command): Remove.
7664 (_initialize_infcmd): Use add_basic_prefix_cmd.
7665 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7666 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7667 add_show_prefix_cmd.
7668 * go32-nat.c (go32_info_dos_command): Remove.
7669 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7670 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7671 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7672 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7673 (_initialize_frame): Use add_basic_prefix_cmd,
7674 add_show_prefix_cmd.
7675 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7676 (_initialize_dcache): Use add_basic_prefix_cmd,
7677 add_show_prefix_cmd.
7678 * cp-support.c (maint_cplus_command): Remove.
7679 (_initialize_cp_support): Use add_basic_prefix_cmd.
7680 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7681 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7682 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7683 add_basic_prefix_cmd, add_show_prefix_cmd.
7684 * breakpoint.c (save_command): Remove.
7685 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7686 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7687 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7688 add_show_prefix_cmd.
7689 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7690 (set_ada_command, show_ada_command): Remove.
7691 (_initialize_ada_language): Use add_basic_prefix_cmd,
7692 add_show_prefix_cmd.
7693 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7694
3557f442
KR
76952020-04-16 Kamil Rytarowski <n54@gmx.com>
7696
7697 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7698 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7699
16197208
SM
77002020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7701
7702 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7703 warning messages.
7704
00ac85d3
SM
77052020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7706
7707 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7708 import table is not at beginning of .idata section.
7709
381ce63f
PA
77102020-04-16 Pedro Alves <palves@redhat.com>
7711
7712 * inferior.c (delete_inferior): Use delete operator directly
7713 instead of delete_program_space.
7714 * progspace.c (add_program_space): New, factored out from
7715 program_space::program_space.
7716 (remove_program_space): New, factored out from
7717 delete_program_space.
7718 (program_space::program_space): Remove intro comment. Rewrite.
7719 (program_space::~program_space): Remove intro comment. Call
7720 remove_program_space.
7721 (delete_program_space): Delete.
7722 * progspace.h (program_space::program_space): Make explicit. Move
7723 intro comment here, adjusted.
7724 (program_space::~program_space): Move intro comment here,
7725 adjusted.
7726 (delete_program_space): Remove.
7727
a010605f
TT
77282020-04-16 Tom Tromey <tromey@adacore.com>
7729
7730 * windows-nat.c (windows_nat::handle_access_violation): New
7731 function.
7732 * nat/windows-nat.h (handle_access_violation): Declare.
7733 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7734 windows-nat.c. Call handle_access_violation.
7735
efba5c23
TV
77362020-04-16 Tom de Vries <tdevries@suse.de>
7737
7738 PR symtab/25791
7739 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7740 CUs without psymtab.
7741
97ed802d
KB
77422020-04-16 Kevin Buettner <kevinb@redhat.com>
7743
7744 * python/python.c (do_start_initialization): Don't call
7745 PyEval_InitThreads for Python 3.9 and beyond.
7746
c7d64809
KR
77472020-04-15 Kamil Rytarowski <n54@gmx.com>
7748
7749 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7750 thread functions.
7751 (obsd_nat_target::wait): Likewise.
7752
ce127a96
TT
77532020-04-15 Tom Tromey <tromey@adacore.com>
7754
7755 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7756 (DEBUG_EXCEPT): Use debug_printf.
7757
99f1bc6a
AB
77582020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7759
7760 * completer.c (class completion_tracker::completion_hash_entry)
7761 <hash_name>: New member function.
7762 (completion_tracker::discard_completions): New callback to hash a
7763 completion_hash_entry, pass this to htab_create_alloc.
7764
a0e9b532
JT
77652016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7766
7767 * windows-nat.c (windows_make_so): Warn rather than stopping with
7768 an error if realpath() fails.
7769
06ca5dd4
KR
77702020-04-14 Kamil Rytarowski <n54@gmx.com>
7771
7772 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7773 (nbsd_nat_target::info_proc): Add do_status.
7774
194d088f
TV
77752020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7776 Tom de Vries <tdevries@suse.de>
7777
7778 PR symtab/25718
7779 * psympriv.h (struct partial_symtab::read_symtab)
7780 (struct partial_symtab::expand_psymtab)
7781 (struct partial_symtab::read_dependencies): Update comments.
7782 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7783 read_symtab for includer.
7784 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7785 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7786 (struct dwarf2_include_psymtab::m_readin): Remove.
7787 (struct dwarf2_include_psymtab::includer): New member function.
7788 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7789
c1a66c06
TV
77902020-04-14 Tom de Vries <tdevries@suse.de>
7791
7792 PR symtab/25720
7793 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7794 with NULL symbol_matcher and lookup_name.
7795 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7796 and lookup_name.
7797 * dwarf2/read.c (dw2_expand_symtabs_matching)
7798 (dw2_debug_names_expand_symtabs_matching): Same.
7799 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7800 Make lookup_name a pointer. Update comment.
7801 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7802 lookup_name being a pointer.
7803 * symfile.c (expand_symtabs_matching): Same.
7804 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7805 * linespec.c (iterate_over_all_matching_symtabs): Same.
7806
400b5eca
TT
78072020-04-13 Tom Tromey <tom@tromey.com>
7808
7809 * run-on-main-thread.c: Update include.
7810 * unittests/main-thread-selftests.c: Update include.
7811 * tui/tui-win.c: Update include.
7812 * tui/tui-io.c: Update include.
7813 * tui/tui-interp.c: Update include.
7814 * tui/tui-hooks.c: Update include.
7815 * top.h: Update include.
7816 * top.c: Update include.
7817 * ser-base.c: Update include.
7818 * remote.c: Update include.
7819 * remote-notif.c: Update include.
7820 * remote-fileio.c: Update include.
7821 * record-full.c: Update include.
7822 * record-btrace.c: Update include.
7823 * python/python.c: Update include.
7824 * posix-hdep.c: Update include.
7825 * mingw-hdep.c: Update include.
7826 * mi/mi-main.c: Update include.
7827 * mi/mi-interp.c: Update include.
7828 * main.c: Update include.
7829 * linux-nat.c: Update include.
7830 * interps.c: Update include.
7831 * infrun.c: Update include.
7832 * inf-loop.c: Update include.
7833 * event-top.c: Update include.
7834 * event-loop.c: Move to ../gdbsupport/.
7835 * event-loop.h: Move to ../gdbsupport/.
7836 * async-event.h: Update include.
7837 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7838
93b54c8e
TT
78392020-04-13 Tom Tromey <tom@tromey.com>
7840
7841 * tui/tui-win.c: Include async-event.h.
7842 * remote.c: Include async-event.h.
7843 * remote-notif.c: Include async-event.h.
7844 * record-full.c: Include async-event.h.
7845 * record-btrace.c: Include async-event.h.
7846 * infrun.c: Include async-event.h.
7847 * event-top.c: Include async-event.h.
7848 * event-loop.h: Move some declarations to async-event.h.
7849 * event-loop.c: Don't include ser-event.h or top.h. Move some
7850 code to async-event.c.
7851 * async-event.h: New file.
7852 * async-event.c: New file.
7853 * Makefile.in (COMMON_SFILES): Add async-event.c.
7854 (HFILES_NO_SRCDIR): Add async-event.h.
7855
c1cd3163
TT
78562020-04-13 Tom Tromey <tom@tromey.com>
7857
7858 * utils.c (flush_streams): New function.
7859 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7860
29f2bf4f
TT
78612020-04-13 Tom Tromey <tom@tromey.com>
7862
7863 * event-loop.c (handle_file_event): Use warning, not
7864 printf_unfiltered.
7865
98029d02
TT
78662020-04-13 Tom Tromey <tom@tromey.com>
7867
7868 * event-loop.c: Include <chrono>.
7869
06cc9596
TT
78702020-04-13 Tom Tromey <tom@tromey.com>
7871
7872 * gdb_select.h: Move to ../gdbsupport/.
7873 * event-loop.c: Update include path.
7874 * top.c: Update include path.
7875 * ser-base.c: Update include path.
7876 * ui-file.c: Update include path.
7877 * ser-tcp.c: Update include path.
7878 * guile/scm-ports.c: Update include path.
7879 * posix-hdep.c: Update include path.
7880 * ser-unix.c: Update include path.
7881 * gdb_usleep.c: Update include path.
7882 * mingw-hdep.c: Update include path.
7883 * inflow.c: Update include path.
7884 * infrun.c: Update include path.
7885 * event-top.c: Update include path.
7886
8ae8e197
TT
78872020-04-13 Tom Tromey <tom@tromey.com>
7888
7889 * configure: Rebuild.
7890 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7891
58cf28e8
TT
78922020-04-13 Tom Tromey <tom@tromey.com>
7893
7894 * event-loop.h (start_event_loop): Don't declare.
7895 * event-loop.c (start_event_loop): Move...
7896 * main.c (start_event_loop): ...here. Now static.
7897
b7f999ae
SDJ
78982020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7899
7900 * MAINTAINERS: Update my email address.
7901
1085dfd4
KR
79022020-04-12 Kamil Rytarowski <n54@gmx.com>
7903
7904 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7905 IP_ALL.
7906
49d1d1f5
KR
79072020-04-12 Kamil Rytarowski <n54@gmx.com>
7908
7909 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7910 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7911
b4848d2a
KR
79122020-04-12 Kamil Rytarowski <n54@gmx.com>
7913
7914 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7915 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7916
51c133d5
KR
79172020-04-12 Kamil Rytarowski <n54@gmx.com>
7918
7919 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7920
54b8cbd0
KR
79212020-04-11 Kamil Rytarowski <n54@gmx.com>
7922
7923 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7924 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7925 (nbsd_nat_target::info_proc): New functions.
7926 * nbsd-nat.c (kinfo_get_vmmap): New function.
7927 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7928 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7929 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7930 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7931 functions.
7932 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7933 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7934 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7935 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7936 (KINFO_VME_FLAG_GROWS_DOWN): New.
7937
cf83625d
AS
79382020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7939
7940 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7941 bit shift.
7942
0c4311ab
TT
79432020-04-10 Tom Tromey <tromey@adacore.com>
7944
7945 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7946
3e65b3e9
TT
79472020-04-10 Tom Tromey <tromey@adacore.com>
7948
7949 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7950 separate debug files.
7951
13302e95
HD
79522020-04-10 Hannes Domani <ssbssa@yahoo.de>
7953
7954 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7955 Move to...
7956 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7957 ... here.
7958 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7959 Check for STATUS_WX86_BREAKPOINT.
7960 (windows_nat_target::wait): Same.
7961
bdfc1e8a
TV
79622020-04-10 Tom de Vries <tdevries@suse.de>
7963
7964 PR cli/25808
7965 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7966
f4460aec
SM
79672020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7968
7969 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7970 (Write After Approval): Remove Tom de Vries.
7971
a25198bb
BE
79722020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7973
7974 revert partially:
7975 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7976
aac66a4c
SM
7977 * buildsym.c (record_line): Fix undefined behavior and preserve
7978 lines at eof.
a25198bb 7979
206c98a6
KR
79802020-04-09 Kamil Rytarowski <n54@gmx.com>
7981
7982 * auxv.h (svr4_auxv_parse): New.
7983 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7984 and generic_auxv_parse.
7985 (svr4_auxv_parse): Add.
7986 * obsd-tdep.c: Include "auxv.h".
7987 (obsd_auxv_parse): Remove.
7988 (obsd_init_abi): Remove comment.
7989 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7990 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7991 * nbsd-tdep.c: Include "auxv.h".
7992 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7993
71fbdbaf
TT
79942020-04-08 Tom Tromey <tromey@adacore.com>
7995
7996 * nat/windows-nat.h (last_wait_event): Don't declare.
7997 (wait_for_debug_event): Update comment.
7998 * nat/windows-nat.c (last_wait_event): Now static.
7999
2c1d95e8
TT
80002020-04-08 Tom Tromey <tromey@adacore.com>
8001
8002 * windows-nat.c (wait_for_debug_event): Move to
8003 nat/windows-nat.c.
8004 * nat/windows-nat.h (wait_for_debug_event): Declare.
8005 * nat/windows-nat.c (wait_for_debug_event): Move from
8006 windows-nat.c. No longer static.
8007
d2977bc4
TT
80082020-04-08 Tom Tromey <tromey@adacore.com>
8009
8010 * windows-nat.c (get_windows_debug_event): Use
8011 fetch_pending_stop.
8012 * nat/windows-nat.h (fetch_pending_stop): Declare.
8013 * nat/windows-nat.c (fetch_pending_stop): New function.
8014
e758e19c
TT
80152020-04-08 Tom Tromey <tromey@adacore.com>
8016
8017 * windows-nat.c (windows_continue): Use matching_pending_stop and
8018 continue_last_debug_event.
8019 * nat/windows-nat.h (matching_pending_stop)
8020 (continue_last_debug_event): Declare.
8021 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8022 (matching_pending_stop, continue_last_debug_event): New
8023 functions.
8024
8d30e395
TT
80252020-04-08 Tom Tromey <tromey@adacore.com>
8026
8027 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8028 (handle_exception_result): Move to nat/windows-nat.h.
8029 (DEBUG_EXCEPTION_SIMPLE): Remove.
8030 (windows_nat::handle_ms_vc_exception): New function.
8031 (handle_exception): Move to nat/windows-nat.c.
8032 (get_windows_debug_event): Update.
8033 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8034 nat/windows-nat.c.
8035 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8036 (handle_exception_result): Move from windows-nat.c.
8037 (handle_exception): Declare.
8038 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8039 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8040 windows-nat.c.
8041
29de418d
TT
80422020-04-08 Tom Tromey <tromey@adacore.com>
8043
8044 * windows-nat.c (exception_count, event_count): Remove.
8045 (handle_exception, get_windows_debug_event)
8046 (do_initial_windows_stuff): Update.
8047
a816ba18
TT
80482020-04-08 Tom Tromey <tromey@adacore.com>
8049
8050 * windows-nat.c (windows_nat::handle_load_dll)
8051 (windows_nat::handle_unload_dll): Rename. No longer static.
8052 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8053 Declare.
8054
a00caa12
TT
80552020-04-08 Tom Tromey <tromey@adacore.com>
8056
8057 * complaints.h (stop_whining): Declare at top-level.
8058 (complaint): Don't declare stop_whining.
8059
d41b524f
TT
80602020-04-08 Tom Tromey <tromey@adacore.com>
8061
8062 * windows-nat.c (windows_nat::handle_output_debug_string):
8063 Rename. No longer static.
8064 * nat/windows-nat.h (handle_output_debug_string): Declare.
8065
3c76026d
TT
80662020-04-08 Tom Tromey <tromey@adacore.com>
8067
8068 * windows-nat.c (current_process_handle, current_process_id)
8069 (main_thread_id, last_sig, current_event, last_wait_event)
8070 (current_windows_thread, desired_stop_thread_id, pending_stops)
8071 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8072 (display_selectors, fake_create_process)
8073 (get_windows_debug_event): Update.
8074 * nat/windows-nat.h (current_process_handle, current_process_id)
8075 (main_thread_id, last_sig, current_event, last_wait_event)
8076 (current_windows_thread, desired_stop_thread_id, pending_stops)
8077 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8078 * nat/windows-nat.c (current_process_handle, current_process_id)
8079 (main_thread_id, last_sig, current_event, last_wait_event)
8080 (current_windows_thread, desired_stop_thread_id, pending_stops)
8081 (siginfo_er): New globals. Move from windows-nat.c.
8082
9d8679cc
TT
80832020-04-08 Tom Tromey <tromey@adacore.com>
8084
8085 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8086 (handle_load_dll): Update.
8087 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8088
28688adf
TT
80892020-04-08 Tom Tromey <tromey@adacore.com>
8090
8091 * windows-nat.c (enum thread_disposition_type): Move to
8092 nat/windows-nat.h.
8093 (windows_nat::thread_rec): Rename from thread_rec. No longer
8094 static.
8095 (windows_add_thread, windows_nat_target::fetch_registers)
8096 (windows_nat_target::store_registers, handle_exception)
8097 (windows_nat_target::resume, get_windows_debug_event)
8098 (windows_nat_target::get_tib_address)
8099 (windows_nat_target::thread_name)
8100 (windows_nat_target::thread_alive): Update.
8101 * nat/windows-nat.h (enum thread_disposition_type): Move from
8102 windows-nat.c.
8103 (thread_rec): Declare.
8104
4834dad0
TT
81052020-04-08 Tom Tromey <tromey@adacore.com>
8106
8107 * windows-nat.c: Add "using namespace".
8108 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8109 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8110
65bafd5b
TT
81112020-04-08 Tom Tromey <tromey@adacore.com>
8112
8113 * nat/windows-nat.h (struct windows_thread_info): Declare
8114 destructor.
8115 * nat/windows-nat.c (~windows_thread_info): New.
8116
0a4afda3
TT
81172020-04-08 Tom Tromey <tromey@adacore.com>
8118
8119 PR gdb/22992
8120 * windows-nat.c (current_event): Update comment.
8121 (last_wait_event, desired_stop_thread_id): New globals.
8122 (struct pending_stop): New.
8123 (pending_stops): New global.
8124 (windows_nat_target) <stopped_by_sw_breakpoint>
8125 <supports_stopped_by_sw_breakpoint>: New methods.
8126 (windows_fetch_one_register): Add assertions. Adjust PC.
8127 (windows_continue): Handle pending stops. Suspend other threads
8128 when stepping. Use last_wait_event
8129 (wait_for_debug_event): New function.
8130 (get_windows_debug_event): Use wait_for_debug_event. Handle
8131 pending stops. Queue spurious stops.
8132 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8133 (windows_nat_target::kill): Use wait_for_debug_event.
8134 * nat/windows-nat.h (struct windows_thread_info)
8135 <stopped_at_software_breakpoint>: New field.
8136 * nat/windows-nat.c (windows_thread_info::resume): Clear
8137 stopped_at_software_breakpoint.
8138
8e61ebec
TT
81392020-04-08 Tom Tromey <tromey@adacore.com>
8140
8141 * windows-nat.c (enum thread_disposition_type): New.
8142 (thread_rec): Replace "get_context" parameter with "disposition";
8143 change type.
8144 (windows_add_thread, windows_nat_target::fetch_registers)
8145 (windows_nat_target::store_registers, handle_exception)
8146 (windows_nat_target::resume, get_windows_debug_event)
8147 (windows_nat_target::get_tib_address)
8148 (windows_nat_target::thread_name)
8149 (windows_nat_target::thread_alive): Update.
8150
98a03287
TT
81512020-04-08 Tom Tromey <tromey@adacore.com>
8152
8153 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8154 (windows_continue): Use windows_continue::resume.
8155 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8156 resume>: Declare new methods.
8157 * nat/windows-nat.c: New file.
8158 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8159
7c7411bc
TT
81602020-04-08 Tom Tromey <tromey@adacore.com>
8161
8162 * windows-nat.c (windows_add_thread, windows_delete_thread)
8163 (windows_nat_target::fetch_registers)
8164 (windows_nat_target::store_registers, fake_create_process)
8165 (windows_nat_target::resume, windows_nat_target::resume)
8166 (get_windows_debug_event, windows_nat_target::wait)
8167 (windows_nat_target::pid_to_str)
8168 (windows_nat_target::get_tib_address)
8169 (windows_nat_target::get_ada_task_ptid)
8170 (windows_nat_target::thread_name)
8171 (windows_nat_target::thread_alive): Use lwp, not tid.
8172
2950fdf7
TT
81732020-04-08 Tom Tromey <tromey@adacore.com>
8174
8175 * windows-nat.c (handle_exception)
8176 (windows_nat_target::thread_name): Update.
8177 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8178 <name>: Now unique_xmalloc_ptr.
8179
62fe396b
TT
81802020-04-08 Tom Tromey <tromey@adacore.com>
8181
8182 * windows-nat.c (thread_rec)
8183 (windows_nat_target::fetch_registers): Update.
8184 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8185 Update comment.
8186 <debug_registers_changed, reload_context>: Now bool.
8187
e9534bd2
TT
81882020-04-08 Tom Tromey <tromey@adacore.com>
8189
8190 * windows-nat.c (windows_add_thread): Use new.
8191 (windows_init_thread_list, windows_delete_thread): Use delete.
8192 (get_windows_debug_event): Update.
8193 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8194 destructor, and initializers.
8195
ae1f8880
TT
81962020-04-08 Tom Tromey <tromey@adacore.com>
8197
8198 * windows-nat.c (struct windows_thread_info): Remove.
8199 * nat/windows-nat.h: New file.
8200
55a1e039
TT
82012020-04-08 Tom Tromey <tromey@adacore.com>
8202
8203 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8204 (thread_rec, windows_add_thread, windows_delete_thread)
8205 (windows_continue): Update.
8206
93366324
TT
82072020-04-08 Tom Tromey <tromey@adacore.com>
8208
8209 * windows-nat.c (struct windows_thread_info): Remove typedef.
8210 (thread_head): Remove.
8211 (thread_list): New global.
8212 (thread_rec, windows_add_thread, windows_init_thread_list)
8213 (windows_delete_thread, windows_continue): Update.
8214
0f2265e2
SM
82152020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8216
8217 * windows-tdep.h (windows_init_abi): Add comment.
8218 (cygwin_init_abi): New declaration.
8219 * windows-tdep.c: Split signal enumeration in two, one for
8220 Windows and one for Cygwin.
8221 (windows_gdb_signal_to_target): Only deal with signal of the
8222 Windows OS ABI.
8223 (cygwin_gdb_signal_to_target): New function.
8224 (windows_init_abi): Rename to windows_init_abi_common, don't set
8225 gdb_signal_to_target gdbarch method. Add new new function with
8226 this name.
8227 (cygwin_init_abi): New function.
8228 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8229 comment. Don't call windows_init_abi.
8230 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8231 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8232 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8233 i386_windows_init_abi_common, don't call windows_init_abi. Add
8234 a new function of this name.
8235 (i386_cygwin_init_abi): New function.
8236 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8237 OS ABI Cygwin.
8238
3810f182
SM
82392020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8240
8241 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8242 parameter.c.
8243 (dwarf2_read_gdb_index): Update.
8244
063f8e80
KR
82452020-04-07 Kamil Rytarowski <n54@gmx.com>
8246
8247 * nbsd-tdep.c: Include "objfiles.h".
8248 (nbsd_skip_solib_resolver): New.
8249 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8250
85a9510c 82512020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8252
8253 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8254 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8255 with DW_LLE_base_addressx are being emitted in DWARFv5.
8256 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8257 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8258 unsigned integer.
8259
9fc3eaae 82602020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8261
8262 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8263 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8264 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8265 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8266 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8267 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8268 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8269
8270
41144253 82712020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8272
8273 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8274 (read_loclist_index): New function definition.
8275 (lookup_loclist_base): New function definition.
8276 (read_loclist_header): New function definition.
8277 (dwarf2_cu): Add loclist_base and loclist_header field.
8278 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8279 (read_full_die_1): Read the value of DW_AT_loclists_base.
8280 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8281 (read_attribute_value): Handle DW_FORM_loclistx.
8282 (skip_one_die): Handle DW_FORM_loclistx.
8283 (loclist_header): New structure declaration.
8284 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8285
9f4e76a4
SM
82862020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8287
8288 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8289 constructor. Remove `addr` parameter from other constructor and
8290 add `per_cu` parameter.
8291 * dwarf2/read.c (create_partial_symtab): Update.
8292
25c11aca
TV
82932020-04-07 Tom de Vries <tdevries@suse.de>
8294
8295 PR symtab/25796
8296 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8297 (partial_die_info::fixup): Inherit has_const_value.
8298
5707e24b
TV
82992020-04-07 Tom de Vries <tdevries@suse.de>
8300
8301 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8302 symbols without address.
8303
05f00e22
KR
83042020-04-06 Kamil Rytarowski <n54@gmx.com>
8305
8306 * nbsd-nat.h (struct thread_info): Add forward declaration.
8307 (nbsd_nat_target::thread_alive): Add.
8308 (nbsd_nat_target::thread_name): Likewise.
8309 (nbsd_nat_target::update_thread_list): Likewise.
8310 (update_thread_list::post_attach): Likewise.
8311 (post_attach::pid_to_str): Likewise.
8312 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8313 (nbsd_thread_lister): Add.
8314 (nbsd_nat_target::thread_alive): Likewise.
8315 (nbsd_nat_target::thread_name): Likewise.
8316 (nbsd_add_threads): Likewise.
8317 (update_thread_list::post_attach): Likewise.
8318 (nbsd_nat_target::update_thread_list): Likewise.
8319 (post_attach::pid_to_str): Likewise.
8320
6ee448cc
TT
83212020-04-06 Tom Tromey <tromey@adacore.com>
8322
8323 * ada-valprint.c (print_variant_part): Extract the variant field.
8324 (print_field_values): Use the field as the outer value when
8325 recursing.
8326
dea34e8c
TT
83272020-04-06 Tom Tromey <tromey@adacore.com>
8328
8329 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8330 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8331 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8332 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8333 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8334
93689ce9
TT
83352020-04-06 Tom Tromey <tromey@adacore.com>
8336
8337 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8338 TYPE_CODE_ERROR.
8339
79743962
KR
83402020-04-06 Kamil Rytarowski <n54@gmx.com>
8341
8342 * nbsd-tdep.c: Include "gdbarch.h".
8343 Define enum with NetBSD signal numbers.
8344 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8345 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8346 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8347 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8348 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8349 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8350 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8351 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8352 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8353 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8354 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8355 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8356
9e7c9a03
HD
83572020-04-03 Hannes Domani <ssbssa@yahoo.de>
8358
8359 PR gdb/25325
8360 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8361
d9e49b61
TT
83622020-04-03 Tom Tromey <tromey@adacore.com>
8363
8364 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8365 Read constant block.
8366
e0fc5c3f
SM
83672020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8368
8369 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8370 (gdb_bfd_get_full_section_contents): New declaration.
8371 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8372 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8373 gdb_bfd_get_full_section_contents.
8374
e2ff18a0
SM
83752020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8376
8377 * exec.c (build_section_table): Replace internal_error with
8378 gdb_assert.
8379 (section_table_xfer_memory_partial): Likewise.
8380 * mdebugread.c (parse_partial_symbols): Likewise.
8381 * psymtab.c (lookup_partial_symbol): Likewise.
8382 * utils.c (wrap_here): Likewise.
8383
0830d301
TT
83842020-04-02 Tom Tromey <tromey@adacore.com>
8385
8386 * f-lang.c (build_fortran_types): Use arch_type to initialize
8387 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8388
e7da7f8f
TT
83892020-04-02 Tom Tromey <tromey@adacore.com>
8390
8391 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8392 of attributes.
8393
c90d28ac
AB
83942020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8395 Bernd Edlinger <bernd.edlinger@hotmail.de>
8396 Tom Tromey <tromey@adacore.com>
8397
8398 * buildsym.c (buildsym_compunit::record_line): Remove
8399 deduplication code.
8400
1aa98955
TV
84012020-04-02 Tom de Vries <tdevries@suse.de>
8402
8403 PR ada/24671
8404 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8405
d3214198
TV
84062020-04-02 Tom de Vries <tdevries@suse.de>
8407
8408 * dwarf2/read.c (dwarf2_gdb_index_functions,
8409 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8410 NULL.
8411 * psymtab.c (psym_lookup_global_symbol_language): New function.
8412 (psym_functions): Init psym_lookup_global_symbol_language with
8413 psym_lookup_global_symbol_language.
8414 * symfile-debug.c (debug_sym_quick_functions): Init
8415 lookup_global_symbol_language with NULL.
8416 * symfile.c (set_initial_language): Remove fixme comment.
8417 * symfile.h (struct quick_symbol_functions): Add
8418 lookup_global_symbol_language.
8419 * symtab.c (find_quick_global_symbol_language): New function.
8420 (find_main_name): Use find_quick_global_symbol_language.
8421
2836752f
SM
84222020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8423
8424 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8425
64dc2d4b
BE
84262020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8427
8428 * buildsym.c (record_line): Fix undefined behavior and preserve
8429 lines at eof.
8430
bbe3dc41
BE
84312020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8432
8433 * buildsym.c (record_line): Fix the resizing condition.
8434
6b4a335b
TT
84352020-04-01 Tom Tromey <tom@tromey.com>
8436
8437 * value.h (value_literal_complex): Add comment.
8438 * valops.c (value_literal_complex): Refer to value.h.
8439
3638a098
TT
84402020-04-01 Tom Tromey <tom@tromey.com>
8441
8442 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8443 (scalar_type): New rule, from typebase.
8444 (typebase): Use scalar_type. Recognize complex types.
8445 (field_name): Handle FLOAT_KEYWORD.
8446 (ident_tokens): Add _Complex and __complex__.
8447
c34e8714
TT
84482020-04-01 Tom Tromey <tom@tromey.com>
8449
8450 PR exp/25299:
8451 * valarith.c (promotion_type, complex_binop): New functions.
8452 (scalar_binop): Handle complex numbers. Use promotion_type.
8453 (value_pos, value_neg, value_complement): Handle complex numbers.
8454
fa649bb7
TT
84552020-04-01 Tom Tromey <tom@tromey.com>
8456
8457 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8458 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8459 (parse_number): Handle complex numbers.
8460
981c08ce
TT
84612020-04-01 Tom Tromey <tom@tromey.com>
8462
8463 * c-valprint.c (c_decorations): Change complex suffix to "i".
8464
4c99290d
TT
84652020-04-01 Tom Tromey <tom@tromey.com>
8466
8467 * valprint.c (generic_value_print_complex): Use accessors.
8468 * value.h (value_real_part, value_imaginary_part): Declare.
8469 * valops.c (value_real_part, value_imaginary_part): New
8470 functions.
8471 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8472
5b930b45
TT
84732020-04-01 Tom Tromey <tom@tromey.com>
8474
8475 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8476 (read_range_type): Update.
8477 * mdebugread.c (basic_type): Update.
8478 * go-lang.c (build_go_types): Use init_complex_type.
8479 * gdbtypes.h (struct main_type) <complex_type>: New member.
8480 (init_complex_type): Update.
8481 (arch_complex_type): Don't declare.
8482 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8483 Make name if none given. Use alloc_type_copy. Look for cached
8484 complex type.
8485 (arch_complex_type): Remove.
8486 (gdbtypes_post_init): Use init_complex_type.
8487 * f-lang.c (build_fortran_types): Use init_complex_type.
8488 * dwarf2/read.c (read_base_type): Update.
8489 * d-lang.c (build_d_types): Use init_complex_type.
8490 * ctfread.c (read_base_type): Update.
8491
53cccef1
TBA
84922020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8493
8494 * infrun.c (stop_all_threads): Update assertion, plus when
8495 stopping threads, take into account that we might be trying
8496 to stop an all-stop target.
8497 (stop_waiting): Call 'stop_all_threads' if there exists a
8498 non-stop target.
8499
a0714d30
TBA
85002020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8501
8502 * target.h (exists_non_stop_target): New function declaration.
8503 * target.c (exists_non_stop_target): New function.
8504
60e22c1e
HD
85052020-04-01 Hannes Domani <ssbssa@yahoo.de>
8506
8507 PR gdb/24789
8508 * eval.c (is_integral_or_integral_reference): New function.
8509 (evaluate_subexp_standard): Allow integer references in
8510 pointer arithmetic.
8511
e139a727
TBA
85122020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8513
8514 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8515 check for no ptid in the stop reply when the target is non-stop.
8516
e0802d59
TT
85172020-04-01 Tom Tromey <tromey@adacore.com>
8518
8519 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8520 "name" parameter to rvalue reference. Initialize m_name_holder.
8521 <lookup_name_info>: New overloads.
8522 <name>: Return gdb::string_view.
8523 <c_str>: New method.
8524 <make_ignore_params>: Update.
8525 <search_name_hash>: Update.
8526 <language_lookup_name>: Return const char *.
8527 <m_name>: Change type.
8528 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8529 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8530 (lookup_name_info::match_any): Update.
8531 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8532 Update.
8533 * minsyms.c (linkage_name_str): Update.
8534 * language.c (default_symbol_name_matcher): Update.
8535 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8536 Update.
8537 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8538 (ada_lookup_name_info::ada_lookup_name_info): Update.
8539 (literal_symbol_name_matcher): Update.
8540
8c072cb6
TT
85412020-04-01 Tom Tromey <tromey@adacore.com>
8542
8543 * psymtab.c (psymtab_search_name): Remove function.
8544 (psym_lookup_symbol): Create search name and lookup name here.
8545 (lookup_partial_symbol): Remove "name" parameter; add
8546 lookup_name.
8547 (psym_expand_symtabs_for_function): Update.
8548
6f29a534
TT
85492020-03-31 Joel Jones <joelkevinjones@gmail.com>
8550
8551 PR tui/25597:
8552 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8553
af62665e
TT
85542020-03-31 Tom Tromey <tromey@adacore.com>
8555
8556 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8557 memcpy.
8558
d1a89da5
NC
85592020-03-30 Nelson Chu <nelson.chu@sifive.com>
8560
8561 * features/riscv/32bit-csr.xml: Regenerated.
8562 * features/riscv/64bit-csr.xml: Regenerated.
8563
d8af9068
TT
85642020-03-30 Tom Tromey <tromey@adacore.com>
8565
8566 * ada-valprint.c (print_variant_part): Update.
8567 * ada-lang.h (ada_which_variant_applies): Update.
8568 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8569 outer_valaddr parameters; replace with "outer" value parameter.
8570 (to_fixed_variant_branch_type): Update.
8571
227c0bf4
PFC
85722020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8573
8574 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8575 <list>. Remove inclusion of observable.h.
8576 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8577 (struct arch_lwp_info): New struct.
8578 (class ppc_linux_dreg_interface): New class.
8579 (struct ppc_linux_process_info): New struct.
8580 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8581 <low_new_clone, low_forget_process, low_prepare_to_resume>
8582 <copy_thread_dreg_state, mark_thread_stale>
8583 <mark_debug_registers_changed, register_hw_breakpoint>
8584 <clear_hw_breakpoint, register_wp, clear_wp>
8585 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8586 <num_memory_accesses, get_trigger_type>
8587 <create_watchpoint_request, hwdebug_point_cmp>
8588 <init_arch_lwp_info, get_arch_lwp_info>
8589 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8590 methods.
8591 <struct ptid_hash>: New inner struct.
8592 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8593 members.
8594 (saved_dabr_value, hwdebug_info, max_slots_number)
8595 (struct hw_break_tuple, struct thread_points, ppc_threads)
8596 (have_ptrace_hwdebug_interface)
8597 (hwdebug_find_thread_points_by_tid)
8598 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8599 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8600 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8601 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8602 use m_dreg_interface.
8603 (hwdebug_point_cmp): Change to...
8604 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8605 reference arguments instead of pointers.
8606 (ppc_linux_nat_target::ranged_break_num_registers): Use
8607 m_dreg_interface.
8608 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8609 m_dreg_interface. Call register_hw_breakpoint.
8610 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8611 m_dreg_interface. Call clear_hw_breakpoint.
8612 (get_trigger_type): Change to...
8613 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8614 comment.
8615 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8616 use m_dreg_interface. Call register_hw_breakpoint.
8617 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8618 use m_dreg_interface. Call clear_hw_breakpoint.
8619 (can_use_watchpoint_cond_accel): Change to...
8620 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8621 method. Update comment, use m_dreg_interface and
8622 m_process_info.
8623 (calculate_dvc): Change to...
8624 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8625 m_dreg_interface.
8626 (num_memory_accesses): Change to...
8627 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8628 (check_condition): Change to...
8629 (ppc_linux_nat_target::check_condition): ...this method.
8630 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8631 comment, use m_dreg_interface.
8632 (create_watchpoint_request): Change to...
8633 (ppc_linux_nat_target::create_watchpoint_request): ...this
8634 method. Use m_dreg_interface.
8635 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8636 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8637 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8638 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8639 (ppc_linux_nat_target::low_forget_process)
8640 (ppc_linux_nat_target::low_new_fork)
8641 (ppc_linux_nat_target::low_new_clone)
8642 (ppc_linux_nat_target::low_delete_thread)
8643 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8644 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8645 only call mark_thread_stale.
8646 (ppc_linux_thread_exit): Remove.
8647 (ppc_linux_nat_target::stopped_data_address): Change to...
8648 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8649 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8650 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8651 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8652 comment. Call low_stopped_data_address.
8653 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8654 m_dreg_interface.
8655 (ppc_linux_nat_target::masked_watch_num_registers): Use
8656 m_dreg_interface.
8657 (ppc_linux_nat_target::copy_thread_dreg_state)
8658 (ppc_linux_nat_target::mark_thread_stale)
8659 (ppc_linux_nat_target::mark_debug_registers_changed)
8660 (ppc_linux_nat_target::register_hw_breakpoint)
8661 (ppc_linux_nat_target::clear_hw_breakpoint)
8662 (ppc_linux_nat_target::register_wp)
8663 (ppc_linux_nat_target::clear_wp)
8664 (ppc_linux_nat_target::init_arch_lwp_info)
8665 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8666 (_initialize_ppc_linux_nat): Remove observer callback.
8667
4db10d8f
PFC
86682020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8669
8670 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8671 (ppc_linux_nat_target::auxv_parse)
8672 (ppc_linux_nat_target::read_description)
8673 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8674 Move up.
8675
1310c1b0
PFC
86762020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8677
8678 * linux-nat.h (low_new_clone): New method.
8679 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8680
69b037c3
SM
86812020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8682
8683 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8684 (dbx_expand_psymtab): ... this.
8685 (start_psymtab): Update.
8686 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8687 (mdebug_expand_psymtab): ... this.
8688 (parse_partial_symbols): Update.
8689 (new_psymtab): Update.
8690 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8691 (xcoff_expand_psymtab): ... this.
8692 (xcoff_start_psymtab): Update.
8693
48993951
SM
86942020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8695
8696 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8697 <expand_dependencies>: ... this.
8698 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8699 (partial_symtab::expand_dependencies): ... this.
8700 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8701 Update.
8702 (dwarf2_psymtab::expand_psymtab): Update.
8703 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8704 * mdebugread.c (psymtab_to_symtab_1): Update.
8705 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8706
3ad83046
SM
87072020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8708
8709 * psympriv.h (discard_psymtab): Remove.
8710 * dbxread.c (dbx_end_psymtab): Update.
8711 * xcoffread.c (xcoff_end_psymtab): Update.
8712
4d1b9ab6
TT
87132020-03-28 Tom Tromey <tom@tromey.com>
8714
8715 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8716 comment.
8717
f1749218
TT
87182020-03-28 Tom Tromey <tom@tromey.com>
8719
8720 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8721
ebea7626
HD
87222020-03-27 Hannes Domani <ssbssa@yahoo.de>
8723
8724 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8725
a879b4d5
JB
87262020-03-26 John Baldwin <jhb@FreeBSD.org>
8727
8728 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8729
0826b30a
TT
87302020-03-26 Tom Tromey <tom@tromey.com>
8731
8732 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8733 (mark_common_block_symbol_computed, read_tag_string_type)
8734 (attr_to_dynamic_prop, read_subrange_type): Update.
8735 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8736 to be methods on struct attribute.
8737 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8738 (read_call_site_scope, partial_die_info::read)
8739 (partial_die_info::read, lookup_die_type, follow_die_ref):
8740 Update.
8741 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8742 from dwarf2_get_ref_die_offset.
8743 (attribute::constant_value): New method, from
8744 dwarf2_get_attr_constant_value.
8745 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8746 Declare method.
8747 <constant_value>: New method.
8748
2b2558bf
TT
87492020-03-26 Tom Tromey <tom@tromey.com>
8750
8751 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8752 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8753 (dwarf_type_encoding_name): Move to stringify.c.
8754 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8755 * dwarf2/stringify.c: New file.
8756 * dwarf2/stringify.h: New file.
8757
eeb64781
TT
87582020-03-26 Tom Tromey <tom@tromey.com>
8759
8760 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8761 Rewrite.
8762
a39fdb41
TT
87632020-03-26 Tom Tromey <tom@tromey.com>
8764
8765 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8766 methods.
8767 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8768 (lookup_ranges_base): Likewise.
8769 (read_cutu_die_from_dwo, read_full_die_1): Update.
8770
436c571c
TT
87712020-03-26 Tom Tromey <tom@tromey.com>
8772
8773 * dwarf2/read.c (read_import_statement, read_file_scope)
8774 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8775 (read_lexical_block_scope, read_call_site_scope)
8776 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8777 (handle_struct_member_die, process_structure_scope)
8778 (update_enumeration_type_from_children)
8779 (process_enumeration_scope, read_array_type, read_common_block)
8780 (read_namespace, read_module, read_subroutine_type): Update.
8781 (sibling_die): Remove.
8782
052c8bb8
TT
87832020-03-26 Tom Tromey <tom@tromey.com>
8784
8785 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8786 (build_type_psymtabs_reader, read_structure_type)
8787 (read_enumeration_type, read_full_die_1): Update.
8788 (dwarf2_attr_no_follow): Move to die.h.
8789 * dwarf2/die.h (struct die_info) <attr>: New method.
8790
2b24b6e4
TT
87912020-03-26 Tom Tromey <tom@tromey.com>
8792
8793 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8794 <base_address>: Now an optional.
8795 (dwarf2_find_base_address, dwarf2_rnglists_process)
8796 (dwarf2_ranges_process, fill_in_loclist_baton)
8797 (dwarf2_symbol_mark_computed): Update.
8798
c2d50fd0
TT
87992020-03-26 Tom Tromey <tom@tromey.com>
8800
8801 * dwarf2/read.c (struct die_info): Move to die.h.
8802 * dwarf2/die.h: New file.
8803
0df7ad3a
TT
88042020-03-26 Tom Tromey <tom@tromey.com>
8805
8806 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8807 * dwarf2/read.c
8808 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8809 Move to line-header.c.
8810 (read_checked_initial_length_and_offset, read_formatted_entries):
8811 Likewise.
8812 (dwarf_decode_line_header): Split into two.
8813 * dwarf2/line-header.c
8814 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8815 Move from read.c.
8816 (read_checked_initial_length_and_offset, read_formatted_entries):
8817 Likewise.
8818 (dwarf_decode_line_header): New function, split from read.c.
8819
86c0bb4c
TT
88202020-03-26 Tom Tromey <tom@tromey.com>
8821
8822 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8823 Declare method.
8824 * dwarf2/read.c (read_attribute_value): Update.
8825 (dwarf2_per_objfile::read_line_string): Rename from
8826 read_indirect_line_string.
8827 (read_formatted_entries): Update.
8828
2ef46c2f
TT
88292020-03-26 Tom Tromey <tom@tromey.com>
8830
8831 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8832 variable.
8833
4f9c1eda
TT
88342020-03-26 Tom Tromey <tom@tromey.com>
8835
8836 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8837 const.
8838 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8839 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8840 parameter const.
8841
5a0e026f
TT
88422020-03-26 Tom Tromey <tom@tromey.com>
8843
8844 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8845 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8846 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8847 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8848
8844c11b
TT
88492020-03-26 Tom Tromey <tom@tromey.com>
8850
8851 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8852 file_names_size, file_full_name, file_file_name>: Use const.
8853 <file_name_at, file_names>: Add const overload.
8854 * dwarf2/line-header.c (line_header::file_file_name)
8855 (line_header::file_full_name): Update.
8856
c90ec28a
TT
88572020-03-26 Tom Tromey <tom@tromey.com>
8858
8859 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8860 (macro_start_file, consume_improper_spaces)
8861 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8862 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8863 (dwarf_decode_macros): Move to macro.c.
8864 * dwarf2/macro.c: New file.
8865 * dwarf2/macro.h: New file.
8866 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8867
4f44ae6c
TT
88682020-03-26 Tom Tromey <tom@tromey.com>
8869
8870 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8871 method.
8872 * dwarf2/section.c: New method. From
8873 read_indirect_string_at_offset_from.
8874 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8875 (read_indirect_string_at_offset_from): Move to section.c.
8876 (read_indirect_string_at_offset): Rewrite.
8877 (read_indirect_line_string_at_offset): Remove.
8878 (read_indirect_string, read_indirect_line_string)
8879 (dwarf_decode_macro_bytes): Update.
8880
a0194fa8
TT
88812020-03-26 Tom Tromey <tom@tromey.com>
8882
8883 * dwarf2/section.h (struct dwarf2_section_info)
8884 <overload_complaint>: Declare.
8885 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8886 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8887 Rename from dwarf2_section_buffer_overflow_complaint.
8888 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8889 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8890
3d27bbdb
TT
88912020-03-26 Tom Tromey <tom@tromey.com>
8892
8893 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8894 Declare.
8895 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8896 Move from read.c.
8897 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8898 to section.c.
8899
9eac9650
TT
89002020-03-26 Tom Tromey <tom@tromey.com>
8901
8902 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8903
bf80d710
TT
89042020-03-26 Tom Tromey <tom@tromey.com>
8905
8906 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8907 "builder".
8908 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8909 parameter.
8910 (dwarf_decode_macros): Update.
8911
0314b390
TT
89122020-03-26 Tom Tromey <tom@tromey.com>
8913
8914 * dwarf2/read.c (read_attribute_value): Update.
8915 (read_indirect_string_from_dwz): Move to dwz.c; change into
8916 method.
8917 (dwarf_decode_macro_bytes): Update.
8918 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8919 * dwarf2/dwz.c: New file.
8920 * Makefile.in (COMMON_SFILES): Add dwz.c.
8921
9fda78b6
TT
89222020-03-26 Tom Tromey <tom@tromey.com>
8923
8924 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8925 * dwarf2/read.c: Add include.
8926 * dwarf2/index-write.c: Add include.
8927 * dwarf2/index-cache.c: Add include.
8928 * dwarf2/dwz.h: New file.
8929
33aa3c10
TT
89302020-03-25 Tom Tromey <tom@tromey.com>
8931
8932 * compile/compile-object-load.c (get_out_value_type): Mention
8933 correct symbol name in error message.
8934
d503b685
HD
89352020-03-25 Hannes Domani <ssbssa@yahoo.de>
8936
8937 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8938
7b1eff95
TV
89392020-03-25 Tom de Vries <tdevries@suse.de>
8940
8941 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8942 * symmisc.c (dump_symtab_1): Print user and includes fields.
8943 (maintenance_info_symtabs): Same.
8944
dd895392
AB
89452020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8946
8947 PR gdb/25534
8948 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8949 (riscv_regcache_cooked_write): New function.
8950 (riscv_push_dummy_call): Use new function.
8951 (riscv_return_value): Likewise.
8952
5ab2fbf1
SM
89532020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8954
8955 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8956 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8957 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8958 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8959 * infrun.c (follow_fork): Likewise.
8960 (follow_fork_inferior): Likewise.
8961 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8962 * linux-nat.h (class linux_nat_target): Likewise.
8963 * remote.c (class remote_target) <follow_fork>: Likewise.
8964 (remote_target::follow_fork): Likewise.
8965 * target-delegates.c: Re-generate.
8966 * target.c (default_follow_fork): Likewise.
8967 (target_follow_fork): Likewise.
8968 * target.h (struct target_ops) <follow_fork>: Likewise.
8969 (target_follow_fork): Likewise.
8970
a64fafb5
TV
89712020-03-24 Tom de Vries <tdevries@suse.de>
8972
8973 * psymtab.c (maintenance_info_psymtabs): Print user field.
8974
fe26d3a3
TT
89752020-03-20 Tom Tromey <tromey@adacore.com>
8976
8977 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8978 const.
8979 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8980 const.
8981
c884cc46
SM
89822020-03-20 Simon Marchi <simon.marchi@efficios.com>
8983
8984 * ptrace.m4: Don't check for ptrace declaration.
8985 * config.in: Re-generate.
8986 * configure: Re-generate.
8987 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8988 not defined.
8989
1ff700c2
KR
89902020-03-20 Kamil Rytarowski <n54@gmx.com>
8991
8992 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8993 `PTRACE_TYPE_RET'.
8994 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8995 * sparc-nat.c (gdb_ptrace): Likewise.
8996 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8997
f7d4f0b1
TT
89982020-03-20 Tom Tromey <tromey@adacore.com>
8999
9000 * c-exp.y (lex_one_token): Fix assert.
9001
f67210ff
TT
90022020-03-20 Tom Tromey <tromey@adacore.com>
9003
9004 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9005 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9006 strncpy call.
9007
1773be9e
TT
90082020-03-20 Tom Tromey <tromey@adacore.com>
9009
9010 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9011
70304be9
TT
90122020-03-20 Tom Tromey <tromey@adacore.com>
9013
9014 * ada-valprint.c (print_variant_part): Remove parameters; switch
9015 to value-based API.
9016 (print_field_values): Likewise.
9017 (ada_val_print_struct_union): Likewise.
9018 (ada_value_print_1): Update.
9019
9faa006d
KR
90202020-03-20 Kamil Rytarowski <n54@gmx.com>
9021
9022 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9023 nbsd_nat_target instead of inf_ptrace_target.
9024 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9025 nbsd_nat_target.
9026
4a90f062
KR
90272020-03-20 Kamil Rytarowski <n54@gmx.com>
9028
9029 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9030 it to the ptrace call.
9031 * (store_registers): Likewise.
9032
90332020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9034
9035 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9036 it to the ptrace call.
9037 * (store_registers): Likewise.
9038
2d07da27
LM
90392020-03-19 Luis Machado <luis.machado@linaro.org>
9040
9041 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9042 valid, fetch vg value from ptrace.
9043
f09db380
KR
90442020-03-19 Kamil Rytarowski <n54@gmx.com>
9045 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9046 * inf-ptrace.c: Likewise.
9047 * (gdb_ptrace): Add.
9048 * (inf_ptrace_target::resume): Update.
9049 * (inf_ptrace_target::xfer_partial): Likewise.
9050 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9051 * (inf_ptrace_peek_poke): Update.
9052
fcc7376e
KR
90532020-03-19 Kamil Rytarowski <n54@gmx.com>
9054
9055 * x86-bsd-nat.c (gdb_ptrace): New.
9056 * (x86bsd_dr_set): Add new argument `ptid'.
9057 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9058 x86bsd_dr_set_addr): Update.
9059
cada5fc9
AB
90602020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9061
9062 * remote.c (remote_target::process_stop_reply): Handle events for
9063 all threads differently.
9064
19a2740f
AB
90652020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9066
9067 * completer.c (completion_tracker::remove_completion): Define new
9068 function.
9069 * completer.h (completion_tracker::remove_completion): Declare new
9070 function.
9071 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9072 when adding a C++ function symbol.
9073
724fd9ba
AB
90742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9075
9076 * completer.c (completion_tracker::completion_hash_entry): Define
9077 new class.
9078 (advance_to_filename_complete_word_point): Call
9079 recompute_lowest_common_denominator.
9080 (completion_tracker::completion_tracker): Call discard_completions
9081 to setup the hash table.
9082 (completion_tracker::discard_completions): Allow for being called
9083 from the constructor, pass new equal function, and element deleter
9084 when constructing the hash table. Initialise new class member
9085 variables.
9086 (completion_tracker::maybe_add_completion): Remove use of
9087 m_entries_vec, and store more information into m_entries_hash.
9088 (completion_tracker::recompute_lcd_visitor): New function, most
9089 content taken from...
9090 (completion_tracker::recompute_lowest_common_denominator):
9091 ...here, this now just visits each item in the hash calling the
9092 above visitor.
9093 (completion_tracker::build_completion_result): Remove use of
9094 m_entries_vec, call recompute_lowest_common_denominator.
9095 * completer.h (completion_tracker::have_completions): Remove use
9096 of m_entries_vec.
9097 (completion_tracker::completion_hash_entry): Declare new class.
9098 (completion_tracker::recompute_lowest_common_denominator): Change
9099 function signature.
9100 (completion_tracker::recompute_lcd_visitor): Declare new function.
9101 (completion_tracker::m_entries_vec): Delete.
9102 (completion_tracker::m_entries_hash): Initialize to NULL.
9103 (completion_tracker::m_lowest_common_denominator_valid): New
9104 member variable.
9105 (completion_tracker::m_lowest_common_denominator_max_length): New
9106 member variable.
9107
5a82b8a1
KR
91082020-03-17 Kamil Rytarowski <n54@gmx.com>
9109
9110 * regformats/regdef.h: Put reg in gdb namespace.
9111
fb516a69
KR
91122020-03-17 Kamil Rytarowski <n54@gmx.com>
9113
9114 * i386-bsd-nat.c (gdb_ptrace): New.
9115 * (i386bsd_fetch_inferior_registers,
9116 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9117 * (i386bsd_fetch_inferior_registers,
9118 i386bsd_store_inferior_registers) Use gdb_ptrace.
9119
1c0aa1fb
KR
91202020-03-17 Kamil Rytarowski <n54@gmx.com>
9121
9122 * amd64-bsd-nat.c (gdb_ptrace): New.
9123 * (amd64bsd_fetch_inferior_registers,
9124 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9125 * (amd64bsd_fetch_inferior_registers,
9126 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9127
5ccd2fb7
KR
91282020-03-17 Kamil Rytarowski <n54@gmx.com>
9129
9130 * user-regs.c (user_reg::read): Rename to...
9131 (user_reg::xread): ...this.
9132 * (append_user_reg): Rename argument `read' to `xread'.
9133 * (user_reg_add_builtin): Likewise.
9134 * (user_reg_add): Likewise.
9135 * (value_of_user_reg): Likewise.
9136
2108a63a
KR
91372020-03-17 Kamil Rytarowski <n54@gmx.com>
9138
9139 * sparc-nat.c (gdb_ptrace): New.
9140 * sparc-nat.c (sparc_fetch_inferior_registers)
9141 (sparc_store_inferior_registers) Remove obsolete comment.
9142 * sparc-nat.c (sparc_fetch_inferior_registers)
9143 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9144 * sparc-nat.c (sparc_fetch_inferior_registers)
9145 (sparc_store_inferior_registers) Use gdb_ptrace.
9146
a225c9a8
KR
91472020-03-17 Kamil Rytarowski <n54@gmx.com>
9148
9149 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9150 it to the ptrace call.
9151 * sh-nbsd-nat.c (store_registers): Likewise.
9152
98097623
KR
91532020-03-17 Kamil Rytarowski <n54@gmx.com>
9154
9155 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9156 nbsd_nat_target instead of inf_ptrace_target.
9157 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9158 nbsd_nat_target.
9159
9e38d619
KR
91602020-03-17 Kamil Rytarowski <n54@gmx.com>
9161
9162 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9163
a2ecbe9f
KR
91642020-03-17 Kamil Rytarowski <n54@gmx.com>
9165
9166 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9167 <sys/sysctl.h>.
9168 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9169
58990295
TV
91702020-03-17 Tom de Vries <tdevries@suse.de>
9171
9172 PR gdb/23710
9173 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9174 fields.
9175 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9176 fields.
9177 (process_imported_unit_die): Skip import of c++ CUs.
9178
771dd3a8
TT
91792020-03-16 Tom Tromey <tom@tromey.com>
9180
9181 * p-valprint.c (pascal_object_print_value): Initialize
9182 base_value.
9183
817a7585
AK
91842020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9185 Shahab Vahedi <shahab@synopsys.com>
9186
9187 * Makefile.in: Add arch/arc.o
9188 * configure.tgt: Likewise.
9189 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9190 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9191 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9192 * arc-tdep.h (arc_read_description): Add proto type.
9193 * arch/arc.c: New file.
9194 * arch/arc.h: Likewise.
9195 * features/Makefile: Replace old target descriptions with new.
9196 * features/arc-arcompact.c: Remove.
9197 * features/arc-arcompact.xml: Likewise.
9198 * features/arc-v2.c: Likewise
9199 * features/arc-v2.xml: Likewise
9200 * features/arc/aux-arcompact.xml: New file.
9201 * features/arc/aux-v2.xml: Likewise.
9202 * features/arc/core-arcompact.xml: Likewise.
9203 * features/arc/core-v2.xml: Likewise.
9204 * features/arc/aux-arcompact.c: Generate.
9205 * features/arc/aux-v2.c: Likewise.
9206 * features/arc/core-arcompact.c: Likewise.
9207 * features/arc/core-v2.c: Likewise.
9208 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9209
67430cd0
TT
92102020-03-16 Tom Tromey <tromey@adacore.com>
9211
9212 PR gdb/25663:
9213 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9214 putting value into bcache.
9215
30efb6c7
SM
92162020-03-16 Simon Marchi <simon.marchi@efficios.com>
9217
9218 PR gdb/21500
9219 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9220 to...
9221 (amd64_windows_init_abi_common): ... this. Don't set size of
9222 long type.
9223 (amd64_windows_init_abi): New function.
9224 (amd64_cygwin_init_abi): New function.
9225 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9226 the Cygwin OS ABI.
9227 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9228 comment.
9229
8db52437
SM
92302020-03-16 Simon Marchi <simon.marchi@efficios.com>
9231
9232 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9233 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9234 (pe_import_directory_entry): New struct type.
9235 (is_linked_with_cygwin_dll): New function.
9236 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9237 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9238 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9239
5982a56a
SM
92402020-03-16 Simon Marchi <simon.marchi@efficios.com>
9241
9242 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9243 i386_cygwin_core_osabi_sniffer.
9244
7a1998df
SM
92452020-03-16 Simon Marchi <simon.marchi@efficios.com>
9246
9247 * i386-cygwin-tdep.c: Rename to...
9248 * i386-windows-tdep.c: ... this.
9249 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9250 i386-windows-tdep.c.
9251 * configure.tgt: Likewise.
9252
053205cc
SM
92532020-03-16 Simon Marchi <simon.marchi@efficios.com>
9254
9255 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9256 * osabi.c (gdb_osabi_names): Add "Windows".
9257 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9258 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9259 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9260 i386_cygwin_osabi_sniffer.
9261 (_initialize_i386_cygwin_tdep): Register OS ABI
9262 GDB_OSABI_WINDOWS for i386.
9263 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9264 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9265 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9266 for x86-64.
9267 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9268 when the target matches '*-*-mingw*'.
9269
fe4b2ee6
SM
92702020-03-16 Simon Marchi <simon.marchi@efficios.com>
9271
9272 * defs.h (enum gdb_osabi): Move to...
9273 * osabi.h (enum gdb_osabi): ... here.
9274 * gdbarch.sh: Include osabi.h in gdbarch.h.
9275 * gdbarch.h: Re-generate.
9276
cb9b645d
SM
92772020-03-16 Simon Marchi <simon.marchi@efficios.com>
9278
9279 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9280 function.
9281 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9282
3293bbaf
TT
92832020-03-14 Tom Tromey <tom@tromey.com>
9284
9285 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9286 for C++.
9287 (c_type_print_modifier): Likewise. Add "language" parameter.
9288 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9289 (c_type_print_base_1): Update.
9290 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9291 constants.
9292 * type-stack.c (type_stack::insert): Handle tp_atomic and
9293 tp_restrict.
9294 (type_stack::follow_type_instance_flags): Likewise.
9295 (type_stack::follow_types): Likewise. Merge type-following code.
9296 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9297 (space_identifier, cv_with_space_id)
9298 (const_or_volatile_or_space_identifier_noopt)
9299 (const_or_volatile_or_space_identifier): Remove.
9300 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9301 rules.
9302 (ptr_operator, typebase): Update.
9303 (enum token_flag) <FLAG_C>: New constant.
9304 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9305 "_Atomic".
9306 (lex_one_token): Handle FLAG_C.
9307
154151a6
KR
93082020-03-14 Kamil Rytarowski <n54@gmx.com>
9309
9310 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9311 it to the ptrace call.
9312 * m68k-bsd-nat.c (store_registers): Likewise.
9313
bc107784
KR
93142020-03-14 Kamil Rytarowski <n54@gmx.com>
9315
9316 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9317 gdb_byte *.
9318 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9319 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9320 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9321
01a80117
KR
93222020-03-14 Kamil Rytarowski <n54@gmx.com>
9323
9324 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9325 nbsd_nat_target instead of inf_ptrace_target.
9326 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9327 nbsd_nat_target.
9328
f90280ca
KR
93292020-03-14 Kamil Rytarowski <n54@gmx.com>
9330
9331 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9332 register_t.
9333
6def66f1
KR
93342020-03-14 Kamil Rytarowski <n54@gmx.com>
9335
9336 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9337 it to the ptrace call.
9338 * alpha-bsd-nat.c (store_registers): Likewise.
9339
66eaca97
KR
93402020-03-14 Kamil Rytarowski <n54@gmx.com>
9341
9342 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9343 includes.
9344 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9345 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9346 fill_fpregset): Likewise.
9347
4fed520b
KR
93482020-03-14 Kamil Rytarowski <n54@gmx.com>
9349
9350 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9351 nbsd_nat_target instead of inf_ptrace_target.
9352 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9353 nbsd_nat_target.
9354
2190cf06
KR
93552020-03-14 Kamil Rytarowski <n54@gmx.com>
9356
9357 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9358 register_t.
9359
75c56d3d
KR
93602020-03-14 Kamil Rytarowski <n54@gmx.com>
9361
9362 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9363 it to the ptrace call.
9364 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9365 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9366 * arm-nbsd-nat.c (store_register): Likewise.
9367 * arm-nbsd-nat.c (store_regs): Likewise.
9368 * arm-nbsd-nat.c (store_fp_register): Likewise.
9369 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9370
6018d381
KR
93712020-03-14 Kamil Rytarowski <n54@gmx.com>
9372
9373 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9374 nbsd_nat_target instead of inf_ptrace_target.
9375 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9376 nbsd_nat_target.
9377
013f99f0
KR
93782020-03-14 Kamil Rytarowski <n54@gmx.com>
9379
9380 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9381 it to the ptrace call.
9382 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9383
12753073
KR
93842020-03-14 Kamil Rytarowski <n54@gmx.com>
9385
6227b330
KR
9386 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9387 it to the ptrace call.
9388 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9389
93902020-03-14 Kamil Rytarowski <n54@gmx.com>
9391
9392 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9393 gdb_byte *.
12753073
KR
9394 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9395
d5be5fa4
KR
93962020-03-14 Kamil Rytarowski <n54@gmx.com>
9397
9398 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9399 instead of inf_ptrace_target.
9400 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9401 nbsd_nat_target.
9402
8110f842
KR
94032020-03-14 Kamil Rytarowski <n54@gmx.com>
9404
9405 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9406 register_t.
9407
52feded7
KR
94082020-03-14 Kamil Rytarowski <n54@gmx.com>
9409
9410 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9411 register_t.
9412
25567eee
KR
94132020-03-14 Kamil Rytarowski <n54@gmx.com>
9414
9415 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9416 register_t.
9417
426a9c18
TT
94182020-03-13 Tom Tromey <tom@tromey.com>
9419
9420 * value.h (val_print): Don't declare.
9421 * valprint.h (val_print_array_elements)
9422 (val_print_scalar_formatted, generic_val_print): Don't declare.
9423 * valprint.c (generic_val_print_array): Take a struct value.
9424 (generic_val_print_ptr, generic_val_print_memberptr)
9425 (generic_val_print_bool, generic_val_print_int)
9426 (generic_val_print_char, generic_val_print_complex)
9427 (generic_val_print): Remove.
9428 (generic_value_print): Update.
9429 (do_val_print): Remove unused parameters. Don't call
9430 la_val_print.
9431 (val_print): Remove.
9432 (common_val_print): Update. Don't call value_check_printable.
9433 (val_print_scalar_formatted, val_print_array_elements): Remove.
9434 * rust-lang.c (rust_val_print): Remove.
9435 (rust_language_defn): Update.
9436 * p-valprint.c (pascal_val_print): Remove.
9437 (pascal_value_print_inner): Update.
9438 (pascal_object_print_val_fields, pascal_object_print_val):
9439 Remove.
9440 (pascal_object_print_static_field): Update.
9441 * p-lang.h (pascal_val_print): Don't declare.
9442 * p-lang.c (pascal_language_defn): Update.
9443 * opencl-lang.c (opencl_language_defn): Update.
9444 * objc-lang.c (objc_language_defn): Update.
9445 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9446 * m2-lang.h (m2_val_print): Don't declare.
9447 * m2-lang.c (m2_language_defn): Update.
9448 * language.h (struct language_defn) <la_val_print>: Remove.
9449 * language.c (unk_lang_value_print_inner): Rename. Change
9450 argument types.
9451 (unknown_language_defn, auto_language_defn): Update.
9452 * go-valprint.c (go_val_print): Remove.
9453 * go-lang.h (go_val_print): Don't declare.
9454 * go-lang.c (go_language_defn): Update.
9455 * f-valprint.c (f_val_print): Remove.
9456 * f-lang.h (f_value_print): Don't declare.
9457 * f-lang.c (f_language_defn): Update.
9458 * d-valprint.c (d_val_print): Remove.
9459 * d-lang.h (d_value_print): Don't declare.
9460 * d-lang.c (d_language_defn): Update.
9461 * cp-valprint.c (cp_print_value_fields)
9462 (cp_print_value_fields_rtti, cp_print_value): Remove.
9463 (cp_print_static_field): Update.
9464 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9465 (c_val_print_struct, c_val_print_union, c_val_print_int)
9466 (c_val_print_memberptr, c_val_print): Remove.
9467 * c-lang.h (c_val_print_array, cp_print_value_fields)
9468 (cp_print_value_fields_rtti): Don't declare.
9469 * c-lang.c (c_language_defn, cplus_language_defn)
9470 (asm_language_defn, minimal_language_defn): Update.
9471 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9472 (ada_val_print_enum): Take a struct value.
9473 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9474 (ada_val_print): Remove.
9475 (ada_value_print_1): Update.
9476 (printable_val_type): Remove.
9477 * ada-lang.h (ada_val_print): Don't declare.
9478 * ada-lang.c (ada_language_defn): Update.
9479
42331a1e
TT
94802020-03-13 Tom Tromey <tom@tromey.com>
9481
9482 * valprint.c (do_val_print): Update.
9483 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9484 a struct value.
9485 (value_to_value_object_no_release): Declare.
9486 * python/py-value.c (value_to_value_object_no_release): New
9487 function.
9488 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9489 struct value.
9490 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9491 function.
9492 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9493 a struct value.
9494 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9495 Declare.
9496 (gdbscm_apply_val_pretty_printer): Take a struct value.
9497 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9498 value.
9499 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9500 value.
9501 * extension-priv.h (struct extension_language_ops)
9502 <apply_val_pretty_printer>: Take a struct value.
9503 * cp-valprint.c (cp_print_value): Create a struct value.
9504 (cp_print_value): Update.
9505
3a916a97
TT
95062020-03-13 Tom Tromey <tom@tromey.com>
9507
9508 * ada-valprint.c (print_field_values): Call common_val_print.
9509
b59eac37
TT
95102020-03-13 Tom Tromey <tom@tromey.com>
9511
9512 * ada-valprint.c (val_print_packed_array_elements): Remove
9513 bitoffset and val parameters. Call common_val_print.
9514 (ada_val_print_string): Remove offset, address, and original_value
9515 parameters.
9516 (ada_val_print_array): Update.
9517 (ada_value_print_array): New function.
9518 (ada_value_print_1): Call it.
9519
03371129
TT
95202020-03-13 Tom Tromey <tom@tromey.com>
9521
9522 * ada-valprint.c (ada_value_print): Use common_val_print.
9523
2e088f8b
TT
95242020-03-13 Tom Tromey <tom@tromey.com>
9525
9526 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9527
39ef85a8
TT
95282020-03-13 Tom Tromey <tom@tromey.com>
9529
9530 * ada-valprint.c (ada_value_print_num): New function.
9531 (ada_value_print_1): Use it.
9532
b9fa6e07
TT
95332020-03-13 Tom Tromey <tom@tromey.com>
9534
9535 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9536
416595d6
TT
95372020-03-13 Tom Tromey <tom@tromey.com>
9538
9539 * ada-valprint.c (ada_value_print_ptr): New function.
9540 (ada_value_print_1): Use it.
9541
5b5e15ec
TT
95422020-03-13 Tom Tromey <tom@tromey.com>
9543
9544 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9545 call common_val_print.
9546 (ada_val_print_1): Update.
9547 (ada_value_print_1): New function.
9548 (ada_value_print_inner): Rewrite.
9549
fbf54e75
TT
95502020-03-13 Tom Tromey <tom@tromey.com>
9551
9552 * cp-valprint.c (cp_print_value_fields): Update.
9553 (cp_print_value): New function.
9554
64b653ca
TT
95552020-03-13 Tom Tromey <tom@tromey.com>
9556
9557 * m2-valprint.c (m2_value_print_inner): Use
9558 cp_print_value_fields.
9559 * cp-valprint.c (cp_print_value_fields): New function.
9560 * c-valprint.c (c_value_print_struct): New function.
9561 (c_value_print_inner): Use c_value_print_struct.
9562 * c-lang.h (cp_print_value_fields): Declare.
9563
6999f067
TT
95642020-03-13 Tom Tromey <tom@tromey.com>
9565
9566 * c-valprint.c (c_value_print_array): New function.
9567 (c_value_print_inner): Use it.
9568
ce80b8bd
TT
95692020-03-13 Tom Tromey <tom@tromey.com>
9570
9571 * c-valprint.c (c_value_print_memberptr): New function.
9572 (c_value_print_inner): Use it.
9573
2faac269
TT
95742020-03-13 Tom Tromey <tom@tromey.com>
9575
9576 * c-valprint.c (c_value_print_int): New function.
9577 (c_value_print_inner): Use it.
9578
da3e2c29
TT
95792020-03-13 Tom Tromey <tom@tromey.com>
9580
9581 * c-valprint.c (c_value_print_ptr): New function.
9582 (c_value_print_inner): Use it.
9583
50836231
TT
95842020-03-13 Tom Tromey <tom@tromey.com>
9585
9586 * c-valprint.c (c_value_print_inner): Rewrite.
9587
4f412b6e
TT
95882020-03-13 Tom Tromey <tom@tromey.com>
9589
9590 * valprint.c (generic_value_print_complex): New function.
9591 (generic_value_print): Use it.
9592
f5354008
TT
95932020-03-13 Tom Tromey <tom@tromey.com>
9594
9595 * valprint.c (generic_val_print_float): Don't call
9596 val_print_scalar_formatted.
9597 (generic_val_print, generic_value_print): Update.
9598
3eec3b05
TT
95992020-03-13 Tom Tromey <tom@tromey.com>
9600
9601 * valprint.c (generic_value_print_char): New function
9602 (generic_value_print): Use it.
9603
fdddfccb
TT
96042020-03-13 Tom Tromey <tom@tromey.com>
9605
9606 * valprint.c (generic_value_print_int): New function.
9607 (generic_value_print): Use it.
9608
6dde7521
TT
96092020-03-13 Tom Tromey <tom@tromey.com>
9610
9611 * valprint.c (generic_value_print_bool): New function.
9612 (generic_value_print): Use it.
9613
4112d2e6
TT
96142020-03-13 Tom Tromey <tom@tromey.com>
9615
9616 * valprint.c (generic_val_print_func): Simplify.
9617 (generic_val_print, generic_value_print): Update.
9618
65786af6
TT
96192020-03-13 Tom Tromey <tom@tromey.com>
9620
9621 * valprint.c (generic_val_print_flags): Remove.
9622 (generic_val_print, generic_value_print): Update.
9623 (val_print_type_code_flags): Add original_value parameter.
9624
40f3ce18
TT
96252020-03-13 Tom Tromey <tom@tromey.com>
9626
9627 * valprint.c (generic_val_print): Update.
9628 (generic_value_print): Update.
9629 * valprint.c (generic_val_print_enum): Don't call
9630 val_print_scalar_formatted.
9631
2a5b130b
TT
96322020-03-13 Tom Tromey <tom@tromey.com>
9633
9634 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9635 * valprint.c (generic_value_print_ptr): New function.
9636
abc66ce9
TT
96372020-03-13 Tom Tromey <tom@tromey.com>
9638
9639 * valprint.c (generic_value_print): Rewrite.
9640
07a32858
TT
96412020-03-13 Tom Tromey <tom@tromey.com>
9642
9643 * p-valprint.c (pascal_object_print_value_fields)
9644 (pascal_object_print_value): New functions.
9645
64d64d3a
TT
96462020-03-13 Tom Tromey <tom@tromey.com>
9647
9648 * p-valprint.c (pascal_value_print_inner): Rewrite.
9649
6a95a1f5
TT
96502020-03-13 Tom Tromey <tom@tromey.com>
9651
9652 * f-valprint.c (f_value_print_innner): Rewrite.
9653
59fcdac6
TT
96542020-03-13 Tom Tromey <tom@tromey.com>
9655
9656 * m2-valprint.c (m2_print_unbounded_array): New overload.
9657 (m2_print_unbounded_array): Update.
9658 (m2_print_array_contents): Take a struct value.
9659 (m2_value_print_inner): Rewrite.
9660
d133c3e1
TT
96612020-03-13 Tom Tromey <tom@tromey.com>
9662
9663 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9664 (d_value_print_inner): New function.
9665 * d-lang.h (d_value_print_inner): Declare.
9666 * d-lang.c (d_language_defn): Use d_value_print_inner.
9667
23b0f06b
TT
96682020-03-13 Tom Tromey <tom@tromey.com>
9669
9670 * go-valprint.c (go_value_print_inner): New function.
9671 * go-lang.h (go_value_print_inner): Declare.
9672 * go-lang.c (go_language_defn): Use go_value_print_inner.
9673
5f56f7cb
TT
96742020-03-13 Tom Tromey <tom@tromey.com>
9675
9676 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9677 API.
9678 (rust_val_print): Rewrite.
9679 (rust_value_print_inner): New function, from rust_val_print.
9680 (rust_language_defn): Use rust_value_print_inner.
9681
26792ee0
TT
96822020-03-13 Tom Tromey <tom@tromey.com>
9683
9684 * ada-valprint.c (ada_value_print_inner): New function.
9685 * ada-lang.h (ada_value_print_inner): Declare.
9686 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9687
24051bbe
TT
96882020-03-13 Tom Tromey <tom@tromey.com>
9689
9690 * f-valprint.c (f_value_print_innner): New function.
9691 * f-lang.h (f_value_print_innner): Declare.
9692 * f-lang.c (f_language_defn): Use f_value_print_innner.
9693
c0941be6
TT
96942020-03-13 Tom Tromey <tom@tromey.com>
9695
9696 * p-valprint.c (pascal_value_print_inner): New function.
9697 * p-lang.h (pascal_value_print_inner): Declare.
9698 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9699
62c4663d
TT
97002020-03-13 Tom Tromey <tom@tromey.com>
9701
9702 * m2-valprint.c (m2_value_print_inner): New function.
9703 * m2-lang.h (m2_value_print_inner): Declare.
9704 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9705
62182190
TT
97062020-03-13 Tom Tromey <tom@tromey.com>
9707
9708 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9709 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9710 * c-valprint.c (c_value_print_inner): New function.
9711 * c-lang.h (c_value_print_inner): Declare.
9712 * c-lang.c (c_language_defn, cplus_language_defn)
9713 (asm_language_defn, minimal_language_defn): Use
9714 c_value_print_inner.
9715
1e592a8a
TT
97162020-03-13 Tom Tromey <tom@tromey.com>
9717
9718 * p-valprint.c (pascal_object_print_value_fields): Now static.
9719 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9720
7fe471e9
TT
97212020-03-13 Tom Tromey <tom@tromey.com>
9722
9723 * c-valprint.c (c_val_print_array): Simplify.
9724
d121c6ce
TT
97252020-03-13 Tom Tromey <tom@tromey.com>
9726
9727 * valprint.c (value_print_array_elements): New function.
9728 * valprint.h (value_print_array_elements): Declare.
9729
4dba70ee
TT
97302020-03-13 Tom Tromey <tom@tromey.com>
9731
9732 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9733 * mips-tdep.c (mips_print_register): Use
9734 value_print_scalar_formatted.
9735
4f9ae810
TT
97362020-03-13 Tom Tromey <tom@tromey.com>
9737
9738 * valprint.h (value_print_scalar_formatted): Declare.
9739 * valprint.c (value_print_scalar_formatted): New function.
9740
156bfec9
TT
97412020-03-13 Tom Tromey <tom@tromey.com>
9742
9743 * valprint.h (generic_value_print): Declare.
9744 * valprint.c (generic_value_print): New function.
9745
2b4e573d
TT
97462020-03-13 Tom Tromey <tom@tromey.com>
9747
9748 * valprint.c (do_val_print): Call la_value_print_inner, if
9749 available.
9750 * rust-lang.c (rust_language_defn): Update.
9751 * p-lang.c (pascal_language_defn): Update.
9752 * opencl-lang.c (opencl_language_defn): Update.
9753 * objc-lang.c (objc_language_defn): Update.
9754 * m2-lang.c (m2_language_defn): Update.
9755 * language.h (struct language_defn) <la_value_print_inner>: New
9756 member.
9757 * language.c (unknown_language_defn, auto_language_defn): Update.
9758 * go-lang.c (go_language_defn): Update.
9759 * f-lang.c (f_language_defn): Update.
9760 * d-lang.c (d_language_defn): Update.
9761 * c-lang.c (c_language_defn, cplus_language_defn)
9762 (asm_language_defn, minimal_language_defn): Update.
9763 * ada-lang.c (ada_language_defn): Update.
9764
a1f6a07c
TT
97652020-03-13 Tom Tromey <tom@tromey.com>
9766
9767 * c-valprint.c (c_value_print): Use common_val_print.
9768
410cf315
TT
97692020-03-13 Tom Tromey <tom@tromey.com>
9770
9771 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9772
72a45c93
TT
97732020-03-13 Tom Tromey <tom@tromey.com>
9774
9775 * f-valprint.c (f77_print_array_1, f_val_print): Use
9776 common_val_print.
9777
040f66bd
TT
97782020-03-13 Tom Tromey <tom@tromey.com>
9779
9780 * riscv-tdep.c (riscv_print_one_register_info): Use
9781 common_val_print.
9782
a6e05a6c
TT
97832020-03-13 Tom Tromey <tom@tromey.com>
9784
9785 * mi/mi-main.c (output_register): Use common_val_print.
9786
3444c526
TT
97872020-03-13 Tom Tromey <tom@tromey.com>
9788
9789 * infcmd.c (default_print_one_register_info): Use
9790 common_val_print.
9791
c2a44efe
TT
97922020-03-13 Tom Tromey <tom@tromey.com>
9793
9794 * valprint.h (common_val_print_checked): Declare.
9795 * valprint.c (common_val_print_checked): New function.
9796 * stack.c (print_frame_arg): Use common_val_print_checked.
9797
b0c26e99
TT
97982020-03-13 Tom Tromey <tom@tromey.com>
9799
9800 * valprint.c (do_val_print): New function, from val_print.
9801 (val_print): Use do_val_print.
9802 (common_val_print): Use do_val_print.
9803
ce3acbe9
TT
98042020-03-13 Tom Tromey <tom@tromey.com>
9805
9806 * valprint.c (value_print): Use scoped_value_mark.
9807
96c7f873
TV
98082020-03-13 Tom de Vries <tdevries@suse.de>
9809
9810 PR symtab/25646
9811 * psymtab.c (partial_symtab::partial_symtab): Don't set
9812 globals_offset and statics_offset. Push element onto
9813 current_global_psymbols and current_static_psymbols stacks.
9814 (concat): New function.
9815 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9816 element from current_global_psymbols and current_static_psymbols
9817 stacks. Concat popped elements to global_psymbols and
9818 static_symbols.
9819 (add_psymbol_to_list): Use current_global_psymbols and
9820 current_static_psymbols stacks.
9821 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9822 current_static_psymbols fields.
9823
6ba0a321
CB
98242020-03-12 Christian Biesinger <cbiesinger@google.com>
9825
9826 * corelow.c (sniff_core_bfd): Remove.
9827 (class core_target) <m_core_vec>: Remove.
9828 (core_target::core_target): Update.
9829 (core_file_fns): Remove.
9830 (deprecated_add_core_fns): Remove.
9831 (default_core_sniffer): Remove.
9832 (sniff_core_bfd): Remove.
9833 (default_check_format): Remove.
9834 (gdb_check_format): Remove.
9835 (core_target_open): Update.
9836 (core_target::get_core_register_section): Update.
9837 (get_core_registers_cb): Update.
9838 (core_target::fetch_registers): Update.
9839 * gdbcore.h (struct core_fns): Remove.
9840 (deprecated_add_core_fns): Remove.
9841 (default_core_sniffer): Remove.
9842 (default_check_format): Remove.
9843
227031b2
TT
98442020-03-12 Tom Tromey <tom@tromey.com>
9845
9846 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9847 CORE_ADDR.
9848 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9849
53807e9f
TT
98502020-03-12 Tom Tromey <tom@tromey.com>
9851
9852 * remote.c (remote_target::download_tracepoint)
9853 (remote_target::enable_tracepoint)
9854 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9855 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9856 sprintf_vma.
9857
64f25102
TT
98582020-03-12 Tom Tromey <tom@tromey.com>
9859
9860 * symfile-mem.c: Update CORE_ADDR size assert.
9861
272cd5a3
SM
98622020-03-12 Simon Marchi <simon.marchi@efficios.com>
9863
9864 * selftest.m4: Move to gdbsupport/.
9865 * acinclude.m4: Update path to selftest.m4.
9866
74cd3f9d
SM
98672020-03-12 Simon Marchi <simon.marchi@efficios.com>
9868
9869 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9870 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9871 gdbarch-selfselftests.c and selftest-arch.c.
9872 (SUBDIR_UNITTESTS_OBS): Rename to...
9873 (SELFTESTS_OBS): ... this.
9874 (COMMON_SFILES): Remove disasm-selftests.c and
9875 gdbarch-selftests.c.
9876 * configure.ac: Don't add selftest-arch.{c,o} to
9877 CONFIG_{SRCS,OBS}.
9878 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9879 preprocessor conditions.
9880
db6878ac
SM
98812020-03-12 Simon Marchi <simon.marchi@efficios.com>
9882
9883 * configure.ac: Don't source bfd/development.sh.
9884 * selftest.m4: Modify comment.
9885 * configure: Re-generate.
9886
4d696a5c
SM
98872020-03-12 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9890 not "true" or "false".
9891 * configure: Re-generate.
9892
8dd8e1c7
CB
98932020-03-12 Christian Biesinger <cbiesinger@google.com>
9894
9895 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9896 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9897 renamed to arm_nbsd_supply_gregset.
9898 (fetch_register): Update to call arm_nbsd_supply_gregset.
9899 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9900 (arm_netbsd_nat_target::fetch_registers): Update.
9901 (fetch_elfcore_registers): Removed.
9902 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9903 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9904 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9905 not require NetBSD system headers.
9906 (arm_nbsd_regset): New struct.
9907 (arm_nbsd_iterate_over_regset_sections): New function.
9908 (arm_netbsd_init_abi_common): Updated to call
9909 set_gdbarch_iterate_over_regset_sections.
9910 * arm-nbsd-tdep.h: New file.
9911
dd69bf7a
KB
99122020-03-11 Kevin Buettner <kevinb@redhat.com>
9913
9914 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9915 recursion.
9916
a0761e34
SM
99172020-03-11 Simon Marchi <simon.marchi@efficios.com>
9918
9919 * configure: Re-generate.
9920
e7a82140
TT
99212020-03-11 Tom Tromey <tromey@adacore.com>
9922
9923 * ada-typeprint.c (print_choices): Fix comment.
9924
dcc050c8
AB
99252020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9926
9927 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9928 previous item in the list, when the list has no items.
9929
1c33af77
TV
99302020-03-11 Tom de Vries <tdevries@suse.de>
9931
9932 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9933 PROP_LOCLIST handling code.
9934
8c95582d
AB
99352020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9936
9937 * buildsym-legacy.c (record_line): Pass extra parameter to
9938 record_line.
9939 * buildsym.c (buildsym_compunit::record_line): Take an extra
9940 parameter, reduce duplication in the line table, and record the
9941 is_stmt flag in the line table.
9942 * buildsym.h (buildsym_compunit::record_line): Add extra
9943 parameter.
9944 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9945 non-statement lines.
9946 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9947 this to the symtab builder.
9948 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9949 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9950 through to dwarf_record_line_1.
9951 * infrun.c (process_event_stop_test): When stepping, don't stop at
9952 a non-statement instruction, and only refresh the step info when
9953 we land in the middle of a line's range. Also add an extra
9954 comment.
9955 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9956 field.
9957 * record-btrace.c (btrace_find_line_range): Only record lines
9958 marked as is-statement.
9959 * stack.c (frame_show_address): Show the frame address if we are
9960 in a non-statement sal.
9961 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9962 (maintenance_print_one_line_table): Print a header for the is_stmt
9963 column, and include is_stmt information in the output.
9964 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9965 preference to non-statements.
9966 (find_pcs_for_symtab_line): Prefer is-statement entries.
9967 (find_line_common): Likewise.
9968 * symtab.h (struct linetable_entry): Add is_stmt field.
9969 (struct symtab_and_line): Likewise.
9970 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9971 arranging the line table.
9972
e4003a34
TV
99732020-03-07 Tom de Vries <tdevries@suse.de>
9974
9975 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9976 DIE.
9977
e8932576
TT
99782020-03-07 Tom Tromey <tom@tromey.com>
9979
9980 * valops.c (value_literal_complex): Remove obsolete comment.
9981 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9982 comment.
9983
29734269
SM
99842020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9985
9986 * infrun.h: Forward-declare thread_info.
9987 (set_step_info): Add thread_info parameter, add doc.
9988 * infrun.c (set_step_info): Add thread_info parameter, move doc
9989 to header.
9990 * infrun.c (process_event_stop_test): Pass thread to
9991 set_step_info call.
9992 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9993 set_step_info.
9994 (prepare_one_step): Add thread_info parameter, pass it to
9995 set_step_frame and prepare_one_step (recursive) call.
9996 (step_1): Pass thread to prepare_one_step call.
9997 (step_command_fsm::should_stop): Pass thread to
9998 prepare_one_step.
9999 (until_next_fsm): Pass thread to set_step_frame call.
10000 (finish_command): Pass thread to set_step_info call.
10001
b7d64b29
HD
100022020-03-06 Hannes Domani <ssbssa@yahoo.de>
10003
10004 * windows-tdep.c (windows_solib_create_inferior_hook):
10005 Check if inferior is running.
10006
09f2921c
TV
100072020-03-06 Tom de Vries <tdevries@suse.de>
10008
10009 * NEWS: Fix "the the".
10010 * ctfread.c: Same.
10011
fd760e79
TV
100122020-03-06 Tom de Vries <tdevries@suse.de>
10013
10014 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10015
20ea4a60
AB
100162020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10017
10018 * .dir-locals.el: Add a comment referencing the other copies of
10019 this file.
10020
0afbabf0
JB
100212020-03-05 John Baldwin <jhb@FreeBSD.org>
10022
10023 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10024 psargs.
10025
842806cb
TBA
100262020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10027
10028 * .gitattributes: New file.
10029
be1e3d3e
TT
100302020-03-04 Tom Tromey <tom@tromey.com>
10031
10032 * symmisc.c (print_symbol_bcache_statistics)
10033 (print_objfile_statistics): Update.
10034 * symfile.c (allocate_symtab): Use intern.
10035 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10036 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10037 macro_cache>: Remove.
10038 <string_cache>: New member.
10039 (struct objfile) <intern>: New methods.
10040 * elfread.c (elf_symtab_read): Use intern.
10041 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10042 (dwarf2_compute_name, dwarf2_physname)
10043 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10044 names.
10045 (guess_partial_die_structure_name): Update.
10046 (partial_die_info::fixup): Intern name.
10047 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10048 name.
10049 (dwarf2_name): Intern name. Update.
10050 * buildsym.c (buildsym_compunit::get_macro_table): Use
10051 string_cache.
10052
4e7625fd
TT
100532020-03-04 Tom Tromey <tom@tromey.com>
10054
10055 * jit.c (bfd_open_from_target_memory): Make "target" const.
10056 * corefile.c (gnutarget): Now const.
10057 * gdbcore.h (gnutarget): Now const.
10058
46f9f931
HD
100592020-03-04 Hannes Domani <ssbssa@yahoo.de>
10060
10061 * NEWS: Mention support for WOW64 processes.
10062 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10063 (amd64_windows_segment_register_p): Remove static.
10064 (_initialize_amd64_windows_nat): Update.
10065 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10066 * i386-windows-nat.c (context_offset): Update.
10067 (i386_mappings): Rename and remove static.
10068 (i386_windows_segment_register_p): Remove static.
10069 (_initialize_i386_windows_nat): Update.
10070 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10071 (STATUS_WX86_SINGLE_STEP): New macro.
10072 (EnumProcessModulesEx): New macro.
10073 (Wow64SuspendThread): New macro.
10074 (Wow64GetThreadContext): New macro.
10075 (Wow64SetThreadContext): New macro.
10076 (Wow64GetThreadSelectorEntry): New macro.
10077 (windows_set_context_register_offsets): Add static.
10078 (windows_set_segment_register_p): Likewise.
10079 (windows_add_thread): Adapt for WOW64 processes.
10080 (windows_fetch_one_register): Likewise.
10081 (windows_nat_target::fetch_registers): Likewise.
10082 (windows_store_one_register): Likewise.
10083 (display_selector): Likewise.
10084 (display_selectors): Likewise.
10085 (handle_exception): Likewise.
10086 (windows_continue): Likewise.
10087 (windows_nat_target::resume): Likewise.
10088 (windows_add_all_dlls): Likewise.
10089 (do_initial_windows_stuff): Likewise.
10090 (windows_nat_target::attach): Likewise.
10091 (windows_get_exec_module_filename): Likewise.
10092 (windows_nat_target::create_inferior): Likewise.
10093 (windows_xfer_siginfo): Likewise.
10094 (_initialize_loadable): Initialize Wow64SuspendThread,
10095 Wow64GetThreadContext, Wow64SetThreadContext,
10096 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10097 * windows-nat.h (windows_set_context_register_offsets):
10098 Remove declaration.
10099 (windows_set_segment_register_p): Likewise.
10100 (i386_windows_segment_register_p): Add declaration.
10101 (amd64_windows_segment_register_p): Likewise.
10102
440cf44e
LM
101032020-03-04 Luis Machado <luis.machado@linaro.org>
10104
10105 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10106 in "info registers" for AArch64/ARM.
10107
10108 The change caused "info registers" to not print GPR's.
10109
10110 gdb/ChangeLog:
10111
10112 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10113
10114 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10115 when reg->group is empty and reggroup is not.
10116
1009d92f
TT
101172020-03-03 Tom Tromey <tromey@adacore.com>
10118
10119 * dwarf2/frame.c (struct dwarf2_frame_cache)
10120 <checked_tailcall_bottom, entry_cfa_sp_offset,
10121 entry_cfa_sp_offset_p>: Remove members.
10122 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10123 (dwarf2_frame_prev_register): Don't call
10124 dwarf2_tailcall_sniffer_first.
10125 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10126 * frame-unwind.c (add_unwinder): New fuction.
10127 (frame_unwind_init): Use it. Add tailcall unwinder.
10128
5e5d66b6
AB
101292020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10130 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10131
10132 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10133 value should be printed as true.
10134
584cf46d
HD
101352020-03-03 Hannes Domani <ssbssa@yahoo.de>
10136
10137 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10138 (windows_init_abi): Set and use windows_so_ops.
10139
7b973adc
SDJ
101402020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10141
10142 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10143 when verifying if dealing with a convenience variable.
10144
bb7b70ab
LM
101452020-03-03 Luis Machado <luis.machado@linaro.org>
10146
10147 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10148
9822cb57
SM
101492020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10150
10151 * infrun.c (gdbarch_supports_displaced_stepping): New.
10152 (use_displaced_stepping): Break up conditions in smaller pieces.
10153 Use gdbarch_supports_displaced_stepping.
10154 (displaced_step_prepare_throw): Use
10155 gdbarch_supports_displaced_stepping.
10156
63e163f2
AB
101572020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10158
10159 * NEWS: Mention new behaviour of the history filename.
10160 * top.c (write_history_p): Add comment.
10161 (show_write_history_p): Add header comment, give a different
10162 message when history writing is on, but the history filename is
10163 empty.
10164 (history_filename): Add comment.
10165 (history_filename_empty): New function.
10166 (show_history_filename): Add header comment, give a different
10167 message when the filename is empty.
10168 (init_history): Compare history_filename against nullptr, and only
10169 read history if the filename is not empty.
10170 (set_history_filename): Add header comment, and only make
10171 non-empty filenames absolute.
10172 (init_main): Make the filename argument to 'set history filename'
10173 optional.
10174
81b86b97
CB
101752020-03-02 Christian Biesinger <cbiesinger@google.com>
10176
10177 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10178 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10179 (fetch_fp_register): Update.
10180 (fetch_fp_regs): Update.
10181 (store_fp_register): Update.
10182 (store_fp_regs): Update.
10183 (arm_netbsd_nat_target::read_description): New function.
10184 (fetch_elfcore_registers): Update.
10185
24ed6739
AB
101862020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10187
10188 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10189 general_thread if the stop reply is missing a thread-id.
10190 (remote_target::process_stop_reply): Use the first non-exited
10191 thread if the target didn't pass a thread-id.
10192 * infrun.c (do_target_wait): Move call to
10193 switch_to_inferior_no_thread to ....
10194 (do_target_wait_1): ... here.
10195
a84bb2a0
JT
101962020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10197
10198 * debuginfod-support.c: Include defs.h first.
10199
658dadf0
TV
102002020-02-28 Tom de Vries <tdevries@suse.de>
10201
10202 * symfile.c (set_initial_language): Use default language for lookup.
10203
4ebe4877
SM
102042020-02-28 Simon Marchi <simon.marchi@efficios.com>
10205
10206 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10207 reader variable, pass `this` to read_cutu_die_from_dwo.
10208
e5da1139
AM
102092020-02-27 Aaron Merey <amerey@redhat.com>
10210
10211 * source.c (open_source_file): Check for nullptr when computing
10212 srcpath.
10213
317f7127
TT
102142020-02-27 Tom Tromey <tromey@adacore.com>
10215
10216 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10217 member.
10218 (dwarf2_add_field): Don't update nfields.
10219 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10220
3104d9ee
AB
102212020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10222
10223 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10224 abs.
10225
b83470bf
TT
102262020-02-26 Tom Tromey <tom@tromey.com>
10227
10228 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10229 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10230 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10231 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10232 per_cu_data.
10233
edfe0a0c
TT
102342020-02-26 Tom Tromey <tom@tromey.com>
10235
10236 * dwarf2/index-write.c (psym_index_map): Change type.
10237 (add_address_entry_worker, write_one_signatured_type)
10238 (recursively_count_psymbols, recursively_write_psymbols)
10239 (class debug_names, psyms_seen_size, write_gdbindex)
10240 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10241
0d79cdc4
AM
102422020-02-26 Aaron Merey <amerey@redhat.com>
10243
10244 * Makefile.in: Handle optional debuginfod support.
10245 * NEWS: Update.
10246 * README: Add --with-debuginfod summary.
10247 * config.in: Regenerate.
10248 * configure: Regenerate.
10249 * configure.ac: Handle optional debuginfod support.
10250 * debuginfod-support.c: debuginfod helper functions.
10251 * debuginfod-support.h: Ditto.
10252 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10253 summary.
10254 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10255 when a dwz file cannot be found.
10256 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10257 debuginfo file cannot be found.
10258 * source.c (open_source_file): Query debuginfod servers when a
10259 source file cannot be found.
10260 * top.c (print_gdb_configuration): Include
10261 --{with,without}-debuginfod in the output.
10262
b65ce565
JG
102632020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10264
10265 * thread.c (thr_try_catch_cmd): Print thread name.
10266
d4c9a4f8
SM
102672020-02-26 Simon Marchi <simon.marchi@efficios.com>
10268
10269 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10270 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10271 dwarf2_fetch_die_type_sect_off): Move to...
10272 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10273 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10274 dwarf2_fetch_die_type_sect_off): ... here.
10275 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10276 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10277 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10278
0dce4280
TV
102792020-02-26 Tom de Vries <tdevries@suse.de>
10280
10281 PR gdb/25603
10282 * symfile.c (set_initial_language): Exit-early if
10283 language_mode == language_mode_manual.
10284
450a1bfc
SM
102852020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10286
10287 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10288 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10289 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10290
9e80cfa1
AB
102912020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10292
10293 * gdbtypes.c (create_array_type_with_stride): Handle negative
10294 array strides.
10295 * valarith.c (value_subscripted_rvalue): Likewise.
10296
09624f1f
LM
102972020-02-25 Luis Machado <luis.machado@linaro.org>
10298
10299 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10300
8cb5117c
SM
103012020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10302
10303 * loc.h (dwarf2_get_die_type): Move to...
10304 * read.h (dwarf2_get_die_type): ... here.
10305 * read.c (dwarf2_get_die_type): Move doc to header.
10306
c325c44e
JB
103072020-02-25 Joel Brobecker <brobecker@adacore.com>
10308
10309 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10310 'gnulib/Makefile.in' to the list.
10311
4ac93832
TT
103122020-02-24 Tom Tromey <tom@tromey.com>
10313
10314 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10315 Remove.
10316 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10317 XOBNEWVEC.
10318
197400e8
TT
103192020-02-24 Tom Tromey <tom@tromey.com>
10320
10321 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10322 New method.
10323 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10324 (dw2_do_instantiate_symtab, dw2_get_file_names)
10325 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10326
76935768
TT
103272020-02-24 Tom Tromey <tom@tromey.com>
10328
10329 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10330 make_scoped_restore.
10331 (dwarf2_psymtab::read_symtab): Don't clear
10332 reading_partial_symbols.
10333
a88ef40d
TV
103342020-02-24 Tom de Vries <tdevries@suse.de>
10335
10336 PR gdb/25592
10337 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10338
c9af6521
TV
103392020-02-24 Tom de Vries <tdevries@suse.de>
10340
10341 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10342 commands layout next/prev/regs.
10343
5707a07a
TT
103442020-02-22 Tom Tromey <tom@tromey.com>
10345
10346 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10347 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10348
3b0fb49e
TT
103492020-02-22 Tom Tromey <tom@tromey.com>
10350
10351 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10352
283be8bf
TT
103532020-02-22 Tom Tromey <tom@tromey.com>
10354
10355 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10356 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10357 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10358 * tui/tui.c (_initialize_tui): Add usage text.
10359
ca793b96
TT
103602020-02-22 Tom Tromey <tom@tromey.com>
10361
10362 * tui/tui-win.c (tui_set_focus_command)
10363 (tui_set_win_height_command): Use error_no_arg.
10364 (_initialize_tui_win): Update help text.
10365 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10366
432b5c40
TT
103672020-02-22 Tom Tromey <tom@tromey.com>
10368
10369 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10370 * tui/tui-disasm.h (struct tui_disasm_window)
10371 <display_start_addr>: Declare.
10372 * tui/tui-source.h (struct tui_source_window)
10373 <display_start_addr>: Declare.
10374 * tui/tui-winsource.h (struct tui_source_window_base)
10375 <show_source_line, display_start_addr>: New methods.
10376 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10377 Rename and move to protected section.
10378 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10379 (tui_source_window_base::do_erase_source_content): Update.
10380 (tui_source_window_base::show_source_line): Now a method.
10381 (tui_source_window_base::show_source_content)
10382 (tui_source_window_base::tui_source_window_base)
10383 (tui_source_window_base::rerender)
10384 (tui_source_window_base::refill)
10385 (tui_source_window_base::do_scroll_horizontal)
10386 (tui_source_window_base::set_is_exec_point_at)
10387 (tui_source_window_base::update_breakpoint_info)
10388 (tui_source_window_base::update_exec_info): Update.
10389 * tui/tui-source.c (tui_source_window::set_contents)
10390 (tui_source_window::showing_source_p)
10391 (tui_source_window::do_scroll_vertical)
10392 (tui_source_window::location_matches_p)
10393 (tui_source_window::line_is_displayed): Update.
10394 (tui_source_window::display_start_addr): New method.
10395 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10396 (tui_disasm_window::do_scroll_vertical)
10397 (tui_disasm_window::location_matches_p): Update.
10398 (tui_disasm_window::display_start_addr): New method.
10399
01b1af32
TT
104002020-02-22 Tom Tromey <tom@tromey.com>
10401
10402 * NEWS: Add entry for gdb.register_window_type.
10403 * tui/tui-layout.h (window_factory): New typedef.
10404 (tui_register_window): Declare.
10405 * tui/tui-layout.c (saved_tui_windows): New global.
10406 (tui_apply_current_layout): Use it.
10407 (tui_register_window): New function.
10408 * python/python.c (do_start_initialization): Call
10409 gdbpy_initialize_tui.
10410 (python_GdbMethods): Add "register_window_type" function.
10411 * python/python-internal.h (gdbpy_register_tui_window)
10412 (gdbpy_initialize_tui): Declare.
10413 * python/py-tui.c: New file.
10414 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10415
fc96d20b
TT
104162020-02-22 Tom Tromey <tom@tromey.com>
10417
10418 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10419
935c78c0
TT
104202020-02-22 Tom Tromey <tom@tromey.com>
10421
10422 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10423 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10424 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10425 (tui_set_win_focus_to): Move from tui-win.c.
10426
0240c8f1
TT
104272020-02-22 Tom Tromey <tom@tromey.com>
10428
10429 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10430 functions.
10431 (known_window_types): New global.
10432 (tui_get_window_by_name): Reimplement.
10433 (initialize_known_windows): New function.
10434 (validate_window_name): Rewrite.
10435 (_initialize_tui_layout): Call initialize_known_windows.
10436
fdb01f0c
TT
104372020-02-22 Tom Tromey <tom@tromey.com>
10438
10439 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10440 Remove constants.
10441 * tui/tui-winsource.h (struct tui_source_window_base)
10442 <tui_source_window_base>: Remove parameter.
10443 * tui/tui-winsource.c
10444 (tui_source_window_base::tui_source_window_base): Remove
10445 parameter.
10446 (tui_source_window_base::refill): Update.
10447 * tui/tui-stack.h (struct tui_locator_window)
10448 <tui_locator_window>: Update.
10449 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10450 Default the constructor.
10451 * tui/tui-regs.h (struct tui_data_item_window)
10452 <tui_data_item_window>: Default the constructor.
10453 (struct tui_data_window) <tui_data_window>: Likewise.
10454 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10455 Default the constructor.
10456 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10457 Default the constructor.
10458 <type>: Remove.
10459 (struct tui_win_info) <tui_win_info>: Default the constructor.
10460 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10461 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10462 Default the constructor.
10463
865a5aec
TT
104642020-02-22 Tom Tromey <tom@tromey.com>
10465
10466 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10467 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10468 * tui/tui-win.c (tui_resize_all): Don't call
10469 tui_delete_invisible_windows.
10470 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10471 done.
10472 (tui_set_layout): Update.
10473 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10474 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10475 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10476
e098d18c
TT
104772020-02-22 Tom Tromey <tom@tromey.com>
10478
10479 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10480 correctly.
10481
eb9c8874
TT
104822020-02-22 Tom Tromey <tom@tromey.com>
10483
10484 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10485
7eed1a8e
TT
104862020-02-22 Tom Tromey <tom@tromey.com>
10487
10488 * tui/tui-winsource.h (struct tui_source_window_iterator)
10489 <inner_iterator>: New etytypedef.
10490 <tui_source_window_iterator>: Take "end" parameter.
10491 <tui_source_window_iterator>: Take iterator.
10492 <operator*, advance>: Update.
10493 <m_iter>: Change type.
10494 <m_end>: New field.
10495 (struct tui_source_windows) <begin, end>: Update.
10496 * tui/tui-layout.c (tui_windows): New global.
10497 (tui_apply_current_layout): Clear tui_windows.
10498 (tui_layout_window::apply): Update tui_windows.
10499 * tui/tui-data.h (tui_windows): Declare.
10500 (all_tui_windows): Now inline function.
10501 (class tui_window_iterator, struct all_tui_windows): Remove.
10502
7c043ba6
TT
105032020-02-22 Tom Tromey <tom@tromey.com>
10504
10505 PR tui/17850:
10506 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10507 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10508 "height" argument.
10509 (class tui_layout_window) <get_sizes>: Likewise.
10510 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10511 argument.
10512 <get_sizes>: Add "height" argument.
10513 <m_vertical>: New field.
10514 * tui/tui-layout.c (tui_layout_split::clone): Update.
10515 (tui_layout_split::get_sizes): Add "height" argument.
10516 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10517 (tui_new_layout_command): Parse "-horizontal".
10518 (_initialize_tui_layout): Update help string.
10519 (tui_layout_split::specification): Add "-horizontal" when needed.
10520 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10521 argument.
10522 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10523 New methods.
10524
6bc56648
TT
105252020-02-22 Tom Tromey <tom@tromey.com>
10526
10527 * tui/tui-layout.h (enum tui_adjust_result): New.
10528 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10529 (class tui_layout_window) <adjust_size>: Return
10530 tui_adjust_result. Rewrite.
10531 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10532 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10533
c22fef7e
TT
105342020-02-22 Tom Tromey <tom@tromey.com>
10535
10536 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10537 parameter and return types.
10538 (class tui_layout_base) <specification>: Add "depth".
10539 (class tui_layout_window) <specification>: Add "depth".
10540 (class tui_layout_split) <specification>: Add "depth".
10541 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10542 and return types.
10543 (tui_new_layout_command): Parse sub-layouts.
10544 (_initialize_tui_layout): Update help string.
10545 (tui_layout_window::specification): Add "depth".
10546 (add_layout_command): Update.
10547
ee325b61
TT
105482020-02-22 Tom Tromey <tom@tromey.com>
10549
10550 * NEWS: Add "tui new-layout" item.
10551 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10552 Add new-layout command to help text.
10553 (validate_window_name): New function.
10554 (tui_new_layout_command): New function.
10555 (_initialize_tui_layout): Register "new-layout".
10556 (tui_layout_window::specification): New method.
10557 (tui_layout_window::specification): New method.
10558 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10559 method.
10560 (class tui_layout_window) <specification>: New method.
10561 (class tui_layout_split) <specification>: New method.
10562
416eb92d
TT
105632020-02-22 Tom Tromey <tom@tromey.com>
10564
10565 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10566 * tui/tui-win.c (window_name_completer): Update comment.
10567 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10568 Declare method.
10569 (class tui_layout_window) <replace_window>: Likewise.
10570 (class tui_layout_split) <replace_window>: Likewise.
10571 (tui_set_layout): Don't declare.
10572 (tui_set_initial_layout): Declare function.
10573 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10574 (asm_regs_layout): New globals.
10575 (tui_current_layout, show_layout): Remove.
10576 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10577 (find_layout, tui_apply_layout): New function.
10578 (layout_completer): Remove.
10579 (tui_next_layout): Reimplement.
10580 (tui_next_layout_command): New function.
10581 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10582 (tui_regs_layout): Reimplement.
10583 (tui_regs_layout_command): New function.
10584 (extract_display_start_addr): Rewrite.
10585 (next_layout, prev_layout): Remove.
10586 (tui_layout_window::replace_window): New method.
10587 (tui_layout_split::replace_window): New method.
10588 (destroy_layout): New function.
10589 (layout_list): New global.
10590 (add_layout_command): New function.
10591 (initialize_layouts): Update.
10592 (tui_layout_command): New function.
10593 (_initialize_tui_layout): Install "layout" commands.
10594 * tui/tui-data.h (enum tui_layout_type): Remove.
10595 (tui_current_layout): Don't declare.
10596
0dbc2fc7
TT
105972020-02-22 Tom Tromey <tom@tromey.com>
10598
10599 * tui/tui-regs.c (tui_reg_layout): Remove.
10600 (tui_reg_command): Use tui_regs_layout.
10601 * tui/tui-layout.h (tui_reg_command): Declare.
10602 * tui/tui-layout.c (tui_reg_command): New function.
10603
5afe342e
TT
106042020-02-22 Tom Tromey <tom@tromey.com>
10605
10606 * tui/tui.c (tui_rl_delete_other_windows): Call
10607 tui_remove_some_windows.
10608 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10609 Declare method.
10610 (class tui_layout_window) <remove_windows>: New method.
10611 (class tui_layout_split) <remove_windows>: Declare.
10612 (tui_remove_some_windows): Declare.
10613 * tui/tui-layout.c (tui_remove_some_windows): New function.
10614 (tui_layout_split::remove_windows): New method.
10615
427326a8
TT
106162020-02-22 Tom Tromey <tom@tromey.com>
10617
10618 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10619 * tui/tui-layout.h (tui_next_layout): Declare.
10620 * tui/tui-layout.c (tui_next_layout): New function.
10621
3fe12b6d
TT
106222020-02-22 Tom Tromey <tom@tromey.com>
10623
10624 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10625 correct coordinates.
10626
59b8b5d2
TT
106272020-02-22 Tom Tromey <tom@tromey.com>
10628
10629 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10630 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10631 DATA_WIN case.
10632
2a3d458b
TT
106332020-02-22 Tom Tromey <tom@tromey.com>
10634
10635 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10636 TUI_DISASM_WIN, not tui_win_list.
10637
3f0cbb04
TT
106382020-02-22 Tom Tromey <tom@tromey.com>
10639
10640 * valprint.c (generic_val_print_enum_1)
10641 (val_print_type_code_flags): Style member names.
10642 * rust-lang.c (val_print_struct, rust_print_enum)
10643 (rust_print_struct_def, rust_internal_print_type): Style member
10644 names.
10645 * p-valprint.c (pascal_object_print_value_fields): Style member
10646 names. Only call fprintf_symbol_filtered for static members.
10647 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10648 * f-valprint.c (f_val_print): Style member names.
10649 * f-typeprint.c (f_type_print_base): Style member names.
10650 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10651 call fprintf_symbol_filtered for static members.
10652 (cp_print_class_member): Style member names.
10653 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10654 member names.
10655 * ada-valprint.c (ada_print_scalar): Style enum names.
10656 (ada_val_print_enum): Likewise.
10657 * ada-typeprint.c (print_enum_type): Style enum names.
10658
d4d947ae
TT
106592020-02-21 Tom Tromey <tom@tromey.com>
10660
10661 * psympriv.h (struct partial_symtab): Update comment.
10662
e94e944b
TT
106632020-02-21 Tom Tromey <tromey@adacore.com>
10664
10665 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10666 type is CORE_ADDR.
10667
1eb73179
TV
106682020-02-21 Tom de Vries <tdevries@suse.de>
10669
10670 PR gdb/25534
10671 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10672 if dependencies[i]->user != NULL.
10673
4f180d53
AT
106742020-02-21 Ali Tamur <tamur@google.com>
10675
10676 * dwarf2/read.c (dwarf2_name): Add null check.
10677
22b6cd70
TT
106782020-02-20 Tom Tromey <tom@tromey.com>
10679
10680 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10681 ">=", in binary search.
10682 (dwarf2_find_containing_comp_unit): New overload.
10683 (run_test): New self-test.
10684 (_initialize_dwarf2_read): Register new test.
10685
bd0cf5a6
NC
106862020-02-20 Nelson Chu <nelson.chu@sifive.com>
10687
10688 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10689 * riscv-tdep.h: Likewise.
10690 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10691 rv32-only CSR.
10692 * features/riscv/64bit-csr.xml: Regenerated.
10693
3f702acd
SDJ
106942020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10695 Tom Tromey <tom@tromey.com>
10696
10697 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10698 of 'fputc_unfiltered'.
10699 (putchar_unfiltered): Call 'fputc_unfiltered'.
10700 (fputc_unfiltered): Call 'fputs_unfiltered'.
10701
d13c7322
AB
107022020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10703
10704 * config.in: Regenerate.
10705 * configure: Regenerate.
10706 * configure.ac: Add --with-python-libdir option.
10707 * main.c: Use WITH_PYTHON_LIBDIR.
10708
869d8950
TT
107092020-02-19 Tom Tromey <tom@tromey.com>
10710
10711 * symtab.c (general_symbol_info::compute_and_set_names): Use
10712 obstack_strndup. Simplify call to symbol_set_demangled_name.
10713
298e9637
SM
107142020-02-19 Simon Marchi <simon.marchi@efficios.com>
10715
10716 * dwarf2/read.c (allocate_signatured_type_table,
10717 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10718 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10719 Remove objfile parameter, update all callers.
10720
08410482
DE
107212020-02-19 Doug Evans <dje@google.com>
10722
10723 PR rust/25535
10724 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10725 rust_enum_variant calculation.
10726
dfdeeca1
TT
107272020-02-19 Tom Tromey <tromey@adacore.com>
10728
10729 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10730
2ef5453b
TT
107312020-02-19 Tom Tromey <tromey@adacore.com>
10732
10733 * ada-lang.c (cache_symbol): Use obstack_strdup.
10734
9f1528a1
AB
107352020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10736
10737 * configure: Regenerate.
10738
d3c22fa8
TT
107392020-02-19 Tom Tromey <tromey@adacore.com>
10740
10741 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10742 NULL check.
10743
bf84f706
MR
107442020-02-19 Maciej W. Rozycki <macro@wdc.com>
10745
10746 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10747
d1c9b20f
AB
107482020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10749
10750 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10751 if GDBSERVER is not defined.
10752 (riscv_tdesc_cache): Likewise, also store const target_desc.
10753 (STATIC_IN_GDB): Define.
10754 (riscv_create_target_description): Update declaration with
10755 STATIC_IN_GDB.
10756 (riscv_lookup_target_description): New function, only define if
10757 GDBSERVER is not defined.
10758 * arch/riscv.h (riscv_create_target_description): Declare only
10759 when GDBSERVER is defined.
10760 (riscv_lookup_target_description): New declaration when GDBSERVER
10761 is not defined.
10762 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10763 (riscv_linux_read_features): ...this, and return
10764 riscv_gdbarch_features instead of target_desc.
10765 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10766 (riscv_linux_read_description): Rename to...
10767 (riscv_linux_read_features): ...this.
10768 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10769 Update to use riscv_gdbarch_features and
10770 riscv_lookup_target_description.
10771 * riscv-tdep.c (riscv_find_default_target_description): Use
10772 riscv_lookup_target_description instead of
10773 riscv_create_target_description.
10774
373d7ac0
SM
107752020-02-18 Simon Marchi <simon.marchi@efficios.com>
10776
10777 * valprint.c (generic_val_print_enum_1): When printing a flag
10778 enum with value 0 and there is no enumerator with value 0, print
10779 just "0" instead of "(unknown: 0x0)".
10780
b29a2df0
SM
107812020-02-18 Simon Marchi <simon.marchi@efficios.com>
10782
10783 * valprint.c (generic_val_print_enum_1): Print unknown part of
10784 flag enum in hex.
10785
6740f0cc
SM
107862020-02-18 Simon Marchi <simon.marchi@efficios.com>
10787
10788 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10789 flag enums to contain duplicate enumerators.
10790 * valprint.c (generic_val_print_enum_1): Update comment.
10791
edd45eb0
SM
107922020-02-18 Simon Marchi <simon.marchi@efficios.com>
10793
10794 * dwarf2/read.c: Include "count-one-bits.h".
10795 (update_enumeration_type_from_children): If an enumerator has
10796 multiple bits set, don't treat the enumeration as a "flag enum".
10797 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10798 of flag enums have 0 or 1 bit set.
10799
6d0cf446
BE
108002020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10801
10802 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10803 conversion.
10804 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10805 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10806 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10807 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10808 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10809
7001c1b7
SM
108102020-02-18 Simon Marchi <simon.marchi@efficios.com>
10811
10812 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10813
fdb61c6c
SM
108142020-02-14 Simon Marchi <simon.marchi@efficios.com>
10815
10816 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10817 displaced_step_closure_up.
10818 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10819 (struct displaced_step_closure_up):
10820 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10821 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10822 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10823 Likewise.
10824 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10825 * gdbarch.c, gdbarch.h: Re-generate.
10826 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10827 displaced_step_closure_up.
10828 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10829 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10830 * infrun.h (displaced_step_closure_up): New type alias.
10831 (struct displaced_step_inferior_state) <step_closure>: Change
10832 type to displaced_step_closure_up.
10833 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10834 displaced_step_closure_up.
10835 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10836
a4a38eb4
TT
108372020-02-14 Tom Tromey <tom@tromey.com>
10838
10839 * minidebug.c (gnu_debug_key): New global.
10840 (find_separate_debug_file_in_section): Use it.
10841
e8217e61
SM
108422020-02-14 Simon Marchi <simon.marchi@efficios.com>
10843
10844 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10845 std::unique_ptr.
10846 * gdbarch.c: Re-generate.
10847 * gdbarch.h: Re-generate.
10848 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10849 change.
10850 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10851 type to std::unique_ptr.
10852 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10853 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10854 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10855 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10856 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10857 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10858 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10859 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10860 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10861
d8d83535
SM
108622020-02-14 Simon Marchi <simon.marchi@efficios.com>
10863
10864 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10865 std::unique_ptr.
10866 (displaced_step_clear): Rename to...
10867 (displaced_step_reset): ... this. Just call displaced->reset ().
10868 (displaced_step_clear_cleanup): Rename to...
10869 (displaced_step_reset_cleanup): ... this.
10870 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10871 (displaced_step_fixup): Likewise.
10872 (resume_1): Likewise.
10873 (handle_inferior_event): Restore child's memory before calling
10874 displaced_step_fixup on the parent.
10875 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10876 to std::unique_ptr.
10877 <step_closure>: Change type to std::unique_ptr.
10878
5f661e03
SM
108792020-02-14 Simon Marchi <simon.marchi@efficios.com>
10880
10881 * arm-tdep.c: Include count-one-bits.h.
10882 (cleanup_block_store_pc): Use count_one_bits.
10883 (cleanup_block_load_pc): Use count_one_bits.
10884 (arm_copy_block_xfer): Use count_one_bits.
10885 (thumb2_copy_block_xfer): Use count_one_bits.
10886 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10887 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10888 (thumb_get_next_pcs_raw): Use count_one_bits.
10889 (arm_get_next_pcs_raw): Use count_one_bits_l.
10890 * arch/arm.c (bitcount): Remove.
10891 * arch/arm.h (bitcount): Remove.
10892
8084e579
TT
108932020-02-14 Tom Tromey <tromey@adacore.com>
10894
10895 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10896 Update.
10897 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10898 * dwarf2/loc.c (call_site_find_chain_1): Return
10899 unique_xmalloc_ptr.
10900 (call_site_find_chain): Likewise.
10901
258bf0ee
RB
109022020-02-14 Richard Biener <rguenther@suse.de>
10903
10904 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10905 on expression with division operators.
10906
f98a8458
AKS
109072020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10908
10909 * MAINTAINERS (Write After Approval): Adding myself.
10910
d1437c0e
TT
109112020-02-12 Tom Tromey <tom@tromey.com>
10912
10913 * event-loop.c (event_data, gdb_event, event_handler_func):
10914 Remove.
10915
3d4560f7
TT
109162020-02-12 Tom Tromey <tom@tromey.com>
10917
10918 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10919 (dwarf2_frame_objfile_data): Add comment.
10920 (find_comp_unit, set_comp_unit): New functions.
10921 (dwarf2_frame_find_fde): Use find_comp_unit.
10922 (dwarf2_build_frame_info): Use set_comp_unit.
10923
21982304
TT
109242020-02-12 Tom Tromey <tom@tromey.com>
10925
10926 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10927 (comp_unit): Don't initialize objfile.
10928 (execute_cfa_program): Add text_offset parameter.
10929 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10930 (dwarf2_frame_cache): Update.
10931 (dwarf2_build_frame_info): Don't set "objfile" member.
10932
4debb237
TT
109332020-02-12 Tom Tromey <tom@tromey.com>
10934
10935 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10936 (decode_frame_entry): Likewise.
10937 (dwarf2_build_frame_info): Update.
10938
0d404d44
TT
109392020-02-12 Tom Tromey <tom@tromey.com>
10940
10941 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10942 (decode_frame_entry_1): Use the comp_unit obstack.
10943
a7a3ae5c
TT
109442020-02-12 Tom Tromey <tom@tromey.com>
10945
10946 * dwarf2/frame.c (struct comp_unit): Add initializers and
10947 constructor.
10948 (dwarf2_frame_objfile_data): Store a comp_unit.
10949 (dwarf2_frame_find_fde): Update.
10950 (dwarf2_build_frame_info): Use "new".
10951
a9d65418
TT
109522020-02-12 Tom Tromey <tom@tromey.com>
10953
10954 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10955 (dwarf2_fde_table): Typedef for std::vector.
10956 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10957 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10958 (decode_frame_entry): Update.
10959 (dwarf2_build_frame_info): Use "new".
10960
7559c217
CB
109612020-02-12 Christian Biesinger <cbiesinger@google.com>
10962
10963 * arm-tdep.c (arm_gdbarch_init): Update.
10964 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10965 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10966 have_neon, is_m>: Change to bool.
10967
aeefc73c
CB
109682020-02-12 Christian Biesinger <cbiesinger@google.com>
10969
10970 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10971
d27b8e5f
TT
109722020-02-12 Tom Tromey <tom@tromey.com>
10973
10974 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10975
cd5900f3
HD
109762020-02-12 Hannes Domani <ssbssa@yahoo.de>
10977
10978 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10979 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10980
f056b22b
TT
109812020-02-11 Tom Tromey <tom@tromey.com>
10982
10983 * psymtab.h: Update comment.
10984
f92ff6b5
TT
109852020-02-11 Tom Tromey <tom@tromey.com>
10986
10987 * gdb_obstack.h (struct auto_obstack): Use
10988 DISABLE_COPY_AND_ASSIGN.
10989
3fd6912b
TT
109902020-02-11 Tom Tromey <tom@tromey.com>
10991
10992 * dwarf2/frame.h (struct objfile): Don't forward declare.
10993
69ed9b74
CB
109942020-02-11 Christian Biesinger <cbiesinger@google.com>
10995
10996 * cris-tdep.c (cris_supply_gregset): Change signature to match
10997 what struct regset expects.
10998 (cris_regset): New struct.
10999 (fetch_core_registers): Remove.
11000 (cris_iterate_over_regset_sections): New function.
11001 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11002 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11003
bda874f6
CB
110042020-02-11 Christian Biesinger <cbiesinger@google.com>
11005
11006 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11007 registers.
11008
754e1564
CB
110092020-02-11 Christian Biesinger <cbiesinger@google.com>
11010
11011 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11012
8ddd8e0e
SM
110132020-02-11 Simon Marchi <simon.marchi@efficios.com>
11014
11015 * configure: Re-generate.
11016
898e7f60
SM
110172020-02-11 Simon Marchi <simon.marchi@efficios.com>
11018
11019 * configure: Re-generate.
11020
58df732b
SM
110212020-02-11 Simon Marchi <simon.marchi@efficios.com>
11022
11023 * acinclude: Update warning.m4 path.
11024 * warning.m4: Move to gdbsupport.
11025
da5bd37e
TT
110262020-02-11 Tom Tromey <tromey@adacore.com>
11027
11028 * remote.c (remote_console_output): Update.
11029 * printcmd.c (printf_command): Update.
11030 * event-loop.c (gdb_wait_for_event): Update.
11031 * linux-nat.c (sigchld_handler): Update.
11032 * remote-sim.c (gdb_os_write_stdout): Update.
11033 (gdb_os_flush_stdout): Update.
11034 (gdb_os_flush_stderr): Update.
11035 (gdb_os_write_stderr): Update.
11036 * exceptions.c (print_exception): Update.
11037 * remote-fileio.c (remote_fileio_func_read): Update.
11038 (remote_fileio_func_write): Update.
11039 * tui/tui.c (tui_enable): Update.
11040 * tui/tui-interp.c (tui_interp::init): Update.
11041 * utils.c (init_page_info): Update.
11042 (putchar_unfiltered, fputc_unfiltered): Update.
11043 (gdb_flush): Update.
11044 (emit_style_escape): Update.
11045 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11046 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11047 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11048 (stderr_file::write): Update.
11049 (stderr_file::puts): Update.
11050 * ui-file.h (ui_file_isatty, ui_file_write)
11051 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11052 (ui_file_puts): Don't declare.
11053
85f0dd3c
TV
110542020-02-10 Tom de Vries <tdevries@suse.de>
11055
11056 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11057 sentinel to char *.
11058
2e927613
TV
110592020-02-09 Tom de Vries <tdevries@suse.de>
11060
11061 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11062 filename if it matches "<artificial>".
11063
6bafc845
HD
110642020-02-09 Hannes Domani <ssbssa@yahoo.de>
11065
11066 * windows-tdep.c (struct enum_value_name): New struct.
11067 (create_enum): New function.
11068 (windows_get_siginfo_type): Create and use enum types.
11069
7928d571
HD
110702020-02-09 Hannes Domani <ssbssa@yahoo.de>
11071
11072 * NEWS: Mention $_siginfo support for Windows.
11073 * windows-nat.c (handle_exception): Set siginfo_er.
11074 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11075 (windows_xfer_siginfo): New function.
11076 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11077 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11078 (init_windows_gdbarch_data): New function.
11079 (get_windows_gdbarch_data): New function.
11080 (windows_get_siginfo_type): New function.
11081 (windows_init_abi): Register windows_get_siginfo_type.
11082 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11083
6751ebae
TT
110842020-02-08 Tom Tromey <tom@tromey.com>
11085
11086 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11087 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11088 <keep>: Declare method.
11089 <m_keep>: Remove member.
11090 <~cutu_reader>: Remove.
11091 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11092 (cutu_reader::cutu_reader): Update.
11093 (cutu_reader::keep): Rename from ~cutu_reader.
11094 (process_psymtab_comp_unit, build_type_psymtabs_1)
11095 (process_skeletonless_type_unit, load_partial_comp_unit)
11096 (load_full_comp_unit, dwarf2_read_addr_index)
11097 (read_signatured_type): Update.
11098
135f5437
TT
110992020-02-08 Tom Tromey <tom@tromey.com>
11100
11101 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11102 "want_partial_unit" parameter.
11103 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11104 Inline check for DW_TAG_partial_unit.
11105 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11106
9f66ff1c
TT
111072020-02-08 Tom Tromey <tom@tromey.com>
11108
11109 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11110 read.c.
11111 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11112 read.c.
11113
c8a7a66f
TT
111142020-02-08 Tom Tromey <tom@tromey.com>
11115
11116 * dwarf2/read.c (read_address): Move to comp-unit.c.
11117 (dwarf2_rnglists_process, dwarf2_ranges_process)
11118 (read_attribute_value, dwarf_decode_lines_1)
11119 (var_decode_location, decode_locdesc): Update.
11120 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11121 read.c. Remove "cu" parameter.
11122 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11123 method.
11124
8266302d
TT
111252020-02-08 Tom Tromey <tom@tromey.com>
11126
11127 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11128 (read_indirect_line_string): Update.
11129 * dwarf2/comp-unit.c (read_offset): Remove.
11130 (read_comp_unit_head): Update.
11131 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11132 method.
11133 (read_offset): Don't declare.
11134
4057dfde
TT
111352020-02-08 Tom Tromey <tom@tromey.com>
11136
11137 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11138 * dwarf2/read.c (struct comp_unit_head): Move to
11139 dwarf2/comp-unit.h.
11140 (enum class rcuh_kind): Move to comp-unit.h.
11141 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11142 (read_comp_unit_head, error_check_comp_unit_head)
11143 (read_and_check_comp_unit_head): Move to comp-unit.c.
11144 (read_offset, dwarf_unit_type_name): Likewise.
11145 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11146 (cutu_reader::cutu_reader, read_call_site_scope)
11147 (find_partial_die, follow_die_offset): Update.
11148 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11149
24aa364d
TT
111502020-02-08 Tom Tromey <tom@tromey.com>
11151
11152 * dwarf2/read.c (read_offset_1): Move to leb.c.
11153 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11154 (dwarf_decode_macro_bytes): Update.
11155 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11156 * dwarf2/leb.h (read_offset): Declare.
11157
2c7d5afc
TT
111582020-02-08 Tom Tromey <tom@tromey.com>
11159
11160 * dwarf2/read.c (dwarf2_section_size): Remove.
11161 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11162 Update.
11163 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11164
4075cb26
TT
111652020-02-08 Tom Tromey <tom@tromey.com>
11166
11167 * dwarf2/read.c (read_initial_length): Move to leb.c.
11168 * dwarf2/leb.h (read_initial_length): Declare.
11169 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11170 handle_nonstd parameter.
11171 * dwarf2/frame.c (read_initial_length): Remove.
11172 (decode_frame_entry_1): Update.
11173
09ba997f
TT
111742020-02-08 Tom Tromey <tom@tromey.com>
11175
11176 * dwarf2/loc.c (dwarf2_find_location_expression)
11177 (dwarf_evaluate_loc_desc::get_tls_address)
11178 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11179 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11180 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11181 (dwarf2_compile_property_to_c)
11182 (dwarf2_loc_desc_get_symbol_read_needs)
11183 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11184 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11185 (loclist_describe_location, loclist_tracepoint_var_ref)
11186 (loclist_generate_c_location): Update.
11187 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11188 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11189 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11190 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11191 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11192 (dwarf2_per_cu_data::addr_size)
11193 (dwarf2_per_cu_data::ref_addr_size)
11194 (dwarf2_per_cu_data::text_offset)
11195 (dwarf2_per_cu_data::addr_type): Now methods.
11196 (per_cu_header_read_in): Make per_cu "const".
11197 (dwarf2_version): Remove.
11198 (dwarf2_per_cu_data::int_type): Now a method.
11199 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11200 (set_die_type, read_array_type, read_subrange_index_type)
11201 (read_tag_string_type, read_subrange_type): Update.
11202 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11203 offset_size, ref_addr_size, text_offset, addr_type, version,
11204 objfile, int_type, addr_sized_int_type>: Declare methods.
11205
96c738c0
TT
112062020-02-08 Tom Tromey <tom@tromey.com>
11207
11208 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11209 Move earlier.
11210
8fdd972c
TT
112112020-02-08 Tom Tromey <tom@tromey.com>
11212
11213 * dwarf2/read.h (dwarf_line_debug): Declare.
11214 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11215 * dwarf2/read.c: Move line_header code to new files.
11216 (dwarf_line_debug): No longer static.
11217 * dwarf2/line-header.c: New file.
11218 * dwarf2/line-header.h: New file.
11219
03075812
TT
112202020-02-08 Tom Tromey <tom@tromey.com>
11221
11222 * dwarf2/read.c (struct line_header) <file_full_name,
11223 file_file_name>: Return unique_xmalloc_ptr.
11224 (line_header::file_file_name): Update.
11225 (line_header::file_full_name): Update.
11226 (dw2_get_file_names_reader): Update.
11227 (macro_start_file): Update.
11228
bb822404
TT
112292020-02-08 Tom Tromey <tom@tromey.com>
11230
11231 * dwarf2/read.c (struct line_header) <file_full_name,
11232 file_file_name>: Declare methods.
11233 (dw2_get_file_names_reader): Update.
11234 (file_file_name): Now a method.
11235 (file_full_name): Likewise.
11236 (macro_start_file): Update.
11237
009b64fc
TT
112382020-02-08 Tom Tromey <tom@tromey.com>
11239
11240 * dwarf2/read.c (dwarf_always_disassemble)
11241 (show_dwarf_always_disassemble): Move to loc.c.
11242 (_initialize_dwarf2_read): Move "always-disassemble" registration
11243 to loc.c.
11244 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11245 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11246 static.
11247 (show_dwarf_always_disassemble): Move from read.c.
11248 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11249
5895093f
TT
112502020-02-08 Tom Tromey <tom@tromey.com>
11251
11252 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11253 (create_quick_file_names_table): Return htab_up.
11254 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11255 Update.
11256 * dwarf2/read.h (struct dwarf2_per_objfile)
11257 <quick_file_names_table>: Now htab_up.
11258
b3b32279
TT
112592020-02-08 Tom Tromey <tom@tromey.com>
11260
11261 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11262
1d33d811
TT
112632020-02-08 Tom Tromey <tom@tromey.com>
11264
11265 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11266 Rewrite.
11267 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11268 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11269 (abbrev_table::abbrev_table): No longer inline.
11270 (ABBREV_HASH_SIZE): Remove.
11271 (abbrev_table::m_abbrevs): Now an htab_up.
11272
86de1d91
TT
112732020-02-08 Tom Tromey <tom@tromey.com>
11274
11275 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11276 (cutu_reader): Update.
11277 (build_type_psymtabs_1): Update.
11278 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11279 (abbrev_table::alloc_abbrev): Update.
11280 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11281 (abbrev_table::read): New static method, renamed from
11282 abbrev_table_read_table.
11283 (abbrev_table::alloc_abbrev)
11284 (abbrev_table::add_abbrev): Now private.
11285 (abbrev_table::abbrev_table): Now private.
11286 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11287
0335378b
TT
112882020-02-08 Tom Tromey <tom@tromey.com>
11289
11290 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11291 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11292 htab_up.
11293
48b490f2
TT
112942020-02-08 Tom Tromey <tom@tromey.com>
11295
11296 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11297 htab_up.
11298 (lookup_dwo_unit_in_dwp): Update.
11299 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11300 on obstack.
11301
bc68fb19
TT
113022020-02-08 Tom Tromey <tom@tromey.com>
11303
11304 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11305 obstack.
11306
d15acc42
TT
113072020-02-08 Tom Tromey <tom@tromey.com>
11308
11309 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11310 line_header_hash.
11311 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11312 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11313 Change type to htab_up.
11314
eaa5fa8b
TT
113152020-02-08 Tom Tromey <tom@tromey.com>
11316
11317 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11318 htab_up. Don't allocate on obstack.
11319 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11320 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11321 Change type to htab_up.
11322
b0b6a987
TT
113232020-02-08 Tom Tromey <tom@tromey.com>
11324
11325 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11326 Change type to htab_up.
11327 * dwarf2/read.c (create_signatured_type_table_from_index)
11328 (create_signatured_type_table_from_debug_names)
11329 (create_all_type_units, add_type_unit)
11330 (lookup_dwo_signatured_type, lookup_signatured_type)
11331 (process_skeletonless_type_unit): Update.
11332 (create_debug_type_hash_table, create_debug_types_hash_table):
11333 Change type of types_htab.
11334 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11335 htab_up. Don't allocate on obstack.
11336 (create_cus_hash_table): Change type of cus_htab parameter.
11337 (struct dwo_file) <cus, tus>: Now htab_up.
11338 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11339 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11340 (queue_and_load_all_dwo_tus): Update.
11341 * dwarf2/index-write.c (write_gdbindex): Update.
11342 (write_debug_names): Update.
11343
39856def
TT
113442020-02-08 Tom Tromey <tom@tromey.com>
11345
11346 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11347 dwarf2/read.c. Remove "next" member. Add constructor ntad
11348 destructor.
11349 (struct dwarf2_per_objfile) <queue>: New member.
11350 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11351 dwarf2/read.h.
11352 (dwarf2_queue, dwarf2_queue_tail): Remove.
11353 (class dwarf2_queue_guard): Add parameter to constructor. Use
11354 DISABLE_COPY_AND_ASSIGN.
11355 <m_per_objfile>: New member.
11356 <~dwarf2_queue_guard>: Rewrite.
11357 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11358 Update.
11359 (~dwarf2_queue_item): New.
11360
3e225074
TT
113612020-02-08 Tom Tromey <tom@tromey.com>
11362
11363 * dwarf2/read.c (struct die_info) <has_children>: New member.
11364 (dw2_get_file_names_reader): Remove has_children.
11365 (dw2_get_file_names): Update.
11366 (read_cutu_die_from_dwo): Remove has_children.
11367 (cutu_reader::init_tu_and_read_dwo_dies)
11368 (cutu_reader::cutu_reader): Update.
11369 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11370 Remove has_children.
11371 (build_type_psymtabs_1, process_skeletonless_type_unit)
11372 (load_partial_comp_unit, load_full_comp_unit): Update.
11373 (create_dwo_cu_reader): Remove has_children.
11374 (create_cus_hash_table, read_die_and_children): Update.
11375 (read_full_die_1,read_full_die): Remove has_children.
11376 (read_signatured_type): Update.
11377 (class cutu_reader) <has_children>: Remove.
11378
82ca8957
TT
113792020-02-08 Tom Tromey <tom@tromey.com>
11380
11381 * dwarf2/expr.c: Rename from dwarf2expr.c.
11382 * dwarf2/expr.h: Rename from dwarf2expr.h.
11383 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11384 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11385 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11386 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11387 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11388 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11389 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11390 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11391 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11392 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11393 * dwarf2/loc.c: Rename from dwarf2loc.c.
11394 * dwarf2/loc.h: Rename from dwarf2loc.h.
11395 * dwarf2/read.c: Rename from dwarf2read.c.
11396 * dwarf2/read.h: Rename from dwarf2read.h.
11397 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11398 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11399 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11400 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11401 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11402 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11403 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11404 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11405 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11406 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11407 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11408 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11409 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11410 Update.
11411 * Makefile.in (COMMON_SFILES): Update.
11412 (HFILES_NO_SRCDIR): Update.
11413
9e35d499
TT
114142020-02-08 Tom Tromey <tom@tromey.com>
11415
11416 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11417 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11418
1eba2311
TT
114192020-02-08 Tom Tromey <tom@tromey.com>
11420
11421 * dwarf2read.h (struct die_info): Don't declare.
11422
e41c2da2
TT
114232020-02-08 Tom Tromey <tom@tromey.com>
11424
11425 * dwarf2read.h (die_info_ptr): Remove typedef.
11426
4fc6c0d5
TT
114272020-02-08 Tom Tromey <tom@tromey.com>
11428
11429 * dwarf2read.c (read_call_site_scope)
11430 (handle_data_member_location, dwarf2_add_member_fn)
11431 (mark_common_block_symbol_computed, read_common_block)
11432 (attr_to_dynamic_prop, partial_die_info::read)
11433 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11434 (dwarf2_symbol_mark_computed, set_die_type): Update.
11435 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11436 method.
11437 (attr_form_is_block): Don't declare.
11438 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11439
cd6c91b4
TT
114402020-02-08 Tom Tromey <tom@tromey.com>
11441
11442 * dwarf2read.c (dwarf2_find_base_address, )
11443 (read_call_site_scope, rust_containing_type)
11444 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11445 (handle_data_member_location, dwarf2_add_member_fn)
11446 (get_alignment, read_structure_type, process_structure_scope)
11447 (mark_common_block_symbol_computed, read_common_block)
11448 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11449 (partial_die_info::read, read_attribute_value, new_symbol)
11450 (lookup_die_type, dwarf2_get_ref_die_offset)
11451 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11452 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11453 (dwarf2_symbol_mark_computed): Update.
11454 * dwarf2/attribute.h (struct attribute) <value_as_address,
11455 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11456 methods.
11457 (value_as_address, attr_form_is_section_offset)
11458 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11459 * dwarf2/attribute.c (attribute::value_as_address)
11460 (attribute::form_is_section_offset, attribute::form_is_constant)
11461 (attribute::form_is_ref): Now methods.
11462
162dce55
TT
114632020-02-08 Tom Tromey <tom@tromey.com>
11464
11465 * dwarf2read.c (struct attribute, DW_STRING)
11466 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11467 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11468 (attr_form_is_block, attr_form_is_section_offset)
11469 (attr_form_is_constant, attr_form_is_ref): Move.
11470 * dwarf2/attribute.h: New file.
11471 * dwarf2/attribute.c: New file, from dwarf2read.c.
11472 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11473
3054dd54
TT
114742020-02-08 Tom Tromey <tom@tromey.com>
11475
11476 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11477 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11478 Move.
11479 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11480 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11481 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11482 abbrev.c.
11483 * dwarf2/abbrev.h: New file.
11484 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11485 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11486
96b79293
TT
114872020-02-08 Tom Tromey <tom@tromey.com>
11488
11489 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11490 (dwarf2_section_size, dwarf2_get_section_info)
11491 (create_signatured_type_table_from_debug_names)
11492 (create_addrmap_from_aranges, read_debug_names_from_section)
11493 (get_gdb_index_contents_from_section, read_comp_unit_head)
11494 (error_check_comp_unit_head, read_abbrev_offset)
11495 (create_debug_type_hash_table, init_cu_die_reader)
11496 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11497 (read_comp_units_from_section, create_cus_hash_table)
11498 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11499 (create_dwp_v2_section, dwarf2_rnglists_process)
11500 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11501 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11502 (read_indirect_string_from_dwz, read_addr_index_1)
11503 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11504 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11505 (fill_in_loclist_baton): Update.
11506 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11507 get_containing_section, get_bfd_owner, get_bfd_section,
11508 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11509 (dwarf2_read_section, get_section_name, get_section_file_name)
11510 (get_containing_section, get_section_bfd_owner)
11511 (get_section_bfd_section, get_section_name, get_section_file_name)
11512 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11513 declare.
11514 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11515 (dwarf2_section_info::get_bfd_owner)
11516 (dwarf2_section_info::get_bfd_section)
11517 (dwarf2_section_info::get_name)
11518 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11519 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11520 (dwarf2_section_info::read): Now methods.
11521 * dwarf-index-write.c (class debug_names): Update.
11522
2c86cff9
TT
115232020-02-08 Tom Tromey <tom@tromey.com>
11524
11525 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11526 Move to dwarf2/section.h.
11527 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11528 (get_section_bfd_section, get_section_name)
11529 (get_section_file_name, get_section_id, get_section_flags)
11530 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11531 dwarf2/section.c.
11532 * dwarf2/section.h: New file.
11533 * dwarf2/section.c: New file, from dwarf2read.c.
11534 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11535
f4382c45
TT
115362020-02-08 Tom Tromey <tom@tromey.com>
11537
11538 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11539 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11540 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11541 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11542 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11543 * dwarf2/leb.h: New file, from dwarf2read.c.
11544 * dwarf2/leb.c: New file, from dwarf2read.c.
11545 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11546 Remove.
11547 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11548 (COMMON_SFILES): Add dwarf2/leb.c.
11549
01840b7a
JB
115502020-02-08 Joel Brobecker <brobecker@adacore.com>
11551
11552 GDB 9.1 released.
11553
dfcb27e4
IB
115542020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11555
11556 PR gdb/25190:
aac66a4c
SM
11557 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11558 * gdb/remote.c (remote_console_output): Update.
11559 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11560 (ui_file_puts): ...this.
11561 * gdb/ui-file.h (ui_file_puts): Add declaration.
11562 * gdb/utils.c (emit_style_escape): Update.
11563 (flush_wrap_buffer): Update.
11564 (fputs_maybe_filtered): Update.
11565 (fputs_unfiltered): Add function.
dfcb27e4 11566
faa17681
IB
115672020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11568
aac66a4c
SM
11569 * gdb/event-loop.c (gdb_wait_for_event): Update.
11570 * gdb/printcmd.c (printf_command): Update.
11571 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11572 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11573 (gdb_os_flush_stderr): Update.
11574 * gdb/remote.c (remote_console_output): Update.
11575 * gdb/ui-file.c (gdb_flush): Rename to...
11576 (ui_file_flush): ...this.
11577 (stderr_file::write): Update.
11578 (stderr_file::puts): Update.
11579 * gdb/ui-file.h (gdb_flush): Rename to...
11580 (ui_file_flush): ...this.
11581 * gdb/utils.c (gdb_flush): Add function.
11582 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11583
5abbbe1d
TT
115842020-02-07 Tom Tromey <tromey@adacore.com>
11585
11586 PR breakpoints/24915:
11587 * source.c (find_and_open_source): Do not check basenames_may_differ.
11588
919adfe8
TT
115892020-02-07 Tom Tromey <tom@tromey.com>
11590
11591 * README: Update gdbserver documentation.
11592 * gdbserver: Move to top level.
11593 * configure.tgt (build_gdbserver): Remove.
11594 * configure.ac: Remove --enable-gdbserver.
11595 * configure: Rebuild.
11596 * Makefile.in (distclean): Don't mention gdbserver.
11597
1d5d29e7
SV
115982020-02-06 Shahab Vahedi <shahab@synopsys.com>
11599
11600 * source-cache.c (source_cache::ensure): Surround
11601 get_plain_source_lines with a try/catch.
11602 (source_cache::get_line_charpos): Get rid of try/catch
11603 and only check for the return value of "ensure".
11604 * tui/tui-source.c (tui_source_window::set_contents):
11605 Simplify "nlines" calculation.
11606
6eb1129c
SV
116072020-02-06 Shahab Vahedi <shahab@synopsys.com>
11608
11609 * MAINTAINERS (Write After Approval): Add myself.
11610
c6a42d11
CB
116112020-02-05 Christian Biesinger <cbiesinger@google.com>
11612
11613 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11614 function call.
11615
c8ecdda6
CB
116162020-02-05 Christian Biesinger <cbiesinger@google.com>
11617
11618 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11619
f6480e70
MR
116202020-02-05 Maciej W. Rozycki <macro@wdc.com>
11621
11622 * nat/riscv-linux-tdesc.h: New file.
11623 * nat/riscv-linux-tdesc.c: New file, taking code from...
11624 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11625 ... here.
11626 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11627 NATDEPFILES.
11628
dcc9fbc6
AB
116292020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11630
11631 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11632 we don't set the fake simulator ptid to the null_ptid.
11633
719546c4
SM
116342020-02-03 Simon Marchi <simon.marchi@efficios.com>
11635
11636 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11637 * gdbthread.h (class thread_info) <resumed>: Likewise.
11638 * infrun.c (resume_1): Likewise.
11639 (proceed): Likewise.
11640 (infrun_thread_stop_requested): Likewise.
11641 (stop_all_threads): Likewise.
11642 (handle_inferior_event): Likewise.
11643 (restart_threads): Likewise.
11644 (finish_step_over): Likewise.
11645 (keep_going_stepped_thread): Likewise.
11646 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11647 (linux_handle_extended_wait): Likewise.
11648 * record-btrace.c (get_thread_current_frame_id): Likewise.
11649 * record-full.c (record_full_wait_1): Likewise.
11650 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11651 * target.c (target_resume): Likewise.
11652 * thread.c (set_running_thread): Likewise.
11653
e409c542
AKS
116542020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11655
11656 * f-valprint.c (f77_print_array_1): Changed datatype of index
11657 variable to LONGEST from int to enable it to contain bound
11658 values correctly.
11659
ee98c0da
MR
116602020-02-03 Maciej W. Rozycki <macro@wdc.com>
11661
11662 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11663 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11664 offsets according to FLEN determined.
11665 (riscv_linux_nat_target::read_description): Determine FLEN
11666 dynamically.
11667 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11668 according to FLEN determined.
11669 (riscv_linux_nat_target::store_registers): Likewise.
11670
aa66aac4
SV
116712020-02-01 Shahab Vahedi <shahab@synopsys.com>
11672
11673 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11674 when reg->group is empty and reggroup is not.
11675
fd9faca8
TT
116762020-01-31 Tom Tromey <tromey@adacore.com>
11677
11678 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11679 Call beneath target's mourn_inferior after unpushing.
11680
42330a68
AB
116812020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11682
11683 PR tui/9765
11684 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11685 have enough lines to fill the screen, still return the lowest
11686 address we found.
11687
7a27a45b
AB
116882020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11689
11690 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11691 '-', '<', and '>' commands.
11692
c47f70e2
PA
116932020-01-29 Pedro Alves <palves@redhat.com>
11694 Sergio Durigan Junior <sergiodj@redhat.com>
11695
11696 * infcmd.c (construct_inferior_arguments): Assert that
11697 'argc' is greater than 0.
11698
5133a315
LM
116992020-01-29 Luis Machado <luis.machado@linaro.org>
11700
11701 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11702 (BRK_INSN_MASK): Define to 0xd4200000.
11703 (aarch64_program_breakpoint_here_p): New function.
11704 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11705 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11706 breakpoint.c.
11707 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11708 breakpoint.h
11709 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11710 call gdbarch_program_breakpoint_here_p.
11711 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11712 default_program_breakpoint_here_p, changed return type to bool and
11713 simplified.
11714 * breakpoint.h (program_breakpoint_here): Moved prototype to
11715 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11716 return type to bool.
11717 * gdbarch.c: Regenerate.
11718 * gdbarch.h: Regenerate.
11719 * gdbarch.sh (program_breakpoint_here_p): New method.
11720 * infrun.c (handle_signal_stop): Call
11721 gdbarch_program_breakpoint_here_p.
11722
168f8c6b
TT
117232020-01-26 Tom Tromey <tom@tromey.com>
11724
11725 * ctfread.c (struct ctf_fp_info): Reindent.
11726 (_initialize_ctfread): Remove.
11727
128a391f
TT
117282020-01-26 Tom Tromey <tom@tromey.com>
11729
11730 * psymtab.c (partial_map_expand_apply)
11731 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11732 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11733 (psym_print_stats, psym_expand_symtabs_for_function)
11734 (psym_map_symbol_filenames, psym_map_matching_symbols)
11735 (psym_expand_symtabs_matching)
11736 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11737 (maintenance_check_psymtabs): Use new methods.
11738 * psympriv.h (struct partial_symtab) <readin_p,
11739 get_compunit_symtab>: New methods.
11740 <readin, compunit_symtab>: Remove members.
11741 (struct standard_psymtab): New.
11742 (struct legacy_psymtab): Derive from standard_psymtab.
11743 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11744 standard_psymtab.
11745 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11746
0494dbec
TT
117472020-01-26 Tom Tromey <tom@tromey.com>
11748
11749 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11750 read_dependencies. Add assert.
11751 * psymtab.c (partial_symtab::read_dependencies): New method.
11752 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11753 method.
11754 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11755 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11756 read_dependencies.
11757 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11758 Add assert.
11759
8566b89b
TT
117602020-01-26 Tom Tromey <tom@tromey.com>
11761
11762 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11763 Call expand_psymtab.
11764 (xcoff_read_symtab): Call expand_psymtab.
11765 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11766 legacy_expand_psymtab.
11767 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11768 method.
11769 (struct legacy_psymtab) <expand_psymtab>: Implement.
11770 <legacy_expand_psymtab>: New member.
11771 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11772 (parse_partial_symbols): Set legacy_expand_psymtab.
11773 (psymtab_to_symtab_1): Change argument order. Call
11774 expand_psymtab.
11775 (new_psymtab): Set legacy_expand_psymtab.
11776 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11777 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11778 expand_psymtab.
11779 (dwarf2_psymtab::expand_psymtab): Rename from
11780 psymtab_to_symtab_1. Call expand_psymtab.
11781 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11782 (dbx_end_psymtab): Likewise.
11783 (dbx_psymtab_to_symtab_1): Change argument order. Call
11784 expand_psymtab.
11785 (dbx_read_symtab): Call expand_psymtab.
11786 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11787 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11788 (ctf_psymtab::read_symtab): Call expand_psymtab.
11789
077cbab2
TT
117902020-01-26 Tom Tromey <tom@tromey.com>
11791
11792 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11793 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11794 messages.
11795 * mdebugread.c (mdebug_read_symtab): Remove prints.
11796 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11797 assert.
11798 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11799
891813be
TT
118002020-01-26 Tom Tromey <tom@tromey.com>
11801
11802 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11803 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11804 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11805 legacy_symtab.
11806 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11807 * psymtab.c (psymtab_to_symtab): Call method.
11808 (dump_psymtab): Update.
11809 * psympriv.h (struct partial_symtab): Add virtual destructor.
11810 <read_symtab>: New method.
11811 (struct legacy_symtab): New.
11812 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11813 (struct pst_map) <pst>: Now a legacy_psymtab.
11814 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11815 (new_psymtab): Use legacy_psymtab.
11816 * dwarf2read.h (struct dwarf2_psymtab): New.
11817 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11818 * dwarf2read.c (dwarf2_create_include_psymtab)
11819 (dwarf2_build_include_psymtabs, create_type_unit_group)
11820 (create_partial_symtab, process_psymtab_comp_unit_reader)
11821 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11822 (set_partial_user): Use dwarf2_psymtab.
11823 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11824 (psymtab_to_symtab_1, process_full_comp_unit)
11825 (process_full_type_unit, dwarf2_ranges_read)
11826 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11827 (dwarf_decode_lines): Use dwarf2_psymtab.
11828 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11829 (add_address_entry_worker, write_one_signatured_type)
11830 (recursively_count_psymbols, recursively_write_psymbols)
11831 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11832 (write_debug_names): Likewise.
11833 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11834 <pst>: Now a legacy_psymtab.
11835 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11836 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11837 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11838 * ctfread.c (struct ctf_psymtab): New.
11839 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11840 ctf_psymtab.
11841 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11842 (create_partial_symtab): Return a ctf_psymtab.
11843 (scan_partial_symbols): Update.
11844
c3693a1d
TT
118452020-01-26 Tom Tromey <tom@tromey.com>
11846
11847 * xcoffread.c (xcoff_start_psymtab): Use new.
11848 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11849 renamed from start_psymtab_common.
11850 * psympriv.h (struct partial_symtab): Add new constructor.
11851 (start_psymtab_common): Don't declare.
11852 * mdebugread.c (parse_partial_symbols): Use new.
11853 * dwarf2read.c (create_partial_symtab): Use new.
11854 * dbxread.c (start_psymtab): Use new.
11855 * ctfread.c (create_partial_symtab): Use new.
11856
32caafd0
TT
118572020-01-26 Tom Tromey <tom@tromey.com>
11858
11859 * xcoffread.c (xcoff_end_psymtab): Use new.
11860 * psymtab.c (start_psymtab_common): Use new.
11861 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11862 Update.
11863 * psympriv.h (struct partial_symtab): Add parameters to
11864 constructor. Don't inline.
11865 (allocate_psymtab): Don't declare.
11866 * mdebugread.c (new_psymtab): Use new.
11867 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11868 * dbxread.c (dbx_end_psymtab): Use new.
11869
abaa2f23
TT
118702020-01-26 Tom Tromey <tom@tromey.com>
11871
11872 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11873 allocate_psymtab. Update documentation.
11874 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11875 allocate_psymtab. Do not use new.
11876 (allocate_psymtab): Use new. Update.
11877
6d94535f
TT
118782020-01-26 Tom Tromey <tom@tromey.com>
11879
11880 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11881 * psymtab.c (psym_print_stats): Update.
11882 * psympriv.h (struct partial_symtab) <readin,
11883 psymtabs_addrmap_supported, anonymous>: Now bool.
11884 * mdebugread.c (psymtab_to_symtab_1): Update.
11885 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11886 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11887 (process_full_comp_unit, process_full_type_unit): Update.
11888 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11889 * ctfread.c (psymtab_to_symtab): Update.
11890
6f17252b
TT
118912020-01-26 Tom Tromey <tom@tromey.com>
11892
11893 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11894 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11895 * psymtab.c (psymtab_storage): Delete psymtabs.
11896 (psymtab_storage::allocate_psymtab): Use new.
11897 (psymtab_storage::discard_psymtab): Use delete.
11898 * psympriv.h (struct partial_symtab): Add constructor and
11899 initializers.
11900
f6f1cebc
TT
119012020-01-26 Tom Tromey <tom@tromey.com>
11902
11903 * machoread.c: Do not include psympriv.h.
11904
e47e48f6
PW
119052020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11906
11907 * NEWS: Mention the new option and the set/show commands.
11908
a2fedca9
PW
119092020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11910
11911 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11912 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11913 (validate_exec_file): New variables, enums, functions.
11914 (exec_file_locate_attach, print_section_info): Style the filenames.
11915 (_initialize_exec): Install show_exec_file_mismatch_command and
11916 set_exec_file_mismatch_command.
11917 * gdbcore.h (validate_exec_file): Declare.
11918 * infcmd.c (attach_command): Call validate_exec_file.
11919 * remote.c ( remote_target::remote_add_inferior): Likewise.
11920
7ffa82e1
AB
119212020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11922
11923 * frame.c (find_frame_sal): Move call to get_next_frame into more
11924 inner scope.
11925 * inline-frame.c (inilne_state) <inline_state>: Update argument
11926 types.
11927 (inilne_state) <skipped_symbol>: Rename to...
11928 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11929 (skip_inline_frames): Build vector of skipped symbols and use this
11930 to reate the inline_state.
11931 (inline_skipped_symbol): Add a comment and some assertions, fetch
11932 skipped symbol from the list.
11933
3d92a3e3
AB
119342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11935
11936 * buildsym.c (lte_is_less_than): Delete.
11937 (buildsym_compunit::end_symtab_with_blockvector): Create local
11938 lambda function to sort line table entries, and use
11939 std::stable_sort instead of std::sort.
11940 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11941 markers when looking for a previous line.
11942
94a72be7
AB
119432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11944
11945 * dwarf2read.c (lnp_state_machine::record_line): Include
11946 end_sequence parameter in debug print out. Record the line if we
11947 are at an end_sequence marker even if it's not the start of a
11948 statement.
11949 * symmisc.c (maintenance_print_one_line_table): Print end of
11950 sequence markers with 'END' not '0'.
11951
53af73bf
PA
119522020-01-24 Pedro Alves <palves@redhat.com>
11953
11954 PR gdb/25410
11955 * thread.c (scoped_restore_current_thread::restore): Use
11956 switch_to_inferior_no_thread.
11957 * exec.c: Include "progspace-and-thread.h".
11958 (add_target_sections, remove_target_sections):
11959 scoped_restore_current_pspace_and_thread instead of
11960 scoped_restore_current_thread.
11961 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11962 and aspace to the inferior before calling clone_program_space.
11963 Remove stale comment.
11964
3050c6f4
CB
119652020-01-24 Christian Biesinger <cbiesinger@google.com>
11966
11967 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11968 (arm_netbsd_nat_target::fetch_registers): ...this.
11969 (arm_nbsd_nat_target::store_registers): Rename to...
11970 (arm_netbsd_nat_target::store_registers): ...this.
11971
73685c7e
CB
119722020-01-24 Christian Biesinger <cbiesinger@google.com>
11973
11974 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11975 register_t.
11976
89203d40
CB
119772020-01-24 Christian Biesinger <cbiesinger@google.com>
11978
11979 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11980 Update comment.
11981 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11982 Likewise.
11983 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11984 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11985 the correct replacement (iterate_over_regset_sections).
11986 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11987 Update comment.
11988
1ba1ac88
AB
119892020-01-24 Graham Markall <graham.markall@embecosm.com>
11990
11991 PR gdb/23718
11992 * gdb/python/python.c (execute_gdb_command): Call
11993 async_enable_stdin in catch block.
11994
f3364a6d
AB
119952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11996
11997 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11998 SWITCH_THRU_ALL_UIS.
11999
733d0a67
AB
120002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12001
12002 PR tui/9765
12003 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12004 comment, add extra parameter, and update to store previous symbol
12005 when appropriate.
12006 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12007 add extra parameter.
12008 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12009 remove unneeded parameter, add try/catch around gdb_print_insn,
12010 rewrite to add items to asm_lines vector.
12011 (tui_find_backward_disassembly_start_address): New function.
12012 (tui_find_disassembly_address): Updated throughout.
12013 (tui_disasm_window::set_contents): Update for changes to
12014 tui_disassemble.
12015 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12016 number of lines to scroll.
12017
b3b3bada
SM
120182020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12019
12020 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12021 (SECT_OFF_DATA): Likewise.
12022 (SECT_OFF_RODATA): Likewise.
12023 (SECT_OFF_TEXT): Likewise.
12024 (SECT_OFF_BSS): Likewise.
12025 (struct objfile) <text_section_offset, data_section_offset>: New
12026 methods.
12027 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12028 objfile::text_section_offset.
12029 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12030 * coffread.c (coff_symtab_read): Likewise.
12031 (enter_linenos): Likewise.
12032 (process_coff_symbol): Likewise.
12033 * ctfread.c (get_objfile_text_range): Likewise.
12034 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12035 Use objfile::data_section_offset.
12036 * dwarf2-frame.c (execute_cfa_program): Use
12037 objfile::text_section_offset.
12038 (dwarf2_frame_find_fde): Likewise.
12039 * dwarf2read.c (create_addrmap_from_index): Likewise.
12040 (create_addrmap_from_aranges): Likewise.
12041 (dw2_find_pc_sect_compunit_symtab): Likewise.
12042 (process_psymtab_comp_unit_reader): Likewise.
12043 (add_partial_symbol): Likewise.
12044 (add_partial_subprogram): Likewise.
12045 (process_full_comp_unit): Likewise.
12046 (read_file_scope): Likewise.
12047 (read_func_scope): Likewise.
12048 (read_lexical_block_scope): Likewise.
12049 (read_call_site_scope): Likewise.
12050 (dwarf2_rnglists_process): Likewise.
12051 (dwarf2_ranges_process): Likewise.
12052 (dwarf2_ranges_read): Likewise.
12053 (dwarf_decode_lines_1): Likewise.
12054 (new_symbol): Likewise.
12055 (dwarf2_fetch_die_loc_sect_off): Likewise.
12056 (dwarf2_per_cu_text_offset): Likewise.
12057 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12058 * hppa-tdep.c (read_unwind_info): Likewise.
12059 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12060 * psympriv.h (struct partial_symtab): Likewise.
12061 * psymtab.c (find_pc_sect_psymtab): Likewise.
12062 * solib-svr4.c (enable_break): Likewise.
12063 * stap-probe.c (relocate_address): Use
12064 objfile::data_section_offset.
12065 * xcoffread.c (enter_line_range): Use
12066 objfile::text_section_offset.
12067 (read_xcoff_symtab): Likewise.
12068
ab53f382
SM
120692020-01-23 Simon Marchi <simon.marchi@efficios.com>
12070
12071 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12072 declaration to narrower scopes.
12073
e7eee665
SM
120742020-01-23 Simon Marchi <simon.marchi@efficios.com>
12075
12076 * darwin-nat.h (struct darwin_exception_msg, enum
12077 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12078 Move up.
12079 (class darwin_nat_target) <wait_1, check_new_threads,
12080 decode_exception_message, decode_message, stop_inferior,
12081 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12082 * darwin-nat.c (darwin_check_new_threads): Rename to...
12083 (darwin_nat_target::check_new_threads): ... this.
12084 (darwin_suspend_inferior_it): Remove.
12085 (darwin_decode_exception_message): Rename to...
12086 (darwin_nat_target::decode_exception_message): ... this.
12087 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12088 (darwin_decode_message): Rename to...
12089 (darwin_nat_target::decode_message): ... this.
12090 (cancel_breakpoint): Rename to...
12091 (darwin_nat_target::cancel_breakpoint): ... this.
12092 (darwin_wait): Rename to...
12093 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12094 instead of iterate_over_inferiors.
12095 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12096 (darwin_stop_inferior): Rename to...
12097 (darwin_nat_target::stop_inferior): ... this.
12098 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12099 (darwin_init_thread_list): Rename to...
12100 (darwin_nat_target::init_thread_list): ... this.
12101 (darwin_ptrace_him): Rename to...
12102 (darwin_nat_target::ptrace_him): ... this.
12103 (darwin_nat_target::create_inferior): Pass lambda function to
12104 fork_inferior.
12105 (darwin_nat_target::detach): Call stop_inferior instead of
12106 darwin_stop_inferior.
12107 * fork-inferior.h (fork_inferior): Change init_trace_fun
12108 parameter to gdb::function_view.
12109 * fork-inferior.c (fork_inferior): Likewise.
12110
c162ed3e
HD
121112020-01-23 Hannes Domani <ssbssa@yahoo.de>
12112
12113 * i386-cygwin-tdep.c (core_process_module_section): Update.
12114 * windows-nat.c (struct lm_info_windows): Add text_offset.
12115 (windows_xfer_shared_libraries): Update.
12116 * windows-tdep.c (windows_xfer_shared_library):
12117 Add text_offset_cached argument.
12118 * windows-tdep.h (windows_xfer_shared_library): Update.
12119
a1237872
SM
121202020-01-21 Simon Marchi <simon.marchi@efficios.com>
12121
12122 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12123
b3ee6dd9
SM
121242020-01-21 Simon Marchi <simon.marchi@efficios.com>
12125
12126 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12127 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12128 replace with range-based for.
12129 (gdbsim_interrupt_inferior): Remove.
12130 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12131 with a range-based for. Inline code from
12132 gdbsim_interrupt_inferior.
12133
f9fac3c8
SM
121342020-01-21 Simon Marchi <simon.marchi@efficios.com>
12135
12136 * infrun.c (proceed): Fix indentation.
12137
f6474de9
TT
121382020-01-21 Tom Tromey <tromey@adacore.com>
12139
12140 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12141 * python/python.c (python_extension_ops): Update.
12142 (gdbpy_colorize): New function.
12143 * python/lib/gdb/__init__.py (colorize): New function.
12144 * extension.h (ext_lang_colorize): Declare.
12145 * extension.c (ext_lang_colorize): New function.
12146 * extension-priv.h (struct extension_language_ops) <colorize>: New
12147 member.
12148 * cli/cli-style.c (_initialize_cli_style): Update help text.
12149
f0c702d4
LM
121502020-01-21 Luis Machado <luis.machado@linaro.org>
12151
12152 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12153 <cond>: Change type to bool.
12154 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12155 (aarch64_displaced_step_cb): Likewise.
12156 (aarch64_displaced_step_tb): Likewise.
12157
1ab139e5
LM
121582020-01-21 Luis Machado <luis.machado@linaro.org>
12159
12160 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12161 output.
12162
0c271889
LM
121632020-01-21 Luis Machado <luis.machado@linaro.org>
12164
12165 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12166 <pc_adjust>: Adjust the documentation.
12167 (aarch64_displaced_step_fixup): Check if PC really moved before
12168 adjusting it.
12169
4d89c1c7
TT
121702020-01-19 Tom Tromey <tom@tromey.com>
12171
12172 * disasm.c (~gdb_disassembler): New destructor.
12173 (gdb_buffered_insn_length): Call disassemble_free_target.
12174 * disasm.h (class gdb_disassembler): Declare destructor. Use
12175 DISABLE_COPY_AND_ASSIGN.
12176
c0ab21c2
TT
121772020-01-19 Tom Tromey <tom@tromey.com>
12178
12179 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12180 (die_reader_func_ftype): Remove.
12181 (cutu_reader): New class.
12182 (dw2_get_file_names_reader): Remove "data" parameter.
12183 (dw2_get_file_names): Use cutu_reader.
12184 (create_debug_type_hash_table): Update.
12185 (read_cutu_die_from_dwo): Update comment.
12186 (lookup_dwo_unit): Add dwo_name parameter.
12187 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12188 die_reader_func_ftype and data parameters.
12189 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12190 Remove die_reader_func_ftype and data parameters.
12191 (~cutu_reader): New; from init_cutu_and_read_dies.
12192 (cutu_reader::cutu_reader): Rename from
12193 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12194 and data parameters.
12195 (init_cutu_and_read_dies_simple): Remove.
12196 (struct process_psymtab_comp_unit_data): Remove.
12197 (process_psymtab_comp_unit_reader): Remove data parameter; add
12198 want_partial_unit and pretend_language parameters.
12199 (process_psymtab_comp_unit): Use cutu_reader.
12200 (build_type_psymtabs_reader): Remove data parameter.
12201 (build_type_psymtabs_1): Use cutu_reader.
12202 (process_skeletonless_type_unit): Likewise.
12203 (load_partial_comp_unit_reader): Remove.
12204 (load_partial_comp_unit): Use cutu_reader.
12205 (load_full_comp_unit_reader): Remove.
12206 (load_full_comp_unit): Use cutu_reader.
12207 (struct create_dwo_cu_data): Remove.
12208 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12209 dwo_unit parameters.
12210 (create_cus_hash_table): Use cutu_reader.
12211 (struct dwarf2_read_addr_index_data): Remove.
12212 (dwarf2_read_addr_index_reader): Remove.
12213 (dwarf2_read_addr_index): Use cutu_reader.
12214 (read_signatured_type_reader): Remove.
12215 (read_signatured_type): Use cutu_reader.
12216
45bbae5c
TT
122172020-01-19 Tom Tromey <tom@tromey.com>
12218
12219 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12220 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12221 (tui_wrefresh): Declare.
12222 * tui/tui-wingeneral.c (suppress_output): New global.
12223 (tui_suppress_output, ~tui_suppress_output): New constructor and
12224 destructor.
12225 (tui_wrefresh): New function.
12226 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12227 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12228 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12229 method.
12230 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12231 tui_wrefresh.
12232 (tui_data_window::no_refresh): New method.
12233 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12234 (tui_reg_command): Use tui_suppress_output
12235 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12236 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12237 method.
12238 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12239
4f13c1c0
TT
122402020-01-19 Tom Tromey <tom@tromey.com>
12241
12242 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12243 Handle case where symtab is null.
12244
fa47e446
SM
122452020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12246
12247 * linux-fork.c (one_fork_p): Simplify.
12248
26f42329
SM
122492020-01-17 Simon Marchi <simon.marchi@efficios.com>
12250
12251 * top.c (struct qt_args): Remove.
12252 (kill_or_detach): Change return type to void, replace `void *`
12253 parameter with a proper one.
12254 (print_inferior_quit_action): Likewise.
12255 (quit_confirm): Use range-based for loop to iterate over inferiors.
12256 (quit_force): Likewise.
12257
a9ac81b1
SM
122582020-01-17 Simon Marchi <simon.marchi@efficios.com>
12259
12260 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12261 `void *` parameter with proper parameters.
12262 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12263 (print_one_inferior): Change return type to void, replace `void *`
12264 parameter with proper parameters.
12265 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12266 inferiors.
12267 (get_other_inferior): Remove.
12268 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12269 inferiors.
12270
788eca49
SM
122712020-01-17 Simon Marchi <simon.marchi@efficios.com>
12272
12273 * mi/mi-interp.c (report_initial_inferior): Remove.
12274 (mi_interp::init): Use range-based for to iterate over inferiors.
12275
d9bc85b6
SM
122762020-01-17 Simon Marchi <simon.marchi@efficios.com>
12277
12278 * python/py-inferior.c (build_inferior_list): Remove.
12279 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12280
40c94099
CB
122812020-01-16 Christian Biesinger <cbiesinger@google.com>
12282
12283 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12284 (btrace_stitch_trace): Likewise.
12285 * charset.c (intermediate_encoding): Likewise (vaild).
12286 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12287 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12288 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12289
e0cdfe3c
HD
122902020-01-16 Hannes Domani <ssbssa@yahoo.de>
12291
12292 * windows-tdep.c (windows_get_tlb_type):
12293 Add rtl_user_process_parameters type.
12294
790f1718 122952020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12296 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12297
12298 PR build/24805
12299 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12300 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12301 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12302 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12303 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12304 (ps_plog): Redeclare exported functions with default visibility.
12305
3112ed97
NA
123062020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12307
12308 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12309 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12310
8dc3273e
SM
123112020-01-15 Simon Marchi <simon.marchi@efficios.com>
12312
12313 * infcmd.c (post_create_inferior): Use get_thread_regcache
12314 instead of get_current_regcache.
12315
ff47f4f0
TT
123162020-01-14 Tom Tromey <tom@tromey.com>
12317
12318 PR symtab/12535:
12319 * python/python.c (gdbpy_decode_line): Treat empty string the same
12320 as no argument.
12321
975f45b7
TT
123222020-01-14 Tom Tromey <tom@tromey.com>
12323
12324 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12325
25e57356
TT
123262020-01-14 Tom Tromey <tom@tromey.com>
12327
12328 * nat/linux-btrace.c: Don't include <config.h>.
12329 * nat/linux-ptrace.c: Don't include <config.h>.
12330 * nat/x86-linux-dregs.c: Don't include <config.h>.
12331
05ea2a05
TT
123322020-01-14 Tom Tromey <tom@tromey.com>
12333
12334 * configure: Rebuild.
12335 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12336
01027315
TT
123372020-01-14 Tom Tromey <tom@tromey.com>
12338
12339 * nat/x86-linux-dregs.c: Include configh.h.
12340 * nat/linux-ptrace.c: Include configh.h.
12341 * nat/linux-btrace.c: Include configh.h.
12342 * defs.h: Include config.h, bfd.h.
12343 * configure.ac: Don't source common.host.
12344 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12345 * configure: Rebuild.
12346 * acinclude.m4: Update path.
12347 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12348 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12349 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12350 (CLIBS): Add LIBSUPPORT.
12351 (CDEPS): Likewise.
12352 (COMMON_SFILES): Remove gdbsupport files.
12353 (HFILES_NO_SRCDIR): Likewise.
12354 (stamp-version): Update path to create-version.sh.
12355 (ALLDEPFILES): Remove gdbsupport files.
12356
b2ceabe8
TT
123572020-01-14 Tom Tromey <tom@tromey.com>
12358
12359 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12360 USE_WIN32API when needed.
12361 * configure.ac (USE_WIN32API): Don't define.
12362 (WIN32LIBS): Use WIN32APILIBS.
12363 * configure: Rebuild.
12364
25c51f71
TT
123652020-01-14 Tom Tromey <tom@tromey.com>
12366
12367 * configure: Rebuild.
12368 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12369
717c684d
BE
123702020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12371
12372 * skip.c (skip_function_command): Make skip w/o arguments use the
12373 name of the inlined function if pc is inside any inlined function.
12374
7da6a5b9
LM
123752020-01-14 Luis Machado <luis.machado@linaro.org>
12376
12377 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12378 * infrun.c (resume_1): Likewise.
12379 (handle_inferior_event): Remove stale comment.
12380 * linux-nat.c (linux_nat_target::resume): Update comments.
12381 (save_stop_reason): Likewise.
12382 (linux_nat_filter_event): Likewise.
12383 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12384
44e4c775
AB
123852020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12386
12387 * elfread.c (record_minimal_symbol): Set section index to 0 for
12388 non-allocatable sections.
12389
18a8505e
AT
12390
123912020-01-13 Ali Tamur <tamur@google.com>
12392
12393 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12394 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12395 to gdb::optional. Update comments.
12396 (dwo_file): Update comments.
12397 (read_attribute): Update API to take an additional out parameter,
12398 need_reprocess. This is used to mark attributes that need other
12399 attributes (e.g. str_offsets_base) for correct computation which may not
12400 have been read yet.
12401 (read_attribute_reprocess): New function declaration.
12402 (read_addr_index): Likewise.
12403 (read_dwo_str_index): Likewise.
12404 (read_stub_str_index): Likewise.
12405 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12406 (lookup_addr_base): New function definition.
12407 (lookup_ranges_base): Likewise.
12408 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12409 lookup_ranges_base.
12410 (init_cutu_and_read_dies): Update comments.
12411 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12412 unit. This is used to inherit parent's str_offsets_base and addr_base.
12413 Update comments.
12414 (init_cutu_and_read_dies_simple): Reflect API changes.
12415 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12416 (create_cus_hash_table): Change API to take parent compile unit.
12417 Reflect API changes.
12418 (open_and_init_dwo_file): Reflect API changes.
12419 (dwarf2_get_pc_bounds): Update comments.
12420 (dwarf2_record_block_ranges): Likewise.
12421 (read_full_die_1): Change implementation to reprocess attributes that
12422 need str_offsets_base and addr_base.
12423 (partial_die_info::read): Likewise.
12424 (read_attribute_reprocess): New function definition.
12425 (read_attribute_value): Change API to take an additional out parameter,
12426 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12427 when a non-dwo compile unit has index based attributes.
12428 (read_attribute): Reflect API changes.
12429 (read_addr_index_1): Reflect API changes. Update comments.
12430 (dwarf2_read_addr_index_data): Reflect API changes.
12431 (dwarf2_read_addr_index): Likewise.
12432 (read_str_index): Change API and implementation. This becomes a helper
12433 to be used by the new string index related methods. Update error
12434 message and comments.
12435 (read_dwo_str_index): New function definition.
12436 (read_stub_str_index): Likewise.
12437 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12438 * symfile.h (dwarf2_debug_sections): Likewise.
12439 * xcoffread.c (dwarf2_debug_sections): Likewise.
12440
0cac9354
SM
124412020-01-13 Simon Marchi <simon.marchi@efficios.com>
12442
12443 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12444 core_reg_sect type to gdb_byte *.
12445 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12446 * cris-tdep.c (fetch_core_registers): Likewise.
12447 * corelow.c (core_target::get_core_register_section): Change
12448 type of `contents` to gdb::byte_vector.
12449
9a6d629c
AB
124502020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12451
12452 * tui/tui-wingeneral.c (box_win): Position the title in the center
12453 of the border.
12454
d8b2f9e3
SM
124552020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12456
12457 * corelow.c (core_target::get_core_register_section): Use
12458 std::vector instead of alloca.
12459
bb564c58
SM
124602020-01-13 Simon Marchi <simon.marchi@efficios.com>
12461
12462 * warning.m4: Add -Wmissing-declarations to build_warnings.
12463 * configure: Re-generate.
12464
6b366111
SM
124652020-01-13 Simon Marchi <simon.marchi@efficios.com>
12466
12467 * python/python.c (init__gdb_module): Add declaration.
12468
6c265988
SM
124692020-01-13 Simon Marchi <simon.marchi@efficios.com>
12470
12471 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12472 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12473 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12474 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12475 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12476 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12477 * ada-exp.y (_initialize_ada_exp): Add declaration.
12478 * ada-lang.c (_initialize_ada_language): Add declaration.
12479 * ada-tasks.c (_initialize_tasks): Add declaration.
12480 * agent.c (_initialize_agent): Add declaration.
12481 * aix-thread.c (_initialize_aix_thread): Add declaration.
12482 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12483 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12484 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12485 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12486 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12487 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12488 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12489 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12490 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12491 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12492 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12493 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12494 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12495 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12496 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12497 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12498 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12499 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12500 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12501 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12502 * annotate.c (_initialize_annotate): Add declaration.
12503 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12504 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12505 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12506 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12507 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12508 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12509 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12510 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12511 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12512 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12513 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12514 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12515 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12516 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12517 * auto-load.c (_initialize_auto_load): Add declaration.
12518 * auxv.c (_initialize_auxv): Add declaration.
12519 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12520 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12521 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12522 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12523 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12524 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12525 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12526 * breakpoint.c (_initialize_breakpoint): Add declaration.
12527 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12528 * btrace.c (_initialize_btrace): Add declaration.
12529 * charset.c (_initialize_charset): Add declaration.
12530 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12531 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12532 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12533 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12534 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12535 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12536 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12537 * coffread.c (_initialize_coffread): Add declaration.
12538 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12539 * compile/compile.c (_initialize_compile): Add declaration.
12540 * complaints.c (_initialize_complaints): Add declaration.
12541 * completer.c (_initialize_completer): Add declaration.
12542 * copying.c (_initialize_copying): Add declaration.
12543 * corefile.c (_initialize_core): Add declaration.
12544 * corelow.c (_initialize_corelow): Add declaration.
12545 * cp-abi.c (_initialize_cp_abi): Add declaration.
12546 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12547 * cp-support.c (_initialize_cp_support): Add declaration.
12548 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12549 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12550 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12551 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12552 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12553 * ctfread.c (_initialize_ctfread): Add declaration.
12554 * d-lang.c (_initialize_d_language): Add declaration.
12555 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12556 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12557 * dbxread.c (_initialize_dbxread): Add declaration.
12558 * dcache.c (_initialize_dcache): Add declaration.
12559 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12560 * disasm.c (_initialize_disasm): Add declaration.
12561 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12562 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12563 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12564 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12565 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12566 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12567 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12568 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12569 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12570 * elfread.c (_initialize_elfread): Add declaration.
12571 * exec.c (_initialize_exec): Add declaration.
12572 * extension.c (_initialize_extension): Add declaration.
12573 * f-lang.c (_initialize_f_language): Add declaration.
12574 * f-valprint.c (_initialize_f_valprint): Add declaration.
12575 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12576 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12577 * filesystem.c (_initialize_filesystem): Add declaration.
12578 * findcmd.c (_initialize_mem_search): Add declaration.
12579 * findvar.c (_initialize_findvar): Add declaration.
12580 * fork-child.c (_initialize_fork_child): Add declaration.
12581 * frame-base.c (_initialize_frame_base): Add declaration.
12582 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12583 * frame.c (_initialize_frame): Add declaration.
12584 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12585 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12586 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12587 * gcore.c (_initialize_gcore): Add declaration.
12588 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12589 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12590 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12591 * gdbarch.c (_initialize_gdbarch): Add declaration.
12592 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12593 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12594 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12595 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12596 * go-lang.c (_initialize_go_language): Add declaration.
12597 * go32-nat.c (_initialize_go32_nat): Add declaration.
12598 * guile/guile.c (_initialize_guile): Add declaration.
12599 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12600 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12601 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12602 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12603 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12604 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12605 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12606 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12607 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12608 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12609 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12610 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12611 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12612 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12613 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12614 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12615 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12616 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12617 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12618 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12619 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12620 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12621 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12622 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12623 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12624 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12625 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12626 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12627 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12628 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12629 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12630 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12631 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12632 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12633 * infcall.c (_initialize_infcall): Add declaration.
12634 * infcmd.c (_initialize_infcmd): Add declaration.
12635 * inflow.c (_initialize_inflow): Add declaration.
12636 * infrun.c (_initialize_infrun): Add declaration.
12637 * interps.c (_initialize_interpreter): Add declaration.
12638 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12639 * jit.c (_initialize_jit): Add declaration.
12640 * language.c (_initialize_language): Add declaration.
12641 * linux-fork.c (_initialize_linux_fork): Add declaration.
12642 * linux-nat.c (_initialize_linux_nat): Add declaration.
12643 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12644 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12645 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12646 * m2-lang.c (_initialize_m2_language): Add declaration.
12647 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12648 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12649 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12650 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12651 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12652 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12653 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12654 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12655 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12656 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12657 * machoread.c (_initialize_machoread): Add declaration.
12658 * macrocmd.c (_initialize_macrocmd): Add declaration.
12659 * macroscope.c (_initialize_macroscope): Add declaration.
12660 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12661 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12662 * maint.c (_initialize_maint_cmds): Add declaration.
12663 * mdebugread.c (_initialize_mdebugread): Add declaration.
12664 * memattr.c (_initialize_mem): Add declaration.
12665 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12666 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12667 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12668 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12669 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12670 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12671 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12672 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12673 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12674 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12675 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12676 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12677 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12678 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12679 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12680 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12681 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12682 * mipsread.c (_initialize_mipsread): Add declaration.
12683 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12684 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12685 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12686 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12687 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12688 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12689 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12690 * nto-procfs.c (_initialize_procfs): Add declaration.
12691 * objc-lang.c (_initialize_objc_language): Add declaration.
12692 * observable.c (_initialize_observer): Add declaration.
12693 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12694 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12695 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12696 * osabi.c (_initialize_gdb_osabi): Add declaration.
12697 * osdata.c (_initialize_osdata): Add declaration.
12698 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12699 * parse.c (_initialize_parse): Add declaration.
12700 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12701 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12702 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12703 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12704 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12705 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12706 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12707 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12708 * printcmd.c (_initialize_printcmd): Add declaration.
12709 * probe.c (_initialize_probe): Add declaration.
12710 * proc-api.c (_initialize_proc_api): Add declaration.
12711 * proc-events.c (_initialize_proc_events): Add declaration.
12712 * proc-service.c (_initialize_proc_service): Add declaration.
12713 * procfs.c (_initialize_procfs): Add declaration.
12714 * producer.c (_initialize_producer): Add declaration.
12715 * psymtab.c (_initialize_psymtab): Add declaration.
12716 * python/python.c (_initialize_python): Add declaration.
12717 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12718 * record-btrace.c (_initialize_record_btrace): Add declaration.
12719 * record-full.c (_initialize_record_full): Add declaration.
12720 * record.c (_initialize_record): Add declaration.
12721 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12722 * regcache.c (_initialize_regcache): Add declaration.
12723 * reggroups.c (_initialize_reggroup): Add declaration.
12724 * remote-notif.c (_initialize_notif): Add declaration.
12725 * remote-sim.c (_initialize_remote_sim): Add declaration.
12726 * remote.c (_initialize_remote): Add declaration.
12727 * reverse.c (_initialize_reverse): Add declaration.
12728 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12729 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12730 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12731 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12732 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12733 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12734 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12735 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12736 Add declaration.
12737 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12738 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12739 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12740 * rust-exp.y (_initialize_rust_exp): Add declaration.
12741 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12742 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12743 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12744 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12745 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12746 * score-tdep.c (_initialize_score_tdep): Add declaration.
12747 * ser-go32.c (_initialize_ser_dos): Add declaration.
12748 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12749 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12750 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12751 * ser-uds.c (_initialize_ser_socket): Add declaration.
12752 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12753 * serial.c (_initialize_serial): Add declaration.
12754 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12755 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12756 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12757 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12758 * skip.c (_initialize_step_skip): Add declaration.
12759 * sol-thread.c (_initialize_sol_thread): Add declaration.
12760 * solib-aix.c (_initialize_solib_aix): Add declaration.
12761 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12762 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12763 * solib-frv.c (_initialize_frv_solib): Add declaration.
12764 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12765 * solib-target.c (_initialize_solib_target): Add declaration.
12766 * solib.c (_initialize_solib): Add declaration.
12767 * source-cache.c (_initialize_source_cache): Add declaration.
12768 * source.c (_initialize_source): Add declaration.
12769 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12770 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12771 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12772 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12773 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12774 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12775 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12776 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12777 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12778 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12779 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12780 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12781 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12782 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12783 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12784 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12785 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12786 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12787 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12788 * stabsread.c (_initialize_stabsread): Add declaration.
12789 * stack.c (_initialize_stack): Add declaration.
12790 * stap-probe.c (_initialize_stap_probe): Add declaration.
12791 * std-regs.c (_initialize_frame_reg): Add declaration.
12792 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12793 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12794 * symfile.c (_initialize_symfile): Add declaration.
12795 * symmisc.c (_initialize_symmisc): Add declaration.
12796 * symtab.c (_initialize_symtab): Add declaration.
12797 * target.c (_initialize_target): Add declaration.
12798 * target-connection.c (_initialize_target_connection): Add
12799 declaration.
12800 * target-dcache.c (_initialize_target_dcache): Add declaration.
12801 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12802 * thread.c (_initialize_thread): Add declaration.
12803 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12804 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12805 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12806 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12807 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12808 * tracectf.c (_initialize_ctf): Add declaration.
12809 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12810 * tracefile.c (_initialize_tracefile): Add declaration.
12811 * tracepoint.c (_initialize_tracepoint): Add declaration.
12812 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12813 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12814 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12815 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12816 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12817 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12818 * tui/tui.c (_initialize_tui): Add declaration.
12819 * typeprint.c (_initialize_typeprint): Add declaration.
12820 * ui-style.c (_initialize_ui_style): Add declaration.
12821 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12822 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12823 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12824 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12825 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12826 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12827 * unittests/filtered_iterator-selftests.c
12828 (_initialize_filtered_iterator_selftests): Add declaration.
12829 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12830 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12831 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12832 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12833 * unittests/main-thread-selftests.c
12834 (_initialize_main_thread_selftests): Add declaration.
12835 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12836 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12837 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12838 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12839 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12840 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12841 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12842 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12843 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12844 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12845 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12846 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12847 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12848 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12849 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12850 declaration.
12851 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12852 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12853 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12854 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12855 * user-regs.c (_initialize_user_regs): Add declaration.
12856 * utils.c (_initialize_utils): Add declaration.
12857 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12858 * valops.c (_initialize_valops): Add declaration.
12859 * valprint.c (_initialize_valprint): Add declaration.
12860 * value.c (_initialize_values): Add declaration.
12861 * varobj.c (_initialize_varobj): Add declaration.
12862 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12863 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12864 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12865 * windows-nat.c (_initialize_windows_nat): Add declaration.
12866 (_initialize_check_for_gdb_ini): Add declaration.
12867 (_initialize_loadable): Add declaration.
12868 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12869 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12870 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12871 * xcoffread.c (_initialize_xcoffread): Add declaration.
12872 * xml-support.c (_initialize_xml_support): Add declaration.
12873 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12874 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12875 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12876 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12877
e2de1eec
SM
128782020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12879
12880 * regformats/regdat.sh: Generate declaration for init function.
12881
e0037b4c
SM
128822020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12883
12884 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12885 up.
12886 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12887 close_one_inferior>: New methods.
12888 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12889 pass down target to find_inferior_pid.
12890 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12891 Pass down target to find_inferior_ptid.
12892 (gdbsim_target::create_inferior): Pass down target to
12893 add_thread_silent.
12894 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12895 target down to find_inferior_ptid and switch_to_thread.
12896 (gdbsim_target::close): Update to call close_one_inferior.
12897 (struct resume_data): Remove.
12898 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12899 directly, rather than through a void pointer.
12900 (gdbsim_target::resume): Update to call resume_one_inferior.
12901
58920b5b
SM
129022020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12903
12904 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12905
4ec89149
PA
129062020-01-12 Pedro Alves <palves@redhat.com>
12907
12908 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12909 directly for the current inferior instead of
12910 discard_all_inferiors.
12911 (discard_all_inferiors): Delete.
12912
7c392d1d
TT
129132020-01-11 Tom Tromey <tom@tromey.com>
12914
12915 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12916 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12917 deprecated_safe_get_selected_frame.
12918
d9ebdab7
TBA
129192020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12920
12921 * inferior.c (print_inferior): Switch inferior before printing it.
12922
f3c469b9
PA
129232020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12924 Pedro Alves <palves@redhat.com>
12925
12926 * progspace-and-thread.c (switch_to_program_space_and_thread):
12927 Assert there's an inferior for PSPACE. Use
12928 switch_to_inferior_no_thread to switch the inferior too.
12929 * progspace.c (program_space::~program_space): Call
12930 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12931 (program_space::free_all_objfiles): Don't call clear_symtab_users
12932 here.
12933 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12934
65c574f6
PA
129352020-01-10 Pedro Alves <palves@redhat.com>
12936
12937 * NEWS: Mention multi-target debugging, "info connections", and
12938 "add-inferior -no-connection".
12939
2f4fcf00
PA
129402020-01-10 Pedro Alves <palves@redhat.com>
12941
12942 * infrun.c: Include "target-connection.h".
12943 (check_multi_target_resumption): New.
12944 (proceed): Call it.
12945 * target-connection.c (make_target_connection_string): Make
12946 extern.
12947 * target-connection.h (make_target_connection_string): Declare.
12948
121b3efd
PA
129492020-01-10 Pedro Alves <palves@redhat.com>
12950
12951 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12952 * inferior.c (uiout_field_connection): New function.
12953 (print_inferior): Add new "connection-id" column.
12954 (add_inferior_command): Show connection number/string of added
12955 inferior.
12956 * process-stratum-target.h
12957 (process_stratum_target::connection_string): New virtual method.
12958 (process_stratum_target::connection_number): New field.
12959 * remote.c (remote_target::connection_string): New override.
12960 * target-connection.c: New file.
12961 * target-connection.h: New file.
12962 * target.c (decref_target): Remove process_stratum targets from
12963 the connection list.
12964 (target_stack::push): Add process_stratum targets to the
12965 connection list.
12966
4f837581
PA
129672020-01-10 Pedro Alves <palves@redhat.com>
12968
12969 Revert:
12970 2016-04-12 Pedro Alves <palves@redhat.com>
12971 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12972 Remove references to name.
12973 * serial.h (struct serial) <name>: Delete.
12974
f4ec508e
PA
129752020-01-10 Pedro Alves <palves@redhat.com>
12976
12977 * gdbarch-selftests.c (register_to_value_test): Remove "target
12978 already pushed" check.
12979
5b6d1e4f
PA
129802020-01-10 Pedro Alves <palves@redhat.com>
12981 John Baldwin <jhb@FreeBSD.org>
12982
12983 * aarch64-linux-nat.c
12984 (aarch64_linux_nat_target::thread_architecture): Adjust.
12985 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12986 (task_command_1): Likewise.
12987 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12988 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12989 (aix_thread_target::store_registers)
12990 (aix_thread_target::thread_alive): Adjust.
12991 * amd64-fbsd-tdep.c: Include "inferior.h".
12992 (amd64fbsd_get_thread_local_address): Pass down target.
12993 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12994 thread's gdbarch instead of target_gdbarch.
12995 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12996 get_last_target_status.
12997 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12998 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12999 inferiors.
13000 (update_inserted_breakpoint_locations): Skip if inferiors with no
13001 execution.
13002 (update_global_location_list): When handling moribund locations,
13003 find representative inferior for location's pspace, and use thread
13004 count of its process_stratum target.
13005 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13006 * bsd-uthread.c (bsd_uthread_target::wait): Use
13007 as_process_stratum_target and adjust thread_change_ptid and
13008 add_thread calls.
13009 (bsd_uthread_target::update_thread_list): Use
13010 as_process_stratum_target and adjust find_thread_ptid,
13011 thread_change_ptid and add_thread calls.
13012 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13013 find_thread_ptid call.
13014 * corelow.c (add_to_thread_list): Adjust add_thread call.
13015 (core_target_open): Adjust add_thread_silent and thread_count
13016 calls.
13017 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13018 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13019 * event-top.c (async_disconnect): Pop targets from all inferiors.
13020 * exec.c (add_target_sections): Push exec target on all inferiors
13021 sharing the program space.
13022 (remove_target_sections): Remove the exec target from all
13023 inferiors sharing the program space.
13024 (exec_on_vfork): New.
13025 * exec.h (exec_on_vfork): Declare.
13026 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13027 Pass it down.
13028 (fbsd_nat_target::update_thread_list): Adjust.
13029 (fbsd_nat_target::resume): Adjust.
13030 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13031 down.
13032 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13033 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13034 get_thread_arch_regcache call.
13035 * fork-child.c (gdb_startup_inferior): Pass target down to
13036 startup_inferior and set_executing.
13037 * gdbthread.h (struct process_stratum_target): Forward declare.
13038 (add_thread, add_thread_silent, add_thread_with_info)
13039 (in_thread_list): Add process_stratum_target parameter.
13040 (find_thread_ptid(inferior*, ptid_t)): New overload.
13041 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13042 parameter.
13043 (all_threads()): Delete overload.
13044 (all_threads, all_non_exited_threads): Add process_stratum_target
13045 parameter.
13046 (all_threads_safe): Use brace initialization.
13047 (thread_count): Add process_stratum_target parameter.
13048 (set_resumed, set_running, set_stop_requested, set_executing)
13049 (threads_are_executing, finish_thread_state): Add
13050 process_stratum_target parameter.
13051 (switch_to_thread): Use is_current_thread.
13052 * i386-fbsd-tdep.c: Include "inferior.h".
13053 (i386fbsd_get_thread_local_address): Pass down target.
13054 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13055 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13056 have_inferiors check.
13057 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13058 (inf_ptrace_target::attach): Adjust.
13059 * infcall.c (run_inferior_call): Adjust.
13060 * infcmd.c (run_command_1): Pass target to
13061 scoped_finish_thread_state.
13062 (proceed_thread_callback): Skip inferiors with no execution.
13063 (continue_command): Rename 'all_threads' local to avoid hiding
13064 'all_threads' function. Adjust get_last_target_status call.
13065 (prepare_one_step): Adjust set_running call.
13066 (signal_command): Use user_visible_resume_target. Compare thread
13067 pointers instead of inferior_ptid.
13068 (info_program_command): Adjust to pass down target.
13069 (attach_command): Mark target's 'thread_executing' flag.
13070 (stop_current_target_threads_ns): New, factored out from ...
13071 (interrupt_target_1): ... this. Switch inferior before making
13072 target calls.
13073 * inferior-iter.h
13074 (struct all_inferiors_iterator, struct all_inferiors_range)
13075 (struct all_inferiors_safe_range)
13076 (struct all_non_exited_inferiors_range): Filter on
13077 process_stratum_target too. Remove explicit.
13078 * inferior.c (inferior::inferior): Push dummy target on target
13079 stack.
13080 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13081 Add process_stratum_target parameter, and pass it down.
13082 (have_live_inferiors): Adjust.
13083 (switch_to_inferior_and_push_target): New.
13084 (add_inferior_command, clone_inferior_command): Handle
13085 "-no-connection" parameter. Use
13086 switch_to_inferior_and_push_target.
13087 (_initialize_inferior): Mention "-no-connection" option in
13088 the help of "add-inferior" and "clone-inferior" commands.
13089 * inferior.h: Include "process-stratum-target.h".
13090 (interrupt_target_1): Use bool.
13091 (struct inferior) <push_target, unpush_target, target_is_pushed,
13092 find_target_beneath, top_target, process_target, target_at,
13093 m_stack>: New.
13094 (discard_all_inferiors): Delete.
13095 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13096 (all_inferiors, all_non_exited_inferiors): Add
13097 process_stratum_target parameter.
13098 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13099 (target_last_proc_target): New global.
13100 (follow_fork_inferior): Push target on new inferior. Pass target
13101 to add_thread_silent. Call exec_on_vfork. Handle target's
13102 reference count.
13103 (follow_fork): Adjust get_last_target_status call. Also consider
13104 target.
13105 (follow_exec): Push target on new inferior.
13106 (struct execution_control_state) <target>: New field.
13107 (user_visible_resume_target): New.
13108 (do_target_resume): Call target_async.
13109 (resume_1): Set target's threads_executing flag. Consider resume
13110 target.
13111 (commit_resume_all_targets): New.
13112 (proceed): Also consider resume target. Skip threads of inferiors
13113 with no execution. Commit resumtion in all targets.
13114 (start_remote): Pass current inferior to wait_for_inferior.
13115 (infrun_thread_stop_requested): Consider target as well. Pass
13116 thread_info pointer to clear_inline_frame_state instead of ptid.
13117 (infrun_thread_thread_exit): Consider target as well.
13118 (random_pending_event_thread): New inferior parameter. Use it.
13119 (do_target_wait): Rename to ...
13120 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13121 down.
13122 (threads_are_resumed_pending_p, do_target_wait): New.
13123 (prepare_for_detach): Adjust calls.
13124 (wait_for_inferior): New inferior parameter. Handle it. Use
13125 do_target_wait_1 instead of do_target_wait.
13126 (fetch_inferior_event): Adjust. Switch to representative
13127 inferior. Pass target down.
13128 (set_last_target_status): Add process_stratum_target parameter.
13129 Save target in global.
13130 (get_last_target_status): Add process_stratum_target parameter and
13131 handle it.
13132 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13133 (context_switch): Check inferior_ptid == null_ptid before calling
13134 inferior_thread().
13135 (get_inferior_stop_soon): Pass down target.
13136 (wait_one): Rename to ...
13137 (poll_one_curr_target): ... this.
13138 (struct wait_one_event): New.
13139 (wait_one): New.
13140 (stop_all_threads): Adjust.
13141 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13142 event's target.
13143 (switch_back_to_stepped_thread): Also consider target.
13144 (print_stop_event): Update.
13145 (normal_stop): Update. Also consider the resume target.
13146 * infrun.h (wait_for_inferior): Remove declaration.
13147 (user_visible_resume_target): New declaration.
13148 (get_last_target_status, set_last_target_status): New
13149 process_stratum_target parameter.
13150 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13151 process_stratum_target parameter, and use it.
13152 (clear_inline_frame_state (thread_info*)): New.
13153 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13154 process_stratum_target parameter.
13155 (clear_inline_frame_state (thread_info*)): Declare.
13156 * linux-fork.c (delete_checkpoint_command): Pass target down to
13157 find_thread_ptid.
13158 (checkpoint_command): Adjust.
13159 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13160 instead of just tweaking inferior_ptid.
13161 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13162 (exit_lwp): Pass target down to find_thread_ptid.
13163 (attach_proc_task_lwp_callback): Pass target down to
13164 add_thread/set_running/set_executing.
13165 (linux_nat_target::attach): Pass target down to
13166 thread_change_ptid.
13167 (get_detach_signal): Pass target down to find_thread_ptid.
13168 Consider last target status's target.
13169 (linux_resume_one_lwp_throw, resume_lwp)
13170 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13171 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13172 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13173 (linux_nat_target::async_wait_fd): New.
13174 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13175 target down.
13176 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13177 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13178 * linux-thread-db.c (struct thread_db_info::process_target): New
13179 field.
13180 (add_thread_db_info): Save target.
13181 (get_thread_db_info): New process_stratum_target parameter. Also
13182 match target.
13183 (delete_thread_db_info): New process_stratum_target parameter.
13184 Also match target.
13185 (thread_from_lwp): Adjust to pass down target.
13186 (thread_db_notice_clone): Pass down target.
13187 (check_thread_db_callback): Pass down target.
13188 (try_thread_db_load_1): Always push the thread_db target.
13189 (try_thread_db_load, record_thread): Pass target down.
13190 (thread_db_target::detach): Pass target down. Always unpush the
13191 thread_db target.
13192 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13193 target down. Always unpush the thread_db target.
13194 (find_new_threads_callback, thread_db_find_new_threads_2)
13195 (thread_db_target::update_thread_list): Pass target down.
13196 (thread_db_target::pid_to_str): Pass current inferior down.
13197 (thread_db_target::get_thread_local_address): Pass target down.
13198 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13199 target down.
13200 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13201 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13202 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13203 (procfs_init_inferior): Rename to ...
13204 (procfs_target::procfs_init_inferior): ... this and adjust.
13205 (procfs_target::create_inferior, procfs_notice_thread)
13206 (procfs_do_thread_registers): Adjust.
13207 * ppc-fbsd-tdep.c: Include "inferior.h".
13208 (ppcfbsd_get_thread_local_address): Pass down target.
13209 * proc-service.c (ps_xfer_memory): Switch current inferior and
13210 program space as well.
13211 (get_ps_regcache): Pass target down.
13212 * process-stratum-target.c
13213 (process_stratum_target::thread_address_space)
13214 (process_stratum_target::thread_architecture): Pass target down.
13215 * process-stratum-target.h
13216 (process_stratum_target::threads_executing): New field.
13217 (as_process_stratum_target): New.
13218 * ravenscar-thread.c
13219 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13220 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13221 down.
13222 * record-btrace.c (record_btrace_target::info_record): Adjust.
13223 (record_btrace_target::record_method)
13224 (record_btrace_target::record_is_replaying)
13225 (record_btrace_target::fetch_registers)
13226 (get_thread_current_frame_id, record_btrace_target::resume)
13227 (record_btrace_target::wait, record_btrace_target::stop): Pass
13228 target down.
13229 * record-full.c (record_full_wait_1): Switch to event thread.
13230 Pass target down.
13231 * regcache.c (regcache::regcache)
13232 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13233 process_stratum_target parameter and handle it.
13234 (current_thread_target): New global.
13235 (get_thread_regcache): Add process_stratum_target parameter and
13236 handle it. Switch inferior before calling target method.
13237 (get_thread_regcache): Pass target down.
13238 (get_thread_regcache_for_ptid): Pass target down.
13239 (registers_changed_ptid): Add process_stratum_target parameter and
13240 handle it.
13241 (registers_changed_thread, registers_changed): Pass target down.
13242 (test_get_thread_arch_aspace_regcache): New.
13243 (current_regcache_test): Define a couple local test_target_ops
13244 instances and use them for testing.
13245 (readwrite_regcache): Pass process_stratum_target parameter.
13246 (cooked_read_test, cooked_write_test): Pass mock_target down.
13247 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13248 (get_thread_arch_aspace_regcache): Add process_stratum_target
13249 parameter.
13250 (regcache::target): New method.
13251 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13252 (regcache::registers_changed_ptid): Add process_stratum_target
13253 parameter.
13254 (regcache::m_target): New field.
13255 (registers_changed_ptid): Add process_stratum_target parameter.
13256 * remote.c (remote_state::supports_vCont_probed): New field.
13257 (remote_target::async_wait_fd): New method.
13258 (remote_unpush_and_throw): Add remote_target parameter.
13259 (get_current_remote_target): Adjust.
13260 (remote_target::remote_add_inferior): Push target.
13261 (remote_target::remote_add_thread)
13262 (remote_target::remote_notice_new_inferior)
13263 (get_remote_thread_info): Pass target down.
13264 (remote_target::update_thread_list): Skip threads of inferiors
13265 bound to other targets. (remote_target::close): Don't discard
13266 inferiors. (remote_target::add_current_inferior_and_thread)
13267 (remote_target::process_initial_stop_replies)
13268 (remote_target::start_remote)
13269 (remote_target::remote_serial_quit_handler): Pass down target.
13270 (remote_target::remote_unpush_target): New remote_target
13271 parameter. Unpush the target from all inferiors.
13272 (remote_target::remote_unpush_and_throw): New remote_target
13273 parameter. Pass it down.
13274 (remote_target::open_1): Check whether the current inferior has
13275 execution instead of checking whether any inferior is live. Pass
13276 target down.
13277 (remote_target::remote_detach_1): Pass down target. Use
13278 remote_unpush_target.
13279 (extended_remote_target::attach): Pass down target.
13280 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13281 (remote_target::append_resumption): Pass down target.
13282 (remote_target::append_pending_thread_resumptions)
13283 (remote_target::remote_resume_with_hc, remote_target::resume)
13284 (remote_target::commit_resume): Pass down target.
13285 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13286 (remote_target::interrupt_query)
13287 (remote_target::remove_new_fork_children)
13288 (remote_target::check_pending_events_prevent_wildcard_vcont)
13289 (remote_target::remote_parse_stop_reply)
13290 (remote_target::process_stop_reply): Pass down target.
13291 (first_remote_resumed_thread): New remote_target parameter. Pass
13292 it down.
13293 (remote_target::wait_as): Pass down target.
13294 (unpush_and_perror): New remote_target parameter. Pass it down.
13295 (remote_target::readchar, remote_target::remote_serial_write)
13296 (remote_target::getpkt_or_notif_sane_1)
13297 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13298 down target.
13299 (remote_target::mourn_inferior): Pass down target. Use
13300 remote_unpush_target.
13301 (remote_target::core_of_thread)
13302 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13303 (remote_target::pid_to_exec_file)
13304 (remote_target::thread_handle_to_thread_info): Pass down target.
13305 (remote_target::async_wait_fd): New.
13306 * riscv-fbsd-tdep.c: Include "inferior.h".
13307 (riscv_fbsd_get_thread_local_address): Pass down target.
13308 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13309 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13310 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13311 Adjust.
13312 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13313 * solib-svr4.c (enable_break): Pass down target.
13314 * spu-multiarch.c (parse_spufs_run): Pass down target.
13315 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13316 * target-delegates.c: Regenerate.
13317 * target.c (g_target_stack): Delete.
13318 (current_top_target): Return the current inferior's top target.
13319 (target_has_execution_1): Refer to the passed-in inferior's top
13320 target.
13321 (target_supports_terminal_ours): Check whether the initial
13322 inferior was already created.
13323 (decref_target): New.
13324 (target_stack::push): Incref/decref the target.
13325 (push_target, push_target, unpush_target): Adjust.
13326 (target_stack::unpush): Defref target.
13327 (target_is_pushed): Return bool. Adjust to refer to the current
13328 inferior's target stack.
13329 (dispose_inferior): Delete, and inline parts ...
13330 (target_preopen): ... here. Only dispose of the current inferior.
13331 (target_detach): Hold strong target reference while detaching.
13332 Pass target down.
13333 (target_thread_name): Add assertion.
13334 (target_resume): Pass down target.
13335 (target_ops::beneath, find_target_at): Adjust to refer to the
13336 current inferior's target stack.
13337 (get_dummy_target): New.
13338 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13339 has a thread running.
13340 (initialize_targets): Rename to ...
13341 (_initialize_target): ... this.
13342 * target.h: Include "gdbsupport/refcounted-object.h".
13343 (struct target_ops): Inherit refcounted_object.
13344 (target_ops::shortname, target_ops::longname): Make const.
13345 (target_ops::async_wait_fd): New method.
13346 (decref_target): Declare.
13347 (struct target_ops_ref_policy): New.
13348 (target_ops_ref): New typedef.
13349 (get_dummy_target): Declare function.
13350 (target_is_pushed): Return bool.
13351 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13352 (all_matching_threads_iterator::all_matching_threads_iterator):
13353 Handle filter target.
13354 * thread-iter.h (struct all_matching_threads_iterator, struct
13355 all_matching_threads_range, class all_non_exited_threads_range):
13356 Filter by target too. Remove explicit.
13357 * thread.c (threads_executing): Delete.
13358 (inferior_thread): Pass down current inferior.
13359 (clear_thread_inferior_resources): Pass down thread pointer
13360 instead of ptid_t.
13361 (add_thread_silent, add_thread_with_info, add_thread): Add
13362 process_stratum_target parameter. Use it for thread and inferior
13363 searches.
13364 (is_current_thread): New.
13365 (thread_info::deletable): Use it.
13366 (find_thread_ptid, thread_count, in_thread_list)
13367 (thread_change_ptid, set_resumed, set_running): New
13368 process_stratum_target parameter. Pass it down.
13369 (set_executing): New process_stratum_target parameter. Pass it
13370 down. Adjust reference to 'threads_executing'.
13371 (threads_are_executing): New process_stratum_target parameter.
13372 Adjust reference to 'threads_executing'.
13373 (set_stop_requested, finish_thread_state): New
13374 process_stratum_target parameter. Pass it down.
13375 (switch_to_thread): Also match inferior.
13376 (switch_to_thread): New process_stratum_target parameter. Pass it
13377 down.
13378 (update_threads_executing): Reimplement.
13379 * top.c (quit_force): Pop targets from all inferior.
13380 (gdb_init): Don't call initialize_targets.
13381 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13382 Declare.
13383 (windows_add_thread, windows_delete_thread): Adjust.
13384 (get_windows_debug_event): Rename to ...
13385 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13386 * tracefile-tfile.c (tfile_target_open): Pass down target.
13387 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13388 Forward declare.
13389 (switch_to_thread): Add process_stratum_target parameter.
13390 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13391 parameter. Use it.
13392 (mi_on_resume): Pass target down.
13393 * nat/fork-inferior.c (startup_inferior): Add
13394 process_stratum_target parameter. Pass it down.
13395 * nat/fork-inferior.h (startup_inferior): Add
13396 process_stratum_target parameter.
13397 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13398
75c6c844
PA
133992020-01-10 Pedro Alves <palves@redhat.com>
13400
13401 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13402 directly. Instead find the first thread in the thread list and
13403 use switch_to_thread.
13404
78f2c40a
PA
134052020-01-10 Pedro Alves <palves@redhat.com>
13406
13407 * remote.c (remote_target::remote_add_inferior): Don't bind a
13408 process to the current inferior if the current inferior is already
13409 bound to a process.
13410
e7af6c70
TBA
134112020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13412 Pedro Alves <palves@redhat.com>
13413
13414 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13415 If no process is specified, return null_ptid instead of
13416 inferior_ptid.
13417 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13418 TARGET_WAITKIND_SIGNALLED with no pid.
13419
31ba933e
PA
134202020-01-10 Pedro Alves <palves@redhat.com>
13421
13422 * remote.c (first_remote_resumed_thread): New.
13423 (remote_target::wait_as): Use it as default event_ptid instead of
13424 inferior_ptid.
13425
735fc2ca
PA
134262020-01-10 Pedro Alves <palves@redhat.com>
13427
13428 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13429
c17e02e1
PA
134302020-01-10 Pedro Alves <palves@redhat.com>
13431
13432 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13433 not -1.
13434
ab1ddbcf
PA
134352020-01-10 Pedro Alves <palves@redhat.com>
13436
13437 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13438 ptid to get_last_target_status.
13439 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13440 ptid to get_last_target_status.
13441 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13442 get_last_target_status.
13443 (info_program_command): Don't pass a target_waitstatus to
13444 get_last_target_status.
13445 * infrun.c (init_wait_for_inferior): Use
13446 nullify_last_target_wait_ptid.
13447 (get_last_target_status): Handle nullptr arguments.
13448 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13449 (print_stop_event): Don't pass a ptid to get_last_target_status.
13450 (normal_stop): Don't pass a ptid to get_last_target_status.
13451 * infrun.h (get_last_target_status, set_last_target_status): Move
13452 comments here and update.
13453 (nullify_last_target_wait_ptid): Declare.
13454 * linux-fork.c (fork_load_infrun_state): Remove local extern
13455 declaration of nullify_last_target_wait_ptid.
13456 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13457 to get_last_target_status.
13458
f3f8ece4
PA
134592020-01-10 Pedro Alves <palves@redhat.com>
13460
13461 * gdbthread.h (scoped_restore_current_thread)
13462 <dont_restore, restore, m_dont_restore>: Declare.
13463 * thread.c (thread_alive): Add assertion. Return bool.
13464 (switch_to_thread_if_alive): New.
13465 (prune_threads): Switch inferior/thread.
13466 (print_thread_info_1): Switch thread before calling target methods.
13467 (scoped_restore_current_thread::restore): New, factored out from
13468 ...
13469 (scoped_restore_current_thread::~scoped_restore_current_thread):
13470 ... this.
13471 (scoped_restore_current_thread::scoped_restore_current_thread):
13472 Add assertion.
13473 (thread_apply_all_command, thread_select): Use
13474 switch_to_thread_if_alive.
13475 * infrun.c (proceed, restart_threads, handle_signal_stop)
13476 (switch_back_to_stepped_thread): Switch current thread before
13477 calling target methods.
13478
db2d40f7
PA
134792020-01-10 Pedro Alves <palves@redhat.com>
13480
13481 * inferior.c (switch_to_inferior_no_thread): New function,
13482 factored out from ...
13483 (inferior_command): ... here.
13484 * inferior.h (switch_to_inferior_no_thread): Declare.
13485 * mi/mi-main.c (run_one_inferior): Use
13486 switch_to_inferior_no_thread.
13487
bd420a2d
PA
134882020-01-10 Pedro Alves <palves@redhat.com>
13489
13490 * infcmd.c (kill_command): Remove dead code.
13491
ddf5db90
PA
134922020-01-10 Pedro Alves <palves@redhat.com>
13493
13494 * remote.c (remote_target::mourn_inferior): No longer check
13495 whether the target is running.
13496
5018ce90
PA
134972020-01-10 Pedro Alves <palves@redhat.com>
13498
13499 * corelow.c (core_target::has_execution): Change parameter type to
13500 inferior pointer.
13501 * inferior.c (number_of_live_inferiors): Use
13502 inferior::has_execution instead of target_has_execution_1.
13503 * inferior.h (inferior::has_execution): New.
13504 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13505 inferior::has_execution instead of target_has_execution_1.
13506 * process-stratum-target.c
13507 (process_stratum_target::has_execution): Change parameter type to
13508 inferior pointer. Check the inferior's PID instead of
13509 inferior_ptid.
13510 * process-stratum-target.h
13511 (process_stratum_target::has_execution): Change parameter type to
13512 inferior pointer.
13513 * record-full.c (record_full_core_target::has_execution): Change
13514 parameter type to inferior pointer.
13515 * target.c (target_has_execution_1): Change parameter type to
13516 inferior pointer.
13517 (target_has_execution_current): Adjust.
13518 * target.h (target_ops::has_execution): Change parameter type to
13519 inferior pointer.
13520 (target_has_execution_1): Change parameter type to inferior
13521 pointer. Change return type to bool.
13522 * tracefile.h (tracefile_target::has_execution): Change parameter
13523 type to inferior pointer.
13524
74375d18
PA
135252020-01-10 Pedro Alves <palves@redhat.com>
13526
13527 * exceptions.c (print_flush): Remove current_top_target() check.
13528
acdf84a6
PA
135292020-01-10 Pedro Alves <palves@redhat.com>
13530
13531 * remote.c (show_remote_exec_file): Show the current inferior's
13532 exec-file instead of the command variable's value.
13533
ec506636
PA
135342020-01-10 Pedro Alves <palves@redhat.com>
13535
13536 * record-full.c (record_full_resume_ptid): New global.
13537 (record_full_target::resume): Set it.
13538 (record_full_wait_1): Use record_full_resume_ptid instead of
13539 inferior_ptid.
13540
873657b9
PA
135412020-01-10 Pedro Alves <palves@redhat.com>
13542
13543 * gdbthread.h (scoped_restore_current_thread)
13544 <dont_restore, restore, m_dont_restore>: Declare.
13545 * thread.c (thread_alive): Add assertion. Return bool.
13546 (switch_to_thread_if_alive): New.
13547 (prune_threads): Switch inferior/thread.
13548 (print_thread_info_1): Switch thread before calling target methods.
13549 (scoped_restore_current_thread::restore): New, factored out from
13550 ...
13551 (scoped_restore_current_thread::~scoped_restore_current_thread):
13552 ... this.
13553 (scoped_restore_current_thread::scoped_restore_current_thread):
13554 Add assertion.
13555 (thread_apply_all_command, thread_select): Use
13556 switch_to_thread_if_alive.
13557
7f0ae84c
GB
135582020-01-10 George Barrett <bob@bob131.so>
13559
13560 * stap-probe.c (stap_modify_semaphore): Don't check for null
13561 semaphores.
13562 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13563 for null semaphores.
13564
f5a7c406
AB
135652020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13566
13567 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13568 all source windows, and maintain horizontal scroll status while
13569 doing so.
13570
9ae6bf64
TT
135712020-01-09 Tom Tromey <tom@tromey.com>
13572
13573 PR tui/18932:
13574 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13575 update_source_window, not print_source_lines.
13576
b2efe70c
AB
135772020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13578
13579 * tui/tui.c (tui_enable): Register tui hooks after calling
13580 tui_display_main.
13581
5f23a082
CB
135822020-01-09 Christian Biesinger <cbiesinger@google.com>
13583
13584 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13585
3061113b
SM
135862020-01-08 Simon Marchi <simon.marchi@efficios.com>
13587
13588 * thread.c (print_thread_info_1): Fix indentation.
13589
57d75002
CB
135902020-01-09 Christian Biesinger <cbiesinger@google.com>
13591
13592 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13593 unique_xmalloc_ptr outside the if to always free the demangled name.
13594
6a053cb1
TT
135952020-01-08 Tom Tromey <tromey@adacore.com>
13596
13597 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13598 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13599 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13600 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13601 Remove.
13602 (section_offsets): New typedef.
13603 * symtab.c (fixup_section, get_msymbol_address): Update.
13604 * symmisc.c (dump_msymbols): Update.
13605 * symfile.h (relative_addr_info_to_section_offsets)
13606 (symfile_map_offsets_to_segments): Update.
13607 * symfile.c (build_section_addr_info_from_objfile)
13608 (init_objfile_sect_indices): Update.
13609 (struct place_section_arg): Change type of "offsets".
13610 (place_section): Update.
13611 (relative_addr_info_to_section_offsets): Change type of
13612 "section_offsets". Remove "num_sections" parameter.
13613 (default_symfile_offsets, syms_from_objfile_1)
13614 (set_objfile_default_section_offset): Update.
13615 (reread_symbols): No need to preserve section offsets by hand.
13616 (symfile_map_offsets_to_segments): Change type of "offsets".
13617 * stap-probe.c (relocate_address): Update.
13618 * stabsread.h (process_one_symbol): Update.
13619 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13620 (solib_target_relocate_section_addresses): Update.
13621 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13622 Update.
13623 * solib-frv.c (frv_relocate_main_executable): Update.
13624 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13625 * solib-aix.c (solib_aix_get_section_offsets): Change return
13626 type.
13627 (solib_aix_solib_create_inferior_hook): Update.
13628 * remote.c (remote_target::get_offsets): Update.
13629 * psymtab.c (find_pc_sect_psymtab): Update.
13630 * psympriv.h (struct partial_symbol) <address, text_low,
13631 text_high>: Update.
13632 * objfiles.h (obj_section_offset): Update.
13633 (struct objfile) <section_offsets>: Change type.
13634 <num_sections>: Remove.
13635 (objfile_relocate): Update.
13636 * objfiles.c (entry_point_address_query): Update
13637 (relocate_one_symbol): Change type of "section_offsets".
13638 (objfile_relocate1, objfile_relocate1): Change type of
13639 "new_offsets".
13640 (objfile_rebase1): Update.
13641 * mipsread.c (mipscoff_symfile_read): Update.
13642 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13643 parameter.
13644 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13645 (parse_external, psymtab_to_symtab_1): Update.
13646 * machoread.c (macho_symfile_offsets): Update.
13647 * ia64-tdep.c (ia64_find_unwind_table): Update.
13648 * hppa-tdep.c (read_unwind_info): Update.
13649 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13650 * dwarf2read.c (create_addrmap_from_index)
13651 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13652 (process_psymtab_comp_unit_reader, add_partial_symbol)
13653 (add_partial_subprogram, process_full_comp_unit)
13654 (read_file_scope, read_func_scope, read_lexical_block_scope)
13655 (read_call_site_scope, dwarf2_rnglists_process)
13656 (dwarf2_ranges_process, dwarf2_ranges_read)
13657 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13658 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13659 Update.
13660 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13661 Update.
13662 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13663 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13664 (process_one_symbol): Change type of "section_offsets".
13665 * ctfread.c (get_objfile_text_range): Update.
13666 * coffread.c (coff_symtab_read, enter_linenos)
13667 (process_coff_symbol): Update.
13668 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13669 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13670
456e800a
TT
136712020-01-08 Tom Tromey <tromey@adacore.com>
13672
13673 * dwarf2read.c (parse_macro_definition): Use std::string.
13674 (parse_macro_definition): Likewise.
13675
6dfa2fc2
TT
136762020-01-08 Tom Tromey <tromey@adacore.com>
13677
13678 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13679 (ATTR_ALLOC_CHUNK): Remove.
13680
421d1616
TT
136812020-01-08 Tom Tromey <tromey@adacore.com>
13682
13683 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13684
43816ebc
TT
136852020-01-08 Tom Tromey <tromey@adacore.com>
13686
13687 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13688 (dwarf2_compute_name, open_dwo_file): Likewise.
13689 (process_enumeration_scope): Use std::vector.
13690 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13691 (partial_die_info::fixup, dwarf2_start_subfile)
13692 (guess_full_die_structure_name, dwarf2_name): Likewise.
13693 (determine_prefix): Update.
13694 (guess_full_die_structure_name): Make return type const.
13695 (partial_die_full_name): Return unique_xmalloc_ptr.
13696 (DW_FIELD_ALLOC_CHUNK): Remove.
13697
4212d509
TT
136982020-01-07 Tom Tromey <tromey@adacore.com>
13699
13700 PR build/24937:
13701 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13702
06a6207a
JT
137032020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13704
13705 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13706
153d79c4
AB
137072020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13708
13709 * stack.c (print_frame_info): Move disassemble_next_line code
13710 inside source_print block.
13711
66182876
EZ
137122020-01-06 Eli Zaretskii <eliz@gnu.org>
13713
13714 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13715 gdb/signals.h, as we are now using native signal symbols.
13716
cbfa8581
SV
137172020-01-06 Shahab Vahedi <shahab@synopsys.com>
13718
13719 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13720 overflow by an early check of content vs threshold.
aac66a4c 13721 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13722 Likewise.
13723
3f602821
EZ
137242020-01-06 Eli Zaretskii <eliz@gnu.org>
13725
13726 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13727
a08c904d
JT
137282020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13729
13730 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13731 export table if no section contains it's RVA.
13732
89a65580
EZ
137332020-01-06 Eli Zaretskii <eliz@gnu.org>
13734
13735 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13736
8b7fcda2
HD
137372020-01-06 Hannes Domani <ssbssa@yahoo.de>
13738
13739 * source.c (print_source_lines_base): Set last_line_listed.
13740
a61b4f69
SV
137412020-01-06 Shahab Vahedi <shahab@synopsys.com>
13742
13743 * tui/tui-disasm.c: Remove trailing spaces.
13744
559e7e50
EZ
137452020-01-06 Eli Zaretskii <eliz@gnu.org>
13746 Pedro Alves <palves@redhat.com>
13747
13748 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13749 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13750 (windows_gdb_signal_to_target): New function, uses the above
13751 enumeration to convert GDB internal signal codes to equivalent
13752 Windows codes.
13753 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13754 * windows-nat.c: Include "gdb_wait.h".
13755 (get_windows_debug_event): Extract the fatal exception from the
13756 exit status and convert to the equivalent Posix signal number.
13757 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13758 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13759 * gdbsupport/gdb_wait.c: New file, implements
13760 windows_status_to_termsig.
13761 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13762 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13763
f2302a34
AB
137642020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13765
13766 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13767 show_layout.
13768
6a5206eb
LM
137692020-01-05 Luis Machado <luis.machado@linaro.org>
13770
13771 * aarch64-linux-nat.c
13772 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13773 and bfd_mach_aarch64.
13774
6ec1d75e
PW
137752020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13776
13777 * ui-file.c (stdio_file::can_emit_style_escape)
13778 (tee_file::can_emit_style_escape): Ensure style is used also on
13779 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13780 to gdb_stdout.
13781 * main.c (set_gdb_data_directory): Use file style to output the
13782 warning that the given pathname is not a directory.
13783 * top.c (show_history_filename, gdb_safe_append_history)
13784 (show_gdb_datadir): Use file style.
13785
44f81a76
HD
137862020-01-03 Hannes Domani <ssbssa@yahoo.de>
13787
13788 * solib-target.c (struct lm_info_target):
13789 Change offsets to be a unique_xmalloc_ptr.
13790 (solib_target_relocate_section_addresses): Update.
13791
25057eb0
HD
137922020-01-03 Hannes Domani <ssbssa@yahoo.de>
13793
13794 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13795
6e2118f5
BE
137962020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13797
13798 * MAINTAINERS (Write After Approval): Add myself.
13799
8133c7dc
LM
138002020-01-02 Luis Machado <luis.machado@linaro.org>
13801
13802 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13803 Cell BE architecture.
13804 * target.h (struct target_ops) <thread_architecture>: Likewise.
13805
48189bec
HD
138062020-01-01 Hannes Domani <ssbssa@yahoo.de>
13807
13808 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13809
ead1063b
HD
138102020-01-01 Hannes Domani <ssbssa@yahoo.de>
13811
13812 * MAINTAINERS (Write After Approval): Add myself.
13813
e5d78223
JB
138142020-01-01 Joel Brobecker <brobecker@adacore.com>
13815
13816 * gdbarch.sh: Update copyright year range of generated files.
13817
b811d2c2
JB
138182020-01-01 Joel Brobecker <brobecker@adacore.com>
13819
13820 Update copyright year range in all GDB files.
13821
5f4def5c
JB
138222020-01-01 Joel Brobecker <brobecker@adacore.com>
13823
13824 * copyright.py: Convert to Python 3.
13825
51fd4002
JB
138262020-01-01 Joel Brobecker <brobecker@adacore.com>
13827
13828 * copyright.py: Adapt after move of gnulib directory from gdb
13829 directory to toplevel directory.
13830
5fb651f2
JB
138312020-01-01 Joel Brobecker <brobecker@adacore.com>
13832
13833 * copyright.py (main): Exit if run from the wrong directory.
13834
5dd8bf88
JB
138352020-01-01 Joel Brobecker <brobecker@adacore.com>
13836
13837 * top.c (print_gdb_version): Change copyright year to 2020.
13838
9f71dacb 138392020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13840
9f71dacb 13841 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13842
9f71dacb 13843For older changes see ChangeLog-2019.
c906108c
SS
13844\f
13845Local Variables:
13846mode: change-log
13847left-margin: 8
13848fill-column: 74
13849version-control: never
57da7796 13850coding: utf-8
c906108c 13851End:
This page took 4.227902 seconds and 4 git commands to generate.