]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Use htab_up in linespec.c
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7a8a5d47
TT
12020-09-17 Tom Tromey <tom@tromey.com>
2
3 * linespec.c (class decode_compound_collector)
4 <~decode_compound_collector>: Remove.
5 <m_unique_syms>: Now htab_up.
6 (decode_compound_collector::operator ()): Update.
7 (class symtab_collector) <~symtab_collector>: Remove.
8 <m_symtab_table>: Now htab_up.
9 (symtab_collector::operator ()): Update.
10
99032cfc
TT
112020-09-17 Tom Tromey <tom@tromey.com>
12
13 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
14 (filename_seen_cache::clear): Update.
15 (~filename_seen_cache): Remove.
16 (filename_seen_cache::seen): Update.
17 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
18 htab_up.
19 <~filename_seen_cache>: Remove.
20 <traverse>: Update.
21
32580f6d
TT
222020-09-17 Tom Tromey <tom@tromey.com>
23
24 * completer.c (completion_tracker::discard_completions)
25 (completion_tracker::~completion_tracker)
26 (completion_tracker::maybe_add_completion)
27 (completion_tracker::remove_completion)
28 (completion_tracker::recompute_lowest_common_denominator)
29 (completion_tracker::build_completion_result): Update.
30 * completer.h (class completion_tracker) <have_completions>:
31 Update.
32 <m_entries_hash>: Now htab_up.
33
c1fb9836
TT
342020-09-17 Tom Tromey <tom@tromey.com>
35
36 * breakpoint.c (ambiguous_names_p): Use htab_up.
37
88f07206
TT
382020-09-17 Tom Tromey <tom@tromey.com>
39
40 * auto-load.c (struct auto_load_pspace_info)
41 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
42 <loaded_script_files, loaded_script_texts>: Change type to
43 htab_up.
44 (~auto_load_pspace_info) Remove.
45 (init_loaded_scripts_info, maybe_add_script_file)
46 (maybe_add_script_text, auto_load_info_scripts): Update.
47
9519b2ee
TT
482020-09-17 Tom Tromey <tromey@adacore.com>
49
50 * c-exp.y (name_obstack): Now static.
51
d2cd4113
CC
522020-09-17 Chungyi Chi <demonic@csie.io>
53
54 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
55
b650a282
SM
562020-09-16 Simon Marchi <simon.marchi@efficios.com>
57
58 * breakpoint.h (init_catchpoint): Change int parameter to bool.
59 (add_solib_catchpoint): Likewise.
60 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
61 to bool.
62 (add_solib_catchpoint): Change int parameter/variable to bool.
63 (catch_load_or_unload): Likewise.
64 (init_catchpoint): Likewise.
65 (create_fork_vfork_event_catchpoint): Likewise.
66 (catch_fork_command_1): Likewise.
67 (catch_exec_command_1): Likewise.
68
4d0bcfcf
SM
692020-09-16 Simon Marchi <simon.marchi@efficios.com>
70
71 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
72 Change instance_flags to m_instance_flags.
73
fe830662
TT
742020-09-16 Tom Tromey <tromey@adacore.com>
75
76 PR gdb/26598:
77 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
78
fe5ddfc3
JB
792020-09-16 John Baldwin <jhb@FreeBSD.org>
80
81 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
82 PL_FLAG_EXEC.
83 (fbsd_nat_target::insert_exec_catchpoint)
84 (fbsd_nat_target::remove_exec_catchpoint): Always define.
85 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
86 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
87
e911c666
JB
882020-09-16 John Baldwin <jhb@FreeBSD.org>
89
90 * configure.ac: Remove check for kinfo_getvmmap().
91 * configure, config.in: Regenerate.
92 * fbsd-nat.c (fbsd_read_mapping): Remove
93 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
94 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
95 kinfo_get_vmmap() are always present.
96
1f17d372
JB
972020-09-16 John Baldwin <jhb@FreeBSD.org>
98
99 * fbsd-nat.c: Always include support for
100 TARGET_OBJECT_SIGNAL_INFO.
101
bcb1da7f
JB
1022020-09-16 John Baldwin <jhb@FreeBSD.org>
103
104 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
105 sysctl and remove procfs fallback.
106
5515f729
JB
1072020-09-16 John Baldwin <jhb@FreeBSD.org>
108
109 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
110 * fbsd-nat.h: Likewise.
111
da1df1db
TBA
1122020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
113
114 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
115 argument.
116
0e25e767
AB
1172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
118
119 * ada-lang.c (ada_language_data): Delete.
120 (ada_language): Remove references to ada_language_data.
121 * c-lang.c (c_language_data): Delete.
122 (c_language): Remove references to c_language_data.
123 (cplus_language_data): Delete.
124 (cplus_language): Remove references to cplus_language_data.
125 (asm_language_data): Delete.
126 (asm_language): Remove references to asm_language_data.
127 (minimal_language_data): Delete.
128 (minimal_language): Remove references to minimal_language_data.
129 * d-lang.c (d_language_data): Delete.
130 (d_language): Remove references to d_language_data.
131 * f-lang.c (f_language_data): Delete.
132 (f_language): Remove references to f_language_data.
133 * go-lang.c (go_language_data): Delete.
134 (go_language): Remove references to go_language_data.
135 * language.c (unknown_language_data): Delete.
136 (unknown_language): Remove references to unknown_language_data.
137 (auto_language_data): Delete.
138 (auto_language): Remove references to auto_language_data.
139 * language.h (language_data): Delete struct.
140 (language_defn): No longer inherit from language_data.
141 * m2-lang.c (m2_language_data): Delete.
142 (m2_language): Remove references to m2_language_data.
143 * objc-lang.c (objc_language_data): Delete.
144 (objc_language): Remove references to objc_language_data.
145 * opencl-lang.c (opencl_language_data): Delete.
146 (opencl_language): Remove references to opencl_language_data.
147 * p-lang.c (pascal_language_data): Delete.
148 (pascal_language): Remove references to pascal_language_data.
149 * rust-lang.c (rust_language_data): Delete.
150 (rust_language): Remove references to rust_language_data.
151
b7c6e27d
AB
1522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * ada-lang.c (ada_language_data): Remove la_op_print_tab
155 initializer.
156 (ada_language::opcode_print_table): New member function.
157 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
158 (c_language::opcode_print_table): New member function.
159 (cplus_language_data): Remove la_op_print_tab initializer.
160 (cplus_language::opcode_print_table): New member function.
161 (asm_language_data): Remove la_op_print_tab initializer.
162 (asm_language::opcode_print_table): New member function.
163 (minimal_language_data): Remove la_op_print_tab initializer.
164 (minimal_language::opcode_print_table): New member function.
165 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
166 (d_language::opcode_print_table): New member function.
167 * expprint.c (print_subexp_standard): Update call to
168 opcode_print_table.
169 (op_string): Likewise.
170 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
171 (f_language::opcode_print_table): New member function.
172 * go-lang.c (go_language_data): Remove la_op_print_tab
173 initializer.
174 (go_language::opcode_print_table): New member function.
175 * language.c (unknown_language_data): Remove la_op_print_tab
176 initializer.
177 (unknown_language::opcode_print_table): New member function.
178 (auto_language_data): Remove la_op_print_tab initializer.
179 (auto_language::opcode_print_table): New member function.
180 * language.h (language_data): Remove la_op_print_tab field.
181 (language_defn::opcode_print_table): Declare new member function.
182 * m2-lang.c (m2_language_data): Remove la_op_print_tab
183 initializer.
184 (m2_language::opcode_print_table): New member function.
185 * objc-lang.c (objc_language_data): Remove la_op_print_tab
186 initializer.
187 (objc_language::opcode_print_table): New member function.
188 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
189 initializer.
190 (opencl_language::opcode_print_table): New member function.
191 * p-lang.c (pascal_language_data): Remove la_op_print_tab
192 initializer.
193 (pascal_language::opcode_print_table): New member function.
194 * rust-lang.c (rust_language_data): Remove la_op_print_tab
195 initializer.
196 (rust_language::opcode_print_table): New member function.
197
5aba6ebe
AB
1982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
199
200 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
201 (ada_language::expression_ops): New member function.
202 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
203 (c_language::expression_ops): New member function.
204 (cplus_language_data): Remove la_exp_desc initializer.
205 (cplus_language::expression_ops): New member function.
206 (asm_language_data): Remove la_exp_desc initializer.
207 (asm_language::expression_ops): New member function.
208 (minimal_language_data): Remove la_exp_desc initializer.
209 (minimal_language::expression_ops): New member function.
210 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
211 (d_language::expression_ops): New member function.
212 * eval.c (evaluate_subexp): Update call to expression_ops.
213 * expprint.c (print_subexp): Likewise.
214 (op_name): Likewise.
215 (dump_subexp_body): Likewise.
216 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
217 (f_language::expression_ops): New member function.
218 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
219 (go_language::expression_ops): New member function.
220 * language.c (language_defn::expression_ops): New function.
221 (unknown_language_data): Remove la_exp_desc initializer.
222 (auto_language_data): Likewise.
223 * language.h (language_data): Remove la_exp_desc field.
224 (language_defn::expression_ops): Declare new member function.
225 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
226 (m2_language::expression_ops): New member function.
227 * objc-lang.c (objc_language_data): Remove la_exp_desc
228 initializer.
229 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
230 initializer.
231 (opencl_language::expression_ops): New member function.
232 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
233 * parse.c (operator_length): Update call to expression_ops.
234 (exp_iterate): Likewise.
235 * rust-lang.c (rust_language_data): Remove la_exp_desc
236 initializer.
237 (ruse_language::expression_ops): New member function.
238
b63a3f3f
AB
2392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
240
241 * ada-lang.c (ada_language_data): Remove la_varobj_ops
242 initializer.
243 (ada_language::varobj_ops): New member function.
244 * c-lang.c (c_language_data): Remove la_varobj_ops
245 initializer.
246 (cplus_language_data): Likewise.
247 (cplus_language::varobj_ops): New member function.
248 (asm_language_data): Remove la_varobj_ops initializer.
249 (minimal_language_data): Likewise.
250 * d-lang.c (d_language_data): Likewise.
251 * f-lang.c (f_language_data): Likewise.
252 * go-lang.c (go_language_data): Likewise.
253 * language.c (language_defn::varobj_ops): New function.
254 (unknown_language_data): Remove la_varobj_ops
255 initializer.
256 (auto_language_data): Likewise.
257 * language.h (language_data): Remove la_varobj_ops field.
258 (language_defn::varobj_ops): Declare new member function.
259 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
260 * objc-lang.c (objc_language_data): Likewise.
261 * opencl-lang.c (opencl_language_data): Likewise.
262 * p-lang.c (pascal_language_data): Likewise.
263 * rust-lang.c (rust_language_data): Likewise.
264 * varobj.c (varobj_create): Update call to varobj_ops.
265 * varobj.h (default_varobj_ops): Delete define.
266
1ac14a04
AB
2672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * ada-lang.c (ada_language_data): Remove la_macro_expansion
270 initializer.
271 * c-lang.c (c_language_data): Likewise.
272 (c_language::macro_expansion): New member function.
273 (cplus_language_data): Likewise.
274 (cplus_language::macro_expansion): New member function.
275 (asm_language_data): Likewise.
276 (asm_language::macro_expansion): New member function.
277 (minimal_language_data): Likewise.
278 (minimal_language::macro_expansion): New member function.
279 * d-lang.c (d_language_data): Remove la_macro_expansion
280 initializer.
281 * f-lang.c (f_language_data): Likewise.
282 * go-lang.c (go_language_data): Likewise.
283 * language.c (unknown_language_data): Likewise.
284 (auto_language_data): Likewise.
285 * language.h (language_data): Remove la_macro_expansion field.
286 (language_defn::macro_expansion): New member function.
287 * m2-lang.c (m2_language_data): Remove la_macro_expansion
288 initializer.
289 * objc-lang.c (objc_language_data): Likewise.
290 (objc_language::macro_expansion): New member function.
291 * opencl-lang.c (opencl_language_data): Likewise.
292 (opencl_language::macro_expansion): New member function.
293 * p-lang.c (pascal_language_data): Remove la_macro_expansion
294 initializer.
295 * rust-lang.c (rust_language_data): Likewise.
296 * symtab.c (default_collect_symbol_completion_matches_break_on):
297 Update call to macro_expansion.
298
3a3440fb
AB
2992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
300
301 * ada-lang.c (ada_language_data): Remove la_array_ordering
302 initializer.
303 * c-lang.c (c_language_data): Likewise.
304 (cplus_language_data): Likewise.
305 (asm_language_data): Likewise.
306 (minimal_language_data): Likewise.
307 * d-lang.c (d_language_data): Likewise.
308 * dwarf2/read.c (read_array_order): Update for call to
309 array_ordering.
310 * f-lang.c (f_language_data): Remove la_array_ordering
311 initializer.
312 (f_language::array_ordering): New member function.
313 * go-lang.c (go_language_data): Remove la_array_ordering
314 initializer.
315 * language.c (unknown_language_data): Likewise.
316 (auto_language_data): Likewise.
317 * language.h (language_data): Delete la_array_ordering field.
318 (language_defn::array_ordering): New member function.
319 * m2-lang.c (m2_language_data): Remove la_array_ordering
320 initializer.
321 * objc-lang.c (objc_language_data): Likewise.
322 * opencl-lang.c (opencl_language_data): Likewise.
323 * p-lang.c (pascal_language_data): Likewise.
324 * rust-lang.c (rust_language_data): Likewise.
325
0d201fa4
AB
3262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
327
328 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
329 initializer.
330 * c-lang.c (c_language_data): Likewise.
331 (cplus_language_data): Likewise.
332 (asm_language_data): Likewise.
333 (minimal_language_data): Likewise.
334 * d-lang.c (d_language_data): Likewise.
335 * f-lang.c (f_language_data): Likewise.
336 (f_language::case_sensitivity): New member function.
337 * go-lang.c (go_language_data): Remove la_case_sensitivity
338 initializer.
339 * language.c (enum case_mode): Moved here from language.h.
340 (case_mode): Make static.
341 (show_case_command): Update for case_sensitivity being a method.
342 (set_case_command): Likewise.
343 (set_range_case): Likewise.
344 (unknown_language_data): Remove la_case_sensitivity initializer.
345 (auto_language_data): Likewise.
346 * language.h (case_mode): Delete, move enum declaration to
347 language.c.
348 (language_data): Delete la_case_sensitivity field.
349 (language_defn::case_sensitivity): New member function.
350 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
351 initializer.
352 * objc-lang.c (objc_language_data): Likewise.
353 * opencl-lang.c (opencl_language_data): Likewise.
354 * p-lang.c (pascal_language_data): Likewise.
355 * rust-lang.c (rust_language_data): Likewise.
356
efdf6a73
AB
3572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
358
359 * ada-lang.c (ada_language_data): Remove la_range_check
360 initializer.
361 * c-lang.c (c_language_data): Likewise.
362 (cplus_language_data): Likewise.
363 (asm_language_data): Likewise.
364 (minimal_language_data): Likewise.
365 * d-lang.c (d_language_data): Likewise.
366 * f-lang.c (f_language_data): Likewise.
367 (f_language::range_checking_on_by_default): New member function.
368 * go-lang.c (go_language_data): Remove la_range_check initializer.
369 * language.c (enum range_mode): Moved here from language.h.
370 (range_mode): Made static.
371 (show_range_command): Update to use
372 range_checking_on_by_default.
373 (set_range_command): Likewise.
374 (set_range_case): Likewise.
375 (unknown_language_data): Remove la_range_check initializer.
376 (auto_language_data): Likewise.
377 * language.h (range_mode): Delete. Enum definition moved to
378 language.c.
379 (language_data): Remove la_range_check field.
380 (language_defn::range_checking_on_by_default): New member
381 function.
382 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
383 (m2_language::range_checking_on_by_default): New member function.
384 * objc-lang.c (objc_language_data): Remove la_range_check
385 initializer.
386 * opencl-lang.c (opencl_language_data): Likewise.
387 * p-lang.c (pascal_language_data): Likewise.
388 (pascal_language::range_checking_on_by_default): New member
389 function.
390 * rust-lang.c (rust_language_data): Remove la_range_check
391 initializer.
392 (rust_language::range_checking_on_by_default): New member
393 function.
394
bf92aec5
AB
3952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * dwarf2/read.c (dwarf2_physname): Remove special case for
398 language_go.
399 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
400 member function.
401
d3355e4d
AB
4022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
403
404 * ada-lang.c (ada_language_data): Remove
405 la_store_sym_names_in_linkage_form_p initializer.
406 (ada_language::store_sym_names_in_linkage_form_p): New member
407 function.
408 * c-lang.c (c_language_data): Remove
409 la_store_sym_names_in_linkage_form_p initializer.
410 (c_language::store_sym_names_in_linkage_form_p): New member
411 function.
412 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
413 initializer.
414 (asm_language_data): Likewise.
415 (asm_language::store_sym_names_in_linkage_form_p): New member
416 function.
417 (minimal_language_data): Remove
418 la_store_sym_names_in_linkage_form_p initializer.
419 (minimal_language::store_sym_names_in_linkage_form_p): New member
420 function.
421 * d-lang.c (d_language_data): Remove
422 la_store_sym_names_in_linkage_form_p initializer.
423 * dwarf2/read.c (dwarf2_physname): Update call to
424 store_sym_names_in_linkage_form_p.
425 * f-lang.c (f_language_data): Remove
426 la_store_sym_names_in_linkage_form_p initializer.
427 * go-lang.c (go_language_data): Remove
428 la_store_sym_names_in_linkage_form_p initializer.
429 * language.c (unknown_language_data): Remove
430 la_store_sym_names_in_linkage_form_p initializer.
431 (unknown_language::store_sym_names_in_linkage_form_p): New member
432 function.
433 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
434 initializer.
435 (auto_language::store_sym_names_in_linkage_form_p): New member
436 function.
437 * language.h (language_data): Remove
438 la_store_sym_names_in_linkage_form_p member variable.
439 (language_defn::store_sym_names_in_linkage_form_p): New member
440 function.
441 * m2-lang.c (m2_language_data): Remove
442 la_store_sym_names_in_linkage_form_p initializer.
443 * objc-lang.c (objc_language_data): Likewise.
444 * opencl-lang.c (opencl_language_data): Likewise.
445 * p-lang.c (pascal_language_data): Likewise.
446 * rust-lang.c (rust_language_data): Likewise.
447
22c12a6c
AB
4482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
449
450 * ada-lang.c (ada_language_data): Remove string_lower_bound
451 initializer.
452 * c-lang.c (c_language_data): Likewise.
453 (cplus_language_data): Likewise.
454 (asm_language_data): Likewise.
455 (minimal_language_data): Likewise.
456 * d-lang.c (d_language_data): Likewise.
457 * f-lang.c (f_language_data): Likewise.
458 * go-lang.c (go_language_data): Likewise.
459 * language.c (unknown_language_data): Likewise.
460 (auto_language_data): Likewise.
461 * language.h (language_data): Remove string_lower_bound field.
462 (language_defn::string_lower_bound): New member function.
463 * m2-lang.c (m2_language_data): Remove string_lower_bound
464 initializer.
465 (m2_language::string_lower_bound): New member function.
466 * objc-lang.c (objc_language_data): Remove string_lower_bound
467 initializer.
468 * opencl-lang.c (opencl_language_data): Likewise.
469 * p-lang.c (pascal_language_data): Likewise.
470 * rust-lang.c (rust_language_data): Likewise.
471 * valops.c (value_cstring): Update call to string_lower_bound.
472 (value_string): Likewise.
473 * value.c (allocate_repeated_value): Likewise.
474
1c236ddd
AB
4752020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
476
477 * valops.c (value_repeat): Fix incorrect argument name in comment.
478
67bd3fd5
AB
4792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
480
481 * ada-lang.c (ada_language_data): Remove c_style_arrays
482 initializer.
483 (ada_language::c_style_arrays_p): New member fuction.
484 * c-lang.c (c_language_data): Remove c_style_arrays
485 initializer.
486 (cplus_language_data): Likewise.
487 (asm_language_data): Likewise.
488 (minimal_language_data): Likewise.
489 * d-lang.c (d_language_data): Likewise.
490 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
491 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
492 (f_language::c_style_arrays_p): New member function.
493 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
494 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
495 * language.c (unknown_language_data): Remove c_style_arrays
496 initializer.
497 (auto_language_data): Likewise.
498 * language.h (language_data): Remove c_style_arrays field.
499 (language_defn::c_style_arrays_p): New member function.
500 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
501 (m2_language::c_style_arrays_p): New member function.
502 * objc-lang.c (objc_language_data): Remove c_style_arrays
503 initializer.
504 * opencl-lang.c (opencl_language_data): Likewise.
505 * p-lang.c (pascal_language_data): Likewise.
506 * rust-lang.c (rust_language_data): Likewise.
507 * valarith.c (value_subscript): Update call to c_style_arrays_p,
508 and update local variable to a bool.
509 * valops.c (value_cast): Update call to c_style_arrays_p.
510 (value_array): Likewise.
511 * value.c (coerce_array): Likewise.
512
85967615
AB
5132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
514
515 * ada-lang.c (ada_language_data): Remove la_language initializer.
516 * c-lang.c (c_language_data): Likewise.
517 (cplus_language_data): Likewise.
518 (asm_language_data): Likewise.
519 (minimal_language_data): Likewise.
520 * d-lang.c (d_language_data): Likewise.
521 * f-lang.c (f_language_data): Likewise.
522 * go-lang.c (go_language_data): Likewise.
523 * language.c (unknown_language_data): Likewise.
524 (auto_language_data): Likewise.
525 * language.h (language_data): Remove la_language field.
526 (language_defn::language_defn): Initialise la_language field.
527 (language_defn::la_language): New member variable.
528 * m2-lang.c (m2_language_data): Remove la_language field.
529 * objc-lang.c (objc_language_data): Likewise.
530 * opencl-lang.c (opencl_language_data): Likewise.
531 * p-lang.c (pascal_language_data): Likewise.
532 * rust-lang.c (rust_language_data): Likewise.
533
e171d6f1
AB
5342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
535
536 * ada-lang.c (ada_extensions): Delete, moved into
537 ada_language::filename_extensions.
538 (ada_language_data): Remove la_filename_extensions initializer.
539 (ada_language::filename_extensions): New member function.
540 * c-lang.c (c_extensions): Delete, moved into
541 c_language::filename_extensions.
542 (c_language_data): Remove la_filename_extensions initializer.
543 (c_language::filename_extensions): New member function.
544 (cplus_extensions): Delete, moved into
545 cplus_language::filename_extensions.
546 (cplus_language_data): Remove la_filename_extensions initializer.
547 (cplus_language::filename_extensions): New member function.
548 (asm_extensions): Delete, moved into
549 asm_language::filename_extensions.
550 (asm_language_data): Remove la_filename_extensions initializer.
551 (asm_language::filename_extensions): New member function.
552 (minimal_language_data): Remove la_filename_extensions
553 initializer.
554 * d-lang.c (d_extensions): Delete, moved into
555 d_language::filename_extensions.
556 (d_language_data): Remove la_filename_extensions initializer.
557 (d_language::filename_extensions): New member function.
558 * f-lang.c (f_extensions): Delete, moved into
559 f_language::filename_extensions.
560 (f_language_data): Remove la_filename_extensions initializer.
561 (f_language::filename_extensions): New member function.
562 * go-lang.c (go_language_data): Remove la_filename_extensions
563 initializer.
564 * language.c (add_set_language_command): Update now that
565 filename_extensions returns a vector.
566 (unknown_language_data): Remove la_filename_extensions
567 initializer.
568 (auto_language_data): Likewise.
569 * language.h (language_data): Remove la_filename_extensions field.
570 (language_defn::filename_extensions): New member function.
571 * m2-lang.c (m2_language_data): Remove la_filename_extensions
572 initializer.
573 * objc-lang.c (objc_extensions): Delete, moved into
574 objc_language::filename_extensions.
575 (objc_language_data): Remove la_filename_extensions initializer.
576 (objc_language::filename_extensions): New member function.
577 * opencl-lang.c (opencl_language_data): Remove
578 la_filename_extensions initializer.
579 * p-lang.c (pascal_extensions): Delete, moved into
580 pascal_language::filename_extensions.
581 (pascal_language_data): Remove la_filename_extensions initializer.
582 (pascal_language::filename_extensions): New member function.
583 * rust-lang.c (rust_extensions): Delete, moved into
584 rust_language::filename_extensions.
585 (rust_language_data): Remove la_filename_extensions initializer.
586 (rust_language::filename_extensions): New member function.
587 * symfile.c (add_filename_language): Add new assert.
588
6f7664a9
AB
5892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
590
591 * ada-lang.c (ada_language_data): Remove la_name and
592 la_natural_name initializers.
593 (ada_language::name): New member function.
594 (ada_language::natural_name): New member function.
595 * c-lang.c (c_language_data): Remove la_name and
596 la_natural_name initializers.
597 (c_language::name): New member function.
598 (c_language::natural_name): New member function.
599 (cplus_language_data): Remove la_name and
600 la_natural_name initializers.
601 (cplus_language::name): New member function.
602 (cplus_language::natural_name): New member function.
603 (asm_language_data): Remove la_name and
604 la_natural_name initializers.
605 (asm_language::name): New member function.
606 (asm_language::natural_name): New member function.
607 (minimal_language_data): Remove la_name and
608 la_natural_name initializers.
609 (minimal_language::name): New member function.
610 (minimal_language::natural_name): New member function.
611 * compile/compile.c (compile_to_object): Update call to
612 lanugage_defn::name.
613 * d-lang.c (d_language_data): Remove la_name and
614 la_natural_name initializers.
615 (d_language::name): New member function.
616 (d_language::natural_name): New member function.
617 * expprint.c (print_subexp_standard): Update call to
618 language_defn::name.
619 (dump_raw_expression): Likewise
620 (dump_prefix_expression): Likewise.
621 * f-lang.c (f_language_data): Remove la_name and
622 la_natural_name initializers.
623 (f_language::name): New member function.
624 (f_language::natural_name): New member function.
625 * go-lang.c (go_language_data): Remove la_name and
626 la_natural_name initializers.
627 (go_language::name): New member function.
628 (go_language::natural_name): New member function.
629 * language.c (show_language_command): Update call to
630 language_defn::name.
631 (set_language_command): Likewise.
632 (language_enum): Likewise.
633 (language_str): Likewise.
634 (add_set_language_command): Likewise, use
635 language_defn::natural_name in the doc string.
636 (unknown_language_data): Remove la_name and
637 la_natural_name initializers.
638 (unknown_language::name): New member function.
639 (unknown_language::natural_name): New member function.
640 (auto_language_data): Remove la_name and
641 la_natural_name initializers.
642 (auto_language::name): New member function.
643 (auto_language::natural_name): New member function.
644 (language_lookup_primitive_type_as_symbol): Update call to
645 language_defn::name.
646 * language.h (language_data): Remove la_name and la_natural_name
647 member variables.
648 (language_defn::name): New member function.
649 (language_defn::natural_name): New member function.
650 * m2-lang.c (m2_language_data): Remove la_name and
651 la_natural_name initializers.
652 (m2_language::name): New member function.
653 (m2_language::natural_name): New member function.
654 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
655 language_defn::natural_name.
656 * objc-lang.c (objc_language_data): Remove la_name and
657 la_natural_name initializers.
658 (objc_language::name): New member function.
659 (objc_language::natural_name): New member function.
660 * opencl-lang.c (opencl_language_data): Remove la_name and
661 la_natural_name initializers.
662 (opencl_language::name): New member function.
663 (opencl_language::natural_name): New member function.
664 * p-lang.c (pascal_language_data): Remove la_name and
665 la_natural_name initializers.
666 (pascal_language::name): New member function.
667 (pascal_language::natural_name): New member function.
668 * rust-lang.c (rust_language_data): Remove la_name and
669 la_natural_name initializers.
670 (rust_language::name): New member function.
671 (rust_language::natural_name): New member function.
672 * symtab.c (lookup_language_this): Update call to
673 language_defn::name.
674
5bae7c4e
AB
6752020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
676
677 * ada-lang.c (ada_language_data): Remove la_name_of_this
678 initializer.
679 * ax-gdb.c (gen_expr): Update call to name_of_this.
680 * c-exp.y (classify_name): Likewise.
681 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
682 (cplus_language_data): Likewise.
683 (cplus_language::name_of_this): New member function.
684 (asm_language_data): Remove la_name_of_this initializer.
685 (minimal_language_data): Likewise.
686 * d-lang.c (d_language_data): Likewise.
687 (d_language::name_of_this): New member function.
688 * expprint.c (print_subexp_standard): Update call to name_of_this.
689 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
690 * go-lang.c (go_language_data): Likewise.
691 * language.c (unknown_language_data): Likewise.
692 (unknown_language::name_of_this): New member function.
693 (auto_language_data): Remove la_name_of_this initializer.
694 (auto_language::name_of_this): New member function.
695 * language.h (language_data): Delete la_name_of_this member
696 variable.
697 (language_defn::name_of_this): New member function.
698 * m2-lang.c (m2_language_data): Remove la_name_of_this
699 initializer.
700 * objc-lang.c (objc_language_data): Likewise.
701 (objc_language::name_of_this): New member function.
702 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
703 initializer.
704 * p-lang.c (pascal_language_data): Likewise.
705 (pascal_language::name_of_this): New member function.
706 * rust-lang.c (rust_language_data): Remove la_name_of_this
707 initializer.
708 * symtab.c (lookup_language_this): Update call to name_of_this.
709 (lookup_symbol_aux): Likewise.
710 * valops.c (value_of_this): Likewise.
711
22e3f3ed
AB
7122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
713
714 * ada-lang.c (ada_language_data): Remove
715 la_struct_too_deep_ellipsis initializer.
716 (ada_language::struct_too_deep_ellipsis): New member function.
717 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
718 initializer.
719 (cplus_language_data): Likewise.
720 (asm_language_data): Likewise.
721 (minimal_language_data): Likewise.
722 * cp-valprint.c (cp_print_value): Update call to
723 struct_too_deep_ellipsis.
724 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
725 initializer.
726 * f-lang.c (f_language_data): Likewise.
727 (f_language::struct_too_deep_ellipsis): New member function.
728 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
729 initializer.
730 * language.c (unknown_language_data): Likewise.
731 (auto_language_data): Likewise.
732 * language.h (language_data): Delete la_struct_too_deep_ellipsis
733 member variable.
734 (language_defn::struct_too_deep_ellipsis): New member function.
735 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
736 initializer.Q
737 * objc-lang.c (objc_language_data): Likewise.
738 * opencl-lang.c (opencl_language_data): Likewise.
739 * p-lang.c (pascal_language_data): Likewise.
740 * rust-lang.c (rust_language_data): Likewise.
741 * valprint.c (val_print_check_max_depth): Update call to
742 struct_too_deep_ellipsis.
743
ed29e1c7
FW
7442020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
745
746 * MAINTAINERS (Write After Approval): Add myself.
747
12d8f940
TT
7482020-09-15 Tom Tromey <tom@tromey.com>
749
750 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
751 Remove.
752
6b5a7bc7
TT
7532020-09-15 Tom Tromey <tom@tromey.com>
754
755 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
756 and TYPE_CODE_METHODPTR cases.
757 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
758 (c_value_print_inner): Update.
759 * valprint.c (generic_value_print_memberptr): New function, from
760 c_value_print_memberptr.
761 (generic_value_print): Use it. Call cplus_print_method_ptr.
762
47f0e2ff
TT
7632020-09-15 Tom Tromey <tromey@adacore.com>
764
765 * python/python-internal.h (PyInt_FromLong): Remove define.
766 * python/py-value.c (convert_value_from_python): Use
767 gdb_py_object_from_longest.
768 * python/py-type.c (typy_get_code): Use
769 gdb_py_object_from_longest.
770 * python/py-symtab.c (salpy_get_line): Use
771 gdb_py_object_from_longest.
772 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
773 gdb_py_object_from_longest.
774 * python/py-record.c (recpy_gap_reason_code): Use
775 gdb_py_object_from_longest.
776 * python/py-record-btrace.c (recpy_bt_insn_size)
777 (recpy_bt_func_level, btpy_list_count): Use
778 gdb_py_object_from_longest.
779 * python/py-infthread.c (gdbpy_create_ptid_object): Use
780 gdb_py_object_from_longest. Fix error handling.
781 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
782 gdb_py_object_from_longest.
783 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
784 gdb_py_object_from_longest.
785 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
786 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
787 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
788
512116ce
TT
7892020-09-15 Tom Tromey <tromey@adacore.com>
790
791 * python/python.c (gdbpy_parameter_value): Use
792 gdb_py_object_from_ulongest.
793
4ab1029c
TT
7942020-09-15 Tom Tromey <tromey@adacore.com>
795
796 * python/py-infevents.c (create_register_changed_event_object):
797 Use gdb_py_object_from_longest.
798 * python/py-exitedevent.c (create_exited_event_object): Use
799 gdb_py_object_from_longest.
800
062534d4
TT
8012020-09-15 Tom Tromey <tromey@adacore.com>
802
803 * python/python.c (gdbpy_parameter_value): Use
804 gdb_py_object_from_longest.
805 * python/py-type.c (convert_field, typy_range): Use
806 gdb_py_object_from_longest.
807 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
808 gdb_py_object_from_longest.
809 * python/py-lazy-string.c (stpy_get_length): Use
810 gdb_py_object_from_longest.
811 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
812 gdb_py_object_from_longest.
813 * python/py-infevents.c (create_memory_changed_event_object): Use
814 gdb_py_object_from_longest.
815 * python/py-inferior.c (infpy_get_num): Use
816 gdb_py_object_from_longest.
817 (infpy_get_pid): Likewise.
818
d1cab987
TT
8192020-09-15 Tom Tromey <tromey@adacore.com>
820
821 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
822 defines.
823 * python/py-value.c (valpy_long): Use
824 gdb_py_object_from_ulongest.
825 * python/py-symtab.c (salpy_get_pc): Use
826 gdb_py_object_from_ulongest.
827 (salpy_get_last): Likewise.
828 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
829 gdb_py_object_from_ulongest.
830 * python/py-lazy-string.c (stpy_get_address): Use
831 gdb_py_object_from_ulongest.
832 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
833 * python/py-arch.c (archpy_disassemble): Use
834 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
835 error handling.
836
4bde49dc
TT
8372020-09-15 Tom Tromey <tromey@adacore.com>
838
839 * python/python-internal.h (gdb_py_long_from_longest): Remove
840 defines.
841 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
842 * python/py-type.c (convert_field, typy_get_sizeof): Use
843 gdb_py_object_from_longest.
844 * python/py-record-btrace.c (btpy_list_index): Use
845 gdb_py_object_from_longest.
846
37431074
TT
8472020-09-15 Tom Tromey <tromey@adacore.com>
848
849 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
850 * python/py-record.c (recpy_element_number): Use
851 gdb_py_object_from_longest.
852 (recpy_gap_number): Likewise.
853
cbe25684
TT
8542020-09-15 Tom Tromey <tromey@adacore.com>
855
856 * top.c (ui::ui): Update.
857 (highest_ui_num): Remove.
858 * top.h (struct ui) <num>: Remove.
859
db92ac45
TT
8602020-09-15 Tom Tromey <tromey@adacore.com>
861
862 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
863 * ui-style.c (ansi_regex_text): Now array.
864 * rust-exp.y (number_regex_text): Now array.
865 * linespec.c (linespec_quote_characters): Now array.
866 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
867 Now arrays.
868
d2b31b67
SM
8692020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
870
871 * debuginfod-support.c (debuginfod_client_deleter): New.
872 (debuginfod_client_up): New.
873 (debuginfod_init): Return debuginfod_client_up.
874 (debuginfod_source_query): Adjust.
875 (debuginfod_debuginfo_query): Adjust.
876
3246bd8e
SM
8772020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
878
879 * debuginfod-support.c (debuginfod_source_query): Use
880 make_unique_xstrdup.
881
10242f36
SM
8822020-09-14 Simon Marchi <simon.marchi@efficios.com>
883
884 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
885 with `type::instance_flags`.
886
e1044e6a
MM
8872020-09-14 Michael Mullin <masmullin@gmail.com>
888
889 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
890 Remove baton parameter.
891
04902b09
PA
8922020-09-14 Pedro Alves <pedro@palves.net>
893
894 * Makefile.in (SELFTESTS_SRCS): Add
895 unittests/enum-flags-selftests.c.
896 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
897 btrace_function_flags instead of enum btrace_function_flag.
898 * compile/compile-c-types.c (convert_qualified): Use
899 enum_flags::raw.
900 * compile/compile-cplus-symbols.c (convert_one_symbol)
901 (convert_symbol_bmsym):
902 * compile/compile-cplus-types.c (compile_cplus_convert_method)
903 (compile_cplus_convert_struct_or_union_methods)
904 (compile_cplus_instance::convert_qualified_base):
905 * go-exp.y (parse_string_or_char): Add cast to int.
906 * unittests/enum-flags-selftests.c: New file.
907 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
908 type to btrace_thread_flags from btrace_thread_flag.
909 (record_btrace_cancel_resume, record_btrace_step_thread): Change
910 local's type to btrace_thread_flags from btrace_thread_flag. Add
911 cast in DEBUG call.
912
69896a2c
PA
9132020-09-14 Pedro Alves <pedro@palves.net>
914
915 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
916 * gdbtypes.c (address_space_name_to_int): Rename to ...
917 (address_space_name_to_type_instance_flags): ... this.
918 (address_space_int_to_name): Rename to ...
919 (address_space_type_instance_flags_to_name): ... this.
920 * gdbtypes.h (address_space_name_to_int): Rename to ...
921 (address_space_name_to_type_instance_flags): ... this.
922 (address_space_int_to_name): Rename to ...
923 (address_space_type_instance_flags_to_name): ... this.
924 * type-stack.c (type_stack::insert): Adjust to rename.
925 * type-stack.h (type_stack::insert): Likewise.
926
314ad88d
PA
9272020-09-14 Pedro Alves <pedro@palves.net>
928 Andrew Burgess <andrew.burgess@embecosm.com>
929
930 * avr-tdep.c (avr_address_class_type_flags): Return
931 type_instance_flags.
932 (avr_address_class_type_flags_to_name): Take a
933 type_instance_flags.
934 (avr_address_class_name_to_type_flags): Return bool and take a
935 type_instance_flags.
936 * d-lang.c (build_d_types): Use type::set_instance_flags.
937 * ft32-tdep.c (ft32_address_class_type_flags): Return
938 type_instance_flags.
939 (ft32_address_class_type_flags_to_name): Take a
940 type_instance_flags.
941 (ft32_address_class_name_to_type_flags): Return bool and take a
942 type_instance_flags.
943 (ft32_gdbarch_init): Use type::set_instance_flags.
944 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
945 * gdbarch.h, gdbarch.c: Regenerate.
946 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
947 (address_class_name_to_type_flags): Use type_instance_flags and
948 bool.
949 * gdbtypes.c (address_space_name_to_int)
950 (address_space_int_to_name, make_qualified_type): Use
951 type_instance_flags.
952 (make_qualified_type): Use type_instance_flags and
953 type::set_instance_flags.
954 (make_type_with_address_space, make_cv_type, make_vector_type)
955 (check_typedef): Use type_instance_flags.
956 (recursive_dump_type): Cast type_instance_flags to unsigned for
957 printing.
958 (copy_type_recursive): Use type::set_instance_flags.
959 (gdbtypes_post_init): Use type::set_instance_flags.
960 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
961 <m_instance_flags>: ... this.
962 <instance_flags, set_instance_flags>: New methods.
963 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
964 (SET_TYPE_INSTANCE_FLAGS): New.
965 (address_space_name_to_int, address_space_int_to_name)
966 (make_type_with_address_space): Pass flags using
967 type_instance_flags instead of int.
968 * stabsread.c (cleanup_undefined_types_noname): Use
969 type::set_instance_flags.
970 * s390-tdep.c (s390_address_class_type_flags): Return
971 type_instance_flags.
972 (s390_address_class_type_flags_to_name): Take a
973 type_instance_flags.
974 (s390_address_class_name_to_type_flags): Return bool and take a
975 type_instance_flags.
976 * type-stack.c (type_stack::follow_types): Use
977 type_instance_flags.
978 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
979
27087b7f
TT
9802020-09-14 Tom Tromey <tromey@adacore.com>
981
982 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
983 * x86-tdep.c (x86_is_thunk_register_name)
984 (x86_in_indirect_branch_thunk): Update.
985 * sparc64-tdep.c (sparc64_fpu_register_names)
986 (sparc64_cp0_register_names, sparc64_register_names)
987 (sparc64_pseudo_register_names): Now const.
988 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
989 cp0_registers_num>: Now const.
990 * sparc-tdep.c (sparc_core_register_names)
991 (sparc32_fpu_register_names, sparc32_cp0_register_names)
992 (sparc32_pseudo_register_names): Now const.
993 (validate_tdesc_registers): Update.
994 * rust-lang.c (rust_extensions): Now const.
995 * p-lang.c (p_extensions): Now const.
996 * objc-lang.c (objc_extensions): Now const.
997 * nto-tdep.c (nto_thread_state_str): Now const.
998 * moxie-tdep.c (moxie_register_names): Now const.
999 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1000 Now const.
1001 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1002 (mips_linux_reg_names): Now const.
1003 (mips_gdbarch_init): Update.
1004 * microblaze-tdep.c (microblaze_register_names): Now const.
1005 * m68k-tdep.c (m68k_register_names): Now const.
1006 * m32r-tdep.c (m32r_register_names): Now const.
1007 * ia64-tdep.c (ia64_register_names): Now const.
1008 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1009 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1010 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1011 ymm_avx512_register_names, pkeys_register_names>: Now const.
1012 * i386-tdep.c (i386_register_names, i386_zmm_names)
1013 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1014 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1015 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1016 * f-lang.c (f_extensions): Now const.
1017 * d-lang.c (d_extensions): Now const.
1018 * csky-tdep.c (csky_register_names): Now const.
1019 * charset.c (default_charset_names, charset_enum): Now const.
1020 (_initialize_charset): Update.
1021 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1022 const.
1023 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1024 (bsd_uthread_solib_loaded): Update.
1025 (bsd_uthread_state): Now const.
1026 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1027 (amd64_ymm_avx512_names, amd64_ymmh_names)
1028 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1029 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1030 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1031 (amd64_dword_names): Now const.
1032 * agent.c (can_use_agent_enum): Now const.
1033 * ada-tasks.c (task_states, long_task_states): Now const.
1034 * ada-lang.c (known_runtime_file_name_patterns)
1035 (known_auxiliary_function_name_patterns, attribute_names)
1036 (standard_exc, ada_extensions): Now const.
1037
89806626
SM
10382020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1039
1040 * bcache.h (struct bcache) <bcache>: Remove constructor.
1041 <m_hash_function, m_compare_function>: Remove.
1042 <~bcache>: Make virtual.
1043 <compare>: Remove static method, introduce virtual method.
1044 <default_hash>: Remove.
1045 <hash>: New virtual method.
1046 * bcache.c (bcache::expand_hash_table): Update.
1047 (bcache::insert): Update.
1048 (bcache::hash): New.
1049 (bcache::compare): Update comment and parameter names.
1050 * gdbtypes.c (types_deeply_equal): Update.
1051 * psymtab.h (struct psymbol_bcache): New struct.
1052 (class psymtab_storage) <psymtab_storage>: Make default.
1053 <psymbol_cache>: Change type to psymbol_bcache.
1054 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1055 (psymbol_hash): Change to...
1056 (psymbol_bcache::hash): ... this.
1057 (psymbol_compare): Change to...
1058 (psymbol_bcache::compare): ... this.
1059
677c92fe
SM
10602020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1061
1062 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1063 checking for initial lwp.
1064
3eba3a01
TT
10652020-09-14 Tom Tromey <tromey@adacore.com>
1066
1067 * m68k-tdep.c (m68k_extract_return_value): Use
1068 pointer_result_regnum.
1069 (m68k_store_return_value): Likewise.
1070 (m68k_reg_struct_return_p): Handle vectors and arrays.
1071 (m68k_return_value): Handle arrays.
1072 (m68k_svr4_return_value): Fix single-element aggregate handling.
1073 Handle long double. Adjust for embedded ABI.
1074 (m68k_svr4_init_abi): Set pointer_result_regnum.
1075 (m68k_embedded_init_abi): New function.
1076 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1077 (m68k_osabi_sniffer): New function.
1078 (_initialize_m68k_tdep): Register osabi sniffer.
1079 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1080 member.
1081
33f4dd48
SM
10822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1083
1084 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1085 with gdb::unique_xmalloc_ptr<char>.
1086
8400a90d
SM
10872020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1088
1089 * xml-support.h (xml_fetch_another): Change type to be a
1090 function_view.
1091 (xml_process_xincludes): Remove baton parameter.
1092 (xml_fetch_content_from_file): Change baton parameter to
1093 dirname.
1094 * xml-support.c (struct xinclude_parsing_data)
1095 <xinclude_parsing_data>: Remove baton parameter.
1096 <fetcher_baton>: Remove.
1097 (xinclude_start_include): Adjust.
1098 (xml_process_xincludes): Adjust.
1099 (xml_fetch_content_from_file): Replace baton parameter with
1100 dirname.
1101 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1102 (xml_init_syscalls_info): Use a lambda.
1103 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1104 (file_read_description_xml): Use a lambda.
1105 (fetch_available_features_from_target): Change baton parameter
1106 to target_ops.
1107 (target_read_description_xml): Use a lambda.
1108 (target_fetch_description_xml): Use a lambda.
1109 (string_read_description_xml): Update.
1110
04f5bab2
SM
11112020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1112
1113 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1114 uses with type::endianity_is_not_default.
1115
db558e34
SM
11162020-09-14 Simon Marchi <simon.marchi@efficios.com>
1117
1118 * gdbtypes.h (struct type) <endianity_is_not_default,
1119 set_endianity_is_not_default>: New methods.
1120 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1121 type::endianity_is_not_default, change all write call sites to
1122 use type::set_endianity_is_not_default.
1123
22c4c60c
SM
11242020-09-14 Simon Marchi <simon.marchi@efficios.com>
1125
1126 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1127 uses with type::is_fixed_instance.
1128
9cdd0d12
SM
11292020-09-14 Simon Marchi <simon.marchi@efficios.com>
1130
1131 * gdbtypes.h (struct type) <is_fixed_instance,
1132 set_is_fixed_instance>: New methods.
1133 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1134 write call sites to use type::set_is_fixed_instance.
1135
0becda7a
SM
11362020-09-14 Simon Marchi <simon.marchi@efficios.com>
1137
1138 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1139 uses with type::is_gnu_ifunc.
1140
03cc7249
SM
11412020-09-14 Simon Marchi <simon.marchi@efficios.com>
1142
1143 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1144 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1145 use type::set_is_gnu_ifunc.
1146
3f46044c
SM
11472020-09-14 Simon Marchi <simon.marchi@efficios.com>
1148
1149 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1150 uses with type::stub_is_supported.
1151
9baccff6
SM
11522020-09-14 Simon Marchi <simon.marchi@efficios.com>
1153
1154 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1155 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1156 use type::set_stub_is_supported.
1157
bd63c870
SM
11582020-09-14 Simon Marchi <simon.marchi@efficios.com>
1159
1160 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1161 uses with type::is_vector.
1162
2062087b
SM
11632020-09-14 Simon Marchi <simon.marchi@efficios.com>
1164
1165 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1166 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1167 use type::set_is_vector.
1168
a409645d
SM
11692020-09-14 Simon Marchi <simon.marchi@efficios.com>
1170
1171 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1172 uses with type::has_varargs.
1173
1d6286ed
SM
11742020-09-14 Simon Marchi <simon.marchi@efficios.com>
1175
1176 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1177 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1178 use type::set_has_varargs.
1179
7f9f399b
SM
11802020-09-14 Simon Marchi <simon.marchi@efficios.com>
1181
1182 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1183 uses with type::is_prototyped.
1184
27e69b7a
SM
11852020-09-14 Simon Marchi <simon.marchi@efficios.com>
1186
1187 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1188 New methods.
1189 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1190 call sites to use type::set_is_prototyped.
1191
d2183968
SM
11922020-09-14 Simon Marchi <simon.marchi@efficios.com>
1193
1194 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1195 uses with type::target_is_stub.
1196
8f53807e
SM
11972020-09-14 Simon Marchi <simon.marchi@efficios.com>
1198
1199 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1200 New methods.
1201 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1202 sites to use type::set_target_is_stub.
1203
e46d3488
SM
12042020-09-14 Simon Marchi <simon.marchi@efficios.com>
1205
1206 * gdbtypes.h (TYPE_STUB): Remove, replace all
1207 uses with type::is_stub.
1208
b4b73759
SM
12092020-09-14 Simon Marchi <simon.marchi@efficios.com>
1210
1211 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1212 (TYPE_STUB): Use type::is_stub, change all write call sites to
1213 use type::set_is_stub.
1214
20ce4123
SM
12152020-09-14 Simon Marchi <simon.marchi@efficios.com>
1216
1217 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1218 type::has_no_signedness.
1219
15152a54
SM
12202020-09-14 Simon Marchi <simon.marchi@efficios.com>
1221
1222 * gdbtypes.h (struct type) <has_no_signedness,
1223 set_has_no_signedness>: New methods.
1224 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1225 call sites to use type::set_has_no_signedness.
1226
c6d940a9
SM
12272020-09-14 Simon Marchi <simon.marchi@efficios.com>
1228
1229 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1230 type::is_unsigned.
1231
653223d3
SM
12322020-09-14 Simon Marchi <simon.marchi@efficios.com>
1233
1234 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1235 methods.
1236 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1237 sites to use type::set_is_unsigned.
1238
55ea94da
FH
12392020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1240 Adam Renquinha <arenquinha@cimeq.qc.ca>
1241
1242 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1243 pointer and stack frame offset when unwinding.
1244
6791b117
PA
12452020-09-13 Pedro Alves <pedro@palves.net>
1246
1247 * NEWS: Document "-break-insert --qualified".
1248 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1249
77f2120b
PA
12502020-09-13 Pedro Alves <pedro@palves.net>
1251
1252 * linespec.c (classify_mtype, compare_msyms): Delete.
1253 (search_minsyms_for_name): Remove classification logic. Instead
1254 filter out trampoline symbols if we also found an external
1255 function of the same name.
1256
ed6a896c
JB
12572020-09-13 Joel Brobecker <brobecker@adacore.com>
1258
1259 * NEWS: Create a new section for the next release branch.
1260 Rename the section of the current branch, now that it has
1261 been cut.
1262
32aea73e
JB
12632020-09-13 Joel Brobecker <brobecker@adacore.com>
1264
1265 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1266 * version.in: Bump version to 11.0.50.DATE-git.
1267
8087c3fa
JB
12682020-09-12 Joel Brobecker <brobecker@adacore.com>
1269
1270 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1271
2a67f09d
FW
12722020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1273 Felix Willgerodt <Felix.Willgerodt@intel.com>
1274
1275 * gdbarch.sh: Added bfloat16 type.
1276 * gdbarch.c: Regenerated.
1277 * gdbarch.h: Regenerated.
1278 * gdbtypes.c (floatformats_bfloat16): New struct.
1279 (gdbtypes_post_init): Add builtin_bfloat16.
1280 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1281 (floatformats_bfloat16): New struct.
1282 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1283 (i386_ymm_type): Add field "v16_bfloat16"
1284 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1285 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1286 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1287 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1288 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1289 * features/i386/64bit-avx512.c: Regenerated.
1290 * features/i386/64bit-sse.xml: Add bfloat16 type.
1291 * features/i386/64bit-sse.c: Regenerated.
1292
1347d111
FW
12932020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1294
1295 * i386-tdep.c (i386_zmm_type): Fix field names.
1296 (i386_ymm_type): Fix field names.
1297
7a4e8e7d
TBA
12982020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1299
1300 * breakpoint.c: Fix typo in the help message of the
1301 "set breakpoint condition-evaluation" command.
1302
cf4ac4be
KR
13032020-09-10 Kamil Rytarowski <n54@gmx.com>
1304
1305 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1306 * (nbsd_nat_target::pid_to_exec_file)
1307 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1308 (nbsd_nat_target::post_startup_inferior)
1309 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1310 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1311 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1312 * (nbsd_thread_lister): Remove.
1313
f404573e
KR
13142020-09-10 Kamil Rytarowski <n54@gmx.com>
1315
1316 * fork-inferior.c (startup_inferior): Avoid double free.
1317
1ccb2c17
KR
13182020-09-10 Kamil Rytarowski <n54@gmx.com>
1319
1320 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1321 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1322
feedfcc7
KR
13232020-09-10 Kamil Rytarowski <n54@gmx.com>
1324
1325 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1326 * netbsd-nat.c: Include <sys/ptrace.h>.
1327 * (netbsd_nat::enable_proc_events): Add.
1328
c489f8c6
KR
13292020-09-10 Kamil Rytarowski <n54@gmx.com>
1330
1331 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1332 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1333 (netbsd_nat::for_each_thread): Add.
1334 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1335 "gdbsupport/common-debug.h".
1336 * (netbsd_nat::netbsd_thread_lister)
1337 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1338 (netbsd_nat::for_each_thread): Add.
1339
330662f6
KR
13402020-09-10 Kamil Rytarowski <n54@gmx.com>
1341
1342 * netbsd-nat.h: Include <unistd.h>.
1343 * (netbsd_nat::pid_to_exec_file): Add.
1344 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1345 * (netbsd_nat::pid_to_exec_file) Add.
1346
70b67307
KR
13472020-09-10 Kamil Rytarowski <n54@gmx.com>
1348
1349 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1350
99cf6da6
KR
13512020-09-10 Kamil Rytarowski <n54@gmx.com>
1352
1353 * netbsd-nat.h: New file.
1354 * netbsd-nat.c: Likewise.
1355
1b788fb6
TT
13562020-09-09 Tom Tromey <tromey@adacore.com>
1357
1358 * ada-lang.c (remove_extra_symbols): Do not increment when
1359 removing an element
1360
03b0a45f
TT
13612020-09-08 Tom Tromey <tromey@adacore.com>
1362
1363 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1364
3cae4447
TT
13652020-09-08 Tom Tromey <tromey@adacore.com>
1366
1367 PR win32/25302:
1368 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1369 (gdb_bfd_init_data): New function.
1370 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1371
7f08fd51
TBA
13722020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1373
1374 * infrun.c (fetch_inferior_event): Use
1375 `switch_to_target_no_thread` to switch the target.
1376
3e6ff933
TT
13772020-09-06 Tom Tromey <tom@tromey.com>
1378
1379 * symfile.h (dwarf2_free_objfile): Don't declare.
1380
e56798df
AKS
13812020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1382
1383 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1384 to match 16 byte real/complex type generated by Flang compiler.
1385
8f5c6526
TV
13862020-09-03 Tom de Vries <tdevries@suse.de>
1387
1388 PR breakpoint/26546
1389 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1390 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1391
c5065df0
SM
13922020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1393
1394 * maint.c (index_digits): New function.
1395 (struct maint_print_section_data): Remove.
1396 (print_bfd_section_info): Remove print_data parameter, add arg
1397 and index_digits.
1398 (print_objfile_section_info): Likewise.
1399 (print_bfd_section_info_maybe_relocated): Likewise (plus
1400 objfile).
1401 (maintenance_info_sections): Adjust calls.
1402
02c6f3f1
TT
14032020-09-02 Tom Tromey <tromey@adacore.com>
1404
1405 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1406 for null pointers.
1407 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1408
ef5e5b0b
SM
14092020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1410
1411 * bcache.h (struct bcache) <insert>: Change type of `added` to
1412 pointer to bool.
1413 * bcache.c (bcache::insert): Likewise.
1414 * gdbtypes.c (check_types_worklist): Adjust.
1415 * psymtab.c (add_psymbol_to_bcache): Adjust.
1416
973695d6
KB
14172020-08-31 Kevin Buettner <kevinb@redhat.com>
1418
1419 * corelow.c (unordered_set): Include.
1420 (class core_target): Add field 'm_core_unavailable_mappings'.
1421 (core_target::build_file_mappings): Print only one warning
1422 per inaccessible file. Add unavailable/broken mappings
1423 to m_core_unavailable_mappings.
1424 (core_target::xfer_partial): Call...
1425 (core_target::xfer_memory_via_mappings): New method.
1426
264fc0e2
SM
14272020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1428
1429 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1430 type to bool.
1431
2de01bdb
SM
14322020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1433
1434 * dwarf2/read.c (struct field_info): Fix indentation.
1435
f3bd50f1
SM
14362020-08-31 Simon Marchi <simon.marchi@efficios.com>
1437
1438 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1439 ordering in comment.
1440 * frame.c (frame_id_eq): Fix indentation.
1441
22b9b4b0
SL
14422020-08-31 Scott Linder <scott@scottlinder.com>
1443 Simon Marchi <simon.marchi@efficios.com>
1444
1445 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1446 inline frame ids in outer frame.
1447
84154d16
SM
14482020-08-31 Simon Marchi <simon.marchi@efficios.com>
1449
1450 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1451 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1452 (outer_frame_id): Use FID_STACK_OUTER instead of
1453 FID_STACK_INVALID.
1454 (frame_id_p): Don't check for outer_frame_id.
1455
8efaf6b3
SM
14562020-08-31 Simon Marchi <simon.marchi@efficios.com>
1457
1458 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1459 regnum/frame in value. Call allocate_value_lazy.
1460 * frame.c (frame_unwind_register_value): Use
1461 val_print_not_saved.
1462
fe1fe7ea
SM
14632020-08-31 Simon Marchi <simon.marchi@efficios.com>
1464
1465 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1466
f7c7700d
PA
14672020-08-29 Pedro Alves <pedro@palves.net>
1468
1469 * progspace.c (print_program_space): Use all_inferiors. Switch to
1470 the inferior before calling target_pid_to_str.
1471
e0814aae
TT
14722020-08-28 Tom Tromey <tom@tromey.com>
1473
1474 * xcoffread.c (xcoff_end_psymtab): Update comment.
1475 * dbxread.c (dbx_end_psymtab): Update comment.
1476
626d2320
TV
14772020-08-28 Tom de Vries <tdevries@suse.de>
1478
1479 PR breakpoint/26544
1480 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1481 event_location.
1482 (create_breakpoint): Same.
1483 (base_breakpoint_decode_location): Same.
1484 (bkpt_create_sals_from_location): Same.
1485 (bkpt_decode_location): Same.
1486 (bkpt_probe_create_sals_from_location): Same.
1487 (bkpt_probe_decode_location): Same.
1488 (tracepoint_create_sals_from_location): Same.
1489 (tracepoint_decode_location): Same.
1490 (tracepoint_probe_decode_location): Same.
1491 (strace_marker_create_sals_from_location): Same.
1492 (strace_marker_decode_location): Same.
1493 (create_sals_from_location_default): Same.
1494 (decode_location_default): Same.
1495 * breakpoint.h (struct breakpoint_ops): Same.
1496 (create_breakpoint): Same.
1497 * linespec.h (decode_line_full): Same.
1498 * linespec.c (decode_line_full): Same. Throw error if
1499 result.size () == 0.
1500
df631783
PA
15012020-08-27 Pedro Alves <pedro@palves.net>
1502
1503 PR gdb/26524
1504 * breakpoint.c (until_break_fsm) <location_breakpoint,
1505 caller_breakpoint>: Delete fields.
1506 <breakpoints>: New field.
1507 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1508 two individual breakpoints.
1509 (until_break_fsm::should_stop): Loop over breakpoints in the
1510 breakpoint vector.
1511 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1512 vector.
1513 (until_break_command): Handle location expanding into multiple
1514 sals.
1515
b2b38aa4
PA
15162020-08-27 Pedro Alves <pedro@palves.net>
1517
1518 PR gdb/26523
1519 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1520 bp_until breakpoints user-specified locations. Update intro
1521 comment.
1522
b886559f
SM
15232020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1524
1525 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1526 gdb_bfd_sections): New.
1527 * maint.c (print_bfd_section_info): Change param type to
1528 maint_print_section_data.
1529 (print_objfile_section_info): Likewise.
1530 (print_bfd_section_info_maybe_relocated): Likewise.
1531 (maintenance_info_sections): Use gdb_bfd_sections.
1532
4c6e63bf
SV
15332020-08-25 Shahab Vahedi <shahab@synopsys.com>
1534
1535 * MAINTAINERS: Add ARC target and maintainer.
1536
8d7f0635
AK
15372020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1538
1539 * configure.tgt: ARC support for GNU/Linux.
1540 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1541 * arc-linux-tdep.c: New file.
1542 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1543 * arc-tdep.c (arc_write_pc): Use it.
1544
fdd8731b
SV
15452020-08-25 Shahab Vahedi <shahab@synopsys.com>
1546
1547 * arc-tdep.c (arc_check_for_hardware_loop): New.
1548 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1549
22459524
SV
15502020-08-25 Shahab Vahedi <shahab@synopsys.com>
1551
1552 * arc-tdep.h: Include "gdbarch.h".
1553
995d3a19
SV
15542020-08-25 Shahab Vahedi <shahab@synopsys.com>
1555
1556 * arch/arc.h
1557 (arc_gdbarch_features): New class to stir the selection of target XML.
1558 (arc_create_target_description): Use FEATURES to choose XML target.
1559 (arc_lookup_target_description): Use arc_create_target_description
1560 to create _new_ target descriptions or return the already created
1561 ones if the FEATURES is the same.
1562 * arch/arc.c: Implementation of prototypes described above.
1563 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1564 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1565 * arc-tdep.c (*_feature_name): Make feature names consistent.
1566 (arc_register_feature): A new struct to hold information about
1567 registers of a particular target/feature.
1568 (arc_check_tdesc_feature): Check if XML provides registers in
1569 compliance with ARC_REGISTER_FEATURE structs.
1570 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1571 (determine_*_reg_feature_set): Which feature name to look for.
1572 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1573 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1574 to expected ISA enums to be used in arc_gdbarch_features structs.
1575 * features/Makefile (FEATURE_XMLFILES): Add new files.
1576 * gdb/features/arc/v1-aux.c: New file.
1577 * gdb/features/arc/v1-aux.xml: Likewise.
1578 * gdb/features/arc/v1-core.c: Likewise.
1579 * gdb/features/arc/v1-core.xml: Likewise.
1580 * gdb/features/arc/v2-aux.c: Likewise.
1581 * gdb/features/arc/v2-aux.xml: Likewise.
1582 * gdb/features/arc/v2-core.c: Likewise.
1583 * gdb/features/arc/v2-core.xml: Likewise.
1584 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1585
3945d2d7
GM
15862020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1587 Andrew Burgess <andrew.burgess@embecosm.com>
1588
1589 PR m2/26372
fc5d6901 1590 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1591 an assert. Remove single element array indexing pattern as the
1592 MULTI_SUBSCRIPT support will handle this case too.
1593
2677f2d3
SM
15942020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1595
1596 * value.h (valprint_check_validity): Move declaration from
1597 here...
1598 * valprint.h (valprint_check_validity): ... to here.
1599
c426fddb
SM
16002020-08-24 Simon Marchi <simon.marchi@efficios.com>
1601
1602 * debug.h: New file.
1603 * debug.c (debug_prefixed_vprintf): New function.
1604 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1605 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1606
1eb8556f
SM
16072020-08-24 Simon Marchi <simon.marchi@efficios.com>
1608
1609 * infrun.h (infrun_debug_printf_1): New function declaration.
1610 (infrun_debug_printf): New macro.
1611 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1612 throughout.
1613 (infrun_debug_printf): New function.
1614 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1615 (handle_jit_event): Likewise.
1616
b8fff44e
MW
16172020-08-21 Mark Wielaard <mark@klomp.org>
1618
1619 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1620
d19c3068
SM
16212020-08-22 Simon Marchi <simon.marchi@efficios.com>
1622
1623 * frame.c (enum class frame_id_status): New.
1624 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1625 (fprintf_frame): Update.
1626 (compute_frame_id): Set frame id status to "computing" on entry.
1627 Set it back to "not_computed" on failure and to "computed" on
1628 success.
1629 (get_frame_id): Assert the frame id is not being computed.
1630 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1631 (create_new_frame): Likewise.
1632 (frame_cleanup_after_sniffer): Update assert.
1633
b70e516e
SM
16342020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1635
1636 * regcache.c (pid_ptid_regcache_map): New type.
1637 (target_ptid_regcache_map): Remove.
1638 (target_pid_ptid_regcache_map): New type.
1639 (regcaches): Change type to target_pid_ptid_regcache_map.
1640 (get_thread_arch_aspace_regcache): Update.
1641 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1642 case.
1643 (regcaches_size): Update.
1644 (regcache_count): Update.
1645 (registers_changed_ptid_target_pid_test): New.
1646 (_initialize_regcache): Register new test.
1647
cdd9148a
SM
16482020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1649
1650 * regcache.c (regcache_count): New.
1651 (struct regcache_test_data): New.
1652 (regcache_test_data_up): New.
1653 (populate_regcaches_for_test): New.
1654 (regcaches_test): Remove.
1655 (get_thread_arch_aspace_regcache_test): New.
1656 (registers_changed_ptid_all_test): New.
1657 (registers_changed_ptid_target_test): New.
1658 (registers_changed_ptid_target_ptid_test): New.
1659 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1660 (_initialize_regcache): Register new tests.
1661
dd125343
SM
16622020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1663
1664 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1665 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1666 gdbarch and aspace parameter. Use current inferior's aspace.
1667 Validate regcache's arch value.
1668 (regcaches_test): Update.
1669
3ee93972
SM
16702020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1671
1672 * regcache.c (regcaches_test): Call registers_changed.
1673
33bf4c5c
TBA
16742020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1675
1676 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1677
c2fd7fae
AKS
16782020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1679
1680 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1681 to find the end of prologue for flang compiled binaries.
1682 * arm-tdep.c (arm_skip_prologue): Likewise.
1683 * i386-tdep.c (i386_skip_prologue): Likewise.
1684 * producer.c (producer_is_llvm): New function.
1685 (producer_parsing_tests): Added new tests for clang/flang.
1686 * producer.h (producer_is_llvm): New declaration.
1687
9327494e
SM
16882020-08-18 Simon Marchi <simon.marchi@efficios.com>
1689
1690 * linux-nat.c (linux_nat_debug_printf): New function.
1691 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1692
d138725a
AM
16932020-08-18 Aaron Merey <amerey@redhat.com>
1694
1695 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1696 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1697 (CLIBS): Add DEBUGINFOD_LIBS.
1698
f9b11e6b
ST
16992020-08-17 Sergei Trofimovich <siarheit@google.com>
1700
1701 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1702 'gdbarch_num_regs'.
1703
3ae7ab99
TT
17042020-08-17 Tom Tromey <tromey@adacore.com>
1705
1706 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1707 ada_get_decoded_value returns NULL.
1708
b017825f
TT
17092020-08-17 Tom Tromey <tromey@adacore.com>
1710
1711 * python/py-inferior.c (infpy_search_memory): Use
1712 gdb_py_object_from_ulongest.
1713 * python/py-infevents.c (create_inferior_call_event_object)
1714 (create_memory_changed_event_object): Use
1715 gdb_py_object_from_ulongest.
1716 * python/py-linetable.c (ltpy_entry_get_pc): Use
1717 gdb_py_object_from_ulongest.
1718
7635cf79
SM
17192020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1720
1721 * loc.c (class symbol_needs_eval_context): Fix indentation.
1722
f54be24b
SM
17232020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1724
1725 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1726 bool.
1727
53d5a2a5
TV
17282020-08-17 Tom de Vries <tdevries@suse.de>
1729
1730 PR gdb/26393
1731 * gdbtypes.c (dump_dynamic_prop): New function.
1732 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1733
547ce8f0
TV
17342020-08-15 Tom de Vries <tdevries@suse.de>
1735
1736 PR backtrace/26390
1737 * stack.c (print_frame_args): Temporarily set the selected
1738 frame to FRAME while printing the frame's arguments.
1739
6ea815e7
PFC
17402020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1741
1742 PR breakpoints/26385
1743 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1744 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1745
6e562fa3
PFC
17462020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1747
1748 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1749 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1750 and >= to check return value instead of == -1 and != -1.
1751
d369b608
SM
17522020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1753
1754 * utils.h (class gdb_argv) <as_array_view>: New method.
1755 * utils.c (gdb_argv_as_array_view_test): New.
1756 (_initialize_utils): Register selftest.
1757 * maint.c (maintenance_selftest): Use the new method.
1758
b31488a3
KR
17592020-08-13 Kamil Rytarowski <n54@gmx.com>
1760
1761 * target.h (supports_dumpcore, dumpcore): New
1762 function declarations.
1763 * target.c (supports_dumpcore, dumpcore): New
1764 functions.
1765 * target-delegates.c: Rebuild.
1766 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1767 and target_dumpcore ().
1768
002a3166
AM
17692020-08-13 Aaron Merey <amerey@redhat.com>
1770
1771 * debuginfod-support.c: Replace global variables with user_data.
1772
ece5bc8a
SM
17732020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1774
1775 * maint.c (maintenance_selftest): Split args and pass array_view
1776 to run_tests.
1777
6d8a0a5e
LM
17782020-08-12 Luis Machado <luis.machado@linaro.org>
1779
1780 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1781 type's length.
1782 Use %s and pulongest to print the length.
1783
7cf663a9
PA
17842020-08-12 Pedro Alves <palves@redhat.com>
1785
1786 * NEWS: Move "Multi-target debugging support" item to the
1787 "Changes since GDB 9" section.
1788
27c7b875
PA
17892020-08-12 Pedro Alves <palves@redhat.com>
1790
1791 PR gdb/26336
1792 * progspace.c (program_space::remove_objfile): Invalidate the
1793 frame cache.
1794
1796a2a1
TV
17952020-08-11 Tom de Vries <tdevries@suse.de>
1796
1797 * MAINTAINERS: Mark ms1 as deleted.
1798
f8e3fe0d
LM
17992020-08-10 Luis Machado <luis.machado@linaro.org>
1800
1801 PR gdb/26310
1802
1803 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1804 act accordingly.
1805 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1806 movz/str/stur/stp skipping behavior.
1807
cc308722
LM
18082020-08-10 Luis Machado <luis.machado@linaro.org>
1809
1810 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1811 struct user_sve_header instead of struct sve_context.
1812
041d9819
SM
18132020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1814
1815 * read.h (dwarf2_fetch_die_loc_sect_off,
1816 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1817 `void *` parameter with function_view.
1818 * read.c (dwarf2_fetch_die_loc_sect_off,
1819 dwarf2_fetch_die_loc_cu_off): Likewise.
1820 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1821 (per_cu_dwarf_call): Adjust.
1822 (get_frame_address_in_block_wrapper): Remove.
1823 (indirect_synthetic_pointer): Adjust.
1824 (get_ax_pc): Remove.
1825 (dwarf2_compile_expr_to_ax): Adjust.
1826
38f8aa06
TV
18272020-08-08 Tom de Vries <tdevries@suse.de>
1828
1829 PR build/26344
1830 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1831 constructor.
1832 * regcache.c (get_thread_arch_aspace_regcache): Same.
1833
a52b3ae2
TT
18342020-08-07 Tom Tromey <tromey@adacore.com>
1835
1836 * ravenscar-thread.c
1837 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1838 New method.
1839 (ravenscar_thread_target::wait): Check
1840 runtime_initialized.
1841 (ravenscar_thread_target::prepare_to_store)
1842 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1843 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1844 (ravenscar_thread_target::stopped_by_watchpoint)
1845 (ravenscar_thread_target::stopped_data_address)
1846 (ravenscar_thread_target::core_of_thread): Use
1847 scoped_restore_current_thread and
1848 set_base_thread_from_ravenscar_task.
1849
0e29517d
TT
18502020-08-07 Tom Tromey <tromey@adacore.com>
1851
1852 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1853
592f9bd7
TT
18542020-08-07 Tom Tromey <tromey@adacore.com>
1855
1856 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1857 update_inferior_ptid before update_thread_list.
1858 (temporarily_change_regcache_ptid): New class.
1859 (ravenscar_thread_target::fetch_registers)
1860 (ravenscar_thread_target::store_registers)
1861 (ravenscar_thread_target::prepare_to_store): Use base thread when
1862 forwarding operation.
1863
39e2018a
TT
18642020-08-07 Tom Tromey <tromey@adacore.com>
1865
1866 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1867 "is_pid" case.
1868
2080266b
TT
18692020-08-07 Tom Tromey <tromey@adacore.com>
1870
1871 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1872 New methods.
1873 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1874 first.
1875 (ravenscar_thread_target::add_thread): Rename from
1876 ravenscar_add_thread.
1877 (ravenscar_thread_target::update_thread_list): Use a lambda.
1878 (ravenscar_thread_target::xfer_partial): New method.
1879
78c02f21
TT
18802020-08-07 Tom Tromey <tromey@adacore.com>
1881
1882 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1883 gdb::function_view.
1884 (iterate_over_live_ada_tasks): Change type of argument.
1885 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1886 of argument.
1887
d5d833af
TT
18882020-08-07 Tom Tromey <tromey@adacore.com>
1889
1890 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1891 Remove.
1892 (ravenscar_thread_target::extra_thread_info): Remove.
1893 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1894 defer to target beneath for non-Ravenscar threads.
1895
a8ac85bb
TT
18962020-08-07 Tom Tromey <tromey@adacore.com>
1897
1898 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1899 get_base_thread_from_ravenscar_task>: Now methods.
1900 <m_cpu_map>: New member.
1901 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1902 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1903 (ravenscar_thread_target::task_is_currently_active): Update.
1904 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1905 Now a method.
1906 (ravenscar_thread_target::add_active_thread): Put initial thread
1907 into the m_cpu_map.
1908
550ab58d
TT
19092020-08-07 Tom Tromey <tromey@adacore.com>
1910
1911 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1912 event_ptid.
1913
e9546579
TT
19142020-08-07 Tom Tromey <tromey@adacore.com>
1915
1916 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1917 runtime_initialized.
1918
3d4470e5
TT
19192020-08-07 Tom Tromey <tromey@adacore.com>
1920
1921 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1922 add_active_thread.
1923 (ravenscar_thread_target::add_active_thread): Now public.
1924 (ravenscar_inferior_created): Call add_active_thread after pushing
1925 the target.
1926
888bdb2b
SM
19272020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1928
1929 * regcache.c (ptid_regcache_map): New type.
1930 (target_ptid_regcache_map): New type.
1931 (regcaches): Change type to target_ptid_regcache_map.
1932 (get_thread_arch_aspace_regcache): Update to regcaches' new
1933 type.
1934 (regcache_thread_ptid_changed): Likewise.
1935 (registers_changed_ptid): Likewise.
1936 (regcaches_size): Likewise.
1937 (regcaches_test): Update.
1938 (regcache_thread_ptid_changed): Update.
1939 * regcache.h (regcache_up): New type.
1940 * gdbsupport/ptid.h (hash_ptid): New struct.
1941
b161a60d
SM
19422020-08-07 Simon Marchi <simon.marchi@efficios.com>
1943
1944 * observable.h (thread_ptid_changed): Add parameter
1945 `process_stratum_target *`.
1946 * infrun.c (infrun_thread_ptid_changed): Add parameter
1947 `process_stratum_target *` and use it.
1948 (selftests): New namespace.
1949 (infrun_thread_ptid_changed): New function.
1950 (_initialize_infrun): Register selftest.
1951 * regcache.c (regcache_thread_ptid_changed): Add parameter
1952 `process_stratum_target *` and use it.
1953 (regcache_thread_ptid_changed): New function.
1954 (_initialize_regcache): Register selftest.
1955 * thread.c (thread_change_ptid): Pass target to
1956 thread_ptid_changed observable.
1957
d2854d8d
CT
19582020-08-06 Caroline Tice <cmtice@google.com>
1959
fe4c3d43
SM
1960 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1961 (struct dwp_sections): Update field comments. Add loclists and
1962 rnglists fields.
1963 (struct virtual_v2_dwo_sections): Rename struct to
1964 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1965 size & offset fields for loclists and rnglists.
1966 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1967 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1968 skipping dummy type units.
1969 (create_dwp_hash_table): Update the large comment above the function to
1970 discuss Version 5 DWP files as well, with references. Update all the
1971 version checks in the function to check for version 5 as well. Add new
1972 section at the end to create dwp hash table for version 5.
1973 (create_dwp_v2_section): Rename function to
1974 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1975 Add V5 to error message text.
1976 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1977 into calls to create_dwp_v2_or_v5_section.
1978 (create_dwo_unit_in_dwp_v5): New function.
1979 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1980 check for version2; add else clause to handle version 5.
1981 (open_and_init_dwo_file): Add code to check dwarf version & only call
1982 create_debug_types_hash_table (with sections.types) if version is not 5;
1983 else call create_debug_type_hash_table, with sections.info.
1984 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1985 version 5.
1986 (dwarf2_locate_v5_dwp_sections): New function.
1987 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1988 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1989
159ed7d9
SM
19902020-08-06 Simon Marchi <simon.marchi@efficios.com>
1991
1992 * regcache.h (class regcache): Remove friend
1993 registers_changed_ptid.
1994 <regcache_thread_ptid_changed>: Remove.
1995 <regcaches>: Remove.
1996 * regcache.c (regcache::regcaches): Rename to...
1997 (regcaches): ... this. Make static.
1998 (get_thread_arch_aspace_regcache): Update.
1999 (regcache::regcache_thread_ptid_changed): Rename to...
2000 (regcache_thread_ptid_changed): ... this. Update.
2001 (class regcache_access): Remove.
2002 (regcaches_test): Update.
2003 (_initialize_regcache): Update.
2004 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2005 <forward_list>.
2006
174981ae
SM
20072020-08-06 Simon Marchi <simon.marchi@efficios.com>
2008
2009 * regcache.h (class regcache) <current_regcache>: Rename to...
2010 <regcaches>: ... this. Move doc here.
2011 * regcache.c (regcache::current_regcache) Rename to...
2012 (regcache::regcaches): ... this. Move doc to header.
2013 (get_thread_arch_aspace_regcache): Update.
2014 (regcache::regcache_thread_ptid_changed): Update.
2015 (registers_changed_ptid): Update.
2016 (class regcache_access) <current_regcache_size>: Rename to...
2017 <regcaches_size>: ... this.
2018 (current_regcache_test): Rename to...
2019 (regcaches_test): ... this.
2020 (_initialize_regcache): Update.
2021
ed908db6
VC
20222020-08-06 Victor Collod <vcollod@nvidia.com>
2023
2024 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2025
b5582ab7
KB
20262020-08-05 Kevin Buettner <kevinb@redhat.com>
2027
2028 * corelow.c (core_target::build_file_mappings): Don't output
2029 null pathname in warning.
2030
ea946b86
SM
20312020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2032
2033 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2034 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2035 gdb.dwarf2/dw2-single-line-discriminators.exp,
2036 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2037
57d02173
TT
20382020-08-05 Tom Tromey <tromey@adacore.com>
2039
2040 PR rust/26197:
2041 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2042 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2043 Fix off-by-one and type size errors in ordinary case.
2044
5555c86d
TV
20452020-08-05 Tom de Vries <tdevries@suse.de>
2046
2047 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2048 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2049
97916bfe
SM
20502020-08-04 Simon Marchi <simon.marchi@efficios.com>
2051
2052 * frame.h (frame_id_p): Return bool.
2053 (frame_id_artificial_p): Return bool.
2054 (frame_id_eq): Return bool.
2055 (has_stack_frames): Return bool.
2056 (get_selected_frame): Fix typo in comment.
2057 (get_frame_pc_if_available): Return bool.
2058 (get_frame_address_in_block_if_available): Return bool.
2059 (get_frame_func_if_available): Return bool.
2060 (read_frame_register_unsigned): Return bool.
2061 (get_frame_register_bytes): Return bool.
2062 (safe_frame_unwind_memory): Return bool.
2063 (deprecated_frame_register_read): Return bool.
2064 (frame_unwinder_is): Return bool.
2065 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2066 bool.
2067 <this_id::p>: Likewise.
2068 <prev_p>: Likewise.
2069 (frame_stash_add): Return bool.
2070 (get_frame_id): Use bool.
2071 (frame_id_build_special) Use bool.
2072 (frame_id_build_unavailable_stack): Use bool.
2073 (frame_id_build): Use bool.
2074 (frame_id_p): Return bool, use true/false instead of 1/0.
2075 (frame_id_artificial_p): Likewise.
2076 (frame_id_eq): Likewise.
2077 (frame_id_inner): Likewise.
2078 (get_frame_func_if_available): Likewise.
2079 (read_frame_register_unsigned): Likewise.
2080 (deprecated_frame_register_read): Likewise.
2081 (get_frame_register_bytes): Likewise.
2082 (has_stack_frames): Likewise.
2083 (inside_main_func): Likewise.
2084 (inside_entry_func): Likewise.
2085 (get_frame_pc_if_available): Likewise.
2086 (get_frame_address_in_block_if_available): Likewise.
2087 (frame_unwinder_is): Likewise.
2088 (safe_frame_unwind_memory): Likewise.
2089 (frame_unwind_arch): Likewise.
2090
fedfee88
SM
20912020-08-04 Simon Marchi <simon.marchi@efficios.com>
2092
2093 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2094 type to cached_copy_status.
2095 (fprintf_frame): Adjust.
2096 (get_frame_func_if_available): Adjust.
2097 (frame_cleanup_after_sniffer): Adjust.
2098
6cfa9b59
MW
20992020-08-04 Mark Wielaard <mark@klomp.org>
2100
2101 * MAINTAINERS (Write After Approval): Update email address.
2102
66d6346b
SM
21032020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2104
2105 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2106 dynamic_prop::const_val.
2107
8a6d5e35
SM
21082020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2109
2110 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2111 dynamic_prop::kind.
2112
51d6067d
SM
21132020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2114
2115 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2116
b26e2ae7
JM
21172020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2118
2119 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2120
39791af2
JM
21212020-08-04 Weimin Pan <weimin.pan@oracle.com>
2122 Jose E. Marchesi <jose.marchesi@oracle.com>
2123
2124 * configure.tgt: Add entry for bpf-*-*.
2125 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2126 (ALLDEPFILES): Add bpf-tdep.c.
2127 * bpf-tdep.c: New file.
2128 * MAINTAINERS: Add bpf target and maintainer.
2129 * NEWS: Mention the support for the new target.
2130
521894aa
TV
21312020-08-04 Tom de Vries <tdevries@suse.de>
2132
2133 PR symtab/23270
2134 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2135 Error.
2136
5d6356e9
JB
21372020-08-03 John Baldwin <jhb@FreeBSD.org>
2138
2139 * syscalls/freebsd.xml: Regenerate.
2140
0cf82b81
JB
21412020-08-03 John Baldwin <jhb@FreeBSD.org>
2142
2143 * syscalls/update-freebsd.sh: Fix usage and year range.
2144
8f34b746
TV
21452020-08-03 Tom de Vries <tdevries@suse.de>
2146
2147 PR symtab/26333
2148 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2149 DW_LNE_lo_user/DW_LNE_hi_user range.
2150
5e500d33
SM
21512020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2152
2153 PR ada/26318
2154 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2155 kind.
2156
78319c15
TBA
21572020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2158
2159 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2160
4c55e970
TBA
21612020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2162
2163 * breakpoint.c (set_breakpoint_condition): Update the condition
2164 expressions after checking that the input condition string parses
2165 successfully and does not contain junk at the end.
2166
1e620590
TBA
21672020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2168
2169 * breakpoint.c (set_breakpoint_condition): Update the
2170 condition string after parsing the new condition successfully.
2171
c8693053
RO
21722020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2173
2174 * proc-api.c (_STRUCTURED_PROC): Don't define.
2175 * proc-events.c: Likewise.
2176 * proc-flags.c: Likewise.
2177 * proc-why.c: Likewise.
2178 * procfs.c: Likewise.
2179
2180 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2181 * configure, config.in: Regenerate.
2182
5a99adb8
TV
21832020-07-30 Tom de Vries <tdevries@suse.de>
2184
2185 PR build/26320
2186 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2187 m_red/m_green/m_blue in a union.
2188
8ba83e91
TV
21892020-07-29 Tom de Vries <tdevries@suse.de>
2190
2191 PR tdep/26280
2192 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2193
f75a0693
AB
21942020-07-28 Tom Tromey <tromey@adacore.com>
2195
2196 PR symtab/26270:
2197 * symtab.h (find_pc_partial_function_sym): Declare.
2198 * cli/cli-cmds.c (disassemble_command): Use
2199 find_pc_partial_function_sym. Check asm_demangle.
2200 * blockframe.c (cache_pc_function_sym): New global.
2201 (cache_pc_function_name): Remove.
2202 (clear_pc_function_cache): Update.
2203 (find_pc_partial_function_sym): New function, from
2204 find_pc_partial_function.
2205 (find_pc_partial_function): Rewrite using
2206 find_pc_partial_function_sym.
2207
16f3242c
TT
22082020-07-28 Tom Tromey <tromey@adacore.com>
2209
2210 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2211 help. Add usage.
2212
4888741a
TT
22132020-07-28 Tom Tromey <tromey@adacore.com>
2214
2215 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2216 <DW_OP_GNU_variable_value>: Cast to address type.
2217
4d46f402
KR
22182020-07-28 Kamil Rytarowski <n54@gmx.com>
2219
2220 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2221 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2222 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2223 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2224 (nbsd_get_siginfo_type): New.
2225 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2226 (_initialize_nbsd_tdep): New.
2227
d70f978b
L
22282020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2229
2230 PR binutils/26301
2231 * configure: Regenerated.
2232
377170fa
L
22332020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2234
2235 PR binutils/26301
2236 * configure: Regenerated.
2237
43d5901d
AB
22382020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2239
2240 * python/py-frame.c: Remove 'user-regs.h' include.
2241 (frapy_read_register): Rewrite to make use of
2242 gdbpy_parse_register_id.
2243 * python/py-registers.c (gdbpy_parse_register_id): New function,
2244 moved here from python/py-unwind.c. Updated the return type, and
2245 also accepts register descriptor objects.
2246 * python/py-unwind.c: Remove 'user-regs.h' include.
2247 (pyuw_parse_register_id): Moved to python/py-registers.c.
2248 (unwind_infopy_add_saved_register): Update to use
2249 gdbpy_parse_register_id.
2250 (pending_framepy_read_register): Likewise.
2251 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2252
14fa8fb3
AB
22532020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2254
2255 * python/py-registers.c: Add 'user-regs.h' include.
2256 (register_descriptor_iter_find): New function.
2257 (register_descriptor_iterator_object_methods): New static global
2258 methods array.
2259 (register_descriptor_iterator_object_type): Add pointer to methods
2260 array.
2261
ddce1758
JB
22622020-07-27 John Baldwin <jhb@FreeBSD.org>
2263
2264 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2265 for all architectures on FreeBSD 11.3 and later.
2266
a4089f52
TT
22672020-07-27 Tom Tromey <tromey@adacore.com>
2268
2269 * gcore.h (load_corefile): Don't declare.
2270
95420d30
TV
22712020-07-27 Tom de Vries <tdevries@suse.de>
2272
2273 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2274 * config.in: Regenerate.
2275 * configure: Regenerate.
2276
05a6b8c2
EZ
22772020-07-26 Eli Zaretskii <eliz@gnu.org>
2278
2279 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2280 ws2tcpip.h. When checking whether socklen_t type is defined, use
2281 ws2tcpip.h if it is available and sys/socket.h isn't.
2282 * configure: Regenerate.
2283 * config.in: Regenerate.
2284
e79eb02f
AB
22852020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2286
2287 PR fortran/23051
2288 PR fortran/26139
2289 * valops.c (value_ind): Pass address to
2290 readjust_indirect_value_type.
2291 * value.c (readjust_indirect_value_type): Make parameter
2292 non-const, and add extra address parameter. Resolve original type
2293 before using it.
2294 * value.h (readjust_indirect_value_type): Update function
2295 signature and comment.
2296
876518dd
TV
22972020-07-25 Tom de Vries <tdevries@suse.de>
2298
2299 PR symtab/26243
2300 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2301 entries.
2302
f6720b1c
AM
23032020-07-24 Aaron Merey <amerey@redhat.com>
2304
2305 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2306 * configure: Rebuild.
2307
513487e1
KB
23082020-07-23 Kevin Buettner <kevinb@redhat.com>
2309
2310 PR corefiles/26294
2311 * corelow.c (_initialize_corelow): Add period to help text
2312 for "maintenance print core-file-backed-mappings".
2313
e7bc9db8
PA
23142020-07-23 Pedro Alves <pedro@palves.net>
2315
2316 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2317 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2318 meanwhile.
2319 * frame.c (frame_cache_generation, get_frame_cache_generation):
2320 New.
2321 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2322 (get_prev_frame_if_no_cycle): On exception, don't touch
2323 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2324 * frame.h (get_frame_cache_generation): Declare.
2325
90fcc466
TV
23262020-07-23 Tom de Vries <tdevries@suse.de>
2327
2328 PR tui/26282
2329 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2330 New default constructor.
2331
78344df7
AB
23322020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2333
2334 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2335 exclude non-statement entries.
2336
b089853a
KB
23372020-07-22 Kevin Buettner <kevinb@redhat.com>
2338
2339 * NEWS (New commands): Mention new command
2340 "maintenance print core-file-backed-mappings".
2341
09c2f5d4
KB
23422020-07-22 Kevin Buettner <kevinb@redhat.com>
2343
2344 * corelow.c (gdbcmd.h): Include.
2345 (core_target::info_proc_mappings): New method.
2346 (get_current_core_target): New function.
2347 (maintenance_print_core_file_backed_mappings): New function.
2348 (_initialize_corelow): Add core-file-backed-mappings to
2349 "maint print" commands.
2350
9c5ec5c2 23512020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2352
9c5ec5c2
KB
2353 * linux-tdep.c (dump_note_entry_p): New function.
2354 (linux_dump_mapping_p_ftype): New typedef.
2355 (linux_find_memory_regions_full): Add new parameter,
2356 should_dump_mapping_p.
2357 (linux_find_memory_regions): Adjust call to
2358 linux_find_memory_regions_full.
2359 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2360 call to linux_find_memory_regions_full.
2361
db082f59
KB
23622020-07-22 Kevin Buettner <kevinb@redhat.com>
2363
2364 * corelow.c (solist.h, unordered_map): Include.
2365 (class core_target): Add field m_core_file_mappings and
2366 method build_file_mappings.
2367 (core_target::core_target): Call build_file_mappings.
2368 (core_target::~core_target): Free memory associated with
2369 m_core_file_mappings.
2370 (core_target::build_file_mappings): New method.
2371 (core_target::xfer_partial): Use m_core_file_mappings
2372 for memory transfers.
2373 * linux-tdep.c (linux_read_core_file_mappings): New
2374 function.
2375 (linux_core_info_proc_mappings): Rewrite to use
2376 linux_read_core_file_mappings.
2377 (linux_init_abi): Register linux_read_core_file_mappings.
2378
7e183d27
KB
23792020-07-22 Kevin Buettner <kevinb@redhat.com>
2380
2381 * arch-utils.c (default_read_core_file_mappings): New function.
2382 * arch-utils.c (default_read_core_file_mappings): Declare.
2383 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2384 * gdbarch.h, gdbarch.c: Regenerate.
2385
2735d421
KB
23862020-07-22 Kevin Buettner <kevinb@redhat.com>
2387
2388 PR corefiles/25631
2389 * corelow.c (core_target:xfer_partial): Revise
2390 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2391 case after first checking the stratum beneath the core
2392 target.
2393 (has_all_memory): Return true.
2394 * target.c (raw_memory_xfer_partial): Revise comment
2395 regarding use of has_all_memory.
2396
e56cb451
KB
23972020-07-22 Kevin Buettner <kevinb@redhat.com>
2398
2399 * exec.h (section_table_xfer_memory): Revise declaration,
2400 replacing section name parameter with an optional callback
2401 predicate.
2402 * exec.c (section_table_xfer_memory): Likewise.
2403 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2404 of section_table_xfer_memory.
2405
32fa152e
TT
24062020-07-22 Tom Tromey <tromey@adacore.com>
2407
2408 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2409 lookup_symbol_search_name.
2410
a67a1c41
AB
24112020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2412
2413 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2414 redundant local variable.
2415 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2416 reference, not pointer, update code accordingly.
2417
a7b4ff4f
SM
24182020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2419 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2420
2421 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2422 * jit.c (jit_breakpoint_re_set_internal): Use the
2423 `skip_jit_symbol_lookup` field.
2424
2340e834
SM
24252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2426 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2427
2428 * jit.c (jit_read_descriptor): Define the descriptor address once,
2429 use twice.
2430 (jit_breakpoint_deleted): Move the declaration of the loop variable
2431 `iter` into the loop header.
2432 (jit_breakpoint_re_set_internal): Move the declaration of the local
2433 variable `objf_data` to the first point of definition.
2434 (jit_event_handler): Move the declaration of local variables
2435 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2436 Rename `objf` to `jited`.
2437
c1072906
SM
24382020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2439
2440 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2441 Remove.
2442 * jit.c (get_jiter_objfile_data): Update.
2443
c8474dc3
TBA
24442020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2445 Simon Marchi <simon.marchi@polymtl.ca>
2446
2447 * jit.c (struct jit_program_space_data): Remove.
2448 (jit_program_space_key): Remove.
2449 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2450 stuff.
2451 (get_jit_program_space_data): Remove.
2452 (jit_breakpoint_deleted): Iterate on all of the program space's
2453 objfiles.
2454 (jit_inferior_init): Likewise.
2455 (jit_breakpoint_re_set_internal): Likewise. Also change return
2456 type to void.
2457 (jit_breakpoint_re_set): Pass current_program_space to
2458 jit_breakpoint_re_set_internal.
2459
77208eb7
SM
24602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2461
2462 * jit.h (struct jiter_objfile_data) <cached_code_address,
2463 jit_breakpoint>: Move to here from ...
2464 * jit.c (jit_program_space_data): ... here.
2465 (jiter_objfile_data::~jiter_objfile_data): Update.
2466 (jit_breakpoint_deleted): Update.
2467 (jit_breakpoint_re_set_internal): Update.
2468
8c1c720f
SM
24692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2470
2471 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2472 checks.
2473 (jit_read_descriptor): Remove NULL check.
2474 (jit_event_handler): Add an assertion.
2475
0e74a041
SM
24762020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2477
2478 * jit.h (struct jit_objfile_data): Split into...
2479 (struct jiter_objfile_data): ... this ...
2480 (struct jited_objfile_data): ... and this.
2481 * objfiles.h (struct objfile) <jit_data>: Remove.
2482 <jiter_data, jited_data>: New fields.
2483 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2484 (jiter_objfile_data::~jiter_objfile_data): ... this.
2485 (get_jit_objfile_data): Rename to ...
2486 (get_jiter_objfile_data): ... this.
2487 (add_objfile_entry): Update.
2488 (jit_read_descriptor): Use get_jiter_objfile_data.
2489 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2490 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2491 (jit_inferior_exit_hook): Use objfile's jited_data field.
2492
238b5c9f
SM
24932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2494
2495 * jit.h: Forward-declare `struct minimal_symbol`.
2496 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2497 constructor, destructor, and an objfile* field.
2498 * jit.c (jit_objfile_data): Remove.
2499 (struct jit_objfile_data): Migrate from here to jit.h.
2500 (jit_objfile_data::~jit_objfile_data): New destructor
2501 implementation with code moved from free_objfile_data.
2502 (free_objfile_data): Delete.
2503 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2504 (jit_find_objf_with_entry_addr): Ditto.
2505 (jit_inferior_exit_hook): Ditto.
2506 (_initialize_jit): Remove the call to
2507 register_objfile_data_with_cleanup.
2508 * objfiles.h (struct objfile) <jit_data>: New field.
2509
fe053b9e
TBA
25102020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2511
2512 * jit.h: Forward-declare `struct objfile`.
2513 (jit_event_handler): Add a second parameter, the JITer objfile.
2514 * jit.c (jit_read_descriptor): Change the signature to take the
2515 JITer objfile as an argument instead of the jit_program_space_data.
2516 (jit_inferior_init): Update the call to jit_read_descriptor.
2517 (jit_event_handler): Use the new JITer objfile argument when calling
2518 jit_read_descriptor.
2519 * breakpoint.c (handle_jit_event): Update the call to
2520 jit_event_handler to pass the JITer objfile.
2521
4cec0c66
JB
25222020-07-21 John Baldwin <jhb@FreeBSD.org>
2523
2524 * gdbarch.c: Regenerate.
2525 * gdbarch.h: Regenerate.
2526 * gdbarch.sh (handle_segmentation_fault): Remove method.
2527 * infrun.c (handle_segmentation_fault): Remove.
2528 (print_signal_received_reason): Remove call to
2529 handle_segmentation_fault.
2530
0e42f66a
JB
25312020-07-21 John Baldwin <jhb@FreeBSD.org>
2532
2533 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2534 Rename to sparc64_linux_report_signal_info and add siggnal
2535 argument.
2536 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2537 instead of sparc64_linux_handle_segmentation_fault.
2538
77bdfeb2
JB
25392020-07-21 John Baldwin <jhb@FreeBSD.org>
2540
2541 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2542 i386_linux_report_signal_info instead of
2543 i386_linux_handle_segmentation_fault.
2544 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2545 to i386_linux_report_signal_info and add siggnal argument.
2546 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2547 of i386_linux_handle_segmentation_fault.
2548 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2549 to i386_linux_report_signal_info and add siggnal argument.
2550
ad97bfc5
JB
25512020-07-21 John Baldwin <jhb@FreeBSD.org>
2552
2553 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2554 hook if present.
2555
272bb05c
JB
25562020-07-21 John Baldwin <jhb@FreeBSD.org>
2557
2558 * gdbarch.c: Regenerate.
2559 * gdbarch.h: Regenerate.
2560 * gdbarch.sh (report_signal_info): New method.
2561 * infrun.c (print_signal_received_reason): Invoke gdbarch
2562 report_signal_info hook if present.
2563
baf8791e
AB
25642020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * python/py-registers.c : Add 'unordered_map' include.
2567 (gdbpy_new_reggroup): Renamed to...
2568 (gdbpy_get_reggroup): ...this. Update to only create register
2569 group descriptors when needed.
2570 (gdbpy_reggroup_iter_next): Update.
2571
f7306dac
AB
25722020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * python/py-registers.c (gdbpy_register_object_data): New static
2575 global.
2576 (gdbpy_register_object_data_init): New function.
2577 (gdbpy_new_register_descriptor): Renamed to...
2578 (gdbpy_get_register_descriptor): ...this, and update to reuse
2579 existing register descriptors where possible.
2580 (gdbpy_register_descriptor_iter_next): Update.
2581 (gdbpy_initialize_registers): Register new gdbarch data.
2582
05c309a8
SM
25832020-07-21 Simon Marchi <simon.marchi@efficios.com>
2584
2585 * linux-nat.c (stopped_pids): Make static.
2586
d1fd641e
SM
25872020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2588
2589 PR ada/26235
2590 * gdbtypes.c (ada_discrete_type_low_bound,
2591 ada_discrete_type_high_bound): Handle undefined bounds.
2592
1de14d77
KR
25932020-07-21 Kamil Rytarowski <n54@gmx.com>
2594
2595 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2596 declaration.
2597 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2598 function.
2599
ed810cc7
JB
26002020-07-20 John Baldwin <jhb@FreeBSD.org>
2601
2602 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2603 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2604 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2605 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2606 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2607 method.
2608
ae5369e7
LC
26092020-07-20 Ludovic Courtès <ludo@gnu.org>
2610
2611 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2612 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2613 which are deprecated in Guile 3.0.
2614 * configure.ac (try_guile_versions): Add "guile-3.0".
2615 * configure (try_guile_versions): Regenerate.
2616 * NEWS: Update entry.
2617
68cf161c
LC
26182020-07-20 Ludovic Courtès <ludo@gnu.org>
2619 Doug Evans <dje@google.com>
2620
2621 PR gdb/21104
2622 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2623 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2624 USING_GUILE_BEFORE_2_2.
2625 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2626 Change type to 'scm_t_port_type *'.
2627 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2628 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2629 parameter and honor it. Update callers.
2630 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2631 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2632 functions.
2633 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2634 USING_GUILE_BEFORE_2_2.
2635 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2636 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2637 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2638 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2639 and 'SCM_PORT_TYPE'.
2640 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2641 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2642 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2643 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2644 [!USING_GUILE_BEFORE_2_2]: New functions.
2645 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2646 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2647 'gdbscm_memory_port_read'.
2648 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2649 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2650 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2651 function.
2652 (ioscm_init_memory_port): Remove.
2653 (ioscm_init_memory_port_stream): New function
2654 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2655 function.
2656 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2657 Return scm_from_uint (0).
2658 (gdbscm_set_memory_port_read_buffer_size_x)
2659 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2660 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2661 Return scm_from_uint (0).
2662 (gdbscm_set_memory_port_write_buffer_size_x)
2663 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2664 * configure.ac (try_guile_versions): Add "guile-2.2".
2665 * configure: Regenerate.
2666 * NEWS: Add entry.
2667
aee91db3
TT
26682020-07-18 Tom Tromey <tom@tromey.com>
2669
2670 * linux-nat.c (linux_multi_process): Remove.
2671 (linux_nat_target::supports_multi_process): Return true.
2672
0e267416
AB
26732020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2674
2675 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2676 (riscv_lookup_target_description): Return pointer out of
2677 unique_ptr.
2678 * target-descriptions.c (allocate_target_description): Add
2679 comment.
2680 (target_desc_deleter::operator()): Likewise.
2681 * target-descriptions.h (struct target_desc_deleter): Moved to
2682 gdbsupport/tdesc.h.
2683 (target_desc_up): Likewise.
2684
f80c8ec4
TT
26852020-07-17 Tom Tromey <tromey@adacore.com>
2686
2687 * linux-nat.c (linux_nat_target::supports_non_stop)
2688 (linux_nat_target::always_non_stop_p): Use "true".
2689 (linux_nat_target::supports_disable_randomization): Use "true" and
2690 "false".
2691
d0ce17d8
CT
26922020-07-16 Caroline Tice <cmtice@google.com>
2693
2694 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2695 (RNGLIST_HEADER_SIZE64): New constant definition.
2696 (struct dwop_section_names): Add rnglists_dwo.
2697 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2698 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2699 (struct dwo_sections): Add rnglists field.
2700 (read_attribut_reprocess): Add tag parameter.
2701 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2702 (cu_debug_rnglists_section): New function (decl & definition).
2703 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2704 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2705 die whose range is being checked; get rnglist section from
2706 cu_debug_rnglists_section, to get from either objfile or dwo file as
2707 appropriate. Add cases for DW_RLE_base_addressx,
2708 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2709 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2710 test inside if-condition and updating complaint message.
2711 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2712 dwarf2_rnglists_process.
2713 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2714 dwarf2_ranges_process.
2715 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2716 need_ranges_base and update comment appropriately. Also pass die tag
2717 to dwarf2_ranges_read.
2718 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2719 need_ranges_base and update comment appropriately. Also pass die tag
2720 to dwarf2_ranges_process.
2721 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2722 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2723 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2724 need_ranges_base and update comment appropriately. Also pass die tag
2725 to read_attribute_reprocess and dwarf2_ranges_read.
2726 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2727 and update function comment appropriately.
2728 (read_loclist_index): Call read_loclists_rnglists_header instead of
2729 read_loclist_header.
2730 (read_rnglist_index): New function.
2731 (read_attribute_reprocess): Add tag parameter. Add code for
2732 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2733 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2734
3dcc261c
AB
27352020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2736
2737 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2738 being resolved.
2739
ccb9eba6
AB
27402020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2741
2742 * arch-utils.c (show_architecture): Update formatting of messages.
2743
cf88be68
SM
27442020-07-12 Simon Marchi <simon.marchi@efficios.com>
2745
2746 * gdbtypes.h (struct type) <bounds>: Handle array and string
2747 types.
2748 * ada-lang.c (assign_aggregate): Use type::bounds on
2749 array/string type.
2750 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2751 * c-varobj.c (c_number_of_children): Likewise.
2752 (c_describe_child): Likewise.
2753 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2754 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2755 (f_type_print_base): Likewise.
2756 * f-valprint.c (f77_array_offset_tbl): Likewise.
2757 (f77_get_upperbound): Likewise.
2758 (f77_print_array_1): Likewise.
2759 * guile/scm-type.c (gdbscm_type_range): Likewise.
2760 * m2-typeprint.c (m2_array): Likewise.
2761 (m2_is_long_set_of_type): Likewise.
2762 * m2-valprint.c (get_long_set_bounds): Likewise.
2763 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2764 * python/py-type.c (typy_range): Likewise.
2765 * rust-lang.c (rust_internal_print_type): Likewise.
2766 * type-stack.c (type_stack::follow_types): Likewise.
2767 * valarith.c (value_subscripted_rvalue): Likewise.
2768 * valops.c (value_cast): Likewise.
2769
509971ae
SM
27702020-07-12 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2773 callers to use the equivalent accessor methods.
2774
107406b7
SM
27752020-07-12 Simon Marchi <simon.marchi@efficios.com>
2776
2777 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2778 (struct type) <bit_stride>: New method.
2779 (TYPE_BIT_STRIDE): Remove.
2780 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2781
bb789949
SM
27822020-07-12 Simon Marchi <simon.marchi@efficios.com>
2783
2784 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2785 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2786 callers to use the equivalent accessor methods instead.
2787
39498edb
SM
27882020-07-12 Simon Marchi <simon.marchi@efficios.com>
2789
2790 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2791 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2792 callers to use the equivalent accessor methods instead.
2793
3b606f38
SM
27942020-07-12 Simon Marchi <simon.marchi@efficios.com>
2795
2796 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2797 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2798 to use dynamic_prop::kind.
2799
064d9cb9
SM
28002020-07-12 Simon Marchi <simon.marchi@efficios.com>
2801
2802 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2803 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2804 to get the bound property's kind and check against
2805 PROP_UNDEFINED.
2806
5537ddd0
SM
28072020-07-12 Simon Marchi <simon.marchi@efficios.com>
2808
2809 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2810 all callers to use type::range_bounds followed by
2811 dynamic_prop::{low,high}.
2812
8c2e4e06
SM
28132020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2814
2815 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2816 const_val, set_const_val, baton, set_locexpr, set_loclist,
2817 set_addr_offset, variant_parts, set_variant_parts,
2818 original_type, set_original_type>: New methods.
2819 <kind>: Rename to...
2820 <m_kind>: ... this. Update all users to use the new methods
2821 instead.
2822 <data>: Rename to...
2823 <m_data>: ... this. Update all users to use the new methods
2824 instead.
2825
7c6f2712
SM
28262020-07-12 Simon Marchi <simon.marchi@efficios.com>
2827
2828 * gdbtypes.c (get_discrete_bounds): Return failure if
2829 the range type's bounds are not both defined and constant
2830 values.
2831 (get_array_bounds): Update comment. Remove undefined bound check.
2832
599088e3
SM
28332020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2834
2835 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2836 the type::bounds method directly.
2837
c4dfcb36
SM
28382020-07-12 Simon Marchi <simon.marchi@efficios.com>
2839
2840 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2841 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2842 are used to set the range type's bounds to use set_bounds.
2843
0a278aa7
PW
28442020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2845
2846 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2847
cce20f10
PA
28482020-07-10 Pedro Alves <pedro@palves.net>
2849
2850 * gdbthread.h (inferior_ref): Define.
2851 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2852 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2853 * thread.c
2854 (scoped_restore_current_thread::restore):
2855 Adjust to gdb::ref_ptr.
2856 (scoped_restore_current_thread::~scoped_restore_current_thread):
2857 Remove manual decref handling.
2858 (scoped_restore_current_thread::scoped_restore_current_thread):
2859 Adjust to use
2860 inferior_ref::new_reference/thread_info_ref::new_reference.
2861 Incref the thread before calling get_frame_id instead of after.
2862 Let TARGET_CLOSE_ERROR propagate.
2863
6d7aa592
PA
28642020-07-10 Pedro Alves <pedro@palves.net>
2865
2866 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2867 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2868 NOT_AVAILABLE_ERROR.
2869 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2870 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2871
b3e3a4c1
SM
28722020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2873 Pedro Alves <pedro@palves.net>
2874
2875 PR gdb/26199
2876 * infrun.c (threads_are_resumed_pending_p): Delete.
2877 (do_target_wait): Remove threads_are_executing and
2878 threads_are_resumed_pending_p checks from the inferior_matches
2879 lambda. Update comments.
2880
d6cc5d98
PA
28812020-07-10 Pedro Alves <pedro@palves.net>
2882
2883 PR gdb/26199
2884 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2885 executing threads.
2886
7d3badc6
PA
28872020-07-10 Pedro Alves <pedro@palves.net>
2888
2889 PR gdb/26199
2890 * infrun.c (handle_no_resumed): Handle multiple targets.
2891
42bd97a6
PA
28922020-07-10 Pedro Alves <pedro@palves.net>
2893
2894 PR gdb/26199
2895 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2896 target_is_async_p.
2897
43667cc6
PA
28982020-07-10 Pedro Alves <pedro@palves.net>
2899
2900 PR gdb/26199
2901 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2902 threads, not all threads.
2903
96118d11
PA
29042020-07-10 Pedro Alves <pedro@palves.net>
2905
2906 PR gdb/26199
2907 * remote.c (remote_target::open_1): Pass remote target pointer as
2908 data to create_async_event_handler.
2909 (remote_async_inferior_event_handler): Mark async event handler
2910 before returning if the remote target still has either pending
2911 events or unacknowledged notifications.
2912
54904d81
JB
29132020-07-10 John Baldwin <jhb@FreeBSD.org>
2914
2915 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2916 declaration.
2917 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2918 function.
2919
f37e5866
JB
29202020-07-09 John Baldwin <jhb@FreeBSD.org>
2921
2922 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2923 inferior_ptid.
2924
fc238d4a
JB
29252020-07-09 John Baldwin <jhb@FreeBSD.org>
2926
2927 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2928 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2929 AT_FREEBSD_PS_STRINGS.
2930
6e2469ff
HD
29312020-07-08 Hannes Domani <ssbssa@yahoo.de>
2932
2933 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2934 of debugfile path on Windows.
2935
d1076c41
JB
29362020-07-08 John Baldwin <jhb@FreeBSD.org>
2937
2938 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2939 argument to 'data'.
2940
15f3b077
TT
29412020-07-08 Tom Tromey <tromey@adacore.com>
2942
2943 * ada-lang.c (ada_exception_message_1): Use read_memory.
2944
9fc501fd
AB
29452020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2946
2947 PR python/22748
2948 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2949 special handling for inline frames.
2950 * findvar.c (value_of_register_lazy): Skip inline frames when
2951 creating lazy register values.
2952 * frame.c (frame_id_computed_p): Delete definition.
2953 * frame.h (frame_id_computed_p): Delete declaration.
2954
64cb3757
AB
29552020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2956
2957 * NEWS: Mention additions to Python API.
2958 * python/py-arch.c (archpy_register_groups): New function.
2959 (arch_object_methods): Add 'register_groups' method.
2960 * python/py-registers.c (reggroup_iterator_object): New struct.
2961 (reggroup_object): New struct.
2962 (gdbpy_new_reggroup): New function.
2963 (gdbpy_reggroup_to_string): New function.
2964 (gdbpy_reggroup_name): New function.
2965 (gdbpy_reggroup_iter): New function.
2966 (gdbpy_reggroup_iter_next): New function.
2967 (gdbpy_new_reggroup_iterator): New function
2968 (gdbpy_initialize_registers): Register new types.
2969 (reggroup_iterator_object_type): Define new Python type.
2970 (gdbpy_reggroup_getset): New static global.
2971 (reggroup_object_type): Define new Python type.
2972 * python/python-internal.h
2973
0f767f94
AB
29742020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2975
2976 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2977 * python/py-arch.c (archpy_registers): New function.
2978 (arch_object_methods): Add 'registers' method.
2979 * python/py-registers.c: New file.
2980 * python/python-internal.h
2981 (gdbpy_new_register_descriptor_iterator): Declare.
2982 (gdbpy_initialize_registers): Declare.
2983 * python/python.c (do_start_initialization): Call
2984 gdbpy_initialize_registers.
2985 * NEWS: Mention additions to the Python API.
2986
87dbc774
AB
29872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2988
2989 * NEWS: Mention new Python API method.
2990 * python/py-unwind.c (pending_framepy_architecture): New function.
2991 (pending_frame_object_methods): Add architecture method.
2992
3bc98c0c
AB
29932020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2994
2995 * gdbarch.c: Regenerate.
2996 * gdbarch.h: Regenerate.
2997 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2998 (gdbarch_data): Use internal_error for the case where
2999 deprecated_set_gdbarch_data was originally needed.
3000 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3001 and use passed in obstack.
3002 (libunwind_frame_set_descr): Should no longer get back NULL from
3003 gdbarch_data.
3004 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3005 type.
3006 * user-regs.c (user_regs_init): Update parameters, and use passed
3007 in obstack.
3008 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3009 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3010
d8cc8af6
TV
30112020-07-06 Tom de Vries <tdevries@suse.de>
3012
3013 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3014 End-Of-Sequence in lte_is_less_than.
3015 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3016 "gdb: Don't reorder line table entries too much when sorting".
3017
947f7597
TV
30182020-07-06 Tom de Vries <tdevries@suse.de>
3019
3020 PR tui/26205
3021 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3022
1e7c1b22
TV
30232020-07-05 Tom de Vries <tdevries@suse.de>
3024
3025 PR build/26187
3026 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3027 std::uncaught_exceptions instead of deprecated
3028 std::uncaught_exception.
3029
a36158ec
SM
30302020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3031
3032 * macroexp.h (macro_stringify): Return
3033 gdb::unique_xmalloc_ptr<char>.
3034 * macroexp.c (macro_stringify): Likewise.
3035 * macrotab.c (fixup_definition): Update.
3036
14d960c8
SM
30372020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3038
3039 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3040 (lex_one_token): Update.
3041 * macroexp.c (struct macro_buffer) <release>: Return
3042 gdb::unique_xmalloc_ptr<char>.
3043 (macro_stringify): Update.
3044 (macro_expand): Update.
3045 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3046 * macroexp.h (macro_expand_next): Likewise.
3047
211d5b1c
SM
30482020-07-02 Simon Marchi <simon.marchi@efficios.com>
3049
3050 * macroexp.h (macro_lookup_ftype): Remove.
3051 (macro_expand, macro_expand_once, macro_expand_next): Remove
3052 lookup function parameters, add scope parameter.
3053 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3054 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3055 * macroscope.h (standard_macro_lookup): Change parameter type
3056 to macro_scope.
3057 * macroscope.c (standard_macro_lookup): Likewise.
3058 * c-exp.y (lex_one_token): Update.
3059 * macrocmd.c (macro_expand_command): Likewise.
3060 (macro_expand_once_command): Likewise.
3061
b1a35af2
SM
30622020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3063
3064 * inf-loop.c (inferior_event_handler): Remove client_data param.
3065 * inf-loop.h (inferior_event_handler): Likewise.
3066 * infcmd.c (step_1): Adjust.
3067 * infrun.c (proceed): Adjust.
3068 (fetch_inferior_event): Remove client_data param.
3069 (infrun_async_inferior_event_handler): Adjust.
3070 * infrun.h (fetch_inferior_event): Remove `void *` param.
3071 * linux-nat.c (handle_target_event): Adjust.
3072 * record-btrace.c (record_btrace_handle_async_inferior_event):
3073 Adjust.
3074 * record-full.c (record_full_async_inferior_event_handler):
3075 Adjust.
3076 * remote.c (remote_async_inferior_event_handler): Adjust.
3077
1cdf9e33
TT
30782020-07-01 Tom Tromey <tom@tromey.com>
3079
3080 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3081 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3082
32c1e210
TT
30832020-07-01 Tom Tromey <tom@tromey.com>
3084
3085 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3086 tui_gen_win_info.
3087 (tui_win_info::make_window): Merge with
3088 tui_gen_win_info::make_window.
3089 (tui_win_info::make_visible): Move from tui_gen_win_info.
3090 * tui/tui-win.c (tui_win_info::max_width): Move from
3091 tui_gen_win_info.
3092 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3093 type.
3094 <window_factory>: Likewise.
3095 * tui/tui-layout.c (tui_win_info::resize): Move from
3096 tui_gen_win_info.
3097 (make_standard_window): Change return type.
3098 (get_locator_window, tui_get_window_by_name): Likewise.
3099 (tui_layout_window::apply): Remove a cast.
3100 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3101 (struct tui_win_info): Merge with tui_gen_win_info.
3102 (struct tui_gen_win_info): Remove.
3103
a30cb6da
TT
31042020-07-01 Tom Tromey <tom@tromey.com>
3105
3106 * tui/tui-stack.h (struct tui_locator_window): Derive from
3107 tui_win_info.
3108 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3109 <can_box>: New method.
3110
1eb2161f
TT
31112020-07-01 Tom Tromey <tom@tromey.com>
3112
3113 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3114
7134f2eb
TT
31152020-07-01 Tom Tromey <tom@tromey.com>
3116
3117 * tui/tui-regs.c (tui_data_window::display_registers_from)
3118 (tui_data_window::display_registers_from)
3119 (tui_data_window::first_data_item_displayed)
3120 (tui_data_window::delete_data_content_windows): Update.
3121 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3122 Remove.
3123 (tui_data_window::check_register_values): Update.
3124 (tui_data_item_window::rerender): Add parameters. Update.
3125 (tui_data_item_window::refresh_window): Remove.
3126 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3127 virtual.
3128 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3129 tui_gen_win_info.
3130 <refresh_window, max_height, min_height>: Remove.
3131 <rerender>: Add parameters.
3132 <x, y, visible>: New members.
3133 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3134 <m_item_width>: New member.
3135
22b7b041
TT
31362020-07-01 Tom Tromey <tom@tromey.com>
3137
3138 * tui/tui-regs.c (tui_data_window::show_register_group)
3139 (tui_data_window::check_register_values): Update.
3140 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3141 from item_no.
3142
c9753adb
TT
31432020-07-01 Tom Tromey <tom@tromey.com>
3144
3145 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3146 useless "if".
3147
9ab26b4a
TT
31482020-07-01 Tom Tromey <tom@tromey.com>
3149
3150 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3151 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3152
e555083f
TT
31532020-07-01 Tom Tromey <tom@tromey.com>
3154
3155 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3156 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3157 (struct tui_line_or_address): Move from tui-data.h.
3158 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3159 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3160 (tui_cmd_window, tui_source_window_base, tui_source_window)
3161 (tui_disasm_window): Don't declare.
3162 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3163 to tui-winsource.h.
3164 (SINGLE_KEY): Move to tui-stack.c.
3165
7a02bab7
TT
31662020-07-01 Tom Tromey <tom@tromey.com>
3167
3168 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3169 std::string.
3170 * tui/tui-regs.c (class tab_expansion_file): New.
3171 (tab_expansion_file::write): New method.
3172 (tui_register_format): Change return type. Use
3173 tab_expansion_file.
3174 (tui_get_register, tui_data_window::display_registers_from)
3175 (tui_data_item_window::rerender): Update.
3176 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3177 * tui/tui-io.c (tui_expand_tabs): Remove.
3178
ea68593b
TT
31792020-07-01 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3182
a8caed5d
FS
31832020-07-01 Fangrui Song <maskray@google.com>
3184
3185 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3186
9cdf9820
AKS
31872020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3188
3189 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3190 forms for DW_AT_associated and DW_AT_allocated attributes,
3191 which is already checked in function attr_to_dynamic_prop.
3192
a1520ad8
TT
31932020-06-30 Tom Tromey <tromey@adacore.com>
3194
3195 * dwarf2/read.c (quirk_rust_enum): Correctly call
3196 alloc_rust_variant for default-less enum.
3197
5ac58899
TT
31982020-06-30 Tom Tromey <tromey@adacore.com>
3199
3200 PR build/26183:
3201 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3202 gdb::to_string.
3203
19b187a9
SM
32042020-06-29 Simon Marchi <simon.marchi@efficios.com>
3205
3206 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3207 * gdbarch.h: Re-generate.
3208
cd4c4c07
TT
32092020-06-28 Tom Tromey <tom@tromey.com>
3210
3211 * command.h (cmd_types): Remove.
3212 (cmd_type): Don't declare.
3213 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3214 typedef.
3215 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3216 * cli/cli-decode.c (cmd_type): Remove.
3217
05779d57
PA
32182020-06-27 Pedro Alves <palves@redhat.com>
3219
3220 * fork-child.c (prefork_hook): Adjust.
3221 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3222 Delete.
3223 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3224 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3225 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3226 Remove declarations.
3227 (struct inferior) <set_tty, tty>: New methods.
3228 (struct inferior) <terminal>: Rename to ...
3229 (struct inferior) <m_terminal>: ... this and make private.
3230 * main.c (captured_main_1): Adjust.
3231 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3232 (mi_cmd_inferior_tty_show): Adjust.
3233 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3234 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3235
1776e3e5
NA
32362020-06-26 Nick Alcock <nick.alcock@oracle.com>
3237
3238 * configure.ac: Add --enable-libctf: handle --disable-static
3239 properly.
3240 * acinclude.m4: sinclude ../config/enable.m4.
3241 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3242 (LIBCTF): Substitute in.
3243 (CTF_DEPS): New, likewise.
3244 (CLIBS): libctf needs symbols from libbfd: move earlier.
3245 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3246 flags.
3247 * ctfread.c: Surround in ENABLE_LIBCTF.
3248 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3249 * configure: Regenerate.
3250 * config.in: Likewise.
3251
58373b80
SM
32522020-06-25 Simon Marchi <simon.marchi@efficios.com>
3253
3254 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3255
277474ee
SM
32562020-06-25 Simon Marchi <simon.marchi@efficios.com>
3257
3258 * inferior.h (struct inferior) <terminal>: Change type to
3259 gdb::unique_xmalloc_ptr<char>.
3260 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3261 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3262 field, adjust to unique pointer.
3263 (get_inferior_io_terminal): Adjust to unique pointer.
3264
6d74da72
AB
32652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3266
3267 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3268 registers, not just the known core set of registers.
3269
2e52d038
AB
32702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3273 fflags, frm, and fcsr registers.
3274 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3275 restore groups.
3276 (riscv_tdesc_unknown_reg): New function.
3277 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3278 tdesc_use_registers.
3279 * riscv-tdep.h (struct gdbarch_tdep): Add
3280 unknown_csrs_first_regnum, unknown_csrs_count,
3281 duplicate_fflags_regnum, duplicate_frm_regnum, and
3282 duplicate_fcsr_regnum fields.
3283
be64fd07
AB
32842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3285
3286 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3287 callback, use the callback (when not null) to help number unknown
3288 registers.
3289 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3290 (tdesc_use_registers): Add extra parameter to declaration.
3291
3b9fce96
AB
32922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3293
3294 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3295 in the file.
3296 (class riscv_pending_register_alias): Likewise.
3297 (riscv_register_feature::register_info): Change 'required_p' field
3298 to 'required', and change its type. Add 'check' member function.
3299 (riscv_register_feature::register_info::check): Define new member
3300 function.
3301 (riscv_xreg_feature): Change initialisation of 'required' field.
3302 (riscv_freg_feature): Likewise.
3303 (riscv_virtual_feature): Likewise.
3304 (riscv_csr_feature): Likewise.
3305 (riscv_check_tdesc_feature): Take extra parameter, the csr
3306 tdesc_feature, rewrite the function to use the new
3307 riscv_register_feature::register_info::check function.
3308 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3309
865bad26
AB
33102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3311
3312 * features/Makefile: Remove all references to the deleted files
3313 below.
3314 * features/riscv/32bit-csr.c: Deleted.
3315 * features/riscv/32bit-csr.xml: Deleted.
3316 * features/riscv/64bit-csr.c: Deleted.
3317 * features/riscv/64bit-csr.xml: Deleted.
3318 * features/riscv/rebuild-csr-xml.sh: Deleted.
3319
ed69cbc8
AB
33202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3321
3322 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3323 whitespace error for declaration of names member variable.
3324 (struct riscv_register_feature): Add new prefer_first_name member
3325 variable, and fix whitespace error in declaration of registers.
3326 (riscv_xreg_feature): Initialize prefer_first_name field.
3327 (riscv_freg_feature): Likewise.
3328 (riscv_virtual_feature): Likewise.
3329 (riscv_csr_feature): Likewise.
3330 (riscv_register_name): Expand on comments. Remove register name
3331 modifications for CSR and virtual registers.
3332
4445e8f5
AB
33332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3334
3335 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3336 errors.
3337
767a879e
AB
33382020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3339
3340 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3341 riscv-opc.h.
3342 (class riscv_pending_register_alias): New class.
3343 (riscv_check_tdesc_feature): Take vector of pending aliases and
3344 populate it as appropriate.
3345 (riscv_setup_register_aliases): Delete.
3346 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3347 to riscv_check_tdesc_feature in all cases. Use the vector to
3348 create the register aliases.
3349
bb6e55f3
RO
33502020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3351
3352 * sol2-tdep.c (sol2_static_transform_name): Remove.
3353 (sol2_init_abi): Don't register it.
3354 * gdbarch.sh (static_transform_name): Remove.
3355 * gdbarch.c, gdbarch.h: Regenerate.
3356
3357 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3358 gdbarch_static_transform_name.
3359 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3360 * stabsread.c (define_symbol) <'X'>: Remove.
3361 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3362 handling.
3363 <'V'>: Likewise.
3364 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3365 <'S'>: Remove call to gdbarch_static_transform_name.
3366
c6d36836
RO
33672020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3368
3369 * procfs.c (procfs_pre_trace): New function.
3370 (procfs_target::create_inferior): Pass it to fork_inferior.
3371
a7e6196b
RO
33722020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3373
3374 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3375 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3376 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3377 sol2-tdep.o, sparc-sol2-tdep.o.
3378 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3379 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3380 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3381 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3382
d412e696
RO
33832020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3384
3385 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3386 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3387 Call sol2_init_abi.
3388 Remove calls to set_gdbarch_skip_solib_resolver,
3389 set_gdbarch_core_pid_to_str.
3390 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3391 (i386_sol2_static_transform_name): Remove.
3392 (i386_sol2_init_abi): Call sol2_init_abi.
3393 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3394 set_gdbarch_static_transform_name,
3395 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3396 Use sol2_sigtramp_p.
3397 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3398 (sol2_sigtramp_p): New function.
3399 (sol2_static_transform_name): New function.
3400 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3401 (sol2_init_abi): New function.
3402 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3403 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3404 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3405 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3406 (sparc_sol2_static_transform_name): Remove.
3407 (sparc32_sol2_init_abi): Call sol2_init_abi.
3408 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3409 set_gdbarch_static_transform_name,
3410 set_gdbarch_skip_solib_resolver,
3411 set_gdbarch_core_pid_to_str.
3412 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3413 (sparc_sol2_static_transform_name): Remove
3414 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3415 call sol2_sigtramp_p.
3416 (sparc64_sol2_init_abi): Call sol2_init_abi.
3417 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3418 set_gdbarch_static_transform_name,
3419 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3420
a8654e7d
PW
34212020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3422
3423 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3424 * exec.c (validate_exec_file): If from_tty, set both
3425 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3426 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3427 and from_tty, unconditionally ask a confirmation.
3428
caa7fd04
AB
34292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * target-descriptions.c (tdesc_architecture_name): Protect against
3432 NULL pointer dereference.
3433 (maint_print_xml_tdesc_cmd): New function.
3434 (_initialize_target_descriptions): Register new 'maint print
3435 xml-tdesc' command and give it the filename completer.
3436 * NEWS: Mention new 'maint print xml-tdesc' command.
3437
fbf42f4e
AB
34382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3439
3440 * target-descriptions.c (class tdesc_compatible_info): New class.
3441 (struct target_desc): Change type of compatible vector.
3442 (tdesc_compatible_p): Update for change in type of
3443 target_desc::compatible.
3444 (tdesc_compatible_info_list): New function.
3445 (tdesc_compatible_info_arch_name): New function.
3446 (tdesc_add_compatible): Update for change in type of
3447 target_desc::compatible.
3448 (print_c_tdesc::visit_pre): Likewise.
3449
20821f4e
AB
34502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3451
3452 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3453 whitespace to underscore.
3454 (maint_print_c_tdesc_cmd): Use fake filename for target
3455 descriptions that came from the target.
3456 (_initialize_target_descriptions): Add filename command completion
3457 for 'maint print c-tdesc'.
3458
1fb5ee62
SM
34592020-06-23 Simon Marchi <simon.marchi@efficios.com>
3460
3461 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3462 lines.
3463
fc3ecb3e
SM
34642020-06-23 Simon Marchi <simon.marchi@efficios.com>
3465
3466 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3467 lines.
3468 (dwarf2_find_location_expression): Likewise.
3469 (call_site_parameter_matches): Likewise.
3470 (dwarf2_compile_expr_to_ax): Likewise.
3471 (disassemble_dwarf_expression): Likewise.
3472 (loclist_describe_location): Likewise.
3473
236ef034
PA
34742020-06-23 Pedro Alves <palves@redhat.com>
3475
3476 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3477 progspace-and-thread.h. Include scoped-mock-context.h instead.
3478 (register_to_value_test): Use scoped_mock_context.
3479 * regcache.c: Include "scoped-mock-context.h".
3480 (cooked_read_test): Don't error out if a target is already pushed.
3481 Use scoped_mock_context. Adjust.
3482 * scoped-mock-context.h: New file.
3483
39e7ecca
AB
34842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3485
3486 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3487 initializer.
3488 (ada_language::is_string_type_p): New member function.
3489 * c-lang.c (c_language_data): Delete la_is_string_type_p
3490 initializer.
3491 (cplus_language_data): Likewise.
3492 (asm_language_data): Likewise.
3493 (minimal_language_data): Likewise.
3494 * d-lang.c (d_language_data): Likewise.
3495 * f-lang.c (f_is_string_type_p): Delete function, implementation
3496 moved to f_language::is_string_type_p.
3497 (f_language_data): Delete la_is_string_type_p initializer.
3498 (f_language::is_string_type_p): New member function,
3499 implementation from f_is_string_type_p.
3500 * go-lang.c (go_is_string_type_p): Delete function, implementation
3501 moved to go_language::is_string_type_p.
3502 (go_language_data): Delete la_is_string_type_p initializer.
3503 (go_language::is_string_type_p): New member function,
3504 implementation from go_is_string_type_p.
3505 * language.c (language_defn::is_string_type_p): Define new member
3506 function.
3507 (default_is_string_type_p): Make static, add comment copied from
3508 header file.
3509 (unknown_language_data): Delete la_is_string_type_p initializer.
3510 (unknown_language::is_string_type_p): New member function.
3511 (auto_language_data): Delete la_is_string_type_p initializer.
3512 (auto_language::is_string_type_p): New member function.
3513 * language.h (language_data): Delete la_is_string_type_p field.
3514 (language_defn::is_string_type_p): Declare new function.
3515 (default_is_string_type_p): Delete desclaration, move comment to
3516 definition.
3517 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3518 moved to m2_language::is_string_type_p.
3519 (m2_language_data): Delete la_is_string_type_p initializer.
3520 (m2_language::is_string_type_p): New member function,
3521 implementation from m2_is_string_type_p.
3522 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3523 initializer.
3524 * opencl-lang.c (opencl_language_data): Likewise.
3525 * p-lang.c (pascal_is_string_type_p): Delete function,
3526 implementation moved to pascal_language::is_string_type_p.
3527 (pascal_language_data): Delete la_is_string_type_p initializer.
3528 (pascal_language::is_string_type_p): New member function,
3529 implementation from pascal_is_string_type_p.
3530 * rust-lang.c (rust_is_string_type_p): Delete function,
3531 implementation moved to rust_language::is_string_type_p.
3532 (rust_language_data): Delete la_is_string_type_p initializer.
3533 (rust_language::is_string_type_p): New member function,
3534 implementation from rust_is_string_type_p.
3535 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3536 is_string_type_p.
3537
4ffc13fb
AB
35382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3539
3540 * ada-lang.c (ada_language_data): Delete la_print_typedef
3541 initializer.
3542 (ada_language::print_typedef): New member function.
3543 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3544 (cplus_language_data): Likewise.
3545 (asm_language_data): Likewise.
3546 (minimal_language_data): Likewise.
3547 * d-lang.c (d_language_data): Likewise.
3548 * f-lang.c (f_language_data): Likewise.
3549 (f_language::print_typedef): New member function.
3550 * go-lang.c (go_language_data): Delete la_print_typedef
3551 initializer.
3552 * language.c (language_defn::print_typedef): Define member
3553 function.
3554 (unknown_language_data): Delete la_print_typedef initializer.
3555 (unknown_language::print_typedef): New member function.
3556 (auto_language_data): Delete la_print_typedef initializer.
3557 (auto_language::print_typedef): New member function.
3558 * language.h (language_data): Delete la_print_typedef field.
3559 (language_defn::print_typedef): Declare new member function.
3560 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3561 (default_print_typedef): Delete declaration.
3562 * m2-lang.c (m2_language_data): Delete la_print_typedef
3563 initializer.
3564 (m2_language::print_typedef): New member function.
3565 * objc-lang.c (objc_language_data): Delete la_print_typedef
3566 initializer.
3567 * opencl-lang.c (opencl_language_data): Likewise.
3568 * p-lang.c (pascal_language_data): Likewise.
3569 (pascal_language::print_typedef): New member function.
3570 * rust-lang.c (rust_print_typedef): Delete function,
3571 implementation moved to rust_language::print_typedef.
3572 (rust_language): Delete la_print_typedef initializer.
3573 (rust_language::print_typedef): New member function,
3574 implementation from rust_print_typedef.
3575 * typeprint.c (default_print_typedef): Delete.
3576
d711ee67
AB
35772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3578
3579 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3580 (ada_language::printstr): New member function.
3581 * c-lang.c (c_language_data): Delete la_printstr initializer.
3582 (cplus_language_data): Likewise.
3583 (asm_language_data): Likewise.
3584 (minimal_language_data): Likewise.
3585 * d-lang.c (d_language_data): Likewise.
3586 * f-lang.c (f_printstr): Rename to f_language::printstr.
3587 (f_language_data): Delete la_printstr initializer.
3588 (f_language::printstr): New member function, implementation from
3589 f_printstr.
3590 * go-lang.c (go_language_data): Delete la_printstr initializer.
3591 * language.c (language_defn::printstr): Define new member
3592 function.
3593 (unk_lang_printstr): Delete.
3594 (unknown_language_data): Delete la_printstr initializer.
3595 (unknown_language::printstr): New member function.
3596 (auto_language_data): Delete la_printstr initializer.
3597 (auto_language::printstr): New member function.
3598 * language.h (language_data): Delete la_printstr field.
3599 (language_defn::printstr): Declare new member function.
3600 (LA_PRINT_STRING): Update call to printstr.
3601 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3602 (m2_language_data): Delete la_printstr initializer.
3603 (m2_language::printstr): New member function, implementation from
3604 m2_printstr.
3605 * objc-lang.c (objc_language_data): Delete la_printstr
3606 initializer.
3607 * opencl-lang.c (opencl_language_data): Likewise.
3608 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3609 (pascal_language_data): Delete la_printstr initializer.
3610 (pascal_language::printstr): New member function, implementation
3611 from pascal_printstr.
3612 * p-lang.h (pascal_printstr): Delete declaration.
3613 * rust-lang.c (rust_printstr): Update header comment.
3614 (rust_language_data): Delete la_printstr initializer.
3615 (rust_language::printstr): New member function.
3616
52b50f2c
AB
36172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3618
3619 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3620 (ada_language::printchar): New member function.
3621 * c-lang.c (c_language_data): Delete la_printchar initializer.
3622 (cplus_language_data): Likewise.
3623 (asm_language_data): Likewise.
3624 (minimal_language_data): Likewise.
3625 * d-lang.c (d_language_data): Likewise.
3626 * f-lang.c (f_printchar): Rename to f_language::printchar.
3627 (f_language_data): Delete la_printchar initializer.
3628 (f_language::printchar): New member function, implementation from
3629 f_printchar.
3630 * go-lang.c (go_language_data): Delete la_printchar initializer.
3631 * language.c (unk_lang_printchar): Delete.
3632 (language_defn::printchar): Define new member function.
3633 (unknown_language_data): Delete la_printchar initializer.
3634 (unknown_language::printchar): New member function.
3635 (auto_language_data): Delete la_printchar initializer.
3636 (auto_language::printchar): New member function.
3637 * language.h (language_data): Delete la_printchar field.
3638 (language_defn::printchar): Declare new member function.
3639 (LA_PRINT_CHAR): Update call to printchar.
3640 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3641 (m2_language::printchar): New member function.
3642 * objc-lang.c (objc_language_data): Delete la_printchar
3643 initializer.
3644 * opencl-lang.c (opencl_language_data): Likewise.
3645 * p-lang.c (pascal_language_data): Delete la_printchar
3646 initializer.
3647 (pascal_language::printchar): New member function.
3648 * rust-lang.c (rust_printchar): Rename to
3649 rust_language::printchar.
3650 (rust_language_data): Delete la_printchar initializer.
3651 (rust_language::printchar): New member function, implementation
3652 from rust_printchar.
3653
ec8cec5b
AB
36542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3655
3656 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3657 (ada_language_data): Delete la_emitchar initializer.
3658 (ada_language::emitchar): New member function, implementation from
3659 emit_char.
3660 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3661 (cplus_language_data): Likewise.
3662 (asm_language_data): Likewise.
3663 (minimal_language_data): Likewise.
3664 * d-lang.c (d_language_data): Likewise.
3665 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3666 (f_language_data): Delete la_emitchar initializer.
3667 (f_language::emitchar): New member function, implementation from
3668 f_emit_char.
3669 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3670 * language.c (unk_lang_emit_char): Delete.
3671 (language_defn::emitchar): New member function definition.
3672 (unknown_language_data): Delete la_emitchar initializer.
3673 (unknown_language::emitchar): New member function.
3674 (auto_language_data): Delete la_emitchar initializer.
3675 (auto_language::emitchar): New member function.
3676 * language.h (language_data): Delete la_emitchar field.
3677 (language_defn::emitchar): New member field declaration.
3678 (LA_EMIT_CHAR): Update call to emitchar.
3679 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3680 (m2_language_data): Delete la_emitchar initializer.
3681 (m2_language::emitchar): New member function, implementation from
3682 m2_emit_char.
3683 * objc-lang.c (objc_language_data): Delete la_emitchar
3684 initializer.
3685 * opencl-lang.c (opencl_language_data): Likewise.
3686 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3687 (pascal_language_data): Delete la_emitchar initializer.
3688 (pascal_language::emitchar): New member function, implementation
3689 from pascal_emit_char.
3690 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3691 (rust_language_data): Delete la_emitchar initializer.
3692 (rust_language::emitchar): New member function, implementation
3693 from rust_emitchar.
3694
1bf9c363
AB
36952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3696
3697 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3698 (ada_language_data): Delete la_post_parser initializer.
3699 (ada_language::post_parser): New member function.
3700 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3701 (cplus_language_data): Likewise.
3702 (asm_language_data): Likewise.
3703 (minimal_language_data): Likewise.
3704 * d-lang.c (d_language_data): Likewise.
3705 * f-lang.c (f_language_data): Likewise.
3706 * go-lang.c (go_language_data): Likewise.
3707 * language.c (unknown_language_data): Likewise.
3708 (auto_language_data): Likewise.
3709 * language.h (language_data): Delete la_post_parser field.
3710 (language_defn::post_parser): New member function.
3711 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3712 * objc-lang.c (objc_language_data): Likewise.
3713 * opencl-lang.c (opencl_language_data): Likewise.
3714 * p-lang.c (pascal_language_data): Likewise.
3715 * parse.c (parse_exp_in_context): Update call to post_parser.
3716 (null_post_parser): Delete definition.
3717 * parser-defs.h (null_post_parser): Delete declaration.
3718 * rust-lang.c (rust_language_data): Delete la_post_parser
3719 initializer.
3720
87afa652
AB
37212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3722
3723 * ada-lang.c (parse): Rename to ada_language::parser.
3724 (ada_language_data): Delete la_parser initializer.
3725 (ada_language::parser): New member function, implementation from
3726 parse.
3727 * c-lang.c (c_language_data): Delete la_parser initializer.
3728 (cplus_language_data): Likewise.
3729 (asm_language_data): Likewise.
3730 (minimal_language_data): Likewise.
3731 * d-lang.c (d_language_data): Likewise.
3732 (d_language::parser): New member function.
3733 * f-lang.c (f_language_data): Delete la_parser initializer.
3734 (f_language::parser): New member function.
3735 * go-lang.c (go_language_data): Delete la_parser initializer.
3736 (go_language::parser): New member function.
3737 * language.c (unk_lang_parser): Delete.
3738 (language_defn::parser): Define new member function.
3739 (unknown_language_data): Delete la_parser initializer.
3740 (unknown_language::parser): New member function.
3741 (auto_language_data): Delete la_parser initializer.
3742 (auto_language::parser): New member function.
3743 * language.h (language_data): Delete la_parser field.
3744 (language_defn::parser): Declare new member function.
3745 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3746 (m2_language::parser): New member function.
3747 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3748 * opencl-lang.c (opencl_language_data): Likewise.
3749 * p-lang.c (pascal_language_data): Likewise.
3750 (pascal_language::parser): New member function.
3751 * parse.c (parse_exp_in_context): Update call to parser.
3752 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3753 (rust_language::parser): New member function.
3754
37825800
AB
37552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3756
3757 * top.c (print_gdb_configuration): Print --with-python-libdir
3758 configuration value.
3759
5b860c93
PW
37602020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3761
3762 * NEWS: Mention change to the alias command.
3763
cf00cd6f
PW
37642020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3765
3766 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3767 (alias_command_completer)
3768 (make_alias_options_def_group): New functions.
3769 (alias_opts, alias_option_defs): New struct and array.
3770 (alias_usage_error): Update usage.
3771 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3772 Use option framework.
3773 (_initialize_cli_cmds): Update alias command help.
3774 Update aliases command help.
3775 (show_user):
3776 Add NULL for new default_args lookup_cmd argument.
3777 (valid_command_p): Rename to validate_aliased_command.
3778 Add NULL for new default_args lookup_cmd argument. Verify that the
3779 aliased_command has no default args.
3780 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3781 (lookup_cmd_1, lookup_cmd): New argument default_args.
3782 (add_alias_cmd):
3783 Add NULL for new default_args lookup_cmd argument.
3784 (print_help_for_command): Show default args under the layout
3785 alias some_alias = some_aliased_cmd some_alias_default_arg.
3786 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3787 xfree default_args in destructor.
3788 * cli/cli-script.c (process_next_line, do_define_command):
3789 Add NULL for new default_args lookup_cmd argument.
3790 * command.h: Declare new default_args argument in lookup_cmd
3791 and lookup_cmd_1.
3792 * completer.c (complete_line_internal_1):
3793 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3794 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3795 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3796 Likewise.
3797 * infcmd.c (_initialize_infcmd): Likewise.
3798 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3799 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3800 * python/py-param.c (add_setshow_generic): Likewise.
3801 * remote.c (_initialize_remote): Likewise.
3802 * top.c (execute_command): Prepend default_args if command has some.
3803 (set_verbose):
3804 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3805 * tracepoint.c (validate_actionline, encode_actions_1):
3806 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3807
bd920864
TBA
38082020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3809
3810 * jit.c (jit_read_descriptor): Use bool as the return type.
3811 (jit_breakpoint_re_set_internal): Use bool as the return type.
3812 Invert the return value logic; return true if the jit breakpoint
3813 has been successfully initialized.
3814 (jit_inferior_init): Update the call to
3815 jit_breakpoint_re_set_internal.
3816
f8098322
PA
38172020-06-22 Pedro Alves <palves@redhat.com>
3818
3819 PR gdb/25939
3820 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3821 Use the current inferior instead. Don't return
3822 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3823 wait again.
3824 * sol-thread.c (sol_thread_target::wait): Don't reference
3825 inferior_ptid.
3826 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3827 (sol_update_thread_list_callback): Use the current inferior's pid
3828 instead of inferior_ptid.
3829
196535a6
RO
38302020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3831
3832 * procfs.c: Cleanup many comments.
3833
3834 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3835 (AFTER_WATCHFLAG): Replace by value.
3836
3837 (MAIN_PROC_NAME_FORMAT): Inline ...
3838 (create_procinfo): ... here.
3839
3840 (procfs_debug_inferior): Remove SYS_exec handling.
3841 (syscall_is_exec): Likewise.
3842 (procfs_set_exec_trap): Likewise.
3843
3844 (syscall_is_lwp_exit): Inline in callers.
3845 (syscall_is_exit): Likewise.
3846 (syscall_is_exec): Likewise.
3847 (syscall_is_lwp_create): Likewise.
3848
3849 (invalidate_cache): Remove #if 0 code.
3850
3851 (make_signal_thread_runnable): Remove.
3852 (procfs_target::resume): Remove #if 0 code.
3853
cf6f3e86
RO
38542020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3855
3856 PR gdb/25939
3857 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3858 call ...
3859 (procfs_target::create_inferior): ... here.
3860
48e9cc84
PW
38612020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3862
3863 * exec.c (validate_exec_file): Ensure the build-id is up to
3864 date by calling reopen_exec_file (that checks file timestamp
3865 to decide to re-read the file).
3866
3922b302
PA
38672020-06-18 Pedro Alves <palves@redhat.com>
3868
3869 PR gdb/25412
3870 * gdbthread.h (delete_thread, delete_thread_silent)
3871 (find_thread_ptid): Update comments.
3872 * thread.c (current_thread_): New global.
3873 (is_current_thread): Move higher, and reimplement.
3874 (inferior_thread): Reimplement.
3875 (set_thread_exited): Use bool. Add assertions.
3876 (add_thread_silent): Simplify thread-reuse handling by always
3877 calling delete_thread.
3878 (delete_thread): Remove intro comment.
3879 (find_thread_ptid): Skip exited threads.
3880 (switch_to_thread_no_regs): Write to current_thread_.
3881 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3882 INFERIOR_PTID. Clear current_thread_.
3883
6dbdab44
PA
38842020-06-18 Pedro Alves <palves@redhat.com>
3885
3886 * aix-thread.c (pd_update): Use switch_to_thread.
3887
2da4b788
PA
38882020-06-18 Pedro Alves <palves@redhat.com>
3889
3890 * ravenscar-thread.c (ravenscar_thread_target): Update.
3891 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3892 (ravenscar_thread_target::add_active_thread): ... this. Don't
3893 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3894 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3895
50838d1b
PA
38962020-06-18 Pedro Alves <palves@redhat.com>
3897
3898 * nat/windows-nat.c (current_windows_thread): Remove.
3899 * nat/windows-nat.h (current_windows_thread): Remove.
3900 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3901 Adjust.
3902 (display_selectors): Adjust to fetch the current
3903 windows_thread_info based on inferior_ptid.
3904 (fake_create_process): No longer write to current_windows_thread.
3905 (windows_nat_target::get_windows_debug_event):
3906 Don't set inferior_ptid or current_windows_thread.
3907 (windows_nat_target::wait): Adjust to not rely on
3908 current_windows_thread.
3909 (do_initial_windows_stuff): Now a method of windows_nat_target.
3910 Switch to the last_ptid thread.
3911 (windows_nat_target::attach): Adjust.
3912 (windows_nat_target::detach): Use switch_to_no_thread instead of
3913 writing to inferior_ptid directly.
3914 (windows_nat_target::create_inferior): Adjust.
3915
31ce04e9
PA
39162020-06-18 Pedro Alves <palves@redhat.com>
3917
3918 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3919
1ee1a363
PA
39202020-06-18 Pedro Alves <palves@redhat.com>
3921
3922 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3923 after creating it, instead of writing to inferior_ptid. Don't
3924 write to inferior_ptid.
3925
6d350754
PA
39262020-06-18 Pedro Alves <palves@redhat.com>
3927
3928 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3929
5d971d48
PA
39302020-06-18 Pedro Alves <palves@redhat.com>
3931
3932 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3933 it, instead of writing to inferior_ptid.
3934
86e57d1b
PA
39352020-06-18 Pedro Alves <palves@redhat.com>
3936
3937 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3938 to inferior_ptid.
3939
f2e1c129
PA
39402020-06-18 Pedro Alves <palves@redhat.com>
3941
3942 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3943 instead of writing to inferior_ptid directly.
3944
60db1b85
PA
39452020-06-18 Pedro Alves <palves@redhat.com>
3946
3947 * corelow.c (core_target::close): Use switch_to_no_thread instead
3948 of writing to inferior_ptid directly.
3949 (add_to_thread_list, core_target_open): Use switch_to_thread
3950 instead of writing to inferior_ptid directly.
3951
fe7d6a8d
PA
39522020-06-18 Pedro Alves <palves@redhat.com>
3953
3954 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3955 inferior_ptid.
3956 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3957 inferior_ptid.
3958 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3959 inferior_ptid directly.
3960 (darwin_nat_target::init_thread_list): Switch to thread, instead
3961 of writing to inferior_ptid.
3962 (darwin_nat_target::attach): Don't write to inferior_ptid.
3963 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3964
975f8708
PA
39652020-06-18 Pedro Alves <palves@redhat.com>
3966
3967 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3968 thread.
3969 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3970 Instead use switch_to_thread.
3971 (gnu_nat_target::detach): Use switch_to_no_thread
3972 instead of writing to inferior_ptid directly. Used passed-in
3973 inferior instead of looking up the inferior by pid.
3974
1a204730
PA
39752020-06-18 Pedro Alves <palves@redhat.com>
3976
3977 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3978 inferior_ptid.
3979
ebe84f23
PA
39802020-06-18 Pedro Alves <palves@redhat.com>
3981
3982 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3983 inferior_ptid.
3984 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3985 thread.
3986 (nto_procfs_target::detach): Avoid referencing
3987 inferior_ptid. Use switch_to_no_thread instead of writing to
3988 inferior_ptid directly.
3989 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3990 instead of writing to inferior_ptid directly.
3991 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3992 to thread.
3993
191f02e5
PA
39942020-06-18 Pedro Alves <palves@redhat.com>
3995
3996 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3997 after creating it, instead of writing to inferior_ptid.
3998 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3999 to inferior_ptid directly.
4000 (gdbsim_target::wait): Don't write to inferior_ptid.
4001
0ac55310
PA
40022020-06-18 Pedro Alves <palves@redhat.com>
4003
4004 * remote.c (remote_target::remote_notice_new_inferior): Use
4005 switch_to_thread instead of writing to inferior_ptid directly.
4006 (remote_target::add_current_inferior_and_thread): Use
4007 switch_to_no_thread instead of writing to inferior_ptid directly.
4008 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4009 and switch_to_thread instead of using set_current_inferior or
4010 writing to inferior_ptid directly.
4011
5233f39b
PA
40122020-06-18 Pedro Alves <palves@redhat.com>
4013
4014 * tracectf.c (ctf_target_open): Switch to added thread instead of
4015 writing to inferior_ptid directly.
4016 (ctf_target::close): Use switch_to_no_thread instead of writing to
4017 inferior_ptid directly.
4018
087e161b
PA
40192020-06-18 Pedro Alves <palves@redhat.com>
4020
4021 * tracefile-tfile.c (tfile_target_open): Don't write to
4022 inferior_ptid directly, instead switch to added thread.
4023 (tfile_target::close): Use switch_to_no_thread instead of writing
4024 to inferior_ptid directly.
4025
7fb43e53
PA
40262020-06-18 Pedro Alves <palves@redhat.com>
4027
4028 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4029 (procfs_target::detach): Use switch_to_no_thread
4030 instead of writing to inferior_ptid directly.
4031 (do_attach): Change return type to void. Switch to the added
4032 thread.
4033 (procfs_target::create_inferior): Switch to the added thread.
4034 (procfs_do_thread_registers): Don't write to inferior_ptid.
4035
18493a00
PA
40362020-06-18 Pedro Alves <palves@redhat.com>
4037
4038 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4039 of writing to inferior_ptid.
4040 (scoped_restore_exited_inferior): Delete.
4041 (handle_vfork_child_exec_or_exit): Simplify using
4042 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4043 instead of writing to inferior_ptid.
4044 (THREAD_STOPPED_BY): Delete.
4045 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4046 (thread_stopped_by_hw_breakpoint): Delete.
4047 (save_waitstatus): Use
4048 scoped_restore_current_thread+switch_to_thread, and call
4049 target_stopped_by_watchpoint instead of
4050 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4051 instead of thread_stopped_by_sw_breakpoint, and
4052 target_stopped_by_hw_breakpoint instead of
4053 thread_stopped_by_hw_breakpoint.
4054 (handle_inferior_event)
4055 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4056 inferior_ptid directly, nor
4057 set_current_inferior/set_current_program_space. Use
4058 switch_to_thread / switch_to_inferior_no_thread instead.
4059
a0776b13
PA
40602020-06-18 Pedro Alves <palves@redhat.com>
4061
4062 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4063 instead of writing to inferior_ptid.
4064
6155c136
PA
40652020-06-18 Pedro Alves <palves@redhat.com>
4066
4067 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4068 added thread.
4069 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4070 to the added thread.
4071 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4072 instead of writing to inferior_ptid.
4073
c5316fc6
PA
40742020-06-18 Pedro Alves <palves@redhat.com>
4075
4076 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4077 (register_to_value_test): Mock a program_space too. Heap-allocate
4078 the address space. Don't write to inferior_ptid. Use
4079 switch_to_thread instead.
4080
8df01799
PA
40812020-06-18 Pedro Alves <palves@redhat.com>
4082
4083 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4084 Delete.
4085 (find_signalled_thread()): New, factored out from
4086 linux_make_corefile_notes and adjusted to handle exited threads.
4087 (linux_make_corefile_notes): Adjust to use the new
4088 find_signalled_thread.
4089
41792d68
PA
40902020-06-18 Pedro Alves <palves@redhat.com>
4091
4092 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4093 of saving/restoring inferior_ptid.
4094
612f258a
TT
40952020-06-17 Tom Tromey <tom@tromey.com>
4096
4097 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4098 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4099 declare.
4100 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4101
efb763a5
SM
41022020-06-15 Simon Marchi <simon.marchi@efficios.com>
4103
4104 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4105 of partial symtabs.
4106
2951f6c0
SM
41072020-06-17 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * regformats/reg-arm.dat: Remove.
4110 * regformats/reg-bfin.dat: Remove.
4111 * regformats/reg-cris.dat: Remove.
4112 * regformats/reg-crisv32.dat: Remove.
4113 * regformats/reg-m32r.dat: Remove.
4114 * regformats/reg-tilegx.dat: Remove.
4115 * regformats/reg-tilegx32.dat: Remove.
4116
7d458ea5
SM
41172020-06-17 Simon Marchi <simon.marchi@efficios.com>
4118
4119 * features/Makefile (WHICH): Remove arm files.
4120 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4121 * regformats/arm/arm-with-neon.dat: Remove.
4122 * regformats/arm/arm-with-vfpv2.dat: Remove.
4123 * regformats/arm/arm-with-vfpv3.dat: Remove.
4124
3af96c0d
SM
41252020-06-17 Simon Marchi <simon.marchi@efficios.com>
4126
4127 * features/Makefile (XMLTOC): Remove rx.xml.
4128
b25e22fd
PA
41292020-06-17 Pedro Alves <palves@redhat.com>
4130
4131 * gdbthread.h (thread_control_state) <trap_expected> Update
4132 comments.
4133
a78a19b1
AB
41342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4135
4136 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4137 ada_language::lookup_symbol_nonlocal.
4138 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4139 (ada_language::lookup_symbol_nonlocal): New member function,
4140 implementation from ada_lookup_symbol_nonlocal.
4141 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4142 initializer.
4143 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4144 initializer.
4145 (cplus_language::lookup_symbol_nonlocal): New member function.
4146 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4147 (minimal_language_data) Likewise.
4148 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4149 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4150 initializer.
4151 (d_language::lookup_symbol_nonlocal): New member function.
4152 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4153 initializer.
4154 (f_language::lookup_symbol_nonlocal): New member function.
4155 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4156 initializer.
4157 * language.c (unknown_language_data): Likewise.
4158 (auto_language_data): Likewise.
4159 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4160 field.
4161 (language_defn::lookup_symbol_nonlocal): New member function.
4162 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4163 initializer.
4164 * objc-lang.c (objc_language_data): Likewise.
4165 * opencl-lang.c (opencl_language_data): Likewise.
4166 * p-lang.c (pascal_language_data): Likewise.
4167 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4168 rust_language::lookup_symbol_nonlocal.
4169 (rust_language_data): Delete la_lookup_symbol_nonlocal
4170 initializer.
4171 (rust_language::lookup_symbol_nonlocal): New member function,
4172 implementation from rust_lookup_symbol_nonlocal.
4173 * symtab.c (lookup_symbol_aux): Update call to
4174 lookup_symbol_nonlocal.
4175 (basic_lookup_symbol_nonlocal): Rename to...
4176 (language_defn::lookup_symbol_nonlocal): ...this, and update
4177 header comment. Remove language_defn parameter, and replace with
4178 uses of `this'.
4179 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4180
ebe2334e
AB
41812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4182
4183 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4184 initializer.
4185 (ada_language::value_print_inner): New member function.
4186 * c-lang.c (c_language_data): Delete la_value_print_inner
4187 initializer.
4188 (cplus_language_data): Likewise.
4189 (asm_language_data): Likewise.
4190 (minimal_language_data): Likewise.
4191 * d-lang.c (d_language_data): Likewise.
4192 (d_language::value_print_inner): New member function.
4193 * f-lang.c (f_language_data): Delete la_value_print_inner
4194 initializer.
4195 (f_language::value_print_inner): New member function.
4196 * f-lang.h (f_value_print_innner): Rename to...
4197 (f_value_print_inner): ...this (note spelling of 'inner').
4198 * f-valprint.c (f_value_print_innner): Rename to...
4199 (f_value_print_inner): ...this (note spelling of 'inner').
4200 * go-lang.c (go_language_data): Delete la_value_print_inner
4201 initializer.
4202 (go_language::value_print_inner): New member function.
4203 * language.c (language_defn::value_print_inner): Define new member
4204 function.
4205 (unk_lang_value_print_inner): Delete.
4206 (unknown_language_data): Delete la_value_print_inner initializer.
4207 (unknown_language::value_print_inner): New member function.
4208 (auto_language_data): Delete la_value_print_inner initializer.
4209 (auto_language::value_print_inner): New member function.
4210 * language.h (language_data): Delete la_value_print_inner field.
4211 (language_defn::value_print_inner): Delcare new member function.
4212 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4213 initializer.
4214 (m2_language::value_print_inner): New member function.
4215 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4216 initializer.
4217 * opencl-lang.c (opencl_language_data): Likewise.
4218 * p-lang.c (pascal_language_data): Likewise.
4219 (pascal_language::value_print_inner): New member function.
4220 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4221 initializer.
4222 (rust_language::value_print_inner): New member function.
4223 * valprint.c (do_val_print): Update call to value_print_inner.
4224
a1d1fa3e
AB
42252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4226
4227 * ada-lang.c (ada_language_data): Delete la_value_print
4228 initializer.
4229 (ada_language::value_print): New member function.
4230 * c-lang.c (c_language_data): Delete la_value_print initializer.
4231 (cplus_language_data): Likewise.
4232 (asm_language_data): Likewise.
4233 (minimal_language_data): Likewise.
4234 * d-lang.c (d_language_data): Likewise.
4235 * f-lang.c (f_language_data): Likewise.
4236 * go-lang.c (go_language_data): Likewise.
4237 * language.c (unk_lang_value_print): Delete.
4238 (language_defn::value_print): Define new member function.
4239 (unknown_language_data): Delete la_value_print initializer.
4240 (unknown_language::value_print): New member function.
4241 (auto_language_data): Delete la_value_print initializer.
4242 (auto_language::value_print): New member function.
4243 * language.h (language_data): Delete la_value_print field.
4244 (language_defn::value_print): Declare new member function.
4245 (LA_VALUE_PRINT): Update call to value_print.
4246 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4247 * objc-lang.c (objc_language_data): Likewise.
4248 * opencl-lang.c (opencl_language_data): Likewise.
4249 * p-lang.c (pascal_language_data): Likewise.
4250 (pascal_language::value_print): New member function.
4251 * rust-lang.c (rust_language_data): Delete la_value_print
4252 initializer.
4253
f16a9f57
AB
42542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4255
4256 * ada-lang.c (ada_watch_location_expression): Rename to
4257 ada_language::watch_location_expression.
4258 (ada_language_data): Delete la_watch_location_expression
4259 initializer.
4260 (ada_language::watch_location_expression): New member function,
4261 implementation from ada_watch_location_expression.
4262 * breakpoint.c (watch_command_1): Update call to
4263 watch_location_expression.
4264 * c-lang.c (c_watch_location_expression): Rename to
4265 language_defn::watch_location_expression.
4266 (c_language_data): Delete la_watch_location_expression
4267 initializer.
4268 (cplus_language_data): Likewise.
4269 (asm_language_data): Likewise.
4270 (minimal_language_data): Likewise.
4271 * c-lang.h (c_watch_location_expression): Delete declaration.
4272 * d-lang.c (d_language_data): Delete la_watch_location_expression
4273 initializer.
4274 * f-lang.c (f_language_data): Likewise.
4275 * go-lang.c (go_language_data): Likewise.
4276 * language.c (language_defn::watch_location_expression): Member
4277 function implementation from c_watch_location_expression.
4278 (unknown_language_data): Delete la_watch_location_expression
4279 initializer.
4280 (auto_language_data): Likewise.
4281 * language.h (language_data): Delete la_watch_location_expression
4282 field.
4283 (language_defn::watch_location_expression): Declare new member
4284 function.
4285 * m2-lang.c (m2_language_data): Delete
4286 la_watch_location_expression initializer.
4287 * objc-lang.c (objc_language_data): Likewise.
4288 * opencl-lang.c (opencl_language_data): Likewise.
4289 * p-lang.c (pascal_language_data): Likewise.
4290 * rust-lang.c (rust_watch_location_expression): Rename to
4291 rust_language::watch_location_expression.
4292 (rust_language_data): Delete la_watch_location_expression
4293 initializer.
4294 (rust_language::watch_location_expression): New member function,
4295 implementation from rust_watch_location_expression.
4296
7e56227d
AB
42972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4298
4299 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4300 ada_language::collect_symbol_completion_matches.
4301 (ada_language_data): Delete la_collect_symbol_completion_matches
4302 initializer.
4303 (ada_language::collect_symbol_completion_matches): New member
4304 function, implementation from
4305 ada_collect_symbol_completion_matches.
4306 * c-lang.c (c_language_data): Delete
4307 la_collect_symbol_completion_matches initializer.
4308 (cplus_language_data): Likewise.
4309 (asm_language_data): Likewise.
4310 (minimal_language_data): Likewise.
4311 * d-lang.c (d_language_data): Likewise.
4312 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4313 f_language::collect_symbol_completion_matches.
4314 (f_language_data): Delete la_collect_symbol_completion_matches
4315 initializer.
4316 (f_language::collect_symbol_completion_matches) New member
4317 function, implementation from f_collect_symbol_completion_matches.
4318 * go-lang.c (go_language_data): Delete
4319 la_collect_symbol_completion_matches initializer.
4320 * language.c (unknown_language_data): Likewise.
4321 (auto_language_data): Likewise.
4322 * language.h (language_data): Delete
4323 la_collect_symbol_completion_matches field.
4324 (language_defn::collect_symbol_completion_matches): New member
4325 function.
4326 * m2-lang.c (m2_language_data): Delete
4327 la_collect_symbol_completion_matches initializer.
4328 * objc-lang.c (objc_language_data): Likewise.
4329 * opencl-lang.c (opencl_language_data): Likewise.
4330 * p-lang.c (pascal_language_data): Likewise.
4331 * rust-lang.c (rust_language_data): Likewise.
4332 * symtab.c (default_collect_symbol_completion_matches): Delete.
4333 (collect_symbol_completion_matches): Update call to
4334 collect_symbol_completion_matches.
4335 (collect_symbol_completion_matches_type): Likewise.
4336 * symtab.h (default_collect_symbol_completion_matches): Delete
4337 declaration.
4338
53fc67f8
AB
43392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4340
4341 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4342 (ada_language_data): Delete la_word_break_characters initializer.
4343 (ada_language::word_break_characters): New member function.
4344 * c-lang.c (c_language_data): Delete la_word_break_characters
4345 initializer.
4346 (cplus_language_data): Likewise.
4347 (asm_language_data): Likewise.
4348 (minimal_language_data): Likewise.
4349 * completer.c: Update global comment.
4350 (advance_to_expression_complete_word_point): Update call to
4351 word_break_characters.
4352 (complete_files_symbols): Likewise.
4353 (complete_line_internal_1): Likewise.
4354 (default_completer_handle_brkchars): Likewise.
4355 (skip_quoted_chars): Likewise.
4356 * d-lang.c (d_language_data): Delete la_word_break_characters
4357 initializer.
4358 * f-lang.c (f_word_break_characters): Delete.
4359 (f_language_data): Delete la_word_break_characters initializer.
4360 (f_language::word_break_characters): New member function.
4361 * go-lang.c (go_language_data): Delete la_word_break_characters
4362 initializer.
4363 * language.c (unknown_language_data): Likewise.
4364 (auto_language_data): Likewise.
4365 * language.h (default_word_break_characters): Move declaration to
4366 earlier in the file.
4367 (language_data): Delete la_word_break_characters field.
4368 (language_defn::word_break_characters): New member function.
4369 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4370 initializer.
4371 * objc-lang.c (objc_language_data): Likewise.
4372 * opencl-lang.c (opencl_language_data): Likewise.
4373 * p-lang.c (pascal_language_data): Likewise.
4374 * rust-lang.c (rust_language_data): Likewise.
4375
c9debfb9
AB
43762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4377
4378 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4379 (ada_language_data): Delete la_get_symbol_name_matcher
4380 initializer.
4381 (language_defn::get_symbol_name_matcher_inner): New member
4382 function.
4383 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4384 initializer.
4385 (cplus_language_data): Likewise.
4386 (cplus_language::get_symbol_name_matcher_inner): New member
4387 function.
4388 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4389 (minimal_language_data): Likewise.
4390 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4391 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4392 initializer.
4393 * dictionary.c (iter_match_first_hashed): Update call to
4394 get_symbol_name_matcher.
4395 (iter_match_next_hashed): Likewise.
4396 (iter_match_next_linear): Likewise.
4397 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4398 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4399 initializer.
4400 (f_language::get_symbol_name_matcher_inner): New member function.
4401 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4402 initializer.
4403 * language.c (default_symbol_name_matcher): Update header comment,
4404 make static.
4405 (language_defn::get_symbol_name_matcher): New definition.
4406 (language_defn::get_symbol_name_matcher_inner): Likewise.
4407 (get_symbol_name_matcher): Delete.
4408 (unknown_language_data): Delete la_get_symbol_name_matcher
4409 initializer.
4410 (auto_language_data): Likewise.
4411 * language.h (language_data): Delete la_get_symbol_name_matcher
4412 field.
4413 (language_defn::get_symbol_name_matcher): New member function.
4414 (language_defn::get_symbol_name_matcher_inner): Likewise.
4415 (default_symbol_name_matcher): Delete declaration.
4416 * linespec.c (find_methods): Update call to
4417 get_symbol_name_matcher.
4418 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4419 initializer.
4420 * minsyms.c (lookup_minimal_symbol): Update call to
4421 get_symbol_name_matcher.
4422 (iterate_over_minimal_symbols): Likewise.
4423 * objc-lang.c (objc_language_data): Delete
4424 la_get_symbol_name_matcher initializer.
4425 * opencl-lang.c (opencl_language_data): Likewise.
4426 * p-lang.c (pascal_language_data): Likewise.
4427 * psymtab.c (psymbol_name_matches): Update call to
4428 get_symbol_name_matcher.
4429 * rust-lang.c (rust_language_data): Delete
4430 la_get_symbol_name_matcher initializer.
4431 * symtab.c (symbol_matches_search_name): Update call to
4432 get_symbol_name_matcher.
4433 (compare_symbol_name): Likewise.
4434
9a49ad8c
AB
44352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4436
4437 * ada-lang.c (ada_language_data): Delete la_compute_program
4438 initializer.
4439 * c-lang.c (c_language_data): Likewise.
4440 (c_language::compute_program): New member function.
4441 (cplus_language_data): Delete la_compute_program initializer.
4442 (cplus_language::compute_program): New member function.
4443 (asm_language_data): Delete la_compute_program initializer.
4444 (minimal_language_data): Likewise.
4445 * c-lang.h (c_compute_program): Update comment.
4446 (cplus_compute_program): Likewise.
4447 * compile/compile-c-support.c (c_compute_program): Likewise.
4448 (cplus_compute_program): Likewise.
4449 * compile/compile.c (compile_to_object): Update call to
4450 la_compute_program.
4451 * d-lang.c (d_language_data): Delete la_compute_program
4452 initializer.
4453 * f-lang.c (f_language_data): Likewise.
4454 * go-lang.c (go_language_data): Likewise.
4455 * language.c (unknown_language_data): Likewise.
4456 (auto_language_data): Likewise.
4457 * language.h (language_data): Delete la_compute_program field.
4458 (language_defn::compute_program): New member function.
4459 * m2-lang.c (m2_language_data): Delete la_compute_program
4460 initializer.
4461 * objc-lang.c (objc_language_data): Likewise.
4462 * opencl-lang.c (opencl_language_data): Likewise.
4463 * p-lang.c (pascal_language_data): Likewise.
4464 * rust-lang.c (rust_language_data): Likewise.
4465
eff93b4d
AB
44662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4467
4468 * ada-lang.c (ada_language_data) Delete
4469 la_class_name_from_physname initializer.
4470 * c-lang.c (c_language_data): Likewise.
4471 (cplus_language_data): Likewise.
4472 (cplus_language::class_name_from_physname): New member function.
4473 (asm_language_data): Delete la_class_name_from_physname
4474 initializer.
4475 (minimal_language_data): Likewise.
4476 * d-lang.c (d_language_data): Likewise.
4477 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4478 method on language_defn class.
4479 (guess_full_die_structure_name): Likewise.
4480 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4481 initializer.
4482 * go-lang.c (go_language_data): Likewise.
4483 * language.c (language_class_name_from_physname): Delete.
4484 (unk_lang_class_name): Delete.
4485 (unknown_language_data): Delete la_class_name_from_physname
4486 initializer.
4487 (auto_language_data): Likewise.
4488 * language.h (language_data): Delete la_class_name_from_physname
4489 field.
4490 (language_defn::class_name_from_physname): New function.
4491 (language_class_name_from_physname): Delete declaration.
4492 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4493 initializer.
4494 * objc-lang.c (objc_language_data): Likewise.
4495 * opencl-lang.c (opencl_language_data): Likewise.
4496 * p-lang.c (pascal_language_data): Likewise.
4497 * rust-lang.c (rust_language_data): Likewise.
4498
de543742
TT
44992020-06-16 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-data.h (STATUS_NAME): New macro.
4502 * tui/tui-layout.c (tui_remove_some_windows)
4503 (initialize_known_windows, tui_register_window)
4504 (tui_layout_split::remove_windows, initialize_layouts)
4505 (tui_new_layout_command): Don't use hard-coded window names.
4506
a350efd4
TT
45072020-06-16 Tom Tromey <tom@tromey.com>
4508
4509 PR tui/25348:
4510 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4511 tui_initialize_readline. Only run once. Call rl_initialize.
4512 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4513 tui_initialize_readline.
4514 * tui/tui-io.c (tui_setup_io): Call
4515 tui_ensure_readline_initialized.
4516 * tui/tui-interp.c (tui_interp::init): Update.
4517
39ec0490
TT
45182020-06-16 Tom Tromey <tom@tromey.com>
4519
4520 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4521 Also preserve the status window.
4522
d2d1ea20
TT
45232020-06-16 Tom Tromey <tom@tromey.com>
4524
4525 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4526 where m_window==nullptr.
4527
66920317
TT
45282020-06-15 Tom Tromey <tromey@adacore.com>
4529
4530 * windows-nat.c (windows_nat::handle_output_debug_string):
4531 Update.
4532 (windows_nat::handle_ms_vc_exception): Update.
4533 * target.h (target_read_string): Change API.
4534 * target.c (target_read_string): Change API.
4535 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4536 Update.
4537 * solib-frv.c (frv_current_sos): Update.
4538 * solib-dsbt.c (dsbt_current_sos): Update.
4539 * solib-darwin.c (darwin_current_sos): Update.
4540 * linux-thread-db.c (inferior_has_bug): Update.
4541 * expprint.c (print_subexp_standard): Update.
4542 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4543 (ada_exception_message_1): Update.
4544
a5d871dd
TT
45452020-06-15 Tom Tromey <tromey@adacore.com>
4546
4547 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4548
670e35fa
TT
45492020-06-15 Tom Tromey <tromey@adacore.com>
4550
4551 * valprint.c (read_string): Update comment.
4552 * target.c (MIN): Remove.
4553 (target_read_string): Rewrite.
4554
f5272a3b
TT
45552020-06-15 Tom Tromey <tromey@adacore.com>
4556
4557 * corefile.c (read_memory_string): Remove.
4558 * ada-valprint.c (ada_value_print_ptr): Update.
4559 * ada-lang.h (ada_tag_name): Change return type.
4560 * ada-lang.c (type_from_tag): Update.
4561 (ada_tag_name_from_tsd): Change return type. Use
4562 target_read_string.
4563 (ada_tag_name): Likewise.
4564 * gdbcore.h (read_memory_string): Don't declare.
4565
2c074f49
HD
45662020-06-14 Hannes Domani <ssbssa@yahoo.de>
4567
4568 * symtab.c (rbreak_command): Ignore Windows drive colon.
4569
6a17d503
SM
45702020-06-12 Simon Marchi <simon.marchi@efficios.com>
4571
4572 * NEWS: Mention removed GDBserver host support.
4573
453c733f
NC
45742020-06-12 Nelson Chu <nelson.chu@sifive.com>
4575
4576 * features/riscv/rebuild-csr-xml.sh: Updated.
4577
2b4e6a3f
TT
45782020-06-11 Tom Tromey <tom@tromey.com>
4579
4580 PR gdb/18318:
4581 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4582
4412332f
JG
45832020-06-09 Jonny Grant <jg@jguk.org>
45842020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4585
4586 * main.c (captured_main_1): Don't print new line after help.
4587 (print_gdb_help): add mailing list and IRC channel information
4588 to --help. Add new lines between items in the footer. Remove
4589 quotes around bug url.
4590
2f33032a
KS
45912020-06-11 Keith Seitz <keiths@redhat.com>
4592
4593 PR gdb/21356
4594 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4595 Resolve typedefs for type length calculations.
4596
7ab96794
TV
45972020-06-10 Tom de Vries <tdevries@suse.de>
4598
4599 PR ada/24713
4600 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4601 (write_psymbols): Enable .gdb_index for ada.
4602 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4603 ada.
4604
e5f3ece2
TV
46052020-06-10 Tom de Vries <tdevries@suse.de>
4606
4607 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4608 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4609 namei" instead of "const char *name" argument.
4610 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4611 dw2_symtab_iter_init.
4612
940da03e
SM
46132020-06-08 Simon Marchi <simon.marchi@efficios.com>
4614
4615 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4616 to use type::field and field::type instead.
4617
b6cdac4b
SM
46182020-06-08 Simon Marchi <simon.marchi@efficios.com>
4619
4620 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4621 to use field::type instead.
4622
5d14b6e5
SM
46232020-06-08 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * gdbtypes.h (struct field) <type, set_type>: New methods.
4626 Rename `type` field to...
4627 <m_type>: ... this. Change references throughout to use type or
4628 set_type methods.
4629 (FIELD_TYPE): Use field::type. Change call sites that modify
4630 the field's type to use field::set_type instead.
4631
3d967001
SM
46322020-06-08 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4635 to use type::index_type instead.
4636
262abc0d
SM
46372020-06-08 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4640 methods.
4641 (TYPE_INDEX_TYPE): Use type::index_type.
4642 * gdbtypes.c (create_array_type_with_stride): Likewise.
4643
82836c92
TT
46442020-06-07 Tom Tromey <tom@tromey.com>
4645
4646 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4647 parameter.
4648 (generic_value_print): Update.
4649
940dace9
AB
46502020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4651
4652 Revert commit 982a38f60b0.
4653 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4654
982a38f6
AB
46552020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4656
4657 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4658 avoid use after free.
4659
82f06518
TV
46602020-06-05 Tom de Vries <tdevries@suse.de>
4661
4662 * NEWS: Fix typos.
4663
f8c41851
SM
46642020-06-04 Simon Marchi <simon.marchi@efficios.com>
4665
4666 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4667 the per_bfd object.
4668 (dwarf2_read_debug_names): Likewise.
4669 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4670 object when re-using a per_bfd object with an index.
4671
f9b5d5ea
TV
46722020-06-03 Tom de Vries <tdevries@suse.de>
4673
4674 PR symtab/26046
4675 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4676 children for C++.
4677 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4678 DW_TAG_subprogram.
4679
f6eee2d0
AB
46802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4681
4682 * ada-lang.c (ada_language_data): Delete skip_trampoline
4683 initializer.
4684 * c-lang.c (c_language_data): Likewise.
4685 (cplus_language_data): Likewise.
4686 (cplus_language::skip_trampoline): New member function.
4687 (asm_language_data): Delete skip_trampoline initializer.
4688 (minimal_language_data): Likewise.
4689 * d-lang.c (d_language_data): Likewise.
4690 * f-lang.c (f_language_data): Likewise.
4691 * go-lang.c (go_language_data): Likewise.
4692 * language.c (unk_lang_trampoline): Delete function.
4693 (skip_language_trampoline): Update.
4694 (unknown_language_data): Delete skip_trampoline initializer.
4695 (auto_language_data): Likewise.
4696 * language.h (language_data): Delete skip_trampoline field.
4697 (language_defn::skip_trampoline): New function.
4698 * m2-lang.c (m2_language_data): Delete skip_trampoline
4699 initializer.
4700 * objc-lang.c (objc_skip_trampoline): Delete function, move
4701 implementation to objc_language::skip_trampoline.
4702 (objc_language_data): Delete skip_trampoline initializer.
4703 (objc_language::skip_trampoline): New member function with
4704 implementation from objc_skip_trampoline.
4705 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4706 initializer.
4707 * p-lang.c (pascal_language_data): Likewise.
4708 * rust-lang.c (rust_language_data): Likewise.
4709
0a50df5d
AB
47102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4711
4712 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4713 (ada_language::demangle): New member function.
4714 * c-lang.c (c_language_data): Delete la_demangle initializer.
4715 (cplus_language_data): Delete la_demangle initializer.
4716 (cplus_language::demangle): New member function.
4717 (asm_language_data): Delete la_demangle initializer.
4718 (minimal_language_data): Delete la_demangle initializer.
4719 * d-lang.c (d_language_data): Delete la_demangle initializer.
4720 (d_language::demangle): New member function.
4721 * f-lang.c (f_language_data): Delete la_demangle initializer.
4722 (f_language::demangle): New member function.
4723 * go-lang.c (go_language_data): Delete la_demangle initializer.
4724 (go_language::demangle): New member function.
4725 * language.c (language_demangle): Update.
4726 (unk_lang_demangle): Delete.
4727 (unknown_language_data): Delete la_demangle initializer.
4728 (unknown_language::demangle): New member function.
4729 (auto_language_data): Delete la_demangle initializer.
4730 (auto_language::demangle): New member function.
4731 * language.h (language_data): Delete la_demangle field.
4732 (language_defn::demangle): New function.
4733 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4734 * objc-lang.c (objc_language_data): Delete la_demangle
4735 initializer.
4736 (objc_language::demangle): New member function.
4737 * opencl-lang.c (opencl_language_data): Delete la_demangle
4738 initializer.
4739 * p-lang.c (pascal_language_data): Likewise.
4740 * rust-lang.c (rust_language_data): Likewise.
4741 (rust_language::demangle): New member function.
4742
fbfb0a46
AB
47432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4744
4745 * ada-lang.c (ada_language_data): Delete la_print_type
4746 initializer.
4747 (ada_language::print_type): New member function.
4748 * c-lang.c (c_language_data): Delete la_print_type initializer.
4749 (c_language::print_type): New member function.
4750 (cplus_language_data): Delete la_print_type initializer.
4751 (cplus_language::print_type): New member function.
4752 (asm_language_data): Delete la_print_type initializer.
4753 (asm_language::print_type): New member function.
4754 (minimal_language_data): Delete la_print_type initializer.
4755 (minimal_language::print_type): New member function.
4756 * d-lang.c (d_language_data): Delete la_print_type initializer.
4757 (d_language::print_type): New member function.
4758 * f-lang.c (f_language_data): Delete la_print_type initializer.
4759 (f_language::print_type): New member function.
4760 * go-lang.c (go_language_data): Delete la_print_type initializer.
4761 (go_language::print_type): New member function.
4762 * language.c (unk_lang_print_type): Delete.
4763 (unknown_language_data): Delete la_print_type initializer.
4764 (unknown_language::print_type): New member function.
4765 (auto_language_data): Delete la_print_type initializer.
4766 (auto_language::print_type): New member function.
4767 * language.h (language_data): Delete la_print_type field.
4768 (language_defn::print_type): New function.
4769 (LA_PRINT_TYPE): Update.
4770 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4771 (m2_language::print_type): New member function.
4772 * objc-lang.c (objc_language_data): Delete la_print_type
4773 initializer.
4774 (objc_language::print_type): New member function.
4775 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4776 to opencl_language::print_type.
4777 (opencl_language_data): Delete la_print_type initializer.
4778 (opencl_language::print_type): New member function, implementation
4779 from opencl_print_type.
4780 * p-lang.c (pascal_language_data): Delete la_print_type
4781 initializer.
4782 (pascal_language::print_type): New member function.
4783 * rust-lang.c (rust_print_type): Delete, implementation moved to
4784 rust_language::print_type.
4785 (rust_language_data): Delete la_print_type initializer.
4786 (rust_language::print_type): New member function, implementation
4787 from rust_print_type.
4788
6f827019
AB
47892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4790
4791 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4792 implementation moves to...
4793 (ada_language::sniff_from_mangled_name): ...here. Update return
4794 type.
4795 (ada_language_data): Delete la_sniff_from_mangled_name
4796 initializer.
4797 * c-lang.c (c_language_data): Likewise.
4798 (cplus_language_data): Likewise.
4799 (cplus_language::sniff_from_mangled_name): New member function,
4800 implementation taken from gdb_sniff_from_mangled_name.
4801 (asm_language_data): Delete la_sniff_from_mangled_name
4802 initializer.
4803 (minimal_language_data): Likewise.
4804 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4805 implementation moves to cplus_language::sniff_from_mangled_name.
4806 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4807 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4808 moves to...
4809 (d_language::sniff_from_mangled_name): ...here.
4810 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4811 * f-lang.c (f_language_data): Likewise.
4812 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4813 moves to...
4814 (go_language::sniff_from_mangled_name): ...here.
4815 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4816 * language.c (language_sniff_from_mangled_name): Delete.
4817 (unknown_language_data): Delete la_sniff_from_mangled_name
4818 initializer.
4819 (auto_language_data): Likewise.
4820 * language.h (language_data): Delete la_sniff_from_mangled_name
4821 field.
4822 (language_defn::sniff_from_mangled_name): New function.
4823 (language_sniff_from_mangled_name): Delete declaration.
4824 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4825 field.
4826 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4827 implementation moves to...
4828 (objc_language::sniff_from_mangled_name): ...here.
4829 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4830 * opencl-lang.c (opencl_language_data): Likewise.
4831 * p-lang.c (pascal_language_data): Likewise.
4832 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4833 implementation moves to...
4834 (rust_language::sniff_from_mangled_name): ...here.
4835 (rust_language_data): Delete la_sniff_from_mangled_name
4836 initializer.
4837 * symtab.c (symbol_find_demangled_name): Call
4838 sniff_from_mangled_name member function.
4839
fb8006fd
AB
48402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4841
4842 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4843 initializer.
4844 * c-lang.c (c_language_data): Likewise.
4845 (cplus_language_data): Likewise.
4846 (cplus_language::search_name_hash): New member function.
4847 (asm_language_data): Delete la_search_name_hash initializer.
4848 (minimal_language_data): Likewise.
4849 * d-lang.c (d_language_data): Likewise.
4850 * dictionary.c (default_search_name_hash): Rename to...
4851 (language_defn::search_name_hash): ...this.
4852 * f-lang.c (f_language_data): Likewise.
4853 (f_language::search_name_hash): New member function.
4854 * go-lang.c (go_language_data): Delete la_search_name_hash
4855 initializer.
4856 * language.c (unknown_language_data): Likewise.
4857 (auto_language_data): Likewise.
4858 * language.h (struct language_data): Delete la_search_name_hash
4859 field.
4860 (language_defn::search_name_hash): Declare new member function.
4861 (default_search_name_hash): Delete declaration.
4862 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4863 initializer.
4864 * objc-lang.c (objc_language_data): Likewise.
4865 * opencl-lang.c (opencl_language_data): Likewise.
4866 * p-lang.c (pascal_language_data): Likewise.
4867 * rust-lang.c (rust_language_data): Likewise.
4868 * symtab.c (search_name_hash): Update call.
4869
8e25bafe
AB
48702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4871
4872 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4873 initializer.
4874 * c-lang.c (class compile_instance): Declare.
4875 (c_language_data): Delete la_get_compile_instance initializer.
4876 (c_language::get_compile_instance): New member function.
4877 (cplus_language_data): Delete la_get_compile_instance initializer.
4878 (cplus_language::get_compile_instance): New member function.
4879 (asm_language_data): Delete la_get_compile_instance initializer.
4880 (minimal_language_data): Likewise.
4881 * c-lang.h (c_get_compile_context): Update comment.
4882 (cplus_get_compile_context): Update comment.
4883 * compile/compile.c (compile_to_object): Update calls, don't rely
4884 on function pointer being NULL.
4885 * d-lang.c (d_language_data): Delete la_get_compile_instance
4886 initializer.
4887 * f-lang.c (f_language_data): Likewise.
4888 * go-lang.c (go_language_data): Likewise.
4889 * language.c (unknown_language_data): Likewise.
4890 (auto_language_data): Likewise.
4891 * language.h (language_data): Delete la_get_compile_instance field.
4892 (language_defn::get_compile_instance): New member function.
4893 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4894 initializer.
4895 * objc-lang.c (objc_language_data): Likewise.
4896 * opencl-lang.c (opencl_language_data): Likewise.
4897 * p-lang.c (pascal_language_data): Likewise.
4898 * rust-lang.c (rust_language_data): Likewise.
4899
4009ee92
AB
49002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4901
4902 * ada-lang.c (ada_add_all_symbols): Update comment.
4903 (ada_iterate_over_symbols): Delete, move implementation to...
4904 (ada_language::iterate_over_symbols): ...here, a new member
4905 function, rewrite to use range based for loop.
4906 (ada_language_data): Delete la_iterate_over_symbols initializer.
4907 * c-lang.c (c_language_data): Likewise.
4908 (cplus_language_data): Likewise.
4909 (asm_language_data): Likewise.
4910 (minimal_language_data): Likewise.
4911 * d-lang.c (d_language_data): Likewise.
4912 * f-lang.c (f_language_data): Likewise.
4913 * go-lang.c (go_language_data): Likewise.
4914 * language.c (unknown_language_data): Likewise.
4915 (auto_language_data): Likewise.
4916 * language.h (language_data): Delete la_iterate_over_symbols field.
4917 (language_defn::iterate_over_symbols): New member function.
4918 (LA_ITERATE_OVER_SYMBOLS): Update.
4919 * linespec.c (iterate_over_all_matching_symtabs): Update.
4920 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4921 initializer.
4922 * objc-lang.c (objc_language_data): Likewise.
4923 * opencl-lang.c (opencl_language_data): Likewise.
4924 * p-lang.c (pascal_language_data): Likewise.
4925 * rust-lang.c (rust_language_data): Likewise.
4926
54f4ca46
AB
49272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4928
4929 * ada-lang.c (ada_language_data): Delete
4930 la_lookup_transparent_type initializer.
4931 * c-lang.c (c_language_data): Likewise.
4932 (cplus_language_data): Likewise.
4933 (cplus_language::lookup_transparent_type): New member function.
4934 (asm_language_data): Delete la_lookup_transparent_type
4935 initializer.
4936 (minimal_language_data): Likewise.
4937 * d-lang.c (d_language_data): Likewise.
4938 * f-lang.c (f_language_data): Likewise.
4939 * go-lang.c (go_language_data): Likewise.
4940 * language.c (unknown_language_data): Likewise.
4941 (auto_language_data): Likewise.
4942 * language.h (struct language_data): Delete
4943 la_lookup_transparent_type field.
4944 (language_defn::lookup_transparent_type): New member function.
4945 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4946 initializer.
4947 * objc-lang.c (objc_language_data): Likewise.
4948 * opencl-lang.c (opencl_language_data): Likewise.
4949 * p-lang.c (pascal_language_data): Likewise.
4950 * rust-lang.c (rust_language_data): Likewise.
4951 * symtab.c (symbol_matches_domain): Update call.
4952
1fb314aa
AB
49532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4954
4955 * ada-lang.c (ada_language_arch_info): Delete function, move
4956 implementation to...
4957 (ada_language::language_arch_info): ...here, a new member
4958 function.
4959 (ada_language_data): Delete la_language_arch_info.
4960 * c-lang.c (c_language_data): Likewise.
4961 (c_language::language_arch_info): New member function.
4962 (cplus_language_arch_info): Delete function, move
4963 implementation to...
4964 (cplus_language::language_arch_info): ...here, a new member
4965 function.
4966 (cplus_language_data): Delete la_language_arch_info.
4967 (asm_language_data): Likewise.
4968 (asm_language::language_arch_info): New member function.
4969 (minimal_language_data): Delete la_language_arch_info.
4970 (minimal_language::language_arch_info): New member function.
4971 * d-lang.c (d_language_arch_info): Delete function, move
4972 implementation to...
4973 (d_language::language_arch_info): ...here, a new member
4974 function.
4975 (d_language_data): Delete la_language_arch_info.
4976 * f-lang.c (f_language_arch_info): Delete function, move
4977 implementation to...
4978 (f_language::language_arch_info): ...here, a new member
4979 function.
4980 (f_language_data): Delete la_language_arch_info.
4981 * go-lang.c (go_language_arch_info): Delete function, move
4982 implementation to...
4983 (go_language::language_arch_info): ...here, a new member
4984 function.
4985 (go_language_data): Delete la_language_arch_info.
4986 * language.c (unknown_language_data): Likewise.
4987 (unknown_language::language_arch_info): New member function.
4988 (auto_language_data): Delete la_language_arch_info.
4989 (auto_language::language_arch_info): New member function.
4990 (language_gdbarch_post_init): Update call to
4991 la_language_arch_info.
4992 * language.h (language_data): Delete la_language_arch_info
4993 function pointer.
4994 (language_defn::language_arch_info): New function.
4995 * m2-lang.c (m2_language_arch_info): Delete function, move
4996 implementation to...
4997 (m2_language::language_arch_info): ...here, a new member
4998 function.
4999 (m2_language_data): Delete la_language_arch_info.
5000 * objc-lang.c (objc_language_arch_info): Delete function, move
5001 implementation to...
5002 (objc_language::language_arch_info): ...here, a new member
5003 function.
5004 (objc_language_data): Delete la_language_arch_info.
5005 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5006 implementation to...
5007 (opencl_language::language_arch_info): ...here, a new member
5008 function.
5009 (opencl_language_data): Delete la_language_arch_info.
5010 * p-lang.c (pascal_language_arch_info): Delete function, move
5011 implementation to...
5012 (pascal_language::language_arch_info): ...here, a new member
5013 function.
5014 (pascal_language_data): Delete la_language_arch_info.
5015 * rust-lang.c (rust_language_arch_info): Delete function, move
5016 implementation to...
5017 (rust_language::language_arch_info): ...here, a new member
5018 function.
5019 (rust_language_data): Delete la_language_arch_info.
5020
48448202
AB
50212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5022
5023 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5024 initializer.
5025 * c-lang.c (c_language_data): Likewise.
5026 (cplus_language_data): Likewise.
5027 (cplus_language::pass_by_reference_info): New method.
5028 (asm_language_data): Delete la_pass_by_reference initializer.
5029 (minimal_language_data): Likewise.
5030 * cp-abi.c (cp_pass_by_reference): Remove use of
5031 default_pass_by_reference.
5032 * d-lang.c (d_language_data): Likewise.
5033 * f-lang.c (f_language_data): Likewise.
5034 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5035 default_pass_by_reference.
5036 * go-lang.c (go_language_data): Likewise.
5037 * language.c (language_pass_by_reference): Update.
5038 (default_pass_by_reference): Delete.
5039 (unknown_language_data): Delete la_pass_by_reference
5040 initializer.
5041 (auto_language_data): Likewise.
5042 * language.h (struct language_data): Delete la_pass_by_reference
5043 field.
5044 (language_defn::pass_by_reference_info): New member function.
5045 (default_pass_by_reference): Delete declaration.
5046 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5047 initializer.
5048 * objc-lang.c (objc_language_data): Likewise.
5049 * opencl-lang.c (opencl_language_data): Likewise.
5050 * p-lang.c (pascal_language_data): Likewise.
5051 * rust-lang.c (rust_language_data): Likewise.
5052
15e5fd35
AB
50532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5054
5055 * ada-lang.c (ada_read_var_value): Delete function, move
5056 implementation to...
5057 (ada_language::read_var_value): ...here.
5058 (ada_language_data): Delete la_read_var_value initializer.
5059 * c-lang.c (c_language_data): Likewise.
5060 (cplus_language_data): Likewise.
5061 (minimal_language_data): Likewise.
5062 * d-lang.c (d_language_data): Likewise.
5063 * f-lang.c (f_language_data): Likewise.
5064 * findvar.c (default_read_var_value): Rename to...
5065 (language_defn::read_var_value): ...this.
5066 * findvar.c (read_var_value): Update header comment, and change to
5067 call member function instead of function pointer.
5068 * go-lang.c (go_language_data): Likewise.
5069 * language.c (unknown_language_data): Delete la_read_var_value
5070 initializer.
5071 (auto_language_data): Likewise.
5072 * language.h (struct language_data): Delete la_read_var_value
5073 field.
5074 (language_defn::read_var_value): New member function.
5075 (default_read_var_value): Delete declaration.
5076 * m2-lang.c (m2_language_data): Delete la_read_var_value
5077 initializer.
5078 * objc-lang.c (objc_language_data): Likewise.
5079 * opencl-lang.c (opencl_language_data): Likewise.
5080 * p-lang.c (pascal_language_data): Likewise.
5081 * rust-lang.c (rust_language_data): Likewise.
5082 * value.h (default_read_var_value): Delete declaration.
5083
5bd40f2a
AB
50842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5085
5086 * ada-lang.c (ada_print_array_index): Delete function, move
5087 implementation to...
5088 (ada_language::print_array_index): ...here.
5089 (ada_language_data): Delete la_print_array_index initializer.
5090 * c-lang.c (c_language_data): Likewise.
5091 (cplus_language_data): Likewise.
5092 (minimal_language_data): Likewise.
5093 * d-lang.c (d_language_data): Likewise.
5094 * f-lang.c (f_language_data): Likewise.
5095 * go-lang.c (go_language_data): Likewise.
5096 * language.c (default_print_array_index): Delete function, move
5097 implementation to...
5098 (language_defn::print_array_index): ...here.
5099 (unknown_language_data): Delete la_print_array_index initializer.
5100 (auto_language_data): Likewise.
5101 * language.h (struct language_data): Delete la_print_array_index
5102 field.
5103 (language_defn::print_array_index): New member function.
5104 (LA_PRINT_ARRAY_INDEX): Update.
5105 (default_print_array_index): Delete declaration.
5106 * m2-lang.c (m2_language_data): Delete la_print_array_index
5107 initializer.
5108 * objc-lang.c (objc_language_data): Likewise.
5109 * opencl-lang.c (opencl_language_data): Likewise.
5110 * p-lang.c (pascal_language_data): Likewise.
5111 * rust-lang.c (rust_language_data): Likewise.
5112
0874fd07
AB
51132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * gdb/ada-lang.c (ada_language_defn): Convert to...
5116 (ada_language_data): ...this.
5117 (class ada_language): New class.
5118 (ada_language_defn): New static global.
5119 * gdb/c-lang.c (c_language_defn): Convert to...
5120 (c_language_data): ...this.
5121 (class c_language): New class.
5122 (c_language_defn): New static global.
5123 (cplus_language_defn): Convert to...
5124 (cplus_language_data): ...this.
5125 (class cplus_language): New class.
5126 (cplus_language_defn): New static global.
5127 (asm_language_defn): Convert to...
5128 (asm_language_data): ...this.
5129 (class asm_language): New class.
5130 (asm_language_defn): New static global.
5131 (minimal_language_defn): Convert to...
5132 (minimal_language_data): ...this.
5133 (class minimal_language): New class.
5134 (minimal_language_defn): New static global.
5135 * gdb/d-lang.c (d_language_defn): Convert to...
5136 (d_language_data): ...this.
5137 (class d_language): New class.
5138 (d_language_defn): New static global.
5139 * gdb/f-lang.c (f_language_defn): Convert to...
5140 (f_language_data): ...this.
5141 (class f_language): New class.
5142 (f_language_defn): New static global.
5143 * gdb/go-lang.c (go_language_defn): Convert to...
5144 (go_language_data): ...this.
5145 (class go_language): New class.
5146 (go_language_defn): New static global.
5147 * gdb/language.c (unknown_language_defn): Remove declaration.
5148 (current_language): Initialize to nullptr, real initialization is
5149 moved to _initialize_language.
5150 (languages): Delete global.
5151 (language_defn::languages): Define.
5152 (set_language_command): Use language_defn::languages.
5153 (set_language): Likewise.
5154 (range_error): Likewise.
5155 (language_enum): Likewise.
5156 (language_def): Likewise.
5157 (add_set_language_command): Use language_def::languages for the
5158 language list, and language_def to lookup language pointers.
5159 (skip_language_trampoline): Use language_defn::languages.
5160 (unknown_language_defn): Convert to...
5161 (unknown_language_data): ...this.
5162 (class unknown_language): New class.
5163 (unknown_language_defn): New static global.
5164 (auto_language_defn): Convert to...
5165 (auto_language_data): ...this.
5166 (class auto_language): New class.
5167 (auto_language_defn): New static global.
5168 (language_gdbarch_post_init): Use language_defn::languages.
5169 (_initialize_language): Initialize current_language.
5170 * gdb/language.h (struct language_defn): Rename to...
5171 (struct language_data): ...this.
5172 (struct language_defn): New.
5173 (auto_language_defn): Delete.
5174 (unknown_language_defn): Delete.
5175 (minimal_language_defn): Delete.
5176 (ada_language_defn): Delete.
5177 (asm_language_defn): Delete.
5178 (c_language_defn): Delete.
5179 (cplus_language_defn): Delete.
5180 (d_language_defn): Delete.
5181 (f_language_defn): Delete.
5182 (go_language_defn): Delete.
5183 (m2_language_defn): Delete.
5184 (objc_language_defn): Delete.
5185 (opencl_language_defn): Delete.
5186 (pascal_language_defn): Delete.
5187 (rust_language_defn): Delete.
5188 * gdb/m2-lang.c (m2_language_defn): Convert to...
5189 (m2_language_data): ...this.
5190 (class m2_language): New class.
5191 (m2_language_defn): New static global.
5192 * gdb/objc-lang.c (objc_language_defn): Convert to...
5193 (objc_language_data): ...this.
5194 (class objc_language): New class.
5195 (objc_language_defn): New static global.
5196 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5197 (opencl_language_data): ...this.
5198 (class opencl_language): New class.
5199 (opencl_language_defn): New static global.
5200 * gdb/p-lang.c (pascal_language_defn): Convert to...
5201 (pascal_language_data): ...this.
5202 (class pascal_language): New class.
5203 (pascal_language_defn): New static global.
5204 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5205 language pointer, update comment format.
5206 * gdb/rust-lang.c (rust_language_defn): Convert to...
5207 (rust_language_data): ...this.
5208 (class rust_language): New class.
5209 (rust_language_defn): New static global.
5210
1313c56e
AB
52112020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5212
5213 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5214 member variable.
5215 <m_stmt_at_address>: New member variable.
5216 (lnp_state_machine::record_line): Don't record some lines, update
5217 tracking of is_stmt at the same address.
5218 (lnp_state_machine::lnp_state_machine): Initialise new member
5219 variables.
5220
b7ed9f3d
ST
52212020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5222
5223 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5224 "-include gnu-nat-mig.h".
5225 * gnu-nat-mig.h: New file.
5226 * gnu-nat.c: Include "gnu-nat-mig.h".
5227 (exc_server, msg_reply_server, notify_server,
5228 process_reply_server): Remove declarations.
5229
14a8ad62
ST
52302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5231
5232 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5233 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5234 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5235 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5236 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5237 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5238 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5239 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5240 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5241 to gnu_nat_target class.
5242 * gnu-nat.c: Likewise.
5243 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5244 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5245 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5246 object.
5247 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5248 instead of `gnu_target'.
5249
0af5e106
ST
52502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5251
5252 * i386-gnu-tdep.c: Include "gdbcore.h"
5253 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5254 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5255 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5256 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5257 i386_gnu_sigcontext_addr): New functions
5258 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5259 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5260 tdep.
5261
078f2fc9
ST
52622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5263
5264 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5265 before fork_inferior call. Avoid calling it if target_is_pushed returns
5266 true.
5267
53dff92c
ST
52682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5269
5270 * gnu-nat.h (gnu_target): New variable declaration.
5271 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5272 gnu_target.
5273 * gnu-nat.c (gnu_target): New variable.
5274 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5275 add_thread_silent, and add_thread calls.
5276 (gnu_nat_target::create_inferior): Pass gnu_target to
5277 add_thread_silent, thread_change_ptid call.
5278 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5279 call.
5280
5a8b8627
ST
52812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5282
5283 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5284 (gnu_nat_target::find_memory_regions): Remove unused
5285 `old_address' variable.
5286
366f550a
ST
52872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5288
5289 * gnu-nat.c: Include "gdbarch.h".
5290
f14871bf
ST
52912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5292
5293 * reply_mig_hack.awk (Error return): Cast function through
5294 void *, to bypass compiler function call check.
5295
c6887cfb
ST
52962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5297
5298 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5299 $(srcdir)/reply_mig_hack.awk.
5300
6930bffe
ST
53012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5302
5303 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5304
112c22ed
JG
53052020-05-30 Jonny Grant <jg@jguk.org>
5306
5307 * configure.ac (ACX_BUGURL): change bug URL to https.
5308
f68f85b5
PA
53092020-05-30 Pedro Alves <palves@redhat.com>
5310
5311 * cp-support.c (replace_typedefs_template): New.
5312 (replace_typedefs_qualified_name): Handle
5313 DEMANGLE_COMPONENT_TEMPLATE.
5314
976ca316
SM
53152020-05-29 Simon Marchi <simon.marchi@efficios.com>
5316
5317 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5318 dwarf2/index-cache.h, dwarf2/index-write.c,
5319 dwarf2/index-write.h, dwarf2/line-header.c,
5320 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5321 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5322 variables and fields from `dwarf2_per_objfile` to just
5323 `per_objfile` throughout.
5324
989ade05
SM
53252020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5326
5327 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5328 <push_dwarf_reg_entry_value>: Add comment.
5329
c47bae85
KB
53302020-05-28 Kevin Buettner <kevinb@redhat.com>
5331 Keith Seitz <keiths@redhat.com>
5332
5333 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5334 instead of PyEval_ReleaseLock.
5335 (class gdbpy_gil): Move to earlier in file.
5336 (finalize_python): Set gdb_python_initialized.
5337 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5338 when not initialized.
5339
44486dcf
SM
53402020-05-28 Simon Marchi <simon.marchi@efficios.com>
5341
5342 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5343 <push_dwarf_reg_entry_value>: Remove assert. Override
5344 per_objfile with caller_per_objfile.
5345
f030440d
TV
53462020-05-28 Tom de Vries <tdevries@suse.de>
5347
5348 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5349 PR gold/15646 workaround to symbol kind "type".
5350
f0fbb768
TT
53512020-05-27 Tom Tromey <tromey@adacore.com>
5352
5353 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5354
af0b2a3e
TT
53552020-05-27 Tom Tromey <tromey@adacore.com>
5356
5357 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5358 Use htab_find_with_hash.
5359 <add_abbrev>: Remove "abbrev_number" parameter.
5360 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5361 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5362 (hash_abbrev): Add comment.
5363 (abbrev_table::lookup_abbrev): Move to header file.
5364 (abbrev_table::read): Update.
5365
7d00ffec
TT
53662020-05-27 Tom Tromey <tromey@adacore.com>
5367
5368 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5369 method.
5370 <canonical_name>: New member.
5371 <raw_name>: Rename from "name".
5372 (partial_die_info): Initialize canonical_name.
5373 (scan_partial_symbols): Check raw_name.
5374 (partial_die_parent_scope, partial_die_full_name)
5375 (add_partial_symbol, add_partial_subprogram)
5376 (add_partial_enumeration, load_partial_dies): Use "name" method.
5377 (partial_die_info::name): New method.
5378 (partial_die_info::read, guess_partial_die_structure_name)
5379 (partial_die_info::fixup): Update.
5380
697bba18
TT
53812020-05-27 Tom Tromey <tromey@adacore.com>
5382
5383 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5384 <get_ref_die_offset>: Inline.
5385 <get_ref_die_offset_complaint>: New method.
5386 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5387 (attribute::get_ref_die_offset_complaint): Rename from
5388 get_ref_die_offset. Just issue complaint.
5389
c17ace43
HD
53902020-05-27 Hannes Domani <ssbssa@yahoo.de>
5391
5392 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5393
96445f0b
HD
53942020-05-27 Hannes Domani <ssbssa@yahoo.de>
5395
5396 * exec.c (exec_file_attach): Use errno value of first openp failure.
5397
ac637ec3
HD
53982020-05-27 Hannes Domani <ssbssa@yahoo.de>
5399
5400 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5401 Don't close thread handle.
5402
17ee85fc
TT
54032020-05-27 Tom Tromey <tom@tromey.com>
5404 Simon Marchi <simon.marchi@efficios.com>
5405
5406 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5407 shared_ptr.
5408 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5409 member.
5410 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5411 dwarf2_per_bfd_objfile_data_key>: New globals.
5412 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5413 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5414 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5415 shared.
5416 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5417 short-circuit when sharing.
5418 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5419 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5420
39b16f87
SM
54212020-05-27 Simon Marchi <simon.marchi@efficios.com>
5422
5423 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5424 to...
5425 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5426 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5427
fcf23d5b
SM
54282020-05-27 Simon Marchi <simon.marchi@efficios.com>
5429
5430 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5431 build_name_components, find_name_components_bounds>:
5432 Add per_objfile parameter.
5433 (struct mapped_index) <symbol_name_at>: Likewise.
5434 (struct mapped_debug_names): Remove constructor.
5435 <dwarf2_per_objfile>: Remove field.
5436 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5437 (mapped_index_base::find_name_components_bounds,
5438 mapped_index_base::build_name_components,
5439 dw2_expand_symtabs_matching_symbol): Likewise.
5440 (class mock_mapped_index) <symbol_name_at>: Likewise.
5441 (check_match): Likewise.
5442 (check_find_bounds_finds): Likewise.
5443 (test_mapped_index_find_name_component_bounds): Update.
5444 (CHECK_MATCH): Update.
5445 (dw2_expand_symtabs_matching): Update.
5446 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5447 per_objfile parameter.
5448 <find_vec_in_debug_names>: Likewise.
5449 <m_per_objfile>: New field.
5450 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5451 parameter.
5452 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5453 (dw2_debug_names_iterator::next): Update.
5454 (dw2_debug_names_lookup_symbol): Update.
5455 (dw2_debug_names_expand_symtabs_for_function): Update.
5456 (dw2_debug_names_map_matching_symbols): Update.
5457 (dw2_debug_names_expand_symtabs_matching): Update.
5458 (dwarf2_read_debug_names): Update.
5459
7188ed02
SM
54602020-05-27 Simon Marchi <simon.marchi@efficios.com>
5461
5462 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5463 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5464 move to dwarf2_per_objfile.
5465 <read_in_chain>: Remove.
5466 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5467 remove_all_cus, age_comp_units>: New methods.
5468 <m_dwarf2_cus>: New member.
5469 (struct dwarf2_per_cu_data) <cu>: Remove.
5470 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5471 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5472 moved to methods of dwarf2_per_objfile.
5473 (dwarf2_clear_marks): Remove.
5474 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5475 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5476 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5477 (dwarf2_per_objfile::remove_all_cus): New.
5478 (class free_cached_comp_units) <~free_cached_comp_units>:
5479 Update.
5480 (load_cu): Update.
5481 (dw2_do_instantiate_symtab): Adjust.
5482 (fill_in_sig_entry_from_dwo_entry): Adjust.
5483 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5484 (cutu_reader::cutu_reader): Likewise.
5485 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5486 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5487 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5488 and dwarf2_per_objfile::age_comp_units.
5489 (load_partial_comp_unit): Update.
5490 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5491 (process_queue): Likewise.
5492 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5493 backlink.
5494 (dwarf2_read_addr_index): Likewise.
5495 (follow_die_offset): Likewise.
5496 (dwarf2_fetch_die_loc_sect_off): Likewise.
5497 (dwarf2_fetch_constant_bytes): Likewise.
5498 (dwarf2_fetch_die_type_sect_off): Likewise.
5499 (follow_die_sig_1): Likewise.
5500 (load_full_type_unit): Likewise.
5501 (read_signatured_type): Likewise.
5502 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5503 (dwarf2_cu::~dwarf2_cu): Remove.
5504 (dwarf2_per_objfile::get_cu): New.
5505 (dwarf2_per_objfile::set_cu): New.
5506 (age_cached_comp_units): Rename to...
5507 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5508 to std::unordered_map.
5509 (free_one_cached_comp_unit): Rename to...
5510 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5511 to std::unordered_map.
5512 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5513 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5514 a dwarf2_per_objfile in data.
5515 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5516 (dwarf2_clear_marks): Remove.
5517
2e671100
SM
55182020-05-27 Simon Marchi <simon.marchi@efficios.com>
5519
5520 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5521 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5522 (init_tu_and_read_dwo_dies): Likewise.
5523 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5524 (cutu_reader::cutu_reader): Likewise.
5525 (load_partial_comp_unit): Likewise.
5526 (process_psymtab_comp_unit): Update.
5527 (build_type_psymtabs_1): Update.
5528 (process_skeletonless_type_unit): Update.
5529 (load_full_comp_unit): Update.
5530 (find_partial_die): Update.
5531 (dwarf2_read_addr_index): Update.
5532 (read_signatured_type): Update.
5533
2e6a9f79
SM
55342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5535
5536 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5537 m_header_read_in>: New fields.
5538 <get_header>: New method.
5539 * dwarf2/read.c (per_cu_header_read_in): Remove.
5540 (dwarf2_per_cu_data::get_header): New.
5541 (dwarf2_per_cu_data::addr_size): Update.
5542 (dwarf2_per_cu_data::offset_size): Update.
5543 (dwarf2_per_cu_data::ref_addr_size): Update.
5544
1b555f17
SM
55452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5546
5547 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5548 (dw2_do_instantiate_symtab): Update.
5549 (queue_and_load_all_dwo_tus): Change parameter from
5550 dwarf2_per_cu_data to dwarf2_cu.
5551 (dwarf2_fetch_die_loc_sect_off): Update.
5552 (dwarf2_fetch_constant_bytes): Update.
5553 (dwarf2_fetch_die_type_sect_off): Update.
5554
8fc0b21d
SM
55552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5556
5557 * dwarf2/read.c (process_full_comp_unit,
5558 process_full_type_unit): Remove per_cu, per_objfile paramters.
5559 Add dwarf2_cu parameter.
5560 (process_queue): Update.
5561
168c9250
SM
55622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5563
5564 * dwarf2/read.c (create_cu_from_index_list): Replace
5565 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5566 (create_cus_from_index_list): Likewise.
5567 (create_cus_from_index): Likewise.
5568 (create_signatured_type_table_from_index): Likewise.
5569 (create_cus_from_debug_names_list): Likewise.
5570 (create_cus_from_debug_names): Likewise.
5571 (dwarf2_read_gdb_index): Update.
5572 (dwarf2_read_debug_names): Update.
5573
e286671b
TT
55742020-05-27 Tom Tromey <tom@tromey.com>
5575 Simon Marchi <simon.marchi@efficios.com>
5576
5577 * dwarf2/read.h (struct dwarf2_per_objfile)
5578 <get_type_for_signatured_type, set_type_for_signatured_type>:
5579 New methods.
5580 <m_type_map>: New member.
5581 (struct signatured_type) <type>: Remove.
5582 * dwarf2/read.c
5583 (dwarf2_per_objfile::get_type_for_signatured_type,
5584 dwarf2_per_objfile::set_type_for_signatured_type): New.
5585 (get_signatured_type): Use new methods.
5586
8adb8487
TT
55872020-05-27 Tom Tromey <tom@tromey.com>
5588 Simon Marchi <simon.marchi@efficios.com>
5589
5590 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5591 (struct dwarf2_per_objfile) <type_units>: New member.
5592 <get_type_unit_group_unshareable>: New method.
5593 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5594 num_symtabs, symtabs>: Remove; move to
5595 type_unit_group_unshareable.
5596 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5597 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5598 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5599
127bbf4b
SM
56002020-05-27 Simon Marchi <simon.marchi@efficios.com>
5601
5602 * dwarf2/read.h (struct dwarf2_per_cu_data):
5603 <dwarf2_per_objfile>: Remove.
5604 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5605 dwarf2_per_objfile.
5606 (create_signatured_type_table_from_index): Likewise.
5607 (create_signatured_type_table_from_debug_names): Likewise.
5608 (create_debug_type_hash_table): Likewise.
5609 (fill_in_sig_entry_from_dwo_entry): Likewise.
5610 (create_type_unit_group): Likewise.
5611 (read_comp_units_from_section): Likewise.
5612 (create_cus_hash_table): Likewise.
5613
f6e649dd
SM
56142020-05-27 Simon Marchi <simon.marchi@efficios.com>
5615
5616 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5617 dwarf2_per_cu_data::dwarf2_per_objfile.
5618 (compute_compunit_symtab_includes): Likewise.
5619 (dwarf2_cu::start_symtab): Likewise.
5620
aa66c379
SM
56212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5622
5623 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5624 parameter.
5625 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5626 (read_namespace_alias): Update.
5627 (lookup_die_type): Update.
5628 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5629 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5630 Update.
5631 (disassemble_dwarf_expression): Update.
5632
120ce1b5
SM
56332020-05-27 Simon Marchi <simon.marchi@efficios.com>
5634
5635 * dwarf2/read.h (struct dwarf2_queue_item): Add
5636 dwarf2_per_objfile parameter, assign new parameter.
5637 <per_objfile>: New field.
5638 * dwarf2/read.c (free_one_cached_comp_unit): Add
5639 dwarf2_per_objfile parameter.
5640 (queue_comp_unit): Likewise.
5641 (dw2_do_instantiate_symtab): Update.
5642 (process_psymtab_comp_unit): Update.
5643 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5644 (process_imported_unit_die): Update.
5645 (queue_and_load_dwo_tu): Update.
5646 (follow_die_offset): Update.
5647 (follow_die_sig_1): Update.
5648
9f47c707
SM
56492020-05-27 Simon Marchi <simon.marchi@efficios.com>
5650
5651 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5652 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5653 (read_call_site_scope): Assign per_objfile.
5654 (dwarf2_per_cu_data::objfile): Remove.
5655 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5656 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5657 dwarf2_per_objfile parameter.
5658 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5659 dwarf2_per_objfile parameter.
5660 (dwarf_expr_reg_to_entry_parameter): Add output
5661 dwarf2_per_objfile parameter.
5662 (locexpr_get_frame_base): Update.
5663 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5664 <push_dwarf_reg_entry_value>: Update.
5665 <call_site_to_target_addr>: Update.
5666 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5667 parameter.
5668 (value_of_dwarf_reg_entry): Update.
5669 (rw_pieced_value): Update.
5670 (indirect_synthetic_pointer): Update.
5671 (dwarf2_evaluate_property): Update.
5672 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5673 parameter.
5674 (locexpr_read_variable): Update.
5675 (locexpr_get_symbol_read_needs): Update.
5676 (loclist_read_variable): Update.
5677
14095eb3
SM
56782020-05-27 Simon Marchi <simon.marchi@efficios.com>
5679
5680 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5681 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5682 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5683 parameter.
5684 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5685 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5686 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5687 parameter.
5688 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5689 sect_variable_value): Add dwarf2_per_objfile parameter.
5690 (class dwarf_evaluate_loc_desc) <dwarf_call,
5691 dwarf_variable_value>: Update.
5692 (fetch_const_value_from_synthetic_pointer): Add
5693 dwarf2_per_objfile parameter.
5694 (fetch_const_value_from_synthetic_pointer): Update.
5695 (coerced_pieced_ref): Update.
5696 (class symbol_needs_eval_context) <dwarf_call,
5697 dwarf_variable_value>: Update.
5698 (dwarf2_compile_expr_to_ax): Update.
5699
3c3cd3d4
SM
57002020-05-27 Simon Marchi <simon.marchi@efficios.com>
5701
5702 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5703 parameter.
5704 (dwarf2_evaluate_loc_desc_full): Update.
5705
82ca3f51
SM
57062020-05-27 Simon Marchi <simon.marchi@efficios.com>
5707
5708 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5709 parameter.
5710 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5711 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5712 dwarf2_per_objfile parameter.
5713 (decode_debug_loc_dwo_addresses): Likewise.
5714 (dwarf2_find_location_expression): Update.
5715 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5716 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5717 parameter.
5718 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5719 parameter.
5720 (locexpr_describe_location_1): Likewise.
5721 (locexpr_describe_location): Update.
5722
4b167ea1
SM
57232020-05-27 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5726 Remove.
5727 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5728 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5729 (dwarf2_compile_property_to_c): Update.
5730 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5731 use text offset from objfile.
5732 (locexpr_tracepoint_var_ref): Update.
5733 (locexpr_generate_c_location): Update.
5734 (loclist_describe_location): Update.
5735 (loclist_tracepoint_var_ref): Update.
5736 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5737 dwarf2_per_objfile parameter.
5738 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5739 use text offset from objfile.
5740 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5741
89b07335
SM
57422020-05-27 Simon Marchi <simon.marchi@efficios.com>
5743
5744 * dwarf2/expr.h (struct dwarf_expr_context)
5745 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5746 <offset>: Remove.
5747 <per_objfile>: New member.
5748 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5749 dwarf2_per_objfile parameter. Don't set offset, set
5750 per_objfile.
5751 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5752 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5753 a dwarf2_per_objfile object instead of an offset.
5754 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5755 constructor.
5756 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5757 to dwarf2_expr_executor constructor. Don't set offset.
5758 (dwarf2_fetch_cfa_info): Update.
5759 (struct dwarf2_frame_cache) <text_offset>: Remove.
5760 <per_objfile>: New field.
5761 (dwarf2_frame_cache): Update.
5762 (dwarf2_frame_prev_register): Update.
5763 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5764 <dwarf_evaluate_loc_desc>: Add constructor.
5765 (dwarf2_evaluate_loc_desc_full): Update.
5766 (dwarf2_locexpr_baton_eval): Update.
5767 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5768 Add constructor.
5769 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5770
293e7e51
SM
57712020-05-27 Simon Marchi <simon.marchi@efficios.com>
5772
5773 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5774 addr_sized_int_type>: Move to dwarf2_cu.
5775 <int_type>: Move to dwarf2_per_objfile.
5776 (struct dwarf2_per_objfile) <int_type>: Move here.
5777 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5778 addr_sized_int_type>: Move here.
5779 (read_func_scope): Update.
5780 (read_array_type): Update.
5781 (read_tag_string_type): Update.
5782 (attr_to_dynamic_prop): Update.
5783 (dwarf2_per_cu_data::int_type): Rename to...
5784 (dwarf2_per_objfile::int_type): ... this.
5785 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5786 (dwarf2_cu::addr_sized_int_type): ... this.
5787 (read_subrange_type): Update.
5788 (dwarf2_per_cu_data::addr_type): Rename to...
5789 (dwarf2_cu::addr_type): ... this.
5790 (set_die_type): Update.
5791
64874a40
SM
57922020-05-27 Simon Marchi <simon.marchi@efficios.com>
5793
5794 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5795 data through per_cu->cu.
5796
4ab09049
SM
57972020-05-27 Simon Marchi <simon.marchi@efficios.com>
5798
5799 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5800 dwarf2_per_cu_data parameter fo dwarf2_cu.
5801 (lookup_dwo_type_unit): Likewise.
5802 (read_cutu_die_from_dwo): Likewise.
5803 (lookup_dwo_unit): Likewise.
5804 (open_and_init_dwo_file): Likewise.
5805 (lookup_dwo_cutu): Likewise.
5806 (lookup_dwo_comp_unit): Likewise.
5807 (lookup_dwo_type_unit): Likewise.
5808 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5809 (cutu_reader::cutu_reader): Update.
5810
47b14e86
SM
58112020-05-27 Simon Marchi <simon.marchi@efficios.com>
5812
5813 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5814 parameter.
5815 (process_full_type_unit): Likewise.
5816 (process_queue): Update.
5817
43182c09
SM
58182020-05-27 Simon Marchi <simon.marchi@efficios.com>
5819
5820 * dwarf2/read.c (recursively_compute_inclusions): Add
5821 dwarf2_per_objfile parameter.
5822 (compute_compunit_symtab_includes): Likewise.
5823 (process_cu_includes): Update.
5824
7aa104c4
SM
58252020-05-27 Simon Marchi <simon.marchi@efficios.com>
5826
5827 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5828 parameter.
5829 (create_type_unit_group): Update.
5830 (process_psymtab_comp_unit_reader): Update.
5831 (build_type_psymtabs_reader): Update.
5832
e3beb21d
SM
58332020-05-27 Simon Marchi <simon.marchi@efficios.com>
5834
5835 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5836 object through m_this_cu->cu.
5837
d460f660
SM
58382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5839
5840 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5841 the info parameter.
5842 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5843
ab432490
SM
58442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5845
5846 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5847 per_objfile parameter.
5848 (load_full_type_unit): Add per_objfile parameter.
5849 (read_signatured_type): Likewise.
5850 (load_full_comp_unit): Likewise.
5851 (load_cu): Likewise.
5852 (dw2_do_instantiate_symtab): Likewise.
5853 (dw2_get_file_names): Likewise.
5854 (dw2_map_symtabs_matching_filename): Update.
5855 (dw_expand_symtabs_matching_file_matcher): Update.
5856 (dw2_map_symbol_filenames): Update.
5857 (process_psymtab_comp_unit): Add per_objfile parameter.
5858 (build_type_psymtabs_1): Update.
5859 (process_skeletonless_type_unit): Update.
5860 (dwarf2_build_psymtabs_hard): Update.
5861 (load_partial_comp_unit): Add per_objfile parameter.
5862 (scan_partial_symbols): Update.
5863 (load_full_comp_unit): Add per_objfile parameter.
5864 (process_imported_unit_die): Update.
5865 (create_cus_hash_table): Update.
5866 (find_partial_die): Update.
5867 (dwarf2_read_addr_index): Update.
5868 (follow_die_offset): Update.
5869 (dwarf2_fetch_die_loc_sect_off): Update.
5870 (dwarf2_fetch_constant_bytes): Update.
5871 (dwarf2_fetch_die_type_sect_off): Update.
5872 (follow_die_sig_1): Update.
5873 (load_full_type_unit): Add per_objfile parameter.
5874 (read_signatured_type): Likewise.
5875
313bad1b
SM
58762020-05-27 Simon Marchi <simon.marchi@efficios.com>
5877
5878 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5879 of objfile_name.
5880
c3699833
SM
58812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5882
5883 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5884 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5885 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5886 field.
5887 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5888 (create_cus_from_index): Update.
5889 (dwarf2_read_gdb_index): Update.
5890 (create_cus_from_debug_names): Update.
5891 (dwarf2_read_debug_names): Update.
5892 (get_abbrev_section_for_cu): Update.
5893 (create_all_comp_units): Update.
5894 (read_attribute_value): Update.
5895 (get_debug_line_section): Update.
5896 * dwarf2/index-cache.c (index_cache::store): Update.
5897 * dwarf2/index-write.c (save_gdb_index_command): Update.
5898 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5899
1859c670
SM
59002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5901
5902 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5903 member.
5904 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5905 dwarf2_per_cu_data::per_bfd.
5906 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5907 (create_type_unit_group): Likewise.
5908 (queue_comp_unit): Remove reference to
5909 per_cu->dwarf2_per_objfile.
5910 (maybe_queue_comp_unit): Likewise.
5911 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5912 (create_cus_hash_table): Assign new field.
5913
5e22e966
SM
59142020-05-27 Simon Marchi <simon.marchi@efficios.com>
5915
5916 * dwarf2/read.c: Replace
5917 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5918 dwarf2_cu->per_objfile throughout.
5919
97a1449a
SM
59202020-05-27 Simon Marchi <simon.marchi@efficios.com>
5921
5922 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5923 parameter, don't use per_cu->dwarf2_per_objfile.
5924 (dw2_instantiate_symtab): Likewise.
5925 (dw2_find_last_source_symtab): Update.
5926 (dw2_map_expand_apply): Update.
5927 (dw2_lookup_symbol): Update.
5928 (dw2_expand_symtabs_for_function): Update.
5929 (dw2_expand_all_symtabs): Update.
5930 (dw2_expand_symtabs_with_fullname): Update.
5931 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5932 don't use per_cu->dwarf2_per_objfile.
5933 (dw2_expand_marked_cus): Update.
5934 (dw2_find_pc_sect_compunit_symtab): Update.
5935 (dw2_debug_names_lookup_symbol): Update.
5936 (dw2_debug_names_expand_symtabs_for_function): Update.
5937 (dw2_debug_names_map_matching_symbols): Update.
5938 (dwarf2_psymtab::expand_psymtab): Update.
5939
9e021579
SM
59402020-05-27 Simon Marchi <simon.marchi@efficios.com>
5941
5942 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5943 <per_objfile>: New member.
5944 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5945 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5946 call to dwarf2_cu.
5947 (cutu_reader::cutu_reader): Update.
5948 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5949
ae090bdb
SM
59502020-05-27 Simon Marchi <simon.marchi@efficios.com>
5951
5952 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5953 struct dwarf2_per_objfile.
5954 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5955 dwarf2_per_bfd.
5956 * dwarf2/read.c (set_die_type): Update.
5957 (get_die_type_at_offset): Update.
5958
af758d11
SM
59592020-05-27 Tom Tromey <tom@tromey.com>
5960 Simon Marchi <simon.marchi@efficios.com>
5961
5962 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5963 method.
5964 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5965 get_symtab, set_symtab>: New methods.
5966 <m_symtabs>: New field.
5967 (struct dwarf2_psymtab): Derive from partial_symtab.
5968 <readin_p, get_compunit_symtab>: Declare methods.
5969 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5970 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5971 New methods.
5972 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5973 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5974 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5975 (dw2_symtab_iter_next, dw2_print_stats)
5976 (dw2_expand_symtabs_with_fullname)
5977 (dw2_expand_symtabs_matching_one)
5978 (dw_expand_symtabs_matching_file_matcher)
5979 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5980 (dw2_debug_names_iterator::next)
5981 (dw2_debug_names_map_matching_symbols)
5982 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5983 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5984 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5985 New methods.
5986 (get_compunit_symtab, process_full_comp_unit)
5987 (process_full_type_unit): Update.
5988 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5989
5989a64e
SM
59902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5991
5992 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5993 then introduce a new dwarf2_per_objfile type.
5994 <read_line_string>: Move to the new dwarf2_per_objfile type.
5995 <objfile>: Likewise.
5996 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5997 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5998 dwarf2_per_objfile->per_bfd.
5999 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6000 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6001 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6002 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6003 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6004 (dwarf2_per_objfile::locate_sections): Rename to...
6005 (dwarf2_per_bfd::locate_sections): ... this.
6006 (dwarf2_per_objfile::get_cutu): Rename to...
6007 (dwarf2_per_bfd::get_cutu): ... this.
6008 (dwarf2_per_objfile::get_cu): Rename to...
6009 (dwarf2_per_bfd::get_cu): ... this.
6010 (dwarf2_per_objfile::get_tu): Rename to...
6011 (dwarf2_per_bfd::get_tu): ... this.
6012 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6013 (dwarf2_per_bfd::allocate_per_cu): ... this.
6014 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6015 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6016 (get_gdb_index_contents_ftype): Change parameter from
6017 dwarf2_per_objfile to dwarf2_per_bfd.
6018 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6019 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6020
a50264ba
TT
60212020-05-27 Tom Tromey <tom@tromey.com>
6022 Simon Marchi <simon.marchi@efficios.com>
6023
6024 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6025 (allocate_piece_closure): Set "per_objfile" member.
6026 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6027 (locexpr_describe_location, loclist_describe_location): Use new
6028 member.
6029 * dwarf2/read.c (read_call_site_scope)
6030 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6031 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6032 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6033 handle_data_member_location): Set per_objfile member.
6034 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6035 member.
6036 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6037
d3473f0c
TT
60382020-05-27 Tom Tromey <tom@tromey.com>
6039
6040 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6041 allocate_signatured_type>: Declare new methods.
6042 <m_num_psymtabs>: New member.
6043 (struct dwarf2_per_cu_data) <index>: New member.
6044 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6045 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6046 (create_cu_from_index_list): Use allocate_per_cu.
6047 (create_signatured_type_table_from_index)
6048 (create_signatured_type_table_from_debug_names)
6049 (create_debug_type_hash_table, add_type_unit)
6050 (read_comp_units_from_section): Use allocate_signatured_type.
6051
5717c425
TT
60522020-05-27 Tom Tromey <tom@tromey.com>
6053
6054 * psymtab.c (partial_map_expand_apply)
6055 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6056 (psym_lookup_global_symbol_language)
6057 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6058 (psym_print_stats, psym_expand_symtabs_for_function)
6059 (psym_map_symbol_filenames, psym_map_matching_symbols)
6060 (psym_expand_symtabs_matching)
6061 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6062 (maintenance_check_psymtabs): Update.
6063 * psympriv.h (struct partial_symtab) <readin_p,
6064 get_compunit_symtab>: Add objfile parameter.
6065 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6066 Likewise.
6067 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6068 get_compunit_symtab>: Likewise.
6069 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6070
45940949
TT
60712020-05-27 Tom Tromey <tom@tromey.com>
6072
6073 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6074 member.
6075 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6076 (create_cu_from_index_list)
6077 (create_signatured_type_table_from_index)
6078 (create_signatured_type_table_from_debug_names)
6079 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6080 (dwarf2_create_include_psymtab)
6081 (create_debug_type_hash_table, add_type_unit)
6082 (create_type_unit_group, read_comp_units_from_section)
6083 (dwarf2_compute_name, create_cus_hash_table)
6084 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6085 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6086 obstack.
6087 (dw2_get_real_path): Likewise. Change argument to
6088 dwarf2_per_objfile.
6089
f8c6d152
LM
60902020-05-27 Luis Machado <luis.machado@linaro.org>
6091
6092 PR tdep/26000
6093 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6094 for ldrd (immediate).
6095
e98d2e6d
PW
60962020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6097
6098 * command.h: Add comment giving the name of class_tui.
6099 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6100 create the fake command for the help for class_tui.
6101
53a47a3e
TT
61022020-05-26 Tom Tromey <tromey@adacore.com>
6103
6104 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6105 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6106 (val_atr): New function.
6107 (value_val_atr): Use it.
6108 * ada-valprint.c (print_optional_low_bound): Change low bound
6109 handling for enums.
6110 (val_print_packed_array_elements): Don't call discrete_position.
6111 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6112 discrete_position for enum types.
6113 * language.c (default_print_array_index): Change type.
6114 * language.h (struct language_defn) <la_print_array_index>: Add
6115 index_type parameter, change type of index_value.
6116 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6117 (default_print_array_index): Update.
6118 * valprint.c (maybe_print_array_index): Don't call
6119 value_from_longest. Update.
6120 (value_print_array_elements): Don't call discrete_position.
6121
0bc2354b
TT
61222020-05-26 Tom Tromey <tromey@adacore.com>
6123
6124 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6125 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6126
1218a4bf
CDA
61272020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6128
6129 PR gdb/13519
6130 * avr-tdep.c (avr_integer_to_address): Return data or code
6131 address accordingly to the second 'type' argument of the
6132 function.
6133
92651b1d
MW
61342020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6135
6136 * infcmd.c, inferior.h: (construct_inferior_arguments):
6137 Moved function from here to gdbsupport/common-inferior.{h,cc}
6138
0a4f5f8c
TT
61392020-05-23 Tom Tromey <tom@tromey.com>
6140
6141 Revert commit eca1f90c:
6142 * NEWS: Remove entry for completion styling.
6143 * completer.c (_rl_completion_prefix_display_length): Move
6144 declaration later.
6145 (gdb_fnprint): Revert.
6146 (gdb_display_match_list_1): Likewise.
6147 * cli/cli-style.c (completion_prefix_style)
6148 (completion_difference_style, completion_suffix_style): Remove.
6149 (_initialize_cli_style): Revert.
6150 * cli/cli-style.h (completion_prefix_style)
6151 (completion_difference_style, completion_suffix_style): Don't
6152 declare.
6153
e08bd6c5
PA
61542020-05-24 Pedro Alves <palves@redhat.com>
6155
6156 * symtab.c (completion_list_add_name): Return boolean indication
6157 of whether the symbol matched.
6158 (completion_list_add_symbol): Don't try to remove C++ aliases if
6159 the symbol didn't match in the first place.
6160 * symtab.h (completion_list_add_name): Return bool.
6161
ceacbf6e
SM
61622020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6163
6164 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6165 type::field.
6166
26f16254
JB
61672020-05-23 Joel Brobecker <brobecker@adacore.com>
6168
6169 GDB 9.2 released.
6170
eca1f90c
TT
61712020-05-23 Tom Tromey <tom@tromey.com>
6172
6173 * NEWS: Add entry for completion styling.
6174 * completer.c (_rl_completion_prefix_display_length): Move
6175 declaration earlier.
6176 (gdb_fnprint): Use completion_style.
6177 (gdb_display_match_list_1): Likewise.
6178 * cli/cli-style.c (completion_prefix_style)
6179 (completion_difference_style, completion_suffix_style): New
6180 globals.
6181 (_initialize_cli_style): Register new globals.
6182 * cli/cli-style.h (completion_prefix_style)
6183 (completion_difference_style, completion_suffix_style): Declare.
6184
51e2cfa2
PA
61852020-05-23 Pedro Alves <palves@redhat.com>
6186
6187 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6188 (parse_escape): Use ISDIGIT instead of isdigit.
6189 (puts_debug): Use gdb_isprint instead of isprint.
6190 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6191 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6192 ISSPACE instead of isspace.
6193 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6194 instead of isspace.
6195 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6196 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6197 instead of isxdigit and ISDIGIT instead of isdigit.
6198
80fc5e77
SM
61992020-05-22 Simon Marchi <simon.marchi@efficios.com>
6200
6201 * gdbtypes.h (struct type) <field>: New method.
6202 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6203 or type::field.
6204
3cabb6b0
SM
62052020-05-22 Simon Marchi <simon.marchi@efficios.com>
6206
6207 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6208 (TYPE_FIELDS): Use type::fields. Change all call sites that
6209 modify the propery to use type::set_fields instead.
6210
1f704f76
SM
62112020-05-22 Simon Marchi <simon.marchi@efficios.com>
6212
6213 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6214 type::num_fields instead.
6215
5e33d5f4
SM
62162020-05-22 Simon Marchi <simon.marchi@efficios.com>
6217
6218 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6219 methods.
6220 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6221 that modify the number of fields to use type::set_num_fields
6222 instead.
6223
9392ebb3
TT
62242020-05-22 Tom Tromey <tromey@adacore.com>
6225
6226 * compile/compile-object-load.h (munmap_list_free): Don't
6227 declare.
6228
7c13f4e8
AB
62292020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6230
6231 * annotate.c (annotate_source_line): Update return type, add call
6232 to update current symtab and line.
6233 * annotate.h (annotate_source_line): Update return type, and
6234 extend header comment.
6235 * source.c (info_line_command): Check annotation_level before
6236 calling annotate_source_line.
6237 * stack.c (print_frame_info): If calling annotate_source_line
6238 returns true, then don't print any other source line information.
6239
aa370940
SM
62402020-05-21 Simon Marchi <simon.marchi@efficios.com>
6241
6242 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6243
84d53fa9
SM
62442020-05-21 Simon Marchi <simon.marchi@efficios.com>
6245
6246 * coffread.c (patch_type): Remove NULL check before xfree.
6247 * corefile.c (set_gnutarget): Likewise.
6248 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6249 * exec.c (build_section_table): Likewise.
6250 * remote.c (remote_target::pass_signals): Likewise.
6251 * utils.c (n_spaces): Likewise.
6252 * cli/cli-script.c (document_command): Likewise.
6253 * i386-windows-tdep.c (core_process_module_section): Likewise.
6254 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6255
9d428aae
SM
62562020-05-20 Simon Marchi <simon.marchi@efficios.com>
6257
6258 * symfile.c (reread_symbols): Clear objfile's section_offsets
6259 vector and section indices, re-compute them by calling
6260 sym_offsets.
6261
250106a7
TT
62622020-05-20 Tom Tromey <tromey@adacore.com>
6263
6264 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6265 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6266
9a0bacfb
TV
62672020-05-20 Tom de Vries <tdevries@suse.de>
6268
6269 PR symtab/25833
6270 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6271
7b958a48
AM
62722020-05-20 Alan Modra <amodra@gmail.com>
6273
6274 PR 25993
6275 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6276 bfd_set_filename.
6277 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6278 passed to bfd_set_filename.
6279 * symfile-mem.c (add_vsyscall_page): Likewise for string
6280 passed to symbol_file_add_from_memory.
6281 (symbol_file_add_from_memory): Make name param a const char* and
6282 don't strdup.
6283
c7e97679
AM
62842020-05-20 Alan Modra <amodra@gmail.com>
6285
6286 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6287 rather than accessing bfd->filename directly.
6288 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6289 and use bfd_section_name.
6290 * dwarf2/frame.c (decode_frame_entry): Likewise.
6291 * exec.c (exec_set_section_address): Likewise.
6292 * solib-aix.c (solib_aix_bfd_open): Likewise.
6293 * stap-probe.c (get_stap_base_address): Likewise.
6294 * symfile.c (reread_symbols): Likewise.
6295
563c591b
TT
62962020-05-19 Tom Tromey <tromey@adacore.com>
6297
6298 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6299
f408d82c
SM
63002020-05-19 Simon Marchi <simon.marchi@efficios.com>
6301
6302 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6303
98c59b52
PA
63042020-05-19 Pedro Alves <palves@redhat.com>
6305
6306 * NEWS (set exec-file-mismatch): Adjust entry.
6307 * exec.c: Include "build-id.h".
6308 (validate_exec_file): Try to match build IDs instead of filenames.
6309 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6310 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6311 and pass down 'warn_if_slow'.
6312 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6313 gdb_bfd_open_closure to pass it down.
6314 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6315
4111f652
PA
63162020-05-19 Pedro Alves <palves@redhat.com>
6317
6318 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6319 * target.c (target_fileio_open_1): Rename to target_fileio_open
6320 and make extern. Use bool.
6321 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6322 (target_fileio_read_alloc_1): Adjust.
6323 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6324 (target_fileio_open_warn_if_slow): Delete declaration.
6325
ad80db5b
PA
63262020-05-19 Pedro Alves <palves@redhat.com>
6327
6328 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6329 Adjust all callers.
6330
1d6ce4d3
YS
63312020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6332
6333 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6334 whether disp is negative.
6335
9005fbbb
SM
63362020-05-19 Simon Marchi <simon.marchi@efficios.com>
6337
6338 * symfile.h (struct symfile_segment_data)
6339 <~symfile_segment_data>: Remove.
6340 <segment_info>: Change to std::vector.
6341 * symfile.c (default_symfile_segments): Update.
6342 * elfread.c (elf_symfile_segments): Update.
6343
68b888ff
SM
63442020-05-19 Simon Marchi <simon.marchi@efficios.com>
6345
6346 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6347 <segments>: New.
6348 <segment_bases, segment_sizes>: Remove.
6349 * symfile.c (default_symfile_segments): Update.
6350 * elfread.c (elf_symfile_segments): Update.
6351 * remote.c (remote_target::get_offsets): Update.
6352 * solib-target.c (solib_target_relocate_section_addresses):
6353 Update.
6354
62982abd
SM
63552020-05-19 Simon Marchi <simon.marchi@efficios.com>
6356
6357 * symfile.h (struct symfile_segment_data): Initialize fields.
6358 <~symfile_segment_data>: Add.
6359 (symfile_segment_data_up): New.
6360 (struct sym_fns) <sym_segments>: Return a
6361 symfile_segment_data_up.
6362 (default_symfile_segments): Return a symfile_segment_data_up.
6363 (free_symfile_segment_data): Remove.
6364 (get_symfile_segment_data): Return a symfile_segment_data_up.
6365 * symfile.c (default_symfile_segments): Likewise.
6366 (get_symfile_segment_data): Likewise.
6367 (free_symfile_segment_data): Remove.
6368 (symfile_find_segment_sections): Update.
6369 * elfread.c (elf_symfile_segments): Return a
6370 symfile_segment_data_up.
6371 * remote.c (remote_target::get_offsets): Update.
6372 * solib-target.c (solib_target_relocate_section_addresses):
6373 Update.
6374 * symfile-debug.c (debug_sym_segments): Return a
6375 symfile_segment_data_up.
6376
7f204339
RO
63772020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6378
e52a0f1b
RO
6379 PR build/25981
6380 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6381 Hardcode register numbers.
6382
7f204339
RO
6383 PR build/25981
6384 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6385 procfs_find_LDT_entry): Remove.
6386 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6387 procfs_find_LDT_entry): Remove.
6388 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6389 Remove.
6390
7f32a4d5
PA
63912020-05-17 Pedro Alves <palves@redhat.com>
6392 Andrew Burgess <andrew.burgess@embecosm.com>
6393 Keno Fischer <keno@juliacomputing.com>
6394
6395 PR gdb/25741
6396 * breakpoint.c (build_target_condition_list): Update comments.
6397 (build_target_command_list): Update comments and skip matching
6398 locations.
6399 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6400 a separate function. Simplify "set breakpoint auto-hw off"
6401 handling.
6402 (insert_breakpoints): Update comment.
6403 (tracepoint_locations_match): New parameter. For breakpoints,
6404 compare location types too, if the caller wants to.
6405 (handle_automatic_hardware_breakpoints): New functions.
6406 (bp_location_is_less_than): Also sort by location type and
6407 hardware breakpoint length.
6408 (update_global_location_list): Handle "set breakpoint auto-hw on"
6409 here.
6410 (update_breakpoint_locations): Ask breakpoint_locations_match to
6411 ignore location types.
6412
7d93a1e0
SM
64132020-05-16 Simon Marchi <simon.marchi@efficios.com>
6414
6415 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6416 type::name instead.
6417
d0e39ea2
SM
64182020-05-16 Simon Marchi <simon.marchi@efficios.com>
6419
6420 * gdbtypes.h (struct type) <name, set_name>: New methods.
6421 (TYPE_CODE): Use type::name. Change all call sites used to set
6422 the name to use type::set_name instead.
6423
2dab0c7b
TT
64242020-05-16 Tom Tromey <tom@tromey.com>
6425
6426 * top.c (quit_force): Update.
6427 * infrun.c (handle_no_resumed): Update.
6428 * top.h (all_uis): New function.
6429 (ALL_UIS): Remove.
6430
59f7bd8d
SM
64312020-05-16 Simon Marchi <simon.marchi@efficios.com>
6432
6433 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6434
9bf058f0
PA
64352020-05-16 Pedro Alves <palves@redhat.com>
6436
6437 * ia64-linux-nat.c
6438 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6439 Declare method.
6440 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6441
8f86ae1a
SM
64422020-05-15 Simon Marchi <simon.marchi@efficios.com>
6443
6444 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6445 (sparc64_adi_info): Likewise.
6446
d6bc0792
TT
64472020-05-15 Tom Tromey <tom@tromey.com>
6448
6449 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6450 block_objfile.
6451 (lookup_objfile_from_block): Remove.
6452 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6453 (lookup_global_symbol): Use block_objfile.
6454 * symtab.h (lookup_objfile_from_block): Don't declare.
6455 * printcmd.c (clear_dangling_display_expressions): Use
6456 block_objfile.
6457 * parse.c (operator_check_standard): Use block_objfile.
6458
8c14c3a3
TT
64592020-05-15 Tom Tromey <tom@tromey.com>
6460
6461 * language.c (language_alloc_type_symbol): Set
6462 SYMBOL_SECTION.
6463 * symtab.c (initialize_objfile_symbol): Remove.
6464 (allocate_symbol): Remove.
6465 (allocate_template_symbol): Remove.
6466 * dwarf2/read.c (fixup_go_packaging): Use "new".
6467 (new_symbol): Use "new".
6468 (read_variable): Don't call initialize_objfile_symbol. Use
6469 "new".
6470 (read_func_scope): Use "new".
6471 * xcoffread.c (process_xcoff_symbol): Don't call
6472 initialize_objfile_symbol.
6473 (SYMBOL_DUP): Remove.
6474 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6475 "new".
6476 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6477 (allocate_template_symbol): Don't declare.
6478 (struct symbol): Add copy constructor. Change defaults.
6479 * jit.c (finalize_symtab): Use "new".
6480 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6481 Use "new".
6482 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6483 (common_block_end): Use "new".
6484 * mdebugread.c (parse_symbol): Use "new".
6485 (new_symbol): Likewise.
6486
5b4a1a8d
PW
64872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6488
6489 * NEWS: Mention changes to help and apropos.
6490
57b4f16e
PW
64912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6492
6493 * command.h (enum command_class): Improve comments, document
6494 that class_alias is for user-defined aliases, give the class
6495 name for each class, remove unused class_xdb.
6496 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6497 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6498 by a precise class.
6499 * infcmd.c (_initialize_infcmd): Likewise.
6500 * reverse.c (_initialize_reverse): Likewise.
6501 * stack.c (_initialize_stack): Likewise.
6502 * symfile.c (_initialize_symfile): Likewise.
6503 * tracepoint.c (_initialize_tracepoint): Likewise.
6504
7c05caf7
PW
65052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6506
6507 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6508 when their aliased command is traversed.
6509 (help_cmd): Add fput_command_names_styled call to
6510 output command name and aliases when command has an alias.
6511
3b3aaacb
PW
65122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6513
6514 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6515 * cli/cli-decode.c (help_cmd_list): Declare as static,
6516 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6517 a command together with the command.
6518 (fput_command_name_styled, fput_command_names_styled): New functions.
6519 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6520 fput_command_name_styled.
6521 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6522 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6523
7aa1b46f
PW
65242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6525
6526 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6527 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6528 * command.h (cmd_show_list): Likewise.
6529 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6530 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6531
89bcba74
PW
65322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6533
6534 * unittests/command-def-selftests.c (traverse_command_structure):
6535 Verify all commands of a list have the same prefix command and
6536 that only the top cmdlist commands have a null prefix.
6537
3f4d92eb
PW
65382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6539
6540 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6541 as prefix, not one of its aliases.
6542 (set_cmd_prefix): Remove.
6543 (do_add_cmd): Centralize the setting of the prefix of a command, when
6544 command is defined after its full chain of prefix commands.
6545 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6546 (add_setshow_cmd_full): Likewise.
6547 (update_prefix_field_of_prefixed_commands): New function.
6548 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6549 update_prefix_field_of_prefixed_commands.
6550 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6551 addresses of remote_set_cmdlist and remote_show_cmdlist given
6552 as argument, not the address of an argument.
6553 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6554 * gdb/remote.c (_initialize_remote): Likewise.
6555
0605465f
PW
65562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6557
6558 * cli/cli-cmds.c (alias_command): Check for an existing alias
6559 using lookup_cmd_composition, as valid_command_p is too strict
6560 and forbids aliases that are the prefix of an existing alias
6561 or command.
6562 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6563 command is properly recognised as a valid command.
6564
58e6ac70
PW
65652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6566
6567 * unittests/help-doc-selftests.c: Rename to
6568 unittests/command-def-selftests.c
6569 * unittests/command-def-selftests.c (help_doc_tests): Update some
6570 comments.
6571 (command_structure_tests, traverse_command_structure): New namespace
6572 and function.
6573 (command_structure_invariants_tests): New function.
6574 (_initialize_command_def_selftests) Renamed from
6575 _initialize_help_doc_selftests, register command_structure_invariants
6576 selftest.
6577
a7b9ceb8
PW
65782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6579
6580 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6581 an alias of 'show'.
6582
b2188a06
JB
65832020-05-15 Joel Brobecker <brobecker@adacore.com>
6584
6585 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6586 ada_is_fixed_point_type. Update all callers.
6587 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6588 all callers.
6589 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6590 Update all callers.
6591 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6592 print_fixed_point_type. Update all callers.
6593 * ada-valprint.c (ada_value_print_num): Replace call to
6594 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6595
a51951c2
KB
65962020-05-14 Kevin Buettner <kevinb@redhat.com>
6597
6598 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6599 processors.
6600 (cpu_supports_bts): Add CV_AMD case.
6601
29d6859f
LM
66022020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6603 Simon Marchi <simon.marchi@efficios.com>
6604
6605 * infrun.c (stop_all_threads): Collect multiple wait events at
6606 each pass.
6607
78134374
SM
66082020-05-14 Simon Marchi <simon.marchi@efficios.com>
6609
6610 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6611 type::code instead.
6612
67607e24
SM
66132020-05-14 Simon Marchi <simon.marchi@efficios.com>
6614
6615 * gdbtypes.h (struct type) <code, set_code>: New methods.
6616 (TYPE_CODE): Use type::code. Change all call sites used to set
6617 the code to use type::set_code instead.
6618
a05575d3
TBA
66192020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6620 Tom de Vries <tdevries@suse.de>
6621 Pedro Alves <palves@redhat.com>
6622
6623 PR threads/25478
6624 * infrun.c (stop_all_threads): Do NOT ignore
6625 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6626 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6627 received.
6628 (handle_no_resumed): Remove code handling a live inferior with no
6629 threads.
6630 * remote.c (has_single_non_exited_thread): New.
6631 (remote_target::update_thread_list): Do not delete a thread if is
6632 the last thread of the process.
6633 * thread.c (thread_select): Call delete_exited_threads instead of
6634 prune_threads.
6635
6ad82919
TBA
66362020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6637
6638 * infrun.c (stop_all_threads): Enable/disable thread events of all
6639 targets. Move a debug message denoting the end of the function
6640 into the SCOPED_EXIT block.
6641
d890404b
TBA
66422020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6643
6644 * process-stratum-target.h: Include <set>.
6645 (all_non_exited_process_targets, switch_to_target_no_thread): New
6646 function declarations.
6647 * process-stratum-target.c (all_non_exited_process_targets)
6648 (switch_to_target_no_thread): New function implementations.
6649
293b3ebc
TBA
66502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6651
6652 * infrun.c (handle_inferior_event): Extract out a piece of code
6653 into...
6654 (mark_non_executing_threads): ...this new function.
6655
7ca9b62a
TBA
66562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6657
6658 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6659 use.
6660
fc75c28b
TBA
66612020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6662
6663 * regcache.c (regcache_read_pc_protected): New function
6664 implementation that returns 0 if the PC cannot read via
6665 'regcache_read_pc'.
6666 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6667 instead of 'regcache_read_pc'.
6668 (keep_going_pass_signal): Ditto.
6669
a89febbd
TT
66702020-05-13 Tom Tromey <tromey@adacore.com>
6671
6672 * ada-lang.c (align_value): Remove.
6673 (ada_template_to_fixed_record_type_1): Use align_up.
6674
f7e23710
TBA
66752020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6676
6677 * async-event.c: Update the copyright year.
6678 * async-event.h: Update the copyright year.
6679
02ff80c2
SM
66802020-05-12 Simon Marchi <simon.marchi@efficios.com>
6681
6682 * objfiles.h (is_addr_in_objfile,
6683 shared_objfile_contains_address_p): Return bool.
6684 * objfile.c (is_addr_in_objfile,
6685 shared_objfile_contains_address_p): Return bool.
6686
4fd6c7e8
TT
66872020-05-11 Tom Tromey <tromey@adacore.com>
6688
6689 * cli/cli-cmds.c (info_command): Restore.
6690 (_initialize_cli_cmds): Use add_prefix_command for "info".
6691 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6692
5eb68a39
TT
66932020-05-11 Tom Tromey <tromey@adacore.com>
6694
6695 * ada-lang.c (ada_value_primitive_field): Now public.
6696 * ada-lang.h (ada_value_primitive_field): Declare.
6697 * ada-valprint.c (print_field_values): Use
6698 ada_value_primitive_field for wrapper fields.
6699
7666722f
TV
67002020-05-11 Tom de Vries <tdevries@suse.de>
6701
6702 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6703 MODULE_DOMAIN.
6704
3ee6bb11
TV
67052020-05-11 Tom de Vries <tdevries@suse.de>
6706
6707 PR symtab/25941
6708 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6709 with length 0, if not gdb-produced.
6710 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6711
43434996
TV
67122020-05-09 Tom de Vries <tdevries@suse.de>
6713
6714 PR gdb/25955
6715 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6716 calculation.
6717
2f78cffc
TT
67182020-05-09 Tom Tromey <tom@tromey.com>
6719
6720 * top.c (server_command): Now bool.
6721 * top.h (server_command): Now bool.
6722
4f7bc5ed
TT
67232020-05-08 Tom Tromey <tromey@adacore.com>
6724
6725 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6726 already being processed.
6727
8be4b118
TT
67282020-05-08 Tom Tromey <tom@tromey.com>
6729
6730 * printcmd.c (struct display) <next>: Remove.
6731 <display>: New constructor.
6732 <exp_string>: Now a std::string.
6733 <enabled_p>: Now a bool.
6734 (display_number): Move definition earlier.
6735 (displays): Rename from display_chain. Now a std::vector.
6736 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6737 (display_command): Update.
6738 (do_one_display, disable_display)
6739 (enable_disable_display_command, do_enable_disable_display):
6740 Update.
6741 (free_display): Remove.
6742 (clear_displays): Rewrite.
6743 (delete_display): Update.
6744 (map_display_numbers): Use function_view. Remove "data"
6745 parameter. Update.
6746 (do_delete_display): Remove.
6747 (undisplay_command): Update.
6748 (do_one_display, do_displays, disable_display)
6749 (info_display_command): Update.
6750 (do_enable_disable_display): Remove.
6751 (enable_disable_display_command)
6752 (clear_dangling_display_expressions): Update.
6753
94c93c35
TT
67542020-05-08 Tom Tromey <tom@tromey.com>
6755
6756 * symtab.c (set_symbol_cache_size)
6757 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6758 (maintenance_print_symbol_cache_statistics): Update.
6759 * symmisc.c (print_symbol_bcache_statistics)
6760 (print_objfile_statistics, maintenance_print_objfiles)
6761 (maintenance_info_symtabs, maintenance_check_symtabs)
6762 (maintenance_expand_symtabs, maintenance_info_line_tables):
6763 Update.
6764 * symfile-debug.c (set_debug_symfile): Update.
6765 * source.c (forget_cached_source_info): Update.
6766 * python/python.c (gdbpy_progspaces): Update.
6767 * psymtab.c (maintenance_info_psymtabs): Update.
6768 * probe.c (parse_probes): Update.
6769 * linespec.c (iterate_over_all_matching_symtabs)
6770 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6771 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6772 * exec.c (exec_target::close): Update.
6773 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6774 * breakpoint.c (print_one_breakpoint_location)
6775 (create_longjmp_master_breakpoint)
6776 (create_std_terminate_master_breakpoint): Update.
6777 * progspace.c (program_spaces): Now a std::vector.
6778 (maybe_new_address_space): Update.
6779 (add_program_space): Remove.
6780 (program_space::program_space): Update.
6781 (remove_program_space): Update.
6782 (number_of_program_spaces): Remove.
6783 (print_program_space, update_address_spaces): Update.
6784 * progspace.h (program_spaces): Change type.
6785 (ALL_PSPACES): Remove.
6786 (number_of_program_spaces): Don't declare.
6787 (struct program_space) <next>: Remove.
6788
a1fd1ac9
TT
67892020-05-08 Tom Tromey <tom@tromey.com>
6790
6791 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6792 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6793 (enable_break): Update.
6794 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6795 (frv_fdpic_find_canonical_descriptor): Update.
6796 (frv_fetch_objfile_link_map): Update.
6797 * progspace.c (program_space::free_all_objfiles): Update.
6798 (program_space::solibs): New method.
6799 * progspace.h (struct program_space) <solibs>: New method.
6800 * solist.h (master_so_list): Don't declare.
6801 (ALL_SO_LIBS): Remove.
6802 * solib.h (so_list_head): Remove.
6803 (update_solib_list): Update comment.
6804 * solib.c (master_so_list): Remove.
6805 (solib_used, update_solib_list, solib_add)
6806 (info_sharedlibrary_command, clear_solib)
6807 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6808
38eae084
TT
68092020-05-08 Tom Tromey <tom@tromey.com>
6810
6811 * extension.c (extension_languages): Now a std::array.
6812 (ALL_EXTENSION_LANGUAGES): Remove.
6813 (get_ext_lang_defn, get_ext_lang_of_file)
6814 (eval_ext_lang_from_control_command): Update.
6815 (finish_ext_lang_initialization)
6816 (auto_load_ext_lang_scripts_for_objfile)
6817 (ext_lang_type_printers::ext_lang_type_printers)
6818 (apply_ext_lang_type_printers)
6819 (ext_lang_type_printers::~ext_lang_type_printers)
6820 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6821 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6822 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6823 (get_matching_xmethod_workers, ext_lang_colorize)
6824 (ext_lang_before_prompt): Update.
6825 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6826
596dc4ad
TT
68272020-05-08 Tom Tromey <tom@tromey.com>
6828
6829 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6830 overload.
6831 <swap_string, m_string>: Remove.
6832 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6833 Update.
6834 * stabsread.c (define_symbol, read_type): Update.
6835 * linespec.c (find_linespec_symbols): Update.
6836 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6837 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6838 * dbxread.c (read_dbx_symtab): Update.
6839 * cp-support.h (cp_canonicalize_string_full)
6840 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6841 Return unique_xmalloc_ptr.
6842 * cp-support.c (inspect_type): Update.
6843 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6844 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6845 Likewise.
6846 * c-typeprint.c (print_name_maybe_canonical): Update.
6847 * break-catch-throw.c (check_status_exception_catchpoint):
6848 Update.
6849
bf4cb9be
TV
68502020-05-08 Tom de Vries <tdevries@suse.de>
6851
6852 * infrun.c (follow_fork): Copy current_line and current_symtab to
6853 child thread.
6854
a1b68f28
SM
68552020-05-07 Simon Marchi <simon.marchi@efficios.com>
6856
6857 * async-event.c (struct async_signal_handler, struct
6858 async_event_handler): Reformat, remove typedef.
6859
98d48915
SM
68602020-05-07 Simon Marchi <simon.marchi@efficios.com>
6861
6862 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6863 access thistype->main_type->dyn_prop_list directly.
6864
7aa91313
SM
68652020-05-07 Simon Marchi <simon.marchi@efficios.com>
6866
6867 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6868 (remove_dyn_prop): Remove. Update all users to use
6869 type::remove_dyn_prop.
6870 * gdbtypes.c (remove_dyn_prop): Rename to...
6871 (type::remove_dyn_prop): ... this.
6872
5c54719c
SM
68732020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6874
6875 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6876 (add_dyn_prop): Remove. Update all users to use
6877 type::add_dyn_prop.
6878 * gdbtypes.c (add_dyn_prop): Rename to...
6879 (type::add_dyn_prop): ... this.
6880
24e99c6c
SM
68812020-05-07 Simon Marchi <simon.marchi@efficios.com>
6882
6883 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6884 (get_dyn_prop): Remove. Update all users to use
6885 type::dyn_prop.
6886 * gdbtypes.c (get_dyn_prop): Rename to...
6887 (type::dyn_prop): ... this.
6888
0d4bf016
SM
68892020-05-06 Simon Marchi <simon.marchi@efficios.com>
6890
6891 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6892
ac4a4f1c
SM
68932020-05-06 Simon Marchi <simon.marchi@efficios.com>
6894
6895 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6896 instruction, skip it if it's there.
6897
a3bbacc1
SM
68982020-05-05 Simon Marchi <simon.marchi@efficios.com>
6899
6900 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6901
c3236f84
SM
69022020-05-04 Simon Marchi <simon.marchi@efficios.com>
6903
6904 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6905 * gdbtypes.c (recursive_dump_type): Remove use of
6906 TYPE_INCOMPLETE.
6907
3b6acaee
TT
69082020-05-03 Tom Tromey <tom@tromey.com>
6909
6910 * breakpoint.c (catch_command, tcatch_command): Remove.
6911 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6912 add_show_prefix_cmd.
6913 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6914 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6915 Remove.
6916 (add_internal_problem_command): Use add_basic_prefix_cmd,
6917 add_show_prefix_cmd.
6918 * mips-tdep.c (set_mipsfpu_command): Remove.
6919 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6920 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6921 (_initialize_index_cache): Use add_basic_prefix_cmd.
6922 * memattr.c (dummy_cmd): Remove.
6923 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6924 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6925 (_initialize_tui_win): Use add_basic_prefix_cmd,
6926 add_show_prefix_cmd.
6927 * cli/cli-logging.c (set_logging_command): Remove.
6928 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6929 add_show_prefix_cmd.
6930 (show_logging_command): Remove.
6931 * target.c (target_command): Remove.
6932 (add_target): Use add_basic_prefix_cmd.
6933
a51119cd
HD
69342020-05-02 Hannes Domani <ssbssa@yahoo.de>
6935
6936 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6937
652fc23a 69382020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6939
652fc23a
PW
6940 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6941 info_command.
6942
117539e6
KR
69432020-04-30 Kamil Rytarowski <n54@gmx.com>
6944
6945 * nbsd-nat.c (nbsd_enable_proc_events)
6946 (nbsd_nat_target::post_startup_inferior): Add.
6947 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6948 (nbsd_nat_target::update_thread_list): Rewrite.
6949 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6950 "PTRACE_LWP_CREATE".
6951 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6952
102e38eb 69532020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6954
102e38eb
PW
6955 * stack.c (_initialize_stack): Remove duplicated creation
6956 of "frame" command and "f" alias.
6957
ee9d1e5f
HD
69582020-04-30 Hannes Domani <ssbssa@yahoo.de>
6959
6960 PR gdb/18706
6961 * gdbtypes.c (check_typedef): Calculate size of array of
6962 stubbed type.
6963
627c7fb8
HD
69642020-04-30 Hannes Domani <ssbssa@yahoo.de>
6965
6966 PR gdb/15559
6967 * i386-tdep.c (i386_push_dummy_call): Call
6968 i386_thiscall_push_dummy_call.
6969 (i386_thiscall_push_dummy_call): New function.
6970 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6971 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6972 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6973
ffc2844e
SM
69742020-04-29 Simon Marchi <simon.marchi@efficios.com>
6975
6976 * gdbarch.sh (do_read): Add shellcheck disable directive for
6977 warning SC2162.
6978
1207375d
SM
69792020-04-29 Simon Marchi <simon.marchi@efficios.com>
6980
6981 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6982 "referenced but not assigned" warning.
6983
9fdb2916
SM
69842020-04-29 Simon Marchi <simon.marchi@efficios.com>
6985
6986 * gdbarch.sh: Remove code that sets fallbackdefault.
6987
759cea5e
SM
69882020-04-29 Simon Marchi <simon.marchi@efficios.com>
6989
6990 * gdbarch.sh: Use shell operators && and || instead of
6991 -a and -o.
6992
cb02ab24
SM
69932020-04-29 Simon Marchi <simon.marchi@efficios.com>
6994
6995 * gdbarch.sh: Use $(...) instead of `...`.
6996
a6fc5ffc
SM
69972020-04-29 Simon Marchi <simon.marchi@efficios.com>
6998
6999 * gdbarch.sh: Use double quotes around variables.
7000
8d113d13
SM
70012020-04-29 Simon Marchi <simon.marchi@efficios.com>
7002
7003 * gdbarch.sh: Use %s with printf, instead of variables in the
7004 format string.
7005
ed6acedd
TT
70062020-04-29 Tom Tromey <tromey@adacore.com>
7007
7008 PR ada/25875:
7009 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7010 type fields here.
7011 (read_enumeration_type): Call
7012 update_enumeration_type_from_children later. Update comments.
7013 (process_enumeration_scope): Don't create type fields.
7014
b68b1b58
KR
70152020-04-29 Kamil Rytarowski <n54@gmx.com>
7016
7017 * nbsd-tdep.c: Include "xml-syscall.h".
7018 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7019
f94b2e03
KR
70202020-04-29 Kamil Rytarowski <n54@gmx.com>
7021
7022 * nbsd-nat.c: Include "sys/wait.h".
7023 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7024 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7025 (nbsd_nat_target::remove_exec_catchpoint)
7026 (nbsd_nat_target::set_syscall_catchpoint): Add.
7027 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7028 (nbsd_nat_target::insert_exec_catchpoint)
7029 (nbsd_nat_target::remove_exec_catchpoint)
7030 (nbsd_nat_target::set_syscall_catchpoint): Add.
7031 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7032 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7033 `nbsd_get_syscall_number'.
7034
fc49bc72
TT
70352020-04-29 Tom Tromey <tom@tromey.com>
7036
7037 * stack.c (print_block_frame_labels): Remove.
7038
d642b692
HD
70392020-04-29 Hannes Domani <ssbssa@yahoo.de>
7040
7041 PR gdb/17320
7042 * ada-valprint.c (val_print_packed_array_elements): Move array
7043 end bracket to new line.
7044 (ada_val_print_string): Remove extra spaces before first array
7045 element.
7046 * c-valprint.c (c_value_print_array): Likewise.
7047 * m2-valprint.c (m2_print_array_contents): Likewise.
7048 (m2_value_print_inner): Likewise.
7049 * p-valprint.c (pascal_value_print_inner): Likewise.
7050 * valprint.c (generic_val_print_array): Likewise.
7051 (value_print_array_elements): Move first array element and array
7052 end bracket to new line.
7053
ea90f227
TV
70542020-04-29 Tom de Vries <tdevries@suse.de>
7055
7056 PR symtab/25889
7057 * linespec.c (find_method): Fix ix calculation.
7058
4498ef4f
KR
70592020-04-28 Kamil Rytarowski <n54@gmx.com>
7060
7061 * syscalls/update-netbsd.sh: New file.
7062 * syscalls/netbsd.xml: Regenerate.
7063 * data-directory/Makefile.in: Register `netbsd.xml' in
7064 `SYSCALLS_FILES'.
7065
a55e30b5
SM
70662020-04-28 Simon Marchi <simon.marchi@efficios.com>
7067
7068 * syscalls/update-freebsd.sh: Add double quotes.
7069
2b2fbab8
TT
70702020-04-28 Tom Tromey <tom@tromey.com>
7071
7072 * NEWS: Update.
7073 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7074 (cmdpy_init): Allow class_tui.
7075
a65189c9
TV
70762020-04-28 Mark Williams <mark@myosotissp.com>
7077
7078 PR gdb/24480
7079 * dwarf2read.c: Add missing assingments to list_in_scope when
7080 start_symtab was already called.
7081
1b95cdb7
SM
70822020-04-28 Simon Marchi <simon.marchi@efficios.com>
7083
7084 PR gdb/25881
7085 * dwarf2/read.c (offset_map_type): Use
7086 gdb:hash_enum<sect_offset> as hash function.
7087
15cd93d0
TV
70882020-04-28 Tom de Vries <tdevries@suse.de>
7089
7090 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7091 with DW_AT_signature.
7092
1eb39914
SM
70932020-04-27 Simon Marchi <simon.marchi@efficios.com>
7094
7095 * configure.ac: Remove check for fs_base/gs_base in
7096 user_regs_struct.
7097 * configure: Re-generate.
7098 * config.in: Re-generate.
7099 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7100 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7101 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7102
991a3e2e
LM
71032020-04-27 Luis Machado <luis.machado@linaro.org>
7104
7105 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7106 problematic inline frame unwinding situation.
7107 * frame.c (frame_id_computed_p): New function.
7108 * frame.h (frame_id_computed_p): New prototype.
7109
361ba0e8
TT
71102020-04-26 Tom Tromey <tom@tromey.com>
7111
7112 * command.h (enum command_class) <class_pseudo>: Remove.
7113
bc3609fd
PW
71142020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7115
7116 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7117 and whitespace.
7118
b9771db7
KR
71192020-04-25 Kamil Rytarowski <n54@gmx.com>
7120
ec16513e
SM
7121 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7122 `PT_GET_PROCESS_STATE' block.
b9771db7 7123
7151c1af
TT
71242020-04-24 Tom Tromey <tom@tromey.com>
7125
7126 * symtab.h (symbol_get_demangled_name): Don't declare.
7127 * symtab.c (symbol_get_demangled_name): Remove.
7128 (general_symbol_info::natural_name)
7129 (general_symbol_info::demangled_name): Update.
7130
906bb4c5
TT
71312020-04-24 Tom Tromey <tom@tromey.com>
7132
7133 PR rust/25025:
7134 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7135
bcfe6157
TT
71362020-04-24 Tom Tromey <tom@tromey.com>
7137
7138 PR symtab/12707:
7139 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7140 exists.
7141 (new_symbol): Likewise.
7142 * compile/compile-object-load.c (get_out_value_type): Use
7143 symbol_matches_search_name.
7144
f049a313
TT
71452020-04-24 Tom Tromey <tom@tromey.com>
7146
7147 * dwarf2/read.c (add_partial_symbol): Do not call
7148 compute_and_set_names.
7149
76e288d1
TT
71502020-04-24 Tom Tromey <tom@tromey.com>
7151
7152 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7153 overload.
7154
2467f4f6
TT
71552020-04-24 Tom Tromey <tom@tromey.com>
7156
7157 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7158 (add_psymbol_to_list): New overload. Make old overload call new
7159 one.
7160 * psympriv.h (add_psymbol_to_list): New overload.
7161
e61108c9
TT
71622020-04-24 Tom Tromey <tom@tromey.com>
7163
7164 * dwarf2/read.c (partial_die_info::read) <case
7165 DW_AT_linkage_name>: Use value_as_string.
7166 (dwarf2_string_attr): Use value_as_string.
7167 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7168 method.
7169 * dwarf2/attribute.c (attribute::value_as_string): New method.
7170
8c87a452
TT
71712020-04-24 Tom Tromey <tom@tromey.com>
7172
7173 * symtab.c (general_symbol_info::natural_name)
7174 (general_symbol_info::demangled_name): Check for language_rust.
7175
787de330
TT
71762020-04-24 Tom Tromey <tom@tromey.com>
7177
7178 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7179 (dwarf2_physname): ... from here.
7180 (partial_die_info::read): Add Rust "{" hack.
7181
ff985671
TT
71822020-04-24 Tom Tromey <tom@tromey.com>
7183
7184 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7185 method.
7186 (symbol_set_demangled_name): Don't declare.
7187 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7188 symbol_set_demangled_name.
7189 (general_symbol_info::set_language)
7190 (general_symbol_info::compute_and_set_names): Update.
7191 * minsyms.c (minimal_symbol_reader::install): Update.
7192 * dwarf2/read.c (new_symbol): Update.
7193
1acda803
TT
71942020-04-24 Tom Tromey <tromey@adacore.com>
7195
7196 PR python/23662:
7197 * python/py-type.c (convert_field): Handle
7198 FIELD_LOC_KIND_DWARF_BLOCK.
7199 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7200 (typy_get_dynamic): Nw function.
7201 (type_object_getset): Add "dynamic".
7202 * NEWS: Add entry.
7203
d656f129
TT
72042020-04-24 Tom Tromey <tromey@adacore.com>
7205
7206 * ada-typeprint.c (print_choices, print_variant_part)
7207 (print_record_field_types_dynamic): New functions.
7208 (print_record_field_types): Use print_record_field_types_dynamic.
7209
7d79de9a
TT
72102020-04-24 Tom Tromey <tromey@adacore.com>
7211
7212 * dwarf2/read.c (handle_data_member_location): New overload.
7213 (dwarf2_add_field): Use it.
7214 (decode_locdesc): Add "computed" parameter. Update comment.
7215 * gdbtypes.c (is_dynamic_type_internal): Also look for
7216 FIELD_LOC_KIND_DWARF_BLOCK.
7217 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7218 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7219 virtual base classes.
7220 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7221 FIELD_LOC_KIND_DWARF_BLOCK.
7222
f8e89861
TT
72232020-04-24 Tom Tromey <tromey@adacore.com>
7224
7225 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7226 * gdbtypes.c (is_dynamic_type_internal): Check
7227 TYPE_HAS_DYNAMIC_LENGTH.
7228 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7229 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7230 New macros.
7231 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7232 constant.
7233
9c6a1327
TT
72342020-04-24 Tom Tromey <tromey@adacore.com>
7235
7236 * dwarf2/read.c (struct variant_field): Rewrite.
7237 (struct variant_part_builder): New.
7238 (struct nextfield): Remove "variant" field. Add "offset".
7239 (struct field_info): Add "current_variant_part" and
7240 "variant_parts".
7241 (alloc_discriminant_info): Remove.
7242 (alloc_rust_variant): New function.
7243 (quirk_rust_enum): Update.
7244 (dwarf2_add_field): Set "offset" member. Don't handle
7245 DW_TAG_variant_part.
7246 (offset_map_type): New typedef.
7247 (convert_variant_range, create_one_variant)
7248 (create_one_variant_part, create_variant_parts)
7249 (add_variant_property): New functions.
7250 (dwarf2_attach_fields_to_type): Call add_variant_property.
7251 (read_structure_type): Don't handle DW_TAG_variant_part.
7252 (handle_variant_part, handle_variant): New functions.
7253 (handle_struct_member_die): Use them.
7254 (process_structure_scope): Don't handle variant parts.
7255 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7256 (struct discriminant_info): Remove.
7257 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7258 (struct main_type) <flag_discriminated_union>: Remove.
7259 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7260 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7261 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7262 Update.
7263 * valops.c (value_union_variant): Remove.
7264 * value.h (value_union_variant): Don't declare.
7265
b249d2c2
TT
72662020-04-24 Tom Tromey <tromey@adacore.com>
7267
7268 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7269 (ada_value_primitive_packed_val): Update.
7270 * ada-valprint.c (ada_value_print_1): Update.
7271 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7272 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7273 just an address. Use evaluate_for_locexpr_baton.
7274 (dwarf2_evaluate_property): Update.
7275 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7276 array_view.
7277 * findvar.c (default_read_var_value): Update.
7278 * gdbtypes.c (compute_variant_fields_inner)
7279 (resolve_dynamic_type_internal): Update.
7280 (resolve_dynamic_type): Change type of valaddr parameter.
7281 * gdbtypes.h (resolve_dynamic_type): Update.
7282 * valarith.c (value_subscripted_rvalue): Update.
7283 * value.c (value_from_contents_and_address): Update.
7284
61122aa9
TT
72852020-04-24 Tom Tromey <tromey@adacore.com>
7286
7287 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7288 "push_initial_value" parameter.
7289 (dwarf2_evaluate_property): Likewise.
7290 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7291
ef83a141
TT
72922020-04-24 Tom Tromey <tromey@adacore.com>
7293
7294 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7295 (variant::matches, compute_variant_fields_recurse)
7296 (compute_variant_fields_inner, compute_variant_fields): New
7297 functions.
7298 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7299 Use resolved_type after type is made.
7300 (operator==): Add new cases.
7301 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7302 (struct discriminant_range, struct variant, struct variant_part):
7303 New.
7304 (union dynamic_prop_data) <variant_parts, original_type>: New
7305 members.
7306 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7307 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7308 constants.
7309 * value.c (unpack_bits_as_long): Now public.
7310 * value.h (unpack_bits_as_long): Declare.
7311
675127ec
TT
73122020-04-24 Tom Tromey <tromey@adacore.com>
7313
7314 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7315 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7316
9852ceef
HD
73172020-04-24 Hannes Domani <ssbssa@yahoo.de>
7318
7319 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7320
7632c6ce
KR
73212020-04-24 Kamil Rytarowski <n54@gmx.com>
7322
7323 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7324 (remove_fork_catchpoint, post_startup_inferior)
7325 (post_attach): Move...
7326 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7327 (remove_fork_catchpoint, post_startup_inferior)
7328 (post_attach): ...here.
7329 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7330 (remove_fork_catchpoint, post_startup_inferior)
7331 (post_attach): Move...
7332 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7333 (remove_fork_catchpoint, post_startup_inferior)
7334 (post_attach): ...here.
7335
7be2bb4f
TT
73362020-04-24 Tom Tromey <tromey@adacore.com>
7337
7338 * nat/windows-nat.h (struct windows_thread_info)
7339 <pc_adjusted>: New member.
7340 * windows-nat.c (windows_fetch_one_register): Check
7341 pc_adjusted.
7342 (windows_nat_target::get_windows_debug_event)
7343 (windows_nat_target::wait): Set pc_adjusted.
7344
f80cb3b4
TV
73452020-04-24 Tom de Vries <tdevries@suse.de>
7346
7347 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7348 Run gdb-add-index inside temp dir.
7349
29514b87
TT
73502020-04-23 Tom Tromey <tromey@adacore.com>
7351
7352 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7353 in loop.
7354
5939967b
LM
73552020-04-23 Luis Machado <luis.machado@linaro.org>
7356
7357 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7358 get_frame_register instead of gdbarch_unwind_pc.
7359
70bc38f5
TV
73602020-04-23 Tom de Vries <tdevries@suse.de>
7361
7362 * symtab.c (lookup_global_symbol): Prefer def over decl.
7363
de82891c
TV
73642020-04-23 Tom de Vries <tdevries@suse.de>
7365
7366 PR symtab/25807
7367 * block.c (best_symbol, better_symbol): Promote to external.
7368 * block.h (best_symbol, better_symbol): Declare.
7369 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7370 decl.
7371
ecc6c606
TT
73722020-04-23 Tom Tromey <tromey@adacore.com>
7373
7374 PR ada/25837:
7375 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7376 "const char *", not a "const std::string &".
7377 <name_and_matcher::operator==>: Update.
7378 * unittests/lookup_name_info-selftests.c: Change type of
7379 "result".
7380
740480b8
TT
73812020-04-23 Tom Tromey <tom@tromey.com>
7382
7383 * inferior.h (iterate_over_inferiors): Don't declare.
7384 * inferior.c (iterate_over_inferiors): Remove.
7385 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7386 Remove.
7387 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7388 use iterate_over_inferiors.
7389 (darwin_resume_inferior_it)
7390 (struct resume_inferior_threads_param)
7391 (darwin_resume_inferior_threads_it): Remove.
7392 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7393
ae3ab1f0
TV
73942020-04-23 Tom de Vries <tdevries@suse.de>
7395
7396 * blockframe.c (find_pc_partial_function): Use
7397 find_pc_sect_compunit_symtab rather than
7398 objfile->sf->qf->find_pc_sect_compunit_symtab.
7399
317d2668
TV
74002020-04-22 Tom de Vries <tdevries@suse.de>
7401
7402 PR symtab/25764
7403 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7404 in psymtabs.
7405
eea9e357
TV
74062020-04-22 Tom de Vries <tdevries@suse.de>
7407
7408 PR symtab/25801
7409 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7410 symtabs.
7411
3d5afab3
TV
74122020-04-22 Tom de Vries <tdevries@suse.de>
7413
7414 PR symtab/25700
7415 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7416 CU if already created.
7417
d43b7a2d
TBA
74182020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7419
7420 * infrun.c (displaced_step_fixup): Switch to the event_thread
7421 before calling displaced_step_restore, not after.
7422
d89edf9b
MM
74232020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7424
7425 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7426 its inferior is not recorded by us.
7427 (record_btrace_target_open): Replace call to
7428 all_non_exited_threads () with call to current_inferior
7429 ()->non_exited_threads ().
7430 (record_btrace_target::stop_recording): Likewise.
7431 (record_btrace_target::close): Likewise.
7432 (record_btrace_target::wait): Likewise.
7433 (record_btrace_target::record_stop_replaying): Likewise.
7434
5897fd49
MM
74352020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7436
7437 * btrace.c (btrace_enable): Throw an error on double enables and
7438 when enabling recording fails.
7439 (btrace_disable): Throw an error if the thread is not recorded.
7440
1a476b6d
MM
74412020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7442
7443 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7444 request if we do not have a thread_info.
7445
4778a5f8
TV
74462020-04-21 Tom de Vries <tdevries@suse.de>
7447
7448 PR gdb/25471
7449 * thread.c
7450 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7451 exception in get_frame_id.
7452
0fa7617d
TT
74532020-04-20 Tom Tromey <tromey@adacore.com>
7454
7455 * python/python.c (struct gdbpy_event): Mark move constructor as
7456 noexcept.
7457 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7458 constructor as noexcept.
7459 * completer.h (struct completion_result): Mark move constructor as
7460 noexcept.
7461 * completer.c (completion_result::completion_result): Use
7462 initialization style. Don't call reset_match_list.
7463
ad23bda0
MS
74642020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7465
7466 * MAINTAINERS (Write After Approval): Add myself.
7467
45e1f031
TT
74682020-04-18 Tom Tromey <tom@tromey.com>
7469
7470 * windows-tdep.c (init_w32_command_list)
7471 (w32_prefix_command_valid): Restore.
7472 (_initialize_windows_tdep): Call init_w32_command_list.
7473
08feed99
TT
74742020-04-18 Tom Tromey <tom@tromey.com>
7475
7476 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7477 * value.c (value_fn_field): Update.
7478 * valops.c (find_function_in_inferior)
7479 (value_allocate_space_in_inferior): Update.
7480 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7481 Update.
7482 * tui/tui-source.c (tui_source_window::set_contents): Update.
7483 * symtab.c (lookup_global_or_static_symbol)
7484 (find_function_start_sal_1, skip_prologue_sal)
7485 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7486 * symmisc.c (dump_msymbols, dump_symtab_1)
7487 (maintenance_print_one_line_table): Update.
7488 * symfile.c (init_entry_point_info, section_is_mapped)
7489 (list_overlays_command, simple_read_overlay_table)
7490 (simple_overlay_update_1): Update.
7491 * stap-probe.c (handle_stap_probe): Update.
7492 * stabsread.c (dbx_init_float_type, define_symbol)
7493 (read_one_struct_field, read_enum_type, read_range_type): Update.
7494 * source.c (info_line_command): Update.
7495 * python/python.c (gdbpy_source_objfile_script)
7496 (gdbpy_execute_objfile_script): Update.
7497 * python/py-type.c (save_objfile_types): Update.
7498 * python/py-objfile.c (py_free_objfile): Update.
7499 * python/py-inferior.c (python_new_objfile): Update.
7500 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7501 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7502 (maintenance_check_psymtabs): Update.
7503 * printcmd.c (info_address_command): Update.
7504 * objfiles.h (struct objfile) <arch>: New method, from
7505 get_objfile_arch.
7506 (get_objfile_arch): Don't declare.
7507 * objfiles.c (get_objfile_arch): Remove.
7508 (filter_overlapping_sections): Update.
7509 * minsyms.c (msymbol_is_function): Update.
7510 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7511 (output_nondebug_symbol): Update.
7512 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7513 (mdebug_expand_psymtab): Update.
7514 * machoread.c (macho_add_oso_symfile): Update.
7515 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7516 Update.
7517 * linux-fork.c (checkpoint_command): Update.
7518 * linespec.c (convert_linespec_to_sals): Update.
7519 * jit.c (finalize_symtab): Update.
7520 * infrun.c (insert_exception_resume_from_probe): Update.
7521 * ia64-tdep.c (ia64_find_unwind_table): Update.
7522 * hppa-tdep.c (internalize_unwinds): Update.
7523 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7524 Update.
7525 * gcore.c (call_target_sbrk): Update.
7526 * elfread.c (record_minimal_symbol, elf_symtab_read)
7527 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7528 (elf_gnu_ifunc_resolve_by_got): Update.
7529 * dwarf2/read.c (create_addrmap_from_index)
7530 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7531 (read_debug_names_from_section)
7532 (process_psymtab_comp_unit_reader, add_partial_symbol)
7533 (add_partial_subprogram, process_full_comp_unit)
7534 (read_file_scope, read_func_scope, read_lexical_block_scope)
7535 (read_call_site_scope, dwarf2_ranges_read)
7536 (dwarf2_record_block_ranges, dwarf2_add_field)
7537 (mark_common_block_symbol_computed, read_tag_pointer_type)
7538 (read_tag_string_type, dwarf2_init_float_type)
7539 (dwarf2_init_complex_target_type, read_base_type)
7540 (partial_die_info::read, partial_die_info::read)
7541 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7542 (dwarf2_fetch_die_loc_sect_off): Update.
7543 * dwarf2/loc.c (dwarf2_find_location_expression)
7544 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7545 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7546 (dwarf2_loc_desc_get_symbol_read_needs)
7547 (locexpr_describe_location_piece, locexpr_describe_location_1)
7548 (loclist_describe_location): Update.
7549 * dwarf2/index-write.c (write_debug_names): Update.
7550 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7551 * dtrace-probe.c (dtrace_process_dof): Update.
7552 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7553 (process_one_symbol): Update.
7554 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7555 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7556 (coff_read_enum_type): Update.
7557 * cli/cli-cmds.c (edit_command, list_command): Update.
7558 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7559 * breakpoint.c (create_overlay_event_breakpoint)
7560 (create_longjmp_master_breakpoint)
7561 (create_std_terminate_master_breakpoint)
7562 (create_exception_master_breakpoint, get_sal_arch): Update.
7563 * block.c (block_gdbarch): Update.
7564 * annotate.c (annotate_source_line): Update.
7565
0743fc83
TT
75662020-04-17 Tom Tromey <tromey@adacore.com>
7567
7568 * auto-load.c (show_auto_load_cmd): Remove.
7569 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7570 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7571 (maintenance_print_arc_command): Remove.
7572 * tui/tui-win.c (tui_command): Remove.
7573 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7574 * tui/tui-layout.c (tui_layout_command): Remove.
7575 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7576 * python/python.c (user_set_python, user_show_python): Remove.
7577 (_initialize_python): Use add_basic_prefix_cmd,
7578 add_show_prefix_cmd.
7579 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7580 (install_gdb_commands): Use add_basic_prefix_cmd,
7581 add_show_prefix_cmd.
7582 (info_guile_command): Remove.
7583 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7584 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7585 add_show_prefix_cmd.
7586 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7587 Remove do_set and do_show parameters.
7588 * cli/cli-style.c (set_style, show_style): Remove.
7589 (_initialize_cli_style): Use add_basic_prefix_cmd,
7590 add_show_prefix_cmd.
7591 (cli_style_option::add_setshow_commands): Remove do_set and
7592 do_show parameters.
7593 (cli_style_option::add_setshow_commands): Use
7594 add_basic_prefix_cmd, add_show_prefix_cmd.
7595 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7596 (set_style_name): Remove.
7597 * cli/cli-dump.c (dump_command, append_command): Remove.
7598 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7599 (tekhex_dump_command, binary_dump_command)
7600 (binary_append_command): Remove.
7601 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7602 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7603 (init_w32_command_list): Remove; move into ...
7604 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7605 * valprint.c (set_print, show_print, set_print_raw)
7606 (show_print_raw): Remove.
7607 (_initialize_valprint): Use add_basic_prefix_cmd,
7608 add_show_prefix_cmd.
7609 * typeprint.c (set_print_type, show_print_type): Remove.
7610 (_initialize_typeprint): Use add_basic_prefix_cmd,
7611 add_show_prefix_cmd.
7612 * record.c (set_record_command, show_record_command): Remove.
7613 (_initialize_record): Use add_basic_prefix_cmd,
7614 add_show_prefix_cmd.
7615 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7616 add_show_prefix_cmd.
7617 (info_command, show_command, set_debug, show_debug): Remove.
7618 * top.h (set_history, show_history): Don't declare.
7619 * top.c (set_history, show_history): Remove.
7620 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7621 (unset_tdesc_cmd): Remove.
7622 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7623 add_show_prefix_cmd.
7624 * symtab.c (info_module_command): Remove.
7625 (_initialize_symtab): Use add_basic_prefix_cmd.
7626 * symfile.c (overlay_command): Remove.
7627 (_initialize_symfile): Use add_basic_prefix_cmd.
7628 * sparc64-tdep.c (info_adi_command): Remove.
7629 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7630 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7631 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7632 add_show_prefix_cmd.
7633 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7634 (_initialize_serial): Use add_basic_prefix_cmd,
7635 add_show_prefix_cmd.
7636 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7637 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7638 add_show_prefix_cmd.
7639 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7640 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7641 add_show_prefix_cmd.
7642 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7643 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7644 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7645 add_show_prefix_cmd.
7646 * remote.c (remote_command, set_remote_cmd): Remove.
7647 (_initialize_remote): Use add_basic_prefix_cmd.
7648 * record-full.c (set_record_full_command)
7649 (show_record_full_command): Remove.
7650 (_initialize_record_full): Use add_basic_prefix_cmd,
7651 add_show_prefix_cmd.
7652 * record-btrace.c (cmd_set_record_btrace)
7653 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7654 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7655 (cmd_show_record_btrace_pt): Remove.
7656 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7657 add_show_prefix_cmd.
7658 * ravenscar-thread.c (set_ravenscar_command)
7659 (show_ravenscar_command): Remove.
7660 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7661 add_show_prefix_cmd.
7662 * mips-tdep.c (show_mips_command, set_mips_command)
7663 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7664 add_show_prefix_cmd.
7665 * maint.c (maintenance_command, maintenance_info_command)
7666 (maintenance_check_command, maintenance_print_command)
7667 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7668 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7669 add_show_prefix_cmd.
7670 (show_per_command_cmd): Remove.
7671 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7672 Remove.
7673 (maintenance_show_test_settings_cmd): Remove.
7674 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7675 add_show_prefix_cmd.
7676 * maint-test-options.c (maintenance_test_options_command):
7677 Remove.
7678 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7679 * macrocmd.c (macro_command): Remove
7680 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7681 * language.c (set_check, show_check): Remove.
7682 (_initialize_language): Use add_basic_prefix_cmd,
7683 add_show_prefix_cmd.
7684 * infcmd.c (unset_command): Remove.
7685 (_initialize_infcmd): Use add_basic_prefix_cmd.
7686 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7687 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7688 add_show_prefix_cmd.
7689 * go32-nat.c (go32_info_dos_command): Remove.
7690 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7691 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7692 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7693 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7694 (_initialize_frame): Use add_basic_prefix_cmd,
7695 add_show_prefix_cmd.
7696 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7697 (_initialize_dcache): Use add_basic_prefix_cmd,
7698 add_show_prefix_cmd.
7699 * cp-support.c (maint_cplus_command): Remove.
7700 (_initialize_cp_support): Use add_basic_prefix_cmd.
7701 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7702 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7703 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7704 add_basic_prefix_cmd, add_show_prefix_cmd.
7705 * breakpoint.c (save_command): Remove.
7706 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7707 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7708 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7709 add_show_prefix_cmd.
7710 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7711 (set_ada_command, show_ada_command): Remove.
7712 (_initialize_ada_language): Use add_basic_prefix_cmd,
7713 add_show_prefix_cmd.
7714 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7715
3557f442
KR
77162020-04-16 Kamil Rytarowski <n54@gmx.com>
7717
7718 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7719 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7720
16197208
SM
77212020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7722
7723 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7724 warning messages.
7725
00ac85d3
SM
77262020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7727
7728 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7729 import table is not at beginning of .idata section.
7730
381ce63f
PA
77312020-04-16 Pedro Alves <palves@redhat.com>
7732
7733 * inferior.c (delete_inferior): Use delete operator directly
7734 instead of delete_program_space.
7735 * progspace.c (add_program_space): New, factored out from
7736 program_space::program_space.
7737 (remove_program_space): New, factored out from
7738 delete_program_space.
7739 (program_space::program_space): Remove intro comment. Rewrite.
7740 (program_space::~program_space): Remove intro comment. Call
7741 remove_program_space.
7742 (delete_program_space): Delete.
7743 * progspace.h (program_space::program_space): Make explicit. Move
7744 intro comment here, adjusted.
7745 (program_space::~program_space): Move intro comment here,
7746 adjusted.
7747 (delete_program_space): Remove.
7748
a010605f
TT
77492020-04-16 Tom Tromey <tromey@adacore.com>
7750
7751 * windows-nat.c (windows_nat::handle_access_violation): New
7752 function.
7753 * nat/windows-nat.h (handle_access_violation): Declare.
7754 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7755 windows-nat.c. Call handle_access_violation.
7756
efba5c23
TV
77572020-04-16 Tom de Vries <tdevries@suse.de>
7758
7759 PR symtab/25791
7760 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7761 CUs without psymtab.
7762
97ed802d
KB
77632020-04-16 Kevin Buettner <kevinb@redhat.com>
7764
7765 * python/python.c (do_start_initialization): Don't call
7766 PyEval_InitThreads for Python 3.9 and beyond.
7767
c7d64809
KR
77682020-04-15 Kamil Rytarowski <n54@gmx.com>
7769
7770 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7771 thread functions.
7772 (obsd_nat_target::wait): Likewise.
7773
ce127a96
TT
77742020-04-15 Tom Tromey <tromey@adacore.com>
7775
7776 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7777 (DEBUG_EXCEPT): Use debug_printf.
7778
99f1bc6a
AB
77792020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7780
7781 * completer.c (class completion_tracker::completion_hash_entry)
7782 <hash_name>: New member function.
7783 (completion_tracker::discard_completions): New callback to hash a
7784 completion_hash_entry, pass this to htab_create_alloc.
7785
a0e9b532
JT
77862016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7787
7788 * windows-nat.c (windows_make_so): Warn rather than stopping with
7789 an error if realpath() fails.
7790
06ca5dd4
KR
77912020-04-14 Kamil Rytarowski <n54@gmx.com>
7792
7793 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7794 (nbsd_nat_target::info_proc): Add do_status.
7795
194d088f
TV
77962020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7797 Tom de Vries <tdevries@suse.de>
7798
7799 PR symtab/25718
7800 * psympriv.h (struct partial_symtab::read_symtab)
7801 (struct partial_symtab::expand_psymtab)
7802 (struct partial_symtab::read_dependencies): Update comments.
7803 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7804 read_symtab for includer.
7805 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7806 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7807 (struct dwarf2_include_psymtab::m_readin): Remove.
7808 (struct dwarf2_include_psymtab::includer): New member function.
7809 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7810
c1a66c06
TV
78112020-04-14 Tom de Vries <tdevries@suse.de>
7812
7813 PR symtab/25720
7814 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7815 with NULL symbol_matcher and lookup_name.
7816 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7817 and lookup_name.
7818 * dwarf2/read.c (dw2_expand_symtabs_matching)
7819 (dw2_debug_names_expand_symtabs_matching): Same.
7820 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7821 Make lookup_name a pointer. Update comment.
7822 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7823 lookup_name being a pointer.
7824 * symfile.c (expand_symtabs_matching): Same.
7825 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7826 * linespec.c (iterate_over_all_matching_symtabs): Same.
7827
400b5eca
TT
78282020-04-13 Tom Tromey <tom@tromey.com>
7829
7830 * run-on-main-thread.c: Update include.
7831 * unittests/main-thread-selftests.c: Update include.
7832 * tui/tui-win.c: Update include.
7833 * tui/tui-io.c: Update include.
7834 * tui/tui-interp.c: Update include.
7835 * tui/tui-hooks.c: Update include.
7836 * top.h: Update include.
7837 * top.c: Update include.
7838 * ser-base.c: Update include.
7839 * remote.c: Update include.
7840 * remote-notif.c: Update include.
7841 * remote-fileio.c: Update include.
7842 * record-full.c: Update include.
7843 * record-btrace.c: Update include.
7844 * python/python.c: Update include.
7845 * posix-hdep.c: Update include.
7846 * mingw-hdep.c: Update include.
7847 * mi/mi-main.c: Update include.
7848 * mi/mi-interp.c: Update include.
7849 * main.c: Update include.
7850 * linux-nat.c: Update include.
7851 * interps.c: Update include.
7852 * infrun.c: Update include.
7853 * inf-loop.c: Update include.
7854 * event-top.c: Update include.
7855 * event-loop.c: Move to ../gdbsupport/.
7856 * event-loop.h: Move to ../gdbsupport/.
7857 * async-event.h: Update include.
7858 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7859
93b54c8e
TT
78602020-04-13 Tom Tromey <tom@tromey.com>
7861
7862 * tui/tui-win.c: Include async-event.h.
7863 * remote.c: Include async-event.h.
7864 * remote-notif.c: Include async-event.h.
7865 * record-full.c: Include async-event.h.
7866 * record-btrace.c: Include async-event.h.
7867 * infrun.c: Include async-event.h.
7868 * event-top.c: Include async-event.h.
7869 * event-loop.h: Move some declarations to async-event.h.
7870 * event-loop.c: Don't include ser-event.h or top.h. Move some
7871 code to async-event.c.
7872 * async-event.h: New file.
7873 * async-event.c: New file.
7874 * Makefile.in (COMMON_SFILES): Add async-event.c.
7875 (HFILES_NO_SRCDIR): Add async-event.h.
7876
c1cd3163
TT
78772020-04-13 Tom Tromey <tom@tromey.com>
7878
7879 * utils.c (flush_streams): New function.
7880 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7881
29f2bf4f
TT
78822020-04-13 Tom Tromey <tom@tromey.com>
7883
7884 * event-loop.c (handle_file_event): Use warning, not
7885 printf_unfiltered.
7886
98029d02
TT
78872020-04-13 Tom Tromey <tom@tromey.com>
7888
7889 * event-loop.c: Include <chrono>.
7890
06cc9596
TT
78912020-04-13 Tom Tromey <tom@tromey.com>
7892
7893 * gdb_select.h: Move to ../gdbsupport/.
7894 * event-loop.c: Update include path.
7895 * top.c: Update include path.
7896 * ser-base.c: Update include path.
7897 * ui-file.c: Update include path.
7898 * ser-tcp.c: Update include path.
7899 * guile/scm-ports.c: Update include path.
7900 * posix-hdep.c: Update include path.
7901 * ser-unix.c: Update include path.
7902 * gdb_usleep.c: Update include path.
7903 * mingw-hdep.c: Update include path.
7904 * inflow.c: Update include path.
7905 * infrun.c: Update include path.
7906 * event-top.c: Update include path.
7907
8ae8e197
TT
79082020-04-13 Tom Tromey <tom@tromey.com>
7909
7910 * configure: Rebuild.
7911 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7912
58cf28e8
TT
79132020-04-13 Tom Tromey <tom@tromey.com>
7914
7915 * event-loop.h (start_event_loop): Don't declare.
7916 * event-loop.c (start_event_loop): Move...
7917 * main.c (start_event_loop): ...here. Now static.
7918
b7f999ae
SDJ
79192020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7920
7921 * MAINTAINERS: Update my email address.
7922
1085dfd4
KR
79232020-04-12 Kamil Rytarowski <n54@gmx.com>
7924
7925 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7926 IP_ALL.
7927
49d1d1f5
KR
79282020-04-12 Kamil Rytarowski <n54@gmx.com>
7929
7930 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7931 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7932
b4848d2a
KR
79332020-04-12 Kamil Rytarowski <n54@gmx.com>
7934
7935 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7936 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7937
51c133d5
KR
79382020-04-12 Kamil Rytarowski <n54@gmx.com>
7939
7940 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7941
54b8cbd0
KR
79422020-04-11 Kamil Rytarowski <n54@gmx.com>
7943
7944 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7945 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7946 (nbsd_nat_target::info_proc): New functions.
7947 * nbsd-nat.c (kinfo_get_vmmap): New function.
7948 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7949 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7950 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7951 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7952 functions.
7953 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7954 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7955 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7956 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7957 (KINFO_VME_FLAG_GROWS_DOWN): New.
7958
cf83625d
AS
79592020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7960
7961 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7962 bit shift.
7963
0c4311ab
TT
79642020-04-10 Tom Tromey <tromey@adacore.com>
7965
7966 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7967
3e65b3e9
TT
79682020-04-10 Tom Tromey <tromey@adacore.com>
7969
7970 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7971 separate debug files.
7972
13302e95
HD
79732020-04-10 Hannes Domani <ssbssa@yahoo.de>
7974
7975 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7976 Move to...
7977 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7978 ... here.
7979 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7980 Check for STATUS_WX86_BREAKPOINT.
7981 (windows_nat_target::wait): Same.
7982
bdfc1e8a
TV
79832020-04-10 Tom de Vries <tdevries@suse.de>
7984
7985 PR cli/25808
7986 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7987
f4460aec
SM
79882020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7989
7990 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7991 (Write After Approval): Remove Tom de Vries.
7992
a25198bb
BE
79932020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7994
7995 revert partially:
7996 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7997
aac66a4c
SM
7998 * buildsym.c (record_line): Fix undefined behavior and preserve
7999 lines at eof.
a25198bb 8000
206c98a6
KR
80012020-04-09 Kamil Rytarowski <n54@gmx.com>
8002
8003 * auxv.h (svr4_auxv_parse): New.
8004 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8005 and generic_auxv_parse.
8006 (svr4_auxv_parse): Add.
8007 * obsd-tdep.c: Include "auxv.h".
8008 (obsd_auxv_parse): Remove.
8009 (obsd_init_abi): Remove comment.
8010 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8011 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8012 * nbsd-tdep.c: Include "auxv.h".
8013 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8014
71fbdbaf
TT
80152020-04-08 Tom Tromey <tromey@adacore.com>
8016
8017 * nat/windows-nat.h (last_wait_event): Don't declare.
8018 (wait_for_debug_event): Update comment.
8019 * nat/windows-nat.c (last_wait_event): Now static.
8020
2c1d95e8
TT
80212020-04-08 Tom Tromey <tromey@adacore.com>
8022
8023 * windows-nat.c (wait_for_debug_event): Move to
8024 nat/windows-nat.c.
8025 * nat/windows-nat.h (wait_for_debug_event): Declare.
8026 * nat/windows-nat.c (wait_for_debug_event): Move from
8027 windows-nat.c. No longer static.
8028
d2977bc4
TT
80292020-04-08 Tom Tromey <tromey@adacore.com>
8030
8031 * windows-nat.c (get_windows_debug_event): Use
8032 fetch_pending_stop.
8033 * nat/windows-nat.h (fetch_pending_stop): Declare.
8034 * nat/windows-nat.c (fetch_pending_stop): New function.
8035
e758e19c
TT
80362020-04-08 Tom Tromey <tromey@adacore.com>
8037
8038 * windows-nat.c (windows_continue): Use matching_pending_stop and
8039 continue_last_debug_event.
8040 * nat/windows-nat.h (matching_pending_stop)
8041 (continue_last_debug_event): Declare.
8042 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8043 (matching_pending_stop, continue_last_debug_event): New
8044 functions.
8045
8d30e395
TT
80462020-04-08 Tom Tromey <tromey@adacore.com>
8047
8048 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8049 (handle_exception_result): Move to nat/windows-nat.h.
8050 (DEBUG_EXCEPTION_SIMPLE): Remove.
8051 (windows_nat::handle_ms_vc_exception): New function.
8052 (handle_exception): Move to nat/windows-nat.c.
8053 (get_windows_debug_event): Update.
8054 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8055 nat/windows-nat.c.
8056 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8057 (handle_exception_result): Move from windows-nat.c.
8058 (handle_exception): Declare.
8059 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8060 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8061 windows-nat.c.
8062
29de418d
TT
80632020-04-08 Tom Tromey <tromey@adacore.com>
8064
8065 * windows-nat.c (exception_count, event_count): Remove.
8066 (handle_exception, get_windows_debug_event)
8067 (do_initial_windows_stuff): Update.
8068
a816ba18
TT
80692020-04-08 Tom Tromey <tromey@adacore.com>
8070
8071 * windows-nat.c (windows_nat::handle_load_dll)
8072 (windows_nat::handle_unload_dll): Rename. No longer static.
8073 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8074 Declare.
8075
a00caa12
TT
80762020-04-08 Tom Tromey <tromey@adacore.com>
8077
8078 * complaints.h (stop_whining): Declare at top-level.
8079 (complaint): Don't declare stop_whining.
8080
d41b524f
TT
80812020-04-08 Tom Tromey <tromey@adacore.com>
8082
8083 * windows-nat.c (windows_nat::handle_output_debug_string):
8084 Rename. No longer static.
8085 * nat/windows-nat.h (handle_output_debug_string): Declare.
8086
3c76026d
TT
80872020-04-08 Tom Tromey <tromey@adacore.com>
8088
8089 * windows-nat.c (current_process_handle, current_process_id)
8090 (main_thread_id, last_sig, current_event, last_wait_event)
8091 (current_windows_thread, desired_stop_thread_id, pending_stops)
8092 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8093 (display_selectors, fake_create_process)
8094 (get_windows_debug_event): Update.
8095 * nat/windows-nat.h (current_process_handle, current_process_id)
8096 (main_thread_id, last_sig, current_event, last_wait_event)
8097 (current_windows_thread, desired_stop_thread_id, pending_stops)
8098 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8099 * nat/windows-nat.c (current_process_handle, current_process_id)
8100 (main_thread_id, last_sig, current_event, last_wait_event)
8101 (current_windows_thread, desired_stop_thread_id, pending_stops)
8102 (siginfo_er): New globals. Move from windows-nat.c.
8103
9d8679cc
TT
81042020-04-08 Tom Tromey <tromey@adacore.com>
8105
8106 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8107 (handle_load_dll): Update.
8108 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8109
28688adf
TT
81102020-04-08 Tom Tromey <tromey@adacore.com>
8111
8112 * windows-nat.c (enum thread_disposition_type): Move to
8113 nat/windows-nat.h.
8114 (windows_nat::thread_rec): Rename from thread_rec. No longer
8115 static.
8116 (windows_add_thread, windows_nat_target::fetch_registers)
8117 (windows_nat_target::store_registers, handle_exception)
8118 (windows_nat_target::resume, get_windows_debug_event)
8119 (windows_nat_target::get_tib_address)
8120 (windows_nat_target::thread_name)
8121 (windows_nat_target::thread_alive): Update.
8122 * nat/windows-nat.h (enum thread_disposition_type): Move from
8123 windows-nat.c.
8124 (thread_rec): Declare.
8125
4834dad0
TT
81262020-04-08 Tom Tromey <tromey@adacore.com>
8127
8128 * windows-nat.c: Add "using namespace".
8129 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8130 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8131
65bafd5b
TT
81322020-04-08 Tom Tromey <tromey@adacore.com>
8133
8134 * nat/windows-nat.h (struct windows_thread_info): Declare
8135 destructor.
8136 * nat/windows-nat.c (~windows_thread_info): New.
8137
0a4afda3
TT
81382020-04-08 Tom Tromey <tromey@adacore.com>
8139
8140 PR gdb/22992
8141 * windows-nat.c (current_event): Update comment.
8142 (last_wait_event, desired_stop_thread_id): New globals.
8143 (struct pending_stop): New.
8144 (pending_stops): New global.
8145 (windows_nat_target) <stopped_by_sw_breakpoint>
8146 <supports_stopped_by_sw_breakpoint>: New methods.
8147 (windows_fetch_one_register): Add assertions. Adjust PC.
8148 (windows_continue): Handle pending stops. Suspend other threads
8149 when stepping. Use last_wait_event
8150 (wait_for_debug_event): New function.
8151 (get_windows_debug_event): Use wait_for_debug_event. Handle
8152 pending stops. Queue spurious stops.
8153 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8154 (windows_nat_target::kill): Use wait_for_debug_event.
8155 * nat/windows-nat.h (struct windows_thread_info)
8156 <stopped_at_software_breakpoint>: New field.
8157 * nat/windows-nat.c (windows_thread_info::resume): Clear
8158 stopped_at_software_breakpoint.
8159
8e61ebec
TT
81602020-04-08 Tom Tromey <tromey@adacore.com>
8161
8162 * windows-nat.c (enum thread_disposition_type): New.
8163 (thread_rec): Replace "get_context" parameter with "disposition";
8164 change type.
8165 (windows_add_thread, windows_nat_target::fetch_registers)
8166 (windows_nat_target::store_registers, handle_exception)
8167 (windows_nat_target::resume, get_windows_debug_event)
8168 (windows_nat_target::get_tib_address)
8169 (windows_nat_target::thread_name)
8170 (windows_nat_target::thread_alive): Update.
8171
98a03287
TT
81722020-04-08 Tom Tromey <tromey@adacore.com>
8173
8174 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8175 (windows_continue): Use windows_continue::resume.
8176 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8177 resume>: Declare new methods.
8178 * nat/windows-nat.c: New file.
8179 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8180
7c7411bc
TT
81812020-04-08 Tom Tromey <tromey@adacore.com>
8182
8183 * windows-nat.c (windows_add_thread, windows_delete_thread)
8184 (windows_nat_target::fetch_registers)
8185 (windows_nat_target::store_registers, fake_create_process)
8186 (windows_nat_target::resume, windows_nat_target::resume)
8187 (get_windows_debug_event, windows_nat_target::wait)
8188 (windows_nat_target::pid_to_str)
8189 (windows_nat_target::get_tib_address)
8190 (windows_nat_target::get_ada_task_ptid)
8191 (windows_nat_target::thread_name)
8192 (windows_nat_target::thread_alive): Use lwp, not tid.
8193
2950fdf7
TT
81942020-04-08 Tom Tromey <tromey@adacore.com>
8195
8196 * windows-nat.c (handle_exception)
8197 (windows_nat_target::thread_name): Update.
8198 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8199 <name>: Now unique_xmalloc_ptr.
8200
62fe396b
TT
82012020-04-08 Tom Tromey <tromey@adacore.com>
8202
8203 * windows-nat.c (thread_rec)
8204 (windows_nat_target::fetch_registers): Update.
8205 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8206 Update comment.
8207 <debug_registers_changed, reload_context>: Now bool.
8208
e9534bd2
TT
82092020-04-08 Tom Tromey <tromey@adacore.com>
8210
8211 * windows-nat.c (windows_add_thread): Use new.
8212 (windows_init_thread_list, windows_delete_thread): Use delete.
8213 (get_windows_debug_event): Update.
8214 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8215 destructor, and initializers.
8216
ae1f8880
TT
82172020-04-08 Tom Tromey <tromey@adacore.com>
8218
8219 * windows-nat.c (struct windows_thread_info): Remove.
8220 * nat/windows-nat.h: New file.
8221
55a1e039
TT
82222020-04-08 Tom Tromey <tromey@adacore.com>
8223
8224 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8225 (thread_rec, windows_add_thread, windows_delete_thread)
8226 (windows_continue): Update.
8227
93366324
TT
82282020-04-08 Tom Tromey <tromey@adacore.com>
8229
8230 * windows-nat.c (struct windows_thread_info): Remove typedef.
8231 (thread_head): Remove.
8232 (thread_list): New global.
8233 (thread_rec, windows_add_thread, windows_init_thread_list)
8234 (windows_delete_thread, windows_continue): Update.
8235
0f2265e2
SM
82362020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8237
8238 * windows-tdep.h (windows_init_abi): Add comment.
8239 (cygwin_init_abi): New declaration.
8240 * windows-tdep.c: Split signal enumeration in two, one for
8241 Windows and one for Cygwin.
8242 (windows_gdb_signal_to_target): Only deal with signal of the
8243 Windows OS ABI.
8244 (cygwin_gdb_signal_to_target): New function.
8245 (windows_init_abi): Rename to windows_init_abi_common, don't set
8246 gdb_signal_to_target gdbarch method. Add new new function with
8247 this name.
8248 (cygwin_init_abi): New function.
8249 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8250 comment. Don't call windows_init_abi.
8251 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8252 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8253 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8254 i386_windows_init_abi_common, don't call windows_init_abi. Add
8255 a new function of this name.
8256 (i386_cygwin_init_abi): New function.
8257 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8258 OS ABI Cygwin.
8259
3810f182
SM
82602020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8261
8262 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8263 parameter.c.
8264 (dwarf2_read_gdb_index): Update.
8265
063f8e80
KR
82662020-04-07 Kamil Rytarowski <n54@gmx.com>
8267
8268 * nbsd-tdep.c: Include "objfiles.h".
8269 (nbsd_skip_solib_resolver): New.
8270 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8271
85a9510c 82722020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8273
8274 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8275 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8276 with DW_LLE_base_addressx are being emitted in DWARFv5.
8277 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8278 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8279 unsigned integer.
8280
9fc3eaae 82812020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8282
8283 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8284 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8285 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8286 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8287 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8288 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8289 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8290
8291
41144253 82922020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8293
8294 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8295 (read_loclist_index): New function definition.
8296 (lookup_loclist_base): New function definition.
8297 (read_loclist_header): New function definition.
8298 (dwarf2_cu): Add loclist_base and loclist_header field.
8299 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8300 (read_full_die_1): Read the value of DW_AT_loclists_base.
8301 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8302 (read_attribute_value): Handle DW_FORM_loclistx.
8303 (skip_one_die): Handle DW_FORM_loclistx.
8304 (loclist_header): New structure declaration.
8305 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8306
9f4e76a4
SM
83072020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8308
8309 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8310 constructor. Remove `addr` parameter from other constructor and
8311 add `per_cu` parameter.
8312 * dwarf2/read.c (create_partial_symtab): Update.
8313
25c11aca
TV
83142020-04-07 Tom de Vries <tdevries@suse.de>
8315
8316 PR symtab/25796
8317 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8318 (partial_die_info::fixup): Inherit has_const_value.
8319
5707e24b
TV
83202020-04-07 Tom de Vries <tdevries@suse.de>
8321
8322 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8323 symbols without address.
8324
05f00e22
KR
83252020-04-06 Kamil Rytarowski <n54@gmx.com>
8326
8327 * nbsd-nat.h (struct thread_info): Add forward declaration.
8328 (nbsd_nat_target::thread_alive): Add.
8329 (nbsd_nat_target::thread_name): Likewise.
8330 (nbsd_nat_target::update_thread_list): Likewise.
8331 (update_thread_list::post_attach): Likewise.
8332 (post_attach::pid_to_str): Likewise.
8333 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8334 (nbsd_thread_lister): Add.
8335 (nbsd_nat_target::thread_alive): Likewise.
8336 (nbsd_nat_target::thread_name): Likewise.
8337 (nbsd_add_threads): Likewise.
8338 (update_thread_list::post_attach): Likewise.
8339 (nbsd_nat_target::update_thread_list): Likewise.
8340 (post_attach::pid_to_str): Likewise.
8341
6ee448cc
TT
83422020-04-06 Tom Tromey <tromey@adacore.com>
8343
8344 * ada-valprint.c (print_variant_part): Extract the variant field.
8345 (print_field_values): Use the field as the outer value when
8346 recursing.
8347
dea34e8c
TT
83482020-04-06 Tom Tromey <tromey@adacore.com>
8349
8350 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8351 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8352 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8353 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8354 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8355
93689ce9
TT
83562020-04-06 Tom Tromey <tromey@adacore.com>
8357
8358 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8359 TYPE_CODE_ERROR.
8360
79743962
KR
83612020-04-06 Kamil Rytarowski <n54@gmx.com>
8362
8363 * nbsd-tdep.c: Include "gdbarch.h".
8364 Define enum with NetBSD signal numbers.
8365 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8366 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8367 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8368 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8369 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8370 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8371 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8372 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8373 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8374 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8375 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8376 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8377
9e7c9a03
HD
83782020-04-03 Hannes Domani <ssbssa@yahoo.de>
8379
8380 PR gdb/25325
8381 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8382
d9e49b61
TT
83832020-04-03 Tom Tromey <tromey@adacore.com>
8384
8385 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8386 Read constant block.
8387
e0fc5c3f
SM
83882020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8389
8390 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8391 (gdb_bfd_get_full_section_contents): New declaration.
8392 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8393 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8394 gdb_bfd_get_full_section_contents.
8395
e2ff18a0
SM
83962020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8397
8398 * exec.c (build_section_table): Replace internal_error with
8399 gdb_assert.
8400 (section_table_xfer_memory_partial): Likewise.
8401 * mdebugread.c (parse_partial_symbols): Likewise.
8402 * psymtab.c (lookup_partial_symbol): Likewise.
8403 * utils.c (wrap_here): Likewise.
8404
0830d301
TT
84052020-04-02 Tom Tromey <tromey@adacore.com>
8406
8407 * f-lang.c (build_fortran_types): Use arch_type to initialize
8408 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8409
e7da7f8f
TT
84102020-04-02 Tom Tromey <tromey@adacore.com>
8411
8412 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8413 of attributes.
8414
c90d28ac
AB
84152020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8416 Bernd Edlinger <bernd.edlinger@hotmail.de>
8417 Tom Tromey <tromey@adacore.com>
8418
8419 * buildsym.c (buildsym_compunit::record_line): Remove
8420 deduplication code.
8421
1aa98955
TV
84222020-04-02 Tom de Vries <tdevries@suse.de>
8423
8424 PR ada/24671
8425 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8426
d3214198
TV
84272020-04-02 Tom de Vries <tdevries@suse.de>
8428
8429 * dwarf2/read.c (dwarf2_gdb_index_functions,
8430 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8431 NULL.
8432 * psymtab.c (psym_lookup_global_symbol_language): New function.
8433 (psym_functions): Init psym_lookup_global_symbol_language with
8434 psym_lookup_global_symbol_language.
8435 * symfile-debug.c (debug_sym_quick_functions): Init
8436 lookup_global_symbol_language with NULL.
8437 * symfile.c (set_initial_language): Remove fixme comment.
8438 * symfile.h (struct quick_symbol_functions): Add
8439 lookup_global_symbol_language.
8440 * symtab.c (find_quick_global_symbol_language): New function.
8441 (find_main_name): Use find_quick_global_symbol_language.
8442
2836752f
SM
84432020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8444
8445 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8446
64dc2d4b
BE
84472020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8448
8449 * buildsym.c (record_line): Fix undefined behavior and preserve
8450 lines at eof.
8451
bbe3dc41
BE
84522020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8453
8454 * buildsym.c (record_line): Fix the resizing condition.
8455
6b4a335b
TT
84562020-04-01 Tom Tromey <tom@tromey.com>
8457
8458 * value.h (value_literal_complex): Add comment.
8459 * valops.c (value_literal_complex): Refer to value.h.
8460
3638a098
TT
84612020-04-01 Tom Tromey <tom@tromey.com>
8462
8463 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8464 (scalar_type): New rule, from typebase.
8465 (typebase): Use scalar_type. Recognize complex types.
8466 (field_name): Handle FLOAT_KEYWORD.
8467 (ident_tokens): Add _Complex and __complex__.
8468
c34e8714
TT
84692020-04-01 Tom Tromey <tom@tromey.com>
8470
8471 PR exp/25299:
8472 * valarith.c (promotion_type, complex_binop): New functions.
8473 (scalar_binop): Handle complex numbers. Use promotion_type.
8474 (value_pos, value_neg, value_complement): Handle complex numbers.
8475
fa649bb7
TT
84762020-04-01 Tom Tromey <tom@tromey.com>
8477
8478 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8479 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8480 (parse_number): Handle complex numbers.
8481
981c08ce
TT
84822020-04-01 Tom Tromey <tom@tromey.com>
8483
8484 * c-valprint.c (c_decorations): Change complex suffix to "i".
8485
4c99290d
TT
84862020-04-01 Tom Tromey <tom@tromey.com>
8487
8488 * valprint.c (generic_value_print_complex): Use accessors.
8489 * value.h (value_real_part, value_imaginary_part): Declare.
8490 * valops.c (value_real_part, value_imaginary_part): New
8491 functions.
8492 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8493
5b930b45
TT
84942020-04-01 Tom Tromey <tom@tromey.com>
8495
8496 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8497 (read_range_type): Update.
8498 * mdebugread.c (basic_type): Update.
8499 * go-lang.c (build_go_types): Use init_complex_type.
8500 * gdbtypes.h (struct main_type) <complex_type>: New member.
8501 (init_complex_type): Update.
8502 (arch_complex_type): Don't declare.
8503 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8504 Make name if none given. Use alloc_type_copy. Look for cached
8505 complex type.
8506 (arch_complex_type): Remove.
8507 (gdbtypes_post_init): Use init_complex_type.
8508 * f-lang.c (build_fortran_types): Use init_complex_type.
8509 * dwarf2/read.c (read_base_type): Update.
8510 * d-lang.c (build_d_types): Use init_complex_type.
8511 * ctfread.c (read_base_type): Update.
8512
53cccef1
TBA
85132020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8514
8515 * infrun.c (stop_all_threads): Update assertion, plus when
8516 stopping threads, take into account that we might be trying
8517 to stop an all-stop target.
8518 (stop_waiting): Call 'stop_all_threads' if there exists a
8519 non-stop target.
8520
a0714d30
TBA
85212020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8522
8523 * target.h (exists_non_stop_target): New function declaration.
8524 * target.c (exists_non_stop_target): New function.
8525
60e22c1e
HD
85262020-04-01 Hannes Domani <ssbssa@yahoo.de>
8527
8528 PR gdb/24789
8529 * eval.c (is_integral_or_integral_reference): New function.
8530 (evaluate_subexp_standard): Allow integer references in
8531 pointer arithmetic.
8532
e139a727
TBA
85332020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8534
8535 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8536 check for no ptid in the stop reply when the target is non-stop.
8537
e0802d59
TT
85382020-04-01 Tom Tromey <tromey@adacore.com>
8539
8540 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8541 "name" parameter to rvalue reference. Initialize m_name_holder.
8542 <lookup_name_info>: New overloads.
8543 <name>: Return gdb::string_view.
8544 <c_str>: New method.
8545 <make_ignore_params>: Update.
8546 <search_name_hash>: Update.
8547 <language_lookup_name>: Return const char *.
8548 <m_name>: Change type.
8549 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8550 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8551 (lookup_name_info::match_any): Update.
8552 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8553 Update.
8554 * minsyms.c (linkage_name_str): Update.
8555 * language.c (default_symbol_name_matcher): Update.
8556 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8557 Update.
8558 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8559 (ada_lookup_name_info::ada_lookup_name_info): Update.
8560 (literal_symbol_name_matcher): Update.
8561
8c072cb6
TT
85622020-04-01 Tom Tromey <tromey@adacore.com>
8563
8564 * psymtab.c (psymtab_search_name): Remove function.
8565 (psym_lookup_symbol): Create search name and lookup name here.
8566 (lookup_partial_symbol): Remove "name" parameter; add
8567 lookup_name.
8568 (psym_expand_symtabs_for_function): Update.
8569
6f29a534
TT
85702020-03-31 Joel Jones <joelkevinjones@gmail.com>
8571
8572 PR tui/25597:
8573 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8574
af62665e
TT
85752020-03-31 Tom Tromey <tromey@adacore.com>
8576
8577 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8578 memcpy.
8579
d1a89da5
NC
85802020-03-30 Nelson Chu <nelson.chu@sifive.com>
8581
8582 * features/riscv/32bit-csr.xml: Regenerated.
8583 * features/riscv/64bit-csr.xml: Regenerated.
8584
d8af9068
TT
85852020-03-30 Tom Tromey <tromey@adacore.com>
8586
8587 * ada-valprint.c (print_variant_part): Update.
8588 * ada-lang.h (ada_which_variant_applies): Update.
8589 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8590 outer_valaddr parameters; replace with "outer" value parameter.
8591 (to_fixed_variant_branch_type): Update.
8592
227c0bf4
PFC
85932020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8594
8595 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8596 <list>. Remove inclusion of observable.h.
8597 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8598 (struct arch_lwp_info): New struct.
8599 (class ppc_linux_dreg_interface): New class.
8600 (struct ppc_linux_process_info): New struct.
8601 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8602 <low_new_clone, low_forget_process, low_prepare_to_resume>
8603 <copy_thread_dreg_state, mark_thread_stale>
8604 <mark_debug_registers_changed, register_hw_breakpoint>
8605 <clear_hw_breakpoint, register_wp, clear_wp>
8606 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8607 <num_memory_accesses, get_trigger_type>
8608 <create_watchpoint_request, hwdebug_point_cmp>
8609 <init_arch_lwp_info, get_arch_lwp_info>
8610 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8611 methods.
8612 <struct ptid_hash>: New inner struct.
8613 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8614 members.
8615 (saved_dabr_value, hwdebug_info, max_slots_number)
8616 (struct hw_break_tuple, struct thread_points, ppc_threads)
8617 (have_ptrace_hwdebug_interface)
8618 (hwdebug_find_thread_points_by_tid)
8619 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8620 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8621 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8622 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8623 use m_dreg_interface.
8624 (hwdebug_point_cmp): Change to...
8625 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8626 reference arguments instead of pointers.
8627 (ppc_linux_nat_target::ranged_break_num_registers): Use
8628 m_dreg_interface.
8629 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8630 m_dreg_interface. Call register_hw_breakpoint.
8631 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8632 m_dreg_interface. Call clear_hw_breakpoint.
8633 (get_trigger_type): Change to...
8634 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8635 comment.
8636 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8637 use m_dreg_interface. Call register_hw_breakpoint.
8638 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8639 use m_dreg_interface. Call clear_hw_breakpoint.
8640 (can_use_watchpoint_cond_accel): Change to...
8641 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8642 method. Update comment, use m_dreg_interface and
8643 m_process_info.
8644 (calculate_dvc): Change to...
8645 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8646 m_dreg_interface.
8647 (num_memory_accesses): Change to...
8648 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8649 (check_condition): Change to...
8650 (ppc_linux_nat_target::check_condition): ...this method.
8651 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8652 comment, use m_dreg_interface.
8653 (create_watchpoint_request): Change to...
8654 (ppc_linux_nat_target::create_watchpoint_request): ...this
8655 method. Use m_dreg_interface.
8656 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8657 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8658 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8659 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8660 (ppc_linux_nat_target::low_forget_process)
8661 (ppc_linux_nat_target::low_new_fork)
8662 (ppc_linux_nat_target::low_new_clone)
8663 (ppc_linux_nat_target::low_delete_thread)
8664 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8665 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8666 only call mark_thread_stale.
8667 (ppc_linux_thread_exit): Remove.
8668 (ppc_linux_nat_target::stopped_data_address): Change to...
8669 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8670 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8671 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8672 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8673 comment. Call low_stopped_data_address.
8674 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8675 m_dreg_interface.
8676 (ppc_linux_nat_target::masked_watch_num_registers): Use
8677 m_dreg_interface.
8678 (ppc_linux_nat_target::copy_thread_dreg_state)
8679 (ppc_linux_nat_target::mark_thread_stale)
8680 (ppc_linux_nat_target::mark_debug_registers_changed)
8681 (ppc_linux_nat_target::register_hw_breakpoint)
8682 (ppc_linux_nat_target::clear_hw_breakpoint)
8683 (ppc_linux_nat_target::register_wp)
8684 (ppc_linux_nat_target::clear_wp)
8685 (ppc_linux_nat_target::init_arch_lwp_info)
8686 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8687 (_initialize_ppc_linux_nat): Remove observer callback.
8688
4db10d8f
PFC
86892020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8690
8691 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8692 (ppc_linux_nat_target::auxv_parse)
8693 (ppc_linux_nat_target::read_description)
8694 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8695 Move up.
8696
1310c1b0
PFC
86972020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8698
8699 * linux-nat.h (low_new_clone): New method.
8700 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8701
69b037c3
SM
87022020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8703
8704 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8705 (dbx_expand_psymtab): ... this.
8706 (start_psymtab): Update.
8707 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8708 (mdebug_expand_psymtab): ... this.
8709 (parse_partial_symbols): Update.
8710 (new_psymtab): Update.
8711 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8712 (xcoff_expand_psymtab): ... this.
8713 (xcoff_start_psymtab): Update.
8714
48993951
SM
87152020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8716
8717 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8718 <expand_dependencies>: ... this.
8719 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8720 (partial_symtab::expand_dependencies): ... this.
8721 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8722 Update.
8723 (dwarf2_psymtab::expand_psymtab): Update.
8724 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8725 * mdebugread.c (psymtab_to_symtab_1): Update.
8726 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8727
3ad83046
SM
87282020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8729
8730 * psympriv.h (discard_psymtab): Remove.
8731 * dbxread.c (dbx_end_psymtab): Update.
8732 * xcoffread.c (xcoff_end_psymtab): Update.
8733
4d1b9ab6
TT
87342020-03-28 Tom Tromey <tom@tromey.com>
8735
8736 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8737 comment.
8738
f1749218
TT
87392020-03-28 Tom Tromey <tom@tromey.com>
8740
8741 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8742
ebea7626
HD
87432020-03-27 Hannes Domani <ssbssa@yahoo.de>
8744
8745 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8746
a879b4d5
JB
87472020-03-26 John Baldwin <jhb@FreeBSD.org>
8748
8749 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8750
0826b30a
TT
87512020-03-26 Tom Tromey <tom@tromey.com>
8752
8753 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8754 (mark_common_block_symbol_computed, read_tag_string_type)
8755 (attr_to_dynamic_prop, read_subrange_type): Update.
8756 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8757 to be methods on struct attribute.
8758 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8759 (read_call_site_scope, partial_die_info::read)
8760 (partial_die_info::read, lookup_die_type, follow_die_ref):
8761 Update.
8762 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8763 from dwarf2_get_ref_die_offset.
8764 (attribute::constant_value): New method, from
8765 dwarf2_get_attr_constant_value.
8766 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8767 Declare method.
8768 <constant_value>: New method.
8769
2b2558bf
TT
87702020-03-26 Tom Tromey <tom@tromey.com>
8771
8772 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8773 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8774 (dwarf_type_encoding_name): Move to stringify.c.
8775 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8776 * dwarf2/stringify.c: New file.
8777 * dwarf2/stringify.h: New file.
8778
eeb64781
TT
87792020-03-26 Tom Tromey <tom@tromey.com>
8780
8781 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8782 Rewrite.
8783
a39fdb41
TT
87842020-03-26 Tom Tromey <tom@tromey.com>
8785
8786 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8787 methods.
8788 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8789 (lookup_ranges_base): Likewise.
8790 (read_cutu_die_from_dwo, read_full_die_1): Update.
8791
436c571c
TT
87922020-03-26 Tom Tromey <tom@tromey.com>
8793
8794 * dwarf2/read.c (read_import_statement, read_file_scope)
8795 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8796 (read_lexical_block_scope, read_call_site_scope)
8797 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8798 (handle_struct_member_die, process_structure_scope)
8799 (update_enumeration_type_from_children)
8800 (process_enumeration_scope, read_array_type, read_common_block)
8801 (read_namespace, read_module, read_subroutine_type): Update.
8802 (sibling_die): Remove.
8803
052c8bb8
TT
88042020-03-26 Tom Tromey <tom@tromey.com>
8805
8806 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8807 (build_type_psymtabs_reader, read_structure_type)
8808 (read_enumeration_type, read_full_die_1): Update.
8809 (dwarf2_attr_no_follow): Move to die.h.
8810 * dwarf2/die.h (struct die_info) <attr>: New method.
8811
2b24b6e4
TT
88122020-03-26 Tom Tromey <tom@tromey.com>
8813
8814 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8815 <base_address>: Now an optional.
8816 (dwarf2_find_base_address, dwarf2_rnglists_process)
8817 (dwarf2_ranges_process, fill_in_loclist_baton)
8818 (dwarf2_symbol_mark_computed): Update.
8819
c2d50fd0
TT
88202020-03-26 Tom Tromey <tom@tromey.com>
8821
8822 * dwarf2/read.c (struct die_info): Move to die.h.
8823 * dwarf2/die.h: New file.
8824
0df7ad3a
TT
88252020-03-26 Tom Tromey <tom@tromey.com>
8826
8827 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8828 * dwarf2/read.c
8829 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8830 Move to line-header.c.
8831 (read_checked_initial_length_and_offset, read_formatted_entries):
8832 Likewise.
8833 (dwarf_decode_line_header): Split into two.
8834 * dwarf2/line-header.c
8835 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8836 Move from read.c.
8837 (read_checked_initial_length_and_offset, read_formatted_entries):
8838 Likewise.
8839 (dwarf_decode_line_header): New function, split from read.c.
8840
86c0bb4c
TT
88412020-03-26 Tom Tromey <tom@tromey.com>
8842
8843 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8844 Declare method.
8845 * dwarf2/read.c (read_attribute_value): Update.
8846 (dwarf2_per_objfile::read_line_string): Rename from
8847 read_indirect_line_string.
8848 (read_formatted_entries): Update.
8849
2ef46c2f
TT
88502020-03-26 Tom Tromey <tom@tromey.com>
8851
8852 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8853 variable.
8854
4f9c1eda
TT
88552020-03-26 Tom Tromey <tom@tromey.com>
8856
8857 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8858 const.
8859 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8860 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8861 parameter const.
8862
5a0e026f
TT
88632020-03-26 Tom Tromey <tom@tromey.com>
8864
8865 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8866 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8867 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8868 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8869
8844c11b
TT
88702020-03-26 Tom Tromey <tom@tromey.com>
8871
8872 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8873 file_names_size, file_full_name, file_file_name>: Use const.
8874 <file_name_at, file_names>: Add const overload.
8875 * dwarf2/line-header.c (line_header::file_file_name)
8876 (line_header::file_full_name): Update.
8877
c90ec28a
TT
88782020-03-26 Tom Tromey <tom@tromey.com>
8879
8880 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8881 (macro_start_file, consume_improper_spaces)
8882 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8883 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8884 (dwarf_decode_macros): Move to macro.c.
8885 * dwarf2/macro.c: New file.
8886 * dwarf2/macro.h: New file.
8887 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8888
4f44ae6c
TT
88892020-03-26 Tom Tromey <tom@tromey.com>
8890
8891 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8892 method.
8893 * dwarf2/section.c: New method. From
8894 read_indirect_string_at_offset_from.
8895 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8896 (read_indirect_string_at_offset_from): Move to section.c.
8897 (read_indirect_string_at_offset): Rewrite.
8898 (read_indirect_line_string_at_offset): Remove.
8899 (read_indirect_string, read_indirect_line_string)
8900 (dwarf_decode_macro_bytes): Update.
8901
a0194fa8
TT
89022020-03-26 Tom Tromey <tom@tromey.com>
8903
8904 * dwarf2/section.h (struct dwarf2_section_info)
8905 <overload_complaint>: Declare.
8906 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8907 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8908 Rename from dwarf2_section_buffer_overflow_complaint.
8909 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8910 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8911
3d27bbdb
TT
89122020-03-26 Tom Tromey <tom@tromey.com>
8913
8914 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8915 Declare.
8916 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8917 Move from read.c.
8918 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8919 to section.c.
8920
9eac9650
TT
89212020-03-26 Tom Tromey <tom@tromey.com>
8922
8923 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8924
bf80d710
TT
89252020-03-26 Tom Tromey <tom@tromey.com>
8926
8927 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8928 "builder".
8929 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8930 parameter.
8931 (dwarf_decode_macros): Update.
8932
0314b390
TT
89332020-03-26 Tom Tromey <tom@tromey.com>
8934
8935 * dwarf2/read.c (read_attribute_value): Update.
8936 (read_indirect_string_from_dwz): Move to dwz.c; change into
8937 method.
8938 (dwarf_decode_macro_bytes): Update.
8939 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8940 * dwarf2/dwz.c: New file.
8941 * Makefile.in (COMMON_SFILES): Add dwz.c.
8942
9fda78b6
TT
89432020-03-26 Tom Tromey <tom@tromey.com>
8944
8945 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8946 * dwarf2/read.c: Add include.
8947 * dwarf2/index-write.c: Add include.
8948 * dwarf2/index-cache.c: Add include.
8949 * dwarf2/dwz.h: New file.
8950
33aa3c10
TT
89512020-03-25 Tom Tromey <tom@tromey.com>
8952
8953 * compile/compile-object-load.c (get_out_value_type): Mention
8954 correct symbol name in error message.
8955
d503b685
HD
89562020-03-25 Hannes Domani <ssbssa@yahoo.de>
8957
8958 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8959
7b1eff95
TV
89602020-03-25 Tom de Vries <tdevries@suse.de>
8961
8962 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8963 * symmisc.c (dump_symtab_1): Print user and includes fields.
8964 (maintenance_info_symtabs): Same.
8965
dd895392
AB
89662020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8967
8968 PR gdb/25534
8969 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8970 (riscv_regcache_cooked_write): New function.
8971 (riscv_push_dummy_call): Use new function.
8972 (riscv_return_value): Likewise.
8973
5ab2fbf1
SM
89742020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8975
8976 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8977 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8978 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8979 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8980 * infrun.c (follow_fork): Likewise.
8981 (follow_fork_inferior): Likewise.
8982 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8983 * linux-nat.h (class linux_nat_target): Likewise.
8984 * remote.c (class remote_target) <follow_fork>: Likewise.
8985 (remote_target::follow_fork): Likewise.
8986 * target-delegates.c: Re-generate.
8987 * target.c (default_follow_fork): Likewise.
8988 (target_follow_fork): Likewise.
8989 * target.h (struct target_ops) <follow_fork>: Likewise.
8990 (target_follow_fork): Likewise.
8991
a64fafb5
TV
89922020-03-24 Tom de Vries <tdevries@suse.de>
8993
8994 * psymtab.c (maintenance_info_psymtabs): Print user field.
8995
fe26d3a3
TT
89962020-03-20 Tom Tromey <tromey@adacore.com>
8997
8998 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8999 const.
9000 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9001 const.
9002
c884cc46
SM
90032020-03-20 Simon Marchi <simon.marchi@efficios.com>
9004
9005 * ptrace.m4: Don't check for ptrace declaration.
9006 * config.in: Re-generate.
9007 * configure: Re-generate.
9008 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9009 not defined.
9010
1ff700c2
KR
90112020-03-20 Kamil Rytarowski <n54@gmx.com>
9012
9013 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9014 `PTRACE_TYPE_RET'.
9015 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9016 * sparc-nat.c (gdb_ptrace): Likewise.
9017 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9018
f7d4f0b1
TT
90192020-03-20 Tom Tromey <tromey@adacore.com>
9020
9021 * c-exp.y (lex_one_token): Fix assert.
9022
f67210ff
TT
90232020-03-20 Tom Tromey <tromey@adacore.com>
9024
9025 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9026 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9027 strncpy call.
9028
1773be9e
TT
90292020-03-20 Tom Tromey <tromey@adacore.com>
9030
9031 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9032
70304be9
TT
90332020-03-20 Tom Tromey <tromey@adacore.com>
9034
9035 * ada-valprint.c (print_variant_part): Remove parameters; switch
9036 to value-based API.
9037 (print_field_values): Likewise.
9038 (ada_val_print_struct_union): Likewise.
9039 (ada_value_print_1): Update.
9040
9faa006d
KR
90412020-03-20 Kamil Rytarowski <n54@gmx.com>
9042
9043 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9044 nbsd_nat_target instead of inf_ptrace_target.
9045 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9046 nbsd_nat_target.
9047
4a90f062
KR
90482020-03-20 Kamil Rytarowski <n54@gmx.com>
9049
9050 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9051 it to the ptrace call.
9052 * (store_registers): Likewise.
9053
90542020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9055
9056 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9057 it to the ptrace call.
9058 * (store_registers): Likewise.
9059
2d07da27
LM
90602020-03-19 Luis Machado <luis.machado@linaro.org>
9061
9062 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9063 valid, fetch vg value from ptrace.
9064
f09db380
KR
90652020-03-19 Kamil Rytarowski <n54@gmx.com>
9066 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9067 * inf-ptrace.c: Likewise.
9068 * (gdb_ptrace): Add.
9069 * (inf_ptrace_target::resume): Update.
9070 * (inf_ptrace_target::xfer_partial): Likewise.
9071 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9072 * (inf_ptrace_peek_poke): Update.
9073
fcc7376e
KR
90742020-03-19 Kamil Rytarowski <n54@gmx.com>
9075
9076 * x86-bsd-nat.c (gdb_ptrace): New.
9077 * (x86bsd_dr_set): Add new argument `ptid'.
9078 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9079 x86bsd_dr_set_addr): Update.
9080
cada5fc9
AB
90812020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9082
9083 * remote.c (remote_target::process_stop_reply): Handle events for
9084 all threads differently.
9085
19a2740f
AB
90862020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9087
9088 * completer.c (completion_tracker::remove_completion): Define new
9089 function.
9090 * completer.h (completion_tracker::remove_completion): Declare new
9091 function.
9092 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9093 when adding a C++ function symbol.
9094
724fd9ba
AB
90952020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9096
9097 * completer.c (completion_tracker::completion_hash_entry): Define
9098 new class.
9099 (advance_to_filename_complete_word_point): Call
9100 recompute_lowest_common_denominator.
9101 (completion_tracker::completion_tracker): Call discard_completions
9102 to setup the hash table.
9103 (completion_tracker::discard_completions): Allow for being called
9104 from the constructor, pass new equal function, and element deleter
9105 when constructing the hash table. Initialise new class member
9106 variables.
9107 (completion_tracker::maybe_add_completion): Remove use of
9108 m_entries_vec, and store more information into m_entries_hash.
9109 (completion_tracker::recompute_lcd_visitor): New function, most
9110 content taken from...
9111 (completion_tracker::recompute_lowest_common_denominator):
9112 ...here, this now just visits each item in the hash calling the
9113 above visitor.
9114 (completion_tracker::build_completion_result): Remove use of
9115 m_entries_vec, call recompute_lowest_common_denominator.
9116 * completer.h (completion_tracker::have_completions): Remove use
9117 of m_entries_vec.
9118 (completion_tracker::completion_hash_entry): Declare new class.
9119 (completion_tracker::recompute_lowest_common_denominator): Change
9120 function signature.
9121 (completion_tracker::recompute_lcd_visitor): Declare new function.
9122 (completion_tracker::m_entries_vec): Delete.
9123 (completion_tracker::m_entries_hash): Initialize to NULL.
9124 (completion_tracker::m_lowest_common_denominator_valid): New
9125 member variable.
9126 (completion_tracker::m_lowest_common_denominator_max_length): New
9127 member variable.
9128
5a82b8a1
KR
91292020-03-17 Kamil Rytarowski <n54@gmx.com>
9130
9131 * regformats/regdef.h: Put reg in gdb namespace.
9132
fb516a69
KR
91332020-03-17 Kamil Rytarowski <n54@gmx.com>
9134
9135 * i386-bsd-nat.c (gdb_ptrace): New.
9136 * (i386bsd_fetch_inferior_registers,
9137 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9138 * (i386bsd_fetch_inferior_registers,
9139 i386bsd_store_inferior_registers) Use gdb_ptrace.
9140
1c0aa1fb
KR
91412020-03-17 Kamil Rytarowski <n54@gmx.com>
9142
9143 * amd64-bsd-nat.c (gdb_ptrace): New.
9144 * (amd64bsd_fetch_inferior_registers,
9145 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9146 * (amd64bsd_fetch_inferior_registers,
9147 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9148
5ccd2fb7
KR
91492020-03-17 Kamil Rytarowski <n54@gmx.com>
9150
9151 * user-regs.c (user_reg::read): Rename to...
9152 (user_reg::xread): ...this.
9153 * (append_user_reg): Rename argument `read' to `xread'.
9154 * (user_reg_add_builtin): Likewise.
9155 * (user_reg_add): Likewise.
9156 * (value_of_user_reg): Likewise.
9157
2108a63a
KR
91582020-03-17 Kamil Rytarowski <n54@gmx.com>
9159
9160 * sparc-nat.c (gdb_ptrace): New.
9161 * sparc-nat.c (sparc_fetch_inferior_registers)
9162 (sparc_store_inferior_registers) Remove obsolete comment.
9163 * sparc-nat.c (sparc_fetch_inferior_registers)
9164 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9165 * sparc-nat.c (sparc_fetch_inferior_registers)
9166 (sparc_store_inferior_registers) Use gdb_ptrace.
9167
a225c9a8
KR
91682020-03-17 Kamil Rytarowski <n54@gmx.com>
9169
9170 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9171 it to the ptrace call.
9172 * sh-nbsd-nat.c (store_registers): Likewise.
9173
98097623
KR
91742020-03-17 Kamil Rytarowski <n54@gmx.com>
9175
9176 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9177 nbsd_nat_target instead of inf_ptrace_target.
9178 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9179 nbsd_nat_target.
9180
9e38d619
KR
91812020-03-17 Kamil Rytarowski <n54@gmx.com>
9182
9183 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9184
a2ecbe9f
KR
91852020-03-17 Kamil Rytarowski <n54@gmx.com>
9186
9187 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9188 <sys/sysctl.h>.
9189 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9190
58990295
TV
91912020-03-17 Tom de Vries <tdevries@suse.de>
9192
9193 PR gdb/23710
9194 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9195 fields.
9196 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9197 fields.
9198 (process_imported_unit_die): Skip import of c++ CUs.
9199
771dd3a8
TT
92002020-03-16 Tom Tromey <tom@tromey.com>
9201
9202 * p-valprint.c (pascal_object_print_value): Initialize
9203 base_value.
9204
817a7585
AK
92052020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9206 Shahab Vahedi <shahab@synopsys.com>
9207
9208 * Makefile.in: Add arch/arc.o
9209 * configure.tgt: Likewise.
9210 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9211 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9212 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9213 * arc-tdep.h (arc_read_description): Add proto type.
9214 * arch/arc.c: New file.
9215 * arch/arc.h: Likewise.
9216 * features/Makefile: Replace old target descriptions with new.
9217 * features/arc-arcompact.c: Remove.
9218 * features/arc-arcompact.xml: Likewise.
9219 * features/arc-v2.c: Likewise
9220 * features/arc-v2.xml: Likewise
9221 * features/arc/aux-arcompact.xml: New file.
9222 * features/arc/aux-v2.xml: Likewise.
9223 * features/arc/core-arcompact.xml: Likewise.
9224 * features/arc/core-v2.xml: Likewise.
9225 * features/arc/aux-arcompact.c: Generate.
9226 * features/arc/aux-v2.c: Likewise.
9227 * features/arc/core-arcompact.c: Likewise.
9228 * features/arc/core-v2.c: Likewise.
9229 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9230
67430cd0
TT
92312020-03-16 Tom Tromey <tromey@adacore.com>
9232
9233 PR gdb/25663:
9234 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9235 putting value into bcache.
9236
30efb6c7
SM
92372020-03-16 Simon Marchi <simon.marchi@efficios.com>
9238
9239 PR gdb/21500
9240 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9241 to...
9242 (amd64_windows_init_abi_common): ... this. Don't set size of
9243 long type.
9244 (amd64_windows_init_abi): New function.
9245 (amd64_cygwin_init_abi): New function.
9246 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9247 the Cygwin OS ABI.
9248 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9249 comment.
9250
8db52437
SM
92512020-03-16 Simon Marchi <simon.marchi@efficios.com>
9252
9253 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9254 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9255 (pe_import_directory_entry): New struct type.
9256 (is_linked_with_cygwin_dll): New function.
9257 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9258 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9259 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9260
5982a56a
SM
92612020-03-16 Simon Marchi <simon.marchi@efficios.com>
9262
9263 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9264 i386_cygwin_core_osabi_sniffer.
9265
7a1998df
SM
92662020-03-16 Simon Marchi <simon.marchi@efficios.com>
9267
9268 * i386-cygwin-tdep.c: Rename to...
9269 * i386-windows-tdep.c: ... this.
9270 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9271 i386-windows-tdep.c.
9272 * configure.tgt: Likewise.
9273
053205cc
SM
92742020-03-16 Simon Marchi <simon.marchi@efficios.com>
9275
9276 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9277 * osabi.c (gdb_osabi_names): Add "Windows".
9278 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9279 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9280 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9281 i386_cygwin_osabi_sniffer.
9282 (_initialize_i386_cygwin_tdep): Register OS ABI
9283 GDB_OSABI_WINDOWS for i386.
9284 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9285 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9286 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9287 for x86-64.
9288 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9289 when the target matches '*-*-mingw*'.
9290
fe4b2ee6
SM
92912020-03-16 Simon Marchi <simon.marchi@efficios.com>
9292
9293 * defs.h (enum gdb_osabi): Move to...
9294 * osabi.h (enum gdb_osabi): ... here.
9295 * gdbarch.sh: Include osabi.h in gdbarch.h.
9296 * gdbarch.h: Re-generate.
9297
cb9b645d
SM
92982020-03-16 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9301 function.
9302 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9303
3293bbaf
TT
93042020-03-14 Tom Tromey <tom@tromey.com>
9305
9306 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9307 for C++.
9308 (c_type_print_modifier): Likewise. Add "language" parameter.
9309 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9310 (c_type_print_base_1): Update.
9311 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9312 constants.
9313 * type-stack.c (type_stack::insert): Handle tp_atomic and
9314 tp_restrict.
9315 (type_stack::follow_type_instance_flags): Likewise.
9316 (type_stack::follow_types): Likewise. Merge type-following code.
9317 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9318 (space_identifier, cv_with_space_id)
9319 (const_or_volatile_or_space_identifier_noopt)
9320 (const_or_volatile_or_space_identifier): Remove.
9321 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9322 rules.
9323 (ptr_operator, typebase): Update.
9324 (enum token_flag) <FLAG_C>: New constant.
9325 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9326 "_Atomic".
9327 (lex_one_token): Handle FLAG_C.
9328
154151a6
KR
93292020-03-14 Kamil Rytarowski <n54@gmx.com>
9330
9331 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9332 it to the ptrace call.
9333 * m68k-bsd-nat.c (store_registers): Likewise.
9334
bc107784
KR
93352020-03-14 Kamil Rytarowski <n54@gmx.com>
9336
9337 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9338 gdb_byte *.
9339 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9340 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9341 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9342
01a80117
KR
93432020-03-14 Kamil Rytarowski <n54@gmx.com>
9344
9345 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9346 nbsd_nat_target instead of inf_ptrace_target.
9347 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9348 nbsd_nat_target.
9349
f90280ca
KR
93502020-03-14 Kamil Rytarowski <n54@gmx.com>
9351
9352 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9353 register_t.
9354
6def66f1
KR
93552020-03-14 Kamil Rytarowski <n54@gmx.com>
9356
9357 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9358 it to the ptrace call.
9359 * alpha-bsd-nat.c (store_registers): Likewise.
9360
66eaca97
KR
93612020-03-14 Kamil Rytarowski <n54@gmx.com>
9362
9363 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9364 includes.
9365 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9366 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9367 fill_fpregset): Likewise.
9368
4fed520b
KR
93692020-03-14 Kamil Rytarowski <n54@gmx.com>
9370
9371 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9372 nbsd_nat_target instead of inf_ptrace_target.
9373 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9374 nbsd_nat_target.
9375
2190cf06
KR
93762020-03-14 Kamil Rytarowski <n54@gmx.com>
9377
9378 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9379 register_t.
9380
75c56d3d
KR
93812020-03-14 Kamil Rytarowski <n54@gmx.com>
9382
9383 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9384 it to the ptrace call.
9385 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9386 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9387 * arm-nbsd-nat.c (store_register): Likewise.
9388 * arm-nbsd-nat.c (store_regs): Likewise.
9389 * arm-nbsd-nat.c (store_fp_register): Likewise.
9390 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9391
6018d381
KR
93922020-03-14 Kamil Rytarowski <n54@gmx.com>
9393
9394 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9395 nbsd_nat_target instead of inf_ptrace_target.
9396 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9397 nbsd_nat_target.
9398
013f99f0
KR
93992020-03-14 Kamil Rytarowski <n54@gmx.com>
9400
9401 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9402 it to the ptrace call.
9403 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9404
12753073
KR
94052020-03-14 Kamil Rytarowski <n54@gmx.com>
9406
6227b330
KR
9407 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9408 it to the ptrace call.
9409 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9410
94112020-03-14 Kamil Rytarowski <n54@gmx.com>
9412
9413 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9414 gdb_byte *.
12753073
KR
9415 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9416
d5be5fa4
KR
94172020-03-14 Kamil Rytarowski <n54@gmx.com>
9418
9419 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9420 instead of inf_ptrace_target.
9421 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9422 nbsd_nat_target.
9423
8110f842
KR
94242020-03-14 Kamil Rytarowski <n54@gmx.com>
9425
9426 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9427 register_t.
9428
52feded7
KR
94292020-03-14 Kamil Rytarowski <n54@gmx.com>
9430
9431 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9432 register_t.
9433
25567eee
KR
94342020-03-14 Kamil Rytarowski <n54@gmx.com>
9435
9436 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9437 register_t.
9438
426a9c18
TT
94392020-03-13 Tom Tromey <tom@tromey.com>
9440
9441 * value.h (val_print): Don't declare.
9442 * valprint.h (val_print_array_elements)
9443 (val_print_scalar_formatted, generic_val_print): Don't declare.
9444 * valprint.c (generic_val_print_array): Take a struct value.
9445 (generic_val_print_ptr, generic_val_print_memberptr)
9446 (generic_val_print_bool, generic_val_print_int)
9447 (generic_val_print_char, generic_val_print_complex)
9448 (generic_val_print): Remove.
9449 (generic_value_print): Update.
9450 (do_val_print): Remove unused parameters. Don't call
9451 la_val_print.
9452 (val_print): Remove.
9453 (common_val_print): Update. Don't call value_check_printable.
9454 (val_print_scalar_formatted, val_print_array_elements): Remove.
9455 * rust-lang.c (rust_val_print): Remove.
9456 (rust_language_defn): Update.
9457 * p-valprint.c (pascal_val_print): Remove.
9458 (pascal_value_print_inner): Update.
9459 (pascal_object_print_val_fields, pascal_object_print_val):
9460 Remove.
9461 (pascal_object_print_static_field): Update.
9462 * p-lang.h (pascal_val_print): Don't declare.
9463 * p-lang.c (pascal_language_defn): Update.
9464 * opencl-lang.c (opencl_language_defn): Update.
9465 * objc-lang.c (objc_language_defn): Update.
9466 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9467 * m2-lang.h (m2_val_print): Don't declare.
9468 * m2-lang.c (m2_language_defn): Update.
9469 * language.h (struct language_defn) <la_val_print>: Remove.
9470 * language.c (unk_lang_value_print_inner): Rename. Change
9471 argument types.
9472 (unknown_language_defn, auto_language_defn): Update.
9473 * go-valprint.c (go_val_print): Remove.
9474 * go-lang.h (go_val_print): Don't declare.
9475 * go-lang.c (go_language_defn): Update.
9476 * f-valprint.c (f_val_print): Remove.
9477 * f-lang.h (f_value_print): Don't declare.
9478 * f-lang.c (f_language_defn): Update.
9479 * d-valprint.c (d_val_print): Remove.
9480 * d-lang.h (d_value_print): Don't declare.
9481 * d-lang.c (d_language_defn): Update.
9482 * cp-valprint.c (cp_print_value_fields)
9483 (cp_print_value_fields_rtti, cp_print_value): Remove.
9484 (cp_print_static_field): Update.
9485 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9486 (c_val_print_struct, c_val_print_union, c_val_print_int)
9487 (c_val_print_memberptr, c_val_print): Remove.
9488 * c-lang.h (c_val_print_array, cp_print_value_fields)
9489 (cp_print_value_fields_rtti): Don't declare.
9490 * c-lang.c (c_language_defn, cplus_language_defn)
9491 (asm_language_defn, minimal_language_defn): Update.
9492 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9493 (ada_val_print_enum): Take a struct value.
9494 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9495 (ada_val_print): Remove.
9496 (ada_value_print_1): Update.
9497 (printable_val_type): Remove.
9498 * ada-lang.h (ada_val_print): Don't declare.
9499 * ada-lang.c (ada_language_defn): Update.
9500
42331a1e
TT
95012020-03-13 Tom Tromey <tom@tromey.com>
9502
9503 * valprint.c (do_val_print): Update.
9504 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9505 a struct value.
9506 (value_to_value_object_no_release): Declare.
9507 * python/py-value.c (value_to_value_object_no_release): New
9508 function.
9509 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9510 struct value.
9511 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9512 function.
9513 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9514 a struct value.
9515 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9516 Declare.
9517 (gdbscm_apply_val_pretty_printer): Take a struct value.
9518 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9519 value.
9520 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9521 value.
9522 * extension-priv.h (struct extension_language_ops)
9523 <apply_val_pretty_printer>: Take a struct value.
9524 * cp-valprint.c (cp_print_value): Create a struct value.
9525 (cp_print_value): Update.
9526
3a916a97
TT
95272020-03-13 Tom Tromey <tom@tromey.com>
9528
9529 * ada-valprint.c (print_field_values): Call common_val_print.
9530
b59eac37
TT
95312020-03-13 Tom Tromey <tom@tromey.com>
9532
9533 * ada-valprint.c (val_print_packed_array_elements): Remove
9534 bitoffset and val parameters. Call common_val_print.
9535 (ada_val_print_string): Remove offset, address, and original_value
9536 parameters.
9537 (ada_val_print_array): Update.
9538 (ada_value_print_array): New function.
9539 (ada_value_print_1): Call it.
9540
03371129
TT
95412020-03-13 Tom Tromey <tom@tromey.com>
9542
9543 * ada-valprint.c (ada_value_print): Use common_val_print.
9544
2e088f8b
TT
95452020-03-13 Tom Tromey <tom@tromey.com>
9546
9547 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9548
39ef85a8
TT
95492020-03-13 Tom Tromey <tom@tromey.com>
9550
9551 * ada-valprint.c (ada_value_print_num): New function.
9552 (ada_value_print_1): Use it.
9553
b9fa6e07
TT
95542020-03-13 Tom Tromey <tom@tromey.com>
9555
9556 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9557
416595d6
TT
95582020-03-13 Tom Tromey <tom@tromey.com>
9559
9560 * ada-valprint.c (ada_value_print_ptr): New function.
9561 (ada_value_print_1): Use it.
9562
5b5e15ec
TT
95632020-03-13 Tom Tromey <tom@tromey.com>
9564
9565 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9566 call common_val_print.
9567 (ada_val_print_1): Update.
9568 (ada_value_print_1): New function.
9569 (ada_value_print_inner): Rewrite.
9570
fbf54e75
TT
95712020-03-13 Tom Tromey <tom@tromey.com>
9572
9573 * cp-valprint.c (cp_print_value_fields): Update.
9574 (cp_print_value): New function.
9575
64b653ca
TT
95762020-03-13 Tom Tromey <tom@tromey.com>
9577
9578 * m2-valprint.c (m2_value_print_inner): Use
9579 cp_print_value_fields.
9580 * cp-valprint.c (cp_print_value_fields): New function.
9581 * c-valprint.c (c_value_print_struct): New function.
9582 (c_value_print_inner): Use c_value_print_struct.
9583 * c-lang.h (cp_print_value_fields): Declare.
9584
6999f067
TT
95852020-03-13 Tom Tromey <tom@tromey.com>
9586
9587 * c-valprint.c (c_value_print_array): New function.
9588 (c_value_print_inner): Use it.
9589
ce80b8bd
TT
95902020-03-13 Tom Tromey <tom@tromey.com>
9591
9592 * c-valprint.c (c_value_print_memberptr): New function.
9593 (c_value_print_inner): Use it.
9594
2faac269
TT
95952020-03-13 Tom Tromey <tom@tromey.com>
9596
9597 * c-valprint.c (c_value_print_int): New function.
9598 (c_value_print_inner): Use it.
9599
da3e2c29
TT
96002020-03-13 Tom Tromey <tom@tromey.com>
9601
9602 * c-valprint.c (c_value_print_ptr): New function.
9603 (c_value_print_inner): Use it.
9604
50836231
TT
96052020-03-13 Tom Tromey <tom@tromey.com>
9606
9607 * c-valprint.c (c_value_print_inner): Rewrite.
9608
4f412b6e
TT
96092020-03-13 Tom Tromey <tom@tromey.com>
9610
9611 * valprint.c (generic_value_print_complex): New function.
9612 (generic_value_print): Use it.
9613
f5354008
TT
96142020-03-13 Tom Tromey <tom@tromey.com>
9615
9616 * valprint.c (generic_val_print_float): Don't call
9617 val_print_scalar_formatted.
9618 (generic_val_print, generic_value_print): Update.
9619
3eec3b05
TT
96202020-03-13 Tom Tromey <tom@tromey.com>
9621
9622 * valprint.c (generic_value_print_char): New function
9623 (generic_value_print): Use it.
9624
fdddfccb
TT
96252020-03-13 Tom Tromey <tom@tromey.com>
9626
9627 * valprint.c (generic_value_print_int): New function.
9628 (generic_value_print): Use it.
9629
6dde7521
TT
96302020-03-13 Tom Tromey <tom@tromey.com>
9631
9632 * valprint.c (generic_value_print_bool): New function.
9633 (generic_value_print): Use it.
9634
4112d2e6
TT
96352020-03-13 Tom Tromey <tom@tromey.com>
9636
9637 * valprint.c (generic_val_print_func): Simplify.
9638 (generic_val_print, generic_value_print): Update.
9639
65786af6
TT
96402020-03-13 Tom Tromey <tom@tromey.com>
9641
9642 * valprint.c (generic_val_print_flags): Remove.
9643 (generic_val_print, generic_value_print): Update.
9644 (val_print_type_code_flags): Add original_value parameter.
9645
40f3ce18
TT
96462020-03-13 Tom Tromey <tom@tromey.com>
9647
9648 * valprint.c (generic_val_print): Update.
9649 (generic_value_print): Update.
9650 * valprint.c (generic_val_print_enum): Don't call
9651 val_print_scalar_formatted.
9652
2a5b130b
TT
96532020-03-13 Tom Tromey <tom@tromey.com>
9654
9655 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9656 * valprint.c (generic_value_print_ptr): New function.
9657
abc66ce9
TT
96582020-03-13 Tom Tromey <tom@tromey.com>
9659
9660 * valprint.c (generic_value_print): Rewrite.
9661
07a32858
TT
96622020-03-13 Tom Tromey <tom@tromey.com>
9663
9664 * p-valprint.c (pascal_object_print_value_fields)
9665 (pascal_object_print_value): New functions.
9666
64d64d3a
TT
96672020-03-13 Tom Tromey <tom@tromey.com>
9668
9669 * p-valprint.c (pascal_value_print_inner): Rewrite.
9670
6a95a1f5
TT
96712020-03-13 Tom Tromey <tom@tromey.com>
9672
9673 * f-valprint.c (f_value_print_innner): Rewrite.
9674
59fcdac6
TT
96752020-03-13 Tom Tromey <tom@tromey.com>
9676
9677 * m2-valprint.c (m2_print_unbounded_array): New overload.
9678 (m2_print_unbounded_array): Update.
9679 (m2_print_array_contents): Take a struct value.
9680 (m2_value_print_inner): Rewrite.
9681
d133c3e1
TT
96822020-03-13 Tom Tromey <tom@tromey.com>
9683
9684 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9685 (d_value_print_inner): New function.
9686 * d-lang.h (d_value_print_inner): Declare.
9687 * d-lang.c (d_language_defn): Use d_value_print_inner.
9688
23b0f06b
TT
96892020-03-13 Tom Tromey <tom@tromey.com>
9690
9691 * go-valprint.c (go_value_print_inner): New function.
9692 * go-lang.h (go_value_print_inner): Declare.
9693 * go-lang.c (go_language_defn): Use go_value_print_inner.
9694
5f56f7cb
TT
96952020-03-13 Tom Tromey <tom@tromey.com>
9696
9697 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9698 API.
9699 (rust_val_print): Rewrite.
9700 (rust_value_print_inner): New function, from rust_val_print.
9701 (rust_language_defn): Use rust_value_print_inner.
9702
26792ee0
TT
97032020-03-13 Tom Tromey <tom@tromey.com>
9704
9705 * ada-valprint.c (ada_value_print_inner): New function.
9706 * ada-lang.h (ada_value_print_inner): Declare.
9707 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9708
24051bbe
TT
97092020-03-13 Tom Tromey <tom@tromey.com>
9710
9711 * f-valprint.c (f_value_print_innner): New function.
9712 * f-lang.h (f_value_print_innner): Declare.
9713 * f-lang.c (f_language_defn): Use f_value_print_innner.
9714
c0941be6
TT
97152020-03-13 Tom Tromey <tom@tromey.com>
9716
9717 * p-valprint.c (pascal_value_print_inner): New function.
9718 * p-lang.h (pascal_value_print_inner): Declare.
9719 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9720
62c4663d
TT
97212020-03-13 Tom Tromey <tom@tromey.com>
9722
9723 * m2-valprint.c (m2_value_print_inner): New function.
9724 * m2-lang.h (m2_value_print_inner): Declare.
9725 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9726
62182190
TT
97272020-03-13 Tom Tromey <tom@tromey.com>
9728
9729 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9730 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9731 * c-valprint.c (c_value_print_inner): New function.
9732 * c-lang.h (c_value_print_inner): Declare.
9733 * c-lang.c (c_language_defn, cplus_language_defn)
9734 (asm_language_defn, minimal_language_defn): Use
9735 c_value_print_inner.
9736
1e592a8a
TT
97372020-03-13 Tom Tromey <tom@tromey.com>
9738
9739 * p-valprint.c (pascal_object_print_value_fields): Now static.
9740 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9741
7fe471e9
TT
97422020-03-13 Tom Tromey <tom@tromey.com>
9743
9744 * c-valprint.c (c_val_print_array): Simplify.
9745
d121c6ce
TT
97462020-03-13 Tom Tromey <tom@tromey.com>
9747
9748 * valprint.c (value_print_array_elements): New function.
9749 * valprint.h (value_print_array_elements): Declare.
9750
4dba70ee
TT
97512020-03-13 Tom Tromey <tom@tromey.com>
9752
9753 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9754 * mips-tdep.c (mips_print_register): Use
9755 value_print_scalar_formatted.
9756
4f9ae810
TT
97572020-03-13 Tom Tromey <tom@tromey.com>
9758
9759 * valprint.h (value_print_scalar_formatted): Declare.
9760 * valprint.c (value_print_scalar_formatted): New function.
9761
156bfec9
TT
97622020-03-13 Tom Tromey <tom@tromey.com>
9763
9764 * valprint.h (generic_value_print): Declare.
9765 * valprint.c (generic_value_print): New function.
9766
2b4e573d
TT
97672020-03-13 Tom Tromey <tom@tromey.com>
9768
9769 * valprint.c (do_val_print): Call la_value_print_inner, if
9770 available.
9771 * rust-lang.c (rust_language_defn): Update.
9772 * p-lang.c (pascal_language_defn): Update.
9773 * opencl-lang.c (opencl_language_defn): Update.
9774 * objc-lang.c (objc_language_defn): Update.
9775 * m2-lang.c (m2_language_defn): Update.
9776 * language.h (struct language_defn) <la_value_print_inner>: New
9777 member.
9778 * language.c (unknown_language_defn, auto_language_defn): Update.
9779 * go-lang.c (go_language_defn): Update.
9780 * f-lang.c (f_language_defn): Update.
9781 * d-lang.c (d_language_defn): Update.
9782 * c-lang.c (c_language_defn, cplus_language_defn)
9783 (asm_language_defn, minimal_language_defn): Update.
9784 * ada-lang.c (ada_language_defn): Update.
9785
a1f6a07c
TT
97862020-03-13 Tom Tromey <tom@tromey.com>
9787
9788 * c-valprint.c (c_value_print): Use common_val_print.
9789
410cf315
TT
97902020-03-13 Tom Tromey <tom@tromey.com>
9791
9792 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9793
72a45c93
TT
97942020-03-13 Tom Tromey <tom@tromey.com>
9795
9796 * f-valprint.c (f77_print_array_1, f_val_print): Use
9797 common_val_print.
9798
040f66bd
TT
97992020-03-13 Tom Tromey <tom@tromey.com>
9800
9801 * riscv-tdep.c (riscv_print_one_register_info): Use
9802 common_val_print.
9803
a6e05a6c
TT
98042020-03-13 Tom Tromey <tom@tromey.com>
9805
9806 * mi/mi-main.c (output_register): Use common_val_print.
9807
3444c526
TT
98082020-03-13 Tom Tromey <tom@tromey.com>
9809
9810 * infcmd.c (default_print_one_register_info): Use
9811 common_val_print.
9812
c2a44efe
TT
98132020-03-13 Tom Tromey <tom@tromey.com>
9814
9815 * valprint.h (common_val_print_checked): Declare.
9816 * valprint.c (common_val_print_checked): New function.
9817 * stack.c (print_frame_arg): Use common_val_print_checked.
9818
b0c26e99
TT
98192020-03-13 Tom Tromey <tom@tromey.com>
9820
9821 * valprint.c (do_val_print): New function, from val_print.
9822 (val_print): Use do_val_print.
9823 (common_val_print): Use do_val_print.
9824
ce3acbe9
TT
98252020-03-13 Tom Tromey <tom@tromey.com>
9826
9827 * valprint.c (value_print): Use scoped_value_mark.
9828
96c7f873
TV
98292020-03-13 Tom de Vries <tdevries@suse.de>
9830
9831 PR symtab/25646
9832 * psymtab.c (partial_symtab::partial_symtab): Don't set
9833 globals_offset and statics_offset. Push element onto
9834 current_global_psymbols and current_static_psymbols stacks.
9835 (concat): New function.
9836 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9837 element from current_global_psymbols and current_static_psymbols
9838 stacks. Concat popped elements to global_psymbols and
9839 static_symbols.
9840 (add_psymbol_to_list): Use current_global_psymbols and
9841 current_static_psymbols stacks.
9842 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9843 current_static_psymbols fields.
9844
6ba0a321
CB
98452020-03-12 Christian Biesinger <cbiesinger@google.com>
9846
9847 * corelow.c (sniff_core_bfd): Remove.
9848 (class core_target) <m_core_vec>: Remove.
9849 (core_target::core_target): Update.
9850 (core_file_fns): Remove.
9851 (deprecated_add_core_fns): Remove.
9852 (default_core_sniffer): Remove.
9853 (sniff_core_bfd): Remove.
9854 (default_check_format): Remove.
9855 (gdb_check_format): Remove.
9856 (core_target_open): Update.
9857 (core_target::get_core_register_section): Update.
9858 (get_core_registers_cb): Update.
9859 (core_target::fetch_registers): Update.
9860 * gdbcore.h (struct core_fns): Remove.
9861 (deprecated_add_core_fns): Remove.
9862 (default_core_sniffer): Remove.
9863 (default_check_format): Remove.
9864
227031b2
TT
98652020-03-12 Tom Tromey <tom@tromey.com>
9866
9867 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9868 CORE_ADDR.
9869 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9870
53807e9f
TT
98712020-03-12 Tom Tromey <tom@tromey.com>
9872
9873 * remote.c (remote_target::download_tracepoint)
9874 (remote_target::enable_tracepoint)
9875 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9876 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9877 sprintf_vma.
9878
64f25102
TT
98792020-03-12 Tom Tromey <tom@tromey.com>
9880
9881 * symfile-mem.c: Update CORE_ADDR size assert.
9882
272cd5a3
SM
98832020-03-12 Simon Marchi <simon.marchi@efficios.com>
9884
9885 * selftest.m4: Move to gdbsupport/.
9886 * acinclude.m4: Update path to selftest.m4.
9887
74cd3f9d
SM
98882020-03-12 Simon Marchi <simon.marchi@efficios.com>
9889
9890 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9891 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9892 gdbarch-selfselftests.c and selftest-arch.c.
9893 (SUBDIR_UNITTESTS_OBS): Rename to...
9894 (SELFTESTS_OBS): ... this.
9895 (COMMON_SFILES): Remove disasm-selftests.c and
9896 gdbarch-selftests.c.
9897 * configure.ac: Don't add selftest-arch.{c,o} to
9898 CONFIG_{SRCS,OBS}.
9899 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9900 preprocessor conditions.
9901
db6878ac
SM
99022020-03-12 Simon Marchi <simon.marchi@efficios.com>
9903
9904 * configure.ac: Don't source bfd/development.sh.
9905 * selftest.m4: Modify comment.
9906 * configure: Re-generate.
9907
4d696a5c
SM
99082020-03-12 Simon Marchi <simon.marchi@efficios.com>
9909
9910 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9911 not "true" or "false".
9912 * configure: Re-generate.
9913
8dd8e1c7
CB
99142020-03-12 Christian Biesinger <cbiesinger@google.com>
9915
9916 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9917 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9918 renamed to arm_nbsd_supply_gregset.
9919 (fetch_register): Update to call arm_nbsd_supply_gregset.
9920 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9921 (arm_netbsd_nat_target::fetch_registers): Update.
9922 (fetch_elfcore_registers): Removed.
9923 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9924 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9925 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9926 not require NetBSD system headers.
9927 (arm_nbsd_regset): New struct.
9928 (arm_nbsd_iterate_over_regset_sections): New function.
9929 (arm_netbsd_init_abi_common): Updated to call
9930 set_gdbarch_iterate_over_regset_sections.
9931 * arm-nbsd-tdep.h: New file.
9932
dd69bf7a
KB
99332020-03-11 Kevin Buettner <kevinb@redhat.com>
9934
9935 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9936 recursion.
9937
a0761e34
SM
99382020-03-11 Simon Marchi <simon.marchi@efficios.com>
9939
9940 * configure: Re-generate.
9941
e7a82140
TT
99422020-03-11 Tom Tromey <tromey@adacore.com>
9943
9944 * ada-typeprint.c (print_choices): Fix comment.
9945
dcc050c8
AB
99462020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9947
9948 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9949 previous item in the list, when the list has no items.
9950
1c33af77
TV
99512020-03-11 Tom de Vries <tdevries@suse.de>
9952
9953 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9954 PROP_LOCLIST handling code.
9955
8c95582d
AB
99562020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9957
9958 * buildsym-legacy.c (record_line): Pass extra parameter to
9959 record_line.
9960 * buildsym.c (buildsym_compunit::record_line): Take an extra
9961 parameter, reduce duplication in the line table, and record the
9962 is_stmt flag in the line table.
9963 * buildsym.h (buildsym_compunit::record_line): Add extra
9964 parameter.
9965 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9966 non-statement lines.
9967 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9968 this to the symtab builder.
9969 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9970 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9971 through to dwarf_record_line_1.
9972 * infrun.c (process_event_stop_test): When stepping, don't stop at
9973 a non-statement instruction, and only refresh the step info when
9974 we land in the middle of a line's range. Also add an extra
9975 comment.
9976 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9977 field.
9978 * record-btrace.c (btrace_find_line_range): Only record lines
9979 marked as is-statement.
9980 * stack.c (frame_show_address): Show the frame address if we are
9981 in a non-statement sal.
9982 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9983 (maintenance_print_one_line_table): Print a header for the is_stmt
9984 column, and include is_stmt information in the output.
9985 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9986 preference to non-statements.
9987 (find_pcs_for_symtab_line): Prefer is-statement entries.
9988 (find_line_common): Likewise.
9989 * symtab.h (struct linetable_entry): Add is_stmt field.
9990 (struct symtab_and_line): Likewise.
9991 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9992 arranging the line table.
9993
e4003a34
TV
99942020-03-07 Tom de Vries <tdevries@suse.de>
9995
9996 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9997 DIE.
9998
e8932576
TT
99992020-03-07 Tom Tromey <tom@tromey.com>
10000
10001 * valops.c (value_literal_complex): Remove obsolete comment.
10002 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10003 comment.
10004
29734269
SM
100052020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10006
10007 * infrun.h: Forward-declare thread_info.
10008 (set_step_info): Add thread_info parameter, add doc.
10009 * infrun.c (set_step_info): Add thread_info parameter, move doc
10010 to header.
10011 * infrun.c (process_event_stop_test): Pass thread to
10012 set_step_info call.
10013 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10014 set_step_info.
10015 (prepare_one_step): Add thread_info parameter, pass it to
10016 set_step_frame and prepare_one_step (recursive) call.
10017 (step_1): Pass thread to prepare_one_step call.
10018 (step_command_fsm::should_stop): Pass thread to
10019 prepare_one_step.
10020 (until_next_fsm): Pass thread to set_step_frame call.
10021 (finish_command): Pass thread to set_step_info call.
10022
b7d64b29
HD
100232020-03-06 Hannes Domani <ssbssa@yahoo.de>
10024
10025 * windows-tdep.c (windows_solib_create_inferior_hook):
10026 Check if inferior is running.
10027
09f2921c
TV
100282020-03-06 Tom de Vries <tdevries@suse.de>
10029
10030 * NEWS: Fix "the the".
10031 * ctfread.c: Same.
10032
fd760e79
TV
100332020-03-06 Tom de Vries <tdevries@suse.de>
10034
10035 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10036
20ea4a60
AB
100372020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10038
10039 * .dir-locals.el: Add a comment referencing the other copies of
10040 this file.
10041
0afbabf0
JB
100422020-03-05 John Baldwin <jhb@FreeBSD.org>
10043
10044 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10045 psargs.
10046
842806cb
TBA
100472020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10048
10049 * .gitattributes: New file.
10050
be1e3d3e
TT
100512020-03-04 Tom Tromey <tom@tromey.com>
10052
10053 * symmisc.c (print_symbol_bcache_statistics)
10054 (print_objfile_statistics): Update.
10055 * symfile.c (allocate_symtab): Use intern.
10056 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10057 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10058 macro_cache>: Remove.
10059 <string_cache>: New member.
10060 (struct objfile) <intern>: New methods.
10061 * elfread.c (elf_symtab_read): Use intern.
10062 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10063 (dwarf2_compute_name, dwarf2_physname)
10064 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10065 names.
10066 (guess_partial_die_structure_name): Update.
10067 (partial_die_info::fixup): Intern name.
10068 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10069 name.
10070 (dwarf2_name): Intern name. Update.
10071 * buildsym.c (buildsym_compunit::get_macro_table): Use
10072 string_cache.
10073
4e7625fd
TT
100742020-03-04 Tom Tromey <tom@tromey.com>
10075
10076 * jit.c (bfd_open_from_target_memory): Make "target" const.
10077 * corefile.c (gnutarget): Now const.
10078 * gdbcore.h (gnutarget): Now const.
10079
46f9f931
HD
100802020-03-04 Hannes Domani <ssbssa@yahoo.de>
10081
10082 * NEWS: Mention support for WOW64 processes.
10083 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10084 (amd64_windows_segment_register_p): Remove static.
10085 (_initialize_amd64_windows_nat): Update.
10086 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10087 * i386-windows-nat.c (context_offset): Update.
10088 (i386_mappings): Rename and remove static.
10089 (i386_windows_segment_register_p): Remove static.
10090 (_initialize_i386_windows_nat): Update.
10091 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10092 (STATUS_WX86_SINGLE_STEP): New macro.
10093 (EnumProcessModulesEx): New macro.
10094 (Wow64SuspendThread): New macro.
10095 (Wow64GetThreadContext): New macro.
10096 (Wow64SetThreadContext): New macro.
10097 (Wow64GetThreadSelectorEntry): New macro.
10098 (windows_set_context_register_offsets): Add static.
10099 (windows_set_segment_register_p): Likewise.
10100 (windows_add_thread): Adapt for WOW64 processes.
10101 (windows_fetch_one_register): Likewise.
10102 (windows_nat_target::fetch_registers): Likewise.
10103 (windows_store_one_register): Likewise.
10104 (display_selector): Likewise.
10105 (display_selectors): Likewise.
10106 (handle_exception): Likewise.
10107 (windows_continue): Likewise.
10108 (windows_nat_target::resume): Likewise.
10109 (windows_add_all_dlls): Likewise.
10110 (do_initial_windows_stuff): Likewise.
10111 (windows_nat_target::attach): Likewise.
10112 (windows_get_exec_module_filename): Likewise.
10113 (windows_nat_target::create_inferior): Likewise.
10114 (windows_xfer_siginfo): Likewise.
10115 (_initialize_loadable): Initialize Wow64SuspendThread,
10116 Wow64GetThreadContext, Wow64SetThreadContext,
10117 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10118 * windows-nat.h (windows_set_context_register_offsets):
10119 Remove declaration.
10120 (windows_set_segment_register_p): Likewise.
10121 (i386_windows_segment_register_p): Add declaration.
10122 (amd64_windows_segment_register_p): Likewise.
10123
440cf44e
LM
101242020-03-04 Luis Machado <luis.machado@linaro.org>
10125
10126 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10127 in "info registers" for AArch64/ARM.
10128
10129 The change caused "info registers" to not print GPR's.
10130
10131 gdb/ChangeLog:
10132
10133 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10134
10135 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10136 when reg->group is empty and reggroup is not.
10137
1009d92f
TT
101382020-03-03 Tom Tromey <tromey@adacore.com>
10139
10140 * dwarf2/frame.c (struct dwarf2_frame_cache)
10141 <checked_tailcall_bottom, entry_cfa_sp_offset,
10142 entry_cfa_sp_offset_p>: Remove members.
10143 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10144 (dwarf2_frame_prev_register): Don't call
10145 dwarf2_tailcall_sniffer_first.
10146 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10147 * frame-unwind.c (add_unwinder): New fuction.
10148 (frame_unwind_init): Use it. Add tailcall unwinder.
10149
5e5d66b6
AB
101502020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10151 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10152
10153 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10154 value should be printed as true.
10155
584cf46d
HD
101562020-03-03 Hannes Domani <ssbssa@yahoo.de>
10157
10158 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10159 (windows_init_abi): Set and use windows_so_ops.
10160
7b973adc
SDJ
101612020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10162
10163 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10164 when verifying if dealing with a convenience variable.
10165
bb7b70ab
LM
101662020-03-03 Luis Machado <luis.machado@linaro.org>
10167
10168 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10169
9822cb57
SM
101702020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10171
10172 * infrun.c (gdbarch_supports_displaced_stepping): New.
10173 (use_displaced_stepping): Break up conditions in smaller pieces.
10174 Use gdbarch_supports_displaced_stepping.
10175 (displaced_step_prepare_throw): Use
10176 gdbarch_supports_displaced_stepping.
10177
63e163f2
AB
101782020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10179
10180 * NEWS: Mention new behaviour of the history filename.
10181 * top.c (write_history_p): Add comment.
10182 (show_write_history_p): Add header comment, give a different
10183 message when history writing is on, but the history filename is
10184 empty.
10185 (history_filename): Add comment.
10186 (history_filename_empty): New function.
10187 (show_history_filename): Add header comment, give a different
10188 message when the filename is empty.
10189 (init_history): Compare history_filename against nullptr, and only
10190 read history if the filename is not empty.
10191 (set_history_filename): Add header comment, and only make
10192 non-empty filenames absolute.
10193 (init_main): Make the filename argument to 'set history filename'
10194 optional.
10195
81b86b97
CB
101962020-03-02 Christian Biesinger <cbiesinger@google.com>
10197
10198 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10199 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10200 (fetch_fp_register): Update.
10201 (fetch_fp_regs): Update.
10202 (store_fp_register): Update.
10203 (store_fp_regs): Update.
10204 (arm_netbsd_nat_target::read_description): New function.
10205 (fetch_elfcore_registers): Update.
10206
24ed6739
AB
102072020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10208
10209 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10210 general_thread if the stop reply is missing a thread-id.
10211 (remote_target::process_stop_reply): Use the first non-exited
10212 thread if the target didn't pass a thread-id.
10213 * infrun.c (do_target_wait): Move call to
10214 switch_to_inferior_no_thread to ....
10215 (do_target_wait_1): ... here.
10216
a84bb2a0
JT
102172020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10218
10219 * debuginfod-support.c: Include defs.h first.
10220
658dadf0
TV
102212020-02-28 Tom de Vries <tdevries@suse.de>
10222
10223 * symfile.c (set_initial_language): Use default language for lookup.
10224
4ebe4877
SM
102252020-02-28 Simon Marchi <simon.marchi@efficios.com>
10226
10227 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10228 reader variable, pass `this` to read_cutu_die_from_dwo.
10229
e5da1139
AM
102302020-02-27 Aaron Merey <amerey@redhat.com>
10231
10232 * source.c (open_source_file): Check for nullptr when computing
10233 srcpath.
10234
317f7127
TT
102352020-02-27 Tom Tromey <tromey@adacore.com>
10236
10237 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10238 member.
10239 (dwarf2_add_field): Don't update nfields.
10240 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10241
3104d9ee
AB
102422020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10243
10244 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10245 abs.
10246
b83470bf
TT
102472020-02-26 Tom Tromey <tom@tromey.com>
10248
10249 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10250 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10251 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10252 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10253 per_cu_data.
10254
edfe0a0c
TT
102552020-02-26 Tom Tromey <tom@tromey.com>
10256
10257 * dwarf2/index-write.c (psym_index_map): Change type.
10258 (add_address_entry_worker, write_one_signatured_type)
10259 (recursively_count_psymbols, recursively_write_psymbols)
10260 (class debug_names, psyms_seen_size, write_gdbindex)
10261 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10262
0d79cdc4
AM
102632020-02-26 Aaron Merey <amerey@redhat.com>
10264
10265 * Makefile.in: Handle optional debuginfod support.
10266 * NEWS: Update.
10267 * README: Add --with-debuginfod summary.
10268 * config.in: Regenerate.
10269 * configure: Regenerate.
10270 * configure.ac: Handle optional debuginfod support.
10271 * debuginfod-support.c: debuginfod helper functions.
10272 * debuginfod-support.h: Ditto.
10273 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10274 summary.
10275 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10276 when a dwz file cannot be found.
10277 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10278 debuginfo file cannot be found.
10279 * source.c (open_source_file): Query debuginfod servers when a
10280 source file cannot be found.
10281 * top.c (print_gdb_configuration): Include
10282 --{with,without}-debuginfod in the output.
10283
b65ce565
JG
102842020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10285
10286 * thread.c (thr_try_catch_cmd): Print thread name.
10287
d4c9a4f8
SM
102882020-02-26 Simon Marchi <simon.marchi@efficios.com>
10289
10290 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10291 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10292 dwarf2_fetch_die_type_sect_off): Move to...
10293 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10294 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10295 dwarf2_fetch_die_type_sect_off): ... here.
10296 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10297 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10298 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10299
0dce4280
TV
103002020-02-26 Tom de Vries <tdevries@suse.de>
10301
10302 PR gdb/25603
10303 * symfile.c (set_initial_language): Exit-early if
10304 language_mode == language_mode_manual.
10305
450a1bfc
SM
103062020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10307
10308 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10309 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10310 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10311
9e80cfa1
AB
103122020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10313
10314 * gdbtypes.c (create_array_type_with_stride): Handle negative
10315 array strides.
10316 * valarith.c (value_subscripted_rvalue): Likewise.
10317
09624f1f
LM
103182020-02-25 Luis Machado <luis.machado@linaro.org>
10319
10320 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10321
8cb5117c
SM
103222020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10323
10324 * loc.h (dwarf2_get_die_type): Move to...
10325 * read.h (dwarf2_get_die_type): ... here.
10326 * read.c (dwarf2_get_die_type): Move doc to header.
10327
c325c44e
JB
103282020-02-25 Joel Brobecker <brobecker@adacore.com>
10329
10330 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10331 'gnulib/Makefile.in' to the list.
10332
4ac93832
TT
103332020-02-24 Tom Tromey <tom@tromey.com>
10334
10335 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10336 Remove.
10337 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10338 XOBNEWVEC.
10339
197400e8
TT
103402020-02-24 Tom Tromey <tom@tromey.com>
10341
10342 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10343 New method.
10344 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10345 (dw2_do_instantiate_symtab, dw2_get_file_names)
10346 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10347
76935768
TT
103482020-02-24 Tom Tromey <tom@tromey.com>
10349
10350 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10351 make_scoped_restore.
10352 (dwarf2_psymtab::read_symtab): Don't clear
10353 reading_partial_symbols.
10354
a88ef40d
TV
103552020-02-24 Tom de Vries <tdevries@suse.de>
10356
10357 PR gdb/25592
10358 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10359
c9af6521
TV
103602020-02-24 Tom de Vries <tdevries@suse.de>
10361
10362 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10363 commands layout next/prev/regs.
10364
5707a07a
TT
103652020-02-22 Tom Tromey <tom@tromey.com>
10366
10367 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10368 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10369
3b0fb49e
TT
103702020-02-22 Tom Tromey <tom@tromey.com>
10371
10372 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10373
283be8bf
TT
103742020-02-22 Tom Tromey <tom@tromey.com>
10375
10376 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10377 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10378 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10379 * tui/tui.c (_initialize_tui): Add usage text.
10380
ca793b96
TT
103812020-02-22 Tom Tromey <tom@tromey.com>
10382
10383 * tui/tui-win.c (tui_set_focus_command)
10384 (tui_set_win_height_command): Use error_no_arg.
10385 (_initialize_tui_win): Update help text.
10386 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10387
432b5c40
TT
103882020-02-22 Tom Tromey <tom@tromey.com>
10389
10390 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10391 * tui/tui-disasm.h (struct tui_disasm_window)
10392 <display_start_addr>: Declare.
10393 * tui/tui-source.h (struct tui_source_window)
10394 <display_start_addr>: Declare.
10395 * tui/tui-winsource.h (struct tui_source_window_base)
10396 <show_source_line, display_start_addr>: New methods.
10397 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10398 Rename and move to protected section.
10399 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10400 (tui_source_window_base::do_erase_source_content): Update.
10401 (tui_source_window_base::show_source_line): Now a method.
10402 (tui_source_window_base::show_source_content)
10403 (tui_source_window_base::tui_source_window_base)
10404 (tui_source_window_base::rerender)
10405 (tui_source_window_base::refill)
10406 (tui_source_window_base::do_scroll_horizontal)
10407 (tui_source_window_base::set_is_exec_point_at)
10408 (tui_source_window_base::update_breakpoint_info)
10409 (tui_source_window_base::update_exec_info): Update.
10410 * tui/tui-source.c (tui_source_window::set_contents)
10411 (tui_source_window::showing_source_p)
10412 (tui_source_window::do_scroll_vertical)
10413 (tui_source_window::location_matches_p)
10414 (tui_source_window::line_is_displayed): Update.
10415 (tui_source_window::display_start_addr): New method.
10416 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10417 (tui_disasm_window::do_scroll_vertical)
10418 (tui_disasm_window::location_matches_p): Update.
10419 (tui_disasm_window::display_start_addr): New method.
10420
01b1af32
TT
104212020-02-22 Tom Tromey <tom@tromey.com>
10422
10423 * NEWS: Add entry for gdb.register_window_type.
10424 * tui/tui-layout.h (window_factory): New typedef.
10425 (tui_register_window): Declare.
10426 * tui/tui-layout.c (saved_tui_windows): New global.
10427 (tui_apply_current_layout): Use it.
10428 (tui_register_window): New function.
10429 * python/python.c (do_start_initialization): Call
10430 gdbpy_initialize_tui.
10431 (python_GdbMethods): Add "register_window_type" function.
10432 * python/python-internal.h (gdbpy_register_tui_window)
10433 (gdbpy_initialize_tui): Declare.
10434 * python/py-tui.c: New file.
10435 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10436
fc96d20b
TT
104372020-02-22 Tom Tromey <tom@tromey.com>
10438
10439 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10440
935c78c0
TT
104412020-02-22 Tom Tromey <tom@tromey.com>
10442
10443 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10444 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10445 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10446 (tui_set_win_focus_to): Move from tui-win.c.
10447
0240c8f1
TT
104482020-02-22 Tom Tromey <tom@tromey.com>
10449
10450 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10451 functions.
10452 (known_window_types): New global.
10453 (tui_get_window_by_name): Reimplement.
10454 (initialize_known_windows): New function.
10455 (validate_window_name): Rewrite.
10456 (_initialize_tui_layout): Call initialize_known_windows.
10457
fdb01f0c
TT
104582020-02-22 Tom Tromey <tom@tromey.com>
10459
10460 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10461 Remove constants.
10462 * tui/tui-winsource.h (struct tui_source_window_base)
10463 <tui_source_window_base>: Remove parameter.
10464 * tui/tui-winsource.c
10465 (tui_source_window_base::tui_source_window_base): Remove
10466 parameter.
10467 (tui_source_window_base::refill): Update.
10468 * tui/tui-stack.h (struct tui_locator_window)
10469 <tui_locator_window>: Update.
10470 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10471 Default the constructor.
10472 * tui/tui-regs.h (struct tui_data_item_window)
10473 <tui_data_item_window>: Default the constructor.
10474 (struct tui_data_window) <tui_data_window>: Likewise.
10475 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10476 Default the constructor.
10477 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10478 Default the constructor.
10479 <type>: Remove.
10480 (struct tui_win_info) <tui_win_info>: Default the constructor.
10481 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10482 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10483 Default the constructor.
10484
865a5aec
TT
104852020-02-22 Tom Tromey <tom@tromey.com>
10486
10487 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10488 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10489 * tui/tui-win.c (tui_resize_all): Don't call
10490 tui_delete_invisible_windows.
10491 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10492 done.
10493 (tui_set_layout): Update.
10494 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10495 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10496 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10497
e098d18c
TT
104982020-02-22 Tom Tromey <tom@tromey.com>
10499
10500 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10501 correctly.
10502
eb9c8874
TT
105032020-02-22 Tom Tromey <tom@tromey.com>
10504
10505 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10506
7eed1a8e
TT
105072020-02-22 Tom Tromey <tom@tromey.com>
10508
10509 * tui/tui-winsource.h (struct tui_source_window_iterator)
10510 <inner_iterator>: New etytypedef.
10511 <tui_source_window_iterator>: Take "end" parameter.
10512 <tui_source_window_iterator>: Take iterator.
10513 <operator*, advance>: Update.
10514 <m_iter>: Change type.
10515 <m_end>: New field.
10516 (struct tui_source_windows) <begin, end>: Update.
10517 * tui/tui-layout.c (tui_windows): New global.
10518 (tui_apply_current_layout): Clear tui_windows.
10519 (tui_layout_window::apply): Update tui_windows.
10520 * tui/tui-data.h (tui_windows): Declare.
10521 (all_tui_windows): Now inline function.
10522 (class tui_window_iterator, struct all_tui_windows): Remove.
10523
7c043ba6
TT
105242020-02-22 Tom Tromey <tom@tromey.com>
10525
10526 PR tui/17850:
10527 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10528 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10529 "height" argument.
10530 (class tui_layout_window) <get_sizes>: Likewise.
10531 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10532 argument.
10533 <get_sizes>: Add "height" argument.
10534 <m_vertical>: New field.
10535 * tui/tui-layout.c (tui_layout_split::clone): Update.
10536 (tui_layout_split::get_sizes): Add "height" argument.
10537 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10538 (tui_new_layout_command): Parse "-horizontal".
10539 (_initialize_tui_layout): Update help string.
10540 (tui_layout_split::specification): Add "-horizontal" when needed.
10541 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10542 argument.
10543 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10544 New methods.
10545
6bc56648
TT
105462020-02-22 Tom Tromey <tom@tromey.com>
10547
10548 * tui/tui-layout.h (enum tui_adjust_result): New.
10549 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10550 (class tui_layout_window) <adjust_size>: Return
10551 tui_adjust_result. Rewrite.
10552 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10553 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10554
c22fef7e
TT
105552020-02-22 Tom Tromey <tom@tromey.com>
10556
10557 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10558 parameter and return types.
10559 (class tui_layout_base) <specification>: Add "depth".
10560 (class tui_layout_window) <specification>: Add "depth".
10561 (class tui_layout_split) <specification>: Add "depth".
10562 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10563 and return types.
10564 (tui_new_layout_command): Parse sub-layouts.
10565 (_initialize_tui_layout): Update help string.
10566 (tui_layout_window::specification): Add "depth".
10567 (add_layout_command): Update.
10568
ee325b61
TT
105692020-02-22 Tom Tromey <tom@tromey.com>
10570
10571 * NEWS: Add "tui new-layout" item.
10572 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10573 Add new-layout command to help text.
10574 (validate_window_name): New function.
10575 (tui_new_layout_command): New function.
10576 (_initialize_tui_layout): Register "new-layout".
10577 (tui_layout_window::specification): New method.
10578 (tui_layout_window::specification): New method.
10579 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10580 method.
10581 (class tui_layout_window) <specification>: New method.
10582 (class tui_layout_split) <specification>: New method.
10583
416eb92d
TT
105842020-02-22 Tom Tromey <tom@tromey.com>
10585
10586 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10587 * tui/tui-win.c (window_name_completer): Update comment.
10588 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10589 Declare method.
10590 (class tui_layout_window) <replace_window>: Likewise.
10591 (class tui_layout_split) <replace_window>: Likewise.
10592 (tui_set_layout): Don't declare.
10593 (tui_set_initial_layout): Declare function.
10594 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10595 (asm_regs_layout): New globals.
10596 (tui_current_layout, show_layout): Remove.
10597 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10598 (find_layout, tui_apply_layout): New function.
10599 (layout_completer): Remove.
10600 (tui_next_layout): Reimplement.
10601 (tui_next_layout_command): New function.
10602 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10603 (tui_regs_layout): Reimplement.
10604 (tui_regs_layout_command): New function.
10605 (extract_display_start_addr): Rewrite.
10606 (next_layout, prev_layout): Remove.
10607 (tui_layout_window::replace_window): New method.
10608 (tui_layout_split::replace_window): New method.
10609 (destroy_layout): New function.
10610 (layout_list): New global.
10611 (add_layout_command): New function.
10612 (initialize_layouts): Update.
10613 (tui_layout_command): New function.
10614 (_initialize_tui_layout): Install "layout" commands.
10615 * tui/tui-data.h (enum tui_layout_type): Remove.
10616 (tui_current_layout): Don't declare.
10617
0dbc2fc7
TT
106182020-02-22 Tom Tromey <tom@tromey.com>
10619
10620 * tui/tui-regs.c (tui_reg_layout): Remove.
10621 (tui_reg_command): Use tui_regs_layout.
10622 * tui/tui-layout.h (tui_reg_command): Declare.
10623 * tui/tui-layout.c (tui_reg_command): New function.
10624
5afe342e
TT
106252020-02-22 Tom Tromey <tom@tromey.com>
10626
10627 * tui/tui.c (tui_rl_delete_other_windows): Call
10628 tui_remove_some_windows.
10629 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10630 Declare method.
10631 (class tui_layout_window) <remove_windows>: New method.
10632 (class tui_layout_split) <remove_windows>: Declare.
10633 (tui_remove_some_windows): Declare.
10634 * tui/tui-layout.c (tui_remove_some_windows): New function.
10635 (tui_layout_split::remove_windows): New method.
10636
427326a8
TT
106372020-02-22 Tom Tromey <tom@tromey.com>
10638
10639 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10640 * tui/tui-layout.h (tui_next_layout): Declare.
10641 * tui/tui-layout.c (tui_next_layout): New function.
10642
3fe12b6d
TT
106432020-02-22 Tom Tromey <tom@tromey.com>
10644
10645 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10646 correct coordinates.
10647
59b8b5d2
TT
106482020-02-22 Tom Tromey <tom@tromey.com>
10649
10650 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10651 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10652 DATA_WIN case.
10653
2a3d458b
TT
106542020-02-22 Tom Tromey <tom@tromey.com>
10655
10656 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10657 TUI_DISASM_WIN, not tui_win_list.
10658
3f0cbb04
TT
106592020-02-22 Tom Tromey <tom@tromey.com>
10660
10661 * valprint.c (generic_val_print_enum_1)
10662 (val_print_type_code_flags): Style member names.
10663 * rust-lang.c (val_print_struct, rust_print_enum)
10664 (rust_print_struct_def, rust_internal_print_type): Style member
10665 names.
10666 * p-valprint.c (pascal_object_print_value_fields): Style member
10667 names. Only call fprintf_symbol_filtered for static members.
10668 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10669 * f-valprint.c (f_val_print): Style member names.
10670 * f-typeprint.c (f_type_print_base): Style member names.
10671 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10672 call fprintf_symbol_filtered for static members.
10673 (cp_print_class_member): Style member names.
10674 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10675 member names.
10676 * ada-valprint.c (ada_print_scalar): Style enum names.
10677 (ada_val_print_enum): Likewise.
10678 * ada-typeprint.c (print_enum_type): Style enum names.
10679
d4d947ae
TT
106802020-02-21 Tom Tromey <tom@tromey.com>
10681
10682 * psympriv.h (struct partial_symtab): Update comment.
10683
e94e944b
TT
106842020-02-21 Tom Tromey <tromey@adacore.com>
10685
10686 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10687 type is CORE_ADDR.
10688
1eb73179
TV
106892020-02-21 Tom de Vries <tdevries@suse.de>
10690
10691 PR gdb/25534
10692 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10693 if dependencies[i]->user != NULL.
10694
4f180d53
AT
106952020-02-21 Ali Tamur <tamur@google.com>
10696
10697 * dwarf2/read.c (dwarf2_name): Add null check.
10698
22b6cd70
TT
106992020-02-20 Tom Tromey <tom@tromey.com>
10700
10701 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10702 ">=", in binary search.
10703 (dwarf2_find_containing_comp_unit): New overload.
10704 (run_test): New self-test.
10705 (_initialize_dwarf2_read): Register new test.
10706
bd0cf5a6
NC
107072020-02-20 Nelson Chu <nelson.chu@sifive.com>
10708
10709 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10710 * riscv-tdep.h: Likewise.
10711 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10712 rv32-only CSR.
10713 * features/riscv/64bit-csr.xml: Regenerated.
10714
3f702acd
SDJ
107152020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10716 Tom Tromey <tom@tromey.com>
10717
10718 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10719 of 'fputc_unfiltered'.
10720 (putchar_unfiltered): Call 'fputc_unfiltered'.
10721 (fputc_unfiltered): Call 'fputs_unfiltered'.
10722
d13c7322
AB
107232020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10724
10725 * config.in: Regenerate.
10726 * configure: Regenerate.
10727 * configure.ac: Add --with-python-libdir option.
10728 * main.c: Use WITH_PYTHON_LIBDIR.
10729
869d8950
TT
107302020-02-19 Tom Tromey <tom@tromey.com>
10731
10732 * symtab.c (general_symbol_info::compute_and_set_names): Use
10733 obstack_strndup. Simplify call to symbol_set_demangled_name.
10734
298e9637
SM
107352020-02-19 Simon Marchi <simon.marchi@efficios.com>
10736
10737 * dwarf2/read.c (allocate_signatured_type_table,
10738 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10739 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10740 Remove objfile parameter, update all callers.
10741
08410482
DE
107422020-02-19 Doug Evans <dje@google.com>
10743
10744 PR rust/25535
10745 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10746 rust_enum_variant calculation.
10747
dfdeeca1
TT
107482020-02-19 Tom Tromey <tromey@adacore.com>
10749
10750 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10751
2ef5453b
TT
107522020-02-19 Tom Tromey <tromey@adacore.com>
10753
10754 * ada-lang.c (cache_symbol): Use obstack_strdup.
10755
9f1528a1
AB
107562020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10757
10758 * configure: Regenerate.
10759
d3c22fa8
TT
107602020-02-19 Tom Tromey <tromey@adacore.com>
10761
10762 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10763 NULL check.
10764
bf84f706
MR
107652020-02-19 Maciej W. Rozycki <macro@wdc.com>
10766
10767 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10768
d1c9b20f
AB
107692020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10770
10771 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10772 if GDBSERVER is not defined.
10773 (riscv_tdesc_cache): Likewise, also store const target_desc.
10774 (STATIC_IN_GDB): Define.
10775 (riscv_create_target_description): Update declaration with
10776 STATIC_IN_GDB.
10777 (riscv_lookup_target_description): New function, only define if
10778 GDBSERVER is not defined.
10779 * arch/riscv.h (riscv_create_target_description): Declare only
10780 when GDBSERVER is defined.
10781 (riscv_lookup_target_description): New declaration when GDBSERVER
10782 is not defined.
10783 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10784 (riscv_linux_read_features): ...this, and return
10785 riscv_gdbarch_features instead of target_desc.
10786 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10787 (riscv_linux_read_description): Rename to...
10788 (riscv_linux_read_features): ...this.
10789 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10790 Update to use riscv_gdbarch_features and
10791 riscv_lookup_target_description.
10792 * riscv-tdep.c (riscv_find_default_target_description): Use
10793 riscv_lookup_target_description instead of
10794 riscv_create_target_description.
10795
373d7ac0
SM
107962020-02-18 Simon Marchi <simon.marchi@efficios.com>
10797
10798 * valprint.c (generic_val_print_enum_1): When printing a flag
10799 enum with value 0 and there is no enumerator with value 0, print
10800 just "0" instead of "(unknown: 0x0)".
10801
b29a2df0
SM
108022020-02-18 Simon Marchi <simon.marchi@efficios.com>
10803
10804 * valprint.c (generic_val_print_enum_1): Print unknown part of
10805 flag enum in hex.
10806
6740f0cc
SM
108072020-02-18 Simon Marchi <simon.marchi@efficios.com>
10808
10809 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10810 flag enums to contain duplicate enumerators.
10811 * valprint.c (generic_val_print_enum_1): Update comment.
10812
edd45eb0
SM
108132020-02-18 Simon Marchi <simon.marchi@efficios.com>
10814
10815 * dwarf2/read.c: Include "count-one-bits.h".
10816 (update_enumeration_type_from_children): If an enumerator has
10817 multiple bits set, don't treat the enumeration as a "flag enum".
10818 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10819 of flag enums have 0 or 1 bit set.
10820
6d0cf446
BE
108212020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10822
10823 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10824 conversion.
10825 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10826 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10827 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10828 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10829 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10830
7001c1b7
SM
108312020-02-18 Simon Marchi <simon.marchi@efficios.com>
10832
10833 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10834
fdb61c6c
SM
108352020-02-14 Simon Marchi <simon.marchi@efficios.com>
10836
10837 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10838 displaced_step_closure_up.
10839 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10840 (struct displaced_step_closure_up):
10841 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10842 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10843 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10844 Likewise.
10845 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10846 * gdbarch.c, gdbarch.h: Re-generate.
10847 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10848 displaced_step_closure_up.
10849 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10850 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10851 * infrun.h (displaced_step_closure_up): New type alias.
10852 (struct displaced_step_inferior_state) <step_closure>: Change
10853 type to displaced_step_closure_up.
10854 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10855 displaced_step_closure_up.
10856 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10857
a4a38eb4
TT
108582020-02-14 Tom Tromey <tom@tromey.com>
10859
10860 * minidebug.c (gnu_debug_key): New global.
10861 (find_separate_debug_file_in_section): Use it.
10862
e8217e61
SM
108632020-02-14 Simon Marchi <simon.marchi@efficios.com>
10864
10865 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10866 std::unique_ptr.
10867 * gdbarch.c: Re-generate.
10868 * gdbarch.h: Re-generate.
10869 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10870 change.
10871 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10872 type to std::unique_ptr.
10873 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10874 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10875 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10876 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10877 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10878 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10879 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10880 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10881 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10882
d8d83535
SM
108832020-02-14 Simon Marchi <simon.marchi@efficios.com>
10884
10885 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10886 std::unique_ptr.
10887 (displaced_step_clear): Rename to...
10888 (displaced_step_reset): ... this. Just call displaced->reset ().
10889 (displaced_step_clear_cleanup): Rename to...
10890 (displaced_step_reset_cleanup): ... this.
10891 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10892 (displaced_step_fixup): Likewise.
10893 (resume_1): Likewise.
10894 (handle_inferior_event): Restore child's memory before calling
10895 displaced_step_fixup on the parent.
10896 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10897 to std::unique_ptr.
10898 <step_closure>: Change type to std::unique_ptr.
10899
5f661e03
SM
109002020-02-14 Simon Marchi <simon.marchi@efficios.com>
10901
10902 * arm-tdep.c: Include count-one-bits.h.
10903 (cleanup_block_store_pc): Use count_one_bits.
10904 (cleanup_block_load_pc): Use count_one_bits.
10905 (arm_copy_block_xfer): Use count_one_bits.
10906 (thumb2_copy_block_xfer): Use count_one_bits.
10907 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10908 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10909 (thumb_get_next_pcs_raw): Use count_one_bits.
10910 (arm_get_next_pcs_raw): Use count_one_bits_l.
10911 * arch/arm.c (bitcount): Remove.
10912 * arch/arm.h (bitcount): Remove.
10913
8084e579
TT
109142020-02-14 Tom Tromey <tromey@adacore.com>
10915
10916 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10917 Update.
10918 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10919 * dwarf2/loc.c (call_site_find_chain_1): Return
10920 unique_xmalloc_ptr.
10921 (call_site_find_chain): Likewise.
10922
258bf0ee
RB
109232020-02-14 Richard Biener <rguenther@suse.de>
10924
10925 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10926 on expression with division operators.
10927
f98a8458
AKS
109282020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10929
10930 * MAINTAINERS (Write After Approval): Adding myself.
10931
d1437c0e
TT
109322020-02-12 Tom Tromey <tom@tromey.com>
10933
10934 * event-loop.c (event_data, gdb_event, event_handler_func):
10935 Remove.
10936
3d4560f7
TT
109372020-02-12 Tom Tromey <tom@tromey.com>
10938
10939 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10940 (dwarf2_frame_objfile_data): Add comment.
10941 (find_comp_unit, set_comp_unit): New functions.
10942 (dwarf2_frame_find_fde): Use find_comp_unit.
10943 (dwarf2_build_frame_info): Use set_comp_unit.
10944
21982304
TT
109452020-02-12 Tom Tromey <tom@tromey.com>
10946
10947 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10948 (comp_unit): Don't initialize objfile.
10949 (execute_cfa_program): Add text_offset parameter.
10950 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10951 (dwarf2_frame_cache): Update.
10952 (dwarf2_build_frame_info): Don't set "objfile" member.
10953
4debb237
TT
109542020-02-12 Tom Tromey <tom@tromey.com>
10955
10956 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10957 (decode_frame_entry): Likewise.
10958 (dwarf2_build_frame_info): Update.
10959
0d404d44
TT
109602020-02-12 Tom Tromey <tom@tromey.com>
10961
10962 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10963 (decode_frame_entry_1): Use the comp_unit obstack.
10964
a7a3ae5c
TT
109652020-02-12 Tom Tromey <tom@tromey.com>
10966
10967 * dwarf2/frame.c (struct comp_unit): Add initializers and
10968 constructor.
10969 (dwarf2_frame_objfile_data): Store a comp_unit.
10970 (dwarf2_frame_find_fde): Update.
10971 (dwarf2_build_frame_info): Use "new".
10972
a9d65418
TT
109732020-02-12 Tom Tromey <tom@tromey.com>
10974
10975 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10976 (dwarf2_fde_table): Typedef for std::vector.
10977 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10978 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10979 (decode_frame_entry): Update.
10980 (dwarf2_build_frame_info): Use "new".
10981
7559c217
CB
109822020-02-12 Christian Biesinger <cbiesinger@google.com>
10983
10984 * arm-tdep.c (arm_gdbarch_init): Update.
10985 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10986 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10987 have_neon, is_m>: Change to bool.
10988
aeefc73c
CB
109892020-02-12 Christian Biesinger <cbiesinger@google.com>
10990
10991 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10992
d27b8e5f
TT
109932020-02-12 Tom Tromey <tom@tromey.com>
10994
10995 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10996
cd5900f3
HD
109972020-02-12 Hannes Domani <ssbssa@yahoo.de>
10998
10999 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11000 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11001
f056b22b
TT
110022020-02-11 Tom Tromey <tom@tromey.com>
11003
11004 * psymtab.h: Update comment.
11005
f92ff6b5
TT
110062020-02-11 Tom Tromey <tom@tromey.com>
11007
11008 * gdb_obstack.h (struct auto_obstack): Use
11009 DISABLE_COPY_AND_ASSIGN.
11010
3fd6912b
TT
110112020-02-11 Tom Tromey <tom@tromey.com>
11012
11013 * dwarf2/frame.h (struct objfile): Don't forward declare.
11014
69ed9b74
CB
110152020-02-11 Christian Biesinger <cbiesinger@google.com>
11016
11017 * cris-tdep.c (cris_supply_gregset): Change signature to match
11018 what struct regset expects.
11019 (cris_regset): New struct.
11020 (fetch_core_registers): Remove.
11021 (cris_iterate_over_regset_sections): New function.
11022 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11023 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11024
bda874f6
CB
110252020-02-11 Christian Biesinger <cbiesinger@google.com>
11026
11027 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11028 registers.
11029
754e1564
CB
110302020-02-11 Christian Biesinger <cbiesinger@google.com>
11031
11032 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11033
8ddd8e0e
SM
110342020-02-11 Simon Marchi <simon.marchi@efficios.com>
11035
11036 * configure: Re-generate.
11037
898e7f60
SM
110382020-02-11 Simon Marchi <simon.marchi@efficios.com>
11039
11040 * configure: Re-generate.
11041
58df732b
SM
110422020-02-11 Simon Marchi <simon.marchi@efficios.com>
11043
11044 * acinclude: Update warning.m4 path.
11045 * warning.m4: Move to gdbsupport.
11046
da5bd37e
TT
110472020-02-11 Tom Tromey <tromey@adacore.com>
11048
11049 * remote.c (remote_console_output): Update.
11050 * printcmd.c (printf_command): Update.
11051 * event-loop.c (gdb_wait_for_event): Update.
11052 * linux-nat.c (sigchld_handler): Update.
11053 * remote-sim.c (gdb_os_write_stdout): Update.
11054 (gdb_os_flush_stdout): Update.
11055 (gdb_os_flush_stderr): Update.
11056 (gdb_os_write_stderr): Update.
11057 * exceptions.c (print_exception): Update.
11058 * remote-fileio.c (remote_fileio_func_read): Update.
11059 (remote_fileio_func_write): Update.
11060 * tui/tui.c (tui_enable): Update.
11061 * tui/tui-interp.c (tui_interp::init): Update.
11062 * utils.c (init_page_info): Update.
11063 (putchar_unfiltered, fputc_unfiltered): Update.
11064 (gdb_flush): Update.
11065 (emit_style_escape): Update.
11066 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11067 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11068 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11069 (stderr_file::write): Update.
11070 (stderr_file::puts): Update.
11071 * ui-file.h (ui_file_isatty, ui_file_write)
11072 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11073 (ui_file_puts): Don't declare.
11074
85f0dd3c
TV
110752020-02-10 Tom de Vries <tdevries@suse.de>
11076
11077 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11078 sentinel to char *.
11079
2e927613
TV
110802020-02-09 Tom de Vries <tdevries@suse.de>
11081
11082 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11083 filename if it matches "<artificial>".
11084
6bafc845
HD
110852020-02-09 Hannes Domani <ssbssa@yahoo.de>
11086
11087 * windows-tdep.c (struct enum_value_name): New struct.
11088 (create_enum): New function.
11089 (windows_get_siginfo_type): Create and use enum types.
11090
7928d571
HD
110912020-02-09 Hannes Domani <ssbssa@yahoo.de>
11092
11093 * NEWS: Mention $_siginfo support for Windows.
11094 * windows-nat.c (handle_exception): Set siginfo_er.
11095 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11096 (windows_xfer_siginfo): New function.
11097 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11098 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11099 (init_windows_gdbarch_data): New function.
11100 (get_windows_gdbarch_data): New function.
11101 (windows_get_siginfo_type): New function.
11102 (windows_init_abi): Register windows_get_siginfo_type.
11103 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11104
6751ebae
TT
111052020-02-08 Tom Tromey <tom@tromey.com>
11106
11107 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11108 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11109 <keep>: Declare method.
11110 <m_keep>: Remove member.
11111 <~cutu_reader>: Remove.
11112 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11113 (cutu_reader::cutu_reader): Update.
11114 (cutu_reader::keep): Rename from ~cutu_reader.
11115 (process_psymtab_comp_unit, build_type_psymtabs_1)
11116 (process_skeletonless_type_unit, load_partial_comp_unit)
11117 (load_full_comp_unit, dwarf2_read_addr_index)
11118 (read_signatured_type): Update.
11119
135f5437
TT
111202020-02-08 Tom Tromey <tom@tromey.com>
11121
11122 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11123 "want_partial_unit" parameter.
11124 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11125 Inline check for DW_TAG_partial_unit.
11126 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11127
9f66ff1c
TT
111282020-02-08 Tom Tromey <tom@tromey.com>
11129
11130 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11131 read.c.
11132 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11133 read.c.
11134
c8a7a66f
TT
111352020-02-08 Tom Tromey <tom@tromey.com>
11136
11137 * dwarf2/read.c (read_address): Move to comp-unit.c.
11138 (dwarf2_rnglists_process, dwarf2_ranges_process)
11139 (read_attribute_value, dwarf_decode_lines_1)
11140 (var_decode_location, decode_locdesc): Update.
11141 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11142 read.c. Remove "cu" parameter.
11143 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11144 method.
11145
8266302d
TT
111462020-02-08 Tom Tromey <tom@tromey.com>
11147
11148 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11149 (read_indirect_line_string): Update.
11150 * dwarf2/comp-unit.c (read_offset): Remove.
11151 (read_comp_unit_head): Update.
11152 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11153 method.
11154 (read_offset): Don't declare.
11155
4057dfde
TT
111562020-02-08 Tom Tromey <tom@tromey.com>
11157
11158 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11159 * dwarf2/read.c (struct comp_unit_head): Move to
11160 dwarf2/comp-unit.h.
11161 (enum class rcuh_kind): Move to comp-unit.h.
11162 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11163 (read_comp_unit_head, error_check_comp_unit_head)
11164 (read_and_check_comp_unit_head): Move to comp-unit.c.
11165 (read_offset, dwarf_unit_type_name): Likewise.
11166 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11167 (cutu_reader::cutu_reader, read_call_site_scope)
11168 (find_partial_die, follow_die_offset): Update.
11169 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11170
24aa364d
TT
111712020-02-08 Tom Tromey <tom@tromey.com>
11172
11173 * dwarf2/read.c (read_offset_1): Move to leb.c.
11174 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11175 (dwarf_decode_macro_bytes): Update.
11176 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11177 * dwarf2/leb.h (read_offset): Declare.
11178
2c7d5afc
TT
111792020-02-08 Tom Tromey <tom@tromey.com>
11180
11181 * dwarf2/read.c (dwarf2_section_size): Remove.
11182 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11183 Update.
11184 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11185
4075cb26
TT
111862020-02-08 Tom Tromey <tom@tromey.com>
11187
11188 * dwarf2/read.c (read_initial_length): Move to leb.c.
11189 * dwarf2/leb.h (read_initial_length): Declare.
11190 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11191 handle_nonstd parameter.
11192 * dwarf2/frame.c (read_initial_length): Remove.
11193 (decode_frame_entry_1): Update.
11194
09ba997f
TT
111952020-02-08 Tom Tromey <tom@tromey.com>
11196
11197 * dwarf2/loc.c (dwarf2_find_location_expression)
11198 (dwarf_evaluate_loc_desc::get_tls_address)
11199 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11200 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11201 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11202 (dwarf2_compile_property_to_c)
11203 (dwarf2_loc_desc_get_symbol_read_needs)
11204 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11205 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11206 (loclist_describe_location, loclist_tracepoint_var_ref)
11207 (loclist_generate_c_location): Update.
11208 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11209 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11210 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11211 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11212 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11213 (dwarf2_per_cu_data::addr_size)
11214 (dwarf2_per_cu_data::ref_addr_size)
11215 (dwarf2_per_cu_data::text_offset)
11216 (dwarf2_per_cu_data::addr_type): Now methods.
11217 (per_cu_header_read_in): Make per_cu "const".
11218 (dwarf2_version): Remove.
11219 (dwarf2_per_cu_data::int_type): Now a method.
11220 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11221 (set_die_type, read_array_type, read_subrange_index_type)
11222 (read_tag_string_type, read_subrange_type): Update.
11223 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11224 offset_size, ref_addr_size, text_offset, addr_type, version,
11225 objfile, int_type, addr_sized_int_type>: Declare methods.
11226
96c738c0
TT
112272020-02-08 Tom Tromey <tom@tromey.com>
11228
11229 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11230 Move earlier.
11231
8fdd972c
TT
112322020-02-08 Tom Tromey <tom@tromey.com>
11233
11234 * dwarf2/read.h (dwarf_line_debug): Declare.
11235 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11236 * dwarf2/read.c: Move line_header code to new files.
11237 (dwarf_line_debug): No longer static.
11238 * dwarf2/line-header.c: New file.
11239 * dwarf2/line-header.h: New file.
11240
03075812
TT
112412020-02-08 Tom Tromey <tom@tromey.com>
11242
11243 * dwarf2/read.c (struct line_header) <file_full_name,
11244 file_file_name>: Return unique_xmalloc_ptr.
11245 (line_header::file_file_name): Update.
11246 (line_header::file_full_name): Update.
11247 (dw2_get_file_names_reader): Update.
11248 (macro_start_file): Update.
11249
bb822404
TT
112502020-02-08 Tom Tromey <tom@tromey.com>
11251
11252 * dwarf2/read.c (struct line_header) <file_full_name,
11253 file_file_name>: Declare methods.
11254 (dw2_get_file_names_reader): Update.
11255 (file_file_name): Now a method.
11256 (file_full_name): Likewise.
11257 (macro_start_file): Update.
11258
009b64fc
TT
112592020-02-08 Tom Tromey <tom@tromey.com>
11260
11261 * dwarf2/read.c (dwarf_always_disassemble)
11262 (show_dwarf_always_disassemble): Move to loc.c.
11263 (_initialize_dwarf2_read): Move "always-disassemble" registration
11264 to loc.c.
11265 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11266 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11267 static.
11268 (show_dwarf_always_disassemble): Move from read.c.
11269 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11270
5895093f
TT
112712020-02-08 Tom Tromey <tom@tromey.com>
11272
11273 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11274 (create_quick_file_names_table): Return htab_up.
11275 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11276 Update.
11277 * dwarf2/read.h (struct dwarf2_per_objfile)
11278 <quick_file_names_table>: Now htab_up.
11279
b3b32279
TT
112802020-02-08 Tom Tromey <tom@tromey.com>
11281
11282 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11283
1d33d811
TT
112842020-02-08 Tom Tromey <tom@tromey.com>
11285
11286 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11287 Rewrite.
11288 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11289 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11290 (abbrev_table::abbrev_table): No longer inline.
11291 (ABBREV_HASH_SIZE): Remove.
11292 (abbrev_table::m_abbrevs): Now an htab_up.
11293
86de1d91
TT
112942020-02-08 Tom Tromey <tom@tromey.com>
11295
11296 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11297 (cutu_reader): Update.
11298 (build_type_psymtabs_1): Update.
11299 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11300 (abbrev_table::alloc_abbrev): Update.
11301 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11302 (abbrev_table::read): New static method, renamed from
11303 abbrev_table_read_table.
11304 (abbrev_table::alloc_abbrev)
11305 (abbrev_table::add_abbrev): Now private.
11306 (abbrev_table::abbrev_table): Now private.
11307 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11308
0335378b
TT
113092020-02-08 Tom Tromey <tom@tromey.com>
11310
11311 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11312 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11313 htab_up.
11314
48b490f2
TT
113152020-02-08 Tom Tromey <tom@tromey.com>
11316
11317 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11318 htab_up.
11319 (lookup_dwo_unit_in_dwp): Update.
11320 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11321 on obstack.
11322
bc68fb19
TT
113232020-02-08 Tom Tromey <tom@tromey.com>
11324
11325 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11326 obstack.
11327
d15acc42
TT
113282020-02-08 Tom Tromey <tom@tromey.com>
11329
11330 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11331 line_header_hash.
11332 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11333 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11334 Change type to htab_up.
11335
eaa5fa8b
TT
113362020-02-08 Tom Tromey <tom@tromey.com>
11337
11338 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11339 htab_up. Don't allocate on obstack.
11340 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11341 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11342 Change type to htab_up.
11343
b0b6a987
TT
113442020-02-08 Tom Tromey <tom@tromey.com>
11345
11346 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11347 Change type to htab_up.
11348 * dwarf2/read.c (create_signatured_type_table_from_index)
11349 (create_signatured_type_table_from_debug_names)
11350 (create_all_type_units, add_type_unit)
11351 (lookup_dwo_signatured_type, lookup_signatured_type)
11352 (process_skeletonless_type_unit): Update.
11353 (create_debug_type_hash_table, create_debug_types_hash_table):
11354 Change type of types_htab.
11355 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11356 htab_up. Don't allocate on obstack.
11357 (create_cus_hash_table): Change type of cus_htab parameter.
11358 (struct dwo_file) <cus, tus>: Now htab_up.
11359 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11360 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11361 (queue_and_load_all_dwo_tus): Update.
11362 * dwarf2/index-write.c (write_gdbindex): Update.
11363 (write_debug_names): Update.
11364
39856def
TT
113652020-02-08 Tom Tromey <tom@tromey.com>
11366
11367 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11368 dwarf2/read.c. Remove "next" member. Add constructor ntad
11369 destructor.
11370 (struct dwarf2_per_objfile) <queue>: New member.
11371 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11372 dwarf2/read.h.
11373 (dwarf2_queue, dwarf2_queue_tail): Remove.
11374 (class dwarf2_queue_guard): Add parameter to constructor. Use
11375 DISABLE_COPY_AND_ASSIGN.
11376 <m_per_objfile>: New member.
11377 <~dwarf2_queue_guard>: Rewrite.
11378 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11379 Update.
11380 (~dwarf2_queue_item): New.
11381
3e225074
TT
113822020-02-08 Tom Tromey <tom@tromey.com>
11383
11384 * dwarf2/read.c (struct die_info) <has_children>: New member.
11385 (dw2_get_file_names_reader): Remove has_children.
11386 (dw2_get_file_names): Update.
11387 (read_cutu_die_from_dwo): Remove has_children.
11388 (cutu_reader::init_tu_and_read_dwo_dies)
11389 (cutu_reader::cutu_reader): Update.
11390 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11391 Remove has_children.
11392 (build_type_psymtabs_1, process_skeletonless_type_unit)
11393 (load_partial_comp_unit, load_full_comp_unit): Update.
11394 (create_dwo_cu_reader): Remove has_children.
11395 (create_cus_hash_table, read_die_and_children): Update.
11396 (read_full_die_1,read_full_die): Remove has_children.
11397 (read_signatured_type): Update.
11398 (class cutu_reader) <has_children>: Remove.
11399
82ca8957
TT
114002020-02-08 Tom Tromey <tom@tromey.com>
11401
11402 * dwarf2/expr.c: Rename from dwarf2expr.c.
11403 * dwarf2/expr.h: Rename from dwarf2expr.h.
11404 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11405 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11406 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11407 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11408 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11409 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11410 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11411 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11412 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11413 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11414 * dwarf2/loc.c: Rename from dwarf2loc.c.
11415 * dwarf2/loc.h: Rename from dwarf2loc.h.
11416 * dwarf2/read.c: Rename from dwarf2read.c.
11417 * dwarf2/read.h: Rename from dwarf2read.h.
11418 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11419 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11420 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11421 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11422 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11423 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11424 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11425 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11426 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11427 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11428 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11429 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11430 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11431 Update.
11432 * Makefile.in (COMMON_SFILES): Update.
11433 (HFILES_NO_SRCDIR): Update.
11434
9e35d499
TT
114352020-02-08 Tom Tromey <tom@tromey.com>
11436
11437 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11438 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11439
1eba2311
TT
114402020-02-08 Tom Tromey <tom@tromey.com>
11441
11442 * dwarf2read.h (struct die_info): Don't declare.
11443
e41c2da2
TT
114442020-02-08 Tom Tromey <tom@tromey.com>
11445
11446 * dwarf2read.h (die_info_ptr): Remove typedef.
11447
4fc6c0d5
TT
114482020-02-08 Tom Tromey <tom@tromey.com>
11449
11450 * dwarf2read.c (read_call_site_scope)
11451 (handle_data_member_location, dwarf2_add_member_fn)
11452 (mark_common_block_symbol_computed, read_common_block)
11453 (attr_to_dynamic_prop, partial_die_info::read)
11454 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11455 (dwarf2_symbol_mark_computed, set_die_type): Update.
11456 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11457 method.
11458 (attr_form_is_block): Don't declare.
11459 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11460
cd6c91b4
TT
114612020-02-08 Tom Tromey <tom@tromey.com>
11462
11463 * dwarf2read.c (dwarf2_find_base_address, )
11464 (read_call_site_scope, rust_containing_type)
11465 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11466 (handle_data_member_location, dwarf2_add_member_fn)
11467 (get_alignment, read_structure_type, process_structure_scope)
11468 (mark_common_block_symbol_computed, read_common_block)
11469 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11470 (partial_die_info::read, read_attribute_value, new_symbol)
11471 (lookup_die_type, dwarf2_get_ref_die_offset)
11472 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11473 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11474 (dwarf2_symbol_mark_computed): Update.
11475 * dwarf2/attribute.h (struct attribute) <value_as_address,
11476 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11477 methods.
11478 (value_as_address, attr_form_is_section_offset)
11479 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11480 * dwarf2/attribute.c (attribute::value_as_address)
11481 (attribute::form_is_section_offset, attribute::form_is_constant)
11482 (attribute::form_is_ref): Now methods.
11483
162dce55
TT
114842020-02-08 Tom Tromey <tom@tromey.com>
11485
11486 * dwarf2read.c (struct attribute, DW_STRING)
11487 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11488 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11489 (attr_form_is_block, attr_form_is_section_offset)
11490 (attr_form_is_constant, attr_form_is_ref): Move.
11491 * dwarf2/attribute.h: New file.
11492 * dwarf2/attribute.c: New file, from dwarf2read.c.
11493 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11494
3054dd54
TT
114952020-02-08 Tom Tromey <tom@tromey.com>
11496
11497 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11498 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11499 Move.
11500 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11501 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11502 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11503 abbrev.c.
11504 * dwarf2/abbrev.h: New file.
11505 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11506 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11507
96b79293
TT
115082020-02-08 Tom Tromey <tom@tromey.com>
11509
11510 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11511 (dwarf2_section_size, dwarf2_get_section_info)
11512 (create_signatured_type_table_from_debug_names)
11513 (create_addrmap_from_aranges, read_debug_names_from_section)
11514 (get_gdb_index_contents_from_section, read_comp_unit_head)
11515 (error_check_comp_unit_head, read_abbrev_offset)
11516 (create_debug_type_hash_table, init_cu_die_reader)
11517 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11518 (read_comp_units_from_section, create_cus_hash_table)
11519 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11520 (create_dwp_v2_section, dwarf2_rnglists_process)
11521 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11522 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11523 (read_indirect_string_from_dwz, read_addr_index_1)
11524 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11525 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11526 (fill_in_loclist_baton): Update.
11527 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11528 get_containing_section, get_bfd_owner, get_bfd_section,
11529 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11530 (dwarf2_read_section, get_section_name, get_section_file_name)
11531 (get_containing_section, get_section_bfd_owner)
11532 (get_section_bfd_section, get_section_name, get_section_file_name)
11533 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11534 declare.
11535 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11536 (dwarf2_section_info::get_bfd_owner)
11537 (dwarf2_section_info::get_bfd_section)
11538 (dwarf2_section_info::get_name)
11539 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11540 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11541 (dwarf2_section_info::read): Now methods.
11542 * dwarf-index-write.c (class debug_names): Update.
11543
2c86cff9
TT
115442020-02-08 Tom Tromey <tom@tromey.com>
11545
11546 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11547 Move to dwarf2/section.h.
11548 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11549 (get_section_bfd_section, get_section_name)
11550 (get_section_file_name, get_section_id, get_section_flags)
11551 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11552 dwarf2/section.c.
11553 * dwarf2/section.h: New file.
11554 * dwarf2/section.c: New file, from dwarf2read.c.
11555 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11556
f4382c45
TT
115572020-02-08 Tom Tromey <tom@tromey.com>
11558
11559 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11560 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11561 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11562 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11563 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11564 * dwarf2/leb.h: New file, from dwarf2read.c.
11565 * dwarf2/leb.c: New file, from dwarf2read.c.
11566 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11567 Remove.
11568 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11569 (COMMON_SFILES): Add dwarf2/leb.c.
11570
01840b7a
JB
115712020-02-08 Joel Brobecker <brobecker@adacore.com>
11572
11573 GDB 9.1 released.
11574
dfcb27e4
IB
115752020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11576
11577 PR gdb/25190:
aac66a4c
SM
11578 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11579 * gdb/remote.c (remote_console_output): Update.
11580 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11581 (ui_file_puts): ...this.
11582 * gdb/ui-file.h (ui_file_puts): Add declaration.
11583 * gdb/utils.c (emit_style_escape): Update.
11584 (flush_wrap_buffer): Update.
11585 (fputs_maybe_filtered): Update.
11586 (fputs_unfiltered): Add function.
dfcb27e4 11587
faa17681
IB
115882020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11589
aac66a4c
SM
11590 * gdb/event-loop.c (gdb_wait_for_event): Update.
11591 * gdb/printcmd.c (printf_command): Update.
11592 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11593 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11594 (gdb_os_flush_stderr): Update.
11595 * gdb/remote.c (remote_console_output): Update.
11596 * gdb/ui-file.c (gdb_flush): Rename to...
11597 (ui_file_flush): ...this.
11598 (stderr_file::write): Update.
11599 (stderr_file::puts): Update.
11600 * gdb/ui-file.h (gdb_flush): Rename to...
11601 (ui_file_flush): ...this.
11602 * gdb/utils.c (gdb_flush): Add function.
11603 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11604
5abbbe1d
TT
116052020-02-07 Tom Tromey <tromey@adacore.com>
11606
11607 PR breakpoints/24915:
11608 * source.c (find_and_open_source): Do not check basenames_may_differ.
11609
919adfe8
TT
116102020-02-07 Tom Tromey <tom@tromey.com>
11611
11612 * README: Update gdbserver documentation.
11613 * gdbserver: Move to top level.
11614 * configure.tgt (build_gdbserver): Remove.
11615 * configure.ac: Remove --enable-gdbserver.
11616 * configure: Rebuild.
11617 * Makefile.in (distclean): Don't mention gdbserver.
11618
1d5d29e7
SV
116192020-02-06 Shahab Vahedi <shahab@synopsys.com>
11620
11621 * source-cache.c (source_cache::ensure): Surround
11622 get_plain_source_lines with a try/catch.
11623 (source_cache::get_line_charpos): Get rid of try/catch
11624 and only check for the return value of "ensure".
11625 * tui/tui-source.c (tui_source_window::set_contents):
11626 Simplify "nlines" calculation.
11627
6eb1129c
SV
116282020-02-06 Shahab Vahedi <shahab@synopsys.com>
11629
11630 * MAINTAINERS (Write After Approval): Add myself.
11631
c6a42d11
CB
116322020-02-05 Christian Biesinger <cbiesinger@google.com>
11633
11634 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11635 function call.
11636
c8ecdda6
CB
116372020-02-05 Christian Biesinger <cbiesinger@google.com>
11638
11639 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11640
f6480e70
MR
116412020-02-05 Maciej W. Rozycki <macro@wdc.com>
11642
11643 * nat/riscv-linux-tdesc.h: New file.
11644 * nat/riscv-linux-tdesc.c: New file, taking code from...
11645 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11646 ... here.
11647 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11648 NATDEPFILES.
11649
dcc9fbc6
AB
116502020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11651
11652 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11653 we don't set the fake simulator ptid to the null_ptid.
11654
719546c4
SM
116552020-02-03 Simon Marchi <simon.marchi@efficios.com>
11656
11657 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11658 * gdbthread.h (class thread_info) <resumed>: Likewise.
11659 * infrun.c (resume_1): Likewise.
11660 (proceed): Likewise.
11661 (infrun_thread_stop_requested): Likewise.
11662 (stop_all_threads): Likewise.
11663 (handle_inferior_event): Likewise.
11664 (restart_threads): Likewise.
11665 (finish_step_over): Likewise.
11666 (keep_going_stepped_thread): Likewise.
11667 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11668 (linux_handle_extended_wait): Likewise.
11669 * record-btrace.c (get_thread_current_frame_id): Likewise.
11670 * record-full.c (record_full_wait_1): Likewise.
11671 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11672 * target.c (target_resume): Likewise.
11673 * thread.c (set_running_thread): Likewise.
11674
e409c542
AKS
116752020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11676
11677 * f-valprint.c (f77_print_array_1): Changed datatype of index
11678 variable to LONGEST from int to enable it to contain bound
11679 values correctly.
11680
ee98c0da
MR
116812020-02-03 Maciej W. Rozycki <macro@wdc.com>
11682
11683 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11684 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11685 offsets according to FLEN determined.
11686 (riscv_linux_nat_target::read_description): Determine FLEN
11687 dynamically.
11688 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11689 according to FLEN determined.
11690 (riscv_linux_nat_target::store_registers): Likewise.
11691
aa66aac4
SV
116922020-02-01 Shahab Vahedi <shahab@synopsys.com>
11693
11694 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11695 when reg->group is empty and reggroup is not.
11696
fd9faca8
TT
116972020-01-31 Tom Tromey <tromey@adacore.com>
11698
11699 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11700 Call beneath target's mourn_inferior after unpushing.
11701
42330a68
AB
117022020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11703
11704 PR tui/9765
11705 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11706 have enough lines to fill the screen, still return the lowest
11707 address we found.
11708
7a27a45b
AB
117092020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11710
11711 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11712 '-', '<', and '>' commands.
11713
c47f70e2
PA
117142020-01-29 Pedro Alves <palves@redhat.com>
11715 Sergio Durigan Junior <sergiodj@redhat.com>
11716
11717 * infcmd.c (construct_inferior_arguments): Assert that
11718 'argc' is greater than 0.
11719
5133a315
LM
117202020-01-29 Luis Machado <luis.machado@linaro.org>
11721
11722 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11723 (BRK_INSN_MASK): Define to 0xd4200000.
11724 (aarch64_program_breakpoint_here_p): New function.
11725 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11726 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11727 breakpoint.c.
11728 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11729 breakpoint.h
11730 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11731 call gdbarch_program_breakpoint_here_p.
11732 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11733 default_program_breakpoint_here_p, changed return type to bool and
11734 simplified.
11735 * breakpoint.h (program_breakpoint_here): Moved prototype to
11736 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11737 return type to bool.
11738 * gdbarch.c: Regenerate.
11739 * gdbarch.h: Regenerate.
11740 * gdbarch.sh (program_breakpoint_here_p): New method.
11741 * infrun.c (handle_signal_stop): Call
11742 gdbarch_program_breakpoint_here_p.
11743
168f8c6b
TT
117442020-01-26 Tom Tromey <tom@tromey.com>
11745
11746 * ctfread.c (struct ctf_fp_info): Reindent.
11747 (_initialize_ctfread): Remove.
11748
128a391f
TT
117492020-01-26 Tom Tromey <tom@tromey.com>
11750
11751 * psymtab.c (partial_map_expand_apply)
11752 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11753 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11754 (psym_print_stats, psym_expand_symtabs_for_function)
11755 (psym_map_symbol_filenames, psym_map_matching_symbols)
11756 (psym_expand_symtabs_matching)
11757 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11758 (maintenance_check_psymtabs): Use new methods.
11759 * psympriv.h (struct partial_symtab) <readin_p,
11760 get_compunit_symtab>: New methods.
11761 <readin, compunit_symtab>: Remove members.
11762 (struct standard_psymtab): New.
11763 (struct legacy_psymtab): Derive from standard_psymtab.
11764 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11765 standard_psymtab.
11766 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11767
0494dbec
TT
117682020-01-26 Tom Tromey <tom@tromey.com>
11769
11770 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11771 read_dependencies. Add assert.
11772 * psymtab.c (partial_symtab::read_dependencies): New method.
11773 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11774 method.
11775 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11776 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11777 read_dependencies.
11778 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11779 Add assert.
11780
8566b89b
TT
117812020-01-26 Tom Tromey <tom@tromey.com>
11782
11783 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11784 Call expand_psymtab.
11785 (xcoff_read_symtab): Call expand_psymtab.
11786 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11787 legacy_expand_psymtab.
11788 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11789 method.
11790 (struct legacy_psymtab) <expand_psymtab>: Implement.
11791 <legacy_expand_psymtab>: New member.
11792 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11793 (parse_partial_symbols): Set legacy_expand_psymtab.
11794 (psymtab_to_symtab_1): Change argument order. Call
11795 expand_psymtab.
11796 (new_psymtab): Set legacy_expand_psymtab.
11797 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11798 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11799 expand_psymtab.
11800 (dwarf2_psymtab::expand_psymtab): Rename from
11801 psymtab_to_symtab_1. Call expand_psymtab.
11802 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11803 (dbx_end_psymtab): Likewise.
11804 (dbx_psymtab_to_symtab_1): Change argument order. Call
11805 expand_psymtab.
11806 (dbx_read_symtab): Call expand_psymtab.
11807 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11808 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11809 (ctf_psymtab::read_symtab): Call expand_psymtab.
11810
077cbab2
TT
118112020-01-26 Tom Tromey <tom@tromey.com>
11812
11813 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11814 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11815 messages.
11816 * mdebugread.c (mdebug_read_symtab): Remove prints.
11817 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11818 assert.
11819 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11820
891813be
TT
118212020-01-26 Tom Tromey <tom@tromey.com>
11822
11823 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11824 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11825 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11826 legacy_symtab.
11827 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11828 * psymtab.c (psymtab_to_symtab): Call method.
11829 (dump_psymtab): Update.
11830 * psympriv.h (struct partial_symtab): Add virtual destructor.
11831 <read_symtab>: New method.
11832 (struct legacy_symtab): New.
11833 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11834 (struct pst_map) <pst>: Now a legacy_psymtab.
11835 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11836 (new_psymtab): Use legacy_psymtab.
11837 * dwarf2read.h (struct dwarf2_psymtab): New.
11838 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11839 * dwarf2read.c (dwarf2_create_include_psymtab)
11840 (dwarf2_build_include_psymtabs, create_type_unit_group)
11841 (create_partial_symtab, process_psymtab_comp_unit_reader)
11842 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11843 (set_partial_user): Use dwarf2_psymtab.
11844 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11845 (psymtab_to_symtab_1, process_full_comp_unit)
11846 (process_full_type_unit, dwarf2_ranges_read)
11847 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11848 (dwarf_decode_lines): Use dwarf2_psymtab.
11849 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11850 (add_address_entry_worker, write_one_signatured_type)
11851 (recursively_count_psymbols, recursively_write_psymbols)
11852 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11853 (write_debug_names): Likewise.
11854 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11855 <pst>: Now a legacy_psymtab.
11856 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11857 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11858 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11859 * ctfread.c (struct ctf_psymtab): New.
11860 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11861 ctf_psymtab.
11862 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11863 (create_partial_symtab): Return a ctf_psymtab.
11864 (scan_partial_symbols): Update.
11865
c3693a1d
TT
118662020-01-26 Tom Tromey <tom@tromey.com>
11867
11868 * xcoffread.c (xcoff_start_psymtab): Use new.
11869 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11870 renamed from start_psymtab_common.
11871 * psympriv.h (struct partial_symtab): Add new constructor.
11872 (start_psymtab_common): Don't declare.
11873 * mdebugread.c (parse_partial_symbols): Use new.
11874 * dwarf2read.c (create_partial_symtab): Use new.
11875 * dbxread.c (start_psymtab): Use new.
11876 * ctfread.c (create_partial_symtab): Use new.
11877
32caafd0
TT
118782020-01-26 Tom Tromey <tom@tromey.com>
11879
11880 * xcoffread.c (xcoff_end_psymtab): Use new.
11881 * psymtab.c (start_psymtab_common): Use new.
11882 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11883 Update.
11884 * psympriv.h (struct partial_symtab): Add parameters to
11885 constructor. Don't inline.
11886 (allocate_psymtab): Don't declare.
11887 * mdebugread.c (new_psymtab): Use new.
11888 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11889 * dbxread.c (dbx_end_psymtab): Use new.
11890
abaa2f23
TT
118912020-01-26 Tom Tromey <tom@tromey.com>
11892
11893 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11894 allocate_psymtab. Update documentation.
11895 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11896 allocate_psymtab. Do not use new.
11897 (allocate_psymtab): Use new. Update.
11898
6d94535f
TT
118992020-01-26 Tom Tromey <tom@tromey.com>
11900
11901 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11902 * psymtab.c (psym_print_stats): Update.
11903 * psympriv.h (struct partial_symtab) <readin,
11904 psymtabs_addrmap_supported, anonymous>: Now bool.
11905 * mdebugread.c (psymtab_to_symtab_1): Update.
11906 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11907 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11908 (process_full_comp_unit, process_full_type_unit): Update.
11909 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11910 * ctfread.c (psymtab_to_symtab): Update.
11911
6f17252b
TT
119122020-01-26 Tom Tromey <tom@tromey.com>
11913
11914 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11915 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11916 * psymtab.c (psymtab_storage): Delete psymtabs.
11917 (psymtab_storage::allocate_psymtab): Use new.
11918 (psymtab_storage::discard_psymtab): Use delete.
11919 * psympriv.h (struct partial_symtab): Add constructor and
11920 initializers.
11921
f6f1cebc
TT
119222020-01-26 Tom Tromey <tom@tromey.com>
11923
11924 * machoread.c: Do not include psympriv.h.
11925
e47e48f6
PW
119262020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11927
11928 * NEWS: Mention the new option and the set/show commands.
11929
a2fedca9
PW
119302020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11931
11932 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11933 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11934 (validate_exec_file): New variables, enums, functions.
11935 (exec_file_locate_attach, print_section_info): Style the filenames.
11936 (_initialize_exec): Install show_exec_file_mismatch_command and
11937 set_exec_file_mismatch_command.
11938 * gdbcore.h (validate_exec_file): Declare.
11939 * infcmd.c (attach_command): Call validate_exec_file.
11940 * remote.c ( remote_target::remote_add_inferior): Likewise.
11941
7ffa82e1
AB
119422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11943
11944 * frame.c (find_frame_sal): Move call to get_next_frame into more
11945 inner scope.
11946 * inline-frame.c (inilne_state) <inline_state>: Update argument
11947 types.
11948 (inilne_state) <skipped_symbol>: Rename to...
11949 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11950 (skip_inline_frames): Build vector of skipped symbols and use this
11951 to reate the inline_state.
11952 (inline_skipped_symbol): Add a comment and some assertions, fetch
11953 skipped symbol from the list.
11954
3d92a3e3
AB
119552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11956
11957 * buildsym.c (lte_is_less_than): Delete.
11958 (buildsym_compunit::end_symtab_with_blockvector): Create local
11959 lambda function to sort line table entries, and use
11960 std::stable_sort instead of std::sort.
11961 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11962 markers when looking for a previous line.
11963
94a72be7
AB
119642020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11965
11966 * dwarf2read.c (lnp_state_machine::record_line): Include
11967 end_sequence parameter in debug print out. Record the line if we
11968 are at an end_sequence marker even if it's not the start of a
11969 statement.
11970 * symmisc.c (maintenance_print_one_line_table): Print end of
11971 sequence markers with 'END' not '0'.
11972
53af73bf
PA
119732020-01-24 Pedro Alves <palves@redhat.com>
11974
11975 PR gdb/25410
11976 * thread.c (scoped_restore_current_thread::restore): Use
11977 switch_to_inferior_no_thread.
11978 * exec.c: Include "progspace-and-thread.h".
11979 (add_target_sections, remove_target_sections):
11980 scoped_restore_current_pspace_and_thread instead of
11981 scoped_restore_current_thread.
11982 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11983 and aspace to the inferior before calling clone_program_space.
11984 Remove stale comment.
11985
3050c6f4
CB
119862020-01-24 Christian Biesinger <cbiesinger@google.com>
11987
11988 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11989 (arm_netbsd_nat_target::fetch_registers): ...this.
11990 (arm_nbsd_nat_target::store_registers): Rename to...
11991 (arm_netbsd_nat_target::store_registers): ...this.
11992
73685c7e
CB
119932020-01-24 Christian Biesinger <cbiesinger@google.com>
11994
11995 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11996 register_t.
11997
89203d40
CB
119982020-01-24 Christian Biesinger <cbiesinger@google.com>
11999
12000 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12001 Update comment.
12002 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12003 Likewise.
12004 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12005 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12006 the correct replacement (iterate_over_regset_sections).
12007 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12008 Update comment.
12009
1ba1ac88
AB
120102020-01-24 Graham Markall <graham.markall@embecosm.com>
12011
12012 PR gdb/23718
12013 * gdb/python/python.c (execute_gdb_command): Call
12014 async_enable_stdin in catch block.
12015
f3364a6d
AB
120162020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12017
12018 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12019 SWITCH_THRU_ALL_UIS.
12020
733d0a67
AB
120212020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12022
12023 PR tui/9765
12024 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12025 comment, add extra parameter, and update to store previous symbol
12026 when appropriate.
12027 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12028 add extra parameter.
12029 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12030 remove unneeded parameter, add try/catch around gdb_print_insn,
12031 rewrite to add items to asm_lines vector.
12032 (tui_find_backward_disassembly_start_address): New function.
12033 (tui_find_disassembly_address): Updated throughout.
12034 (tui_disasm_window::set_contents): Update for changes to
12035 tui_disassemble.
12036 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12037 number of lines to scroll.
12038
b3b3bada
SM
120392020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12040
12041 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12042 (SECT_OFF_DATA): Likewise.
12043 (SECT_OFF_RODATA): Likewise.
12044 (SECT_OFF_TEXT): Likewise.
12045 (SECT_OFF_BSS): Likewise.
12046 (struct objfile) <text_section_offset, data_section_offset>: New
12047 methods.
12048 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12049 objfile::text_section_offset.
12050 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12051 * coffread.c (coff_symtab_read): Likewise.
12052 (enter_linenos): Likewise.
12053 (process_coff_symbol): Likewise.
12054 * ctfread.c (get_objfile_text_range): Likewise.
12055 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12056 Use objfile::data_section_offset.
12057 * dwarf2-frame.c (execute_cfa_program): Use
12058 objfile::text_section_offset.
12059 (dwarf2_frame_find_fde): Likewise.
12060 * dwarf2read.c (create_addrmap_from_index): Likewise.
12061 (create_addrmap_from_aranges): Likewise.
12062 (dw2_find_pc_sect_compunit_symtab): Likewise.
12063 (process_psymtab_comp_unit_reader): Likewise.
12064 (add_partial_symbol): Likewise.
12065 (add_partial_subprogram): Likewise.
12066 (process_full_comp_unit): Likewise.
12067 (read_file_scope): Likewise.
12068 (read_func_scope): Likewise.
12069 (read_lexical_block_scope): Likewise.
12070 (read_call_site_scope): Likewise.
12071 (dwarf2_rnglists_process): Likewise.
12072 (dwarf2_ranges_process): Likewise.
12073 (dwarf2_ranges_read): Likewise.
12074 (dwarf_decode_lines_1): Likewise.
12075 (new_symbol): Likewise.
12076 (dwarf2_fetch_die_loc_sect_off): Likewise.
12077 (dwarf2_per_cu_text_offset): Likewise.
12078 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12079 * hppa-tdep.c (read_unwind_info): Likewise.
12080 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12081 * psympriv.h (struct partial_symtab): Likewise.
12082 * psymtab.c (find_pc_sect_psymtab): Likewise.
12083 * solib-svr4.c (enable_break): Likewise.
12084 * stap-probe.c (relocate_address): Use
12085 objfile::data_section_offset.
12086 * xcoffread.c (enter_line_range): Use
12087 objfile::text_section_offset.
12088 (read_xcoff_symtab): Likewise.
12089
ab53f382
SM
120902020-01-23 Simon Marchi <simon.marchi@efficios.com>
12091
12092 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12093 declaration to narrower scopes.
12094
e7eee665
SM
120952020-01-23 Simon Marchi <simon.marchi@efficios.com>
12096
12097 * darwin-nat.h (struct darwin_exception_msg, enum
12098 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12099 Move up.
12100 (class darwin_nat_target) <wait_1, check_new_threads,
12101 decode_exception_message, decode_message, stop_inferior,
12102 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12103 * darwin-nat.c (darwin_check_new_threads): Rename to...
12104 (darwin_nat_target::check_new_threads): ... this.
12105 (darwin_suspend_inferior_it): Remove.
12106 (darwin_decode_exception_message): Rename to...
12107 (darwin_nat_target::decode_exception_message): ... this.
12108 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12109 (darwin_decode_message): Rename to...
12110 (darwin_nat_target::decode_message): ... this.
12111 (cancel_breakpoint): Rename to...
12112 (darwin_nat_target::cancel_breakpoint): ... this.
12113 (darwin_wait): Rename to...
12114 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12115 instead of iterate_over_inferiors.
12116 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12117 (darwin_stop_inferior): Rename to...
12118 (darwin_nat_target::stop_inferior): ... this.
12119 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12120 (darwin_init_thread_list): Rename to...
12121 (darwin_nat_target::init_thread_list): ... this.
12122 (darwin_ptrace_him): Rename to...
12123 (darwin_nat_target::ptrace_him): ... this.
12124 (darwin_nat_target::create_inferior): Pass lambda function to
12125 fork_inferior.
12126 (darwin_nat_target::detach): Call stop_inferior instead of
12127 darwin_stop_inferior.
12128 * fork-inferior.h (fork_inferior): Change init_trace_fun
12129 parameter to gdb::function_view.
12130 * fork-inferior.c (fork_inferior): Likewise.
12131
c162ed3e
HD
121322020-01-23 Hannes Domani <ssbssa@yahoo.de>
12133
12134 * i386-cygwin-tdep.c (core_process_module_section): Update.
12135 * windows-nat.c (struct lm_info_windows): Add text_offset.
12136 (windows_xfer_shared_libraries): Update.
12137 * windows-tdep.c (windows_xfer_shared_library):
12138 Add text_offset_cached argument.
12139 * windows-tdep.h (windows_xfer_shared_library): Update.
12140
a1237872
SM
121412020-01-21 Simon Marchi <simon.marchi@efficios.com>
12142
12143 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12144
b3ee6dd9
SM
121452020-01-21 Simon Marchi <simon.marchi@efficios.com>
12146
12147 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12148 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12149 replace with range-based for.
12150 (gdbsim_interrupt_inferior): Remove.
12151 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12152 with a range-based for. Inline code from
12153 gdbsim_interrupt_inferior.
12154
f9fac3c8
SM
121552020-01-21 Simon Marchi <simon.marchi@efficios.com>
12156
12157 * infrun.c (proceed): Fix indentation.
12158
f6474de9
TT
121592020-01-21 Tom Tromey <tromey@adacore.com>
12160
12161 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12162 * python/python.c (python_extension_ops): Update.
12163 (gdbpy_colorize): New function.
12164 * python/lib/gdb/__init__.py (colorize): New function.
12165 * extension.h (ext_lang_colorize): Declare.
12166 * extension.c (ext_lang_colorize): New function.
12167 * extension-priv.h (struct extension_language_ops) <colorize>: New
12168 member.
12169 * cli/cli-style.c (_initialize_cli_style): Update help text.
12170
f0c702d4
LM
121712020-01-21 Luis Machado <luis.machado@linaro.org>
12172
12173 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12174 <cond>: Change type to bool.
12175 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12176 (aarch64_displaced_step_cb): Likewise.
12177 (aarch64_displaced_step_tb): Likewise.
12178
1ab139e5
LM
121792020-01-21 Luis Machado <luis.machado@linaro.org>
12180
12181 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12182 output.
12183
0c271889
LM
121842020-01-21 Luis Machado <luis.machado@linaro.org>
12185
12186 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12187 <pc_adjust>: Adjust the documentation.
12188 (aarch64_displaced_step_fixup): Check if PC really moved before
12189 adjusting it.
12190
4d89c1c7
TT
121912020-01-19 Tom Tromey <tom@tromey.com>
12192
12193 * disasm.c (~gdb_disassembler): New destructor.
12194 (gdb_buffered_insn_length): Call disassemble_free_target.
12195 * disasm.h (class gdb_disassembler): Declare destructor. Use
12196 DISABLE_COPY_AND_ASSIGN.
12197
c0ab21c2
TT
121982020-01-19 Tom Tromey <tom@tromey.com>
12199
12200 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12201 (die_reader_func_ftype): Remove.
12202 (cutu_reader): New class.
12203 (dw2_get_file_names_reader): Remove "data" parameter.
12204 (dw2_get_file_names): Use cutu_reader.
12205 (create_debug_type_hash_table): Update.
12206 (read_cutu_die_from_dwo): Update comment.
12207 (lookup_dwo_unit): Add dwo_name parameter.
12208 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12209 die_reader_func_ftype and data parameters.
12210 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12211 Remove die_reader_func_ftype and data parameters.
12212 (~cutu_reader): New; from init_cutu_and_read_dies.
12213 (cutu_reader::cutu_reader): Rename from
12214 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12215 and data parameters.
12216 (init_cutu_and_read_dies_simple): Remove.
12217 (struct process_psymtab_comp_unit_data): Remove.
12218 (process_psymtab_comp_unit_reader): Remove data parameter; add
12219 want_partial_unit and pretend_language parameters.
12220 (process_psymtab_comp_unit): Use cutu_reader.
12221 (build_type_psymtabs_reader): Remove data parameter.
12222 (build_type_psymtabs_1): Use cutu_reader.
12223 (process_skeletonless_type_unit): Likewise.
12224 (load_partial_comp_unit_reader): Remove.
12225 (load_partial_comp_unit): Use cutu_reader.
12226 (load_full_comp_unit_reader): Remove.
12227 (load_full_comp_unit): Use cutu_reader.
12228 (struct create_dwo_cu_data): Remove.
12229 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12230 dwo_unit parameters.
12231 (create_cus_hash_table): Use cutu_reader.
12232 (struct dwarf2_read_addr_index_data): Remove.
12233 (dwarf2_read_addr_index_reader): Remove.
12234 (dwarf2_read_addr_index): Use cutu_reader.
12235 (read_signatured_type_reader): Remove.
12236 (read_signatured_type): Use cutu_reader.
12237
45bbae5c
TT
122382020-01-19 Tom Tromey <tom@tromey.com>
12239
12240 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12241 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12242 (tui_wrefresh): Declare.
12243 * tui/tui-wingeneral.c (suppress_output): New global.
12244 (tui_suppress_output, ~tui_suppress_output): New constructor and
12245 destructor.
12246 (tui_wrefresh): New function.
12247 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12248 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12249 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12250 method.
12251 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12252 tui_wrefresh.
12253 (tui_data_window::no_refresh): New method.
12254 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12255 (tui_reg_command): Use tui_suppress_output
12256 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12257 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12258 method.
12259 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12260
4f13c1c0
TT
122612020-01-19 Tom Tromey <tom@tromey.com>
12262
12263 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12264 Handle case where symtab is null.
12265
fa47e446
SM
122662020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12267
12268 * linux-fork.c (one_fork_p): Simplify.
12269
26f42329
SM
122702020-01-17 Simon Marchi <simon.marchi@efficios.com>
12271
12272 * top.c (struct qt_args): Remove.
12273 (kill_or_detach): Change return type to void, replace `void *`
12274 parameter with a proper one.
12275 (print_inferior_quit_action): Likewise.
12276 (quit_confirm): Use range-based for loop to iterate over inferiors.
12277 (quit_force): Likewise.
12278
a9ac81b1
SM
122792020-01-17 Simon Marchi <simon.marchi@efficios.com>
12280
12281 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12282 `void *` parameter with proper parameters.
12283 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12284 (print_one_inferior): Change return type to void, replace `void *`
12285 parameter with proper parameters.
12286 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12287 inferiors.
12288 (get_other_inferior): Remove.
12289 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12290 inferiors.
12291
788eca49
SM
122922020-01-17 Simon Marchi <simon.marchi@efficios.com>
12293
12294 * mi/mi-interp.c (report_initial_inferior): Remove.
12295 (mi_interp::init): Use range-based for to iterate over inferiors.
12296
d9bc85b6
SM
122972020-01-17 Simon Marchi <simon.marchi@efficios.com>
12298
12299 * python/py-inferior.c (build_inferior_list): Remove.
12300 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12301
40c94099
CB
123022020-01-16 Christian Biesinger <cbiesinger@google.com>
12303
12304 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12305 (btrace_stitch_trace): Likewise.
12306 * charset.c (intermediate_encoding): Likewise (vaild).
12307 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12308 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12309 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12310
e0cdfe3c
HD
123112020-01-16 Hannes Domani <ssbssa@yahoo.de>
12312
12313 * windows-tdep.c (windows_get_tlb_type):
12314 Add rtl_user_process_parameters type.
12315
790f1718 123162020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12317 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12318
12319 PR build/24805
12320 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12321 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12322 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12323 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12324 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12325 (ps_plog): Redeclare exported functions with default visibility.
12326
3112ed97
NA
123272020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12328
12329 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12330 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12331
8dc3273e
SM
123322020-01-15 Simon Marchi <simon.marchi@efficios.com>
12333
12334 * infcmd.c (post_create_inferior): Use get_thread_regcache
12335 instead of get_current_regcache.
12336
ff47f4f0
TT
123372020-01-14 Tom Tromey <tom@tromey.com>
12338
12339 PR symtab/12535:
12340 * python/python.c (gdbpy_decode_line): Treat empty string the same
12341 as no argument.
12342
975f45b7
TT
123432020-01-14 Tom Tromey <tom@tromey.com>
12344
12345 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12346
25e57356
TT
123472020-01-14 Tom Tromey <tom@tromey.com>
12348
12349 * nat/linux-btrace.c: Don't include <config.h>.
12350 * nat/linux-ptrace.c: Don't include <config.h>.
12351 * nat/x86-linux-dregs.c: Don't include <config.h>.
12352
05ea2a05
TT
123532020-01-14 Tom Tromey <tom@tromey.com>
12354
12355 * configure: Rebuild.
12356 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12357
01027315
TT
123582020-01-14 Tom Tromey <tom@tromey.com>
12359
12360 * nat/x86-linux-dregs.c: Include configh.h.
12361 * nat/linux-ptrace.c: Include configh.h.
12362 * nat/linux-btrace.c: Include configh.h.
12363 * defs.h: Include config.h, bfd.h.
12364 * configure.ac: Don't source common.host.
12365 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12366 * configure: Rebuild.
12367 * acinclude.m4: Update path.
12368 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12369 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12370 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12371 (CLIBS): Add LIBSUPPORT.
12372 (CDEPS): Likewise.
12373 (COMMON_SFILES): Remove gdbsupport files.
12374 (HFILES_NO_SRCDIR): Likewise.
12375 (stamp-version): Update path to create-version.sh.
12376 (ALLDEPFILES): Remove gdbsupport files.
12377
b2ceabe8
TT
123782020-01-14 Tom Tromey <tom@tromey.com>
12379
12380 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12381 USE_WIN32API when needed.
12382 * configure.ac (USE_WIN32API): Don't define.
12383 (WIN32LIBS): Use WIN32APILIBS.
12384 * configure: Rebuild.
12385
25c51f71
TT
123862020-01-14 Tom Tromey <tom@tromey.com>
12387
12388 * configure: Rebuild.
12389 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12390
717c684d
BE
123912020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12392
12393 * skip.c (skip_function_command): Make skip w/o arguments use the
12394 name of the inlined function if pc is inside any inlined function.
12395
7da6a5b9
LM
123962020-01-14 Luis Machado <luis.machado@linaro.org>
12397
12398 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12399 * infrun.c (resume_1): Likewise.
12400 (handle_inferior_event): Remove stale comment.
12401 * linux-nat.c (linux_nat_target::resume): Update comments.
12402 (save_stop_reason): Likewise.
12403 (linux_nat_filter_event): Likewise.
12404 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12405
44e4c775
AB
124062020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12407
12408 * elfread.c (record_minimal_symbol): Set section index to 0 for
12409 non-allocatable sections.
12410
18a8505e
AT
12411
124122020-01-13 Ali Tamur <tamur@google.com>
12413
12414 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12415 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12416 to gdb::optional. Update comments.
12417 (dwo_file): Update comments.
12418 (read_attribute): Update API to take an additional out parameter,
12419 need_reprocess. This is used to mark attributes that need other
12420 attributes (e.g. str_offsets_base) for correct computation which may not
12421 have been read yet.
12422 (read_attribute_reprocess): New function declaration.
12423 (read_addr_index): Likewise.
12424 (read_dwo_str_index): Likewise.
12425 (read_stub_str_index): Likewise.
12426 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12427 (lookup_addr_base): New function definition.
12428 (lookup_ranges_base): Likewise.
12429 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12430 lookup_ranges_base.
12431 (init_cutu_and_read_dies): Update comments.
12432 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12433 unit. This is used to inherit parent's str_offsets_base and addr_base.
12434 Update comments.
12435 (init_cutu_and_read_dies_simple): Reflect API changes.
12436 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12437 (create_cus_hash_table): Change API to take parent compile unit.
12438 Reflect API changes.
12439 (open_and_init_dwo_file): Reflect API changes.
12440 (dwarf2_get_pc_bounds): Update comments.
12441 (dwarf2_record_block_ranges): Likewise.
12442 (read_full_die_1): Change implementation to reprocess attributes that
12443 need str_offsets_base and addr_base.
12444 (partial_die_info::read): Likewise.
12445 (read_attribute_reprocess): New function definition.
12446 (read_attribute_value): Change API to take an additional out parameter,
12447 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12448 when a non-dwo compile unit has index based attributes.
12449 (read_attribute): Reflect API changes.
12450 (read_addr_index_1): Reflect API changes. Update comments.
12451 (dwarf2_read_addr_index_data): Reflect API changes.
12452 (dwarf2_read_addr_index): Likewise.
12453 (read_str_index): Change API and implementation. This becomes a helper
12454 to be used by the new string index related methods. Update error
12455 message and comments.
12456 (read_dwo_str_index): New function definition.
12457 (read_stub_str_index): Likewise.
12458 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12459 * symfile.h (dwarf2_debug_sections): Likewise.
12460 * xcoffread.c (dwarf2_debug_sections): Likewise.
12461
0cac9354
SM
124622020-01-13 Simon Marchi <simon.marchi@efficios.com>
12463
12464 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12465 core_reg_sect type to gdb_byte *.
12466 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12467 * cris-tdep.c (fetch_core_registers): Likewise.
12468 * corelow.c (core_target::get_core_register_section): Change
12469 type of `contents` to gdb::byte_vector.
12470
9a6d629c
AB
124712020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12472
12473 * tui/tui-wingeneral.c (box_win): Position the title in the center
12474 of the border.
12475
d8b2f9e3
SM
124762020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12477
12478 * corelow.c (core_target::get_core_register_section): Use
12479 std::vector instead of alloca.
12480
bb564c58
SM
124812020-01-13 Simon Marchi <simon.marchi@efficios.com>
12482
12483 * warning.m4: Add -Wmissing-declarations to build_warnings.
12484 * configure: Re-generate.
12485
6b366111
SM
124862020-01-13 Simon Marchi <simon.marchi@efficios.com>
12487
12488 * python/python.c (init__gdb_module): Add declaration.
12489
6c265988
SM
124902020-01-13 Simon Marchi <simon.marchi@efficios.com>
12491
12492 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12493 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12494 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12495 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12496 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12497 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12498 * ada-exp.y (_initialize_ada_exp): Add declaration.
12499 * ada-lang.c (_initialize_ada_language): Add declaration.
12500 * ada-tasks.c (_initialize_tasks): Add declaration.
12501 * agent.c (_initialize_agent): Add declaration.
12502 * aix-thread.c (_initialize_aix_thread): Add declaration.
12503 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12504 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12505 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12506 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12507 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12508 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12509 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12510 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12511 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12512 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12513 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12514 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12515 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12516 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12517 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12518 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12519 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12520 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12521 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12522 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12523 * annotate.c (_initialize_annotate): Add declaration.
12524 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12525 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12526 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12527 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12528 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12529 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12530 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12531 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12532 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12533 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12534 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12535 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12536 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12537 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12538 * auto-load.c (_initialize_auto_load): Add declaration.
12539 * auxv.c (_initialize_auxv): Add declaration.
12540 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12541 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12542 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12543 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12544 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12545 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12546 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12547 * breakpoint.c (_initialize_breakpoint): Add declaration.
12548 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12549 * btrace.c (_initialize_btrace): Add declaration.
12550 * charset.c (_initialize_charset): Add declaration.
12551 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12552 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12553 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12554 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12555 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12556 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12557 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12558 * coffread.c (_initialize_coffread): Add declaration.
12559 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12560 * compile/compile.c (_initialize_compile): Add declaration.
12561 * complaints.c (_initialize_complaints): Add declaration.
12562 * completer.c (_initialize_completer): Add declaration.
12563 * copying.c (_initialize_copying): Add declaration.
12564 * corefile.c (_initialize_core): Add declaration.
12565 * corelow.c (_initialize_corelow): Add declaration.
12566 * cp-abi.c (_initialize_cp_abi): Add declaration.
12567 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12568 * cp-support.c (_initialize_cp_support): Add declaration.
12569 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12570 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12571 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12572 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12573 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12574 * ctfread.c (_initialize_ctfread): Add declaration.
12575 * d-lang.c (_initialize_d_language): Add declaration.
12576 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12577 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12578 * dbxread.c (_initialize_dbxread): Add declaration.
12579 * dcache.c (_initialize_dcache): Add declaration.
12580 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12581 * disasm.c (_initialize_disasm): Add declaration.
12582 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12583 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12584 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12585 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12586 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12587 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12588 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12589 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12590 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12591 * elfread.c (_initialize_elfread): Add declaration.
12592 * exec.c (_initialize_exec): Add declaration.
12593 * extension.c (_initialize_extension): Add declaration.
12594 * f-lang.c (_initialize_f_language): Add declaration.
12595 * f-valprint.c (_initialize_f_valprint): Add declaration.
12596 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12597 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12598 * filesystem.c (_initialize_filesystem): Add declaration.
12599 * findcmd.c (_initialize_mem_search): Add declaration.
12600 * findvar.c (_initialize_findvar): Add declaration.
12601 * fork-child.c (_initialize_fork_child): Add declaration.
12602 * frame-base.c (_initialize_frame_base): Add declaration.
12603 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12604 * frame.c (_initialize_frame): Add declaration.
12605 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12606 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12607 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12608 * gcore.c (_initialize_gcore): Add declaration.
12609 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12610 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12611 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12612 * gdbarch.c (_initialize_gdbarch): Add declaration.
12613 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12614 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12615 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12616 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12617 * go-lang.c (_initialize_go_language): Add declaration.
12618 * go32-nat.c (_initialize_go32_nat): Add declaration.
12619 * guile/guile.c (_initialize_guile): Add declaration.
12620 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12621 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12622 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12623 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12624 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12625 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12626 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12627 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12628 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12629 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12630 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12631 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12632 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12633 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12634 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12635 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12636 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12637 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12638 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12639 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12640 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12641 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12642 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12643 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12644 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12645 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12646 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12647 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12648 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12649 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12650 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12651 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12652 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12653 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12654 * infcall.c (_initialize_infcall): Add declaration.
12655 * infcmd.c (_initialize_infcmd): Add declaration.
12656 * inflow.c (_initialize_inflow): Add declaration.
12657 * infrun.c (_initialize_infrun): Add declaration.
12658 * interps.c (_initialize_interpreter): Add declaration.
12659 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12660 * jit.c (_initialize_jit): Add declaration.
12661 * language.c (_initialize_language): Add declaration.
12662 * linux-fork.c (_initialize_linux_fork): Add declaration.
12663 * linux-nat.c (_initialize_linux_nat): Add declaration.
12664 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12665 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12666 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12667 * m2-lang.c (_initialize_m2_language): Add declaration.
12668 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12669 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12670 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12671 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12672 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12673 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12674 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12675 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12676 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12677 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12678 * machoread.c (_initialize_machoread): Add declaration.
12679 * macrocmd.c (_initialize_macrocmd): Add declaration.
12680 * macroscope.c (_initialize_macroscope): Add declaration.
12681 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12682 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12683 * maint.c (_initialize_maint_cmds): Add declaration.
12684 * mdebugread.c (_initialize_mdebugread): Add declaration.
12685 * memattr.c (_initialize_mem): Add declaration.
12686 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12687 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12688 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12689 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12690 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12691 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12692 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12693 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12694 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12695 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12696 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12697 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12698 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12699 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12700 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12701 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12702 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12703 * mipsread.c (_initialize_mipsread): Add declaration.
12704 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12705 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12706 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12707 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12708 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12709 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12710 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12711 * nto-procfs.c (_initialize_procfs): Add declaration.
12712 * objc-lang.c (_initialize_objc_language): Add declaration.
12713 * observable.c (_initialize_observer): Add declaration.
12714 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12715 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12716 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12717 * osabi.c (_initialize_gdb_osabi): Add declaration.
12718 * osdata.c (_initialize_osdata): Add declaration.
12719 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12720 * parse.c (_initialize_parse): Add declaration.
12721 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12722 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12723 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12724 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12725 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12726 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12727 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12728 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12729 * printcmd.c (_initialize_printcmd): Add declaration.
12730 * probe.c (_initialize_probe): Add declaration.
12731 * proc-api.c (_initialize_proc_api): Add declaration.
12732 * proc-events.c (_initialize_proc_events): Add declaration.
12733 * proc-service.c (_initialize_proc_service): Add declaration.
12734 * procfs.c (_initialize_procfs): Add declaration.
12735 * producer.c (_initialize_producer): Add declaration.
12736 * psymtab.c (_initialize_psymtab): Add declaration.
12737 * python/python.c (_initialize_python): Add declaration.
12738 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12739 * record-btrace.c (_initialize_record_btrace): Add declaration.
12740 * record-full.c (_initialize_record_full): Add declaration.
12741 * record.c (_initialize_record): Add declaration.
12742 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12743 * regcache.c (_initialize_regcache): Add declaration.
12744 * reggroups.c (_initialize_reggroup): Add declaration.
12745 * remote-notif.c (_initialize_notif): Add declaration.
12746 * remote-sim.c (_initialize_remote_sim): Add declaration.
12747 * remote.c (_initialize_remote): Add declaration.
12748 * reverse.c (_initialize_reverse): Add declaration.
12749 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12750 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12751 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12752 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12753 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12754 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12755 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12756 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12757 Add declaration.
12758 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12759 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12760 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12761 * rust-exp.y (_initialize_rust_exp): Add declaration.
12762 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12763 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12764 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12765 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12766 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12767 * score-tdep.c (_initialize_score_tdep): Add declaration.
12768 * ser-go32.c (_initialize_ser_dos): Add declaration.
12769 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12770 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12771 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12772 * ser-uds.c (_initialize_ser_socket): Add declaration.
12773 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12774 * serial.c (_initialize_serial): Add declaration.
12775 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12776 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12777 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12778 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12779 * skip.c (_initialize_step_skip): Add declaration.
12780 * sol-thread.c (_initialize_sol_thread): Add declaration.
12781 * solib-aix.c (_initialize_solib_aix): Add declaration.
12782 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12783 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12784 * solib-frv.c (_initialize_frv_solib): Add declaration.
12785 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12786 * solib-target.c (_initialize_solib_target): Add declaration.
12787 * solib.c (_initialize_solib): Add declaration.
12788 * source-cache.c (_initialize_source_cache): Add declaration.
12789 * source.c (_initialize_source): Add declaration.
12790 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12791 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12792 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12793 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12794 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12795 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12796 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12797 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12798 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12799 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12800 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12801 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12802 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12803 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12804 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12805 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12806 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12807 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12808 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12809 * stabsread.c (_initialize_stabsread): Add declaration.
12810 * stack.c (_initialize_stack): Add declaration.
12811 * stap-probe.c (_initialize_stap_probe): Add declaration.
12812 * std-regs.c (_initialize_frame_reg): Add declaration.
12813 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12814 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12815 * symfile.c (_initialize_symfile): Add declaration.
12816 * symmisc.c (_initialize_symmisc): Add declaration.
12817 * symtab.c (_initialize_symtab): Add declaration.
12818 * target.c (_initialize_target): Add declaration.
12819 * target-connection.c (_initialize_target_connection): Add
12820 declaration.
12821 * target-dcache.c (_initialize_target_dcache): Add declaration.
12822 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12823 * thread.c (_initialize_thread): Add declaration.
12824 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12825 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12826 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12827 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12828 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12829 * tracectf.c (_initialize_ctf): Add declaration.
12830 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12831 * tracefile.c (_initialize_tracefile): Add declaration.
12832 * tracepoint.c (_initialize_tracepoint): Add declaration.
12833 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12834 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12835 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12836 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12837 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12838 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12839 * tui/tui.c (_initialize_tui): Add declaration.
12840 * typeprint.c (_initialize_typeprint): Add declaration.
12841 * ui-style.c (_initialize_ui_style): Add declaration.
12842 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12843 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12844 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12845 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12846 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12847 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12848 * unittests/filtered_iterator-selftests.c
12849 (_initialize_filtered_iterator_selftests): Add declaration.
12850 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12851 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12852 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12853 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12854 * unittests/main-thread-selftests.c
12855 (_initialize_main_thread_selftests): Add declaration.
12856 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12857 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12858 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12859 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12860 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12861 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12862 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12863 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12864 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12865 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12866 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12867 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12868 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12869 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12870 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12871 declaration.
12872 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12873 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12874 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12875 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12876 * user-regs.c (_initialize_user_regs): Add declaration.
12877 * utils.c (_initialize_utils): Add declaration.
12878 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12879 * valops.c (_initialize_valops): Add declaration.
12880 * valprint.c (_initialize_valprint): Add declaration.
12881 * value.c (_initialize_values): Add declaration.
12882 * varobj.c (_initialize_varobj): Add declaration.
12883 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12884 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12885 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12886 * windows-nat.c (_initialize_windows_nat): Add declaration.
12887 (_initialize_check_for_gdb_ini): Add declaration.
12888 (_initialize_loadable): Add declaration.
12889 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12890 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12891 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12892 * xcoffread.c (_initialize_xcoffread): Add declaration.
12893 * xml-support.c (_initialize_xml_support): Add declaration.
12894 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12895 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12896 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12897 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12898
e2de1eec
SM
128992020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12900
12901 * regformats/regdat.sh: Generate declaration for init function.
12902
e0037b4c
SM
129032020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12904
12905 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12906 up.
12907 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12908 close_one_inferior>: New methods.
12909 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12910 pass down target to find_inferior_pid.
12911 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12912 Pass down target to find_inferior_ptid.
12913 (gdbsim_target::create_inferior): Pass down target to
12914 add_thread_silent.
12915 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12916 target down to find_inferior_ptid and switch_to_thread.
12917 (gdbsim_target::close): Update to call close_one_inferior.
12918 (struct resume_data): Remove.
12919 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12920 directly, rather than through a void pointer.
12921 (gdbsim_target::resume): Update to call resume_one_inferior.
12922
58920b5b
SM
129232020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12924
12925 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12926
4ec89149
PA
129272020-01-12 Pedro Alves <palves@redhat.com>
12928
12929 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12930 directly for the current inferior instead of
12931 discard_all_inferiors.
12932 (discard_all_inferiors): Delete.
12933
7c392d1d
TT
129342020-01-11 Tom Tromey <tom@tromey.com>
12935
12936 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12937 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12938 deprecated_safe_get_selected_frame.
12939
d9ebdab7
TBA
129402020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12941
12942 * inferior.c (print_inferior): Switch inferior before printing it.
12943
f3c469b9
PA
129442020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12945 Pedro Alves <palves@redhat.com>
12946
12947 * progspace-and-thread.c (switch_to_program_space_and_thread):
12948 Assert there's an inferior for PSPACE. Use
12949 switch_to_inferior_no_thread to switch the inferior too.
12950 * progspace.c (program_space::~program_space): Call
12951 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12952 (program_space::free_all_objfiles): Don't call clear_symtab_users
12953 here.
12954 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12955
65c574f6
PA
129562020-01-10 Pedro Alves <palves@redhat.com>
12957
12958 * NEWS: Mention multi-target debugging, "info connections", and
12959 "add-inferior -no-connection".
12960
2f4fcf00
PA
129612020-01-10 Pedro Alves <palves@redhat.com>
12962
12963 * infrun.c: Include "target-connection.h".
12964 (check_multi_target_resumption): New.
12965 (proceed): Call it.
12966 * target-connection.c (make_target_connection_string): Make
12967 extern.
12968 * target-connection.h (make_target_connection_string): Declare.
12969
121b3efd
PA
129702020-01-10 Pedro Alves <palves@redhat.com>
12971
12972 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12973 * inferior.c (uiout_field_connection): New function.
12974 (print_inferior): Add new "connection-id" column.
12975 (add_inferior_command): Show connection number/string of added
12976 inferior.
12977 * process-stratum-target.h
12978 (process_stratum_target::connection_string): New virtual method.
12979 (process_stratum_target::connection_number): New field.
12980 * remote.c (remote_target::connection_string): New override.
12981 * target-connection.c: New file.
12982 * target-connection.h: New file.
12983 * target.c (decref_target): Remove process_stratum targets from
12984 the connection list.
12985 (target_stack::push): Add process_stratum targets to the
12986 connection list.
12987
4f837581
PA
129882020-01-10 Pedro Alves <palves@redhat.com>
12989
12990 Revert:
12991 2016-04-12 Pedro Alves <palves@redhat.com>
12992 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12993 Remove references to name.
12994 * serial.h (struct serial) <name>: Delete.
12995
f4ec508e
PA
129962020-01-10 Pedro Alves <palves@redhat.com>
12997
12998 * gdbarch-selftests.c (register_to_value_test): Remove "target
12999 already pushed" check.
13000
5b6d1e4f
PA
130012020-01-10 Pedro Alves <palves@redhat.com>
13002 John Baldwin <jhb@FreeBSD.org>
13003
13004 * aarch64-linux-nat.c
13005 (aarch64_linux_nat_target::thread_architecture): Adjust.
13006 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13007 (task_command_1): Likewise.
13008 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13009 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13010 (aix_thread_target::store_registers)
13011 (aix_thread_target::thread_alive): Adjust.
13012 * amd64-fbsd-tdep.c: Include "inferior.h".
13013 (amd64fbsd_get_thread_local_address): Pass down target.
13014 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13015 thread's gdbarch instead of target_gdbarch.
13016 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13017 get_last_target_status.
13018 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13019 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13020 inferiors.
13021 (update_inserted_breakpoint_locations): Skip if inferiors with no
13022 execution.
13023 (update_global_location_list): When handling moribund locations,
13024 find representative inferior for location's pspace, and use thread
13025 count of its process_stratum target.
13026 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13027 * bsd-uthread.c (bsd_uthread_target::wait): Use
13028 as_process_stratum_target and adjust thread_change_ptid and
13029 add_thread calls.
13030 (bsd_uthread_target::update_thread_list): Use
13031 as_process_stratum_target and adjust find_thread_ptid,
13032 thread_change_ptid and add_thread calls.
13033 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13034 find_thread_ptid call.
13035 * corelow.c (add_to_thread_list): Adjust add_thread call.
13036 (core_target_open): Adjust add_thread_silent and thread_count
13037 calls.
13038 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13039 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13040 * event-top.c (async_disconnect): Pop targets from all inferiors.
13041 * exec.c (add_target_sections): Push exec target on all inferiors
13042 sharing the program space.
13043 (remove_target_sections): Remove the exec target from all
13044 inferiors sharing the program space.
13045 (exec_on_vfork): New.
13046 * exec.h (exec_on_vfork): Declare.
13047 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13048 Pass it down.
13049 (fbsd_nat_target::update_thread_list): Adjust.
13050 (fbsd_nat_target::resume): Adjust.
13051 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13052 down.
13053 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13054 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13055 get_thread_arch_regcache call.
13056 * fork-child.c (gdb_startup_inferior): Pass target down to
13057 startup_inferior and set_executing.
13058 * gdbthread.h (struct process_stratum_target): Forward declare.
13059 (add_thread, add_thread_silent, add_thread_with_info)
13060 (in_thread_list): Add process_stratum_target parameter.
13061 (find_thread_ptid(inferior*, ptid_t)): New overload.
13062 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13063 parameter.
13064 (all_threads()): Delete overload.
13065 (all_threads, all_non_exited_threads): Add process_stratum_target
13066 parameter.
13067 (all_threads_safe): Use brace initialization.
13068 (thread_count): Add process_stratum_target parameter.
13069 (set_resumed, set_running, set_stop_requested, set_executing)
13070 (threads_are_executing, finish_thread_state): Add
13071 process_stratum_target parameter.
13072 (switch_to_thread): Use is_current_thread.
13073 * i386-fbsd-tdep.c: Include "inferior.h".
13074 (i386fbsd_get_thread_local_address): Pass down target.
13075 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13076 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13077 have_inferiors check.
13078 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13079 (inf_ptrace_target::attach): Adjust.
13080 * infcall.c (run_inferior_call): Adjust.
13081 * infcmd.c (run_command_1): Pass target to
13082 scoped_finish_thread_state.
13083 (proceed_thread_callback): Skip inferiors with no execution.
13084 (continue_command): Rename 'all_threads' local to avoid hiding
13085 'all_threads' function. Adjust get_last_target_status call.
13086 (prepare_one_step): Adjust set_running call.
13087 (signal_command): Use user_visible_resume_target. Compare thread
13088 pointers instead of inferior_ptid.
13089 (info_program_command): Adjust to pass down target.
13090 (attach_command): Mark target's 'thread_executing' flag.
13091 (stop_current_target_threads_ns): New, factored out from ...
13092 (interrupt_target_1): ... this. Switch inferior before making
13093 target calls.
13094 * inferior-iter.h
13095 (struct all_inferiors_iterator, struct all_inferiors_range)
13096 (struct all_inferiors_safe_range)
13097 (struct all_non_exited_inferiors_range): Filter on
13098 process_stratum_target too. Remove explicit.
13099 * inferior.c (inferior::inferior): Push dummy target on target
13100 stack.
13101 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13102 Add process_stratum_target parameter, and pass it down.
13103 (have_live_inferiors): Adjust.
13104 (switch_to_inferior_and_push_target): New.
13105 (add_inferior_command, clone_inferior_command): Handle
13106 "-no-connection" parameter. Use
13107 switch_to_inferior_and_push_target.
13108 (_initialize_inferior): Mention "-no-connection" option in
13109 the help of "add-inferior" and "clone-inferior" commands.
13110 * inferior.h: Include "process-stratum-target.h".
13111 (interrupt_target_1): Use bool.
13112 (struct inferior) <push_target, unpush_target, target_is_pushed,
13113 find_target_beneath, top_target, process_target, target_at,
13114 m_stack>: New.
13115 (discard_all_inferiors): Delete.
13116 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13117 (all_inferiors, all_non_exited_inferiors): Add
13118 process_stratum_target parameter.
13119 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13120 (target_last_proc_target): New global.
13121 (follow_fork_inferior): Push target on new inferior. Pass target
13122 to add_thread_silent. Call exec_on_vfork. Handle target's
13123 reference count.
13124 (follow_fork): Adjust get_last_target_status call. Also consider
13125 target.
13126 (follow_exec): Push target on new inferior.
13127 (struct execution_control_state) <target>: New field.
13128 (user_visible_resume_target): New.
13129 (do_target_resume): Call target_async.
13130 (resume_1): Set target's threads_executing flag. Consider resume
13131 target.
13132 (commit_resume_all_targets): New.
13133 (proceed): Also consider resume target. Skip threads of inferiors
13134 with no execution. Commit resumtion in all targets.
13135 (start_remote): Pass current inferior to wait_for_inferior.
13136 (infrun_thread_stop_requested): Consider target as well. Pass
13137 thread_info pointer to clear_inline_frame_state instead of ptid.
13138 (infrun_thread_thread_exit): Consider target as well.
13139 (random_pending_event_thread): New inferior parameter. Use it.
13140 (do_target_wait): Rename to ...
13141 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13142 down.
13143 (threads_are_resumed_pending_p, do_target_wait): New.
13144 (prepare_for_detach): Adjust calls.
13145 (wait_for_inferior): New inferior parameter. Handle it. Use
13146 do_target_wait_1 instead of do_target_wait.
13147 (fetch_inferior_event): Adjust. Switch to representative
13148 inferior. Pass target down.
13149 (set_last_target_status): Add process_stratum_target parameter.
13150 Save target in global.
13151 (get_last_target_status): Add process_stratum_target parameter and
13152 handle it.
13153 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13154 (context_switch): Check inferior_ptid == null_ptid before calling
13155 inferior_thread().
13156 (get_inferior_stop_soon): Pass down target.
13157 (wait_one): Rename to ...
13158 (poll_one_curr_target): ... this.
13159 (struct wait_one_event): New.
13160 (wait_one): New.
13161 (stop_all_threads): Adjust.
13162 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13163 event's target.
13164 (switch_back_to_stepped_thread): Also consider target.
13165 (print_stop_event): Update.
13166 (normal_stop): Update. Also consider the resume target.
13167 * infrun.h (wait_for_inferior): Remove declaration.
13168 (user_visible_resume_target): New declaration.
13169 (get_last_target_status, set_last_target_status): New
13170 process_stratum_target parameter.
13171 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13172 process_stratum_target parameter, and use it.
13173 (clear_inline_frame_state (thread_info*)): New.
13174 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13175 process_stratum_target parameter.
13176 (clear_inline_frame_state (thread_info*)): Declare.
13177 * linux-fork.c (delete_checkpoint_command): Pass target down to
13178 find_thread_ptid.
13179 (checkpoint_command): Adjust.
13180 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13181 instead of just tweaking inferior_ptid.
13182 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13183 (exit_lwp): Pass target down to find_thread_ptid.
13184 (attach_proc_task_lwp_callback): Pass target down to
13185 add_thread/set_running/set_executing.
13186 (linux_nat_target::attach): Pass target down to
13187 thread_change_ptid.
13188 (get_detach_signal): Pass target down to find_thread_ptid.
13189 Consider last target status's target.
13190 (linux_resume_one_lwp_throw, resume_lwp)
13191 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13192 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13193 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13194 (linux_nat_target::async_wait_fd): New.
13195 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13196 target down.
13197 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13198 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13199 * linux-thread-db.c (struct thread_db_info::process_target): New
13200 field.
13201 (add_thread_db_info): Save target.
13202 (get_thread_db_info): New process_stratum_target parameter. Also
13203 match target.
13204 (delete_thread_db_info): New process_stratum_target parameter.
13205 Also match target.
13206 (thread_from_lwp): Adjust to pass down target.
13207 (thread_db_notice_clone): Pass down target.
13208 (check_thread_db_callback): Pass down target.
13209 (try_thread_db_load_1): Always push the thread_db target.
13210 (try_thread_db_load, record_thread): Pass target down.
13211 (thread_db_target::detach): Pass target down. Always unpush the
13212 thread_db target.
13213 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13214 target down. Always unpush the thread_db target.
13215 (find_new_threads_callback, thread_db_find_new_threads_2)
13216 (thread_db_target::update_thread_list): Pass target down.
13217 (thread_db_target::pid_to_str): Pass current inferior down.
13218 (thread_db_target::get_thread_local_address): Pass target down.
13219 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13220 target down.
13221 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13222 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13223 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13224 (procfs_init_inferior): Rename to ...
13225 (procfs_target::procfs_init_inferior): ... this and adjust.
13226 (procfs_target::create_inferior, procfs_notice_thread)
13227 (procfs_do_thread_registers): Adjust.
13228 * ppc-fbsd-tdep.c: Include "inferior.h".
13229 (ppcfbsd_get_thread_local_address): Pass down target.
13230 * proc-service.c (ps_xfer_memory): Switch current inferior and
13231 program space as well.
13232 (get_ps_regcache): Pass target down.
13233 * process-stratum-target.c
13234 (process_stratum_target::thread_address_space)
13235 (process_stratum_target::thread_architecture): Pass target down.
13236 * process-stratum-target.h
13237 (process_stratum_target::threads_executing): New field.
13238 (as_process_stratum_target): New.
13239 * ravenscar-thread.c
13240 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13241 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13242 down.
13243 * record-btrace.c (record_btrace_target::info_record): Adjust.
13244 (record_btrace_target::record_method)
13245 (record_btrace_target::record_is_replaying)
13246 (record_btrace_target::fetch_registers)
13247 (get_thread_current_frame_id, record_btrace_target::resume)
13248 (record_btrace_target::wait, record_btrace_target::stop): Pass
13249 target down.
13250 * record-full.c (record_full_wait_1): Switch to event thread.
13251 Pass target down.
13252 * regcache.c (regcache::regcache)
13253 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13254 process_stratum_target parameter and handle it.
13255 (current_thread_target): New global.
13256 (get_thread_regcache): Add process_stratum_target parameter and
13257 handle it. Switch inferior before calling target method.
13258 (get_thread_regcache): Pass target down.
13259 (get_thread_regcache_for_ptid): Pass target down.
13260 (registers_changed_ptid): Add process_stratum_target parameter and
13261 handle it.
13262 (registers_changed_thread, registers_changed): Pass target down.
13263 (test_get_thread_arch_aspace_regcache): New.
13264 (current_regcache_test): Define a couple local test_target_ops
13265 instances and use them for testing.
13266 (readwrite_regcache): Pass process_stratum_target parameter.
13267 (cooked_read_test, cooked_write_test): Pass mock_target down.
13268 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13269 (get_thread_arch_aspace_regcache): Add process_stratum_target
13270 parameter.
13271 (regcache::target): New method.
13272 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13273 (regcache::registers_changed_ptid): Add process_stratum_target
13274 parameter.
13275 (regcache::m_target): New field.
13276 (registers_changed_ptid): Add process_stratum_target parameter.
13277 * remote.c (remote_state::supports_vCont_probed): New field.
13278 (remote_target::async_wait_fd): New method.
13279 (remote_unpush_and_throw): Add remote_target parameter.
13280 (get_current_remote_target): Adjust.
13281 (remote_target::remote_add_inferior): Push target.
13282 (remote_target::remote_add_thread)
13283 (remote_target::remote_notice_new_inferior)
13284 (get_remote_thread_info): Pass target down.
13285 (remote_target::update_thread_list): Skip threads of inferiors
13286 bound to other targets. (remote_target::close): Don't discard
13287 inferiors. (remote_target::add_current_inferior_and_thread)
13288 (remote_target::process_initial_stop_replies)
13289 (remote_target::start_remote)
13290 (remote_target::remote_serial_quit_handler): Pass down target.
13291 (remote_target::remote_unpush_target): New remote_target
13292 parameter. Unpush the target from all inferiors.
13293 (remote_target::remote_unpush_and_throw): New remote_target
13294 parameter. Pass it down.
13295 (remote_target::open_1): Check whether the current inferior has
13296 execution instead of checking whether any inferior is live. Pass
13297 target down.
13298 (remote_target::remote_detach_1): Pass down target. Use
13299 remote_unpush_target.
13300 (extended_remote_target::attach): Pass down target.
13301 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13302 (remote_target::append_resumption): Pass down target.
13303 (remote_target::append_pending_thread_resumptions)
13304 (remote_target::remote_resume_with_hc, remote_target::resume)
13305 (remote_target::commit_resume): Pass down target.
13306 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13307 (remote_target::interrupt_query)
13308 (remote_target::remove_new_fork_children)
13309 (remote_target::check_pending_events_prevent_wildcard_vcont)
13310 (remote_target::remote_parse_stop_reply)
13311 (remote_target::process_stop_reply): Pass down target.
13312 (first_remote_resumed_thread): New remote_target parameter. Pass
13313 it down.
13314 (remote_target::wait_as): Pass down target.
13315 (unpush_and_perror): New remote_target parameter. Pass it down.
13316 (remote_target::readchar, remote_target::remote_serial_write)
13317 (remote_target::getpkt_or_notif_sane_1)
13318 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13319 down target.
13320 (remote_target::mourn_inferior): Pass down target. Use
13321 remote_unpush_target.
13322 (remote_target::core_of_thread)
13323 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13324 (remote_target::pid_to_exec_file)
13325 (remote_target::thread_handle_to_thread_info): Pass down target.
13326 (remote_target::async_wait_fd): New.
13327 * riscv-fbsd-tdep.c: Include "inferior.h".
13328 (riscv_fbsd_get_thread_local_address): Pass down target.
13329 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13330 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13331 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13332 Adjust.
13333 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13334 * solib-svr4.c (enable_break): Pass down target.
13335 * spu-multiarch.c (parse_spufs_run): Pass down target.
13336 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13337 * target-delegates.c: Regenerate.
13338 * target.c (g_target_stack): Delete.
13339 (current_top_target): Return the current inferior's top target.
13340 (target_has_execution_1): Refer to the passed-in inferior's top
13341 target.
13342 (target_supports_terminal_ours): Check whether the initial
13343 inferior was already created.
13344 (decref_target): New.
13345 (target_stack::push): Incref/decref the target.
13346 (push_target, push_target, unpush_target): Adjust.
13347 (target_stack::unpush): Defref target.
13348 (target_is_pushed): Return bool. Adjust to refer to the current
13349 inferior's target stack.
13350 (dispose_inferior): Delete, and inline parts ...
13351 (target_preopen): ... here. Only dispose of the current inferior.
13352 (target_detach): Hold strong target reference while detaching.
13353 Pass target down.
13354 (target_thread_name): Add assertion.
13355 (target_resume): Pass down target.
13356 (target_ops::beneath, find_target_at): Adjust to refer to the
13357 current inferior's target stack.
13358 (get_dummy_target): New.
13359 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13360 has a thread running.
13361 (initialize_targets): Rename to ...
13362 (_initialize_target): ... this.
13363 * target.h: Include "gdbsupport/refcounted-object.h".
13364 (struct target_ops): Inherit refcounted_object.
13365 (target_ops::shortname, target_ops::longname): Make const.
13366 (target_ops::async_wait_fd): New method.
13367 (decref_target): Declare.
13368 (struct target_ops_ref_policy): New.
13369 (target_ops_ref): New typedef.
13370 (get_dummy_target): Declare function.
13371 (target_is_pushed): Return bool.
13372 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13373 (all_matching_threads_iterator::all_matching_threads_iterator):
13374 Handle filter target.
13375 * thread-iter.h (struct all_matching_threads_iterator, struct
13376 all_matching_threads_range, class all_non_exited_threads_range):
13377 Filter by target too. Remove explicit.
13378 * thread.c (threads_executing): Delete.
13379 (inferior_thread): Pass down current inferior.
13380 (clear_thread_inferior_resources): Pass down thread pointer
13381 instead of ptid_t.
13382 (add_thread_silent, add_thread_with_info, add_thread): Add
13383 process_stratum_target parameter. Use it for thread and inferior
13384 searches.
13385 (is_current_thread): New.
13386 (thread_info::deletable): Use it.
13387 (find_thread_ptid, thread_count, in_thread_list)
13388 (thread_change_ptid, set_resumed, set_running): New
13389 process_stratum_target parameter. Pass it down.
13390 (set_executing): New process_stratum_target parameter. Pass it
13391 down. Adjust reference to 'threads_executing'.
13392 (threads_are_executing): New process_stratum_target parameter.
13393 Adjust reference to 'threads_executing'.
13394 (set_stop_requested, finish_thread_state): New
13395 process_stratum_target parameter. Pass it down.
13396 (switch_to_thread): Also match inferior.
13397 (switch_to_thread): New process_stratum_target parameter. Pass it
13398 down.
13399 (update_threads_executing): Reimplement.
13400 * top.c (quit_force): Pop targets from all inferior.
13401 (gdb_init): Don't call initialize_targets.
13402 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13403 Declare.
13404 (windows_add_thread, windows_delete_thread): Adjust.
13405 (get_windows_debug_event): Rename to ...
13406 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13407 * tracefile-tfile.c (tfile_target_open): Pass down target.
13408 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13409 Forward declare.
13410 (switch_to_thread): Add process_stratum_target parameter.
13411 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13412 parameter. Use it.
13413 (mi_on_resume): Pass target down.
13414 * nat/fork-inferior.c (startup_inferior): Add
13415 process_stratum_target parameter. Pass it down.
13416 * nat/fork-inferior.h (startup_inferior): Add
13417 process_stratum_target parameter.
13418 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13419
75c6c844
PA
134202020-01-10 Pedro Alves <palves@redhat.com>
13421
13422 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13423 directly. Instead find the first thread in the thread list and
13424 use switch_to_thread.
13425
78f2c40a
PA
134262020-01-10 Pedro Alves <palves@redhat.com>
13427
13428 * remote.c (remote_target::remote_add_inferior): Don't bind a
13429 process to the current inferior if the current inferior is already
13430 bound to a process.
13431
e7af6c70
TBA
134322020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13433 Pedro Alves <palves@redhat.com>
13434
13435 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13436 If no process is specified, return null_ptid instead of
13437 inferior_ptid.
13438 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13439 TARGET_WAITKIND_SIGNALLED with no pid.
13440
31ba933e
PA
134412020-01-10 Pedro Alves <palves@redhat.com>
13442
13443 * remote.c (first_remote_resumed_thread): New.
13444 (remote_target::wait_as): Use it as default event_ptid instead of
13445 inferior_ptid.
13446
735fc2ca
PA
134472020-01-10 Pedro Alves <palves@redhat.com>
13448
13449 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13450
c17e02e1
PA
134512020-01-10 Pedro Alves <palves@redhat.com>
13452
13453 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13454 not -1.
13455
ab1ddbcf
PA
134562020-01-10 Pedro Alves <palves@redhat.com>
13457
13458 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13459 ptid to get_last_target_status.
13460 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13461 ptid to get_last_target_status.
13462 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13463 get_last_target_status.
13464 (info_program_command): Don't pass a target_waitstatus to
13465 get_last_target_status.
13466 * infrun.c (init_wait_for_inferior): Use
13467 nullify_last_target_wait_ptid.
13468 (get_last_target_status): Handle nullptr arguments.
13469 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13470 (print_stop_event): Don't pass a ptid to get_last_target_status.
13471 (normal_stop): Don't pass a ptid to get_last_target_status.
13472 * infrun.h (get_last_target_status, set_last_target_status): Move
13473 comments here and update.
13474 (nullify_last_target_wait_ptid): Declare.
13475 * linux-fork.c (fork_load_infrun_state): Remove local extern
13476 declaration of nullify_last_target_wait_ptid.
13477 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13478 to get_last_target_status.
13479
f3f8ece4
PA
134802020-01-10 Pedro Alves <palves@redhat.com>
13481
13482 * gdbthread.h (scoped_restore_current_thread)
13483 <dont_restore, restore, m_dont_restore>: Declare.
13484 * thread.c (thread_alive): Add assertion. Return bool.
13485 (switch_to_thread_if_alive): New.
13486 (prune_threads): Switch inferior/thread.
13487 (print_thread_info_1): Switch thread before calling target methods.
13488 (scoped_restore_current_thread::restore): New, factored out from
13489 ...
13490 (scoped_restore_current_thread::~scoped_restore_current_thread):
13491 ... this.
13492 (scoped_restore_current_thread::scoped_restore_current_thread):
13493 Add assertion.
13494 (thread_apply_all_command, thread_select): Use
13495 switch_to_thread_if_alive.
13496 * infrun.c (proceed, restart_threads, handle_signal_stop)
13497 (switch_back_to_stepped_thread): Switch current thread before
13498 calling target methods.
13499
db2d40f7
PA
135002020-01-10 Pedro Alves <palves@redhat.com>
13501
13502 * inferior.c (switch_to_inferior_no_thread): New function,
13503 factored out from ...
13504 (inferior_command): ... here.
13505 * inferior.h (switch_to_inferior_no_thread): Declare.
13506 * mi/mi-main.c (run_one_inferior): Use
13507 switch_to_inferior_no_thread.
13508
bd420a2d
PA
135092020-01-10 Pedro Alves <palves@redhat.com>
13510
13511 * infcmd.c (kill_command): Remove dead code.
13512
ddf5db90
PA
135132020-01-10 Pedro Alves <palves@redhat.com>
13514
13515 * remote.c (remote_target::mourn_inferior): No longer check
13516 whether the target is running.
13517
5018ce90
PA
135182020-01-10 Pedro Alves <palves@redhat.com>
13519
13520 * corelow.c (core_target::has_execution): Change parameter type to
13521 inferior pointer.
13522 * inferior.c (number_of_live_inferiors): Use
13523 inferior::has_execution instead of target_has_execution_1.
13524 * inferior.h (inferior::has_execution): New.
13525 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13526 inferior::has_execution instead of target_has_execution_1.
13527 * process-stratum-target.c
13528 (process_stratum_target::has_execution): Change parameter type to
13529 inferior pointer. Check the inferior's PID instead of
13530 inferior_ptid.
13531 * process-stratum-target.h
13532 (process_stratum_target::has_execution): Change parameter type to
13533 inferior pointer.
13534 * record-full.c (record_full_core_target::has_execution): Change
13535 parameter type to inferior pointer.
13536 * target.c (target_has_execution_1): Change parameter type to
13537 inferior pointer.
13538 (target_has_execution_current): Adjust.
13539 * target.h (target_ops::has_execution): Change parameter type to
13540 inferior pointer.
13541 (target_has_execution_1): Change parameter type to inferior
13542 pointer. Change return type to bool.
13543 * tracefile.h (tracefile_target::has_execution): Change parameter
13544 type to inferior pointer.
13545
74375d18
PA
135462020-01-10 Pedro Alves <palves@redhat.com>
13547
13548 * exceptions.c (print_flush): Remove current_top_target() check.
13549
acdf84a6
PA
135502020-01-10 Pedro Alves <palves@redhat.com>
13551
13552 * remote.c (show_remote_exec_file): Show the current inferior's
13553 exec-file instead of the command variable's value.
13554
ec506636
PA
135552020-01-10 Pedro Alves <palves@redhat.com>
13556
13557 * record-full.c (record_full_resume_ptid): New global.
13558 (record_full_target::resume): Set it.
13559 (record_full_wait_1): Use record_full_resume_ptid instead of
13560 inferior_ptid.
13561
873657b9
PA
135622020-01-10 Pedro Alves <palves@redhat.com>
13563
13564 * gdbthread.h (scoped_restore_current_thread)
13565 <dont_restore, restore, m_dont_restore>: Declare.
13566 * thread.c (thread_alive): Add assertion. Return bool.
13567 (switch_to_thread_if_alive): New.
13568 (prune_threads): Switch inferior/thread.
13569 (print_thread_info_1): Switch thread before calling target methods.
13570 (scoped_restore_current_thread::restore): New, factored out from
13571 ...
13572 (scoped_restore_current_thread::~scoped_restore_current_thread):
13573 ... this.
13574 (scoped_restore_current_thread::scoped_restore_current_thread):
13575 Add assertion.
13576 (thread_apply_all_command, thread_select): Use
13577 switch_to_thread_if_alive.
13578
7f0ae84c
GB
135792020-01-10 George Barrett <bob@bob131.so>
13580
13581 * stap-probe.c (stap_modify_semaphore): Don't check for null
13582 semaphores.
13583 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13584 for null semaphores.
13585
f5a7c406
AB
135862020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13587
13588 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13589 all source windows, and maintain horizontal scroll status while
13590 doing so.
13591
9ae6bf64
TT
135922020-01-09 Tom Tromey <tom@tromey.com>
13593
13594 PR tui/18932:
13595 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13596 update_source_window, not print_source_lines.
13597
b2efe70c
AB
135982020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13599
13600 * tui/tui.c (tui_enable): Register tui hooks after calling
13601 tui_display_main.
13602
5f23a082
CB
136032020-01-09 Christian Biesinger <cbiesinger@google.com>
13604
13605 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13606
3061113b
SM
136072020-01-08 Simon Marchi <simon.marchi@efficios.com>
13608
13609 * thread.c (print_thread_info_1): Fix indentation.
13610
57d75002
CB
136112020-01-09 Christian Biesinger <cbiesinger@google.com>
13612
13613 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13614 unique_xmalloc_ptr outside the if to always free the demangled name.
13615
6a053cb1
TT
136162020-01-08 Tom Tromey <tromey@adacore.com>
13617
13618 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13619 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13620 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13621 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13622 Remove.
13623 (section_offsets): New typedef.
13624 * symtab.c (fixup_section, get_msymbol_address): Update.
13625 * symmisc.c (dump_msymbols): Update.
13626 * symfile.h (relative_addr_info_to_section_offsets)
13627 (symfile_map_offsets_to_segments): Update.
13628 * symfile.c (build_section_addr_info_from_objfile)
13629 (init_objfile_sect_indices): Update.
13630 (struct place_section_arg): Change type of "offsets".
13631 (place_section): Update.
13632 (relative_addr_info_to_section_offsets): Change type of
13633 "section_offsets". Remove "num_sections" parameter.
13634 (default_symfile_offsets, syms_from_objfile_1)
13635 (set_objfile_default_section_offset): Update.
13636 (reread_symbols): No need to preserve section offsets by hand.
13637 (symfile_map_offsets_to_segments): Change type of "offsets".
13638 * stap-probe.c (relocate_address): Update.
13639 * stabsread.h (process_one_symbol): Update.
13640 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13641 (solib_target_relocate_section_addresses): Update.
13642 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13643 Update.
13644 * solib-frv.c (frv_relocate_main_executable): Update.
13645 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13646 * solib-aix.c (solib_aix_get_section_offsets): Change return
13647 type.
13648 (solib_aix_solib_create_inferior_hook): Update.
13649 * remote.c (remote_target::get_offsets): Update.
13650 * psymtab.c (find_pc_sect_psymtab): Update.
13651 * psympriv.h (struct partial_symbol) <address, text_low,
13652 text_high>: Update.
13653 * objfiles.h (obj_section_offset): Update.
13654 (struct objfile) <section_offsets>: Change type.
13655 <num_sections>: Remove.
13656 (objfile_relocate): Update.
13657 * objfiles.c (entry_point_address_query): Update
13658 (relocate_one_symbol): Change type of "section_offsets".
13659 (objfile_relocate1, objfile_relocate1): Change type of
13660 "new_offsets".
13661 (objfile_rebase1): Update.
13662 * mipsread.c (mipscoff_symfile_read): Update.
13663 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13664 parameter.
13665 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13666 (parse_external, psymtab_to_symtab_1): Update.
13667 * machoread.c (macho_symfile_offsets): Update.
13668 * ia64-tdep.c (ia64_find_unwind_table): Update.
13669 * hppa-tdep.c (read_unwind_info): Update.
13670 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13671 * dwarf2read.c (create_addrmap_from_index)
13672 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13673 (process_psymtab_comp_unit_reader, add_partial_symbol)
13674 (add_partial_subprogram, process_full_comp_unit)
13675 (read_file_scope, read_func_scope, read_lexical_block_scope)
13676 (read_call_site_scope, dwarf2_rnglists_process)
13677 (dwarf2_ranges_process, dwarf2_ranges_read)
13678 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13679 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13680 Update.
13681 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13682 Update.
13683 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13684 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13685 (process_one_symbol): Change type of "section_offsets".
13686 * ctfread.c (get_objfile_text_range): Update.
13687 * coffread.c (coff_symtab_read, enter_linenos)
13688 (process_coff_symbol): Update.
13689 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13690 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13691
456e800a
TT
136922020-01-08 Tom Tromey <tromey@adacore.com>
13693
13694 * dwarf2read.c (parse_macro_definition): Use std::string.
13695 (parse_macro_definition): Likewise.
13696
6dfa2fc2
TT
136972020-01-08 Tom Tromey <tromey@adacore.com>
13698
13699 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13700 (ATTR_ALLOC_CHUNK): Remove.
13701
421d1616
TT
137022020-01-08 Tom Tromey <tromey@adacore.com>
13703
13704 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13705
43816ebc
TT
137062020-01-08 Tom Tromey <tromey@adacore.com>
13707
13708 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13709 (dwarf2_compute_name, open_dwo_file): Likewise.
13710 (process_enumeration_scope): Use std::vector.
13711 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13712 (partial_die_info::fixup, dwarf2_start_subfile)
13713 (guess_full_die_structure_name, dwarf2_name): Likewise.
13714 (determine_prefix): Update.
13715 (guess_full_die_structure_name): Make return type const.
13716 (partial_die_full_name): Return unique_xmalloc_ptr.
13717 (DW_FIELD_ALLOC_CHUNK): Remove.
13718
4212d509
TT
137192020-01-07 Tom Tromey <tromey@adacore.com>
13720
13721 PR build/24937:
13722 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13723
06a6207a
JT
137242020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13725
13726 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13727
153d79c4
AB
137282020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13729
13730 * stack.c (print_frame_info): Move disassemble_next_line code
13731 inside source_print block.
13732
66182876
EZ
137332020-01-06 Eli Zaretskii <eliz@gnu.org>
13734
13735 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13736 gdb/signals.h, as we are now using native signal symbols.
13737
cbfa8581
SV
137382020-01-06 Shahab Vahedi <shahab@synopsys.com>
13739
13740 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13741 overflow by an early check of content vs threshold.
aac66a4c 13742 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13743 Likewise.
13744
3f602821
EZ
137452020-01-06 Eli Zaretskii <eliz@gnu.org>
13746
13747 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13748
a08c904d
JT
137492020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13750
13751 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13752 export table if no section contains it's RVA.
13753
89a65580
EZ
137542020-01-06 Eli Zaretskii <eliz@gnu.org>
13755
13756 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13757
8b7fcda2
HD
137582020-01-06 Hannes Domani <ssbssa@yahoo.de>
13759
13760 * source.c (print_source_lines_base): Set last_line_listed.
13761
a61b4f69
SV
137622020-01-06 Shahab Vahedi <shahab@synopsys.com>
13763
13764 * tui/tui-disasm.c: Remove trailing spaces.
13765
559e7e50
EZ
137662020-01-06 Eli Zaretskii <eliz@gnu.org>
13767 Pedro Alves <palves@redhat.com>
13768
13769 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13770 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13771 (windows_gdb_signal_to_target): New function, uses the above
13772 enumeration to convert GDB internal signal codes to equivalent
13773 Windows codes.
13774 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13775 * windows-nat.c: Include "gdb_wait.h".
13776 (get_windows_debug_event): Extract the fatal exception from the
13777 exit status and convert to the equivalent Posix signal number.
13778 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13779 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13780 * gdbsupport/gdb_wait.c: New file, implements
13781 windows_status_to_termsig.
13782 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13783 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13784
f2302a34
AB
137852020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13786
13787 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13788 show_layout.
13789
6a5206eb
LM
137902020-01-05 Luis Machado <luis.machado@linaro.org>
13791
13792 * aarch64-linux-nat.c
13793 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13794 and bfd_mach_aarch64.
13795
6ec1d75e
PW
137962020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13797
13798 * ui-file.c (stdio_file::can_emit_style_escape)
13799 (tee_file::can_emit_style_escape): Ensure style is used also on
13800 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13801 to gdb_stdout.
13802 * main.c (set_gdb_data_directory): Use file style to output the
13803 warning that the given pathname is not a directory.
13804 * top.c (show_history_filename, gdb_safe_append_history)
13805 (show_gdb_datadir): Use file style.
13806
44f81a76
HD
138072020-01-03 Hannes Domani <ssbssa@yahoo.de>
13808
13809 * solib-target.c (struct lm_info_target):
13810 Change offsets to be a unique_xmalloc_ptr.
13811 (solib_target_relocate_section_addresses): Update.
13812
25057eb0
HD
138132020-01-03 Hannes Domani <ssbssa@yahoo.de>
13814
13815 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13816
6e2118f5
BE
138172020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13818
13819 * MAINTAINERS (Write After Approval): Add myself.
13820
8133c7dc
LM
138212020-01-02 Luis Machado <luis.machado@linaro.org>
13822
13823 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13824 Cell BE architecture.
13825 * target.h (struct target_ops) <thread_architecture>: Likewise.
13826
48189bec
HD
138272020-01-01 Hannes Domani <ssbssa@yahoo.de>
13828
13829 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13830
ead1063b
HD
138312020-01-01 Hannes Domani <ssbssa@yahoo.de>
13832
13833 * MAINTAINERS (Write After Approval): Add myself.
13834
e5d78223
JB
138352020-01-01 Joel Brobecker <brobecker@adacore.com>
13836
13837 * gdbarch.sh: Update copyright year range of generated files.
13838
b811d2c2
JB
138392020-01-01 Joel Brobecker <brobecker@adacore.com>
13840
13841 Update copyright year range in all GDB files.
13842
5f4def5c
JB
138432020-01-01 Joel Brobecker <brobecker@adacore.com>
13844
13845 * copyright.py: Convert to Python 3.
13846
51fd4002
JB
138472020-01-01 Joel Brobecker <brobecker@adacore.com>
13848
13849 * copyright.py: Adapt after move of gnulib directory from gdb
13850 directory to toplevel directory.
13851
5fb651f2
JB
138522020-01-01 Joel Brobecker <brobecker@adacore.com>
13853
13854 * copyright.py (main): Exit if run from the wrong directory.
13855
5dd8bf88
JB
138562020-01-01 Joel Brobecker <brobecker@adacore.com>
13857
13858 * top.c (print_gdb_version): Change copyright year to 2020.
13859
9f71dacb 138602020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13861
9f71dacb 13862 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13863
9f71dacb 13864For older changes see ChangeLog-2019.
c906108c
SS
13865\f
13866Local Variables:
13867mode: change-log
13868left-margin: 8
13869fill-column: 74
13870version-control: never
57da7796 13871coding: utf-8
c906108c 13872End: