Use htab_up in typedef_hash_table
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-17 Tom Tromey <tom@tromey.com>
2
3 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4 Remove.
5 <m_table>: Now htab_up.
6 * typeprint.c (typedef_hash_table::recursively_update)
7 (typedef_hash_table::add_template_parameters)
8 (typedef_hash_table::typedef_hash_table): Update.
9 (typedef_hash_table::~typedef_hash_table): Remove.
10 (typedef_hash_table::typedef_hash_table)
11 (typedef_hash_table::find_global_typedef)
12 (typedef_hash_table::find_typedef): Update.
13
14 2020-09-17 Tom Tromey <tom@tromey.com>
15
16 * target-descriptions.c (tdesc_use_registers): Use htab_up.
17
18 2020-09-17 Tom Tromey <tom@tromey.com>
19
20 * linespec.c (class decode_compound_collector)
21 <~decode_compound_collector>: Remove.
22 <m_unique_syms>: Now htab_up.
23 (decode_compound_collector::operator ()): Update.
24 (class symtab_collector) <~symtab_collector>: Remove.
25 <m_symtab_table>: Now htab_up.
26 (symtab_collector::operator ()): Update.
27
28 2020-09-17 Tom Tromey <tom@tromey.com>
29
30 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
31 (filename_seen_cache::clear): Update.
32 (~filename_seen_cache): Remove.
33 (filename_seen_cache::seen): Update.
34 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
35 htab_up.
36 <~filename_seen_cache>: Remove.
37 <traverse>: Update.
38
39 2020-09-17 Tom Tromey <tom@tromey.com>
40
41 * completer.c (completion_tracker::discard_completions)
42 (completion_tracker::~completion_tracker)
43 (completion_tracker::maybe_add_completion)
44 (completion_tracker::remove_completion)
45 (completion_tracker::recompute_lowest_common_denominator)
46 (completion_tracker::build_completion_result): Update.
47 * completer.h (class completion_tracker) <have_completions>:
48 Update.
49 <m_entries_hash>: Now htab_up.
50
51 2020-09-17 Tom Tromey <tom@tromey.com>
52
53 * breakpoint.c (ambiguous_names_p): Use htab_up.
54
55 2020-09-17 Tom Tromey <tom@tromey.com>
56
57 * auto-load.c (struct auto_load_pspace_info)
58 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
59 <loaded_script_files, loaded_script_texts>: Change type to
60 htab_up.
61 (~auto_load_pspace_info) Remove.
62 (init_loaded_scripts_info, maybe_add_script_file)
63 (maybe_add_script_text, auto_load_info_scripts): Update.
64
65 2020-09-17 Tom Tromey <tromey@adacore.com>
66
67 * c-exp.y (name_obstack): Now static.
68
69 2020-09-17 Chungyi Chi <demonic@csie.io>
70
71 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
72
73 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
74
75 * breakpoint.h (init_catchpoint): Change int parameter to bool.
76 (add_solib_catchpoint): Likewise.
77 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
78 to bool.
79 (add_solib_catchpoint): Change int parameter/variable to bool.
80 (catch_load_or_unload): Likewise.
81 (init_catchpoint): Likewise.
82 (create_fork_vfork_event_catchpoint): Likewise.
83 (catch_fork_command_1): Likewise.
84 (catch_exec_command_1): Likewise.
85
86 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
87
88 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
89 Change instance_flags to m_instance_flags.
90
91 2020-09-16 Tom Tromey <tromey@adacore.com>
92
93 PR gdb/26598:
94 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
95
96 2020-09-16 John Baldwin <jhb@FreeBSD.org>
97
98 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
99 PL_FLAG_EXEC.
100 (fbsd_nat_target::insert_exec_catchpoint)
101 (fbsd_nat_target::remove_exec_catchpoint): Always define.
102 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
103 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
104
105 2020-09-16 John Baldwin <jhb@FreeBSD.org>
106
107 * configure.ac: Remove check for kinfo_getvmmap().
108 * configure, config.in: Regenerate.
109 * fbsd-nat.c (fbsd_read_mapping): Remove
110 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
111 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
112 kinfo_get_vmmap() are always present.
113
114 2020-09-16 John Baldwin <jhb@FreeBSD.org>
115
116 * fbsd-nat.c: Always include support for
117 TARGET_OBJECT_SIGNAL_INFO.
118
119 2020-09-16 John Baldwin <jhb@FreeBSD.org>
120
121 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
122 sysctl and remove procfs fallback.
123
124 2020-09-16 John Baldwin <jhb@FreeBSD.org>
125
126 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
127 * fbsd-nat.h: Likewise.
128
129 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
130
131 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
132 argument.
133
134 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
135
136 * ada-lang.c (ada_language_data): Delete.
137 (ada_language): Remove references to ada_language_data.
138 * c-lang.c (c_language_data): Delete.
139 (c_language): Remove references to c_language_data.
140 (cplus_language_data): Delete.
141 (cplus_language): Remove references to cplus_language_data.
142 (asm_language_data): Delete.
143 (asm_language): Remove references to asm_language_data.
144 (minimal_language_data): Delete.
145 (minimal_language): Remove references to minimal_language_data.
146 * d-lang.c (d_language_data): Delete.
147 (d_language): Remove references to d_language_data.
148 * f-lang.c (f_language_data): Delete.
149 (f_language): Remove references to f_language_data.
150 * go-lang.c (go_language_data): Delete.
151 (go_language): Remove references to go_language_data.
152 * language.c (unknown_language_data): Delete.
153 (unknown_language): Remove references to unknown_language_data.
154 (auto_language_data): Delete.
155 (auto_language): Remove references to auto_language_data.
156 * language.h (language_data): Delete struct.
157 (language_defn): No longer inherit from language_data.
158 * m2-lang.c (m2_language_data): Delete.
159 (m2_language): Remove references to m2_language_data.
160 * objc-lang.c (objc_language_data): Delete.
161 (objc_language): Remove references to objc_language_data.
162 * opencl-lang.c (opencl_language_data): Delete.
163 (opencl_language): Remove references to opencl_language_data.
164 * p-lang.c (pascal_language_data): Delete.
165 (pascal_language): Remove references to pascal_language_data.
166 * rust-lang.c (rust_language_data): Delete.
167 (rust_language): Remove references to rust_language_data.
168
169 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
170
171 * ada-lang.c (ada_language_data): Remove la_op_print_tab
172 initializer.
173 (ada_language::opcode_print_table): New member function.
174 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
175 (c_language::opcode_print_table): New member function.
176 (cplus_language_data): Remove la_op_print_tab initializer.
177 (cplus_language::opcode_print_table): New member function.
178 (asm_language_data): Remove la_op_print_tab initializer.
179 (asm_language::opcode_print_table): New member function.
180 (minimal_language_data): Remove la_op_print_tab initializer.
181 (minimal_language::opcode_print_table): New member function.
182 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
183 (d_language::opcode_print_table): New member function.
184 * expprint.c (print_subexp_standard): Update call to
185 opcode_print_table.
186 (op_string): Likewise.
187 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
188 (f_language::opcode_print_table): New member function.
189 * go-lang.c (go_language_data): Remove la_op_print_tab
190 initializer.
191 (go_language::opcode_print_table): New member function.
192 * language.c (unknown_language_data): Remove la_op_print_tab
193 initializer.
194 (unknown_language::opcode_print_table): New member function.
195 (auto_language_data): Remove la_op_print_tab initializer.
196 (auto_language::opcode_print_table): New member function.
197 * language.h (language_data): Remove la_op_print_tab field.
198 (language_defn::opcode_print_table): Declare new member function.
199 * m2-lang.c (m2_language_data): Remove la_op_print_tab
200 initializer.
201 (m2_language::opcode_print_table): New member function.
202 * objc-lang.c (objc_language_data): Remove la_op_print_tab
203 initializer.
204 (objc_language::opcode_print_table): New member function.
205 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
206 initializer.
207 (opencl_language::opcode_print_table): New member function.
208 * p-lang.c (pascal_language_data): Remove la_op_print_tab
209 initializer.
210 (pascal_language::opcode_print_table): New member function.
211 * rust-lang.c (rust_language_data): Remove la_op_print_tab
212 initializer.
213 (rust_language::opcode_print_table): New member function.
214
215 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
218 (ada_language::expression_ops): New member function.
219 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
220 (c_language::expression_ops): New member function.
221 (cplus_language_data): Remove la_exp_desc initializer.
222 (cplus_language::expression_ops): New member function.
223 (asm_language_data): Remove la_exp_desc initializer.
224 (asm_language::expression_ops): New member function.
225 (minimal_language_data): Remove la_exp_desc initializer.
226 (minimal_language::expression_ops): New member function.
227 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
228 (d_language::expression_ops): New member function.
229 * eval.c (evaluate_subexp): Update call to expression_ops.
230 * expprint.c (print_subexp): Likewise.
231 (op_name): Likewise.
232 (dump_subexp_body): Likewise.
233 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
234 (f_language::expression_ops): New member function.
235 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
236 (go_language::expression_ops): New member function.
237 * language.c (language_defn::expression_ops): New function.
238 (unknown_language_data): Remove la_exp_desc initializer.
239 (auto_language_data): Likewise.
240 * language.h (language_data): Remove la_exp_desc field.
241 (language_defn::expression_ops): Declare new member function.
242 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
243 (m2_language::expression_ops): New member function.
244 * objc-lang.c (objc_language_data): Remove la_exp_desc
245 initializer.
246 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
247 initializer.
248 (opencl_language::expression_ops): New member function.
249 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
250 * parse.c (operator_length): Update call to expression_ops.
251 (exp_iterate): Likewise.
252 * rust-lang.c (rust_language_data): Remove la_exp_desc
253 initializer.
254 (ruse_language::expression_ops): New member function.
255
256 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
257
258 * ada-lang.c (ada_language_data): Remove la_varobj_ops
259 initializer.
260 (ada_language::varobj_ops): New member function.
261 * c-lang.c (c_language_data): Remove la_varobj_ops
262 initializer.
263 (cplus_language_data): Likewise.
264 (cplus_language::varobj_ops): New member function.
265 (asm_language_data): Remove la_varobj_ops initializer.
266 (minimal_language_data): Likewise.
267 * d-lang.c (d_language_data): Likewise.
268 * f-lang.c (f_language_data): Likewise.
269 * go-lang.c (go_language_data): Likewise.
270 * language.c (language_defn::varobj_ops): New function.
271 (unknown_language_data): Remove la_varobj_ops
272 initializer.
273 (auto_language_data): Likewise.
274 * language.h (language_data): Remove la_varobj_ops field.
275 (language_defn::varobj_ops): Declare new member function.
276 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
277 * objc-lang.c (objc_language_data): Likewise.
278 * opencl-lang.c (opencl_language_data): Likewise.
279 * p-lang.c (pascal_language_data): Likewise.
280 * rust-lang.c (rust_language_data): Likewise.
281 * varobj.c (varobj_create): Update call to varobj_ops.
282 * varobj.h (default_varobj_ops): Delete define.
283
284 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * ada-lang.c (ada_language_data): Remove la_macro_expansion
287 initializer.
288 * c-lang.c (c_language_data): Likewise.
289 (c_language::macro_expansion): New member function.
290 (cplus_language_data): Likewise.
291 (cplus_language::macro_expansion): New member function.
292 (asm_language_data): Likewise.
293 (asm_language::macro_expansion): New member function.
294 (minimal_language_data): Likewise.
295 (minimal_language::macro_expansion): New member function.
296 * d-lang.c (d_language_data): Remove la_macro_expansion
297 initializer.
298 * f-lang.c (f_language_data): Likewise.
299 * go-lang.c (go_language_data): Likewise.
300 * language.c (unknown_language_data): Likewise.
301 (auto_language_data): Likewise.
302 * language.h (language_data): Remove la_macro_expansion field.
303 (language_defn::macro_expansion): New member function.
304 * m2-lang.c (m2_language_data): Remove la_macro_expansion
305 initializer.
306 * objc-lang.c (objc_language_data): Likewise.
307 (objc_language::macro_expansion): New member function.
308 * opencl-lang.c (opencl_language_data): Likewise.
309 (opencl_language::macro_expansion): New member function.
310 * p-lang.c (pascal_language_data): Remove la_macro_expansion
311 initializer.
312 * rust-lang.c (rust_language_data): Likewise.
313 * symtab.c (default_collect_symbol_completion_matches_break_on):
314 Update call to macro_expansion.
315
316 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 * ada-lang.c (ada_language_data): Remove la_array_ordering
319 initializer.
320 * c-lang.c (c_language_data): Likewise.
321 (cplus_language_data): Likewise.
322 (asm_language_data): Likewise.
323 (minimal_language_data): Likewise.
324 * d-lang.c (d_language_data): Likewise.
325 * dwarf2/read.c (read_array_order): Update for call to
326 array_ordering.
327 * f-lang.c (f_language_data): Remove la_array_ordering
328 initializer.
329 (f_language::array_ordering): New member function.
330 * go-lang.c (go_language_data): Remove la_array_ordering
331 initializer.
332 * language.c (unknown_language_data): Likewise.
333 (auto_language_data): Likewise.
334 * language.h (language_data): Delete la_array_ordering field.
335 (language_defn::array_ordering): New member function.
336 * m2-lang.c (m2_language_data): Remove la_array_ordering
337 initializer.
338 * objc-lang.c (objc_language_data): Likewise.
339 * opencl-lang.c (opencl_language_data): Likewise.
340 * p-lang.c (pascal_language_data): Likewise.
341 * rust-lang.c (rust_language_data): Likewise.
342
343 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
344
345 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
346 initializer.
347 * c-lang.c (c_language_data): Likewise.
348 (cplus_language_data): Likewise.
349 (asm_language_data): Likewise.
350 (minimal_language_data): Likewise.
351 * d-lang.c (d_language_data): Likewise.
352 * f-lang.c (f_language_data): Likewise.
353 (f_language::case_sensitivity): New member function.
354 * go-lang.c (go_language_data): Remove la_case_sensitivity
355 initializer.
356 * language.c (enum case_mode): Moved here from language.h.
357 (case_mode): Make static.
358 (show_case_command): Update for case_sensitivity being a method.
359 (set_case_command): Likewise.
360 (set_range_case): Likewise.
361 (unknown_language_data): Remove la_case_sensitivity initializer.
362 (auto_language_data): Likewise.
363 * language.h (case_mode): Delete, move enum declaration to
364 language.c.
365 (language_data): Delete la_case_sensitivity field.
366 (language_defn::case_sensitivity): New member function.
367 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
368 initializer.
369 * objc-lang.c (objc_language_data): Likewise.
370 * opencl-lang.c (opencl_language_data): Likewise.
371 * p-lang.c (pascal_language_data): Likewise.
372 * rust-lang.c (rust_language_data): Likewise.
373
374 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * ada-lang.c (ada_language_data): Remove la_range_check
377 initializer.
378 * c-lang.c (c_language_data): Likewise.
379 (cplus_language_data): Likewise.
380 (asm_language_data): Likewise.
381 (minimal_language_data): Likewise.
382 * d-lang.c (d_language_data): Likewise.
383 * f-lang.c (f_language_data): Likewise.
384 (f_language::range_checking_on_by_default): New member function.
385 * go-lang.c (go_language_data): Remove la_range_check initializer.
386 * language.c (enum range_mode): Moved here from language.h.
387 (range_mode): Made static.
388 (show_range_command): Update to use
389 range_checking_on_by_default.
390 (set_range_command): Likewise.
391 (set_range_case): Likewise.
392 (unknown_language_data): Remove la_range_check initializer.
393 (auto_language_data): Likewise.
394 * language.h (range_mode): Delete. Enum definition moved to
395 language.c.
396 (language_data): Remove la_range_check field.
397 (language_defn::range_checking_on_by_default): New member
398 function.
399 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
400 (m2_language::range_checking_on_by_default): New member function.
401 * objc-lang.c (objc_language_data): Remove la_range_check
402 initializer.
403 * opencl-lang.c (opencl_language_data): Likewise.
404 * p-lang.c (pascal_language_data): Likewise.
405 (pascal_language::range_checking_on_by_default): New member
406 function.
407 * rust-lang.c (rust_language_data): Remove la_range_check
408 initializer.
409 (rust_language::range_checking_on_by_default): New member
410 function.
411
412 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
413
414 * dwarf2/read.c (dwarf2_physname): Remove special case for
415 language_go.
416 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
417 member function.
418
419 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
420
421 * ada-lang.c (ada_language_data): Remove
422 la_store_sym_names_in_linkage_form_p initializer.
423 (ada_language::store_sym_names_in_linkage_form_p): New member
424 function.
425 * c-lang.c (c_language_data): Remove
426 la_store_sym_names_in_linkage_form_p initializer.
427 (c_language::store_sym_names_in_linkage_form_p): New member
428 function.
429 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
430 initializer.
431 (asm_language_data): Likewise.
432 (asm_language::store_sym_names_in_linkage_form_p): New member
433 function.
434 (minimal_language_data): Remove
435 la_store_sym_names_in_linkage_form_p initializer.
436 (minimal_language::store_sym_names_in_linkage_form_p): New member
437 function.
438 * d-lang.c (d_language_data): Remove
439 la_store_sym_names_in_linkage_form_p initializer.
440 * dwarf2/read.c (dwarf2_physname): Update call to
441 store_sym_names_in_linkage_form_p.
442 * f-lang.c (f_language_data): Remove
443 la_store_sym_names_in_linkage_form_p initializer.
444 * go-lang.c (go_language_data): Remove
445 la_store_sym_names_in_linkage_form_p initializer.
446 * language.c (unknown_language_data): Remove
447 la_store_sym_names_in_linkage_form_p initializer.
448 (unknown_language::store_sym_names_in_linkage_form_p): New member
449 function.
450 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
451 initializer.
452 (auto_language::store_sym_names_in_linkage_form_p): New member
453 function.
454 * language.h (language_data): Remove
455 la_store_sym_names_in_linkage_form_p member variable.
456 (language_defn::store_sym_names_in_linkage_form_p): New member
457 function.
458 * m2-lang.c (m2_language_data): Remove
459 la_store_sym_names_in_linkage_form_p initializer.
460 * objc-lang.c (objc_language_data): Likewise.
461 * opencl-lang.c (opencl_language_data): Likewise.
462 * p-lang.c (pascal_language_data): Likewise.
463 * rust-lang.c (rust_language_data): Likewise.
464
465 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
466
467 * ada-lang.c (ada_language_data): Remove string_lower_bound
468 initializer.
469 * c-lang.c (c_language_data): Likewise.
470 (cplus_language_data): Likewise.
471 (asm_language_data): Likewise.
472 (minimal_language_data): Likewise.
473 * d-lang.c (d_language_data): Likewise.
474 * f-lang.c (f_language_data): Likewise.
475 * go-lang.c (go_language_data): Likewise.
476 * language.c (unknown_language_data): Likewise.
477 (auto_language_data): Likewise.
478 * language.h (language_data): Remove string_lower_bound field.
479 (language_defn::string_lower_bound): New member function.
480 * m2-lang.c (m2_language_data): Remove string_lower_bound
481 initializer.
482 (m2_language::string_lower_bound): New member function.
483 * objc-lang.c (objc_language_data): Remove string_lower_bound
484 initializer.
485 * opencl-lang.c (opencl_language_data): Likewise.
486 * p-lang.c (pascal_language_data): Likewise.
487 * rust-lang.c (rust_language_data): Likewise.
488 * valops.c (value_cstring): Update call to string_lower_bound.
489 (value_string): Likewise.
490 * value.c (allocate_repeated_value): Likewise.
491
492 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
493
494 * valops.c (value_repeat): Fix incorrect argument name in comment.
495
496 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
497
498 * ada-lang.c (ada_language_data): Remove c_style_arrays
499 initializer.
500 (ada_language::c_style_arrays_p): New member fuction.
501 * c-lang.c (c_language_data): Remove c_style_arrays
502 initializer.
503 (cplus_language_data): Likewise.
504 (asm_language_data): Likewise.
505 (minimal_language_data): Likewise.
506 * d-lang.c (d_language_data): Likewise.
507 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
508 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
509 (f_language::c_style_arrays_p): New member function.
510 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
511 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
512 * language.c (unknown_language_data): Remove c_style_arrays
513 initializer.
514 (auto_language_data): Likewise.
515 * language.h (language_data): Remove c_style_arrays field.
516 (language_defn::c_style_arrays_p): New member function.
517 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
518 (m2_language::c_style_arrays_p): New member function.
519 * objc-lang.c (objc_language_data): Remove c_style_arrays
520 initializer.
521 * opencl-lang.c (opencl_language_data): Likewise.
522 * p-lang.c (pascal_language_data): Likewise.
523 * rust-lang.c (rust_language_data): Likewise.
524 * valarith.c (value_subscript): Update call to c_style_arrays_p,
525 and update local variable to a bool.
526 * valops.c (value_cast): Update call to c_style_arrays_p.
527 (value_array): Likewise.
528 * value.c (coerce_array): Likewise.
529
530 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * ada-lang.c (ada_language_data): Remove la_language initializer.
533 * c-lang.c (c_language_data): Likewise.
534 (cplus_language_data): Likewise.
535 (asm_language_data): Likewise.
536 (minimal_language_data): Likewise.
537 * d-lang.c (d_language_data): Likewise.
538 * f-lang.c (f_language_data): Likewise.
539 * go-lang.c (go_language_data): Likewise.
540 * language.c (unknown_language_data): Likewise.
541 (auto_language_data): Likewise.
542 * language.h (language_data): Remove la_language field.
543 (language_defn::language_defn): Initialise la_language field.
544 (language_defn::la_language): New member variable.
545 * m2-lang.c (m2_language_data): Remove la_language field.
546 * objc-lang.c (objc_language_data): Likewise.
547 * opencl-lang.c (opencl_language_data): Likewise.
548 * p-lang.c (pascal_language_data): Likewise.
549 * rust-lang.c (rust_language_data): Likewise.
550
551 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * ada-lang.c (ada_extensions): Delete, moved into
554 ada_language::filename_extensions.
555 (ada_language_data): Remove la_filename_extensions initializer.
556 (ada_language::filename_extensions): New member function.
557 * c-lang.c (c_extensions): Delete, moved into
558 c_language::filename_extensions.
559 (c_language_data): Remove la_filename_extensions initializer.
560 (c_language::filename_extensions): New member function.
561 (cplus_extensions): Delete, moved into
562 cplus_language::filename_extensions.
563 (cplus_language_data): Remove la_filename_extensions initializer.
564 (cplus_language::filename_extensions): New member function.
565 (asm_extensions): Delete, moved into
566 asm_language::filename_extensions.
567 (asm_language_data): Remove la_filename_extensions initializer.
568 (asm_language::filename_extensions): New member function.
569 (minimal_language_data): Remove la_filename_extensions
570 initializer.
571 * d-lang.c (d_extensions): Delete, moved into
572 d_language::filename_extensions.
573 (d_language_data): Remove la_filename_extensions initializer.
574 (d_language::filename_extensions): New member function.
575 * f-lang.c (f_extensions): Delete, moved into
576 f_language::filename_extensions.
577 (f_language_data): Remove la_filename_extensions initializer.
578 (f_language::filename_extensions): New member function.
579 * go-lang.c (go_language_data): Remove la_filename_extensions
580 initializer.
581 * language.c (add_set_language_command): Update now that
582 filename_extensions returns a vector.
583 (unknown_language_data): Remove la_filename_extensions
584 initializer.
585 (auto_language_data): Likewise.
586 * language.h (language_data): Remove la_filename_extensions field.
587 (language_defn::filename_extensions): New member function.
588 * m2-lang.c (m2_language_data): Remove la_filename_extensions
589 initializer.
590 * objc-lang.c (objc_extensions): Delete, moved into
591 objc_language::filename_extensions.
592 (objc_language_data): Remove la_filename_extensions initializer.
593 (objc_language::filename_extensions): New member function.
594 * opencl-lang.c (opencl_language_data): Remove
595 la_filename_extensions initializer.
596 * p-lang.c (pascal_extensions): Delete, moved into
597 pascal_language::filename_extensions.
598 (pascal_language_data): Remove la_filename_extensions initializer.
599 (pascal_language::filename_extensions): New member function.
600 * rust-lang.c (rust_extensions): Delete, moved into
601 rust_language::filename_extensions.
602 (rust_language_data): Remove la_filename_extensions initializer.
603 (rust_language::filename_extensions): New member function.
604 * symfile.c (add_filename_language): Add new assert.
605
606 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * ada-lang.c (ada_language_data): Remove la_name and
609 la_natural_name initializers.
610 (ada_language::name): New member function.
611 (ada_language::natural_name): New member function.
612 * c-lang.c (c_language_data): Remove la_name and
613 la_natural_name initializers.
614 (c_language::name): New member function.
615 (c_language::natural_name): New member function.
616 (cplus_language_data): Remove la_name and
617 la_natural_name initializers.
618 (cplus_language::name): New member function.
619 (cplus_language::natural_name): New member function.
620 (asm_language_data): Remove la_name and
621 la_natural_name initializers.
622 (asm_language::name): New member function.
623 (asm_language::natural_name): New member function.
624 (minimal_language_data): Remove la_name and
625 la_natural_name initializers.
626 (minimal_language::name): New member function.
627 (minimal_language::natural_name): New member function.
628 * compile/compile.c (compile_to_object): Update call to
629 lanugage_defn::name.
630 * d-lang.c (d_language_data): Remove la_name and
631 la_natural_name initializers.
632 (d_language::name): New member function.
633 (d_language::natural_name): New member function.
634 * expprint.c (print_subexp_standard): Update call to
635 language_defn::name.
636 (dump_raw_expression): Likewise
637 (dump_prefix_expression): Likewise.
638 * f-lang.c (f_language_data): Remove la_name and
639 la_natural_name initializers.
640 (f_language::name): New member function.
641 (f_language::natural_name): New member function.
642 * go-lang.c (go_language_data): Remove la_name and
643 la_natural_name initializers.
644 (go_language::name): New member function.
645 (go_language::natural_name): New member function.
646 * language.c (show_language_command): Update call to
647 language_defn::name.
648 (set_language_command): Likewise.
649 (language_enum): Likewise.
650 (language_str): Likewise.
651 (add_set_language_command): Likewise, use
652 language_defn::natural_name in the doc string.
653 (unknown_language_data): Remove la_name and
654 la_natural_name initializers.
655 (unknown_language::name): New member function.
656 (unknown_language::natural_name): New member function.
657 (auto_language_data): Remove la_name and
658 la_natural_name initializers.
659 (auto_language::name): New member function.
660 (auto_language::natural_name): New member function.
661 (language_lookup_primitive_type_as_symbol): Update call to
662 language_defn::name.
663 * language.h (language_data): Remove la_name and la_natural_name
664 member variables.
665 (language_defn::name): New member function.
666 (language_defn::natural_name): New member function.
667 * m2-lang.c (m2_language_data): Remove la_name and
668 la_natural_name initializers.
669 (m2_language::name): New member function.
670 (m2_language::natural_name): New member function.
671 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
672 language_defn::natural_name.
673 * objc-lang.c (objc_language_data): Remove la_name and
674 la_natural_name initializers.
675 (objc_language::name): New member function.
676 (objc_language::natural_name): New member function.
677 * opencl-lang.c (opencl_language_data): Remove la_name and
678 la_natural_name initializers.
679 (opencl_language::name): New member function.
680 (opencl_language::natural_name): New member function.
681 * p-lang.c (pascal_language_data): Remove la_name and
682 la_natural_name initializers.
683 (pascal_language::name): New member function.
684 (pascal_language::natural_name): New member function.
685 * rust-lang.c (rust_language_data): Remove la_name and
686 la_natural_name initializers.
687 (rust_language::name): New member function.
688 (rust_language::natural_name): New member function.
689 * symtab.c (lookup_language_this): Update call to
690 language_defn::name.
691
692 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
693
694 * ada-lang.c (ada_language_data): Remove la_name_of_this
695 initializer.
696 * ax-gdb.c (gen_expr): Update call to name_of_this.
697 * c-exp.y (classify_name): Likewise.
698 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
699 (cplus_language_data): Likewise.
700 (cplus_language::name_of_this): New member function.
701 (asm_language_data): Remove la_name_of_this initializer.
702 (minimal_language_data): Likewise.
703 * d-lang.c (d_language_data): Likewise.
704 (d_language::name_of_this): New member function.
705 * expprint.c (print_subexp_standard): Update call to name_of_this.
706 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
707 * go-lang.c (go_language_data): Likewise.
708 * language.c (unknown_language_data): Likewise.
709 (unknown_language::name_of_this): New member function.
710 (auto_language_data): Remove la_name_of_this initializer.
711 (auto_language::name_of_this): New member function.
712 * language.h (language_data): Delete la_name_of_this member
713 variable.
714 (language_defn::name_of_this): New member function.
715 * m2-lang.c (m2_language_data): Remove la_name_of_this
716 initializer.
717 * objc-lang.c (objc_language_data): Likewise.
718 (objc_language::name_of_this): New member function.
719 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
720 initializer.
721 * p-lang.c (pascal_language_data): Likewise.
722 (pascal_language::name_of_this): New member function.
723 * rust-lang.c (rust_language_data): Remove la_name_of_this
724 initializer.
725 * symtab.c (lookup_language_this): Update call to name_of_this.
726 (lookup_symbol_aux): Likewise.
727 * valops.c (value_of_this): Likewise.
728
729 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
730
731 * ada-lang.c (ada_language_data): Remove
732 la_struct_too_deep_ellipsis initializer.
733 (ada_language::struct_too_deep_ellipsis): New member function.
734 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
735 initializer.
736 (cplus_language_data): Likewise.
737 (asm_language_data): Likewise.
738 (minimal_language_data): Likewise.
739 * cp-valprint.c (cp_print_value): Update call to
740 struct_too_deep_ellipsis.
741 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
742 initializer.
743 * f-lang.c (f_language_data): Likewise.
744 (f_language::struct_too_deep_ellipsis): New member function.
745 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
746 initializer.
747 * language.c (unknown_language_data): Likewise.
748 (auto_language_data): Likewise.
749 * language.h (language_data): Delete la_struct_too_deep_ellipsis
750 member variable.
751 (language_defn::struct_too_deep_ellipsis): New member function.
752 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
753 initializer.Q
754 * objc-lang.c (objc_language_data): Likewise.
755 * opencl-lang.c (opencl_language_data): Likewise.
756 * p-lang.c (pascal_language_data): Likewise.
757 * rust-lang.c (rust_language_data): Likewise.
758 * valprint.c (val_print_check_max_depth): Update call to
759 struct_too_deep_ellipsis.
760
761 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
762
763 * MAINTAINERS (Write After Approval): Add myself.
764
765 2020-09-15 Tom Tromey <tom@tromey.com>
766
767 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
768 Remove.
769
770 2020-09-15 Tom Tromey <tom@tromey.com>
771
772 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
773 and TYPE_CODE_METHODPTR cases.
774 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
775 (c_value_print_inner): Update.
776 * valprint.c (generic_value_print_memberptr): New function, from
777 c_value_print_memberptr.
778 (generic_value_print): Use it. Call cplus_print_method_ptr.
779
780 2020-09-15 Tom Tromey <tromey@adacore.com>
781
782 * python/python-internal.h (PyInt_FromLong): Remove define.
783 * python/py-value.c (convert_value_from_python): Use
784 gdb_py_object_from_longest.
785 * python/py-type.c (typy_get_code): Use
786 gdb_py_object_from_longest.
787 * python/py-symtab.c (salpy_get_line): Use
788 gdb_py_object_from_longest.
789 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
790 gdb_py_object_from_longest.
791 * python/py-record.c (recpy_gap_reason_code): Use
792 gdb_py_object_from_longest.
793 * python/py-record-btrace.c (recpy_bt_insn_size)
794 (recpy_bt_func_level, btpy_list_count): Use
795 gdb_py_object_from_longest.
796 * python/py-infthread.c (gdbpy_create_ptid_object): Use
797 gdb_py_object_from_longest. Fix error handling.
798 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
799 gdb_py_object_from_longest.
800 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
801 gdb_py_object_from_longest.
802 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
803 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
804 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
805
806 2020-09-15 Tom Tromey <tromey@adacore.com>
807
808 * python/python.c (gdbpy_parameter_value): Use
809 gdb_py_object_from_ulongest.
810
811 2020-09-15 Tom Tromey <tromey@adacore.com>
812
813 * python/py-infevents.c (create_register_changed_event_object):
814 Use gdb_py_object_from_longest.
815 * python/py-exitedevent.c (create_exited_event_object): Use
816 gdb_py_object_from_longest.
817
818 2020-09-15 Tom Tromey <tromey@adacore.com>
819
820 * python/python.c (gdbpy_parameter_value): Use
821 gdb_py_object_from_longest.
822 * python/py-type.c (convert_field, typy_range): Use
823 gdb_py_object_from_longest.
824 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
825 gdb_py_object_from_longest.
826 * python/py-lazy-string.c (stpy_get_length): Use
827 gdb_py_object_from_longest.
828 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
829 gdb_py_object_from_longest.
830 * python/py-infevents.c (create_memory_changed_event_object): Use
831 gdb_py_object_from_longest.
832 * python/py-inferior.c (infpy_get_num): Use
833 gdb_py_object_from_longest.
834 (infpy_get_pid): Likewise.
835
836 2020-09-15 Tom Tromey <tromey@adacore.com>
837
838 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
839 defines.
840 * python/py-value.c (valpy_long): Use
841 gdb_py_object_from_ulongest.
842 * python/py-symtab.c (salpy_get_pc): Use
843 gdb_py_object_from_ulongest.
844 (salpy_get_last): Likewise.
845 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
846 gdb_py_object_from_ulongest.
847 * python/py-lazy-string.c (stpy_get_address): Use
848 gdb_py_object_from_ulongest.
849 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
850 * python/py-arch.c (archpy_disassemble): Use
851 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
852 error handling.
853
854 2020-09-15 Tom Tromey <tromey@adacore.com>
855
856 * python/python-internal.h (gdb_py_long_from_longest): Remove
857 defines.
858 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
859 * python/py-type.c (convert_field, typy_get_sizeof): Use
860 gdb_py_object_from_longest.
861 * python/py-record-btrace.c (btpy_list_index): Use
862 gdb_py_object_from_longest.
863
864 2020-09-15 Tom Tromey <tromey@adacore.com>
865
866 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
867 * python/py-record.c (recpy_element_number): Use
868 gdb_py_object_from_longest.
869 (recpy_gap_number): Likewise.
870
871 2020-09-15 Tom Tromey <tromey@adacore.com>
872
873 * top.c (ui::ui): Update.
874 (highest_ui_num): Remove.
875 * top.h (struct ui) <num>: Remove.
876
877 2020-09-15 Tom Tromey <tromey@adacore.com>
878
879 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
880 * ui-style.c (ansi_regex_text): Now array.
881 * rust-exp.y (number_regex_text): Now array.
882 * linespec.c (linespec_quote_characters): Now array.
883 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
884 Now arrays.
885
886 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
887
888 * debuginfod-support.c (debuginfod_client_deleter): New.
889 (debuginfod_client_up): New.
890 (debuginfod_init): Return debuginfod_client_up.
891 (debuginfod_source_query): Adjust.
892 (debuginfod_debuginfo_query): Adjust.
893
894 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
895
896 * debuginfod-support.c (debuginfod_source_query): Use
897 make_unique_xstrdup.
898
899 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
900
901 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
902 with `type::instance_flags`.
903
904 2020-09-14 Michael Mullin <masmullin@gmail.com>
905
906 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
907 Remove baton parameter.
908
909 2020-09-14 Pedro Alves <pedro@palves.net>
910
911 * Makefile.in (SELFTESTS_SRCS): Add
912 unittests/enum-flags-selftests.c.
913 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
914 btrace_function_flags instead of enum btrace_function_flag.
915 * compile/compile-c-types.c (convert_qualified): Use
916 enum_flags::raw.
917 * compile/compile-cplus-symbols.c (convert_one_symbol)
918 (convert_symbol_bmsym):
919 * compile/compile-cplus-types.c (compile_cplus_convert_method)
920 (compile_cplus_convert_struct_or_union_methods)
921 (compile_cplus_instance::convert_qualified_base):
922 * go-exp.y (parse_string_or_char): Add cast to int.
923 * unittests/enum-flags-selftests.c: New file.
924 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
925 type to btrace_thread_flags from btrace_thread_flag.
926 (record_btrace_cancel_resume, record_btrace_step_thread): Change
927 local's type to btrace_thread_flags from btrace_thread_flag. Add
928 cast in DEBUG call.
929
930 2020-09-14 Pedro Alves <pedro@palves.net>
931
932 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
933 * gdbtypes.c (address_space_name_to_int): Rename to ...
934 (address_space_name_to_type_instance_flags): ... this.
935 (address_space_int_to_name): Rename to ...
936 (address_space_type_instance_flags_to_name): ... this.
937 * gdbtypes.h (address_space_name_to_int): Rename to ...
938 (address_space_name_to_type_instance_flags): ... this.
939 (address_space_int_to_name): Rename to ...
940 (address_space_type_instance_flags_to_name): ... this.
941 * type-stack.c (type_stack::insert): Adjust to rename.
942 * type-stack.h (type_stack::insert): Likewise.
943
944 2020-09-14 Pedro Alves <pedro@palves.net>
945 Andrew Burgess <andrew.burgess@embecosm.com>
946
947 * avr-tdep.c (avr_address_class_type_flags): Return
948 type_instance_flags.
949 (avr_address_class_type_flags_to_name): Take a
950 type_instance_flags.
951 (avr_address_class_name_to_type_flags): Return bool and take a
952 type_instance_flags.
953 * d-lang.c (build_d_types): Use type::set_instance_flags.
954 * ft32-tdep.c (ft32_address_class_type_flags): Return
955 type_instance_flags.
956 (ft32_address_class_type_flags_to_name): Take a
957 type_instance_flags.
958 (ft32_address_class_name_to_type_flags): Return bool and take a
959 type_instance_flags.
960 (ft32_gdbarch_init): Use type::set_instance_flags.
961 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
962 * gdbarch.h, gdbarch.c: Regenerate.
963 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
964 (address_class_name_to_type_flags): Use type_instance_flags and
965 bool.
966 * gdbtypes.c (address_space_name_to_int)
967 (address_space_int_to_name, make_qualified_type): Use
968 type_instance_flags.
969 (make_qualified_type): Use type_instance_flags and
970 type::set_instance_flags.
971 (make_type_with_address_space, make_cv_type, make_vector_type)
972 (check_typedef): Use type_instance_flags.
973 (recursive_dump_type): Cast type_instance_flags to unsigned for
974 printing.
975 (copy_type_recursive): Use type::set_instance_flags.
976 (gdbtypes_post_init): Use type::set_instance_flags.
977 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
978 <m_instance_flags>: ... this.
979 <instance_flags, set_instance_flags>: New methods.
980 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
981 (SET_TYPE_INSTANCE_FLAGS): New.
982 (address_space_name_to_int, address_space_int_to_name)
983 (make_type_with_address_space): Pass flags using
984 type_instance_flags instead of int.
985 * stabsread.c (cleanup_undefined_types_noname): Use
986 type::set_instance_flags.
987 * s390-tdep.c (s390_address_class_type_flags): Return
988 type_instance_flags.
989 (s390_address_class_type_flags_to_name): Take a
990 type_instance_flags.
991 (s390_address_class_name_to_type_flags): Return bool and take a
992 type_instance_flags.
993 * type-stack.c (type_stack::follow_types): Use
994 type_instance_flags.
995 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
996
997 2020-09-14 Tom Tromey <tromey@adacore.com>
998
999 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1000 * x86-tdep.c (x86_is_thunk_register_name)
1001 (x86_in_indirect_branch_thunk): Update.
1002 * sparc64-tdep.c (sparc64_fpu_register_names)
1003 (sparc64_cp0_register_names, sparc64_register_names)
1004 (sparc64_pseudo_register_names): Now const.
1005 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1006 cp0_registers_num>: Now const.
1007 * sparc-tdep.c (sparc_core_register_names)
1008 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1009 (sparc32_pseudo_register_names): Now const.
1010 (validate_tdesc_registers): Update.
1011 * rust-lang.c (rust_extensions): Now const.
1012 * p-lang.c (p_extensions): Now const.
1013 * objc-lang.c (objc_extensions): Now const.
1014 * nto-tdep.c (nto_thread_state_str): Now const.
1015 * moxie-tdep.c (moxie_register_names): Now const.
1016 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1017 Now const.
1018 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1019 (mips_linux_reg_names): Now const.
1020 (mips_gdbarch_init): Update.
1021 * microblaze-tdep.c (microblaze_register_names): Now const.
1022 * m68k-tdep.c (m68k_register_names): Now const.
1023 * m32r-tdep.c (m32r_register_names): Now const.
1024 * ia64-tdep.c (ia64_register_names): Now const.
1025 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1026 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1027 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1028 ymm_avx512_register_names, pkeys_register_names>: Now const.
1029 * i386-tdep.c (i386_register_names, i386_zmm_names)
1030 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1031 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1032 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1033 * f-lang.c (f_extensions): Now const.
1034 * d-lang.c (d_extensions): Now const.
1035 * csky-tdep.c (csky_register_names): Now const.
1036 * charset.c (default_charset_names, charset_enum): Now const.
1037 (_initialize_charset): Update.
1038 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1039 const.
1040 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1041 (bsd_uthread_solib_loaded): Update.
1042 (bsd_uthread_state): Now const.
1043 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1044 (amd64_ymm_avx512_names, amd64_ymmh_names)
1045 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1046 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1047 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1048 (amd64_dword_names): Now const.
1049 * agent.c (can_use_agent_enum): Now const.
1050 * ada-tasks.c (task_states, long_task_states): Now const.
1051 * ada-lang.c (known_runtime_file_name_patterns)
1052 (known_auxiliary_function_name_patterns, attribute_names)
1053 (standard_exc, ada_extensions): Now const.
1054
1055 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1056
1057 * bcache.h (struct bcache) <bcache>: Remove constructor.
1058 <m_hash_function, m_compare_function>: Remove.
1059 <~bcache>: Make virtual.
1060 <compare>: Remove static method, introduce virtual method.
1061 <default_hash>: Remove.
1062 <hash>: New virtual method.
1063 * bcache.c (bcache::expand_hash_table): Update.
1064 (bcache::insert): Update.
1065 (bcache::hash): New.
1066 (bcache::compare): Update comment and parameter names.
1067 * gdbtypes.c (types_deeply_equal): Update.
1068 * psymtab.h (struct psymbol_bcache): New struct.
1069 (class psymtab_storage) <psymtab_storage>: Make default.
1070 <psymbol_cache>: Change type to psymbol_bcache.
1071 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1072 (psymbol_hash): Change to...
1073 (psymbol_bcache::hash): ... this.
1074 (psymbol_compare): Change to...
1075 (psymbol_bcache::compare): ... this.
1076
1077 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1078
1079 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1080 checking for initial lwp.
1081
1082 2020-09-14 Tom Tromey <tromey@adacore.com>
1083
1084 * m68k-tdep.c (m68k_extract_return_value): Use
1085 pointer_result_regnum.
1086 (m68k_store_return_value): Likewise.
1087 (m68k_reg_struct_return_p): Handle vectors and arrays.
1088 (m68k_return_value): Handle arrays.
1089 (m68k_svr4_return_value): Fix single-element aggregate handling.
1090 Handle long double. Adjust for embedded ABI.
1091 (m68k_svr4_init_abi): Set pointer_result_regnum.
1092 (m68k_embedded_init_abi): New function.
1093 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1094 (m68k_osabi_sniffer): New function.
1095 (_initialize_m68k_tdep): Register osabi sniffer.
1096 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1097 member.
1098
1099 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1100
1101 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1102 with gdb::unique_xmalloc_ptr<char>.
1103
1104 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1105
1106 * xml-support.h (xml_fetch_another): Change type to be a
1107 function_view.
1108 (xml_process_xincludes): Remove baton parameter.
1109 (xml_fetch_content_from_file): Change baton parameter to
1110 dirname.
1111 * xml-support.c (struct xinclude_parsing_data)
1112 <xinclude_parsing_data>: Remove baton parameter.
1113 <fetcher_baton>: Remove.
1114 (xinclude_start_include): Adjust.
1115 (xml_process_xincludes): Adjust.
1116 (xml_fetch_content_from_file): Replace baton parameter with
1117 dirname.
1118 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1119 (xml_init_syscalls_info): Use a lambda.
1120 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1121 (file_read_description_xml): Use a lambda.
1122 (fetch_available_features_from_target): Change baton parameter
1123 to target_ops.
1124 (target_read_description_xml): Use a lambda.
1125 (target_fetch_description_xml): Use a lambda.
1126 (string_read_description_xml): Update.
1127
1128 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1129
1130 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1131 uses with type::endianity_is_not_default.
1132
1133 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1134
1135 * gdbtypes.h (struct type) <endianity_is_not_default,
1136 set_endianity_is_not_default>: New methods.
1137 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1138 type::endianity_is_not_default, change all write call sites to
1139 use type::set_endianity_is_not_default.
1140
1141 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1142
1143 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1144 uses with type::is_fixed_instance.
1145
1146 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1147
1148 * gdbtypes.h (struct type) <is_fixed_instance,
1149 set_is_fixed_instance>: New methods.
1150 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1151 write call sites to use type::set_is_fixed_instance.
1152
1153 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1154
1155 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1156 uses with type::is_gnu_ifunc.
1157
1158 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1159
1160 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1161 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1162 use type::set_is_gnu_ifunc.
1163
1164 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1165
1166 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1167 uses with type::stub_is_supported.
1168
1169 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1170
1171 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1172 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1173 use type::set_stub_is_supported.
1174
1175 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1176
1177 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1178 uses with type::is_vector.
1179
1180 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1181
1182 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1183 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1184 use type::set_is_vector.
1185
1186 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1187
1188 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1189 uses with type::has_varargs.
1190
1191 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1192
1193 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1194 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1195 use type::set_has_varargs.
1196
1197 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1198
1199 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1200 uses with type::is_prototyped.
1201
1202 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1203
1204 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1205 New methods.
1206 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1207 call sites to use type::set_is_prototyped.
1208
1209 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1210
1211 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1212 uses with type::target_is_stub.
1213
1214 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1215
1216 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1217 New methods.
1218 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1219 sites to use type::set_target_is_stub.
1220
1221 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1222
1223 * gdbtypes.h (TYPE_STUB): Remove, replace all
1224 uses with type::is_stub.
1225
1226 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1227
1228 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1229 (TYPE_STUB): Use type::is_stub, change all write call sites to
1230 use type::set_is_stub.
1231
1232 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1233
1234 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1235 type::has_no_signedness.
1236
1237 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1238
1239 * gdbtypes.h (struct type) <has_no_signedness,
1240 set_has_no_signedness>: New methods.
1241 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1242 call sites to use type::set_has_no_signedness.
1243
1244 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1245
1246 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1247 type::is_unsigned.
1248
1249 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1250
1251 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1252 methods.
1253 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1254 sites to use type::set_is_unsigned.
1255
1256 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1257 Adam Renquinha <arenquinha@cimeq.qc.ca>
1258
1259 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1260 pointer and stack frame offset when unwinding.
1261
1262 2020-09-13 Pedro Alves <pedro@palves.net>
1263
1264 * NEWS: Document "-break-insert --qualified".
1265 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1266
1267 2020-09-13 Pedro Alves <pedro@palves.net>
1268
1269 * linespec.c (classify_mtype, compare_msyms): Delete.
1270 (search_minsyms_for_name): Remove classification logic. Instead
1271 filter out trampoline symbols if we also found an external
1272 function of the same name.
1273
1274 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1275
1276 * NEWS: Create a new section for the next release branch.
1277 Rename the section of the current branch, now that it has
1278 been cut.
1279
1280 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1281
1282 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1283 * version.in: Bump version to 11.0.50.DATE-git.
1284
1285 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1286
1287 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1288
1289 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1290 Felix Willgerodt <Felix.Willgerodt@intel.com>
1291
1292 * gdbarch.sh: Added bfloat16 type.
1293 * gdbarch.c: Regenerated.
1294 * gdbarch.h: Regenerated.
1295 * gdbtypes.c (floatformats_bfloat16): New struct.
1296 (gdbtypes_post_init): Add builtin_bfloat16.
1297 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1298 (floatformats_bfloat16): New struct.
1299 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1300 (i386_ymm_type): Add field "v16_bfloat16"
1301 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1302 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1303 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1304 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1305 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1306 * features/i386/64bit-avx512.c: Regenerated.
1307 * features/i386/64bit-sse.xml: Add bfloat16 type.
1308 * features/i386/64bit-sse.c: Regenerated.
1309
1310 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1311
1312 * i386-tdep.c (i386_zmm_type): Fix field names.
1313 (i386_ymm_type): Fix field names.
1314
1315 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1316
1317 * breakpoint.c: Fix typo in the help message of the
1318 "set breakpoint condition-evaluation" command.
1319
1320 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1321
1322 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1323 * (nbsd_nat_target::pid_to_exec_file)
1324 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1325 (nbsd_nat_target::post_startup_inferior)
1326 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1327 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1328 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1329 * (nbsd_thread_lister): Remove.
1330
1331 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1332
1333 * fork-inferior.c (startup_inferior): Avoid double free.
1334
1335 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1336
1337 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1338 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1339
1340 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1341
1342 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1343 * netbsd-nat.c: Include <sys/ptrace.h>.
1344 * (netbsd_nat::enable_proc_events): Add.
1345
1346 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1347
1348 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1349 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1350 (netbsd_nat::for_each_thread): Add.
1351 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1352 "gdbsupport/common-debug.h".
1353 * (netbsd_nat::netbsd_thread_lister)
1354 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1355 (netbsd_nat::for_each_thread): Add.
1356
1357 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1358
1359 * netbsd-nat.h: Include <unistd.h>.
1360 * (netbsd_nat::pid_to_exec_file): Add.
1361 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1362 * (netbsd_nat::pid_to_exec_file) Add.
1363
1364 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1365
1366 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1367
1368 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1369
1370 * netbsd-nat.h: New file.
1371 * netbsd-nat.c: Likewise.
1372
1373 2020-09-09 Tom Tromey <tromey@adacore.com>
1374
1375 * ada-lang.c (remove_extra_symbols): Do not increment when
1376 removing an element
1377
1378 2020-09-08 Tom Tromey <tromey@adacore.com>
1379
1380 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1381
1382 2020-09-08 Tom Tromey <tromey@adacore.com>
1383
1384 PR win32/25302:
1385 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1386 (gdb_bfd_init_data): New function.
1387 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1388
1389 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1390
1391 * infrun.c (fetch_inferior_event): Use
1392 `switch_to_target_no_thread` to switch the target.
1393
1394 2020-09-06 Tom Tromey <tom@tromey.com>
1395
1396 * symfile.h (dwarf2_free_objfile): Don't declare.
1397
1398 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1399
1400 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1401 to match 16 byte real/complex type generated by Flang compiler.
1402
1403 2020-09-03 Tom de Vries <tdevries@suse.de>
1404
1405 PR breakpoint/26546
1406 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1407 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1408
1409 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1410
1411 * maint.c (index_digits): New function.
1412 (struct maint_print_section_data): Remove.
1413 (print_bfd_section_info): Remove print_data parameter, add arg
1414 and index_digits.
1415 (print_objfile_section_info): Likewise.
1416 (print_bfd_section_info_maybe_relocated): Likewise (plus
1417 objfile).
1418 (maintenance_info_sections): Adjust calls.
1419
1420 2020-09-02 Tom Tromey <tromey@adacore.com>
1421
1422 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1423 for null pointers.
1424 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1425
1426 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1427
1428 * bcache.h (struct bcache) <insert>: Change type of `added` to
1429 pointer to bool.
1430 * bcache.c (bcache::insert): Likewise.
1431 * gdbtypes.c (check_types_worklist): Adjust.
1432 * psymtab.c (add_psymbol_to_bcache): Adjust.
1433
1434 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1435
1436 * corelow.c (unordered_set): Include.
1437 (class core_target): Add field 'm_core_unavailable_mappings'.
1438 (core_target::build_file_mappings): Print only one warning
1439 per inaccessible file. Add unavailable/broken mappings
1440 to m_core_unavailable_mappings.
1441 (core_target::xfer_partial): Call...
1442 (core_target::xfer_memory_via_mappings): New method.
1443
1444 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1445
1446 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1447 type to bool.
1448
1449 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1450
1451 * dwarf2/read.c (struct field_info): Fix indentation.
1452
1453 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1454
1455 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1456 ordering in comment.
1457 * frame.c (frame_id_eq): Fix indentation.
1458
1459 2020-08-31 Scott Linder <scott@scottlinder.com>
1460 Simon Marchi <simon.marchi@efficios.com>
1461
1462 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1463 inline frame ids in outer frame.
1464
1465 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1466
1467 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1468 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1469 (outer_frame_id): Use FID_STACK_OUTER instead of
1470 FID_STACK_INVALID.
1471 (frame_id_p): Don't check for outer_frame_id.
1472
1473 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1474
1475 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1476 regnum/frame in value. Call allocate_value_lazy.
1477 * frame.c (frame_unwind_register_value): Use
1478 val_print_not_saved.
1479
1480 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1481
1482 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1483
1484 2020-08-29 Pedro Alves <pedro@palves.net>
1485
1486 * progspace.c (print_program_space): Use all_inferiors. Switch to
1487 the inferior before calling target_pid_to_str.
1488
1489 2020-08-28 Tom Tromey <tom@tromey.com>
1490
1491 * xcoffread.c (xcoff_end_psymtab): Update comment.
1492 * dbxread.c (dbx_end_psymtab): Update comment.
1493
1494 2020-08-28 Tom de Vries <tdevries@suse.de>
1495
1496 PR breakpoint/26544
1497 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1498 event_location.
1499 (create_breakpoint): Same.
1500 (base_breakpoint_decode_location): Same.
1501 (bkpt_create_sals_from_location): Same.
1502 (bkpt_decode_location): Same.
1503 (bkpt_probe_create_sals_from_location): Same.
1504 (bkpt_probe_decode_location): Same.
1505 (tracepoint_create_sals_from_location): Same.
1506 (tracepoint_decode_location): Same.
1507 (tracepoint_probe_decode_location): Same.
1508 (strace_marker_create_sals_from_location): Same.
1509 (strace_marker_decode_location): Same.
1510 (create_sals_from_location_default): Same.
1511 (decode_location_default): Same.
1512 * breakpoint.h (struct breakpoint_ops): Same.
1513 (create_breakpoint): Same.
1514 * linespec.h (decode_line_full): Same.
1515 * linespec.c (decode_line_full): Same. Throw error if
1516 result.size () == 0.
1517
1518 2020-08-27 Pedro Alves <pedro@palves.net>
1519
1520 PR gdb/26524
1521 * breakpoint.c (until_break_fsm) <location_breakpoint,
1522 caller_breakpoint>: Delete fields.
1523 <breakpoints>: New field.
1524 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1525 two individual breakpoints.
1526 (until_break_fsm::should_stop): Loop over breakpoints in the
1527 breakpoint vector.
1528 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1529 vector.
1530 (until_break_command): Handle location expanding into multiple
1531 sals.
1532
1533 2020-08-27 Pedro Alves <pedro@palves.net>
1534
1535 PR gdb/26523
1536 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1537 bp_until breakpoints user-specified locations. Update intro
1538 comment.
1539
1540 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1541
1542 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1543 gdb_bfd_sections): New.
1544 * maint.c (print_bfd_section_info): Change param type to
1545 maint_print_section_data.
1546 (print_objfile_section_info): Likewise.
1547 (print_bfd_section_info_maybe_relocated): Likewise.
1548 (maintenance_info_sections): Use gdb_bfd_sections.
1549
1550 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1551
1552 * MAINTAINERS: Add ARC target and maintainer.
1553
1554 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1555
1556 * configure.tgt: ARC support for GNU/Linux.
1557 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1558 * arc-linux-tdep.c: New file.
1559 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1560 * arc-tdep.c (arc_write_pc): Use it.
1561
1562 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1563
1564 * arc-tdep.c (arc_check_for_hardware_loop): New.
1565 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1566
1567 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1568
1569 * arc-tdep.h: Include "gdbarch.h".
1570
1571 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1572
1573 * arch/arc.h
1574 (arc_gdbarch_features): New class to stir the selection of target XML.
1575 (arc_create_target_description): Use FEATURES to choose XML target.
1576 (arc_lookup_target_description): Use arc_create_target_description
1577 to create _new_ target descriptions or return the already created
1578 ones if the FEATURES is the same.
1579 * arch/arc.c: Implementation of prototypes described above.
1580 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1581 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1582 * arc-tdep.c (*_feature_name): Make feature names consistent.
1583 (arc_register_feature): A new struct to hold information about
1584 registers of a particular target/feature.
1585 (arc_check_tdesc_feature): Check if XML provides registers in
1586 compliance with ARC_REGISTER_FEATURE structs.
1587 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1588 (determine_*_reg_feature_set): Which feature name to look for.
1589 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1590 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1591 to expected ISA enums to be used in arc_gdbarch_features structs.
1592 * features/Makefile (FEATURE_XMLFILES): Add new files.
1593 * gdb/features/arc/v1-aux.c: New file.
1594 * gdb/features/arc/v1-aux.xml: Likewise.
1595 * gdb/features/arc/v1-core.c: Likewise.
1596 * gdb/features/arc/v1-core.xml: Likewise.
1597 * gdb/features/arc/v2-aux.c: Likewise.
1598 * gdb/features/arc/v2-aux.xml: Likewise.
1599 * gdb/features/arc/v2-core.c: Likewise.
1600 * gdb/features/arc/v2-core.xml: Likewise.
1601 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1602
1603 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1604 Andrew Burgess <andrew.burgess@embecosm.com>
1605
1606 PR m2/26372
1607 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1608 an assert. Remove single element array indexing pattern as the
1609 MULTI_SUBSCRIPT support will handle this case too.
1610
1611 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1612
1613 * value.h (valprint_check_validity): Move declaration from
1614 here...
1615 * valprint.h (valprint_check_validity): ... to here.
1616
1617 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1618
1619 * debug.h: New file.
1620 * debug.c (debug_prefixed_vprintf): New function.
1621 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1622 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1623
1624 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1625
1626 * infrun.h (infrun_debug_printf_1): New function declaration.
1627 (infrun_debug_printf): New macro.
1628 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1629 throughout.
1630 (infrun_debug_printf): New function.
1631 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1632 (handle_jit_event): Likewise.
1633
1634 2020-08-21 Mark Wielaard <mark@klomp.org>
1635
1636 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1637
1638 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1639
1640 * frame.c (enum class frame_id_status): New.
1641 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1642 (fprintf_frame): Update.
1643 (compute_frame_id): Set frame id status to "computing" on entry.
1644 Set it back to "not_computed" on failure and to "computed" on
1645 success.
1646 (get_frame_id): Assert the frame id is not being computed.
1647 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1648 (create_new_frame): Likewise.
1649 (frame_cleanup_after_sniffer): Update assert.
1650
1651 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1652
1653 * regcache.c (pid_ptid_regcache_map): New type.
1654 (target_ptid_regcache_map): Remove.
1655 (target_pid_ptid_regcache_map): New type.
1656 (regcaches): Change type to target_pid_ptid_regcache_map.
1657 (get_thread_arch_aspace_regcache): Update.
1658 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1659 case.
1660 (regcaches_size): Update.
1661 (regcache_count): Update.
1662 (registers_changed_ptid_target_pid_test): New.
1663 (_initialize_regcache): Register new test.
1664
1665 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1666
1667 * regcache.c (regcache_count): New.
1668 (struct regcache_test_data): New.
1669 (regcache_test_data_up): New.
1670 (populate_regcaches_for_test): New.
1671 (regcaches_test): Remove.
1672 (get_thread_arch_aspace_regcache_test): New.
1673 (registers_changed_ptid_all_test): New.
1674 (registers_changed_ptid_target_test): New.
1675 (registers_changed_ptid_target_ptid_test): New.
1676 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1677 (_initialize_regcache): Register new tests.
1678
1679 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1680
1681 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1682 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1683 gdbarch and aspace parameter. Use current inferior's aspace.
1684 Validate regcache's arch value.
1685 (regcaches_test): Update.
1686
1687 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1688
1689 * regcache.c (regcaches_test): Call registers_changed.
1690
1691 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1692
1693 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1694
1695 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1696
1697 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1698 to find the end of prologue for flang compiled binaries.
1699 * arm-tdep.c (arm_skip_prologue): Likewise.
1700 * i386-tdep.c (i386_skip_prologue): Likewise.
1701 * producer.c (producer_is_llvm): New function.
1702 (producer_parsing_tests): Added new tests for clang/flang.
1703 * producer.h (producer_is_llvm): New declaration.
1704
1705 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1706
1707 * linux-nat.c (linux_nat_debug_printf): New function.
1708 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1709
1710 2020-08-18 Aaron Merey <amerey@redhat.com>
1711
1712 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1713 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1714 (CLIBS): Add DEBUGINFOD_LIBS.
1715
1716 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1717
1718 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1719 'gdbarch_num_regs'.
1720
1721 2020-08-17 Tom Tromey <tromey@adacore.com>
1722
1723 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1724 ada_get_decoded_value returns NULL.
1725
1726 2020-08-17 Tom Tromey <tromey@adacore.com>
1727
1728 * python/py-inferior.c (infpy_search_memory): Use
1729 gdb_py_object_from_ulongest.
1730 * python/py-infevents.c (create_inferior_call_event_object)
1731 (create_memory_changed_event_object): Use
1732 gdb_py_object_from_ulongest.
1733 * python/py-linetable.c (ltpy_entry_get_pc): Use
1734 gdb_py_object_from_ulongest.
1735
1736 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1737
1738 * loc.c (class symbol_needs_eval_context): Fix indentation.
1739
1740 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1741
1742 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1743 bool.
1744
1745 2020-08-17 Tom de Vries <tdevries@suse.de>
1746
1747 PR gdb/26393
1748 * gdbtypes.c (dump_dynamic_prop): New function.
1749 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1750
1751 2020-08-15 Tom de Vries <tdevries@suse.de>
1752
1753 PR backtrace/26390
1754 * stack.c (print_frame_args): Temporarily set the selected
1755 frame to FRAME while printing the frame's arguments.
1756
1757 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1758
1759 PR breakpoints/26385
1760 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1761 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1762
1763 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1764
1765 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1766 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1767 and >= to check return value instead of == -1 and != -1.
1768
1769 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1770
1771 * utils.h (class gdb_argv) <as_array_view>: New method.
1772 * utils.c (gdb_argv_as_array_view_test): New.
1773 (_initialize_utils): Register selftest.
1774 * maint.c (maintenance_selftest): Use the new method.
1775
1776 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1777
1778 * target.h (supports_dumpcore, dumpcore): New
1779 function declarations.
1780 * target.c (supports_dumpcore, dumpcore): New
1781 functions.
1782 * target-delegates.c: Rebuild.
1783 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1784 and target_dumpcore ().
1785
1786 2020-08-13 Aaron Merey <amerey@redhat.com>
1787
1788 * debuginfod-support.c: Replace global variables with user_data.
1789
1790 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1791
1792 * maint.c (maintenance_selftest): Split args and pass array_view
1793 to run_tests.
1794
1795 2020-08-12 Luis Machado <luis.machado@linaro.org>
1796
1797 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1798 type's length.
1799 Use %s and pulongest to print the length.
1800
1801 2020-08-12 Pedro Alves <palves@redhat.com>
1802
1803 * NEWS: Move "Multi-target debugging support" item to the
1804 "Changes since GDB 9" section.
1805
1806 2020-08-12 Pedro Alves <palves@redhat.com>
1807
1808 PR gdb/26336
1809 * progspace.c (program_space::remove_objfile): Invalidate the
1810 frame cache.
1811
1812 2020-08-11 Tom de Vries <tdevries@suse.de>
1813
1814 * MAINTAINERS: Mark ms1 as deleted.
1815
1816 2020-08-10 Luis Machado <luis.machado@linaro.org>
1817
1818 PR gdb/26310
1819
1820 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1821 act accordingly.
1822 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1823 movz/str/stur/stp skipping behavior.
1824
1825 2020-08-10 Luis Machado <luis.machado@linaro.org>
1826
1827 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1828 struct user_sve_header instead of struct sve_context.
1829
1830 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1831
1832 * read.h (dwarf2_fetch_die_loc_sect_off,
1833 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1834 `void *` parameter with function_view.
1835 * read.c (dwarf2_fetch_die_loc_sect_off,
1836 dwarf2_fetch_die_loc_cu_off): Likewise.
1837 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1838 (per_cu_dwarf_call): Adjust.
1839 (get_frame_address_in_block_wrapper): Remove.
1840 (indirect_synthetic_pointer): Adjust.
1841 (get_ax_pc): Remove.
1842 (dwarf2_compile_expr_to_ax): Adjust.
1843
1844 2020-08-08 Tom de Vries <tdevries@suse.de>
1845
1846 PR build/26344
1847 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1848 constructor.
1849 * regcache.c (get_thread_arch_aspace_regcache): Same.
1850
1851 2020-08-07 Tom Tromey <tromey@adacore.com>
1852
1853 * ravenscar-thread.c
1854 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1855 New method.
1856 (ravenscar_thread_target::wait): Check
1857 runtime_initialized.
1858 (ravenscar_thread_target::prepare_to_store)
1859 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1860 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1861 (ravenscar_thread_target::stopped_by_watchpoint)
1862 (ravenscar_thread_target::stopped_data_address)
1863 (ravenscar_thread_target::core_of_thread): Use
1864 scoped_restore_current_thread and
1865 set_base_thread_from_ravenscar_task.
1866
1867 2020-08-07 Tom Tromey <tromey@adacore.com>
1868
1869 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1870
1871 2020-08-07 Tom Tromey <tromey@adacore.com>
1872
1873 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1874 update_inferior_ptid before update_thread_list.
1875 (temporarily_change_regcache_ptid): New class.
1876 (ravenscar_thread_target::fetch_registers)
1877 (ravenscar_thread_target::store_registers)
1878 (ravenscar_thread_target::prepare_to_store): Use base thread when
1879 forwarding operation.
1880
1881 2020-08-07 Tom Tromey <tromey@adacore.com>
1882
1883 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1884 "is_pid" case.
1885
1886 2020-08-07 Tom Tromey <tromey@adacore.com>
1887
1888 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1889 New methods.
1890 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1891 first.
1892 (ravenscar_thread_target::add_thread): Rename from
1893 ravenscar_add_thread.
1894 (ravenscar_thread_target::update_thread_list): Use a lambda.
1895 (ravenscar_thread_target::xfer_partial): New method.
1896
1897 2020-08-07 Tom Tromey <tromey@adacore.com>
1898
1899 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1900 gdb::function_view.
1901 (iterate_over_live_ada_tasks): Change type of argument.
1902 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1903 of argument.
1904
1905 2020-08-07 Tom Tromey <tromey@adacore.com>
1906
1907 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1908 Remove.
1909 (ravenscar_thread_target::extra_thread_info): Remove.
1910 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1911 defer to target beneath for non-Ravenscar threads.
1912
1913 2020-08-07 Tom Tromey <tromey@adacore.com>
1914
1915 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1916 get_base_thread_from_ravenscar_task>: Now methods.
1917 <m_cpu_map>: New member.
1918 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1919 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1920 (ravenscar_thread_target::task_is_currently_active): Update.
1921 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1922 Now a method.
1923 (ravenscar_thread_target::add_active_thread): Put initial thread
1924 into the m_cpu_map.
1925
1926 2020-08-07 Tom Tromey <tromey@adacore.com>
1927
1928 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1929 event_ptid.
1930
1931 2020-08-07 Tom Tromey <tromey@adacore.com>
1932
1933 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1934 runtime_initialized.
1935
1936 2020-08-07 Tom Tromey <tromey@adacore.com>
1937
1938 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1939 add_active_thread.
1940 (ravenscar_thread_target::add_active_thread): Now public.
1941 (ravenscar_inferior_created): Call add_active_thread after pushing
1942 the target.
1943
1944 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1945
1946 * regcache.c (ptid_regcache_map): New type.
1947 (target_ptid_regcache_map): New type.
1948 (regcaches): Change type to target_ptid_regcache_map.
1949 (get_thread_arch_aspace_regcache): Update to regcaches' new
1950 type.
1951 (regcache_thread_ptid_changed): Likewise.
1952 (registers_changed_ptid): Likewise.
1953 (regcaches_size): Likewise.
1954 (regcaches_test): Update.
1955 (regcache_thread_ptid_changed): Update.
1956 * regcache.h (regcache_up): New type.
1957 * gdbsupport/ptid.h (hash_ptid): New struct.
1958
1959 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1960
1961 * observable.h (thread_ptid_changed): Add parameter
1962 `process_stratum_target *`.
1963 * infrun.c (infrun_thread_ptid_changed): Add parameter
1964 `process_stratum_target *` and use it.
1965 (selftests): New namespace.
1966 (infrun_thread_ptid_changed): New function.
1967 (_initialize_infrun): Register selftest.
1968 * regcache.c (regcache_thread_ptid_changed): Add parameter
1969 `process_stratum_target *` and use it.
1970 (regcache_thread_ptid_changed): New function.
1971 (_initialize_regcache): Register selftest.
1972 * thread.c (thread_change_ptid): Pass target to
1973 thread_ptid_changed observable.
1974
1975 2020-08-06 Caroline Tice <cmtice@google.com>
1976
1977 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1978 (struct dwp_sections): Update field comments. Add loclists and
1979 rnglists fields.
1980 (struct virtual_v2_dwo_sections): Rename struct to
1981 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1982 size & offset fields for loclists and rnglists.
1983 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1984 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1985 skipping dummy type units.
1986 (create_dwp_hash_table): Update the large comment above the function to
1987 discuss Version 5 DWP files as well, with references. Update all the
1988 version checks in the function to check for version 5 as well. Add new
1989 section at the end to create dwp hash table for version 5.
1990 (create_dwp_v2_section): Rename function to
1991 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1992 Add V5 to error message text.
1993 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1994 into calls to create_dwp_v2_or_v5_section.
1995 (create_dwo_unit_in_dwp_v5): New function.
1996 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1997 check for version2; add else clause to handle version 5.
1998 (open_and_init_dwo_file): Add code to check dwarf version & only call
1999 create_debug_types_hash_table (with sections.types) if version is not 5;
2000 else call create_debug_type_hash_table, with sections.info.
2001 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2002 version 5.
2003 (dwarf2_locate_v5_dwp_sections): New function.
2004 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2005 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2006
2007 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2008
2009 * regcache.h (class regcache): Remove friend
2010 registers_changed_ptid.
2011 <regcache_thread_ptid_changed>: Remove.
2012 <regcaches>: Remove.
2013 * regcache.c (regcache::regcaches): Rename to...
2014 (regcaches): ... this. Make static.
2015 (get_thread_arch_aspace_regcache): Update.
2016 (regcache::regcache_thread_ptid_changed): Rename to...
2017 (regcache_thread_ptid_changed): ... this. Update.
2018 (class regcache_access): Remove.
2019 (regcaches_test): Update.
2020 (_initialize_regcache): Update.
2021 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2022 <forward_list>.
2023
2024 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2025
2026 * regcache.h (class regcache) <current_regcache>: Rename to...
2027 <regcaches>: ... this. Move doc here.
2028 * regcache.c (regcache::current_regcache) Rename to...
2029 (regcache::regcaches): ... this. Move doc to header.
2030 (get_thread_arch_aspace_regcache): Update.
2031 (regcache::regcache_thread_ptid_changed): Update.
2032 (registers_changed_ptid): Update.
2033 (class regcache_access) <current_regcache_size>: Rename to...
2034 <regcaches_size>: ... this.
2035 (current_regcache_test): Rename to...
2036 (regcaches_test): ... this.
2037 (_initialize_regcache): Update.
2038
2039 2020-08-06 Victor Collod <vcollod@nvidia.com>
2040
2041 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2042
2043 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2044
2045 * corelow.c (core_target::build_file_mappings): Don't output
2046 null pathname in warning.
2047
2048 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2049
2050 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2051 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2052 gdb.dwarf2/dw2-single-line-discriminators.exp,
2053 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2054
2055 2020-08-05 Tom Tromey <tromey@adacore.com>
2056
2057 PR rust/26197:
2058 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2059 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2060 Fix off-by-one and type size errors in ordinary case.
2061
2062 2020-08-05 Tom de Vries <tdevries@suse.de>
2063
2064 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2065 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2066
2067 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2068
2069 * frame.h (frame_id_p): Return bool.
2070 (frame_id_artificial_p): Return bool.
2071 (frame_id_eq): Return bool.
2072 (has_stack_frames): Return bool.
2073 (get_selected_frame): Fix typo in comment.
2074 (get_frame_pc_if_available): Return bool.
2075 (get_frame_address_in_block_if_available): Return bool.
2076 (get_frame_func_if_available): Return bool.
2077 (read_frame_register_unsigned): Return bool.
2078 (get_frame_register_bytes): Return bool.
2079 (safe_frame_unwind_memory): Return bool.
2080 (deprecated_frame_register_read): Return bool.
2081 (frame_unwinder_is): Return bool.
2082 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2083 bool.
2084 <this_id::p>: Likewise.
2085 <prev_p>: Likewise.
2086 (frame_stash_add): Return bool.
2087 (get_frame_id): Use bool.
2088 (frame_id_build_special) Use bool.
2089 (frame_id_build_unavailable_stack): Use bool.
2090 (frame_id_build): Use bool.
2091 (frame_id_p): Return bool, use true/false instead of 1/0.
2092 (frame_id_artificial_p): Likewise.
2093 (frame_id_eq): Likewise.
2094 (frame_id_inner): Likewise.
2095 (get_frame_func_if_available): Likewise.
2096 (read_frame_register_unsigned): Likewise.
2097 (deprecated_frame_register_read): Likewise.
2098 (get_frame_register_bytes): Likewise.
2099 (has_stack_frames): Likewise.
2100 (inside_main_func): Likewise.
2101 (inside_entry_func): Likewise.
2102 (get_frame_pc_if_available): Likewise.
2103 (get_frame_address_in_block_if_available): Likewise.
2104 (frame_unwinder_is): Likewise.
2105 (safe_frame_unwind_memory): Likewise.
2106 (frame_unwind_arch): Likewise.
2107
2108 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2109
2110 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2111 type to cached_copy_status.
2112 (fprintf_frame): Adjust.
2113 (get_frame_func_if_available): Adjust.
2114 (frame_cleanup_after_sniffer): Adjust.
2115
2116 2020-08-04 Mark Wielaard <mark@klomp.org>
2117
2118 * MAINTAINERS (Write After Approval): Update email address.
2119
2120 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2121
2122 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2123 dynamic_prop::const_val.
2124
2125 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2126
2127 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2128 dynamic_prop::kind.
2129
2130 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2131
2132 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2133
2134 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2135
2136 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2137
2138 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2139 Jose E. Marchesi <jose.marchesi@oracle.com>
2140
2141 * configure.tgt: Add entry for bpf-*-*.
2142 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2143 (ALLDEPFILES): Add bpf-tdep.c.
2144 * bpf-tdep.c: New file.
2145 * MAINTAINERS: Add bpf target and maintainer.
2146 * NEWS: Mention the support for the new target.
2147
2148 2020-08-04 Tom de Vries <tdevries@suse.de>
2149
2150 PR symtab/23270
2151 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2152 Error.
2153
2154 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2155
2156 * syscalls/freebsd.xml: Regenerate.
2157
2158 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2159
2160 * syscalls/update-freebsd.sh: Fix usage and year range.
2161
2162 2020-08-03 Tom de Vries <tdevries@suse.de>
2163
2164 PR symtab/26333
2165 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2166 DW_LNE_lo_user/DW_LNE_hi_user range.
2167
2168 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2169
2170 PR ada/26318
2171 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2172 kind.
2173
2174 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2175
2176 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2177
2178 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2179
2180 * breakpoint.c (set_breakpoint_condition): Update the condition
2181 expressions after checking that the input condition string parses
2182 successfully and does not contain junk at the end.
2183
2184 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2185
2186 * breakpoint.c (set_breakpoint_condition): Update the
2187 condition string after parsing the new condition successfully.
2188
2189 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2190
2191 * proc-api.c (_STRUCTURED_PROC): Don't define.
2192 * proc-events.c: Likewise.
2193 * proc-flags.c: Likewise.
2194 * proc-why.c: Likewise.
2195 * procfs.c: Likewise.
2196
2197 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2198 * configure, config.in: Regenerate.
2199
2200 2020-07-30 Tom de Vries <tdevries@suse.de>
2201
2202 PR build/26320
2203 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2204 m_red/m_green/m_blue in a union.
2205
2206 2020-07-29 Tom de Vries <tdevries@suse.de>
2207
2208 PR tdep/26280
2209 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2210
2211 2020-07-28 Tom Tromey <tromey@adacore.com>
2212
2213 PR symtab/26270:
2214 * symtab.h (find_pc_partial_function_sym): Declare.
2215 * cli/cli-cmds.c (disassemble_command): Use
2216 find_pc_partial_function_sym. Check asm_demangle.
2217 * blockframe.c (cache_pc_function_sym): New global.
2218 (cache_pc_function_name): Remove.
2219 (clear_pc_function_cache): Update.
2220 (find_pc_partial_function_sym): New function, from
2221 find_pc_partial_function.
2222 (find_pc_partial_function): Rewrite using
2223 find_pc_partial_function_sym.
2224
2225 2020-07-28 Tom Tromey <tromey@adacore.com>
2226
2227 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2228 help. Add usage.
2229
2230 2020-07-28 Tom Tromey <tromey@adacore.com>
2231
2232 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2233 <DW_OP_GNU_variable_value>: Cast to address type.
2234
2235 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2236
2237 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2238 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2239 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2240 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2241 (nbsd_get_siginfo_type): New.
2242 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2243 (_initialize_nbsd_tdep): New.
2244
2245 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2246
2247 PR binutils/26301
2248 * configure: Regenerated.
2249
2250 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2251
2252 PR binutils/26301
2253 * configure: Regenerated.
2254
2255 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 * python/py-frame.c: Remove 'user-regs.h' include.
2258 (frapy_read_register): Rewrite to make use of
2259 gdbpy_parse_register_id.
2260 * python/py-registers.c (gdbpy_parse_register_id): New function,
2261 moved here from python/py-unwind.c. Updated the return type, and
2262 also accepts register descriptor objects.
2263 * python/py-unwind.c: Remove 'user-regs.h' include.
2264 (pyuw_parse_register_id): Moved to python/py-registers.c.
2265 (unwind_infopy_add_saved_register): Update to use
2266 gdbpy_parse_register_id.
2267 (pending_framepy_read_register): Likewise.
2268 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2269
2270 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2271
2272 * python/py-registers.c: Add 'user-regs.h' include.
2273 (register_descriptor_iter_find): New function.
2274 (register_descriptor_iterator_object_methods): New static global
2275 methods array.
2276 (register_descriptor_iterator_object_type): Add pointer to methods
2277 array.
2278
2279 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2280
2281 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2282 for all architectures on FreeBSD 11.3 and later.
2283
2284 2020-07-27 Tom Tromey <tromey@adacore.com>
2285
2286 * gcore.h (load_corefile): Don't declare.
2287
2288 2020-07-27 Tom de Vries <tdevries@suse.de>
2289
2290 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2291 * config.in: Regenerate.
2292 * configure: Regenerate.
2293
2294 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2295
2296 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2297 ws2tcpip.h. When checking whether socklen_t type is defined, use
2298 ws2tcpip.h if it is available and sys/socket.h isn't.
2299 * configure: Regenerate.
2300 * config.in: Regenerate.
2301
2302 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2303
2304 PR fortran/23051
2305 PR fortran/26139
2306 * valops.c (value_ind): Pass address to
2307 readjust_indirect_value_type.
2308 * value.c (readjust_indirect_value_type): Make parameter
2309 non-const, and add extra address parameter. Resolve original type
2310 before using it.
2311 * value.h (readjust_indirect_value_type): Update function
2312 signature and comment.
2313
2314 2020-07-25 Tom de Vries <tdevries@suse.de>
2315
2316 PR symtab/26243
2317 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2318 entries.
2319
2320 2020-07-24 Aaron Merey <amerey@redhat.com>
2321
2322 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2323 * configure: Rebuild.
2324
2325 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2326
2327 PR corefiles/26294
2328 * corelow.c (_initialize_corelow): Add period to help text
2329 for "maintenance print core-file-backed-mappings".
2330
2331 2020-07-23 Pedro Alves <pedro@palves.net>
2332
2333 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2334 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2335 meanwhile.
2336 * frame.c (frame_cache_generation, get_frame_cache_generation):
2337 New.
2338 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2339 (get_prev_frame_if_no_cycle): On exception, don't touch
2340 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2341 * frame.h (get_frame_cache_generation): Declare.
2342
2343 2020-07-23 Tom de Vries <tdevries@suse.de>
2344
2345 PR tui/26282
2346 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2347 New default constructor.
2348
2349 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2350
2351 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2352 exclude non-statement entries.
2353
2354 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2355
2356 * NEWS (New commands): Mention new command
2357 "maintenance print core-file-backed-mappings".
2358
2359 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2360
2361 * corelow.c (gdbcmd.h): Include.
2362 (core_target::info_proc_mappings): New method.
2363 (get_current_core_target): New function.
2364 (maintenance_print_core_file_backed_mappings): New function.
2365 (_initialize_corelow): Add core-file-backed-mappings to
2366 "maint print" commands.
2367
2368 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2369
2370 * linux-tdep.c (dump_note_entry_p): New function.
2371 (linux_dump_mapping_p_ftype): New typedef.
2372 (linux_find_memory_regions_full): Add new parameter,
2373 should_dump_mapping_p.
2374 (linux_find_memory_regions): Adjust call to
2375 linux_find_memory_regions_full.
2376 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2377 call to linux_find_memory_regions_full.
2378
2379 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2380
2381 * corelow.c (solist.h, unordered_map): Include.
2382 (class core_target): Add field m_core_file_mappings and
2383 method build_file_mappings.
2384 (core_target::core_target): Call build_file_mappings.
2385 (core_target::~core_target): Free memory associated with
2386 m_core_file_mappings.
2387 (core_target::build_file_mappings): New method.
2388 (core_target::xfer_partial): Use m_core_file_mappings
2389 for memory transfers.
2390 * linux-tdep.c (linux_read_core_file_mappings): New
2391 function.
2392 (linux_core_info_proc_mappings): Rewrite to use
2393 linux_read_core_file_mappings.
2394 (linux_init_abi): Register linux_read_core_file_mappings.
2395
2396 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2397
2398 * arch-utils.c (default_read_core_file_mappings): New function.
2399 * arch-utils.c (default_read_core_file_mappings): Declare.
2400 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2401 * gdbarch.h, gdbarch.c: Regenerate.
2402
2403 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2404
2405 PR corefiles/25631
2406 * corelow.c (core_target:xfer_partial): Revise
2407 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2408 case after first checking the stratum beneath the core
2409 target.
2410 (has_all_memory): Return true.
2411 * target.c (raw_memory_xfer_partial): Revise comment
2412 regarding use of has_all_memory.
2413
2414 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2415
2416 * exec.h (section_table_xfer_memory): Revise declaration,
2417 replacing section name parameter with an optional callback
2418 predicate.
2419 * exec.c (section_table_xfer_memory): Likewise.
2420 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2421 of section_table_xfer_memory.
2422
2423 2020-07-22 Tom Tromey <tromey@adacore.com>
2424
2425 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2426 lookup_symbol_search_name.
2427
2428 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2429
2430 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2431 redundant local variable.
2432 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2433 reference, not pointer, update code accordingly.
2434
2435 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2436 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2437
2438 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2439 * jit.c (jit_breakpoint_re_set_internal): Use the
2440 `skip_jit_symbol_lookup` field.
2441
2442 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2443 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2444
2445 * jit.c (jit_read_descriptor): Define the descriptor address once,
2446 use twice.
2447 (jit_breakpoint_deleted): Move the declaration of the loop variable
2448 `iter` into the loop header.
2449 (jit_breakpoint_re_set_internal): Move the declaration of the local
2450 variable `objf_data` to the first point of definition.
2451 (jit_event_handler): Move the declaration of local variables
2452 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2453 Rename `objf` to `jited`.
2454
2455 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2458 Remove.
2459 * jit.c (get_jiter_objfile_data): Update.
2460
2461 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2462 Simon Marchi <simon.marchi@polymtl.ca>
2463
2464 * jit.c (struct jit_program_space_data): Remove.
2465 (jit_program_space_key): Remove.
2466 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2467 stuff.
2468 (get_jit_program_space_data): Remove.
2469 (jit_breakpoint_deleted): Iterate on all of the program space's
2470 objfiles.
2471 (jit_inferior_init): Likewise.
2472 (jit_breakpoint_re_set_internal): Likewise. Also change return
2473 type to void.
2474 (jit_breakpoint_re_set): Pass current_program_space to
2475 jit_breakpoint_re_set_internal.
2476
2477 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2478
2479 * jit.h (struct jiter_objfile_data) <cached_code_address,
2480 jit_breakpoint>: Move to here from ...
2481 * jit.c (jit_program_space_data): ... here.
2482 (jiter_objfile_data::~jiter_objfile_data): Update.
2483 (jit_breakpoint_deleted): Update.
2484 (jit_breakpoint_re_set_internal): Update.
2485
2486 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2487
2488 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2489 checks.
2490 (jit_read_descriptor): Remove NULL check.
2491 (jit_event_handler): Add an assertion.
2492
2493 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2494
2495 * jit.h (struct jit_objfile_data): Split into...
2496 (struct jiter_objfile_data): ... this ...
2497 (struct jited_objfile_data): ... and this.
2498 * objfiles.h (struct objfile) <jit_data>: Remove.
2499 <jiter_data, jited_data>: New fields.
2500 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2501 (jiter_objfile_data::~jiter_objfile_data): ... this.
2502 (get_jit_objfile_data): Rename to ...
2503 (get_jiter_objfile_data): ... this.
2504 (add_objfile_entry): Update.
2505 (jit_read_descriptor): Use get_jiter_objfile_data.
2506 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2507 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2508 (jit_inferior_exit_hook): Use objfile's jited_data field.
2509
2510 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2511
2512 * jit.h: Forward-declare `struct minimal_symbol`.
2513 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2514 constructor, destructor, and an objfile* field.
2515 * jit.c (jit_objfile_data): Remove.
2516 (struct jit_objfile_data): Migrate from here to jit.h.
2517 (jit_objfile_data::~jit_objfile_data): New destructor
2518 implementation with code moved from free_objfile_data.
2519 (free_objfile_data): Delete.
2520 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2521 (jit_find_objf_with_entry_addr): Ditto.
2522 (jit_inferior_exit_hook): Ditto.
2523 (_initialize_jit): Remove the call to
2524 register_objfile_data_with_cleanup.
2525 * objfiles.h (struct objfile) <jit_data>: New field.
2526
2527 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2528
2529 * jit.h: Forward-declare `struct objfile`.
2530 (jit_event_handler): Add a second parameter, the JITer objfile.
2531 * jit.c (jit_read_descriptor): Change the signature to take the
2532 JITer objfile as an argument instead of the jit_program_space_data.
2533 (jit_inferior_init): Update the call to jit_read_descriptor.
2534 (jit_event_handler): Use the new JITer objfile argument when calling
2535 jit_read_descriptor.
2536 * breakpoint.c (handle_jit_event): Update the call to
2537 jit_event_handler to pass the JITer objfile.
2538
2539 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2540
2541 * gdbarch.c: Regenerate.
2542 * gdbarch.h: Regenerate.
2543 * gdbarch.sh (handle_segmentation_fault): Remove method.
2544 * infrun.c (handle_segmentation_fault): Remove.
2545 (print_signal_received_reason): Remove call to
2546 handle_segmentation_fault.
2547
2548 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2549
2550 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2551 Rename to sparc64_linux_report_signal_info and add siggnal
2552 argument.
2553 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2554 instead of sparc64_linux_handle_segmentation_fault.
2555
2556 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2557
2558 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2559 i386_linux_report_signal_info instead of
2560 i386_linux_handle_segmentation_fault.
2561 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2562 to i386_linux_report_signal_info and add siggnal argument.
2563 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2564 of i386_linux_handle_segmentation_fault.
2565 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2566 to i386_linux_report_signal_info and add siggnal argument.
2567
2568 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2569
2570 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2571 hook if present.
2572
2573 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2574
2575 * gdbarch.c: Regenerate.
2576 * gdbarch.h: Regenerate.
2577 * gdbarch.sh (report_signal_info): New method.
2578 * infrun.c (print_signal_received_reason): Invoke gdbarch
2579 report_signal_info hook if present.
2580
2581 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * python/py-registers.c : Add 'unordered_map' include.
2584 (gdbpy_new_reggroup): Renamed to...
2585 (gdbpy_get_reggroup): ...this. Update to only create register
2586 group descriptors when needed.
2587 (gdbpy_reggroup_iter_next): Update.
2588
2589 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2590
2591 * python/py-registers.c (gdbpy_register_object_data): New static
2592 global.
2593 (gdbpy_register_object_data_init): New function.
2594 (gdbpy_new_register_descriptor): Renamed to...
2595 (gdbpy_get_register_descriptor): ...this, and update to reuse
2596 existing register descriptors where possible.
2597 (gdbpy_register_descriptor_iter_next): Update.
2598 (gdbpy_initialize_registers): Register new gdbarch data.
2599
2600 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2601
2602 * linux-nat.c (stopped_pids): Make static.
2603
2604 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2605
2606 PR ada/26235
2607 * gdbtypes.c (ada_discrete_type_low_bound,
2608 ada_discrete_type_high_bound): Handle undefined bounds.
2609
2610 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2611
2612 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2613 declaration.
2614 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2615 function.
2616
2617 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2618
2619 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2620 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2621 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2622 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2623 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2624 method.
2625
2626 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2627
2628 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2629 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2630 which are deprecated in Guile 3.0.
2631 * configure.ac (try_guile_versions): Add "guile-3.0".
2632 * configure (try_guile_versions): Regenerate.
2633 * NEWS: Update entry.
2634
2635 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2636 Doug Evans <dje@google.com>
2637
2638 PR gdb/21104
2639 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2640 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2641 USING_GUILE_BEFORE_2_2.
2642 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2643 Change type to 'scm_t_port_type *'.
2644 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2645 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2646 parameter and honor it. Update callers.
2647 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2648 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2649 functions.
2650 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2651 USING_GUILE_BEFORE_2_2.
2652 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2653 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2654 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2655 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2656 and 'SCM_PORT_TYPE'.
2657 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2658 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2659 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2660 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2661 [!USING_GUILE_BEFORE_2_2]: New functions.
2662 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2663 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2664 'gdbscm_memory_port_read'.
2665 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2666 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2667 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2668 function.
2669 (ioscm_init_memory_port): Remove.
2670 (ioscm_init_memory_port_stream): New function
2671 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2672 function.
2673 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2674 Return scm_from_uint (0).
2675 (gdbscm_set_memory_port_read_buffer_size_x)
2676 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2677 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2678 Return scm_from_uint (0).
2679 (gdbscm_set_memory_port_write_buffer_size_x)
2680 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2681 * configure.ac (try_guile_versions): Add "guile-2.2".
2682 * configure: Regenerate.
2683 * NEWS: Add entry.
2684
2685 2020-07-18 Tom Tromey <tom@tromey.com>
2686
2687 * linux-nat.c (linux_multi_process): Remove.
2688 (linux_nat_target::supports_multi_process): Return true.
2689
2690 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2691
2692 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2693 (riscv_lookup_target_description): Return pointer out of
2694 unique_ptr.
2695 * target-descriptions.c (allocate_target_description): Add
2696 comment.
2697 (target_desc_deleter::operator()): Likewise.
2698 * target-descriptions.h (struct target_desc_deleter): Moved to
2699 gdbsupport/tdesc.h.
2700 (target_desc_up): Likewise.
2701
2702 2020-07-17 Tom Tromey <tromey@adacore.com>
2703
2704 * linux-nat.c (linux_nat_target::supports_non_stop)
2705 (linux_nat_target::always_non_stop_p): Use "true".
2706 (linux_nat_target::supports_disable_randomization): Use "true" and
2707 "false".
2708
2709 2020-07-16 Caroline Tice <cmtice@google.com>
2710
2711 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2712 (RNGLIST_HEADER_SIZE64): New constant definition.
2713 (struct dwop_section_names): Add rnglists_dwo.
2714 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2715 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2716 (struct dwo_sections): Add rnglists field.
2717 (read_attribut_reprocess): Add tag parameter.
2718 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2719 (cu_debug_rnglists_section): New function (decl & definition).
2720 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2721 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2722 die whose range is being checked; get rnglist section from
2723 cu_debug_rnglists_section, to get from either objfile or dwo file as
2724 appropriate. Add cases for DW_RLE_base_addressx,
2725 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2726 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2727 test inside if-condition and updating complaint message.
2728 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2729 dwarf2_rnglists_process.
2730 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2731 dwarf2_ranges_process.
2732 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2733 need_ranges_base and update comment appropriately. Also pass die tag
2734 to dwarf2_ranges_read.
2735 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2736 need_ranges_base and update comment appropriately. Also pass die tag
2737 to dwarf2_ranges_process.
2738 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2739 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2740 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2741 need_ranges_base and update comment appropriately. Also pass die tag
2742 to read_attribute_reprocess and dwarf2_ranges_read.
2743 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2744 and update function comment appropriately.
2745 (read_loclist_index): Call read_loclists_rnglists_header instead of
2746 read_loclist_header.
2747 (read_rnglist_index): New function.
2748 (read_attribute_reprocess): Add tag parameter. Add code for
2749 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2750 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2751
2752 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2753
2754 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2755 being resolved.
2756
2757 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2758
2759 * arch-utils.c (show_architecture): Update formatting of messages.
2760
2761 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2762
2763 * gdbtypes.h (struct type) <bounds>: Handle array and string
2764 types.
2765 * ada-lang.c (assign_aggregate): Use type::bounds on
2766 array/string type.
2767 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2768 * c-varobj.c (c_number_of_children): Likewise.
2769 (c_describe_child): Likewise.
2770 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2771 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2772 (f_type_print_base): Likewise.
2773 * f-valprint.c (f77_array_offset_tbl): Likewise.
2774 (f77_get_upperbound): Likewise.
2775 (f77_print_array_1): Likewise.
2776 * guile/scm-type.c (gdbscm_type_range): Likewise.
2777 * m2-typeprint.c (m2_array): Likewise.
2778 (m2_is_long_set_of_type): Likewise.
2779 * m2-valprint.c (get_long_set_bounds): Likewise.
2780 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2781 * python/py-type.c (typy_range): Likewise.
2782 * rust-lang.c (rust_internal_print_type): Likewise.
2783 * type-stack.c (type_stack::follow_types): Likewise.
2784 * valarith.c (value_subscripted_rvalue): Likewise.
2785 * valops.c (value_cast): Likewise.
2786
2787 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2788
2789 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2790 callers to use the equivalent accessor methods.
2791
2792 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2793
2794 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2795 (struct type) <bit_stride>: New method.
2796 (TYPE_BIT_STRIDE): Remove.
2797 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2798
2799 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2800
2801 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2802 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2803 callers to use the equivalent accessor methods instead.
2804
2805 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2806
2807 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2808 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2809 callers to use the equivalent accessor methods instead.
2810
2811 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2812
2813 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2814 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2815 to use dynamic_prop::kind.
2816
2817 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2818
2819 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2820 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2821 to get the bound property's kind and check against
2822 PROP_UNDEFINED.
2823
2824 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2825
2826 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2827 all callers to use type::range_bounds followed by
2828 dynamic_prop::{low,high}.
2829
2830 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2831
2832 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2833 const_val, set_const_val, baton, set_locexpr, set_loclist,
2834 set_addr_offset, variant_parts, set_variant_parts,
2835 original_type, set_original_type>: New methods.
2836 <kind>: Rename to...
2837 <m_kind>: ... this. Update all users to use the new methods
2838 instead.
2839 <data>: Rename to...
2840 <m_data>: ... this. Update all users to use the new methods
2841 instead.
2842
2843 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2844
2845 * gdbtypes.c (get_discrete_bounds): Return failure if
2846 the range type's bounds are not both defined and constant
2847 values.
2848 (get_array_bounds): Update comment. Remove undefined bound check.
2849
2850 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2851
2852 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2853 the type::bounds method directly.
2854
2855 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2856
2857 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2858 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2859 are used to set the range type's bounds to use set_bounds.
2860
2861 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2862
2863 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2864
2865 2020-07-10 Pedro Alves <pedro@palves.net>
2866
2867 * gdbthread.h (inferior_ref): Define.
2868 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2869 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2870 * thread.c
2871 (scoped_restore_current_thread::restore):
2872 Adjust to gdb::ref_ptr.
2873 (scoped_restore_current_thread::~scoped_restore_current_thread):
2874 Remove manual decref handling.
2875 (scoped_restore_current_thread::scoped_restore_current_thread):
2876 Adjust to use
2877 inferior_ref::new_reference/thread_info_ref::new_reference.
2878 Incref the thread before calling get_frame_id instead of after.
2879 Let TARGET_CLOSE_ERROR propagate.
2880
2881 2020-07-10 Pedro Alves <pedro@palves.net>
2882
2883 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2884 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2885 NOT_AVAILABLE_ERROR.
2886 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2887 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2888
2889 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2890 Pedro Alves <pedro@palves.net>
2891
2892 PR gdb/26199
2893 * infrun.c (threads_are_resumed_pending_p): Delete.
2894 (do_target_wait): Remove threads_are_executing and
2895 threads_are_resumed_pending_p checks from the inferior_matches
2896 lambda. Update comments.
2897
2898 2020-07-10 Pedro Alves <pedro@palves.net>
2899
2900 PR gdb/26199
2901 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2902 executing threads.
2903
2904 2020-07-10 Pedro Alves <pedro@palves.net>
2905
2906 PR gdb/26199
2907 * infrun.c (handle_no_resumed): Handle multiple targets.
2908
2909 2020-07-10 Pedro Alves <pedro@palves.net>
2910
2911 PR gdb/26199
2912 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2913 target_is_async_p.
2914
2915 2020-07-10 Pedro Alves <pedro@palves.net>
2916
2917 PR gdb/26199
2918 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2919 threads, not all threads.
2920
2921 2020-07-10 Pedro Alves <pedro@palves.net>
2922
2923 PR gdb/26199
2924 * remote.c (remote_target::open_1): Pass remote target pointer as
2925 data to create_async_event_handler.
2926 (remote_async_inferior_event_handler): Mark async event handler
2927 before returning if the remote target still has either pending
2928 events or unacknowledged notifications.
2929
2930 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2931
2932 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2933 declaration.
2934 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2935 function.
2936
2937 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2938
2939 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2940 inferior_ptid.
2941
2942 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2943
2944 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2945 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2946 AT_FREEBSD_PS_STRINGS.
2947
2948 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2949
2950 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2951 of debugfile path on Windows.
2952
2953 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2954
2955 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2956 argument to 'data'.
2957
2958 2020-07-08 Tom Tromey <tromey@adacore.com>
2959
2960 * ada-lang.c (ada_exception_message_1): Use read_memory.
2961
2962 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2963
2964 PR python/22748
2965 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2966 special handling for inline frames.
2967 * findvar.c (value_of_register_lazy): Skip inline frames when
2968 creating lazy register values.
2969 * frame.c (frame_id_computed_p): Delete definition.
2970 * frame.h (frame_id_computed_p): Delete declaration.
2971
2972 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2973
2974 * NEWS: Mention additions to Python API.
2975 * python/py-arch.c (archpy_register_groups): New function.
2976 (arch_object_methods): Add 'register_groups' method.
2977 * python/py-registers.c (reggroup_iterator_object): New struct.
2978 (reggroup_object): New struct.
2979 (gdbpy_new_reggroup): New function.
2980 (gdbpy_reggroup_to_string): New function.
2981 (gdbpy_reggroup_name): New function.
2982 (gdbpy_reggroup_iter): New function.
2983 (gdbpy_reggroup_iter_next): New function.
2984 (gdbpy_new_reggroup_iterator): New function
2985 (gdbpy_initialize_registers): Register new types.
2986 (reggroup_iterator_object_type): Define new Python type.
2987 (gdbpy_reggroup_getset): New static global.
2988 (reggroup_object_type): Define new Python type.
2989 * python/python-internal.h
2990
2991 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2992
2993 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2994 * python/py-arch.c (archpy_registers): New function.
2995 (arch_object_methods): Add 'registers' method.
2996 * python/py-registers.c: New file.
2997 * python/python-internal.h
2998 (gdbpy_new_register_descriptor_iterator): Declare.
2999 (gdbpy_initialize_registers): Declare.
3000 * python/python.c (do_start_initialization): Call
3001 gdbpy_initialize_registers.
3002 * NEWS: Mention additions to the Python API.
3003
3004 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3005
3006 * NEWS: Mention new Python API method.
3007 * python/py-unwind.c (pending_framepy_architecture): New function.
3008 (pending_frame_object_methods): Add architecture method.
3009
3010 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3011
3012 * gdbarch.c: Regenerate.
3013 * gdbarch.h: Regenerate.
3014 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3015 (gdbarch_data): Use internal_error for the case where
3016 deprecated_set_gdbarch_data was originally needed.
3017 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3018 and use passed in obstack.
3019 (libunwind_frame_set_descr): Should no longer get back NULL from
3020 gdbarch_data.
3021 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3022 type.
3023 * user-regs.c (user_regs_init): Update parameters, and use passed
3024 in obstack.
3025 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3026 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3027
3028 2020-07-06 Tom de Vries <tdevries@suse.de>
3029
3030 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3031 End-Of-Sequence in lte_is_less_than.
3032 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3033 "gdb: Don't reorder line table entries too much when sorting".
3034
3035 2020-07-06 Tom de Vries <tdevries@suse.de>
3036
3037 PR tui/26205
3038 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3039
3040 2020-07-05 Tom de Vries <tdevries@suse.de>
3041
3042 PR build/26187
3043 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3044 std::uncaught_exceptions instead of deprecated
3045 std::uncaught_exception.
3046
3047 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3048
3049 * macroexp.h (macro_stringify): Return
3050 gdb::unique_xmalloc_ptr<char>.
3051 * macroexp.c (macro_stringify): Likewise.
3052 * macrotab.c (fixup_definition): Update.
3053
3054 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3055
3056 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3057 (lex_one_token): Update.
3058 * macroexp.c (struct macro_buffer) <release>: Return
3059 gdb::unique_xmalloc_ptr<char>.
3060 (macro_stringify): Update.
3061 (macro_expand): Update.
3062 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3063 * macroexp.h (macro_expand_next): Likewise.
3064
3065 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3066
3067 * macroexp.h (macro_lookup_ftype): Remove.
3068 (macro_expand, macro_expand_once, macro_expand_next): Remove
3069 lookup function parameters, add scope parameter.
3070 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3071 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3072 * macroscope.h (standard_macro_lookup): Change parameter type
3073 to macro_scope.
3074 * macroscope.c (standard_macro_lookup): Likewise.
3075 * c-exp.y (lex_one_token): Update.
3076 * macrocmd.c (macro_expand_command): Likewise.
3077 (macro_expand_once_command): Likewise.
3078
3079 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3080
3081 * inf-loop.c (inferior_event_handler): Remove client_data param.
3082 * inf-loop.h (inferior_event_handler): Likewise.
3083 * infcmd.c (step_1): Adjust.
3084 * infrun.c (proceed): Adjust.
3085 (fetch_inferior_event): Remove client_data param.
3086 (infrun_async_inferior_event_handler): Adjust.
3087 * infrun.h (fetch_inferior_event): Remove `void *` param.
3088 * linux-nat.c (handle_target_event): Adjust.
3089 * record-btrace.c (record_btrace_handle_async_inferior_event):
3090 Adjust.
3091 * record-full.c (record_full_async_inferior_event_handler):
3092 Adjust.
3093 * remote.c (remote_async_inferior_event_handler): Adjust.
3094
3095 2020-07-01 Tom Tromey <tom@tromey.com>
3096
3097 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3098 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3099
3100 2020-07-01 Tom Tromey <tom@tromey.com>
3101
3102 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3103 tui_gen_win_info.
3104 (tui_win_info::make_window): Merge with
3105 tui_gen_win_info::make_window.
3106 (tui_win_info::make_visible): Move from tui_gen_win_info.
3107 * tui/tui-win.c (tui_win_info::max_width): Move from
3108 tui_gen_win_info.
3109 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3110 type.
3111 <window_factory>: Likewise.
3112 * tui/tui-layout.c (tui_win_info::resize): Move from
3113 tui_gen_win_info.
3114 (make_standard_window): Change return type.
3115 (get_locator_window, tui_get_window_by_name): Likewise.
3116 (tui_layout_window::apply): Remove a cast.
3117 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3118 (struct tui_win_info): Merge with tui_gen_win_info.
3119 (struct tui_gen_win_info): Remove.
3120
3121 2020-07-01 Tom Tromey <tom@tromey.com>
3122
3123 * tui/tui-stack.h (struct tui_locator_window): Derive from
3124 tui_win_info.
3125 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3126 <can_box>: New method.
3127
3128 2020-07-01 Tom Tromey <tom@tromey.com>
3129
3130 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3131
3132 2020-07-01 Tom Tromey <tom@tromey.com>
3133
3134 * tui/tui-regs.c (tui_data_window::display_registers_from)
3135 (tui_data_window::display_registers_from)
3136 (tui_data_window::first_data_item_displayed)
3137 (tui_data_window::delete_data_content_windows): Update.
3138 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3139 Remove.
3140 (tui_data_window::check_register_values): Update.
3141 (tui_data_item_window::rerender): Add parameters. Update.
3142 (tui_data_item_window::refresh_window): Remove.
3143 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3144 virtual.
3145 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3146 tui_gen_win_info.
3147 <refresh_window, max_height, min_height>: Remove.
3148 <rerender>: Add parameters.
3149 <x, y, visible>: New members.
3150 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3151 <m_item_width>: New member.
3152
3153 2020-07-01 Tom Tromey <tom@tromey.com>
3154
3155 * tui/tui-regs.c (tui_data_window::show_register_group)
3156 (tui_data_window::check_register_values): Update.
3157 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3158 from item_no.
3159
3160 2020-07-01 Tom Tromey <tom@tromey.com>
3161
3162 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3163 useless "if".
3164
3165 2020-07-01 Tom Tromey <tom@tromey.com>
3166
3167 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3168 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3169
3170 2020-07-01 Tom Tromey <tom@tromey.com>
3171
3172 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3173 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3174 (struct tui_line_or_address): Move from tui-data.h.
3175 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3176 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3177 (tui_cmd_window, tui_source_window_base, tui_source_window)
3178 (tui_disasm_window): Don't declare.
3179 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3180 to tui-winsource.h.
3181 (SINGLE_KEY): Move to tui-stack.c.
3182
3183 2020-07-01 Tom Tromey <tom@tromey.com>
3184
3185 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3186 std::string.
3187 * tui/tui-regs.c (class tab_expansion_file): New.
3188 (tab_expansion_file::write): New method.
3189 (tui_register_format): Change return type. Use
3190 tab_expansion_file.
3191 (tui_get_register, tui_data_window::display_registers_from)
3192 (tui_data_item_window::rerender): Update.
3193 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3194 * tui/tui-io.c (tui_expand_tabs): Remove.
3195
3196 2020-07-01 Tom Tromey <tom@tromey.com>
3197
3198 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3199
3200 2020-07-01 Fangrui Song <maskray@google.com>
3201
3202 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3203
3204 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3205
3206 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3207 forms for DW_AT_associated and DW_AT_allocated attributes,
3208 which is already checked in function attr_to_dynamic_prop.
3209
3210 2020-06-30 Tom Tromey <tromey@adacore.com>
3211
3212 * dwarf2/read.c (quirk_rust_enum): Correctly call
3213 alloc_rust_variant for default-less enum.
3214
3215 2020-06-30 Tom Tromey <tromey@adacore.com>
3216
3217 PR build/26183:
3218 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3219 gdb::to_string.
3220
3221 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3222
3223 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3224 * gdbarch.h: Re-generate.
3225
3226 2020-06-28 Tom Tromey <tom@tromey.com>
3227
3228 * command.h (cmd_types): Remove.
3229 (cmd_type): Don't declare.
3230 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3231 typedef.
3232 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3233 * cli/cli-decode.c (cmd_type): Remove.
3234
3235 2020-06-27 Pedro Alves <palves@redhat.com>
3236
3237 * fork-child.c (prefork_hook): Adjust.
3238 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3239 Delete.
3240 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3241 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3242 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3243 Remove declarations.
3244 (struct inferior) <set_tty, tty>: New methods.
3245 (struct inferior) <terminal>: Rename to ...
3246 (struct inferior) <m_terminal>: ... this and make private.
3247 * main.c (captured_main_1): Adjust.
3248 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3249 (mi_cmd_inferior_tty_show): Adjust.
3250 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3251 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3252
3253 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3254
3255 * configure.ac: Add --enable-libctf: handle --disable-static
3256 properly.
3257 * acinclude.m4: sinclude ../config/enable.m4.
3258 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3259 (LIBCTF): Substitute in.
3260 (CTF_DEPS): New, likewise.
3261 (CLIBS): libctf needs symbols from libbfd: move earlier.
3262 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3263 flags.
3264 * ctfread.c: Surround in ENABLE_LIBCTF.
3265 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3266 * configure: Regenerate.
3267 * config.in: Likewise.
3268
3269 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3270
3271 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3272
3273 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3274
3275 * inferior.h (struct inferior) <terminal>: Change type to
3276 gdb::unique_xmalloc_ptr<char>.
3277 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3278 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3279 field, adjust to unique pointer.
3280 (get_inferior_io_terminal): Adjust to unique pointer.
3281
3282 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3283
3284 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3285 registers, not just the known core set of registers.
3286
3287 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3288
3289 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3290 fflags, frm, and fcsr registers.
3291 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3292 restore groups.
3293 (riscv_tdesc_unknown_reg): New function.
3294 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3295 tdesc_use_registers.
3296 * riscv-tdep.h (struct gdbarch_tdep): Add
3297 unknown_csrs_first_regnum, unknown_csrs_count,
3298 duplicate_fflags_regnum, duplicate_frm_regnum, and
3299 duplicate_fcsr_regnum fields.
3300
3301 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3302
3303 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3304 callback, use the callback (when not null) to help number unknown
3305 registers.
3306 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3307 (tdesc_use_registers): Add extra parameter to declaration.
3308
3309 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3310
3311 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3312 in the file.
3313 (class riscv_pending_register_alias): Likewise.
3314 (riscv_register_feature::register_info): Change 'required_p' field
3315 to 'required', and change its type. Add 'check' member function.
3316 (riscv_register_feature::register_info::check): Define new member
3317 function.
3318 (riscv_xreg_feature): Change initialisation of 'required' field.
3319 (riscv_freg_feature): Likewise.
3320 (riscv_virtual_feature): Likewise.
3321 (riscv_csr_feature): Likewise.
3322 (riscv_check_tdesc_feature): Take extra parameter, the csr
3323 tdesc_feature, rewrite the function to use the new
3324 riscv_register_feature::register_info::check function.
3325 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3326
3327 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 * features/Makefile: Remove all references to the deleted files
3330 below.
3331 * features/riscv/32bit-csr.c: Deleted.
3332 * features/riscv/32bit-csr.xml: Deleted.
3333 * features/riscv/64bit-csr.c: Deleted.
3334 * features/riscv/64bit-csr.xml: Deleted.
3335 * features/riscv/rebuild-csr-xml.sh: Deleted.
3336
3337 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3338
3339 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3340 whitespace error for declaration of names member variable.
3341 (struct riscv_register_feature): Add new prefer_first_name member
3342 variable, and fix whitespace error in declaration of registers.
3343 (riscv_xreg_feature): Initialize prefer_first_name field.
3344 (riscv_freg_feature): Likewise.
3345 (riscv_virtual_feature): Likewise.
3346 (riscv_csr_feature): Likewise.
3347 (riscv_register_name): Expand on comments. Remove register name
3348 modifications for CSR and virtual registers.
3349
3350 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3351
3352 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3353 errors.
3354
3355 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3356
3357 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3358 riscv-opc.h.
3359 (class riscv_pending_register_alias): New class.
3360 (riscv_check_tdesc_feature): Take vector of pending aliases and
3361 populate it as appropriate.
3362 (riscv_setup_register_aliases): Delete.
3363 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3364 to riscv_check_tdesc_feature in all cases. Use the vector to
3365 create the register aliases.
3366
3367 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3368
3369 * sol2-tdep.c (sol2_static_transform_name): Remove.
3370 (sol2_init_abi): Don't register it.
3371 * gdbarch.sh (static_transform_name): Remove.
3372 * gdbarch.c, gdbarch.h: Regenerate.
3373
3374 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3375 gdbarch_static_transform_name.
3376 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3377 * stabsread.c (define_symbol) <'X'>: Remove.
3378 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3379 handling.
3380 <'V'>: Likewise.
3381 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3382 <'S'>: Remove call to gdbarch_static_transform_name.
3383
3384 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3385
3386 * procfs.c (procfs_pre_trace): New function.
3387 (procfs_target::create_inferior): Pass it to fork_inferior.
3388
3389 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3390
3391 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3392 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3393 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3394 sol2-tdep.o, sparc-sol2-tdep.o.
3395 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3396 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3397 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3398 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3399
3400 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3401
3402 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3403 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3404 Call sol2_init_abi.
3405 Remove calls to set_gdbarch_skip_solib_resolver,
3406 set_gdbarch_core_pid_to_str.
3407 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3408 (i386_sol2_static_transform_name): Remove.
3409 (i386_sol2_init_abi): Call sol2_init_abi.
3410 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3411 set_gdbarch_static_transform_name,
3412 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3413 Use sol2_sigtramp_p.
3414 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3415 (sol2_sigtramp_p): New function.
3416 (sol2_static_transform_name): New function.
3417 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3418 (sol2_init_abi): New function.
3419 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3420 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3421 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3422 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3423 (sparc_sol2_static_transform_name): Remove.
3424 (sparc32_sol2_init_abi): Call sol2_init_abi.
3425 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3426 set_gdbarch_static_transform_name,
3427 set_gdbarch_skip_solib_resolver,
3428 set_gdbarch_core_pid_to_str.
3429 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3430 (sparc_sol2_static_transform_name): Remove
3431 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3432 call sol2_sigtramp_p.
3433 (sparc64_sol2_init_abi): Call sol2_init_abi.
3434 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3435 set_gdbarch_static_transform_name,
3436 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3437
3438 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3439
3440 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3441 * exec.c (validate_exec_file): If from_tty, set both
3442 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3443 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3444 and from_tty, unconditionally ask a confirmation.
3445
3446 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3447
3448 * target-descriptions.c (tdesc_architecture_name): Protect against
3449 NULL pointer dereference.
3450 (maint_print_xml_tdesc_cmd): New function.
3451 (_initialize_target_descriptions): Register new 'maint print
3452 xml-tdesc' command and give it the filename completer.
3453 * NEWS: Mention new 'maint print xml-tdesc' command.
3454
3455 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3456
3457 * target-descriptions.c (class tdesc_compatible_info): New class.
3458 (struct target_desc): Change type of compatible vector.
3459 (tdesc_compatible_p): Update for change in type of
3460 target_desc::compatible.
3461 (tdesc_compatible_info_list): New function.
3462 (tdesc_compatible_info_arch_name): New function.
3463 (tdesc_add_compatible): Update for change in type of
3464 target_desc::compatible.
3465 (print_c_tdesc::visit_pre): Likewise.
3466
3467 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3468
3469 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3470 whitespace to underscore.
3471 (maint_print_c_tdesc_cmd): Use fake filename for target
3472 descriptions that came from the target.
3473 (_initialize_target_descriptions): Add filename command completion
3474 for 'maint print c-tdesc'.
3475
3476 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3477
3478 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3479 lines.
3480
3481 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3482
3483 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3484 lines.
3485 (dwarf2_find_location_expression): Likewise.
3486 (call_site_parameter_matches): Likewise.
3487 (dwarf2_compile_expr_to_ax): Likewise.
3488 (disassemble_dwarf_expression): Likewise.
3489 (loclist_describe_location): Likewise.
3490
3491 2020-06-23 Pedro Alves <palves@redhat.com>
3492
3493 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3494 progspace-and-thread.h. Include scoped-mock-context.h instead.
3495 (register_to_value_test): Use scoped_mock_context.
3496 * regcache.c: Include "scoped-mock-context.h".
3497 (cooked_read_test): Don't error out if a target is already pushed.
3498 Use scoped_mock_context. Adjust.
3499 * scoped-mock-context.h: New file.
3500
3501 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3504 initializer.
3505 (ada_language::is_string_type_p): New member function.
3506 * c-lang.c (c_language_data): Delete la_is_string_type_p
3507 initializer.
3508 (cplus_language_data): Likewise.
3509 (asm_language_data): Likewise.
3510 (minimal_language_data): Likewise.
3511 * d-lang.c (d_language_data): Likewise.
3512 * f-lang.c (f_is_string_type_p): Delete function, implementation
3513 moved to f_language::is_string_type_p.
3514 (f_language_data): Delete la_is_string_type_p initializer.
3515 (f_language::is_string_type_p): New member function,
3516 implementation from f_is_string_type_p.
3517 * go-lang.c (go_is_string_type_p): Delete function, implementation
3518 moved to go_language::is_string_type_p.
3519 (go_language_data): Delete la_is_string_type_p initializer.
3520 (go_language::is_string_type_p): New member function,
3521 implementation from go_is_string_type_p.
3522 * language.c (language_defn::is_string_type_p): Define new member
3523 function.
3524 (default_is_string_type_p): Make static, add comment copied from
3525 header file.
3526 (unknown_language_data): Delete la_is_string_type_p initializer.
3527 (unknown_language::is_string_type_p): New member function.
3528 (auto_language_data): Delete la_is_string_type_p initializer.
3529 (auto_language::is_string_type_p): New member function.
3530 * language.h (language_data): Delete la_is_string_type_p field.
3531 (language_defn::is_string_type_p): Declare new function.
3532 (default_is_string_type_p): Delete desclaration, move comment to
3533 definition.
3534 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3535 moved to m2_language::is_string_type_p.
3536 (m2_language_data): Delete la_is_string_type_p initializer.
3537 (m2_language::is_string_type_p): New member function,
3538 implementation from m2_is_string_type_p.
3539 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3540 initializer.
3541 * opencl-lang.c (opencl_language_data): Likewise.
3542 * p-lang.c (pascal_is_string_type_p): Delete function,
3543 implementation moved to pascal_language::is_string_type_p.
3544 (pascal_language_data): Delete la_is_string_type_p initializer.
3545 (pascal_language::is_string_type_p): New member function,
3546 implementation from pascal_is_string_type_p.
3547 * rust-lang.c (rust_is_string_type_p): Delete function,
3548 implementation moved to rust_language::is_string_type_p.
3549 (rust_language_data): Delete la_is_string_type_p initializer.
3550 (rust_language::is_string_type_p): New member function,
3551 implementation from rust_is_string_type_p.
3552 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3553 is_string_type_p.
3554
3555 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3556
3557 * ada-lang.c (ada_language_data): Delete la_print_typedef
3558 initializer.
3559 (ada_language::print_typedef): New member function.
3560 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3561 (cplus_language_data): Likewise.
3562 (asm_language_data): Likewise.
3563 (minimal_language_data): Likewise.
3564 * d-lang.c (d_language_data): Likewise.
3565 * f-lang.c (f_language_data): Likewise.
3566 (f_language::print_typedef): New member function.
3567 * go-lang.c (go_language_data): Delete la_print_typedef
3568 initializer.
3569 * language.c (language_defn::print_typedef): Define member
3570 function.
3571 (unknown_language_data): Delete la_print_typedef initializer.
3572 (unknown_language::print_typedef): New member function.
3573 (auto_language_data): Delete la_print_typedef initializer.
3574 (auto_language::print_typedef): New member function.
3575 * language.h (language_data): Delete la_print_typedef field.
3576 (language_defn::print_typedef): Declare new member function.
3577 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3578 (default_print_typedef): Delete declaration.
3579 * m2-lang.c (m2_language_data): Delete la_print_typedef
3580 initializer.
3581 (m2_language::print_typedef): New member function.
3582 * objc-lang.c (objc_language_data): Delete la_print_typedef
3583 initializer.
3584 * opencl-lang.c (opencl_language_data): Likewise.
3585 * p-lang.c (pascal_language_data): Likewise.
3586 (pascal_language::print_typedef): New member function.
3587 * rust-lang.c (rust_print_typedef): Delete function,
3588 implementation moved to rust_language::print_typedef.
3589 (rust_language): Delete la_print_typedef initializer.
3590 (rust_language::print_typedef): New member function,
3591 implementation from rust_print_typedef.
3592 * typeprint.c (default_print_typedef): Delete.
3593
3594 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3595
3596 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3597 (ada_language::printstr): New member function.
3598 * c-lang.c (c_language_data): Delete la_printstr initializer.
3599 (cplus_language_data): Likewise.
3600 (asm_language_data): Likewise.
3601 (minimal_language_data): Likewise.
3602 * d-lang.c (d_language_data): Likewise.
3603 * f-lang.c (f_printstr): Rename to f_language::printstr.
3604 (f_language_data): Delete la_printstr initializer.
3605 (f_language::printstr): New member function, implementation from
3606 f_printstr.
3607 * go-lang.c (go_language_data): Delete la_printstr initializer.
3608 * language.c (language_defn::printstr): Define new member
3609 function.
3610 (unk_lang_printstr): Delete.
3611 (unknown_language_data): Delete la_printstr initializer.
3612 (unknown_language::printstr): New member function.
3613 (auto_language_data): Delete la_printstr initializer.
3614 (auto_language::printstr): New member function.
3615 * language.h (language_data): Delete la_printstr field.
3616 (language_defn::printstr): Declare new member function.
3617 (LA_PRINT_STRING): Update call to printstr.
3618 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3619 (m2_language_data): Delete la_printstr initializer.
3620 (m2_language::printstr): New member function, implementation from
3621 m2_printstr.
3622 * objc-lang.c (objc_language_data): Delete la_printstr
3623 initializer.
3624 * opencl-lang.c (opencl_language_data): Likewise.
3625 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3626 (pascal_language_data): Delete la_printstr initializer.
3627 (pascal_language::printstr): New member function, implementation
3628 from pascal_printstr.
3629 * p-lang.h (pascal_printstr): Delete declaration.
3630 * rust-lang.c (rust_printstr): Update header comment.
3631 (rust_language_data): Delete la_printstr initializer.
3632 (rust_language::printstr): New member function.
3633
3634 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3635
3636 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3637 (ada_language::printchar): New member function.
3638 * c-lang.c (c_language_data): Delete la_printchar initializer.
3639 (cplus_language_data): Likewise.
3640 (asm_language_data): Likewise.
3641 (minimal_language_data): Likewise.
3642 * d-lang.c (d_language_data): Likewise.
3643 * f-lang.c (f_printchar): Rename to f_language::printchar.
3644 (f_language_data): Delete la_printchar initializer.
3645 (f_language::printchar): New member function, implementation from
3646 f_printchar.
3647 * go-lang.c (go_language_data): Delete la_printchar initializer.
3648 * language.c (unk_lang_printchar): Delete.
3649 (language_defn::printchar): Define new member function.
3650 (unknown_language_data): Delete la_printchar initializer.
3651 (unknown_language::printchar): New member function.
3652 (auto_language_data): Delete la_printchar initializer.
3653 (auto_language::printchar): New member function.
3654 * language.h (language_data): Delete la_printchar field.
3655 (language_defn::printchar): Declare new member function.
3656 (LA_PRINT_CHAR): Update call to printchar.
3657 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3658 (m2_language::printchar): New member function.
3659 * objc-lang.c (objc_language_data): Delete la_printchar
3660 initializer.
3661 * opencl-lang.c (opencl_language_data): Likewise.
3662 * p-lang.c (pascal_language_data): Delete la_printchar
3663 initializer.
3664 (pascal_language::printchar): New member function.
3665 * rust-lang.c (rust_printchar): Rename to
3666 rust_language::printchar.
3667 (rust_language_data): Delete la_printchar initializer.
3668 (rust_language::printchar): New member function, implementation
3669 from rust_printchar.
3670
3671 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3672
3673 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3674 (ada_language_data): Delete la_emitchar initializer.
3675 (ada_language::emitchar): New member function, implementation from
3676 emit_char.
3677 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3678 (cplus_language_data): Likewise.
3679 (asm_language_data): Likewise.
3680 (minimal_language_data): Likewise.
3681 * d-lang.c (d_language_data): Likewise.
3682 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3683 (f_language_data): Delete la_emitchar initializer.
3684 (f_language::emitchar): New member function, implementation from
3685 f_emit_char.
3686 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3687 * language.c (unk_lang_emit_char): Delete.
3688 (language_defn::emitchar): New member function definition.
3689 (unknown_language_data): Delete la_emitchar initializer.
3690 (unknown_language::emitchar): New member function.
3691 (auto_language_data): Delete la_emitchar initializer.
3692 (auto_language::emitchar): New member function.
3693 * language.h (language_data): Delete la_emitchar field.
3694 (language_defn::emitchar): New member field declaration.
3695 (LA_EMIT_CHAR): Update call to emitchar.
3696 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3697 (m2_language_data): Delete la_emitchar initializer.
3698 (m2_language::emitchar): New member function, implementation from
3699 m2_emit_char.
3700 * objc-lang.c (objc_language_data): Delete la_emitchar
3701 initializer.
3702 * opencl-lang.c (opencl_language_data): Likewise.
3703 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3704 (pascal_language_data): Delete la_emitchar initializer.
3705 (pascal_language::emitchar): New member function, implementation
3706 from pascal_emit_char.
3707 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3708 (rust_language_data): Delete la_emitchar initializer.
3709 (rust_language::emitchar): New member function, implementation
3710 from rust_emitchar.
3711
3712 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3713
3714 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3715 (ada_language_data): Delete la_post_parser initializer.
3716 (ada_language::post_parser): New member function.
3717 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3718 (cplus_language_data): Likewise.
3719 (asm_language_data): Likewise.
3720 (minimal_language_data): Likewise.
3721 * d-lang.c (d_language_data): Likewise.
3722 * f-lang.c (f_language_data): Likewise.
3723 * go-lang.c (go_language_data): Likewise.
3724 * language.c (unknown_language_data): Likewise.
3725 (auto_language_data): Likewise.
3726 * language.h (language_data): Delete la_post_parser field.
3727 (language_defn::post_parser): New member function.
3728 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3729 * objc-lang.c (objc_language_data): Likewise.
3730 * opencl-lang.c (opencl_language_data): Likewise.
3731 * p-lang.c (pascal_language_data): Likewise.
3732 * parse.c (parse_exp_in_context): Update call to post_parser.
3733 (null_post_parser): Delete definition.
3734 * parser-defs.h (null_post_parser): Delete declaration.
3735 * rust-lang.c (rust_language_data): Delete la_post_parser
3736 initializer.
3737
3738 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3739
3740 * ada-lang.c (parse): Rename to ada_language::parser.
3741 (ada_language_data): Delete la_parser initializer.
3742 (ada_language::parser): New member function, implementation from
3743 parse.
3744 * c-lang.c (c_language_data): Delete la_parser initializer.
3745 (cplus_language_data): Likewise.
3746 (asm_language_data): Likewise.
3747 (minimal_language_data): Likewise.
3748 * d-lang.c (d_language_data): Likewise.
3749 (d_language::parser): New member function.
3750 * f-lang.c (f_language_data): Delete la_parser initializer.
3751 (f_language::parser): New member function.
3752 * go-lang.c (go_language_data): Delete la_parser initializer.
3753 (go_language::parser): New member function.
3754 * language.c (unk_lang_parser): Delete.
3755 (language_defn::parser): Define new member function.
3756 (unknown_language_data): Delete la_parser initializer.
3757 (unknown_language::parser): New member function.
3758 (auto_language_data): Delete la_parser initializer.
3759 (auto_language::parser): New member function.
3760 * language.h (language_data): Delete la_parser field.
3761 (language_defn::parser): Declare new member function.
3762 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3763 (m2_language::parser): New member function.
3764 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3765 * opencl-lang.c (opencl_language_data): Likewise.
3766 * p-lang.c (pascal_language_data): Likewise.
3767 (pascal_language::parser): New member function.
3768 * parse.c (parse_exp_in_context): Update call to parser.
3769 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3770 (rust_language::parser): New member function.
3771
3772 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3773
3774 * top.c (print_gdb_configuration): Print --with-python-libdir
3775 configuration value.
3776
3777 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3778
3779 * NEWS: Mention change to the alias command.
3780
3781 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3782
3783 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3784 (alias_command_completer)
3785 (make_alias_options_def_group): New functions.
3786 (alias_opts, alias_option_defs): New struct and array.
3787 (alias_usage_error): Update usage.
3788 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3789 Use option framework.
3790 (_initialize_cli_cmds): Update alias command help.
3791 Update aliases command help.
3792 (show_user):
3793 Add NULL for new default_args lookup_cmd argument.
3794 (valid_command_p): Rename to validate_aliased_command.
3795 Add NULL for new default_args lookup_cmd argument. Verify that the
3796 aliased_command has no default args.
3797 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3798 (lookup_cmd_1, lookup_cmd): New argument default_args.
3799 (add_alias_cmd):
3800 Add NULL for new default_args lookup_cmd argument.
3801 (print_help_for_command): Show default args under the layout
3802 alias some_alias = some_aliased_cmd some_alias_default_arg.
3803 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3804 xfree default_args in destructor.
3805 * cli/cli-script.c (process_next_line, do_define_command):
3806 Add NULL for new default_args lookup_cmd argument.
3807 * command.h: Declare new default_args argument in lookup_cmd
3808 and lookup_cmd_1.
3809 * completer.c (complete_line_internal_1):
3810 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3811 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3812 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3813 Likewise.
3814 * infcmd.c (_initialize_infcmd): Likewise.
3815 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3816 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3817 * python/py-param.c (add_setshow_generic): Likewise.
3818 * remote.c (_initialize_remote): Likewise.
3819 * top.c (execute_command): Prepend default_args if command has some.
3820 (set_verbose):
3821 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3822 * tracepoint.c (validate_actionline, encode_actions_1):
3823 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3824
3825 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3826
3827 * jit.c (jit_read_descriptor): Use bool as the return type.
3828 (jit_breakpoint_re_set_internal): Use bool as the return type.
3829 Invert the return value logic; return true if the jit breakpoint
3830 has been successfully initialized.
3831 (jit_inferior_init): Update the call to
3832 jit_breakpoint_re_set_internal.
3833
3834 2020-06-22 Pedro Alves <palves@redhat.com>
3835
3836 PR gdb/25939
3837 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3838 Use the current inferior instead. Don't return
3839 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3840 wait again.
3841 * sol-thread.c (sol_thread_target::wait): Don't reference
3842 inferior_ptid.
3843 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3844 (sol_update_thread_list_callback): Use the current inferior's pid
3845 instead of inferior_ptid.
3846
3847 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3848
3849 * procfs.c: Cleanup many comments.
3850
3851 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3852 (AFTER_WATCHFLAG): Replace by value.
3853
3854 (MAIN_PROC_NAME_FORMAT): Inline ...
3855 (create_procinfo): ... here.
3856
3857 (procfs_debug_inferior): Remove SYS_exec handling.
3858 (syscall_is_exec): Likewise.
3859 (procfs_set_exec_trap): Likewise.
3860
3861 (syscall_is_lwp_exit): Inline in callers.
3862 (syscall_is_exit): Likewise.
3863 (syscall_is_exec): Likewise.
3864 (syscall_is_lwp_create): Likewise.
3865
3866 (invalidate_cache): Remove #if 0 code.
3867
3868 (make_signal_thread_runnable): Remove.
3869 (procfs_target::resume): Remove #if 0 code.
3870
3871 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3872
3873 PR gdb/25939
3874 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3875 call ...
3876 (procfs_target::create_inferior): ... here.
3877
3878 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3879
3880 * exec.c (validate_exec_file): Ensure the build-id is up to
3881 date by calling reopen_exec_file (that checks file timestamp
3882 to decide to re-read the file).
3883
3884 2020-06-18 Pedro Alves <palves@redhat.com>
3885
3886 PR gdb/25412
3887 * gdbthread.h (delete_thread, delete_thread_silent)
3888 (find_thread_ptid): Update comments.
3889 * thread.c (current_thread_): New global.
3890 (is_current_thread): Move higher, and reimplement.
3891 (inferior_thread): Reimplement.
3892 (set_thread_exited): Use bool. Add assertions.
3893 (add_thread_silent): Simplify thread-reuse handling by always
3894 calling delete_thread.
3895 (delete_thread): Remove intro comment.
3896 (find_thread_ptid): Skip exited threads.
3897 (switch_to_thread_no_regs): Write to current_thread_.
3898 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3899 INFERIOR_PTID. Clear current_thread_.
3900
3901 2020-06-18 Pedro Alves <palves@redhat.com>
3902
3903 * aix-thread.c (pd_update): Use switch_to_thread.
3904
3905 2020-06-18 Pedro Alves <palves@redhat.com>
3906
3907 * ravenscar-thread.c (ravenscar_thread_target): Update.
3908 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3909 (ravenscar_thread_target::add_active_thread): ... this. Don't
3910 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3911 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3912
3913 2020-06-18 Pedro Alves <palves@redhat.com>
3914
3915 * nat/windows-nat.c (current_windows_thread): Remove.
3916 * nat/windows-nat.h (current_windows_thread): Remove.
3917 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3918 Adjust.
3919 (display_selectors): Adjust to fetch the current
3920 windows_thread_info based on inferior_ptid.
3921 (fake_create_process): No longer write to current_windows_thread.
3922 (windows_nat_target::get_windows_debug_event):
3923 Don't set inferior_ptid or current_windows_thread.
3924 (windows_nat_target::wait): Adjust to not rely on
3925 current_windows_thread.
3926 (do_initial_windows_stuff): Now a method of windows_nat_target.
3927 Switch to the last_ptid thread.
3928 (windows_nat_target::attach): Adjust.
3929 (windows_nat_target::detach): Use switch_to_no_thread instead of
3930 writing to inferior_ptid directly.
3931 (windows_nat_target::create_inferior): Adjust.
3932
3933 2020-06-18 Pedro Alves <palves@redhat.com>
3934
3935 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3936
3937 2020-06-18 Pedro Alves <palves@redhat.com>
3938
3939 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3940 after creating it, instead of writing to inferior_ptid. Don't
3941 write to inferior_ptid.
3942
3943 2020-06-18 Pedro Alves <palves@redhat.com>
3944
3945 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3946
3947 2020-06-18 Pedro Alves <palves@redhat.com>
3948
3949 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3950 it, instead of writing to inferior_ptid.
3951
3952 2020-06-18 Pedro Alves <palves@redhat.com>
3953
3954 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3955 to inferior_ptid.
3956
3957 2020-06-18 Pedro Alves <palves@redhat.com>
3958
3959 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3960 instead of writing to inferior_ptid directly.
3961
3962 2020-06-18 Pedro Alves <palves@redhat.com>
3963
3964 * corelow.c (core_target::close): Use switch_to_no_thread instead
3965 of writing to inferior_ptid directly.
3966 (add_to_thread_list, core_target_open): Use switch_to_thread
3967 instead of writing to inferior_ptid directly.
3968
3969 2020-06-18 Pedro Alves <palves@redhat.com>
3970
3971 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3972 inferior_ptid.
3973 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3974 inferior_ptid.
3975 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3976 inferior_ptid directly.
3977 (darwin_nat_target::init_thread_list): Switch to thread, instead
3978 of writing to inferior_ptid.
3979 (darwin_nat_target::attach): Don't write to inferior_ptid.
3980 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3981
3982 2020-06-18 Pedro Alves <palves@redhat.com>
3983
3984 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3985 thread.
3986 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3987 Instead use switch_to_thread.
3988 (gnu_nat_target::detach): Use switch_to_no_thread
3989 instead of writing to inferior_ptid directly. Used passed-in
3990 inferior instead of looking up the inferior by pid.
3991
3992 2020-06-18 Pedro Alves <palves@redhat.com>
3993
3994 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3995 inferior_ptid.
3996
3997 2020-06-18 Pedro Alves <palves@redhat.com>
3998
3999 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4000 inferior_ptid.
4001 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4002 thread.
4003 (nto_procfs_target::detach): Avoid referencing
4004 inferior_ptid. Use switch_to_no_thread instead of writing to
4005 inferior_ptid directly.
4006 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4007 instead of writing to inferior_ptid directly.
4008 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4009 to thread.
4010
4011 2020-06-18 Pedro Alves <palves@redhat.com>
4012
4013 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4014 after creating it, instead of writing to inferior_ptid.
4015 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4016 to inferior_ptid directly.
4017 (gdbsim_target::wait): Don't write to inferior_ptid.
4018
4019 2020-06-18 Pedro Alves <palves@redhat.com>
4020
4021 * remote.c (remote_target::remote_notice_new_inferior): Use
4022 switch_to_thread instead of writing to inferior_ptid directly.
4023 (remote_target::add_current_inferior_and_thread): Use
4024 switch_to_no_thread instead of writing to inferior_ptid directly.
4025 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4026 and switch_to_thread instead of using set_current_inferior or
4027 writing to inferior_ptid directly.
4028
4029 2020-06-18 Pedro Alves <palves@redhat.com>
4030
4031 * tracectf.c (ctf_target_open): Switch to added thread instead of
4032 writing to inferior_ptid directly.
4033 (ctf_target::close): Use switch_to_no_thread instead of writing to
4034 inferior_ptid directly.
4035
4036 2020-06-18 Pedro Alves <palves@redhat.com>
4037
4038 * tracefile-tfile.c (tfile_target_open): Don't write to
4039 inferior_ptid directly, instead switch to added thread.
4040 (tfile_target::close): Use switch_to_no_thread instead of writing
4041 to inferior_ptid directly.
4042
4043 2020-06-18 Pedro Alves <palves@redhat.com>
4044
4045 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4046 (procfs_target::detach): Use switch_to_no_thread
4047 instead of writing to inferior_ptid directly.
4048 (do_attach): Change return type to void. Switch to the added
4049 thread.
4050 (procfs_target::create_inferior): Switch to the added thread.
4051 (procfs_do_thread_registers): Don't write to inferior_ptid.
4052
4053 2020-06-18 Pedro Alves <palves@redhat.com>
4054
4055 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4056 of writing to inferior_ptid.
4057 (scoped_restore_exited_inferior): Delete.
4058 (handle_vfork_child_exec_or_exit): Simplify using
4059 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4060 instead of writing to inferior_ptid.
4061 (THREAD_STOPPED_BY): Delete.
4062 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4063 (thread_stopped_by_hw_breakpoint): Delete.
4064 (save_waitstatus): Use
4065 scoped_restore_current_thread+switch_to_thread, and call
4066 target_stopped_by_watchpoint instead of
4067 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4068 instead of thread_stopped_by_sw_breakpoint, and
4069 target_stopped_by_hw_breakpoint instead of
4070 thread_stopped_by_hw_breakpoint.
4071 (handle_inferior_event)
4072 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4073 inferior_ptid directly, nor
4074 set_current_inferior/set_current_program_space. Use
4075 switch_to_thread / switch_to_inferior_no_thread instead.
4076
4077 2020-06-18 Pedro Alves <palves@redhat.com>
4078
4079 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4080 instead of writing to inferior_ptid.
4081
4082 2020-06-18 Pedro Alves <palves@redhat.com>
4083
4084 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4085 added thread.
4086 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4087 to the added thread.
4088 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4089 instead of writing to inferior_ptid.
4090
4091 2020-06-18 Pedro Alves <palves@redhat.com>
4092
4093 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4094 (register_to_value_test): Mock a program_space too. Heap-allocate
4095 the address space. Don't write to inferior_ptid. Use
4096 switch_to_thread instead.
4097
4098 2020-06-18 Pedro Alves <palves@redhat.com>
4099
4100 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4101 Delete.
4102 (find_signalled_thread()): New, factored out from
4103 linux_make_corefile_notes and adjusted to handle exited threads.
4104 (linux_make_corefile_notes): Adjust to use the new
4105 find_signalled_thread.
4106
4107 2020-06-18 Pedro Alves <palves@redhat.com>
4108
4109 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4110 of saving/restoring inferior_ptid.
4111
4112 2020-06-17 Tom Tromey <tom@tromey.com>
4113
4114 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4115 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4116 declare.
4117 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4118
4119 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4120
4121 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4122 of partial symtabs.
4123
4124 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * regformats/reg-arm.dat: Remove.
4127 * regformats/reg-bfin.dat: Remove.
4128 * regformats/reg-cris.dat: Remove.
4129 * regformats/reg-crisv32.dat: Remove.
4130 * regformats/reg-m32r.dat: Remove.
4131 * regformats/reg-tilegx.dat: Remove.
4132 * regformats/reg-tilegx32.dat: Remove.
4133
4134 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4135
4136 * features/Makefile (WHICH): Remove arm files.
4137 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4138 * regformats/arm/arm-with-neon.dat: Remove.
4139 * regformats/arm/arm-with-vfpv2.dat: Remove.
4140 * regformats/arm/arm-with-vfpv3.dat: Remove.
4141
4142 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4143
4144 * features/Makefile (XMLTOC): Remove rx.xml.
4145
4146 2020-06-17 Pedro Alves <palves@redhat.com>
4147
4148 * gdbthread.h (thread_control_state) <trap_expected> Update
4149 comments.
4150
4151 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4152
4153 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4154 ada_language::lookup_symbol_nonlocal.
4155 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4156 (ada_language::lookup_symbol_nonlocal): New member function,
4157 implementation from ada_lookup_symbol_nonlocal.
4158 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4159 initializer.
4160 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4161 initializer.
4162 (cplus_language::lookup_symbol_nonlocal): New member function.
4163 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4164 (minimal_language_data) Likewise.
4165 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4166 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4167 initializer.
4168 (d_language::lookup_symbol_nonlocal): New member function.
4169 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4170 initializer.
4171 (f_language::lookup_symbol_nonlocal): New member function.
4172 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4173 initializer.
4174 * language.c (unknown_language_data): Likewise.
4175 (auto_language_data): Likewise.
4176 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4177 field.
4178 (language_defn::lookup_symbol_nonlocal): New member function.
4179 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4180 initializer.
4181 * objc-lang.c (objc_language_data): Likewise.
4182 * opencl-lang.c (opencl_language_data): Likewise.
4183 * p-lang.c (pascal_language_data): Likewise.
4184 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4185 rust_language::lookup_symbol_nonlocal.
4186 (rust_language_data): Delete la_lookup_symbol_nonlocal
4187 initializer.
4188 (rust_language::lookup_symbol_nonlocal): New member function,
4189 implementation from rust_lookup_symbol_nonlocal.
4190 * symtab.c (lookup_symbol_aux): Update call to
4191 lookup_symbol_nonlocal.
4192 (basic_lookup_symbol_nonlocal): Rename to...
4193 (language_defn::lookup_symbol_nonlocal): ...this, and update
4194 header comment. Remove language_defn parameter, and replace with
4195 uses of `this'.
4196 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4197
4198 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4199
4200 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4201 initializer.
4202 (ada_language::value_print_inner): New member function.
4203 * c-lang.c (c_language_data): Delete la_value_print_inner
4204 initializer.
4205 (cplus_language_data): Likewise.
4206 (asm_language_data): Likewise.
4207 (minimal_language_data): Likewise.
4208 * d-lang.c (d_language_data): Likewise.
4209 (d_language::value_print_inner): New member function.
4210 * f-lang.c (f_language_data): Delete la_value_print_inner
4211 initializer.
4212 (f_language::value_print_inner): New member function.
4213 * f-lang.h (f_value_print_innner): Rename to...
4214 (f_value_print_inner): ...this (note spelling of 'inner').
4215 * f-valprint.c (f_value_print_innner): Rename to...
4216 (f_value_print_inner): ...this (note spelling of 'inner').
4217 * go-lang.c (go_language_data): Delete la_value_print_inner
4218 initializer.
4219 (go_language::value_print_inner): New member function.
4220 * language.c (language_defn::value_print_inner): Define new member
4221 function.
4222 (unk_lang_value_print_inner): Delete.
4223 (unknown_language_data): Delete la_value_print_inner initializer.
4224 (unknown_language::value_print_inner): New member function.
4225 (auto_language_data): Delete la_value_print_inner initializer.
4226 (auto_language::value_print_inner): New member function.
4227 * language.h (language_data): Delete la_value_print_inner field.
4228 (language_defn::value_print_inner): Delcare new member function.
4229 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4230 initializer.
4231 (m2_language::value_print_inner): New member function.
4232 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4233 initializer.
4234 * opencl-lang.c (opencl_language_data): Likewise.
4235 * p-lang.c (pascal_language_data): Likewise.
4236 (pascal_language::value_print_inner): New member function.
4237 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4238 initializer.
4239 (rust_language::value_print_inner): New member function.
4240 * valprint.c (do_val_print): Update call to value_print_inner.
4241
4242 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4243
4244 * ada-lang.c (ada_language_data): Delete la_value_print
4245 initializer.
4246 (ada_language::value_print): New member function.
4247 * c-lang.c (c_language_data): Delete la_value_print initializer.
4248 (cplus_language_data): Likewise.
4249 (asm_language_data): Likewise.
4250 (minimal_language_data): Likewise.
4251 * d-lang.c (d_language_data): Likewise.
4252 * f-lang.c (f_language_data): Likewise.
4253 * go-lang.c (go_language_data): Likewise.
4254 * language.c (unk_lang_value_print): Delete.
4255 (language_defn::value_print): Define new member function.
4256 (unknown_language_data): Delete la_value_print initializer.
4257 (unknown_language::value_print): New member function.
4258 (auto_language_data): Delete la_value_print initializer.
4259 (auto_language::value_print): New member function.
4260 * language.h (language_data): Delete la_value_print field.
4261 (language_defn::value_print): Declare new member function.
4262 (LA_VALUE_PRINT): Update call to value_print.
4263 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4264 * objc-lang.c (objc_language_data): Likewise.
4265 * opencl-lang.c (opencl_language_data): Likewise.
4266 * p-lang.c (pascal_language_data): Likewise.
4267 (pascal_language::value_print): New member function.
4268 * rust-lang.c (rust_language_data): Delete la_value_print
4269 initializer.
4270
4271 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4272
4273 * ada-lang.c (ada_watch_location_expression): Rename to
4274 ada_language::watch_location_expression.
4275 (ada_language_data): Delete la_watch_location_expression
4276 initializer.
4277 (ada_language::watch_location_expression): New member function,
4278 implementation from ada_watch_location_expression.
4279 * breakpoint.c (watch_command_1): Update call to
4280 watch_location_expression.
4281 * c-lang.c (c_watch_location_expression): Rename to
4282 language_defn::watch_location_expression.
4283 (c_language_data): Delete la_watch_location_expression
4284 initializer.
4285 (cplus_language_data): Likewise.
4286 (asm_language_data): Likewise.
4287 (minimal_language_data): Likewise.
4288 * c-lang.h (c_watch_location_expression): Delete declaration.
4289 * d-lang.c (d_language_data): Delete la_watch_location_expression
4290 initializer.
4291 * f-lang.c (f_language_data): Likewise.
4292 * go-lang.c (go_language_data): Likewise.
4293 * language.c (language_defn::watch_location_expression): Member
4294 function implementation from c_watch_location_expression.
4295 (unknown_language_data): Delete la_watch_location_expression
4296 initializer.
4297 (auto_language_data): Likewise.
4298 * language.h (language_data): Delete la_watch_location_expression
4299 field.
4300 (language_defn::watch_location_expression): Declare new member
4301 function.
4302 * m2-lang.c (m2_language_data): Delete
4303 la_watch_location_expression initializer.
4304 * objc-lang.c (objc_language_data): Likewise.
4305 * opencl-lang.c (opencl_language_data): Likewise.
4306 * p-lang.c (pascal_language_data): Likewise.
4307 * rust-lang.c (rust_watch_location_expression): Rename to
4308 rust_language::watch_location_expression.
4309 (rust_language_data): Delete la_watch_location_expression
4310 initializer.
4311 (rust_language::watch_location_expression): New member function,
4312 implementation from rust_watch_location_expression.
4313
4314 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4315
4316 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4317 ada_language::collect_symbol_completion_matches.
4318 (ada_language_data): Delete la_collect_symbol_completion_matches
4319 initializer.
4320 (ada_language::collect_symbol_completion_matches): New member
4321 function, implementation from
4322 ada_collect_symbol_completion_matches.
4323 * c-lang.c (c_language_data): Delete
4324 la_collect_symbol_completion_matches initializer.
4325 (cplus_language_data): Likewise.
4326 (asm_language_data): Likewise.
4327 (minimal_language_data): Likewise.
4328 * d-lang.c (d_language_data): Likewise.
4329 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4330 f_language::collect_symbol_completion_matches.
4331 (f_language_data): Delete la_collect_symbol_completion_matches
4332 initializer.
4333 (f_language::collect_symbol_completion_matches) New member
4334 function, implementation from f_collect_symbol_completion_matches.
4335 * go-lang.c (go_language_data): Delete
4336 la_collect_symbol_completion_matches initializer.
4337 * language.c (unknown_language_data): Likewise.
4338 (auto_language_data): Likewise.
4339 * language.h (language_data): Delete
4340 la_collect_symbol_completion_matches field.
4341 (language_defn::collect_symbol_completion_matches): New member
4342 function.
4343 * m2-lang.c (m2_language_data): Delete
4344 la_collect_symbol_completion_matches initializer.
4345 * objc-lang.c (objc_language_data): Likewise.
4346 * opencl-lang.c (opencl_language_data): Likewise.
4347 * p-lang.c (pascal_language_data): Likewise.
4348 * rust-lang.c (rust_language_data): Likewise.
4349 * symtab.c (default_collect_symbol_completion_matches): Delete.
4350 (collect_symbol_completion_matches): Update call to
4351 collect_symbol_completion_matches.
4352 (collect_symbol_completion_matches_type): Likewise.
4353 * symtab.h (default_collect_symbol_completion_matches): Delete
4354 declaration.
4355
4356 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4357
4358 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4359 (ada_language_data): Delete la_word_break_characters initializer.
4360 (ada_language::word_break_characters): New member function.
4361 * c-lang.c (c_language_data): Delete la_word_break_characters
4362 initializer.
4363 (cplus_language_data): Likewise.
4364 (asm_language_data): Likewise.
4365 (minimal_language_data): Likewise.
4366 * completer.c: Update global comment.
4367 (advance_to_expression_complete_word_point): Update call to
4368 word_break_characters.
4369 (complete_files_symbols): Likewise.
4370 (complete_line_internal_1): Likewise.
4371 (default_completer_handle_brkchars): Likewise.
4372 (skip_quoted_chars): Likewise.
4373 * d-lang.c (d_language_data): Delete la_word_break_characters
4374 initializer.
4375 * f-lang.c (f_word_break_characters): Delete.
4376 (f_language_data): Delete la_word_break_characters initializer.
4377 (f_language::word_break_characters): New member function.
4378 * go-lang.c (go_language_data): Delete la_word_break_characters
4379 initializer.
4380 * language.c (unknown_language_data): Likewise.
4381 (auto_language_data): Likewise.
4382 * language.h (default_word_break_characters): Move declaration to
4383 earlier in the file.
4384 (language_data): Delete la_word_break_characters field.
4385 (language_defn::word_break_characters): New member function.
4386 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4387 initializer.
4388 * objc-lang.c (objc_language_data): Likewise.
4389 * opencl-lang.c (opencl_language_data): Likewise.
4390 * p-lang.c (pascal_language_data): Likewise.
4391 * rust-lang.c (rust_language_data): Likewise.
4392
4393 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4394
4395 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4396 (ada_language_data): Delete la_get_symbol_name_matcher
4397 initializer.
4398 (language_defn::get_symbol_name_matcher_inner): New member
4399 function.
4400 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4401 initializer.
4402 (cplus_language_data): Likewise.
4403 (cplus_language::get_symbol_name_matcher_inner): New member
4404 function.
4405 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4406 (minimal_language_data): Likewise.
4407 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4408 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4409 initializer.
4410 * dictionary.c (iter_match_first_hashed): Update call to
4411 get_symbol_name_matcher.
4412 (iter_match_next_hashed): Likewise.
4413 (iter_match_next_linear): Likewise.
4414 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4415 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4416 initializer.
4417 (f_language::get_symbol_name_matcher_inner): New member function.
4418 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4419 initializer.
4420 * language.c (default_symbol_name_matcher): Update header comment,
4421 make static.
4422 (language_defn::get_symbol_name_matcher): New definition.
4423 (language_defn::get_symbol_name_matcher_inner): Likewise.
4424 (get_symbol_name_matcher): Delete.
4425 (unknown_language_data): Delete la_get_symbol_name_matcher
4426 initializer.
4427 (auto_language_data): Likewise.
4428 * language.h (language_data): Delete la_get_symbol_name_matcher
4429 field.
4430 (language_defn::get_symbol_name_matcher): New member function.
4431 (language_defn::get_symbol_name_matcher_inner): Likewise.
4432 (default_symbol_name_matcher): Delete declaration.
4433 * linespec.c (find_methods): Update call to
4434 get_symbol_name_matcher.
4435 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4436 initializer.
4437 * minsyms.c (lookup_minimal_symbol): Update call to
4438 get_symbol_name_matcher.
4439 (iterate_over_minimal_symbols): Likewise.
4440 * objc-lang.c (objc_language_data): Delete
4441 la_get_symbol_name_matcher initializer.
4442 * opencl-lang.c (opencl_language_data): Likewise.
4443 * p-lang.c (pascal_language_data): Likewise.
4444 * psymtab.c (psymbol_name_matches): Update call to
4445 get_symbol_name_matcher.
4446 * rust-lang.c (rust_language_data): Delete
4447 la_get_symbol_name_matcher initializer.
4448 * symtab.c (symbol_matches_search_name): Update call to
4449 get_symbol_name_matcher.
4450 (compare_symbol_name): Likewise.
4451
4452 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4453
4454 * ada-lang.c (ada_language_data): Delete la_compute_program
4455 initializer.
4456 * c-lang.c (c_language_data): Likewise.
4457 (c_language::compute_program): New member function.
4458 (cplus_language_data): Delete la_compute_program initializer.
4459 (cplus_language::compute_program): New member function.
4460 (asm_language_data): Delete la_compute_program initializer.
4461 (minimal_language_data): Likewise.
4462 * c-lang.h (c_compute_program): Update comment.
4463 (cplus_compute_program): Likewise.
4464 * compile/compile-c-support.c (c_compute_program): Likewise.
4465 (cplus_compute_program): Likewise.
4466 * compile/compile.c (compile_to_object): Update call to
4467 la_compute_program.
4468 * d-lang.c (d_language_data): Delete la_compute_program
4469 initializer.
4470 * f-lang.c (f_language_data): Likewise.
4471 * go-lang.c (go_language_data): Likewise.
4472 * language.c (unknown_language_data): Likewise.
4473 (auto_language_data): Likewise.
4474 * language.h (language_data): Delete la_compute_program field.
4475 (language_defn::compute_program): New member function.
4476 * m2-lang.c (m2_language_data): Delete la_compute_program
4477 initializer.
4478 * objc-lang.c (objc_language_data): Likewise.
4479 * opencl-lang.c (opencl_language_data): Likewise.
4480 * p-lang.c (pascal_language_data): Likewise.
4481 * rust-lang.c (rust_language_data): Likewise.
4482
4483 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4484
4485 * ada-lang.c (ada_language_data) Delete
4486 la_class_name_from_physname initializer.
4487 * c-lang.c (c_language_data): Likewise.
4488 (cplus_language_data): Likewise.
4489 (cplus_language::class_name_from_physname): New member function.
4490 (asm_language_data): Delete la_class_name_from_physname
4491 initializer.
4492 (minimal_language_data): Likewise.
4493 * d-lang.c (d_language_data): Likewise.
4494 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4495 method on language_defn class.
4496 (guess_full_die_structure_name): Likewise.
4497 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4498 initializer.
4499 * go-lang.c (go_language_data): Likewise.
4500 * language.c (language_class_name_from_physname): Delete.
4501 (unk_lang_class_name): Delete.
4502 (unknown_language_data): Delete la_class_name_from_physname
4503 initializer.
4504 (auto_language_data): Likewise.
4505 * language.h (language_data): Delete la_class_name_from_physname
4506 field.
4507 (language_defn::class_name_from_physname): New function.
4508 (language_class_name_from_physname): Delete declaration.
4509 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4510 initializer.
4511 * objc-lang.c (objc_language_data): Likewise.
4512 * opencl-lang.c (opencl_language_data): Likewise.
4513 * p-lang.c (pascal_language_data): Likewise.
4514 * rust-lang.c (rust_language_data): Likewise.
4515
4516 2020-06-16 Tom Tromey <tom@tromey.com>
4517
4518 * tui/tui-data.h (STATUS_NAME): New macro.
4519 * tui/tui-layout.c (tui_remove_some_windows)
4520 (initialize_known_windows, tui_register_window)
4521 (tui_layout_split::remove_windows, initialize_layouts)
4522 (tui_new_layout_command): Don't use hard-coded window names.
4523
4524 2020-06-16 Tom Tromey <tom@tromey.com>
4525
4526 PR tui/25348:
4527 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4528 tui_initialize_readline. Only run once. Call rl_initialize.
4529 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4530 tui_initialize_readline.
4531 * tui/tui-io.c (tui_setup_io): Call
4532 tui_ensure_readline_initialized.
4533 * tui/tui-interp.c (tui_interp::init): Update.
4534
4535 2020-06-16 Tom Tromey <tom@tromey.com>
4536
4537 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4538 Also preserve the status window.
4539
4540 2020-06-16 Tom Tromey <tom@tromey.com>
4541
4542 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4543 where m_window==nullptr.
4544
4545 2020-06-15 Tom Tromey <tromey@adacore.com>
4546
4547 * windows-nat.c (windows_nat::handle_output_debug_string):
4548 Update.
4549 (windows_nat::handle_ms_vc_exception): Update.
4550 * target.h (target_read_string): Change API.
4551 * target.c (target_read_string): Change API.
4552 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4553 Update.
4554 * solib-frv.c (frv_current_sos): Update.
4555 * solib-dsbt.c (dsbt_current_sos): Update.
4556 * solib-darwin.c (darwin_current_sos): Update.
4557 * linux-thread-db.c (inferior_has_bug): Update.
4558 * expprint.c (print_subexp_standard): Update.
4559 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4560 (ada_exception_message_1): Update.
4561
4562 2020-06-15 Tom Tromey <tromey@adacore.com>
4563
4564 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4565
4566 2020-06-15 Tom Tromey <tromey@adacore.com>
4567
4568 * valprint.c (read_string): Update comment.
4569 * target.c (MIN): Remove.
4570 (target_read_string): Rewrite.
4571
4572 2020-06-15 Tom Tromey <tromey@adacore.com>
4573
4574 * corefile.c (read_memory_string): Remove.
4575 * ada-valprint.c (ada_value_print_ptr): Update.
4576 * ada-lang.h (ada_tag_name): Change return type.
4577 * ada-lang.c (type_from_tag): Update.
4578 (ada_tag_name_from_tsd): Change return type. Use
4579 target_read_string.
4580 (ada_tag_name): Likewise.
4581 * gdbcore.h (read_memory_string): Don't declare.
4582
4583 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4584
4585 * symtab.c (rbreak_command): Ignore Windows drive colon.
4586
4587 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * NEWS: Mention removed GDBserver host support.
4590
4591 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4592
4593 * features/riscv/rebuild-csr-xml.sh: Updated.
4594
4595 2020-06-11 Tom Tromey <tom@tromey.com>
4596
4597 PR gdb/18318:
4598 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4599
4600 2020-06-09 Jonny Grant <jg@jguk.org>
4601 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4602
4603 * main.c (captured_main_1): Don't print new line after help.
4604 (print_gdb_help): add mailing list and IRC channel information
4605 to --help. Add new lines between items in the footer. Remove
4606 quotes around bug url.
4607
4608 2020-06-11 Keith Seitz <keiths@redhat.com>
4609
4610 PR gdb/21356
4611 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4612 Resolve typedefs for type length calculations.
4613
4614 2020-06-10 Tom de Vries <tdevries@suse.de>
4615
4616 PR ada/24713
4617 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4618 (write_psymbols): Enable .gdb_index for ada.
4619 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4620 ada.
4621
4622 2020-06-10 Tom de Vries <tdevries@suse.de>
4623
4624 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4625 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4626 namei" instead of "const char *name" argument.
4627 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4628 dw2_symtab_iter_init.
4629
4630 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4631
4632 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4633 to use type::field and field::type instead.
4634
4635 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4636
4637 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4638 to use field::type instead.
4639
4640 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4641
4642 * gdbtypes.h (struct field) <type, set_type>: New methods.
4643 Rename `type` field to...
4644 <m_type>: ... this. Change references throughout to use type or
4645 set_type methods.
4646 (FIELD_TYPE): Use field::type. Change call sites that modify
4647 the field's type to use field::set_type instead.
4648
4649 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4650
4651 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4652 to use type::index_type instead.
4653
4654 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4655
4656 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4657 methods.
4658 (TYPE_INDEX_TYPE): Use type::index_type.
4659 * gdbtypes.c (create_array_type_with_stride): Likewise.
4660
4661 2020-06-07 Tom Tromey <tom@tromey.com>
4662
4663 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4664 parameter.
4665 (generic_value_print): Update.
4666
4667 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4668
4669 Revert commit 982a38f60b0.
4670 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4671
4672 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4673
4674 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4675 avoid use after free.
4676
4677 2020-06-05 Tom de Vries <tdevries@suse.de>
4678
4679 * NEWS: Fix typos.
4680
4681 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4682
4683 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4684 the per_bfd object.
4685 (dwarf2_read_debug_names): Likewise.
4686 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4687 object when re-using a per_bfd object with an index.
4688
4689 2020-06-03 Tom de Vries <tdevries@suse.de>
4690
4691 PR symtab/26046
4692 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4693 children for C++.
4694 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4695 DW_TAG_subprogram.
4696
4697 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4698
4699 * ada-lang.c (ada_language_data): Delete skip_trampoline
4700 initializer.
4701 * c-lang.c (c_language_data): Likewise.
4702 (cplus_language_data): Likewise.
4703 (cplus_language::skip_trampoline): New member function.
4704 (asm_language_data): Delete skip_trampoline initializer.
4705 (minimal_language_data): Likewise.
4706 * d-lang.c (d_language_data): Likewise.
4707 * f-lang.c (f_language_data): Likewise.
4708 * go-lang.c (go_language_data): Likewise.
4709 * language.c (unk_lang_trampoline): Delete function.
4710 (skip_language_trampoline): Update.
4711 (unknown_language_data): Delete skip_trampoline initializer.
4712 (auto_language_data): Likewise.
4713 * language.h (language_data): Delete skip_trampoline field.
4714 (language_defn::skip_trampoline): New function.
4715 * m2-lang.c (m2_language_data): Delete skip_trampoline
4716 initializer.
4717 * objc-lang.c (objc_skip_trampoline): Delete function, move
4718 implementation to objc_language::skip_trampoline.
4719 (objc_language_data): Delete skip_trampoline initializer.
4720 (objc_language::skip_trampoline): New member function with
4721 implementation from objc_skip_trampoline.
4722 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4723 initializer.
4724 * p-lang.c (pascal_language_data): Likewise.
4725 * rust-lang.c (rust_language_data): Likewise.
4726
4727 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4728
4729 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4730 (ada_language::demangle): New member function.
4731 * c-lang.c (c_language_data): Delete la_demangle initializer.
4732 (cplus_language_data): Delete la_demangle initializer.
4733 (cplus_language::demangle): New member function.
4734 (asm_language_data): Delete la_demangle initializer.
4735 (minimal_language_data): Delete la_demangle initializer.
4736 * d-lang.c (d_language_data): Delete la_demangle initializer.
4737 (d_language::demangle): New member function.
4738 * f-lang.c (f_language_data): Delete la_demangle initializer.
4739 (f_language::demangle): New member function.
4740 * go-lang.c (go_language_data): Delete la_demangle initializer.
4741 (go_language::demangle): New member function.
4742 * language.c (language_demangle): Update.
4743 (unk_lang_demangle): Delete.
4744 (unknown_language_data): Delete la_demangle initializer.
4745 (unknown_language::demangle): New member function.
4746 (auto_language_data): Delete la_demangle initializer.
4747 (auto_language::demangle): New member function.
4748 * language.h (language_data): Delete la_demangle field.
4749 (language_defn::demangle): New function.
4750 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4751 * objc-lang.c (objc_language_data): Delete la_demangle
4752 initializer.
4753 (objc_language::demangle): New member function.
4754 * opencl-lang.c (opencl_language_data): Delete la_demangle
4755 initializer.
4756 * p-lang.c (pascal_language_data): Likewise.
4757 * rust-lang.c (rust_language_data): Likewise.
4758 (rust_language::demangle): New member function.
4759
4760 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4761
4762 * ada-lang.c (ada_language_data): Delete la_print_type
4763 initializer.
4764 (ada_language::print_type): New member function.
4765 * c-lang.c (c_language_data): Delete la_print_type initializer.
4766 (c_language::print_type): New member function.
4767 (cplus_language_data): Delete la_print_type initializer.
4768 (cplus_language::print_type): New member function.
4769 (asm_language_data): Delete la_print_type initializer.
4770 (asm_language::print_type): New member function.
4771 (minimal_language_data): Delete la_print_type initializer.
4772 (minimal_language::print_type): New member function.
4773 * d-lang.c (d_language_data): Delete la_print_type initializer.
4774 (d_language::print_type): New member function.
4775 * f-lang.c (f_language_data): Delete la_print_type initializer.
4776 (f_language::print_type): New member function.
4777 * go-lang.c (go_language_data): Delete la_print_type initializer.
4778 (go_language::print_type): New member function.
4779 * language.c (unk_lang_print_type): Delete.
4780 (unknown_language_data): Delete la_print_type initializer.
4781 (unknown_language::print_type): New member function.
4782 (auto_language_data): Delete la_print_type initializer.
4783 (auto_language::print_type): New member function.
4784 * language.h (language_data): Delete la_print_type field.
4785 (language_defn::print_type): New function.
4786 (LA_PRINT_TYPE): Update.
4787 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4788 (m2_language::print_type): New member function.
4789 * objc-lang.c (objc_language_data): Delete la_print_type
4790 initializer.
4791 (objc_language::print_type): New member function.
4792 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4793 to opencl_language::print_type.
4794 (opencl_language_data): Delete la_print_type initializer.
4795 (opencl_language::print_type): New member function, implementation
4796 from opencl_print_type.
4797 * p-lang.c (pascal_language_data): Delete la_print_type
4798 initializer.
4799 (pascal_language::print_type): New member function.
4800 * rust-lang.c (rust_print_type): Delete, implementation moved to
4801 rust_language::print_type.
4802 (rust_language_data): Delete la_print_type initializer.
4803 (rust_language::print_type): New member function, implementation
4804 from rust_print_type.
4805
4806 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4807
4808 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4809 implementation moves to...
4810 (ada_language::sniff_from_mangled_name): ...here. Update return
4811 type.
4812 (ada_language_data): Delete la_sniff_from_mangled_name
4813 initializer.
4814 * c-lang.c (c_language_data): Likewise.
4815 (cplus_language_data): Likewise.
4816 (cplus_language::sniff_from_mangled_name): New member function,
4817 implementation taken from gdb_sniff_from_mangled_name.
4818 (asm_language_data): Delete la_sniff_from_mangled_name
4819 initializer.
4820 (minimal_language_data): Likewise.
4821 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4822 implementation moves to cplus_language::sniff_from_mangled_name.
4823 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4824 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4825 moves to...
4826 (d_language::sniff_from_mangled_name): ...here.
4827 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4828 * f-lang.c (f_language_data): Likewise.
4829 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4830 moves to...
4831 (go_language::sniff_from_mangled_name): ...here.
4832 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4833 * language.c (language_sniff_from_mangled_name): Delete.
4834 (unknown_language_data): Delete la_sniff_from_mangled_name
4835 initializer.
4836 (auto_language_data): Likewise.
4837 * language.h (language_data): Delete la_sniff_from_mangled_name
4838 field.
4839 (language_defn::sniff_from_mangled_name): New function.
4840 (language_sniff_from_mangled_name): Delete declaration.
4841 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4842 field.
4843 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4844 implementation moves to...
4845 (objc_language::sniff_from_mangled_name): ...here.
4846 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4847 * opencl-lang.c (opencl_language_data): Likewise.
4848 * p-lang.c (pascal_language_data): Likewise.
4849 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4850 implementation moves to...
4851 (rust_language::sniff_from_mangled_name): ...here.
4852 (rust_language_data): Delete la_sniff_from_mangled_name
4853 initializer.
4854 * symtab.c (symbol_find_demangled_name): Call
4855 sniff_from_mangled_name member function.
4856
4857 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4858
4859 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4860 initializer.
4861 * c-lang.c (c_language_data): Likewise.
4862 (cplus_language_data): Likewise.
4863 (cplus_language::search_name_hash): New member function.
4864 (asm_language_data): Delete la_search_name_hash initializer.
4865 (minimal_language_data): Likewise.
4866 * d-lang.c (d_language_data): Likewise.
4867 * dictionary.c (default_search_name_hash): Rename to...
4868 (language_defn::search_name_hash): ...this.
4869 * f-lang.c (f_language_data): Likewise.
4870 (f_language::search_name_hash): New member function.
4871 * go-lang.c (go_language_data): Delete la_search_name_hash
4872 initializer.
4873 * language.c (unknown_language_data): Likewise.
4874 (auto_language_data): Likewise.
4875 * language.h (struct language_data): Delete la_search_name_hash
4876 field.
4877 (language_defn::search_name_hash): Declare new member function.
4878 (default_search_name_hash): Delete declaration.
4879 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4880 initializer.
4881 * objc-lang.c (objc_language_data): Likewise.
4882 * opencl-lang.c (opencl_language_data): Likewise.
4883 * p-lang.c (pascal_language_data): Likewise.
4884 * rust-lang.c (rust_language_data): Likewise.
4885 * symtab.c (search_name_hash): Update call.
4886
4887 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4888
4889 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4890 initializer.
4891 * c-lang.c (class compile_instance): Declare.
4892 (c_language_data): Delete la_get_compile_instance initializer.
4893 (c_language::get_compile_instance): New member function.
4894 (cplus_language_data): Delete la_get_compile_instance initializer.
4895 (cplus_language::get_compile_instance): New member function.
4896 (asm_language_data): Delete la_get_compile_instance initializer.
4897 (minimal_language_data): Likewise.
4898 * c-lang.h (c_get_compile_context): Update comment.
4899 (cplus_get_compile_context): Update comment.
4900 * compile/compile.c (compile_to_object): Update calls, don't rely
4901 on function pointer being NULL.
4902 * d-lang.c (d_language_data): Delete la_get_compile_instance
4903 initializer.
4904 * f-lang.c (f_language_data): Likewise.
4905 * go-lang.c (go_language_data): Likewise.
4906 * language.c (unknown_language_data): Likewise.
4907 (auto_language_data): Likewise.
4908 * language.h (language_data): Delete la_get_compile_instance field.
4909 (language_defn::get_compile_instance): New member function.
4910 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4911 initializer.
4912 * objc-lang.c (objc_language_data): Likewise.
4913 * opencl-lang.c (opencl_language_data): Likewise.
4914 * p-lang.c (pascal_language_data): Likewise.
4915 * rust-lang.c (rust_language_data): Likewise.
4916
4917 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4918
4919 * ada-lang.c (ada_add_all_symbols): Update comment.
4920 (ada_iterate_over_symbols): Delete, move implementation to...
4921 (ada_language::iterate_over_symbols): ...here, a new member
4922 function, rewrite to use range based for loop.
4923 (ada_language_data): Delete la_iterate_over_symbols initializer.
4924 * c-lang.c (c_language_data): Likewise.
4925 (cplus_language_data): Likewise.
4926 (asm_language_data): Likewise.
4927 (minimal_language_data): Likewise.
4928 * d-lang.c (d_language_data): Likewise.
4929 * f-lang.c (f_language_data): Likewise.
4930 * go-lang.c (go_language_data): Likewise.
4931 * language.c (unknown_language_data): Likewise.
4932 (auto_language_data): Likewise.
4933 * language.h (language_data): Delete la_iterate_over_symbols field.
4934 (language_defn::iterate_over_symbols): New member function.
4935 (LA_ITERATE_OVER_SYMBOLS): Update.
4936 * linespec.c (iterate_over_all_matching_symtabs): Update.
4937 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4938 initializer.
4939 * objc-lang.c (objc_language_data): Likewise.
4940 * opencl-lang.c (opencl_language_data): Likewise.
4941 * p-lang.c (pascal_language_data): Likewise.
4942 * rust-lang.c (rust_language_data): Likewise.
4943
4944 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4945
4946 * ada-lang.c (ada_language_data): Delete
4947 la_lookup_transparent_type initializer.
4948 * c-lang.c (c_language_data): Likewise.
4949 (cplus_language_data): Likewise.
4950 (cplus_language::lookup_transparent_type): New member function.
4951 (asm_language_data): Delete la_lookup_transparent_type
4952 initializer.
4953 (minimal_language_data): Likewise.
4954 * d-lang.c (d_language_data): Likewise.
4955 * f-lang.c (f_language_data): Likewise.
4956 * go-lang.c (go_language_data): Likewise.
4957 * language.c (unknown_language_data): Likewise.
4958 (auto_language_data): Likewise.
4959 * language.h (struct language_data): Delete
4960 la_lookup_transparent_type field.
4961 (language_defn::lookup_transparent_type): New member function.
4962 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4963 initializer.
4964 * objc-lang.c (objc_language_data): Likewise.
4965 * opencl-lang.c (opencl_language_data): Likewise.
4966 * p-lang.c (pascal_language_data): Likewise.
4967 * rust-lang.c (rust_language_data): Likewise.
4968 * symtab.c (symbol_matches_domain): Update call.
4969
4970 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4971
4972 * ada-lang.c (ada_language_arch_info): Delete function, move
4973 implementation to...
4974 (ada_language::language_arch_info): ...here, a new member
4975 function.
4976 (ada_language_data): Delete la_language_arch_info.
4977 * c-lang.c (c_language_data): Likewise.
4978 (c_language::language_arch_info): New member function.
4979 (cplus_language_arch_info): Delete function, move
4980 implementation to...
4981 (cplus_language::language_arch_info): ...here, a new member
4982 function.
4983 (cplus_language_data): Delete la_language_arch_info.
4984 (asm_language_data): Likewise.
4985 (asm_language::language_arch_info): New member function.
4986 (minimal_language_data): Delete la_language_arch_info.
4987 (minimal_language::language_arch_info): New member function.
4988 * d-lang.c (d_language_arch_info): Delete function, move
4989 implementation to...
4990 (d_language::language_arch_info): ...here, a new member
4991 function.
4992 (d_language_data): Delete la_language_arch_info.
4993 * f-lang.c (f_language_arch_info): Delete function, move
4994 implementation to...
4995 (f_language::language_arch_info): ...here, a new member
4996 function.
4997 (f_language_data): Delete la_language_arch_info.
4998 * go-lang.c (go_language_arch_info): Delete function, move
4999 implementation to...
5000 (go_language::language_arch_info): ...here, a new member
5001 function.
5002 (go_language_data): Delete la_language_arch_info.
5003 * language.c (unknown_language_data): Likewise.
5004 (unknown_language::language_arch_info): New member function.
5005 (auto_language_data): Delete la_language_arch_info.
5006 (auto_language::language_arch_info): New member function.
5007 (language_gdbarch_post_init): Update call to
5008 la_language_arch_info.
5009 * language.h (language_data): Delete la_language_arch_info
5010 function pointer.
5011 (language_defn::language_arch_info): New function.
5012 * m2-lang.c (m2_language_arch_info): Delete function, move
5013 implementation to...
5014 (m2_language::language_arch_info): ...here, a new member
5015 function.
5016 (m2_language_data): Delete la_language_arch_info.
5017 * objc-lang.c (objc_language_arch_info): Delete function, move
5018 implementation to...
5019 (objc_language::language_arch_info): ...here, a new member
5020 function.
5021 (objc_language_data): Delete la_language_arch_info.
5022 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5023 implementation to...
5024 (opencl_language::language_arch_info): ...here, a new member
5025 function.
5026 (opencl_language_data): Delete la_language_arch_info.
5027 * p-lang.c (pascal_language_arch_info): Delete function, move
5028 implementation to...
5029 (pascal_language::language_arch_info): ...here, a new member
5030 function.
5031 (pascal_language_data): Delete la_language_arch_info.
5032 * rust-lang.c (rust_language_arch_info): Delete function, move
5033 implementation to...
5034 (rust_language::language_arch_info): ...here, a new member
5035 function.
5036 (rust_language_data): Delete la_language_arch_info.
5037
5038 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5039
5040 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5041 initializer.
5042 * c-lang.c (c_language_data): Likewise.
5043 (cplus_language_data): Likewise.
5044 (cplus_language::pass_by_reference_info): New method.
5045 (asm_language_data): Delete la_pass_by_reference initializer.
5046 (minimal_language_data): Likewise.
5047 * cp-abi.c (cp_pass_by_reference): Remove use of
5048 default_pass_by_reference.
5049 * d-lang.c (d_language_data): Likewise.
5050 * f-lang.c (f_language_data): Likewise.
5051 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5052 default_pass_by_reference.
5053 * go-lang.c (go_language_data): Likewise.
5054 * language.c (language_pass_by_reference): Update.
5055 (default_pass_by_reference): Delete.
5056 (unknown_language_data): Delete la_pass_by_reference
5057 initializer.
5058 (auto_language_data): Likewise.
5059 * language.h (struct language_data): Delete la_pass_by_reference
5060 field.
5061 (language_defn::pass_by_reference_info): New member function.
5062 (default_pass_by_reference): Delete declaration.
5063 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5064 initializer.
5065 * objc-lang.c (objc_language_data): Likewise.
5066 * opencl-lang.c (opencl_language_data): Likewise.
5067 * p-lang.c (pascal_language_data): Likewise.
5068 * rust-lang.c (rust_language_data): Likewise.
5069
5070 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5071
5072 * ada-lang.c (ada_read_var_value): Delete function, move
5073 implementation to...
5074 (ada_language::read_var_value): ...here.
5075 (ada_language_data): Delete la_read_var_value initializer.
5076 * c-lang.c (c_language_data): Likewise.
5077 (cplus_language_data): Likewise.
5078 (minimal_language_data): Likewise.
5079 * d-lang.c (d_language_data): Likewise.
5080 * f-lang.c (f_language_data): Likewise.
5081 * findvar.c (default_read_var_value): Rename to...
5082 (language_defn::read_var_value): ...this.
5083 * findvar.c (read_var_value): Update header comment, and change to
5084 call member function instead of function pointer.
5085 * go-lang.c (go_language_data): Likewise.
5086 * language.c (unknown_language_data): Delete la_read_var_value
5087 initializer.
5088 (auto_language_data): Likewise.
5089 * language.h (struct language_data): Delete la_read_var_value
5090 field.
5091 (language_defn::read_var_value): New member function.
5092 (default_read_var_value): Delete declaration.
5093 * m2-lang.c (m2_language_data): Delete la_read_var_value
5094 initializer.
5095 * objc-lang.c (objc_language_data): Likewise.
5096 * opencl-lang.c (opencl_language_data): Likewise.
5097 * p-lang.c (pascal_language_data): Likewise.
5098 * rust-lang.c (rust_language_data): Likewise.
5099 * value.h (default_read_var_value): Delete declaration.
5100
5101 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5102
5103 * ada-lang.c (ada_print_array_index): Delete function, move
5104 implementation to...
5105 (ada_language::print_array_index): ...here.
5106 (ada_language_data): Delete la_print_array_index initializer.
5107 * c-lang.c (c_language_data): Likewise.
5108 (cplus_language_data): Likewise.
5109 (minimal_language_data): Likewise.
5110 * d-lang.c (d_language_data): Likewise.
5111 * f-lang.c (f_language_data): Likewise.
5112 * go-lang.c (go_language_data): Likewise.
5113 * language.c (default_print_array_index): Delete function, move
5114 implementation to...
5115 (language_defn::print_array_index): ...here.
5116 (unknown_language_data): Delete la_print_array_index initializer.
5117 (auto_language_data): Likewise.
5118 * language.h (struct language_data): Delete la_print_array_index
5119 field.
5120 (language_defn::print_array_index): New member function.
5121 (LA_PRINT_ARRAY_INDEX): Update.
5122 (default_print_array_index): Delete declaration.
5123 * m2-lang.c (m2_language_data): Delete la_print_array_index
5124 initializer.
5125 * objc-lang.c (objc_language_data): Likewise.
5126 * opencl-lang.c (opencl_language_data): Likewise.
5127 * p-lang.c (pascal_language_data): Likewise.
5128 * rust-lang.c (rust_language_data): Likewise.
5129
5130 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5131
5132 * gdb/ada-lang.c (ada_language_defn): Convert to...
5133 (ada_language_data): ...this.
5134 (class ada_language): New class.
5135 (ada_language_defn): New static global.
5136 * gdb/c-lang.c (c_language_defn): Convert to...
5137 (c_language_data): ...this.
5138 (class c_language): New class.
5139 (c_language_defn): New static global.
5140 (cplus_language_defn): Convert to...
5141 (cplus_language_data): ...this.
5142 (class cplus_language): New class.
5143 (cplus_language_defn): New static global.
5144 (asm_language_defn): Convert to...
5145 (asm_language_data): ...this.
5146 (class asm_language): New class.
5147 (asm_language_defn): New static global.
5148 (minimal_language_defn): Convert to...
5149 (minimal_language_data): ...this.
5150 (class minimal_language): New class.
5151 (minimal_language_defn): New static global.
5152 * gdb/d-lang.c (d_language_defn): Convert to...
5153 (d_language_data): ...this.
5154 (class d_language): New class.
5155 (d_language_defn): New static global.
5156 * gdb/f-lang.c (f_language_defn): Convert to...
5157 (f_language_data): ...this.
5158 (class f_language): New class.
5159 (f_language_defn): New static global.
5160 * gdb/go-lang.c (go_language_defn): Convert to...
5161 (go_language_data): ...this.
5162 (class go_language): New class.
5163 (go_language_defn): New static global.
5164 * gdb/language.c (unknown_language_defn): Remove declaration.
5165 (current_language): Initialize to nullptr, real initialization is
5166 moved to _initialize_language.
5167 (languages): Delete global.
5168 (language_defn::languages): Define.
5169 (set_language_command): Use language_defn::languages.
5170 (set_language): Likewise.
5171 (range_error): Likewise.
5172 (language_enum): Likewise.
5173 (language_def): Likewise.
5174 (add_set_language_command): Use language_def::languages for the
5175 language list, and language_def to lookup language pointers.
5176 (skip_language_trampoline): Use language_defn::languages.
5177 (unknown_language_defn): Convert to...
5178 (unknown_language_data): ...this.
5179 (class unknown_language): New class.
5180 (unknown_language_defn): New static global.
5181 (auto_language_defn): Convert to...
5182 (auto_language_data): ...this.
5183 (class auto_language): New class.
5184 (auto_language_defn): New static global.
5185 (language_gdbarch_post_init): Use language_defn::languages.
5186 (_initialize_language): Initialize current_language.
5187 * gdb/language.h (struct language_defn): Rename to...
5188 (struct language_data): ...this.
5189 (struct language_defn): New.
5190 (auto_language_defn): Delete.
5191 (unknown_language_defn): Delete.
5192 (minimal_language_defn): Delete.
5193 (ada_language_defn): Delete.
5194 (asm_language_defn): Delete.
5195 (c_language_defn): Delete.
5196 (cplus_language_defn): Delete.
5197 (d_language_defn): Delete.
5198 (f_language_defn): Delete.
5199 (go_language_defn): Delete.
5200 (m2_language_defn): Delete.
5201 (objc_language_defn): Delete.
5202 (opencl_language_defn): Delete.
5203 (pascal_language_defn): Delete.
5204 (rust_language_defn): Delete.
5205 * gdb/m2-lang.c (m2_language_defn): Convert to...
5206 (m2_language_data): ...this.
5207 (class m2_language): New class.
5208 (m2_language_defn): New static global.
5209 * gdb/objc-lang.c (objc_language_defn): Convert to...
5210 (objc_language_data): ...this.
5211 (class objc_language): New class.
5212 (objc_language_defn): New static global.
5213 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5214 (opencl_language_data): ...this.
5215 (class opencl_language): New class.
5216 (opencl_language_defn): New static global.
5217 * gdb/p-lang.c (pascal_language_defn): Convert to...
5218 (pascal_language_data): ...this.
5219 (class pascal_language): New class.
5220 (pascal_language_defn): New static global.
5221 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5222 language pointer, update comment format.
5223 * gdb/rust-lang.c (rust_language_defn): Convert to...
5224 (rust_language_data): ...this.
5225 (class rust_language): New class.
5226 (rust_language_defn): New static global.
5227
5228 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5229
5230 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5231 member variable.
5232 <m_stmt_at_address>: New member variable.
5233 (lnp_state_machine::record_line): Don't record some lines, update
5234 tracking of is_stmt at the same address.
5235 (lnp_state_machine::lnp_state_machine): Initialise new member
5236 variables.
5237
5238 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5239
5240 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5241 "-include gnu-nat-mig.h".
5242 * gnu-nat-mig.h: New file.
5243 * gnu-nat.c: Include "gnu-nat-mig.h".
5244 (exc_server, msg_reply_server, notify_server,
5245 process_reply_server): Remove declarations.
5246
5247 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5248
5249 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5250 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5251 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5252 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5253 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5254 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5255 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5256 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5257 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5258 to gnu_nat_target class.
5259 * gnu-nat.c: Likewise.
5260 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5261 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5262 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5263 object.
5264 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5265 instead of `gnu_target'.
5266
5267 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5268
5269 * i386-gnu-tdep.c: Include "gdbcore.h"
5270 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5271 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5272 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5273 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5274 i386_gnu_sigcontext_addr): New functions
5275 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5276 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5277 tdep.
5278
5279 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5280
5281 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5282 before fork_inferior call. Avoid calling it if target_is_pushed returns
5283 true.
5284
5285 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5286
5287 * gnu-nat.h (gnu_target): New variable declaration.
5288 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5289 gnu_target.
5290 * gnu-nat.c (gnu_target): New variable.
5291 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5292 add_thread_silent, and add_thread calls.
5293 (gnu_nat_target::create_inferior): Pass gnu_target to
5294 add_thread_silent, thread_change_ptid call.
5295 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5296 call.
5297
5298 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5299
5300 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5301 (gnu_nat_target::find_memory_regions): Remove unused
5302 `old_address' variable.
5303
5304 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5305
5306 * gnu-nat.c: Include "gdbarch.h".
5307
5308 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5309
5310 * reply_mig_hack.awk (Error return): Cast function through
5311 void *, to bypass compiler function call check.
5312
5313 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5314
5315 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5316 $(srcdir)/reply_mig_hack.awk.
5317
5318 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5319
5320 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5321
5322 2020-05-30 Jonny Grant <jg@jguk.org>
5323
5324 * configure.ac (ACX_BUGURL): change bug URL to https.
5325
5326 2020-05-30 Pedro Alves <palves@redhat.com>
5327
5328 * cp-support.c (replace_typedefs_template): New.
5329 (replace_typedefs_qualified_name): Handle
5330 DEMANGLE_COMPONENT_TEMPLATE.
5331
5332 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5333
5334 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5335 dwarf2/index-cache.h, dwarf2/index-write.c,
5336 dwarf2/index-write.h, dwarf2/line-header.c,
5337 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5338 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5339 variables and fields from `dwarf2_per_objfile` to just
5340 `per_objfile` throughout.
5341
5342 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5343
5344 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5345 <push_dwarf_reg_entry_value>: Add comment.
5346
5347 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5348 Keith Seitz <keiths@redhat.com>
5349
5350 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5351 instead of PyEval_ReleaseLock.
5352 (class gdbpy_gil): Move to earlier in file.
5353 (finalize_python): Set gdb_python_initialized.
5354 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5355 when not initialized.
5356
5357 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5358
5359 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5360 <push_dwarf_reg_entry_value>: Remove assert. Override
5361 per_objfile with caller_per_objfile.
5362
5363 2020-05-28 Tom de Vries <tdevries@suse.de>
5364
5365 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5366 PR gold/15646 workaround to symbol kind "type".
5367
5368 2020-05-27 Tom Tromey <tromey@adacore.com>
5369
5370 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5371
5372 2020-05-27 Tom Tromey <tromey@adacore.com>
5373
5374 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5375 Use htab_find_with_hash.
5376 <add_abbrev>: Remove "abbrev_number" parameter.
5377 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5378 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5379 (hash_abbrev): Add comment.
5380 (abbrev_table::lookup_abbrev): Move to header file.
5381 (abbrev_table::read): Update.
5382
5383 2020-05-27 Tom Tromey <tromey@adacore.com>
5384
5385 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5386 method.
5387 <canonical_name>: New member.
5388 <raw_name>: Rename from "name".
5389 (partial_die_info): Initialize canonical_name.
5390 (scan_partial_symbols): Check raw_name.
5391 (partial_die_parent_scope, partial_die_full_name)
5392 (add_partial_symbol, add_partial_subprogram)
5393 (add_partial_enumeration, load_partial_dies): Use "name" method.
5394 (partial_die_info::name): New method.
5395 (partial_die_info::read, guess_partial_die_structure_name)
5396 (partial_die_info::fixup): Update.
5397
5398 2020-05-27 Tom Tromey <tromey@adacore.com>
5399
5400 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5401 <get_ref_die_offset>: Inline.
5402 <get_ref_die_offset_complaint>: New method.
5403 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5404 (attribute::get_ref_die_offset_complaint): Rename from
5405 get_ref_die_offset. Just issue complaint.
5406
5407 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5408
5409 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5410
5411 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5412
5413 * exec.c (exec_file_attach): Use errno value of first openp failure.
5414
5415 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5416
5417 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5418 Don't close thread handle.
5419
5420 2020-05-27 Tom Tromey <tom@tromey.com>
5421 Simon Marchi <simon.marchi@efficios.com>
5422
5423 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5424 shared_ptr.
5425 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5426 member.
5427 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5428 dwarf2_per_bfd_objfile_data_key>: New globals.
5429 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5430 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5431 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5432 shared.
5433 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5434 short-circuit when sharing.
5435 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5436 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5437
5438 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5439
5440 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5441 to...
5442 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5443 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5444
5445 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5446
5447 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5448 build_name_components, find_name_components_bounds>:
5449 Add per_objfile parameter.
5450 (struct mapped_index) <symbol_name_at>: Likewise.
5451 (struct mapped_debug_names): Remove constructor.
5452 <dwarf2_per_objfile>: Remove field.
5453 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5454 (mapped_index_base::find_name_components_bounds,
5455 mapped_index_base::build_name_components,
5456 dw2_expand_symtabs_matching_symbol): Likewise.
5457 (class mock_mapped_index) <symbol_name_at>: Likewise.
5458 (check_match): Likewise.
5459 (check_find_bounds_finds): Likewise.
5460 (test_mapped_index_find_name_component_bounds): Update.
5461 (CHECK_MATCH): Update.
5462 (dw2_expand_symtabs_matching): Update.
5463 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5464 per_objfile parameter.
5465 <find_vec_in_debug_names>: Likewise.
5466 <m_per_objfile>: New field.
5467 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5468 parameter.
5469 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5470 (dw2_debug_names_iterator::next): Update.
5471 (dw2_debug_names_lookup_symbol): Update.
5472 (dw2_debug_names_expand_symtabs_for_function): Update.
5473 (dw2_debug_names_map_matching_symbols): Update.
5474 (dw2_debug_names_expand_symtabs_matching): Update.
5475 (dwarf2_read_debug_names): Update.
5476
5477 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5478
5479 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5480 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5481 move to dwarf2_per_objfile.
5482 <read_in_chain>: Remove.
5483 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5484 remove_all_cus, age_comp_units>: New methods.
5485 <m_dwarf2_cus>: New member.
5486 (struct dwarf2_per_cu_data) <cu>: Remove.
5487 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5488 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5489 moved to methods of dwarf2_per_objfile.
5490 (dwarf2_clear_marks): Remove.
5491 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5492 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5493 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5494 (dwarf2_per_objfile::remove_all_cus): New.
5495 (class free_cached_comp_units) <~free_cached_comp_units>:
5496 Update.
5497 (load_cu): Update.
5498 (dw2_do_instantiate_symtab): Adjust.
5499 (fill_in_sig_entry_from_dwo_entry): Adjust.
5500 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5501 (cutu_reader::cutu_reader): Likewise.
5502 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5503 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5504 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5505 and dwarf2_per_objfile::age_comp_units.
5506 (load_partial_comp_unit): Update.
5507 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5508 (process_queue): Likewise.
5509 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5510 backlink.
5511 (dwarf2_read_addr_index): Likewise.
5512 (follow_die_offset): Likewise.
5513 (dwarf2_fetch_die_loc_sect_off): Likewise.
5514 (dwarf2_fetch_constant_bytes): Likewise.
5515 (dwarf2_fetch_die_type_sect_off): Likewise.
5516 (follow_die_sig_1): Likewise.
5517 (load_full_type_unit): Likewise.
5518 (read_signatured_type): Likewise.
5519 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5520 (dwarf2_cu::~dwarf2_cu): Remove.
5521 (dwarf2_per_objfile::get_cu): New.
5522 (dwarf2_per_objfile::set_cu): New.
5523 (age_cached_comp_units): Rename to...
5524 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5525 to std::unordered_map.
5526 (free_one_cached_comp_unit): Rename to...
5527 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5528 to std::unordered_map.
5529 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5530 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5531 a dwarf2_per_objfile in data.
5532 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5533 (dwarf2_clear_marks): Remove.
5534
5535 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5536
5537 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5538 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5539 (init_tu_and_read_dwo_dies): Likewise.
5540 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5541 (cutu_reader::cutu_reader): Likewise.
5542 (load_partial_comp_unit): Likewise.
5543 (process_psymtab_comp_unit): Update.
5544 (build_type_psymtabs_1): Update.
5545 (process_skeletonless_type_unit): Update.
5546 (load_full_comp_unit): Update.
5547 (find_partial_die): Update.
5548 (dwarf2_read_addr_index): Update.
5549 (read_signatured_type): Update.
5550
5551 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5552
5553 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5554 m_header_read_in>: New fields.
5555 <get_header>: New method.
5556 * dwarf2/read.c (per_cu_header_read_in): Remove.
5557 (dwarf2_per_cu_data::get_header): New.
5558 (dwarf2_per_cu_data::addr_size): Update.
5559 (dwarf2_per_cu_data::offset_size): Update.
5560 (dwarf2_per_cu_data::ref_addr_size): Update.
5561
5562 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5563
5564 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5565 (dw2_do_instantiate_symtab): Update.
5566 (queue_and_load_all_dwo_tus): Change parameter from
5567 dwarf2_per_cu_data to dwarf2_cu.
5568 (dwarf2_fetch_die_loc_sect_off): Update.
5569 (dwarf2_fetch_constant_bytes): Update.
5570 (dwarf2_fetch_die_type_sect_off): Update.
5571
5572 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5573
5574 * dwarf2/read.c (process_full_comp_unit,
5575 process_full_type_unit): Remove per_cu, per_objfile paramters.
5576 Add dwarf2_cu parameter.
5577 (process_queue): Update.
5578
5579 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5580
5581 * dwarf2/read.c (create_cu_from_index_list): Replace
5582 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5583 (create_cus_from_index_list): Likewise.
5584 (create_cus_from_index): Likewise.
5585 (create_signatured_type_table_from_index): Likewise.
5586 (create_cus_from_debug_names_list): Likewise.
5587 (create_cus_from_debug_names): Likewise.
5588 (dwarf2_read_gdb_index): Update.
5589 (dwarf2_read_debug_names): Update.
5590
5591 2020-05-27 Tom Tromey <tom@tromey.com>
5592 Simon Marchi <simon.marchi@efficios.com>
5593
5594 * dwarf2/read.h (struct dwarf2_per_objfile)
5595 <get_type_for_signatured_type, set_type_for_signatured_type>:
5596 New methods.
5597 <m_type_map>: New member.
5598 (struct signatured_type) <type>: Remove.
5599 * dwarf2/read.c
5600 (dwarf2_per_objfile::get_type_for_signatured_type,
5601 dwarf2_per_objfile::set_type_for_signatured_type): New.
5602 (get_signatured_type): Use new methods.
5603
5604 2020-05-27 Tom Tromey <tom@tromey.com>
5605 Simon Marchi <simon.marchi@efficios.com>
5606
5607 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5608 (struct dwarf2_per_objfile) <type_units>: New member.
5609 <get_type_unit_group_unshareable>: New method.
5610 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5611 num_symtabs, symtabs>: Remove; move to
5612 type_unit_group_unshareable.
5613 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5614 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5615 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5616
5617 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5618
5619 * dwarf2/read.h (struct dwarf2_per_cu_data):
5620 <dwarf2_per_objfile>: Remove.
5621 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5622 dwarf2_per_objfile.
5623 (create_signatured_type_table_from_index): Likewise.
5624 (create_signatured_type_table_from_debug_names): Likewise.
5625 (create_debug_type_hash_table): Likewise.
5626 (fill_in_sig_entry_from_dwo_entry): Likewise.
5627 (create_type_unit_group): Likewise.
5628 (read_comp_units_from_section): Likewise.
5629 (create_cus_hash_table): Likewise.
5630
5631 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5632
5633 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5634 dwarf2_per_cu_data::dwarf2_per_objfile.
5635 (compute_compunit_symtab_includes): Likewise.
5636 (dwarf2_cu::start_symtab): Likewise.
5637
5638 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5639
5640 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5641 parameter.
5642 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5643 (read_namespace_alias): Update.
5644 (lookup_die_type): Update.
5645 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5646 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5647 Update.
5648 (disassemble_dwarf_expression): Update.
5649
5650 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5651
5652 * dwarf2/read.h (struct dwarf2_queue_item): Add
5653 dwarf2_per_objfile parameter, assign new parameter.
5654 <per_objfile>: New field.
5655 * dwarf2/read.c (free_one_cached_comp_unit): Add
5656 dwarf2_per_objfile parameter.
5657 (queue_comp_unit): Likewise.
5658 (dw2_do_instantiate_symtab): Update.
5659 (process_psymtab_comp_unit): Update.
5660 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5661 (process_imported_unit_die): Update.
5662 (queue_and_load_dwo_tu): Update.
5663 (follow_die_offset): Update.
5664 (follow_die_sig_1): Update.
5665
5666 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5667
5668 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5669 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5670 (read_call_site_scope): Assign per_objfile.
5671 (dwarf2_per_cu_data::objfile): Remove.
5672 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5673 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5674 dwarf2_per_objfile parameter.
5675 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5676 dwarf2_per_objfile parameter.
5677 (dwarf_expr_reg_to_entry_parameter): Add output
5678 dwarf2_per_objfile parameter.
5679 (locexpr_get_frame_base): Update.
5680 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5681 <push_dwarf_reg_entry_value>: Update.
5682 <call_site_to_target_addr>: Update.
5683 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5684 parameter.
5685 (value_of_dwarf_reg_entry): Update.
5686 (rw_pieced_value): Update.
5687 (indirect_synthetic_pointer): Update.
5688 (dwarf2_evaluate_property): Update.
5689 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5690 parameter.
5691 (locexpr_read_variable): Update.
5692 (locexpr_get_symbol_read_needs): Update.
5693 (loclist_read_variable): Update.
5694
5695 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5696
5697 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5698 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5699 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5700 parameter.
5701 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5702 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5703 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5704 parameter.
5705 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5706 sect_variable_value): Add dwarf2_per_objfile parameter.
5707 (class dwarf_evaluate_loc_desc) <dwarf_call,
5708 dwarf_variable_value>: Update.
5709 (fetch_const_value_from_synthetic_pointer): Add
5710 dwarf2_per_objfile parameter.
5711 (fetch_const_value_from_synthetic_pointer): Update.
5712 (coerced_pieced_ref): Update.
5713 (class symbol_needs_eval_context) <dwarf_call,
5714 dwarf_variable_value>: Update.
5715 (dwarf2_compile_expr_to_ax): Update.
5716
5717 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5718
5719 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5720 parameter.
5721 (dwarf2_evaluate_loc_desc_full): Update.
5722
5723 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5726 parameter.
5727 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5728 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5729 dwarf2_per_objfile parameter.
5730 (decode_debug_loc_dwo_addresses): Likewise.
5731 (dwarf2_find_location_expression): Update.
5732 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5733 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5734 parameter.
5735 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5736 parameter.
5737 (locexpr_describe_location_1): Likewise.
5738 (locexpr_describe_location): Update.
5739
5740 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5741
5742 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5743 Remove.
5744 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5745 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5746 (dwarf2_compile_property_to_c): Update.
5747 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5748 use text offset from objfile.
5749 (locexpr_tracepoint_var_ref): Update.
5750 (locexpr_generate_c_location): Update.
5751 (loclist_describe_location): Update.
5752 (loclist_tracepoint_var_ref): Update.
5753 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5754 dwarf2_per_objfile parameter.
5755 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5756 use text offset from objfile.
5757 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5758
5759 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5760
5761 * dwarf2/expr.h (struct dwarf_expr_context)
5762 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5763 <offset>: Remove.
5764 <per_objfile>: New member.
5765 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5766 dwarf2_per_objfile parameter. Don't set offset, set
5767 per_objfile.
5768 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5769 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5770 a dwarf2_per_objfile object instead of an offset.
5771 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5772 constructor.
5773 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5774 to dwarf2_expr_executor constructor. Don't set offset.
5775 (dwarf2_fetch_cfa_info): Update.
5776 (struct dwarf2_frame_cache) <text_offset>: Remove.
5777 <per_objfile>: New field.
5778 (dwarf2_frame_cache): Update.
5779 (dwarf2_frame_prev_register): Update.
5780 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5781 <dwarf_evaluate_loc_desc>: Add constructor.
5782 (dwarf2_evaluate_loc_desc_full): Update.
5783 (dwarf2_locexpr_baton_eval): Update.
5784 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5785 Add constructor.
5786 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5787
5788 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5789
5790 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5791 addr_sized_int_type>: Move to dwarf2_cu.
5792 <int_type>: Move to dwarf2_per_objfile.
5793 (struct dwarf2_per_objfile) <int_type>: Move here.
5794 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5795 addr_sized_int_type>: Move here.
5796 (read_func_scope): Update.
5797 (read_array_type): Update.
5798 (read_tag_string_type): Update.
5799 (attr_to_dynamic_prop): Update.
5800 (dwarf2_per_cu_data::int_type): Rename to...
5801 (dwarf2_per_objfile::int_type): ... this.
5802 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5803 (dwarf2_cu::addr_sized_int_type): ... this.
5804 (read_subrange_type): Update.
5805 (dwarf2_per_cu_data::addr_type): Rename to...
5806 (dwarf2_cu::addr_type): ... this.
5807 (set_die_type): Update.
5808
5809 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5810
5811 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5812 data through per_cu->cu.
5813
5814 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5815
5816 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5817 dwarf2_per_cu_data parameter fo dwarf2_cu.
5818 (lookup_dwo_type_unit): Likewise.
5819 (read_cutu_die_from_dwo): Likewise.
5820 (lookup_dwo_unit): Likewise.
5821 (open_and_init_dwo_file): Likewise.
5822 (lookup_dwo_cutu): Likewise.
5823 (lookup_dwo_comp_unit): Likewise.
5824 (lookup_dwo_type_unit): Likewise.
5825 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5826 (cutu_reader::cutu_reader): Update.
5827
5828 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5829
5830 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5831 parameter.
5832 (process_full_type_unit): Likewise.
5833 (process_queue): Update.
5834
5835 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5836
5837 * dwarf2/read.c (recursively_compute_inclusions): Add
5838 dwarf2_per_objfile parameter.
5839 (compute_compunit_symtab_includes): Likewise.
5840 (process_cu_includes): Update.
5841
5842 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5843
5844 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5845 parameter.
5846 (create_type_unit_group): Update.
5847 (process_psymtab_comp_unit_reader): Update.
5848 (build_type_psymtabs_reader): Update.
5849
5850 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5851
5852 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5853 object through m_this_cu->cu.
5854
5855 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5856
5857 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5858 the info parameter.
5859 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5860
5861 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5862
5863 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5864 per_objfile parameter.
5865 (load_full_type_unit): Add per_objfile parameter.
5866 (read_signatured_type): Likewise.
5867 (load_full_comp_unit): Likewise.
5868 (load_cu): Likewise.
5869 (dw2_do_instantiate_symtab): Likewise.
5870 (dw2_get_file_names): Likewise.
5871 (dw2_map_symtabs_matching_filename): Update.
5872 (dw_expand_symtabs_matching_file_matcher): Update.
5873 (dw2_map_symbol_filenames): Update.
5874 (process_psymtab_comp_unit): Add per_objfile parameter.
5875 (build_type_psymtabs_1): Update.
5876 (process_skeletonless_type_unit): Update.
5877 (dwarf2_build_psymtabs_hard): Update.
5878 (load_partial_comp_unit): Add per_objfile parameter.
5879 (scan_partial_symbols): Update.
5880 (load_full_comp_unit): Add per_objfile parameter.
5881 (process_imported_unit_die): Update.
5882 (create_cus_hash_table): Update.
5883 (find_partial_die): Update.
5884 (dwarf2_read_addr_index): Update.
5885 (follow_die_offset): Update.
5886 (dwarf2_fetch_die_loc_sect_off): Update.
5887 (dwarf2_fetch_constant_bytes): Update.
5888 (dwarf2_fetch_die_type_sect_off): Update.
5889 (follow_die_sig_1): Update.
5890 (load_full_type_unit): Add per_objfile parameter.
5891 (read_signatured_type): Likewise.
5892
5893 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5894
5895 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5896 of objfile_name.
5897
5898 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5899
5900 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5901 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5902 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5903 field.
5904 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5905 (create_cus_from_index): Update.
5906 (dwarf2_read_gdb_index): Update.
5907 (create_cus_from_debug_names): Update.
5908 (dwarf2_read_debug_names): Update.
5909 (get_abbrev_section_for_cu): Update.
5910 (create_all_comp_units): Update.
5911 (read_attribute_value): Update.
5912 (get_debug_line_section): Update.
5913 * dwarf2/index-cache.c (index_cache::store): Update.
5914 * dwarf2/index-write.c (save_gdb_index_command): Update.
5915 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5916
5917 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5918
5919 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5920 member.
5921 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5922 dwarf2_per_cu_data::per_bfd.
5923 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5924 (create_type_unit_group): Likewise.
5925 (queue_comp_unit): Remove reference to
5926 per_cu->dwarf2_per_objfile.
5927 (maybe_queue_comp_unit): Likewise.
5928 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5929 (create_cus_hash_table): Assign new field.
5930
5931 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5932
5933 * dwarf2/read.c: Replace
5934 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5935 dwarf2_cu->per_objfile throughout.
5936
5937 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5938
5939 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5940 parameter, don't use per_cu->dwarf2_per_objfile.
5941 (dw2_instantiate_symtab): Likewise.
5942 (dw2_find_last_source_symtab): Update.
5943 (dw2_map_expand_apply): Update.
5944 (dw2_lookup_symbol): Update.
5945 (dw2_expand_symtabs_for_function): Update.
5946 (dw2_expand_all_symtabs): Update.
5947 (dw2_expand_symtabs_with_fullname): Update.
5948 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5949 don't use per_cu->dwarf2_per_objfile.
5950 (dw2_expand_marked_cus): Update.
5951 (dw2_find_pc_sect_compunit_symtab): Update.
5952 (dw2_debug_names_lookup_symbol): Update.
5953 (dw2_debug_names_expand_symtabs_for_function): Update.
5954 (dw2_debug_names_map_matching_symbols): Update.
5955 (dwarf2_psymtab::expand_psymtab): Update.
5956
5957 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5958
5959 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5960 <per_objfile>: New member.
5961 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5962 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5963 call to dwarf2_cu.
5964 (cutu_reader::cutu_reader): Update.
5965 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5966
5967 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5968
5969 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5970 struct dwarf2_per_objfile.
5971 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5972 dwarf2_per_bfd.
5973 * dwarf2/read.c (set_die_type): Update.
5974 (get_die_type_at_offset): Update.
5975
5976 2020-05-27 Tom Tromey <tom@tromey.com>
5977 Simon Marchi <simon.marchi@efficios.com>
5978
5979 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5980 method.
5981 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5982 get_symtab, set_symtab>: New methods.
5983 <m_symtabs>: New field.
5984 (struct dwarf2_psymtab): Derive from partial_symtab.
5985 <readin_p, get_compunit_symtab>: Declare methods.
5986 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5987 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5988 New methods.
5989 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5990 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5991 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5992 (dw2_symtab_iter_next, dw2_print_stats)
5993 (dw2_expand_symtabs_with_fullname)
5994 (dw2_expand_symtabs_matching_one)
5995 (dw_expand_symtabs_matching_file_matcher)
5996 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5997 (dw2_debug_names_iterator::next)
5998 (dw2_debug_names_map_matching_symbols)
5999 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6000 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6001 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6002 New methods.
6003 (get_compunit_symtab, process_full_comp_unit)
6004 (process_full_type_unit): Update.
6005 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6006
6007 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6008
6009 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6010 then introduce a new dwarf2_per_objfile type.
6011 <read_line_string>: Move to the new dwarf2_per_objfile type.
6012 <objfile>: Likewise.
6013 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6014 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6015 dwarf2_per_objfile->per_bfd.
6016 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6017 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6018 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6019 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6020 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6021 (dwarf2_per_objfile::locate_sections): Rename to...
6022 (dwarf2_per_bfd::locate_sections): ... this.
6023 (dwarf2_per_objfile::get_cutu): Rename to...
6024 (dwarf2_per_bfd::get_cutu): ... this.
6025 (dwarf2_per_objfile::get_cu): Rename to...
6026 (dwarf2_per_bfd::get_cu): ... this.
6027 (dwarf2_per_objfile::get_tu): Rename to...
6028 (dwarf2_per_bfd::get_tu): ... this.
6029 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6030 (dwarf2_per_bfd::allocate_per_cu): ... this.
6031 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6032 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6033 (get_gdb_index_contents_ftype): Change parameter from
6034 dwarf2_per_objfile to dwarf2_per_bfd.
6035 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6036 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6037
6038 2020-05-27 Tom Tromey <tom@tromey.com>
6039 Simon Marchi <simon.marchi@efficios.com>
6040
6041 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6042 (allocate_piece_closure): Set "per_objfile" member.
6043 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6044 (locexpr_describe_location, loclist_describe_location): Use new
6045 member.
6046 * dwarf2/read.c (read_call_site_scope)
6047 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6048 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6049 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6050 handle_data_member_location): Set per_objfile member.
6051 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6052 member.
6053 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6054
6055 2020-05-27 Tom Tromey <tom@tromey.com>
6056
6057 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6058 allocate_signatured_type>: Declare new methods.
6059 <m_num_psymtabs>: New member.
6060 (struct dwarf2_per_cu_data) <index>: New member.
6061 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6062 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6063 (create_cu_from_index_list): Use allocate_per_cu.
6064 (create_signatured_type_table_from_index)
6065 (create_signatured_type_table_from_debug_names)
6066 (create_debug_type_hash_table, add_type_unit)
6067 (read_comp_units_from_section): Use allocate_signatured_type.
6068
6069 2020-05-27 Tom Tromey <tom@tromey.com>
6070
6071 * psymtab.c (partial_map_expand_apply)
6072 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6073 (psym_lookup_global_symbol_language)
6074 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6075 (psym_print_stats, psym_expand_symtabs_for_function)
6076 (psym_map_symbol_filenames, psym_map_matching_symbols)
6077 (psym_expand_symtabs_matching)
6078 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6079 (maintenance_check_psymtabs): Update.
6080 * psympriv.h (struct partial_symtab) <readin_p,
6081 get_compunit_symtab>: Add objfile parameter.
6082 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6083 Likewise.
6084 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6085 get_compunit_symtab>: Likewise.
6086 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6087
6088 2020-05-27 Tom Tromey <tom@tromey.com>
6089
6090 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6091 member.
6092 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6093 (create_cu_from_index_list)
6094 (create_signatured_type_table_from_index)
6095 (create_signatured_type_table_from_debug_names)
6096 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6097 (dwarf2_create_include_psymtab)
6098 (create_debug_type_hash_table, add_type_unit)
6099 (create_type_unit_group, read_comp_units_from_section)
6100 (dwarf2_compute_name, create_cus_hash_table)
6101 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6102 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6103 obstack.
6104 (dw2_get_real_path): Likewise. Change argument to
6105 dwarf2_per_objfile.
6106
6107 2020-05-27 Luis Machado <luis.machado@linaro.org>
6108
6109 PR tdep/26000
6110 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6111 for ldrd (immediate).
6112
6113 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6114
6115 * command.h: Add comment giving the name of class_tui.
6116 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6117 create the fake command for the help for class_tui.
6118
6119 2020-05-26 Tom Tromey <tromey@adacore.com>
6120
6121 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6122 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6123 (val_atr): New function.
6124 (value_val_atr): Use it.
6125 * ada-valprint.c (print_optional_low_bound): Change low bound
6126 handling for enums.
6127 (val_print_packed_array_elements): Don't call discrete_position.
6128 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6129 discrete_position for enum types.
6130 * language.c (default_print_array_index): Change type.
6131 * language.h (struct language_defn) <la_print_array_index>: Add
6132 index_type parameter, change type of index_value.
6133 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6134 (default_print_array_index): Update.
6135 * valprint.c (maybe_print_array_index): Don't call
6136 value_from_longest. Update.
6137 (value_print_array_elements): Don't call discrete_position.
6138
6139 2020-05-26 Tom Tromey <tromey@adacore.com>
6140
6141 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6142 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6143
6144 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6145
6146 PR gdb/13519
6147 * avr-tdep.c (avr_integer_to_address): Return data or code
6148 address accordingly to the second 'type' argument of the
6149 function.
6150
6151 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6152
6153 * infcmd.c, inferior.h: (construct_inferior_arguments):
6154 Moved function from here to gdbsupport/common-inferior.{h,cc}
6155
6156 2020-05-23 Tom Tromey <tom@tromey.com>
6157
6158 Revert commit eca1f90c:
6159 * NEWS: Remove entry for completion styling.
6160 * completer.c (_rl_completion_prefix_display_length): Move
6161 declaration later.
6162 (gdb_fnprint): Revert.
6163 (gdb_display_match_list_1): Likewise.
6164 * cli/cli-style.c (completion_prefix_style)
6165 (completion_difference_style, completion_suffix_style): Remove.
6166 (_initialize_cli_style): Revert.
6167 * cli/cli-style.h (completion_prefix_style)
6168 (completion_difference_style, completion_suffix_style): Don't
6169 declare.
6170
6171 2020-05-24 Pedro Alves <palves@redhat.com>
6172
6173 * symtab.c (completion_list_add_name): Return boolean indication
6174 of whether the symbol matched.
6175 (completion_list_add_symbol): Don't try to remove C++ aliases if
6176 the symbol didn't match in the first place.
6177 * symtab.h (completion_list_add_name): Return bool.
6178
6179 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6180
6181 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6182 type::field.
6183
6184 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6185
6186 GDB 9.2 released.
6187
6188 2020-05-23 Tom Tromey <tom@tromey.com>
6189
6190 * NEWS: Add entry for completion styling.
6191 * completer.c (_rl_completion_prefix_display_length): Move
6192 declaration earlier.
6193 (gdb_fnprint): Use completion_style.
6194 (gdb_display_match_list_1): Likewise.
6195 * cli/cli-style.c (completion_prefix_style)
6196 (completion_difference_style, completion_suffix_style): New
6197 globals.
6198 (_initialize_cli_style): Register new globals.
6199 * cli/cli-style.h (completion_prefix_style)
6200 (completion_difference_style, completion_suffix_style): Declare.
6201
6202 2020-05-23 Pedro Alves <palves@redhat.com>
6203
6204 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6205 (parse_escape): Use ISDIGIT instead of isdigit.
6206 (puts_debug): Use gdb_isprint instead of isprint.
6207 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6208 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6209 ISSPACE instead of isspace.
6210 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6211 instead of isspace.
6212 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6213 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6214 instead of isxdigit and ISDIGIT instead of isdigit.
6215
6216 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6217
6218 * gdbtypes.h (struct type) <field>: New method.
6219 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6220 or type::field.
6221
6222 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6223
6224 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6225 (TYPE_FIELDS): Use type::fields. Change all call sites that
6226 modify the propery to use type::set_fields instead.
6227
6228 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6229
6230 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6231 type::num_fields instead.
6232
6233 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6234
6235 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6236 methods.
6237 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6238 that modify the number of fields to use type::set_num_fields
6239 instead.
6240
6241 2020-05-22 Tom Tromey <tromey@adacore.com>
6242
6243 * compile/compile-object-load.h (munmap_list_free): Don't
6244 declare.
6245
6246 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6247
6248 * annotate.c (annotate_source_line): Update return type, add call
6249 to update current symtab and line.
6250 * annotate.h (annotate_source_line): Update return type, and
6251 extend header comment.
6252 * source.c (info_line_command): Check annotation_level before
6253 calling annotate_source_line.
6254 * stack.c (print_frame_info): If calling annotate_source_line
6255 returns true, then don't print any other source line information.
6256
6257 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6258
6259 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6260
6261 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6262
6263 * coffread.c (patch_type): Remove NULL check before xfree.
6264 * corefile.c (set_gnutarget): Likewise.
6265 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6266 * exec.c (build_section_table): Likewise.
6267 * remote.c (remote_target::pass_signals): Likewise.
6268 * utils.c (n_spaces): Likewise.
6269 * cli/cli-script.c (document_command): Likewise.
6270 * i386-windows-tdep.c (core_process_module_section): Likewise.
6271 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6272
6273 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6274
6275 * symfile.c (reread_symbols): Clear objfile's section_offsets
6276 vector and section indices, re-compute them by calling
6277 sym_offsets.
6278
6279 2020-05-20 Tom Tromey <tromey@adacore.com>
6280
6281 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6282 (desc_one_bound, desc_index_type): Compute field name.
6283
6284 2020-05-20 Tom de Vries <tdevries@suse.de>
6285
6286 PR symtab/25833
6287 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6288
6289 2020-05-20 Alan Modra <amodra@gmail.com>
6290
6291 PR 25993
6292 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6293 bfd_set_filename.
6294 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6295 passed to bfd_set_filename.
6296 * symfile-mem.c (add_vsyscall_page): Likewise for string
6297 passed to symbol_file_add_from_memory.
6298 (symbol_file_add_from_memory): Make name param a const char* and
6299 don't strdup.
6300
6301 2020-05-20 Alan Modra <amodra@gmail.com>
6302
6303 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6304 rather than accessing bfd->filename directly.
6305 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6306 and use bfd_section_name.
6307 * dwarf2/frame.c (decode_frame_entry): Likewise.
6308 * exec.c (exec_set_section_address): Likewise.
6309 * solib-aix.c (solib_aix_bfd_open): Likewise.
6310 * stap-probe.c (get_stap_base_address): Likewise.
6311 * symfile.c (reread_symbols): Likewise.
6312
6313 2020-05-19 Tom Tromey <tromey@adacore.com>
6314
6315 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6316
6317 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6318
6319 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6320
6321 2020-05-19 Pedro Alves <palves@redhat.com>
6322
6323 * NEWS (set exec-file-mismatch): Adjust entry.
6324 * exec.c: Include "build-id.h".
6325 (validate_exec_file): Try to match build IDs instead of filenames.
6326 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6327 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6328 and pass down 'warn_if_slow'.
6329 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6330 gdb_bfd_open_closure to pass it down.
6331 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6332
6333 2020-05-19 Pedro Alves <palves@redhat.com>
6334
6335 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6336 * target.c (target_fileio_open_1): Rename to target_fileio_open
6337 and make extern. Use bool.
6338 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6339 (target_fileio_read_alloc_1): Adjust.
6340 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6341 (target_fileio_open_warn_if_slow): Delete declaration.
6342
6343 2020-05-19 Pedro Alves <palves@redhat.com>
6344
6345 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6346 Adjust all callers.
6347
6348 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6349
6350 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6351 whether disp is negative.
6352
6353 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6354
6355 * symfile.h (struct symfile_segment_data)
6356 <~symfile_segment_data>: Remove.
6357 <segment_info>: Change to std::vector.
6358 * symfile.c (default_symfile_segments): Update.
6359 * elfread.c (elf_symfile_segments): Update.
6360
6361 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6362
6363 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6364 <segments>: New.
6365 <segment_bases, segment_sizes>: Remove.
6366 * symfile.c (default_symfile_segments): Update.
6367 * elfread.c (elf_symfile_segments): Update.
6368 * remote.c (remote_target::get_offsets): Update.
6369 * solib-target.c (solib_target_relocate_section_addresses):
6370 Update.
6371
6372 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6373
6374 * symfile.h (struct symfile_segment_data): Initialize fields.
6375 <~symfile_segment_data>: Add.
6376 (symfile_segment_data_up): New.
6377 (struct sym_fns) <sym_segments>: Return a
6378 symfile_segment_data_up.
6379 (default_symfile_segments): Return a symfile_segment_data_up.
6380 (free_symfile_segment_data): Remove.
6381 (get_symfile_segment_data): Return a symfile_segment_data_up.
6382 * symfile.c (default_symfile_segments): Likewise.
6383 (get_symfile_segment_data): Likewise.
6384 (free_symfile_segment_data): Remove.
6385 (symfile_find_segment_sections): Update.
6386 * elfread.c (elf_symfile_segments): Return a
6387 symfile_segment_data_up.
6388 * remote.c (remote_target::get_offsets): Update.
6389 * solib-target.c (solib_target_relocate_section_addresses):
6390 Update.
6391 * symfile-debug.c (debug_sym_segments): Return a
6392 symfile_segment_data_up.
6393
6394 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6395
6396 PR build/25981
6397 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6398 Hardcode register numbers.
6399
6400 PR build/25981
6401 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6402 procfs_find_LDT_entry): Remove.
6403 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6404 procfs_find_LDT_entry): Remove.
6405 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6406 Remove.
6407
6408 2020-05-17 Pedro Alves <palves@redhat.com>
6409 Andrew Burgess <andrew.burgess@embecosm.com>
6410 Keno Fischer <keno@juliacomputing.com>
6411
6412 PR gdb/25741
6413 * breakpoint.c (build_target_condition_list): Update comments.
6414 (build_target_command_list): Update comments and skip matching
6415 locations.
6416 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6417 a separate function. Simplify "set breakpoint auto-hw off"
6418 handling.
6419 (insert_breakpoints): Update comment.
6420 (tracepoint_locations_match): New parameter. For breakpoints,
6421 compare location types too, if the caller wants to.
6422 (handle_automatic_hardware_breakpoints): New functions.
6423 (bp_location_is_less_than): Also sort by location type and
6424 hardware breakpoint length.
6425 (update_global_location_list): Handle "set breakpoint auto-hw on"
6426 here.
6427 (update_breakpoint_locations): Ask breakpoint_locations_match to
6428 ignore location types.
6429
6430 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6431
6432 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6433 type::name instead.
6434
6435 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6436
6437 * gdbtypes.h (struct type) <name, set_name>: New methods.
6438 (TYPE_CODE): Use type::name. Change all call sites used to set
6439 the name to use type::set_name instead.
6440
6441 2020-05-16 Tom Tromey <tom@tromey.com>
6442
6443 * top.c (quit_force): Update.
6444 * infrun.c (handle_no_resumed): Update.
6445 * top.h (all_uis): New function.
6446 (ALL_UIS): Remove.
6447
6448 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6449
6450 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6451
6452 2020-05-16 Pedro Alves <palves@redhat.com>
6453
6454 * ia64-linux-nat.c
6455 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6456 Declare method.
6457 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6458
6459 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6460
6461 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6462 (sparc64_adi_info): Likewise.
6463
6464 2020-05-15 Tom Tromey <tom@tromey.com>
6465
6466 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6467 block_objfile.
6468 (lookup_objfile_from_block): Remove.
6469 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6470 (lookup_global_symbol): Use block_objfile.
6471 * symtab.h (lookup_objfile_from_block): Don't declare.
6472 * printcmd.c (clear_dangling_display_expressions): Use
6473 block_objfile.
6474 * parse.c (operator_check_standard): Use block_objfile.
6475
6476 2020-05-15 Tom Tromey <tom@tromey.com>
6477
6478 * language.c (language_alloc_type_symbol): Set
6479 SYMBOL_SECTION.
6480 * symtab.c (initialize_objfile_symbol): Remove.
6481 (allocate_symbol): Remove.
6482 (allocate_template_symbol): Remove.
6483 * dwarf2/read.c (fixup_go_packaging): Use "new".
6484 (new_symbol): Use "new".
6485 (read_variable): Don't call initialize_objfile_symbol. Use
6486 "new".
6487 (read_func_scope): Use "new".
6488 * xcoffread.c (process_xcoff_symbol): Don't call
6489 initialize_objfile_symbol.
6490 (SYMBOL_DUP): Remove.
6491 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6492 "new".
6493 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6494 (allocate_template_symbol): Don't declare.
6495 (struct symbol): Add copy constructor. Change defaults.
6496 * jit.c (finalize_symtab): Use "new".
6497 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6498 Use "new".
6499 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6500 (common_block_end): Use "new".
6501 * mdebugread.c (parse_symbol): Use "new".
6502 (new_symbol): Likewise.
6503
6504 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6505
6506 * NEWS: Mention changes to help and apropos.
6507
6508 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6509
6510 * command.h (enum command_class): Improve comments, document
6511 that class_alias is for user-defined aliases, give the class
6512 name for each class, remove unused class_xdb.
6513 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6514 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6515 by a precise class.
6516 * infcmd.c (_initialize_infcmd): Likewise.
6517 * reverse.c (_initialize_reverse): Likewise.
6518 * stack.c (_initialize_stack): Likewise.
6519 * symfile.c (_initialize_symfile): Likewise.
6520 * tracepoint.c (_initialize_tracepoint): Likewise.
6521
6522 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6523
6524 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6525 when their aliased command is traversed.
6526 (help_cmd): Add fput_command_names_styled call to
6527 output command name and aliases when command has an alias.
6528
6529 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6530
6531 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6532 * cli/cli-decode.c (help_cmd_list): Declare as static,
6533 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6534 a command together with the command.
6535 (fput_command_name_styled, fput_command_names_styled): New functions.
6536 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6537 fput_command_name_styled.
6538 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6539 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6540
6541 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6542
6543 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6544 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6545 * command.h (cmd_show_list): Likewise.
6546 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6547 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6548
6549 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6550
6551 * unittests/command-def-selftests.c (traverse_command_structure):
6552 Verify all commands of a list have the same prefix command and
6553 that only the top cmdlist commands have a null prefix.
6554
6555 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6556
6557 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6558 as prefix, not one of its aliases.
6559 (set_cmd_prefix): Remove.
6560 (do_add_cmd): Centralize the setting of the prefix of a command, when
6561 command is defined after its full chain of prefix commands.
6562 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6563 (add_setshow_cmd_full): Likewise.
6564 (update_prefix_field_of_prefixed_commands): New function.
6565 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6566 update_prefix_field_of_prefixed_commands.
6567 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6568 addresses of remote_set_cmdlist and remote_show_cmdlist given
6569 as argument, not the address of an argument.
6570 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6571 * gdb/remote.c (_initialize_remote): Likewise.
6572
6573 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6574
6575 * cli/cli-cmds.c (alias_command): Check for an existing alias
6576 using lookup_cmd_composition, as valid_command_p is too strict
6577 and forbids aliases that are the prefix of an existing alias
6578 or command.
6579 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6580 command is properly recognised as a valid command.
6581
6582 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6583
6584 * unittests/help-doc-selftests.c: Rename to
6585 unittests/command-def-selftests.c
6586 * unittests/command-def-selftests.c (help_doc_tests): Update some
6587 comments.
6588 (command_structure_tests, traverse_command_structure): New namespace
6589 and function.
6590 (command_structure_invariants_tests): New function.
6591 (_initialize_command_def_selftests) Renamed from
6592 _initialize_help_doc_selftests, register command_structure_invariants
6593 selftest.
6594
6595 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6596
6597 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6598 an alias of 'show'.
6599
6600 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6601
6602 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6603 ada_is_fixed_point_type. Update all callers.
6604 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6605 all callers.
6606 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6607 Update all callers.
6608 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6609 print_fixed_point_type. Update all callers.
6610 * ada-valprint.c (ada_value_print_num): Replace call to
6611 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6612
6613 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6614
6615 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6616 processors.
6617 (cpu_supports_bts): Add CV_AMD case.
6618
6619 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6620 Simon Marchi <simon.marchi@efficios.com>
6621
6622 * infrun.c (stop_all_threads): Collect multiple wait events at
6623 each pass.
6624
6625 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6626
6627 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6628 type::code instead.
6629
6630 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6631
6632 * gdbtypes.h (struct type) <code, set_code>: New methods.
6633 (TYPE_CODE): Use type::code. Change all call sites used to set
6634 the code to use type::set_code instead.
6635
6636 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6637 Tom de Vries <tdevries@suse.de>
6638 Pedro Alves <palves@redhat.com>
6639
6640 PR threads/25478
6641 * infrun.c (stop_all_threads): Do NOT ignore
6642 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6643 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6644 received.
6645 (handle_no_resumed): Remove code handling a live inferior with no
6646 threads.
6647 * remote.c (has_single_non_exited_thread): New.
6648 (remote_target::update_thread_list): Do not delete a thread if is
6649 the last thread of the process.
6650 * thread.c (thread_select): Call delete_exited_threads instead of
6651 prune_threads.
6652
6653 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6654
6655 * infrun.c (stop_all_threads): Enable/disable thread events of all
6656 targets. Move a debug message denoting the end of the function
6657 into the SCOPED_EXIT block.
6658
6659 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6660
6661 * process-stratum-target.h: Include <set>.
6662 (all_non_exited_process_targets, switch_to_target_no_thread): New
6663 function declarations.
6664 * process-stratum-target.c (all_non_exited_process_targets)
6665 (switch_to_target_no_thread): New function implementations.
6666
6667 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6668
6669 * infrun.c (handle_inferior_event): Extract out a piece of code
6670 into...
6671 (mark_non_executing_threads): ...this new function.
6672
6673 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6674
6675 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6676 use.
6677
6678 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6679
6680 * regcache.c (regcache_read_pc_protected): New function
6681 implementation that returns 0 if the PC cannot read via
6682 'regcache_read_pc'.
6683 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6684 instead of 'regcache_read_pc'.
6685 (keep_going_pass_signal): Ditto.
6686
6687 2020-05-13 Tom Tromey <tromey@adacore.com>
6688
6689 * ada-lang.c (align_value): Remove.
6690 (ada_template_to_fixed_record_type_1): Use align_up.
6691
6692 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6693
6694 * async-event.c: Update the copyright year.
6695 * async-event.h: Update the copyright year.
6696
6697 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6698
6699 * objfiles.h (is_addr_in_objfile,
6700 shared_objfile_contains_address_p): Return bool.
6701 * objfile.c (is_addr_in_objfile,
6702 shared_objfile_contains_address_p): Return bool.
6703
6704 2020-05-11 Tom Tromey <tromey@adacore.com>
6705
6706 * cli/cli-cmds.c (info_command): Restore.
6707 (_initialize_cli_cmds): Use add_prefix_command for "info".
6708 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6709
6710 2020-05-11 Tom Tromey <tromey@adacore.com>
6711
6712 * ada-lang.c (ada_value_primitive_field): Now public.
6713 * ada-lang.h (ada_value_primitive_field): Declare.
6714 * ada-valprint.c (print_field_values): Use
6715 ada_value_primitive_field for wrapper fields.
6716
6717 2020-05-11 Tom de Vries <tdevries@suse.de>
6718
6719 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6720 MODULE_DOMAIN.
6721
6722 2020-05-11 Tom de Vries <tdevries@suse.de>
6723
6724 PR symtab/25941
6725 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6726 with length 0, if not gdb-produced.
6727 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6728
6729 2020-05-09 Tom de Vries <tdevries@suse.de>
6730
6731 PR gdb/25955
6732 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6733 calculation.
6734
6735 2020-05-09 Tom Tromey <tom@tromey.com>
6736
6737 * top.c (server_command): Now bool.
6738 * top.h (server_command): Now bool.
6739
6740 2020-05-08 Tom Tromey <tromey@adacore.com>
6741
6742 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6743 already being processed.
6744
6745 2020-05-08 Tom Tromey <tom@tromey.com>
6746
6747 * printcmd.c (struct display) <next>: Remove.
6748 <display>: New constructor.
6749 <exp_string>: Now a std::string.
6750 <enabled_p>: Now a bool.
6751 (display_number): Move definition earlier.
6752 (displays): Rename from display_chain. Now a std::vector.
6753 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6754 (display_command): Update.
6755 (do_one_display, disable_display)
6756 (enable_disable_display_command, do_enable_disable_display):
6757 Update.
6758 (free_display): Remove.
6759 (clear_displays): Rewrite.
6760 (delete_display): Update.
6761 (map_display_numbers): Use function_view. Remove "data"
6762 parameter. Update.
6763 (do_delete_display): Remove.
6764 (undisplay_command): Update.
6765 (do_one_display, do_displays, disable_display)
6766 (info_display_command): Update.
6767 (do_enable_disable_display): Remove.
6768 (enable_disable_display_command)
6769 (clear_dangling_display_expressions): Update.
6770
6771 2020-05-08 Tom Tromey <tom@tromey.com>
6772
6773 * symtab.c (set_symbol_cache_size)
6774 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6775 (maintenance_print_symbol_cache_statistics): Update.
6776 * symmisc.c (print_symbol_bcache_statistics)
6777 (print_objfile_statistics, maintenance_print_objfiles)
6778 (maintenance_info_symtabs, maintenance_check_symtabs)
6779 (maintenance_expand_symtabs, maintenance_info_line_tables):
6780 Update.
6781 * symfile-debug.c (set_debug_symfile): Update.
6782 * source.c (forget_cached_source_info): Update.
6783 * python/python.c (gdbpy_progspaces): Update.
6784 * psymtab.c (maintenance_info_psymtabs): Update.
6785 * probe.c (parse_probes): Update.
6786 * linespec.c (iterate_over_all_matching_symtabs)
6787 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6788 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6789 * exec.c (exec_target::close): Update.
6790 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6791 * breakpoint.c (print_one_breakpoint_location)
6792 (create_longjmp_master_breakpoint)
6793 (create_std_terminate_master_breakpoint): Update.
6794 * progspace.c (program_spaces): Now a std::vector.
6795 (maybe_new_address_space): Update.
6796 (add_program_space): Remove.
6797 (program_space::program_space): Update.
6798 (remove_program_space): Update.
6799 (number_of_program_spaces): Remove.
6800 (print_program_space, update_address_spaces): Update.
6801 * progspace.h (program_spaces): Change type.
6802 (ALL_PSPACES): Remove.
6803 (number_of_program_spaces): Don't declare.
6804 (struct program_space) <next>: Remove.
6805
6806 2020-05-08 Tom Tromey <tom@tromey.com>
6807
6808 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6809 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6810 (enable_break): Update.
6811 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6812 (frv_fdpic_find_canonical_descriptor): Update.
6813 (frv_fetch_objfile_link_map): Update.
6814 * progspace.c (program_space::free_all_objfiles): Update.
6815 (program_space::solibs): New method.
6816 * progspace.h (struct program_space) <solibs>: New method.
6817 * solist.h (master_so_list): Don't declare.
6818 (ALL_SO_LIBS): Remove.
6819 * solib.h (so_list_head): Remove.
6820 (update_solib_list): Update comment.
6821 * solib.c (master_so_list): Remove.
6822 (solib_used, update_solib_list, solib_add)
6823 (info_sharedlibrary_command, clear_solib)
6824 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6825
6826 2020-05-08 Tom Tromey <tom@tromey.com>
6827
6828 * extension.c (extension_languages): Now a std::array.
6829 (ALL_EXTENSION_LANGUAGES): Remove.
6830 (get_ext_lang_defn, get_ext_lang_of_file)
6831 (eval_ext_lang_from_control_command): Update.
6832 (finish_ext_lang_initialization)
6833 (auto_load_ext_lang_scripts_for_objfile)
6834 (ext_lang_type_printers::ext_lang_type_printers)
6835 (apply_ext_lang_type_printers)
6836 (ext_lang_type_printers::~ext_lang_type_printers)
6837 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6838 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6839 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6840 (get_matching_xmethod_workers, ext_lang_colorize)
6841 (ext_lang_before_prompt): Update.
6842 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6843
6844 2020-05-08 Tom Tromey <tom@tromey.com>
6845
6846 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6847 overload.
6848 <swap_string, m_string>: Remove.
6849 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6850 Update.
6851 * stabsread.c (define_symbol, read_type): Update.
6852 * linespec.c (find_linespec_symbols): Update.
6853 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6854 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6855 * dbxread.c (read_dbx_symtab): Update.
6856 * cp-support.h (cp_canonicalize_string_full)
6857 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6858 Return unique_xmalloc_ptr.
6859 * cp-support.c (inspect_type): Update.
6860 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6861 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6862 Likewise.
6863 * c-typeprint.c (print_name_maybe_canonical): Update.
6864 * break-catch-throw.c (check_status_exception_catchpoint):
6865 Update.
6866
6867 2020-05-08 Tom de Vries <tdevries@suse.de>
6868
6869 * infrun.c (follow_fork): Copy current_line and current_symtab to
6870 child thread.
6871
6872 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6873
6874 * async-event.c (struct async_signal_handler, struct
6875 async_event_handler): Reformat, remove typedef.
6876
6877 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6878
6879 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6880 access thistype->main_type->dyn_prop_list directly.
6881
6882 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6883
6884 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6885 (remove_dyn_prop): Remove. Update all users to use
6886 type::remove_dyn_prop.
6887 * gdbtypes.c (remove_dyn_prop): Rename to...
6888 (type::remove_dyn_prop): ... this.
6889
6890 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6891
6892 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6893 (add_dyn_prop): Remove. Update all users to use
6894 type::add_dyn_prop.
6895 * gdbtypes.c (add_dyn_prop): Rename to...
6896 (type::add_dyn_prop): ... this.
6897
6898 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6899
6900 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6901 (get_dyn_prop): Remove. Update all users to use
6902 type::dyn_prop.
6903 * gdbtypes.c (get_dyn_prop): Rename to...
6904 (type::dyn_prop): ... this.
6905
6906 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6907
6908 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6909
6910 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6911
6912 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6913 instruction, skip it if it's there.
6914
6915 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6916
6917 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6918
6919 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6920
6921 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6922 * gdbtypes.c (recursive_dump_type): Remove use of
6923 TYPE_INCOMPLETE.
6924
6925 2020-05-03 Tom Tromey <tom@tromey.com>
6926
6927 * breakpoint.c (catch_command, tcatch_command): Remove.
6928 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6929 add_show_prefix_cmd.
6930 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6931 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6932 Remove.
6933 (add_internal_problem_command): Use add_basic_prefix_cmd,
6934 add_show_prefix_cmd.
6935 * mips-tdep.c (set_mipsfpu_command): Remove.
6936 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6937 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6938 (_initialize_index_cache): Use add_basic_prefix_cmd.
6939 * memattr.c (dummy_cmd): Remove.
6940 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6941 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6942 (_initialize_tui_win): Use add_basic_prefix_cmd,
6943 add_show_prefix_cmd.
6944 * cli/cli-logging.c (set_logging_command): Remove.
6945 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6946 add_show_prefix_cmd.
6947 (show_logging_command): Remove.
6948 * target.c (target_command): Remove.
6949 (add_target): Use add_basic_prefix_cmd.
6950
6951 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6952
6953 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6954
6955 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6956
6957 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6958 info_command.
6959
6960 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6961
6962 * nbsd-nat.c (nbsd_enable_proc_events)
6963 (nbsd_nat_target::post_startup_inferior): Add.
6964 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6965 (nbsd_nat_target::update_thread_list): Rewrite.
6966 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6967 "PTRACE_LWP_CREATE".
6968 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6969
6970 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6971
6972 * stack.c (_initialize_stack): Remove duplicated creation
6973 of "frame" command and "f" alias.
6974
6975 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6976
6977 PR gdb/18706
6978 * gdbtypes.c (check_typedef): Calculate size of array of
6979 stubbed type.
6980
6981 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6982
6983 PR gdb/15559
6984 * i386-tdep.c (i386_push_dummy_call): Call
6985 i386_thiscall_push_dummy_call.
6986 (i386_thiscall_push_dummy_call): New function.
6987 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6988 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6989 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6990
6991 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6992
6993 * gdbarch.sh (do_read): Add shellcheck disable directive for
6994 warning SC2162.
6995
6996 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6997
6998 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6999 "referenced but not assigned" warning.
7000
7001 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7002
7003 * gdbarch.sh: Remove code that sets fallbackdefault.
7004
7005 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7006
7007 * gdbarch.sh: Use shell operators && and || instead of
7008 -a and -o.
7009
7010 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7011
7012 * gdbarch.sh: Use $(...) instead of `...`.
7013
7014 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7015
7016 * gdbarch.sh: Use double quotes around variables.
7017
7018 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7019
7020 * gdbarch.sh: Use %s with printf, instead of variables in the
7021 format string.
7022
7023 2020-04-29 Tom Tromey <tromey@adacore.com>
7024
7025 PR ada/25875:
7026 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7027 type fields here.
7028 (read_enumeration_type): Call
7029 update_enumeration_type_from_children later. Update comments.
7030 (process_enumeration_scope): Don't create type fields.
7031
7032 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7033
7034 * nbsd-tdep.c: Include "xml-syscall.h".
7035 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7036
7037 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7038
7039 * nbsd-nat.c: Include "sys/wait.h".
7040 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7041 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7042 (nbsd_nat_target::remove_exec_catchpoint)
7043 (nbsd_nat_target::set_syscall_catchpoint): Add.
7044 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7045 (nbsd_nat_target::insert_exec_catchpoint)
7046 (nbsd_nat_target::remove_exec_catchpoint)
7047 (nbsd_nat_target::set_syscall_catchpoint): Add.
7048 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7049 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7050 `nbsd_get_syscall_number'.
7051
7052 2020-04-29 Tom Tromey <tom@tromey.com>
7053
7054 * stack.c (print_block_frame_labels): Remove.
7055
7056 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7057
7058 PR gdb/17320
7059 * ada-valprint.c (val_print_packed_array_elements): Move array
7060 end bracket to new line.
7061 (ada_val_print_string): Remove extra spaces before first array
7062 element.
7063 * c-valprint.c (c_value_print_array): Likewise.
7064 * m2-valprint.c (m2_print_array_contents): Likewise.
7065 (m2_value_print_inner): Likewise.
7066 * p-valprint.c (pascal_value_print_inner): Likewise.
7067 * valprint.c (generic_val_print_array): Likewise.
7068 (value_print_array_elements): Move first array element and array
7069 end bracket to new line.
7070
7071 2020-04-29 Tom de Vries <tdevries@suse.de>
7072
7073 PR symtab/25889
7074 * linespec.c (find_method): Fix ix calculation.
7075
7076 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7077
7078 * syscalls/update-netbsd.sh: New file.
7079 * syscalls/netbsd.xml: Regenerate.
7080 * data-directory/Makefile.in: Register `netbsd.xml' in
7081 `SYSCALLS_FILES'.
7082
7083 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7084
7085 * syscalls/update-freebsd.sh: Add double quotes.
7086
7087 2020-04-28 Tom Tromey <tom@tromey.com>
7088
7089 * NEWS: Update.
7090 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7091 (cmdpy_init): Allow class_tui.
7092
7093 2020-04-28 Mark Williams <mark@myosotissp.com>
7094
7095 PR gdb/24480
7096 * dwarf2read.c: Add missing assingments to list_in_scope when
7097 start_symtab was already called.
7098
7099 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7100
7101 PR gdb/25881
7102 * dwarf2/read.c (offset_map_type): Use
7103 gdb:hash_enum<sect_offset> as hash function.
7104
7105 2020-04-28 Tom de Vries <tdevries@suse.de>
7106
7107 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7108 with DW_AT_signature.
7109
7110 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7111
7112 * configure.ac: Remove check for fs_base/gs_base in
7113 user_regs_struct.
7114 * configure: Re-generate.
7115 * config.in: Re-generate.
7116 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7117 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7118 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7119
7120 2020-04-27 Luis Machado <luis.machado@linaro.org>
7121
7122 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7123 problematic inline frame unwinding situation.
7124 * frame.c (frame_id_computed_p): New function.
7125 * frame.h (frame_id_computed_p): New prototype.
7126
7127 2020-04-26 Tom Tromey <tom@tromey.com>
7128
7129 * command.h (enum command_class) <class_pseudo>: Remove.
7130
7131 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7132
7133 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7134 and whitespace.
7135
7136 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7137
7138 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7139 `PT_GET_PROCESS_STATE' block.
7140
7141 2020-04-24 Tom Tromey <tom@tromey.com>
7142
7143 * symtab.h (symbol_get_demangled_name): Don't declare.
7144 * symtab.c (symbol_get_demangled_name): Remove.
7145 (general_symbol_info::natural_name)
7146 (general_symbol_info::demangled_name): Update.
7147
7148 2020-04-24 Tom Tromey <tom@tromey.com>
7149
7150 PR rust/25025:
7151 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7152
7153 2020-04-24 Tom Tromey <tom@tromey.com>
7154
7155 PR symtab/12707:
7156 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7157 exists.
7158 (new_symbol): Likewise.
7159 * compile/compile-object-load.c (get_out_value_type): Use
7160 symbol_matches_search_name.
7161
7162 2020-04-24 Tom Tromey <tom@tromey.com>
7163
7164 * dwarf2/read.c (add_partial_symbol): Do not call
7165 compute_and_set_names.
7166
7167 2020-04-24 Tom Tromey <tom@tromey.com>
7168
7169 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7170 overload.
7171
7172 2020-04-24 Tom Tromey <tom@tromey.com>
7173
7174 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7175 (add_psymbol_to_list): New overload. Make old overload call new
7176 one.
7177 * psympriv.h (add_psymbol_to_list): New overload.
7178
7179 2020-04-24 Tom Tromey <tom@tromey.com>
7180
7181 * dwarf2/read.c (partial_die_info::read) <case
7182 DW_AT_linkage_name>: Use value_as_string.
7183 (dwarf2_string_attr): Use value_as_string.
7184 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7185 method.
7186 * dwarf2/attribute.c (attribute::value_as_string): New method.
7187
7188 2020-04-24 Tom Tromey <tom@tromey.com>
7189
7190 * symtab.c (general_symbol_info::natural_name)
7191 (general_symbol_info::demangled_name): Check for language_rust.
7192
7193 2020-04-24 Tom Tromey <tom@tromey.com>
7194
7195 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7196 (dwarf2_physname): ... from here.
7197 (partial_die_info::read): Add Rust "{" hack.
7198
7199 2020-04-24 Tom Tromey <tom@tromey.com>
7200
7201 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7202 method.
7203 (symbol_set_demangled_name): Don't declare.
7204 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7205 symbol_set_demangled_name.
7206 (general_symbol_info::set_language)
7207 (general_symbol_info::compute_and_set_names): Update.
7208 * minsyms.c (minimal_symbol_reader::install): Update.
7209 * dwarf2/read.c (new_symbol): Update.
7210
7211 2020-04-24 Tom Tromey <tromey@adacore.com>
7212
7213 PR python/23662:
7214 * python/py-type.c (convert_field): Handle
7215 FIELD_LOC_KIND_DWARF_BLOCK.
7216 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7217 (typy_get_dynamic): Nw function.
7218 (type_object_getset): Add "dynamic".
7219 * NEWS: Add entry.
7220
7221 2020-04-24 Tom Tromey <tromey@adacore.com>
7222
7223 * ada-typeprint.c (print_choices, print_variant_part)
7224 (print_record_field_types_dynamic): New functions.
7225 (print_record_field_types): Use print_record_field_types_dynamic.
7226
7227 2020-04-24 Tom Tromey <tromey@adacore.com>
7228
7229 * dwarf2/read.c (handle_data_member_location): New overload.
7230 (dwarf2_add_field): Use it.
7231 (decode_locdesc): Add "computed" parameter. Update comment.
7232 * gdbtypes.c (is_dynamic_type_internal): Also look for
7233 FIELD_LOC_KIND_DWARF_BLOCK.
7234 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7235 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7236 virtual base classes.
7237 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7238 FIELD_LOC_KIND_DWARF_BLOCK.
7239
7240 2020-04-24 Tom Tromey <tromey@adacore.com>
7241
7242 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7243 * gdbtypes.c (is_dynamic_type_internal): Check
7244 TYPE_HAS_DYNAMIC_LENGTH.
7245 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7246 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7247 New macros.
7248 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7249 constant.
7250
7251 2020-04-24 Tom Tromey <tromey@adacore.com>
7252
7253 * dwarf2/read.c (struct variant_field): Rewrite.
7254 (struct variant_part_builder): New.
7255 (struct nextfield): Remove "variant" field. Add "offset".
7256 (struct field_info): Add "current_variant_part" and
7257 "variant_parts".
7258 (alloc_discriminant_info): Remove.
7259 (alloc_rust_variant): New function.
7260 (quirk_rust_enum): Update.
7261 (dwarf2_add_field): Set "offset" member. Don't handle
7262 DW_TAG_variant_part.
7263 (offset_map_type): New typedef.
7264 (convert_variant_range, create_one_variant)
7265 (create_one_variant_part, create_variant_parts)
7266 (add_variant_property): New functions.
7267 (dwarf2_attach_fields_to_type): Call add_variant_property.
7268 (read_structure_type): Don't handle DW_TAG_variant_part.
7269 (handle_variant_part, handle_variant): New functions.
7270 (handle_struct_member_die): Use them.
7271 (process_structure_scope): Don't handle variant parts.
7272 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7273 (struct discriminant_info): Remove.
7274 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7275 (struct main_type) <flag_discriminated_union>: Remove.
7276 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7277 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7278 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7279 Update.
7280 * valops.c (value_union_variant): Remove.
7281 * value.h (value_union_variant): Don't declare.
7282
7283 2020-04-24 Tom Tromey <tromey@adacore.com>
7284
7285 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7286 (ada_value_primitive_packed_val): Update.
7287 * ada-valprint.c (ada_value_print_1): Update.
7288 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7289 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7290 just an address. Use evaluate_for_locexpr_baton.
7291 (dwarf2_evaluate_property): Update.
7292 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7293 array_view.
7294 * findvar.c (default_read_var_value): Update.
7295 * gdbtypes.c (compute_variant_fields_inner)
7296 (resolve_dynamic_type_internal): Update.
7297 (resolve_dynamic_type): Change type of valaddr parameter.
7298 * gdbtypes.h (resolve_dynamic_type): Update.
7299 * valarith.c (value_subscripted_rvalue): Update.
7300 * value.c (value_from_contents_and_address): Update.
7301
7302 2020-04-24 Tom Tromey <tromey@adacore.com>
7303
7304 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7305 "push_initial_value" parameter.
7306 (dwarf2_evaluate_property): Likewise.
7307 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7308
7309 2020-04-24 Tom Tromey <tromey@adacore.com>
7310
7311 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7312 (variant::matches, compute_variant_fields_recurse)
7313 (compute_variant_fields_inner, compute_variant_fields): New
7314 functions.
7315 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7316 Use resolved_type after type is made.
7317 (operator==): Add new cases.
7318 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7319 (struct discriminant_range, struct variant, struct variant_part):
7320 New.
7321 (union dynamic_prop_data) <variant_parts, original_type>: New
7322 members.
7323 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7324 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7325 constants.
7326 * value.c (unpack_bits_as_long): Now public.
7327 * value.h (unpack_bits_as_long): Declare.
7328
7329 2020-04-24 Tom Tromey <tromey@adacore.com>
7330
7331 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7332 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7333
7334 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7335
7336 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7337
7338 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7339
7340 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7341 (remove_fork_catchpoint, post_startup_inferior)
7342 (post_attach): Move...
7343 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7344 (remove_fork_catchpoint, post_startup_inferior)
7345 (post_attach): ...here.
7346 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7347 (remove_fork_catchpoint, post_startup_inferior)
7348 (post_attach): Move...
7349 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7350 (remove_fork_catchpoint, post_startup_inferior)
7351 (post_attach): ...here.
7352
7353 2020-04-24 Tom Tromey <tromey@adacore.com>
7354
7355 * nat/windows-nat.h (struct windows_thread_info)
7356 <pc_adjusted>: New member.
7357 * windows-nat.c (windows_fetch_one_register): Check
7358 pc_adjusted.
7359 (windows_nat_target::get_windows_debug_event)
7360 (windows_nat_target::wait): Set pc_adjusted.
7361
7362 2020-04-24 Tom de Vries <tdevries@suse.de>
7363
7364 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7365 Run gdb-add-index inside temp dir.
7366
7367 2020-04-23 Tom Tromey <tromey@adacore.com>
7368
7369 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7370 in loop.
7371
7372 2020-04-23 Luis Machado <luis.machado@linaro.org>
7373
7374 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7375 get_frame_register instead of gdbarch_unwind_pc.
7376
7377 2020-04-23 Tom de Vries <tdevries@suse.de>
7378
7379 * symtab.c (lookup_global_symbol): Prefer def over decl.
7380
7381 2020-04-23 Tom de Vries <tdevries@suse.de>
7382
7383 PR symtab/25807
7384 * block.c (best_symbol, better_symbol): Promote to external.
7385 * block.h (best_symbol, better_symbol): Declare.
7386 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7387 decl.
7388
7389 2020-04-23 Tom Tromey <tromey@adacore.com>
7390
7391 PR ada/25837:
7392 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7393 "const char *", not a "const std::string &".
7394 <name_and_matcher::operator==>: Update.
7395 * unittests/lookup_name_info-selftests.c: Change type of
7396 "result".
7397
7398 2020-04-23 Tom Tromey <tom@tromey.com>
7399
7400 * inferior.h (iterate_over_inferiors): Don't declare.
7401 * inferior.c (iterate_over_inferiors): Remove.
7402 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7403 Remove.
7404 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7405 use iterate_over_inferiors.
7406 (darwin_resume_inferior_it)
7407 (struct resume_inferior_threads_param)
7408 (darwin_resume_inferior_threads_it): Remove.
7409 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7410
7411 2020-04-23 Tom de Vries <tdevries@suse.de>
7412
7413 * blockframe.c (find_pc_partial_function): Use
7414 find_pc_sect_compunit_symtab rather than
7415 objfile->sf->qf->find_pc_sect_compunit_symtab.
7416
7417 2020-04-22 Tom de Vries <tdevries@suse.de>
7418
7419 PR symtab/25764
7420 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7421 in psymtabs.
7422
7423 2020-04-22 Tom de Vries <tdevries@suse.de>
7424
7425 PR symtab/25801
7426 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7427 symtabs.
7428
7429 2020-04-22 Tom de Vries <tdevries@suse.de>
7430
7431 PR symtab/25700
7432 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7433 CU if already created.
7434
7435 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7436
7437 * infrun.c (displaced_step_fixup): Switch to the event_thread
7438 before calling displaced_step_restore, not after.
7439
7440 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7441
7442 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7443 its inferior is not recorded by us.
7444 (record_btrace_target_open): Replace call to
7445 all_non_exited_threads () with call to current_inferior
7446 ()->non_exited_threads ().
7447 (record_btrace_target::stop_recording): Likewise.
7448 (record_btrace_target::close): Likewise.
7449 (record_btrace_target::wait): Likewise.
7450 (record_btrace_target::record_stop_replaying): Likewise.
7451
7452 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7453
7454 * btrace.c (btrace_enable): Throw an error on double enables and
7455 when enabling recording fails.
7456 (btrace_disable): Throw an error if the thread is not recorded.
7457
7458 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7459
7460 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7461 request if we do not have a thread_info.
7462
7463 2020-04-21 Tom de Vries <tdevries@suse.de>
7464
7465 PR gdb/25471
7466 * thread.c
7467 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7468 exception in get_frame_id.
7469
7470 2020-04-20 Tom Tromey <tromey@adacore.com>
7471
7472 * python/python.c (struct gdbpy_event): Mark move constructor as
7473 noexcept.
7474 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7475 constructor as noexcept.
7476 * completer.h (struct completion_result): Mark move constructor as
7477 noexcept.
7478 * completer.c (completion_result::completion_result): Use
7479 initialization style. Don't call reset_match_list.
7480
7481 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7482
7483 * MAINTAINERS (Write After Approval): Add myself.
7484
7485 2020-04-18 Tom Tromey <tom@tromey.com>
7486
7487 * windows-tdep.c (init_w32_command_list)
7488 (w32_prefix_command_valid): Restore.
7489 (_initialize_windows_tdep): Call init_w32_command_list.
7490
7491 2020-04-18 Tom Tromey <tom@tromey.com>
7492
7493 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7494 * value.c (value_fn_field): Update.
7495 * valops.c (find_function_in_inferior)
7496 (value_allocate_space_in_inferior): Update.
7497 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7498 Update.
7499 * tui/tui-source.c (tui_source_window::set_contents): Update.
7500 * symtab.c (lookup_global_or_static_symbol)
7501 (find_function_start_sal_1, skip_prologue_sal)
7502 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7503 * symmisc.c (dump_msymbols, dump_symtab_1)
7504 (maintenance_print_one_line_table): Update.
7505 * symfile.c (init_entry_point_info, section_is_mapped)
7506 (list_overlays_command, simple_read_overlay_table)
7507 (simple_overlay_update_1): Update.
7508 * stap-probe.c (handle_stap_probe): Update.
7509 * stabsread.c (dbx_init_float_type, define_symbol)
7510 (read_one_struct_field, read_enum_type, read_range_type): Update.
7511 * source.c (info_line_command): Update.
7512 * python/python.c (gdbpy_source_objfile_script)
7513 (gdbpy_execute_objfile_script): Update.
7514 * python/py-type.c (save_objfile_types): Update.
7515 * python/py-objfile.c (py_free_objfile): Update.
7516 * python/py-inferior.c (python_new_objfile): Update.
7517 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7518 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7519 (maintenance_check_psymtabs): Update.
7520 * printcmd.c (info_address_command): Update.
7521 * objfiles.h (struct objfile) <arch>: New method, from
7522 get_objfile_arch.
7523 (get_objfile_arch): Don't declare.
7524 * objfiles.c (get_objfile_arch): Remove.
7525 (filter_overlapping_sections): Update.
7526 * minsyms.c (msymbol_is_function): Update.
7527 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7528 (output_nondebug_symbol): Update.
7529 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7530 (mdebug_expand_psymtab): Update.
7531 * machoread.c (macho_add_oso_symfile): Update.
7532 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7533 Update.
7534 * linux-fork.c (checkpoint_command): Update.
7535 * linespec.c (convert_linespec_to_sals): Update.
7536 * jit.c (finalize_symtab): Update.
7537 * infrun.c (insert_exception_resume_from_probe): Update.
7538 * ia64-tdep.c (ia64_find_unwind_table): Update.
7539 * hppa-tdep.c (internalize_unwinds): Update.
7540 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7541 Update.
7542 * gcore.c (call_target_sbrk): Update.
7543 * elfread.c (record_minimal_symbol, elf_symtab_read)
7544 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7545 (elf_gnu_ifunc_resolve_by_got): Update.
7546 * dwarf2/read.c (create_addrmap_from_index)
7547 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7548 (read_debug_names_from_section)
7549 (process_psymtab_comp_unit_reader, add_partial_symbol)
7550 (add_partial_subprogram, process_full_comp_unit)
7551 (read_file_scope, read_func_scope, read_lexical_block_scope)
7552 (read_call_site_scope, dwarf2_ranges_read)
7553 (dwarf2_record_block_ranges, dwarf2_add_field)
7554 (mark_common_block_symbol_computed, read_tag_pointer_type)
7555 (read_tag_string_type, dwarf2_init_float_type)
7556 (dwarf2_init_complex_target_type, read_base_type)
7557 (partial_die_info::read, partial_die_info::read)
7558 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7559 (dwarf2_fetch_die_loc_sect_off): Update.
7560 * dwarf2/loc.c (dwarf2_find_location_expression)
7561 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7562 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7563 (dwarf2_loc_desc_get_symbol_read_needs)
7564 (locexpr_describe_location_piece, locexpr_describe_location_1)
7565 (loclist_describe_location): Update.
7566 * dwarf2/index-write.c (write_debug_names): Update.
7567 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7568 * dtrace-probe.c (dtrace_process_dof): Update.
7569 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7570 (process_one_symbol): Update.
7571 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7572 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7573 (coff_read_enum_type): Update.
7574 * cli/cli-cmds.c (edit_command, list_command): Update.
7575 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7576 * breakpoint.c (create_overlay_event_breakpoint)
7577 (create_longjmp_master_breakpoint)
7578 (create_std_terminate_master_breakpoint)
7579 (create_exception_master_breakpoint, get_sal_arch): Update.
7580 * block.c (block_gdbarch): Update.
7581 * annotate.c (annotate_source_line): Update.
7582
7583 2020-04-17 Tom Tromey <tromey@adacore.com>
7584
7585 * auto-load.c (show_auto_load_cmd): Remove.
7586 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7587 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7588 (maintenance_print_arc_command): Remove.
7589 * tui/tui-win.c (tui_command): Remove.
7590 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7591 * tui/tui-layout.c (tui_layout_command): Remove.
7592 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7593 * python/python.c (user_set_python, user_show_python): Remove.
7594 (_initialize_python): Use add_basic_prefix_cmd,
7595 add_show_prefix_cmd.
7596 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7597 (install_gdb_commands): Use add_basic_prefix_cmd,
7598 add_show_prefix_cmd.
7599 (info_guile_command): Remove.
7600 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7601 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7602 add_show_prefix_cmd.
7603 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7604 Remove do_set and do_show parameters.
7605 * cli/cli-style.c (set_style, show_style): Remove.
7606 (_initialize_cli_style): Use add_basic_prefix_cmd,
7607 add_show_prefix_cmd.
7608 (cli_style_option::add_setshow_commands): Remove do_set and
7609 do_show parameters.
7610 (cli_style_option::add_setshow_commands): Use
7611 add_basic_prefix_cmd, add_show_prefix_cmd.
7612 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7613 (set_style_name): Remove.
7614 * cli/cli-dump.c (dump_command, append_command): Remove.
7615 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7616 (tekhex_dump_command, binary_dump_command)
7617 (binary_append_command): Remove.
7618 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7619 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7620 (init_w32_command_list): Remove; move into ...
7621 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7622 * valprint.c (set_print, show_print, set_print_raw)
7623 (show_print_raw): Remove.
7624 (_initialize_valprint): Use add_basic_prefix_cmd,
7625 add_show_prefix_cmd.
7626 * typeprint.c (set_print_type, show_print_type): Remove.
7627 (_initialize_typeprint): Use add_basic_prefix_cmd,
7628 add_show_prefix_cmd.
7629 * record.c (set_record_command, show_record_command): Remove.
7630 (_initialize_record): Use add_basic_prefix_cmd,
7631 add_show_prefix_cmd.
7632 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7633 add_show_prefix_cmd.
7634 (info_command, show_command, set_debug, show_debug): Remove.
7635 * top.h (set_history, show_history): Don't declare.
7636 * top.c (set_history, show_history): Remove.
7637 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7638 (unset_tdesc_cmd): Remove.
7639 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7640 add_show_prefix_cmd.
7641 * symtab.c (info_module_command): Remove.
7642 (_initialize_symtab): Use add_basic_prefix_cmd.
7643 * symfile.c (overlay_command): Remove.
7644 (_initialize_symfile): Use add_basic_prefix_cmd.
7645 * sparc64-tdep.c (info_adi_command): Remove.
7646 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7647 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7648 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7649 add_show_prefix_cmd.
7650 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7651 (_initialize_serial): Use add_basic_prefix_cmd,
7652 add_show_prefix_cmd.
7653 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7654 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7655 add_show_prefix_cmd.
7656 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7657 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7658 add_show_prefix_cmd.
7659 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7660 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7661 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7662 add_show_prefix_cmd.
7663 * remote.c (remote_command, set_remote_cmd): Remove.
7664 (_initialize_remote): Use add_basic_prefix_cmd.
7665 * record-full.c (set_record_full_command)
7666 (show_record_full_command): Remove.
7667 (_initialize_record_full): Use add_basic_prefix_cmd,
7668 add_show_prefix_cmd.
7669 * record-btrace.c (cmd_set_record_btrace)
7670 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7671 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7672 (cmd_show_record_btrace_pt): Remove.
7673 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7674 add_show_prefix_cmd.
7675 * ravenscar-thread.c (set_ravenscar_command)
7676 (show_ravenscar_command): Remove.
7677 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7678 add_show_prefix_cmd.
7679 * mips-tdep.c (show_mips_command, set_mips_command)
7680 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7681 add_show_prefix_cmd.
7682 * maint.c (maintenance_command, maintenance_info_command)
7683 (maintenance_check_command, maintenance_print_command)
7684 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7685 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7686 add_show_prefix_cmd.
7687 (show_per_command_cmd): Remove.
7688 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7689 Remove.
7690 (maintenance_show_test_settings_cmd): Remove.
7691 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7692 add_show_prefix_cmd.
7693 * maint-test-options.c (maintenance_test_options_command):
7694 Remove.
7695 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7696 * macrocmd.c (macro_command): Remove
7697 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7698 * language.c (set_check, show_check): Remove.
7699 (_initialize_language): Use add_basic_prefix_cmd,
7700 add_show_prefix_cmd.
7701 * infcmd.c (unset_command): Remove.
7702 (_initialize_infcmd): Use add_basic_prefix_cmd.
7703 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7704 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7705 add_show_prefix_cmd.
7706 * go32-nat.c (go32_info_dos_command): Remove.
7707 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7708 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7709 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7710 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7711 (_initialize_frame): Use add_basic_prefix_cmd,
7712 add_show_prefix_cmd.
7713 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7714 (_initialize_dcache): Use add_basic_prefix_cmd,
7715 add_show_prefix_cmd.
7716 * cp-support.c (maint_cplus_command): Remove.
7717 (_initialize_cp_support): Use add_basic_prefix_cmd.
7718 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7719 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7720 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7721 add_basic_prefix_cmd, add_show_prefix_cmd.
7722 * breakpoint.c (save_command): Remove.
7723 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7724 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7725 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7726 add_show_prefix_cmd.
7727 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7728 (set_ada_command, show_ada_command): Remove.
7729 (_initialize_ada_language): Use add_basic_prefix_cmd,
7730 add_show_prefix_cmd.
7731 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7732
7733 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7734
7735 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7736 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7737
7738 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7739
7740 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7741 warning messages.
7742
7743 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7744
7745 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7746 import table is not at beginning of .idata section.
7747
7748 2020-04-16 Pedro Alves <palves@redhat.com>
7749
7750 * inferior.c (delete_inferior): Use delete operator directly
7751 instead of delete_program_space.
7752 * progspace.c (add_program_space): New, factored out from
7753 program_space::program_space.
7754 (remove_program_space): New, factored out from
7755 delete_program_space.
7756 (program_space::program_space): Remove intro comment. Rewrite.
7757 (program_space::~program_space): Remove intro comment. Call
7758 remove_program_space.
7759 (delete_program_space): Delete.
7760 * progspace.h (program_space::program_space): Make explicit. Move
7761 intro comment here, adjusted.
7762 (program_space::~program_space): Move intro comment here,
7763 adjusted.
7764 (delete_program_space): Remove.
7765
7766 2020-04-16 Tom Tromey <tromey@adacore.com>
7767
7768 * windows-nat.c (windows_nat::handle_access_violation): New
7769 function.
7770 * nat/windows-nat.h (handle_access_violation): Declare.
7771 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7772 windows-nat.c. Call handle_access_violation.
7773
7774 2020-04-16 Tom de Vries <tdevries@suse.de>
7775
7776 PR symtab/25791
7777 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7778 CUs without psymtab.
7779
7780 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7781
7782 * python/python.c (do_start_initialization): Don't call
7783 PyEval_InitThreads for Python 3.9 and beyond.
7784
7785 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7786
7787 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7788 thread functions.
7789 (obsd_nat_target::wait): Likewise.
7790
7791 2020-04-15 Tom Tromey <tromey@adacore.com>
7792
7793 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7794 (DEBUG_EXCEPT): Use debug_printf.
7795
7796 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7797
7798 * completer.c (class completion_tracker::completion_hash_entry)
7799 <hash_name>: New member function.
7800 (completion_tracker::discard_completions): New callback to hash a
7801 completion_hash_entry, pass this to htab_create_alloc.
7802
7803 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7804
7805 * windows-nat.c (windows_make_so): Warn rather than stopping with
7806 an error if realpath() fails.
7807
7808 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7809
7810 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7811 (nbsd_nat_target::info_proc): Add do_status.
7812
7813 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7814 Tom de Vries <tdevries@suse.de>
7815
7816 PR symtab/25718
7817 * psympriv.h (struct partial_symtab::read_symtab)
7818 (struct partial_symtab::expand_psymtab)
7819 (struct partial_symtab::read_dependencies): Update comments.
7820 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7821 read_symtab for includer.
7822 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7823 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7824 (struct dwarf2_include_psymtab::m_readin): Remove.
7825 (struct dwarf2_include_psymtab::includer): New member function.
7826 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7827
7828 2020-04-14 Tom de Vries <tdevries@suse.de>
7829
7830 PR symtab/25720
7831 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7832 with NULL symbol_matcher and lookup_name.
7833 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7834 and lookup_name.
7835 * dwarf2/read.c (dw2_expand_symtabs_matching)
7836 (dw2_debug_names_expand_symtabs_matching): Same.
7837 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7838 Make lookup_name a pointer. Update comment.
7839 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7840 lookup_name being a pointer.
7841 * symfile.c (expand_symtabs_matching): Same.
7842 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7843 * linespec.c (iterate_over_all_matching_symtabs): Same.
7844
7845 2020-04-13 Tom Tromey <tom@tromey.com>
7846
7847 * run-on-main-thread.c: Update include.
7848 * unittests/main-thread-selftests.c: Update include.
7849 * tui/tui-win.c: Update include.
7850 * tui/tui-io.c: Update include.
7851 * tui/tui-interp.c: Update include.
7852 * tui/tui-hooks.c: Update include.
7853 * top.h: Update include.
7854 * top.c: Update include.
7855 * ser-base.c: Update include.
7856 * remote.c: Update include.
7857 * remote-notif.c: Update include.
7858 * remote-fileio.c: Update include.
7859 * record-full.c: Update include.
7860 * record-btrace.c: Update include.
7861 * python/python.c: Update include.
7862 * posix-hdep.c: Update include.
7863 * mingw-hdep.c: Update include.
7864 * mi/mi-main.c: Update include.
7865 * mi/mi-interp.c: Update include.
7866 * main.c: Update include.
7867 * linux-nat.c: Update include.
7868 * interps.c: Update include.
7869 * infrun.c: Update include.
7870 * inf-loop.c: Update include.
7871 * event-top.c: Update include.
7872 * event-loop.c: Move to ../gdbsupport/.
7873 * event-loop.h: Move to ../gdbsupport/.
7874 * async-event.h: Update include.
7875 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7876
7877 2020-04-13 Tom Tromey <tom@tromey.com>
7878
7879 * tui/tui-win.c: Include async-event.h.
7880 * remote.c: Include async-event.h.
7881 * remote-notif.c: Include async-event.h.
7882 * record-full.c: Include async-event.h.
7883 * record-btrace.c: Include async-event.h.
7884 * infrun.c: Include async-event.h.
7885 * event-top.c: Include async-event.h.
7886 * event-loop.h: Move some declarations to async-event.h.
7887 * event-loop.c: Don't include ser-event.h or top.h. Move some
7888 code to async-event.c.
7889 * async-event.h: New file.
7890 * async-event.c: New file.
7891 * Makefile.in (COMMON_SFILES): Add async-event.c.
7892 (HFILES_NO_SRCDIR): Add async-event.h.
7893
7894 2020-04-13 Tom Tromey <tom@tromey.com>
7895
7896 * utils.c (flush_streams): New function.
7897 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7898
7899 2020-04-13 Tom Tromey <tom@tromey.com>
7900
7901 * event-loop.c (handle_file_event): Use warning, not
7902 printf_unfiltered.
7903
7904 2020-04-13 Tom Tromey <tom@tromey.com>
7905
7906 * event-loop.c: Include <chrono>.
7907
7908 2020-04-13 Tom Tromey <tom@tromey.com>
7909
7910 * gdb_select.h: Move to ../gdbsupport/.
7911 * event-loop.c: Update include path.
7912 * top.c: Update include path.
7913 * ser-base.c: Update include path.
7914 * ui-file.c: Update include path.
7915 * ser-tcp.c: Update include path.
7916 * guile/scm-ports.c: Update include path.
7917 * posix-hdep.c: Update include path.
7918 * ser-unix.c: Update include path.
7919 * gdb_usleep.c: Update include path.
7920 * mingw-hdep.c: Update include path.
7921 * inflow.c: Update include path.
7922 * infrun.c: Update include path.
7923 * event-top.c: Update include path.
7924
7925 2020-04-13 Tom Tromey <tom@tromey.com>
7926
7927 * configure: Rebuild.
7928 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7929
7930 2020-04-13 Tom Tromey <tom@tromey.com>
7931
7932 * event-loop.h (start_event_loop): Don't declare.
7933 * event-loop.c (start_event_loop): Move...
7934 * main.c (start_event_loop): ...here. Now static.
7935
7936 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7937
7938 * MAINTAINERS: Update my email address.
7939
7940 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7941
7942 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7943 IP_ALL.
7944
7945 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7946
7947 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7948 (nbsd_nat_target::info_proc): Add do_cmdline.
7949
7950 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7951
7952 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7953 (nbsd_nat_target::info_proc): Add do_cwd.
7954
7955 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7956
7957 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7958
7959 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7960
7961 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7962 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7963 (nbsd_nat_target::info_proc): New functions.
7964 * nbsd-nat.c (kinfo_get_vmmap): New function.
7965 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7966 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7967 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7968 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7969 functions.
7970 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7971 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7972 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7973 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7974 (KINFO_VME_FLAG_GROWS_DOWN): New.
7975
7976 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7977
7978 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7979 bit shift.
7980
7981 2020-04-10 Tom Tromey <tromey@adacore.com>
7982
7983 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7984
7985 2020-04-10 Tom Tromey <tromey@adacore.com>
7986
7987 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7988 separate debug files.
7989
7990 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7991
7992 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7993 Move to...
7994 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7995 ... here.
7996 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7997 Check for STATUS_WX86_BREAKPOINT.
7998 (windows_nat_target::wait): Same.
7999
8000 2020-04-10 Tom de Vries <tdevries@suse.de>
8001
8002 PR cli/25808
8003 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8004
8005 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8006
8007 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8008 (Write After Approval): Remove Tom de Vries.
8009
8010 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8011
8012 revert partially:
8013 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8014
8015 * buildsym.c (record_line): Fix undefined behavior and preserve
8016 lines at eof.
8017
8018 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8019
8020 * auxv.h (svr4_auxv_parse): New.
8021 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8022 and generic_auxv_parse.
8023 (svr4_auxv_parse): Add.
8024 * obsd-tdep.c: Include "auxv.h".
8025 (obsd_auxv_parse): Remove.
8026 (obsd_init_abi): Remove comment.
8027 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8028 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8029 * nbsd-tdep.c: Include "auxv.h".
8030 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8031
8032 2020-04-08 Tom Tromey <tromey@adacore.com>
8033
8034 * nat/windows-nat.h (last_wait_event): Don't declare.
8035 (wait_for_debug_event): Update comment.
8036 * nat/windows-nat.c (last_wait_event): Now static.
8037
8038 2020-04-08 Tom Tromey <tromey@adacore.com>
8039
8040 * windows-nat.c (wait_for_debug_event): Move to
8041 nat/windows-nat.c.
8042 * nat/windows-nat.h (wait_for_debug_event): Declare.
8043 * nat/windows-nat.c (wait_for_debug_event): Move from
8044 windows-nat.c. No longer static.
8045
8046 2020-04-08 Tom Tromey <tromey@adacore.com>
8047
8048 * windows-nat.c (get_windows_debug_event): Use
8049 fetch_pending_stop.
8050 * nat/windows-nat.h (fetch_pending_stop): Declare.
8051 * nat/windows-nat.c (fetch_pending_stop): New function.
8052
8053 2020-04-08 Tom Tromey <tromey@adacore.com>
8054
8055 * windows-nat.c (windows_continue): Use matching_pending_stop and
8056 continue_last_debug_event.
8057 * nat/windows-nat.h (matching_pending_stop)
8058 (continue_last_debug_event): Declare.
8059 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8060 (matching_pending_stop, continue_last_debug_event): New
8061 functions.
8062
8063 2020-04-08 Tom Tromey <tromey@adacore.com>
8064
8065 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8066 (handle_exception_result): Move to nat/windows-nat.h.
8067 (DEBUG_EXCEPTION_SIMPLE): Remove.
8068 (windows_nat::handle_ms_vc_exception): New function.
8069 (handle_exception): Move to nat/windows-nat.c.
8070 (get_windows_debug_event): Update.
8071 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8072 nat/windows-nat.c.
8073 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8074 (handle_exception_result): Move from windows-nat.c.
8075 (handle_exception): Declare.
8076 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8077 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8078 windows-nat.c.
8079
8080 2020-04-08 Tom Tromey <tromey@adacore.com>
8081
8082 * windows-nat.c (exception_count, event_count): Remove.
8083 (handle_exception, get_windows_debug_event)
8084 (do_initial_windows_stuff): Update.
8085
8086 2020-04-08 Tom Tromey <tromey@adacore.com>
8087
8088 * windows-nat.c (windows_nat::handle_load_dll)
8089 (windows_nat::handle_unload_dll): Rename. No longer static.
8090 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8091 Declare.
8092
8093 2020-04-08 Tom Tromey <tromey@adacore.com>
8094
8095 * complaints.h (stop_whining): Declare at top-level.
8096 (complaint): Don't declare stop_whining.
8097
8098 2020-04-08 Tom Tromey <tromey@adacore.com>
8099
8100 * windows-nat.c (windows_nat::handle_output_debug_string):
8101 Rename. No longer static.
8102 * nat/windows-nat.h (handle_output_debug_string): Declare.
8103
8104 2020-04-08 Tom Tromey <tromey@adacore.com>
8105
8106 * windows-nat.c (current_process_handle, current_process_id)
8107 (main_thread_id, last_sig, current_event, last_wait_event)
8108 (current_windows_thread, desired_stop_thread_id, pending_stops)
8109 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8110 (display_selectors, fake_create_process)
8111 (get_windows_debug_event): Update.
8112 * nat/windows-nat.h (current_process_handle, current_process_id)
8113 (main_thread_id, last_sig, current_event, last_wait_event)
8114 (current_windows_thread, desired_stop_thread_id, pending_stops)
8115 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8116 * nat/windows-nat.c (current_process_handle, current_process_id)
8117 (main_thread_id, last_sig, current_event, last_wait_event)
8118 (current_windows_thread, desired_stop_thread_id, pending_stops)
8119 (siginfo_er): New globals. Move from windows-nat.c.
8120
8121 2020-04-08 Tom Tromey <tromey@adacore.com>
8122
8123 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8124 (handle_load_dll): Update.
8125 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8126
8127 2020-04-08 Tom Tromey <tromey@adacore.com>
8128
8129 * windows-nat.c (enum thread_disposition_type): Move to
8130 nat/windows-nat.h.
8131 (windows_nat::thread_rec): Rename from thread_rec. No longer
8132 static.
8133 (windows_add_thread, windows_nat_target::fetch_registers)
8134 (windows_nat_target::store_registers, handle_exception)
8135 (windows_nat_target::resume, get_windows_debug_event)
8136 (windows_nat_target::get_tib_address)
8137 (windows_nat_target::thread_name)
8138 (windows_nat_target::thread_alive): Update.
8139 * nat/windows-nat.h (enum thread_disposition_type): Move from
8140 windows-nat.c.
8141 (thread_rec): Declare.
8142
8143 2020-04-08 Tom Tromey <tromey@adacore.com>
8144
8145 * windows-nat.c: Add "using namespace".
8146 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8147 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8148
8149 2020-04-08 Tom Tromey <tromey@adacore.com>
8150
8151 * nat/windows-nat.h (struct windows_thread_info): Declare
8152 destructor.
8153 * nat/windows-nat.c (~windows_thread_info): New.
8154
8155 2020-04-08 Tom Tromey <tromey@adacore.com>
8156
8157 PR gdb/22992
8158 * windows-nat.c (current_event): Update comment.
8159 (last_wait_event, desired_stop_thread_id): New globals.
8160 (struct pending_stop): New.
8161 (pending_stops): New global.
8162 (windows_nat_target) <stopped_by_sw_breakpoint>
8163 <supports_stopped_by_sw_breakpoint>: New methods.
8164 (windows_fetch_one_register): Add assertions. Adjust PC.
8165 (windows_continue): Handle pending stops. Suspend other threads
8166 when stepping. Use last_wait_event
8167 (wait_for_debug_event): New function.
8168 (get_windows_debug_event): Use wait_for_debug_event. Handle
8169 pending stops. Queue spurious stops.
8170 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8171 (windows_nat_target::kill): Use wait_for_debug_event.
8172 * nat/windows-nat.h (struct windows_thread_info)
8173 <stopped_at_software_breakpoint>: New field.
8174 * nat/windows-nat.c (windows_thread_info::resume): Clear
8175 stopped_at_software_breakpoint.
8176
8177 2020-04-08 Tom Tromey <tromey@adacore.com>
8178
8179 * windows-nat.c (enum thread_disposition_type): New.
8180 (thread_rec): Replace "get_context" parameter with "disposition";
8181 change type.
8182 (windows_add_thread, windows_nat_target::fetch_registers)
8183 (windows_nat_target::store_registers, handle_exception)
8184 (windows_nat_target::resume, get_windows_debug_event)
8185 (windows_nat_target::get_tib_address)
8186 (windows_nat_target::thread_name)
8187 (windows_nat_target::thread_alive): Update.
8188
8189 2020-04-08 Tom Tromey <tromey@adacore.com>
8190
8191 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8192 (windows_continue): Use windows_continue::resume.
8193 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8194 resume>: Declare new methods.
8195 * nat/windows-nat.c: New file.
8196 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8197
8198 2020-04-08 Tom Tromey <tromey@adacore.com>
8199
8200 * windows-nat.c (windows_add_thread, windows_delete_thread)
8201 (windows_nat_target::fetch_registers)
8202 (windows_nat_target::store_registers, fake_create_process)
8203 (windows_nat_target::resume, windows_nat_target::resume)
8204 (get_windows_debug_event, windows_nat_target::wait)
8205 (windows_nat_target::pid_to_str)
8206 (windows_nat_target::get_tib_address)
8207 (windows_nat_target::get_ada_task_ptid)
8208 (windows_nat_target::thread_name)
8209 (windows_nat_target::thread_alive): Use lwp, not tid.
8210
8211 2020-04-08 Tom Tromey <tromey@adacore.com>
8212
8213 * windows-nat.c (handle_exception)
8214 (windows_nat_target::thread_name): Update.
8215 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8216 <name>: Now unique_xmalloc_ptr.
8217
8218 2020-04-08 Tom Tromey <tromey@adacore.com>
8219
8220 * windows-nat.c (thread_rec)
8221 (windows_nat_target::fetch_registers): Update.
8222 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8223 Update comment.
8224 <debug_registers_changed, reload_context>: Now bool.
8225
8226 2020-04-08 Tom Tromey <tromey@adacore.com>
8227
8228 * windows-nat.c (windows_add_thread): Use new.
8229 (windows_init_thread_list, windows_delete_thread): Use delete.
8230 (get_windows_debug_event): Update.
8231 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8232 destructor, and initializers.
8233
8234 2020-04-08 Tom Tromey <tromey@adacore.com>
8235
8236 * windows-nat.c (struct windows_thread_info): Remove.
8237 * nat/windows-nat.h: New file.
8238
8239 2020-04-08 Tom Tromey <tromey@adacore.com>
8240
8241 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8242 (thread_rec, windows_add_thread, windows_delete_thread)
8243 (windows_continue): Update.
8244
8245 2020-04-08 Tom Tromey <tromey@adacore.com>
8246
8247 * windows-nat.c (struct windows_thread_info): Remove typedef.
8248 (thread_head): Remove.
8249 (thread_list): New global.
8250 (thread_rec, windows_add_thread, windows_init_thread_list)
8251 (windows_delete_thread, windows_continue): Update.
8252
8253 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8254
8255 * windows-tdep.h (windows_init_abi): Add comment.
8256 (cygwin_init_abi): New declaration.
8257 * windows-tdep.c: Split signal enumeration in two, one for
8258 Windows and one for Cygwin.
8259 (windows_gdb_signal_to_target): Only deal with signal of the
8260 Windows OS ABI.
8261 (cygwin_gdb_signal_to_target): New function.
8262 (windows_init_abi): Rename to windows_init_abi_common, don't set
8263 gdb_signal_to_target gdbarch method. Add new new function with
8264 this name.
8265 (cygwin_init_abi): New function.
8266 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8267 comment. Don't call windows_init_abi.
8268 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8269 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8270 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8271 i386_windows_init_abi_common, don't call windows_init_abi. Add
8272 a new function of this name.
8273 (i386_cygwin_init_abi): New function.
8274 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8275 OS ABI Cygwin.
8276
8277 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8278
8279 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8280 parameter.c.
8281 (dwarf2_read_gdb_index): Update.
8282
8283 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8284
8285 * nbsd-tdep.c: Include "objfiles.h".
8286 (nbsd_skip_solib_resolver): New.
8287 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8288
8289 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8290
8291 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8292 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8293 with DW_LLE_base_addressx are being emitted in DWARFv5.
8294 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8295 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8296 unsigned integer.
8297
8298 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8299
8300 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8301 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8302 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8303 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8304 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8305 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8306 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8307
8308
8309 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8310
8311 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8312 (read_loclist_index): New function definition.
8313 (lookup_loclist_base): New function definition.
8314 (read_loclist_header): New function definition.
8315 (dwarf2_cu): Add loclist_base and loclist_header field.
8316 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8317 (read_full_die_1): Read the value of DW_AT_loclists_base.
8318 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8319 (read_attribute_value): Handle DW_FORM_loclistx.
8320 (skip_one_die): Handle DW_FORM_loclistx.
8321 (loclist_header): New structure declaration.
8322 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8323
8324 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8325
8326 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8327 constructor. Remove `addr` parameter from other constructor and
8328 add `per_cu` parameter.
8329 * dwarf2/read.c (create_partial_symtab): Update.
8330
8331 2020-04-07 Tom de Vries <tdevries@suse.de>
8332
8333 PR symtab/25796
8334 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8335 (partial_die_info::fixup): Inherit has_const_value.
8336
8337 2020-04-07 Tom de Vries <tdevries@suse.de>
8338
8339 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8340 symbols without address.
8341
8342 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8343
8344 * nbsd-nat.h (struct thread_info): Add forward declaration.
8345 (nbsd_nat_target::thread_alive): Add.
8346 (nbsd_nat_target::thread_name): Likewise.
8347 (nbsd_nat_target::update_thread_list): Likewise.
8348 (update_thread_list::post_attach): Likewise.
8349 (post_attach::pid_to_str): Likewise.
8350 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8351 (nbsd_thread_lister): Add.
8352 (nbsd_nat_target::thread_alive): Likewise.
8353 (nbsd_nat_target::thread_name): Likewise.
8354 (nbsd_add_threads): Likewise.
8355 (update_thread_list::post_attach): Likewise.
8356 (nbsd_nat_target::update_thread_list): Likewise.
8357 (post_attach::pid_to_str): Likewise.
8358
8359 2020-04-06 Tom Tromey <tromey@adacore.com>
8360
8361 * ada-valprint.c (print_variant_part): Extract the variant field.
8362 (print_field_values): Use the field as the outer value when
8363 recursing.
8364
8365 2020-04-06 Tom Tromey <tromey@adacore.com>
8366
8367 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8368 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8369 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8370 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8371 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8372
8373 2020-04-06 Tom Tromey <tromey@adacore.com>
8374
8375 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8376 TYPE_CODE_ERROR.
8377
8378 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8379
8380 * nbsd-tdep.c: Include "gdbarch.h".
8381 Define enum with NetBSD signal numbers.
8382 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8383 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8384 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8385 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8386 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8387 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8388 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8389 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8390 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8391 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8392 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8393 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8394
8395 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8396
8397 PR gdb/25325
8398 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8399
8400 2020-04-03 Tom Tromey <tromey@adacore.com>
8401
8402 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8403 Read constant block.
8404
8405 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8406
8407 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8408 (gdb_bfd_get_full_section_contents): New declaration.
8409 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8410 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8411 gdb_bfd_get_full_section_contents.
8412
8413 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8414
8415 * exec.c (build_section_table): Replace internal_error with
8416 gdb_assert.
8417 (section_table_xfer_memory_partial): Likewise.
8418 * mdebugread.c (parse_partial_symbols): Likewise.
8419 * psymtab.c (lookup_partial_symbol): Likewise.
8420 * utils.c (wrap_here): Likewise.
8421
8422 2020-04-02 Tom Tromey <tromey@adacore.com>
8423
8424 * f-lang.c (build_fortran_types): Use arch_type to initialize
8425 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8426
8427 2020-04-02 Tom Tromey <tromey@adacore.com>
8428
8429 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8430 of attributes.
8431
8432 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8433 Bernd Edlinger <bernd.edlinger@hotmail.de>
8434 Tom Tromey <tromey@adacore.com>
8435
8436 * buildsym.c (buildsym_compunit::record_line): Remove
8437 deduplication code.
8438
8439 2020-04-02 Tom de Vries <tdevries@suse.de>
8440
8441 PR ada/24671
8442 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8443
8444 2020-04-02 Tom de Vries <tdevries@suse.de>
8445
8446 * dwarf2/read.c (dwarf2_gdb_index_functions,
8447 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8448 NULL.
8449 * psymtab.c (psym_lookup_global_symbol_language): New function.
8450 (psym_functions): Init psym_lookup_global_symbol_language with
8451 psym_lookup_global_symbol_language.
8452 * symfile-debug.c (debug_sym_quick_functions): Init
8453 lookup_global_symbol_language with NULL.
8454 * symfile.c (set_initial_language): Remove fixme comment.
8455 * symfile.h (struct quick_symbol_functions): Add
8456 lookup_global_symbol_language.
8457 * symtab.c (find_quick_global_symbol_language): New function.
8458 (find_main_name): Use find_quick_global_symbol_language.
8459
8460 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8461
8462 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8463
8464 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8465
8466 * buildsym.c (record_line): Fix undefined behavior and preserve
8467 lines at eof.
8468
8469 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8470
8471 * buildsym.c (record_line): Fix the resizing condition.
8472
8473 2020-04-01 Tom Tromey <tom@tromey.com>
8474
8475 * value.h (value_literal_complex): Add comment.
8476 * valops.c (value_literal_complex): Refer to value.h.
8477
8478 2020-04-01 Tom Tromey <tom@tromey.com>
8479
8480 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8481 (scalar_type): New rule, from typebase.
8482 (typebase): Use scalar_type. Recognize complex types.
8483 (field_name): Handle FLOAT_KEYWORD.
8484 (ident_tokens): Add _Complex and __complex__.
8485
8486 2020-04-01 Tom Tromey <tom@tromey.com>
8487
8488 PR exp/25299:
8489 * valarith.c (promotion_type, complex_binop): New functions.
8490 (scalar_binop): Handle complex numbers. Use promotion_type.
8491 (value_pos, value_neg, value_complement): Handle complex numbers.
8492
8493 2020-04-01 Tom Tromey <tom@tromey.com>
8494
8495 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8496 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8497 (parse_number): Handle complex numbers.
8498
8499 2020-04-01 Tom Tromey <tom@tromey.com>
8500
8501 * c-valprint.c (c_decorations): Change complex suffix to "i".
8502
8503 2020-04-01 Tom Tromey <tom@tromey.com>
8504
8505 * valprint.c (generic_value_print_complex): Use accessors.
8506 * value.h (value_real_part, value_imaginary_part): Declare.
8507 * valops.c (value_real_part, value_imaginary_part): New
8508 functions.
8509 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8510
8511 2020-04-01 Tom Tromey <tom@tromey.com>
8512
8513 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8514 (read_range_type): Update.
8515 * mdebugread.c (basic_type): Update.
8516 * go-lang.c (build_go_types): Use init_complex_type.
8517 * gdbtypes.h (struct main_type) <complex_type>: New member.
8518 (init_complex_type): Update.
8519 (arch_complex_type): Don't declare.
8520 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8521 Make name if none given. Use alloc_type_copy. Look for cached
8522 complex type.
8523 (arch_complex_type): Remove.
8524 (gdbtypes_post_init): Use init_complex_type.
8525 * f-lang.c (build_fortran_types): Use init_complex_type.
8526 * dwarf2/read.c (read_base_type): Update.
8527 * d-lang.c (build_d_types): Use init_complex_type.
8528 * ctfread.c (read_base_type): Update.
8529
8530 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8531
8532 * infrun.c (stop_all_threads): Update assertion, plus when
8533 stopping threads, take into account that we might be trying
8534 to stop an all-stop target.
8535 (stop_waiting): Call 'stop_all_threads' if there exists a
8536 non-stop target.
8537
8538 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8539
8540 * target.h (exists_non_stop_target): New function declaration.
8541 * target.c (exists_non_stop_target): New function.
8542
8543 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8544
8545 PR gdb/24789
8546 * eval.c (is_integral_or_integral_reference): New function.
8547 (evaluate_subexp_standard): Allow integer references in
8548 pointer arithmetic.
8549
8550 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8551
8552 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8553 check for no ptid in the stop reply when the target is non-stop.
8554
8555 2020-04-01 Tom Tromey <tromey@adacore.com>
8556
8557 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8558 "name" parameter to rvalue reference. Initialize m_name_holder.
8559 <lookup_name_info>: New overloads.
8560 <name>: Return gdb::string_view.
8561 <c_str>: New method.
8562 <make_ignore_params>: Update.
8563 <search_name_hash>: Update.
8564 <language_lookup_name>: Return const char *.
8565 <m_name>: Change type.
8566 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8567 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8568 (lookup_name_info::match_any): Update.
8569 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8570 Update.
8571 * minsyms.c (linkage_name_str): Update.
8572 * language.c (default_symbol_name_matcher): Update.
8573 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8574 Update.
8575 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8576 (ada_lookup_name_info::ada_lookup_name_info): Update.
8577 (literal_symbol_name_matcher): Update.
8578
8579 2020-04-01 Tom Tromey <tromey@adacore.com>
8580
8581 * psymtab.c (psymtab_search_name): Remove function.
8582 (psym_lookup_symbol): Create search name and lookup name here.
8583 (lookup_partial_symbol): Remove "name" parameter; add
8584 lookup_name.
8585 (psym_expand_symtabs_for_function): Update.
8586
8587 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8588
8589 PR tui/25597:
8590 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8591
8592 2020-03-31 Tom Tromey <tromey@adacore.com>
8593
8594 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8595 memcpy.
8596
8597 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8598
8599 * features/riscv/32bit-csr.xml: Regenerated.
8600 * features/riscv/64bit-csr.xml: Regenerated.
8601
8602 2020-03-30 Tom Tromey <tromey@adacore.com>
8603
8604 * ada-valprint.c (print_variant_part): Update.
8605 * ada-lang.h (ada_which_variant_applies): Update.
8606 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8607 outer_valaddr parameters; replace with "outer" value parameter.
8608 (to_fixed_variant_branch_type): Update.
8609
8610 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8611
8612 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8613 <list>. Remove inclusion of observable.h.
8614 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8615 (struct arch_lwp_info): New struct.
8616 (class ppc_linux_dreg_interface): New class.
8617 (struct ppc_linux_process_info): New struct.
8618 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8619 <low_new_clone, low_forget_process, low_prepare_to_resume>
8620 <copy_thread_dreg_state, mark_thread_stale>
8621 <mark_debug_registers_changed, register_hw_breakpoint>
8622 <clear_hw_breakpoint, register_wp, clear_wp>
8623 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8624 <num_memory_accesses, get_trigger_type>
8625 <create_watchpoint_request, hwdebug_point_cmp>
8626 <init_arch_lwp_info, get_arch_lwp_info>
8627 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8628 methods.
8629 <struct ptid_hash>: New inner struct.
8630 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8631 members.
8632 (saved_dabr_value, hwdebug_info, max_slots_number)
8633 (struct hw_break_tuple, struct thread_points, ppc_threads)
8634 (have_ptrace_hwdebug_interface)
8635 (hwdebug_find_thread_points_by_tid)
8636 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8637 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8638 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8639 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8640 use m_dreg_interface.
8641 (hwdebug_point_cmp): Change to...
8642 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8643 reference arguments instead of pointers.
8644 (ppc_linux_nat_target::ranged_break_num_registers): Use
8645 m_dreg_interface.
8646 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8647 m_dreg_interface. Call register_hw_breakpoint.
8648 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8649 m_dreg_interface. Call clear_hw_breakpoint.
8650 (get_trigger_type): Change to...
8651 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8652 comment.
8653 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8654 use m_dreg_interface. Call register_hw_breakpoint.
8655 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8656 use m_dreg_interface. Call clear_hw_breakpoint.
8657 (can_use_watchpoint_cond_accel): Change to...
8658 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8659 method. Update comment, use m_dreg_interface and
8660 m_process_info.
8661 (calculate_dvc): Change to...
8662 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8663 m_dreg_interface.
8664 (num_memory_accesses): Change to...
8665 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8666 (check_condition): Change to...
8667 (ppc_linux_nat_target::check_condition): ...this method.
8668 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8669 comment, use m_dreg_interface.
8670 (create_watchpoint_request): Change to...
8671 (ppc_linux_nat_target::create_watchpoint_request): ...this
8672 method. Use m_dreg_interface.
8673 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8674 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8675 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8676 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8677 (ppc_linux_nat_target::low_forget_process)
8678 (ppc_linux_nat_target::low_new_fork)
8679 (ppc_linux_nat_target::low_new_clone)
8680 (ppc_linux_nat_target::low_delete_thread)
8681 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8682 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8683 only call mark_thread_stale.
8684 (ppc_linux_thread_exit): Remove.
8685 (ppc_linux_nat_target::stopped_data_address): Change to...
8686 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8687 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8688 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8689 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8690 comment. Call low_stopped_data_address.
8691 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8692 m_dreg_interface.
8693 (ppc_linux_nat_target::masked_watch_num_registers): Use
8694 m_dreg_interface.
8695 (ppc_linux_nat_target::copy_thread_dreg_state)
8696 (ppc_linux_nat_target::mark_thread_stale)
8697 (ppc_linux_nat_target::mark_debug_registers_changed)
8698 (ppc_linux_nat_target::register_hw_breakpoint)
8699 (ppc_linux_nat_target::clear_hw_breakpoint)
8700 (ppc_linux_nat_target::register_wp)
8701 (ppc_linux_nat_target::clear_wp)
8702 (ppc_linux_nat_target::init_arch_lwp_info)
8703 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8704 (_initialize_ppc_linux_nat): Remove observer callback.
8705
8706 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8707
8708 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8709 (ppc_linux_nat_target::auxv_parse)
8710 (ppc_linux_nat_target::read_description)
8711 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8712 Move up.
8713
8714 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8715
8716 * linux-nat.h (low_new_clone): New method.
8717 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8718
8719 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8720
8721 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8722 (dbx_expand_psymtab): ... this.
8723 (start_psymtab): Update.
8724 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8725 (mdebug_expand_psymtab): ... this.
8726 (parse_partial_symbols): Update.
8727 (new_psymtab): Update.
8728 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8729 (xcoff_expand_psymtab): ... this.
8730 (xcoff_start_psymtab): Update.
8731
8732 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8733
8734 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8735 <expand_dependencies>: ... this.
8736 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8737 (partial_symtab::expand_dependencies): ... this.
8738 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8739 Update.
8740 (dwarf2_psymtab::expand_psymtab): Update.
8741 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8742 * mdebugread.c (psymtab_to_symtab_1): Update.
8743 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8744
8745 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8746
8747 * psympriv.h (discard_psymtab): Remove.
8748 * dbxread.c (dbx_end_psymtab): Update.
8749 * xcoffread.c (xcoff_end_psymtab): Update.
8750
8751 2020-03-28 Tom Tromey <tom@tromey.com>
8752
8753 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8754 comment.
8755
8756 2020-03-28 Tom Tromey <tom@tromey.com>
8757
8758 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8759
8760 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8761
8762 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8763
8764 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8765
8766 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8767
8768 2020-03-26 Tom Tromey <tom@tromey.com>
8769
8770 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8771 (mark_common_block_symbol_computed, read_tag_string_type)
8772 (attr_to_dynamic_prop, read_subrange_type): Update.
8773 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8774 to be methods on struct attribute.
8775 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8776 (read_call_site_scope, partial_die_info::read)
8777 (partial_die_info::read, lookup_die_type, follow_die_ref):
8778 Update.
8779 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8780 from dwarf2_get_ref_die_offset.
8781 (attribute::constant_value): New method, from
8782 dwarf2_get_attr_constant_value.
8783 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8784 Declare method.
8785 <constant_value>: New method.
8786
8787 2020-03-26 Tom Tromey <tom@tromey.com>
8788
8789 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8790 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8791 (dwarf_type_encoding_name): Move to stringify.c.
8792 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8793 * dwarf2/stringify.c: New file.
8794 * dwarf2/stringify.h: New file.
8795
8796 2020-03-26 Tom Tromey <tom@tromey.com>
8797
8798 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8799 Rewrite.
8800
8801 2020-03-26 Tom Tromey <tom@tromey.com>
8802
8803 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8804 methods.
8805 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8806 (lookup_ranges_base): Likewise.
8807 (read_cutu_die_from_dwo, read_full_die_1): Update.
8808
8809 2020-03-26 Tom Tromey <tom@tromey.com>
8810
8811 * dwarf2/read.c (read_import_statement, read_file_scope)
8812 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8813 (read_lexical_block_scope, read_call_site_scope)
8814 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8815 (handle_struct_member_die, process_structure_scope)
8816 (update_enumeration_type_from_children)
8817 (process_enumeration_scope, read_array_type, read_common_block)
8818 (read_namespace, read_module, read_subroutine_type): Update.
8819 (sibling_die): Remove.
8820
8821 2020-03-26 Tom Tromey <tom@tromey.com>
8822
8823 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8824 (build_type_psymtabs_reader, read_structure_type)
8825 (read_enumeration_type, read_full_die_1): Update.
8826 (dwarf2_attr_no_follow): Move to die.h.
8827 * dwarf2/die.h (struct die_info) <attr>: New method.
8828
8829 2020-03-26 Tom Tromey <tom@tromey.com>
8830
8831 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8832 <base_address>: Now an optional.
8833 (dwarf2_find_base_address, dwarf2_rnglists_process)
8834 (dwarf2_ranges_process, fill_in_loclist_baton)
8835 (dwarf2_symbol_mark_computed): Update.
8836
8837 2020-03-26 Tom Tromey <tom@tromey.com>
8838
8839 * dwarf2/read.c (struct die_info): Move to die.h.
8840 * dwarf2/die.h: New file.
8841
8842 2020-03-26 Tom Tromey <tom@tromey.com>
8843
8844 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8845 * dwarf2/read.c
8846 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8847 Move to line-header.c.
8848 (read_checked_initial_length_and_offset, read_formatted_entries):
8849 Likewise.
8850 (dwarf_decode_line_header): Split into two.
8851 * dwarf2/line-header.c
8852 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8853 Move from read.c.
8854 (read_checked_initial_length_and_offset, read_formatted_entries):
8855 Likewise.
8856 (dwarf_decode_line_header): New function, split from read.c.
8857
8858 2020-03-26 Tom Tromey <tom@tromey.com>
8859
8860 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8861 Declare method.
8862 * dwarf2/read.c (read_attribute_value): Update.
8863 (dwarf2_per_objfile::read_line_string): Rename from
8864 read_indirect_line_string.
8865 (read_formatted_entries): Update.
8866
8867 2020-03-26 Tom Tromey <tom@tromey.com>
8868
8869 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8870 variable.
8871
8872 2020-03-26 Tom Tromey <tom@tromey.com>
8873
8874 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8875 const.
8876 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8877 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8878 parameter const.
8879
8880 2020-03-26 Tom Tromey <tom@tromey.com>
8881
8882 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8883 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8884 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8885 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8886
8887 2020-03-26 Tom Tromey <tom@tromey.com>
8888
8889 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8890 file_names_size, file_full_name, file_file_name>: Use const.
8891 <file_name_at, file_names>: Add const overload.
8892 * dwarf2/line-header.c (line_header::file_file_name)
8893 (line_header::file_full_name): Update.
8894
8895 2020-03-26 Tom Tromey <tom@tromey.com>
8896
8897 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8898 (macro_start_file, consume_improper_spaces)
8899 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8900 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8901 (dwarf_decode_macros): Move to macro.c.
8902 * dwarf2/macro.c: New file.
8903 * dwarf2/macro.h: New file.
8904 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8905
8906 2020-03-26 Tom Tromey <tom@tromey.com>
8907
8908 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8909 method.
8910 * dwarf2/section.c: New method. From
8911 read_indirect_string_at_offset_from.
8912 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8913 (read_indirect_string_at_offset_from): Move to section.c.
8914 (read_indirect_string_at_offset): Rewrite.
8915 (read_indirect_line_string_at_offset): Remove.
8916 (read_indirect_string, read_indirect_line_string)
8917 (dwarf_decode_macro_bytes): Update.
8918
8919 2020-03-26 Tom Tromey <tom@tromey.com>
8920
8921 * dwarf2/section.h (struct dwarf2_section_info)
8922 <overload_complaint>: Declare.
8923 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8924 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8925 Rename from dwarf2_section_buffer_overflow_complaint.
8926 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8927 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8928
8929 2020-03-26 Tom Tromey <tom@tromey.com>
8930
8931 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8932 Declare.
8933 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8934 Move from read.c.
8935 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8936 to section.c.
8937
8938 2020-03-26 Tom Tromey <tom@tromey.com>
8939
8940 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8941
8942 2020-03-26 Tom Tromey <tom@tromey.com>
8943
8944 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8945 "builder".
8946 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8947 parameter.
8948 (dwarf_decode_macros): Update.
8949
8950 2020-03-26 Tom Tromey <tom@tromey.com>
8951
8952 * dwarf2/read.c (read_attribute_value): Update.
8953 (read_indirect_string_from_dwz): Move to dwz.c; change into
8954 method.
8955 (dwarf_decode_macro_bytes): Update.
8956 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8957 * dwarf2/dwz.c: New file.
8958 * Makefile.in (COMMON_SFILES): Add dwz.c.
8959
8960 2020-03-26 Tom Tromey <tom@tromey.com>
8961
8962 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8963 * dwarf2/read.c: Add include.
8964 * dwarf2/index-write.c: Add include.
8965 * dwarf2/index-cache.c: Add include.
8966 * dwarf2/dwz.h: New file.
8967
8968 2020-03-25 Tom Tromey <tom@tromey.com>
8969
8970 * compile/compile-object-load.c (get_out_value_type): Mention
8971 correct symbol name in error message.
8972
8973 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8974
8975 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8976
8977 2020-03-25 Tom de Vries <tdevries@suse.de>
8978
8979 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8980 * symmisc.c (dump_symtab_1): Print user and includes fields.
8981 (maintenance_info_symtabs): Same.
8982
8983 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8984
8985 PR gdb/25534
8986 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8987 (riscv_regcache_cooked_write): New function.
8988 (riscv_push_dummy_call): Use new function.
8989 (riscv_return_value): Likewise.
8990
8991 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8992
8993 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8994 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8995 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8996 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8997 * infrun.c (follow_fork): Likewise.
8998 (follow_fork_inferior): Likewise.
8999 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9000 * linux-nat.h (class linux_nat_target): Likewise.
9001 * remote.c (class remote_target) <follow_fork>: Likewise.
9002 (remote_target::follow_fork): Likewise.
9003 * target-delegates.c: Re-generate.
9004 * target.c (default_follow_fork): Likewise.
9005 (target_follow_fork): Likewise.
9006 * target.h (struct target_ops) <follow_fork>: Likewise.
9007 (target_follow_fork): Likewise.
9008
9009 2020-03-24 Tom de Vries <tdevries@suse.de>
9010
9011 * psymtab.c (maintenance_info_psymtabs): Print user field.
9012
9013 2020-03-20 Tom Tromey <tromey@adacore.com>
9014
9015 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9016 const.
9017 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9018 const.
9019
9020 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9021
9022 * ptrace.m4: Don't check for ptrace declaration.
9023 * config.in: Re-generate.
9024 * configure: Re-generate.
9025 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9026 not defined.
9027
9028 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9029
9030 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9031 `PTRACE_TYPE_RET'.
9032 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9033 * sparc-nat.c (gdb_ptrace): Likewise.
9034 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9035
9036 2020-03-20 Tom Tromey <tromey@adacore.com>
9037
9038 * c-exp.y (lex_one_token): Fix assert.
9039
9040 2020-03-20 Tom Tromey <tromey@adacore.com>
9041
9042 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9043 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9044 strncpy call.
9045
9046 2020-03-20 Tom Tromey <tromey@adacore.com>
9047
9048 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9049
9050 2020-03-20 Tom Tromey <tromey@adacore.com>
9051
9052 * ada-valprint.c (print_variant_part): Remove parameters; switch
9053 to value-based API.
9054 (print_field_values): Likewise.
9055 (ada_val_print_struct_union): Likewise.
9056 (ada_value_print_1): Update.
9057
9058 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9059
9060 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9061 nbsd_nat_target instead of inf_ptrace_target.
9062 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9063 nbsd_nat_target.
9064
9065 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9066
9067 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9068 it to the ptrace call.
9069 * (store_registers): Likewise.
9070
9071 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9072
9073 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9074 it to the ptrace call.
9075 * (store_registers): Likewise.
9076
9077 2020-03-19 Luis Machado <luis.machado@linaro.org>
9078
9079 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9080 valid, fetch vg value from ptrace.
9081
9082 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9083 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9084 * inf-ptrace.c: Likewise.
9085 * (gdb_ptrace): Add.
9086 * (inf_ptrace_target::resume): Update.
9087 * (inf_ptrace_target::xfer_partial): Likewise.
9088 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9089 * (inf_ptrace_peek_poke): Update.
9090
9091 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9092
9093 * x86-bsd-nat.c (gdb_ptrace): New.
9094 * (x86bsd_dr_set): Add new argument `ptid'.
9095 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9096 x86bsd_dr_set_addr): Update.
9097
9098 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9099
9100 * remote.c (remote_target::process_stop_reply): Handle events for
9101 all threads differently.
9102
9103 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9104
9105 * completer.c (completion_tracker::remove_completion): Define new
9106 function.
9107 * completer.h (completion_tracker::remove_completion): Declare new
9108 function.
9109 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9110 when adding a C++ function symbol.
9111
9112 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9113
9114 * completer.c (completion_tracker::completion_hash_entry): Define
9115 new class.
9116 (advance_to_filename_complete_word_point): Call
9117 recompute_lowest_common_denominator.
9118 (completion_tracker::completion_tracker): Call discard_completions
9119 to setup the hash table.
9120 (completion_tracker::discard_completions): Allow for being called
9121 from the constructor, pass new equal function, and element deleter
9122 when constructing the hash table. Initialise new class member
9123 variables.
9124 (completion_tracker::maybe_add_completion): Remove use of
9125 m_entries_vec, and store more information into m_entries_hash.
9126 (completion_tracker::recompute_lcd_visitor): New function, most
9127 content taken from...
9128 (completion_tracker::recompute_lowest_common_denominator):
9129 ...here, this now just visits each item in the hash calling the
9130 above visitor.
9131 (completion_tracker::build_completion_result): Remove use of
9132 m_entries_vec, call recompute_lowest_common_denominator.
9133 * completer.h (completion_tracker::have_completions): Remove use
9134 of m_entries_vec.
9135 (completion_tracker::completion_hash_entry): Declare new class.
9136 (completion_tracker::recompute_lowest_common_denominator): Change
9137 function signature.
9138 (completion_tracker::recompute_lcd_visitor): Declare new function.
9139 (completion_tracker::m_entries_vec): Delete.
9140 (completion_tracker::m_entries_hash): Initialize to NULL.
9141 (completion_tracker::m_lowest_common_denominator_valid): New
9142 member variable.
9143 (completion_tracker::m_lowest_common_denominator_max_length): New
9144 member variable.
9145
9146 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9147
9148 * regformats/regdef.h: Put reg in gdb namespace.
9149
9150 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9151
9152 * i386-bsd-nat.c (gdb_ptrace): New.
9153 * (i386bsd_fetch_inferior_registers,
9154 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9155 * (i386bsd_fetch_inferior_registers,
9156 i386bsd_store_inferior_registers) Use gdb_ptrace.
9157
9158 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9159
9160 * amd64-bsd-nat.c (gdb_ptrace): New.
9161 * (amd64bsd_fetch_inferior_registers,
9162 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9163 * (amd64bsd_fetch_inferior_registers,
9164 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9165
9166 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9167
9168 * user-regs.c (user_reg::read): Rename to...
9169 (user_reg::xread): ...this.
9170 * (append_user_reg): Rename argument `read' to `xread'.
9171 * (user_reg_add_builtin): Likewise.
9172 * (user_reg_add): Likewise.
9173 * (value_of_user_reg): Likewise.
9174
9175 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9176
9177 * sparc-nat.c (gdb_ptrace): New.
9178 * sparc-nat.c (sparc_fetch_inferior_registers)
9179 (sparc_store_inferior_registers) Remove obsolete comment.
9180 * sparc-nat.c (sparc_fetch_inferior_registers)
9181 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9182 * sparc-nat.c (sparc_fetch_inferior_registers)
9183 (sparc_store_inferior_registers) Use gdb_ptrace.
9184
9185 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9186
9187 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9188 it to the ptrace call.
9189 * sh-nbsd-nat.c (store_registers): Likewise.
9190
9191 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9192
9193 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9194 nbsd_nat_target instead of inf_ptrace_target.
9195 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9196 nbsd_nat_target.
9197
9198 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9199
9200 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9201
9202 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9203
9204 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9205 <sys/sysctl.h>.
9206 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9207
9208 2020-03-17 Tom de Vries <tdevries@suse.de>
9209
9210 PR gdb/23710
9211 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9212 fields.
9213 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9214 fields.
9215 (process_imported_unit_die): Skip import of c++ CUs.
9216
9217 2020-03-16 Tom Tromey <tom@tromey.com>
9218
9219 * p-valprint.c (pascal_object_print_value): Initialize
9220 base_value.
9221
9222 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9223 Shahab Vahedi <shahab@synopsys.com>
9224
9225 * Makefile.in: Add arch/arc.o
9226 * configure.tgt: Likewise.
9227 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9228 (_initialize_arc_tdep): Don't initialize old target descriptions.
9229 (arc_read_description): New function to cache target descriptions.
9230 * arc-tdep.h (arc_read_description): Add proto type.
9231 * arch/arc.c: New file.
9232 * arch/arc.h: Likewise.
9233 * features/Makefile: Replace old target descriptions with new.
9234 * features/arc-arcompact.c: Remove.
9235 * features/arc-arcompact.xml: Likewise.
9236 * features/arc-v2.c: Likewise
9237 * features/arc-v2.xml: Likewise
9238 * features/arc/aux-arcompact.xml: New file.
9239 * features/arc/aux-v2.xml: Likewise.
9240 * features/arc/core-arcompact.xml: Likewise.
9241 * features/arc/core-v2.xml: Likewise.
9242 * features/arc/aux-arcompact.c: Generate.
9243 * features/arc/aux-v2.c: Likewise.
9244 * features/arc/core-arcompact.c: Likewise.
9245 * features/arc/core-v2.c: Likewise.
9246 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9247
9248 2020-03-16 Tom Tromey <tromey@adacore.com>
9249
9250 PR gdb/25663:
9251 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9252 putting value into bcache.
9253
9254 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9255
9256 PR gdb/21500
9257 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9258 to...
9259 (amd64_windows_init_abi_common): ... this. Don't set size of
9260 long type.
9261 (amd64_windows_init_abi): New function.
9262 (amd64_cygwin_init_abi): New function.
9263 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9264 the Cygwin OS ABI.
9265 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9266 comment.
9267
9268 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9269
9270 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9271 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9272 (pe_import_directory_entry): New struct type.
9273 (is_linked_with_cygwin_dll): New function.
9274 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9275 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9276 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9277
9278 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9279
9280 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9281 i386_cygwin_core_osabi_sniffer.
9282
9283 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9284
9285 * i386-cygwin-tdep.c: Rename to...
9286 * i386-windows-tdep.c: ... this.
9287 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9288 i386-windows-tdep.c.
9289 * configure.tgt: Likewise.
9290
9291 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9292
9293 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9294 * osabi.c (gdb_osabi_names): Add "Windows".
9295 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9296 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9297 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9298 i386_cygwin_osabi_sniffer.
9299 (_initialize_i386_cygwin_tdep): Register OS ABI
9300 GDB_OSABI_WINDOWS for i386.
9301 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9302 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9303 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9304 for x86-64.
9305 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9306 when the target matches '*-*-mingw*'.
9307
9308 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9309
9310 * defs.h (enum gdb_osabi): Move to...
9311 * osabi.h (enum gdb_osabi): ... here.
9312 * gdbarch.sh: Include osabi.h in gdbarch.h.
9313 * gdbarch.h: Re-generate.
9314
9315 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9316
9317 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9318 function.
9319 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9320
9321 2020-03-14 Tom Tromey <tom@tromey.com>
9322
9323 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9324 for C++.
9325 (c_type_print_modifier): Likewise. Add "language" parameter.
9326 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9327 (c_type_print_base_1): Update.
9328 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9329 constants.
9330 * type-stack.c (type_stack::insert): Handle tp_atomic and
9331 tp_restrict.
9332 (type_stack::follow_type_instance_flags): Likewise.
9333 (type_stack::follow_types): Likewise. Merge type-following code.
9334 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9335 (space_identifier, cv_with_space_id)
9336 (const_or_volatile_or_space_identifier_noopt)
9337 (const_or_volatile_or_space_identifier): Remove.
9338 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9339 rules.
9340 (ptr_operator, typebase): Update.
9341 (enum token_flag) <FLAG_C>: New constant.
9342 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9343 "_Atomic".
9344 (lex_one_token): Handle FLAG_C.
9345
9346 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9347
9348 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9349 it to the ptrace call.
9350 * m68k-bsd-nat.c (store_registers): Likewise.
9351
9352 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9353
9354 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9355 gdb_byte *.
9356 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9357 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9358 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9359
9360 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9361
9362 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9363 nbsd_nat_target instead of inf_ptrace_target.
9364 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9365 nbsd_nat_target.
9366
9367 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9368
9369 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9370 register_t.
9371
9372 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9373
9374 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9375 it to the ptrace call.
9376 * alpha-bsd-nat.c (store_registers): Likewise.
9377
9378 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9379
9380 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9381 includes.
9382 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9383 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9384 fill_fpregset): Likewise.
9385
9386 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9387
9388 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9389 nbsd_nat_target instead of inf_ptrace_target.
9390 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9391 nbsd_nat_target.
9392
9393 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9394
9395 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9396 register_t.
9397
9398 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9399
9400 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9401 it to the ptrace call.
9402 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9403 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9404 * arm-nbsd-nat.c (store_register): Likewise.
9405 * arm-nbsd-nat.c (store_regs): Likewise.
9406 * arm-nbsd-nat.c (store_fp_register): Likewise.
9407 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9408
9409 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9410
9411 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9412 nbsd_nat_target instead of inf_ptrace_target.
9413 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9414 nbsd_nat_target.
9415
9416 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9417
9418 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9419 it to the ptrace call.
9420 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9421
9422 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9423
9424 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9425 it to the ptrace call.
9426 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9427
9428 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9429
9430 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9431 gdb_byte *.
9432 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9433
9434 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9435
9436 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9437 instead of inf_ptrace_target.
9438 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9439 nbsd_nat_target.
9440
9441 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9442
9443 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9444 register_t.
9445
9446 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9447
9448 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9449 register_t.
9450
9451 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9452
9453 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9454 register_t.
9455
9456 2020-03-13 Tom Tromey <tom@tromey.com>
9457
9458 * value.h (val_print): Don't declare.
9459 * valprint.h (val_print_array_elements)
9460 (val_print_scalar_formatted, generic_val_print): Don't declare.
9461 * valprint.c (generic_val_print_array): Take a struct value.
9462 (generic_val_print_ptr, generic_val_print_memberptr)
9463 (generic_val_print_bool, generic_val_print_int)
9464 (generic_val_print_char, generic_val_print_complex)
9465 (generic_val_print): Remove.
9466 (generic_value_print): Update.
9467 (do_val_print): Remove unused parameters. Don't call
9468 la_val_print.
9469 (val_print): Remove.
9470 (common_val_print): Update. Don't call value_check_printable.
9471 (val_print_scalar_formatted, val_print_array_elements): Remove.
9472 * rust-lang.c (rust_val_print): Remove.
9473 (rust_language_defn): Update.
9474 * p-valprint.c (pascal_val_print): Remove.
9475 (pascal_value_print_inner): Update.
9476 (pascal_object_print_val_fields, pascal_object_print_val):
9477 Remove.
9478 (pascal_object_print_static_field): Update.
9479 * p-lang.h (pascal_val_print): Don't declare.
9480 * p-lang.c (pascal_language_defn): Update.
9481 * opencl-lang.c (opencl_language_defn): Update.
9482 * objc-lang.c (objc_language_defn): Update.
9483 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9484 * m2-lang.h (m2_val_print): Don't declare.
9485 * m2-lang.c (m2_language_defn): Update.
9486 * language.h (struct language_defn) <la_val_print>: Remove.
9487 * language.c (unk_lang_value_print_inner): Rename. Change
9488 argument types.
9489 (unknown_language_defn, auto_language_defn): Update.
9490 * go-valprint.c (go_val_print): Remove.
9491 * go-lang.h (go_val_print): Don't declare.
9492 * go-lang.c (go_language_defn): Update.
9493 * f-valprint.c (f_val_print): Remove.
9494 * f-lang.h (f_value_print): Don't declare.
9495 * f-lang.c (f_language_defn): Update.
9496 * d-valprint.c (d_val_print): Remove.
9497 * d-lang.h (d_value_print): Don't declare.
9498 * d-lang.c (d_language_defn): Update.
9499 * cp-valprint.c (cp_print_value_fields)
9500 (cp_print_value_fields_rtti, cp_print_value): Remove.
9501 (cp_print_static_field): Update.
9502 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9503 (c_val_print_struct, c_val_print_union, c_val_print_int)
9504 (c_val_print_memberptr, c_val_print): Remove.
9505 * c-lang.h (c_val_print_array, cp_print_value_fields)
9506 (cp_print_value_fields_rtti): Don't declare.
9507 * c-lang.c (c_language_defn, cplus_language_defn)
9508 (asm_language_defn, minimal_language_defn): Update.
9509 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9510 (ada_val_print_enum): Take a struct value.
9511 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9512 (ada_val_print): Remove.
9513 (ada_value_print_1): Update.
9514 (printable_val_type): Remove.
9515 * ada-lang.h (ada_val_print): Don't declare.
9516 * ada-lang.c (ada_language_defn): Update.
9517
9518 2020-03-13 Tom Tromey <tom@tromey.com>
9519
9520 * valprint.c (do_val_print): Update.
9521 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9522 a struct value.
9523 (value_to_value_object_no_release): Declare.
9524 * python/py-value.c (value_to_value_object_no_release): New
9525 function.
9526 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9527 struct value.
9528 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9529 function.
9530 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9531 a struct value.
9532 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9533 Declare.
9534 (gdbscm_apply_val_pretty_printer): Take a struct value.
9535 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9536 value.
9537 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9538 value.
9539 * extension-priv.h (struct extension_language_ops)
9540 <apply_val_pretty_printer>: Take a struct value.
9541 * cp-valprint.c (cp_print_value): Create a struct value.
9542 (cp_print_value): Update.
9543
9544 2020-03-13 Tom Tromey <tom@tromey.com>
9545
9546 * ada-valprint.c (print_field_values): Call common_val_print.
9547
9548 2020-03-13 Tom Tromey <tom@tromey.com>
9549
9550 * ada-valprint.c (val_print_packed_array_elements): Remove
9551 bitoffset and val parameters. Call common_val_print.
9552 (ada_val_print_string): Remove offset, address, and original_value
9553 parameters.
9554 (ada_val_print_array): Update.
9555 (ada_value_print_array): New function.
9556 (ada_value_print_1): Call it.
9557
9558 2020-03-13 Tom Tromey <tom@tromey.com>
9559
9560 * ada-valprint.c (ada_value_print): Use common_val_print.
9561
9562 2020-03-13 Tom Tromey <tom@tromey.com>
9563
9564 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9565
9566 2020-03-13 Tom Tromey <tom@tromey.com>
9567
9568 * ada-valprint.c (ada_value_print_num): New function.
9569 (ada_value_print_1): Use it.
9570
9571 2020-03-13 Tom Tromey <tom@tromey.com>
9572
9573 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9574
9575 2020-03-13 Tom Tromey <tom@tromey.com>
9576
9577 * ada-valprint.c (ada_value_print_ptr): New function.
9578 (ada_value_print_1): Use it.
9579
9580 2020-03-13 Tom Tromey <tom@tromey.com>
9581
9582 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9583 call common_val_print.
9584 (ada_val_print_1): Update.
9585 (ada_value_print_1): New function.
9586 (ada_value_print_inner): Rewrite.
9587
9588 2020-03-13 Tom Tromey <tom@tromey.com>
9589
9590 * cp-valprint.c (cp_print_value_fields): Update.
9591 (cp_print_value): New function.
9592
9593 2020-03-13 Tom Tromey <tom@tromey.com>
9594
9595 * m2-valprint.c (m2_value_print_inner): Use
9596 cp_print_value_fields.
9597 * cp-valprint.c (cp_print_value_fields): New function.
9598 * c-valprint.c (c_value_print_struct): New function.
9599 (c_value_print_inner): Use c_value_print_struct.
9600 * c-lang.h (cp_print_value_fields): Declare.
9601
9602 2020-03-13 Tom Tromey <tom@tromey.com>
9603
9604 * c-valprint.c (c_value_print_array): New function.
9605 (c_value_print_inner): Use it.
9606
9607 2020-03-13 Tom Tromey <tom@tromey.com>
9608
9609 * c-valprint.c (c_value_print_memberptr): New function.
9610 (c_value_print_inner): Use it.
9611
9612 2020-03-13 Tom Tromey <tom@tromey.com>
9613
9614 * c-valprint.c (c_value_print_int): New function.
9615 (c_value_print_inner): Use it.
9616
9617 2020-03-13 Tom Tromey <tom@tromey.com>
9618
9619 * c-valprint.c (c_value_print_ptr): New function.
9620 (c_value_print_inner): Use it.
9621
9622 2020-03-13 Tom Tromey <tom@tromey.com>
9623
9624 * c-valprint.c (c_value_print_inner): Rewrite.
9625
9626 2020-03-13 Tom Tromey <tom@tromey.com>
9627
9628 * valprint.c (generic_value_print_complex): New function.
9629 (generic_value_print): Use it.
9630
9631 2020-03-13 Tom Tromey <tom@tromey.com>
9632
9633 * valprint.c (generic_val_print_float): Don't call
9634 val_print_scalar_formatted.
9635 (generic_val_print, generic_value_print): Update.
9636
9637 2020-03-13 Tom Tromey <tom@tromey.com>
9638
9639 * valprint.c (generic_value_print_char): New function
9640 (generic_value_print): Use it.
9641
9642 2020-03-13 Tom Tromey <tom@tromey.com>
9643
9644 * valprint.c (generic_value_print_int): New function.
9645 (generic_value_print): Use it.
9646
9647 2020-03-13 Tom Tromey <tom@tromey.com>
9648
9649 * valprint.c (generic_value_print_bool): New function.
9650 (generic_value_print): Use it.
9651
9652 2020-03-13 Tom Tromey <tom@tromey.com>
9653
9654 * valprint.c (generic_val_print_func): Simplify.
9655 (generic_val_print, generic_value_print): Update.
9656
9657 2020-03-13 Tom Tromey <tom@tromey.com>
9658
9659 * valprint.c (generic_val_print_flags): Remove.
9660 (generic_val_print, generic_value_print): Update.
9661 (val_print_type_code_flags): Add original_value parameter.
9662
9663 2020-03-13 Tom Tromey <tom@tromey.com>
9664
9665 * valprint.c (generic_val_print): Update.
9666 (generic_value_print): Update.
9667 * valprint.c (generic_val_print_enum): Don't call
9668 val_print_scalar_formatted.
9669
9670 2020-03-13 Tom Tromey <tom@tromey.com>
9671
9672 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9673 * valprint.c (generic_value_print_ptr): New function.
9674
9675 2020-03-13 Tom Tromey <tom@tromey.com>
9676
9677 * valprint.c (generic_value_print): Rewrite.
9678
9679 2020-03-13 Tom Tromey <tom@tromey.com>
9680
9681 * p-valprint.c (pascal_object_print_value_fields)
9682 (pascal_object_print_value): New functions.
9683
9684 2020-03-13 Tom Tromey <tom@tromey.com>
9685
9686 * p-valprint.c (pascal_value_print_inner): Rewrite.
9687
9688 2020-03-13 Tom Tromey <tom@tromey.com>
9689
9690 * f-valprint.c (f_value_print_innner): Rewrite.
9691
9692 2020-03-13 Tom Tromey <tom@tromey.com>
9693
9694 * m2-valprint.c (m2_print_unbounded_array): New overload.
9695 (m2_print_unbounded_array): Update.
9696 (m2_print_array_contents): Take a struct value.
9697 (m2_value_print_inner): Rewrite.
9698
9699 2020-03-13 Tom Tromey <tom@tromey.com>
9700
9701 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9702 (d_value_print_inner): New function.
9703 * d-lang.h (d_value_print_inner): Declare.
9704 * d-lang.c (d_language_defn): Use d_value_print_inner.
9705
9706 2020-03-13 Tom Tromey <tom@tromey.com>
9707
9708 * go-valprint.c (go_value_print_inner): New function.
9709 * go-lang.h (go_value_print_inner): Declare.
9710 * go-lang.c (go_language_defn): Use go_value_print_inner.
9711
9712 2020-03-13 Tom Tromey <tom@tromey.com>
9713
9714 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9715 API.
9716 (rust_val_print): Rewrite.
9717 (rust_value_print_inner): New function, from rust_val_print.
9718 (rust_language_defn): Use rust_value_print_inner.
9719
9720 2020-03-13 Tom Tromey <tom@tromey.com>
9721
9722 * ada-valprint.c (ada_value_print_inner): New function.
9723 * ada-lang.h (ada_value_print_inner): Declare.
9724 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9725
9726 2020-03-13 Tom Tromey <tom@tromey.com>
9727
9728 * f-valprint.c (f_value_print_innner): New function.
9729 * f-lang.h (f_value_print_innner): Declare.
9730 * f-lang.c (f_language_defn): Use f_value_print_innner.
9731
9732 2020-03-13 Tom Tromey <tom@tromey.com>
9733
9734 * p-valprint.c (pascal_value_print_inner): New function.
9735 * p-lang.h (pascal_value_print_inner): Declare.
9736 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9737
9738 2020-03-13 Tom Tromey <tom@tromey.com>
9739
9740 * m2-valprint.c (m2_value_print_inner): New function.
9741 * m2-lang.h (m2_value_print_inner): Declare.
9742 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9743
9744 2020-03-13 Tom Tromey <tom@tromey.com>
9745
9746 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9747 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9748 * c-valprint.c (c_value_print_inner): New function.
9749 * c-lang.h (c_value_print_inner): Declare.
9750 * c-lang.c (c_language_defn, cplus_language_defn)
9751 (asm_language_defn, minimal_language_defn): Use
9752 c_value_print_inner.
9753
9754 2020-03-13 Tom Tromey <tom@tromey.com>
9755
9756 * p-valprint.c (pascal_object_print_value_fields): Now static.
9757 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9758
9759 2020-03-13 Tom Tromey <tom@tromey.com>
9760
9761 * c-valprint.c (c_val_print_array): Simplify.
9762
9763 2020-03-13 Tom Tromey <tom@tromey.com>
9764
9765 * valprint.c (value_print_array_elements): New function.
9766 * valprint.h (value_print_array_elements): Declare.
9767
9768 2020-03-13 Tom Tromey <tom@tromey.com>
9769
9770 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9771 * mips-tdep.c (mips_print_register): Use
9772 value_print_scalar_formatted.
9773
9774 2020-03-13 Tom Tromey <tom@tromey.com>
9775
9776 * valprint.h (value_print_scalar_formatted): Declare.
9777 * valprint.c (value_print_scalar_formatted): New function.
9778
9779 2020-03-13 Tom Tromey <tom@tromey.com>
9780
9781 * valprint.h (generic_value_print): Declare.
9782 * valprint.c (generic_value_print): New function.
9783
9784 2020-03-13 Tom Tromey <tom@tromey.com>
9785
9786 * valprint.c (do_val_print): Call la_value_print_inner, if
9787 available.
9788 * rust-lang.c (rust_language_defn): Update.
9789 * p-lang.c (pascal_language_defn): Update.
9790 * opencl-lang.c (opencl_language_defn): Update.
9791 * objc-lang.c (objc_language_defn): Update.
9792 * m2-lang.c (m2_language_defn): Update.
9793 * language.h (struct language_defn) <la_value_print_inner>: New
9794 member.
9795 * language.c (unknown_language_defn, auto_language_defn): Update.
9796 * go-lang.c (go_language_defn): Update.
9797 * f-lang.c (f_language_defn): Update.
9798 * d-lang.c (d_language_defn): Update.
9799 * c-lang.c (c_language_defn, cplus_language_defn)
9800 (asm_language_defn, minimal_language_defn): Update.
9801 * ada-lang.c (ada_language_defn): Update.
9802
9803 2020-03-13 Tom Tromey <tom@tromey.com>
9804
9805 * c-valprint.c (c_value_print): Use common_val_print.
9806
9807 2020-03-13 Tom Tromey <tom@tromey.com>
9808
9809 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9810
9811 2020-03-13 Tom Tromey <tom@tromey.com>
9812
9813 * f-valprint.c (f77_print_array_1, f_val_print): Use
9814 common_val_print.
9815
9816 2020-03-13 Tom Tromey <tom@tromey.com>
9817
9818 * riscv-tdep.c (riscv_print_one_register_info): Use
9819 common_val_print.
9820
9821 2020-03-13 Tom Tromey <tom@tromey.com>
9822
9823 * mi/mi-main.c (output_register): Use common_val_print.
9824
9825 2020-03-13 Tom Tromey <tom@tromey.com>
9826
9827 * infcmd.c (default_print_one_register_info): Use
9828 common_val_print.
9829
9830 2020-03-13 Tom Tromey <tom@tromey.com>
9831
9832 * valprint.h (common_val_print_checked): Declare.
9833 * valprint.c (common_val_print_checked): New function.
9834 * stack.c (print_frame_arg): Use common_val_print_checked.
9835
9836 2020-03-13 Tom Tromey <tom@tromey.com>
9837
9838 * valprint.c (do_val_print): New function, from val_print.
9839 (val_print): Use do_val_print.
9840 (common_val_print): Use do_val_print.
9841
9842 2020-03-13 Tom Tromey <tom@tromey.com>
9843
9844 * valprint.c (value_print): Use scoped_value_mark.
9845
9846 2020-03-13 Tom de Vries <tdevries@suse.de>
9847
9848 PR symtab/25646
9849 * psymtab.c (partial_symtab::partial_symtab): Don't set
9850 globals_offset and statics_offset. Push element onto
9851 current_global_psymbols and current_static_psymbols stacks.
9852 (concat): New function.
9853 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9854 element from current_global_psymbols and current_static_psymbols
9855 stacks. Concat popped elements to global_psymbols and
9856 static_symbols.
9857 (add_psymbol_to_list): Use current_global_psymbols and
9858 current_static_psymbols stacks.
9859 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9860 current_static_psymbols fields.
9861
9862 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9863
9864 * corelow.c (sniff_core_bfd): Remove.
9865 (class core_target) <m_core_vec>: Remove.
9866 (core_target::core_target): Update.
9867 (core_file_fns): Remove.
9868 (deprecated_add_core_fns): Remove.
9869 (default_core_sniffer): Remove.
9870 (sniff_core_bfd): Remove.
9871 (default_check_format): Remove.
9872 (gdb_check_format): Remove.
9873 (core_target_open): Update.
9874 (core_target::get_core_register_section): Update.
9875 (get_core_registers_cb): Update.
9876 (core_target::fetch_registers): Update.
9877 * gdbcore.h (struct core_fns): Remove.
9878 (deprecated_add_core_fns): Remove.
9879 (default_core_sniffer): Remove.
9880 (default_check_format): Remove.
9881
9882 2020-03-12 Tom Tromey <tom@tromey.com>
9883
9884 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9885 CORE_ADDR.
9886 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9887
9888 2020-03-12 Tom Tromey <tom@tromey.com>
9889
9890 * remote.c (remote_target::download_tracepoint)
9891 (remote_target::enable_tracepoint)
9892 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9893 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9894 sprintf_vma.
9895
9896 2020-03-12 Tom Tromey <tom@tromey.com>
9897
9898 * symfile-mem.c: Update CORE_ADDR size assert.
9899
9900 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9901
9902 * selftest.m4: Move to gdbsupport/.
9903 * acinclude.m4: Update path to selftest.m4.
9904
9905 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9906
9907 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9908 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9909 gdbarch-selfselftests.c and selftest-arch.c.
9910 (SUBDIR_UNITTESTS_OBS): Rename to...
9911 (SELFTESTS_OBS): ... this.
9912 (COMMON_SFILES): Remove disasm-selftests.c and
9913 gdbarch-selftests.c.
9914 * configure.ac: Don't add selftest-arch.{c,o} to
9915 CONFIG_{SRCS,OBS}.
9916 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9917 preprocessor conditions.
9918
9919 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9920
9921 * configure.ac: Don't source bfd/development.sh.
9922 * selftest.m4: Modify comment.
9923 * configure: Re-generate.
9924
9925 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9926
9927 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9928 not "true" or "false".
9929 * configure: Re-generate.
9930
9931 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9932
9933 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9934 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9935 renamed to arm_nbsd_supply_gregset.
9936 (fetch_register): Update to call arm_nbsd_supply_gregset.
9937 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9938 (arm_netbsd_nat_target::fetch_registers): Update.
9939 (fetch_elfcore_registers): Removed.
9940 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9941 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9942 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9943 not require NetBSD system headers.
9944 (arm_nbsd_regset): New struct.
9945 (arm_nbsd_iterate_over_regset_sections): New function.
9946 (arm_netbsd_init_abi_common): Updated to call
9947 set_gdbarch_iterate_over_regset_sections.
9948 * arm-nbsd-tdep.h: New file.
9949
9950 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9951
9952 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9953 recursion.
9954
9955 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9956
9957 * configure: Re-generate.
9958
9959 2020-03-11 Tom Tromey <tromey@adacore.com>
9960
9961 * ada-typeprint.c (print_choices): Fix comment.
9962
9963 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9964
9965 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9966 previous item in the list, when the list has no items.
9967
9968 2020-03-11 Tom de Vries <tdevries@suse.de>
9969
9970 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9971 PROP_LOCLIST handling code.
9972
9973 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9974
9975 * buildsym-legacy.c (record_line): Pass extra parameter to
9976 record_line.
9977 * buildsym.c (buildsym_compunit::record_line): Take an extra
9978 parameter, reduce duplication in the line table, and record the
9979 is_stmt flag in the line table.
9980 * buildsym.h (buildsym_compunit::record_line): Add extra
9981 parameter.
9982 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9983 non-statement lines.
9984 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9985 this to the symtab builder.
9986 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9987 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9988 through to dwarf_record_line_1.
9989 * infrun.c (process_event_stop_test): When stepping, don't stop at
9990 a non-statement instruction, and only refresh the step info when
9991 we land in the middle of a line's range. Also add an extra
9992 comment.
9993 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9994 field.
9995 * record-btrace.c (btrace_find_line_range): Only record lines
9996 marked as is-statement.
9997 * stack.c (frame_show_address): Show the frame address if we are
9998 in a non-statement sal.
9999 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10000 (maintenance_print_one_line_table): Print a header for the is_stmt
10001 column, and include is_stmt information in the output.
10002 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10003 preference to non-statements.
10004 (find_pcs_for_symtab_line): Prefer is-statement entries.
10005 (find_line_common): Likewise.
10006 * symtab.h (struct linetable_entry): Add is_stmt field.
10007 (struct symtab_and_line): Likewise.
10008 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10009 arranging the line table.
10010
10011 2020-03-07 Tom de Vries <tdevries@suse.de>
10012
10013 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10014 DIE.
10015
10016 2020-03-07 Tom Tromey <tom@tromey.com>
10017
10018 * valops.c (value_literal_complex): Remove obsolete comment.
10019 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10020 comment.
10021
10022 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10023
10024 * infrun.h: Forward-declare thread_info.
10025 (set_step_info): Add thread_info parameter, add doc.
10026 * infrun.c (set_step_info): Add thread_info parameter, move doc
10027 to header.
10028 * infrun.c (process_event_stop_test): Pass thread to
10029 set_step_info call.
10030 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10031 set_step_info.
10032 (prepare_one_step): Add thread_info parameter, pass it to
10033 set_step_frame and prepare_one_step (recursive) call.
10034 (step_1): Pass thread to prepare_one_step call.
10035 (step_command_fsm::should_stop): Pass thread to
10036 prepare_one_step.
10037 (until_next_fsm): Pass thread to set_step_frame call.
10038 (finish_command): Pass thread to set_step_info call.
10039
10040 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10041
10042 * windows-tdep.c (windows_solib_create_inferior_hook):
10043 Check if inferior is running.
10044
10045 2020-03-06 Tom de Vries <tdevries@suse.de>
10046
10047 * NEWS: Fix "the the".
10048 * ctfread.c: Same.
10049
10050 2020-03-06 Tom de Vries <tdevries@suse.de>
10051
10052 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10053
10054 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10055
10056 * .dir-locals.el: Add a comment referencing the other copies of
10057 this file.
10058
10059 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10060
10061 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10062 psargs.
10063
10064 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10065
10066 * .gitattributes: New file.
10067
10068 2020-03-04 Tom Tromey <tom@tromey.com>
10069
10070 * symmisc.c (print_symbol_bcache_statistics)
10071 (print_objfile_statistics): Update.
10072 * symfile.c (allocate_symtab): Use intern.
10073 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10074 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10075 macro_cache>: Remove.
10076 <string_cache>: New member.
10077 (struct objfile) <intern>: New methods.
10078 * elfread.c (elf_symtab_read): Use intern.
10079 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10080 (dwarf2_compute_name, dwarf2_physname)
10081 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10082 names.
10083 (guess_partial_die_structure_name): Update.
10084 (partial_die_info::fixup): Intern name.
10085 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10086 name.
10087 (dwarf2_name): Intern name. Update.
10088 * buildsym.c (buildsym_compunit::get_macro_table): Use
10089 string_cache.
10090
10091 2020-03-04 Tom Tromey <tom@tromey.com>
10092
10093 * jit.c (bfd_open_from_target_memory): Make "target" const.
10094 * corefile.c (gnutarget): Now const.
10095 * gdbcore.h (gnutarget): Now const.
10096
10097 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10098
10099 * NEWS: Mention support for WOW64 processes.
10100 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10101 (amd64_windows_segment_register_p): Remove static.
10102 (_initialize_amd64_windows_nat): Update.
10103 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10104 * i386-windows-nat.c (context_offset): Update.
10105 (i386_mappings): Rename and remove static.
10106 (i386_windows_segment_register_p): Remove static.
10107 (_initialize_i386_windows_nat): Update.
10108 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10109 (STATUS_WX86_SINGLE_STEP): New macro.
10110 (EnumProcessModulesEx): New macro.
10111 (Wow64SuspendThread): New macro.
10112 (Wow64GetThreadContext): New macro.
10113 (Wow64SetThreadContext): New macro.
10114 (Wow64GetThreadSelectorEntry): New macro.
10115 (windows_set_context_register_offsets): Add static.
10116 (windows_set_segment_register_p): Likewise.
10117 (windows_add_thread): Adapt for WOW64 processes.
10118 (windows_fetch_one_register): Likewise.
10119 (windows_nat_target::fetch_registers): Likewise.
10120 (windows_store_one_register): Likewise.
10121 (display_selector): Likewise.
10122 (display_selectors): Likewise.
10123 (handle_exception): Likewise.
10124 (windows_continue): Likewise.
10125 (windows_nat_target::resume): Likewise.
10126 (windows_add_all_dlls): Likewise.
10127 (do_initial_windows_stuff): Likewise.
10128 (windows_nat_target::attach): Likewise.
10129 (windows_get_exec_module_filename): Likewise.
10130 (windows_nat_target::create_inferior): Likewise.
10131 (windows_xfer_siginfo): Likewise.
10132 (_initialize_loadable): Initialize Wow64SuspendThread,
10133 Wow64GetThreadContext, Wow64SetThreadContext,
10134 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10135 * windows-nat.h (windows_set_context_register_offsets):
10136 Remove declaration.
10137 (windows_set_segment_register_p): Likewise.
10138 (i386_windows_segment_register_p): Add declaration.
10139 (amd64_windows_segment_register_p): Likewise.
10140
10141 2020-03-04 Luis Machado <luis.machado@linaro.org>
10142
10143 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10144 in "info registers" for AArch64/ARM.
10145
10146 The change caused "info registers" to not print GPR's.
10147
10148 gdb/ChangeLog:
10149
10150 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10151
10152 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10153 when reg->group is empty and reggroup is not.
10154
10155 2020-03-03 Tom Tromey <tromey@adacore.com>
10156
10157 * dwarf2/frame.c (struct dwarf2_frame_cache)
10158 <checked_tailcall_bottom, entry_cfa_sp_offset,
10159 entry_cfa_sp_offset_p>: Remove members.
10160 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10161 (dwarf2_frame_prev_register): Don't call
10162 dwarf2_tailcall_sniffer_first.
10163 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10164 * frame-unwind.c (add_unwinder): New fuction.
10165 (frame_unwind_init): Use it. Add tailcall unwinder.
10166
10167 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10168 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10169
10170 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10171 value should be printed as true.
10172
10173 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10174
10175 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10176 (windows_init_abi): Set and use windows_so_ops.
10177
10178 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10179
10180 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10181 when verifying if dealing with a convenience variable.
10182
10183 2020-03-03 Luis Machado <luis.machado@linaro.org>
10184
10185 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10186
10187 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10188
10189 * infrun.c (gdbarch_supports_displaced_stepping): New.
10190 (use_displaced_stepping): Break up conditions in smaller pieces.
10191 Use gdbarch_supports_displaced_stepping.
10192 (displaced_step_prepare_throw): Use
10193 gdbarch_supports_displaced_stepping.
10194
10195 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10196
10197 * NEWS: Mention new behaviour of the history filename.
10198 * top.c (write_history_p): Add comment.
10199 (show_write_history_p): Add header comment, give a different
10200 message when history writing is on, but the history filename is
10201 empty.
10202 (history_filename): Add comment.
10203 (history_filename_empty): New function.
10204 (show_history_filename): Add header comment, give a different
10205 message when the filename is empty.
10206 (init_history): Compare history_filename against nullptr, and only
10207 read history if the filename is not empty.
10208 (set_history_filename): Add header comment, and only make
10209 non-empty filenames absolute.
10210 (init_main): Make the filename argument to 'set history filename'
10211 optional.
10212
10213 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10214
10215 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10216 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10217 (fetch_fp_register): Update.
10218 (fetch_fp_regs): Update.
10219 (store_fp_register): Update.
10220 (store_fp_regs): Update.
10221 (arm_netbsd_nat_target::read_description): New function.
10222 (fetch_elfcore_registers): Update.
10223
10224 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10225
10226 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10227 general_thread if the stop reply is missing a thread-id.
10228 (remote_target::process_stop_reply): Use the first non-exited
10229 thread if the target didn't pass a thread-id.
10230 * infrun.c (do_target_wait): Move call to
10231 switch_to_inferior_no_thread to ....
10232 (do_target_wait_1): ... here.
10233
10234 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10235
10236 * debuginfod-support.c: Include defs.h first.
10237
10238 2020-02-28 Tom de Vries <tdevries@suse.de>
10239
10240 * symfile.c (set_initial_language): Use default language for lookup.
10241
10242 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10243
10244 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10245 reader variable, pass `this` to read_cutu_die_from_dwo.
10246
10247 2020-02-27 Aaron Merey <amerey@redhat.com>
10248
10249 * source.c (open_source_file): Check for nullptr when computing
10250 srcpath.
10251
10252 2020-02-27 Tom Tromey <tromey@adacore.com>
10253
10254 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10255 member.
10256 (dwarf2_add_field): Don't update nfields.
10257 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10258
10259 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10260
10261 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10262 abs.
10263
10264 2020-02-26 Tom Tromey <tom@tromey.com>
10265
10266 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10267 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10268 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10269 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10270 per_cu_data.
10271
10272 2020-02-26 Tom Tromey <tom@tromey.com>
10273
10274 * dwarf2/index-write.c (psym_index_map): Change type.
10275 (add_address_entry_worker, write_one_signatured_type)
10276 (recursively_count_psymbols, recursively_write_psymbols)
10277 (class debug_names, psyms_seen_size, write_gdbindex)
10278 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10279
10280 2020-02-26 Aaron Merey <amerey@redhat.com>
10281
10282 * Makefile.in: Handle optional debuginfod support.
10283 * NEWS: Update.
10284 * README: Add --with-debuginfod summary.
10285 * config.in: Regenerate.
10286 * configure: Regenerate.
10287 * configure.ac: Handle optional debuginfod support.
10288 * debuginfod-support.c: debuginfod helper functions.
10289 * debuginfod-support.h: Ditto.
10290 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10291 summary.
10292 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10293 when a dwz file cannot be found.
10294 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10295 debuginfo file cannot be found.
10296 * source.c (open_source_file): Query debuginfod servers when a
10297 source file cannot be found.
10298 * top.c (print_gdb_configuration): Include
10299 --{with,without}-debuginfod in the output.
10300
10301 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10302
10303 * thread.c (thr_try_catch_cmd): Print thread name.
10304
10305 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10306
10307 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10308 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10309 dwarf2_fetch_die_type_sect_off): Move to...
10310 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10311 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10312 dwarf2_fetch_die_type_sect_off): ... here.
10313 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10314 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10315 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10316
10317 2020-02-26 Tom de Vries <tdevries@suse.de>
10318
10319 PR gdb/25603
10320 * symfile.c (set_initial_language): Exit-early if
10321 language_mode == language_mode_manual.
10322
10323 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10324
10325 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10326 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10327 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10328
10329 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10330
10331 * gdbtypes.c (create_array_type_with_stride): Handle negative
10332 array strides.
10333 * valarith.c (value_subscripted_rvalue): Likewise.
10334
10335 2020-02-25 Luis Machado <luis.machado@linaro.org>
10336
10337 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10338
10339 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10340
10341 * loc.h (dwarf2_get_die_type): Move to...
10342 * read.h (dwarf2_get_die_type): ... here.
10343 * read.c (dwarf2_get_die_type): Move doc to header.
10344
10345 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10346
10347 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10348 'gnulib/Makefile.in' to the list.
10349
10350 2020-02-24 Tom Tromey <tom@tromey.com>
10351
10352 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10353 Remove.
10354 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10355 XOBNEWVEC.
10356
10357 2020-02-24 Tom Tromey <tom@tromey.com>
10358
10359 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10360 New method.
10361 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10362 (dw2_do_instantiate_symtab, dw2_get_file_names)
10363 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10364
10365 2020-02-24 Tom Tromey <tom@tromey.com>
10366
10367 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10368 make_scoped_restore.
10369 (dwarf2_psymtab::read_symtab): Don't clear
10370 reading_partial_symbols.
10371
10372 2020-02-24 Tom de Vries <tdevries@suse.de>
10373
10374 PR gdb/25592
10375 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10376
10377 2020-02-24 Tom de Vries <tdevries@suse.de>
10378
10379 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10380 commands layout next/prev/regs.
10381
10382 2020-02-22 Tom Tromey <tom@tromey.com>
10383
10384 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10385 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10386
10387 2020-02-22 Tom Tromey <tom@tromey.com>
10388
10389 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10390
10391 2020-02-22 Tom Tromey <tom@tromey.com>
10392
10393 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10394 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10395 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10396 * tui/tui.c (_initialize_tui): Add usage text.
10397
10398 2020-02-22 Tom Tromey <tom@tromey.com>
10399
10400 * tui/tui-win.c (tui_set_focus_command)
10401 (tui_set_win_height_command): Use error_no_arg.
10402 (_initialize_tui_win): Update help text.
10403 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10404
10405 2020-02-22 Tom Tromey <tom@tromey.com>
10406
10407 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10408 * tui/tui-disasm.h (struct tui_disasm_window)
10409 <display_start_addr>: Declare.
10410 * tui/tui-source.h (struct tui_source_window)
10411 <display_start_addr>: Declare.
10412 * tui/tui-winsource.h (struct tui_source_window_base)
10413 <show_source_line, display_start_addr>: New methods.
10414 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10415 Rename and move to protected section.
10416 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10417 (tui_source_window_base::do_erase_source_content): Update.
10418 (tui_source_window_base::show_source_line): Now a method.
10419 (tui_source_window_base::show_source_content)
10420 (tui_source_window_base::tui_source_window_base)
10421 (tui_source_window_base::rerender)
10422 (tui_source_window_base::refill)
10423 (tui_source_window_base::do_scroll_horizontal)
10424 (tui_source_window_base::set_is_exec_point_at)
10425 (tui_source_window_base::update_breakpoint_info)
10426 (tui_source_window_base::update_exec_info): Update.
10427 * tui/tui-source.c (tui_source_window::set_contents)
10428 (tui_source_window::showing_source_p)
10429 (tui_source_window::do_scroll_vertical)
10430 (tui_source_window::location_matches_p)
10431 (tui_source_window::line_is_displayed): Update.
10432 (tui_source_window::display_start_addr): New method.
10433 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10434 (tui_disasm_window::do_scroll_vertical)
10435 (tui_disasm_window::location_matches_p): Update.
10436 (tui_disasm_window::display_start_addr): New method.
10437
10438 2020-02-22 Tom Tromey <tom@tromey.com>
10439
10440 * NEWS: Add entry for gdb.register_window_type.
10441 * tui/tui-layout.h (window_factory): New typedef.
10442 (tui_register_window): Declare.
10443 * tui/tui-layout.c (saved_tui_windows): New global.
10444 (tui_apply_current_layout): Use it.
10445 (tui_register_window): New function.
10446 * python/python.c (do_start_initialization): Call
10447 gdbpy_initialize_tui.
10448 (python_GdbMethods): Add "register_window_type" function.
10449 * python/python-internal.h (gdbpy_register_tui_window)
10450 (gdbpy_initialize_tui): Declare.
10451 * python/py-tui.c: New file.
10452 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10453
10454 2020-02-22 Tom Tromey <tom@tromey.com>
10455
10456 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10457
10458 2020-02-22 Tom Tromey <tom@tromey.com>
10459
10460 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10461 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10462 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10463 (tui_set_win_focus_to): Move from tui-win.c.
10464
10465 2020-02-22 Tom Tromey <tom@tromey.com>
10466
10467 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10468 functions.
10469 (known_window_types): New global.
10470 (tui_get_window_by_name): Reimplement.
10471 (initialize_known_windows): New function.
10472 (validate_window_name): Rewrite.
10473 (_initialize_tui_layout): Call initialize_known_windows.
10474
10475 2020-02-22 Tom Tromey <tom@tromey.com>
10476
10477 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10478 Remove constants.
10479 * tui/tui-winsource.h (struct tui_source_window_base)
10480 <tui_source_window_base>: Remove parameter.
10481 * tui/tui-winsource.c
10482 (tui_source_window_base::tui_source_window_base): Remove
10483 parameter.
10484 (tui_source_window_base::refill): Update.
10485 * tui/tui-stack.h (struct tui_locator_window)
10486 <tui_locator_window>: Update.
10487 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10488 Default the constructor.
10489 * tui/tui-regs.h (struct tui_data_item_window)
10490 <tui_data_item_window>: Default the constructor.
10491 (struct tui_data_window) <tui_data_window>: Likewise.
10492 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10493 Default the constructor.
10494 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10495 Default the constructor.
10496 <type>: Remove.
10497 (struct tui_win_info) <tui_win_info>: Default the constructor.
10498 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10499 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10500 Default the constructor.
10501
10502 2020-02-22 Tom Tromey <tom@tromey.com>
10503
10504 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10505 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10506 * tui/tui-win.c (tui_resize_all): Don't call
10507 tui_delete_invisible_windows.
10508 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10509 done.
10510 (tui_set_layout): Update.
10511 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10512 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10513 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10514
10515 2020-02-22 Tom Tromey <tom@tromey.com>
10516
10517 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10518 correctly.
10519
10520 2020-02-22 Tom Tromey <tom@tromey.com>
10521
10522 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10523
10524 2020-02-22 Tom Tromey <tom@tromey.com>
10525
10526 * tui/tui-winsource.h (struct tui_source_window_iterator)
10527 <inner_iterator>: New etytypedef.
10528 <tui_source_window_iterator>: Take "end" parameter.
10529 <tui_source_window_iterator>: Take iterator.
10530 <operator*, advance>: Update.
10531 <m_iter>: Change type.
10532 <m_end>: New field.
10533 (struct tui_source_windows) <begin, end>: Update.
10534 * tui/tui-layout.c (tui_windows): New global.
10535 (tui_apply_current_layout): Clear tui_windows.
10536 (tui_layout_window::apply): Update tui_windows.
10537 * tui/tui-data.h (tui_windows): Declare.
10538 (all_tui_windows): Now inline function.
10539 (class tui_window_iterator, struct all_tui_windows): Remove.
10540
10541 2020-02-22 Tom Tromey <tom@tromey.com>
10542
10543 PR tui/17850:
10544 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10545 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10546 "height" argument.
10547 (class tui_layout_window) <get_sizes>: Likewise.
10548 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10549 argument.
10550 <get_sizes>: Add "height" argument.
10551 <m_vertical>: New field.
10552 * tui/tui-layout.c (tui_layout_split::clone): Update.
10553 (tui_layout_split::get_sizes): Add "height" argument.
10554 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10555 (tui_new_layout_command): Parse "-horizontal".
10556 (_initialize_tui_layout): Update help string.
10557 (tui_layout_split::specification): Add "-horizontal" when needed.
10558 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10559 argument.
10560 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10561 New methods.
10562
10563 2020-02-22 Tom Tromey <tom@tromey.com>
10564
10565 * tui/tui-layout.h (enum tui_adjust_result): New.
10566 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10567 (class tui_layout_window) <adjust_size>: Return
10568 tui_adjust_result. Rewrite.
10569 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10570 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10571
10572 2020-02-22 Tom Tromey <tom@tromey.com>
10573
10574 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10575 parameter and return types.
10576 (class tui_layout_base) <specification>: Add "depth".
10577 (class tui_layout_window) <specification>: Add "depth".
10578 (class tui_layout_split) <specification>: Add "depth".
10579 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10580 and return types.
10581 (tui_new_layout_command): Parse sub-layouts.
10582 (_initialize_tui_layout): Update help string.
10583 (tui_layout_window::specification): Add "depth".
10584 (add_layout_command): Update.
10585
10586 2020-02-22 Tom Tromey <tom@tromey.com>
10587
10588 * NEWS: Add "tui new-layout" item.
10589 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10590 Add new-layout command to help text.
10591 (validate_window_name): New function.
10592 (tui_new_layout_command): New function.
10593 (_initialize_tui_layout): Register "new-layout".
10594 (tui_layout_window::specification): New method.
10595 (tui_layout_window::specification): New method.
10596 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10597 method.
10598 (class tui_layout_window) <specification>: New method.
10599 (class tui_layout_split) <specification>: New method.
10600
10601 2020-02-22 Tom Tromey <tom@tromey.com>
10602
10603 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10604 * tui/tui-win.c (window_name_completer): Update comment.
10605 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10606 Declare method.
10607 (class tui_layout_window) <replace_window>: Likewise.
10608 (class tui_layout_split) <replace_window>: Likewise.
10609 (tui_set_layout): Don't declare.
10610 (tui_set_initial_layout): Declare function.
10611 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10612 (asm_regs_layout): New globals.
10613 (tui_current_layout, show_layout): Remove.
10614 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10615 (find_layout, tui_apply_layout): New function.
10616 (layout_completer): Remove.
10617 (tui_next_layout): Reimplement.
10618 (tui_next_layout_command): New function.
10619 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10620 (tui_regs_layout): Reimplement.
10621 (tui_regs_layout_command): New function.
10622 (extract_display_start_addr): Rewrite.
10623 (next_layout, prev_layout): Remove.
10624 (tui_layout_window::replace_window): New method.
10625 (tui_layout_split::replace_window): New method.
10626 (destroy_layout): New function.
10627 (layout_list): New global.
10628 (add_layout_command): New function.
10629 (initialize_layouts): Update.
10630 (tui_layout_command): New function.
10631 (_initialize_tui_layout): Install "layout" commands.
10632 * tui/tui-data.h (enum tui_layout_type): Remove.
10633 (tui_current_layout): Don't declare.
10634
10635 2020-02-22 Tom Tromey <tom@tromey.com>
10636
10637 * tui/tui-regs.c (tui_reg_layout): Remove.
10638 (tui_reg_command): Use tui_regs_layout.
10639 * tui/tui-layout.h (tui_reg_command): Declare.
10640 * tui/tui-layout.c (tui_reg_command): New function.
10641
10642 2020-02-22 Tom Tromey <tom@tromey.com>
10643
10644 * tui/tui.c (tui_rl_delete_other_windows): Call
10645 tui_remove_some_windows.
10646 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10647 Declare method.
10648 (class tui_layout_window) <remove_windows>: New method.
10649 (class tui_layout_split) <remove_windows>: Declare.
10650 (tui_remove_some_windows): Declare.
10651 * tui/tui-layout.c (tui_remove_some_windows): New function.
10652 (tui_layout_split::remove_windows): New method.
10653
10654 2020-02-22 Tom Tromey <tom@tromey.com>
10655
10656 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10657 * tui/tui-layout.h (tui_next_layout): Declare.
10658 * tui/tui-layout.c (tui_next_layout): New function.
10659
10660 2020-02-22 Tom Tromey <tom@tromey.com>
10661
10662 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10663 correct coordinates.
10664
10665 2020-02-22 Tom Tromey <tom@tromey.com>
10666
10667 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10668 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10669 DATA_WIN case.
10670
10671 2020-02-22 Tom Tromey <tom@tromey.com>
10672
10673 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10674 TUI_DISASM_WIN, not tui_win_list.
10675
10676 2020-02-22 Tom Tromey <tom@tromey.com>
10677
10678 * valprint.c (generic_val_print_enum_1)
10679 (val_print_type_code_flags): Style member names.
10680 * rust-lang.c (val_print_struct, rust_print_enum)
10681 (rust_print_struct_def, rust_internal_print_type): Style member
10682 names.
10683 * p-valprint.c (pascal_object_print_value_fields): Style member
10684 names. Only call fprintf_symbol_filtered for static members.
10685 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10686 * f-valprint.c (f_val_print): Style member names.
10687 * f-typeprint.c (f_type_print_base): Style member names.
10688 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10689 call fprintf_symbol_filtered for static members.
10690 (cp_print_class_member): Style member names.
10691 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10692 member names.
10693 * ada-valprint.c (ada_print_scalar): Style enum names.
10694 (ada_val_print_enum): Likewise.
10695 * ada-typeprint.c (print_enum_type): Style enum names.
10696
10697 2020-02-21 Tom Tromey <tom@tromey.com>
10698
10699 * psympriv.h (struct partial_symtab): Update comment.
10700
10701 2020-02-21 Tom Tromey <tromey@adacore.com>
10702
10703 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10704 type is CORE_ADDR.
10705
10706 2020-02-21 Tom de Vries <tdevries@suse.de>
10707
10708 PR gdb/25534
10709 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10710 if dependencies[i]->user != NULL.
10711
10712 2020-02-21 Ali Tamur <tamur@google.com>
10713
10714 * dwarf2/read.c (dwarf2_name): Add null check.
10715
10716 2020-02-20 Tom Tromey <tom@tromey.com>
10717
10718 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10719 ">=", in binary search.
10720 (dwarf2_find_containing_comp_unit): New overload.
10721 (run_test): New self-test.
10722 (_initialize_dwarf2_read): Register new test.
10723
10724 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10725
10726 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10727 * riscv-tdep.h: Likewise.
10728 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10729 rv32-only CSR.
10730 * features/riscv/64bit-csr.xml: Regenerated.
10731
10732 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10733 Tom Tromey <tom@tromey.com>
10734
10735 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10736 of 'fputc_unfiltered'.
10737 (putchar_unfiltered): Call 'fputc_unfiltered'.
10738 (fputc_unfiltered): Call 'fputs_unfiltered'.
10739
10740 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10741
10742 * config.in: Regenerate.
10743 * configure: Regenerate.
10744 * configure.ac: Add --with-python-libdir option.
10745 * main.c: Use WITH_PYTHON_LIBDIR.
10746
10747 2020-02-19 Tom Tromey <tom@tromey.com>
10748
10749 * symtab.c (general_symbol_info::compute_and_set_names): Use
10750 obstack_strndup. Simplify call to symbol_set_demangled_name.
10751
10752 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10753
10754 * dwarf2/read.c (allocate_signatured_type_table,
10755 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10756 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10757 Remove objfile parameter, update all callers.
10758
10759 2020-02-19 Doug Evans <dje@google.com>
10760
10761 PR rust/25535
10762 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10763 rust_enum_variant calculation.
10764
10765 2020-02-19 Tom Tromey <tromey@adacore.com>
10766
10767 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10768
10769 2020-02-19 Tom Tromey <tromey@adacore.com>
10770
10771 * ada-lang.c (cache_symbol): Use obstack_strdup.
10772
10773 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10774
10775 * configure: Regenerate.
10776
10777 2020-02-19 Tom Tromey <tromey@adacore.com>
10778
10779 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10780 NULL check.
10781
10782 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10783
10784 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10785
10786 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10787
10788 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10789 if GDBSERVER is not defined.
10790 (riscv_tdesc_cache): Likewise, also store const target_desc.
10791 (STATIC_IN_GDB): Define.
10792 (riscv_create_target_description): Update declaration with
10793 STATIC_IN_GDB.
10794 (riscv_lookup_target_description): New function, only define if
10795 GDBSERVER is not defined.
10796 * arch/riscv.h (riscv_create_target_description): Declare only
10797 when GDBSERVER is defined.
10798 (riscv_lookup_target_description): New declaration when GDBSERVER
10799 is not defined.
10800 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10801 (riscv_linux_read_features): ...this, and return
10802 riscv_gdbarch_features instead of target_desc.
10803 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10804 (riscv_linux_read_description): Rename to...
10805 (riscv_linux_read_features): ...this.
10806 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10807 Update to use riscv_gdbarch_features and
10808 riscv_lookup_target_description.
10809 * riscv-tdep.c (riscv_find_default_target_description): Use
10810 riscv_lookup_target_description instead of
10811 riscv_create_target_description.
10812
10813 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10814
10815 * valprint.c (generic_val_print_enum_1): When printing a flag
10816 enum with value 0 and there is no enumerator with value 0, print
10817 just "0" instead of "(unknown: 0x0)".
10818
10819 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10820
10821 * valprint.c (generic_val_print_enum_1): Print unknown part of
10822 flag enum in hex.
10823
10824 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10825
10826 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10827 flag enums to contain duplicate enumerators.
10828 * valprint.c (generic_val_print_enum_1): Update comment.
10829
10830 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10831
10832 * dwarf2/read.c: Include "count-one-bits.h".
10833 (update_enumeration_type_from_children): If an enumerator has
10834 multiple bits set, don't treat the enumeration as a "flag enum".
10835 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10836 of flag enums have 0 or 1 bit set.
10837
10838 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10839
10840 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10841 conversion.
10842 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10843 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10844 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10845 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10846 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10847
10848 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10849
10850 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10851
10852 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10853
10854 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10855 displaced_step_closure_up.
10856 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10857 (struct displaced_step_closure_up):
10858 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10859 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10860 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10861 Likewise.
10862 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10863 * gdbarch.c, gdbarch.h: Re-generate.
10864 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10865 displaced_step_closure_up.
10866 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10867 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10868 * infrun.h (displaced_step_closure_up): New type alias.
10869 (struct displaced_step_inferior_state) <step_closure>: Change
10870 type to displaced_step_closure_up.
10871 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10872 displaced_step_closure_up.
10873 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10874
10875 2020-02-14 Tom Tromey <tom@tromey.com>
10876
10877 * minidebug.c (gnu_debug_key): New global.
10878 (find_separate_debug_file_in_section): Use it.
10879
10880 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10881
10882 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10883 std::unique_ptr.
10884 * gdbarch.c: Re-generate.
10885 * gdbarch.h: Re-generate.
10886 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10887 change.
10888 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10889 type to std::unique_ptr.
10890 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10891 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10892 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10893 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10894 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10895 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10896 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10897 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10898 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10899
10900 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10901
10902 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10903 std::unique_ptr.
10904 (displaced_step_clear): Rename to...
10905 (displaced_step_reset): ... this. Just call displaced->reset ().
10906 (displaced_step_clear_cleanup): Rename to...
10907 (displaced_step_reset_cleanup): ... this.
10908 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10909 (displaced_step_fixup): Likewise.
10910 (resume_1): Likewise.
10911 (handle_inferior_event): Restore child's memory before calling
10912 displaced_step_fixup on the parent.
10913 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10914 to std::unique_ptr.
10915 <step_closure>: Change type to std::unique_ptr.
10916
10917 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10918
10919 * arm-tdep.c: Include count-one-bits.h.
10920 (cleanup_block_store_pc): Use count_one_bits.
10921 (cleanup_block_load_pc): Use count_one_bits.
10922 (arm_copy_block_xfer): Use count_one_bits.
10923 (thumb2_copy_block_xfer): Use count_one_bits.
10924 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10925 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10926 (thumb_get_next_pcs_raw): Use count_one_bits.
10927 (arm_get_next_pcs_raw): Use count_one_bits_l.
10928 * arch/arm.c (bitcount): Remove.
10929 * arch/arm.h (bitcount): Remove.
10930
10931 2020-02-14 Tom Tromey <tromey@adacore.com>
10932
10933 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10934 Update.
10935 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10936 * dwarf2/loc.c (call_site_find_chain_1): Return
10937 unique_xmalloc_ptr.
10938 (call_site_find_chain): Likewise.
10939
10940 2020-02-14 Richard Biener <rguenther@suse.de>
10941
10942 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10943 on expression with division operators.
10944
10945 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10946
10947 * MAINTAINERS (Write After Approval): Adding myself.
10948
10949 2020-02-12 Tom Tromey <tom@tromey.com>
10950
10951 * event-loop.c (event_data, gdb_event, event_handler_func):
10952 Remove.
10953
10954 2020-02-12 Tom Tromey <tom@tromey.com>
10955
10956 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10957 (dwarf2_frame_objfile_data): Add comment.
10958 (find_comp_unit, set_comp_unit): New functions.
10959 (dwarf2_frame_find_fde): Use find_comp_unit.
10960 (dwarf2_build_frame_info): Use set_comp_unit.
10961
10962 2020-02-12 Tom Tromey <tom@tromey.com>
10963
10964 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10965 (comp_unit): Don't initialize objfile.
10966 (execute_cfa_program): Add text_offset parameter.
10967 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10968 (dwarf2_frame_cache): Update.
10969 (dwarf2_build_frame_info): Don't set "objfile" member.
10970
10971 2020-02-12 Tom Tromey <tom@tromey.com>
10972
10973 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10974 (decode_frame_entry): Likewise.
10975 (dwarf2_build_frame_info): Update.
10976
10977 2020-02-12 Tom Tromey <tom@tromey.com>
10978
10979 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10980 (decode_frame_entry_1): Use the comp_unit obstack.
10981
10982 2020-02-12 Tom Tromey <tom@tromey.com>
10983
10984 * dwarf2/frame.c (struct comp_unit): Add initializers and
10985 constructor.
10986 (dwarf2_frame_objfile_data): Store a comp_unit.
10987 (dwarf2_frame_find_fde): Update.
10988 (dwarf2_build_frame_info): Use "new".
10989
10990 2020-02-12 Tom Tromey <tom@tromey.com>
10991
10992 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10993 (dwarf2_fde_table): Typedef for std::vector.
10994 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10995 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10996 (decode_frame_entry): Update.
10997 (dwarf2_build_frame_info): Use "new".
10998
10999 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11000
11001 * arm-tdep.c (arm_gdbarch_init): Update.
11002 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11003 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11004 have_neon, is_m>: Change to bool.
11005
11006 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11007
11008 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11009
11010 2020-02-12 Tom Tromey <tom@tromey.com>
11011
11012 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11013
11014 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11015
11016 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11017 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11018
11019 2020-02-11 Tom Tromey <tom@tromey.com>
11020
11021 * psymtab.h: Update comment.
11022
11023 2020-02-11 Tom Tromey <tom@tromey.com>
11024
11025 * gdb_obstack.h (struct auto_obstack): Use
11026 DISABLE_COPY_AND_ASSIGN.
11027
11028 2020-02-11 Tom Tromey <tom@tromey.com>
11029
11030 * dwarf2/frame.h (struct objfile): Don't forward declare.
11031
11032 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11033
11034 * cris-tdep.c (cris_supply_gregset): Change signature to match
11035 what struct regset expects.
11036 (cris_regset): New struct.
11037 (fetch_core_registers): Remove.
11038 (cris_iterate_over_regset_sections): New function.
11039 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11040 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11041
11042 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11043
11044 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11045 registers.
11046
11047 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11048
11049 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11050
11051 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11052
11053 * configure: Re-generate.
11054
11055 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11056
11057 * configure: Re-generate.
11058
11059 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11060
11061 * acinclude: Update warning.m4 path.
11062 * warning.m4: Move to gdbsupport.
11063
11064 2020-02-11 Tom Tromey <tromey@adacore.com>
11065
11066 * remote.c (remote_console_output): Update.
11067 * printcmd.c (printf_command): Update.
11068 * event-loop.c (gdb_wait_for_event): Update.
11069 * linux-nat.c (sigchld_handler): Update.
11070 * remote-sim.c (gdb_os_write_stdout): Update.
11071 (gdb_os_flush_stdout): Update.
11072 (gdb_os_flush_stderr): Update.
11073 (gdb_os_write_stderr): Update.
11074 * exceptions.c (print_exception): Update.
11075 * remote-fileio.c (remote_fileio_func_read): Update.
11076 (remote_fileio_func_write): Update.
11077 * tui/tui.c (tui_enable): Update.
11078 * tui/tui-interp.c (tui_interp::init): Update.
11079 * utils.c (init_page_info): Update.
11080 (putchar_unfiltered, fputc_unfiltered): Update.
11081 (gdb_flush): Update.
11082 (emit_style_escape): Update.
11083 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11084 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11085 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11086 (stderr_file::write): Update.
11087 (stderr_file::puts): Update.
11088 * ui-file.h (ui_file_isatty, ui_file_write)
11089 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11090 (ui_file_puts): Don't declare.
11091
11092 2020-02-10 Tom de Vries <tdevries@suse.de>
11093
11094 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11095 sentinel to char *.
11096
11097 2020-02-09 Tom de Vries <tdevries@suse.de>
11098
11099 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11100 filename if it matches "<artificial>".
11101
11102 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11103
11104 * windows-tdep.c (struct enum_value_name): New struct.
11105 (create_enum): New function.
11106 (windows_get_siginfo_type): Create and use enum types.
11107
11108 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11109
11110 * NEWS: Mention $_siginfo support for Windows.
11111 * windows-nat.c (handle_exception): Set siginfo_er.
11112 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11113 (windows_xfer_siginfo): New function.
11114 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11115 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11116 (init_windows_gdbarch_data): New function.
11117 (get_windows_gdbarch_data): New function.
11118 (windows_get_siginfo_type): New function.
11119 (windows_init_abi): Register windows_get_siginfo_type.
11120 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11121
11122 2020-02-08 Tom Tromey <tom@tromey.com>
11123
11124 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11125 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11126 <keep>: Declare method.
11127 <m_keep>: Remove member.
11128 <~cutu_reader>: Remove.
11129 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11130 (cutu_reader::cutu_reader): Update.
11131 (cutu_reader::keep): Rename from ~cutu_reader.
11132 (process_psymtab_comp_unit, build_type_psymtabs_1)
11133 (process_skeletonless_type_unit, load_partial_comp_unit)
11134 (load_full_comp_unit, dwarf2_read_addr_index)
11135 (read_signatured_type): Update.
11136
11137 2020-02-08 Tom Tromey <tom@tromey.com>
11138
11139 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11140 "want_partial_unit" parameter.
11141 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11142 Inline check for DW_TAG_partial_unit.
11143 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11144
11145 2020-02-08 Tom Tromey <tom@tromey.com>
11146
11147 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11148 read.c.
11149 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11150 read.c.
11151
11152 2020-02-08 Tom Tromey <tom@tromey.com>
11153
11154 * dwarf2/read.c (read_address): Move to comp-unit.c.
11155 (dwarf2_rnglists_process, dwarf2_ranges_process)
11156 (read_attribute_value, dwarf_decode_lines_1)
11157 (var_decode_location, decode_locdesc): Update.
11158 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11159 read.c. Remove "cu" parameter.
11160 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11161 method.
11162
11163 2020-02-08 Tom Tromey <tom@tromey.com>
11164
11165 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11166 (read_indirect_line_string): Update.
11167 * dwarf2/comp-unit.c (read_offset): Remove.
11168 (read_comp_unit_head): Update.
11169 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11170 method.
11171 (read_offset): Don't declare.
11172
11173 2020-02-08 Tom Tromey <tom@tromey.com>
11174
11175 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11176 * dwarf2/read.c (struct comp_unit_head): Move to
11177 dwarf2/comp-unit.h.
11178 (enum class rcuh_kind): Move to comp-unit.h.
11179 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11180 (read_comp_unit_head, error_check_comp_unit_head)
11181 (read_and_check_comp_unit_head): Move to comp-unit.c.
11182 (read_offset, dwarf_unit_type_name): Likewise.
11183 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11184 (cutu_reader::cutu_reader, read_call_site_scope)
11185 (find_partial_die, follow_die_offset): Update.
11186 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11187
11188 2020-02-08 Tom Tromey <tom@tromey.com>
11189
11190 * dwarf2/read.c (read_offset_1): Move to leb.c.
11191 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11192 (dwarf_decode_macro_bytes): Update.
11193 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11194 * dwarf2/leb.h (read_offset): Declare.
11195
11196 2020-02-08 Tom Tromey <tom@tromey.com>
11197
11198 * dwarf2/read.c (dwarf2_section_size): Remove.
11199 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11200 Update.
11201 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11202
11203 2020-02-08 Tom Tromey <tom@tromey.com>
11204
11205 * dwarf2/read.c (read_initial_length): Move to leb.c.
11206 * dwarf2/leb.h (read_initial_length): Declare.
11207 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11208 handle_nonstd parameter.
11209 * dwarf2/frame.c (read_initial_length): Remove.
11210 (decode_frame_entry_1): Update.
11211
11212 2020-02-08 Tom Tromey <tom@tromey.com>
11213
11214 * dwarf2/loc.c (dwarf2_find_location_expression)
11215 (dwarf_evaluate_loc_desc::get_tls_address)
11216 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11217 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11218 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11219 (dwarf2_compile_property_to_c)
11220 (dwarf2_loc_desc_get_symbol_read_needs)
11221 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11222 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11223 (loclist_describe_location, loclist_tracepoint_var_ref)
11224 (loclist_generate_c_location): Update.
11225 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11226 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11227 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11228 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11229 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11230 (dwarf2_per_cu_data::addr_size)
11231 (dwarf2_per_cu_data::ref_addr_size)
11232 (dwarf2_per_cu_data::text_offset)
11233 (dwarf2_per_cu_data::addr_type): Now methods.
11234 (per_cu_header_read_in): Make per_cu "const".
11235 (dwarf2_version): Remove.
11236 (dwarf2_per_cu_data::int_type): Now a method.
11237 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11238 (set_die_type, read_array_type, read_subrange_index_type)
11239 (read_tag_string_type, read_subrange_type): Update.
11240 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11241 offset_size, ref_addr_size, text_offset, addr_type, version,
11242 objfile, int_type, addr_sized_int_type>: Declare methods.
11243
11244 2020-02-08 Tom Tromey <tom@tromey.com>
11245
11246 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11247 Move earlier.
11248
11249 2020-02-08 Tom Tromey <tom@tromey.com>
11250
11251 * dwarf2/read.h (dwarf_line_debug): Declare.
11252 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11253 * dwarf2/read.c: Move line_header code to new files.
11254 (dwarf_line_debug): No longer static.
11255 * dwarf2/line-header.c: New file.
11256 * dwarf2/line-header.h: New file.
11257
11258 2020-02-08 Tom Tromey <tom@tromey.com>
11259
11260 * dwarf2/read.c (struct line_header) <file_full_name,
11261 file_file_name>: Return unique_xmalloc_ptr.
11262 (line_header::file_file_name): Update.
11263 (line_header::file_full_name): Update.
11264 (dw2_get_file_names_reader): Update.
11265 (macro_start_file): Update.
11266
11267 2020-02-08 Tom Tromey <tom@tromey.com>
11268
11269 * dwarf2/read.c (struct line_header) <file_full_name,
11270 file_file_name>: Declare methods.
11271 (dw2_get_file_names_reader): Update.
11272 (file_file_name): Now a method.
11273 (file_full_name): Likewise.
11274 (macro_start_file): Update.
11275
11276 2020-02-08 Tom Tromey <tom@tromey.com>
11277
11278 * dwarf2/read.c (dwarf_always_disassemble)
11279 (show_dwarf_always_disassemble): Move to loc.c.
11280 (_initialize_dwarf2_read): Move "always-disassemble" registration
11281 to loc.c.
11282 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11283 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11284 static.
11285 (show_dwarf_always_disassemble): Move from read.c.
11286 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11287
11288 2020-02-08 Tom Tromey <tom@tromey.com>
11289
11290 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11291 (create_quick_file_names_table): Return htab_up.
11292 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11293 Update.
11294 * dwarf2/read.h (struct dwarf2_per_objfile)
11295 <quick_file_names_table>: Now htab_up.
11296
11297 2020-02-08 Tom Tromey <tom@tromey.com>
11298
11299 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11300
11301 2020-02-08 Tom Tromey <tom@tromey.com>
11302
11303 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11304 Rewrite.
11305 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11306 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11307 (abbrev_table::abbrev_table): No longer inline.
11308 (ABBREV_HASH_SIZE): Remove.
11309 (abbrev_table::m_abbrevs): Now an htab_up.
11310
11311 2020-02-08 Tom Tromey <tom@tromey.com>
11312
11313 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11314 (cutu_reader): Update.
11315 (build_type_psymtabs_1): Update.
11316 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11317 (abbrev_table::alloc_abbrev): Update.
11318 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11319 (abbrev_table::read): New static method, renamed from
11320 abbrev_table_read_table.
11321 (abbrev_table::alloc_abbrev)
11322 (abbrev_table::add_abbrev): Now private.
11323 (abbrev_table::abbrev_table): Now private.
11324 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11325
11326 2020-02-08 Tom Tromey <tom@tromey.com>
11327
11328 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11329 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11330 htab_up.
11331
11332 2020-02-08 Tom Tromey <tom@tromey.com>
11333
11334 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11335 htab_up.
11336 (lookup_dwo_unit_in_dwp): Update.
11337 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11338 on obstack.
11339
11340 2020-02-08 Tom Tromey <tom@tromey.com>
11341
11342 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11343 obstack.
11344
11345 2020-02-08 Tom Tromey <tom@tromey.com>
11346
11347 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11348 line_header_hash.
11349 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11350 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11351 Change type to htab_up.
11352
11353 2020-02-08 Tom Tromey <tom@tromey.com>
11354
11355 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11356 htab_up. Don't allocate on obstack.
11357 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11358 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11359 Change type to htab_up.
11360
11361 2020-02-08 Tom Tromey <tom@tromey.com>
11362
11363 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11364 Change type to htab_up.
11365 * dwarf2/read.c (create_signatured_type_table_from_index)
11366 (create_signatured_type_table_from_debug_names)
11367 (create_all_type_units, add_type_unit)
11368 (lookup_dwo_signatured_type, lookup_signatured_type)
11369 (process_skeletonless_type_unit): Update.
11370 (create_debug_type_hash_table, create_debug_types_hash_table):
11371 Change type of types_htab.
11372 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11373 htab_up. Don't allocate on obstack.
11374 (create_cus_hash_table): Change type of cus_htab parameter.
11375 (struct dwo_file) <cus, tus>: Now htab_up.
11376 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11377 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11378 (queue_and_load_all_dwo_tus): Update.
11379 * dwarf2/index-write.c (write_gdbindex): Update.
11380 (write_debug_names): Update.
11381
11382 2020-02-08 Tom Tromey <tom@tromey.com>
11383
11384 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11385 dwarf2/read.c. Remove "next" member. Add constructor ntad
11386 destructor.
11387 (struct dwarf2_per_objfile) <queue>: New member.
11388 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11389 dwarf2/read.h.
11390 (dwarf2_queue, dwarf2_queue_tail): Remove.
11391 (class dwarf2_queue_guard): Add parameter to constructor. Use
11392 DISABLE_COPY_AND_ASSIGN.
11393 <m_per_objfile>: New member.
11394 <~dwarf2_queue_guard>: Rewrite.
11395 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11396 Update.
11397 (~dwarf2_queue_item): New.
11398
11399 2020-02-08 Tom Tromey <tom@tromey.com>
11400
11401 * dwarf2/read.c (struct die_info) <has_children>: New member.
11402 (dw2_get_file_names_reader): Remove has_children.
11403 (dw2_get_file_names): Update.
11404 (read_cutu_die_from_dwo): Remove has_children.
11405 (cutu_reader::init_tu_and_read_dwo_dies)
11406 (cutu_reader::cutu_reader): Update.
11407 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11408 Remove has_children.
11409 (build_type_psymtabs_1, process_skeletonless_type_unit)
11410 (load_partial_comp_unit, load_full_comp_unit): Update.
11411 (create_dwo_cu_reader): Remove has_children.
11412 (create_cus_hash_table, read_die_and_children): Update.
11413 (read_full_die_1,read_full_die): Remove has_children.
11414 (read_signatured_type): Update.
11415 (class cutu_reader) <has_children>: Remove.
11416
11417 2020-02-08 Tom Tromey <tom@tromey.com>
11418
11419 * dwarf2/expr.c: Rename from dwarf2expr.c.
11420 * dwarf2/expr.h: Rename from dwarf2expr.h.
11421 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11422 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11423 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11424 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11425 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11426 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11427 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11428 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11429 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11430 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11431 * dwarf2/loc.c: Rename from dwarf2loc.c.
11432 * dwarf2/loc.h: Rename from dwarf2loc.h.
11433 * dwarf2/read.c: Rename from dwarf2read.c.
11434 * dwarf2/read.h: Rename from dwarf2read.h.
11435 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11436 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11437 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11438 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11439 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11440 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11441 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11442 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11443 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11444 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11445 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11446 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11447 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11448 Update.
11449 * Makefile.in (COMMON_SFILES): Update.
11450 (HFILES_NO_SRCDIR): Update.
11451
11452 2020-02-08 Tom Tromey <tom@tromey.com>
11453
11454 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11455 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11456
11457 2020-02-08 Tom Tromey <tom@tromey.com>
11458
11459 * dwarf2read.h (struct die_info): Don't declare.
11460
11461 2020-02-08 Tom Tromey <tom@tromey.com>
11462
11463 * dwarf2read.h (die_info_ptr): Remove typedef.
11464
11465 2020-02-08 Tom Tromey <tom@tromey.com>
11466
11467 * dwarf2read.c (read_call_site_scope)
11468 (handle_data_member_location, dwarf2_add_member_fn)
11469 (mark_common_block_symbol_computed, read_common_block)
11470 (attr_to_dynamic_prop, partial_die_info::read)
11471 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11472 (dwarf2_symbol_mark_computed, set_die_type): Update.
11473 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11474 method.
11475 (attr_form_is_block): Don't declare.
11476 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11477
11478 2020-02-08 Tom Tromey <tom@tromey.com>
11479
11480 * dwarf2read.c (dwarf2_find_base_address, )
11481 (read_call_site_scope, rust_containing_type)
11482 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11483 (handle_data_member_location, dwarf2_add_member_fn)
11484 (get_alignment, read_structure_type, process_structure_scope)
11485 (mark_common_block_symbol_computed, read_common_block)
11486 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11487 (partial_die_info::read, read_attribute_value, new_symbol)
11488 (lookup_die_type, dwarf2_get_ref_die_offset)
11489 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11490 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11491 (dwarf2_symbol_mark_computed): Update.
11492 * dwarf2/attribute.h (struct attribute) <value_as_address,
11493 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11494 methods.
11495 (value_as_address, attr_form_is_section_offset)
11496 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11497 * dwarf2/attribute.c (attribute::value_as_address)
11498 (attribute::form_is_section_offset, attribute::form_is_constant)
11499 (attribute::form_is_ref): Now methods.
11500
11501 2020-02-08 Tom Tromey <tom@tromey.com>
11502
11503 * dwarf2read.c (struct attribute, DW_STRING)
11504 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11505 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11506 (attr_form_is_block, attr_form_is_section_offset)
11507 (attr_form_is_constant, attr_form_is_ref): Move.
11508 * dwarf2/attribute.h: New file.
11509 * dwarf2/attribute.c: New file, from dwarf2read.c.
11510 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11511
11512 2020-02-08 Tom Tromey <tom@tromey.com>
11513
11514 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11515 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11516 Move.
11517 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11518 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11519 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11520 abbrev.c.
11521 * dwarf2/abbrev.h: New file.
11522 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11523 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11524
11525 2020-02-08 Tom Tromey <tom@tromey.com>
11526
11527 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11528 (dwarf2_section_size, dwarf2_get_section_info)
11529 (create_signatured_type_table_from_debug_names)
11530 (create_addrmap_from_aranges, read_debug_names_from_section)
11531 (get_gdb_index_contents_from_section, read_comp_unit_head)
11532 (error_check_comp_unit_head, read_abbrev_offset)
11533 (create_debug_type_hash_table, init_cu_die_reader)
11534 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11535 (read_comp_units_from_section, create_cus_hash_table)
11536 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11537 (create_dwp_v2_section, dwarf2_rnglists_process)
11538 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11539 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11540 (read_indirect_string_from_dwz, read_addr_index_1)
11541 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11542 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11543 (fill_in_loclist_baton): Update.
11544 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11545 get_containing_section, get_bfd_owner, get_bfd_section,
11546 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11547 (dwarf2_read_section, get_section_name, get_section_file_name)
11548 (get_containing_section, get_section_bfd_owner)
11549 (get_section_bfd_section, get_section_name, get_section_file_name)
11550 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11551 declare.
11552 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11553 (dwarf2_section_info::get_bfd_owner)
11554 (dwarf2_section_info::get_bfd_section)
11555 (dwarf2_section_info::get_name)
11556 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11557 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11558 (dwarf2_section_info::read): Now methods.
11559 * dwarf-index-write.c (class debug_names): Update.
11560
11561 2020-02-08 Tom Tromey <tom@tromey.com>
11562
11563 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11564 Move to dwarf2/section.h.
11565 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11566 (get_section_bfd_section, get_section_name)
11567 (get_section_file_name, get_section_id, get_section_flags)
11568 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11569 dwarf2/section.c.
11570 * dwarf2/section.h: New file.
11571 * dwarf2/section.c: New file, from dwarf2read.c.
11572 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11573
11574 2020-02-08 Tom Tromey <tom@tromey.com>
11575
11576 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11577 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11578 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11579 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11580 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11581 * dwarf2/leb.h: New file, from dwarf2read.c.
11582 * dwarf2/leb.c: New file, from dwarf2read.c.
11583 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11584 Remove.
11585 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11586 (COMMON_SFILES): Add dwarf2/leb.c.
11587
11588 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11589
11590 GDB 9.1 released.
11591
11592 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11593
11594 PR gdb/25190:
11595 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11596 * gdb/remote.c (remote_console_output): Update.
11597 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11598 (ui_file_puts): ...this.
11599 * gdb/ui-file.h (ui_file_puts): Add declaration.
11600 * gdb/utils.c (emit_style_escape): Update.
11601 (flush_wrap_buffer): Update.
11602 (fputs_maybe_filtered): Update.
11603 (fputs_unfiltered): Add function.
11604
11605 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11606
11607 * gdb/event-loop.c (gdb_wait_for_event): Update.
11608 * gdb/printcmd.c (printf_command): Update.
11609 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11610 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11611 (gdb_os_flush_stderr): Update.
11612 * gdb/remote.c (remote_console_output): Update.
11613 * gdb/ui-file.c (gdb_flush): Rename to...
11614 (ui_file_flush): ...this.
11615 (stderr_file::write): Update.
11616 (stderr_file::puts): Update.
11617 * gdb/ui-file.h (gdb_flush): Rename to...
11618 (ui_file_flush): ...this.
11619 * gdb/utils.c (gdb_flush): Add function.
11620 * gdb/utils.h (gdb_flush): Add declaration.
11621
11622 2020-02-07 Tom Tromey <tromey@adacore.com>
11623
11624 PR breakpoints/24915:
11625 * source.c (find_and_open_source): Do not check basenames_may_differ.
11626
11627 2020-02-07 Tom Tromey <tom@tromey.com>
11628
11629 * README: Update gdbserver documentation.
11630 * gdbserver: Move to top level.
11631 * configure.tgt (build_gdbserver): Remove.
11632 * configure.ac: Remove --enable-gdbserver.
11633 * configure: Rebuild.
11634 * Makefile.in (distclean): Don't mention gdbserver.
11635
11636 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11637
11638 * source-cache.c (source_cache::ensure): Surround
11639 get_plain_source_lines with a try/catch.
11640 (source_cache::get_line_charpos): Get rid of try/catch
11641 and only check for the return value of "ensure".
11642 * tui/tui-source.c (tui_source_window::set_contents):
11643 Simplify "nlines" calculation.
11644
11645 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11646
11647 * MAINTAINERS (Write After Approval): Add myself.
11648
11649 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11650
11651 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11652 function call.
11653
11654 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11655
11656 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11657
11658 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11659
11660 * nat/riscv-linux-tdesc.h: New file.
11661 * nat/riscv-linux-tdesc.c: New file, taking code from...
11662 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11663 ... here.
11664 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11665 NATDEPFILES.
11666
11667 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11668
11669 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11670 we don't set the fake simulator ptid to the null_ptid.
11671
11672 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11673
11674 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11675 * gdbthread.h (class thread_info) <resumed>: Likewise.
11676 * infrun.c (resume_1): Likewise.
11677 (proceed): Likewise.
11678 (infrun_thread_stop_requested): Likewise.
11679 (stop_all_threads): Likewise.
11680 (handle_inferior_event): Likewise.
11681 (restart_threads): Likewise.
11682 (finish_step_over): Likewise.
11683 (keep_going_stepped_thread): Likewise.
11684 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11685 (linux_handle_extended_wait): Likewise.
11686 * record-btrace.c (get_thread_current_frame_id): Likewise.
11687 * record-full.c (record_full_wait_1): Likewise.
11688 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11689 * target.c (target_resume): Likewise.
11690 * thread.c (set_running_thread): Likewise.
11691
11692 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11693
11694 * f-valprint.c (f77_print_array_1): Changed datatype of index
11695 variable to LONGEST from int to enable it to contain bound
11696 values correctly.
11697
11698 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11699
11700 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11701 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11702 offsets according to FLEN determined.
11703 (riscv_linux_nat_target::read_description): Determine FLEN
11704 dynamically.
11705 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11706 according to FLEN determined.
11707 (riscv_linux_nat_target::store_registers): Likewise.
11708
11709 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11710
11711 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11712 when reg->group is empty and reggroup is not.
11713
11714 2020-01-31 Tom Tromey <tromey@adacore.com>
11715
11716 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11717 Call beneath target's mourn_inferior after unpushing.
11718
11719 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11720
11721 PR tui/9765
11722 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11723 have enough lines to fill the screen, still return the lowest
11724 address we found.
11725
11726 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11727
11728 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11729 '-', '<', and '>' commands.
11730
11731 2020-01-29 Pedro Alves <palves@redhat.com>
11732 Sergio Durigan Junior <sergiodj@redhat.com>
11733
11734 * infcmd.c (construct_inferior_arguments): Assert that
11735 'argc' is greater than 0.
11736
11737 2020-01-29 Luis Machado <luis.machado@linaro.org>
11738
11739 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11740 (BRK_INSN_MASK): Define to 0xd4200000.
11741 (aarch64_program_breakpoint_here_p): New function.
11742 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11743 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11744 breakpoint.c.
11745 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11746 breakpoint.h
11747 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11748 call gdbarch_program_breakpoint_here_p.
11749 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11750 default_program_breakpoint_here_p, changed return type to bool and
11751 simplified.
11752 * breakpoint.h (program_breakpoint_here): Moved prototype to
11753 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11754 return type to bool.
11755 * gdbarch.c: Regenerate.
11756 * gdbarch.h: Regenerate.
11757 * gdbarch.sh (program_breakpoint_here_p): New method.
11758 * infrun.c (handle_signal_stop): Call
11759 gdbarch_program_breakpoint_here_p.
11760
11761 2020-01-26 Tom Tromey <tom@tromey.com>
11762
11763 * ctfread.c (struct ctf_fp_info): Reindent.
11764 (_initialize_ctfread): Remove.
11765
11766 2020-01-26 Tom Tromey <tom@tromey.com>
11767
11768 * psymtab.c (partial_map_expand_apply)
11769 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11770 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11771 (psym_print_stats, psym_expand_symtabs_for_function)
11772 (psym_map_symbol_filenames, psym_map_matching_symbols)
11773 (psym_expand_symtabs_matching)
11774 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11775 (maintenance_check_psymtabs): Use new methods.
11776 * psympriv.h (struct partial_symtab) <readin_p,
11777 get_compunit_symtab>: New methods.
11778 <readin, compunit_symtab>: Remove members.
11779 (struct standard_psymtab): New.
11780 (struct legacy_psymtab): Derive from standard_psymtab.
11781 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11782 standard_psymtab.
11783 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11784
11785 2020-01-26 Tom Tromey <tom@tromey.com>
11786
11787 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11788 read_dependencies. Add assert.
11789 * psymtab.c (partial_symtab::read_dependencies): New method.
11790 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11791 method.
11792 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11793 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11794 read_dependencies.
11795 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11796 Add assert.
11797
11798 2020-01-26 Tom Tromey <tom@tromey.com>
11799
11800 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11801 Call expand_psymtab.
11802 (xcoff_read_symtab): Call expand_psymtab.
11803 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11804 legacy_expand_psymtab.
11805 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11806 method.
11807 (struct legacy_psymtab) <expand_psymtab>: Implement.
11808 <legacy_expand_psymtab>: New member.
11809 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11810 (parse_partial_symbols): Set legacy_expand_psymtab.
11811 (psymtab_to_symtab_1): Change argument order. Call
11812 expand_psymtab.
11813 (new_psymtab): Set legacy_expand_psymtab.
11814 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11815 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11816 expand_psymtab.
11817 (dwarf2_psymtab::expand_psymtab): Rename from
11818 psymtab_to_symtab_1. Call expand_psymtab.
11819 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11820 (dbx_end_psymtab): Likewise.
11821 (dbx_psymtab_to_symtab_1): Change argument order. Call
11822 expand_psymtab.
11823 (dbx_read_symtab): Call expand_psymtab.
11824 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11825 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11826 (ctf_psymtab::read_symtab): Call expand_psymtab.
11827
11828 2020-01-26 Tom Tromey <tom@tromey.com>
11829
11830 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11831 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11832 messages.
11833 * mdebugread.c (mdebug_read_symtab): Remove prints.
11834 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11835 assert.
11836 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11837
11838 2020-01-26 Tom Tromey <tom@tromey.com>
11839
11840 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11841 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11842 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11843 legacy_symtab.
11844 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11845 * psymtab.c (psymtab_to_symtab): Call method.
11846 (dump_psymtab): Update.
11847 * psympriv.h (struct partial_symtab): Add virtual destructor.
11848 <read_symtab>: New method.
11849 (struct legacy_symtab): New.
11850 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11851 (struct pst_map) <pst>: Now a legacy_psymtab.
11852 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11853 (new_psymtab): Use legacy_psymtab.
11854 * dwarf2read.h (struct dwarf2_psymtab): New.
11855 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11856 * dwarf2read.c (dwarf2_create_include_psymtab)
11857 (dwarf2_build_include_psymtabs, create_type_unit_group)
11858 (create_partial_symtab, process_psymtab_comp_unit_reader)
11859 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11860 (set_partial_user): Use dwarf2_psymtab.
11861 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11862 (psymtab_to_symtab_1, process_full_comp_unit)
11863 (process_full_type_unit, dwarf2_ranges_read)
11864 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11865 (dwarf_decode_lines): Use dwarf2_psymtab.
11866 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11867 (add_address_entry_worker, write_one_signatured_type)
11868 (recursively_count_psymbols, recursively_write_psymbols)
11869 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11870 (write_debug_names): Likewise.
11871 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11872 <pst>: Now a legacy_psymtab.
11873 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11874 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11875 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11876 * ctfread.c (struct ctf_psymtab): New.
11877 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11878 ctf_psymtab.
11879 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11880 (create_partial_symtab): Return a ctf_psymtab.
11881 (scan_partial_symbols): Update.
11882
11883 2020-01-26 Tom Tromey <tom@tromey.com>
11884
11885 * xcoffread.c (xcoff_start_psymtab): Use new.
11886 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11887 renamed from start_psymtab_common.
11888 * psympriv.h (struct partial_symtab): Add new constructor.
11889 (start_psymtab_common): Don't declare.
11890 * mdebugread.c (parse_partial_symbols): Use new.
11891 * dwarf2read.c (create_partial_symtab): Use new.
11892 * dbxread.c (start_psymtab): Use new.
11893 * ctfread.c (create_partial_symtab): Use new.
11894
11895 2020-01-26 Tom Tromey <tom@tromey.com>
11896
11897 * xcoffread.c (xcoff_end_psymtab): Use new.
11898 * psymtab.c (start_psymtab_common): Use new.
11899 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11900 Update.
11901 * psympriv.h (struct partial_symtab): Add parameters to
11902 constructor. Don't inline.
11903 (allocate_psymtab): Don't declare.
11904 * mdebugread.c (new_psymtab): Use new.
11905 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11906 * dbxread.c (dbx_end_psymtab): Use new.
11907
11908 2020-01-26 Tom Tromey <tom@tromey.com>
11909
11910 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11911 allocate_psymtab. Update documentation.
11912 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11913 allocate_psymtab. Do not use new.
11914 (allocate_psymtab): Use new. Update.
11915
11916 2020-01-26 Tom Tromey <tom@tromey.com>
11917
11918 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11919 * psymtab.c (psym_print_stats): Update.
11920 * psympriv.h (struct partial_symtab) <readin,
11921 psymtabs_addrmap_supported, anonymous>: Now bool.
11922 * mdebugread.c (psymtab_to_symtab_1): Update.
11923 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11924 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11925 (process_full_comp_unit, process_full_type_unit): Update.
11926 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11927 * ctfread.c (psymtab_to_symtab): Update.
11928
11929 2020-01-26 Tom Tromey <tom@tromey.com>
11930
11931 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11932 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11933 * psymtab.c (psymtab_storage): Delete psymtabs.
11934 (psymtab_storage::allocate_psymtab): Use new.
11935 (psymtab_storage::discard_psymtab): Use delete.
11936 * psympriv.h (struct partial_symtab): Add constructor and
11937 initializers.
11938
11939 2020-01-26 Tom Tromey <tom@tromey.com>
11940
11941 * machoread.c: Do not include psympriv.h.
11942
11943 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11944
11945 * NEWS: Mention the new option and the set/show commands.
11946
11947 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11948
11949 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11950 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11951 (validate_exec_file): New variables, enums, functions.
11952 (exec_file_locate_attach, print_section_info): Style the filenames.
11953 (_initialize_exec): Install show_exec_file_mismatch_command and
11954 set_exec_file_mismatch_command.
11955 * gdbcore.h (validate_exec_file): Declare.
11956 * infcmd.c (attach_command): Call validate_exec_file.
11957 * remote.c ( remote_target::remote_add_inferior): Likewise.
11958
11959 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11960
11961 * frame.c (find_frame_sal): Move call to get_next_frame into more
11962 inner scope.
11963 * inline-frame.c (inilne_state) <inline_state>: Update argument
11964 types.
11965 (inilne_state) <skipped_symbol>: Rename to...
11966 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11967 (skip_inline_frames): Build vector of skipped symbols and use this
11968 to reate the inline_state.
11969 (inline_skipped_symbol): Add a comment and some assertions, fetch
11970 skipped symbol from the list.
11971
11972 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11973
11974 * buildsym.c (lte_is_less_than): Delete.
11975 (buildsym_compunit::end_symtab_with_blockvector): Create local
11976 lambda function to sort line table entries, and use
11977 std::stable_sort instead of std::sort.
11978 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11979 markers when looking for a previous line.
11980
11981 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11982
11983 * dwarf2read.c (lnp_state_machine::record_line): Include
11984 end_sequence parameter in debug print out. Record the line if we
11985 are at an end_sequence marker even if it's not the start of a
11986 statement.
11987 * symmisc.c (maintenance_print_one_line_table): Print end of
11988 sequence markers with 'END' not '0'.
11989
11990 2020-01-24 Pedro Alves <palves@redhat.com>
11991
11992 PR gdb/25410
11993 * thread.c (scoped_restore_current_thread::restore): Use
11994 switch_to_inferior_no_thread.
11995 * exec.c: Include "progspace-and-thread.h".
11996 (add_target_sections, remove_target_sections):
11997 scoped_restore_current_pspace_and_thread instead of
11998 scoped_restore_current_thread.
11999 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12000 and aspace to the inferior before calling clone_program_space.
12001 Remove stale comment.
12002
12003 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12004
12005 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12006 (arm_netbsd_nat_target::fetch_registers): ...this.
12007 (arm_nbsd_nat_target::store_registers): Rename to...
12008 (arm_netbsd_nat_target::store_registers): ...this.
12009
12010 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12011
12012 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12013 register_t.
12014
12015 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12016
12017 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12018 Update comment.
12019 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12020 Likewise.
12021 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12022 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12023 the correct replacement (iterate_over_regset_sections).
12024 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12025 Update comment.
12026
12027 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12028
12029 PR gdb/23718
12030 * gdb/python/python.c (execute_gdb_command): Call
12031 async_enable_stdin in catch block.
12032
12033 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12034
12035 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12036 SWITCH_THRU_ALL_UIS.
12037
12038 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12039
12040 PR tui/9765
12041 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12042 comment, add extra parameter, and update to store previous symbol
12043 when appropriate.
12044 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12045 add extra parameter.
12046 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12047 remove unneeded parameter, add try/catch around gdb_print_insn,
12048 rewrite to add items to asm_lines vector.
12049 (tui_find_backward_disassembly_start_address): New function.
12050 (tui_find_disassembly_address): Updated throughout.
12051 (tui_disasm_window::set_contents): Update for changes to
12052 tui_disassemble.
12053 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12054 number of lines to scroll.
12055
12056 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12057
12058 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12059 (SECT_OFF_DATA): Likewise.
12060 (SECT_OFF_RODATA): Likewise.
12061 (SECT_OFF_TEXT): Likewise.
12062 (SECT_OFF_BSS): Likewise.
12063 (struct objfile) <text_section_offset, data_section_offset>: New
12064 methods.
12065 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12066 objfile::text_section_offset.
12067 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12068 * coffread.c (coff_symtab_read): Likewise.
12069 (enter_linenos): Likewise.
12070 (process_coff_symbol): Likewise.
12071 * ctfread.c (get_objfile_text_range): Likewise.
12072 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12073 Use objfile::data_section_offset.
12074 * dwarf2-frame.c (execute_cfa_program): Use
12075 objfile::text_section_offset.
12076 (dwarf2_frame_find_fde): Likewise.
12077 * dwarf2read.c (create_addrmap_from_index): Likewise.
12078 (create_addrmap_from_aranges): Likewise.
12079 (dw2_find_pc_sect_compunit_symtab): Likewise.
12080 (process_psymtab_comp_unit_reader): Likewise.
12081 (add_partial_symbol): Likewise.
12082 (add_partial_subprogram): Likewise.
12083 (process_full_comp_unit): Likewise.
12084 (read_file_scope): Likewise.
12085 (read_func_scope): Likewise.
12086 (read_lexical_block_scope): Likewise.
12087 (read_call_site_scope): Likewise.
12088 (dwarf2_rnglists_process): Likewise.
12089 (dwarf2_ranges_process): Likewise.
12090 (dwarf2_ranges_read): Likewise.
12091 (dwarf_decode_lines_1): Likewise.
12092 (new_symbol): Likewise.
12093 (dwarf2_fetch_die_loc_sect_off): Likewise.
12094 (dwarf2_per_cu_text_offset): Likewise.
12095 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12096 * hppa-tdep.c (read_unwind_info): Likewise.
12097 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12098 * psympriv.h (struct partial_symtab): Likewise.
12099 * psymtab.c (find_pc_sect_psymtab): Likewise.
12100 * solib-svr4.c (enable_break): Likewise.
12101 * stap-probe.c (relocate_address): Use
12102 objfile::data_section_offset.
12103 * xcoffread.c (enter_line_range): Use
12104 objfile::text_section_offset.
12105 (read_xcoff_symtab): Likewise.
12106
12107 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12108
12109 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12110 declaration to narrower scopes.
12111
12112 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12113
12114 * darwin-nat.h (struct darwin_exception_msg, enum
12115 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12116 Move up.
12117 (class darwin_nat_target) <wait_1, check_new_threads,
12118 decode_exception_message, decode_message, stop_inferior,
12119 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12120 * darwin-nat.c (darwin_check_new_threads): Rename to...
12121 (darwin_nat_target::check_new_threads): ... this.
12122 (darwin_suspend_inferior_it): Remove.
12123 (darwin_decode_exception_message): Rename to...
12124 (darwin_nat_target::decode_exception_message): ... this.
12125 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12126 (darwin_decode_message): Rename to...
12127 (darwin_nat_target::decode_message): ... this.
12128 (cancel_breakpoint): Rename to...
12129 (darwin_nat_target::cancel_breakpoint): ... this.
12130 (darwin_wait): Rename to...
12131 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12132 instead of iterate_over_inferiors.
12133 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12134 (darwin_stop_inferior): Rename to...
12135 (darwin_nat_target::stop_inferior): ... this.
12136 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12137 (darwin_init_thread_list): Rename to...
12138 (darwin_nat_target::init_thread_list): ... this.
12139 (darwin_ptrace_him): Rename to...
12140 (darwin_nat_target::ptrace_him): ... this.
12141 (darwin_nat_target::create_inferior): Pass lambda function to
12142 fork_inferior.
12143 (darwin_nat_target::detach): Call stop_inferior instead of
12144 darwin_stop_inferior.
12145 * fork-inferior.h (fork_inferior): Change init_trace_fun
12146 parameter to gdb::function_view.
12147 * fork-inferior.c (fork_inferior): Likewise.
12148
12149 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12150
12151 * i386-cygwin-tdep.c (core_process_module_section): Update.
12152 * windows-nat.c (struct lm_info_windows): Add text_offset.
12153 (windows_xfer_shared_libraries): Update.
12154 * windows-tdep.c (windows_xfer_shared_library):
12155 Add text_offset_cached argument.
12156 * windows-tdep.h (windows_xfer_shared_library): Update.
12157
12158 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12159
12160 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12161
12162 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12163
12164 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12165 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12166 replace with range-based for.
12167 (gdbsim_interrupt_inferior): Remove.
12168 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12169 with a range-based for. Inline code from
12170 gdbsim_interrupt_inferior.
12171
12172 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12173
12174 * infrun.c (proceed): Fix indentation.
12175
12176 2020-01-21 Tom Tromey <tromey@adacore.com>
12177
12178 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12179 * python/python.c (python_extension_ops): Update.
12180 (gdbpy_colorize): New function.
12181 * python/lib/gdb/__init__.py (colorize): New function.
12182 * extension.h (ext_lang_colorize): Declare.
12183 * extension.c (ext_lang_colorize): New function.
12184 * extension-priv.h (struct extension_language_ops) <colorize>: New
12185 member.
12186 * cli/cli-style.c (_initialize_cli_style): Update help text.
12187
12188 2020-01-21 Luis Machado <luis.machado@linaro.org>
12189
12190 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12191 <cond>: Change type to bool.
12192 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12193 (aarch64_displaced_step_cb): Likewise.
12194 (aarch64_displaced_step_tb): Likewise.
12195
12196 2020-01-21 Luis Machado <luis.machado@linaro.org>
12197
12198 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12199 output.
12200
12201 2020-01-21 Luis Machado <luis.machado@linaro.org>
12202
12203 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12204 <pc_adjust>: Adjust the documentation.
12205 (aarch64_displaced_step_fixup): Check if PC really moved before
12206 adjusting it.
12207
12208 2020-01-19 Tom Tromey <tom@tromey.com>
12209
12210 * disasm.c (~gdb_disassembler): New destructor.
12211 (gdb_buffered_insn_length): Call disassemble_free_target.
12212 * disasm.h (class gdb_disassembler): Declare destructor. Use
12213 DISABLE_COPY_AND_ASSIGN.
12214
12215 2020-01-19 Tom Tromey <tom@tromey.com>
12216
12217 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12218 (die_reader_func_ftype): Remove.
12219 (cutu_reader): New class.
12220 (dw2_get_file_names_reader): Remove "data" parameter.
12221 (dw2_get_file_names): Use cutu_reader.
12222 (create_debug_type_hash_table): Update.
12223 (read_cutu_die_from_dwo): Update comment.
12224 (lookup_dwo_unit): Add dwo_name parameter.
12225 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12226 die_reader_func_ftype and data parameters.
12227 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12228 Remove die_reader_func_ftype and data parameters.
12229 (~cutu_reader): New; from init_cutu_and_read_dies.
12230 (cutu_reader::cutu_reader): Rename from
12231 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12232 and data parameters.
12233 (init_cutu_and_read_dies_simple): Remove.
12234 (struct process_psymtab_comp_unit_data): Remove.
12235 (process_psymtab_comp_unit_reader): Remove data parameter; add
12236 want_partial_unit and pretend_language parameters.
12237 (process_psymtab_comp_unit): Use cutu_reader.
12238 (build_type_psymtabs_reader): Remove data parameter.
12239 (build_type_psymtabs_1): Use cutu_reader.
12240 (process_skeletonless_type_unit): Likewise.
12241 (load_partial_comp_unit_reader): Remove.
12242 (load_partial_comp_unit): Use cutu_reader.
12243 (load_full_comp_unit_reader): Remove.
12244 (load_full_comp_unit): Use cutu_reader.
12245 (struct create_dwo_cu_data): Remove.
12246 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12247 dwo_unit parameters.
12248 (create_cus_hash_table): Use cutu_reader.
12249 (struct dwarf2_read_addr_index_data): Remove.
12250 (dwarf2_read_addr_index_reader): Remove.
12251 (dwarf2_read_addr_index): Use cutu_reader.
12252 (read_signatured_type_reader): Remove.
12253 (read_signatured_type): Use cutu_reader.
12254
12255 2020-01-19 Tom Tromey <tom@tromey.com>
12256
12257 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12258 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12259 (tui_wrefresh): Declare.
12260 * tui/tui-wingeneral.c (suppress_output): New global.
12261 (tui_suppress_output, ~tui_suppress_output): New constructor and
12262 destructor.
12263 (tui_wrefresh): New function.
12264 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12265 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12266 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12267 method.
12268 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12269 tui_wrefresh.
12270 (tui_data_window::no_refresh): New method.
12271 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12272 (tui_reg_command): Use tui_suppress_output
12273 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12274 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12275 method.
12276 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12277
12278 2020-01-19 Tom Tromey <tom@tromey.com>
12279
12280 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12281 Handle case where symtab is null.
12282
12283 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12284
12285 * linux-fork.c (one_fork_p): Simplify.
12286
12287 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12288
12289 * top.c (struct qt_args): Remove.
12290 (kill_or_detach): Change return type to void, replace `void *`
12291 parameter with a proper one.
12292 (print_inferior_quit_action): Likewise.
12293 (quit_confirm): Use range-based for loop to iterate over inferiors.
12294 (quit_force): Likewise.
12295
12296 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12297
12298 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12299 `void *` parameter with proper parameters.
12300 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12301 (print_one_inferior): Change return type to void, replace `void *`
12302 parameter with proper parameters.
12303 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12304 inferiors.
12305 (get_other_inferior): Remove.
12306 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12307 inferiors.
12308
12309 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12310
12311 * mi/mi-interp.c (report_initial_inferior): Remove.
12312 (mi_interp::init): Use range-based for to iterate over inferiors.
12313
12314 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12315
12316 * python/py-inferior.c (build_inferior_list): Remove.
12317 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12318
12319 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12320
12321 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12322 (btrace_stitch_trace): Likewise.
12323 * charset.c (intermediate_encoding): Likewise (vaild).
12324 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12325 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12326 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12327
12328 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12329
12330 * windows-tdep.c (windows_get_tlb_type):
12331 Add rtl_user_process_parameters type.
12332
12333 2020-01-16 Pedro Alves <palves@redhat.com>
12334 Norbert Lange <nolange79@gmail.com>
12335
12336 PR build/24805
12337 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12338 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12339 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12340 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12341 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12342 (ps_plog): Redeclare exported functions with default visibility.
12343
12344 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12345
12346 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12347 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12348
12349 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12350
12351 * infcmd.c (post_create_inferior): Use get_thread_regcache
12352 instead of get_current_regcache.
12353
12354 2020-01-14 Tom Tromey <tom@tromey.com>
12355
12356 PR symtab/12535:
12357 * python/python.c (gdbpy_decode_line): Treat empty string the same
12358 as no argument.
12359
12360 2020-01-14 Tom Tromey <tom@tromey.com>
12361
12362 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12363
12364 2020-01-14 Tom Tromey <tom@tromey.com>
12365
12366 * nat/linux-btrace.c: Don't include <config.h>.
12367 * nat/linux-ptrace.c: Don't include <config.h>.
12368 * nat/x86-linux-dregs.c: Don't include <config.h>.
12369
12370 2020-01-14 Tom Tromey <tom@tromey.com>
12371
12372 * configure: Rebuild.
12373 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12374
12375 2020-01-14 Tom Tromey <tom@tromey.com>
12376
12377 * nat/x86-linux-dregs.c: Include configh.h.
12378 * nat/linux-ptrace.c: Include configh.h.
12379 * nat/linux-btrace.c: Include configh.h.
12380 * defs.h: Include config.h, bfd.h.
12381 * configure.ac: Don't source common.host.
12382 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12383 * configure: Rebuild.
12384 * acinclude.m4: Update path.
12385 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12386 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12387 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12388 (CLIBS): Add LIBSUPPORT.
12389 (CDEPS): Likewise.
12390 (COMMON_SFILES): Remove gdbsupport files.
12391 (HFILES_NO_SRCDIR): Likewise.
12392 (stamp-version): Update path to create-version.sh.
12393 (ALLDEPFILES): Remove gdbsupport files.
12394
12395 2020-01-14 Tom Tromey <tom@tromey.com>
12396
12397 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12398 USE_WIN32API when needed.
12399 * configure.ac (USE_WIN32API): Don't define.
12400 (WIN32LIBS): Use WIN32APILIBS.
12401 * configure: Rebuild.
12402
12403 2020-01-14 Tom Tromey <tom@tromey.com>
12404
12405 * configure: Rebuild.
12406 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12407
12408 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12409
12410 * skip.c (skip_function_command): Make skip w/o arguments use the
12411 name of the inlined function if pc is inside any inlined function.
12412
12413 2020-01-14 Luis Machado <luis.machado@linaro.org>
12414
12415 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12416 * infrun.c (resume_1): Likewise.
12417 (handle_inferior_event): Remove stale comment.
12418 * linux-nat.c (linux_nat_target::resume): Update comments.
12419 (save_stop_reason): Likewise.
12420 (linux_nat_filter_event): Likewise.
12421 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12422
12423 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12424
12425 * elfread.c (record_minimal_symbol): Set section index to 0 for
12426 non-allocatable sections.
12427
12428
12429 2020-01-13 Ali Tamur <tamur@google.com>
12430
12431 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12432 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12433 to gdb::optional. Update comments.
12434 (dwo_file): Update comments.
12435 (read_attribute): Update API to take an additional out parameter,
12436 need_reprocess. This is used to mark attributes that need other
12437 attributes (e.g. str_offsets_base) for correct computation which may not
12438 have been read yet.
12439 (read_attribute_reprocess): New function declaration.
12440 (read_addr_index): Likewise.
12441 (read_dwo_str_index): Likewise.
12442 (read_stub_str_index): Likewise.
12443 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12444 (lookup_addr_base): New function definition.
12445 (lookup_ranges_base): Likewise.
12446 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12447 lookup_ranges_base.
12448 (init_cutu_and_read_dies): Update comments.
12449 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12450 unit. This is used to inherit parent's str_offsets_base and addr_base.
12451 Update comments.
12452 (init_cutu_and_read_dies_simple): Reflect API changes.
12453 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12454 (create_cus_hash_table): Change API to take parent compile unit.
12455 Reflect API changes.
12456 (open_and_init_dwo_file): Reflect API changes.
12457 (dwarf2_get_pc_bounds): Update comments.
12458 (dwarf2_record_block_ranges): Likewise.
12459 (read_full_die_1): Change implementation to reprocess attributes that
12460 need str_offsets_base and addr_base.
12461 (partial_die_info::read): Likewise.
12462 (read_attribute_reprocess): New function definition.
12463 (read_attribute_value): Change API to take an additional out parameter,
12464 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12465 when a non-dwo compile unit has index based attributes.
12466 (read_attribute): Reflect API changes.
12467 (read_addr_index_1): Reflect API changes. Update comments.
12468 (dwarf2_read_addr_index_data): Reflect API changes.
12469 (dwarf2_read_addr_index): Likewise.
12470 (read_str_index): Change API and implementation. This becomes a helper
12471 to be used by the new string index related methods. Update error
12472 message and comments.
12473 (read_dwo_str_index): New function definition.
12474 (read_stub_str_index): Likewise.
12475 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12476 * symfile.h (dwarf2_debug_sections): Likewise.
12477 * xcoffread.c (dwarf2_debug_sections): Likewise.
12478
12479 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12480
12481 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12482 core_reg_sect type to gdb_byte *.
12483 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12484 * cris-tdep.c (fetch_core_registers): Likewise.
12485 * corelow.c (core_target::get_core_register_section): Change
12486 type of `contents` to gdb::byte_vector.
12487
12488 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12489
12490 * tui/tui-wingeneral.c (box_win): Position the title in the center
12491 of the border.
12492
12493 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12494
12495 * corelow.c (core_target::get_core_register_section): Use
12496 std::vector instead of alloca.
12497
12498 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12499
12500 * warning.m4: Add -Wmissing-declarations to build_warnings.
12501 * configure: Re-generate.
12502
12503 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12504
12505 * python/python.c (init__gdb_module): Add declaration.
12506
12507 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12508
12509 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12510 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12511 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12512 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12513 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12514 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12515 * ada-exp.y (_initialize_ada_exp): Add declaration.
12516 * ada-lang.c (_initialize_ada_language): Add declaration.
12517 * ada-tasks.c (_initialize_tasks): Add declaration.
12518 * agent.c (_initialize_agent): Add declaration.
12519 * aix-thread.c (_initialize_aix_thread): Add declaration.
12520 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12521 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12522 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12523 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12524 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12525 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12526 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12527 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12528 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12529 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12530 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12531 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12532 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12533 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12534 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12535 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12536 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12537 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12538 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12539 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12540 * annotate.c (_initialize_annotate): Add declaration.
12541 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12542 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12543 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12544 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12545 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12546 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12547 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12548 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12549 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12550 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12551 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12552 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12553 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12554 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12555 * auto-load.c (_initialize_auto_load): Add declaration.
12556 * auxv.c (_initialize_auxv): Add declaration.
12557 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12558 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12559 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12560 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12561 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12562 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12563 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12564 * breakpoint.c (_initialize_breakpoint): Add declaration.
12565 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12566 * btrace.c (_initialize_btrace): Add declaration.
12567 * charset.c (_initialize_charset): Add declaration.
12568 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12569 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12570 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12571 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12572 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12573 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12574 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12575 * coffread.c (_initialize_coffread): Add declaration.
12576 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12577 * compile/compile.c (_initialize_compile): Add declaration.
12578 * complaints.c (_initialize_complaints): Add declaration.
12579 * completer.c (_initialize_completer): Add declaration.
12580 * copying.c (_initialize_copying): Add declaration.
12581 * corefile.c (_initialize_core): Add declaration.
12582 * corelow.c (_initialize_corelow): Add declaration.
12583 * cp-abi.c (_initialize_cp_abi): Add declaration.
12584 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12585 * cp-support.c (_initialize_cp_support): Add declaration.
12586 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12587 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12588 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12589 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12590 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12591 * ctfread.c (_initialize_ctfread): Add declaration.
12592 * d-lang.c (_initialize_d_language): Add declaration.
12593 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12594 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12595 * dbxread.c (_initialize_dbxread): Add declaration.
12596 * dcache.c (_initialize_dcache): Add declaration.
12597 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12598 * disasm.c (_initialize_disasm): Add declaration.
12599 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12600 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12601 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12602 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12603 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12604 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12605 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12606 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12607 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12608 * elfread.c (_initialize_elfread): Add declaration.
12609 * exec.c (_initialize_exec): Add declaration.
12610 * extension.c (_initialize_extension): Add declaration.
12611 * f-lang.c (_initialize_f_language): Add declaration.
12612 * f-valprint.c (_initialize_f_valprint): Add declaration.
12613 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12614 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12615 * filesystem.c (_initialize_filesystem): Add declaration.
12616 * findcmd.c (_initialize_mem_search): Add declaration.
12617 * findvar.c (_initialize_findvar): Add declaration.
12618 * fork-child.c (_initialize_fork_child): Add declaration.
12619 * frame-base.c (_initialize_frame_base): Add declaration.
12620 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12621 * frame.c (_initialize_frame): Add declaration.
12622 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12623 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12624 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12625 * gcore.c (_initialize_gcore): Add declaration.
12626 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12627 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12628 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12629 * gdbarch.c (_initialize_gdbarch): Add declaration.
12630 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12631 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12632 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12633 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12634 * go-lang.c (_initialize_go_language): Add declaration.
12635 * go32-nat.c (_initialize_go32_nat): Add declaration.
12636 * guile/guile.c (_initialize_guile): Add declaration.
12637 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12638 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12639 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12640 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12641 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12642 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12643 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12644 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12645 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12646 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12647 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12648 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12649 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12650 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12651 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12652 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12653 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12654 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12655 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12656 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12657 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12658 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12659 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12660 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12661 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12662 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12663 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12664 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12665 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12666 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12667 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12668 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12669 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12670 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12671 * infcall.c (_initialize_infcall): Add declaration.
12672 * infcmd.c (_initialize_infcmd): Add declaration.
12673 * inflow.c (_initialize_inflow): Add declaration.
12674 * infrun.c (_initialize_infrun): Add declaration.
12675 * interps.c (_initialize_interpreter): Add declaration.
12676 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12677 * jit.c (_initialize_jit): Add declaration.
12678 * language.c (_initialize_language): Add declaration.
12679 * linux-fork.c (_initialize_linux_fork): Add declaration.
12680 * linux-nat.c (_initialize_linux_nat): Add declaration.
12681 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12682 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12683 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12684 * m2-lang.c (_initialize_m2_language): Add declaration.
12685 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12686 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12687 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12688 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12689 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12690 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12691 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12692 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12693 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12694 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12695 * machoread.c (_initialize_machoread): Add declaration.
12696 * macrocmd.c (_initialize_macrocmd): Add declaration.
12697 * macroscope.c (_initialize_macroscope): Add declaration.
12698 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12699 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12700 * maint.c (_initialize_maint_cmds): Add declaration.
12701 * mdebugread.c (_initialize_mdebugread): Add declaration.
12702 * memattr.c (_initialize_mem): Add declaration.
12703 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12704 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12705 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12706 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12707 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12708 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12709 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12710 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12711 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12712 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12713 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12714 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12715 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12716 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12717 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12718 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12719 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12720 * mipsread.c (_initialize_mipsread): Add declaration.
12721 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12722 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12723 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12724 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12725 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12726 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12727 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12728 * nto-procfs.c (_initialize_procfs): Add declaration.
12729 * objc-lang.c (_initialize_objc_language): Add declaration.
12730 * observable.c (_initialize_observer): Add declaration.
12731 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12732 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12733 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12734 * osabi.c (_initialize_gdb_osabi): Add declaration.
12735 * osdata.c (_initialize_osdata): Add declaration.
12736 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12737 * parse.c (_initialize_parse): Add declaration.
12738 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12739 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12740 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12741 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12742 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12743 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12744 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12745 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12746 * printcmd.c (_initialize_printcmd): Add declaration.
12747 * probe.c (_initialize_probe): Add declaration.
12748 * proc-api.c (_initialize_proc_api): Add declaration.
12749 * proc-events.c (_initialize_proc_events): Add declaration.
12750 * proc-service.c (_initialize_proc_service): Add declaration.
12751 * procfs.c (_initialize_procfs): Add declaration.
12752 * producer.c (_initialize_producer): Add declaration.
12753 * psymtab.c (_initialize_psymtab): Add declaration.
12754 * python/python.c (_initialize_python): Add declaration.
12755 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12756 * record-btrace.c (_initialize_record_btrace): Add declaration.
12757 * record-full.c (_initialize_record_full): Add declaration.
12758 * record.c (_initialize_record): Add declaration.
12759 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12760 * regcache.c (_initialize_regcache): Add declaration.
12761 * reggroups.c (_initialize_reggroup): Add declaration.
12762 * remote-notif.c (_initialize_notif): Add declaration.
12763 * remote-sim.c (_initialize_remote_sim): Add declaration.
12764 * remote.c (_initialize_remote): Add declaration.
12765 * reverse.c (_initialize_reverse): Add declaration.
12766 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12767 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12768 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12769 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12770 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12771 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12772 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12773 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12774 Add declaration.
12775 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12776 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12777 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12778 * rust-exp.y (_initialize_rust_exp): Add declaration.
12779 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12780 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12781 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12782 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12783 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12784 * score-tdep.c (_initialize_score_tdep): Add declaration.
12785 * ser-go32.c (_initialize_ser_dos): Add declaration.
12786 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12787 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12788 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12789 * ser-uds.c (_initialize_ser_socket): Add declaration.
12790 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12791 * serial.c (_initialize_serial): Add declaration.
12792 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12793 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12794 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12795 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12796 * skip.c (_initialize_step_skip): Add declaration.
12797 * sol-thread.c (_initialize_sol_thread): Add declaration.
12798 * solib-aix.c (_initialize_solib_aix): Add declaration.
12799 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12800 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12801 * solib-frv.c (_initialize_frv_solib): Add declaration.
12802 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12803 * solib-target.c (_initialize_solib_target): Add declaration.
12804 * solib.c (_initialize_solib): Add declaration.
12805 * source-cache.c (_initialize_source_cache): Add declaration.
12806 * source.c (_initialize_source): Add declaration.
12807 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12808 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12809 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12810 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12811 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12812 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12813 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12814 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12815 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12816 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12817 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12818 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12819 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12820 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12821 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12822 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12823 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12824 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12825 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12826 * stabsread.c (_initialize_stabsread): Add declaration.
12827 * stack.c (_initialize_stack): Add declaration.
12828 * stap-probe.c (_initialize_stap_probe): Add declaration.
12829 * std-regs.c (_initialize_frame_reg): Add declaration.
12830 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12831 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12832 * symfile.c (_initialize_symfile): Add declaration.
12833 * symmisc.c (_initialize_symmisc): Add declaration.
12834 * symtab.c (_initialize_symtab): Add declaration.
12835 * target.c (_initialize_target): Add declaration.
12836 * target-connection.c (_initialize_target_connection): Add
12837 declaration.
12838 * target-dcache.c (_initialize_target_dcache): Add declaration.
12839 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12840 * thread.c (_initialize_thread): Add declaration.
12841 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12842 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12843 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12844 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12845 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12846 * tracectf.c (_initialize_ctf): Add declaration.
12847 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12848 * tracefile.c (_initialize_tracefile): Add declaration.
12849 * tracepoint.c (_initialize_tracepoint): Add declaration.
12850 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12851 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12852 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12853 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12854 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12855 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12856 * tui/tui.c (_initialize_tui): Add declaration.
12857 * typeprint.c (_initialize_typeprint): Add declaration.
12858 * ui-style.c (_initialize_ui_style): Add declaration.
12859 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12860 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12861 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12862 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12863 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12864 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12865 * unittests/filtered_iterator-selftests.c
12866 (_initialize_filtered_iterator_selftests): Add declaration.
12867 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12868 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12869 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12870 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12871 * unittests/main-thread-selftests.c
12872 (_initialize_main_thread_selftests): Add declaration.
12873 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12874 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12875 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12876 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12877 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12878 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12879 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12880 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12881 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12882 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12883 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12884 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12885 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12886 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12887 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12888 declaration.
12889 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12890 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12891 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12892 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12893 * user-regs.c (_initialize_user_regs): Add declaration.
12894 * utils.c (_initialize_utils): Add declaration.
12895 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12896 * valops.c (_initialize_valops): Add declaration.
12897 * valprint.c (_initialize_valprint): Add declaration.
12898 * value.c (_initialize_values): Add declaration.
12899 * varobj.c (_initialize_varobj): Add declaration.
12900 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12901 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12902 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12903 * windows-nat.c (_initialize_windows_nat): Add declaration.
12904 (_initialize_check_for_gdb_ini): Add declaration.
12905 (_initialize_loadable): Add declaration.
12906 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12907 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12908 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12909 * xcoffread.c (_initialize_xcoffread): Add declaration.
12910 * xml-support.c (_initialize_xml_support): Add declaration.
12911 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12912 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12913 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12914 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12915
12916 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12917
12918 * regformats/regdat.sh: Generate declaration for init function.
12919
12920 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12921
12922 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12923 up.
12924 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12925 close_one_inferior>: New methods.
12926 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12927 pass down target to find_inferior_pid.
12928 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12929 Pass down target to find_inferior_ptid.
12930 (gdbsim_target::create_inferior): Pass down target to
12931 add_thread_silent.
12932 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12933 target down to find_inferior_ptid and switch_to_thread.
12934 (gdbsim_target::close): Update to call close_one_inferior.
12935 (struct resume_data): Remove.
12936 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12937 directly, rather than through a void pointer.
12938 (gdbsim_target::resume): Update to call resume_one_inferior.
12939
12940 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12941
12942 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12943
12944 2020-01-12 Pedro Alves <palves@redhat.com>
12945
12946 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12947 directly for the current inferior instead of
12948 discard_all_inferiors.
12949 (discard_all_inferiors): Delete.
12950
12951 2020-01-11 Tom Tromey <tom@tromey.com>
12952
12953 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12954 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12955 deprecated_safe_get_selected_frame.
12956
12957 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12958
12959 * inferior.c (print_inferior): Switch inferior before printing it.
12960
12961 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12962 Pedro Alves <palves@redhat.com>
12963
12964 * progspace-and-thread.c (switch_to_program_space_and_thread):
12965 Assert there's an inferior for PSPACE. Use
12966 switch_to_inferior_no_thread to switch the inferior too.
12967 * progspace.c (program_space::~program_space): Call
12968 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12969 (program_space::free_all_objfiles): Don't call clear_symtab_users
12970 here.
12971 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12972
12973 2020-01-10 Pedro Alves <palves@redhat.com>
12974
12975 * NEWS: Mention multi-target debugging, "info connections", and
12976 "add-inferior -no-connection".
12977
12978 2020-01-10 Pedro Alves <palves@redhat.com>
12979
12980 * infrun.c: Include "target-connection.h".
12981 (check_multi_target_resumption): New.
12982 (proceed): Call it.
12983 * target-connection.c (make_target_connection_string): Make
12984 extern.
12985 * target-connection.h (make_target_connection_string): Declare.
12986
12987 2020-01-10 Pedro Alves <palves@redhat.com>
12988
12989 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12990 * inferior.c (uiout_field_connection): New function.
12991 (print_inferior): Add new "connection-id" column.
12992 (add_inferior_command): Show connection number/string of added
12993 inferior.
12994 * process-stratum-target.h
12995 (process_stratum_target::connection_string): New virtual method.
12996 (process_stratum_target::connection_number): New field.
12997 * remote.c (remote_target::connection_string): New override.
12998 * target-connection.c: New file.
12999 * target-connection.h: New file.
13000 * target.c (decref_target): Remove process_stratum targets from
13001 the connection list.
13002 (target_stack::push): Add process_stratum targets to the
13003 connection list.
13004
13005 2020-01-10 Pedro Alves <palves@redhat.com>
13006
13007 Revert:
13008 2016-04-12 Pedro Alves <palves@redhat.com>
13009 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13010 Remove references to name.
13011 * serial.h (struct serial) <name>: Delete.
13012
13013 2020-01-10 Pedro Alves <palves@redhat.com>
13014
13015 * gdbarch-selftests.c (register_to_value_test): Remove "target
13016 already pushed" check.
13017
13018 2020-01-10 Pedro Alves <palves@redhat.com>
13019 John Baldwin <jhb@FreeBSD.org>
13020
13021 * aarch64-linux-nat.c
13022 (aarch64_linux_nat_target::thread_architecture): Adjust.
13023 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13024 (task_command_1): Likewise.
13025 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13026 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13027 (aix_thread_target::store_registers)
13028 (aix_thread_target::thread_alive): Adjust.
13029 * amd64-fbsd-tdep.c: Include "inferior.h".
13030 (amd64fbsd_get_thread_local_address): Pass down target.
13031 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13032 thread's gdbarch instead of target_gdbarch.
13033 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13034 get_last_target_status.
13035 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13036 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13037 inferiors.
13038 (update_inserted_breakpoint_locations): Skip if inferiors with no
13039 execution.
13040 (update_global_location_list): When handling moribund locations,
13041 find representative inferior for location's pspace, and use thread
13042 count of its process_stratum target.
13043 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13044 * bsd-uthread.c (bsd_uthread_target::wait): Use
13045 as_process_stratum_target and adjust thread_change_ptid and
13046 add_thread calls.
13047 (bsd_uthread_target::update_thread_list): Use
13048 as_process_stratum_target and adjust find_thread_ptid,
13049 thread_change_ptid and add_thread calls.
13050 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13051 find_thread_ptid call.
13052 * corelow.c (add_to_thread_list): Adjust add_thread call.
13053 (core_target_open): Adjust add_thread_silent and thread_count
13054 calls.
13055 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13056 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13057 * event-top.c (async_disconnect): Pop targets from all inferiors.
13058 * exec.c (add_target_sections): Push exec target on all inferiors
13059 sharing the program space.
13060 (remove_target_sections): Remove the exec target from all
13061 inferiors sharing the program space.
13062 (exec_on_vfork): New.
13063 * exec.h (exec_on_vfork): Declare.
13064 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13065 Pass it down.
13066 (fbsd_nat_target::update_thread_list): Adjust.
13067 (fbsd_nat_target::resume): Adjust.
13068 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13069 down.
13070 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13071 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13072 get_thread_arch_regcache call.
13073 * fork-child.c (gdb_startup_inferior): Pass target down to
13074 startup_inferior and set_executing.
13075 * gdbthread.h (struct process_stratum_target): Forward declare.
13076 (add_thread, add_thread_silent, add_thread_with_info)
13077 (in_thread_list): Add process_stratum_target parameter.
13078 (find_thread_ptid(inferior*, ptid_t)): New overload.
13079 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13080 parameter.
13081 (all_threads()): Delete overload.
13082 (all_threads, all_non_exited_threads): Add process_stratum_target
13083 parameter.
13084 (all_threads_safe): Use brace initialization.
13085 (thread_count): Add process_stratum_target parameter.
13086 (set_resumed, set_running, set_stop_requested, set_executing)
13087 (threads_are_executing, finish_thread_state): Add
13088 process_stratum_target parameter.
13089 (switch_to_thread): Use is_current_thread.
13090 * i386-fbsd-tdep.c: Include "inferior.h".
13091 (i386fbsd_get_thread_local_address): Pass down target.
13092 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13093 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13094 have_inferiors check.
13095 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13096 (inf_ptrace_target::attach): Adjust.
13097 * infcall.c (run_inferior_call): Adjust.
13098 * infcmd.c (run_command_1): Pass target to
13099 scoped_finish_thread_state.
13100 (proceed_thread_callback): Skip inferiors with no execution.
13101 (continue_command): Rename 'all_threads' local to avoid hiding
13102 'all_threads' function. Adjust get_last_target_status call.
13103 (prepare_one_step): Adjust set_running call.
13104 (signal_command): Use user_visible_resume_target. Compare thread
13105 pointers instead of inferior_ptid.
13106 (info_program_command): Adjust to pass down target.
13107 (attach_command): Mark target's 'thread_executing' flag.
13108 (stop_current_target_threads_ns): New, factored out from ...
13109 (interrupt_target_1): ... this. Switch inferior before making
13110 target calls.
13111 * inferior-iter.h
13112 (struct all_inferiors_iterator, struct all_inferiors_range)
13113 (struct all_inferiors_safe_range)
13114 (struct all_non_exited_inferiors_range): Filter on
13115 process_stratum_target too. Remove explicit.
13116 * inferior.c (inferior::inferior): Push dummy target on target
13117 stack.
13118 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13119 Add process_stratum_target parameter, and pass it down.
13120 (have_live_inferiors): Adjust.
13121 (switch_to_inferior_and_push_target): New.
13122 (add_inferior_command, clone_inferior_command): Handle
13123 "-no-connection" parameter. Use
13124 switch_to_inferior_and_push_target.
13125 (_initialize_inferior): Mention "-no-connection" option in
13126 the help of "add-inferior" and "clone-inferior" commands.
13127 * inferior.h: Include "process-stratum-target.h".
13128 (interrupt_target_1): Use bool.
13129 (struct inferior) <push_target, unpush_target, target_is_pushed,
13130 find_target_beneath, top_target, process_target, target_at,
13131 m_stack>: New.
13132 (discard_all_inferiors): Delete.
13133 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13134 (all_inferiors, all_non_exited_inferiors): Add
13135 process_stratum_target parameter.
13136 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13137 (target_last_proc_target): New global.
13138 (follow_fork_inferior): Push target on new inferior. Pass target
13139 to add_thread_silent. Call exec_on_vfork. Handle target's
13140 reference count.
13141 (follow_fork): Adjust get_last_target_status call. Also consider
13142 target.
13143 (follow_exec): Push target on new inferior.
13144 (struct execution_control_state) <target>: New field.
13145 (user_visible_resume_target): New.
13146 (do_target_resume): Call target_async.
13147 (resume_1): Set target's threads_executing flag. Consider resume
13148 target.
13149 (commit_resume_all_targets): New.
13150 (proceed): Also consider resume target. Skip threads of inferiors
13151 with no execution. Commit resumtion in all targets.
13152 (start_remote): Pass current inferior to wait_for_inferior.
13153 (infrun_thread_stop_requested): Consider target as well. Pass
13154 thread_info pointer to clear_inline_frame_state instead of ptid.
13155 (infrun_thread_thread_exit): Consider target as well.
13156 (random_pending_event_thread): New inferior parameter. Use it.
13157 (do_target_wait): Rename to ...
13158 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13159 down.
13160 (threads_are_resumed_pending_p, do_target_wait): New.
13161 (prepare_for_detach): Adjust calls.
13162 (wait_for_inferior): New inferior parameter. Handle it. Use
13163 do_target_wait_1 instead of do_target_wait.
13164 (fetch_inferior_event): Adjust. Switch to representative
13165 inferior. Pass target down.
13166 (set_last_target_status): Add process_stratum_target parameter.
13167 Save target in global.
13168 (get_last_target_status): Add process_stratum_target parameter and
13169 handle it.
13170 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13171 (context_switch): Check inferior_ptid == null_ptid before calling
13172 inferior_thread().
13173 (get_inferior_stop_soon): Pass down target.
13174 (wait_one): Rename to ...
13175 (poll_one_curr_target): ... this.
13176 (struct wait_one_event): New.
13177 (wait_one): New.
13178 (stop_all_threads): Adjust.
13179 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13180 event's target.
13181 (switch_back_to_stepped_thread): Also consider target.
13182 (print_stop_event): Update.
13183 (normal_stop): Update. Also consider the resume target.
13184 * infrun.h (wait_for_inferior): Remove declaration.
13185 (user_visible_resume_target): New declaration.
13186 (get_last_target_status, set_last_target_status): New
13187 process_stratum_target parameter.
13188 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13189 process_stratum_target parameter, and use it.
13190 (clear_inline_frame_state (thread_info*)): New.
13191 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13192 process_stratum_target parameter.
13193 (clear_inline_frame_state (thread_info*)): Declare.
13194 * linux-fork.c (delete_checkpoint_command): Pass target down to
13195 find_thread_ptid.
13196 (checkpoint_command): Adjust.
13197 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13198 instead of just tweaking inferior_ptid.
13199 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13200 (exit_lwp): Pass target down to find_thread_ptid.
13201 (attach_proc_task_lwp_callback): Pass target down to
13202 add_thread/set_running/set_executing.
13203 (linux_nat_target::attach): Pass target down to
13204 thread_change_ptid.
13205 (get_detach_signal): Pass target down to find_thread_ptid.
13206 Consider last target status's target.
13207 (linux_resume_one_lwp_throw, resume_lwp)
13208 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13209 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13210 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13211 (linux_nat_target::async_wait_fd): New.
13212 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13213 target down.
13214 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13215 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13216 * linux-thread-db.c (struct thread_db_info::process_target): New
13217 field.
13218 (add_thread_db_info): Save target.
13219 (get_thread_db_info): New process_stratum_target parameter. Also
13220 match target.
13221 (delete_thread_db_info): New process_stratum_target parameter.
13222 Also match target.
13223 (thread_from_lwp): Adjust to pass down target.
13224 (thread_db_notice_clone): Pass down target.
13225 (check_thread_db_callback): Pass down target.
13226 (try_thread_db_load_1): Always push the thread_db target.
13227 (try_thread_db_load, record_thread): Pass target down.
13228 (thread_db_target::detach): Pass target down. Always unpush the
13229 thread_db target.
13230 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13231 target down. Always unpush the thread_db target.
13232 (find_new_threads_callback, thread_db_find_new_threads_2)
13233 (thread_db_target::update_thread_list): Pass target down.
13234 (thread_db_target::pid_to_str): Pass current inferior down.
13235 (thread_db_target::get_thread_local_address): Pass target down.
13236 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13237 target down.
13238 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13239 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13240 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13241 (procfs_init_inferior): Rename to ...
13242 (procfs_target::procfs_init_inferior): ... this and adjust.
13243 (procfs_target::create_inferior, procfs_notice_thread)
13244 (procfs_do_thread_registers): Adjust.
13245 * ppc-fbsd-tdep.c: Include "inferior.h".
13246 (ppcfbsd_get_thread_local_address): Pass down target.
13247 * proc-service.c (ps_xfer_memory): Switch current inferior and
13248 program space as well.
13249 (get_ps_regcache): Pass target down.
13250 * process-stratum-target.c
13251 (process_stratum_target::thread_address_space)
13252 (process_stratum_target::thread_architecture): Pass target down.
13253 * process-stratum-target.h
13254 (process_stratum_target::threads_executing): New field.
13255 (as_process_stratum_target): New.
13256 * ravenscar-thread.c
13257 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13258 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13259 down.
13260 * record-btrace.c (record_btrace_target::info_record): Adjust.
13261 (record_btrace_target::record_method)
13262 (record_btrace_target::record_is_replaying)
13263 (record_btrace_target::fetch_registers)
13264 (get_thread_current_frame_id, record_btrace_target::resume)
13265 (record_btrace_target::wait, record_btrace_target::stop): Pass
13266 target down.
13267 * record-full.c (record_full_wait_1): Switch to event thread.
13268 Pass target down.
13269 * regcache.c (regcache::regcache)
13270 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13271 process_stratum_target parameter and handle it.
13272 (current_thread_target): New global.
13273 (get_thread_regcache): Add process_stratum_target parameter and
13274 handle it. Switch inferior before calling target method.
13275 (get_thread_regcache): Pass target down.
13276 (get_thread_regcache_for_ptid): Pass target down.
13277 (registers_changed_ptid): Add process_stratum_target parameter and
13278 handle it.
13279 (registers_changed_thread, registers_changed): Pass target down.
13280 (test_get_thread_arch_aspace_regcache): New.
13281 (current_regcache_test): Define a couple local test_target_ops
13282 instances and use them for testing.
13283 (readwrite_regcache): Pass process_stratum_target parameter.
13284 (cooked_read_test, cooked_write_test): Pass mock_target down.
13285 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13286 (get_thread_arch_aspace_regcache): Add process_stratum_target
13287 parameter.
13288 (regcache::target): New method.
13289 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13290 (regcache::registers_changed_ptid): Add process_stratum_target
13291 parameter.
13292 (regcache::m_target): New field.
13293 (registers_changed_ptid): Add process_stratum_target parameter.
13294 * remote.c (remote_state::supports_vCont_probed): New field.
13295 (remote_target::async_wait_fd): New method.
13296 (remote_unpush_and_throw): Add remote_target parameter.
13297 (get_current_remote_target): Adjust.
13298 (remote_target::remote_add_inferior): Push target.
13299 (remote_target::remote_add_thread)
13300 (remote_target::remote_notice_new_inferior)
13301 (get_remote_thread_info): Pass target down.
13302 (remote_target::update_thread_list): Skip threads of inferiors
13303 bound to other targets. (remote_target::close): Don't discard
13304 inferiors. (remote_target::add_current_inferior_and_thread)
13305 (remote_target::process_initial_stop_replies)
13306 (remote_target::start_remote)
13307 (remote_target::remote_serial_quit_handler): Pass down target.
13308 (remote_target::remote_unpush_target): New remote_target
13309 parameter. Unpush the target from all inferiors.
13310 (remote_target::remote_unpush_and_throw): New remote_target
13311 parameter. Pass it down.
13312 (remote_target::open_1): Check whether the current inferior has
13313 execution instead of checking whether any inferior is live. Pass
13314 target down.
13315 (remote_target::remote_detach_1): Pass down target. Use
13316 remote_unpush_target.
13317 (extended_remote_target::attach): Pass down target.
13318 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13319 (remote_target::append_resumption): Pass down target.
13320 (remote_target::append_pending_thread_resumptions)
13321 (remote_target::remote_resume_with_hc, remote_target::resume)
13322 (remote_target::commit_resume): Pass down target.
13323 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13324 (remote_target::interrupt_query)
13325 (remote_target::remove_new_fork_children)
13326 (remote_target::check_pending_events_prevent_wildcard_vcont)
13327 (remote_target::remote_parse_stop_reply)
13328 (remote_target::process_stop_reply): Pass down target.
13329 (first_remote_resumed_thread): New remote_target parameter. Pass
13330 it down.
13331 (remote_target::wait_as): Pass down target.
13332 (unpush_and_perror): New remote_target parameter. Pass it down.
13333 (remote_target::readchar, remote_target::remote_serial_write)
13334 (remote_target::getpkt_or_notif_sane_1)
13335 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13336 down target.
13337 (remote_target::mourn_inferior): Pass down target. Use
13338 remote_unpush_target.
13339 (remote_target::core_of_thread)
13340 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13341 (remote_target::pid_to_exec_file)
13342 (remote_target::thread_handle_to_thread_info): Pass down target.
13343 (remote_target::async_wait_fd): New.
13344 * riscv-fbsd-tdep.c: Include "inferior.h".
13345 (riscv_fbsd_get_thread_local_address): Pass down target.
13346 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13347 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13348 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13349 Adjust.
13350 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13351 * solib-svr4.c (enable_break): Pass down target.
13352 * spu-multiarch.c (parse_spufs_run): Pass down target.
13353 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13354 * target-delegates.c: Regenerate.
13355 * target.c (g_target_stack): Delete.
13356 (current_top_target): Return the current inferior's top target.
13357 (target_has_execution_1): Refer to the passed-in inferior's top
13358 target.
13359 (target_supports_terminal_ours): Check whether the initial
13360 inferior was already created.
13361 (decref_target): New.
13362 (target_stack::push): Incref/decref the target.
13363 (push_target, push_target, unpush_target): Adjust.
13364 (target_stack::unpush): Defref target.
13365 (target_is_pushed): Return bool. Adjust to refer to the current
13366 inferior's target stack.
13367 (dispose_inferior): Delete, and inline parts ...
13368 (target_preopen): ... here. Only dispose of the current inferior.
13369 (target_detach): Hold strong target reference while detaching.
13370 Pass target down.
13371 (target_thread_name): Add assertion.
13372 (target_resume): Pass down target.
13373 (target_ops::beneath, find_target_at): Adjust to refer to the
13374 current inferior's target stack.
13375 (get_dummy_target): New.
13376 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13377 has a thread running.
13378 (initialize_targets): Rename to ...
13379 (_initialize_target): ... this.
13380 * target.h: Include "gdbsupport/refcounted-object.h".
13381 (struct target_ops): Inherit refcounted_object.
13382 (target_ops::shortname, target_ops::longname): Make const.
13383 (target_ops::async_wait_fd): New method.
13384 (decref_target): Declare.
13385 (struct target_ops_ref_policy): New.
13386 (target_ops_ref): New typedef.
13387 (get_dummy_target): Declare function.
13388 (target_is_pushed): Return bool.
13389 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13390 (all_matching_threads_iterator::all_matching_threads_iterator):
13391 Handle filter target.
13392 * thread-iter.h (struct all_matching_threads_iterator, struct
13393 all_matching_threads_range, class all_non_exited_threads_range):
13394 Filter by target too. Remove explicit.
13395 * thread.c (threads_executing): Delete.
13396 (inferior_thread): Pass down current inferior.
13397 (clear_thread_inferior_resources): Pass down thread pointer
13398 instead of ptid_t.
13399 (add_thread_silent, add_thread_with_info, add_thread): Add
13400 process_stratum_target parameter. Use it for thread and inferior
13401 searches.
13402 (is_current_thread): New.
13403 (thread_info::deletable): Use it.
13404 (find_thread_ptid, thread_count, in_thread_list)
13405 (thread_change_ptid, set_resumed, set_running): New
13406 process_stratum_target parameter. Pass it down.
13407 (set_executing): New process_stratum_target parameter. Pass it
13408 down. Adjust reference to 'threads_executing'.
13409 (threads_are_executing): New process_stratum_target parameter.
13410 Adjust reference to 'threads_executing'.
13411 (set_stop_requested, finish_thread_state): New
13412 process_stratum_target parameter. Pass it down.
13413 (switch_to_thread): Also match inferior.
13414 (switch_to_thread): New process_stratum_target parameter. Pass it
13415 down.
13416 (update_threads_executing): Reimplement.
13417 * top.c (quit_force): Pop targets from all inferior.
13418 (gdb_init): Don't call initialize_targets.
13419 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13420 Declare.
13421 (windows_add_thread, windows_delete_thread): Adjust.
13422 (get_windows_debug_event): Rename to ...
13423 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13424 * tracefile-tfile.c (tfile_target_open): Pass down target.
13425 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13426 Forward declare.
13427 (switch_to_thread): Add process_stratum_target parameter.
13428 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13429 parameter. Use it.
13430 (mi_on_resume): Pass target down.
13431 * nat/fork-inferior.c (startup_inferior): Add
13432 process_stratum_target parameter. Pass it down.
13433 * nat/fork-inferior.h (startup_inferior): Add
13434 process_stratum_target parameter.
13435 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13436
13437 2020-01-10 Pedro Alves <palves@redhat.com>
13438
13439 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13440 directly. Instead find the first thread in the thread list and
13441 use switch_to_thread.
13442
13443 2020-01-10 Pedro Alves <palves@redhat.com>
13444
13445 * remote.c (remote_target::remote_add_inferior): Don't bind a
13446 process to the current inferior if the current inferior is already
13447 bound to a process.
13448
13449 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13450 Pedro Alves <palves@redhat.com>
13451
13452 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13453 If no process is specified, return null_ptid instead of
13454 inferior_ptid.
13455 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13456 TARGET_WAITKIND_SIGNALLED with no pid.
13457
13458 2020-01-10 Pedro Alves <palves@redhat.com>
13459
13460 * remote.c (first_remote_resumed_thread): New.
13461 (remote_target::wait_as): Use it as default event_ptid instead of
13462 inferior_ptid.
13463
13464 2020-01-10 Pedro Alves <palves@redhat.com>
13465
13466 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13467
13468 2020-01-10 Pedro Alves <palves@redhat.com>
13469
13470 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13471 not -1.
13472
13473 2020-01-10 Pedro Alves <palves@redhat.com>
13474
13475 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13476 ptid to get_last_target_status.
13477 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13478 ptid to get_last_target_status.
13479 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13480 get_last_target_status.
13481 (info_program_command): Don't pass a target_waitstatus to
13482 get_last_target_status.
13483 * infrun.c (init_wait_for_inferior): Use
13484 nullify_last_target_wait_ptid.
13485 (get_last_target_status): Handle nullptr arguments.
13486 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13487 (print_stop_event): Don't pass a ptid to get_last_target_status.
13488 (normal_stop): Don't pass a ptid to get_last_target_status.
13489 * infrun.h (get_last_target_status, set_last_target_status): Move
13490 comments here and update.
13491 (nullify_last_target_wait_ptid): Declare.
13492 * linux-fork.c (fork_load_infrun_state): Remove local extern
13493 declaration of nullify_last_target_wait_ptid.
13494 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13495 to get_last_target_status.
13496
13497 2020-01-10 Pedro Alves <palves@redhat.com>
13498
13499 * gdbthread.h (scoped_restore_current_thread)
13500 <dont_restore, restore, m_dont_restore>: Declare.
13501 * thread.c (thread_alive): Add assertion. Return bool.
13502 (switch_to_thread_if_alive): New.
13503 (prune_threads): Switch inferior/thread.
13504 (print_thread_info_1): Switch thread before calling target methods.
13505 (scoped_restore_current_thread::restore): New, factored out from
13506 ...
13507 (scoped_restore_current_thread::~scoped_restore_current_thread):
13508 ... this.
13509 (scoped_restore_current_thread::scoped_restore_current_thread):
13510 Add assertion.
13511 (thread_apply_all_command, thread_select): Use
13512 switch_to_thread_if_alive.
13513 * infrun.c (proceed, restart_threads, handle_signal_stop)
13514 (switch_back_to_stepped_thread): Switch current thread before
13515 calling target methods.
13516
13517 2020-01-10 Pedro Alves <palves@redhat.com>
13518
13519 * inferior.c (switch_to_inferior_no_thread): New function,
13520 factored out from ...
13521 (inferior_command): ... here.
13522 * inferior.h (switch_to_inferior_no_thread): Declare.
13523 * mi/mi-main.c (run_one_inferior): Use
13524 switch_to_inferior_no_thread.
13525
13526 2020-01-10 Pedro Alves <palves@redhat.com>
13527
13528 * infcmd.c (kill_command): Remove dead code.
13529
13530 2020-01-10 Pedro Alves <palves@redhat.com>
13531
13532 * remote.c (remote_target::mourn_inferior): No longer check
13533 whether the target is running.
13534
13535 2020-01-10 Pedro Alves <palves@redhat.com>
13536
13537 * corelow.c (core_target::has_execution): Change parameter type to
13538 inferior pointer.
13539 * inferior.c (number_of_live_inferiors): Use
13540 inferior::has_execution instead of target_has_execution_1.
13541 * inferior.h (inferior::has_execution): New.
13542 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13543 inferior::has_execution instead of target_has_execution_1.
13544 * process-stratum-target.c
13545 (process_stratum_target::has_execution): Change parameter type to
13546 inferior pointer. Check the inferior's PID instead of
13547 inferior_ptid.
13548 * process-stratum-target.h
13549 (process_stratum_target::has_execution): Change parameter type to
13550 inferior pointer.
13551 * record-full.c (record_full_core_target::has_execution): Change
13552 parameter type to inferior pointer.
13553 * target.c (target_has_execution_1): Change parameter type to
13554 inferior pointer.
13555 (target_has_execution_current): Adjust.
13556 * target.h (target_ops::has_execution): Change parameter type to
13557 inferior pointer.
13558 (target_has_execution_1): Change parameter type to inferior
13559 pointer. Change return type to bool.
13560 * tracefile.h (tracefile_target::has_execution): Change parameter
13561 type to inferior pointer.
13562
13563 2020-01-10 Pedro Alves <palves@redhat.com>
13564
13565 * exceptions.c (print_flush): Remove current_top_target() check.
13566
13567 2020-01-10 Pedro Alves <palves@redhat.com>
13568
13569 * remote.c (show_remote_exec_file): Show the current inferior's
13570 exec-file instead of the command variable's value.
13571
13572 2020-01-10 Pedro Alves <palves@redhat.com>
13573
13574 * record-full.c (record_full_resume_ptid): New global.
13575 (record_full_target::resume): Set it.
13576 (record_full_wait_1): Use record_full_resume_ptid instead of
13577 inferior_ptid.
13578
13579 2020-01-10 Pedro Alves <palves@redhat.com>
13580
13581 * gdbthread.h (scoped_restore_current_thread)
13582 <dont_restore, restore, m_dont_restore>: Declare.
13583 * thread.c (thread_alive): Add assertion. Return bool.
13584 (switch_to_thread_if_alive): New.
13585 (prune_threads): Switch inferior/thread.
13586 (print_thread_info_1): Switch thread before calling target methods.
13587 (scoped_restore_current_thread::restore): New, factored out from
13588 ...
13589 (scoped_restore_current_thread::~scoped_restore_current_thread):
13590 ... this.
13591 (scoped_restore_current_thread::scoped_restore_current_thread):
13592 Add assertion.
13593 (thread_apply_all_command, thread_select): Use
13594 switch_to_thread_if_alive.
13595
13596 2020-01-10 George Barrett <bob@bob131.so>
13597
13598 * stap-probe.c (stap_modify_semaphore): Don't check for null
13599 semaphores.
13600 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13601 for null semaphores.
13602
13603 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13604
13605 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13606 all source windows, and maintain horizontal scroll status while
13607 doing so.
13608
13609 2020-01-09 Tom Tromey <tom@tromey.com>
13610
13611 PR tui/18932:
13612 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13613 update_source_window, not print_source_lines.
13614
13615 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13616
13617 * tui/tui.c (tui_enable): Register tui hooks after calling
13618 tui_display_main.
13619
13620 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13621
13622 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13623
13624 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13625
13626 * thread.c (print_thread_info_1): Fix indentation.
13627
13628 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13629
13630 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13631 unique_xmalloc_ptr outside the if to always free the demangled name.
13632
13633 2020-01-08 Tom Tromey <tromey@adacore.com>
13634
13635 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13636 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13637 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13638 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13639 Remove.
13640 (section_offsets): New typedef.
13641 * symtab.c (fixup_section, get_msymbol_address): Update.
13642 * symmisc.c (dump_msymbols): Update.
13643 * symfile.h (relative_addr_info_to_section_offsets)
13644 (symfile_map_offsets_to_segments): Update.
13645 * symfile.c (build_section_addr_info_from_objfile)
13646 (init_objfile_sect_indices): Update.
13647 (struct place_section_arg): Change type of "offsets".
13648 (place_section): Update.
13649 (relative_addr_info_to_section_offsets): Change type of
13650 "section_offsets". Remove "num_sections" parameter.
13651 (default_symfile_offsets, syms_from_objfile_1)
13652 (set_objfile_default_section_offset): Update.
13653 (reread_symbols): No need to preserve section offsets by hand.
13654 (symfile_map_offsets_to_segments): Change type of "offsets".
13655 * stap-probe.c (relocate_address): Update.
13656 * stabsread.h (process_one_symbol): Update.
13657 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13658 (solib_target_relocate_section_addresses): Update.
13659 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13660 Update.
13661 * solib-frv.c (frv_relocate_main_executable): Update.
13662 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13663 * solib-aix.c (solib_aix_get_section_offsets): Change return
13664 type.
13665 (solib_aix_solib_create_inferior_hook): Update.
13666 * remote.c (remote_target::get_offsets): Update.
13667 * psymtab.c (find_pc_sect_psymtab): Update.
13668 * psympriv.h (struct partial_symbol) <address, text_low,
13669 text_high>: Update.
13670 * objfiles.h (obj_section_offset): Update.
13671 (struct objfile) <section_offsets>: Change type.
13672 <num_sections>: Remove.
13673 (objfile_relocate): Update.
13674 * objfiles.c (entry_point_address_query): Update
13675 (relocate_one_symbol): Change type of "section_offsets".
13676 (objfile_relocate1, objfile_relocate1): Change type of
13677 "new_offsets".
13678 (objfile_rebase1): Update.
13679 * mipsread.c (mipscoff_symfile_read): Update.
13680 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13681 parameter.
13682 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13683 (parse_external, psymtab_to_symtab_1): Update.
13684 * machoread.c (macho_symfile_offsets): Update.
13685 * ia64-tdep.c (ia64_find_unwind_table): Update.
13686 * hppa-tdep.c (read_unwind_info): Update.
13687 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13688 * dwarf2read.c (create_addrmap_from_index)
13689 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13690 (process_psymtab_comp_unit_reader, add_partial_symbol)
13691 (add_partial_subprogram, process_full_comp_unit)
13692 (read_file_scope, read_func_scope, read_lexical_block_scope)
13693 (read_call_site_scope, dwarf2_rnglists_process)
13694 (dwarf2_ranges_process, dwarf2_ranges_read)
13695 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13696 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13697 Update.
13698 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13699 Update.
13700 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13701 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13702 (process_one_symbol): Change type of "section_offsets".
13703 * ctfread.c (get_objfile_text_range): Update.
13704 * coffread.c (coff_symtab_read, enter_linenos)
13705 (process_coff_symbol): Update.
13706 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13707 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13708
13709 2020-01-08 Tom Tromey <tromey@adacore.com>
13710
13711 * dwarf2read.c (parse_macro_definition): Use std::string.
13712 (parse_macro_definition): Likewise.
13713
13714 2020-01-08 Tom Tromey <tromey@adacore.com>
13715
13716 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13717 (ATTR_ALLOC_CHUNK): Remove.
13718
13719 2020-01-08 Tom Tromey <tromey@adacore.com>
13720
13721 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13722
13723 2020-01-08 Tom Tromey <tromey@adacore.com>
13724
13725 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13726 (dwarf2_compute_name, open_dwo_file): Likewise.
13727 (process_enumeration_scope): Use std::vector.
13728 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13729 (partial_die_info::fixup, dwarf2_start_subfile)
13730 (guess_full_die_structure_name, dwarf2_name): Likewise.
13731 (determine_prefix): Update.
13732 (guess_full_die_structure_name): Make return type const.
13733 (partial_die_full_name): Return unique_xmalloc_ptr.
13734 (DW_FIELD_ALLOC_CHUNK): Remove.
13735
13736 2020-01-07 Tom Tromey <tromey@adacore.com>
13737
13738 PR build/24937:
13739 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13740
13741 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13742
13743 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13744
13745 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13746
13747 * stack.c (print_frame_info): Move disassemble_next_line code
13748 inside source_print block.
13749
13750 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13751
13752 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13753 gdb/signals.h, as we are now using native signal symbols.
13754
13755 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13756
13757 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13758 overflow by an early check of content vs threshold.
13759 * tui/tui-source.c (tui_source_window::line_is_displayed):
13760 Likewise.
13761
13762 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13763
13764 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13765
13766 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13767
13768 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13769 export table if no section contains it's RVA.
13770
13771 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13772
13773 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13774
13775 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13776
13777 * source.c (print_source_lines_base): Set last_line_listed.
13778
13779 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13780
13781 * tui/tui-disasm.c: Remove trailing spaces.
13782
13783 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13784 Pedro Alves <palves@redhat.com>
13785
13786 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13787 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13788 (windows_gdb_signal_to_target): New function, uses the above
13789 enumeration to convert GDB internal signal codes to equivalent
13790 Windows codes.
13791 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13792 * windows-nat.c: Include "gdb_wait.h".
13793 (get_windows_debug_event): Extract the fatal exception from the
13794 exit status and convert to the equivalent Posix signal number.
13795 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13796 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13797 * gdbsupport/gdb_wait.c: New file, implements
13798 windows_status_to_termsig.
13799 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13800 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13801
13802 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13803
13804 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13805 show_layout.
13806
13807 2020-01-05 Luis Machado <luis.machado@linaro.org>
13808
13809 * aarch64-linux-nat.c
13810 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13811 and bfd_mach_aarch64.
13812
13813 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13814
13815 * ui-file.c (stdio_file::can_emit_style_escape)
13816 (tee_file::can_emit_style_escape): Ensure style is used also on
13817 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13818 to gdb_stdout.
13819 * main.c (set_gdb_data_directory): Use file style to output the
13820 warning that the given pathname is not a directory.
13821 * top.c (show_history_filename, gdb_safe_append_history)
13822 (show_gdb_datadir): Use file style.
13823
13824 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13825
13826 * solib-target.c (struct lm_info_target):
13827 Change offsets to be a unique_xmalloc_ptr.
13828 (solib_target_relocate_section_addresses): Update.
13829
13830 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13831
13832 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13833
13834 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13835
13836 * MAINTAINERS (Write After Approval): Add myself.
13837
13838 2020-01-02 Luis Machado <luis.machado@linaro.org>
13839
13840 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13841 Cell BE architecture.
13842 * target.h (struct target_ops) <thread_architecture>: Likewise.
13843
13844 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13845
13846 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13847
13848 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13849
13850 * MAINTAINERS (Write After Approval): Add myself.
13851
13852 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13853
13854 * gdbarch.sh: Update copyright year range of generated files.
13855
13856 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13857
13858 Update copyright year range in all GDB files.
13859
13860 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13861
13862 * copyright.py: Convert to Python 3.
13863
13864 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13865
13866 * copyright.py: Adapt after move of gnulib directory from gdb
13867 directory to toplevel directory.
13868
13869 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13870
13871 * copyright.py (main): Exit if run from the wrong directory.
13872
13873 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13874
13875 * top.c (print_gdb_version): Change copyright year to 2020.
13876
13877 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13878
13879 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13880
13881 For older changes see ChangeLog-2019.
13882 \f
13883 Local Variables:
13884 mode: change-log
13885 left-margin: 8
13886 fill-column: 74
13887 version-control: never
13888 coding: utf-8
13889 End: