Use htab_up in filename_seen_cache
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-17 Tom Tromey <tom@tromey.com>
2
3 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4 (filename_seen_cache::clear): Update.
5 (~filename_seen_cache): Remove.
6 (filename_seen_cache::seen): Update.
7 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
8 htab_up.
9 <~filename_seen_cache>: Remove.
10 <traverse>: Update.
11
12 2020-09-17 Tom Tromey <tom@tromey.com>
13
14 * completer.c (completion_tracker::discard_completions)
15 (completion_tracker::~completion_tracker)
16 (completion_tracker::maybe_add_completion)
17 (completion_tracker::remove_completion)
18 (completion_tracker::recompute_lowest_common_denominator)
19 (completion_tracker::build_completion_result): Update.
20 * completer.h (class completion_tracker) <have_completions>:
21 Update.
22 <m_entries_hash>: Now htab_up.
23
24 2020-09-17 Tom Tromey <tom@tromey.com>
25
26 * breakpoint.c (ambiguous_names_p): Use htab_up.
27
28 2020-09-17 Tom Tromey <tom@tromey.com>
29
30 * auto-load.c (struct auto_load_pspace_info)
31 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
32 <loaded_script_files, loaded_script_texts>: Change type to
33 htab_up.
34 (~auto_load_pspace_info) Remove.
35 (init_loaded_scripts_info, maybe_add_script_file)
36 (maybe_add_script_text, auto_load_info_scripts): Update.
37
38 2020-09-17 Tom Tromey <tromey@adacore.com>
39
40 * c-exp.y (name_obstack): Now static.
41
42 2020-09-17 Chungyi Chi <demonic@csie.io>
43
44 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
45
46 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
47
48 * breakpoint.h (init_catchpoint): Change int parameter to bool.
49 (add_solib_catchpoint): Likewise.
50 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
51 to bool.
52 (add_solib_catchpoint): Change int parameter/variable to bool.
53 (catch_load_or_unload): Likewise.
54 (init_catchpoint): Likewise.
55 (create_fork_vfork_event_catchpoint): Likewise.
56 (catch_fork_command_1): Likewise.
57 (catch_exec_command_1): Likewise.
58
59 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
60
61 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
62 Change instance_flags to m_instance_flags.
63
64 2020-09-16 Tom Tromey <tromey@adacore.com>
65
66 PR gdb/26598:
67 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
68
69 2020-09-16 John Baldwin <jhb@FreeBSD.org>
70
71 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
72 PL_FLAG_EXEC.
73 (fbsd_nat_target::insert_exec_catchpoint)
74 (fbsd_nat_target::remove_exec_catchpoint): Always define.
75 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
76 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
77
78 2020-09-16 John Baldwin <jhb@FreeBSD.org>
79
80 * configure.ac: Remove check for kinfo_getvmmap().
81 * configure, config.in: Regenerate.
82 * fbsd-nat.c (fbsd_read_mapping): Remove
83 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
84 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
85 kinfo_get_vmmap() are always present.
86
87 2020-09-16 John Baldwin <jhb@FreeBSD.org>
88
89 * fbsd-nat.c: Always include support for
90 TARGET_OBJECT_SIGNAL_INFO.
91
92 2020-09-16 John Baldwin <jhb@FreeBSD.org>
93
94 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
95 sysctl and remove procfs fallback.
96
97 2020-09-16 John Baldwin <jhb@FreeBSD.org>
98
99 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
100 * fbsd-nat.h: Likewise.
101
102 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
103
104 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
105 argument.
106
107 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
108
109 * ada-lang.c (ada_language_data): Delete.
110 (ada_language): Remove references to ada_language_data.
111 * c-lang.c (c_language_data): Delete.
112 (c_language): Remove references to c_language_data.
113 (cplus_language_data): Delete.
114 (cplus_language): Remove references to cplus_language_data.
115 (asm_language_data): Delete.
116 (asm_language): Remove references to asm_language_data.
117 (minimal_language_data): Delete.
118 (minimal_language): Remove references to minimal_language_data.
119 * d-lang.c (d_language_data): Delete.
120 (d_language): Remove references to d_language_data.
121 * f-lang.c (f_language_data): Delete.
122 (f_language): Remove references to f_language_data.
123 * go-lang.c (go_language_data): Delete.
124 (go_language): Remove references to go_language_data.
125 * language.c (unknown_language_data): Delete.
126 (unknown_language): Remove references to unknown_language_data.
127 (auto_language_data): Delete.
128 (auto_language): Remove references to auto_language_data.
129 * language.h (language_data): Delete struct.
130 (language_defn): No longer inherit from language_data.
131 * m2-lang.c (m2_language_data): Delete.
132 (m2_language): Remove references to m2_language_data.
133 * objc-lang.c (objc_language_data): Delete.
134 (objc_language): Remove references to objc_language_data.
135 * opencl-lang.c (opencl_language_data): Delete.
136 (opencl_language): Remove references to opencl_language_data.
137 * p-lang.c (pascal_language_data): Delete.
138 (pascal_language): Remove references to pascal_language_data.
139 * rust-lang.c (rust_language_data): Delete.
140 (rust_language): Remove references to rust_language_data.
141
142 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
143
144 * ada-lang.c (ada_language_data): Remove la_op_print_tab
145 initializer.
146 (ada_language::opcode_print_table): New member function.
147 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
148 (c_language::opcode_print_table): New member function.
149 (cplus_language_data): Remove la_op_print_tab initializer.
150 (cplus_language::opcode_print_table): New member function.
151 (asm_language_data): Remove la_op_print_tab initializer.
152 (asm_language::opcode_print_table): New member function.
153 (minimal_language_data): Remove la_op_print_tab initializer.
154 (minimal_language::opcode_print_table): New member function.
155 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
156 (d_language::opcode_print_table): New member function.
157 * expprint.c (print_subexp_standard): Update call to
158 opcode_print_table.
159 (op_string): Likewise.
160 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
161 (f_language::opcode_print_table): New member function.
162 * go-lang.c (go_language_data): Remove la_op_print_tab
163 initializer.
164 (go_language::opcode_print_table): New member function.
165 * language.c (unknown_language_data): Remove la_op_print_tab
166 initializer.
167 (unknown_language::opcode_print_table): New member function.
168 (auto_language_data): Remove la_op_print_tab initializer.
169 (auto_language::opcode_print_table): New member function.
170 * language.h (language_data): Remove la_op_print_tab field.
171 (language_defn::opcode_print_table): Declare new member function.
172 * m2-lang.c (m2_language_data): Remove la_op_print_tab
173 initializer.
174 (m2_language::opcode_print_table): New member function.
175 * objc-lang.c (objc_language_data): Remove la_op_print_tab
176 initializer.
177 (objc_language::opcode_print_table): New member function.
178 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
179 initializer.
180 (opencl_language::opcode_print_table): New member function.
181 * p-lang.c (pascal_language_data): Remove la_op_print_tab
182 initializer.
183 (pascal_language::opcode_print_table): New member function.
184 * rust-lang.c (rust_language_data): Remove la_op_print_tab
185 initializer.
186 (rust_language::opcode_print_table): New member function.
187
188 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
191 (ada_language::expression_ops): New member function.
192 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
193 (c_language::expression_ops): New member function.
194 (cplus_language_data): Remove la_exp_desc initializer.
195 (cplus_language::expression_ops): New member function.
196 (asm_language_data): Remove la_exp_desc initializer.
197 (asm_language::expression_ops): New member function.
198 (minimal_language_data): Remove la_exp_desc initializer.
199 (minimal_language::expression_ops): New member function.
200 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
201 (d_language::expression_ops): New member function.
202 * eval.c (evaluate_subexp): Update call to expression_ops.
203 * expprint.c (print_subexp): Likewise.
204 (op_name): Likewise.
205 (dump_subexp_body): Likewise.
206 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
207 (f_language::expression_ops): New member function.
208 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
209 (go_language::expression_ops): New member function.
210 * language.c (language_defn::expression_ops): New function.
211 (unknown_language_data): Remove la_exp_desc initializer.
212 (auto_language_data): Likewise.
213 * language.h (language_data): Remove la_exp_desc field.
214 (language_defn::expression_ops): Declare new member function.
215 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
216 (m2_language::expression_ops): New member function.
217 * objc-lang.c (objc_language_data): Remove la_exp_desc
218 initializer.
219 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
220 initializer.
221 (opencl_language::expression_ops): New member function.
222 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
223 * parse.c (operator_length): Update call to expression_ops.
224 (exp_iterate): Likewise.
225 * rust-lang.c (rust_language_data): Remove la_exp_desc
226 initializer.
227 (ruse_language::expression_ops): New member function.
228
229 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
230
231 * ada-lang.c (ada_language_data): Remove la_varobj_ops
232 initializer.
233 (ada_language::varobj_ops): New member function.
234 * c-lang.c (c_language_data): Remove la_varobj_ops
235 initializer.
236 (cplus_language_data): Likewise.
237 (cplus_language::varobj_ops): New member function.
238 (asm_language_data): Remove la_varobj_ops initializer.
239 (minimal_language_data): Likewise.
240 * d-lang.c (d_language_data): Likewise.
241 * f-lang.c (f_language_data): Likewise.
242 * go-lang.c (go_language_data): Likewise.
243 * language.c (language_defn::varobj_ops): New function.
244 (unknown_language_data): Remove la_varobj_ops
245 initializer.
246 (auto_language_data): Likewise.
247 * language.h (language_data): Remove la_varobj_ops field.
248 (language_defn::varobj_ops): Declare new member function.
249 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
250 * objc-lang.c (objc_language_data): Likewise.
251 * opencl-lang.c (opencl_language_data): Likewise.
252 * p-lang.c (pascal_language_data): Likewise.
253 * rust-lang.c (rust_language_data): Likewise.
254 * varobj.c (varobj_create): Update call to varobj_ops.
255 * varobj.h (default_varobj_ops): Delete define.
256
257 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
258
259 * ada-lang.c (ada_language_data): Remove la_macro_expansion
260 initializer.
261 * c-lang.c (c_language_data): Likewise.
262 (c_language::macro_expansion): New member function.
263 (cplus_language_data): Likewise.
264 (cplus_language::macro_expansion): New member function.
265 (asm_language_data): Likewise.
266 (asm_language::macro_expansion): New member function.
267 (minimal_language_data): Likewise.
268 (minimal_language::macro_expansion): New member function.
269 * d-lang.c (d_language_data): Remove la_macro_expansion
270 initializer.
271 * f-lang.c (f_language_data): Likewise.
272 * go-lang.c (go_language_data): Likewise.
273 * language.c (unknown_language_data): Likewise.
274 (auto_language_data): Likewise.
275 * language.h (language_data): Remove la_macro_expansion field.
276 (language_defn::macro_expansion): New member function.
277 * m2-lang.c (m2_language_data): Remove la_macro_expansion
278 initializer.
279 * objc-lang.c (objc_language_data): Likewise.
280 (objc_language::macro_expansion): New member function.
281 * opencl-lang.c (opencl_language_data): Likewise.
282 (opencl_language::macro_expansion): New member function.
283 * p-lang.c (pascal_language_data): Remove la_macro_expansion
284 initializer.
285 * rust-lang.c (rust_language_data): Likewise.
286 * symtab.c (default_collect_symbol_completion_matches_break_on):
287 Update call to macro_expansion.
288
289 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * ada-lang.c (ada_language_data): Remove la_array_ordering
292 initializer.
293 * c-lang.c (c_language_data): Likewise.
294 (cplus_language_data): Likewise.
295 (asm_language_data): Likewise.
296 (minimal_language_data): Likewise.
297 * d-lang.c (d_language_data): Likewise.
298 * dwarf2/read.c (read_array_order): Update for call to
299 array_ordering.
300 * f-lang.c (f_language_data): Remove la_array_ordering
301 initializer.
302 (f_language::array_ordering): New member function.
303 * go-lang.c (go_language_data): Remove la_array_ordering
304 initializer.
305 * language.c (unknown_language_data): Likewise.
306 (auto_language_data): Likewise.
307 * language.h (language_data): Delete la_array_ordering field.
308 (language_defn::array_ordering): New member function.
309 * m2-lang.c (m2_language_data): Remove la_array_ordering
310 initializer.
311 * objc-lang.c (objc_language_data): Likewise.
312 * opencl-lang.c (opencl_language_data): Likewise.
313 * p-lang.c (pascal_language_data): Likewise.
314 * rust-lang.c (rust_language_data): Likewise.
315
316 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
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 * f-lang.c (f_language_data): Likewise.
326 (f_language::case_sensitivity): New member function.
327 * go-lang.c (go_language_data): Remove la_case_sensitivity
328 initializer.
329 * language.c (enum case_mode): Moved here from language.h.
330 (case_mode): Make static.
331 (show_case_command): Update for case_sensitivity being a method.
332 (set_case_command): Likewise.
333 (set_range_case): Likewise.
334 (unknown_language_data): Remove la_case_sensitivity initializer.
335 (auto_language_data): Likewise.
336 * language.h (case_mode): Delete, move enum declaration to
337 language.c.
338 (language_data): Delete la_case_sensitivity field.
339 (language_defn::case_sensitivity): New member function.
340 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
341 initializer.
342 * objc-lang.c (objc_language_data): Likewise.
343 * opencl-lang.c (opencl_language_data): Likewise.
344 * p-lang.c (pascal_language_data): Likewise.
345 * rust-lang.c (rust_language_data): Likewise.
346
347 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
348
349 * ada-lang.c (ada_language_data): Remove la_range_check
350 initializer.
351 * c-lang.c (c_language_data): Likewise.
352 (cplus_language_data): Likewise.
353 (asm_language_data): Likewise.
354 (minimal_language_data): Likewise.
355 * d-lang.c (d_language_data): Likewise.
356 * f-lang.c (f_language_data): Likewise.
357 (f_language::range_checking_on_by_default): New member function.
358 * go-lang.c (go_language_data): Remove la_range_check initializer.
359 * language.c (enum range_mode): Moved here from language.h.
360 (range_mode): Made static.
361 (show_range_command): Update to use
362 range_checking_on_by_default.
363 (set_range_command): Likewise.
364 (set_range_case): Likewise.
365 (unknown_language_data): Remove la_range_check initializer.
366 (auto_language_data): Likewise.
367 * language.h (range_mode): Delete. Enum definition moved to
368 language.c.
369 (language_data): Remove la_range_check field.
370 (language_defn::range_checking_on_by_default): New member
371 function.
372 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
373 (m2_language::range_checking_on_by_default): New member function.
374 * objc-lang.c (objc_language_data): Remove la_range_check
375 initializer.
376 * opencl-lang.c (opencl_language_data): Likewise.
377 * p-lang.c (pascal_language_data): Likewise.
378 (pascal_language::range_checking_on_by_default): New member
379 function.
380 * rust-lang.c (rust_language_data): Remove la_range_check
381 initializer.
382 (rust_language::range_checking_on_by_default): New member
383 function.
384
385 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
386
387 * dwarf2/read.c (dwarf2_physname): Remove special case for
388 language_go.
389 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
390 member function.
391
392 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
393
394 * ada-lang.c (ada_language_data): Remove
395 la_store_sym_names_in_linkage_form_p initializer.
396 (ada_language::store_sym_names_in_linkage_form_p): New member
397 function.
398 * c-lang.c (c_language_data): Remove
399 la_store_sym_names_in_linkage_form_p initializer.
400 (c_language::store_sym_names_in_linkage_form_p): New member
401 function.
402 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
403 initializer.
404 (asm_language_data): Likewise.
405 (asm_language::store_sym_names_in_linkage_form_p): New member
406 function.
407 (minimal_language_data): Remove
408 la_store_sym_names_in_linkage_form_p initializer.
409 (minimal_language::store_sym_names_in_linkage_form_p): New member
410 function.
411 * d-lang.c (d_language_data): Remove
412 la_store_sym_names_in_linkage_form_p initializer.
413 * dwarf2/read.c (dwarf2_physname): Update call to
414 store_sym_names_in_linkage_form_p.
415 * f-lang.c (f_language_data): Remove
416 la_store_sym_names_in_linkage_form_p initializer.
417 * go-lang.c (go_language_data): Remove
418 la_store_sym_names_in_linkage_form_p initializer.
419 * language.c (unknown_language_data): Remove
420 la_store_sym_names_in_linkage_form_p initializer.
421 (unknown_language::store_sym_names_in_linkage_form_p): New member
422 function.
423 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
424 initializer.
425 (auto_language::store_sym_names_in_linkage_form_p): New member
426 function.
427 * language.h (language_data): Remove
428 la_store_sym_names_in_linkage_form_p member variable.
429 (language_defn::store_sym_names_in_linkage_form_p): New member
430 function.
431 * m2-lang.c (m2_language_data): Remove
432 la_store_sym_names_in_linkage_form_p initializer.
433 * objc-lang.c (objc_language_data): Likewise.
434 * opencl-lang.c (opencl_language_data): Likewise.
435 * p-lang.c (pascal_language_data): Likewise.
436 * rust-lang.c (rust_language_data): Likewise.
437
438 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
439
440 * ada-lang.c (ada_language_data): Remove string_lower_bound
441 initializer.
442 * c-lang.c (c_language_data): Likewise.
443 (cplus_language_data): Likewise.
444 (asm_language_data): Likewise.
445 (minimal_language_data): Likewise.
446 * d-lang.c (d_language_data): Likewise.
447 * f-lang.c (f_language_data): Likewise.
448 * go-lang.c (go_language_data): Likewise.
449 * language.c (unknown_language_data): Likewise.
450 (auto_language_data): Likewise.
451 * language.h (language_data): Remove string_lower_bound field.
452 (language_defn::string_lower_bound): New member function.
453 * m2-lang.c (m2_language_data): Remove string_lower_bound
454 initializer.
455 (m2_language::string_lower_bound): New member function.
456 * objc-lang.c (objc_language_data): Remove string_lower_bound
457 initializer.
458 * opencl-lang.c (opencl_language_data): Likewise.
459 * p-lang.c (pascal_language_data): Likewise.
460 * rust-lang.c (rust_language_data): Likewise.
461 * valops.c (value_cstring): Update call to string_lower_bound.
462 (value_string): Likewise.
463 * value.c (allocate_repeated_value): Likewise.
464
465 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
466
467 * valops.c (value_repeat): Fix incorrect argument name in comment.
468
469 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
470
471 * ada-lang.c (ada_language_data): Remove c_style_arrays
472 initializer.
473 (ada_language::c_style_arrays_p): New member fuction.
474 * c-lang.c (c_language_data): Remove c_style_arrays
475 initializer.
476 (cplus_language_data): Likewise.
477 (asm_language_data): Likewise.
478 (minimal_language_data): Likewise.
479 * d-lang.c (d_language_data): Likewise.
480 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
481 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
482 (f_language::c_style_arrays_p): New member function.
483 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
484 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
485 * language.c (unknown_language_data): Remove c_style_arrays
486 initializer.
487 (auto_language_data): Likewise.
488 * language.h (language_data): Remove c_style_arrays field.
489 (language_defn::c_style_arrays_p): New member function.
490 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
491 (m2_language::c_style_arrays_p): New member function.
492 * objc-lang.c (objc_language_data): Remove c_style_arrays
493 initializer.
494 * opencl-lang.c (opencl_language_data): Likewise.
495 * p-lang.c (pascal_language_data): Likewise.
496 * rust-lang.c (rust_language_data): Likewise.
497 * valarith.c (value_subscript): Update call to c_style_arrays_p,
498 and update local variable to a bool.
499 * valops.c (value_cast): Update call to c_style_arrays_p.
500 (value_array): Likewise.
501 * value.c (coerce_array): Likewise.
502
503 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
504
505 * ada-lang.c (ada_language_data): Remove la_language initializer.
506 * c-lang.c (c_language_data): Likewise.
507 (cplus_language_data): Likewise.
508 (asm_language_data): Likewise.
509 (minimal_language_data): Likewise.
510 * d-lang.c (d_language_data): Likewise.
511 * f-lang.c (f_language_data): Likewise.
512 * go-lang.c (go_language_data): Likewise.
513 * language.c (unknown_language_data): Likewise.
514 (auto_language_data): Likewise.
515 * language.h (language_data): Remove la_language field.
516 (language_defn::language_defn): Initialise la_language field.
517 (language_defn::la_language): New member variable.
518 * m2-lang.c (m2_language_data): Remove la_language field.
519 * objc-lang.c (objc_language_data): Likewise.
520 * opencl-lang.c (opencl_language_data): Likewise.
521 * p-lang.c (pascal_language_data): Likewise.
522 * rust-lang.c (rust_language_data): Likewise.
523
524 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
525
526 * ada-lang.c (ada_extensions): Delete, moved into
527 ada_language::filename_extensions.
528 (ada_language_data): Remove la_filename_extensions initializer.
529 (ada_language::filename_extensions): New member function.
530 * c-lang.c (c_extensions): Delete, moved into
531 c_language::filename_extensions.
532 (c_language_data): Remove la_filename_extensions initializer.
533 (c_language::filename_extensions): New member function.
534 (cplus_extensions): Delete, moved into
535 cplus_language::filename_extensions.
536 (cplus_language_data): Remove la_filename_extensions initializer.
537 (cplus_language::filename_extensions): New member function.
538 (asm_extensions): Delete, moved into
539 asm_language::filename_extensions.
540 (asm_language_data): Remove la_filename_extensions initializer.
541 (asm_language::filename_extensions): New member function.
542 (minimal_language_data): Remove la_filename_extensions
543 initializer.
544 * d-lang.c (d_extensions): Delete, moved into
545 d_language::filename_extensions.
546 (d_language_data): Remove la_filename_extensions initializer.
547 (d_language::filename_extensions): New member function.
548 * f-lang.c (f_extensions): Delete, moved into
549 f_language::filename_extensions.
550 (f_language_data): Remove la_filename_extensions initializer.
551 (f_language::filename_extensions): New member function.
552 * go-lang.c (go_language_data): Remove la_filename_extensions
553 initializer.
554 * language.c (add_set_language_command): Update now that
555 filename_extensions returns a vector.
556 (unknown_language_data): Remove la_filename_extensions
557 initializer.
558 (auto_language_data): Likewise.
559 * language.h (language_data): Remove la_filename_extensions field.
560 (language_defn::filename_extensions): New member function.
561 * m2-lang.c (m2_language_data): Remove la_filename_extensions
562 initializer.
563 * objc-lang.c (objc_extensions): Delete, moved into
564 objc_language::filename_extensions.
565 (objc_language_data): Remove la_filename_extensions initializer.
566 (objc_language::filename_extensions): New member function.
567 * opencl-lang.c (opencl_language_data): Remove
568 la_filename_extensions initializer.
569 * p-lang.c (pascal_extensions): Delete, moved into
570 pascal_language::filename_extensions.
571 (pascal_language_data): Remove la_filename_extensions initializer.
572 (pascal_language::filename_extensions): New member function.
573 * rust-lang.c (rust_extensions): Delete, moved into
574 rust_language::filename_extensions.
575 (rust_language_data): Remove la_filename_extensions initializer.
576 (rust_language::filename_extensions): New member function.
577 * symfile.c (add_filename_language): Add new assert.
578
579 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
580
581 * ada-lang.c (ada_language_data): Remove la_name and
582 la_natural_name initializers.
583 (ada_language::name): New member function.
584 (ada_language::natural_name): New member function.
585 * c-lang.c (c_language_data): Remove la_name and
586 la_natural_name initializers.
587 (c_language::name): New member function.
588 (c_language::natural_name): New member function.
589 (cplus_language_data): Remove la_name and
590 la_natural_name initializers.
591 (cplus_language::name): New member function.
592 (cplus_language::natural_name): New member function.
593 (asm_language_data): Remove la_name and
594 la_natural_name initializers.
595 (asm_language::name): New member function.
596 (asm_language::natural_name): New member function.
597 (minimal_language_data): Remove la_name and
598 la_natural_name initializers.
599 (minimal_language::name): New member function.
600 (minimal_language::natural_name): New member function.
601 * compile/compile.c (compile_to_object): Update call to
602 lanugage_defn::name.
603 * d-lang.c (d_language_data): Remove la_name and
604 la_natural_name initializers.
605 (d_language::name): New member function.
606 (d_language::natural_name): New member function.
607 * expprint.c (print_subexp_standard): Update call to
608 language_defn::name.
609 (dump_raw_expression): Likewise
610 (dump_prefix_expression): Likewise.
611 * f-lang.c (f_language_data): Remove la_name and
612 la_natural_name initializers.
613 (f_language::name): New member function.
614 (f_language::natural_name): New member function.
615 * go-lang.c (go_language_data): Remove la_name and
616 la_natural_name initializers.
617 (go_language::name): New member function.
618 (go_language::natural_name): New member function.
619 * language.c (show_language_command): Update call to
620 language_defn::name.
621 (set_language_command): Likewise.
622 (language_enum): Likewise.
623 (language_str): Likewise.
624 (add_set_language_command): Likewise, use
625 language_defn::natural_name in the doc string.
626 (unknown_language_data): Remove la_name and
627 la_natural_name initializers.
628 (unknown_language::name): New member function.
629 (unknown_language::natural_name): New member function.
630 (auto_language_data): Remove la_name and
631 la_natural_name initializers.
632 (auto_language::name): New member function.
633 (auto_language::natural_name): New member function.
634 (language_lookup_primitive_type_as_symbol): Update call to
635 language_defn::name.
636 * language.h (language_data): Remove la_name and la_natural_name
637 member variables.
638 (language_defn::name): New member function.
639 (language_defn::natural_name): New member function.
640 * m2-lang.c (m2_language_data): Remove la_name and
641 la_natural_name initializers.
642 (m2_language::name): New member function.
643 (m2_language::natural_name): New member function.
644 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
645 language_defn::natural_name.
646 * objc-lang.c (objc_language_data): Remove la_name and
647 la_natural_name initializers.
648 (objc_language::name): New member function.
649 (objc_language::natural_name): New member function.
650 * opencl-lang.c (opencl_language_data): Remove la_name and
651 la_natural_name initializers.
652 (opencl_language::name): New member function.
653 (opencl_language::natural_name): New member function.
654 * p-lang.c (pascal_language_data): Remove la_name and
655 la_natural_name initializers.
656 (pascal_language::name): New member function.
657 (pascal_language::natural_name): New member function.
658 * rust-lang.c (rust_language_data): Remove la_name and
659 la_natural_name initializers.
660 (rust_language::name): New member function.
661 (rust_language::natural_name): New member function.
662 * symtab.c (lookup_language_this): Update call to
663 language_defn::name.
664
665 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
666
667 * ada-lang.c (ada_language_data): Remove la_name_of_this
668 initializer.
669 * ax-gdb.c (gen_expr): Update call to name_of_this.
670 * c-exp.y (classify_name): Likewise.
671 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
672 (cplus_language_data): Likewise.
673 (cplus_language::name_of_this): New member function.
674 (asm_language_data): Remove la_name_of_this initializer.
675 (minimal_language_data): Likewise.
676 * d-lang.c (d_language_data): Likewise.
677 (d_language::name_of_this): New member function.
678 * expprint.c (print_subexp_standard): Update call to name_of_this.
679 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
680 * go-lang.c (go_language_data): Likewise.
681 * language.c (unknown_language_data): Likewise.
682 (unknown_language::name_of_this): New member function.
683 (auto_language_data): Remove la_name_of_this initializer.
684 (auto_language::name_of_this): New member function.
685 * language.h (language_data): Delete la_name_of_this member
686 variable.
687 (language_defn::name_of_this): New member function.
688 * m2-lang.c (m2_language_data): Remove la_name_of_this
689 initializer.
690 * objc-lang.c (objc_language_data): Likewise.
691 (objc_language::name_of_this): New member function.
692 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
693 initializer.
694 * p-lang.c (pascal_language_data): Likewise.
695 (pascal_language::name_of_this): New member function.
696 * rust-lang.c (rust_language_data): Remove la_name_of_this
697 initializer.
698 * symtab.c (lookup_language_this): Update call to name_of_this.
699 (lookup_symbol_aux): Likewise.
700 * valops.c (value_of_this): Likewise.
701
702 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
703
704 * ada-lang.c (ada_language_data): Remove
705 la_struct_too_deep_ellipsis initializer.
706 (ada_language::struct_too_deep_ellipsis): New member function.
707 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
708 initializer.
709 (cplus_language_data): Likewise.
710 (asm_language_data): Likewise.
711 (minimal_language_data): Likewise.
712 * cp-valprint.c (cp_print_value): Update call to
713 struct_too_deep_ellipsis.
714 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
715 initializer.
716 * f-lang.c (f_language_data): Likewise.
717 (f_language::struct_too_deep_ellipsis): New member function.
718 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
719 initializer.
720 * language.c (unknown_language_data): Likewise.
721 (auto_language_data): Likewise.
722 * language.h (language_data): Delete la_struct_too_deep_ellipsis
723 member variable.
724 (language_defn::struct_too_deep_ellipsis): New member function.
725 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
726 initializer.Q
727 * objc-lang.c (objc_language_data): Likewise.
728 * opencl-lang.c (opencl_language_data): Likewise.
729 * p-lang.c (pascal_language_data): Likewise.
730 * rust-lang.c (rust_language_data): Likewise.
731 * valprint.c (val_print_check_max_depth): Update call to
732 struct_too_deep_ellipsis.
733
734 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
735
736 * MAINTAINERS (Write After Approval): Add myself.
737
738 2020-09-15 Tom Tromey <tom@tromey.com>
739
740 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
741 Remove.
742
743 2020-09-15 Tom Tromey <tom@tromey.com>
744
745 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
746 and TYPE_CODE_METHODPTR cases.
747 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
748 (c_value_print_inner): Update.
749 * valprint.c (generic_value_print_memberptr): New function, from
750 c_value_print_memberptr.
751 (generic_value_print): Use it. Call cplus_print_method_ptr.
752
753 2020-09-15 Tom Tromey <tromey@adacore.com>
754
755 * python/python-internal.h (PyInt_FromLong): Remove define.
756 * python/py-value.c (convert_value_from_python): Use
757 gdb_py_object_from_longest.
758 * python/py-type.c (typy_get_code): Use
759 gdb_py_object_from_longest.
760 * python/py-symtab.c (salpy_get_line): Use
761 gdb_py_object_from_longest.
762 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
763 gdb_py_object_from_longest.
764 * python/py-record.c (recpy_gap_reason_code): Use
765 gdb_py_object_from_longest.
766 * python/py-record-btrace.c (recpy_bt_insn_size)
767 (recpy_bt_func_level, btpy_list_count): Use
768 gdb_py_object_from_longest.
769 * python/py-infthread.c (gdbpy_create_ptid_object): Use
770 gdb_py_object_from_longest. Fix error handling.
771 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
772 gdb_py_object_from_longest.
773 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
774 gdb_py_object_from_longest.
775 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
776 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
777 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
778
779 2020-09-15 Tom Tromey <tromey@adacore.com>
780
781 * python/python.c (gdbpy_parameter_value): Use
782 gdb_py_object_from_ulongest.
783
784 2020-09-15 Tom Tromey <tromey@adacore.com>
785
786 * python/py-infevents.c (create_register_changed_event_object):
787 Use gdb_py_object_from_longest.
788 * python/py-exitedevent.c (create_exited_event_object): Use
789 gdb_py_object_from_longest.
790
791 2020-09-15 Tom Tromey <tromey@adacore.com>
792
793 * python/python.c (gdbpy_parameter_value): Use
794 gdb_py_object_from_longest.
795 * python/py-type.c (convert_field, typy_range): Use
796 gdb_py_object_from_longest.
797 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
798 gdb_py_object_from_longest.
799 * python/py-lazy-string.c (stpy_get_length): Use
800 gdb_py_object_from_longest.
801 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
802 gdb_py_object_from_longest.
803 * python/py-infevents.c (create_memory_changed_event_object): Use
804 gdb_py_object_from_longest.
805 * python/py-inferior.c (infpy_get_num): Use
806 gdb_py_object_from_longest.
807 (infpy_get_pid): Likewise.
808
809 2020-09-15 Tom Tromey <tromey@adacore.com>
810
811 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
812 defines.
813 * python/py-value.c (valpy_long): Use
814 gdb_py_object_from_ulongest.
815 * python/py-symtab.c (salpy_get_pc): Use
816 gdb_py_object_from_ulongest.
817 (salpy_get_last): Likewise.
818 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
819 gdb_py_object_from_ulongest.
820 * python/py-lazy-string.c (stpy_get_address): Use
821 gdb_py_object_from_ulongest.
822 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
823 * python/py-arch.c (archpy_disassemble): Use
824 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
825 error handling.
826
827 2020-09-15 Tom Tromey <tromey@adacore.com>
828
829 * python/python-internal.h (gdb_py_long_from_longest): Remove
830 defines.
831 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
832 * python/py-type.c (convert_field, typy_get_sizeof): Use
833 gdb_py_object_from_longest.
834 * python/py-record-btrace.c (btpy_list_index): Use
835 gdb_py_object_from_longest.
836
837 2020-09-15 Tom Tromey <tromey@adacore.com>
838
839 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
840 * python/py-record.c (recpy_element_number): Use
841 gdb_py_object_from_longest.
842 (recpy_gap_number): Likewise.
843
844 2020-09-15 Tom Tromey <tromey@adacore.com>
845
846 * top.c (ui::ui): Update.
847 (highest_ui_num): Remove.
848 * top.h (struct ui) <num>: Remove.
849
850 2020-09-15 Tom Tromey <tromey@adacore.com>
851
852 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
853 * ui-style.c (ansi_regex_text): Now array.
854 * rust-exp.y (number_regex_text): Now array.
855 * linespec.c (linespec_quote_characters): Now array.
856 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
857 Now arrays.
858
859 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
860
861 * debuginfod-support.c (debuginfod_client_deleter): New.
862 (debuginfod_client_up): New.
863 (debuginfod_init): Return debuginfod_client_up.
864 (debuginfod_source_query): Adjust.
865 (debuginfod_debuginfo_query): Adjust.
866
867 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
868
869 * debuginfod-support.c (debuginfod_source_query): Use
870 make_unique_xstrdup.
871
872 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
873
874 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
875 with `type::instance_flags`.
876
877 2020-09-14 Michael Mullin <masmullin@gmail.com>
878
879 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
880 Remove baton parameter.
881
882 2020-09-14 Pedro Alves <pedro@palves.net>
883
884 * Makefile.in (SELFTESTS_SRCS): Add
885 unittests/enum-flags-selftests.c.
886 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
887 btrace_function_flags instead of enum btrace_function_flag.
888 * compile/compile-c-types.c (convert_qualified): Use
889 enum_flags::raw.
890 * compile/compile-cplus-symbols.c (convert_one_symbol)
891 (convert_symbol_bmsym):
892 * compile/compile-cplus-types.c (compile_cplus_convert_method)
893 (compile_cplus_convert_struct_or_union_methods)
894 (compile_cplus_instance::convert_qualified_base):
895 * go-exp.y (parse_string_or_char): Add cast to int.
896 * unittests/enum-flags-selftests.c: New file.
897 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
898 type to btrace_thread_flags from btrace_thread_flag.
899 (record_btrace_cancel_resume, record_btrace_step_thread): Change
900 local's type to btrace_thread_flags from btrace_thread_flag. Add
901 cast in DEBUG call.
902
903 2020-09-14 Pedro Alves <pedro@palves.net>
904
905 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
906 * gdbtypes.c (address_space_name_to_int): Rename to ...
907 (address_space_name_to_type_instance_flags): ... this.
908 (address_space_int_to_name): Rename to ...
909 (address_space_type_instance_flags_to_name): ... this.
910 * gdbtypes.h (address_space_name_to_int): Rename to ...
911 (address_space_name_to_type_instance_flags): ... this.
912 (address_space_int_to_name): Rename to ...
913 (address_space_type_instance_flags_to_name): ... this.
914 * type-stack.c (type_stack::insert): Adjust to rename.
915 * type-stack.h (type_stack::insert): Likewise.
916
917 2020-09-14 Pedro Alves <pedro@palves.net>
918 Andrew Burgess <andrew.burgess@embecosm.com>
919
920 * avr-tdep.c (avr_address_class_type_flags): Return
921 type_instance_flags.
922 (avr_address_class_type_flags_to_name): Take a
923 type_instance_flags.
924 (avr_address_class_name_to_type_flags): Return bool and take a
925 type_instance_flags.
926 * d-lang.c (build_d_types): Use type::set_instance_flags.
927 * ft32-tdep.c (ft32_address_class_type_flags): Return
928 type_instance_flags.
929 (ft32_address_class_type_flags_to_name): Take a
930 type_instance_flags.
931 (ft32_address_class_name_to_type_flags): Return bool and take a
932 type_instance_flags.
933 (ft32_gdbarch_init): Use type::set_instance_flags.
934 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
935 * gdbarch.h, gdbarch.c: Regenerate.
936 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
937 (address_class_name_to_type_flags): Use type_instance_flags and
938 bool.
939 * gdbtypes.c (address_space_name_to_int)
940 (address_space_int_to_name, make_qualified_type): Use
941 type_instance_flags.
942 (make_qualified_type): Use type_instance_flags and
943 type::set_instance_flags.
944 (make_type_with_address_space, make_cv_type, make_vector_type)
945 (check_typedef): Use type_instance_flags.
946 (recursive_dump_type): Cast type_instance_flags to unsigned for
947 printing.
948 (copy_type_recursive): Use type::set_instance_flags.
949 (gdbtypes_post_init): Use type::set_instance_flags.
950 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
951 <m_instance_flags>: ... this.
952 <instance_flags, set_instance_flags>: New methods.
953 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
954 (SET_TYPE_INSTANCE_FLAGS): New.
955 (address_space_name_to_int, address_space_int_to_name)
956 (make_type_with_address_space): Pass flags using
957 type_instance_flags instead of int.
958 * stabsread.c (cleanup_undefined_types_noname): Use
959 type::set_instance_flags.
960 * s390-tdep.c (s390_address_class_type_flags): Return
961 type_instance_flags.
962 (s390_address_class_type_flags_to_name): Take a
963 type_instance_flags.
964 (s390_address_class_name_to_type_flags): Return bool and take a
965 type_instance_flags.
966 * type-stack.c (type_stack::follow_types): Use
967 type_instance_flags.
968 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
969
970 2020-09-14 Tom Tromey <tromey@adacore.com>
971
972 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
973 * x86-tdep.c (x86_is_thunk_register_name)
974 (x86_in_indirect_branch_thunk): Update.
975 * sparc64-tdep.c (sparc64_fpu_register_names)
976 (sparc64_cp0_register_names, sparc64_register_names)
977 (sparc64_pseudo_register_names): Now const.
978 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
979 cp0_registers_num>: Now const.
980 * sparc-tdep.c (sparc_core_register_names)
981 (sparc32_fpu_register_names, sparc32_cp0_register_names)
982 (sparc32_pseudo_register_names): Now const.
983 (validate_tdesc_registers): Update.
984 * rust-lang.c (rust_extensions): Now const.
985 * p-lang.c (p_extensions): Now const.
986 * objc-lang.c (objc_extensions): Now const.
987 * nto-tdep.c (nto_thread_state_str): Now const.
988 * moxie-tdep.c (moxie_register_names): Now const.
989 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
990 Now const.
991 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
992 (mips_linux_reg_names): Now const.
993 (mips_gdbarch_init): Update.
994 * microblaze-tdep.c (microblaze_register_names): Now const.
995 * m68k-tdep.c (m68k_register_names): Now const.
996 * m32r-tdep.c (m32r_register_names): Now const.
997 * ia64-tdep.c (ia64_register_names): Now const.
998 * i386-tdep.h (struct gdbarch_tdep) <register_names,
999 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1000 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1001 ymm_avx512_register_names, pkeys_register_names>: Now const.
1002 * i386-tdep.c (i386_register_names, i386_zmm_names)
1003 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1004 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1005 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1006 * f-lang.c (f_extensions): Now const.
1007 * d-lang.c (d_extensions): Now const.
1008 * csky-tdep.c (csky_register_names): Now const.
1009 * charset.c (default_charset_names, charset_enum): Now const.
1010 (_initialize_charset): Update.
1011 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1012 const.
1013 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1014 (bsd_uthread_solib_loaded): Update.
1015 (bsd_uthread_state): Now const.
1016 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1017 (amd64_ymm_avx512_names, amd64_ymmh_names)
1018 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1019 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1020 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1021 (amd64_dword_names): Now const.
1022 * agent.c (can_use_agent_enum): Now const.
1023 * ada-tasks.c (task_states, long_task_states): Now const.
1024 * ada-lang.c (known_runtime_file_name_patterns)
1025 (known_auxiliary_function_name_patterns, attribute_names)
1026 (standard_exc, ada_extensions): Now const.
1027
1028 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1029
1030 * bcache.h (struct bcache) <bcache>: Remove constructor.
1031 <m_hash_function, m_compare_function>: Remove.
1032 <~bcache>: Make virtual.
1033 <compare>: Remove static method, introduce virtual method.
1034 <default_hash>: Remove.
1035 <hash>: New virtual method.
1036 * bcache.c (bcache::expand_hash_table): Update.
1037 (bcache::insert): Update.
1038 (bcache::hash): New.
1039 (bcache::compare): Update comment and parameter names.
1040 * gdbtypes.c (types_deeply_equal): Update.
1041 * psymtab.h (struct psymbol_bcache): New struct.
1042 (class psymtab_storage) <psymtab_storage>: Make default.
1043 <psymbol_cache>: Change type to psymbol_bcache.
1044 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1045 (psymbol_hash): Change to...
1046 (psymbol_bcache::hash): ... this.
1047 (psymbol_compare): Change to...
1048 (psymbol_bcache::compare): ... this.
1049
1050 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1051
1052 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1053 checking for initial lwp.
1054
1055 2020-09-14 Tom Tromey <tromey@adacore.com>
1056
1057 * m68k-tdep.c (m68k_extract_return_value): Use
1058 pointer_result_regnum.
1059 (m68k_store_return_value): Likewise.
1060 (m68k_reg_struct_return_p): Handle vectors and arrays.
1061 (m68k_return_value): Handle arrays.
1062 (m68k_svr4_return_value): Fix single-element aggregate handling.
1063 Handle long double. Adjust for embedded ABI.
1064 (m68k_svr4_init_abi): Set pointer_result_regnum.
1065 (m68k_embedded_init_abi): New function.
1066 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1067 (m68k_osabi_sniffer): New function.
1068 (_initialize_m68k_tdep): Register osabi sniffer.
1069 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1070 member.
1071
1072 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1073
1074 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1075 with gdb::unique_xmalloc_ptr<char>.
1076
1077 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1078
1079 * xml-support.h (xml_fetch_another): Change type to be a
1080 function_view.
1081 (xml_process_xincludes): Remove baton parameter.
1082 (xml_fetch_content_from_file): Change baton parameter to
1083 dirname.
1084 * xml-support.c (struct xinclude_parsing_data)
1085 <xinclude_parsing_data>: Remove baton parameter.
1086 <fetcher_baton>: Remove.
1087 (xinclude_start_include): Adjust.
1088 (xml_process_xincludes): Adjust.
1089 (xml_fetch_content_from_file): Replace baton parameter with
1090 dirname.
1091 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1092 (xml_init_syscalls_info): Use a lambda.
1093 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1094 (file_read_description_xml): Use a lambda.
1095 (fetch_available_features_from_target): Change baton parameter
1096 to target_ops.
1097 (target_read_description_xml): Use a lambda.
1098 (target_fetch_description_xml): Use a lambda.
1099 (string_read_description_xml): Update.
1100
1101 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1102
1103 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1104 uses with type::endianity_is_not_default.
1105
1106 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1107
1108 * gdbtypes.h (struct type) <endianity_is_not_default,
1109 set_endianity_is_not_default>: New methods.
1110 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1111 type::endianity_is_not_default, change all write call sites to
1112 use type::set_endianity_is_not_default.
1113
1114 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1115
1116 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1117 uses with type::is_fixed_instance.
1118
1119 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1120
1121 * gdbtypes.h (struct type) <is_fixed_instance,
1122 set_is_fixed_instance>: New methods.
1123 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1124 write call sites to use type::set_is_fixed_instance.
1125
1126 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1127
1128 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1129 uses with type::is_gnu_ifunc.
1130
1131 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1132
1133 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1134 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1135 use type::set_is_gnu_ifunc.
1136
1137 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1138
1139 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1140 uses with type::stub_is_supported.
1141
1142 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1143
1144 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1145 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1146 use type::set_stub_is_supported.
1147
1148 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1149
1150 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1151 uses with type::is_vector.
1152
1153 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1154
1155 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1156 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1157 use type::set_is_vector.
1158
1159 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1160
1161 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1162 uses with type::has_varargs.
1163
1164 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1165
1166 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1167 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1168 use type::set_has_varargs.
1169
1170 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1171
1172 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1173 uses with type::is_prototyped.
1174
1175 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1176
1177 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1178 New methods.
1179 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1180 call sites to use type::set_is_prototyped.
1181
1182 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1183
1184 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1185 uses with type::target_is_stub.
1186
1187 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1188
1189 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1190 New methods.
1191 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1192 sites to use type::set_target_is_stub.
1193
1194 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1195
1196 * gdbtypes.h (TYPE_STUB): Remove, replace all
1197 uses with type::is_stub.
1198
1199 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1200
1201 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1202 (TYPE_STUB): Use type::is_stub, change all write call sites to
1203 use type::set_is_stub.
1204
1205 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1206
1207 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1208 type::has_no_signedness.
1209
1210 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1211
1212 * gdbtypes.h (struct type) <has_no_signedness,
1213 set_has_no_signedness>: New methods.
1214 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1215 call sites to use type::set_has_no_signedness.
1216
1217 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1218
1219 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1220 type::is_unsigned.
1221
1222 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1223
1224 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1225 methods.
1226 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1227 sites to use type::set_is_unsigned.
1228
1229 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1230 Adam Renquinha <arenquinha@cimeq.qc.ca>
1231
1232 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1233 pointer and stack frame offset when unwinding.
1234
1235 2020-09-13 Pedro Alves <pedro@palves.net>
1236
1237 * NEWS: Document "-break-insert --qualified".
1238 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1239
1240 2020-09-13 Pedro Alves <pedro@palves.net>
1241
1242 * linespec.c (classify_mtype, compare_msyms): Delete.
1243 (search_minsyms_for_name): Remove classification logic. Instead
1244 filter out trampoline symbols if we also found an external
1245 function of the same name.
1246
1247 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1248
1249 * NEWS: Create a new section for the next release branch.
1250 Rename the section of the current branch, now that it has
1251 been cut.
1252
1253 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1254
1255 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1256 * version.in: Bump version to 11.0.50.DATE-git.
1257
1258 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1259
1260 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1261
1262 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1263 Felix Willgerodt <Felix.Willgerodt@intel.com>
1264
1265 * gdbarch.sh: Added bfloat16 type.
1266 * gdbarch.c: Regenerated.
1267 * gdbarch.h: Regenerated.
1268 * gdbtypes.c (floatformats_bfloat16): New struct.
1269 (gdbtypes_post_init): Add builtin_bfloat16.
1270 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1271 (floatformats_bfloat16): New struct.
1272 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1273 (i386_ymm_type): Add field "v16_bfloat16"
1274 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1275 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1276 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1277 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1278 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1279 * features/i386/64bit-avx512.c: Regenerated.
1280 * features/i386/64bit-sse.xml: Add bfloat16 type.
1281 * features/i386/64bit-sse.c: Regenerated.
1282
1283 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1284
1285 * i386-tdep.c (i386_zmm_type): Fix field names.
1286 (i386_ymm_type): Fix field names.
1287
1288 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1289
1290 * breakpoint.c: Fix typo in the help message of the
1291 "set breakpoint condition-evaluation" command.
1292
1293 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1294
1295 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1296 * (nbsd_nat_target::pid_to_exec_file)
1297 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1298 (nbsd_nat_target::post_startup_inferior)
1299 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1300 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1301 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1302 * (nbsd_thread_lister): Remove.
1303
1304 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1305
1306 * fork-inferior.c (startup_inferior): Avoid double free.
1307
1308 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1309
1310 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1311 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1312
1313 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1314
1315 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1316 * netbsd-nat.c: Include <sys/ptrace.h>.
1317 * (netbsd_nat::enable_proc_events): Add.
1318
1319 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1320
1321 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1322 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1323 (netbsd_nat::for_each_thread): Add.
1324 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1325 "gdbsupport/common-debug.h".
1326 * (netbsd_nat::netbsd_thread_lister)
1327 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1328 (netbsd_nat::for_each_thread): Add.
1329
1330 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1331
1332 * netbsd-nat.h: Include <unistd.h>.
1333 * (netbsd_nat::pid_to_exec_file): Add.
1334 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1335 * (netbsd_nat::pid_to_exec_file) Add.
1336
1337 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1338
1339 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1340
1341 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1342
1343 * netbsd-nat.h: New file.
1344 * netbsd-nat.c: Likewise.
1345
1346 2020-09-09 Tom Tromey <tromey@adacore.com>
1347
1348 * ada-lang.c (remove_extra_symbols): Do not increment when
1349 removing an element
1350
1351 2020-09-08 Tom Tromey <tromey@adacore.com>
1352
1353 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1354
1355 2020-09-08 Tom Tromey <tromey@adacore.com>
1356
1357 PR win32/25302:
1358 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1359 (gdb_bfd_init_data): New function.
1360 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1361
1362 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1363
1364 * infrun.c (fetch_inferior_event): Use
1365 `switch_to_target_no_thread` to switch the target.
1366
1367 2020-09-06 Tom Tromey <tom@tromey.com>
1368
1369 * symfile.h (dwarf2_free_objfile): Don't declare.
1370
1371 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1372
1373 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1374 to match 16 byte real/complex type generated by Flang compiler.
1375
1376 2020-09-03 Tom de Vries <tdevries@suse.de>
1377
1378 PR breakpoint/26546
1379 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1380 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1381
1382 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1383
1384 * maint.c (index_digits): New function.
1385 (struct maint_print_section_data): Remove.
1386 (print_bfd_section_info): Remove print_data parameter, add arg
1387 and index_digits.
1388 (print_objfile_section_info): Likewise.
1389 (print_bfd_section_info_maybe_relocated): Likewise (plus
1390 objfile).
1391 (maintenance_info_sections): Adjust calls.
1392
1393 2020-09-02 Tom Tromey <tromey@adacore.com>
1394
1395 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1396 for null pointers.
1397 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1398
1399 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1400
1401 * bcache.h (struct bcache) <insert>: Change type of `added` to
1402 pointer to bool.
1403 * bcache.c (bcache::insert): Likewise.
1404 * gdbtypes.c (check_types_worklist): Adjust.
1405 * psymtab.c (add_psymbol_to_bcache): Adjust.
1406
1407 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1408
1409 * corelow.c (unordered_set): Include.
1410 (class core_target): Add field 'm_core_unavailable_mappings'.
1411 (core_target::build_file_mappings): Print only one warning
1412 per inaccessible file. Add unavailable/broken mappings
1413 to m_core_unavailable_mappings.
1414 (core_target::xfer_partial): Call...
1415 (core_target::xfer_memory_via_mappings): New method.
1416
1417 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1418
1419 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1420 type to bool.
1421
1422 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1423
1424 * dwarf2/read.c (struct field_info): Fix indentation.
1425
1426 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1427
1428 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1429 ordering in comment.
1430 * frame.c (frame_id_eq): Fix indentation.
1431
1432 2020-08-31 Scott Linder <scott@scottlinder.com>
1433 Simon Marchi <simon.marchi@efficios.com>
1434
1435 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1436 inline frame ids in outer frame.
1437
1438 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1439
1440 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1441 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1442 (outer_frame_id): Use FID_STACK_OUTER instead of
1443 FID_STACK_INVALID.
1444 (frame_id_p): Don't check for outer_frame_id.
1445
1446 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1447
1448 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1449 regnum/frame in value. Call allocate_value_lazy.
1450 * frame.c (frame_unwind_register_value): Use
1451 val_print_not_saved.
1452
1453 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1454
1455 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1456
1457 2020-08-29 Pedro Alves <pedro@palves.net>
1458
1459 * progspace.c (print_program_space): Use all_inferiors. Switch to
1460 the inferior before calling target_pid_to_str.
1461
1462 2020-08-28 Tom Tromey <tom@tromey.com>
1463
1464 * xcoffread.c (xcoff_end_psymtab): Update comment.
1465 * dbxread.c (dbx_end_psymtab): Update comment.
1466
1467 2020-08-28 Tom de Vries <tdevries@suse.de>
1468
1469 PR breakpoint/26544
1470 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1471 event_location.
1472 (create_breakpoint): Same.
1473 (base_breakpoint_decode_location): Same.
1474 (bkpt_create_sals_from_location): Same.
1475 (bkpt_decode_location): Same.
1476 (bkpt_probe_create_sals_from_location): Same.
1477 (bkpt_probe_decode_location): Same.
1478 (tracepoint_create_sals_from_location): Same.
1479 (tracepoint_decode_location): Same.
1480 (tracepoint_probe_decode_location): Same.
1481 (strace_marker_create_sals_from_location): Same.
1482 (strace_marker_decode_location): Same.
1483 (create_sals_from_location_default): Same.
1484 (decode_location_default): Same.
1485 * breakpoint.h (struct breakpoint_ops): Same.
1486 (create_breakpoint): Same.
1487 * linespec.h (decode_line_full): Same.
1488 * linespec.c (decode_line_full): Same. Throw error if
1489 result.size () == 0.
1490
1491 2020-08-27 Pedro Alves <pedro@palves.net>
1492
1493 PR gdb/26524
1494 * breakpoint.c (until_break_fsm) <location_breakpoint,
1495 caller_breakpoint>: Delete fields.
1496 <breakpoints>: New field.
1497 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1498 two individual breakpoints.
1499 (until_break_fsm::should_stop): Loop over breakpoints in the
1500 breakpoint vector.
1501 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1502 vector.
1503 (until_break_command): Handle location expanding into multiple
1504 sals.
1505
1506 2020-08-27 Pedro Alves <pedro@palves.net>
1507
1508 PR gdb/26523
1509 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1510 bp_until breakpoints user-specified locations. Update intro
1511 comment.
1512
1513 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1514
1515 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1516 gdb_bfd_sections): New.
1517 * maint.c (print_bfd_section_info): Change param type to
1518 maint_print_section_data.
1519 (print_objfile_section_info): Likewise.
1520 (print_bfd_section_info_maybe_relocated): Likewise.
1521 (maintenance_info_sections): Use gdb_bfd_sections.
1522
1523 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1524
1525 * MAINTAINERS: Add ARC target and maintainer.
1526
1527 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1528
1529 * configure.tgt: ARC support for GNU/Linux.
1530 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1531 * arc-linux-tdep.c: New file.
1532 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1533 * arc-tdep.c (arc_write_pc): Use it.
1534
1535 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1536
1537 * arc-tdep.c (arc_check_for_hardware_loop): New.
1538 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1539
1540 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1541
1542 * arc-tdep.h: Include "gdbarch.h".
1543
1544 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1545
1546 * arch/arc.h
1547 (arc_gdbarch_features): New class to stir the selection of target XML.
1548 (arc_create_target_description): Use FEATURES to choose XML target.
1549 (arc_lookup_target_description): Use arc_create_target_description
1550 to create _new_ target descriptions or return the already created
1551 ones if the FEATURES is the same.
1552 * arch/arc.c: Implementation of prototypes described above.
1553 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1554 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1555 * arc-tdep.c (*_feature_name): Make feature names consistent.
1556 (arc_register_feature): A new struct to hold information about
1557 registers of a particular target/feature.
1558 (arc_check_tdesc_feature): Check if XML provides registers in
1559 compliance with ARC_REGISTER_FEATURE structs.
1560 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1561 (determine_*_reg_feature_set): Which feature name to look for.
1562 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1563 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1564 to expected ISA enums to be used in arc_gdbarch_features structs.
1565 * features/Makefile (FEATURE_XMLFILES): Add new files.
1566 * gdb/features/arc/v1-aux.c: New file.
1567 * gdb/features/arc/v1-aux.xml: Likewise.
1568 * gdb/features/arc/v1-core.c: Likewise.
1569 * gdb/features/arc/v1-core.xml: Likewise.
1570 * gdb/features/arc/v2-aux.c: Likewise.
1571 * gdb/features/arc/v2-aux.xml: Likewise.
1572 * gdb/features/arc/v2-core.c: Likewise.
1573 * gdb/features/arc/v2-core.xml: Likewise.
1574 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1575
1576 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1577 Andrew Burgess <andrew.burgess@embecosm.com>
1578
1579 PR m2/26372
1580 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1581 an assert. Remove single element array indexing pattern as the
1582 MULTI_SUBSCRIPT support will handle this case too.
1583
1584 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1585
1586 * value.h (valprint_check_validity): Move declaration from
1587 here...
1588 * valprint.h (valprint_check_validity): ... to here.
1589
1590 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1591
1592 * debug.h: New file.
1593 * debug.c (debug_prefixed_vprintf): New function.
1594 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1595 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1596
1597 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1598
1599 * infrun.h (infrun_debug_printf_1): New function declaration.
1600 (infrun_debug_printf): New macro.
1601 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1602 throughout.
1603 (infrun_debug_printf): New function.
1604 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1605 (handle_jit_event): Likewise.
1606
1607 2020-08-21 Mark Wielaard <mark@klomp.org>
1608
1609 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1610
1611 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1612
1613 * frame.c (enum class frame_id_status): New.
1614 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1615 (fprintf_frame): Update.
1616 (compute_frame_id): Set frame id status to "computing" on entry.
1617 Set it back to "not_computed" on failure and to "computed" on
1618 success.
1619 (get_frame_id): Assert the frame id is not being computed.
1620 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1621 (create_new_frame): Likewise.
1622 (frame_cleanup_after_sniffer): Update assert.
1623
1624 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1625
1626 * regcache.c (pid_ptid_regcache_map): New type.
1627 (target_ptid_regcache_map): Remove.
1628 (target_pid_ptid_regcache_map): New type.
1629 (regcaches): Change type to target_pid_ptid_regcache_map.
1630 (get_thread_arch_aspace_regcache): Update.
1631 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1632 case.
1633 (regcaches_size): Update.
1634 (regcache_count): Update.
1635 (registers_changed_ptid_target_pid_test): New.
1636 (_initialize_regcache): Register new test.
1637
1638 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1639
1640 * regcache.c (regcache_count): New.
1641 (struct regcache_test_data): New.
1642 (regcache_test_data_up): New.
1643 (populate_regcaches_for_test): New.
1644 (regcaches_test): Remove.
1645 (get_thread_arch_aspace_regcache_test): New.
1646 (registers_changed_ptid_all_test): New.
1647 (registers_changed_ptid_target_test): New.
1648 (registers_changed_ptid_target_ptid_test): New.
1649 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1650 (_initialize_regcache): Register new tests.
1651
1652 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1653
1654 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1655 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1656 gdbarch and aspace parameter. Use current inferior's aspace.
1657 Validate regcache's arch value.
1658 (regcaches_test): Update.
1659
1660 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1661
1662 * regcache.c (regcaches_test): Call registers_changed.
1663
1664 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1665
1666 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1667
1668 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1669
1670 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1671 to find the end of prologue for flang compiled binaries.
1672 * arm-tdep.c (arm_skip_prologue): Likewise.
1673 * i386-tdep.c (i386_skip_prologue): Likewise.
1674 * producer.c (producer_is_llvm): New function.
1675 (producer_parsing_tests): Added new tests for clang/flang.
1676 * producer.h (producer_is_llvm): New declaration.
1677
1678 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1679
1680 * linux-nat.c (linux_nat_debug_printf): New function.
1681 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1682
1683 2020-08-18 Aaron Merey <amerey@redhat.com>
1684
1685 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1686 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1687 (CLIBS): Add DEBUGINFOD_LIBS.
1688
1689 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1690
1691 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1692 'gdbarch_num_regs'.
1693
1694 2020-08-17 Tom Tromey <tromey@adacore.com>
1695
1696 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1697 ada_get_decoded_value returns NULL.
1698
1699 2020-08-17 Tom Tromey <tromey@adacore.com>
1700
1701 * python/py-inferior.c (infpy_search_memory): Use
1702 gdb_py_object_from_ulongest.
1703 * python/py-infevents.c (create_inferior_call_event_object)
1704 (create_memory_changed_event_object): Use
1705 gdb_py_object_from_ulongest.
1706 * python/py-linetable.c (ltpy_entry_get_pc): Use
1707 gdb_py_object_from_ulongest.
1708
1709 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1710
1711 * loc.c (class symbol_needs_eval_context): Fix indentation.
1712
1713 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1714
1715 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1716 bool.
1717
1718 2020-08-17 Tom de Vries <tdevries@suse.de>
1719
1720 PR gdb/26393
1721 * gdbtypes.c (dump_dynamic_prop): New function.
1722 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1723
1724 2020-08-15 Tom de Vries <tdevries@suse.de>
1725
1726 PR backtrace/26390
1727 * stack.c (print_frame_args): Temporarily set the selected
1728 frame to FRAME while printing the frame's arguments.
1729
1730 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1731
1732 PR breakpoints/26385
1733 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1734 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1735
1736 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1737
1738 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1739 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1740 and >= to check return value instead of == -1 and != -1.
1741
1742 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1743
1744 * utils.h (class gdb_argv) <as_array_view>: New method.
1745 * utils.c (gdb_argv_as_array_view_test): New.
1746 (_initialize_utils): Register selftest.
1747 * maint.c (maintenance_selftest): Use the new method.
1748
1749 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1750
1751 * target.h (supports_dumpcore, dumpcore): New
1752 function declarations.
1753 * target.c (supports_dumpcore, dumpcore): New
1754 functions.
1755 * target-delegates.c: Rebuild.
1756 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1757 and target_dumpcore ().
1758
1759 2020-08-13 Aaron Merey <amerey@redhat.com>
1760
1761 * debuginfod-support.c: Replace global variables with user_data.
1762
1763 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1764
1765 * maint.c (maintenance_selftest): Split args and pass array_view
1766 to run_tests.
1767
1768 2020-08-12 Luis Machado <luis.machado@linaro.org>
1769
1770 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1771 type's length.
1772 Use %s and pulongest to print the length.
1773
1774 2020-08-12 Pedro Alves <palves@redhat.com>
1775
1776 * NEWS: Move "Multi-target debugging support" item to the
1777 "Changes since GDB 9" section.
1778
1779 2020-08-12 Pedro Alves <palves@redhat.com>
1780
1781 PR gdb/26336
1782 * progspace.c (program_space::remove_objfile): Invalidate the
1783 frame cache.
1784
1785 2020-08-11 Tom de Vries <tdevries@suse.de>
1786
1787 * MAINTAINERS: Mark ms1 as deleted.
1788
1789 2020-08-10 Luis Machado <luis.machado@linaro.org>
1790
1791 PR gdb/26310
1792
1793 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1794 act accordingly.
1795 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1796 movz/str/stur/stp skipping behavior.
1797
1798 2020-08-10 Luis Machado <luis.machado@linaro.org>
1799
1800 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1801 struct user_sve_header instead of struct sve_context.
1802
1803 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1804
1805 * read.h (dwarf2_fetch_die_loc_sect_off,
1806 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1807 `void *` parameter with function_view.
1808 * read.c (dwarf2_fetch_die_loc_sect_off,
1809 dwarf2_fetch_die_loc_cu_off): Likewise.
1810 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1811 (per_cu_dwarf_call): Adjust.
1812 (get_frame_address_in_block_wrapper): Remove.
1813 (indirect_synthetic_pointer): Adjust.
1814 (get_ax_pc): Remove.
1815 (dwarf2_compile_expr_to_ax): Adjust.
1816
1817 2020-08-08 Tom de Vries <tdevries@suse.de>
1818
1819 PR build/26344
1820 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1821 constructor.
1822 * regcache.c (get_thread_arch_aspace_regcache): Same.
1823
1824 2020-08-07 Tom Tromey <tromey@adacore.com>
1825
1826 * ravenscar-thread.c
1827 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1828 New method.
1829 (ravenscar_thread_target::wait): Check
1830 runtime_initialized.
1831 (ravenscar_thread_target::prepare_to_store)
1832 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1833 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1834 (ravenscar_thread_target::stopped_by_watchpoint)
1835 (ravenscar_thread_target::stopped_data_address)
1836 (ravenscar_thread_target::core_of_thread): Use
1837 scoped_restore_current_thread and
1838 set_base_thread_from_ravenscar_task.
1839
1840 2020-08-07 Tom Tromey <tromey@adacore.com>
1841
1842 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1843
1844 2020-08-07 Tom Tromey <tromey@adacore.com>
1845
1846 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1847 update_inferior_ptid before update_thread_list.
1848 (temporarily_change_regcache_ptid): New class.
1849 (ravenscar_thread_target::fetch_registers)
1850 (ravenscar_thread_target::store_registers)
1851 (ravenscar_thread_target::prepare_to_store): Use base thread when
1852 forwarding operation.
1853
1854 2020-08-07 Tom Tromey <tromey@adacore.com>
1855
1856 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1857 "is_pid" case.
1858
1859 2020-08-07 Tom Tromey <tromey@adacore.com>
1860
1861 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1862 New methods.
1863 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1864 first.
1865 (ravenscar_thread_target::add_thread): Rename from
1866 ravenscar_add_thread.
1867 (ravenscar_thread_target::update_thread_list): Use a lambda.
1868 (ravenscar_thread_target::xfer_partial): New method.
1869
1870 2020-08-07 Tom Tromey <tromey@adacore.com>
1871
1872 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1873 gdb::function_view.
1874 (iterate_over_live_ada_tasks): Change type of argument.
1875 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1876 of argument.
1877
1878 2020-08-07 Tom Tromey <tromey@adacore.com>
1879
1880 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1881 Remove.
1882 (ravenscar_thread_target::extra_thread_info): Remove.
1883 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1884 defer to target beneath for non-Ravenscar threads.
1885
1886 2020-08-07 Tom Tromey <tromey@adacore.com>
1887
1888 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1889 get_base_thread_from_ravenscar_task>: Now methods.
1890 <m_cpu_map>: New member.
1891 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1892 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1893 (ravenscar_thread_target::task_is_currently_active): Update.
1894 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1895 Now a method.
1896 (ravenscar_thread_target::add_active_thread): Put initial thread
1897 into the m_cpu_map.
1898
1899 2020-08-07 Tom Tromey <tromey@adacore.com>
1900
1901 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1902 event_ptid.
1903
1904 2020-08-07 Tom Tromey <tromey@adacore.com>
1905
1906 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1907 runtime_initialized.
1908
1909 2020-08-07 Tom Tromey <tromey@adacore.com>
1910
1911 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1912 add_active_thread.
1913 (ravenscar_thread_target::add_active_thread): Now public.
1914 (ravenscar_inferior_created): Call add_active_thread after pushing
1915 the target.
1916
1917 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1918
1919 * regcache.c (ptid_regcache_map): New type.
1920 (target_ptid_regcache_map): New type.
1921 (regcaches): Change type to target_ptid_regcache_map.
1922 (get_thread_arch_aspace_regcache): Update to regcaches' new
1923 type.
1924 (regcache_thread_ptid_changed): Likewise.
1925 (registers_changed_ptid): Likewise.
1926 (regcaches_size): Likewise.
1927 (regcaches_test): Update.
1928 (regcache_thread_ptid_changed): Update.
1929 * regcache.h (regcache_up): New type.
1930 * gdbsupport/ptid.h (hash_ptid): New struct.
1931
1932 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1933
1934 * observable.h (thread_ptid_changed): Add parameter
1935 `process_stratum_target *`.
1936 * infrun.c (infrun_thread_ptid_changed): Add parameter
1937 `process_stratum_target *` and use it.
1938 (selftests): New namespace.
1939 (infrun_thread_ptid_changed): New function.
1940 (_initialize_infrun): Register selftest.
1941 * regcache.c (regcache_thread_ptid_changed): Add parameter
1942 `process_stratum_target *` and use it.
1943 (regcache_thread_ptid_changed): New function.
1944 (_initialize_regcache): Register selftest.
1945 * thread.c (thread_change_ptid): Pass target to
1946 thread_ptid_changed observable.
1947
1948 2020-08-06 Caroline Tice <cmtice@google.com>
1949
1950 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1951 (struct dwp_sections): Update field comments. Add loclists and
1952 rnglists fields.
1953 (struct virtual_v2_dwo_sections): Rename struct to
1954 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1955 size & offset fields for loclists and rnglists.
1956 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1957 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1958 skipping dummy type units.
1959 (create_dwp_hash_table): Update the large comment above the function to
1960 discuss Version 5 DWP files as well, with references. Update all the
1961 version checks in the function to check for version 5 as well. Add new
1962 section at the end to create dwp hash table for version 5.
1963 (create_dwp_v2_section): Rename function to
1964 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1965 Add V5 to error message text.
1966 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1967 into calls to create_dwp_v2_or_v5_section.
1968 (create_dwo_unit_in_dwp_v5): New function.
1969 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1970 check for version2; add else clause to handle version 5.
1971 (open_and_init_dwo_file): Add code to check dwarf version & only call
1972 create_debug_types_hash_table (with sections.types) if version is not 5;
1973 else call create_debug_type_hash_table, with sections.info.
1974 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1975 version 5.
1976 (dwarf2_locate_v5_dwp_sections): New function.
1977 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1978 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1979
1980 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1981
1982 * regcache.h (class regcache): Remove friend
1983 registers_changed_ptid.
1984 <regcache_thread_ptid_changed>: Remove.
1985 <regcaches>: Remove.
1986 * regcache.c (regcache::regcaches): Rename to...
1987 (regcaches): ... this. Make static.
1988 (get_thread_arch_aspace_regcache): Update.
1989 (regcache::regcache_thread_ptid_changed): Rename to...
1990 (regcache_thread_ptid_changed): ... this. Update.
1991 (class regcache_access): Remove.
1992 (regcaches_test): Update.
1993 (_initialize_regcache): Update.
1994 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1995 <forward_list>.
1996
1997 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1998
1999 * regcache.h (class regcache) <current_regcache>: Rename to...
2000 <regcaches>: ... this. Move doc here.
2001 * regcache.c (regcache::current_regcache) Rename to...
2002 (regcache::regcaches): ... this. Move doc to header.
2003 (get_thread_arch_aspace_regcache): Update.
2004 (regcache::regcache_thread_ptid_changed): Update.
2005 (registers_changed_ptid): Update.
2006 (class regcache_access) <current_regcache_size>: Rename to...
2007 <regcaches_size>: ... this.
2008 (current_regcache_test): Rename to...
2009 (regcaches_test): ... this.
2010 (_initialize_regcache): Update.
2011
2012 2020-08-06 Victor Collod <vcollod@nvidia.com>
2013
2014 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2015
2016 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2017
2018 * corelow.c (core_target::build_file_mappings): Don't output
2019 null pathname in warning.
2020
2021 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2022
2023 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2024 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2025 gdb.dwarf2/dw2-single-line-discriminators.exp,
2026 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2027
2028 2020-08-05 Tom Tromey <tromey@adacore.com>
2029
2030 PR rust/26197:
2031 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2032 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2033 Fix off-by-one and type size errors in ordinary case.
2034
2035 2020-08-05 Tom de Vries <tdevries@suse.de>
2036
2037 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2038 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2039
2040 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2041
2042 * frame.h (frame_id_p): Return bool.
2043 (frame_id_artificial_p): Return bool.
2044 (frame_id_eq): Return bool.
2045 (has_stack_frames): Return bool.
2046 (get_selected_frame): Fix typo in comment.
2047 (get_frame_pc_if_available): Return bool.
2048 (get_frame_address_in_block_if_available): Return bool.
2049 (get_frame_func_if_available): Return bool.
2050 (read_frame_register_unsigned): Return bool.
2051 (get_frame_register_bytes): Return bool.
2052 (safe_frame_unwind_memory): Return bool.
2053 (deprecated_frame_register_read): Return bool.
2054 (frame_unwinder_is): Return bool.
2055 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2056 bool.
2057 <this_id::p>: Likewise.
2058 <prev_p>: Likewise.
2059 (frame_stash_add): Return bool.
2060 (get_frame_id): Use bool.
2061 (frame_id_build_special) Use bool.
2062 (frame_id_build_unavailable_stack): Use bool.
2063 (frame_id_build): Use bool.
2064 (frame_id_p): Return bool, use true/false instead of 1/0.
2065 (frame_id_artificial_p): Likewise.
2066 (frame_id_eq): Likewise.
2067 (frame_id_inner): Likewise.
2068 (get_frame_func_if_available): Likewise.
2069 (read_frame_register_unsigned): Likewise.
2070 (deprecated_frame_register_read): Likewise.
2071 (get_frame_register_bytes): Likewise.
2072 (has_stack_frames): Likewise.
2073 (inside_main_func): Likewise.
2074 (inside_entry_func): Likewise.
2075 (get_frame_pc_if_available): Likewise.
2076 (get_frame_address_in_block_if_available): Likewise.
2077 (frame_unwinder_is): Likewise.
2078 (safe_frame_unwind_memory): Likewise.
2079 (frame_unwind_arch): Likewise.
2080
2081 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2082
2083 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2084 type to cached_copy_status.
2085 (fprintf_frame): Adjust.
2086 (get_frame_func_if_available): Adjust.
2087 (frame_cleanup_after_sniffer): Adjust.
2088
2089 2020-08-04 Mark Wielaard <mark@klomp.org>
2090
2091 * MAINTAINERS (Write After Approval): Update email address.
2092
2093 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2096 dynamic_prop::const_val.
2097
2098 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2099
2100 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2101 dynamic_prop::kind.
2102
2103 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2104
2105 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2106
2107 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2108
2109 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2110
2111 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2112 Jose E. Marchesi <jose.marchesi@oracle.com>
2113
2114 * configure.tgt: Add entry for bpf-*-*.
2115 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2116 (ALLDEPFILES): Add bpf-tdep.c.
2117 * bpf-tdep.c: New file.
2118 * MAINTAINERS: Add bpf target and maintainer.
2119 * NEWS: Mention the support for the new target.
2120
2121 2020-08-04 Tom de Vries <tdevries@suse.de>
2122
2123 PR symtab/23270
2124 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2125 Error.
2126
2127 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2128
2129 * syscalls/freebsd.xml: Regenerate.
2130
2131 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2132
2133 * syscalls/update-freebsd.sh: Fix usage and year range.
2134
2135 2020-08-03 Tom de Vries <tdevries@suse.de>
2136
2137 PR symtab/26333
2138 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2139 DW_LNE_lo_user/DW_LNE_hi_user range.
2140
2141 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2142
2143 PR ada/26318
2144 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2145 kind.
2146
2147 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2148
2149 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2150
2151 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2152
2153 * breakpoint.c (set_breakpoint_condition): Update the condition
2154 expressions after checking that the input condition string parses
2155 successfully and does not contain junk at the end.
2156
2157 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2158
2159 * breakpoint.c (set_breakpoint_condition): Update the
2160 condition string after parsing the new condition successfully.
2161
2162 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2163
2164 * proc-api.c (_STRUCTURED_PROC): Don't define.
2165 * proc-events.c: Likewise.
2166 * proc-flags.c: Likewise.
2167 * proc-why.c: Likewise.
2168 * procfs.c: Likewise.
2169
2170 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2171 * configure, config.in: Regenerate.
2172
2173 2020-07-30 Tom de Vries <tdevries@suse.de>
2174
2175 PR build/26320
2176 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2177 m_red/m_green/m_blue in a union.
2178
2179 2020-07-29 Tom de Vries <tdevries@suse.de>
2180
2181 PR tdep/26280
2182 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2183
2184 2020-07-28 Tom Tromey <tromey@adacore.com>
2185
2186 PR symtab/26270:
2187 * symtab.h (find_pc_partial_function_sym): Declare.
2188 * cli/cli-cmds.c (disassemble_command): Use
2189 find_pc_partial_function_sym. Check asm_demangle.
2190 * blockframe.c (cache_pc_function_sym): New global.
2191 (cache_pc_function_name): Remove.
2192 (clear_pc_function_cache): Update.
2193 (find_pc_partial_function_sym): New function, from
2194 find_pc_partial_function.
2195 (find_pc_partial_function): Rewrite using
2196 find_pc_partial_function_sym.
2197
2198 2020-07-28 Tom Tromey <tromey@adacore.com>
2199
2200 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2201 help. Add usage.
2202
2203 2020-07-28 Tom Tromey <tromey@adacore.com>
2204
2205 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2206 <DW_OP_GNU_variable_value>: Cast to address type.
2207
2208 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2209
2210 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2211 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2212 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2213 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2214 (nbsd_get_siginfo_type): New.
2215 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2216 (_initialize_nbsd_tdep): New.
2217
2218 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2219
2220 PR binutils/26301
2221 * configure: Regenerated.
2222
2223 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2224
2225 PR binutils/26301
2226 * configure: Regenerated.
2227
2228 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2229
2230 * python/py-frame.c: Remove 'user-regs.h' include.
2231 (frapy_read_register): Rewrite to make use of
2232 gdbpy_parse_register_id.
2233 * python/py-registers.c (gdbpy_parse_register_id): New function,
2234 moved here from python/py-unwind.c. Updated the return type, and
2235 also accepts register descriptor objects.
2236 * python/py-unwind.c: Remove 'user-regs.h' include.
2237 (pyuw_parse_register_id): Moved to python/py-registers.c.
2238 (unwind_infopy_add_saved_register): Update to use
2239 gdbpy_parse_register_id.
2240 (pending_framepy_read_register): Likewise.
2241 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2242
2243 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2244
2245 * python/py-registers.c: Add 'user-regs.h' include.
2246 (register_descriptor_iter_find): New function.
2247 (register_descriptor_iterator_object_methods): New static global
2248 methods array.
2249 (register_descriptor_iterator_object_type): Add pointer to methods
2250 array.
2251
2252 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2253
2254 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2255 for all architectures on FreeBSD 11.3 and later.
2256
2257 2020-07-27 Tom Tromey <tromey@adacore.com>
2258
2259 * gcore.h (load_corefile): Don't declare.
2260
2261 2020-07-27 Tom de Vries <tdevries@suse.de>
2262
2263 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2264 * config.in: Regenerate.
2265 * configure: Regenerate.
2266
2267 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2268
2269 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2270 ws2tcpip.h. When checking whether socklen_t type is defined, use
2271 ws2tcpip.h if it is available and sys/socket.h isn't.
2272 * configure: Regenerate.
2273 * config.in: Regenerate.
2274
2275 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2276
2277 PR fortran/23051
2278 PR fortran/26139
2279 * valops.c (value_ind): Pass address to
2280 readjust_indirect_value_type.
2281 * value.c (readjust_indirect_value_type): Make parameter
2282 non-const, and add extra address parameter. Resolve original type
2283 before using it.
2284 * value.h (readjust_indirect_value_type): Update function
2285 signature and comment.
2286
2287 2020-07-25 Tom de Vries <tdevries@suse.de>
2288
2289 PR symtab/26243
2290 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2291 entries.
2292
2293 2020-07-24 Aaron Merey <amerey@redhat.com>
2294
2295 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2296 * configure: Rebuild.
2297
2298 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2299
2300 PR corefiles/26294
2301 * corelow.c (_initialize_corelow): Add period to help text
2302 for "maintenance print core-file-backed-mappings".
2303
2304 2020-07-23 Pedro Alves <pedro@palves.net>
2305
2306 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2307 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2308 meanwhile.
2309 * frame.c (frame_cache_generation, get_frame_cache_generation):
2310 New.
2311 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2312 (get_prev_frame_if_no_cycle): On exception, don't touch
2313 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2314 * frame.h (get_frame_cache_generation): Declare.
2315
2316 2020-07-23 Tom de Vries <tdevries@suse.de>
2317
2318 PR tui/26282
2319 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2320 New default constructor.
2321
2322 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2323
2324 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2325 exclude non-statement entries.
2326
2327 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2328
2329 * NEWS (New commands): Mention new command
2330 "maintenance print core-file-backed-mappings".
2331
2332 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2333
2334 * corelow.c (gdbcmd.h): Include.
2335 (core_target::info_proc_mappings): New method.
2336 (get_current_core_target): New function.
2337 (maintenance_print_core_file_backed_mappings): New function.
2338 (_initialize_corelow): Add core-file-backed-mappings to
2339 "maint print" commands.
2340
2341 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2342
2343 * linux-tdep.c (dump_note_entry_p): New function.
2344 (linux_dump_mapping_p_ftype): New typedef.
2345 (linux_find_memory_regions_full): Add new parameter,
2346 should_dump_mapping_p.
2347 (linux_find_memory_regions): Adjust call to
2348 linux_find_memory_regions_full.
2349 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2350 call to linux_find_memory_regions_full.
2351
2352 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2353
2354 * corelow.c (solist.h, unordered_map): Include.
2355 (class core_target): Add field m_core_file_mappings and
2356 method build_file_mappings.
2357 (core_target::core_target): Call build_file_mappings.
2358 (core_target::~core_target): Free memory associated with
2359 m_core_file_mappings.
2360 (core_target::build_file_mappings): New method.
2361 (core_target::xfer_partial): Use m_core_file_mappings
2362 for memory transfers.
2363 * linux-tdep.c (linux_read_core_file_mappings): New
2364 function.
2365 (linux_core_info_proc_mappings): Rewrite to use
2366 linux_read_core_file_mappings.
2367 (linux_init_abi): Register linux_read_core_file_mappings.
2368
2369 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2370
2371 * arch-utils.c (default_read_core_file_mappings): New function.
2372 * arch-utils.c (default_read_core_file_mappings): Declare.
2373 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2374 * gdbarch.h, gdbarch.c: Regenerate.
2375
2376 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2377
2378 PR corefiles/25631
2379 * corelow.c (core_target:xfer_partial): Revise
2380 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2381 case after first checking the stratum beneath the core
2382 target.
2383 (has_all_memory): Return true.
2384 * target.c (raw_memory_xfer_partial): Revise comment
2385 regarding use of has_all_memory.
2386
2387 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2388
2389 * exec.h (section_table_xfer_memory): Revise declaration,
2390 replacing section name parameter with an optional callback
2391 predicate.
2392 * exec.c (section_table_xfer_memory): Likewise.
2393 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2394 of section_table_xfer_memory.
2395
2396 2020-07-22 Tom Tromey <tromey@adacore.com>
2397
2398 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2399 lookup_symbol_search_name.
2400
2401 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2402
2403 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2404 redundant local variable.
2405 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2406 reference, not pointer, update code accordingly.
2407
2408 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2409 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2410
2411 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2412 * jit.c (jit_breakpoint_re_set_internal): Use the
2413 `skip_jit_symbol_lookup` field.
2414
2415 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2416 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2417
2418 * jit.c (jit_read_descriptor): Define the descriptor address once,
2419 use twice.
2420 (jit_breakpoint_deleted): Move the declaration of the loop variable
2421 `iter` into the loop header.
2422 (jit_breakpoint_re_set_internal): Move the declaration of the local
2423 variable `objf_data` to the first point of definition.
2424 (jit_event_handler): Move the declaration of local variables
2425 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2426 Rename `objf` to `jited`.
2427
2428 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2429
2430 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2431 Remove.
2432 * jit.c (get_jiter_objfile_data): Update.
2433
2434 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2435 Simon Marchi <simon.marchi@polymtl.ca>
2436
2437 * jit.c (struct jit_program_space_data): Remove.
2438 (jit_program_space_key): Remove.
2439 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2440 stuff.
2441 (get_jit_program_space_data): Remove.
2442 (jit_breakpoint_deleted): Iterate on all of the program space's
2443 objfiles.
2444 (jit_inferior_init): Likewise.
2445 (jit_breakpoint_re_set_internal): Likewise. Also change return
2446 type to void.
2447 (jit_breakpoint_re_set): Pass current_program_space to
2448 jit_breakpoint_re_set_internal.
2449
2450 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2451
2452 * jit.h (struct jiter_objfile_data) <cached_code_address,
2453 jit_breakpoint>: Move to here from ...
2454 * jit.c (jit_program_space_data): ... here.
2455 (jiter_objfile_data::~jiter_objfile_data): Update.
2456 (jit_breakpoint_deleted): Update.
2457 (jit_breakpoint_re_set_internal): Update.
2458
2459 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2460
2461 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2462 checks.
2463 (jit_read_descriptor): Remove NULL check.
2464 (jit_event_handler): Add an assertion.
2465
2466 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2467
2468 * jit.h (struct jit_objfile_data): Split into...
2469 (struct jiter_objfile_data): ... this ...
2470 (struct jited_objfile_data): ... and this.
2471 * objfiles.h (struct objfile) <jit_data>: Remove.
2472 <jiter_data, jited_data>: New fields.
2473 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2474 (jiter_objfile_data::~jiter_objfile_data): ... this.
2475 (get_jit_objfile_data): Rename to ...
2476 (get_jiter_objfile_data): ... this.
2477 (add_objfile_entry): Update.
2478 (jit_read_descriptor): Use get_jiter_objfile_data.
2479 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2480 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2481 (jit_inferior_exit_hook): Use objfile's jited_data field.
2482
2483 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2484
2485 * jit.h: Forward-declare `struct minimal_symbol`.
2486 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2487 constructor, destructor, and an objfile* field.
2488 * jit.c (jit_objfile_data): Remove.
2489 (struct jit_objfile_data): Migrate from here to jit.h.
2490 (jit_objfile_data::~jit_objfile_data): New destructor
2491 implementation with code moved from free_objfile_data.
2492 (free_objfile_data): Delete.
2493 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2494 (jit_find_objf_with_entry_addr): Ditto.
2495 (jit_inferior_exit_hook): Ditto.
2496 (_initialize_jit): Remove the call to
2497 register_objfile_data_with_cleanup.
2498 * objfiles.h (struct objfile) <jit_data>: New field.
2499
2500 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2501
2502 * jit.h: Forward-declare `struct objfile`.
2503 (jit_event_handler): Add a second parameter, the JITer objfile.
2504 * jit.c (jit_read_descriptor): Change the signature to take the
2505 JITer objfile as an argument instead of the jit_program_space_data.
2506 (jit_inferior_init): Update the call to jit_read_descriptor.
2507 (jit_event_handler): Use the new JITer objfile argument when calling
2508 jit_read_descriptor.
2509 * breakpoint.c (handle_jit_event): Update the call to
2510 jit_event_handler to pass the JITer objfile.
2511
2512 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2513
2514 * gdbarch.c: Regenerate.
2515 * gdbarch.h: Regenerate.
2516 * gdbarch.sh (handle_segmentation_fault): Remove method.
2517 * infrun.c (handle_segmentation_fault): Remove.
2518 (print_signal_received_reason): Remove call to
2519 handle_segmentation_fault.
2520
2521 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2522
2523 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2524 Rename to sparc64_linux_report_signal_info and add siggnal
2525 argument.
2526 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2527 instead of sparc64_linux_handle_segmentation_fault.
2528
2529 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2530
2531 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2532 i386_linux_report_signal_info instead of
2533 i386_linux_handle_segmentation_fault.
2534 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2535 to i386_linux_report_signal_info and add siggnal argument.
2536 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2537 of i386_linux_handle_segmentation_fault.
2538 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2539 to i386_linux_report_signal_info and add siggnal argument.
2540
2541 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2542
2543 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2544 hook if present.
2545
2546 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2547
2548 * gdbarch.c: Regenerate.
2549 * gdbarch.h: Regenerate.
2550 * gdbarch.sh (report_signal_info): New method.
2551 * infrun.c (print_signal_received_reason): Invoke gdbarch
2552 report_signal_info hook if present.
2553
2554 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2555
2556 * python/py-registers.c : Add 'unordered_map' include.
2557 (gdbpy_new_reggroup): Renamed to...
2558 (gdbpy_get_reggroup): ...this. Update to only create register
2559 group descriptors when needed.
2560 (gdbpy_reggroup_iter_next): Update.
2561
2562 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2563
2564 * python/py-registers.c (gdbpy_register_object_data): New static
2565 global.
2566 (gdbpy_register_object_data_init): New function.
2567 (gdbpy_new_register_descriptor): Renamed to...
2568 (gdbpy_get_register_descriptor): ...this, and update to reuse
2569 existing register descriptors where possible.
2570 (gdbpy_register_descriptor_iter_next): Update.
2571 (gdbpy_initialize_registers): Register new gdbarch data.
2572
2573 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2574
2575 * linux-nat.c (stopped_pids): Make static.
2576
2577 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2578
2579 PR ada/26235
2580 * gdbtypes.c (ada_discrete_type_low_bound,
2581 ada_discrete_type_high_bound): Handle undefined bounds.
2582
2583 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2584
2585 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2586 declaration.
2587 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2588 function.
2589
2590 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2591
2592 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2593 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2594 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2595 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2596 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2597 method.
2598
2599 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2600
2601 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2602 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2603 which are deprecated in Guile 3.0.
2604 * configure.ac (try_guile_versions): Add "guile-3.0".
2605 * configure (try_guile_versions): Regenerate.
2606 * NEWS: Update entry.
2607
2608 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2609 Doug Evans <dje@google.com>
2610
2611 PR gdb/21104
2612 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2613 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2614 USING_GUILE_BEFORE_2_2.
2615 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2616 Change type to 'scm_t_port_type *'.
2617 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2618 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2619 parameter and honor it. Update callers.
2620 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2621 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2622 functions.
2623 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2624 USING_GUILE_BEFORE_2_2.
2625 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2626 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2627 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2628 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2629 and 'SCM_PORT_TYPE'.
2630 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2631 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2632 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2633 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2634 [!USING_GUILE_BEFORE_2_2]: New functions.
2635 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2636 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2637 'gdbscm_memory_port_read'.
2638 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2639 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2640 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2641 function.
2642 (ioscm_init_memory_port): Remove.
2643 (ioscm_init_memory_port_stream): New function
2644 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2645 function.
2646 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2647 Return scm_from_uint (0).
2648 (gdbscm_set_memory_port_read_buffer_size_x)
2649 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2650 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2651 Return scm_from_uint (0).
2652 (gdbscm_set_memory_port_write_buffer_size_x)
2653 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2654 * configure.ac (try_guile_versions): Add "guile-2.2".
2655 * configure: Regenerate.
2656 * NEWS: Add entry.
2657
2658 2020-07-18 Tom Tromey <tom@tromey.com>
2659
2660 * linux-nat.c (linux_multi_process): Remove.
2661 (linux_nat_target::supports_multi_process): Return true.
2662
2663 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2664
2665 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2666 (riscv_lookup_target_description): Return pointer out of
2667 unique_ptr.
2668 * target-descriptions.c (allocate_target_description): Add
2669 comment.
2670 (target_desc_deleter::operator()): Likewise.
2671 * target-descriptions.h (struct target_desc_deleter): Moved to
2672 gdbsupport/tdesc.h.
2673 (target_desc_up): Likewise.
2674
2675 2020-07-17 Tom Tromey <tromey@adacore.com>
2676
2677 * linux-nat.c (linux_nat_target::supports_non_stop)
2678 (linux_nat_target::always_non_stop_p): Use "true".
2679 (linux_nat_target::supports_disable_randomization): Use "true" and
2680 "false".
2681
2682 2020-07-16 Caroline Tice <cmtice@google.com>
2683
2684 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2685 (RNGLIST_HEADER_SIZE64): New constant definition.
2686 (struct dwop_section_names): Add rnglists_dwo.
2687 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2688 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2689 (struct dwo_sections): Add rnglists field.
2690 (read_attribut_reprocess): Add tag parameter.
2691 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2692 (cu_debug_rnglists_section): New function (decl & definition).
2693 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2694 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2695 die whose range is being checked; get rnglist section from
2696 cu_debug_rnglists_section, to get from either objfile or dwo file as
2697 appropriate. Add cases for DW_RLE_base_addressx,
2698 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2699 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2700 test inside if-condition and updating complaint message.
2701 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2702 dwarf2_rnglists_process.
2703 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2704 dwarf2_ranges_process.
2705 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2706 need_ranges_base and update comment appropriately. Also pass die tag
2707 to dwarf2_ranges_read.
2708 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2709 need_ranges_base and update comment appropriately. Also pass die tag
2710 to dwarf2_ranges_process.
2711 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2712 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2713 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2714 need_ranges_base and update comment appropriately. Also pass die tag
2715 to read_attribute_reprocess and dwarf2_ranges_read.
2716 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2717 and update function comment appropriately.
2718 (read_loclist_index): Call read_loclists_rnglists_header instead of
2719 read_loclist_header.
2720 (read_rnglist_index): New function.
2721 (read_attribute_reprocess): Add tag parameter. Add code for
2722 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2723 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2724
2725 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2726
2727 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2728 being resolved.
2729
2730 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2731
2732 * arch-utils.c (show_architecture): Update formatting of messages.
2733
2734 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2735
2736 * gdbtypes.h (struct type) <bounds>: Handle array and string
2737 types.
2738 * ada-lang.c (assign_aggregate): Use type::bounds on
2739 array/string type.
2740 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2741 * c-varobj.c (c_number_of_children): Likewise.
2742 (c_describe_child): Likewise.
2743 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2744 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2745 (f_type_print_base): Likewise.
2746 * f-valprint.c (f77_array_offset_tbl): Likewise.
2747 (f77_get_upperbound): Likewise.
2748 (f77_print_array_1): Likewise.
2749 * guile/scm-type.c (gdbscm_type_range): Likewise.
2750 * m2-typeprint.c (m2_array): Likewise.
2751 (m2_is_long_set_of_type): Likewise.
2752 * m2-valprint.c (get_long_set_bounds): Likewise.
2753 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2754 * python/py-type.c (typy_range): Likewise.
2755 * rust-lang.c (rust_internal_print_type): Likewise.
2756 * type-stack.c (type_stack::follow_types): Likewise.
2757 * valarith.c (value_subscripted_rvalue): Likewise.
2758 * valops.c (value_cast): Likewise.
2759
2760 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2761
2762 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2763 callers to use the equivalent accessor methods.
2764
2765 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2766
2767 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2768 (struct type) <bit_stride>: New method.
2769 (TYPE_BIT_STRIDE): Remove.
2770 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2771
2772 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2773
2774 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2775 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2776 callers to use the equivalent accessor methods instead.
2777
2778 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2779
2780 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2781 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2782 callers to use the equivalent accessor methods instead.
2783
2784 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2785
2786 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2787 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2788 to use dynamic_prop::kind.
2789
2790 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2791
2792 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2793 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2794 to get the bound property's kind and check against
2795 PROP_UNDEFINED.
2796
2797 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2798
2799 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2800 all callers to use type::range_bounds followed by
2801 dynamic_prop::{low,high}.
2802
2803 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2804
2805 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2806 const_val, set_const_val, baton, set_locexpr, set_loclist,
2807 set_addr_offset, variant_parts, set_variant_parts,
2808 original_type, set_original_type>: New methods.
2809 <kind>: Rename to...
2810 <m_kind>: ... this. Update all users to use the new methods
2811 instead.
2812 <data>: Rename to...
2813 <m_data>: ... this. Update all users to use the new methods
2814 instead.
2815
2816 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2817
2818 * gdbtypes.c (get_discrete_bounds): Return failure if
2819 the range type's bounds are not both defined and constant
2820 values.
2821 (get_array_bounds): Update comment. Remove undefined bound check.
2822
2823 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2824
2825 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2826 the type::bounds method directly.
2827
2828 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2829
2830 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2831 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2832 are used to set the range type's bounds to use set_bounds.
2833
2834 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2835
2836 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2837
2838 2020-07-10 Pedro Alves <pedro@palves.net>
2839
2840 * gdbthread.h (inferior_ref): Define.
2841 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2842 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2843 * thread.c
2844 (scoped_restore_current_thread::restore):
2845 Adjust to gdb::ref_ptr.
2846 (scoped_restore_current_thread::~scoped_restore_current_thread):
2847 Remove manual decref handling.
2848 (scoped_restore_current_thread::scoped_restore_current_thread):
2849 Adjust to use
2850 inferior_ref::new_reference/thread_info_ref::new_reference.
2851 Incref the thread before calling get_frame_id instead of after.
2852 Let TARGET_CLOSE_ERROR propagate.
2853
2854 2020-07-10 Pedro Alves <pedro@palves.net>
2855
2856 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2857 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2858 NOT_AVAILABLE_ERROR.
2859 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2860 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2861
2862 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2863 Pedro Alves <pedro@palves.net>
2864
2865 PR gdb/26199
2866 * infrun.c (threads_are_resumed_pending_p): Delete.
2867 (do_target_wait): Remove threads_are_executing and
2868 threads_are_resumed_pending_p checks from the inferior_matches
2869 lambda. Update comments.
2870
2871 2020-07-10 Pedro Alves <pedro@palves.net>
2872
2873 PR gdb/26199
2874 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2875 executing threads.
2876
2877 2020-07-10 Pedro Alves <pedro@palves.net>
2878
2879 PR gdb/26199
2880 * infrun.c (handle_no_resumed): Handle multiple targets.
2881
2882 2020-07-10 Pedro Alves <pedro@palves.net>
2883
2884 PR gdb/26199
2885 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2886 target_is_async_p.
2887
2888 2020-07-10 Pedro Alves <pedro@palves.net>
2889
2890 PR gdb/26199
2891 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2892 threads, not all threads.
2893
2894 2020-07-10 Pedro Alves <pedro@palves.net>
2895
2896 PR gdb/26199
2897 * remote.c (remote_target::open_1): Pass remote target pointer as
2898 data to create_async_event_handler.
2899 (remote_async_inferior_event_handler): Mark async event handler
2900 before returning if the remote target still has either pending
2901 events or unacknowledged notifications.
2902
2903 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2904
2905 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2906 declaration.
2907 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2908 function.
2909
2910 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2911
2912 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2913 inferior_ptid.
2914
2915 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2916
2917 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2918 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2919 AT_FREEBSD_PS_STRINGS.
2920
2921 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2922
2923 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2924 of debugfile path on Windows.
2925
2926 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2927
2928 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2929 argument to 'data'.
2930
2931 2020-07-08 Tom Tromey <tromey@adacore.com>
2932
2933 * ada-lang.c (ada_exception_message_1): Use read_memory.
2934
2935 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2936
2937 PR python/22748
2938 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2939 special handling for inline frames.
2940 * findvar.c (value_of_register_lazy): Skip inline frames when
2941 creating lazy register values.
2942 * frame.c (frame_id_computed_p): Delete definition.
2943 * frame.h (frame_id_computed_p): Delete declaration.
2944
2945 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2946
2947 * NEWS: Mention additions to Python API.
2948 * python/py-arch.c (archpy_register_groups): New function.
2949 (arch_object_methods): Add 'register_groups' method.
2950 * python/py-registers.c (reggroup_iterator_object): New struct.
2951 (reggroup_object): New struct.
2952 (gdbpy_new_reggroup): New function.
2953 (gdbpy_reggroup_to_string): New function.
2954 (gdbpy_reggroup_name): New function.
2955 (gdbpy_reggroup_iter): New function.
2956 (gdbpy_reggroup_iter_next): New function.
2957 (gdbpy_new_reggroup_iterator): New function
2958 (gdbpy_initialize_registers): Register new types.
2959 (reggroup_iterator_object_type): Define new Python type.
2960 (gdbpy_reggroup_getset): New static global.
2961 (reggroup_object_type): Define new Python type.
2962 * python/python-internal.h
2963
2964 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2967 * python/py-arch.c (archpy_registers): New function.
2968 (arch_object_methods): Add 'registers' method.
2969 * python/py-registers.c: New file.
2970 * python/python-internal.h
2971 (gdbpy_new_register_descriptor_iterator): Declare.
2972 (gdbpy_initialize_registers): Declare.
2973 * python/python.c (do_start_initialization): Call
2974 gdbpy_initialize_registers.
2975 * NEWS: Mention additions to the Python API.
2976
2977 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2978
2979 * NEWS: Mention new Python API method.
2980 * python/py-unwind.c (pending_framepy_architecture): New function.
2981 (pending_frame_object_methods): Add architecture method.
2982
2983 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2984
2985 * gdbarch.c: Regenerate.
2986 * gdbarch.h: Regenerate.
2987 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2988 (gdbarch_data): Use internal_error for the case where
2989 deprecated_set_gdbarch_data was originally needed.
2990 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2991 and use passed in obstack.
2992 (libunwind_frame_set_descr): Should no longer get back NULL from
2993 gdbarch_data.
2994 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2995 type.
2996 * user-regs.c (user_regs_init): Update parameters, and use passed
2997 in obstack.
2998 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2999 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3000
3001 2020-07-06 Tom de Vries <tdevries@suse.de>
3002
3003 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3004 End-Of-Sequence in lte_is_less_than.
3005 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3006 "gdb: Don't reorder line table entries too much when sorting".
3007
3008 2020-07-06 Tom de Vries <tdevries@suse.de>
3009
3010 PR tui/26205
3011 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3012
3013 2020-07-05 Tom de Vries <tdevries@suse.de>
3014
3015 PR build/26187
3016 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3017 std::uncaught_exceptions instead of deprecated
3018 std::uncaught_exception.
3019
3020 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3021
3022 * macroexp.h (macro_stringify): Return
3023 gdb::unique_xmalloc_ptr<char>.
3024 * macroexp.c (macro_stringify): Likewise.
3025 * macrotab.c (fixup_definition): Update.
3026
3027 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3028
3029 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3030 (lex_one_token): Update.
3031 * macroexp.c (struct macro_buffer) <release>: Return
3032 gdb::unique_xmalloc_ptr<char>.
3033 (macro_stringify): Update.
3034 (macro_expand): Update.
3035 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3036 * macroexp.h (macro_expand_next): Likewise.
3037
3038 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * macroexp.h (macro_lookup_ftype): Remove.
3041 (macro_expand, macro_expand_once, macro_expand_next): Remove
3042 lookup function parameters, add scope parameter.
3043 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3044 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3045 * macroscope.h (standard_macro_lookup): Change parameter type
3046 to macro_scope.
3047 * macroscope.c (standard_macro_lookup): Likewise.
3048 * c-exp.y (lex_one_token): Update.
3049 * macrocmd.c (macro_expand_command): Likewise.
3050 (macro_expand_once_command): Likewise.
3051
3052 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3053
3054 * inf-loop.c (inferior_event_handler): Remove client_data param.
3055 * inf-loop.h (inferior_event_handler): Likewise.
3056 * infcmd.c (step_1): Adjust.
3057 * infrun.c (proceed): Adjust.
3058 (fetch_inferior_event): Remove client_data param.
3059 (infrun_async_inferior_event_handler): Adjust.
3060 * infrun.h (fetch_inferior_event): Remove `void *` param.
3061 * linux-nat.c (handle_target_event): Adjust.
3062 * record-btrace.c (record_btrace_handle_async_inferior_event):
3063 Adjust.
3064 * record-full.c (record_full_async_inferior_event_handler):
3065 Adjust.
3066 * remote.c (remote_async_inferior_event_handler): Adjust.
3067
3068 2020-07-01 Tom Tromey <tom@tromey.com>
3069
3070 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3071 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3072
3073 2020-07-01 Tom Tromey <tom@tromey.com>
3074
3075 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3076 tui_gen_win_info.
3077 (tui_win_info::make_window): Merge with
3078 tui_gen_win_info::make_window.
3079 (tui_win_info::make_visible): Move from tui_gen_win_info.
3080 * tui/tui-win.c (tui_win_info::max_width): Move from
3081 tui_gen_win_info.
3082 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3083 type.
3084 <window_factory>: Likewise.
3085 * tui/tui-layout.c (tui_win_info::resize): Move from
3086 tui_gen_win_info.
3087 (make_standard_window): Change return type.
3088 (get_locator_window, tui_get_window_by_name): Likewise.
3089 (tui_layout_window::apply): Remove a cast.
3090 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3091 (struct tui_win_info): Merge with tui_gen_win_info.
3092 (struct tui_gen_win_info): Remove.
3093
3094 2020-07-01 Tom Tromey <tom@tromey.com>
3095
3096 * tui/tui-stack.h (struct tui_locator_window): Derive from
3097 tui_win_info.
3098 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3099 <can_box>: New method.
3100
3101 2020-07-01 Tom Tromey <tom@tromey.com>
3102
3103 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3104
3105 2020-07-01 Tom Tromey <tom@tromey.com>
3106
3107 * tui/tui-regs.c (tui_data_window::display_registers_from)
3108 (tui_data_window::display_registers_from)
3109 (tui_data_window::first_data_item_displayed)
3110 (tui_data_window::delete_data_content_windows): Update.
3111 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3112 Remove.
3113 (tui_data_window::check_register_values): Update.
3114 (tui_data_item_window::rerender): Add parameters. Update.
3115 (tui_data_item_window::refresh_window): Remove.
3116 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3117 virtual.
3118 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3119 tui_gen_win_info.
3120 <refresh_window, max_height, min_height>: Remove.
3121 <rerender>: Add parameters.
3122 <x, y, visible>: New members.
3123 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3124 <m_item_width>: New member.
3125
3126 2020-07-01 Tom Tromey <tom@tromey.com>
3127
3128 * tui/tui-regs.c (tui_data_window::show_register_group)
3129 (tui_data_window::check_register_values): Update.
3130 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3131 from item_no.
3132
3133 2020-07-01 Tom Tromey <tom@tromey.com>
3134
3135 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3136 useless "if".
3137
3138 2020-07-01 Tom Tromey <tom@tromey.com>
3139
3140 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3141 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3142
3143 2020-07-01 Tom Tromey <tom@tromey.com>
3144
3145 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3146 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3147 (struct tui_line_or_address): Move from tui-data.h.
3148 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3149 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3150 (tui_cmd_window, tui_source_window_base, tui_source_window)
3151 (tui_disasm_window): Don't declare.
3152 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3153 to tui-winsource.h.
3154 (SINGLE_KEY): Move to tui-stack.c.
3155
3156 2020-07-01 Tom Tromey <tom@tromey.com>
3157
3158 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3159 std::string.
3160 * tui/tui-regs.c (class tab_expansion_file): New.
3161 (tab_expansion_file::write): New method.
3162 (tui_register_format): Change return type. Use
3163 tab_expansion_file.
3164 (tui_get_register, tui_data_window::display_registers_from)
3165 (tui_data_item_window::rerender): Update.
3166 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3167 * tui/tui-io.c (tui_expand_tabs): Remove.
3168
3169 2020-07-01 Tom Tromey <tom@tromey.com>
3170
3171 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3172
3173 2020-07-01 Fangrui Song <maskray@google.com>
3174
3175 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3176
3177 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3178
3179 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3180 forms for DW_AT_associated and DW_AT_allocated attributes,
3181 which is already checked in function attr_to_dynamic_prop.
3182
3183 2020-06-30 Tom Tromey <tromey@adacore.com>
3184
3185 * dwarf2/read.c (quirk_rust_enum): Correctly call
3186 alloc_rust_variant for default-less enum.
3187
3188 2020-06-30 Tom Tromey <tromey@adacore.com>
3189
3190 PR build/26183:
3191 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3192 gdb::to_string.
3193
3194 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3195
3196 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3197 * gdbarch.h: Re-generate.
3198
3199 2020-06-28 Tom Tromey <tom@tromey.com>
3200
3201 * command.h (cmd_types): Remove.
3202 (cmd_type): Don't declare.
3203 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3204 typedef.
3205 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3206 * cli/cli-decode.c (cmd_type): Remove.
3207
3208 2020-06-27 Pedro Alves <palves@redhat.com>
3209
3210 * fork-child.c (prefork_hook): Adjust.
3211 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3212 Delete.
3213 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3214 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3215 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3216 Remove declarations.
3217 (struct inferior) <set_tty, tty>: New methods.
3218 (struct inferior) <terminal>: Rename to ...
3219 (struct inferior) <m_terminal>: ... this and make private.
3220 * main.c (captured_main_1): Adjust.
3221 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3222 (mi_cmd_inferior_tty_show): Adjust.
3223 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3224 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3225
3226 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3227
3228 * configure.ac: Add --enable-libctf: handle --disable-static
3229 properly.
3230 * acinclude.m4: sinclude ../config/enable.m4.
3231 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3232 (LIBCTF): Substitute in.
3233 (CTF_DEPS): New, likewise.
3234 (CLIBS): libctf needs symbols from libbfd: move earlier.
3235 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3236 flags.
3237 * ctfread.c: Surround in ENABLE_LIBCTF.
3238 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3239 * configure: Regenerate.
3240 * config.in: Likewise.
3241
3242 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3243
3244 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3245
3246 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3247
3248 * inferior.h (struct inferior) <terminal>: Change type to
3249 gdb::unique_xmalloc_ptr<char>.
3250 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3251 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3252 field, adjust to unique pointer.
3253 (get_inferior_io_terminal): Adjust to unique pointer.
3254
3255 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3256
3257 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3258 registers, not just the known core set of registers.
3259
3260 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3261
3262 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3263 fflags, frm, and fcsr registers.
3264 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3265 restore groups.
3266 (riscv_tdesc_unknown_reg): New function.
3267 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3268 tdesc_use_registers.
3269 * riscv-tdep.h (struct gdbarch_tdep): Add
3270 unknown_csrs_first_regnum, unknown_csrs_count,
3271 duplicate_fflags_regnum, duplicate_frm_regnum, and
3272 duplicate_fcsr_regnum fields.
3273
3274 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3275
3276 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3277 callback, use the callback (when not null) to help number unknown
3278 registers.
3279 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3280 (tdesc_use_registers): Add extra parameter to declaration.
3281
3282 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3283
3284 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3285 in the file.
3286 (class riscv_pending_register_alias): Likewise.
3287 (riscv_register_feature::register_info): Change 'required_p' field
3288 to 'required', and change its type. Add 'check' member function.
3289 (riscv_register_feature::register_info::check): Define new member
3290 function.
3291 (riscv_xreg_feature): Change initialisation of 'required' field.
3292 (riscv_freg_feature): Likewise.
3293 (riscv_virtual_feature): Likewise.
3294 (riscv_csr_feature): Likewise.
3295 (riscv_check_tdesc_feature): Take extra parameter, the csr
3296 tdesc_feature, rewrite the function to use the new
3297 riscv_register_feature::register_info::check function.
3298 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3299
3300 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3301
3302 * features/Makefile: Remove all references to the deleted files
3303 below.
3304 * features/riscv/32bit-csr.c: Deleted.
3305 * features/riscv/32bit-csr.xml: Deleted.
3306 * features/riscv/64bit-csr.c: Deleted.
3307 * features/riscv/64bit-csr.xml: Deleted.
3308 * features/riscv/rebuild-csr-xml.sh: Deleted.
3309
3310 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3311
3312 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3313 whitespace error for declaration of names member variable.
3314 (struct riscv_register_feature): Add new prefer_first_name member
3315 variable, and fix whitespace error in declaration of registers.
3316 (riscv_xreg_feature): Initialize prefer_first_name field.
3317 (riscv_freg_feature): Likewise.
3318 (riscv_virtual_feature): Likewise.
3319 (riscv_csr_feature): Likewise.
3320 (riscv_register_name): Expand on comments. Remove register name
3321 modifications for CSR and virtual registers.
3322
3323 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3324
3325 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3326 errors.
3327
3328 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3329
3330 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3331 riscv-opc.h.
3332 (class riscv_pending_register_alias): New class.
3333 (riscv_check_tdesc_feature): Take vector of pending aliases and
3334 populate it as appropriate.
3335 (riscv_setup_register_aliases): Delete.
3336 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3337 to riscv_check_tdesc_feature in all cases. Use the vector to
3338 create the register aliases.
3339
3340 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3341
3342 * sol2-tdep.c (sol2_static_transform_name): Remove.
3343 (sol2_init_abi): Don't register it.
3344 * gdbarch.sh (static_transform_name): Remove.
3345 * gdbarch.c, gdbarch.h: Regenerate.
3346
3347 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3348 gdbarch_static_transform_name.
3349 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3350 * stabsread.c (define_symbol) <'X'>: Remove.
3351 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3352 handling.
3353 <'V'>: Likewise.
3354 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3355 <'S'>: Remove call to gdbarch_static_transform_name.
3356
3357 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3358
3359 * procfs.c (procfs_pre_trace): New function.
3360 (procfs_target::create_inferior): Pass it to fork_inferior.
3361
3362 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3363
3364 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3365 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3366 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3367 sol2-tdep.o, sparc-sol2-tdep.o.
3368 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3369 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3370 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3371 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3372
3373 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3374
3375 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3376 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3377 Call sol2_init_abi.
3378 Remove calls to set_gdbarch_skip_solib_resolver,
3379 set_gdbarch_core_pid_to_str.
3380 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3381 (i386_sol2_static_transform_name): Remove.
3382 (i386_sol2_init_abi): Call sol2_init_abi.
3383 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3384 set_gdbarch_static_transform_name,
3385 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3386 Use sol2_sigtramp_p.
3387 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3388 (sol2_sigtramp_p): New function.
3389 (sol2_static_transform_name): New function.
3390 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3391 (sol2_init_abi): New function.
3392 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3393 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3394 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3395 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3396 (sparc_sol2_static_transform_name): Remove.
3397 (sparc32_sol2_init_abi): Call sol2_init_abi.
3398 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3399 set_gdbarch_static_transform_name,
3400 set_gdbarch_skip_solib_resolver,
3401 set_gdbarch_core_pid_to_str.
3402 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3403 (sparc_sol2_static_transform_name): Remove
3404 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3405 call sol2_sigtramp_p.
3406 (sparc64_sol2_init_abi): Call sol2_init_abi.
3407 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3408 set_gdbarch_static_transform_name,
3409 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3410
3411 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3412
3413 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3414 * exec.c (validate_exec_file): If from_tty, set both
3415 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3416 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3417 and from_tty, unconditionally ask a confirmation.
3418
3419 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3420
3421 * target-descriptions.c (tdesc_architecture_name): Protect against
3422 NULL pointer dereference.
3423 (maint_print_xml_tdesc_cmd): New function.
3424 (_initialize_target_descriptions): Register new 'maint print
3425 xml-tdesc' command and give it the filename completer.
3426 * NEWS: Mention new 'maint print xml-tdesc' command.
3427
3428 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3429
3430 * target-descriptions.c (class tdesc_compatible_info): New class.
3431 (struct target_desc): Change type of compatible vector.
3432 (tdesc_compatible_p): Update for change in type of
3433 target_desc::compatible.
3434 (tdesc_compatible_info_list): New function.
3435 (tdesc_compatible_info_arch_name): New function.
3436 (tdesc_add_compatible): Update for change in type of
3437 target_desc::compatible.
3438 (print_c_tdesc::visit_pre): Likewise.
3439
3440 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3441
3442 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3443 whitespace to underscore.
3444 (maint_print_c_tdesc_cmd): Use fake filename for target
3445 descriptions that came from the target.
3446 (_initialize_target_descriptions): Add filename command completion
3447 for 'maint print c-tdesc'.
3448
3449 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3450
3451 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3452 lines.
3453
3454 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3455
3456 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3457 lines.
3458 (dwarf2_find_location_expression): Likewise.
3459 (call_site_parameter_matches): Likewise.
3460 (dwarf2_compile_expr_to_ax): Likewise.
3461 (disassemble_dwarf_expression): Likewise.
3462 (loclist_describe_location): Likewise.
3463
3464 2020-06-23 Pedro Alves <palves@redhat.com>
3465
3466 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3467 progspace-and-thread.h. Include scoped-mock-context.h instead.
3468 (register_to_value_test): Use scoped_mock_context.
3469 * regcache.c: Include "scoped-mock-context.h".
3470 (cooked_read_test): Don't error out if a target is already pushed.
3471 Use scoped_mock_context. Adjust.
3472 * scoped-mock-context.h: New file.
3473
3474 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3475
3476 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3477 initializer.
3478 (ada_language::is_string_type_p): New member function.
3479 * c-lang.c (c_language_data): Delete la_is_string_type_p
3480 initializer.
3481 (cplus_language_data): Likewise.
3482 (asm_language_data): Likewise.
3483 (minimal_language_data): Likewise.
3484 * d-lang.c (d_language_data): Likewise.
3485 * f-lang.c (f_is_string_type_p): Delete function, implementation
3486 moved to f_language::is_string_type_p.
3487 (f_language_data): Delete la_is_string_type_p initializer.
3488 (f_language::is_string_type_p): New member function,
3489 implementation from f_is_string_type_p.
3490 * go-lang.c (go_is_string_type_p): Delete function, implementation
3491 moved to go_language::is_string_type_p.
3492 (go_language_data): Delete la_is_string_type_p initializer.
3493 (go_language::is_string_type_p): New member function,
3494 implementation from go_is_string_type_p.
3495 * language.c (language_defn::is_string_type_p): Define new member
3496 function.
3497 (default_is_string_type_p): Make static, add comment copied from
3498 header file.
3499 (unknown_language_data): Delete la_is_string_type_p initializer.
3500 (unknown_language::is_string_type_p): New member function.
3501 (auto_language_data): Delete la_is_string_type_p initializer.
3502 (auto_language::is_string_type_p): New member function.
3503 * language.h (language_data): Delete la_is_string_type_p field.
3504 (language_defn::is_string_type_p): Declare new function.
3505 (default_is_string_type_p): Delete desclaration, move comment to
3506 definition.
3507 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3508 moved to m2_language::is_string_type_p.
3509 (m2_language_data): Delete la_is_string_type_p initializer.
3510 (m2_language::is_string_type_p): New member function,
3511 implementation from m2_is_string_type_p.
3512 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3513 initializer.
3514 * opencl-lang.c (opencl_language_data): Likewise.
3515 * p-lang.c (pascal_is_string_type_p): Delete function,
3516 implementation moved to pascal_language::is_string_type_p.
3517 (pascal_language_data): Delete la_is_string_type_p initializer.
3518 (pascal_language::is_string_type_p): New member function,
3519 implementation from pascal_is_string_type_p.
3520 * rust-lang.c (rust_is_string_type_p): Delete function,
3521 implementation moved to rust_language::is_string_type_p.
3522 (rust_language_data): Delete la_is_string_type_p initializer.
3523 (rust_language::is_string_type_p): New member function,
3524 implementation from rust_is_string_type_p.
3525 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3526 is_string_type_p.
3527
3528 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3529
3530 * ada-lang.c (ada_language_data): Delete la_print_typedef
3531 initializer.
3532 (ada_language::print_typedef): New member function.
3533 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3534 (cplus_language_data): Likewise.
3535 (asm_language_data): Likewise.
3536 (minimal_language_data): Likewise.
3537 * d-lang.c (d_language_data): Likewise.
3538 * f-lang.c (f_language_data): Likewise.
3539 (f_language::print_typedef): New member function.
3540 * go-lang.c (go_language_data): Delete la_print_typedef
3541 initializer.
3542 * language.c (language_defn::print_typedef): Define member
3543 function.
3544 (unknown_language_data): Delete la_print_typedef initializer.
3545 (unknown_language::print_typedef): New member function.
3546 (auto_language_data): Delete la_print_typedef initializer.
3547 (auto_language::print_typedef): New member function.
3548 * language.h (language_data): Delete la_print_typedef field.
3549 (language_defn::print_typedef): Declare new member function.
3550 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3551 (default_print_typedef): Delete declaration.
3552 * m2-lang.c (m2_language_data): Delete la_print_typedef
3553 initializer.
3554 (m2_language::print_typedef): New member function.
3555 * objc-lang.c (objc_language_data): Delete la_print_typedef
3556 initializer.
3557 * opencl-lang.c (opencl_language_data): Likewise.
3558 * p-lang.c (pascal_language_data): Likewise.
3559 (pascal_language::print_typedef): New member function.
3560 * rust-lang.c (rust_print_typedef): Delete function,
3561 implementation moved to rust_language::print_typedef.
3562 (rust_language): Delete la_print_typedef initializer.
3563 (rust_language::print_typedef): New member function,
3564 implementation from rust_print_typedef.
3565 * typeprint.c (default_print_typedef): Delete.
3566
3567 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3568
3569 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3570 (ada_language::printstr): New member function.
3571 * c-lang.c (c_language_data): Delete la_printstr initializer.
3572 (cplus_language_data): Likewise.
3573 (asm_language_data): Likewise.
3574 (minimal_language_data): Likewise.
3575 * d-lang.c (d_language_data): Likewise.
3576 * f-lang.c (f_printstr): Rename to f_language::printstr.
3577 (f_language_data): Delete la_printstr initializer.
3578 (f_language::printstr): New member function, implementation from
3579 f_printstr.
3580 * go-lang.c (go_language_data): Delete la_printstr initializer.
3581 * language.c (language_defn::printstr): Define new member
3582 function.
3583 (unk_lang_printstr): Delete.
3584 (unknown_language_data): Delete la_printstr initializer.
3585 (unknown_language::printstr): New member function.
3586 (auto_language_data): Delete la_printstr initializer.
3587 (auto_language::printstr): New member function.
3588 * language.h (language_data): Delete la_printstr field.
3589 (language_defn::printstr): Declare new member function.
3590 (LA_PRINT_STRING): Update call to printstr.
3591 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3592 (m2_language_data): Delete la_printstr initializer.
3593 (m2_language::printstr): New member function, implementation from
3594 m2_printstr.
3595 * objc-lang.c (objc_language_data): Delete la_printstr
3596 initializer.
3597 * opencl-lang.c (opencl_language_data): Likewise.
3598 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3599 (pascal_language_data): Delete la_printstr initializer.
3600 (pascal_language::printstr): New member function, implementation
3601 from pascal_printstr.
3602 * p-lang.h (pascal_printstr): Delete declaration.
3603 * rust-lang.c (rust_printstr): Update header comment.
3604 (rust_language_data): Delete la_printstr initializer.
3605 (rust_language::printstr): New member function.
3606
3607 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3608
3609 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3610 (ada_language::printchar): New member function.
3611 * c-lang.c (c_language_data): Delete la_printchar initializer.
3612 (cplus_language_data): Likewise.
3613 (asm_language_data): Likewise.
3614 (minimal_language_data): Likewise.
3615 * d-lang.c (d_language_data): Likewise.
3616 * f-lang.c (f_printchar): Rename to f_language::printchar.
3617 (f_language_data): Delete la_printchar initializer.
3618 (f_language::printchar): New member function, implementation from
3619 f_printchar.
3620 * go-lang.c (go_language_data): Delete la_printchar initializer.
3621 * language.c (unk_lang_printchar): Delete.
3622 (language_defn::printchar): Define new member function.
3623 (unknown_language_data): Delete la_printchar initializer.
3624 (unknown_language::printchar): New member function.
3625 (auto_language_data): Delete la_printchar initializer.
3626 (auto_language::printchar): New member function.
3627 * language.h (language_data): Delete la_printchar field.
3628 (language_defn::printchar): Declare new member function.
3629 (LA_PRINT_CHAR): Update call to printchar.
3630 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3631 (m2_language::printchar): New member function.
3632 * objc-lang.c (objc_language_data): Delete la_printchar
3633 initializer.
3634 * opencl-lang.c (opencl_language_data): Likewise.
3635 * p-lang.c (pascal_language_data): Delete la_printchar
3636 initializer.
3637 (pascal_language::printchar): New member function.
3638 * rust-lang.c (rust_printchar): Rename to
3639 rust_language::printchar.
3640 (rust_language_data): Delete la_printchar initializer.
3641 (rust_language::printchar): New member function, implementation
3642 from rust_printchar.
3643
3644 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3645
3646 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3647 (ada_language_data): Delete la_emitchar initializer.
3648 (ada_language::emitchar): New member function, implementation from
3649 emit_char.
3650 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3651 (cplus_language_data): Likewise.
3652 (asm_language_data): Likewise.
3653 (minimal_language_data): Likewise.
3654 * d-lang.c (d_language_data): Likewise.
3655 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3656 (f_language_data): Delete la_emitchar initializer.
3657 (f_language::emitchar): New member function, implementation from
3658 f_emit_char.
3659 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3660 * language.c (unk_lang_emit_char): Delete.
3661 (language_defn::emitchar): New member function definition.
3662 (unknown_language_data): Delete la_emitchar initializer.
3663 (unknown_language::emitchar): New member function.
3664 (auto_language_data): Delete la_emitchar initializer.
3665 (auto_language::emitchar): New member function.
3666 * language.h (language_data): Delete la_emitchar field.
3667 (language_defn::emitchar): New member field declaration.
3668 (LA_EMIT_CHAR): Update call to emitchar.
3669 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3670 (m2_language_data): Delete la_emitchar initializer.
3671 (m2_language::emitchar): New member function, implementation from
3672 m2_emit_char.
3673 * objc-lang.c (objc_language_data): Delete la_emitchar
3674 initializer.
3675 * opencl-lang.c (opencl_language_data): Likewise.
3676 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3677 (pascal_language_data): Delete la_emitchar initializer.
3678 (pascal_language::emitchar): New member function, implementation
3679 from pascal_emit_char.
3680 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3681 (rust_language_data): Delete la_emitchar initializer.
3682 (rust_language::emitchar): New member function, implementation
3683 from rust_emitchar.
3684
3685 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3686
3687 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3688 (ada_language_data): Delete la_post_parser initializer.
3689 (ada_language::post_parser): New member function.
3690 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3691 (cplus_language_data): Likewise.
3692 (asm_language_data): Likewise.
3693 (minimal_language_data): Likewise.
3694 * d-lang.c (d_language_data): Likewise.
3695 * f-lang.c (f_language_data): Likewise.
3696 * go-lang.c (go_language_data): Likewise.
3697 * language.c (unknown_language_data): Likewise.
3698 (auto_language_data): Likewise.
3699 * language.h (language_data): Delete la_post_parser field.
3700 (language_defn::post_parser): New member function.
3701 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3702 * objc-lang.c (objc_language_data): Likewise.
3703 * opencl-lang.c (opencl_language_data): Likewise.
3704 * p-lang.c (pascal_language_data): Likewise.
3705 * parse.c (parse_exp_in_context): Update call to post_parser.
3706 (null_post_parser): Delete definition.
3707 * parser-defs.h (null_post_parser): Delete declaration.
3708 * rust-lang.c (rust_language_data): Delete la_post_parser
3709 initializer.
3710
3711 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3712
3713 * ada-lang.c (parse): Rename to ada_language::parser.
3714 (ada_language_data): Delete la_parser initializer.
3715 (ada_language::parser): New member function, implementation from
3716 parse.
3717 * c-lang.c (c_language_data): Delete la_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 (d_language::parser): New member function.
3723 * f-lang.c (f_language_data): Delete la_parser initializer.
3724 (f_language::parser): New member function.
3725 * go-lang.c (go_language_data): Delete la_parser initializer.
3726 (go_language::parser): New member function.
3727 * language.c (unk_lang_parser): Delete.
3728 (language_defn::parser): Define new member function.
3729 (unknown_language_data): Delete la_parser initializer.
3730 (unknown_language::parser): New member function.
3731 (auto_language_data): Delete la_parser initializer.
3732 (auto_language::parser): New member function.
3733 * language.h (language_data): Delete la_parser field.
3734 (language_defn::parser): Declare new member function.
3735 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3736 (m2_language::parser): New member function.
3737 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3738 * opencl-lang.c (opencl_language_data): Likewise.
3739 * p-lang.c (pascal_language_data): Likewise.
3740 (pascal_language::parser): New member function.
3741 * parse.c (parse_exp_in_context): Update call to parser.
3742 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3743 (rust_language::parser): New member function.
3744
3745 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3746
3747 * top.c (print_gdb_configuration): Print --with-python-libdir
3748 configuration value.
3749
3750 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3751
3752 * NEWS: Mention change to the alias command.
3753
3754 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3755
3756 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3757 (alias_command_completer)
3758 (make_alias_options_def_group): New functions.
3759 (alias_opts, alias_option_defs): New struct and array.
3760 (alias_usage_error): Update usage.
3761 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3762 Use option framework.
3763 (_initialize_cli_cmds): Update alias command help.
3764 Update aliases command help.
3765 (show_user):
3766 Add NULL for new default_args lookup_cmd argument.
3767 (valid_command_p): Rename to validate_aliased_command.
3768 Add NULL for new default_args lookup_cmd argument. Verify that the
3769 aliased_command has no default args.
3770 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3771 (lookup_cmd_1, lookup_cmd): New argument default_args.
3772 (add_alias_cmd):
3773 Add NULL for new default_args lookup_cmd argument.
3774 (print_help_for_command): Show default args under the layout
3775 alias some_alias = some_aliased_cmd some_alias_default_arg.
3776 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3777 xfree default_args in destructor.
3778 * cli/cli-script.c (process_next_line, do_define_command):
3779 Add NULL for new default_args lookup_cmd argument.
3780 * command.h: Declare new default_args argument in lookup_cmd
3781 and lookup_cmd_1.
3782 * completer.c (complete_line_internal_1):
3783 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3784 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3785 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3786 Likewise.
3787 * infcmd.c (_initialize_infcmd): Likewise.
3788 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3789 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3790 * python/py-param.c (add_setshow_generic): Likewise.
3791 * remote.c (_initialize_remote): Likewise.
3792 * top.c (execute_command): Prepend default_args if command has some.
3793 (set_verbose):
3794 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3795 * tracepoint.c (validate_actionline, encode_actions_1):
3796 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3797
3798 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3799
3800 * jit.c (jit_read_descriptor): Use bool as the return type.
3801 (jit_breakpoint_re_set_internal): Use bool as the return type.
3802 Invert the return value logic; return true if the jit breakpoint
3803 has been successfully initialized.
3804 (jit_inferior_init): Update the call to
3805 jit_breakpoint_re_set_internal.
3806
3807 2020-06-22 Pedro Alves <palves@redhat.com>
3808
3809 PR gdb/25939
3810 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3811 Use the current inferior instead. Don't return
3812 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3813 wait again.
3814 * sol-thread.c (sol_thread_target::wait): Don't reference
3815 inferior_ptid.
3816 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3817 (sol_update_thread_list_callback): Use the current inferior's pid
3818 instead of inferior_ptid.
3819
3820 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3821
3822 * procfs.c: Cleanup many comments.
3823
3824 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3825 (AFTER_WATCHFLAG): Replace by value.
3826
3827 (MAIN_PROC_NAME_FORMAT): Inline ...
3828 (create_procinfo): ... here.
3829
3830 (procfs_debug_inferior): Remove SYS_exec handling.
3831 (syscall_is_exec): Likewise.
3832 (procfs_set_exec_trap): Likewise.
3833
3834 (syscall_is_lwp_exit): Inline in callers.
3835 (syscall_is_exit): Likewise.
3836 (syscall_is_exec): Likewise.
3837 (syscall_is_lwp_create): Likewise.
3838
3839 (invalidate_cache): Remove #if 0 code.
3840
3841 (make_signal_thread_runnable): Remove.
3842 (procfs_target::resume): Remove #if 0 code.
3843
3844 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3845
3846 PR gdb/25939
3847 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3848 call ...
3849 (procfs_target::create_inferior): ... here.
3850
3851 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3852
3853 * exec.c (validate_exec_file): Ensure the build-id is up to
3854 date by calling reopen_exec_file (that checks file timestamp
3855 to decide to re-read the file).
3856
3857 2020-06-18 Pedro Alves <palves@redhat.com>
3858
3859 PR gdb/25412
3860 * gdbthread.h (delete_thread, delete_thread_silent)
3861 (find_thread_ptid): Update comments.
3862 * thread.c (current_thread_): New global.
3863 (is_current_thread): Move higher, and reimplement.
3864 (inferior_thread): Reimplement.
3865 (set_thread_exited): Use bool. Add assertions.
3866 (add_thread_silent): Simplify thread-reuse handling by always
3867 calling delete_thread.
3868 (delete_thread): Remove intro comment.
3869 (find_thread_ptid): Skip exited threads.
3870 (switch_to_thread_no_regs): Write to current_thread_.
3871 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3872 INFERIOR_PTID. Clear current_thread_.
3873
3874 2020-06-18 Pedro Alves <palves@redhat.com>
3875
3876 * aix-thread.c (pd_update): Use switch_to_thread.
3877
3878 2020-06-18 Pedro Alves <palves@redhat.com>
3879
3880 * ravenscar-thread.c (ravenscar_thread_target): Update.
3881 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3882 (ravenscar_thread_target::add_active_thread): ... this. Don't
3883 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3884 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3885
3886 2020-06-18 Pedro Alves <palves@redhat.com>
3887
3888 * nat/windows-nat.c (current_windows_thread): Remove.
3889 * nat/windows-nat.h (current_windows_thread): Remove.
3890 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3891 Adjust.
3892 (display_selectors): Adjust to fetch the current
3893 windows_thread_info based on inferior_ptid.
3894 (fake_create_process): No longer write to current_windows_thread.
3895 (windows_nat_target::get_windows_debug_event):
3896 Don't set inferior_ptid or current_windows_thread.
3897 (windows_nat_target::wait): Adjust to not rely on
3898 current_windows_thread.
3899 (do_initial_windows_stuff): Now a method of windows_nat_target.
3900 Switch to the last_ptid thread.
3901 (windows_nat_target::attach): Adjust.
3902 (windows_nat_target::detach): Use switch_to_no_thread instead of
3903 writing to inferior_ptid directly.
3904 (windows_nat_target::create_inferior): Adjust.
3905
3906 2020-06-18 Pedro Alves <palves@redhat.com>
3907
3908 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3909
3910 2020-06-18 Pedro Alves <palves@redhat.com>
3911
3912 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3913 after creating it, instead of writing to inferior_ptid. Don't
3914 write to inferior_ptid.
3915
3916 2020-06-18 Pedro Alves <palves@redhat.com>
3917
3918 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3919
3920 2020-06-18 Pedro Alves <palves@redhat.com>
3921
3922 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3923 it, instead of writing to inferior_ptid.
3924
3925 2020-06-18 Pedro Alves <palves@redhat.com>
3926
3927 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3928 to inferior_ptid.
3929
3930 2020-06-18 Pedro Alves <palves@redhat.com>
3931
3932 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3933 instead of writing to inferior_ptid directly.
3934
3935 2020-06-18 Pedro Alves <palves@redhat.com>
3936
3937 * corelow.c (core_target::close): Use switch_to_no_thread instead
3938 of writing to inferior_ptid directly.
3939 (add_to_thread_list, core_target_open): Use switch_to_thread
3940 instead of writing to inferior_ptid directly.
3941
3942 2020-06-18 Pedro Alves <palves@redhat.com>
3943
3944 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3945 inferior_ptid.
3946 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3947 inferior_ptid.
3948 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3949 inferior_ptid directly.
3950 (darwin_nat_target::init_thread_list): Switch to thread, instead
3951 of writing to inferior_ptid.
3952 (darwin_nat_target::attach): Don't write to inferior_ptid.
3953 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3954
3955 2020-06-18 Pedro Alves <palves@redhat.com>
3956
3957 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3958 thread.
3959 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3960 Instead use switch_to_thread.
3961 (gnu_nat_target::detach): Use switch_to_no_thread
3962 instead of writing to inferior_ptid directly. Used passed-in
3963 inferior instead of looking up the inferior by pid.
3964
3965 2020-06-18 Pedro Alves <palves@redhat.com>
3966
3967 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3968 inferior_ptid.
3969
3970 2020-06-18 Pedro Alves <palves@redhat.com>
3971
3972 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3973 inferior_ptid.
3974 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3975 thread.
3976 (nto_procfs_target::detach): Avoid referencing
3977 inferior_ptid. Use switch_to_no_thread instead of writing to
3978 inferior_ptid directly.
3979 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3980 instead of writing to inferior_ptid directly.
3981 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3982 to thread.
3983
3984 2020-06-18 Pedro Alves <palves@redhat.com>
3985
3986 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3987 after creating it, instead of writing to inferior_ptid.
3988 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3989 to inferior_ptid directly.
3990 (gdbsim_target::wait): Don't write to inferior_ptid.
3991
3992 2020-06-18 Pedro Alves <palves@redhat.com>
3993
3994 * remote.c (remote_target::remote_notice_new_inferior): Use
3995 switch_to_thread instead of writing to inferior_ptid directly.
3996 (remote_target::add_current_inferior_and_thread): Use
3997 switch_to_no_thread instead of writing to inferior_ptid directly.
3998 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3999 and switch_to_thread instead of using set_current_inferior or
4000 writing to inferior_ptid directly.
4001
4002 2020-06-18 Pedro Alves <palves@redhat.com>
4003
4004 * tracectf.c (ctf_target_open): Switch to added thread instead of
4005 writing to inferior_ptid directly.
4006 (ctf_target::close): Use switch_to_no_thread instead of writing to
4007 inferior_ptid directly.
4008
4009 2020-06-18 Pedro Alves <palves@redhat.com>
4010
4011 * tracefile-tfile.c (tfile_target_open): Don't write to
4012 inferior_ptid directly, instead switch to added thread.
4013 (tfile_target::close): Use switch_to_no_thread instead of writing
4014 to inferior_ptid directly.
4015
4016 2020-06-18 Pedro Alves <palves@redhat.com>
4017
4018 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4019 (procfs_target::detach): Use switch_to_no_thread
4020 instead of writing to inferior_ptid directly.
4021 (do_attach): Change return type to void. Switch to the added
4022 thread.
4023 (procfs_target::create_inferior): Switch to the added thread.
4024 (procfs_do_thread_registers): Don't write to inferior_ptid.
4025
4026 2020-06-18 Pedro Alves <palves@redhat.com>
4027
4028 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4029 of writing to inferior_ptid.
4030 (scoped_restore_exited_inferior): Delete.
4031 (handle_vfork_child_exec_or_exit): Simplify using
4032 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4033 instead of writing to inferior_ptid.
4034 (THREAD_STOPPED_BY): Delete.
4035 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4036 (thread_stopped_by_hw_breakpoint): Delete.
4037 (save_waitstatus): Use
4038 scoped_restore_current_thread+switch_to_thread, and call
4039 target_stopped_by_watchpoint instead of
4040 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4041 instead of thread_stopped_by_sw_breakpoint, and
4042 target_stopped_by_hw_breakpoint instead of
4043 thread_stopped_by_hw_breakpoint.
4044 (handle_inferior_event)
4045 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4046 inferior_ptid directly, nor
4047 set_current_inferior/set_current_program_space. Use
4048 switch_to_thread / switch_to_inferior_no_thread instead.
4049
4050 2020-06-18 Pedro Alves <palves@redhat.com>
4051
4052 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4053 instead of writing to inferior_ptid.
4054
4055 2020-06-18 Pedro Alves <palves@redhat.com>
4056
4057 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4058 added thread.
4059 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4060 to the added thread.
4061 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4062 instead of writing to inferior_ptid.
4063
4064 2020-06-18 Pedro Alves <palves@redhat.com>
4065
4066 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4067 (register_to_value_test): Mock a program_space too. Heap-allocate
4068 the address space. Don't write to inferior_ptid. Use
4069 switch_to_thread instead.
4070
4071 2020-06-18 Pedro Alves <palves@redhat.com>
4072
4073 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4074 Delete.
4075 (find_signalled_thread()): New, factored out from
4076 linux_make_corefile_notes and adjusted to handle exited threads.
4077 (linux_make_corefile_notes): Adjust to use the new
4078 find_signalled_thread.
4079
4080 2020-06-18 Pedro Alves <palves@redhat.com>
4081
4082 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4083 of saving/restoring inferior_ptid.
4084
4085 2020-06-17 Tom Tromey <tom@tromey.com>
4086
4087 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4088 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4089 declare.
4090 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4091
4092 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4093
4094 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4095 of partial symtabs.
4096
4097 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4098
4099 * regformats/reg-arm.dat: Remove.
4100 * regformats/reg-bfin.dat: Remove.
4101 * regformats/reg-cris.dat: Remove.
4102 * regformats/reg-crisv32.dat: Remove.
4103 * regformats/reg-m32r.dat: Remove.
4104 * regformats/reg-tilegx.dat: Remove.
4105 * regformats/reg-tilegx32.dat: Remove.
4106
4107 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * features/Makefile (WHICH): Remove arm files.
4110 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4111 * regformats/arm/arm-with-neon.dat: Remove.
4112 * regformats/arm/arm-with-vfpv2.dat: Remove.
4113 * regformats/arm/arm-with-vfpv3.dat: Remove.
4114
4115 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4116
4117 * features/Makefile (XMLTOC): Remove rx.xml.
4118
4119 2020-06-17 Pedro Alves <palves@redhat.com>
4120
4121 * gdbthread.h (thread_control_state) <trap_expected> Update
4122 comments.
4123
4124 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4125
4126 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4127 ada_language::lookup_symbol_nonlocal.
4128 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4129 (ada_language::lookup_symbol_nonlocal): New member function,
4130 implementation from ada_lookup_symbol_nonlocal.
4131 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4132 initializer.
4133 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4134 initializer.
4135 (cplus_language::lookup_symbol_nonlocal): New member function.
4136 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4137 (minimal_language_data) Likewise.
4138 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4139 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4140 initializer.
4141 (d_language::lookup_symbol_nonlocal): New member function.
4142 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4143 initializer.
4144 (f_language::lookup_symbol_nonlocal): New member function.
4145 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4146 initializer.
4147 * language.c (unknown_language_data): Likewise.
4148 (auto_language_data): Likewise.
4149 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4150 field.
4151 (language_defn::lookup_symbol_nonlocal): New member function.
4152 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4153 initializer.
4154 * objc-lang.c (objc_language_data): Likewise.
4155 * opencl-lang.c (opencl_language_data): Likewise.
4156 * p-lang.c (pascal_language_data): Likewise.
4157 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4158 rust_language::lookup_symbol_nonlocal.
4159 (rust_language_data): Delete la_lookup_symbol_nonlocal
4160 initializer.
4161 (rust_language::lookup_symbol_nonlocal): New member function,
4162 implementation from rust_lookup_symbol_nonlocal.
4163 * symtab.c (lookup_symbol_aux): Update call to
4164 lookup_symbol_nonlocal.
4165 (basic_lookup_symbol_nonlocal): Rename to...
4166 (language_defn::lookup_symbol_nonlocal): ...this, and update
4167 header comment. Remove language_defn parameter, and replace with
4168 uses of `this'.
4169 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4170
4171 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4172
4173 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4174 initializer.
4175 (ada_language::value_print_inner): New member function.
4176 * c-lang.c (c_language_data): Delete la_value_print_inner
4177 initializer.
4178 (cplus_language_data): Likewise.
4179 (asm_language_data): Likewise.
4180 (minimal_language_data): Likewise.
4181 * d-lang.c (d_language_data): Likewise.
4182 (d_language::value_print_inner): New member function.
4183 * f-lang.c (f_language_data): Delete la_value_print_inner
4184 initializer.
4185 (f_language::value_print_inner): New member function.
4186 * f-lang.h (f_value_print_innner): Rename to...
4187 (f_value_print_inner): ...this (note spelling of 'inner').
4188 * f-valprint.c (f_value_print_innner): Rename to...
4189 (f_value_print_inner): ...this (note spelling of 'inner').
4190 * go-lang.c (go_language_data): Delete la_value_print_inner
4191 initializer.
4192 (go_language::value_print_inner): New member function.
4193 * language.c (language_defn::value_print_inner): Define new member
4194 function.
4195 (unk_lang_value_print_inner): Delete.
4196 (unknown_language_data): Delete la_value_print_inner initializer.
4197 (unknown_language::value_print_inner): New member function.
4198 (auto_language_data): Delete la_value_print_inner initializer.
4199 (auto_language::value_print_inner): New member function.
4200 * language.h (language_data): Delete la_value_print_inner field.
4201 (language_defn::value_print_inner): Delcare new member function.
4202 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4203 initializer.
4204 (m2_language::value_print_inner): New member function.
4205 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4206 initializer.
4207 * opencl-lang.c (opencl_language_data): Likewise.
4208 * p-lang.c (pascal_language_data): Likewise.
4209 (pascal_language::value_print_inner): New member function.
4210 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4211 initializer.
4212 (rust_language::value_print_inner): New member function.
4213 * valprint.c (do_val_print): Update call to value_print_inner.
4214
4215 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4216
4217 * ada-lang.c (ada_language_data): Delete la_value_print
4218 initializer.
4219 (ada_language::value_print): New member function.
4220 * c-lang.c (c_language_data): Delete la_value_print initializer.
4221 (cplus_language_data): Likewise.
4222 (asm_language_data): Likewise.
4223 (minimal_language_data): Likewise.
4224 * d-lang.c (d_language_data): Likewise.
4225 * f-lang.c (f_language_data): Likewise.
4226 * go-lang.c (go_language_data): Likewise.
4227 * language.c (unk_lang_value_print): Delete.
4228 (language_defn::value_print): Define new member function.
4229 (unknown_language_data): Delete la_value_print initializer.
4230 (unknown_language::value_print): New member function.
4231 (auto_language_data): Delete la_value_print initializer.
4232 (auto_language::value_print): New member function.
4233 * language.h (language_data): Delete la_value_print field.
4234 (language_defn::value_print): Declare new member function.
4235 (LA_VALUE_PRINT): Update call to value_print.
4236 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4237 * objc-lang.c (objc_language_data): Likewise.
4238 * opencl-lang.c (opencl_language_data): Likewise.
4239 * p-lang.c (pascal_language_data): Likewise.
4240 (pascal_language::value_print): New member function.
4241 * rust-lang.c (rust_language_data): Delete la_value_print
4242 initializer.
4243
4244 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4245
4246 * ada-lang.c (ada_watch_location_expression): Rename to
4247 ada_language::watch_location_expression.
4248 (ada_language_data): Delete la_watch_location_expression
4249 initializer.
4250 (ada_language::watch_location_expression): New member function,
4251 implementation from ada_watch_location_expression.
4252 * breakpoint.c (watch_command_1): Update call to
4253 watch_location_expression.
4254 * c-lang.c (c_watch_location_expression): Rename to
4255 language_defn::watch_location_expression.
4256 (c_language_data): Delete la_watch_location_expression
4257 initializer.
4258 (cplus_language_data): Likewise.
4259 (asm_language_data): Likewise.
4260 (minimal_language_data): Likewise.
4261 * c-lang.h (c_watch_location_expression): Delete declaration.
4262 * d-lang.c (d_language_data): Delete la_watch_location_expression
4263 initializer.
4264 * f-lang.c (f_language_data): Likewise.
4265 * go-lang.c (go_language_data): Likewise.
4266 * language.c (language_defn::watch_location_expression): Member
4267 function implementation from c_watch_location_expression.
4268 (unknown_language_data): Delete la_watch_location_expression
4269 initializer.
4270 (auto_language_data): Likewise.
4271 * language.h (language_data): Delete la_watch_location_expression
4272 field.
4273 (language_defn::watch_location_expression): Declare new member
4274 function.
4275 * m2-lang.c (m2_language_data): Delete
4276 la_watch_location_expression initializer.
4277 * objc-lang.c (objc_language_data): Likewise.
4278 * opencl-lang.c (opencl_language_data): Likewise.
4279 * p-lang.c (pascal_language_data): Likewise.
4280 * rust-lang.c (rust_watch_location_expression): Rename to
4281 rust_language::watch_location_expression.
4282 (rust_language_data): Delete la_watch_location_expression
4283 initializer.
4284 (rust_language::watch_location_expression): New member function,
4285 implementation from rust_watch_location_expression.
4286
4287 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4288
4289 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4290 ada_language::collect_symbol_completion_matches.
4291 (ada_language_data): Delete la_collect_symbol_completion_matches
4292 initializer.
4293 (ada_language::collect_symbol_completion_matches): New member
4294 function, implementation from
4295 ada_collect_symbol_completion_matches.
4296 * c-lang.c (c_language_data): Delete
4297 la_collect_symbol_completion_matches initializer.
4298 (cplus_language_data): Likewise.
4299 (asm_language_data): Likewise.
4300 (minimal_language_data): Likewise.
4301 * d-lang.c (d_language_data): Likewise.
4302 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4303 f_language::collect_symbol_completion_matches.
4304 (f_language_data): Delete la_collect_symbol_completion_matches
4305 initializer.
4306 (f_language::collect_symbol_completion_matches) New member
4307 function, implementation from f_collect_symbol_completion_matches.
4308 * go-lang.c (go_language_data): Delete
4309 la_collect_symbol_completion_matches initializer.
4310 * language.c (unknown_language_data): Likewise.
4311 (auto_language_data): Likewise.
4312 * language.h (language_data): Delete
4313 la_collect_symbol_completion_matches field.
4314 (language_defn::collect_symbol_completion_matches): New member
4315 function.
4316 * m2-lang.c (m2_language_data): Delete
4317 la_collect_symbol_completion_matches initializer.
4318 * objc-lang.c (objc_language_data): Likewise.
4319 * opencl-lang.c (opencl_language_data): Likewise.
4320 * p-lang.c (pascal_language_data): Likewise.
4321 * rust-lang.c (rust_language_data): Likewise.
4322 * symtab.c (default_collect_symbol_completion_matches): Delete.
4323 (collect_symbol_completion_matches): Update call to
4324 collect_symbol_completion_matches.
4325 (collect_symbol_completion_matches_type): Likewise.
4326 * symtab.h (default_collect_symbol_completion_matches): Delete
4327 declaration.
4328
4329 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4330
4331 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4332 (ada_language_data): Delete la_word_break_characters initializer.
4333 (ada_language::word_break_characters): New member function.
4334 * c-lang.c (c_language_data): Delete la_word_break_characters
4335 initializer.
4336 (cplus_language_data): Likewise.
4337 (asm_language_data): Likewise.
4338 (minimal_language_data): Likewise.
4339 * completer.c: Update global comment.
4340 (advance_to_expression_complete_word_point): Update call to
4341 word_break_characters.
4342 (complete_files_symbols): Likewise.
4343 (complete_line_internal_1): Likewise.
4344 (default_completer_handle_brkchars): Likewise.
4345 (skip_quoted_chars): Likewise.
4346 * d-lang.c (d_language_data): Delete la_word_break_characters
4347 initializer.
4348 * f-lang.c (f_word_break_characters): Delete.
4349 (f_language_data): Delete la_word_break_characters initializer.
4350 (f_language::word_break_characters): New member function.
4351 * go-lang.c (go_language_data): Delete la_word_break_characters
4352 initializer.
4353 * language.c (unknown_language_data): Likewise.
4354 (auto_language_data): Likewise.
4355 * language.h (default_word_break_characters): Move declaration to
4356 earlier in the file.
4357 (language_data): Delete la_word_break_characters field.
4358 (language_defn::word_break_characters): New member function.
4359 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4360 initializer.
4361 * objc-lang.c (objc_language_data): Likewise.
4362 * opencl-lang.c (opencl_language_data): Likewise.
4363 * p-lang.c (pascal_language_data): Likewise.
4364 * rust-lang.c (rust_language_data): Likewise.
4365
4366 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4367
4368 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4369 (ada_language_data): Delete la_get_symbol_name_matcher
4370 initializer.
4371 (language_defn::get_symbol_name_matcher_inner): New member
4372 function.
4373 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4374 initializer.
4375 (cplus_language_data): Likewise.
4376 (cplus_language::get_symbol_name_matcher_inner): New member
4377 function.
4378 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4379 (minimal_language_data): Likewise.
4380 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4381 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4382 initializer.
4383 * dictionary.c (iter_match_first_hashed): Update call to
4384 get_symbol_name_matcher.
4385 (iter_match_next_hashed): Likewise.
4386 (iter_match_next_linear): Likewise.
4387 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4388 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4389 initializer.
4390 (f_language::get_symbol_name_matcher_inner): New member function.
4391 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4392 initializer.
4393 * language.c (default_symbol_name_matcher): Update header comment,
4394 make static.
4395 (language_defn::get_symbol_name_matcher): New definition.
4396 (language_defn::get_symbol_name_matcher_inner): Likewise.
4397 (get_symbol_name_matcher): Delete.
4398 (unknown_language_data): Delete la_get_symbol_name_matcher
4399 initializer.
4400 (auto_language_data): Likewise.
4401 * language.h (language_data): Delete la_get_symbol_name_matcher
4402 field.
4403 (language_defn::get_symbol_name_matcher): New member function.
4404 (language_defn::get_symbol_name_matcher_inner): Likewise.
4405 (default_symbol_name_matcher): Delete declaration.
4406 * linespec.c (find_methods): Update call to
4407 get_symbol_name_matcher.
4408 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4409 initializer.
4410 * minsyms.c (lookup_minimal_symbol): Update call to
4411 get_symbol_name_matcher.
4412 (iterate_over_minimal_symbols): Likewise.
4413 * objc-lang.c (objc_language_data): Delete
4414 la_get_symbol_name_matcher initializer.
4415 * opencl-lang.c (opencl_language_data): Likewise.
4416 * p-lang.c (pascal_language_data): Likewise.
4417 * psymtab.c (psymbol_name_matches): Update call to
4418 get_symbol_name_matcher.
4419 * rust-lang.c (rust_language_data): Delete
4420 la_get_symbol_name_matcher initializer.
4421 * symtab.c (symbol_matches_search_name): Update call to
4422 get_symbol_name_matcher.
4423 (compare_symbol_name): Likewise.
4424
4425 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4426
4427 * ada-lang.c (ada_language_data): Delete la_compute_program
4428 initializer.
4429 * c-lang.c (c_language_data): Likewise.
4430 (c_language::compute_program): New member function.
4431 (cplus_language_data): Delete la_compute_program initializer.
4432 (cplus_language::compute_program): New member function.
4433 (asm_language_data): Delete la_compute_program initializer.
4434 (minimal_language_data): Likewise.
4435 * c-lang.h (c_compute_program): Update comment.
4436 (cplus_compute_program): Likewise.
4437 * compile/compile-c-support.c (c_compute_program): Likewise.
4438 (cplus_compute_program): Likewise.
4439 * compile/compile.c (compile_to_object): Update call to
4440 la_compute_program.
4441 * d-lang.c (d_language_data): Delete la_compute_program
4442 initializer.
4443 * f-lang.c (f_language_data): Likewise.
4444 * go-lang.c (go_language_data): Likewise.
4445 * language.c (unknown_language_data): Likewise.
4446 (auto_language_data): Likewise.
4447 * language.h (language_data): Delete la_compute_program field.
4448 (language_defn::compute_program): New member function.
4449 * m2-lang.c (m2_language_data): Delete la_compute_program
4450 initializer.
4451 * objc-lang.c (objc_language_data): Likewise.
4452 * opencl-lang.c (opencl_language_data): Likewise.
4453 * p-lang.c (pascal_language_data): Likewise.
4454 * rust-lang.c (rust_language_data): Likewise.
4455
4456 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4457
4458 * ada-lang.c (ada_language_data) Delete
4459 la_class_name_from_physname initializer.
4460 * c-lang.c (c_language_data): Likewise.
4461 (cplus_language_data): Likewise.
4462 (cplus_language::class_name_from_physname): New member function.
4463 (asm_language_data): Delete la_class_name_from_physname
4464 initializer.
4465 (minimal_language_data): Likewise.
4466 * d-lang.c (d_language_data): Likewise.
4467 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4468 method on language_defn class.
4469 (guess_full_die_structure_name): Likewise.
4470 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4471 initializer.
4472 * go-lang.c (go_language_data): Likewise.
4473 * language.c (language_class_name_from_physname): Delete.
4474 (unk_lang_class_name): Delete.
4475 (unknown_language_data): Delete la_class_name_from_physname
4476 initializer.
4477 (auto_language_data): Likewise.
4478 * language.h (language_data): Delete la_class_name_from_physname
4479 field.
4480 (language_defn::class_name_from_physname): New function.
4481 (language_class_name_from_physname): Delete declaration.
4482 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4483 initializer.
4484 * objc-lang.c (objc_language_data): Likewise.
4485 * opencl-lang.c (opencl_language_data): Likewise.
4486 * p-lang.c (pascal_language_data): Likewise.
4487 * rust-lang.c (rust_language_data): Likewise.
4488
4489 2020-06-16 Tom Tromey <tom@tromey.com>
4490
4491 * tui/tui-data.h (STATUS_NAME): New macro.
4492 * tui/tui-layout.c (tui_remove_some_windows)
4493 (initialize_known_windows, tui_register_window)
4494 (tui_layout_split::remove_windows, initialize_layouts)
4495 (tui_new_layout_command): Don't use hard-coded window names.
4496
4497 2020-06-16 Tom Tromey <tom@tromey.com>
4498
4499 PR tui/25348:
4500 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4501 tui_initialize_readline. Only run once. Call rl_initialize.
4502 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4503 tui_initialize_readline.
4504 * tui/tui-io.c (tui_setup_io): Call
4505 tui_ensure_readline_initialized.
4506 * tui/tui-interp.c (tui_interp::init): Update.
4507
4508 2020-06-16 Tom Tromey <tom@tromey.com>
4509
4510 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4511 Also preserve the status window.
4512
4513 2020-06-16 Tom Tromey <tom@tromey.com>
4514
4515 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4516 where m_window==nullptr.
4517
4518 2020-06-15 Tom Tromey <tromey@adacore.com>
4519
4520 * windows-nat.c (windows_nat::handle_output_debug_string):
4521 Update.
4522 (windows_nat::handle_ms_vc_exception): Update.
4523 * target.h (target_read_string): Change API.
4524 * target.c (target_read_string): Change API.
4525 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4526 Update.
4527 * solib-frv.c (frv_current_sos): Update.
4528 * solib-dsbt.c (dsbt_current_sos): Update.
4529 * solib-darwin.c (darwin_current_sos): Update.
4530 * linux-thread-db.c (inferior_has_bug): Update.
4531 * expprint.c (print_subexp_standard): Update.
4532 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4533 (ada_exception_message_1): Update.
4534
4535 2020-06-15 Tom Tromey <tromey@adacore.com>
4536
4537 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4538
4539 2020-06-15 Tom Tromey <tromey@adacore.com>
4540
4541 * valprint.c (read_string): Update comment.
4542 * target.c (MIN): Remove.
4543 (target_read_string): Rewrite.
4544
4545 2020-06-15 Tom Tromey <tromey@adacore.com>
4546
4547 * corefile.c (read_memory_string): Remove.
4548 * ada-valprint.c (ada_value_print_ptr): Update.
4549 * ada-lang.h (ada_tag_name): Change return type.
4550 * ada-lang.c (type_from_tag): Update.
4551 (ada_tag_name_from_tsd): Change return type. Use
4552 target_read_string.
4553 (ada_tag_name): Likewise.
4554 * gdbcore.h (read_memory_string): Don't declare.
4555
4556 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4557
4558 * symtab.c (rbreak_command): Ignore Windows drive colon.
4559
4560 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4561
4562 * NEWS: Mention removed GDBserver host support.
4563
4564 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4565
4566 * features/riscv/rebuild-csr-xml.sh: Updated.
4567
4568 2020-06-11 Tom Tromey <tom@tromey.com>
4569
4570 PR gdb/18318:
4571 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4572
4573 2020-06-09 Jonny Grant <jg@jguk.org>
4574 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4575
4576 * main.c (captured_main_1): Don't print new line after help.
4577 (print_gdb_help): add mailing list and IRC channel information
4578 to --help. Add new lines between items in the footer. Remove
4579 quotes around bug url.
4580
4581 2020-06-11 Keith Seitz <keiths@redhat.com>
4582
4583 PR gdb/21356
4584 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4585 Resolve typedefs for type length calculations.
4586
4587 2020-06-10 Tom de Vries <tdevries@suse.de>
4588
4589 PR ada/24713
4590 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4591 (write_psymbols): Enable .gdb_index for ada.
4592 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4593 ada.
4594
4595 2020-06-10 Tom de Vries <tdevries@suse.de>
4596
4597 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4598 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4599 namei" instead of "const char *name" argument.
4600 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4601 dw2_symtab_iter_init.
4602
4603 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4604
4605 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4606 to use type::field and field::type instead.
4607
4608 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4609
4610 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4611 to use field::type instead.
4612
4613 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4614
4615 * gdbtypes.h (struct field) <type, set_type>: New methods.
4616 Rename `type` field to...
4617 <m_type>: ... this. Change references throughout to use type or
4618 set_type methods.
4619 (FIELD_TYPE): Use field::type. Change call sites that modify
4620 the field's type to use field::set_type instead.
4621
4622 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4623
4624 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4625 to use type::index_type instead.
4626
4627 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4630 methods.
4631 (TYPE_INDEX_TYPE): Use type::index_type.
4632 * gdbtypes.c (create_array_type_with_stride): Likewise.
4633
4634 2020-06-07 Tom Tromey <tom@tromey.com>
4635
4636 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4637 parameter.
4638 (generic_value_print): Update.
4639
4640 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4641
4642 Revert commit 982a38f60b0.
4643 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4644
4645 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4646
4647 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4648 avoid use after free.
4649
4650 2020-06-05 Tom de Vries <tdevries@suse.de>
4651
4652 * NEWS: Fix typos.
4653
4654 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4655
4656 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4657 the per_bfd object.
4658 (dwarf2_read_debug_names): Likewise.
4659 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4660 object when re-using a per_bfd object with an index.
4661
4662 2020-06-03 Tom de Vries <tdevries@suse.de>
4663
4664 PR symtab/26046
4665 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4666 children for C++.
4667 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4668 DW_TAG_subprogram.
4669
4670 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4671
4672 * ada-lang.c (ada_language_data): Delete skip_trampoline
4673 initializer.
4674 * c-lang.c (c_language_data): Likewise.
4675 (cplus_language_data): Likewise.
4676 (cplus_language::skip_trampoline): New member function.
4677 (asm_language_data): Delete skip_trampoline initializer.
4678 (minimal_language_data): Likewise.
4679 * d-lang.c (d_language_data): Likewise.
4680 * f-lang.c (f_language_data): Likewise.
4681 * go-lang.c (go_language_data): Likewise.
4682 * language.c (unk_lang_trampoline): Delete function.
4683 (skip_language_trampoline): Update.
4684 (unknown_language_data): Delete skip_trampoline initializer.
4685 (auto_language_data): Likewise.
4686 * language.h (language_data): Delete skip_trampoline field.
4687 (language_defn::skip_trampoline): New function.
4688 * m2-lang.c (m2_language_data): Delete skip_trampoline
4689 initializer.
4690 * objc-lang.c (objc_skip_trampoline): Delete function, move
4691 implementation to objc_language::skip_trampoline.
4692 (objc_language_data): Delete skip_trampoline initializer.
4693 (objc_language::skip_trampoline): New member function with
4694 implementation from objc_skip_trampoline.
4695 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4696 initializer.
4697 * p-lang.c (pascal_language_data): Likewise.
4698 * rust-lang.c (rust_language_data): Likewise.
4699
4700 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4701
4702 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4703 (ada_language::demangle): New member function.
4704 * c-lang.c (c_language_data): Delete la_demangle initializer.
4705 (cplus_language_data): Delete la_demangle initializer.
4706 (cplus_language::demangle): New member function.
4707 (asm_language_data): Delete la_demangle initializer.
4708 (minimal_language_data): Delete la_demangle initializer.
4709 * d-lang.c (d_language_data): Delete la_demangle initializer.
4710 (d_language::demangle): New member function.
4711 * f-lang.c (f_language_data): Delete la_demangle initializer.
4712 (f_language::demangle): New member function.
4713 * go-lang.c (go_language_data): Delete la_demangle initializer.
4714 (go_language::demangle): New member function.
4715 * language.c (language_demangle): Update.
4716 (unk_lang_demangle): Delete.
4717 (unknown_language_data): Delete la_demangle initializer.
4718 (unknown_language::demangle): New member function.
4719 (auto_language_data): Delete la_demangle initializer.
4720 (auto_language::demangle): New member function.
4721 * language.h (language_data): Delete la_demangle field.
4722 (language_defn::demangle): New function.
4723 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4724 * objc-lang.c (objc_language_data): Delete la_demangle
4725 initializer.
4726 (objc_language::demangle): New member function.
4727 * opencl-lang.c (opencl_language_data): Delete la_demangle
4728 initializer.
4729 * p-lang.c (pascal_language_data): Likewise.
4730 * rust-lang.c (rust_language_data): Likewise.
4731 (rust_language::demangle): New member function.
4732
4733 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4734
4735 * ada-lang.c (ada_language_data): Delete la_print_type
4736 initializer.
4737 (ada_language::print_type): New member function.
4738 * c-lang.c (c_language_data): Delete la_print_type initializer.
4739 (c_language::print_type): New member function.
4740 (cplus_language_data): Delete la_print_type initializer.
4741 (cplus_language::print_type): New member function.
4742 (asm_language_data): Delete la_print_type initializer.
4743 (asm_language::print_type): New member function.
4744 (minimal_language_data): Delete la_print_type initializer.
4745 (minimal_language::print_type): New member function.
4746 * d-lang.c (d_language_data): Delete la_print_type initializer.
4747 (d_language::print_type): New member function.
4748 * f-lang.c (f_language_data): Delete la_print_type initializer.
4749 (f_language::print_type): New member function.
4750 * go-lang.c (go_language_data): Delete la_print_type initializer.
4751 (go_language::print_type): New member function.
4752 * language.c (unk_lang_print_type): Delete.
4753 (unknown_language_data): Delete la_print_type initializer.
4754 (unknown_language::print_type): New member function.
4755 (auto_language_data): Delete la_print_type initializer.
4756 (auto_language::print_type): New member function.
4757 * language.h (language_data): Delete la_print_type field.
4758 (language_defn::print_type): New function.
4759 (LA_PRINT_TYPE): Update.
4760 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4761 (m2_language::print_type): New member function.
4762 * objc-lang.c (objc_language_data): Delete la_print_type
4763 initializer.
4764 (objc_language::print_type): New member function.
4765 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4766 to opencl_language::print_type.
4767 (opencl_language_data): Delete la_print_type initializer.
4768 (opencl_language::print_type): New member function, implementation
4769 from opencl_print_type.
4770 * p-lang.c (pascal_language_data): Delete la_print_type
4771 initializer.
4772 (pascal_language::print_type): New member function.
4773 * rust-lang.c (rust_print_type): Delete, implementation moved to
4774 rust_language::print_type.
4775 (rust_language_data): Delete la_print_type initializer.
4776 (rust_language::print_type): New member function, implementation
4777 from rust_print_type.
4778
4779 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4780
4781 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4782 implementation moves to...
4783 (ada_language::sniff_from_mangled_name): ...here. Update return
4784 type.
4785 (ada_language_data): Delete la_sniff_from_mangled_name
4786 initializer.
4787 * c-lang.c (c_language_data): Likewise.
4788 (cplus_language_data): Likewise.
4789 (cplus_language::sniff_from_mangled_name): New member function,
4790 implementation taken from gdb_sniff_from_mangled_name.
4791 (asm_language_data): Delete la_sniff_from_mangled_name
4792 initializer.
4793 (minimal_language_data): Likewise.
4794 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4795 implementation moves to cplus_language::sniff_from_mangled_name.
4796 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4797 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4798 moves to...
4799 (d_language::sniff_from_mangled_name): ...here.
4800 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4801 * f-lang.c (f_language_data): Likewise.
4802 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4803 moves to...
4804 (go_language::sniff_from_mangled_name): ...here.
4805 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4806 * language.c (language_sniff_from_mangled_name): Delete.
4807 (unknown_language_data): Delete la_sniff_from_mangled_name
4808 initializer.
4809 (auto_language_data): Likewise.
4810 * language.h (language_data): Delete la_sniff_from_mangled_name
4811 field.
4812 (language_defn::sniff_from_mangled_name): New function.
4813 (language_sniff_from_mangled_name): Delete declaration.
4814 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4815 field.
4816 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4817 implementation moves to...
4818 (objc_language::sniff_from_mangled_name): ...here.
4819 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4820 * opencl-lang.c (opencl_language_data): Likewise.
4821 * p-lang.c (pascal_language_data): Likewise.
4822 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4823 implementation moves to...
4824 (rust_language::sniff_from_mangled_name): ...here.
4825 (rust_language_data): Delete la_sniff_from_mangled_name
4826 initializer.
4827 * symtab.c (symbol_find_demangled_name): Call
4828 sniff_from_mangled_name member function.
4829
4830 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4831
4832 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4833 initializer.
4834 * c-lang.c (c_language_data): Likewise.
4835 (cplus_language_data): Likewise.
4836 (cplus_language::search_name_hash): New member function.
4837 (asm_language_data): Delete la_search_name_hash initializer.
4838 (minimal_language_data): Likewise.
4839 * d-lang.c (d_language_data): Likewise.
4840 * dictionary.c (default_search_name_hash): Rename to...
4841 (language_defn::search_name_hash): ...this.
4842 * f-lang.c (f_language_data): Likewise.
4843 (f_language::search_name_hash): New member function.
4844 * go-lang.c (go_language_data): Delete la_search_name_hash
4845 initializer.
4846 * language.c (unknown_language_data): Likewise.
4847 (auto_language_data): Likewise.
4848 * language.h (struct language_data): Delete la_search_name_hash
4849 field.
4850 (language_defn::search_name_hash): Declare new member function.
4851 (default_search_name_hash): Delete declaration.
4852 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4853 initializer.
4854 * objc-lang.c (objc_language_data): Likewise.
4855 * opencl-lang.c (opencl_language_data): Likewise.
4856 * p-lang.c (pascal_language_data): Likewise.
4857 * rust-lang.c (rust_language_data): Likewise.
4858 * symtab.c (search_name_hash): Update call.
4859
4860 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4861
4862 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4863 initializer.
4864 * c-lang.c (class compile_instance): Declare.
4865 (c_language_data): Delete la_get_compile_instance initializer.
4866 (c_language::get_compile_instance): New member function.
4867 (cplus_language_data): Delete la_get_compile_instance initializer.
4868 (cplus_language::get_compile_instance): New member function.
4869 (asm_language_data): Delete la_get_compile_instance initializer.
4870 (minimal_language_data): Likewise.
4871 * c-lang.h (c_get_compile_context): Update comment.
4872 (cplus_get_compile_context): Update comment.
4873 * compile/compile.c (compile_to_object): Update calls, don't rely
4874 on function pointer being NULL.
4875 * d-lang.c (d_language_data): Delete la_get_compile_instance
4876 initializer.
4877 * f-lang.c (f_language_data): Likewise.
4878 * go-lang.c (go_language_data): Likewise.
4879 * language.c (unknown_language_data): Likewise.
4880 (auto_language_data): Likewise.
4881 * language.h (language_data): Delete la_get_compile_instance field.
4882 (language_defn::get_compile_instance): New member function.
4883 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4884 initializer.
4885 * objc-lang.c (objc_language_data): Likewise.
4886 * opencl-lang.c (opencl_language_data): Likewise.
4887 * p-lang.c (pascal_language_data): Likewise.
4888 * rust-lang.c (rust_language_data): Likewise.
4889
4890 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4891
4892 * ada-lang.c (ada_add_all_symbols): Update comment.
4893 (ada_iterate_over_symbols): Delete, move implementation to...
4894 (ada_language::iterate_over_symbols): ...here, a new member
4895 function, rewrite to use range based for loop.
4896 (ada_language_data): Delete la_iterate_over_symbols initializer.
4897 * c-lang.c (c_language_data): Likewise.
4898 (cplus_language_data): Likewise.
4899 (asm_language_data): Likewise.
4900 (minimal_language_data): Likewise.
4901 * d-lang.c (d_language_data): Likewise.
4902 * f-lang.c (f_language_data): Likewise.
4903 * go-lang.c (go_language_data): Likewise.
4904 * language.c (unknown_language_data): Likewise.
4905 (auto_language_data): Likewise.
4906 * language.h (language_data): Delete la_iterate_over_symbols field.
4907 (language_defn::iterate_over_symbols): New member function.
4908 (LA_ITERATE_OVER_SYMBOLS): Update.
4909 * linespec.c (iterate_over_all_matching_symtabs): Update.
4910 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
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_language_data): Delete
4920 la_lookup_transparent_type initializer.
4921 * c-lang.c (c_language_data): Likewise.
4922 (cplus_language_data): Likewise.
4923 (cplus_language::lookup_transparent_type): New member function.
4924 (asm_language_data): Delete la_lookup_transparent_type
4925 initializer.
4926 (minimal_language_data): Likewise.
4927 * d-lang.c (d_language_data): Likewise.
4928 * f-lang.c (f_language_data): Likewise.
4929 * go-lang.c (go_language_data): Likewise.
4930 * language.c (unknown_language_data): Likewise.
4931 (auto_language_data): Likewise.
4932 * language.h (struct language_data): Delete
4933 la_lookup_transparent_type field.
4934 (language_defn::lookup_transparent_type): New member function.
4935 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4936 initializer.
4937 * objc-lang.c (objc_language_data): Likewise.
4938 * opencl-lang.c (opencl_language_data): Likewise.
4939 * p-lang.c (pascal_language_data): Likewise.
4940 * rust-lang.c (rust_language_data): Likewise.
4941 * symtab.c (symbol_matches_domain): Update call.
4942
4943 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4944
4945 * ada-lang.c (ada_language_arch_info): Delete function, move
4946 implementation to...
4947 (ada_language::language_arch_info): ...here, a new member
4948 function.
4949 (ada_language_data): Delete la_language_arch_info.
4950 * c-lang.c (c_language_data): Likewise.
4951 (c_language::language_arch_info): New member function.
4952 (cplus_language_arch_info): Delete function, move
4953 implementation to...
4954 (cplus_language::language_arch_info): ...here, a new member
4955 function.
4956 (cplus_language_data): Delete la_language_arch_info.
4957 (asm_language_data): Likewise.
4958 (asm_language::language_arch_info): New member function.
4959 (minimal_language_data): Delete la_language_arch_info.
4960 (minimal_language::language_arch_info): New member function.
4961 * d-lang.c (d_language_arch_info): Delete function, move
4962 implementation to...
4963 (d_language::language_arch_info): ...here, a new member
4964 function.
4965 (d_language_data): Delete la_language_arch_info.
4966 * f-lang.c (f_language_arch_info): Delete function, move
4967 implementation to...
4968 (f_language::language_arch_info): ...here, a new member
4969 function.
4970 (f_language_data): Delete la_language_arch_info.
4971 * go-lang.c (go_language_arch_info): Delete function, move
4972 implementation to...
4973 (go_language::language_arch_info): ...here, a new member
4974 function.
4975 (go_language_data): Delete la_language_arch_info.
4976 * language.c (unknown_language_data): Likewise.
4977 (unknown_language::language_arch_info): New member function.
4978 (auto_language_data): Delete la_language_arch_info.
4979 (auto_language::language_arch_info): New member function.
4980 (language_gdbarch_post_init): Update call to
4981 la_language_arch_info.
4982 * language.h (language_data): Delete la_language_arch_info
4983 function pointer.
4984 (language_defn::language_arch_info): New function.
4985 * m2-lang.c (m2_language_arch_info): Delete function, move
4986 implementation to...
4987 (m2_language::language_arch_info): ...here, a new member
4988 function.
4989 (m2_language_data): Delete la_language_arch_info.
4990 * objc-lang.c (objc_language_arch_info): Delete function, move
4991 implementation to...
4992 (objc_language::language_arch_info): ...here, a new member
4993 function.
4994 (objc_language_data): Delete la_language_arch_info.
4995 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4996 implementation to...
4997 (opencl_language::language_arch_info): ...here, a new member
4998 function.
4999 (opencl_language_data): Delete la_language_arch_info.
5000 * p-lang.c (pascal_language_arch_info): Delete function, move
5001 implementation to...
5002 (pascal_language::language_arch_info): ...here, a new member
5003 function.
5004 (pascal_language_data): Delete la_language_arch_info.
5005 * rust-lang.c (rust_language_arch_info): Delete function, move
5006 implementation to...
5007 (rust_language::language_arch_info): ...here, a new member
5008 function.
5009 (rust_language_data): Delete la_language_arch_info.
5010
5011 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5012
5013 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5014 initializer.
5015 * c-lang.c (c_language_data): Likewise.
5016 (cplus_language_data): Likewise.
5017 (cplus_language::pass_by_reference_info): New method.
5018 (asm_language_data): Delete la_pass_by_reference initializer.
5019 (minimal_language_data): Likewise.
5020 * cp-abi.c (cp_pass_by_reference): Remove use of
5021 default_pass_by_reference.
5022 * d-lang.c (d_language_data): Likewise.
5023 * f-lang.c (f_language_data): Likewise.
5024 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5025 default_pass_by_reference.
5026 * go-lang.c (go_language_data): Likewise.
5027 * language.c (language_pass_by_reference): Update.
5028 (default_pass_by_reference): Delete.
5029 (unknown_language_data): Delete la_pass_by_reference
5030 initializer.
5031 (auto_language_data): Likewise.
5032 * language.h (struct language_data): Delete la_pass_by_reference
5033 field.
5034 (language_defn::pass_by_reference_info): New member function.
5035 (default_pass_by_reference): Delete declaration.
5036 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5037 initializer.
5038 * objc-lang.c (objc_language_data): Likewise.
5039 * opencl-lang.c (opencl_language_data): Likewise.
5040 * p-lang.c (pascal_language_data): Likewise.
5041 * rust-lang.c (rust_language_data): Likewise.
5042
5043 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5044
5045 * ada-lang.c (ada_read_var_value): Delete function, move
5046 implementation to...
5047 (ada_language::read_var_value): ...here.
5048 (ada_language_data): Delete la_read_var_value initializer.
5049 * c-lang.c (c_language_data): Likewise.
5050 (cplus_language_data): Likewise.
5051 (minimal_language_data): Likewise.
5052 * d-lang.c (d_language_data): Likewise.
5053 * f-lang.c (f_language_data): Likewise.
5054 * findvar.c (default_read_var_value): Rename to...
5055 (language_defn::read_var_value): ...this.
5056 * findvar.c (read_var_value): Update header comment, and change to
5057 call member function instead of function pointer.
5058 * go-lang.c (go_language_data): Likewise.
5059 * language.c (unknown_language_data): Delete la_read_var_value
5060 initializer.
5061 (auto_language_data): Likewise.
5062 * language.h (struct language_data): Delete la_read_var_value
5063 field.
5064 (language_defn::read_var_value): New member function.
5065 (default_read_var_value): Delete declaration.
5066 * m2-lang.c (m2_language_data): Delete la_read_var_value
5067 initializer.
5068 * objc-lang.c (objc_language_data): Likewise.
5069 * opencl-lang.c (opencl_language_data): Likewise.
5070 * p-lang.c (pascal_language_data): Likewise.
5071 * rust-lang.c (rust_language_data): Likewise.
5072 * value.h (default_read_var_value): Delete declaration.
5073
5074 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5075
5076 * ada-lang.c (ada_print_array_index): Delete function, move
5077 implementation to...
5078 (ada_language::print_array_index): ...here.
5079 (ada_language_data): Delete la_print_array_index initializer.
5080 * c-lang.c (c_language_data): Likewise.
5081 (cplus_language_data): Likewise.
5082 (minimal_language_data): Likewise.
5083 * d-lang.c (d_language_data): Likewise.
5084 * f-lang.c (f_language_data): Likewise.
5085 * go-lang.c (go_language_data): Likewise.
5086 * language.c (default_print_array_index): Delete function, move
5087 implementation to...
5088 (language_defn::print_array_index): ...here.
5089 (unknown_language_data): Delete la_print_array_index initializer.
5090 (auto_language_data): Likewise.
5091 * language.h (struct language_data): Delete la_print_array_index
5092 field.
5093 (language_defn::print_array_index): New member function.
5094 (LA_PRINT_ARRAY_INDEX): Update.
5095 (default_print_array_index): Delete declaration.
5096 * m2-lang.c (m2_language_data): Delete la_print_array_index
5097 initializer.
5098 * objc-lang.c (objc_language_data): Likewise.
5099 * opencl-lang.c (opencl_language_data): Likewise.
5100 * p-lang.c (pascal_language_data): Likewise.
5101 * rust-lang.c (rust_language_data): Likewise.
5102
5103 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5104
5105 * gdb/ada-lang.c (ada_language_defn): Convert to...
5106 (ada_language_data): ...this.
5107 (class ada_language): New class.
5108 (ada_language_defn): New static global.
5109 * gdb/c-lang.c (c_language_defn): Convert to...
5110 (c_language_data): ...this.
5111 (class c_language): New class.
5112 (c_language_defn): New static global.
5113 (cplus_language_defn): Convert to...
5114 (cplus_language_data): ...this.
5115 (class cplus_language): New class.
5116 (cplus_language_defn): New static global.
5117 (asm_language_defn): Convert to...
5118 (asm_language_data): ...this.
5119 (class asm_language): New class.
5120 (asm_language_defn): New static global.
5121 (minimal_language_defn): Convert to...
5122 (minimal_language_data): ...this.
5123 (class minimal_language): New class.
5124 (minimal_language_defn): New static global.
5125 * gdb/d-lang.c (d_language_defn): Convert to...
5126 (d_language_data): ...this.
5127 (class d_language): New class.
5128 (d_language_defn): New static global.
5129 * gdb/f-lang.c (f_language_defn): Convert to...
5130 (f_language_data): ...this.
5131 (class f_language): New class.
5132 (f_language_defn): New static global.
5133 * gdb/go-lang.c (go_language_defn): Convert to...
5134 (go_language_data): ...this.
5135 (class go_language): New class.
5136 (go_language_defn): New static global.
5137 * gdb/language.c (unknown_language_defn): Remove declaration.
5138 (current_language): Initialize to nullptr, real initialization is
5139 moved to _initialize_language.
5140 (languages): Delete global.
5141 (language_defn::languages): Define.
5142 (set_language_command): Use language_defn::languages.
5143 (set_language): Likewise.
5144 (range_error): Likewise.
5145 (language_enum): Likewise.
5146 (language_def): Likewise.
5147 (add_set_language_command): Use language_def::languages for the
5148 language list, and language_def to lookup language pointers.
5149 (skip_language_trampoline): Use language_defn::languages.
5150 (unknown_language_defn): Convert to...
5151 (unknown_language_data): ...this.
5152 (class unknown_language): New class.
5153 (unknown_language_defn): New static global.
5154 (auto_language_defn): Convert to...
5155 (auto_language_data): ...this.
5156 (class auto_language): New class.
5157 (auto_language_defn): New static global.
5158 (language_gdbarch_post_init): Use language_defn::languages.
5159 (_initialize_language): Initialize current_language.
5160 * gdb/language.h (struct language_defn): Rename to...
5161 (struct language_data): ...this.
5162 (struct language_defn): New.
5163 (auto_language_defn): Delete.
5164 (unknown_language_defn): Delete.
5165 (minimal_language_defn): Delete.
5166 (ada_language_defn): Delete.
5167 (asm_language_defn): Delete.
5168 (c_language_defn): Delete.
5169 (cplus_language_defn): Delete.
5170 (d_language_defn): Delete.
5171 (f_language_defn): Delete.
5172 (go_language_defn): Delete.
5173 (m2_language_defn): Delete.
5174 (objc_language_defn): Delete.
5175 (opencl_language_defn): Delete.
5176 (pascal_language_defn): Delete.
5177 (rust_language_defn): Delete.
5178 * gdb/m2-lang.c (m2_language_defn): Convert to...
5179 (m2_language_data): ...this.
5180 (class m2_language): New class.
5181 (m2_language_defn): New static global.
5182 * gdb/objc-lang.c (objc_language_defn): Convert to...
5183 (objc_language_data): ...this.
5184 (class objc_language): New class.
5185 (objc_language_defn): New static global.
5186 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5187 (opencl_language_data): ...this.
5188 (class opencl_language): New class.
5189 (opencl_language_defn): New static global.
5190 * gdb/p-lang.c (pascal_language_defn): Convert to...
5191 (pascal_language_data): ...this.
5192 (class pascal_language): New class.
5193 (pascal_language_defn): New static global.
5194 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5195 language pointer, update comment format.
5196 * gdb/rust-lang.c (rust_language_defn): Convert to...
5197 (rust_language_data): ...this.
5198 (class rust_language): New class.
5199 (rust_language_defn): New static global.
5200
5201 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5202
5203 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5204 member variable.
5205 <m_stmt_at_address>: New member variable.
5206 (lnp_state_machine::record_line): Don't record some lines, update
5207 tracking of is_stmt at the same address.
5208 (lnp_state_machine::lnp_state_machine): Initialise new member
5209 variables.
5210
5211 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5212
5213 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5214 "-include gnu-nat-mig.h".
5215 * gnu-nat-mig.h: New file.
5216 * gnu-nat.c: Include "gnu-nat-mig.h".
5217 (exc_server, msg_reply_server, notify_server,
5218 process_reply_server): Remove declarations.
5219
5220 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5221
5222 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5223 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5224 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5225 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5226 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5227 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5228 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5229 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5230 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5231 to gnu_nat_target class.
5232 * gnu-nat.c: Likewise.
5233 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5234 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5235 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5236 object.
5237 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5238 instead of `gnu_target'.
5239
5240 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5241
5242 * i386-gnu-tdep.c: Include "gdbcore.h"
5243 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5244 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5245 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5246 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5247 i386_gnu_sigcontext_addr): New functions
5248 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5249 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5250 tdep.
5251
5252 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5253
5254 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5255 before fork_inferior call. Avoid calling it if target_is_pushed returns
5256 true.
5257
5258 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5259
5260 * gnu-nat.h (gnu_target): New variable declaration.
5261 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5262 gnu_target.
5263 * gnu-nat.c (gnu_target): New variable.
5264 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5265 add_thread_silent, and add_thread calls.
5266 (gnu_nat_target::create_inferior): Pass gnu_target to
5267 add_thread_silent, thread_change_ptid call.
5268 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5269 call.
5270
5271 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5272
5273 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5274 (gnu_nat_target::find_memory_regions): Remove unused
5275 `old_address' variable.
5276
5277 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5278
5279 * gnu-nat.c: Include "gdbarch.h".
5280
5281 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5282
5283 * reply_mig_hack.awk (Error return): Cast function through
5284 void *, to bypass compiler function call check.
5285
5286 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5287
5288 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5289 $(srcdir)/reply_mig_hack.awk.
5290
5291 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5292
5293 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5294
5295 2020-05-30 Jonny Grant <jg@jguk.org>
5296
5297 * configure.ac (ACX_BUGURL): change bug URL to https.
5298
5299 2020-05-30 Pedro Alves <palves@redhat.com>
5300
5301 * cp-support.c (replace_typedefs_template): New.
5302 (replace_typedefs_qualified_name): Handle
5303 DEMANGLE_COMPONENT_TEMPLATE.
5304
5305 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5306
5307 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5308 dwarf2/index-cache.h, dwarf2/index-write.c,
5309 dwarf2/index-write.h, dwarf2/line-header.c,
5310 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5311 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5312 variables and fields from `dwarf2_per_objfile` to just
5313 `per_objfile` throughout.
5314
5315 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5316
5317 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5318 <push_dwarf_reg_entry_value>: Add comment.
5319
5320 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5321 Keith Seitz <keiths@redhat.com>
5322
5323 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5324 instead of PyEval_ReleaseLock.
5325 (class gdbpy_gil): Move to earlier in file.
5326 (finalize_python): Set gdb_python_initialized.
5327 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5328 when not initialized.
5329
5330 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5331
5332 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5333 <push_dwarf_reg_entry_value>: Remove assert. Override
5334 per_objfile with caller_per_objfile.
5335
5336 2020-05-28 Tom de Vries <tdevries@suse.de>
5337
5338 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5339 PR gold/15646 workaround to symbol kind "type".
5340
5341 2020-05-27 Tom Tromey <tromey@adacore.com>
5342
5343 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5344
5345 2020-05-27 Tom Tromey <tromey@adacore.com>
5346
5347 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5348 Use htab_find_with_hash.
5349 <add_abbrev>: Remove "abbrev_number" parameter.
5350 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5351 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5352 (hash_abbrev): Add comment.
5353 (abbrev_table::lookup_abbrev): Move to header file.
5354 (abbrev_table::read): Update.
5355
5356 2020-05-27 Tom Tromey <tromey@adacore.com>
5357
5358 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5359 method.
5360 <canonical_name>: New member.
5361 <raw_name>: Rename from "name".
5362 (partial_die_info): Initialize canonical_name.
5363 (scan_partial_symbols): Check raw_name.
5364 (partial_die_parent_scope, partial_die_full_name)
5365 (add_partial_symbol, add_partial_subprogram)
5366 (add_partial_enumeration, load_partial_dies): Use "name" method.
5367 (partial_die_info::name): New method.
5368 (partial_die_info::read, guess_partial_die_structure_name)
5369 (partial_die_info::fixup): Update.
5370
5371 2020-05-27 Tom Tromey <tromey@adacore.com>
5372
5373 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5374 <get_ref_die_offset>: Inline.
5375 <get_ref_die_offset_complaint>: New method.
5376 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5377 (attribute::get_ref_die_offset_complaint): Rename from
5378 get_ref_die_offset. Just issue complaint.
5379
5380 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5381
5382 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5383
5384 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5385
5386 * exec.c (exec_file_attach): Use errno value of first openp failure.
5387
5388 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5389
5390 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5391 Don't close thread handle.
5392
5393 2020-05-27 Tom Tromey <tom@tromey.com>
5394 Simon Marchi <simon.marchi@efficios.com>
5395
5396 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5397 shared_ptr.
5398 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5399 member.
5400 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5401 dwarf2_per_bfd_objfile_data_key>: New globals.
5402 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5403 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5404 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5405 shared.
5406 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5407 short-circuit when sharing.
5408 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5409 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5410
5411 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5412
5413 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5414 to...
5415 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5416 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5417
5418 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5419
5420 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5421 build_name_components, find_name_components_bounds>:
5422 Add per_objfile parameter.
5423 (struct mapped_index) <symbol_name_at>: Likewise.
5424 (struct mapped_debug_names): Remove constructor.
5425 <dwarf2_per_objfile>: Remove field.
5426 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5427 (mapped_index_base::find_name_components_bounds,
5428 mapped_index_base::build_name_components,
5429 dw2_expand_symtabs_matching_symbol): Likewise.
5430 (class mock_mapped_index) <symbol_name_at>: Likewise.
5431 (check_match): Likewise.
5432 (check_find_bounds_finds): Likewise.
5433 (test_mapped_index_find_name_component_bounds): Update.
5434 (CHECK_MATCH): Update.
5435 (dw2_expand_symtabs_matching): Update.
5436 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5437 per_objfile parameter.
5438 <find_vec_in_debug_names>: Likewise.
5439 <m_per_objfile>: New field.
5440 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5441 parameter.
5442 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5443 (dw2_debug_names_iterator::next): Update.
5444 (dw2_debug_names_lookup_symbol): Update.
5445 (dw2_debug_names_expand_symtabs_for_function): Update.
5446 (dw2_debug_names_map_matching_symbols): Update.
5447 (dw2_debug_names_expand_symtabs_matching): Update.
5448 (dwarf2_read_debug_names): Update.
5449
5450 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5451
5452 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5453 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5454 move to dwarf2_per_objfile.
5455 <read_in_chain>: Remove.
5456 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5457 remove_all_cus, age_comp_units>: New methods.
5458 <m_dwarf2_cus>: New member.
5459 (struct dwarf2_per_cu_data) <cu>: Remove.
5460 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5461 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5462 moved to methods of dwarf2_per_objfile.
5463 (dwarf2_clear_marks): Remove.
5464 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5465 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5466 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5467 (dwarf2_per_objfile::remove_all_cus): New.
5468 (class free_cached_comp_units) <~free_cached_comp_units>:
5469 Update.
5470 (load_cu): Update.
5471 (dw2_do_instantiate_symtab): Adjust.
5472 (fill_in_sig_entry_from_dwo_entry): Adjust.
5473 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5474 (cutu_reader::cutu_reader): Likewise.
5475 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5476 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5477 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5478 and dwarf2_per_objfile::age_comp_units.
5479 (load_partial_comp_unit): Update.
5480 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5481 (process_queue): Likewise.
5482 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5483 backlink.
5484 (dwarf2_read_addr_index): Likewise.
5485 (follow_die_offset): Likewise.
5486 (dwarf2_fetch_die_loc_sect_off): Likewise.
5487 (dwarf2_fetch_constant_bytes): Likewise.
5488 (dwarf2_fetch_die_type_sect_off): Likewise.
5489 (follow_die_sig_1): Likewise.
5490 (load_full_type_unit): Likewise.
5491 (read_signatured_type): Likewise.
5492 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5493 (dwarf2_cu::~dwarf2_cu): Remove.
5494 (dwarf2_per_objfile::get_cu): New.
5495 (dwarf2_per_objfile::set_cu): New.
5496 (age_cached_comp_units): Rename to...
5497 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5498 to std::unordered_map.
5499 (free_one_cached_comp_unit): Rename to...
5500 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5501 to std::unordered_map.
5502 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5503 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5504 a dwarf2_per_objfile in data.
5505 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5506 (dwarf2_clear_marks): Remove.
5507
5508 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5509
5510 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5511 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5512 (init_tu_and_read_dwo_dies): Likewise.
5513 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5514 (cutu_reader::cutu_reader): Likewise.
5515 (load_partial_comp_unit): Likewise.
5516 (process_psymtab_comp_unit): Update.
5517 (build_type_psymtabs_1): Update.
5518 (process_skeletonless_type_unit): Update.
5519 (load_full_comp_unit): Update.
5520 (find_partial_die): Update.
5521 (dwarf2_read_addr_index): Update.
5522 (read_signatured_type): Update.
5523
5524 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5525
5526 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5527 m_header_read_in>: New fields.
5528 <get_header>: New method.
5529 * dwarf2/read.c (per_cu_header_read_in): Remove.
5530 (dwarf2_per_cu_data::get_header): New.
5531 (dwarf2_per_cu_data::addr_size): Update.
5532 (dwarf2_per_cu_data::offset_size): Update.
5533 (dwarf2_per_cu_data::ref_addr_size): Update.
5534
5535 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5536
5537 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5538 (dw2_do_instantiate_symtab): Update.
5539 (queue_and_load_all_dwo_tus): Change parameter from
5540 dwarf2_per_cu_data to dwarf2_cu.
5541 (dwarf2_fetch_die_loc_sect_off): Update.
5542 (dwarf2_fetch_constant_bytes): Update.
5543 (dwarf2_fetch_die_type_sect_off): Update.
5544
5545 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5546
5547 * dwarf2/read.c (process_full_comp_unit,
5548 process_full_type_unit): Remove per_cu, per_objfile paramters.
5549 Add dwarf2_cu parameter.
5550 (process_queue): Update.
5551
5552 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5553
5554 * dwarf2/read.c (create_cu_from_index_list): Replace
5555 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5556 (create_cus_from_index_list): Likewise.
5557 (create_cus_from_index): Likewise.
5558 (create_signatured_type_table_from_index): Likewise.
5559 (create_cus_from_debug_names_list): Likewise.
5560 (create_cus_from_debug_names): Likewise.
5561 (dwarf2_read_gdb_index): Update.
5562 (dwarf2_read_debug_names): Update.
5563
5564 2020-05-27 Tom Tromey <tom@tromey.com>
5565 Simon Marchi <simon.marchi@efficios.com>
5566
5567 * dwarf2/read.h (struct dwarf2_per_objfile)
5568 <get_type_for_signatured_type, set_type_for_signatured_type>:
5569 New methods.
5570 <m_type_map>: New member.
5571 (struct signatured_type) <type>: Remove.
5572 * dwarf2/read.c
5573 (dwarf2_per_objfile::get_type_for_signatured_type,
5574 dwarf2_per_objfile::set_type_for_signatured_type): New.
5575 (get_signatured_type): Use new methods.
5576
5577 2020-05-27 Tom Tromey <tom@tromey.com>
5578 Simon Marchi <simon.marchi@efficios.com>
5579
5580 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5581 (struct dwarf2_per_objfile) <type_units>: New member.
5582 <get_type_unit_group_unshareable>: New method.
5583 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5584 num_symtabs, symtabs>: Remove; move to
5585 type_unit_group_unshareable.
5586 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5587 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5588 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5589
5590 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5591
5592 * dwarf2/read.h (struct dwarf2_per_cu_data):
5593 <dwarf2_per_objfile>: Remove.
5594 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5595 dwarf2_per_objfile.
5596 (create_signatured_type_table_from_index): Likewise.
5597 (create_signatured_type_table_from_debug_names): Likewise.
5598 (create_debug_type_hash_table): Likewise.
5599 (fill_in_sig_entry_from_dwo_entry): Likewise.
5600 (create_type_unit_group): Likewise.
5601 (read_comp_units_from_section): Likewise.
5602 (create_cus_hash_table): Likewise.
5603
5604 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5605
5606 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5607 dwarf2_per_cu_data::dwarf2_per_objfile.
5608 (compute_compunit_symtab_includes): Likewise.
5609 (dwarf2_cu::start_symtab): Likewise.
5610
5611 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5612
5613 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5614 parameter.
5615 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5616 (read_namespace_alias): Update.
5617 (lookup_die_type): Update.
5618 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5619 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5620 Update.
5621 (disassemble_dwarf_expression): Update.
5622
5623 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5624
5625 * dwarf2/read.h (struct dwarf2_queue_item): Add
5626 dwarf2_per_objfile parameter, assign new parameter.
5627 <per_objfile>: New field.
5628 * dwarf2/read.c (free_one_cached_comp_unit): Add
5629 dwarf2_per_objfile parameter.
5630 (queue_comp_unit): Likewise.
5631 (dw2_do_instantiate_symtab): Update.
5632 (process_psymtab_comp_unit): Update.
5633 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5634 (process_imported_unit_die): Update.
5635 (queue_and_load_dwo_tu): Update.
5636 (follow_die_offset): Update.
5637 (follow_die_sig_1): Update.
5638
5639 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5640
5641 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5642 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5643 (read_call_site_scope): Assign per_objfile.
5644 (dwarf2_per_cu_data::objfile): Remove.
5645 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5646 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5647 dwarf2_per_objfile parameter.
5648 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5649 dwarf2_per_objfile parameter.
5650 (dwarf_expr_reg_to_entry_parameter): Add output
5651 dwarf2_per_objfile parameter.
5652 (locexpr_get_frame_base): Update.
5653 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5654 <push_dwarf_reg_entry_value>: Update.
5655 <call_site_to_target_addr>: Update.
5656 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5657 parameter.
5658 (value_of_dwarf_reg_entry): Update.
5659 (rw_pieced_value): Update.
5660 (indirect_synthetic_pointer): Update.
5661 (dwarf2_evaluate_property): Update.
5662 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5663 parameter.
5664 (locexpr_read_variable): Update.
5665 (locexpr_get_symbol_read_needs): Update.
5666 (loclist_read_variable): Update.
5667
5668 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5669
5670 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5671 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5672 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5673 parameter.
5674 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5675 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5676 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5677 parameter.
5678 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5679 sect_variable_value): Add dwarf2_per_objfile parameter.
5680 (class dwarf_evaluate_loc_desc) <dwarf_call,
5681 dwarf_variable_value>: Update.
5682 (fetch_const_value_from_synthetic_pointer): Add
5683 dwarf2_per_objfile parameter.
5684 (fetch_const_value_from_synthetic_pointer): Update.
5685 (coerced_pieced_ref): Update.
5686 (class symbol_needs_eval_context) <dwarf_call,
5687 dwarf_variable_value>: Update.
5688 (dwarf2_compile_expr_to_ax): Update.
5689
5690 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5691
5692 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5693 parameter.
5694 (dwarf2_evaluate_loc_desc_full): Update.
5695
5696 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5697
5698 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5699 parameter.
5700 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5701 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5702 dwarf2_per_objfile parameter.
5703 (decode_debug_loc_dwo_addresses): Likewise.
5704 (dwarf2_find_location_expression): Update.
5705 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5706 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5707 parameter.
5708 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5709 parameter.
5710 (locexpr_describe_location_1): Likewise.
5711 (locexpr_describe_location): Update.
5712
5713 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5714
5715 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5716 Remove.
5717 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5718 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5719 (dwarf2_compile_property_to_c): Update.
5720 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5721 use text offset from objfile.
5722 (locexpr_tracepoint_var_ref): Update.
5723 (locexpr_generate_c_location): Update.
5724 (loclist_describe_location): Update.
5725 (loclist_tracepoint_var_ref): Update.
5726 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5727 dwarf2_per_objfile parameter.
5728 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5729 use text offset from objfile.
5730 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5731
5732 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5733
5734 * dwarf2/expr.h (struct dwarf_expr_context)
5735 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5736 <offset>: Remove.
5737 <per_objfile>: New member.
5738 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5739 dwarf2_per_objfile parameter. Don't set offset, set
5740 per_objfile.
5741 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5742 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5743 a dwarf2_per_objfile object instead of an offset.
5744 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5745 constructor.
5746 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5747 to dwarf2_expr_executor constructor. Don't set offset.
5748 (dwarf2_fetch_cfa_info): Update.
5749 (struct dwarf2_frame_cache) <text_offset>: Remove.
5750 <per_objfile>: New field.
5751 (dwarf2_frame_cache): Update.
5752 (dwarf2_frame_prev_register): Update.
5753 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5754 <dwarf_evaluate_loc_desc>: Add constructor.
5755 (dwarf2_evaluate_loc_desc_full): Update.
5756 (dwarf2_locexpr_baton_eval): Update.
5757 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5758 Add constructor.
5759 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5760
5761 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5762
5763 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5764 addr_sized_int_type>: Move to dwarf2_cu.
5765 <int_type>: Move to dwarf2_per_objfile.
5766 (struct dwarf2_per_objfile) <int_type>: Move here.
5767 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5768 addr_sized_int_type>: Move here.
5769 (read_func_scope): Update.
5770 (read_array_type): Update.
5771 (read_tag_string_type): Update.
5772 (attr_to_dynamic_prop): Update.
5773 (dwarf2_per_cu_data::int_type): Rename to...
5774 (dwarf2_per_objfile::int_type): ... this.
5775 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5776 (dwarf2_cu::addr_sized_int_type): ... this.
5777 (read_subrange_type): Update.
5778 (dwarf2_per_cu_data::addr_type): Rename to...
5779 (dwarf2_cu::addr_type): ... this.
5780 (set_die_type): Update.
5781
5782 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5783
5784 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5785 data through per_cu->cu.
5786
5787 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5788
5789 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5790 dwarf2_per_cu_data parameter fo dwarf2_cu.
5791 (lookup_dwo_type_unit): Likewise.
5792 (read_cutu_die_from_dwo): Likewise.
5793 (lookup_dwo_unit): Likewise.
5794 (open_and_init_dwo_file): Likewise.
5795 (lookup_dwo_cutu): Likewise.
5796 (lookup_dwo_comp_unit): Likewise.
5797 (lookup_dwo_type_unit): Likewise.
5798 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5799 (cutu_reader::cutu_reader): Update.
5800
5801 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5802
5803 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5804 parameter.
5805 (process_full_type_unit): Likewise.
5806 (process_queue): Update.
5807
5808 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5809
5810 * dwarf2/read.c (recursively_compute_inclusions): Add
5811 dwarf2_per_objfile parameter.
5812 (compute_compunit_symtab_includes): Likewise.
5813 (process_cu_includes): Update.
5814
5815 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5816
5817 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5818 parameter.
5819 (create_type_unit_group): Update.
5820 (process_psymtab_comp_unit_reader): Update.
5821 (build_type_psymtabs_reader): Update.
5822
5823 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5824
5825 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5826 object through m_this_cu->cu.
5827
5828 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5829
5830 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5831 the info parameter.
5832 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5833
5834 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5835
5836 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5837 per_objfile parameter.
5838 (load_full_type_unit): Add per_objfile parameter.
5839 (read_signatured_type): Likewise.
5840 (load_full_comp_unit): Likewise.
5841 (load_cu): Likewise.
5842 (dw2_do_instantiate_symtab): Likewise.
5843 (dw2_get_file_names): Likewise.
5844 (dw2_map_symtabs_matching_filename): Update.
5845 (dw_expand_symtabs_matching_file_matcher): Update.
5846 (dw2_map_symbol_filenames): Update.
5847 (process_psymtab_comp_unit): Add per_objfile parameter.
5848 (build_type_psymtabs_1): Update.
5849 (process_skeletonless_type_unit): Update.
5850 (dwarf2_build_psymtabs_hard): Update.
5851 (load_partial_comp_unit): Add per_objfile parameter.
5852 (scan_partial_symbols): Update.
5853 (load_full_comp_unit): Add per_objfile parameter.
5854 (process_imported_unit_die): Update.
5855 (create_cus_hash_table): Update.
5856 (find_partial_die): Update.
5857 (dwarf2_read_addr_index): Update.
5858 (follow_die_offset): Update.
5859 (dwarf2_fetch_die_loc_sect_off): Update.
5860 (dwarf2_fetch_constant_bytes): Update.
5861 (dwarf2_fetch_die_type_sect_off): Update.
5862 (follow_die_sig_1): Update.
5863 (load_full_type_unit): Add per_objfile parameter.
5864 (read_signatured_type): Likewise.
5865
5866 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5867
5868 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5869 of objfile_name.
5870
5871 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5872
5873 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5874 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5875 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5876 field.
5877 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5878 (create_cus_from_index): Update.
5879 (dwarf2_read_gdb_index): Update.
5880 (create_cus_from_debug_names): Update.
5881 (dwarf2_read_debug_names): Update.
5882 (get_abbrev_section_for_cu): Update.
5883 (create_all_comp_units): Update.
5884 (read_attribute_value): Update.
5885 (get_debug_line_section): Update.
5886 * dwarf2/index-cache.c (index_cache::store): Update.
5887 * dwarf2/index-write.c (save_gdb_index_command): Update.
5888 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5889
5890 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5891
5892 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5893 member.
5894 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5895 dwarf2_per_cu_data::per_bfd.
5896 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5897 (create_type_unit_group): Likewise.
5898 (queue_comp_unit): Remove reference to
5899 per_cu->dwarf2_per_objfile.
5900 (maybe_queue_comp_unit): Likewise.
5901 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5902 (create_cus_hash_table): Assign new field.
5903
5904 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5905
5906 * dwarf2/read.c: Replace
5907 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5908 dwarf2_cu->per_objfile throughout.
5909
5910 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5911
5912 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5913 parameter, don't use per_cu->dwarf2_per_objfile.
5914 (dw2_instantiate_symtab): Likewise.
5915 (dw2_find_last_source_symtab): Update.
5916 (dw2_map_expand_apply): Update.
5917 (dw2_lookup_symbol): Update.
5918 (dw2_expand_symtabs_for_function): Update.
5919 (dw2_expand_all_symtabs): Update.
5920 (dw2_expand_symtabs_with_fullname): Update.
5921 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5922 don't use per_cu->dwarf2_per_objfile.
5923 (dw2_expand_marked_cus): Update.
5924 (dw2_find_pc_sect_compunit_symtab): Update.
5925 (dw2_debug_names_lookup_symbol): Update.
5926 (dw2_debug_names_expand_symtabs_for_function): Update.
5927 (dw2_debug_names_map_matching_symbols): Update.
5928 (dwarf2_psymtab::expand_psymtab): Update.
5929
5930 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5931
5932 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5933 <per_objfile>: New member.
5934 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5935 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5936 call to dwarf2_cu.
5937 (cutu_reader::cutu_reader): Update.
5938 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5939
5940 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5941
5942 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5943 struct dwarf2_per_objfile.
5944 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5945 dwarf2_per_bfd.
5946 * dwarf2/read.c (set_die_type): Update.
5947 (get_die_type_at_offset): Update.
5948
5949 2020-05-27 Tom Tromey <tom@tromey.com>
5950 Simon Marchi <simon.marchi@efficios.com>
5951
5952 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5953 method.
5954 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5955 get_symtab, set_symtab>: New methods.
5956 <m_symtabs>: New field.
5957 (struct dwarf2_psymtab): Derive from partial_symtab.
5958 <readin_p, get_compunit_symtab>: Declare methods.
5959 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5960 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5961 New methods.
5962 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5963 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5964 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5965 (dw2_symtab_iter_next, dw2_print_stats)
5966 (dw2_expand_symtabs_with_fullname)
5967 (dw2_expand_symtabs_matching_one)
5968 (dw_expand_symtabs_matching_file_matcher)
5969 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5970 (dw2_debug_names_iterator::next)
5971 (dw2_debug_names_map_matching_symbols)
5972 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5973 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5974 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5975 New methods.
5976 (get_compunit_symtab, process_full_comp_unit)
5977 (process_full_type_unit): Update.
5978 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5979
5980 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5981
5982 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5983 then introduce a new dwarf2_per_objfile type.
5984 <read_line_string>: Move to the new dwarf2_per_objfile type.
5985 <objfile>: Likewise.
5986 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5987 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5988 dwarf2_per_objfile->per_bfd.
5989 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5990 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5991 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5992 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5993 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5994 (dwarf2_per_objfile::locate_sections): Rename to...
5995 (dwarf2_per_bfd::locate_sections): ... this.
5996 (dwarf2_per_objfile::get_cutu): Rename to...
5997 (dwarf2_per_bfd::get_cutu): ... this.
5998 (dwarf2_per_objfile::get_cu): Rename to...
5999 (dwarf2_per_bfd::get_cu): ... this.
6000 (dwarf2_per_objfile::get_tu): Rename to...
6001 (dwarf2_per_bfd::get_tu): ... this.
6002 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6003 (dwarf2_per_bfd::allocate_per_cu): ... this.
6004 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6005 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6006 (get_gdb_index_contents_ftype): Change parameter from
6007 dwarf2_per_objfile to dwarf2_per_bfd.
6008 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6009 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6010
6011 2020-05-27 Tom Tromey <tom@tromey.com>
6012 Simon Marchi <simon.marchi@efficios.com>
6013
6014 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6015 (allocate_piece_closure): Set "per_objfile" member.
6016 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6017 (locexpr_describe_location, loclist_describe_location): Use new
6018 member.
6019 * dwarf2/read.c (read_call_site_scope)
6020 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6021 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6022 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6023 handle_data_member_location): Set per_objfile member.
6024 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6025 member.
6026 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6027
6028 2020-05-27 Tom Tromey <tom@tromey.com>
6029
6030 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6031 allocate_signatured_type>: Declare new methods.
6032 <m_num_psymtabs>: New member.
6033 (struct dwarf2_per_cu_data) <index>: New member.
6034 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6035 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6036 (create_cu_from_index_list): Use allocate_per_cu.
6037 (create_signatured_type_table_from_index)
6038 (create_signatured_type_table_from_debug_names)
6039 (create_debug_type_hash_table, add_type_unit)
6040 (read_comp_units_from_section): Use allocate_signatured_type.
6041
6042 2020-05-27 Tom Tromey <tom@tromey.com>
6043
6044 * psymtab.c (partial_map_expand_apply)
6045 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6046 (psym_lookup_global_symbol_language)
6047 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6048 (psym_print_stats, psym_expand_symtabs_for_function)
6049 (psym_map_symbol_filenames, psym_map_matching_symbols)
6050 (psym_expand_symtabs_matching)
6051 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6052 (maintenance_check_psymtabs): Update.
6053 * psympriv.h (struct partial_symtab) <readin_p,
6054 get_compunit_symtab>: Add objfile parameter.
6055 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6056 Likewise.
6057 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6058 get_compunit_symtab>: Likewise.
6059 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6060
6061 2020-05-27 Tom Tromey <tom@tromey.com>
6062
6063 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6064 member.
6065 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6066 (create_cu_from_index_list)
6067 (create_signatured_type_table_from_index)
6068 (create_signatured_type_table_from_debug_names)
6069 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6070 (dwarf2_create_include_psymtab)
6071 (create_debug_type_hash_table, add_type_unit)
6072 (create_type_unit_group, read_comp_units_from_section)
6073 (dwarf2_compute_name, create_cus_hash_table)
6074 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6075 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6076 obstack.
6077 (dw2_get_real_path): Likewise. Change argument to
6078 dwarf2_per_objfile.
6079
6080 2020-05-27 Luis Machado <luis.machado@linaro.org>
6081
6082 PR tdep/26000
6083 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6084 for ldrd (immediate).
6085
6086 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6087
6088 * command.h: Add comment giving the name of class_tui.
6089 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6090 create the fake command for the help for class_tui.
6091
6092 2020-05-26 Tom Tromey <tromey@adacore.com>
6093
6094 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6095 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6096 (val_atr): New function.
6097 (value_val_atr): Use it.
6098 * ada-valprint.c (print_optional_low_bound): Change low bound
6099 handling for enums.
6100 (val_print_packed_array_elements): Don't call discrete_position.
6101 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6102 discrete_position for enum types.
6103 * language.c (default_print_array_index): Change type.
6104 * language.h (struct language_defn) <la_print_array_index>: Add
6105 index_type parameter, change type of index_value.
6106 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6107 (default_print_array_index): Update.
6108 * valprint.c (maybe_print_array_index): Don't call
6109 value_from_longest. Update.
6110 (value_print_array_elements): Don't call discrete_position.
6111
6112 2020-05-26 Tom Tromey <tromey@adacore.com>
6113
6114 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6115 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6116
6117 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6118
6119 PR gdb/13519
6120 * avr-tdep.c (avr_integer_to_address): Return data or code
6121 address accordingly to the second 'type' argument of the
6122 function.
6123
6124 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6125
6126 * infcmd.c, inferior.h: (construct_inferior_arguments):
6127 Moved function from here to gdbsupport/common-inferior.{h,cc}
6128
6129 2020-05-23 Tom Tromey <tom@tromey.com>
6130
6131 Revert commit eca1f90c:
6132 * NEWS: Remove entry for completion styling.
6133 * completer.c (_rl_completion_prefix_display_length): Move
6134 declaration later.
6135 (gdb_fnprint): Revert.
6136 (gdb_display_match_list_1): Likewise.
6137 * cli/cli-style.c (completion_prefix_style)
6138 (completion_difference_style, completion_suffix_style): Remove.
6139 (_initialize_cli_style): Revert.
6140 * cli/cli-style.h (completion_prefix_style)
6141 (completion_difference_style, completion_suffix_style): Don't
6142 declare.
6143
6144 2020-05-24 Pedro Alves <palves@redhat.com>
6145
6146 * symtab.c (completion_list_add_name): Return boolean indication
6147 of whether the symbol matched.
6148 (completion_list_add_symbol): Don't try to remove C++ aliases if
6149 the symbol didn't match in the first place.
6150 * symtab.h (completion_list_add_name): Return bool.
6151
6152 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6153
6154 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6155 type::field.
6156
6157 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6158
6159 GDB 9.2 released.
6160
6161 2020-05-23 Tom Tromey <tom@tromey.com>
6162
6163 * NEWS: Add entry for completion styling.
6164 * completer.c (_rl_completion_prefix_display_length): Move
6165 declaration earlier.
6166 (gdb_fnprint): Use completion_style.
6167 (gdb_display_match_list_1): Likewise.
6168 * cli/cli-style.c (completion_prefix_style)
6169 (completion_difference_style, completion_suffix_style): New
6170 globals.
6171 (_initialize_cli_style): Register new globals.
6172 * cli/cli-style.h (completion_prefix_style)
6173 (completion_difference_style, completion_suffix_style): Declare.
6174
6175 2020-05-23 Pedro Alves <palves@redhat.com>
6176
6177 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6178 (parse_escape): Use ISDIGIT instead of isdigit.
6179 (puts_debug): Use gdb_isprint instead of isprint.
6180 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6181 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6182 ISSPACE instead of isspace.
6183 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6184 instead of isspace.
6185 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6186 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6187 instead of isxdigit and ISDIGIT instead of isdigit.
6188
6189 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6190
6191 * gdbtypes.h (struct type) <field>: New method.
6192 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6193 or type::field.
6194
6195 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6196
6197 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6198 (TYPE_FIELDS): Use type::fields. Change all call sites that
6199 modify the propery to use type::set_fields instead.
6200
6201 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6202
6203 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6204 type::num_fields instead.
6205
6206 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6207
6208 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6209 methods.
6210 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6211 that modify the number of fields to use type::set_num_fields
6212 instead.
6213
6214 2020-05-22 Tom Tromey <tromey@adacore.com>
6215
6216 * compile/compile-object-load.h (munmap_list_free): Don't
6217 declare.
6218
6219 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6220
6221 * annotate.c (annotate_source_line): Update return type, add call
6222 to update current symtab and line.
6223 * annotate.h (annotate_source_line): Update return type, and
6224 extend header comment.
6225 * source.c (info_line_command): Check annotation_level before
6226 calling annotate_source_line.
6227 * stack.c (print_frame_info): If calling annotate_source_line
6228 returns true, then don't print any other source line information.
6229
6230 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6231
6232 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6233
6234 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6235
6236 * coffread.c (patch_type): Remove NULL check before xfree.
6237 * corefile.c (set_gnutarget): Likewise.
6238 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6239 * exec.c (build_section_table): Likewise.
6240 * remote.c (remote_target::pass_signals): Likewise.
6241 * utils.c (n_spaces): Likewise.
6242 * cli/cli-script.c (document_command): Likewise.
6243 * i386-windows-tdep.c (core_process_module_section): Likewise.
6244 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6245
6246 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6247
6248 * symfile.c (reread_symbols): Clear objfile's section_offsets
6249 vector and section indices, re-compute them by calling
6250 sym_offsets.
6251
6252 2020-05-20 Tom Tromey <tromey@adacore.com>
6253
6254 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6255 (desc_one_bound, desc_index_type): Compute field name.
6256
6257 2020-05-20 Tom de Vries <tdevries@suse.de>
6258
6259 PR symtab/25833
6260 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6261
6262 2020-05-20 Alan Modra <amodra@gmail.com>
6263
6264 PR 25993
6265 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6266 bfd_set_filename.
6267 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6268 passed to bfd_set_filename.
6269 * symfile-mem.c (add_vsyscall_page): Likewise for string
6270 passed to symbol_file_add_from_memory.
6271 (symbol_file_add_from_memory): Make name param a const char* and
6272 don't strdup.
6273
6274 2020-05-20 Alan Modra <amodra@gmail.com>
6275
6276 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6277 rather than accessing bfd->filename directly.
6278 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6279 and use bfd_section_name.
6280 * dwarf2/frame.c (decode_frame_entry): Likewise.
6281 * exec.c (exec_set_section_address): Likewise.
6282 * solib-aix.c (solib_aix_bfd_open): Likewise.
6283 * stap-probe.c (get_stap_base_address): Likewise.
6284 * symfile.c (reread_symbols): Likewise.
6285
6286 2020-05-19 Tom Tromey <tromey@adacore.com>
6287
6288 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6289
6290 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6291
6292 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6293
6294 2020-05-19 Pedro Alves <palves@redhat.com>
6295
6296 * NEWS (set exec-file-mismatch): Adjust entry.
6297 * exec.c: Include "build-id.h".
6298 (validate_exec_file): Try to match build IDs instead of filenames.
6299 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6300 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6301 and pass down 'warn_if_slow'.
6302 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6303 gdb_bfd_open_closure to pass it down.
6304 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6305
6306 2020-05-19 Pedro Alves <palves@redhat.com>
6307
6308 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6309 * target.c (target_fileio_open_1): Rename to target_fileio_open
6310 and make extern. Use bool.
6311 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6312 (target_fileio_read_alloc_1): Adjust.
6313 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6314 (target_fileio_open_warn_if_slow): Delete declaration.
6315
6316 2020-05-19 Pedro Alves <palves@redhat.com>
6317
6318 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6319 Adjust all callers.
6320
6321 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6322
6323 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6324 whether disp is negative.
6325
6326 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6327
6328 * symfile.h (struct symfile_segment_data)
6329 <~symfile_segment_data>: Remove.
6330 <segment_info>: Change to std::vector.
6331 * symfile.c (default_symfile_segments): Update.
6332 * elfread.c (elf_symfile_segments): Update.
6333
6334 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6335
6336 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6337 <segments>: New.
6338 <segment_bases, segment_sizes>: Remove.
6339 * symfile.c (default_symfile_segments): Update.
6340 * elfread.c (elf_symfile_segments): Update.
6341 * remote.c (remote_target::get_offsets): Update.
6342 * solib-target.c (solib_target_relocate_section_addresses):
6343 Update.
6344
6345 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6346
6347 * symfile.h (struct symfile_segment_data): Initialize fields.
6348 <~symfile_segment_data>: Add.
6349 (symfile_segment_data_up): New.
6350 (struct sym_fns) <sym_segments>: Return a
6351 symfile_segment_data_up.
6352 (default_symfile_segments): Return a symfile_segment_data_up.
6353 (free_symfile_segment_data): Remove.
6354 (get_symfile_segment_data): Return a symfile_segment_data_up.
6355 * symfile.c (default_symfile_segments): Likewise.
6356 (get_symfile_segment_data): Likewise.
6357 (free_symfile_segment_data): Remove.
6358 (symfile_find_segment_sections): Update.
6359 * elfread.c (elf_symfile_segments): Return a
6360 symfile_segment_data_up.
6361 * remote.c (remote_target::get_offsets): Update.
6362 * solib-target.c (solib_target_relocate_section_addresses):
6363 Update.
6364 * symfile-debug.c (debug_sym_segments): Return a
6365 symfile_segment_data_up.
6366
6367 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6368
6369 PR build/25981
6370 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6371 Hardcode register numbers.
6372
6373 PR build/25981
6374 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6375 procfs_find_LDT_entry): Remove.
6376 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6377 procfs_find_LDT_entry): Remove.
6378 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6379 Remove.
6380
6381 2020-05-17 Pedro Alves <palves@redhat.com>
6382 Andrew Burgess <andrew.burgess@embecosm.com>
6383 Keno Fischer <keno@juliacomputing.com>
6384
6385 PR gdb/25741
6386 * breakpoint.c (build_target_condition_list): Update comments.
6387 (build_target_command_list): Update comments and skip matching
6388 locations.
6389 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6390 a separate function. Simplify "set breakpoint auto-hw off"
6391 handling.
6392 (insert_breakpoints): Update comment.
6393 (tracepoint_locations_match): New parameter. For breakpoints,
6394 compare location types too, if the caller wants to.
6395 (handle_automatic_hardware_breakpoints): New functions.
6396 (bp_location_is_less_than): Also sort by location type and
6397 hardware breakpoint length.
6398 (update_global_location_list): Handle "set breakpoint auto-hw on"
6399 here.
6400 (update_breakpoint_locations): Ask breakpoint_locations_match to
6401 ignore location types.
6402
6403 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6404
6405 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6406 type::name instead.
6407
6408 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6409
6410 * gdbtypes.h (struct type) <name, set_name>: New methods.
6411 (TYPE_CODE): Use type::name. Change all call sites used to set
6412 the name to use type::set_name instead.
6413
6414 2020-05-16 Tom Tromey <tom@tromey.com>
6415
6416 * top.c (quit_force): Update.
6417 * infrun.c (handle_no_resumed): Update.
6418 * top.h (all_uis): New function.
6419 (ALL_UIS): Remove.
6420
6421 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6422
6423 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6424
6425 2020-05-16 Pedro Alves <palves@redhat.com>
6426
6427 * ia64-linux-nat.c
6428 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6429 Declare method.
6430 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6431
6432 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6433
6434 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6435 (sparc64_adi_info): Likewise.
6436
6437 2020-05-15 Tom Tromey <tom@tromey.com>
6438
6439 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6440 block_objfile.
6441 (lookup_objfile_from_block): Remove.
6442 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6443 (lookup_global_symbol): Use block_objfile.
6444 * symtab.h (lookup_objfile_from_block): Don't declare.
6445 * printcmd.c (clear_dangling_display_expressions): Use
6446 block_objfile.
6447 * parse.c (operator_check_standard): Use block_objfile.
6448
6449 2020-05-15 Tom Tromey <tom@tromey.com>
6450
6451 * language.c (language_alloc_type_symbol): Set
6452 SYMBOL_SECTION.
6453 * symtab.c (initialize_objfile_symbol): Remove.
6454 (allocate_symbol): Remove.
6455 (allocate_template_symbol): Remove.
6456 * dwarf2/read.c (fixup_go_packaging): Use "new".
6457 (new_symbol): Use "new".
6458 (read_variable): Don't call initialize_objfile_symbol. Use
6459 "new".
6460 (read_func_scope): Use "new".
6461 * xcoffread.c (process_xcoff_symbol): Don't call
6462 initialize_objfile_symbol.
6463 (SYMBOL_DUP): Remove.
6464 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6465 "new".
6466 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6467 (allocate_template_symbol): Don't declare.
6468 (struct symbol): Add copy constructor. Change defaults.
6469 * jit.c (finalize_symtab): Use "new".
6470 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6471 Use "new".
6472 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6473 (common_block_end): Use "new".
6474 * mdebugread.c (parse_symbol): Use "new".
6475 (new_symbol): Likewise.
6476
6477 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6478
6479 * NEWS: Mention changes to help and apropos.
6480
6481 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6482
6483 * command.h (enum command_class): Improve comments, document
6484 that class_alias is for user-defined aliases, give the class
6485 name for each class, remove unused class_xdb.
6486 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6487 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6488 by a precise class.
6489 * infcmd.c (_initialize_infcmd): Likewise.
6490 * reverse.c (_initialize_reverse): Likewise.
6491 * stack.c (_initialize_stack): Likewise.
6492 * symfile.c (_initialize_symfile): Likewise.
6493 * tracepoint.c (_initialize_tracepoint): Likewise.
6494
6495 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6496
6497 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6498 when their aliased command is traversed.
6499 (help_cmd): Add fput_command_names_styled call to
6500 output command name and aliases when command has an alias.
6501
6502 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6503
6504 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6505 * cli/cli-decode.c (help_cmd_list): Declare as static,
6506 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6507 a command together with the command.
6508 (fput_command_name_styled, fput_command_names_styled): New functions.
6509 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6510 fput_command_name_styled.
6511 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6512 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6513
6514 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6515
6516 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6517 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6518 * command.h (cmd_show_list): Likewise.
6519 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6520 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6521
6522 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6523
6524 * unittests/command-def-selftests.c (traverse_command_structure):
6525 Verify all commands of a list have the same prefix command and
6526 that only the top cmdlist commands have a null prefix.
6527
6528 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6529
6530 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6531 as prefix, not one of its aliases.
6532 (set_cmd_prefix): Remove.
6533 (do_add_cmd): Centralize the setting of the prefix of a command, when
6534 command is defined after its full chain of prefix commands.
6535 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6536 (add_setshow_cmd_full): Likewise.
6537 (update_prefix_field_of_prefixed_commands): New function.
6538 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6539 update_prefix_field_of_prefixed_commands.
6540 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6541 addresses of remote_set_cmdlist and remote_show_cmdlist given
6542 as argument, not the address of an argument.
6543 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6544 * gdb/remote.c (_initialize_remote): Likewise.
6545
6546 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6547
6548 * cli/cli-cmds.c (alias_command): Check for an existing alias
6549 using lookup_cmd_composition, as valid_command_p is too strict
6550 and forbids aliases that are the prefix of an existing alias
6551 or command.
6552 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6553 command is properly recognised as a valid command.
6554
6555 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6556
6557 * unittests/help-doc-selftests.c: Rename to
6558 unittests/command-def-selftests.c
6559 * unittests/command-def-selftests.c (help_doc_tests): Update some
6560 comments.
6561 (command_structure_tests, traverse_command_structure): New namespace
6562 and function.
6563 (command_structure_invariants_tests): New function.
6564 (_initialize_command_def_selftests) Renamed from
6565 _initialize_help_doc_selftests, register command_structure_invariants
6566 selftest.
6567
6568 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6569
6570 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6571 an alias of 'show'.
6572
6573 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6574
6575 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6576 ada_is_fixed_point_type. Update all callers.
6577 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6578 all callers.
6579 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6580 Update all callers.
6581 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6582 print_fixed_point_type. Update all callers.
6583 * ada-valprint.c (ada_value_print_num): Replace call to
6584 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6585
6586 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6587
6588 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6589 processors.
6590 (cpu_supports_bts): Add CV_AMD case.
6591
6592 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6593 Simon Marchi <simon.marchi@efficios.com>
6594
6595 * infrun.c (stop_all_threads): Collect multiple wait events at
6596 each pass.
6597
6598 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6599
6600 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6601 type::code instead.
6602
6603 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6604
6605 * gdbtypes.h (struct type) <code, set_code>: New methods.
6606 (TYPE_CODE): Use type::code. Change all call sites used to set
6607 the code to use type::set_code instead.
6608
6609 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6610 Tom de Vries <tdevries@suse.de>
6611 Pedro Alves <palves@redhat.com>
6612
6613 PR threads/25478
6614 * infrun.c (stop_all_threads): Do NOT ignore
6615 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6616 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6617 received.
6618 (handle_no_resumed): Remove code handling a live inferior with no
6619 threads.
6620 * remote.c (has_single_non_exited_thread): New.
6621 (remote_target::update_thread_list): Do not delete a thread if is
6622 the last thread of the process.
6623 * thread.c (thread_select): Call delete_exited_threads instead of
6624 prune_threads.
6625
6626 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6627
6628 * infrun.c (stop_all_threads): Enable/disable thread events of all
6629 targets. Move a debug message denoting the end of the function
6630 into the SCOPED_EXIT block.
6631
6632 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6633
6634 * process-stratum-target.h: Include <set>.
6635 (all_non_exited_process_targets, switch_to_target_no_thread): New
6636 function declarations.
6637 * process-stratum-target.c (all_non_exited_process_targets)
6638 (switch_to_target_no_thread): New function implementations.
6639
6640 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6641
6642 * infrun.c (handle_inferior_event): Extract out a piece of code
6643 into...
6644 (mark_non_executing_threads): ...this new function.
6645
6646 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6647
6648 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6649 use.
6650
6651 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6652
6653 * regcache.c (regcache_read_pc_protected): New function
6654 implementation that returns 0 if the PC cannot read via
6655 'regcache_read_pc'.
6656 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6657 instead of 'regcache_read_pc'.
6658 (keep_going_pass_signal): Ditto.
6659
6660 2020-05-13 Tom Tromey <tromey@adacore.com>
6661
6662 * ada-lang.c (align_value): Remove.
6663 (ada_template_to_fixed_record_type_1): Use align_up.
6664
6665 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6666
6667 * async-event.c: Update the copyright year.
6668 * async-event.h: Update the copyright year.
6669
6670 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6671
6672 * objfiles.h (is_addr_in_objfile,
6673 shared_objfile_contains_address_p): Return bool.
6674 * objfile.c (is_addr_in_objfile,
6675 shared_objfile_contains_address_p): Return bool.
6676
6677 2020-05-11 Tom Tromey <tromey@adacore.com>
6678
6679 * cli/cli-cmds.c (info_command): Restore.
6680 (_initialize_cli_cmds): Use add_prefix_command for "info".
6681 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6682
6683 2020-05-11 Tom Tromey <tromey@adacore.com>
6684
6685 * ada-lang.c (ada_value_primitive_field): Now public.
6686 * ada-lang.h (ada_value_primitive_field): Declare.
6687 * ada-valprint.c (print_field_values): Use
6688 ada_value_primitive_field for wrapper fields.
6689
6690 2020-05-11 Tom de Vries <tdevries@suse.de>
6691
6692 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6693 MODULE_DOMAIN.
6694
6695 2020-05-11 Tom de Vries <tdevries@suse.de>
6696
6697 PR symtab/25941
6698 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6699 with length 0, if not gdb-produced.
6700 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6701
6702 2020-05-09 Tom de Vries <tdevries@suse.de>
6703
6704 PR gdb/25955
6705 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6706 calculation.
6707
6708 2020-05-09 Tom Tromey <tom@tromey.com>
6709
6710 * top.c (server_command): Now bool.
6711 * top.h (server_command): Now bool.
6712
6713 2020-05-08 Tom Tromey <tromey@adacore.com>
6714
6715 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6716 already being processed.
6717
6718 2020-05-08 Tom Tromey <tom@tromey.com>
6719
6720 * printcmd.c (struct display) <next>: Remove.
6721 <display>: New constructor.
6722 <exp_string>: Now a std::string.
6723 <enabled_p>: Now a bool.
6724 (display_number): Move definition earlier.
6725 (displays): Rename from display_chain. Now a std::vector.
6726 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6727 (display_command): Update.
6728 (do_one_display, disable_display)
6729 (enable_disable_display_command, do_enable_disable_display):
6730 Update.
6731 (free_display): Remove.
6732 (clear_displays): Rewrite.
6733 (delete_display): Update.
6734 (map_display_numbers): Use function_view. Remove "data"
6735 parameter. Update.
6736 (do_delete_display): Remove.
6737 (undisplay_command): Update.
6738 (do_one_display, do_displays, disable_display)
6739 (info_display_command): Update.
6740 (do_enable_disable_display): Remove.
6741 (enable_disable_display_command)
6742 (clear_dangling_display_expressions): Update.
6743
6744 2020-05-08 Tom Tromey <tom@tromey.com>
6745
6746 * symtab.c (set_symbol_cache_size)
6747 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6748 (maintenance_print_symbol_cache_statistics): Update.
6749 * symmisc.c (print_symbol_bcache_statistics)
6750 (print_objfile_statistics, maintenance_print_objfiles)
6751 (maintenance_info_symtabs, maintenance_check_symtabs)
6752 (maintenance_expand_symtabs, maintenance_info_line_tables):
6753 Update.
6754 * symfile-debug.c (set_debug_symfile): Update.
6755 * source.c (forget_cached_source_info): Update.
6756 * python/python.c (gdbpy_progspaces): Update.
6757 * psymtab.c (maintenance_info_psymtabs): Update.
6758 * probe.c (parse_probes): Update.
6759 * linespec.c (iterate_over_all_matching_symtabs)
6760 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6761 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6762 * exec.c (exec_target::close): Update.
6763 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6764 * breakpoint.c (print_one_breakpoint_location)
6765 (create_longjmp_master_breakpoint)
6766 (create_std_terminate_master_breakpoint): Update.
6767 * progspace.c (program_spaces): Now a std::vector.
6768 (maybe_new_address_space): Update.
6769 (add_program_space): Remove.
6770 (program_space::program_space): Update.
6771 (remove_program_space): Update.
6772 (number_of_program_spaces): Remove.
6773 (print_program_space, update_address_spaces): Update.
6774 * progspace.h (program_spaces): Change type.
6775 (ALL_PSPACES): Remove.
6776 (number_of_program_spaces): Don't declare.
6777 (struct program_space) <next>: Remove.
6778
6779 2020-05-08 Tom Tromey <tom@tromey.com>
6780
6781 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6782 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6783 (enable_break): Update.
6784 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6785 (frv_fdpic_find_canonical_descriptor): Update.
6786 (frv_fetch_objfile_link_map): Update.
6787 * progspace.c (program_space::free_all_objfiles): Update.
6788 (program_space::solibs): New method.
6789 * progspace.h (struct program_space) <solibs>: New method.
6790 * solist.h (master_so_list): Don't declare.
6791 (ALL_SO_LIBS): Remove.
6792 * solib.h (so_list_head): Remove.
6793 (update_solib_list): Update comment.
6794 * solib.c (master_so_list): Remove.
6795 (solib_used, update_solib_list, solib_add)
6796 (info_sharedlibrary_command, clear_solib)
6797 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6798
6799 2020-05-08 Tom Tromey <tom@tromey.com>
6800
6801 * extension.c (extension_languages): Now a std::array.
6802 (ALL_EXTENSION_LANGUAGES): Remove.
6803 (get_ext_lang_defn, get_ext_lang_of_file)
6804 (eval_ext_lang_from_control_command): Update.
6805 (finish_ext_lang_initialization)
6806 (auto_load_ext_lang_scripts_for_objfile)
6807 (ext_lang_type_printers::ext_lang_type_printers)
6808 (apply_ext_lang_type_printers)
6809 (ext_lang_type_printers::~ext_lang_type_printers)
6810 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6811 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6812 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6813 (get_matching_xmethod_workers, ext_lang_colorize)
6814 (ext_lang_before_prompt): Update.
6815 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6816
6817 2020-05-08 Tom Tromey <tom@tromey.com>
6818
6819 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6820 overload.
6821 <swap_string, m_string>: Remove.
6822 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6823 Update.
6824 * stabsread.c (define_symbol, read_type): Update.
6825 * linespec.c (find_linespec_symbols): Update.
6826 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6827 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6828 * dbxread.c (read_dbx_symtab): Update.
6829 * cp-support.h (cp_canonicalize_string_full)
6830 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6831 Return unique_xmalloc_ptr.
6832 * cp-support.c (inspect_type): Update.
6833 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6834 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6835 Likewise.
6836 * c-typeprint.c (print_name_maybe_canonical): Update.
6837 * break-catch-throw.c (check_status_exception_catchpoint):
6838 Update.
6839
6840 2020-05-08 Tom de Vries <tdevries@suse.de>
6841
6842 * infrun.c (follow_fork): Copy current_line and current_symtab to
6843 child thread.
6844
6845 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6846
6847 * async-event.c (struct async_signal_handler, struct
6848 async_event_handler): Reformat, remove typedef.
6849
6850 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6851
6852 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6853 access thistype->main_type->dyn_prop_list directly.
6854
6855 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6856
6857 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6858 (remove_dyn_prop): Remove. Update all users to use
6859 type::remove_dyn_prop.
6860 * gdbtypes.c (remove_dyn_prop): Rename to...
6861 (type::remove_dyn_prop): ... this.
6862
6863 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6864
6865 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6866 (add_dyn_prop): Remove. Update all users to use
6867 type::add_dyn_prop.
6868 * gdbtypes.c (add_dyn_prop): Rename to...
6869 (type::add_dyn_prop): ... this.
6870
6871 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6872
6873 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6874 (get_dyn_prop): Remove. Update all users to use
6875 type::dyn_prop.
6876 * gdbtypes.c (get_dyn_prop): Rename to...
6877 (type::dyn_prop): ... this.
6878
6879 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6880
6881 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6882
6883 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6884
6885 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6886 instruction, skip it if it's there.
6887
6888 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6889
6890 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6891
6892 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6893
6894 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6895 * gdbtypes.c (recursive_dump_type): Remove use of
6896 TYPE_INCOMPLETE.
6897
6898 2020-05-03 Tom Tromey <tom@tromey.com>
6899
6900 * breakpoint.c (catch_command, tcatch_command): Remove.
6901 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6902 add_show_prefix_cmd.
6903 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6904 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6905 Remove.
6906 (add_internal_problem_command): Use add_basic_prefix_cmd,
6907 add_show_prefix_cmd.
6908 * mips-tdep.c (set_mipsfpu_command): Remove.
6909 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6910 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6911 (_initialize_index_cache): Use add_basic_prefix_cmd.
6912 * memattr.c (dummy_cmd): Remove.
6913 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6914 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6915 (_initialize_tui_win): Use add_basic_prefix_cmd,
6916 add_show_prefix_cmd.
6917 * cli/cli-logging.c (set_logging_command): Remove.
6918 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6919 add_show_prefix_cmd.
6920 (show_logging_command): Remove.
6921 * target.c (target_command): Remove.
6922 (add_target): Use add_basic_prefix_cmd.
6923
6924 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6925
6926 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6927
6928 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6929
6930 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6931 info_command.
6932
6933 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6934
6935 * nbsd-nat.c (nbsd_enable_proc_events)
6936 (nbsd_nat_target::post_startup_inferior): Add.
6937 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6938 (nbsd_nat_target::update_thread_list): Rewrite.
6939 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6940 "PTRACE_LWP_CREATE".
6941 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6942
6943 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6944
6945 * stack.c (_initialize_stack): Remove duplicated creation
6946 of "frame" command and "f" alias.
6947
6948 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6949
6950 PR gdb/18706
6951 * gdbtypes.c (check_typedef): Calculate size of array of
6952 stubbed type.
6953
6954 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6955
6956 PR gdb/15559
6957 * i386-tdep.c (i386_push_dummy_call): Call
6958 i386_thiscall_push_dummy_call.
6959 (i386_thiscall_push_dummy_call): New function.
6960 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6961 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6962 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6963
6964 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6965
6966 * gdbarch.sh (do_read): Add shellcheck disable directive for
6967 warning SC2162.
6968
6969 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6970
6971 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6972 "referenced but not assigned" warning.
6973
6974 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6975
6976 * gdbarch.sh: Remove code that sets fallbackdefault.
6977
6978 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6979
6980 * gdbarch.sh: Use shell operators && and || instead of
6981 -a and -o.
6982
6983 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6984
6985 * gdbarch.sh: Use $(...) instead of `...`.
6986
6987 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6988
6989 * gdbarch.sh: Use double quotes around variables.
6990
6991 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6992
6993 * gdbarch.sh: Use %s with printf, instead of variables in the
6994 format string.
6995
6996 2020-04-29 Tom Tromey <tromey@adacore.com>
6997
6998 PR ada/25875:
6999 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7000 type fields here.
7001 (read_enumeration_type): Call
7002 update_enumeration_type_from_children later. Update comments.
7003 (process_enumeration_scope): Don't create type fields.
7004
7005 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7006
7007 * nbsd-tdep.c: Include "xml-syscall.h".
7008 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7009
7010 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7011
7012 * nbsd-nat.c: Include "sys/wait.h".
7013 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7014 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7015 (nbsd_nat_target::remove_exec_catchpoint)
7016 (nbsd_nat_target::set_syscall_catchpoint): Add.
7017 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7018 (nbsd_nat_target::insert_exec_catchpoint)
7019 (nbsd_nat_target::remove_exec_catchpoint)
7020 (nbsd_nat_target::set_syscall_catchpoint): Add.
7021 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7022 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7023 `nbsd_get_syscall_number'.
7024
7025 2020-04-29 Tom Tromey <tom@tromey.com>
7026
7027 * stack.c (print_block_frame_labels): Remove.
7028
7029 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7030
7031 PR gdb/17320
7032 * ada-valprint.c (val_print_packed_array_elements): Move array
7033 end bracket to new line.
7034 (ada_val_print_string): Remove extra spaces before first array
7035 element.
7036 * c-valprint.c (c_value_print_array): Likewise.
7037 * m2-valprint.c (m2_print_array_contents): Likewise.
7038 (m2_value_print_inner): Likewise.
7039 * p-valprint.c (pascal_value_print_inner): Likewise.
7040 * valprint.c (generic_val_print_array): Likewise.
7041 (value_print_array_elements): Move first array element and array
7042 end bracket to new line.
7043
7044 2020-04-29 Tom de Vries <tdevries@suse.de>
7045
7046 PR symtab/25889
7047 * linespec.c (find_method): Fix ix calculation.
7048
7049 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7050
7051 * syscalls/update-netbsd.sh: New file.
7052 * syscalls/netbsd.xml: Regenerate.
7053 * data-directory/Makefile.in: Register `netbsd.xml' in
7054 `SYSCALLS_FILES'.
7055
7056 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7057
7058 * syscalls/update-freebsd.sh: Add double quotes.
7059
7060 2020-04-28 Tom Tromey <tom@tromey.com>
7061
7062 * NEWS: Update.
7063 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7064 (cmdpy_init): Allow class_tui.
7065
7066 2020-04-28 Mark Williams <mark@myosotissp.com>
7067
7068 PR gdb/24480
7069 * dwarf2read.c: Add missing assingments to list_in_scope when
7070 start_symtab was already called.
7071
7072 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7073
7074 PR gdb/25881
7075 * dwarf2/read.c (offset_map_type): Use
7076 gdb:hash_enum<sect_offset> as hash function.
7077
7078 2020-04-28 Tom de Vries <tdevries@suse.de>
7079
7080 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7081 with DW_AT_signature.
7082
7083 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7084
7085 * configure.ac: Remove check for fs_base/gs_base in
7086 user_regs_struct.
7087 * configure: Re-generate.
7088 * config.in: Re-generate.
7089 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7090 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7091 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7092
7093 2020-04-27 Luis Machado <luis.machado@linaro.org>
7094
7095 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7096 problematic inline frame unwinding situation.
7097 * frame.c (frame_id_computed_p): New function.
7098 * frame.h (frame_id_computed_p): New prototype.
7099
7100 2020-04-26 Tom Tromey <tom@tromey.com>
7101
7102 * command.h (enum command_class) <class_pseudo>: Remove.
7103
7104 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7105
7106 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7107 and whitespace.
7108
7109 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7110
7111 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7112 `PT_GET_PROCESS_STATE' block.
7113
7114 2020-04-24 Tom Tromey <tom@tromey.com>
7115
7116 * symtab.h (symbol_get_demangled_name): Don't declare.
7117 * symtab.c (symbol_get_demangled_name): Remove.
7118 (general_symbol_info::natural_name)
7119 (general_symbol_info::demangled_name): Update.
7120
7121 2020-04-24 Tom Tromey <tom@tromey.com>
7122
7123 PR rust/25025:
7124 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7125
7126 2020-04-24 Tom Tromey <tom@tromey.com>
7127
7128 PR symtab/12707:
7129 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7130 exists.
7131 (new_symbol): Likewise.
7132 * compile/compile-object-load.c (get_out_value_type): Use
7133 symbol_matches_search_name.
7134
7135 2020-04-24 Tom Tromey <tom@tromey.com>
7136
7137 * dwarf2/read.c (add_partial_symbol): Do not call
7138 compute_and_set_names.
7139
7140 2020-04-24 Tom Tromey <tom@tromey.com>
7141
7142 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7143 overload.
7144
7145 2020-04-24 Tom Tromey <tom@tromey.com>
7146
7147 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7148 (add_psymbol_to_list): New overload. Make old overload call new
7149 one.
7150 * psympriv.h (add_psymbol_to_list): New overload.
7151
7152 2020-04-24 Tom Tromey <tom@tromey.com>
7153
7154 * dwarf2/read.c (partial_die_info::read) <case
7155 DW_AT_linkage_name>: Use value_as_string.
7156 (dwarf2_string_attr): Use value_as_string.
7157 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7158 method.
7159 * dwarf2/attribute.c (attribute::value_as_string): New method.
7160
7161 2020-04-24 Tom Tromey <tom@tromey.com>
7162
7163 * symtab.c (general_symbol_info::natural_name)
7164 (general_symbol_info::demangled_name): Check for language_rust.
7165
7166 2020-04-24 Tom Tromey <tom@tromey.com>
7167
7168 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7169 (dwarf2_physname): ... from here.
7170 (partial_die_info::read): Add Rust "{" hack.
7171
7172 2020-04-24 Tom Tromey <tom@tromey.com>
7173
7174 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7175 method.
7176 (symbol_set_demangled_name): Don't declare.
7177 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7178 symbol_set_demangled_name.
7179 (general_symbol_info::set_language)
7180 (general_symbol_info::compute_and_set_names): Update.
7181 * minsyms.c (minimal_symbol_reader::install): Update.
7182 * dwarf2/read.c (new_symbol): Update.
7183
7184 2020-04-24 Tom Tromey <tromey@adacore.com>
7185
7186 PR python/23662:
7187 * python/py-type.c (convert_field): Handle
7188 FIELD_LOC_KIND_DWARF_BLOCK.
7189 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7190 (typy_get_dynamic): Nw function.
7191 (type_object_getset): Add "dynamic".
7192 * NEWS: Add entry.
7193
7194 2020-04-24 Tom Tromey <tromey@adacore.com>
7195
7196 * ada-typeprint.c (print_choices, print_variant_part)
7197 (print_record_field_types_dynamic): New functions.
7198 (print_record_field_types): Use print_record_field_types_dynamic.
7199
7200 2020-04-24 Tom Tromey <tromey@adacore.com>
7201
7202 * dwarf2/read.c (handle_data_member_location): New overload.
7203 (dwarf2_add_field): Use it.
7204 (decode_locdesc): Add "computed" parameter. Update comment.
7205 * gdbtypes.c (is_dynamic_type_internal): Also look for
7206 FIELD_LOC_KIND_DWARF_BLOCK.
7207 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7208 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7209 virtual base classes.
7210 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7211 FIELD_LOC_KIND_DWARF_BLOCK.
7212
7213 2020-04-24 Tom Tromey <tromey@adacore.com>
7214
7215 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7216 * gdbtypes.c (is_dynamic_type_internal): Check
7217 TYPE_HAS_DYNAMIC_LENGTH.
7218 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7219 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7220 New macros.
7221 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7222 constant.
7223
7224 2020-04-24 Tom Tromey <tromey@adacore.com>
7225
7226 * dwarf2/read.c (struct variant_field): Rewrite.
7227 (struct variant_part_builder): New.
7228 (struct nextfield): Remove "variant" field. Add "offset".
7229 (struct field_info): Add "current_variant_part" and
7230 "variant_parts".
7231 (alloc_discriminant_info): Remove.
7232 (alloc_rust_variant): New function.
7233 (quirk_rust_enum): Update.
7234 (dwarf2_add_field): Set "offset" member. Don't handle
7235 DW_TAG_variant_part.
7236 (offset_map_type): New typedef.
7237 (convert_variant_range, create_one_variant)
7238 (create_one_variant_part, create_variant_parts)
7239 (add_variant_property): New functions.
7240 (dwarf2_attach_fields_to_type): Call add_variant_property.
7241 (read_structure_type): Don't handle DW_TAG_variant_part.
7242 (handle_variant_part, handle_variant): New functions.
7243 (handle_struct_member_die): Use them.
7244 (process_structure_scope): Don't handle variant parts.
7245 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7246 (struct discriminant_info): Remove.
7247 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7248 (struct main_type) <flag_discriminated_union>: Remove.
7249 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7250 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7251 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7252 Update.
7253 * valops.c (value_union_variant): Remove.
7254 * value.h (value_union_variant): Don't declare.
7255
7256 2020-04-24 Tom Tromey <tromey@adacore.com>
7257
7258 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7259 (ada_value_primitive_packed_val): Update.
7260 * ada-valprint.c (ada_value_print_1): Update.
7261 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7262 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7263 just an address. Use evaluate_for_locexpr_baton.
7264 (dwarf2_evaluate_property): Update.
7265 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7266 array_view.
7267 * findvar.c (default_read_var_value): Update.
7268 * gdbtypes.c (compute_variant_fields_inner)
7269 (resolve_dynamic_type_internal): Update.
7270 (resolve_dynamic_type): Change type of valaddr parameter.
7271 * gdbtypes.h (resolve_dynamic_type): Update.
7272 * valarith.c (value_subscripted_rvalue): Update.
7273 * value.c (value_from_contents_and_address): Update.
7274
7275 2020-04-24 Tom Tromey <tromey@adacore.com>
7276
7277 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7278 "push_initial_value" parameter.
7279 (dwarf2_evaluate_property): Likewise.
7280 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7281
7282 2020-04-24 Tom Tromey <tromey@adacore.com>
7283
7284 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7285 (variant::matches, compute_variant_fields_recurse)
7286 (compute_variant_fields_inner, compute_variant_fields): New
7287 functions.
7288 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7289 Use resolved_type after type is made.
7290 (operator==): Add new cases.
7291 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7292 (struct discriminant_range, struct variant, struct variant_part):
7293 New.
7294 (union dynamic_prop_data) <variant_parts, original_type>: New
7295 members.
7296 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7297 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7298 constants.
7299 * value.c (unpack_bits_as_long): Now public.
7300 * value.h (unpack_bits_as_long): Declare.
7301
7302 2020-04-24 Tom Tromey <tromey@adacore.com>
7303
7304 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7305 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7306
7307 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7308
7309 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7310
7311 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7312
7313 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7314 (remove_fork_catchpoint, post_startup_inferior)
7315 (post_attach): Move...
7316 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7317 (remove_fork_catchpoint, post_startup_inferior)
7318 (post_attach): ...here.
7319 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7320 (remove_fork_catchpoint, post_startup_inferior)
7321 (post_attach): Move...
7322 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7323 (remove_fork_catchpoint, post_startup_inferior)
7324 (post_attach): ...here.
7325
7326 2020-04-24 Tom Tromey <tromey@adacore.com>
7327
7328 * nat/windows-nat.h (struct windows_thread_info)
7329 <pc_adjusted>: New member.
7330 * windows-nat.c (windows_fetch_one_register): Check
7331 pc_adjusted.
7332 (windows_nat_target::get_windows_debug_event)
7333 (windows_nat_target::wait): Set pc_adjusted.
7334
7335 2020-04-24 Tom de Vries <tdevries@suse.de>
7336
7337 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7338 Run gdb-add-index inside temp dir.
7339
7340 2020-04-23 Tom Tromey <tromey@adacore.com>
7341
7342 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7343 in loop.
7344
7345 2020-04-23 Luis Machado <luis.machado@linaro.org>
7346
7347 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7348 get_frame_register instead of gdbarch_unwind_pc.
7349
7350 2020-04-23 Tom de Vries <tdevries@suse.de>
7351
7352 * symtab.c (lookup_global_symbol): Prefer def over decl.
7353
7354 2020-04-23 Tom de Vries <tdevries@suse.de>
7355
7356 PR symtab/25807
7357 * block.c (best_symbol, better_symbol): Promote to external.
7358 * block.h (best_symbol, better_symbol): Declare.
7359 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7360 decl.
7361
7362 2020-04-23 Tom Tromey <tromey@adacore.com>
7363
7364 PR ada/25837:
7365 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7366 "const char *", not a "const std::string &".
7367 <name_and_matcher::operator==>: Update.
7368 * unittests/lookup_name_info-selftests.c: Change type of
7369 "result".
7370
7371 2020-04-23 Tom Tromey <tom@tromey.com>
7372
7373 * inferior.h (iterate_over_inferiors): Don't declare.
7374 * inferior.c (iterate_over_inferiors): Remove.
7375 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7376 Remove.
7377 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7378 use iterate_over_inferiors.
7379 (darwin_resume_inferior_it)
7380 (struct resume_inferior_threads_param)
7381 (darwin_resume_inferior_threads_it): Remove.
7382 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7383
7384 2020-04-23 Tom de Vries <tdevries@suse.de>
7385
7386 * blockframe.c (find_pc_partial_function): Use
7387 find_pc_sect_compunit_symtab rather than
7388 objfile->sf->qf->find_pc_sect_compunit_symtab.
7389
7390 2020-04-22 Tom de Vries <tdevries@suse.de>
7391
7392 PR symtab/25764
7393 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7394 in psymtabs.
7395
7396 2020-04-22 Tom de Vries <tdevries@suse.de>
7397
7398 PR symtab/25801
7399 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7400 symtabs.
7401
7402 2020-04-22 Tom de Vries <tdevries@suse.de>
7403
7404 PR symtab/25700
7405 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7406 CU if already created.
7407
7408 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7409
7410 * infrun.c (displaced_step_fixup): Switch to the event_thread
7411 before calling displaced_step_restore, not after.
7412
7413 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7414
7415 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7416 its inferior is not recorded by us.
7417 (record_btrace_target_open): Replace call to
7418 all_non_exited_threads () with call to current_inferior
7419 ()->non_exited_threads ().
7420 (record_btrace_target::stop_recording): Likewise.
7421 (record_btrace_target::close): Likewise.
7422 (record_btrace_target::wait): Likewise.
7423 (record_btrace_target::record_stop_replaying): Likewise.
7424
7425 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7426
7427 * btrace.c (btrace_enable): Throw an error on double enables and
7428 when enabling recording fails.
7429 (btrace_disable): Throw an error if the thread is not recorded.
7430
7431 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7432
7433 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7434 request if we do not have a thread_info.
7435
7436 2020-04-21 Tom de Vries <tdevries@suse.de>
7437
7438 PR gdb/25471
7439 * thread.c
7440 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7441 exception in get_frame_id.
7442
7443 2020-04-20 Tom Tromey <tromey@adacore.com>
7444
7445 * python/python.c (struct gdbpy_event): Mark move constructor as
7446 noexcept.
7447 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7448 constructor as noexcept.
7449 * completer.h (struct completion_result): Mark move constructor as
7450 noexcept.
7451 * completer.c (completion_result::completion_result): Use
7452 initialization style. Don't call reset_match_list.
7453
7454 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7455
7456 * MAINTAINERS (Write After Approval): Add myself.
7457
7458 2020-04-18 Tom Tromey <tom@tromey.com>
7459
7460 * windows-tdep.c (init_w32_command_list)
7461 (w32_prefix_command_valid): Restore.
7462 (_initialize_windows_tdep): Call init_w32_command_list.
7463
7464 2020-04-18 Tom Tromey <tom@tromey.com>
7465
7466 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7467 * value.c (value_fn_field): Update.
7468 * valops.c (find_function_in_inferior)
7469 (value_allocate_space_in_inferior): Update.
7470 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7471 Update.
7472 * tui/tui-source.c (tui_source_window::set_contents): Update.
7473 * symtab.c (lookup_global_or_static_symbol)
7474 (find_function_start_sal_1, skip_prologue_sal)
7475 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7476 * symmisc.c (dump_msymbols, dump_symtab_1)
7477 (maintenance_print_one_line_table): Update.
7478 * symfile.c (init_entry_point_info, section_is_mapped)
7479 (list_overlays_command, simple_read_overlay_table)
7480 (simple_overlay_update_1): Update.
7481 * stap-probe.c (handle_stap_probe): Update.
7482 * stabsread.c (dbx_init_float_type, define_symbol)
7483 (read_one_struct_field, read_enum_type, read_range_type): Update.
7484 * source.c (info_line_command): Update.
7485 * python/python.c (gdbpy_source_objfile_script)
7486 (gdbpy_execute_objfile_script): Update.
7487 * python/py-type.c (save_objfile_types): Update.
7488 * python/py-objfile.c (py_free_objfile): Update.
7489 * python/py-inferior.c (python_new_objfile): Update.
7490 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7491 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7492 (maintenance_check_psymtabs): Update.
7493 * printcmd.c (info_address_command): Update.
7494 * objfiles.h (struct objfile) <arch>: New method, from
7495 get_objfile_arch.
7496 (get_objfile_arch): Don't declare.
7497 * objfiles.c (get_objfile_arch): Remove.
7498 (filter_overlapping_sections): Update.
7499 * minsyms.c (msymbol_is_function): Update.
7500 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7501 (output_nondebug_symbol): Update.
7502 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7503 (mdebug_expand_psymtab): Update.
7504 * machoread.c (macho_add_oso_symfile): Update.
7505 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7506 Update.
7507 * linux-fork.c (checkpoint_command): Update.
7508 * linespec.c (convert_linespec_to_sals): Update.
7509 * jit.c (finalize_symtab): Update.
7510 * infrun.c (insert_exception_resume_from_probe): Update.
7511 * ia64-tdep.c (ia64_find_unwind_table): Update.
7512 * hppa-tdep.c (internalize_unwinds): Update.
7513 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7514 Update.
7515 * gcore.c (call_target_sbrk): Update.
7516 * elfread.c (record_minimal_symbol, elf_symtab_read)
7517 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7518 (elf_gnu_ifunc_resolve_by_got): Update.
7519 * dwarf2/read.c (create_addrmap_from_index)
7520 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7521 (read_debug_names_from_section)
7522 (process_psymtab_comp_unit_reader, add_partial_symbol)
7523 (add_partial_subprogram, process_full_comp_unit)
7524 (read_file_scope, read_func_scope, read_lexical_block_scope)
7525 (read_call_site_scope, dwarf2_ranges_read)
7526 (dwarf2_record_block_ranges, dwarf2_add_field)
7527 (mark_common_block_symbol_computed, read_tag_pointer_type)
7528 (read_tag_string_type, dwarf2_init_float_type)
7529 (dwarf2_init_complex_target_type, read_base_type)
7530 (partial_die_info::read, partial_die_info::read)
7531 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7532 (dwarf2_fetch_die_loc_sect_off): Update.
7533 * dwarf2/loc.c (dwarf2_find_location_expression)
7534 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7535 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7536 (dwarf2_loc_desc_get_symbol_read_needs)
7537 (locexpr_describe_location_piece, locexpr_describe_location_1)
7538 (loclist_describe_location): Update.
7539 * dwarf2/index-write.c (write_debug_names): Update.
7540 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7541 * dtrace-probe.c (dtrace_process_dof): Update.
7542 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7543 (process_one_symbol): Update.
7544 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7545 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7546 (coff_read_enum_type): Update.
7547 * cli/cli-cmds.c (edit_command, list_command): Update.
7548 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7549 * breakpoint.c (create_overlay_event_breakpoint)
7550 (create_longjmp_master_breakpoint)
7551 (create_std_terminate_master_breakpoint)
7552 (create_exception_master_breakpoint, get_sal_arch): Update.
7553 * block.c (block_gdbarch): Update.
7554 * annotate.c (annotate_source_line): Update.
7555
7556 2020-04-17 Tom Tromey <tromey@adacore.com>
7557
7558 * auto-load.c (show_auto_load_cmd): Remove.
7559 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7560 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7561 (maintenance_print_arc_command): Remove.
7562 * tui/tui-win.c (tui_command): Remove.
7563 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7564 * tui/tui-layout.c (tui_layout_command): Remove.
7565 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7566 * python/python.c (user_set_python, user_show_python): Remove.
7567 (_initialize_python): Use add_basic_prefix_cmd,
7568 add_show_prefix_cmd.
7569 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7570 (install_gdb_commands): Use add_basic_prefix_cmd,
7571 add_show_prefix_cmd.
7572 (info_guile_command): Remove.
7573 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7574 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7575 add_show_prefix_cmd.
7576 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7577 Remove do_set and do_show parameters.
7578 * cli/cli-style.c (set_style, show_style): Remove.
7579 (_initialize_cli_style): Use add_basic_prefix_cmd,
7580 add_show_prefix_cmd.
7581 (cli_style_option::add_setshow_commands): Remove do_set and
7582 do_show parameters.
7583 (cli_style_option::add_setshow_commands): Use
7584 add_basic_prefix_cmd, add_show_prefix_cmd.
7585 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7586 (set_style_name): Remove.
7587 * cli/cli-dump.c (dump_command, append_command): Remove.
7588 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7589 (tekhex_dump_command, binary_dump_command)
7590 (binary_append_command): Remove.
7591 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7592 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7593 (init_w32_command_list): Remove; move into ...
7594 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7595 * valprint.c (set_print, show_print, set_print_raw)
7596 (show_print_raw): Remove.
7597 (_initialize_valprint): Use add_basic_prefix_cmd,
7598 add_show_prefix_cmd.
7599 * typeprint.c (set_print_type, show_print_type): Remove.
7600 (_initialize_typeprint): Use add_basic_prefix_cmd,
7601 add_show_prefix_cmd.
7602 * record.c (set_record_command, show_record_command): Remove.
7603 (_initialize_record): Use add_basic_prefix_cmd,
7604 add_show_prefix_cmd.
7605 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7606 add_show_prefix_cmd.
7607 (info_command, show_command, set_debug, show_debug): Remove.
7608 * top.h (set_history, show_history): Don't declare.
7609 * top.c (set_history, show_history): Remove.
7610 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7611 (unset_tdesc_cmd): Remove.
7612 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7613 add_show_prefix_cmd.
7614 * symtab.c (info_module_command): Remove.
7615 (_initialize_symtab): Use add_basic_prefix_cmd.
7616 * symfile.c (overlay_command): Remove.
7617 (_initialize_symfile): Use add_basic_prefix_cmd.
7618 * sparc64-tdep.c (info_adi_command): Remove.
7619 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7620 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7621 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7622 add_show_prefix_cmd.
7623 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7624 (_initialize_serial): Use add_basic_prefix_cmd,
7625 add_show_prefix_cmd.
7626 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7627 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7628 add_show_prefix_cmd.
7629 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7630 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7631 add_show_prefix_cmd.
7632 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7633 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7634 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7635 add_show_prefix_cmd.
7636 * remote.c (remote_command, set_remote_cmd): Remove.
7637 (_initialize_remote): Use add_basic_prefix_cmd.
7638 * record-full.c (set_record_full_command)
7639 (show_record_full_command): Remove.
7640 (_initialize_record_full): Use add_basic_prefix_cmd,
7641 add_show_prefix_cmd.
7642 * record-btrace.c (cmd_set_record_btrace)
7643 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7644 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7645 (cmd_show_record_btrace_pt): Remove.
7646 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7647 add_show_prefix_cmd.
7648 * ravenscar-thread.c (set_ravenscar_command)
7649 (show_ravenscar_command): Remove.
7650 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7651 add_show_prefix_cmd.
7652 * mips-tdep.c (show_mips_command, set_mips_command)
7653 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7654 add_show_prefix_cmd.
7655 * maint.c (maintenance_command, maintenance_info_command)
7656 (maintenance_check_command, maintenance_print_command)
7657 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7658 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7659 add_show_prefix_cmd.
7660 (show_per_command_cmd): Remove.
7661 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7662 Remove.
7663 (maintenance_show_test_settings_cmd): Remove.
7664 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7665 add_show_prefix_cmd.
7666 * maint-test-options.c (maintenance_test_options_command):
7667 Remove.
7668 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7669 * macrocmd.c (macro_command): Remove
7670 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7671 * language.c (set_check, show_check): Remove.
7672 (_initialize_language): Use add_basic_prefix_cmd,
7673 add_show_prefix_cmd.
7674 * infcmd.c (unset_command): Remove.
7675 (_initialize_infcmd): Use add_basic_prefix_cmd.
7676 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7677 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7678 add_show_prefix_cmd.
7679 * go32-nat.c (go32_info_dos_command): Remove.
7680 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7681 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7682 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7683 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7684 (_initialize_frame): Use add_basic_prefix_cmd,
7685 add_show_prefix_cmd.
7686 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7687 (_initialize_dcache): Use add_basic_prefix_cmd,
7688 add_show_prefix_cmd.
7689 * cp-support.c (maint_cplus_command): Remove.
7690 (_initialize_cp_support): Use add_basic_prefix_cmd.
7691 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7692 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7693 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7694 add_basic_prefix_cmd, add_show_prefix_cmd.
7695 * breakpoint.c (save_command): Remove.
7696 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7697 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7698 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7699 add_show_prefix_cmd.
7700 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7701 (set_ada_command, show_ada_command): Remove.
7702 (_initialize_ada_language): Use add_basic_prefix_cmd,
7703 add_show_prefix_cmd.
7704 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7705
7706 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7707
7708 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7709 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7710
7711 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7712
7713 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7714 warning messages.
7715
7716 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7717
7718 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7719 import table is not at beginning of .idata section.
7720
7721 2020-04-16 Pedro Alves <palves@redhat.com>
7722
7723 * inferior.c (delete_inferior): Use delete operator directly
7724 instead of delete_program_space.
7725 * progspace.c (add_program_space): New, factored out from
7726 program_space::program_space.
7727 (remove_program_space): New, factored out from
7728 delete_program_space.
7729 (program_space::program_space): Remove intro comment. Rewrite.
7730 (program_space::~program_space): Remove intro comment. Call
7731 remove_program_space.
7732 (delete_program_space): Delete.
7733 * progspace.h (program_space::program_space): Make explicit. Move
7734 intro comment here, adjusted.
7735 (program_space::~program_space): Move intro comment here,
7736 adjusted.
7737 (delete_program_space): Remove.
7738
7739 2020-04-16 Tom Tromey <tromey@adacore.com>
7740
7741 * windows-nat.c (windows_nat::handle_access_violation): New
7742 function.
7743 * nat/windows-nat.h (handle_access_violation): Declare.
7744 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7745 windows-nat.c. Call handle_access_violation.
7746
7747 2020-04-16 Tom de Vries <tdevries@suse.de>
7748
7749 PR symtab/25791
7750 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7751 CUs without psymtab.
7752
7753 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7754
7755 * python/python.c (do_start_initialization): Don't call
7756 PyEval_InitThreads for Python 3.9 and beyond.
7757
7758 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7759
7760 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7761 thread functions.
7762 (obsd_nat_target::wait): Likewise.
7763
7764 2020-04-15 Tom Tromey <tromey@adacore.com>
7765
7766 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7767 (DEBUG_EXCEPT): Use debug_printf.
7768
7769 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7770
7771 * completer.c (class completion_tracker::completion_hash_entry)
7772 <hash_name>: New member function.
7773 (completion_tracker::discard_completions): New callback to hash a
7774 completion_hash_entry, pass this to htab_create_alloc.
7775
7776 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7777
7778 * windows-nat.c (windows_make_so): Warn rather than stopping with
7779 an error if realpath() fails.
7780
7781 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7782
7783 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7784 (nbsd_nat_target::info_proc): Add do_status.
7785
7786 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7787 Tom de Vries <tdevries@suse.de>
7788
7789 PR symtab/25718
7790 * psympriv.h (struct partial_symtab::read_symtab)
7791 (struct partial_symtab::expand_psymtab)
7792 (struct partial_symtab::read_dependencies): Update comments.
7793 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7794 read_symtab for includer.
7795 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7796 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7797 (struct dwarf2_include_psymtab::m_readin): Remove.
7798 (struct dwarf2_include_psymtab::includer): New member function.
7799 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7800
7801 2020-04-14 Tom de Vries <tdevries@suse.de>
7802
7803 PR symtab/25720
7804 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7805 with NULL symbol_matcher and lookup_name.
7806 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7807 and lookup_name.
7808 * dwarf2/read.c (dw2_expand_symtabs_matching)
7809 (dw2_debug_names_expand_symtabs_matching): Same.
7810 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7811 Make lookup_name a pointer. Update comment.
7812 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7813 lookup_name being a pointer.
7814 * symfile.c (expand_symtabs_matching): Same.
7815 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7816 * linespec.c (iterate_over_all_matching_symtabs): Same.
7817
7818 2020-04-13 Tom Tromey <tom@tromey.com>
7819
7820 * run-on-main-thread.c: Update include.
7821 * unittests/main-thread-selftests.c: Update include.
7822 * tui/tui-win.c: Update include.
7823 * tui/tui-io.c: Update include.
7824 * tui/tui-interp.c: Update include.
7825 * tui/tui-hooks.c: Update include.
7826 * top.h: Update include.
7827 * top.c: Update include.
7828 * ser-base.c: Update include.
7829 * remote.c: Update include.
7830 * remote-notif.c: Update include.
7831 * remote-fileio.c: Update include.
7832 * record-full.c: Update include.
7833 * record-btrace.c: Update include.
7834 * python/python.c: Update include.
7835 * posix-hdep.c: Update include.
7836 * mingw-hdep.c: Update include.
7837 * mi/mi-main.c: Update include.
7838 * mi/mi-interp.c: Update include.
7839 * main.c: Update include.
7840 * linux-nat.c: Update include.
7841 * interps.c: Update include.
7842 * infrun.c: Update include.
7843 * inf-loop.c: Update include.
7844 * event-top.c: Update include.
7845 * event-loop.c: Move to ../gdbsupport/.
7846 * event-loop.h: Move to ../gdbsupport/.
7847 * async-event.h: Update include.
7848 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7849
7850 2020-04-13 Tom Tromey <tom@tromey.com>
7851
7852 * tui/tui-win.c: Include async-event.h.
7853 * remote.c: Include async-event.h.
7854 * remote-notif.c: Include async-event.h.
7855 * record-full.c: Include async-event.h.
7856 * record-btrace.c: Include async-event.h.
7857 * infrun.c: Include async-event.h.
7858 * event-top.c: Include async-event.h.
7859 * event-loop.h: Move some declarations to async-event.h.
7860 * event-loop.c: Don't include ser-event.h or top.h. Move some
7861 code to async-event.c.
7862 * async-event.h: New file.
7863 * async-event.c: New file.
7864 * Makefile.in (COMMON_SFILES): Add async-event.c.
7865 (HFILES_NO_SRCDIR): Add async-event.h.
7866
7867 2020-04-13 Tom Tromey <tom@tromey.com>
7868
7869 * utils.c (flush_streams): New function.
7870 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7871
7872 2020-04-13 Tom Tromey <tom@tromey.com>
7873
7874 * event-loop.c (handle_file_event): Use warning, not
7875 printf_unfiltered.
7876
7877 2020-04-13 Tom Tromey <tom@tromey.com>
7878
7879 * event-loop.c: Include <chrono>.
7880
7881 2020-04-13 Tom Tromey <tom@tromey.com>
7882
7883 * gdb_select.h: Move to ../gdbsupport/.
7884 * event-loop.c: Update include path.
7885 * top.c: Update include path.
7886 * ser-base.c: Update include path.
7887 * ui-file.c: Update include path.
7888 * ser-tcp.c: Update include path.
7889 * guile/scm-ports.c: Update include path.
7890 * posix-hdep.c: Update include path.
7891 * ser-unix.c: Update include path.
7892 * gdb_usleep.c: Update include path.
7893 * mingw-hdep.c: Update include path.
7894 * inflow.c: Update include path.
7895 * infrun.c: Update include path.
7896 * event-top.c: Update include path.
7897
7898 2020-04-13 Tom Tromey <tom@tromey.com>
7899
7900 * configure: Rebuild.
7901 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7902
7903 2020-04-13 Tom Tromey <tom@tromey.com>
7904
7905 * event-loop.h (start_event_loop): Don't declare.
7906 * event-loop.c (start_event_loop): Move...
7907 * main.c (start_event_loop): ...here. Now static.
7908
7909 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7910
7911 * MAINTAINERS: Update my email address.
7912
7913 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7914
7915 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7916 IP_ALL.
7917
7918 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7919
7920 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7921 (nbsd_nat_target::info_proc): Add do_cmdline.
7922
7923 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7924
7925 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7926 (nbsd_nat_target::info_proc): Add do_cwd.
7927
7928 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7929
7930 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7931
7932 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7933
7934 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7935 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7936 (nbsd_nat_target::info_proc): New functions.
7937 * nbsd-nat.c (kinfo_get_vmmap): New function.
7938 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7939 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7940 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7941 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7942 functions.
7943 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7944 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7945 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7946 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7947 (KINFO_VME_FLAG_GROWS_DOWN): New.
7948
7949 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7950
7951 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7952 bit shift.
7953
7954 2020-04-10 Tom Tromey <tromey@adacore.com>
7955
7956 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7957
7958 2020-04-10 Tom Tromey <tromey@adacore.com>
7959
7960 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7961 separate debug files.
7962
7963 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7964
7965 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7966 Move to...
7967 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7968 ... here.
7969 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7970 Check for STATUS_WX86_BREAKPOINT.
7971 (windows_nat_target::wait): Same.
7972
7973 2020-04-10 Tom de Vries <tdevries@suse.de>
7974
7975 PR cli/25808
7976 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7977
7978 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7979
7980 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7981 (Write After Approval): Remove Tom de Vries.
7982
7983 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7984
7985 revert partially:
7986 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7987
7988 * buildsym.c (record_line): Fix undefined behavior and preserve
7989 lines at eof.
7990
7991 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7992
7993 * auxv.h (svr4_auxv_parse): New.
7994 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7995 and generic_auxv_parse.
7996 (svr4_auxv_parse): Add.
7997 * obsd-tdep.c: Include "auxv.h".
7998 (obsd_auxv_parse): Remove.
7999 (obsd_init_abi): Remove comment.
8000 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8001 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8002 * nbsd-tdep.c: Include "auxv.h".
8003 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8004
8005 2020-04-08 Tom Tromey <tromey@adacore.com>
8006
8007 * nat/windows-nat.h (last_wait_event): Don't declare.
8008 (wait_for_debug_event): Update comment.
8009 * nat/windows-nat.c (last_wait_event): Now static.
8010
8011 2020-04-08 Tom Tromey <tromey@adacore.com>
8012
8013 * windows-nat.c (wait_for_debug_event): Move to
8014 nat/windows-nat.c.
8015 * nat/windows-nat.h (wait_for_debug_event): Declare.
8016 * nat/windows-nat.c (wait_for_debug_event): Move from
8017 windows-nat.c. No longer static.
8018
8019 2020-04-08 Tom Tromey <tromey@adacore.com>
8020
8021 * windows-nat.c (get_windows_debug_event): Use
8022 fetch_pending_stop.
8023 * nat/windows-nat.h (fetch_pending_stop): Declare.
8024 * nat/windows-nat.c (fetch_pending_stop): New function.
8025
8026 2020-04-08 Tom Tromey <tromey@adacore.com>
8027
8028 * windows-nat.c (windows_continue): Use matching_pending_stop and
8029 continue_last_debug_event.
8030 * nat/windows-nat.h (matching_pending_stop)
8031 (continue_last_debug_event): Declare.
8032 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8033 (matching_pending_stop, continue_last_debug_event): New
8034 functions.
8035
8036 2020-04-08 Tom Tromey <tromey@adacore.com>
8037
8038 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8039 (handle_exception_result): Move to nat/windows-nat.h.
8040 (DEBUG_EXCEPTION_SIMPLE): Remove.
8041 (windows_nat::handle_ms_vc_exception): New function.
8042 (handle_exception): Move to nat/windows-nat.c.
8043 (get_windows_debug_event): Update.
8044 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8045 nat/windows-nat.c.
8046 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8047 (handle_exception_result): Move from windows-nat.c.
8048 (handle_exception): Declare.
8049 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8050 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8051 windows-nat.c.
8052
8053 2020-04-08 Tom Tromey <tromey@adacore.com>
8054
8055 * windows-nat.c (exception_count, event_count): Remove.
8056 (handle_exception, get_windows_debug_event)
8057 (do_initial_windows_stuff): Update.
8058
8059 2020-04-08 Tom Tromey <tromey@adacore.com>
8060
8061 * windows-nat.c (windows_nat::handle_load_dll)
8062 (windows_nat::handle_unload_dll): Rename. No longer static.
8063 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8064 Declare.
8065
8066 2020-04-08 Tom Tromey <tromey@adacore.com>
8067
8068 * complaints.h (stop_whining): Declare at top-level.
8069 (complaint): Don't declare stop_whining.
8070
8071 2020-04-08 Tom Tromey <tromey@adacore.com>
8072
8073 * windows-nat.c (windows_nat::handle_output_debug_string):
8074 Rename. No longer static.
8075 * nat/windows-nat.h (handle_output_debug_string): Declare.
8076
8077 2020-04-08 Tom Tromey <tromey@adacore.com>
8078
8079 * windows-nat.c (current_process_handle, current_process_id)
8080 (main_thread_id, last_sig, current_event, last_wait_event)
8081 (current_windows_thread, desired_stop_thread_id, pending_stops)
8082 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8083 (display_selectors, fake_create_process)
8084 (get_windows_debug_event): Update.
8085 * nat/windows-nat.h (current_process_handle, current_process_id)
8086 (main_thread_id, last_sig, current_event, last_wait_event)
8087 (current_windows_thread, desired_stop_thread_id, pending_stops)
8088 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8089 * nat/windows-nat.c (current_process_handle, current_process_id)
8090 (main_thread_id, last_sig, current_event, last_wait_event)
8091 (current_windows_thread, desired_stop_thread_id, pending_stops)
8092 (siginfo_er): New globals. Move from windows-nat.c.
8093
8094 2020-04-08 Tom Tromey <tromey@adacore.com>
8095
8096 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8097 (handle_load_dll): Update.
8098 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8099
8100 2020-04-08 Tom Tromey <tromey@adacore.com>
8101
8102 * windows-nat.c (enum thread_disposition_type): Move to
8103 nat/windows-nat.h.
8104 (windows_nat::thread_rec): Rename from thread_rec. No longer
8105 static.
8106 (windows_add_thread, windows_nat_target::fetch_registers)
8107 (windows_nat_target::store_registers, handle_exception)
8108 (windows_nat_target::resume, get_windows_debug_event)
8109 (windows_nat_target::get_tib_address)
8110 (windows_nat_target::thread_name)
8111 (windows_nat_target::thread_alive): Update.
8112 * nat/windows-nat.h (enum thread_disposition_type): Move from
8113 windows-nat.c.
8114 (thread_rec): Declare.
8115
8116 2020-04-08 Tom Tromey <tromey@adacore.com>
8117
8118 * windows-nat.c: Add "using namespace".
8119 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8120 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8121
8122 2020-04-08 Tom Tromey <tromey@adacore.com>
8123
8124 * nat/windows-nat.h (struct windows_thread_info): Declare
8125 destructor.
8126 * nat/windows-nat.c (~windows_thread_info): New.
8127
8128 2020-04-08 Tom Tromey <tromey@adacore.com>
8129
8130 PR gdb/22992
8131 * windows-nat.c (current_event): Update comment.
8132 (last_wait_event, desired_stop_thread_id): New globals.
8133 (struct pending_stop): New.
8134 (pending_stops): New global.
8135 (windows_nat_target) <stopped_by_sw_breakpoint>
8136 <supports_stopped_by_sw_breakpoint>: New methods.
8137 (windows_fetch_one_register): Add assertions. Adjust PC.
8138 (windows_continue): Handle pending stops. Suspend other threads
8139 when stepping. Use last_wait_event
8140 (wait_for_debug_event): New function.
8141 (get_windows_debug_event): Use wait_for_debug_event. Handle
8142 pending stops. Queue spurious stops.
8143 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8144 (windows_nat_target::kill): Use wait_for_debug_event.
8145 * nat/windows-nat.h (struct windows_thread_info)
8146 <stopped_at_software_breakpoint>: New field.
8147 * nat/windows-nat.c (windows_thread_info::resume): Clear
8148 stopped_at_software_breakpoint.
8149
8150 2020-04-08 Tom Tromey <tromey@adacore.com>
8151
8152 * windows-nat.c (enum thread_disposition_type): New.
8153 (thread_rec): Replace "get_context" parameter with "disposition";
8154 change type.
8155 (windows_add_thread, windows_nat_target::fetch_registers)
8156 (windows_nat_target::store_registers, handle_exception)
8157 (windows_nat_target::resume, get_windows_debug_event)
8158 (windows_nat_target::get_tib_address)
8159 (windows_nat_target::thread_name)
8160 (windows_nat_target::thread_alive): Update.
8161
8162 2020-04-08 Tom Tromey <tromey@adacore.com>
8163
8164 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8165 (windows_continue): Use windows_continue::resume.
8166 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8167 resume>: Declare new methods.
8168 * nat/windows-nat.c: New file.
8169 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8170
8171 2020-04-08 Tom Tromey <tromey@adacore.com>
8172
8173 * windows-nat.c (windows_add_thread, windows_delete_thread)
8174 (windows_nat_target::fetch_registers)
8175 (windows_nat_target::store_registers, fake_create_process)
8176 (windows_nat_target::resume, windows_nat_target::resume)
8177 (get_windows_debug_event, windows_nat_target::wait)
8178 (windows_nat_target::pid_to_str)
8179 (windows_nat_target::get_tib_address)
8180 (windows_nat_target::get_ada_task_ptid)
8181 (windows_nat_target::thread_name)
8182 (windows_nat_target::thread_alive): Use lwp, not tid.
8183
8184 2020-04-08 Tom Tromey <tromey@adacore.com>
8185
8186 * windows-nat.c (handle_exception)
8187 (windows_nat_target::thread_name): Update.
8188 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8189 <name>: Now unique_xmalloc_ptr.
8190
8191 2020-04-08 Tom Tromey <tromey@adacore.com>
8192
8193 * windows-nat.c (thread_rec)
8194 (windows_nat_target::fetch_registers): Update.
8195 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8196 Update comment.
8197 <debug_registers_changed, reload_context>: Now bool.
8198
8199 2020-04-08 Tom Tromey <tromey@adacore.com>
8200
8201 * windows-nat.c (windows_add_thread): Use new.
8202 (windows_init_thread_list, windows_delete_thread): Use delete.
8203 (get_windows_debug_event): Update.
8204 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8205 destructor, and initializers.
8206
8207 2020-04-08 Tom Tromey <tromey@adacore.com>
8208
8209 * windows-nat.c (struct windows_thread_info): Remove.
8210 * nat/windows-nat.h: New file.
8211
8212 2020-04-08 Tom Tromey <tromey@adacore.com>
8213
8214 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8215 (thread_rec, windows_add_thread, windows_delete_thread)
8216 (windows_continue): Update.
8217
8218 2020-04-08 Tom Tromey <tromey@adacore.com>
8219
8220 * windows-nat.c (struct windows_thread_info): Remove typedef.
8221 (thread_head): Remove.
8222 (thread_list): New global.
8223 (thread_rec, windows_add_thread, windows_init_thread_list)
8224 (windows_delete_thread, windows_continue): Update.
8225
8226 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8227
8228 * windows-tdep.h (windows_init_abi): Add comment.
8229 (cygwin_init_abi): New declaration.
8230 * windows-tdep.c: Split signal enumeration in two, one for
8231 Windows and one for Cygwin.
8232 (windows_gdb_signal_to_target): Only deal with signal of the
8233 Windows OS ABI.
8234 (cygwin_gdb_signal_to_target): New function.
8235 (windows_init_abi): Rename to windows_init_abi_common, don't set
8236 gdb_signal_to_target gdbarch method. Add new new function with
8237 this name.
8238 (cygwin_init_abi): New function.
8239 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8240 comment. Don't call windows_init_abi.
8241 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8242 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8243 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8244 i386_windows_init_abi_common, don't call windows_init_abi. Add
8245 a new function of this name.
8246 (i386_cygwin_init_abi): New function.
8247 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8248 OS ABI Cygwin.
8249
8250 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8251
8252 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8253 parameter.c.
8254 (dwarf2_read_gdb_index): Update.
8255
8256 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8257
8258 * nbsd-tdep.c: Include "objfiles.h".
8259 (nbsd_skip_solib_resolver): New.
8260 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8261
8262 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8263
8264 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8265 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8266 with DW_LLE_base_addressx are being emitted in DWARFv5.
8267 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8268 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8269 unsigned integer.
8270
8271 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8272
8273 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8274 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8275 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8276 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8277 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8278 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8279 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8280
8281
8282 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8283
8284 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8285 (read_loclist_index): New function definition.
8286 (lookup_loclist_base): New function definition.
8287 (read_loclist_header): New function definition.
8288 (dwarf2_cu): Add loclist_base and loclist_header field.
8289 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8290 (read_full_die_1): Read the value of DW_AT_loclists_base.
8291 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8292 (read_attribute_value): Handle DW_FORM_loclistx.
8293 (skip_one_die): Handle DW_FORM_loclistx.
8294 (loclist_header): New structure declaration.
8295 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8296
8297 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8298
8299 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8300 constructor. Remove `addr` parameter from other constructor and
8301 add `per_cu` parameter.
8302 * dwarf2/read.c (create_partial_symtab): Update.
8303
8304 2020-04-07 Tom de Vries <tdevries@suse.de>
8305
8306 PR symtab/25796
8307 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8308 (partial_die_info::fixup): Inherit has_const_value.
8309
8310 2020-04-07 Tom de Vries <tdevries@suse.de>
8311
8312 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8313 symbols without address.
8314
8315 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8316
8317 * nbsd-nat.h (struct thread_info): Add forward declaration.
8318 (nbsd_nat_target::thread_alive): Add.
8319 (nbsd_nat_target::thread_name): Likewise.
8320 (nbsd_nat_target::update_thread_list): Likewise.
8321 (update_thread_list::post_attach): Likewise.
8322 (post_attach::pid_to_str): Likewise.
8323 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8324 (nbsd_thread_lister): Add.
8325 (nbsd_nat_target::thread_alive): Likewise.
8326 (nbsd_nat_target::thread_name): Likewise.
8327 (nbsd_add_threads): Likewise.
8328 (update_thread_list::post_attach): Likewise.
8329 (nbsd_nat_target::update_thread_list): Likewise.
8330 (post_attach::pid_to_str): Likewise.
8331
8332 2020-04-06 Tom Tromey <tromey@adacore.com>
8333
8334 * ada-valprint.c (print_variant_part): Extract the variant field.
8335 (print_field_values): Use the field as the outer value when
8336 recursing.
8337
8338 2020-04-06 Tom Tromey <tromey@adacore.com>
8339
8340 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8341 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8342 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8343 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8344 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8345
8346 2020-04-06 Tom Tromey <tromey@adacore.com>
8347
8348 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8349 TYPE_CODE_ERROR.
8350
8351 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8352
8353 * nbsd-tdep.c: Include "gdbarch.h".
8354 Define enum with NetBSD signal numbers.
8355 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8356 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8357 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8358 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8359 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8360 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8361 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8362 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8363 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8364 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8365 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8366 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8367
8368 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8369
8370 PR gdb/25325
8371 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8372
8373 2020-04-03 Tom Tromey <tromey@adacore.com>
8374
8375 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8376 Read constant block.
8377
8378 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8379
8380 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8381 (gdb_bfd_get_full_section_contents): New declaration.
8382 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8383 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8384 gdb_bfd_get_full_section_contents.
8385
8386 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8387
8388 * exec.c (build_section_table): Replace internal_error with
8389 gdb_assert.
8390 (section_table_xfer_memory_partial): Likewise.
8391 * mdebugread.c (parse_partial_symbols): Likewise.
8392 * psymtab.c (lookup_partial_symbol): Likewise.
8393 * utils.c (wrap_here): Likewise.
8394
8395 2020-04-02 Tom Tromey <tromey@adacore.com>
8396
8397 * f-lang.c (build_fortran_types): Use arch_type to initialize
8398 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8399
8400 2020-04-02 Tom Tromey <tromey@adacore.com>
8401
8402 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8403 of attributes.
8404
8405 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8406 Bernd Edlinger <bernd.edlinger@hotmail.de>
8407 Tom Tromey <tromey@adacore.com>
8408
8409 * buildsym.c (buildsym_compunit::record_line): Remove
8410 deduplication code.
8411
8412 2020-04-02 Tom de Vries <tdevries@suse.de>
8413
8414 PR ada/24671
8415 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8416
8417 2020-04-02 Tom de Vries <tdevries@suse.de>
8418
8419 * dwarf2/read.c (dwarf2_gdb_index_functions,
8420 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8421 NULL.
8422 * psymtab.c (psym_lookup_global_symbol_language): New function.
8423 (psym_functions): Init psym_lookup_global_symbol_language with
8424 psym_lookup_global_symbol_language.
8425 * symfile-debug.c (debug_sym_quick_functions): Init
8426 lookup_global_symbol_language with NULL.
8427 * symfile.c (set_initial_language): Remove fixme comment.
8428 * symfile.h (struct quick_symbol_functions): Add
8429 lookup_global_symbol_language.
8430 * symtab.c (find_quick_global_symbol_language): New function.
8431 (find_main_name): Use find_quick_global_symbol_language.
8432
8433 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8434
8435 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8436
8437 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8438
8439 * buildsym.c (record_line): Fix undefined behavior and preserve
8440 lines at eof.
8441
8442 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8443
8444 * buildsym.c (record_line): Fix the resizing condition.
8445
8446 2020-04-01 Tom Tromey <tom@tromey.com>
8447
8448 * value.h (value_literal_complex): Add comment.
8449 * valops.c (value_literal_complex): Refer to value.h.
8450
8451 2020-04-01 Tom Tromey <tom@tromey.com>
8452
8453 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8454 (scalar_type): New rule, from typebase.
8455 (typebase): Use scalar_type. Recognize complex types.
8456 (field_name): Handle FLOAT_KEYWORD.
8457 (ident_tokens): Add _Complex and __complex__.
8458
8459 2020-04-01 Tom Tromey <tom@tromey.com>
8460
8461 PR exp/25299:
8462 * valarith.c (promotion_type, complex_binop): New functions.
8463 (scalar_binop): Handle complex numbers. Use promotion_type.
8464 (value_pos, value_neg, value_complement): Handle complex numbers.
8465
8466 2020-04-01 Tom Tromey <tom@tromey.com>
8467
8468 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8469 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8470 (parse_number): Handle complex numbers.
8471
8472 2020-04-01 Tom Tromey <tom@tromey.com>
8473
8474 * c-valprint.c (c_decorations): Change complex suffix to "i".
8475
8476 2020-04-01 Tom Tromey <tom@tromey.com>
8477
8478 * valprint.c (generic_value_print_complex): Use accessors.
8479 * value.h (value_real_part, value_imaginary_part): Declare.
8480 * valops.c (value_real_part, value_imaginary_part): New
8481 functions.
8482 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8483
8484 2020-04-01 Tom Tromey <tom@tromey.com>
8485
8486 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8487 (read_range_type): Update.
8488 * mdebugread.c (basic_type): Update.
8489 * go-lang.c (build_go_types): Use init_complex_type.
8490 * gdbtypes.h (struct main_type) <complex_type>: New member.
8491 (init_complex_type): Update.
8492 (arch_complex_type): Don't declare.
8493 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8494 Make name if none given. Use alloc_type_copy. Look for cached
8495 complex type.
8496 (arch_complex_type): Remove.
8497 (gdbtypes_post_init): Use init_complex_type.
8498 * f-lang.c (build_fortran_types): Use init_complex_type.
8499 * dwarf2/read.c (read_base_type): Update.
8500 * d-lang.c (build_d_types): Use init_complex_type.
8501 * ctfread.c (read_base_type): Update.
8502
8503 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8504
8505 * infrun.c (stop_all_threads): Update assertion, plus when
8506 stopping threads, take into account that we might be trying
8507 to stop an all-stop target.
8508 (stop_waiting): Call 'stop_all_threads' if there exists a
8509 non-stop target.
8510
8511 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8512
8513 * target.h (exists_non_stop_target): New function declaration.
8514 * target.c (exists_non_stop_target): New function.
8515
8516 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8517
8518 PR gdb/24789
8519 * eval.c (is_integral_or_integral_reference): New function.
8520 (evaluate_subexp_standard): Allow integer references in
8521 pointer arithmetic.
8522
8523 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8524
8525 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8526 check for no ptid in the stop reply when the target is non-stop.
8527
8528 2020-04-01 Tom Tromey <tromey@adacore.com>
8529
8530 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8531 "name" parameter to rvalue reference. Initialize m_name_holder.
8532 <lookup_name_info>: New overloads.
8533 <name>: Return gdb::string_view.
8534 <c_str>: New method.
8535 <make_ignore_params>: Update.
8536 <search_name_hash>: Update.
8537 <language_lookup_name>: Return const char *.
8538 <m_name>: Change type.
8539 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8540 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8541 (lookup_name_info::match_any): Update.
8542 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8543 Update.
8544 * minsyms.c (linkage_name_str): Update.
8545 * language.c (default_symbol_name_matcher): Update.
8546 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8547 Update.
8548 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8549 (ada_lookup_name_info::ada_lookup_name_info): Update.
8550 (literal_symbol_name_matcher): Update.
8551
8552 2020-04-01 Tom Tromey <tromey@adacore.com>
8553
8554 * psymtab.c (psymtab_search_name): Remove function.
8555 (psym_lookup_symbol): Create search name and lookup name here.
8556 (lookup_partial_symbol): Remove "name" parameter; add
8557 lookup_name.
8558 (psym_expand_symtabs_for_function): Update.
8559
8560 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8561
8562 PR tui/25597:
8563 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8564
8565 2020-03-31 Tom Tromey <tromey@adacore.com>
8566
8567 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8568 memcpy.
8569
8570 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8571
8572 * features/riscv/32bit-csr.xml: Regenerated.
8573 * features/riscv/64bit-csr.xml: Regenerated.
8574
8575 2020-03-30 Tom Tromey <tromey@adacore.com>
8576
8577 * ada-valprint.c (print_variant_part): Update.
8578 * ada-lang.h (ada_which_variant_applies): Update.
8579 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8580 outer_valaddr parameters; replace with "outer" value parameter.
8581 (to_fixed_variant_branch_type): Update.
8582
8583 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8584
8585 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8586 <list>. Remove inclusion of observable.h.
8587 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8588 (struct arch_lwp_info): New struct.
8589 (class ppc_linux_dreg_interface): New class.
8590 (struct ppc_linux_process_info): New struct.
8591 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8592 <low_new_clone, low_forget_process, low_prepare_to_resume>
8593 <copy_thread_dreg_state, mark_thread_stale>
8594 <mark_debug_registers_changed, register_hw_breakpoint>
8595 <clear_hw_breakpoint, register_wp, clear_wp>
8596 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8597 <num_memory_accesses, get_trigger_type>
8598 <create_watchpoint_request, hwdebug_point_cmp>
8599 <init_arch_lwp_info, get_arch_lwp_info>
8600 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8601 methods.
8602 <struct ptid_hash>: New inner struct.
8603 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8604 members.
8605 (saved_dabr_value, hwdebug_info, max_slots_number)
8606 (struct hw_break_tuple, struct thread_points, ppc_threads)
8607 (have_ptrace_hwdebug_interface)
8608 (hwdebug_find_thread_points_by_tid)
8609 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8610 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8611 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8612 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8613 use m_dreg_interface.
8614 (hwdebug_point_cmp): Change to...
8615 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8616 reference arguments instead of pointers.
8617 (ppc_linux_nat_target::ranged_break_num_registers): Use
8618 m_dreg_interface.
8619 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8620 m_dreg_interface. Call register_hw_breakpoint.
8621 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8622 m_dreg_interface. Call clear_hw_breakpoint.
8623 (get_trigger_type): Change to...
8624 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8625 comment.
8626 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8627 use m_dreg_interface. Call register_hw_breakpoint.
8628 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8629 use m_dreg_interface. Call clear_hw_breakpoint.
8630 (can_use_watchpoint_cond_accel): Change to...
8631 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8632 method. Update comment, use m_dreg_interface and
8633 m_process_info.
8634 (calculate_dvc): Change to...
8635 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8636 m_dreg_interface.
8637 (num_memory_accesses): Change to...
8638 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8639 (check_condition): Change to...
8640 (ppc_linux_nat_target::check_condition): ...this method.
8641 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8642 comment, use m_dreg_interface.
8643 (create_watchpoint_request): Change to...
8644 (ppc_linux_nat_target::create_watchpoint_request): ...this
8645 method. Use m_dreg_interface.
8646 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8647 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8648 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8649 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8650 (ppc_linux_nat_target::low_forget_process)
8651 (ppc_linux_nat_target::low_new_fork)
8652 (ppc_linux_nat_target::low_new_clone)
8653 (ppc_linux_nat_target::low_delete_thread)
8654 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8655 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8656 only call mark_thread_stale.
8657 (ppc_linux_thread_exit): Remove.
8658 (ppc_linux_nat_target::stopped_data_address): Change to...
8659 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8660 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8661 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8662 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8663 comment. Call low_stopped_data_address.
8664 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8665 m_dreg_interface.
8666 (ppc_linux_nat_target::masked_watch_num_registers): Use
8667 m_dreg_interface.
8668 (ppc_linux_nat_target::copy_thread_dreg_state)
8669 (ppc_linux_nat_target::mark_thread_stale)
8670 (ppc_linux_nat_target::mark_debug_registers_changed)
8671 (ppc_linux_nat_target::register_hw_breakpoint)
8672 (ppc_linux_nat_target::clear_hw_breakpoint)
8673 (ppc_linux_nat_target::register_wp)
8674 (ppc_linux_nat_target::clear_wp)
8675 (ppc_linux_nat_target::init_arch_lwp_info)
8676 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8677 (_initialize_ppc_linux_nat): Remove observer callback.
8678
8679 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8680
8681 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8682 (ppc_linux_nat_target::auxv_parse)
8683 (ppc_linux_nat_target::read_description)
8684 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8685 Move up.
8686
8687 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8688
8689 * linux-nat.h (low_new_clone): New method.
8690 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8691
8692 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8693
8694 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8695 (dbx_expand_psymtab): ... this.
8696 (start_psymtab): Update.
8697 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8698 (mdebug_expand_psymtab): ... this.
8699 (parse_partial_symbols): Update.
8700 (new_psymtab): Update.
8701 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8702 (xcoff_expand_psymtab): ... this.
8703 (xcoff_start_psymtab): Update.
8704
8705 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8706
8707 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8708 <expand_dependencies>: ... this.
8709 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8710 (partial_symtab::expand_dependencies): ... this.
8711 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8712 Update.
8713 (dwarf2_psymtab::expand_psymtab): Update.
8714 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8715 * mdebugread.c (psymtab_to_symtab_1): Update.
8716 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8717
8718 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8719
8720 * psympriv.h (discard_psymtab): Remove.
8721 * dbxread.c (dbx_end_psymtab): Update.
8722 * xcoffread.c (xcoff_end_psymtab): Update.
8723
8724 2020-03-28 Tom Tromey <tom@tromey.com>
8725
8726 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8727 comment.
8728
8729 2020-03-28 Tom Tromey <tom@tromey.com>
8730
8731 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8732
8733 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8734
8735 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8736
8737 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8738
8739 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8740
8741 2020-03-26 Tom Tromey <tom@tromey.com>
8742
8743 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8744 (mark_common_block_symbol_computed, read_tag_string_type)
8745 (attr_to_dynamic_prop, read_subrange_type): Update.
8746 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8747 to be methods on struct attribute.
8748 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8749 (read_call_site_scope, partial_die_info::read)
8750 (partial_die_info::read, lookup_die_type, follow_die_ref):
8751 Update.
8752 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8753 from dwarf2_get_ref_die_offset.
8754 (attribute::constant_value): New method, from
8755 dwarf2_get_attr_constant_value.
8756 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8757 Declare method.
8758 <constant_value>: New method.
8759
8760 2020-03-26 Tom Tromey <tom@tromey.com>
8761
8762 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8763 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8764 (dwarf_type_encoding_name): Move to stringify.c.
8765 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8766 * dwarf2/stringify.c: New file.
8767 * dwarf2/stringify.h: New file.
8768
8769 2020-03-26 Tom Tromey <tom@tromey.com>
8770
8771 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8772 Rewrite.
8773
8774 2020-03-26 Tom Tromey <tom@tromey.com>
8775
8776 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8777 methods.
8778 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8779 (lookup_ranges_base): Likewise.
8780 (read_cutu_die_from_dwo, read_full_die_1): Update.
8781
8782 2020-03-26 Tom Tromey <tom@tromey.com>
8783
8784 * dwarf2/read.c (read_import_statement, read_file_scope)
8785 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8786 (read_lexical_block_scope, read_call_site_scope)
8787 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8788 (handle_struct_member_die, process_structure_scope)
8789 (update_enumeration_type_from_children)
8790 (process_enumeration_scope, read_array_type, read_common_block)
8791 (read_namespace, read_module, read_subroutine_type): Update.
8792 (sibling_die): Remove.
8793
8794 2020-03-26 Tom Tromey <tom@tromey.com>
8795
8796 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8797 (build_type_psymtabs_reader, read_structure_type)
8798 (read_enumeration_type, read_full_die_1): Update.
8799 (dwarf2_attr_no_follow): Move to die.h.
8800 * dwarf2/die.h (struct die_info) <attr>: New method.
8801
8802 2020-03-26 Tom Tromey <tom@tromey.com>
8803
8804 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8805 <base_address>: Now an optional.
8806 (dwarf2_find_base_address, dwarf2_rnglists_process)
8807 (dwarf2_ranges_process, fill_in_loclist_baton)
8808 (dwarf2_symbol_mark_computed): Update.
8809
8810 2020-03-26 Tom Tromey <tom@tromey.com>
8811
8812 * dwarf2/read.c (struct die_info): Move to die.h.
8813 * dwarf2/die.h: New file.
8814
8815 2020-03-26 Tom Tromey <tom@tromey.com>
8816
8817 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8818 * dwarf2/read.c
8819 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8820 Move to line-header.c.
8821 (read_checked_initial_length_and_offset, read_formatted_entries):
8822 Likewise.
8823 (dwarf_decode_line_header): Split into two.
8824 * dwarf2/line-header.c
8825 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8826 Move from read.c.
8827 (read_checked_initial_length_and_offset, read_formatted_entries):
8828 Likewise.
8829 (dwarf_decode_line_header): New function, split from read.c.
8830
8831 2020-03-26 Tom Tromey <tom@tromey.com>
8832
8833 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8834 Declare method.
8835 * dwarf2/read.c (read_attribute_value): Update.
8836 (dwarf2_per_objfile::read_line_string): Rename from
8837 read_indirect_line_string.
8838 (read_formatted_entries): Update.
8839
8840 2020-03-26 Tom Tromey <tom@tromey.com>
8841
8842 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8843 variable.
8844
8845 2020-03-26 Tom Tromey <tom@tromey.com>
8846
8847 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8848 const.
8849 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8850 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8851 parameter const.
8852
8853 2020-03-26 Tom Tromey <tom@tromey.com>
8854
8855 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8856 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8857 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8858 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8859
8860 2020-03-26 Tom Tromey <tom@tromey.com>
8861
8862 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8863 file_names_size, file_full_name, file_file_name>: Use const.
8864 <file_name_at, file_names>: Add const overload.
8865 * dwarf2/line-header.c (line_header::file_file_name)
8866 (line_header::file_full_name): Update.
8867
8868 2020-03-26 Tom Tromey <tom@tromey.com>
8869
8870 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8871 (macro_start_file, consume_improper_spaces)
8872 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8873 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8874 (dwarf_decode_macros): Move to macro.c.
8875 * dwarf2/macro.c: New file.
8876 * dwarf2/macro.h: New file.
8877 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8878
8879 2020-03-26 Tom Tromey <tom@tromey.com>
8880
8881 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8882 method.
8883 * dwarf2/section.c: New method. From
8884 read_indirect_string_at_offset_from.
8885 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8886 (read_indirect_string_at_offset_from): Move to section.c.
8887 (read_indirect_string_at_offset): Rewrite.
8888 (read_indirect_line_string_at_offset): Remove.
8889 (read_indirect_string, read_indirect_line_string)
8890 (dwarf_decode_macro_bytes): Update.
8891
8892 2020-03-26 Tom Tromey <tom@tromey.com>
8893
8894 * dwarf2/section.h (struct dwarf2_section_info)
8895 <overload_complaint>: Declare.
8896 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8897 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8898 Rename from dwarf2_section_buffer_overflow_complaint.
8899 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8900 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8901
8902 2020-03-26 Tom Tromey <tom@tromey.com>
8903
8904 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8905 Declare.
8906 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8907 Move from read.c.
8908 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8909 to section.c.
8910
8911 2020-03-26 Tom Tromey <tom@tromey.com>
8912
8913 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8914
8915 2020-03-26 Tom Tromey <tom@tromey.com>
8916
8917 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8918 "builder".
8919 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8920 parameter.
8921 (dwarf_decode_macros): Update.
8922
8923 2020-03-26 Tom Tromey <tom@tromey.com>
8924
8925 * dwarf2/read.c (read_attribute_value): Update.
8926 (read_indirect_string_from_dwz): Move to dwz.c; change into
8927 method.
8928 (dwarf_decode_macro_bytes): Update.
8929 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8930 * dwarf2/dwz.c: New file.
8931 * Makefile.in (COMMON_SFILES): Add dwz.c.
8932
8933 2020-03-26 Tom Tromey <tom@tromey.com>
8934
8935 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8936 * dwarf2/read.c: Add include.
8937 * dwarf2/index-write.c: Add include.
8938 * dwarf2/index-cache.c: Add include.
8939 * dwarf2/dwz.h: New file.
8940
8941 2020-03-25 Tom Tromey <tom@tromey.com>
8942
8943 * compile/compile-object-load.c (get_out_value_type): Mention
8944 correct symbol name in error message.
8945
8946 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8947
8948 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8949
8950 2020-03-25 Tom de Vries <tdevries@suse.de>
8951
8952 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8953 * symmisc.c (dump_symtab_1): Print user and includes fields.
8954 (maintenance_info_symtabs): Same.
8955
8956 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8957
8958 PR gdb/25534
8959 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8960 (riscv_regcache_cooked_write): New function.
8961 (riscv_push_dummy_call): Use new function.
8962 (riscv_return_value): Likewise.
8963
8964 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8965
8966 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8967 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8968 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8969 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8970 * infrun.c (follow_fork): Likewise.
8971 (follow_fork_inferior): Likewise.
8972 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8973 * linux-nat.h (class linux_nat_target): Likewise.
8974 * remote.c (class remote_target) <follow_fork>: Likewise.
8975 (remote_target::follow_fork): Likewise.
8976 * target-delegates.c: Re-generate.
8977 * target.c (default_follow_fork): Likewise.
8978 (target_follow_fork): Likewise.
8979 * target.h (struct target_ops) <follow_fork>: Likewise.
8980 (target_follow_fork): Likewise.
8981
8982 2020-03-24 Tom de Vries <tdevries@suse.de>
8983
8984 * psymtab.c (maintenance_info_psymtabs): Print user field.
8985
8986 2020-03-20 Tom Tromey <tromey@adacore.com>
8987
8988 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8989 const.
8990 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8991 const.
8992
8993 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8994
8995 * ptrace.m4: Don't check for ptrace declaration.
8996 * config.in: Re-generate.
8997 * configure: Re-generate.
8998 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8999 not defined.
9000
9001 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9002
9003 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9004 `PTRACE_TYPE_RET'.
9005 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9006 * sparc-nat.c (gdb_ptrace): Likewise.
9007 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9008
9009 2020-03-20 Tom Tromey <tromey@adacore.com>
9010
9011 * c-exp.y (lex_one_token): Fix assert.
9012
9013 2020-03-20 Tom Tromey <tromey@adacore.com>
9014
9015 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9016 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9017 strncpy call.
9018
9019 2020-03-20 Tom Tromey <tromey@adacore.com>
9020
9021 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9022
9023 2020-03-20 Tom Tromey <tromey@adacore.com>
9024
9025 * ada-valprint.c (print_variant_part): Remove parameters; switch
9026 to value-based API.
9027 (print_field_values): Likewise.
9028 (ada_val_print_struct_union): Likewise.
9029 (ada_value_print_1): Update.
9030
9031 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9032
9033 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9034 nbsd_nat_target instead of inf_ptrace_target.
9035 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9036 nbsd_nat_target.
9037
9038 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9039
9040 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9041 it to the ptrace call.
9042 * (store_registers): Likewise.
9043
9044 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9045
9046 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9047 it to the ptrace call.
9048 * (store_registers): Likewise.
9049
9050 2020-03-19 Luis Machado <luis.machado@linaro.org>
9051
9052 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9053 valid, fetch vg value from ptrace.
9054
9055 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9056 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9057 * inf-ptrace.c: Likewise.
9058 * (gdb_ptrace): Add.
9059 * (inf_ptrace_target::resume): Update.
9060 * (inf_ptrace_target::xfer_partial): Likewise.
9061 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9062 * (inf_ptrace_peek_poke): Update.
9063
9064 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9065
9066 * x86-bsd-nat.c (gdb_ptrace): New.
9067 * (x86bsd_dr_set): Add new argument `ptid'.
9068 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9069 x86bsd_dr_set_addr): Update.
9070
9071 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9072
9073 * remote.c (remote_target::process_stop_reply): Handle events for
9074 all threads differently.
9075
9076 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9077
9078 * completer.c (completion_tracker::remove_completion): Define new
9079 function.
9080 * completer.h (completion_tracker::remove_completion): Declare new
9081 function.
9082 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9083 when adding a C++ function symbol.
9084
9085 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9086
9087 * completer.c (completion_tracker::completion_hash_entry): Define
9088 new class.
9089 (advance_to_filename_complete_word_point): Call
9090 recompute_lowest_common_denominator.
9091 (completion_tracker::completion_tracker): Call discard_completions
9092 to setup the hash table.
9093 (completion_tracker::discard_completions): Allow for being called
9094 from the constructor, pass new equal function, and element deleter
9095 when constructing the hash table. Initialise new class member
9096 variables.
9097 (completion_tracker::maybe_add_completion): Remove use of
9098 m_entries_vec, and store more information into m_entries_hash.
9099 (completion_tracker::recompute_lcd_visitor): New function, most
9100 content taken from...
9101 (completion_tracker::recompute_lowest_common_denominator):
9102 ...here, this now just visits each item in the hash calling the
9103 above visitor.
9104 (completion_tracker::build_completion_result): Remove use of
9105 m_entries_vec, call recompute_lowest_common_denominator.
9106 * completer.h (completion_tracker::have_completions): Remove use
9107 of m_entries_vec.
9108 (completion_tracker::completion_hash_entry): Declare new class.
9109 (completion_tracker::recompute_lowest_common_denominator): Change
9110 function signature.
9111 (completion_tracker::recompute_lcd_visitor): Declare new function.
9112 (completion_tracker::m_entries_vec): Delete.
9113 (completion_tracker::m_entries_hash): Initialize to NULL.
9114 (completion_tracker::m_lowest_common_denominator_valid): New
9115 member variable.
9116 (completion_tracker::m_lowest_common_denominator_max_length): New
9117 member variable.
9118
9119 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9120
9121 * regformats/regdef.h: Put reg in gdb namespace.
9122
9123 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9124
9125 * i386-bsd-nat.c (gdb_ptrace): New.
9126 * (i386bsd_fetch_inferior_registers,
9127 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9128 * (i386bsd_fetch_inferior_registers,
9129 i386bsd_store_inferior_registers) Use gdb_ptrace.
9130
9131 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9132
9133 * amd64-bsd-nat.c (gdb_ptrace): New.
9134 * (amd64bsd_fetch_inferior_registers,
9135 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9136 * (amd64bsd_fetch_inferior_registers,
9137 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9138
9139 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9140
9141 * user-regs.c (user_reg::read): Rename to...
9142 (user_reg::xread): ...this.
9143 * (append_user_reg): Rename argument `read' to `xread'.
9144 * (user_reg_add_builtin): Likewise.
9145 * (user_reg_add): Likewise.
9146 * (value_of_user_reg): Likewise.
9147
9148 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9149
9150 * sparc-nat.c (gdb_ptrace): New.
9151 * sparc-nat.c (sparc_fetch_inferior_registers)
9152 (sparc_store_inferior_registers) Remove obsolete comment.
9153 * sparc-nat.c (sparc_fetch_inferior_registers)
9154 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9155 * sparc-nat.c (sparc_fetch_inferior_registers)
9156 (sparc_store_inferior_registers) Use gdb_ptrace.
9157
9158 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9159
9160 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9161 it to the ptrace call.
9162 * sh-nbsd-nat.c (store_registers): Likewise.
9163
9164 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9165
9166 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9167 nbsd_nat_target instead of inf_ptrace_target.
9168 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9169 nbsd_nat_target.
9170
9171 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9172
9173 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9174
9175 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9176
9177 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9178 <sys/sysctl.h>.
9179 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9180
9181 2020-03-17 Tom de Vries <tdevries@suse.de>
9182
9183 PR gdb/23710
9184 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9185 fields.
9186 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9187 fields.
9188 (process_imported_unit_die): Skip import of c++ CUs.
9189
9190 2020-03-16 Tom Tromey <tom@tromey.com>
9191
9192 * p-valprint.c (pascal_object_print_value): Initialize
9193 base_value.
9194
9195 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9196 Shahab Vahedi <shahab@synopsys.com>
9197
9198 * Makefile.in: Add arch/arc.o
9199 * configure.tgt: Likewise.
9200 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9201 (_initialize_arc_tdep): Don't initialize old target descriptions.
9202 (arc_read_description): New function to cache target descriptions.
9203 * arc-tdep.h (arc_read_description): Add proto type.
9204 * arch/arc.c: New file.
9205 * arch/arc.h: Likewise.
9206 * features/Makefile: Replace old target descriptions with new.
9207 * features/arc-arcompact.c: Remove.
9208 * features/arc-arcompact.xml: Likewise.
9209 * features/arc-v2.c: Likewise
9210 * features/arc-v2.xml: Likewise
9211 * features/arc/aux-arcompact.xml: New file.
9212 * features/arc/aux-v2.xml: Likewise.
9213 * features/arc/core-arcompact.xml: Likewise.
9214 * features/arc/core-v2.xml: Likewise.
9215 * features/arc/aux-arcompact.c: Generate.
9216 * features/arc/aux-v2.c: Likewise.
9217 * features/arc/core-arcompact.c: Likewise.
9218 * features/arc/core-v2.c: Likewise.
9219 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9220
9221 2020-03-16 Tom Tromey <tromey@adacore.com>
9222
9223 PR gdb/25663:
9224 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9225 putting value into bcache.
9226
9227 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9228
9229 PR gdb/21500
9230 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9231 to...
9232 (amd64_windows_init_abi_common): ... this. Don't set size of
9233 long type.
9234 (amd64_windows_init_abi): New function.
9235 (amd64_cygwin_init_abi): New function.
9236 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9237 the Cygwin OS ABI.
9238 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9239 comment.
9240
9241 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9242
9243 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9244 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9245 (pe_import_directory_entry): New struct type.
9246 (is_linked_with_cygwin_dll): New function.
9247 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9248 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9249 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9250
9251 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9252
9253 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9254 i386_cygwin_core_osabi_sniffer.
9255
9256 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9257
9258 * i386-cygwin-tdep.c: Rename to...
9259 * i386-windows-tdep.c: ... this.
9260 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9261 i386-windows-tdep.c.
9262 * configure.tgt: Likewise.
9263
9264 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9267 * osabi.c (gdb_osabi_names): Add "Windows".
9268 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9269 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9270 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9271 i386_cygwin_osabi_sniffer.
9272 (_initialize_i386_cygwin_tdep): Register OS ABI
9273 GDB_OSABI_WINDOWS for i386.
9274 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9275 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9276 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9277 for x86-64.
9278 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9279 when the target matches '*-*-mingw*'.
9280
9281 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9282
9283 * defs.h (enum gdb_osabi): Move to...
9284 * osabi.h (enum gdb_osabi): ... here.
9285 * gdbarch.sh: Include osabi.h in gdbarch.h.
9286 * gdbarch.h: Re-generate.
9287
9288 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9289
9290 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9291 function.
9292 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9293
9294 2020-03-14 Tom Tromey <tom@tromey.com>
9295
9296 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9297 for C++.
9298 (c_type_print_modifier): Likewise. Add "language" parameter.
9299 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9300 (c_type_print_base_1): Update.
9301 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9302 constants.
9303 * type-stack.c (type_stack::insert): Handle tp_atomic and
9304 tp_restrict.
9305 (type_stack::follow_type_instance_flags): Likewise.
9306 (type_stack::follow_types): Likewise. Merge type-following code.
9307 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9308 (space_identifier, cv_with_space_id)
9309 (const_or_volatile_or_space_identifier_noopt)
9310 (const_or_volatile_or_space_identifier): Remove.
9311 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9312 rules.
9313 (ptr_operator, typebase): Update.
9314 (enum token_flag) <FLAG_C>: New constant.
9315 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9316 "_Atomic".
9317 (lex_one_token): Handle FLAG_C.
9318
9319 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9320
9321 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9322 it to the ptrace call.
9323 * m68k-bsd-nat.c (store_registers): Likewise.
9324
9325 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9326
9327 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9328 gdb_byte *.
9329 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9330 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9331 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9332
9333 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9334
9335 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9336 nbsd_nat_target instead of inf_ptrace_target.
9337 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9338 nbsd_nat_target.
9339
9340 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9341
9342 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9343 register_t.
9344
9345 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9346
9347 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9348 it to the ptrace call.
9349 * alpha-bsd-nat.c (store_registers): Likewise.
9350
9351 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9352
9353 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9354 includes.
9355 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9356 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9357 fill_fpregset): Likewise.
9358
9359 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9360
9361 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9362 nbsd_nat_target instead of inf_ptrace_target.
9363 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9364 nbsd_nat_target.
9365
9366 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9367
9368 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9369 register_t.
9370
9371 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9372
9373 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9374 it to the ptrace call.
9375 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9376 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9377 * arm-nbsd-nat.c (store_register): Likewise.
9378 * arm-nbsd-nat.c (store_regs): Likewise.
9379 * arm-nbsd-nat.c (store_fp_register): Likewise.
9380 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9381
9382 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9383
9384 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9385 nbsd_nat_target instead of inf_ptrace_target.
9386 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9387 nbsd_nat_target.
9388
9389 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9390
9391 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9392 it to the ptrace call.
9393 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9394
9395 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9396
9397 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9398 it to the ptrace call.
9399 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9400
9401 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9402
9403 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9404 gdb_byte *.
9405 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9406
9407 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9408
9409 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9410 instead of inf_ptrace_target.
9411 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9412 nbsd_nat_target.
9413
9414 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9415
9416 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9417 register_t.
9418
9419 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9420
9421 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9422 register_t.
9423
9424 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9425
9426 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9427 register_t.
9428
9429 2020-03-13 Tom Tromey <tom@tromey.com>
9430
9431 * value.h (val_print): Don't declare.
9432 * valprint.h (val_print_array_elements)
9433 (val_print_scalar_formatted, generic_val_print): Don't declare.
9434 * valprint.c (generic_val_print_array): Take a struct value.
9435 (generic_val_print_ptr, generic_val_print_memberptr)
9436 (generic_val_print_bool, generic_val_print_int)
9437 (generic_val_print_char, generic_val_print_complex)
9438 (generic_val_print): Remove.
9439 (generic_value_print): Update.
9440 (do_val_print): Remove unused parameters. Don't call
9441 la_val_print.
9442 (val_print): Remove.
9443 (common_val_print): Update. Don't call value_check_printable.
9444 (val_print_scalar_formatted, val_print_array_elements): Remove.
9445 * rust-lang.c (rust_val_print): Remove.
9446 (rust_language_defn): Update.
9447 * p-valprint.c (pascal_val_print): Remove.
9448 (pascal_value_print_inner): Update.
9449 (pascal_object_print_val_fields, pascal_object_print_val):
9450 Remove.
9451 (pascal_object_print_static_field): Update.
9452 * p-lang.h (pascal_val_print): Don't declare.
9453 * p-lang.c (pascal_language_defn): Update.
9454 * opencl-lang.c (opencl_language_defn): Update.
9455 * objc-lang.c (objc_language_defn): Update.
9456 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9457 * m2-lang.h (m2_val_print): Don't declare.
9458 * m2-lang.c (m2_language_defn): Update.
9459 * language.h (struct language_defn) <la_val_print>: Remove.
9460 * language.c (unk_lang_value_print_inner): Rename. Change
9461 argument types.
9462 (unknown_language_defn, auto_language_defn): Update.
9463 * go-valprint.c (go_val_print): Remove.
9464 * go-lang.h (go_val_print): Don't declare.
9465 * go-lang.c (go_language_defn): Update.
9466 * f-valprint.c (f_val_print): Remove.
9467 * f-lang.h (f_value_print): Don't declare.
9468 * f-lang.c (f_language_defn): Update.
9469 * d-valprint.c (d_val_print): Remove.
9470 * d-lang.h (d_value_print): Don't declare.
9471 * d-lang.c (d_language_defn): Update.
9472 * cp-valprint.c (cp_print_value_fields)
9473 (cp_print_value_fields_rtti, cp_print_value): Remove.
9474 (cp_print_static_field): Update.
9475 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9476 (c_val_print_struct, c_val_print_union, c_val_print_int)
9477 (c_val_print_memberptr, c_val_print): Remove.
9478 * c-lang.h (c_val_print_array, cp_print_value_fields)
9479 (cp_print_value_fields_rtti): Don't declare.
9480 * c-lang.c (c_language_defn, cplus_language_defn)
9481 (asm_language_defn, minimal_language_defn): Update.
9482 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9483 (ada_val_print_enum): Take a struct value.
9484 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9485 (ada_val_print): Remove.
9486 (ada_value_print_1): Update.
9487 (printable_val_type): Remove.
9488 * ada-lang.h (ada_val_print): Don't declare.
9489 * ada-lang.c (ada_language_defn): Update.
9490
9491 2020-03-13 Tom Tromey <tom@tromey.com>
9492
9493 * valprint.c (do_val_print): Update.
9494 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9495 a struct value.
9496 (value_to_value_object_no_release): Declare.
9497 * python/py-value.c (value_to_value_object_no_release): New
9498 function.
9499 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9500 struct value.
9501 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9502 function.
9503 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9504 a struct value.
9505 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9506 Declare.
9507 (gdbscm_apply_val_pretty_printer): Take a struct value.
9508 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9509 value.
9510 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9511 value.
9512 * extension-priv.h (struct extension_language_ops)
9513 <apply_val_pretty_printer>: Take a struct value.
9514 * cp-valprint.c (cp_print_value): Create a struct value.
9515 (cp_print_value): Update.
9516
9517 2020-03-13 Tom Tromey <tom@tromey.com>
9518
9519 * ada-valprint.c (print_field_values): Call common_val_print.
9520
9521 2020-03-13 Tom Tromey <tom@tromey.com>
9522
9523 * ada-valprint.c (val_print_packed_array_elements): Remove
9524 bitoffset and val parameters. Call common_val_print.
9525 (ada_val_print_string): Remove offset, address, and original_value
9526 parameters.
9527 (ada_val_print_array): Update.
9528 (ada_value_print_array): New function.
9529 (ada_value_print_1): Call it.
9530
9531 2020-03-13 Tom Tromey <tom@tromey.com>
9532
9533 * ada-valprint.c (ada_value_print): Use common_val_print.
9534
9535 2020-03-13 Tom Tromey <tom@tromey.com>
9536
9537 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9538
9539 2020-03-13 Tom Tromey <tom@tromey.com>
9540
9541 * ada-valprint.c (ada_value_print_num): New function.
9542 (ada_value_print_1): Use it.
9543
9544 2020-03-13 Tom Tromey <tom@tromey.com>
9545
9546 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9547
9548 2020-03-13 Tom Tromey <tom@tromey.com>
9549
9550 * ada-valprint.c (ada_value_print_ptr): New function.
9551 (ada_value_print_1): Use it.
9552
9553 2020-03-13 Tom Tromey <tom@tromey.com>
9554
9555 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9556 call common_val_print.
9557 (ada_val_print_1): Update.
9558 (ada_value_print_1): New function.
9559 (ada_value_print_inner): Rewrite.
9560
9561 2020-03-13 Tom Tromey <tom@tromey.com>
9562
9563 * cp-valprint.c (cp_print_value_fields): Update.
9564 (cp_print_value): New function.
9565
9566 2020-03-13 Tom Tromey <tom@tromey.com>
9567
9568 * m2-valprint.c (m2_value_print_inner): Use
9569 cp_print_value_fields.
9570 * cp-valprint.c (cp_print_value_fields): New function.
9571 * c-valprint.c (c_value_print_struct): New function.
9572 (c_value_print_inner): Use c_value_print_struct.
9573 * c-lang.h (cp_print_value_fields): Declare.
9574
9575 2020-03-13 Tom Tromey <tom@tromey.com>
9576
9577 * c-valprint.c (c_value_print_array): New function.
9578 (c_value_print_inner): Use it.
9579
9580 2020-03-13 Tom Tromey <tom@tromey.com>
9581
9582 * c-valprint.c (c_value_print_memberptr): New function.
9583 (c_value_print_inner): Use it.
9584
9585 2020-03-13 Tom Tromey <tom@tromey.com>
9586
9587 * c-valprint.c (c_value_print_int): New function.
9588 (c_value_print_inner): Use it.
9589
9590 2020-03-13 Tom Tromey <tom@tromey.com>
9591
9592 * c-valprint.c (c_value_print_ptr): New function.
9593 (c_value_print_inner): Use it.
9594
9595 2020-03-13 Tom Tromey <tom@tromey.com>
9596
9597 * c-valprint.c (c_value_print_inner): Rewrite.
9598
9599 2020-03-13 Tom Tromey <tom@tromey.com>
9600
9601 * valprint.c (generic_value_print_complex): New function.
9602 (generic_value_print): Use it.
9603
9604 2020-03-13 Tom Tromey <tom@tromey.com>
9605
9606 * valprint.c (generic_val_print_float): Don't call
9607 val_print_scalar_formatted.
9608 (generic_val_print, generic_value_print): Update.
9609
9610 2020-03-13 Tom Tromey <tom@tromey.com>
9611
9612 * valprint.c (generic_value_print_char): New function
9613 (generic_value_print): Use it.
9614
9615 2020-03-13 Tom Tromey <tom@tromey.com>
9616
9617 * valprint.c (generic_value_print_int): New function.
9618 (generic_value_print): Use it.
9619
9620 2020-03-13 Tom Tromey <tom@tromey.com>
9621
9622 * valprint.c (generic_value_print_bool): New function.
9623 (generic_value_print): Use it.
9624
9625 2020-03-13 Tom Tromey <tom@tromey.com>
9626
9627 * valprint.c (generic_val_print_func): Simplify.
9628 (generic_val_print, generic_value_print): Update.
9629
9630 2020-03-13 Tom Tromey <tom@tromey.com>
9631
9632 * valprint.c (generic_val_print_flags): Remove.
9633 (generic_val_print, generic_value_print): Update.
9634 (val_print_type_code_flags): Add original_value parameter.
9635
9636 2020-03-13 Tom Tromey <tom@tromey.com>
9637
9638 * valprint.c (generic_val_print): Update.
9639 (generic_value_print): Update.
9640 * valprint.c (generic_val_print_enum): Don't call
9641 val_print_scalar_formatted.
9642
9643 2020-03-13 Tom Tromey <tom@tromey.com>
9644
9645 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9646 * valprint.c (generic_value_print_ptr): New function.
9647
9648 2020-03-13 Tom Tromey <tom@tromey.com>
9649
9650 * valprint.c (generic_value_print): Rewrite.
9651
9652 2020-03-13 Tom Tromey <tom@tromey.com>
9653
9654 * p-valprint.c (pascal_object_print_value_fields)
9655 (pascal_object_print_value): New functions.
9656
9657 2020-03-13 Tom Tromey <tom@tromey.com>
9658
9659 * p-valprint.c (pascal_value_print_inner): Rewrite.
9660
9661 2020-03-13 Tom Tromey <tom@tromey.com>
9662
9663 * f-valprint.c (f_value_print_innner): Rewrite.
9664
9665 2020-03-13 Tom Tromey <tom@tromey.com>
9666
9667 * m2-valprint.c (m2_print_unbounded_array): New overload.
9668 (m2_print_unbounded_array): Update.
9669 (m2_print_array_contents): Take a struct value.
9670 (m2_value_print_inner): Rewrite.
9671
9672 2020-03-13 Tom Tromey <tom@tromey.com>
9673
9674 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9675 (d_value_print_inner): New function.
9676 * d-lang.h (d_value_print_inner): Declare.
9677 * d-lang.c (d_language_defn): Use d_value_print_inner.
9678
9679 2020-03-13 Tom Tromey <tom@tromey.com>
9680
9681 * go-valprint.c (go_value_print_inner): New function.
9682 * go-lang.h (go_value_print_inner): Declare.
9683 * go-lang.c (go_language_defn): Use go_value_print_inner.
9684
9685 2020-03-13 Tom Tromey <tom@tromey.com>
9686
9687 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9688 API.
9689 (rust_val_print): Rewrite.
9690 (rust_value_print_inner): New function, from rust_val_print.
9691 (rust_language_defn): Use rust_value_print_inner.
9692
9693 2020-03-13 Tom Tromey <tom@tromey.com>
9694
9695 * ada-valprint.c (ada_value_print_inner): New function.
9696 * ada-lang.h (ada_value_print_inner): Declare.
9697 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9698
9699 2020-03-13 Tom Tromey <tom@tromey.com>
9700
9701 * f-valprint.c (f_value_print_innner): New function.
9702 * f-lang.h (f_value_print_innner): Declare.
9703 * f-lang.c (f_language_defn): Use f_value_print_innner.
9704
9705 2020-03-13 Tom Tromey <tom@tromey.com>
9706
9707 * p-valprint.c (pascal_value_print_inner): New function.
9708 * p-lang.h (pascal_value_print_inner): Declare.
9709 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9710
9711 2020-03-13 Tom Tromey <tom@tromey.com>
9712
9713 * m2-valprint.c (m2_value_print_inner): New function.
9714 * m2-lang.h (m2_value_print_inner): Declare.
9715 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9716
9717 2020-03-13 Tom Tromey <tom@tromey.com>
9718
9719 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9720 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9721 * c-valprint.c (c_value_print_inner): New function.
9722 * c-lang.h (c_value_print_inner): Declare.
9723 * c-lang.c (c_language_defn, cplus_language_defn)
9724 (asm_language_defn, minimal_language_defn): Use
9725 c_value_print_inner.
9726
9727 2020-03-13 Tom Tromey <tom@tromey.com>
9728
9729 * p-valprint.c (pascal_object_print_value_fields): Now static.
9730 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9731
9732 2020-03-13 Tom Tromey <tom@tromey.com>
9733
9734 * c-valprint.c (c_val_print_array): Simplify.
9735
9736 2020-03-13 Tom Tromey <tom@tromey.com>
9737
9738 * valprint.c (value_print_array_elements): New function.
9739 * valprint.h (value_print_array_elements): Declare.
9740
9741 2020-03-13 Tom Tromey <tom@tromey.com>
9742
9743 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9744 * mips-tdep.c (mips_print_register): Use
9745 value_print_scalar_formatted.
9746
9747 2020-03-13 Tom Tromey <tom@tromey.com>
9748
9749 * valprint.h (value_print_scalar_formatted): Declare.
9750 * valprint.c (value_print_scalar_formatted): New function.
9751
9752 2020-03-13 Tom Tromey <tom@tromey.com>
9753
9754 * valprint.h (generic_value_print): Declare.
9755 * valprint.c (generic_value_print): New function.
9756
9757 2020-03-13 Tom Tromey <tom@tromey.com>
9758
9759 * valprint.c (do_val_print): Call la_value_print_inner, if
9760 available.
9761 * rust-lang.c (rust_language_defn): Update.
9762 * p-lang.c (pascal_language_defn): Update.
9763 * opencl-lang.c (opencl_language_defn): Update.
9764 * objc-lang.c (objc_language_defn): Update.
9765 * m2-lang.c (m2_language_defn): Update.
9766 * language.h (struct language_defn) <la_value_print_inner>: New
9767 member.
9768 * language.c (unknown_language_defn, auto_language_defn): Update.
9769 * go-lang.c (go_language_defn): Update.
9770 * f-lang.c (f_language_defn): Update.
9771 * d-lang.c (d_language_defn): Update.
9772 * c-lang.c (c_language_defn, cplus_language_defn)
9773 (asm_language_defn, minimal_language_defn): Update.
9774 * ada-lang.c (ada_language_defn): Update.
9775
9776 2020-03-13 Tom Tromey <tom@tromey.com>
9777
9778 * c-valprint.c (c_value_print): Use common_val_print.
9779
9780 2020-03-13 Tom Tromey <tom@tromey.com>
9781
9782 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9783
9784 2020-03-13 Tom Tromey <tom@tromey.com>
9785
9786 * f-valprint.c (f77_print_array_1, f_val_print): Use
9787 common_val_print.
9788
9789 2020-03-13 Tom Tromey <tom@tromey.com>
9790
9791 * riscv-tdep.c (riscv_print_one_register_info): Use
9792 common_val_print.
9793
9794 2020-03-13 Tom Tromey <tom@tromey.com>
9795
9796 * mi/mi-main.c (output_register): Use common_val_print.
9797
9798 2020-03-13 Tom Tromey <tom@tromey.com>
9799
9800 * infcmd.c (default_print_one_register_info): Use
9801 common_val_print.
9802
9803 2020-03-13 Tom Tromey <tom@tromey.com>
9804
9805 * valprint.h (common_val_print_checked): Declare.
9806 * valprint.c (common_val_print_checked): New function.
9807 * stack.c (print_frame_arg): Use common_val_print_checked.
9808
9809 2020-03-13 Tom Tromey <tom@tromey.com>
9810
9811 * valprint.c (do_val_print): New function, from val_print.
9812 (val_print): Use do_val_print.
9813 (common_val_print): Use do_val_print.
9814
9815 2020-03-13 Tom Tromey <tom@tromey.com>
9816
9817 * valprint.c (value_print): Use scoped_value_mark.
9818
9819 2020-03-13 Tom de Vries <tdevries@suse.de>
9820
9821 PR symtab/25646
9822 * psymtab.c (partial_symtab::partial_symtab): Don't set
9823 globals_offset and statics_offset. Push element onto
9824 current_global_psymbols and current_static_psymbols stacks.
9825 (concat): New function.
9826 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9827 element from current_global_psymbols and current_static_psymbols
9828 stacks. Concat popped elements to global_psymbols and
9829 static_symbols.
9830 (add_psymbol_to_list): Use current_global_psymbols and
9831 current_static_psymbols stacks.
9832 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9833 current_static_psymbols fields.
9834
9835 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9836
9837 * corelow.c (sniff_core_bfd): Remove.
9838 (class core_target) <m_core_vec>: Remove.
9839 (core_target::core_target): Update.
9840 (core_file_fns): Remove.
9841 (deprecated_add_core_fns): Remove.
9842 (default_core_sniffer): Remove.
9843 (sniff_core_bfd): Remove.
9844 (default_check_format): Remove.
9845 (gdb_check_format): Remove.
9846 (core_target_open): Update.
9847 (core_target::get_core_register_section): Update.
9848 (get_core_registers_cb): Update.
9849 (core_target::fetch_registers): Update.
9850 * gdbcore.h (struct core_fns): Remove.
9851 (deprecated_add_core_fns): Remove.
9852 (default_core_sniffer): Remove.
9853 (default_check_format): Remove.
9854
9855 2020-03-12 Tom Tromey <tom@tromey.com>
9856
9857 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9858 CORE_ADDR.
9859 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9860
9861 2020-03-12 Tom Tromey <tom@tromey.com>
9862
9863 * remote.c (remote_target::download_tracepoint)
9864 (remote_target::enable_tracepoint)
9865 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9866 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9867 sprintf_vma.
9868
9869 2020-03-12 Tom Tromey <tom@tromey.com>
9870
9871 * symfile-mem.c: Update CORE_ADDR size assert.
9872
9873 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9874
9875 * selftest.m4: Move to gdbsupport/.
9876 * acinclude.m4: Update path to selftest.m4.
9877
9878 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9879
9880 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9881 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9882 gdbarch-selfselftests.c and selftest-arch.c.
9883 (SUBDIR_UNITTESTS_OBS): Rename to...
9884 (SELFTESTS_OBS): ... this.
9885 (COMMON_SFILES): Remove disasm-selftests.c and
9886 gdbarch-selftests.c.
9887 * configure.ac: Don't add selftest-arch.{c,o} to
9888 CONFIG_{SRCS,OBS}.
9889 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9890 preprocessor conditions.
9891
9892 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9893
9894 * configure.ac: Don't source bfd/development.sh.
9895 * selftest.m4: Modify comment.
9896 * configure: Re-generate.
9897
9898 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9899
9900 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9901 not "true" or "false".
9902 * configure: Re-generate.
9903
9904 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9905
9906 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9907 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9908 renamed to arm_nbsd_supply_gregset.
9909 (fetch_register): Update to call arm_nbsd_supply_gregset.
9910 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9911 (arm_netbsd_nat_target::fetch_registers): Update.
9912 (fetch_elfcore_registers): Removed.
9913 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9914 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9915 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9916 not require NetBSD system headers.
9917 (arm_nbsd_regset): New struct.
9918 (arm_nbsd_iterate_over_regset_sections): New function.
9919 (arm_netbsd_init_abi_common): Updated to call
9920 set_gdbarch_iterate_over_regset_sections.
9921 * arm-nbsd-tdep.h: New file.
9922
9923 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9924
9925 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9926 recursion.
9927
9928 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9929
9930 * configure: Re-generate.
9931
9932 2020-03-11 Tom Tromey <tromey@adacore.com>
9933
9934 * ada-typeprint.c (print_choices): Fix comment.
9935
9936 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9937
9938 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9939 previous item in the list, when the list has no items.
9940
9941 2020-03-11 Tom de Vries <tdevries@suse.de>
9942
9943 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9944 PROP_LOCLIST handling code.
9945
9946 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9947
9948 * buildsym-legacy.c (record_line): Pass extra parameter to
9949 record_line.
9950 * buildsym.c (buildsym_compunit::record_line): Take an extra
9951 parameter, reduce duplication in the line table, and record the
9952 is_stmt flag in the line table.
9953 * buildsym.h (buildsym_compunit::record_line): Add extra
9954 parameter.
9955 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9956 non-statement lines.
9957 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9958 this to the symtab builder.
9959 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9960 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9961 through to dwarf_record_line_1.
9962 * infrun.c (process_event_stop_test): When stepping, don't stop at
9963 a non-statement instruction, and only refresh the step info when
9964 we land in the middle of a line's range. Also add an extra
9965 comment.
9966 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9967 field.
9968 * record-btrace.c (btrace_find_line_range): Only record lines
9969 marked as is-statement.
9970 * stack.c (frame_show_address): Show the frame address if we are
9971 in a non-statement sal.
9972 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9973 (maintenance_print_one_line_table): Print a header for the is_stmt
9974 column, and include is_stmt information in the output.
9975 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9976 preference to non-statements.
9977 (find_pcs_for_symtab_line): Prefer is-statement entries.
9978 (find_line_common): Likewise.
9979 * symtab.h (struct linetable_entry): Add is_stmt field.
9980 (struct symtab_and_line): Likewise.
9981 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9982 arranging the line table.
9983
9984 2020-03-07 Tom de Vries <tdevries@suse.de>
9985
9986 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9987 DIE.
9988
9989 2020-03-07 Tom Tromey <tom@tromey.com>
9990
9991 * valops.c (value_literal_complex): Remove obsolete comment.
9992 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9993 comment.
9994
9995 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9996
9997 * infrun.h: Forward-declare thread_info.
9998 (set_step_info): Add thread_info parameter, add doc.
9999 * infrun.c (set_step_info): Add thread_info parameter, move doc
10000 to header.
10001 * infrun.c (process_event_stop_test): Pass thread to
10002 set_step_info call.
10003 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10004 set_step_info.
10005 (prepare_one_step): Add thread_info parameter, pass it to
10006 set_step_frame and prepare_one_step (recursive) call.
10007 (step_1): Pass thread to prepare_one_step call.
10008 (step_command_fsm::should_stop): Pass thread to
10009 prepare_one_step.
10010 (until_next_fsm): Pass thread to set_step_frame call.
10011 (finish_command): Pass thread to set_step_info call.
10012
10013 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10014
10015 * windows-tdep.c (windows_solib_create_inferior_hook):
10016 Check if inferior is running.
10017
10018 2020-03-06 Tom de Vries <tdevries@suse.de>
10019
10020 * NEWS: Fix "the the".
10021 * ctfread.c: Same.
10022
10023 2020-03-06 Tom de Vries <tdevries@suse.de>
10024
10025 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10026
10027 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10028
10029 * .dir-locals.el: Add a comment referencing the other copies of
10030 this file.
10031
10032 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10033
10034 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10035 psargs.
10036
10037 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10038
10039 * .gitattributes: New file.
10040
10041 2020-03-04 Tom Tromey <tom@tromey.com>
10042
10043 * symmisc.c (print_symbol_bcache_statistics)
10044 (print_objfile_statistics): Update.
10045 * symfile.c (allocate_symtab): Use intern.
10046 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10047 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10048 macro_cache>: Remove.
10049 <string_cache>: New member.
10050 (struct objfile) <intern>: New methods.
10051 * elfread.c (elf_symtab_read): Use intern.
10052 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10053 (dwarf2_compute_name, dwarf2_physname)
10054 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10055 names.
10056 (guess_partial_die_structure_name): Update.
10057 (partial_die_info::fixup): Intern name.
10058 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10059 name.
10060 (dwarf2_name): Intern name. Update.
10061 * buildsym.c (buildsym_compunit::get_macro_table): Use
10062 string_cache.
10063
10064 2020-03-04 Tom Tromey <tom@tromey.com>
10065
10066 * jit.c (bfd_open_from_target_memory): Make "target" const.
10067 * corefile.c (gnutarget): Now const.
10068 * gdbcore.h (gnutarget): Now const.
10069
10070 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10071
10072 * NEWS: Mention support for WOW64 processes.
10073 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10074 (amd64_windows_segment_register_p): Remove static.
10075 (_initialize_amd64_windows_nat): Update.
10076 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10077 * i386-windows-nat.c (context_offset): Update.
10078 (i386_mappings): Rename and remove static.
10079 (i386_windows_segment_register_p): Remove static.
10080 (_initialize_i386_windows_nat): Update.
10081 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10082 (STATUS_WX86_SINGLE_STEP): New macro.
10083 (EnumProcessModulesEx): New macro.
10084 (Wow64SuspendThread): New macro.
10085 (Wow64GetThreadContext): New macro.
10086 (Wow64SetThreadContext): New macro.
10087 (Wow64GetThreadSelectorEntry): New macro.
10088 (windows_set_context_register_offsets): Add static.
10089 (windows_set_segment_register_p): Likewise.
10090 (windows_add_thread): Adapt for WOW64 processes.
10091 (windows_fetch_one_register): Likewise.
10092 (windows_nat_target::fetch_registers): Likewise.
10093 (windows_store_one_register): Likewise.
10094 (display_selector): Likewise.
10095 (display_selectors): Likewise.
10096 (handle_exception): Likewise.
10097 (windows_continue): Likewise.
10098 (windows_nat_target::resume): Likewise.
10099 (windows_add_all_dlls): Likewise.
10100 (do_initial_windows_stuff): Likewise.
10101 (windows_nat_target::attach): Likewise.
10102 (windows_get_exec_module_filename): Likewise.
10103 (windows_nat_target::create_inferior): Likewise.
10104 (windows_xfer_siginfo): Likewise.
10105 (_initialize_loadable): Initialize Wow64SuspendThread,
10106 Wow64GetThreadContext, Wow64SetThreadContext,
10107 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10108 * windows-nat.h (windows_set_context_register_offsets):
10109 Remove declaration.
10110 (windows_set_segment_register_p): Likewise.
10111 (i386_windows_segment_register_p): Add declaration.
10112 (amd64_windows_segment_register_p): Likewise.
10113
10114 2020-03-04 Luis Machado <luis.machado@linaro.org>
10115
10116 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10117 in "info registers" for AArch64/ARM.
10118
10119 The change caused "info registers" to not print GPR's.
10120
10121 gdb/ChangeLog:
10122
10123 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10124
10125 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10126 when reg->group is empty and reggroup is not.
10127
10128 2020-03-03 Tom Tromey <tromey@adacore.com>
10129
10130 * dwarf2/frame.c (struct dwarf2_frame_cache)
10131 <checked_tailcall_bottom, entry_cfa_sp_offset,
10132 entry_cfa_sp_offset_p>: Remove members.
10133 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10134 (dwarf2_frame_prev_register): Don't call
10135 dwarf2_tailcall_sniffer_first.
10136 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10137 * frame-unwind.c (add_unwinder): New fuction.
10138 (frame_unwind_init): Use it. Add tailcall unwinder.
10139
10140 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10141 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10142
10143 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10144 value should be printed as true.
10145
10146 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10147
10148 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10149 (windows_init_abi): Set and use windows_so_ops.
10150
10151 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10152
10153 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10154 when verifying if dealing with a convenience variable.
10155
10156 2020-03-03 Luis Machado <luis.machado@linaro.org>
10157
10158 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10159
10160 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10161
10162 * infrun.c (gdbarch_supports_displaced_stepping): New.
10163 (use_displaced_stepping): Break up conditions in smaller pieces.
10164 Use gdbarch_supports_displaced_stepping.
10165 (displaced_step_prepare_throw): Use
10166 gdbarch_supports_displaced_stepping.
10167
10168 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10169
10170 * NEWS: Mention new behaviour of the history filename.
10171 * top.c (write_history_p): Add comment.
10172 (show_write_history_p): Add header comment, give a different
10173 message when history writing is on, but the history filename is
10174 empty.
10175 (history_filename): Add comment.
10176 (history_filename_empty): New function.
10177 (show_history_filename): Add header comment, give a different
10178 message when the filename is empty.
10179 (init_history): Compare history_filename against nullptr, and only
10180 read history if the filename is not empty.
10181 (set_history_filename): Add header comment, and only make
10182 non-empty filenames absolute.
10183 (init_main): Make the filename argument to 'set history filename'
10184 optional.
10185
10186 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10187
10188 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10189 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10190 (fetch_fp_register): Update.
10191 (fetch_fp_regs): Update.
10192 (store_fp_register): Update.
10193 (store_fp_regs): Update.
10194 (arm_netbsd_nat_target::read_description): New function.
10195 (fetch_elfcore_registers): Update.
10196
10197 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10198
10199 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10200 general_thread if the stop reply is missing a thread-id.
10201 (remote_target::process_stop_reply): Use the first non-exited
10202 thread if the target didn't pass a thread-id.
10203 * infrun.c (do_target_wait): Move call to
10204 switch_to_inferior_no_thread to ....
10205 (do_target_wait_1): ... here.
10206
10207 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10208
10209 * debuginfod-support.c: Include defs.h first.
10210
10211 2020-02-28 Tom de Vries <tdevries@suse.de>
10212
10213 * symfile.c (set_initial_language): Use default language for lookup.
10214
10215 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10216
10217 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10218 reader variable, pass `this` to read_cutu_die_from_dwo.
10219
10220 2020-02-27 Aaron Merey <amerey@redhat.com>
10221
10222 * source.c (open_source_file): Check for nullptr when computing
10223 srcpath.
10224
10225 2020-02-27 Tom Tromey <tromey@adacore.com>
10226
10227 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10228 member.
10229 (dwarf2_add_field): Don't update nfields.
10230 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10231
10232 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10233
10234 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10235 abs.
10236
10237 2020-02-26 Tom Tromey <tom@tromey.com>
10238
10239 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10240 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10241 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10242 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10243 per_cu_data.
10244
10245 2020-02-26 Tom Tromey <tom@tromey.com>
10246
10247 * dwarf2/index-write.c (psym_index_map): Change type.
10248 (add_address_entry_worker, write_one_signatured_type)
10249 (recursively_count_psymbols, recursively_write_psymbols)
10250 (class debug_names, psyms_seen_size, write_gdbindex)
10251 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10252
10253 2020-02-26 Aaron Merey <amerey@redhat.com>
10254
10255 * Makefile.in: Handle optional debuginfod support.
10256 * NEWS: Update.
10257 * README: Add --with-debuginfod summary.
10258 * config.in: Regenerate.
10259 * configure: Regenerate.
10260 * configure.ac: Handle optional debuginfod support.
10261 * debuginfod-support.c: debuginfod helper functions.
10262 * debuginfod-support.h: Ditto.
10263 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10264 summary.
10265 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10266 when a dwz file cannot be found.
10267 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10268 debuginfo file cannot be found.
10269 * source.c (open_source_file): Query debuginfod servers when a
10270 source file cannot be found.
10271 * top.c (print_gdb_configuration): Include
10272 --{with,without}-debuginfod in the output.
10273
10274 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10275
10276 * thread.c (thr_try_catch_cmd): Print thread name.
10277
10278 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10279
10280 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10281 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10282 dwarf2_fetch_die_type_sect_off): Move to...
10283 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10284 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10285 dwarf2_fetch_die_type_sect_off): ... here.
10286 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10287 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10288 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10289
10290 2020-02-26 Tom de Vries <tdevries@suse.de>
10291
10292 PR gdb/25603
10293 * symfile.c (set_initial_language): Exit-early if
10294 language_mode == language_mode_manual.
10295
10296 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10297
10298 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10299 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10300 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10301
10302 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10303
10304 * gdbtypes.c (create_array_type_with_stride): Handle negative
10305 array strides.
10306 * valarith.c (value_subscripted_rvalue): Likewise.
10307
10308 2020-02-25 Luis Machado <luis.machado@linaro.org>
10309
10310 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10311
10312 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10313
10314 * loc.h (dwarf2_get_die_type): Move to...
10315 * read.h (dwarf2_get_die_type): ... here.
10316 * read.c (dwarf2_get_die_type): Move doc to header.
10317
10318 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10319
10320 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10321 'gnulib/Makefile.in' to the list.
10322
10323 2020-02-24 Tom Tromey <tom@tromey.com>
10324
10325 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10326 Remove.
10327 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10328 XOBNEWVEC.
10329
10330 2020-02-24 Tom Tromey <tom@tromey.com>
10331
10332 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10333 New method.
10334 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10335 (dw2_do_instantiate_symtab, dw2_get_file_names)
10336 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10337
10338 2020-02-24 Tom Tromey <tom@tromey.com>
10339
10340 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10341 make_scoped_restore.
10342 (dwarf2_psymtab::read_symtab): Don't clear
10343 reading_partial_symbols.
10344
10345 2020-02-24 Tom de Vries <tdevries@suse.de>
10346
10347 PR gdb/25592
10348 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10349
10350 2020-02-24 Tom de Vries <tdevries@suse.de>
10351
10352 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10353 commands layout next/prev/regs.
10354
10355 2020-02-22 Tom Tromey <tom@tromey.com>
10356
10357 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10358 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10359
10360 2020-02-22 Tom Tromey <tom@tromey.com>
10361
10362 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10363
10364 2020-02-22 Tom Tromey <tom@tromey.com>
10365
10366 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10367 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10368 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10369 * tui/tui.c (_initialize_tui): Add usage text.
10370
10371 2020-02-22 Tom Tromey <tom@tromey.com>
10372
10373 * tui/tui-win.c (tui_set_focus_command)
10374 (tui_set_win_height_command): Use error_no_arg.
10375 (_initialize_tui_win): Update help text.
10376 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10377
10378 2020-02-22 Tom Tromey <tom@tromey.com>
10379
10380 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10381 * tui/tui-disasm.h (struct tui_disasm_window)
10382 <display_start_addr>: Declare.
10383 * tui/tui-source.h (struct tui_source_window)
10384 <display_start_addr>: Declare.
10385 * tui/tui-winsource.h (struct tui_source_window_base)
10386 <show_source_line, display_start_addr>: New methods.
10387 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10388 Rename and move to protected section.
10389 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10390 (tui_source_window_base::do_erase_source_content): Update.
10391 (tui_source_window_base::show_source_line): Now a method.
10392 (tui_source_window_base::show_source_content)
10393 (tui_source_window_base::tui_source_window_base)
10394 (tui_source_window_base::rerender)
10395 (tui_source_window_base::refill)
10396 (tui_source_window_base::do_scroll_horizontal)
10397 (tui_source_window_base::set_is_exec_point_at)
10398 (tui_source_window_base::update_breakpoint_info)
10399 (tui_source_window_base::update_exec_info): Update.
10400 * tui/tui-source.c (tui_source_window::set_contents)
10401 (tui_source_window::showing_source_p)
10402 (tui_source_window::do_scroll_vertical)
10403 (tui_source_window::location_matches_p)
10404 (tui_source_window::line_is_displayed): Update.
10405 (tui_source_window::display_start_addr): New method.
10406 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10407 (tui_disasm_window::do_scroll_vertical)
10408 (tui_disasm_window::location_matches_p): Update.
10409 (tui_disasm_window::display_start_addr): New method.
10410
10411 2020-02-22 Tom Tromey <tom@tromey.com>
10412
10413 * NEWS: Add entry for gdb.register_window_type.
10414 * tui/tui-layout.h (window_factory): New typedef.
10415 (tui_register_window): Declare.
10416 * tui/tui-layout.c (saved_tui_windows): New global.
10417 (tui_apply_current_layout): Use it.
10418 (tui_register_window): New function.
10419 * python/python.c (do_start_initialization): Call
10420 gdbpy_initialize_tui.
10421 (python_GdbMethods): Add "register_window_type" function.
10422 * python/python-internal.h (gdbpy_register_tui_window)
10423 (gdbpy_initialize_tui): Declare.
10424 * python/py-tui.c: New file.
10425 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10426
10427 2020-02-22 Tom Tromey <tom@tromey.com>
10428
10429 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10430
10431 2020-02-22 Tom Tromey <tom@tromey.com>
10432
10433 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10434 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10435 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10436 (tui_set_win_focus_to): Move from tui-win.c.
10437
10438 2020-02-22 Tom Tromey <tom@tromey.com>
10439
10440 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10441 functions.
10442 (known_window_types): New global.
10443 (tui_get_window_by_name): Reimplement.
10444 (initialize_known_windows): New function.
10445 (validate_window_name): Rewrite.
10446 (_initialize_tui_layout): Call initialize_known_windows.
10447
10448 2020-02-22 Tom Tromey <tom@tromey.com>
10449
10450 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10451 Remove constants.
10452 * tui/tui-winsource.h (struct tui_source_window_base)
10453 <tui_source_window_base>: Remove parameter.
10454 * tui/tui-winsource.c
10455 (tui_source_window_base::tui_source_window_base): Remove
10456 parameter.
10457 (tui_source_window_base::refill): Update.
10458 * tui/tui-stack.h (struct tui_locator_window)
10459 <tui_locator_window>: Update.
10460 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10461 Default the constructor.
10462 * tui/tui-regs.h (struct tui_data_item_window)
10463 <tui_data_item_window>: Default the constructor.
10464 (struct tui_data_window) <tui_data_window>: Likewise.
10465 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10466 Default the constructor.
10467 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10468 Default the constructor.
10469 <type>: Remove.
10470 (struct tui_win_info) <tui_win_info>: Default the constructor.
10471 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10472 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10473 Default the constructor.
10474
10475 2020-02-22 Tom Tromey <tom@tromey.com>
10476
10477 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10478 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10479 * tui/tui-win.c (tui_resize_all): Don't call
10480 tui_delete_invisible_windows.
10481 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10482 done.
10483 (tui_set_layout): Update.
10484 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10485 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10486 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10487
10488 2020-02-22 Tom Tromey <tom@tromey.com>
10489
10490 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10491 correctly.
10492
10493 2020-02-22 Tom Tromey <tom@tromey.com>
10494
10495 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10496
10497 2020-02-22 Tom Tromey <tom@tromey.com>
10498
10499 * tui/tui-winsource.h (struct tui_source_window_iterator)
10500 <inner_iterator>: New etytypedef.
10501 <tui_source_window_iterator>: Take "end" parameter.
10502 <tui_source_window_iterator>: Take iterator.
10503 <operator*, advance>: Update.
10504 <m_iter>: Change type.
10505 <m_end>: New field.
10506 (struct tui_source_windows) <begin, end>: Update.
10507 * tui/tui-layout.c (tui_windows): New global.
10508 (tui_apply_current_layout): Clear tui_windows.
10509 (tui_layout_window::apply): Update tui_windows.
10510 * tui/tui-data.h (tui_windows): Declare.
10511 (all_tui_windows): Now inline function.
10512 (class tui_window_iterator, struct all_tui_windows): Remove.
10513
10514 2020-02-22 Tom Tromey <tom@tromey.com>
10515
10516 PR tui/17850:
10517 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10518 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10519 "height" argument.
10520 (class tui_layout_window) <get_sizes>: Likewise.
10521 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10522 argument.
10523 <get_sizes>: Add "height" argument.
10524 <m_vertical>: New field.
10525 * tui/tui-layout.c (tui_layout_split::clone): Update.
10526 (tui_layout_split::get_sizes): Add "height" argument.
10527 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10528 (tui_new_layout_command): Parse "-horizontal".
10529 (_initialize_tui_layout): Update help string.
10530 (tui_layout_split::specification): Add "-horizontal" when needed.
10531 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10532 argument.
10533 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10534 New methods.
10535
10536 2020-02-22 Tom Tromey <tom@tromey.com>
10537
10538 * tui/tui-layout.h (enum tui_adjust_result): New.
10539 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10540 (class tui_layout_window) <adjust_size>: Return
10541 tui_adjust_result. Rewrite.
10542 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10543 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10544
10545 2020-02-22 Tom Tromey <tom@tromey.com>
10546
10547 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10548 parameter and return types.
10549 (class tui_layout_base) <specification>: Add "depth".
10550 (class tui_layout_window) <specification>: Add "depth".
10551 (class tui_layout_split) <specification>: Add "depth".
10552 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10553 and return types.
10554 (tui_new_layout_command): Parse sub-layouts.
10555 (_initialize_tui_layout): Update help string.
10556 (tui_layout_window::specification): Add "depth".
10557 (add_layout_command): Update.
10558
10559 2020-02-22 Tom Tromey <tom@tromey.com>
10560
10561 * NEWS: Add "tui new-layout" item.
10562 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10563 Add new-layout command to help text.
10564 (validate_window_name): New function.
10565 (tui_new_layout_command): New function.
10566 (_initialize_tui_layout): Register "new-layout".
10567 (tui_layout_window::specification): New method.
10568 (tui_layout_window::specification): New method.
10569 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10570 method.
10571 (class tui_layout_window) <specification>: New method.
10572 (class tui_layout_split) <specification>: New method.
10573
10574 2020-02-22 Tom Tromey <tom@tromey.com>
10575
10576 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10577 * tui/tui-win.c (window_name_completer): Update comment.
10578 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10579 Declare method.
10580 (class tui_layout_window) <replace_window>: Likewise.
10581 (class tui_layout_split) <replace_window>: Likewise.
10582 (tui_set_layout): Don't declare.
10583 (tui_set_initial_layout): Declare function.
10584 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10585 (asm_regs_layout): New globals.
10586 (tui_current_layout, show_layout): Remove.
10587 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10588 (find_layout, tui_apply_layout): New function.
10589 (layout_completer): Remove.
10590 (tui_next_layout): Reimplement.
10591 (tui_next_layout_command): New function.
10592 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10593 (tui_regs_layout): Reimplement.
10594 (tui_regs_layout_command): New function.
10595 (extract_display_start_addr): Rewrite.
10596 (next_layout, prev_layout): Remove.
10597 (tui_layout_window::replace_window): New method.
10598 (tui_layout_split::replace_window): New method.
10599 (destroy_layout): New function.
10600 (layout_list): New global.
10601 (add_layout_command): New function.
10602 (initialize_layouts): Update.
10603 (tui_layout_command): New function.
10604 (_initialize_tui_layout): Install "layout" commands.
10605 * tui/tui-data.h (enum tui_layout_type): Remove.
10606 (tui_current_layout): Don't declare.
10607
10608 2020-02-22 Tom Tromey <tom@tromey.com>
10609
10610 * tui/tui-regs.c (tui_reg_layout): Remove.
10611 (tui_reg_command): Use tui_regs_layout.
10612 * tui/tui-layout.h (tui_reg_command): Declare.
10613 * tui/tui-layout.c (tui_reg_command): New function.
10614
10615 2020-02-22 Tom Tromey <tom@tromey.com>
10616
10617 * tui/tui.c (tui_rl_delete_other_windows): Call
10618 tui_remove_some_windows.
10619 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10620 Declare method.
10621 (class tui_layout_window) <remove_windows>: New method.
10622 (class tui_layout_split) <remove_windows>: Declare.
10623 (tui_remove_some_windows): Declare.
10624 * tui/tui-layout.c (tui_remove_some_windows): New function.
10625 (tui_layout_split::remove_windows): New method.
10626
10627 2020-02-22 Tom Tromey <tom@tromey.com>
10628
10629 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10630 * tui/tui-layout.h (tui_next_layout): Declare.
10631 * tui/tui-layout.c (tui_next_layout): New function.
10632
10633 2020-02-22 Tom Tromey <tom@tromey.com>
10634
10635 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10636 correct coordinates.
10637
10638 2020-02-22 Tom Tromey <tom@tromey.com>
10639
10640 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10641 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10642 DATA_WIN case.
10643
10644 2020-02-22 Tom Tromey <tom@tromey.com>
10645
10646 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10647 TUI_DISASM_WIN, not tui_win_list.
10648
10649 2020-02-22 Tom Tromey <tom@tromey.com>
10650
10651 * valprint.c (generic_val_print_enum_1)
10652 (val_print_type_code_flags): Style member names.
10653 * rust-lang.c (val_print_struct, rust_print_enum)
10654 (rust_print_struct_def, rust_internal_print_type): Style member
10655 names.
10656 * p-valprint.c (pascal_object_print_value_fields): Style member
10657 names. Only call fprintf_symbol_filtered for static members.
10658 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10659 * f-valprint.c (f_val_print): Style member names.
10660 * f-typeprint.c (f_type_print_base): Style member names.
10661 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10662 call fprintf_symbol_filtered for static members.
10663 (cp_print_class_member): Style member names.
10664 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10665 member names.
10666 * ada-valprint.c (ada_print_scalar): Style enum names.
10667 (ada_val_print_enum): Likewise.
10668 * ada-typeprint.c (print_enum_type): Style enum names.
10669
10670 2020-02-21 Tom Tromey <tom@tromey.com>
10671
10672 * psympriv.h (struct partial_symtab): Update comment.
10673
10674 2020-02-21 Tom Tromey <tromey@adacore.com>
10675
10676 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10677 type is CORE_ADDR.
10678
10679 2020-02-21 Tom de Vries <tdevries@suse.de>
10680
10681 PR gdb/25534
10682 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10683 if dependencies[i]->user != NULL.
10684
10685 2020-02-21 Ali Tamur <tamur@google.com>
10686
10687 * dwarf2/read.c (dwarf2_name): Add null check.
10688
10689 2020-02-20 Tom Tromey <tom@tromey.com>
10690
10691 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10692 ">=", in binary search.
10693 (dwarf2_find_containing_comp_unit): New overload.
10694 (run_test): New self-test.
10695 (_initialize_dwarf2_read): Register new test.
10696
10697 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10698
10699 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10700 * riscv-tdep.h: Likewise.
10701 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10702 rv32-only CSR.
10703 * features/riscv/64bit-csr.xml: Regenerated.
10704
10705 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10706 Tom Tromey <tom@tromey.com>
10707
10708 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10709 of 'fputc_unfiltered'.
10710 (putchar_unfiltered): Call 'fputc_unfiltered'.
10711 (fputc_unfiltered): Call 'fputs_unfiltered'.
10712
10713 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10714
10715 * config.in: Regenerate.
10716 * configure: Regenerate.
10717 * configure.ac: Add --with-python-libdir option.
10718 * main.c: Use WITH_PYTHON_LIBDIR.
10719
10720 2020-02-19 Tom Tromey <tom@tromey.com>
10721
10722 * symtab.c (general_symbol_info::compute_and_set_names): Use
10723 obstack_strndup. Simplify call to symbol_set_demangled_name.
10724
10725 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10726
10727 * dwarf2/read.c (allocate_signatured_type_table,
10728 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10729 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10730 Remove objfile parameter, update all callers.
10731
10732 2020-02-19 Doug Evans <dje@google.com>
10733
10734 PR rust/25535
10735 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10736 rust_enum_variant calculation.
10737
10738 2020-02-19 Tom Tromey <tromey@adacore.com>
10739
10740 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10741
10742 2020-02-19 Tom Tromey <tromey@adacore.com>
10743
10744 * ada-lang.c (cache_symbol): Use obstack_strdup.
10745
10746 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10747
10748 * configure: Regenerate.
10749
10750 2020-02-19 Tom Tromey <tromey@adacore.com>
10751
10752 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10753 NULL check.
10754
10755 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10756
10757 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10758
10759 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10760
10761 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10762 if GDBSERVER is not defined.
10763 (riscv_tdesc_cache): Likewise, also store const target_desc.
10764 (STATIC_IN_GDB): Define.
10765 (riscv_create_target_description): Update declaration with
10766 STATIC_IN_GDB.
10767 (riscv_lookup_target_description): New function, only define if
10768 GDBSERVER is not defined.
10769 * arch/riscv.h (riscv_create_target_description): Declare only
10770 when GDBSERVER is defined.
10771 (riscv_lookup_target_description): New declaration when GDBSERVER
10772 is not defined.
10773 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10774 (riscv_linux_read_features): ...this, and return
10775 riscv_gdbarch_features instead of target_desc.
10776 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10777 (riscv_linux_read_description): Rename to...
10778 (riscv_linux_read_features): ...this.
10779 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10780 Update to use riscv_gdbarch_features and
10781 riscv_lookup_target_description.
10782 * riscv-tdep.c (riscv_find_default_target_description): Use
10783 riscv_lookup_target_description instead of
10784 riscv_create_target_description.
10785
10786 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10787
10788 * valprint.c (generic_val_print_enum_1): When printing a flag
10789 enum with value 0 and there is no enumerator with value 0, print
10790 just "0" instead of "(unknown: 0x0)".
10791
10792 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10793
10794 * valprint.c (generic_val_print_enum_1): Print unknown part of
10795 flag enum in hex.
10796
10797 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10798
10799 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10800 flag enums to contain duplicate enumerators.
10801 * valprint.c (generic_val_print_enum_1): Update comment.
10802
10803 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10804
10805 * dwarf2/read.c: Include "count-one-bits.h".
10806 (update_enumeration_type_from_children): If an enumerator has
10807 multiple bits set, don't treat the enumeration as a "flag enum".
10808 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10809 of flag enums have 0 or 1 bit set.
10810
10811 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10812
10813 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10814 conversion.
10815 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10816 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10817 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10818 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10819 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10820
10821 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10822
10823 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10824
10825 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10826
10827 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10828 displaced_step_closure_up.
10829 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10830 (struct displaced_step_closure_up):
10831 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10832 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10833 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10834 Likewise.
10835 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10836 * gdbarch.c, gdbarch.h: Re-generate.
10837 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10838 displaced_step_closure_up.
10839 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10840 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10841 * infrun.h (displaced_step_closure_up): New type alias.
10842 (struct displaced_step_inferior_state) <step_closure>: Change
10843 type to displaced_step_closure_up.
10844 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10845 displaced_step_closure_up.
10846 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10847
10848 2020-02-14 Tom Tromey <tom@tromey.com>
10849
10850 * minidebug.c (gnu_debug_key): New global.
10851 (find_separate_debug_file_in_section): Use it.
10852
10853 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10854
10855 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10856 std::unique_ptr.
10857 * gdbarch.c: Re-generate.
10858 * gdbarch.h: Re-generate.
10859 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10860 change.
10861 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10862 type to std::unique_ptr.
10863 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10864 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10865 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10866 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10867 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10868 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10869 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10870 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10871 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10872
10873 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10874
10875 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10876 std::unique_ptr.
10877 (displaced_step_clear): Rename to...
10878 (displaced_step_reset): ... this. Just call displaced->reset ().
10879 (displaced_step_clear_cleanup): Rename to...
10880 (displaced_step_reset_cleanup): ... this.
10881 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10882 (displaced_step_fixup): Likewise.
10883 (resume_1): Likewise.
10884 (handle_inferior_event): Restore child's memory before calling
10885 displaced_step_fixup on the parent.
10886 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10887 to std::unique_ptr.
10888 <step_closure>: Change type to std::unique_ptr.
10889
10890 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10891
10892 * arm-tdep.c: Include count-one-bits.h.
10893 (cleanup_block_store_pc): Use count_one_bits.
10894 (cleanup_block_load_pc): Use count_one_bits.
10895 (arm_copy_block_xfer): Use count_one_bits.
10896 (thumb2_copy_block_xfer): Use count_one_bits.
10897 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10898 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10899 (thumb_get_next_pcs_raw): Use count_one_bits.
10900 (arm_get_next_pcs_raw): Use count_one_bits_l.
10901 * arch/arm.c (bitcount): Remove.
10902 * arch/arm.h (bitcount): Remove.
10903
10904 2020-02-14 Tom Tromey <tromey@adacore.com>
10905
10906 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10907 Update.
10908 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10909 * dwarf2/loc.c (call_site_find_chain_1): Return
10910 unique_xmalloc_ptr.
10911 (call_site_find_chain): Likewise.
10912
10913 2020-02-14 Richard Biener <rguenther@suse.de>
10914
10915 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10916 on expression with division operators.
10917
10918 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10919
10920 * MAINTAINERS (Write After Approval): Adding myself.
10921
10922 2020-02-12 Tom Tromey <tom@tromey.com>
10923
10924 * event-loop.c (event_data, gdb_event, event_handler_func):
10925 Remove.
10926
10927 2020-02-12 Tom Tromey <tom@tromey.com>
10928
10929 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10930 (dwarf2_frame_objfile_data): Add comment.
10931 (find_comp_unit, set_comp_unit): New functions.
10932 (dwarf2_frame_find_fde): Use find_comp_unit.
10933 (dwarf2_build_frame_info): Use set_comp_unit.
10934
10935 2020-02-12 Tom Tromey <tom@tromey.com>
10936
10937 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10938 (comp_unit): Don't initialize objfile.
10939 (execute_cfa_program): Add text_offset parameter.
10940 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10941 (dwarf2_frame_cache): Update.
10942 (dwarf2_build_frame_info): Don't set "objfile" member.
10943
10944 2020-02-12 Tom Tromey <tom@tromey.com>
10945
10946 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10947 (decode_frame_entry): Likewise.
10948 (dwarf2_build_frame_info): Update.
10949
10950 2020-02-12 Tom Tromey <tom@tromey.com>
10951
10952 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10953 (decode_frame_entry_1): Use the comp_unit obstack.
10954
10955 2020-02-12 Tom Tromey <tom@tromey.com>
10956
10957 * dwarf2/frame.c (struct comp_unit): Add initializers and
10958 constructor.
10959 (dwarf2_frame_objfile_data): Store a comp_unit.
10960 (dwarf2_frame_find_fde): Update.
10961 (dwarf2_build_frame_info): Use "new".
10962
10963 2020-02-12 Tom Tromey <tom@tromey.com>
10964
10965 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10966 (dwarf2_fde_table): Typedef for std::vector.
10967 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10968 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10969 (decode_frame_entry): Update.
10970 (dwarf2_build_frame_info): Use "new".
10971
10972 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10973
10974 * arm-tdep.c (arm_gdbarch_init): Update.
10975 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10976 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10977 have_neon, is_m>: Change to bool.
10978
10979 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10980
10981 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10982
10983 2020-02-12 Tom Tromey <tom@tromey.com>
10984
10985 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10986
10987 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10988
10989 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10990 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10991
10992 2020-02-11 Tom Tromey <tom@tromey.com>
10993
10994 * psymtab.h: Update comment.
10995
10996 2020-02-11 Tom Tromey <tom@tromey.com>
10997
10998 * gdb_obstack.h (struct auto_obstack): Use
10999 DISABLE_COPY_AND_ASSIGN.
11000
11001 2020-02-11 Tom Tromey <tom@tromey.com>
11002
11003 * dwarf2/frame.h (struct objfile): Don't forward declare.
11004
11005 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11006
11007 * cris-tdep.c (cris_supply_gregset): Change signature to match
11008 what struct regset expects.
11009 (cris_regset): New struct.
11010 (fetch_core_registers): Remove.
11011 (cris_iterate_over_regset_sections): New function.
11012 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11013 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11014
11015 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11016
11017 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11018 registers.
11019
11020 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11021
11022 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11023
11024 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11025
11026 * configure: Re-generate.
11027
11028 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11029
11030 * configure: Re-generate.
11031
11032 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11033
11034 * acinclude: Update warning.m4 path.
11035 * warning.m4: Move to gdbsupport.
11036
11037 2020-02-11 Tom Tromey <tromey@adacore.com>
11038
11039 * remote.c (remote_console_output): Update.
11040 * printcmd.c (printf_command): Update.
11041 * event-loop.c (gdb_wait_for_event): Update.
11042 * linux-nat.c (sigchld_handler): Update.
11043 * remote-sim.c (gdb_os_write_stdout): Update.
11044 (gdb_os_flush_stdout): Update.
11045 (gdb_os_flush_stderr): Update.
11046 (gdb_os_write_stderr): Update.
11047 * exceptions.c (print_exception): Update.
11048 * remote-fileio.c (remote_fileio_func_read): Update.
11049 (remote_fileio_func_write): Update.
11050 * tui/tui.c (tui_enable): Update.
11051 * tui/tui-interp.c (tui_interp::init): Update.
11052 * utils.c (init_page_info): Update.
11053 (putchar_unfiltered, fputc_unfiltered): Update.
11054 (gdb_flush): Update.
11055 (emit_style_escape): Update.
11056 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11057 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11058 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11059 (stderr_file::write): Update.
11060 (stderr_file::puts): Update.
11061 * ui-file.h (ui_file_isatty, ui_file_write)
11062 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11063 (ui_file_puts): Don't declare.
11064
11065 2020-02-10 Tom de Vries <tdevries@suse.de>
11066
11067 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11068 sentinel to char *.
11069
11070 2020-02-09 Tom de Vries <tdevries@suse.de>
11071
11072 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11073 filename if it matches "<artificial>".
11074
11075 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11076
11077 * windows-tdep.c (struct enum_value_name): New struct.
11078 (create_enum): New function.
11079 (windows_get_siginfo_type): Create and use enum types.
11080
11081 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11082
11083 * NEWS: Mention $_siginfo support for Windows.
11084 * windows-nat.c (handle_exception): Set siginfo_er.
11085 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11086 (windows_xfer_siginfo): New function.
11087 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11088 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11089 (init_windows_gdbarch_data): New function.
11090 (get_windows_gdbarch_data): New function.
11091 (windows_get_siginfo_type): New function.
11092 (windows_init_abi): Register windows_get_siginfo_type.
11093 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11094
11095 2020-02-08 Tom Tromey <tom@tromey.com>
11096
11097 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11098 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11099 <keep>: Declare method.
11100 <m_keep>: Remove member.
11101 <~cutu_reader>: Remove.
11102 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11103 (cutu_reader::cutu_reader): Update.
11104 (cutu_reader::keep): Rename from ~cutu_reader.
11105 (process_psymtab_comp_unit, build_type_psymtabs_1)
11106 (process_skeletonless_type_unit, load_partial_comp_unit)
11107 (load_full_comp_unit, dwarf2_read_addr_index)
11108 (read_signatured_type): Update.
11109
11110 2020-02-08 Tom Tromey <tom@tromey.com>
11111
11112 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11113 "want_partial_unit" parameter.
11114 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11115 Inline check for DW_TAG_partial_unit.
11116 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11117
11118 2020-02-08 Tom Tromey <tom@tromey.com>
11119
11120 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11121 read.c.
11122 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11123 read.c.
11124
11125 2020-02-08 Tom Tromey <tom@tromey.com>
11126
11127 * dwarf2/read.c (read_address): Move to comp-unit.c.
11128 (dwarf2_rnglists_process, dwarf2_ranges_process)
11129 (read_attribute_value, dwarf_decode_lines_1)
11130 (var_decode_location, decode_locdesc): Update.
11131 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11132 read.c. Remove "cu" parameter.
11133 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11134 method.
11135
11136 2020-02-08 Tom Tromey <tom@tromey.com>
11137
11138 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11139 (read_indirect_line_string): Update.
11140 * dwarf2/comp-unit.c (read_offset): Remove.
11141 (read_comp_unit_head): Update.
11142 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11143 method.
11144 (read_offset): Don't declare.
11145
11146 2020-02-08 Tom Tromey <tom@tromey.com>
11147
11148 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11149 * dwarf2/read.c (struct comp_unit_head): Move to
11150 dwarf2/comp-unit.h.
11151 (enum class rcuh_kind): Move to comp-unit.h.
11152 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11153 (read_comp_unit_head, error_check_comp_unit_head)
11154 (read_and_check_comp_unit_head): Move to comp-unit.c.
11155 (read_offset, dwarf_unit_type_name): Likewise.
11156 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11157 (cutu_reader::cutu_reader, read_call_site_scope)
11158 (find_partial_die, follow_die_offset): Update.
11159 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11160
11161 2020-02-08 Tom Tromey <tom@tromey.com>
11162
11163 * dwarf2/read.c (read_offset_1): Move to leb.c.
11164 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11165 (dwarf_decode_macro_bytes): Update.
11166 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11167 * dwarf2/leb.h (read_offset): Declare.
11168
11169 2020-02-08 Tom Tromey <tom@tromey.com>
11170
11171 * dwarf2/read.c (dwarf2_section_size): Remove.
11172 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11173 Update.
11174 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11175
11176 2020-02-08 Tom Tromey <tom@tromey.com>
11177
11178 * dwarf2/read.c (read_initial_length): Move to leb.c.
11179 * dwarf2/leb.h (read_initial_length): Declare.
11180 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11181 handle_nonstd parameter.
11182 * dwarf2/frame.c (read_initial_length): Remove.
11183 (decode_frame_entry_1): Update.
11184
11185 2020-02-08 Tom Tromey <tom@tromey.com>
11186
11187 * dwarf2/loc.c (dwarf2_find_location_expression)
11188 (dwarf_evaluate_loc_desc::get_tls_address)
11189 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11190 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11191 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11192 (dwarf2_compile_property_to_c)
11193 (dwarf2_loc_desc_get_symbol_read_needs)
11194 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11195 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11196 (loclist_describe_location, loclist_tracepoint_var_ref)
11197 (loclist_generate_c_location): Update.
11198 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11199 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11200 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11201 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11202 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11203 (dwarf2_per_cu_data::addr_size)
11204 (dwarf2_per_cu_data::ref_addr_size)
11205 (dwarf2_per_cu_data::text_offset)
11206 (dwarf2_per_cu_data::addr_type): Now methods.
11207 (per_cu_header_read_in): Make per_cu "const".
11208 (dwarf2_version): Remove.
11209 (dwarf2_per_cu_data::int_type): Now a method.
11210 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11211 (set_die_type, read_array_type, read_subrange_index_type)
11212 (read_tag_string_type, read_subrange_type): Update.
11213 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11214 offset_size, ref_addr_size, text_offset, addr_type, version,
11215 objfile, int_type, addr_sized_int_type>: Declare methods.
11216
11217 2020-02-08 Tom Tromey <tom@tromey.com>
11218
11219 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11220 Move earlier.
11221
11222 2020-02-08 Tom Tromey <tom@tromey.com>
11223
11224 * dwarf2/read.h (dwarf_line_debug): Declare.
11225 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11226 * dwarf2/read.c: Move line_header code to new files.
11227 (dwarf_line_debug): No longer static.
11228 * dwarf2/line-header.c: New file.
11229 * dwarf2/line-header.h: New file.
11230
11231 2020-02-08 Tom Tromey <tom@tromey.com>
11232
11233 * dwarf2/read.c (struct line_header) <file_full_name,
11234 file_file_name>: Return unique_xmalloc_ptr.
11235 (line_header::file_file_name): Update.
11236 (line_header::file_full_name): Update.
11237 (dw2_get_file_names_reader): Update.
11238 (macro_start_file): Update.
11239
11240 2020-02-08 Tom Tromey <tom@tromey.com>
11241
11242 * dwarf2/read.c (struct line_header) <file_full_name,
11243 file_file_name>: Declare methods.
11244 (dw2_get_file_names_reader): Update.
11245 (file_file_name): Now a method.
11246 (file_full_name): Likewise.
11247 (macro_start_file): Update.
11248
11249 2020-02-08 Tom Tromey <tom@tromey.com>
11250
11251 * dwarf2/read.c (dwarf_always_disassemble)
11252 (show_dwarf_always_disassemble): Move to loc.c.
11253 (_initialize_dwarf2_read): Move "always-disassemble" registration
11254 to loc.c.
11255 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11256 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11257 static.
11258 (show_dwarf_always_disassemble): Move from read.c.
11259 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11260
11261 2020-02-08 Tom Tromey <tom@tromey.com>
11262
11263 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11264 (create_quick_file_names_table): Return htab_up.
11265 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11266 Update.
11267 * dwarf2/read.h (struct dwarf2_per_objfile)
11268 <quick_file_names_table>: Now htab_up.
11269
11270 2020-02-08 Tom Tromey <tom@tromey.com>
11271
11272 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11273
11274 2020-02-08 Tom Tromey <tom@tromey.com>
11275
11276 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11277 Rewrite.
11278 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11279 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11280 (abbrev_table::abbrev_table): No longer inline.
11281 (ABBREV_HASH_SIZE): Remove.
11282 (abbrev_table::m_abbrevs): Now an htab_up.
11283
11284 2020-02-08 Tom Tromey <tom@tromey.com>
11285
11286 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11287 (cutu_reader): Update.
11288 (build_type_psymtabs_1): Update.
11289 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11290 (abbrev_table::alloc_abbrev): Update.
11291 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11292 (abbrev_table::read): New static method, renamed from
11293 abbrev_table_read_table.
11294 (abbrev_table::alloc_abbrev)
11295 (abbrev_table::add_abbrev): Now private.
11296 (abbrev_table::abbrev_table): Now private.
11297 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11298
11299 2020-02-08 Tom Tromey <tom@tromey.com>
11300
11301 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11302 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11303 htab_up.
11304
11305 2020-02-08 Tom Tromey <tom@tromey.com>
11306
11307 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11308 htab_up.
11309 (lookup_dwo_unit_in_dwp): Update.
11310 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11311 on obstack.
11312
11313 2020-02-08 Tom Tromey <tom@tromey.com>
11314
11315 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11316 obstack.
11317
11318 2020-02-08 Tom Tromey <tom@tromey.com>
11319
11320 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11321 line_header_hash.
11322 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11323 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11324 Change type to htab_up.
11325
11326 2020-02-08 Tom Tromey <tom@tromey.com>
11327
11328 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11329 htab_up. Don't allocate on obstack.
11330 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11331 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11332 Change type to htab_up.
11333
11334 2020-02-08 Tom Tromey <tom@tromey.com>
11335
11336 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11337 Change type to htab_up.
11338 * dwarf2/read.c (create_signatured_type_table_from_index)
11339 (create_signatured_type_table_from_debug_names)
11340 (create_all_type_units, add_type_unit)
11341 (lookup_dwo_signatured_type, lookup_signatured_type)
11342 (process_skeletonless_type_unit): Update.
11343 (create_debug_type_hash_table, create_debug_types_hash_table):
11344 Change type of types_htab.
11345 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11346 htab_up. Don't allocate on obstack.
11347 (create_cus_hash_table): Change type of cus_htab parameter.
11348 (struct dwo_file) <cus, tus>: Now htab_up.
11349 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11350 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11351 (queue_and_load_all_dwo_tus): Update.
11352 * dwarf2/index-write.c (write_gdbindex): Update.
11353 (write_debug_names): Update.
11354
11355 2020-02-08 Tom Tromey <tom@tromey.com>
11356
11357 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11358 dwarf2/read.c. Remove "next" member. Add constructor ntad
11359 destructor.
11360 (struct dwarf2_per_objfile) <queue>: New member.
11361 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11362 dwarf2/read.h.
11363 (dwarf2_queue, dwarf2_queue_tail): Remove.
11364 (class dwarf2_queue_guard): Add parameter to constructor. Use
11365 DISABLE_COPY_AND_ASSIGN.
11366 <m_per_objfile>: New member.
11367 <~dwarf2_queue_guard>: Rewrite.
11368 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11369 Update.
11370 (~dwarf2_queue_item): New.
11371
11372 2020-02-08 Tom Tromey <tom@tromey.com>
11373
11374 * dwarf2/read.c (struct die_info) <has_children>: New member.
11375 (dw2_get_file_names_reader): Remove has_children.
11376 (dw2_get_file_names): Update.
11377 (read_cutu_die_from_dwo): Remove has_children.
11378 (cutu_reader::init_tu_and_read_dwo_dies)
11379 (cutu_reader::cutu_reader): Update.
11380 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11381 Remove has_children.
11382 (build_type_psymtabs_1, process_skeletonless_type_unit)
11383 (load_partial_comp_unit, load_full_comp_unit): Update.
11384 (create_dwo_cu_reader): Remove has_children.
11385 (create_cus_hash_table, read_die_and_children): Update.
11386 (read_full_die_1,read_full_die): Remove has_children.
11387 (read_signatured_type): Update.
11388 (class cutu_reader) <has_children>: Remove.
11389
11390 2020-02-08 Tom Tromey <tom@tromey.com>
11391
11392 * dwarf2/expr.c: Rename from dwarf2expr.c.
11393 * dwarf2/expr.h: Rename from dwarf2expr.h.
11394 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11395 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11396 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11397 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11398 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11399 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11400 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11401 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11402 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11403 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11404 * dwarf2/loc.c: Rename from dwarf2loc.c.
11405 * dwarf2/loc.h: Rename from dwarf2loc.h.
11406 * dwarf2/read.c: Rename from dwarf2read.c.
11407 * dwarf2/read.h: Rename from dwarf2read.h.
11408 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11409 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11410 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11411 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11412 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11413 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11414 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11415 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11416 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11417 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11418 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11419 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11420 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11421 Update.
11422 * Makefile.in (COMMON_SFILES): Update.
11423 (HFILES_NO_SRCDIR): Update.
11424
11425 2020-02-08 Tom Tromey <tom@tromey.com>
11426
11427 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11428 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11429
11430 2020-02-08 Tom Tromey <tom@tromey.com>
11431
11432 * dwarf2read.h (struct die_info): Don't declare.
11433
11434 2020-02-08 Tom Tromey <tom@tromey.com>
11435
11436 * dwarf2read.h (die_info_ptr): Remove typedef.
11437
11438 2020-02-08 Tom Tromey <tom@tromey.com>
11439
11440 * dwarf2read.c (read_call_site_scope)
11441 (handle_data_member_location, dwarf2_add_member_fn)
11442 (mark_common_block_symbol_computed, read_common_block)
11443 (attr_to_dynamic_prop, partial_die_info::read)
11444 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11445 (dwarf2_symbol_mark_computed, set_die_type): Update.
11446 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11447 method.
11448 (attr_form_is_block): Don't declare.
11449 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11450
11451 2020-02-08 Tom Tromey <tom@tromey.com>
11452
11453 * dwarf2read.c (dwarf2_find_base_address, )
11454 (read_call_site_scope, rust_containing_type)
11455 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11456 (handle_data_member_location, dwarf2_add_member_fn)
11457 (get_alignment, read_structure_type, process_structure_scope)
11458 (mark_common_block_symbol_computed, read_common_block)
11459 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11460 (partial_die_info::read, read_attribute_value, new_symbol)
11461 (lookup_die_type, dwarf2_get_ref_die_offset)
11462 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11463 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11464 (dwarf2_symbol_mark_computed): Update.
11465 * dwarf2/attribute.h (struct attribute) <value_as_address,
11466 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11467 methods.
11468 (value_as_address, attr_form_is_section_offset)
11469 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11470 * dwarf2/attribute.c (attribute::value_as_address)
11471 (attribute::form_is_section_offset, attribute::form_is_constant)
11472 (attribute::form_is_ref): Now methods.
11473
11474 2020-02-08 Tom Tromey <tom@tromey.com>
11475
11476 * dwarf2read.c (struct attribute, DW_STRING)
11477 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11478 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11479 (attr_form_is_block, attr_form_is_section_offset)
11480 (attr_form_is_constant, attr_form_is_ref): Move.
11481 * dwarf2/attribute.h: New file.
11482 * dwarf2/attribute.c: New file, from dwarf2read.c.
11483 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11484
11485 2020-02-08 Tom Tromey <tom@tromey.com>
11486
11487 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11488 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11489 Move.
11490 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11491 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11492 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11493 abbrev.c.
11494 * dwarf2/abbrev.h: New file.
11495 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11496 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11497
11498 2020-02-08 Tom Tromey <tom@tromey.com>
11499
11500 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11501 (dwarf2_section_size, dwarf2_get_section_info)
11502 (create_signatured_type_table_from_debug_names)
11503 (create_addrmap_from_aranges, read_debug_names_from_section)
11504 (get_gdb_index_contents_from_section, read_comp_unit_head)
11505 (error_check_comp_unit_head, read_abbrev_offset)
11506 (create_debug_type_hash_table, init_cu_die_reader)
11507 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11508 (read_comp_units_from_section, create_cus_hash_table)
11509 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11510 (create_dwp_v2_section, dwarf2_rnglists_process)
11511 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11512 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11513 (read_indirect_string_from_dwz, read_addr_index_1)
11514 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11515 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11516 (fill_in_loclist_baton): Update.
11517 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11518 get_containing_section, get_bfd_owner, get_bfd_section,
11519 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11520 (dwarf2_read_section, get_section_name, get_section_file_name)
11521 (get_containing_section, get_section_bfd_owner)
11522 (get_section_bfd_section, get_section_name, get_section_file_name)
11523 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11524 declare.
11525 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11526 (dwarf2_section_info::get_bfd_owner)
11527 (dwarf2_section_info::get_bfd_section)
11528 (dwarf2_section_info::get_name)
11529 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11530 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11531 (dwarf2_section_info::read): Now methods.
11532 * dwarf-index-write.c (class debug_names): Update.
11533
11534 2020-02-08 Tom Tromey <tom@tromey.com>
11535
11536 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11537 Move to dwarf2/section.h.
11538 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11539 (get_section_bfd_section, get_section_name)
11540 (get_section_file_name, get_section_id, get_section_flags)
11541 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11542 dwarf2/section.c.
11543 * dwarf2/section.h: New file.
11544 * dwarf2/section.c: New file, from dwarf2read.c.
11545 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11546
11547 2020-02-08 Tom Tromey <tom@tromey.com>
11548
11549 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11550 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11551 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11552 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11553 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11554 * dwarf2/leb.h: New file, from dwarf2read.c.
11555 * dwarf2/leb.c: New file, from dwarf2read.c.
11556 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11557 Remove.
11558 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11559 (COMMON_SFILES): Add dwarf2/leb.c.
11560
11561 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11562
11563 GDB 9.1 released.
11564
11565 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11566
11567 PR gdb/25190:
11568 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11569 * gdb/remote.c (remote_console_output): Update.
11570 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11571 (ui_file_puts): ...this.
11572 * gdb/ui-file.h (ui_file_puts): Add declaration.
11573 * gdb/utils.c (emit_style_escape): Update.
11574 (flush_wrap_buffer): Update.
11575 (fputs_maybe_filtered): Update.
11576 (fputs_unfiltered): Add function.
11577
11578 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11579
11580 * gdb/event-loop.c (gdb_wait_for_event): Update.
11581 * gdb/printcmd.c (printf_command): Update.
11582 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11583 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11584 (gdb_os_flush_stderr): Update.
11585 * gdb/remote.c (remote_console_output): Update.
11586 * gdb/ui-file.c (gdb_flush): Rename to...
11587 (ui_file_flush): ...this.
11588 (stderr_file::write): Update.
11589 (stderr_file::puts): Update.
11590 * gdb/ui-file.h (gdb_flush): Rename to...
11591 (ui_file_flush): ...this.
11592 * gdb/utils.c (gdb_flush): Add function.
11593 * gdb/utils.h (gdb_flush): Add declaration.
11594
11595 2020-02-07 Tom Tromey <tromey@adacore.com>
11596
11597 PR breakpoints/24915:
11598 * source.c (find_and_open_source): Do not check basenames_may_differ.
11599
11600 2020-02-07 Tom Tromey <tom@tromey.com>
11601
11602 * README: Update gdbserver documentation.
11603 * gdbserver: Move to top level.
11604 * configure.tgt (build_gdbserver): Remove.
11605 * configure.ac: Remove --enable-gdbserver.
11606 * configure: Rebuild.
11607 * Makefile.in (distclean): Don't mention gdbserver.
11608
11609 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11610
11611 * source-cache.c (source_cache::ensure): Surround
11612 get_plain_source_lines with a try/catch.
11613 (source_cache::get_line_charpos): Get rid of try/catch
11614 and only check for the return value of "ensure".
11615 * tui/tui-source.c (tui_source_window::set_contents):
11616 Simplify "nlines" calculation.
11617
11618 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11619
11620 * MAINTAINERS (Write After Approval): Add myself.
11621
11622 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11623
11624 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11625 function call.
11626
11627 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11628
11629 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11630
11631 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11632
11633 * nat/riscv-linux-tdesc.h: New file.
11634 * nat/riscv-linux-tdesc.c: New file, taking code from...
11635 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11636 ... here.
11637 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11638 NATDEPFILES.
11639
11640 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11641
11642 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11643 we don't set the fake simulator ptid to the null_ptid.
11644
11645 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11646
11647 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11648 * gdbthread.h (class thread_info) <resumed>: Likewise.
11649 * infrun.c (resume_1): Likewise.
11650 (proceed): Likewise.
11651 (infrun_thread_stop_requested): Likewise.
11652 (stop_all_threads): Likewise.
11653 (handle_inferior_event): Likewise.
11654 (restart_threads): Likewise.
11655 (finish_step_over): Likewise.
11656 (keep_going_stepped_thread): Likewise.
11657 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11658 (linux_handle_extended_wait): Likewise.
11659 * record-btrace.c (get_thread_current_frame_id): Likewise.
11660 * record-full.c (record_full_wait_1): Likewise.
11661 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11662 * target.c (target_resume): Likewise.
11663 * thread.c (set_running_thread): Likewise.
11664
11665 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11666
11667 * f-valprint.c (f77_print_array_1): Changed datatype of index
11668 variable to LONGEST from int to enable it to contain bound
11669 values correctly.
11670
11671 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11672
11673 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11674 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11675 offsets according to FLEN determined.
11676 (riscv_linux_nat_target::read_description): Determine FLEN
11677 dynamically.
11678 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11679 according to FLEN determined.
11680 (riscv_linux_nat_target::store_registers): Likewise.
11681
11682 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11683
11684 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11685 when reg->group is empty and reggroup is not.
11686
11687 2020-01-31 Tom Tromey <tromey@adacore.com>
11688
11689 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11690 Call beneath target's mourn_inferior after unpushing.
11691
11692 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11693
11694 PR tui/9765
11695 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11696 have enough lines to fill the screen, still return the lowest
11697 address we found.
11698
11699 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11700
11701 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11702 '-', '<', and '>' commands.
11703
11704 2020-01-29 Pedro Alves <palves@redhat.com>
11705 Sergio Durigan Junior <sergiodj@redhat.com>
11706
11707 * infcmd.c (construct_inferior_arguments): Assert that
11708 'argc' is greater than 0.
11709
11710 2020-01-29 Luis Machado <luis.machado@linaro.org>
11711
11712 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11713 (BRK_INSN_MASK): Define to 0xd4200000.
11714 (aarch64_program_breakpoint_here_p): New function.
11715 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11716 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11717 breakpoint.c.
11718 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11719 breakpoint.h
11720 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11721 call gdbarch_program_breakpoint_here_p.
11722 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11723 default_program_breakpoint_here_p, changed return type to bool and
11724 simplified.
11725 * breakpoint.h (program_breakpoint_here): Moved prototype to
11726 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11727 return type to bool.
11728 * gdbarch.c: Regenerate.
11729 * gdbarch.h: Regenerate.
11730 * gdbarch.sh (program_breakpoint_here_p): New method.
11731 * infrun.c (handle_signal_stop): Call
11732 gdbarch_program_breakpoint_here_p.
11733
11734 2020-01-26 Tom Tromey <tom@tromey.com>
11735
11736 * ctfread.c (struct ctf_fp_info): Reindent.
11737 (_initialize_ctfread): Remove.
11738
11739 2020-01-26 Tom Tromey <tom@tromey.com>
11740
11741 * psymtab.c (partial_map_expand_apply)
11742 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11743 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11744 (psym_print_stats, psym_expand_symtabs_for_function)
11745 (psym_map_symbol_filenames, psym_map_matching_symbols)
11746 (psym_expand_symtabs_matching)
11747 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11748 (maintenance_check_psymtabs): Use new methods.
11749 * psympriv.h (struct partial_symtab) <readin_p,
11750 get_compunit_symtab>: New methods.
11751 <readin, compunit_symtab>: Remove members.
11752 (struct standard_psymtab): New.
11753 (struct legacy_psymtab): Derive from standard_psymtab.
11754 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11755 standard_psymtab.
11756 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11757
11758 2020-01-26 Tom Tromey <tom@tromey.com>
11759
11760 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11761 read_dependencies. Add assert.
11762 * psymtab.c (partial_symtab::read_dependencies): New method.
11763 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11764 method.
11765 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11766 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11767 read_dependencies.
11768 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11769 Add assert.
11770
11771 2020-01-26 Tom Tromey <tom@tromey.com>
11772
11773 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11774 Call expand_psymtab.
11775 (xcoff_read_symtab): Call expand_psymtab.
11776 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11777 legacy_expand_psymtab.
11778 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11779 method.
11780 (struct legacy_psymtab) <expand_psymtab>: Implement.
11781 <legacy_expand_psymtab>: New member.
11782 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11783 (parse_partial_symbols): Set legacy_expand_psymtab.
11784 (psymtab_to_symtab_1): Change argument order. Call
11785 expand_psymtab.
11786 (new_psymtab): Set legacy_expand_psymtab.
11787 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11788 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11789 expand_psymtab.
11790 (dwarf2_psymtab::expand_psymtab): Rename from
11791 psymtab_to_symtab_1. Call expand_psymtab.
11792 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11793 (dbx_end_psymtab): Likewise.
11794 (dbx_psymtab_to_symtab_1): Change argument order. Call
11795 expand_psymtab.
11796 (dbx_read_symtab): Call expand_psymtab.
11797 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11798 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11799 (ctf_psymtab::read_symtab): Call expand_psymtab.
11800
11801 2020-01-26 Tom Tromey <tom@tromey.com>
11802
11803 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11804 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11805 messages.
11806 * mdebugread.c (mdebug_read_symtab): Remove prints.
11807 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11808 assert.
11809 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11810
11811 2020-01-26 Tom Tromey <tom@tromey.com>
11812
11813 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11814 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11815 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11816 legacy_symtab.
11817 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11818 * psymtab.c (psymtab_to_symtab): Call method.
11819 (dump_psymtab): Update.
11820 * psympriv.h (struct partial_symtab): Add virtual destructor.
11821 <read_symtab>: New method.
11822 (struct legacy_symtab): New.
11823 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11824 (struct pst_map) <pst>: Now a legacy_psymtab.
11825 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11826 (new_psymtab): Use legacy_psymtab.
11827 * dwarf2read.h (struct dwarf2_psymtab): New.
11828 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11829 * dwarf2read.c (dwarf2_create_include_psymtab)
11830 (dwarf2_build_include_psymtabs, create_type_unit_group)
11831 (create_partial_symtab, process_psymtab_comp_unit_reader)
11832 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11833 (set_partial_user): Use dwarf2_psymtab.
11834 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11835 (psymtab_to_symtab_1, process_full_comp_unit)
11836 (process_full_type_unit, dwarf2_ranges_read)
11837 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11838 (dwarf_decode_lines): Use dwarf2_psymtab.
11839 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11840 (add_address_entry_worker, write_one_signatured_type)
11841 (recursively_count_psymbols, recursively_write_psymbols)
11842 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11843 (write_debug_names): Likewise.
11844 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11845 <pst>: Now a legacy_psymtab.
11846 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11847 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11848 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11849 * ctfread.c (struct ctf_psymtab): New.
11850 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11851 ctf_psymtab.
11852 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11853 (create_partial_symtab): Return a ctf_psymtab.
11854 (scan_partial_symbols): Update.
11855
11856 2020-01-26 Tom Tromey <tom@tromey.com>
11857
11858 * xcoffread.c (xcoff_start_psymtab): Use new.
11859 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11860 renamed from start_psymtab_common.
11861 * psympriv.h (struct partial_symtab): Add new constructor.
11862 (start_psymtab_common): Don't declare.
11863 * mdebugread.c (parse_partial_symbols): Use new.
11864 * dwarf2read.c (create_partial_symtab): Use new.
11865 * dbxread.c (start_psymtab): Use new.
11866 * ctfread.c (create_partial_symtab): Use new.
11867
11868 2020-01-26 Tom Tromey <tom@tromey.com>
11869
11870 * xcoffread.c (xcoff_end_psymtab): Use new.
11871 * psymtab.c (start_psymtab_common): Use new.
11872 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11873 Update.
11874 * psympriv.h (struct partial_symtab): Add parameters to
11875 constructor. Don't inline.
11876 (allocate_psymtab): Don't declare.
11877 * mdebugread.c (new_psymtab): Use new.
11878 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11879 * dbxread.c (dbx_end_psymtab): Use new.
11880
11881 2020-01-26 Tom Tromey <tom@tromey.com>
11882
11883 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11884 allocate_psymtab. Update documentation.
11885 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11886 allocate_psymtab. Do not use new.
11887 (allocate_psymtab): Use new. Update.
11888
11889 2020-01-26 Tom Tromey <tom@tromey.com>
11890
11891 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11892 * psymtab.c (psym_print_stats): Update.
11893 * psympriv.h (struct partial_symtab) <readin,
11894 psymtabs_addrmap_supported, anonymous>: Now bool.
11895 * mdebugread.c (psymtab_to_symtab_1): Update.
11896 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11897 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11898 (process_full_comp_unit, process_full_type_unit): Update.
11899 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11900 * ctfread.c (psymtab_to_symtab): Update.
11901
11902 2020-01-26 Tom Tromey <tom@tromey.com>
11903
11904 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11905 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11906 * psymtab.c (psymtab_storage): Delete psymtabs.
11907 (psymtab_storage::allocate_psymtab): Use new.
11908 (psymtab_storage::discard_psymtab): Use delete.
11909 * psympriv.h (struct partial_symtab): Add constructor and
11910 initializers.
11911
11912 2020-01-26 Tom Tromey <tom@tromey.com>
11913
11914 * machoread.c: Do not include psympriv.h.
11915
11916 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11917
11918 * NEWS: Mention the new option and the set/show commands.
11919
11920 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11921
11922 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11923 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11924 (validate_exec_file): New variables, enums, functions.
11925 (exec_file_locate_attach, print_section_info): Style the filenames.
11926 (_initialize_exec): Install show_exec_file_mismatch_command and
11927 set_exec_file_mismatch_command.
11928 * gdbcore.h (validate_exec_file): Declare.
11929 * infcmd.c (attach_command): Call validate_exec_file.
11930 * remote.c ( remote_target::remote_add_inferior): Likewise.
11931
11932 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11933
11934 * frame.c (find_frame_sal): Move call to get_next_frame into more
11935 inner scope.
11936 * inline-frame.c (inilne_state) <inline_state>: Update argument
11937 types.
11938 (inilne_state) <skipped_symbol>: Rename to...
11939 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11940 (skip_inline_frames): Build vector of skipped symbols and use this
11941 to reate the inline_state.
11942 (inline_skipped_symbol): Add a comment and some assertions, fetch
11943 skipped symbol from the list.
11944
11945 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11946
11947 * buildsym.c (lte_is_less_than): Delete.
11948 (buildsym_compunit::end_symtab_with_blockvector): Create local
11949 lambda function to sort line table entries, and use
11950 std::stable_sort instead of std::sort.
11951 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11952 markers when looking for a previous line.
11953
11954 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11955
11956 * dwarf2read.c (lnp_state_machine::record_line): Include
11957 end_sequence parameter in debug print out. Record the line if we
11958 are at an end_sequence marker even if it's not the start of a
11959 statement.
11960 * symmisc.c (maintenance_print_one_line_table): Print end of
11961 sequence markers with 'END' not '0'.
11962
11963 2020-01-24 Pedro Alves <palves@redhat.com>
11964
11965 PR gdb/25410
11966 * thread.c (scoped_restore_current_thread::restore): Use
11967 switch_to_inferior_no_thread.
11968 * exec.c: Include "progspace-and-thread.h".
11969 (add_target_sections, remove_target_sections):
11970 scoped_restore_current_pspace_and_thread instead of
11971 scoped_restore_current_thread.
11972 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11973 and aspace to the inferior before calling clone_program_space.
11974 Remove stale comment.
11975
11976 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11977
11978 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11979 (arm_netbsd_nat_target::fetch_registers): ...this.
11980 (arm_nbsd_nat_target::store_registers): Rename to...
11981 (arm_netbsd_nat_target::store_registers): ...this.
11982
11983 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11984
11985 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11986 register_t.
11987
11988 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11989
11990 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11991 Update comment.
11992 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11993 Likewise.
11994 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11995 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11996 the correct replacement (iterate_over_regset_sections).
11997 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11998 Update comment.
11999
12000 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12001
12002 PR gdb/23718
12003 * gdb/python/python.c (execute_gdb_command): Call
12004 async_enable_stdin in catch block.
12005
12006 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12007
12008 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12009 SWITCH_THRU_ALL_UIS.
12010
12011 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12012
12013 PR tui/9765
12014 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12015 comment, add extra parameter, and update to store previous symbol
12016 when appropriate.
12017 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12018 add extra parameter.
12019 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12020 remove unneeded parameter, add try/catch around gdb_print_insn,
12021 rewrite to add items to asm_lines vector.
12022 (tui_find_backward_disassembly_start_address): New function.
12023 (tui_find_disassembly_address): Updated throughout.
12024 (tui_disasm_window::set_contents): Update for changes to
12025 tui_disassemble.
12026 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12027 number of lines to scroll.
12028
12029 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12030
12031 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12032 (SECT_OFF_DATA): Likewise.
12033 (SECT_OFF_RODATA): Likewise.
12034 (SECT_OFF_TEXT): Likewise.
12035 (SECT_OFF_BSS): Likewise.
12036 (struct objfile) <text_section_offset, data_section_offset>: New
12037 methods.
12038 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12039 objfile::text_section_offset.
12040 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12041 * coffread.c (coff_symtab_read): Likewise.
12042 (enter_linenos): Likewise.
12043 (process_coff_symbol): Likewise.
12044 * ctfread.c (get_objfile_text_range): Likewise.
12045 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12046 Use objfile::data_section_offset.
12047 * dwarf2-frame.c (execute_cfa_program): Use
12048 objfile::text_section_offset.
12049 (dwarf2_frame_find_fde): Likewise.
12050 * dwarf2read.c (create_addrmap_from_index): Likewise.
12051 (create_addrmap_from_aranges): Likewise.
12052 (dw2_find_pc_sect_compunit_symtab): Likewise.
12053 (process_psymtab_comp_unit_reader): Likewise.
12054 (add_partial_symbol): Likewise.
12055 (add_partial_subprogram): Likewise.
12056 (process_full_comp_unit): Likewise.
12057 (read_file_scope): Likewise.
12058 (read_func_scope): Likewise.
12059 (read_lexical_block_scope): Likewise.
12060 (read_call_site_scope): Likewise.
12061 (dwarf2_rnglists_process): Likewise.
12062 (dwarf2_ranges_process): Likewise.
12063 (dwarf2_ranges_read): Likewise.
12064 (dwarf_decode_lines_1): Likewise.
12065 (new_symbol): Likewise.
12066 (dwarf2_fetch_die_loc_sect_off): Likewise.
12067 (dwarf2_per_cu_text_offset): Likewise.
12068 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12069 * hppa-tdep.c (read_unwind_info): Likewise.
12070 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12071 * psympriv.h (struct partial_symtab): Likewise.
12072 * psymtab.c (find_pc_sect_psymtab): Likewise.
12073 * solib-svr4.c (enable_break): Likewise.
12074 * stap-probe.c (relocate_address): Use
12075 objfile::data_section_offset.
12076 * xcoffread.c (enter_line_range): Use
12077 objfile::text_section_offset.
12078 (read_xcoff_symtab): Likewise.
12079
12080 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12081
12082 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12083 declaration to narrower scopes.
12084
12085 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12086
12087 * darwin-nat.h (struct darwin_exception_msg, enum
12088 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12089 Move up.
12090 (class darwin_nat_target) <wait_1, check_new_threads,
12091 decode_exception_message, decode_message, stop_inferior,
12092 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12093 * darwin-nat.c (darwin_check_new_threads): Rename to...
12094 (darwin_nat_target::check_new_threads): ... this.
12095 (darwin_suspend_inferior_it): Remove.
12096 (darwin_decode_exception_message): Rename to...
12097 (darwin_nat_target::decode_exception_message): ... this.
12098 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12099 (darwin_decode_message): Rename to...
12100 (darwin_nat_target::decode_message): ... this.
12101 (cancel_breakpoint): Rename to...
12102 (darwin_nat_target::cancel_breakpoint): ... this.
12103 (darwin_wait): Rename to...
12104 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12105 instead of iterate_over_inferiors.
12106 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12107 (darwin_stop_inferior): Rename to...
12108 (darwin_nat_target::stop_inferior): ... this.
12109 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12110 (darwin_init_thread_list): Rename to...
12111 (darwin_nat_target::init_thread_list): ... this.
12112 (darwin_ptrace_him): Rename to...
12113 (darwin_nat_target::ptrace_him): ... this.
12114 (darwin_nat_target::create_inferior): Pass lambda function to
12115 fork_inferior.
12116 (darwin_nat_target::detach): Call stop_inferior instead of
12117 darwin_stop_inferior.
12118 * fork-inferior.h (fork_inferior): Change init_trace_fun
12119 parameter to gdb::function_view.
12120 * fork-inferior.c (fork_inferior): Likewise.
12121
12122 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12123
12124 * i386-cygwin-tdep.c (core_process_module_section): Update.
12125 * windows-nat.c (struct lm_info_windows): Add text_offset.
12126 (windows_xfer_shared_libraries): Update.
12127 * windows-tdep.c (windows_xfer_shared_library):
12128 Add text_offset_cached argument.
12129 * windows-tdep.h (windows_xfer_shared_library): Update.
12130
12131 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12132
12133 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12134
12135 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12136
12137 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12138 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12139 replace with range-based for.
12140 (gdbsim_interrupt_inferior): Remove.
12141 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12142 with a range-based for. Inline code from
12143 gdbsim_interrupt_inferior.
12144
12145 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12146
12147 * infrun.c (proceed): Fix indentation.
12148
12149 2020-01-21 Tom Tromey <tromey@adacore.com>
12150
12151 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12152 * python/python.c (python_extension_ops): Update.
12153 (gdbpy_colorize): New function.
12154 * python/lib/gdb/__init__.py (colorize): New function.
12155 * extension.h (ext_lang_colorize): Declare.
12156 * extension.c (ext_lang_colorize): New function.
12157 * extension-priv.h (struct extension_language_ops) <colorize>: New
12158 member.
12159 * cli/cli-style.c (_initialize_cli_style): Update help text.
12160
12161 2020-01-21 Luis Machado <luis.machado@linaro.org>
12162
12163 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12164 <cond>: Change type to bool.
12165 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12166 (aarch64_displaced_step_cb): Likewise.
12167 (aarch64_displaced_step_tb): Likewise.
12168
12169 2020-01-21 Luis Machado <luis.machado@linaro.org>
12170
12171 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12172 output.
12173
12174 2020-01-21 Luis Machado <luis.machado@linaro.org>
12175
12176 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12177 <pc_adjust>: Adjust the documentation.
12178 (aarch64_displaced_step_fixup): Check if PC really moved before
12179 adjusting it.
12180
12181 2020-01-19 Tom Tromey <tom@tromey.com>
12182
12183 * disasm.c (~gdb_disassembler): New destructor.
12184 (gdb_buffered_insn_length): Call disassemble_free_target.
12185 * disasm.h (class gdb_disassembler): Declare destructor. Use
12186 DISABLE_COPY_AND_ASSIGN.
12187
12188 2020-01-19 Tom Tromey <tom@tromey.com>
12189
12190 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12191 (die_reader_func_ftype): Remove.
12192 (cutu_reader): New class.
12193 (dw2_get_file_names_reader): Remove "data" parameter.
12194 (dw2_get_file_names): Use cutu_reader.
12195 (create_debug_type_hash_table): Update.
12196 (read_cutu_die_from_dwo): Update comment.
12197 (lookup_dwo_unit): Add dwo_name parameter.
12198 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12199 die_reader_func_ftype and data parameters.
12200 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12201 Remove die_reader_func_ftype and data parameters.
12202 (~cutu_reader): New; from init_cutu_and_read_dies.
12203 (cutu_reader::cutu_reader): Rename from
12204 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12205 and data parameters.
12206 (init_cutu_and_read_dies_simple): Remove.
12207 (struct process_psymtab_comp_unit_data): Remove.
12208 (process_psymtab_comp_unit_reader): Remove data parameter; add
12209 want_partial_unit and pretend_language parameters.
12210 (process_psymtab_comp_unit): Use cutu_reader.
12211 (build_type_psymtabs_reader): Remove data parameter.
12212 (build_type_psymtabs_1): Use cutu_reader.
12213 (process_skeletonless_type_unit): Likewise.
12214 (load_partial_comp_unit_reader): Remove.
12215 (load_partial_comp_unit): Use cutu_reader.
12216 (load_full_comp_unit_reader): Remove.
12217 (load_full_comp_unit): Use cutu_reader.
12218 (struct create_dwo_cu_data): Remove.
12219 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12220 dwo_unit parameters.
12221 (create_cus_hash_table): Use cutu_reader.
12222 (struct dwarf2_read_addr_index_data): Remove.
12223 (dwarf2_read_addr_index_reader): Remove.
12224 (dwarf2_read_addr_index): Use cutu_reader.
12225 (read_signatured_type_reader): Remove.
12226 (read_signatured_type): Use cutu_reader.
12227
12228 2020-01-19 Tom Tromey <tom@tromey.com>
12229
12230 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12231 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12232 (tui_wrefresh): Declare.
12233 * tui/tui-wingeneral.c (suppress_output): New global.
12234 (tui_suppress_output, ~tui_suppress_output): New constructor and
12235 destructor.
12236 (tui_wrefresh): New function.
12237 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12238 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12239 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12240 method.
12241 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12242 tui_wrefresh.
12243 (tui_data_window::no_refresh): New method.
12244 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12245 (tui_reg_command): Use tui_suppress_output
12246 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12247 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12248 method.
12249 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12250
12251 2020-01-19 Tom Tromey <tom@tromey.com>
12252
12253 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12254 Handle case where symtab is null.
12255
12256 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12257
12258 * linux-fork.c (one_fork_p): Simplify.
12259
12260 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12261
12262 * top.c (struct qt_args): Remove.
12263 (kill_or_detach): Change return type to void, replace `void *`
12264 parameter with a proper one.
12265 (print_inferior_quit_action): Likewise.
12266 (quit_confirm): Use range-based for loop to iterate over inferiors.
12267 (quit_force): Likewise.
12268
12269 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12270
12271 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12272 `void *` parameter with proper parameters.
12273 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12274 (print_one_inferior): Change return type to void, replace `void *`
12275 parameter with proper parameters.
12276 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12277 inferiors.
12278 (get_other_inferior): Remove.
12279 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12280 inferiors.
12281
12282 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12283
12284 * mi/mi-interp.c (report_initial_inferior): Remove.
12285 (mi_interp::init): Use range-based for to iterate over inferiors.
12286
12287 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12288
12289 * python/py-inferior.c (build_inferior_list): Remove.
12290 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12291
12292 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12293
12294 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12295 (btrace_stitch_trace): Likewise.
12296 * charset.c (intermediate_encoding): Likewise (vaild).
12297 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12298 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12299 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12300
12301 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12302
12303 * windows-tdep.c (windows_get_tlb_type):
12304 Add rtl_user_process_parameters type.
12305
12306 2020-01-16 Pedro Alves <palves@redhat.com>
12307 Norbert Lange <nolange79@gmail.com>
12308
12309 PR build/24805
12310 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12311 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12312 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12313 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12314 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12315 (ps_plog): Redeclare exported functions with default visibility.
12316
12317 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12318
12319 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12320 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12321
12322 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12323
12324 * infcmd.c (post_create_inferior): Use get_thread_regcache
12325 instead of get_current_regcache.
12326
12327 2020-01-14 Tom Tromey <tom@tromey.com>
12328
12329 PR symtab/12535:
12330 * python/python.c (gdbpy_decode_line): Treat empty string the same
12331 as no argument.
12332
12333 2020-01-14 Tom Tromey <tom@tromey.com>
12334
12335 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12336
12337 2020-01-14 Tom Tromey <tom@tromey.com>
12338
12339 * nat/linux-btrace.c: Don't include <config.h>.
12340 * nat/linux-ptrace.c: Don't include <config.h>.
12341 * nat/x86-linux-dregs.c: Don't include <config.h>.
12342
12343 2020-01-14 Tom Tromey <tom@tromey.com>
12344
12345 * configure: Rebuild.
12346 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12347
12348 2020-01-14 Tom Tromey <tom@tromey.com>
12349
12350 * nat/x86-linux-dregs.c: Include configh.h.
12351 * nat/linux-ptrace.c: Include configh.h.
12352 * nat/linux-btrace.c: Include configh.h.
12353 * defs.h: Include config.h, bfd.h.
12354 * configure.ac: Don't source common.host.
12355 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12356 * configure: Rebuild.
12357 * acinclude.m4: Update path.
12358 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12359 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12360 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12361 (CLIBS): Add LIBSUPPORT.
12362 (CDEPS): Likewise.
12363 (COMMON_SFILES): Remove gdbsupport files.
12364 (HFILES_NO_SRCDIR): Likewise.
12365 (stamp-version): Update path to create-version.sh.
12366 (ALLDEPFILES): Remove gdbsupport files.
12367
12368 2020-01-14 Tom Tromey <tom@tromey.com>
12369
12370 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12371 USE_WIN32API when needed.
12372 * configure.ac (USE_WIN32API): Don't define.
12373 (WIN32LIBS): Use WIN32APILIBS.
12374 * configure: Rebuild.
12375
12376 2020-01-14 Tom Tromey <tom@tromey.com>
12377
12378 * configure: Rebuild.
12379 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12380
12381 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12382
12383 * skip.c (skip_function_command): Make skip w/o arguments use the
12384 name of the inlined function if pc is inside any inlined function.
12385
12386 2020-01-14 Luis Machado <luis.machado@linaro.org>
12387
12388 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12389 * infrun.c (resume_1): Likewise.
12390 (handle_inferior_event): Remove stale comment.
12391 * linux-nat.c (linux_nat_target::resume): Update comments.
12392 (save_stop_reason): Likewise.
12393 (linux_nat_filter_event): Likewise.
12394 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12395
12396 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12397
12398 * elfread.c (record_minimal_symbol): Set section index to 0 for
12399 non-allocatable sections.
12400
12401
12402 2020-01-13 Ali Tamur <tamur@google.com>
12403
12404 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12405 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12406 to gdb::optional. Update comments.
12407 (dwo_file): Update comments.
12408 (read_attribute): Update API to take an additional out parameter,
12409 need_reprocess. This is used to mark attributes that need other
12410 attributes (e.g. str_offsets_base) for correct computation which may not
12411 have been read yet.
12412 (read_attribute_reprocess): New function declaration.
12413 (read_addr_index): Likewise.
12414 (read_dwo_str_index): Likewise.
12415 (read_stub_str_index): Likewise.
12416 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12417 (lookup_addr_base): New function definition.
12418 (lookup_ranges_base): Likewise.
12419 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12420 lookup_ranges_base.
12421 (init_cutu_and_read_dies): Update comments.
12422 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12423 unit. This is used to inherit parent's str_offsets_base and addr_base.
12424 Update comments.
12425 (init_cutu_and_read_dies_simple): Reflect API changes.
12426 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12427 (create_cus_hash_table): Change API to take parent compile unit.
12428 Reflect API changes.
12429 (open_and_init_dwo_file): Reflect API changes.
12430 (dwarf2_get_pc_bounds): Update comments.
12431 (dwarf2_record_block_ranges): Likewise.
12432 (read_full_die_1): Change implementation to reprocess attributes that
12433 need str_offsets_base and addr_base.
12434 (partial_die_info::read): Likewise.
12435 (read_attribute_reprocess): New function definition.
12436 (read_attribute_value): Change API to take an additional out parameter,
12437 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12438 when a non-dwo compile unit has index based attributes.
12439 (read_attribute): Reflect API changes.
12440 (read_addr_index_1): Reflect API changes. Update comments.
12441 (dwarf2_read_addr_index_data): Reflect API changes.
12442 (dwarf2_read_addr_index): Likewise.
12443 (read_str_index): Change API and implementation. This becomes a helper
12444 to be used by the new string index related methods. Update error
12445 message and comments.
12446 (read_dwo_str_index): New function definition.
12447 (read_stub_str_index): Likewise.
12448 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12449 * symfile.h (dwarf2_debug_sections): Likewise.
12450 * xcoffread.c (dwarf2_debug_sections): Likewise.
12451
12452 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12453
12454 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12455 core_reg_sect type to gdb_byte *.
12456 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12457 * cris-tdep.c (fetch_core_registers): Likewise.
12458 * corelow.c (core_target::get_core_register_section): Change
12459 type of `contents` to gdb::byte_vector.
12460
12461 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12462
12463 * tui/tui-wingeneral.c (box_win): Position the title in the center
12464 of the border.
12465
12466 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12467
12468 * corelow.c (core_target::get_core_register_section): Use
12469 std::vector instead of alloca.
12470
12471 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12472
12473 * warning.m4: Add -Wmissing-declarations to build_warnings.
12474 * configure: Re-generate.
12475
12476 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12477
12478 * python/python.c (init__gdb_module): Add declaration.
12479
12480 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12481
12482 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12483 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12484 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12485 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12486 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12487 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12488 * ada-exp.y (_initialize_ada_exp): Add declaration.
12489 * ada-lang.c (_initialize_ada_language): Add declaration.
12490 * ada-tasks.c (_initialize_tasks): Add declaration.
12491 * agent.c (_initialize_agent): Add declaration.
12492 * aix-thread.c (_initialize_aix_thread): Add declaration.
12493 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12494 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12495 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12496 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12497 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12498 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12499 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12500 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12501 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12502 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12503 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12504 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12505 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12506 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12507 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12508 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12509 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12510 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12511 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12512 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12513 * annotate.c (_initialize_annotate): Add declaration.
12514 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12515 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12516 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12517 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12518 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12519 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12520 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12521 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12522 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12523 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12524 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12525 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12526 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12527 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12528 * auto-load.c (_initialize_auto_load): Add declaration.
12529 * auxv.c (_initialize_auxv): Add declaration.
12530 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12531 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12532 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12533 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12534 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12535 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12536 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12537 * breakpoint.c (_initialize_breakpoint): Add declaration.
12538 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12539 * btrace.c (_initialize_btrace): Add declaration.
12540 * charset.c (_initialize_charset): Add declaration.
12541 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12542 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12543 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12544 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12545 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12546 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12547 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12548 * coffread.c (_initialize_coffread): Add declaration.
12549 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12550 * compile/compile.c (_initialize_compile): Add declaration.
12551 * complaints.c (_initialize_complaints): Add declaration.
12552 * completer.c (_initialize_completer): Add declaration.
12553 * copying.c (_initialize_copying): Add declaration.
12554 * corefile.c (_initialize_core): Add declaration.
12555 * corelow.c (_initialize_corelow): Add declaration.
12556 * cp-abi.c (_initialize_cp_abi): Add declaration.
12557 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12558 * cp-support.c (_initialize_cp_support): Add declaration.
12559 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12560 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12561 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12562 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12563 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12564 * ctfread.c (_initialize_ctfread): Add declaration.
12565 * d-lang.c (_initialize_d_language): Add declaration.
12566 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12567 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12568 * dbxread.c (_initialize_dbxread): Add declaration.
12569 * dcache.c (_initialize_dcache): Add declaration.
12570 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12571 * disasm.c (_initialize_disasm): Add declaration.
12572 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12573 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12574 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12575 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12576 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12577 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12578 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12579 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12580 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12581 * elfread.c (_initialize_elfread): Add declaration.
12582 * exec.c (_initialize_exec): Add declaration.
12583 * extension.c (_initialize_extension): Add declaration.
12584 * f-lang.c (_initialize_f_language): Add declaration.
12585 * f-valprint.c (_initialize_f_valprint): Add declaration.
12586 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12587 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12588 * filesystem.c (_initialize_filesystem): Add declaration.
12589 * findcmd.c (_initialize_mem_search): Add declaration.
12590 * findvar.c (_initialize_findvar): Add declaration.
12591 * fork-child.c (_initialize_fork_child): Add declaration.
12592 * frame-base.c (_initialize_frame_base): Add declaration.
12593 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12594 * frame.c (_initialize_frame): Add declaration.
12595 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12596 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12597 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12598 * gcore.c (_initialize_gcore): Add declaration.
12599 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12600 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12601 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12602 * gdbarch.c (_initialize_gdbarch): Add declaration.
12603 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12604 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12605 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12606 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12607 * go-lang.c (_initialize_go_language): Add declaration.
12608 * go32-nat.c (_initialize_go32_nat): Add declaration.
12609 * guile/guile.c (_initialize_guile): Add declaration.
12610 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12611 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12612 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12613 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12614 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12615 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12616 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12617 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12618 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12619 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12620 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12621 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12622 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12623 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12624 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12625 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12626 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12627 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12628 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12629 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12630 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12631 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12632 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12633 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12634 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12635 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12636 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12637 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12638 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12639 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12640 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12641 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12642 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12643 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12644 * infcall.c (_initialize_infcall): Add declaration.
12645 * infcmd.c (_initialize_infcmd): Add declaration.
12646 * inflow.c (_initialize_inflow): Add declaration.
12647 * infrun.c (_initialize_infrun): Add declaration.
12648 * interps.c (_initialize_interpreter): Add declaration.
12649 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12650 * jit.c (_initialize_jit): Add declaration.
12651 * language.c (_initialize_language): Add declaration.
12652 * linux-fork.c (_initialize_linux_fork): Add declaration.
12653 * linux-nat.c (_initialize_linux_nat): Add declaration.
12654 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12655 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12656 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12657 * m2-lang.c (_initialize_m2_language): Add declaration.
12658 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12659 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12660 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12661 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12662 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12663 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12664 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12665 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12666 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12667 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12668 * machoread.c (_initialize_machoread): Add declaration.
12669 * macrocmd.c (_initialize_macrocmd): Add declaration.
12670 * macroscope.c (_initialize_macroscope): Add declaration.
12671 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12672 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12673 * maint.c (_initialize_maint_cmds): Add declaration.
12674 * mdebugread.c (_initialize_mdebugread): Add declaration.
12675 * memattr.c (_initialize_mem): Add declaration.
12676 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12677 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12678 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12679 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12680 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12681 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12682 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12683 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12684 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12685 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12686 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12687 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12688 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12689 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12690 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12691 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12692 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12693 * mipsread.c (_initialize_mipsread): Add declaration.
12694 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12695 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12696 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12697 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12698 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12699 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12700 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12701 * nto-procfs.c (_initialize_procfs): Add declaration.
12702 * objc-lang.c (_initialize_objc_language): Add declaration.
12703 * observable.c (_initialize_observer): Add declaration.
12704 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12705 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12706 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12707 * osabi.c (_initialize_gdb_osabi): Add declaration.
12708 * osdata.c (_initialize_osdata): Add declaration.
12709 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12710 * parse.c (_initialize_parse): Add declaration.
12711 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12712 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12713 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12714 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12715 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12716 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12717 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12718 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12719 * printcmd.c (_initialize_printcmd): Add declaration.
12720 * probe.c (_initialize_probe): Add declaration.
12721 * proc-api.c (_initialize_proc_api): Add declaration.
12722 * proc-events.c (_initialize_proc_events): Add declaration.
12723 * proc-service.c (_initialize_proc_service): Add declaration.
12724 * procfs.c (_initialize_procfs): Add declaration.
12725 * producer.c (_initialize_producer): Add declaration.
12726 * psymtab.c (_initialize_psymtab): Add declaration.
12727 * python/python.c (_initialize_python): Add declaration.
12728 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12729 * record-btrace.c (_initialize_record_btrace): Add declaration.
12730 * record-full.c (_initialize_record_full): Add declaration.
12731 * record.c (_initialize_record): Add declaration.
12732 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12733 * regcache.c (_initialize_regcache): Add declaration.
12734 * reggroups.c (_initialize_reggroup): Add declaration.
12735 * remote-notif.c (_initialize_notif): Add declaration.
12736 * remote-sim.c (_initialize_remote_sim): Add declaration.
12737 * remote.c (_initialize_remote): Add declaration.
12738 * reverse.c (_initialize_reverse): Add declaration.
12739 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12740 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12741 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12742 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12743 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12744 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12745 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12746 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12747 Add declaration.
12748 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12749 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12750 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12751 * rust-exp.y (_initialize_rust_exp): Add declaration.
12752 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12753 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12754 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12755 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12756 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12757 * score-tdep.c (_initialize_score_tdep): Add declaration.
12758 * ser-go32.c (_initialize_ser_dos): Add declaration.
12759 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12760 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12761 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12762 * ser-uds.c (_initialize_ser_socket): Add declaration.
12763 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12764 * serial.c (_initialize_serial): Add declaration.
12765 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12766 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12767 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12768 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12769 * skip.c (_initialize_step_skip): Add declaration.
12770 * sol-thread.c (_initialize_sol_thread): Add declaration.
12771 * solib-aix.c (_initialize_solib_aix): Add declaration.
12772 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12773 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12774 * solib-frv.c (_initialize_frv_solib): Add declaration.
12775 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12776 * solib-target.c (_initialize_solib_target): Add declaration.
12777 * solib.c (_initialize_solib): Add declaration.
12778 * source-cache.c (_initialize_source_cache): Add declaration.
12779 * source.c (_initialize_source): Add declaration.
12780 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12781 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12782 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12783 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12784 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12785 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12786 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12787 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12788 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12789 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12790 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12791 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12792 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12793 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12794 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12795 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12796 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12797 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12798 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12799 * stabsread.c (_initialize_stabsread): Add declaration.
12800 * stack.c (_initialize_stack): Add declaration.
12801 * stap-probe.c (_initialize_stap_probe): Add declaration.
12802 * std-regs.c (_initialize_frame_reg): Add declaration.
12803 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12804 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12805 * symfile.c (_initialize_symfile): Add declaration.
12806 * symmisc.c (_initialize_symmisc): Add declaration.
12807 * symtab.c (_initialize_symtab): Add declaration.
12808 * target.c (_initialize_target): Add declaration.
12809 * target-connection.c (_initialize_target_connection): Add
12810 declaration.
12811 * target-dcache.c (_initialize_target_dcache): Add declaration.
12812 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12813 * thread.c (_initialize_thread): Add declaration.
12814 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12815 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12816 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12817 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12818 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12819 * tracectf.c (_initialize_ctf): Add declaration.
12820 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12821 * tracefile.c (_initialize_tracefile): Add declaration.
12822 * tracepoint.c (_initialize_tracepoint): Add declaration.
12823 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12824 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12825 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12826 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12827 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12828 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12829 * tui/tui.c (_initialize_tui): Add declaration.
12830 * typeprint.c (_initialize_typeprint): Add declaration.
12831 * ui-style.c (_initialize_ui_style): Add declaration.
12832 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12833 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12834 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12835 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12836 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12837 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12838 * unittests/filtered_iterator-selftests.c
12839 (_initialize_filtered_iterator_selftests): Add declaration.
12840 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12841 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12842 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12843 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12844 * unittests/main-thread-selftests.c
12845 (_initialize_main_thread_selftests): Add declaration.
12846 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12847 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12848 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12849 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12850 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12851 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12852 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12853 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12854 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12855 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12856 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12857 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12858 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12859 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12860 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12861 declaration.
12862 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12863 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12864 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12865 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12866 * user-regs.c (_initialize_user_regs): Add declaration.
12867 * utils.c (_initialize_utils): Add declaration.
12868 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12869 * valops.c (_initialize_valops): Add declaration.
12870 * valprint.c (_initialize_valprint): Add declaration.
12871 * value.c (_initialize_values): Add declaration.
12872 * varobj.c (_initialize_varobj): Add declaration.
12873 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12874 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12875 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12876 * windows-nat.c (_initialize_windows_nat): Add declaration.
12877 (_initialize_check_for_gdb_ini): Add declaration.
12878 (_initialize_loadable): Add declaration.
12879 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12880 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12881 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12882 * xcoffread.c (_initialize_xcoffread): Add declaration.
12883 * xml-support.c (_initialize_xml_support): Add declaration.
12884 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12885 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12886 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12887 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12888
12889 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12890
12891 * regformats/regdat.sh: Generate declaration for init function.
12892
12893 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12894
12895 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12896 up.
12897 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12898 close_one_inferior>: New methods.
12899 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12900 pass down target to find_inferior_pid.
12901 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12902 Pass down target to find_inferior_ptid.
12903 (gdbsim_target::create_inferior): Pass down target to
12904 add_thread_silent.
12905 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12906 target down to find_inferior_ptid and switch_to_thread.
12907 (gdbsim_target::close): Update to call close_one_inferior.
12908 (struct resume_data): Remove.
12909 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12910 directly, rather than through a void pointer.
12911 (gdbsim_target::resume): Update to call resume_one_inferior.
12912
12913 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12914
12915 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12916
12917 2020-01-12 Pedro Alves <palves@redhat.com>
12918
12919 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12920 directly for the current inferior instead of
12921 discard_all_inferiors.
12922 (discard_all_inferiors): Delete.
12923
12924 2020-01-11 Tom Tromey <tom@tromey.com>
12925
12926 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12927 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12928 deprecated_safe_get_selected_frame.
12929
12930 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12931
12932 * inferior.c (print_inferior): Switch inferior before printing it.
12933
12934 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12935 Pedro Alves <palves@redhat.com>
12936
12937 * progspace-and-thread.c (switch_to_program_space_and_thread):
12938 Assert there's an inferior for PSPACE. Use
12939 switch_to_inferior_no_thread to switch the inferior too.
12940 * progspace.c (program_space::~program_space): Call
12941 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12942 (program_space::free_all_objfiles): Don't call clear_symtab_users
12943 here.
12944 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12945
12946 2020-01-10 Pedro Alves <palves@redhat.com>
12947
12948 * NEWS: Mention multi-target debugging, "info connections", and
12949 "add-inferior -no-connection".
12950
12951 2020-01-10 Pedro Alves <palves@redhat.com>
12952
12953 * infrun.c: Include "target-connection.h".
12954 (check_multi_target_resumption): New.
12955 (proceed): Call it.
12956 * target-connection.c (make_target_connection_string): Make
12957 extern.
12958 * target-connection.h (make_target_connection_string): Declare.
12959
12960 2020-01-10 Pedro Alves <palves@redhat.com>
12961
12962 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12963 * inferior.c (uiout_field_connection): New function.
12964 (print_inferior): Add new "connection-id" column.
12965 (add_inferior_command): Show connection number/string of added
12966 inferior.
12967 * process-stratum-target.h
12968 (process_stratum_target::connection_string): New virtual method.
12969 (process_stratum_target::connection_number): New field.
12970 * remote.c (remote_target::connection_string): New override.
12971 * target-connection.c: New file.
12972 * target-connection.h: New file.
12973 * target.c (decref_target): Remove process_stratum targets from
12974 the connection list.
12975 (target_stack::push): Add process_stratum targets to the
12976 connection list.
12977
12978 2020-01-10 Pedro Alves <palves@redhat.com>
12979
12980 Revert:
12981 2016-04-12 Pedro Alves <palves@redhat.com>
12982 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12983 Remove references to name.
12984 * serial.h (struct serial) <name>: Delete.
12985
12986 2020-01-10 Pedro Alves <palves@redhat.com>
12987
12988 * gdbarch-selftests.c (register_to_value_test): Remove "target
12989 already pushed" check.
12990
12991 2020-01-10 Pedro Alves <palves@redhat.com>
12992 John Baldwin <jhb@FreeBSD.org>
12993
12994 * aarch64-linux-nat.c
12995 (aarch64_linux_nat_target::thread_architecture): Adjust.
12996 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12997 (task_command_1): Likewise.
12998 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12999 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13000 (aix_thread_target::store_registers)
13001 (aix_thread_target::thread_alive): Adjust.
13002 * amd64-fbsd-tdep.c: Include "inferior.h".
13003 (amd64fbsd_get_thread_local_address): Pass down target.
13004 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13005 thread's gdbarch instead of target_gdbarch.
13006 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13007 get_last_target_status.
13008 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13009 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13010 inferiors.
13011 (update_inserted_breakpoint_locations): Skip if inferiors with no
13012 execution.
13013 (update_global_location_list): When handling moribund locations,
13014 find representative inferior for location's pspace, and use thread
13015 count of its process_stratum target.
13016 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13017 * bsd-uthread.c (bsd_uthread_target::wait): Use
13018 as_process_stratum_target and adjust thread_change_ptid and
13019 add_thread calls.
13020 (bsd_uthread_target::update_thread_list): Use
13021 as_process_stratum_target and adjust find_thread_ptid,
13022 thread_change_ptid and add_thread calls.
13023 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13024 find_thread_ptid call.
13025 * corelow.c (add_to_thread_list): Adjust add_thread call.
13026 (core_target_open): Adjust add_thread_silent and thread_count
13027 calls.
13028 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13029 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13030 * event-top.c (async_disconnect): Pop targets from all inferiors.
13031 * exec.c (add_target_sections): Push exec target on all inferiors
13032 sharing the program space.
13033 (remove_target_sections): Remove the exec target from all
13034 inferiors sharing the program space.
13035 (exec_on_vfork): New.
13036 * exec.h (exec_on_vfork): Declare.
13037 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13038 Pass it down.
13039 (fbsd_nat_target::update_thread_list): Adjust.
13040 (fbsd_nat_target::resume): Adjust.
13041 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13042 down.
13043 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13044 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13045 get_thread_arch_regcache call.
13046 * fork-child.c (gdb_startup_inferior): Pass target down to
13047 startup_inferior and set_executing.
13048 * gdbthread.h (struct process_stratum_target): Forward declare.
13049 (add_thread, add_thread_silent, add_thread_with_info)
13050 (in_thread_list): Add process_stratum_target parameter.
13051 (find_thread_ptid(inferior*, ptid_t)): New overload.
13052 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13053 parameter.
13054 (all_threads()): Delete overload.
13055 (all_threads, all_non_exited_threads): Add process_stratum_target
13056 parameter.
13057 (all_threads_safe): Use brace initialization.
13058 (thread_count): Add process_stratum_target parameter.
13059 (set_resumed, set_running, set_stop_requested, set_executing)
13060 (threads_are_executing, finish_thread_state): Add
13061 process_stratum_target parameter.
13062 (switch_to_thread): Use is_current_thread.
13063 * i386-fbsd-tdep.c: Include "inferior.h".
13064 (i386fbsd_get_thread_local_address): Pass down target.
13065 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13066 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13067 have_inferiors check.
13068 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13069 (inf_ptrace_target::attach): Adjust.
13070 * infcall.c (run_inferior_call): Adjust.
13071 * infcmd.c (run_command_1): Pass target to
13072 scoped_finish_thread_state.
13073 (proceed_thread_callback): Skip inferiors with no execution.
13074 (continue_command): Rename 'all_threads' local to avoid hiding
13075 'all_threads' function. Adjust get_last_target_status call.
13076 (prepare_one_step): Adjust set_running call.
13077 (signal_command): Use user_visible_resume_target. Compare thread
13078 pointers instead of inferior_ptid.
13079 (info_program_command): Adjust to pass down target.
13080 (attach_command): Mark target's 'thread_executing' flag.
13081 (stop_current_target_threads_ns): New, factored out from ...
13082 (interrupt_target_1): ... this. Switch inferior before making
13083 target calls.
13084 * inferior-iter.h
13085 (struct all_inferiors_iterator, struct all_inferiors_range)
13086 (struct all_inferiors_safe_range)
13087 (struct all_non_exited_inferiors_range): Filter on
13088 process_stratum_target too. Remove explicit.
13089 * inferior.c (inferior::inferior): Push dummy target on target
13090 stack.
13091 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13092 Add process_stratum_target parameter, and pass it down.
13093 (have_live_inferiors): Adjust.
13094 (switch_to_inferior_and_push_target): New.
13095 (add_inferior_command, clone_inferior_command): Handle
13096 "-no-connection" parameter. Use
13097 switch_to_inferior_and_push_target.
13098 (_initialize_inferior): Mention "-no-connection" option in
13099 the help of "add-inferior" and "clone-inferior" commands.
13100 * inferior.h: Include "process-stratum-target.h".
13101 (interrupt_target_1): Use bool.
13102 (struct inferior) <push_target, unpush_target, target_is_pushed,
13103 find_target_beneath, top_target, process_target, target_at,
13104 m_stack>: New.
13105 (discard_all_inferiors): Delete.
13106 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13107 (all_inferiors, all_non_exited_inferiors): Add
13108 process_stratum_target parameter.
13109 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13110 (target_last_proc_target): New global.
13111 (follow_fork_inferior): Push target on new inferior. Pass target
13112 to add_thread_silent. Call exec_on_vfork. Handle target's
13113 reference count.
13114 (follow_fork): Adjust get_last_target_status call. Also consider
13115 target.
13116 (follow_exec): Push target on new inferior.
13117 (struct execution_control_state) <target>: New field.
13118 (user_visible_resume_target): New.
13119 (do_target_resume): Call target_async.
13120 (resume_1): Set target's threads_executing flag. Consider resume
13121 target.
13122 (commit_resume_all_targets): New.
13123 (proceed): Also consider resume target. Skip threads of inferiors
13124 with no execution. Commit resumtion in all targets.
13125 (start_remote): Pass current inferior to wait_for_inferior.
13126 (infrun_thread_stop_requested): Consider target as well. Pass
13127 thread_info pointer to clear_inline_frame_state instead of ptid.
13128 (infrun_thread_thread_exit): Consider target as well.
13129 (random_pending_event_thread): New inferior parameter. Use it.
13130 (do_target_wait): Rename to ...
13131 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13132 down.
13133 (threads_are_resumed_pending_p, do_target_wait): New.
13134 (prepare_for_detach): Adjust calls.
13135 (wait_for_inferior): New inferior parameter. Handle it. Use
13136 do_target_wait_1 instead of do_target_wait.
13137 (fetch_inferior_event): Adjust. Switch to representative
13138 inferior. Pass target down.
13139 (set_last_target_status): Add process_stratum_target parameter.
13140 Save target in global.
13141 (get_last_target_status): Add process_stratum_target parameter and
13142 handle it.
13143 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13144 (context_switch): Check inferior_ptid == null_ptid before calling
13145 inferior_thread().
13146 (get_inferior_stop_soon): Pass down target.
13147 (wait_one): Rename to ...
13148 (poll_one_curr_target): ... this.
13149 (struct wait_one_event): New.
13150 (wait_one): New.
13151 (stop_all_threads): Adjust.
13152 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13153 event's target.
13154 (switch_back_to_stepped_thread): Also consider target.
13155 (print_stop_event): Update.
13156 (normal_stop): Update. Also consider the resume target.
13157 * infrun.h (wait_for_inferior): Remove declaration.
13158 (user_visible_resume_target): New declaration.
13159 (get_last_target_status, set_last_target_status): New
13160 process_stratum_target parameter.
13161 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13162 process_stratum_target parameter, and use it.
13163 (clear_inline_frame_state (thread_info*)): New.
13164 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13165 process_stratum_target parameter.
13166 (clear_inline_frame_state (thread_info*)): Declare.
13167 * linux-fork.c (delete_checkpoint_command): Pass target down to
13168 find_thread_ptid.
13169 (checkpoint_command): Adjust.
13170 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13171 instead of just tweaking inferior_ptid.
13172 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13173 (exit_lwp): Pass target down to find_thread_ptid.
13174 (attach_proc_task_lwp_callback): Pass target down to
13175 add_thread/set_running/set_executing.
13176 (linux_nat_target::attach): Pass target down to
13177 thread_change_ptid.
13178 (get_detach_signal): Pass target down to find_thread_ptid.
13179 Consider last target status's target.
13180 (linux_resume_one_lwp_throw, resume_lwp)
13181 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13182 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13183 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13184 (linux_nat_target::async_wait_fd): New.
13185 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13186 target down.
13187 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13188 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13189 * linux-thread-db.c (struct thread_db_info::process_target): New
13190 field.
13191 (add_thread_db_info): Save target.
13192 (get_thread_db_info): New process_stratum_target parameter. Also
13193 match target.
13194 (delete_thread_db_info): New process_stratum_target parameter.
13195 Also match target.
13196 (thread_from_lwp): Adjust to pass down target.
13197 (thread_db_notice_clone): Pass down target.
13198 (check_thread_db_callback): Pass down target.
13199 (try_thread_db_load_1): Always push the thread_db target.
13200 (try_thread_db_load, record_thread): Pass target down.
13201 (thread_db_target::detach): Pass target down. Always unpush the
13202 thread_db target.
13203 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13204 target down. Always unpush the thread_db target.
13205 (find_new_threads_callback, thread_db_find_new_threads_2)
13206 (thread_db_target::update_thread_list): Pass target down.
13207 (thread_db_target::pid_to_str): Pass current inferior down.
13208 (thread_db_target::get_thread_local_address): Pass target down.
13209 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13210 target down.
13211 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13212 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13213 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13214 (procfs_init_inferior): Rename to ...
13215 (procfs_target::procfs_init_inferior): ... this and adjust.
13216 (procfs_target::create_inferior, procfs_notice_thread)
13217 (procfs_do_thread_registers): Adjust.
13218 * ppc-fbsd-tdep.c: Include "inferior.h".
13219 (ppcfbsd_get_thread_local_address): Pass down target.
13220 * proc-service.c (ps_xfer_memory): Switch current inferior and
13221 program space as well.
13222 (get_ps_regcache): Pass target down.
13223 * process-stratum-target.c
13224 (process_stratum_target::thread_address_space)
13225 (process_stratum_target::thread_architecture): Pass target down.
13226 * process-stratum-target.h
13227 (process_stratum_target::threads_executing): New field.
13228 (as_process_stratum_target): New.
13229 * ravenscar-thread.c
13230 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13231 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13232 down.
13233 * record-btrace.c (record_btrace_target::info_record): Adjust.
13234 (record_btrace_target::record_method)
13235 (record_btrace_target::record_is_replaying)
13236 (record_btrace_target::fetch_registers)
13237 (get_thread_current_frame_id, record_btrace_target::resume)
13238 (record_btrace_target::wait, record_btrace_target::stop): Pass
13239 target down.
13240 * record-full.c (record_full_wait_1): Switch to event thread.
13241 Pass target down.
13242 * regcache.c (regcache::regcache)
13243 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13244 process_stratum_target parameter and handle it.
13245 (current_thread_target): New global.
13246 (get_thread_regcache): Add process_stratum_target parameter and
13247 handle it. Switch inferior before calling target method.
13248 (get_thread_regcache): Pass target down.
13249 (get_thread_regcache_for_ptid): Pass target down.
13250 (registers_changed_ptid): Add process_stratum_target parameter and
13251 handle it.
13252 (registers_changed_thread, registers_changed): Pass target down.
13253 (test_get_thread_arch_aspace_regcache): New.
13254 (current_regcache_test): Define a couple local test_target_ops
13255 instances and use them for testing.
13256 (readwrite_regcache): Pass process_stratum_target parameter.
13257 (cooked_read_test, cooked_write_test): Pass mock_target down.
13258 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13259 (get_thread_arch_aspace_regcache): Add process_stratum_target
13260 parameter.
13261 (regcache::target): New method.
13262 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13263 (regcache::registers_changed_ptid): Add process_stratum_target
13264 parameter.
13265 (regcache::m_target): New field.
13266 (registers_changed_ptid): Add process_stratum_target parameter.
13267 * remote.c (remote_state::supports_vCont_probed): New field.
13268 (remote_target::async_wait_fd): New method.
13269 (remote_unpush_and_throw): Add remote_target parameter.
13270 (get_current_remote_target): Adjust.
13271 (remote_target::remote_add_inferior): Push target.
13272 (remote_target::remote_add_thread)
13273 (remote_target::remote_notice_new_inferior)
13274 (get_remote_thread_info): Pass target down.
13275 (remote_target::update_thread_list): Skip threads of inferiors
13276 bound to other targets. (remote_target::close): Don't discard
13277 inferiors. (remote_target::add_current_inferior_and_thread)
13278 (remote_target::process_initial_stop_replies)
13279 (remote_target::start_remote)
13280 (remote_target::remote_serial_quit_handler): Pass down target.
13281 (remote_target::remote_unpush_target): New remote_target
13282 parameter. Unpush the target from all inferiors.
13283 (remote_target::remote_unpush_and_throw): New remote_target
13284 parameter. Pass it down.
13285 (remote_target::open_1): Check whether the current inferior has
13286 execution instead of checking whether any inferior is live. Pass
13287 target down.
13288 (remote_target::remote_detach_1): Pass down target. Use
13289 remote_unpush_target.
13290 (extended_remote_target::attach): Pass down target.
13291 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13292 (remote_target::append_resumption): Pass down target.
13293 (remote_target::append_pending_thread_resumptions)
13294 (remote_target::remote_resume_with_hc, remote_target::resume)
13295 (remote_target::commit_resume): Pass down target.
13296 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13297 (remote_target::interrupt_query)
13298 (remote_target::remove_new_fork_children)
13299 (remote_target::check_pending_events_prevent_wildcard_vcont)
13300 (remote_target::remote_parse_stop_reply)
13301 (remote_target::process_stop_reply): Pass down target.
13302 (first_remote_resumed_thread): New remote_target parameter. Pass
13303 it down.
13304 (remote_target::wait_as): Pass down target.
13305 (unpush_and_perror): New remote_target parameter. Pass it down.
13306 (remote_target::readchar, remote_target::remote_serial_write)
13307 (remote_target::getpkt_or_notif_sane_1)
13308 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13309 down target.
13310 (remote_target::mourn_inferior): Pass down target. Use
13311 remote_unpush_target.
13312 (remote_target::core_of_thread)
13313 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13314 (remote_target::pid_to_exec_file)
13315 (remote_target::thread_handle_to_thread_info): Pass down target.
13316 (remote_target::async_wait_fd): New.
13317 * riscv-fbsd-tdep.c: Include "inferior.h".
13318 (riscv_fbsd_get_thread_local_address): Pass down target.
13319 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13320 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13321 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13322 Adjust.
13323 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13324 * solib-svr4.c (enable_break): Pass down target.
13325 * spu-multiarch.c (parse_spufs_run): Pass down target.
13326 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13327 * target-delegates.c: Regenerate.
13328 * target.c (g_target_stack): Delete.
13329 (current_top_target): Return the current inferior's top target.
13330 (target_has_execution_1): Refer to the passed-in inferior's top
13331 target.
13332 (target_supports_terminal_ours): Check whether the initial
13333 inferior was already created.
13334 (decref_target): New.
13335 (target_stack::push): Incref/decref the target.
13336 (push_target, push_target, unpush_target): Adjust.
13337 (target_stack::unpush): Defref target.
13338 (target_is_pushed): Return bool. Adjust to refer to the current
13339 inferior's target stack.
13340 (dispose_inferior): Delete, and inline parts ...
13341 (target_preopen): ... here. Only dispose of the current inferior.
13342 (target_detach): Hold strong target reference while detaching.
13343 Pass target down.
13344 (target_thread_name): Add assertion.
13345 (target_resume): Pass down target.
13346 (target_ops::beneath, find_target_at): Adjust to refer to the
13347 current inferior's target stack.
13348 (get_dummy_target): New.
13349 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13350 has a thread running.
13351 (initialize_targets): Rename to ...
13352 (_initialize_target): ... this.
13353 * target.h: Include "gdbsupport/refcounted-object.h".
13354 (struct target_ops): Inherit refcounted_object.
13355 (target_ops::shortname, target_ops::longname): Make const.
13356 (target_ops::async_wait_fd): New method.
13357 (decref_target): Declare.
13358 (struct target_ops_ref_policy): New.
13359 (target_ops_ref): New typedef.
13360 (get_dummy_target): Declare function.
13361 (target_is_pushed): Return bool.
13362 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13363 (all_matching_threads_iterator::all_matching_threads_iterator):
13364 Handle filter target.
13365 * thread-iter.h (struct all_matching_threads_iterator, struct
13366 all_matching_threads_range, class all_non_exited_threads_range):
13367 Filter by target too. Remove explicit.
13368 * thread.c (threads_executing): Delete.
13369 (inferior_thread): Pass down current inferior.
13370 (clear_thread_inferior_resources): Pass down thread pointer
13371 instead of ptid_t.
13372 (add_thread_silent, add_thread_with_info, add_thread): Add
13373 process_stratum_target parameter. Use it for thread and inferior
13374 searches.
13375 (is_current_thread): New.
13376 (thread_info::deletable): Use it.
13377 (find_thread_ptid, thread_count, in_thread_list)
13378 (thread_change_ptid, set_resumed, set_running): New
13379 process_stratum_target parameter. Pass it down.
13380 (set_executing): New process_stratum_target parameter. Pass it
13381 down. Adjust reference to 'threads_executing'.
13382 (threads_are_executing): New process_stratum_target parameter.
13383 Adjust reference to 'threads_executing'.
13384 (set_stop_requested, finish_thread_state): New
13385 process_stratum_target parameter. Pass it down.
13386 (switch_to_thread): Also match inferior.
13387 (switch_to_thread): New process_stratum_target parameter. Pass it
13388 down.
13389 (update_threads_executing): Reimplement.
13390 * top.c (quit_force): Pop targets from all inferior.
13391 (gdb_init): Don't call initialize_targets.
13392 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13393 Declare.
13394 (windows_add_thread, windows_delete_thread): Adjust.
13395 (get_windows_debug_event): Rename to ...
13396 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13397 * tracefile-tfile.c (tfile_target_open): Pass down target.
13398 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13399 Forward declare.
13400 (switch_to_thread): Add process_stratum_target parameter.
13401 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13402 parameter. Use it.
13403 (mi_on_resume): Pass target down.
13404 * nat/fork-inferior.c (startup_inferior): Add
13405 process_stratum_target parameter. Pass it down.
13406 * nat/fork-inferior.h (startup_inferior): Add
13407 process_stratum_target parameter.
13408 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13409
13410 2020-01-10 Pedro Alves <palves@redhat.com>
13411
13412 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13413 directly. Instead find the first thread in the thread list and
13414 use switch_to_thread.
13415
13416 2020-01-10 Pedro Alves <palves@redhat.com>
13417
13418 * remote.c (remote_target::remote_add_inferior): Don't bind a
13419 process to the current inferior if the current inferior is already
13420 bound to a process.
13421
13422 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13423 Pedro Alves <palves@redhat.com>
13424
13425 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13426 If no process is specified, return null_ptid instead of
13427 inferior_ptid.
13428 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13429 TARGET_WAITKIND_SIGNALLED with no pid.
13430
13431 2020-01-10 Pedro Alves <palves@redhat.com>
13432
13433 * remote.c (first_remote_resumed_thread): New.
13434 (remote_target::wait_as): Use it as default event_ptid instead of
13435 inferior_ptid.
13436
13437 2020-01-10 Pedro Alves <palves@redhat.com>
13438
13439 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13440
13441 2020-01-10 Pedro Alves <palves@redhat.com>
13442
13443 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13444 not -1.
13445
13446 2020-01-10 Pedro Alves <palves@redhat.com>
13447
13448 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13449 ptid to get_last_target_status.
13450 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13451 ptid to get_last_target_status.
13452 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13453 get_last_target_status.
13454 (info_program_command): Don't pass a target_waitstatus to
13455 get_last_target_status.
13456 * infrun.c (init_wait_for_inferior): Use
13457 nullify_last_target_wait_ptid.
13458 (get_last_target_status): Handle nullptr arguments.
13459 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13460 (print_stop_event): Don't pass a ptid to get_last_target_status.
13461 (normal_stop): Don't pass a ptid to get_last_target_status.
13462 * infrun.h (get_last_target_status, set_last_target_status): Move
13463 comments here and update.
13464 (nullify_last_target_wait_ptid): Declare.
13465 * linux-fork.c (fork_load_infrun_state): Remove local extern
13466 declaration of nullify_last_target_wait_ptid.
13467 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13468 to get_last_target_status.
13469
13470 2020-01-10 Pedro Alves <palves@redhat.com>
13471
13472 * gdbthread.h (scoped_restore_current_thread)
13473 <dont_restore, restore, m_dont_restore>: Declare.
13474 * thread.c (thread_alive): Add assertion. Return bool.
13475 (switch_to_thread_if_alive): New.
13476 (prune_threads): Switch inferior/thread.
13477 (print_thread_info_1): Switch thread before calling target methods.
13478 (scoped_restore_current_thread::restore): New, factored out from
13479 ...
13480 (scoped_restore_current_thread::~scoped_restore_current_thread):
13481 ... this.
13482 (scoped_restore_current_thread::scoped_restore_current_thread):
13483 Add assertion.
13484 (thread_apply_all_command, thread_select): Use
13485 switch_to_thread_if_alive.
13486 * infrun.c (proceed, restart_threads, handle_signal_stop)
13487 (switch_back_to_stepped_thread): Switch current thread before
13488 calling target methods.
13489
13490 2020-01-10 Pedro Alves <palves@redhat.com>
13491
13492 * inferior.c (switch_to_inferior_no_thread): New function,
13493 factored out from ...
13494 (inferior_command): ... here.
13495 * inferior.h (switch_to_inferior_no_thread): Declare.
13496 * mi/mi-main.c (run_one_inferior): Use
13497 switch_to_inferior_no_thread.
13498
13499 2020-01-10 Pedro Alves <palves@redhat.com>
13500
13501 * infcmd.c (kill_command): Remove dead code.
13502
13503 2020-01-10 Pedro Alves <palves@redhat.com>
13504
13505 * remote.c (remote_target::mourn_inferior): No longer check
13506 whether the target is running.
13507
13508 2020-01-10 Pedro Alves <palves@redhat.com>
13509
13510 * corelow.c (core_target::has_execution): Change parameter type to
13511 inferior pointer.
13512 * inferior.c (number_of_live_inferiors): Use
13513 inferior::has_execution instead of target_has_execution_1.
13514 * inferior.h (inferior::has_execution): New.
13515 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13516 inferior::has_execution instead of target_has_execution_1.
13517 * process-stratum-target.c
13518 (process_stratum_target::has_execution): Change parameter type to
13519 inferior pointer. Check the inferior's PID instead of
13520 inferior_ptid.
13521 * process-stratum-target.h
13522 (process_stratum_target::has_execution): Change parameter type to
13523 inferior pointer.
13524 * record-full.c (record_full_core_target::has_execution): Change
13525 parameter type to inferior pointer.
13526 * target.c (target_has_execution_1): Change parameter type to
13527 inferior pointer.
13528 (target_has_execution_current): Adjust.
13529 * target.h (target_ops::has_execution): Change parameter type to
13530 inferior pointer.
13531 (target_has_execution_1): Change parameter type to inferior
13532 pointer. Change return type to bool.
13533 * tracefile.h (tracefile_target::has_execution): Change parameter
13534 type to inferior pointer.
13535
13536 2020-01-10 Pedro Alves <palves@redhat.com>
13537
13538 * exceptions.c (print_flush): Remove current_top_target() check.
13539
13540 2020-01-10 Pedro Alves <palves@redhat.com>
13541
13542 * remote.c (show_remote_exec_file): Show the current inferior's
13543 exec-file instead of the command variable's value.
13544
13545 2020-01-10 Pedro Alves <palves@redhat.com>
13546
13547 * record-full.c (record_full_resume_ptid): New global.
13548 (record_full_target::resume): Set it.
13549 (record_full_wait_1): Use record_full_resume_ptid instead of
13550 inferior_ptid.
13551
13552 2020-01-10 Pedro Alves <palves@redhat.com>
13553
13554 * gdbthread.h (scoped_restore_current_thread)
13555 <dont_restore, restore, m_dont_restore>: Declare.
13556 * thread.c (thread_alive): Add assertion. Return bool.
13557 (switch_to_thread_if_alive): New.
13558 (prune_threads): Switch inferior/thread.
13559 (print_thread_info_1): Switch thread before calling target methods.
13560 (scoped_restore_current_thread::restore): New, factored out from
13561 ...
13562 (scoped_restore_current_thread::~scoped_restore_current_thread):
13563 ... this.
13564 (scoped_restore_current_thread::scoped_restore_current_thread):
13565 Add assertion.
13566 (thread_apply_all_command, thread_select): Use
13567 switch_to_thread_if_alive.
13568
13569 2020-01-10 George Barrett <bob@bob131.so>
13570
13571 * stap-probe.c (stap_modify_semaphore): Don't check for null
13572 semaphores.
13573 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13574 for null semaphores.
13575
13576 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13577
13578 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13579 all source windows, and maintain horizontal scroll status while
13580 doing so.
13581
13582 2020-01-09 Tom Tromey <tom@tromey.com>
13583
13584 PR tui/18932:
13585 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13586 update_source_window, not print_source_lines.
13587
13588 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13589
13590 * tui/tui.c (tui_enable): Register tui hooks after calling
13591 tui_display_main.
13592
13593 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13594
13595 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13596
13597 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13598
13599 * thread.c (print_thread_info_1): Fix indentation.
13600
13601 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13602
13603 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13604 unique_xmalloc_ptr outside the if to always free the demangled name.
13605
13606 2020-01-08 Tom Tromey <tromey@adacore.com>
13607
13608 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13609 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13610 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13611 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13612 Remove.
13613 (section_offsets): New typedef.
13614 * symtab.c (fixup_section, get_msymbol_address): Update.
13615 * symmisc.c (dump_msymbols): Update.
13616 * symfile.h (relative_addr_info_to_section_offsets)
13617 (symfile_map_offsets_to_segments): Update.
13618 * symfile.c (build_section_addr_info_from_objfile)
13619 (init_objfile_sect_indices): Update.
13620 (struct place_section_arg): Change type of "offsets".
13621 (place_section): Update.
13622 (relative_addr_info_to_section_offsets): Change type of
13623 "section_offsets". Remove "num_sections" parameter.
13624 (default_symfile_offsets, syms_from_objfile_1)
13625 (set_objfile_default_section_offset): Update.
13626 (reread_symbols): No need to preserve section offsets by hand.
13627 (symfile_map_offsets_to_segments): Change type of "offsets".
13628 * stap-probe.c (relocate_address): Update.
13629 * stabsread.h (process_one_symbol): Update.
13630 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13631 (solib_target_relocate_section_addresses): Update.
13632 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13633 Update.
13634 * solib-frv.c (frv_relocate_main_executable): Update.
13635 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13636 * solib-aix.c (solib_aix_get_section_offsets): Change return
13637 type.
13638 (solib_aix_solib_create_inferior_hook): Update.
13639 * remote.c (remote_target::get_offsets): Update.
13640 * psymtab.c (find_pc_sect_psymtab): Update.
13641 * psympriv.h (struct partial_symbol) <address, text_low,
13642 text_high>: Update.
13643 * objfiles.h (obj_section_offset): Update.
13644 (struct objfile) <section_offsets>: Change type.
13645 <num_sections>: Remove.
13646 (objfile_relocate): Update.
13647 * objfiles.c (entry_point_address_query): Update
13648 (relocate_one_symbol): Change type of "section_offsets".
13649 (objfile_relocate1, objfile_relocate1): Change type of
13650 "new_offsets".
13651 (objfile_rebase1): Update.
13652 * mipsread.c (mipscoff_symfile_read): Update.
13653 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13654 parameter.
13655 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13656 (parse_external, psymtab_to_symtab_1): Update.
13657 * machoread.c (macho_symfile_offsets): Update.
13658 * ia64-tdep.c (ia64_find_unwind_table): Update.
13659 * hppa-tdep.c (read_unwind_info): Update.
13660 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13661 * dwarf2read.c (create_addrmap_from_index)
13662 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13663 (process_psymtab_comp_unit_reader, add_partial_symbol)
13664 (add_partial_subprogram, process_full_comp_unit)
13665 (read_file_scope, read_func_scope, read_lexical_block_scope)
13666 (read_call_site_scope, dwarf2_rnglists_process)
13667 (dwarf2_ranges_process, dwarf2_ranges_read)
13668 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13669 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13670 Update.
13671 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13672 Update.
13673 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13674 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13675 (process_one_symbol): Change type of "section_offsets".
13676 * ctfread.c (get_objfile_text_range): Update.
13677 * coffread.c (coff_symtab_read, enter_linenos)
13678 (process_coff_symbol): Update.
13679 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13680 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13681
13682 2020-01-08 Tom Tromey <tromey@adacore.com>
13683
13684 * dwarf2read.c (parse_macro_definition): Use std::string.
13685 (parse_macro_definition): Likewise.
13686
13687 2020-01-08 Tom Tromey <tromey@adacore.com>
13688
13689 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13690 (ATTR_ALLOC_CHUNK): Remove.
13691
13692 2020-01-08 Tom Tromey <tromey@adacore.com>
13693
13694 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13695
13696 2020-01-08 Tom Tromey <tromey@adacore.com>
13697
13698 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13699 (dwarf2_compute_name, open_dwo_file): Likewise.
13700 (process_enumeration_scope): Use std::vector.
13701 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13702 (partial_die_info::fixup, dwarf2_start_subfile)
13703 (guess_full_die_structure_name, dwarf2_name): Likewise.
13704 (determine_prefix): Update.
13705 (guess_full_die_structure_name): Make return type const.
13706 (partial_die_full_name): Return unique_xmalloc_ptr.
13707 (DW_FIELD_ALLOC_CHUNK): Remove.
13708
13709 2020-01-07 Tom Tromey <tromey@adacore.com>
13710
13711 PR build/24937:
13712 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13713
13714 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13715
13716 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13717
13718 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13719
13720 * stack.c (print_frame_info): Move disassemble_next_line code
13721 inside source_print block.
13722
13723 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13724
13725 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13726 gdb/signals.h, as we are now using native signal symbols.
13727
13728 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13729
13730 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13731 overflow by an early check of content vs threshold.
13732 * tui/tui-source.c (tui_source_window::line_is_displayed):
13733 Likewise.
13734
13735 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13736
13737 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13738
13739 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13740
13741 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13742 export table if no section contains it's RVA.
13743
13744 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13745
13746 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13747
13748 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13749
13750 * source.c (print_source_lines_base): Set last_line_listed.
13751
13752 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13753
13754 * tui/tui-disasm.c: Remove trailing spaces.
13755
13756 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13757 Pedro Alves <palves@redhat.com>
13758
13759 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13760 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13761 (windows_gdb_signal_to_target): New function, uses the above
13762 enumeration to convert GDB internal signal codes to equivalent
13763 Windows codes.
13764 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13765 * windows-nat.c: Include "gdb_wait.h".
13766 (get_windows_debug_event): Extract the fatal exception from the
13767 exit status and convert to the equivalent Posix signal number.
13768 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13769 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13770 * gdbsupport/gdb_wait.c: New file, implements
13771 windows_status_to_termsig.
13772 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13773 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13774
13775 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13776
13777 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13778 show_layout.
13779
13780 2020-01-05 Luis Machado <luis.machado@linaro.org>
13781
13782 * aarch64-linux-nat.c
13783 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13784 and bfd_mach_aarch64.
13785
13786 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13787
13788 * ui-file.c (stdio_file::can_emit_style_escape)
13789 (tee_file::can_emit_style_escape): Ensure style is used also on
13790 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13791 to gdb_stdout.
13792 * main.c (set_gdb_data_directory): Use file style to output the
13793 warning that the given pathname is not a directory.
13794 * top.c (show_history_filename, gdb_safe_append_history)
13795 (show_gdb_datadir): Use file style.
13796
13797 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13798
13799 * solib-target.c (struct lm_info_target):
13800 Change offsets to be a unique_xmalloc_ptr.
13801 (solib_target_relocate_section_addresses): Update.
13802
13803 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13804
13805 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13806
13807 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13808
13809 * MAINTAINERS (Write After Approval): Add myself.
13810
13811 2020-01-02 Luis Machado <luis.machado@linaro.org>
13812
13813 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13814 Cell BE architecture.
13815 * target.h (struct target_ops) <thread_architecture>: Likewise.
13816
13817 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13818
13819 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13820
13821 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13822
13823 * MAINTAINERS (Write After Approval): Add myself.
13824
13825 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13826
13827 * gdbarch.sh: Update copyright year range of generated files.
13828
13829 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13830
13831 Update copyright year range in all GDB files.
13832
13833 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13834
13835 * copyright.py: Convert to Python 3.
13836
13837 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13838
13839 * copyright.py: Adapt after move of gnulib directory from gdb
13840 directory to toplevel directory.
13841
13842 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13843
13844 * copyright.py (main): Exit if run from the wrong directory.
13845
13846 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13847
13848 * top.c (print_gdb_version): Change copyright year to 2020.
13849
13850 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13851
13852 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13853
13854 For older changes see ChangeLog-2019.
13855 \f
13856 Local Variables:
13857 mode: change-log
13858 left-margin: 8
13859 fill-column: 74
13860 version-control: never
13861 coding: utf-8
13862 End:
This page took 0.326518 seconds and 4 git commands to generate.