1 2020-09-17 Tom Tromey <tom@tromey.com>
3 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
5 <m_table>: Now htab_up.
6 * typeprint.c (typedef_hash_table::recursively_update)
7 (typedef_hash_table::add_template_parameters)
8 (typedef_hash_table::typedef_hash_table): Update.
9 (typedef_hash_table::~typedef_hash_table): Remove.
10 (typedef_hash_table::typedef_hash_table)
11 (typedef_hash_table::find_global_typedef)
12 (typedef_hash_table::find_typedef): Update.
14 2020-09-17 Tom Tromey <tom@tromey.com>
16 * target-descriptions.c (tdesc_use_registers): Use htab_up.
18 2020-09-17 Tom Tromey <tom@tromey.com>
20 * linespec.c (class decode_compound_collector)
21 <~decode_compound_collector>: Remove.
22 <m_unique_syms>: Now htab_up.
23 (decode_compound_collector::operator ()): Update.
24 (class symtab_collector) <~symtab_collector>: Remove.
25 <m_symtab_table>: Now htab_up.
26 (symtab_collector::operator ()): Update.
28 2020-09-17 Tom Tromey <tom@tromey.com>
30 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
31 (filename_seen_cache::clear): Update.
32 (~filename_seen_cache): Remove.
33 (filename_seen_cache::seen): Update.
34 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
36 <~filename_seen_cache>: Remove.
39 2020-09-17 Tom Tromey <tom@tromey.com>
41 * completer.c (completion_tracker::discard_completions)
42 (completion_tracker::~completion_tracker)
43 (completion_tracker::maybe_add_completion)
44 (completion_tracker::remove_completion)
45 (completion_tracker::recompute_lowest_common_denominator)
46 (completion_tracker::build_completion_result): Update.
47 * completer.h (class completion_tracker) <have_completions>:
49 <m_entries_hash>: Now htab_up.
51 2020-09-17 Tom Tromey <tom@tromey.com>
53 * breakpoint.c (ambiguous_names_p): Use htab_up.
55 2020-09-17 Tom Tromey <tom@tromey.com>
57 * auto-load.c (struct auto_load_pspace_info)
58 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
59 <loaded_script_files, loaded_script_texts>: Change type to
61 (~auto_load_pspace_info) Remove.
62 (init_loaded_scripts_info, maybe_add_script_file)
63 (maybe_add_script_text, auto_load_info_scripts): Update.
65 2020-09-17 Tom Tromey <tromey@adacore.com>
67 * c-exp.y (name_obstack): Now static.
69 2020-09-17 Chungyi Chi <demonic@csie.io>
71 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
73 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
75 * breakpoint.h (init_catchpoint): Change int parameter to bool.
76 (add_solib_catchpoint): Likewise.
77 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
79 (add_solib_catchpoint): Change int parameter/variable to bool.
80 (catch_load_or_unload): Likewise.
81 (init_catchpoint): Likewise.
82 (create_fork_vfork_event_catchpoint): Likewise.
83 (catch_fork_command_1): Likewise.
84 (catch_exec_command_1): Likewise.
86 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
88 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
89 Change instance_flags to m_instance_flags.
91 2020-09-16 Tom Tromey <tromey@adacore.com>
94 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
96 2020-09-16 John Baldwin <jhb@FreeBSD.org>
98 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
100 (fbsd_nat_target::insert_exec_catchpoint)
101 (fbsd_nat_target::remove_exec_catchpoint): Always define.
102 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
103 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
105 2020-09-16 John Baldwin <jhb@FreeBSD.org>
107 * configure.ac: Remove check for kinfo_getvmmap().
108 * configure, config.in: Regenerate.
109 * fbsd-nat.c (fbsd_read_mapping): Remove
110 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
111 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
112 kinfo_get_vmmap() are always present.
114 2020-09-16 John Baldwin <jhb@FreeBSD.org>
116 * fbsd-nat.c: Always include support for
117 TARGET_OBJECT_SIGNAL_INFO.
119 2020-09-16 John Baldwin <jhb@FreeBSD.org>
121 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
122 sysctl and remove procfs fallback.
124 2020-09-16 John Baldwin <jhb@FreeBSD.org>
126 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
127 * fbsd-nat.h: Likewise.
129 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
131 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
134 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
136 * ada-lang.c (ada_language_data): Delete.
137 (ada_language): Remove references to ada_language_data.
138 * c-lang.c (c_language_data): Delete.
139 (c_language): Remove references to c_language_data.
140 (cplus_language_data): Delete.
141 (cplus_language): Remove references to cplus_language_data.
142 (asm_language_data): Delete.
143 (asm_language): Remove references to asm_language_data.
144 (minimal_language_data): Delete.
145 (minimal_language): Remove references to minimal_language_data.
146 * d-lang.c (d_language_data): Delete.
147 (d_language): Remove references to d_language_data.
148 * f-lang.c (f_language_data): Delete.
149 (f_language): Remove references to f_language_data.
150 * go-lang.c (go_language_data): Delete.
151 (go_language): Remove references to go_language_data.
152 * language.c (unknown_language_data): Delete.
153 (unknown_language): Remove references to unknown_language_data.
154 (auto_language_data): Delete.
155 (auto_language): Remove references to auto_language_data.
156 * language.h (language_data): Delete struct.
157 (language_defn): No longer inherit from language_data.
158 * m2-lang.c (m2_language_data): Delete.
159 (m2_language): Remove references to m2_language_data.
160 * objc-lang.c (objc_language_data): Delete.
161 (objc_language): Remove references to objc_language_data.
162 * opencl-lang.c (opencl_language_data): Delete.
163 (opencl_language): Remove references to opencl_language_data.
164 * p-lang.c (pascal_language_data): Delete.
165 (pascal_language): Remove references to pascal_language_data.
166 * rust-lang.c (rust_language_data): Delete.
167 (rust_language): Remove references to rust_language_data.
169 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
171 * ada-lang.c (ada_language_data): Remove la_op_print_tab
173 (ada_language::opcode_print_table): New member function.
174 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
175 (c_language::opcode_print_table): New member function.
176 (cplus_language_data): Remove la_op_print_tab initializer.
177 (cplus_language::opcode_print_table): New member function.
178 (asm_language_data): Remove la_op_print_tab initializer.
179 (asm_language::opcode_print_table): New member function.
180 (minimal_language_data): Remove la_op_print_tab initializer.
181 (minimal_language::opcode_print_table): New member function.
182 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
183 (d_language::opcode_print_table): New member function.
184 * expprint.c (print_subexp_standard): Update call to
186 (op_string): Likewise.
187 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
188 (f_language::opcode_print_table): New member function.
189 * go-lang.c (go_language_data): Remove la_op_print_tab
191 (go_language::opcode_print_table): New member function.
192 * language.c (unknown_language_data): Remove la_op_print_tab
194 (unknown_language::opcode_print_table): New member function.
195 (auto_language_data): Remove la_op_print_tab initializer.
196 (auto_language::opcode_print_table): New member function.
197 * language.h (language_data): Remove la_op_print_tab field.
198 (language_defn::opcode_print_table): Declare new member function.
199 * m2-lang.c (m2_language_data): Remove la_op_print_tab
201 (m2_language::opcode_print_table): New member function.
202 * objc-lang.c (objc_language_data): Remove la_op_print_tab
204 (objc_language::opcode_print_table): New member function.
205 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
207 (opencl_language::opcode_print_table): New member function.
208 * p-lang.c (pascal_language_data): Remove la_op_print_tab
210 (pascal_language::opcode_print_table): New member function.
211 * rust-lang.c (rust_language_data): Remove la_op_print_tab
213 (rust_language::opcode_print_table): New member function.
215 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
217 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
218 (ada_language::expression_ops): New member function.
219 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
220 (c_language::expression_ops): New member function.
221 (cplus_language_data): Remove la_exp_desc initializer.
222 (cplus_language::expression_ops): New member function.
223 (asm_language_data): Remove la_exp_desc initializer.
224 (asm_language::expression_ops): New member function.
225 (minimal_language_data): Remove la_exp_desc initializer.
226 (minimal_language::expression_ops): New member function.
227 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
228 (d_language::expression_ops): New member function.
229 * eval.c (evaluate_subexp): Update call to expression_ops.
230 * expprint.c (print_subexp): Likewise.
232 (dump_subexp_body): Likewise.
233 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
234 (f_language::expression_ops): New member function.
235 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
236 (go_language::expression_ops): New member function.
237 * language.c (language_defn::expression_ops): New function.
238 (unknown_language_data): Remove la_exp_desc initializer.
239 (auto_language_data): Likewise.
240 * language.h (language_data): Remove la_exp_desc field.
241 (language_defn::expression_ops): Declare new member function.
242 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
243 (m2_language::expression_ops): New member function.
244 * objc-lang.c (objc_language_data): Remove la_exp_desc
246 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
248 (opencl_language::expression_ops): New member function.
249 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
250 * parse.c (operator_length): Update call to expression_ops.
251 (exp_iterate): Likewise.
252 * rust-lang.c (rust_language_data): Remove la_exp_desc
254 (ruse_language::expression_ops): New member function.
256 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
258 * ada-lang.c (ada_language_data): Remove la_varobj_ops
260 (ada_language::varobj_ops): New member function.
261 * c-lang.c (c_language_data): Remove la_varobj_ops
263 (cplus_language_data): Likewise.
264 (cplus_language::varobj_ops): New member function.
265 (asm_language_data): Remove la_varobj_ops initializer.
266 (minimal_language_data): Likewise.
267 * d-lang.c (d_language_data): Likewise.
268 * f-lang.c (f_language_data): Likewise.
269 * go-lang.c (go_language_data): Likewise.
270 * language.c (language_defn::varobj_ops): New function.
271 (unknown_language_data): Remove la_varobj_ops
273 (auto_language_data): Likewise.
274 * language.h (language_data): Remove la_varobj_ops field.
275 (language_defn::varobj_ops): Declare new member function.
276 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
277 * objc-lang.c (objc_language_data): Likewise.
278 * opencl-lang.c (opencl_language_data): Likewise.
279 * p-lang.c (pascal_language_data): Likewise.
280 * rust-lang.c (rust_language_data): Likewise.
281 * varobj.c (varobj_create): Update call to varobj_ops.
282 * varobj.h (default_varobj_ops): Delete define.
284 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
286 * ada-lang.c (ada_language_data): Remove la_macro_expansion
288 * c-lang.c (c_language_data): Likewise.
289 (c_language::macro_expansion): New member function.
290 (cplus_language_data): Likewise.
291 (cplus_language::macro_expansion): New member function.
292 (asm_language_data): Likewise.
293 (asm_language::macro_expansion): New member function.
294 (minimal_language_data): Likewise.
295 (minimal_language::macro_expansion): New member function.
296 * d-lang.c (d_language_data): Remove la_macro_expansion
298 * f-lang.c (f_language_data): Likewise.
299 * go-lang.c (go_language_data): Likewise.
300 * language.c (unknown_language_data): Likewise.
301 (auto_language_data): Likewise.
302 * language.h (language_data): Remove la_macro_expansion field.
303 (language_defn::macro_expansion): New member function.
304 * m2-lang.c (m2_language_data): Remove la_macro_expansion
306 * objc-lang.c (objc_language_data): Likewise.
307 (objc_language::macro_expansion): New member function.
308 * opencl-lang.c (opencl_language_data): Likewise.
309 (opencl_language::macro_expansion): New member function.
310 * p-lang.c (pascal_language_data): Remove la_macro_expansion
312 * rust-lang.c (rust_language_data): Likewise.
313 * symtab.c (default_collect_symbol_completion_matches_break_on):
314 Update call to macro_expansion.
316 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
318 * ada-lang.c (ada_language_data): Remove la_array_ordering
320 * c-lang.c (c_language_data): Likewise.
321 (cplus_language_data): Likewise.
322 (asm_language_data): Likewise.
323 (minimal_language_data): Likewise.
324 * d-lang.c (d_language_data): Likewise.
325 * dwarf2/read.c (read_array_order): Update for call to
327 * f-lang.c (f_language_data): Remove la_array_ordering
329 (f_language::array_ordering): New member function.
330 * go-lang.c (go_language_data): Remove la_array_ordering
332 * language.c (unknown_language_data): Likewise.
333 (auto_language_data): Likewise.
334 * language.h (language_data): Delete la_array_ordering field.
335 (language_defn::array_ordering): New member function.
336 * m2-lang.c (m2_language_data): Remove la_array_ordering
338 * objc-lang.c (objc_language_data): Likewise.
339 * opencl-lang.c (opencl_language_data): Likewise.
340 * p-lang.c (pascal_language_data): Likewise.
341 * rust-lang.c (rust_language_data): Likewise.
343 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
345 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
347 * c-lang.c (c_language_data): Likewise.
348 (cplus_language_data): Likewise.
349 (asm_language_data): Likewise.
350 (minimal_language_data): Likewise.
351 * d-lang.c (d_language_data): Likewise.
352 * f-lang.c (f_language_data): Likewise.
353 (f_language::case_sensitivity): New member function.
354 * go-lang.c (go_language_data): Remove la_case_sensitivity
356 * language.c (enum case_mode): Moved here from language.h.
357 (case_mode): Make static.
358 (show_case_command): Update for case_sensitivity being a method.
359 (set_case_command): Likewise.
360 (set_range_case): Likewise.
361 (unknown_language_data): Remove la_case_sensitivity initializer.
362 (auto_language_data): Likewise.
363 * language.h (case_mode): Delete, move enum declaration to
365 (language_data): Delete la_case_sensitivity field.
366 (language_defn::case_sensitivity): New member function.
367 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
369 * objc-lang.c (objc_language_data): Likewise.
370 * opencl-lang.c (opencl_language_data): Likewise.
371 * p-lang.c (pascal_language_data): Likewise.
372 * rust-lang.c (rust_language_data): Likewise.
374 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
376 * ada-lang.c (ada_language_data): Remove la_range_check
378 * c-lang.c (c_language_data): Likewise.
379 (cplus_language_data): Likewise.
380 (asm_language_data): Likewise.
381 (minimal_language_data): Likewise.
382 * d-lang.c (d_language_data): Likewise.
383 * f-lang.c (f_language_data): Likewise.
384 (f_language::range_checking_on_by_default): New member function.
385 * go-lang.c (go_language_data): Remove la_range_check initializer.
386 * language.c (enum range_mode): Moved here from language.h.
387 (range_mode): Made static.
388 (show_range_command): Update to use
389 range_checking_on_by_default.
390 (set_range_command): Likewise.
391 (set_range_case): Likewise.
392 (unknown_language_data): Remove la_range_check initializer.
393 (auto_language_data): Likewise.
394 * language.h (range_mode): Delete. Enum definition moved to
396 (language_data): Remove la_range_check field.
397 (language_defn::range_checking_on_by_default): New member
399 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
400 (m2_language::range_checking_on_by_default): New member function.
401 * objc-lang.c (objc_language_data): Remove la_range_check
403 * opencl-lang.c (opencl_language_data): Likewise.
404 * p-lang.c (pascal_language_data): Likewise.
405 (pascal_language::range_checking_on_by_default): New member
407 * rust-lang.c (rust_language_data): Remove la_range_check
409 (rust_language::range_checking_on_by_default): New member
412 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
414 * dwarf2/read.c (dwarf2_physname): Remove special case for
416 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
419 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
421 * ada-lang.c (ada_language_data): Remove
422 la_store_sym_names_in_linkage_form_p initializer.
423 (ada_language::store_sym_names_in_linkage_form_p): New member
425 * c-lang.c (c_language_data): Remove
426 la_store_sym_names_in_linkage_form_p initializer.
427 (c_language::store_sym_names_in_linkage_form_p): New member
429 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
431 (asm_language_data): Likewise.
432 (asm_language::store_sym_names_in_linkage_form_p): New member
434 (minimal_language_data): Remove
435 la_store_sym_names_in_linkage_form_p initializer.
436 (minimal_language::store_sym_names_in_linkage_form_p): New member
438 * d-lang.c (d_language_data): Remove
439 la_store_sym_names_in_linkage_form_p initializer.
440 * dwarf2/read.c (dwarf2_physname): Update call to
441 store_sym_names_in_linkage_form_p.
442 * f-lang.c (f_language_data): Remove
443 la_store_sym_names_in_linkage_form_p initializer.
444 * go-lang.c (go_language_data): Remove
445 la_store_sym_names_in_linkage_form_p initializer.
446 * language.c (unknown_language_data): Remove
447 la_store_sym_names_in_linkage_form_p initializer.
448 (unknown_language::store_sym_names_in_linkage_form_p): New member
450 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
452 (auto_language::store_sym_names_in_linkage_form_p): New member
454 * language.h (language_data): Remove
455 la_store_sym_names_in_linkage_form_p member variable.
456 (language_defn::store_sym_names_in_linkage_form_p): New member
458 * m2-lang.c (m2_language_data): Remove
459 la_store_sym_names_in_linkage_form_p initializer.
460 * objc-lang.c (objc_language_data): Likewise.
461 * opencl-lang.c (opencl_language_data): Likewise.
462 * p-lang.c (pascal_language_data): Likewise.
463 * rust-lang.c (rust_language_data): Likewise.
465 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
467 * ada-lang.c (ada_language_data): Remove string_lower_bound
469 * c-lang.c (c_language_data): Likewise.
470 (cplus_language_data): Likewise.
471 (asm_language_data): Likewise.
472 (minimal_language_data): Likewise.
473 * d-lang.c (d_language_data): Likewise.
474 * f-lang.c (f_language_data): Likewise.
475 * go-lang.c (go_language_data): Likewise.
476 * language.c (unknown_language_data): Likewise.
477 (auto_language_data): Likewise.
478 * language.h (language_data): Remove string_lower_bound field.
479 (language_defn::string_lower_bound): New member function.
480 * m2-lang.c (m2_language_data): Remove string_lower_bound
482 (m2_language::string_lower_bound): New member function.
483 * objc-lang.c (objc_language_data): Remove string_lower_bound
485 * opencl-lang.c (opencl_language_data): Likewise.
486 * p-lang.c (pascal_language_data): Likewise.
487 * rust-lang.c (rust_language_data): Likewise.
488 * valops.c (value_cstring): Update call to string_lower_bound.
489 (value_string): Likewise.
490 * value.c (allocate_repeated_value): Likewise.
492 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
494 * valops.c (value_repeat): Fix incorrect argument name in comment.
496 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
498 * ada-lang.c (ada_language_data): Remove c_style_arrays
500 (ada_language::c_style_arrays_p): New member fuction.
501 * c-lang.c (c_language_data): Remove c_style_arrays
503 (cplus_language_data): Likewise.
504 (asm_language_data): Likewise.
505 (minimal_language_data): Likewise.
506 * d-lang.c (d_language_data): Likewise.
507 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
508 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
509 (f_language::c_style_arrays_p): New member function.
510 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
511 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
512 * language.c (unknown_language_data): Remove c_style_arrays
514 (auto_language_data): Likewise.
515 * language.h (language_data): Remove c_style_arrays field.
516 (language_defn::c_style_arrays_p): New member function.
517 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
518 (m2_language::c_style_arrays_p): New member function.
519 * objc-lang.c (objc_language_data): Remove c_style_arrays
521 * opencl-lang.c (opencl_language_data): Likewise.
522 * p-lang.c (pascal_language_data): Likewise.
523 * rust-lang.c (rust_language_data): Likewise.
524 * valarith.c (value_subscript): Update call to c_style_arrays_p,
525 and update local variable to a bool.
526 * valops.c (value_cast): Update call to c_style_arrays_p.
527 (value_array): Likewise.
528 * value.c (coerce_array): Likewise.
530 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
532 * ada-lang.c (ada_language_data): Remove la_language initializer.
533 * c-lang.c (c_language_data): Likewise.
534 (cplus_language_data): Likewise.
535 (asm_language_data): Likewise.
536 (minimal_language_data): Likewise.
537 * d-lang.c (d_language_data): Likewise.
538 * f-lang.c (f_language_data): Likewise.
539 * go-lang.c (go_language_data): Likewise.
540 * language.c (unknown_language_data): Likewise.
541 (auto_language_data): Likewise.
542 * language.h (language_data): Remove la_language field.
543 (language_defn::language_defn): Initialise la_language field.
544 (language_defn::la_language): New member variable.
545 * m2-lang.c (m2_language_data): Remove la_language field.
546 * objc-lang.c (objc_language_data): Likewise.
547 * opencl-lang.c (opencl_language_data): Likewise.
548 * p-lang.c (pascal_language_data): Likewise.
549 * rust-lang.c (rust_language_data): Likewise.
551 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
553 * ada-lang.c (ada_extensions): Delete, moved into
554 ada_language::filename_extensions.
555 (ada_language_data): Remove la_filename_extensions initializer.
556 (ada_language::filename_extensions): New member function.
557 * c-lang.c (c_extensions): Delete, moved into
558 c_language::filename_extensions.
559 (c_language_data): Remove la_filename_extensions initializer.
560 (c_language::filename_extensions): New member function.
561 (cplus_extensions): Delete, moved into
562 cplus_language::filename_extensions.
563 (cplus_language_data): Remove la_filename_extensions initializer.
564 (cplus_language::filename_extensions): New member function.
565 (asm_extensions): Delete, moved into
566 asm_language::filename_extensions.
567 (asm_language_data): Remove la_filename_extensions initializer.
568 (asm_language::filename_extensions): New member function.
569 (minimal_language_data): Remove la_filename_extensions
571 * d-lang.c (d_extensions): Delete, moved into
572 d_language::filename_extensions.
573 (d_language_data): Remove la_filename_extensions initializer.
574 (d_language::filename_extensions): New member function.
575 * f-lang.c (f_extensions): Delete, moved into
576 f_language::filename_extensions.
577 (f_language_data): Remove la_filename_extensions initializer.
578 (f_language::filename_extensions): New member function.
579 * go-lang.c (go_language_data): Remove la_filename_extensions
581 * language.c (add_set_language_command): Update now that
582 filename_extensions returns a vector.
583 (unknown_language_data): Remove la_filename_extensions
585 (auto_language_data): Likewise.
586 * language.h (language_data): Remove la_filename_extensions field.
587 (language_defn::filename_extensions): New member function.
588 * m2-lang.c (m2_language_data): Remove la_filename_extensions
590 * objc-lang.c (objc_extensions): Delete, moved into
591 objc_language::filename_extensions.
592 (objc_language_data): Remove la_filename_extensions initializer.
593 (objc_language::filename_extensions): New member function.
594 * opencl-lang.c (opencl_language_data): Remove
595 la_filename_extensions initializer.
596 * p-lang.c (pascal_extensions): Delete, moved into
597 pascal_language::filename_extensions.
598 (pascal_language_data): Remove la_filename_extensions initializer.
599 (pascal_language::filename_extensions): New member function.
600 * rust-lang.c (rust_extensions): Delete, moved into
601 rust_language::filename_extensions.
602 (rust_language_data): Remove la_filename_extensions initializer.
603 (rust_language::filename_extensions): New member function.
604 * symfile.c (add_filename_language): Add new assert.
606 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
608 * ada-lang.c (ada_language_data): Remove la_name and
609 la_natural_name initializers.
610 (ada_language::name): New member function.
611 (ada_language::natural_name): New member function.
612 * c-lang.c (c_language_data): Remove la_name and
613 la_natural_name initializers.
614 (c_language::name): New member function.
615 (c_language::natural_name): New member function.
616 (cplus_language_data): Remove la_name and
617 la_natural_name initializers.
618 (cplus_language::name): New member function.
619 (cplus_language::natural_name): New member function.
620 (asm_language_data): Remove la_name and
621 la_natural_name initializers.
622 (asm_language::name): New member function.
623 (asm_language::natural_name): New member function.
624 (minimal_language_data): Remove la_name and
625 la_natural_name initializers.
626 (minimal_language::name): New member function.
627 (minimal_language::natural_name): New member function.
628 * compile/compile.c (compile_to_object): Update call to
630 * d-lang.c (d_language_data): Remove la_name and
631 la_natural_name initializers.
632 (d_language::name): New member function.
633 (d_language::natural_name): New member function.
634 * expprint.c (print_subexp_standard): Update call to
636 (dump_raw_expression): Likewise
637 (dump_prefix_expression): Likewise.
638 * f-lang.c (f_language_data): Remove la_name and
639 la_natural_name initializers.
640 (f_language::name): New member function.
641 (f_language::natural_name): New member function.
642 * go-lang.c (go_language_data): Remove la_name and
643 la_natural_name initializers.
644 (go_language::name): New member function.
645 (go_language::natural_name): New member function.
646 * language.c (show_language_command): Update call to
648 (set_language_command): Likewise.
649 (language_enum): Likewise.
650 (language_str): Likewise.
651 (add_set_language_command): Likewise, use
652 language_defn::natural_name in the doc string.
653 (unknown_language_data): Remove la_name and
654 la_natural_name initializers.
655 (unknown_language::name): New member function.
656 (unknown_language::natural_name): New member function.
657 (auto_language_data): Remove la_name and
658 la_natural_name initializers.
659 (auto_language::name): New member function.
660 (auto_language::natural_name): New member function.
661 (language_lookup_primitive_type_as_symbol): Update call to
663 * language.h (language_data): Remove la_name and la_natural_name
665 (language_defn::name): New member function.
666 (language_defn::natural_name): New member function.
667 * m2-lang.c (m2_language_data): Remove la_name and
668 la_natural_name initializers.
669 (m2_language::name): New member function.
670 (m2_language::natural_name): New member function.
671 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
672 language_defn::natural_name.
673 * objc-lang.c (objc_language_data): Remove la_name and
674 la_natural_name initializers.
675 (objc_language::name): New member function.
676 (objc_language::natural_name): New member function.
677 * opencl-lang.c (opencl_language_data): Remove la_name and
678 la_natural_name initializers.
679 (opencl_language::name): New member function.
680 (opencl_language::natural_name): New member function.
681 * p-lang.c (pascal_language_data): Remove la_name and
682 la_natural_name initializers.
683 (pascal_language::name): New member function.
684 (pascal_language::natural_name): New member function.
685 * rust-lang.c (rust_language_data): Remove la_name and
686 la_natural_name initializers.
687 (rust_language::name): New member function.
688 (rust_language::natural_name): New member function.
689 * symtab.c (lookup_language_this): Update call to
692 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
694 * ada-lang.c (ada_language_data): Remove la_name_of_this
696 * ax-gdb.c (gen_expr): Update call to name_of_this.
697 * c-exp.y (classify_name): Likewise.
698 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
699 (cplus_language_data): Likewise.
700 (cplus_language::name_of_this): New member function.
701 (asm_language_data): Remove la_name_of_this initializer.
702 (minimal_language_data): Likewise.
703 * d-lang.c (d_language_data): Likewise.
704 (d_language::name_of_this): New member function.
705 * expprint.c (print_subexp_standard): Update call to name_of_this.
706 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
707 * go-lang.c (go_language_data): Likewise.
708 * language.c (unknown_language_data): Likewise.
709 (unknown_language::name_of_this): New member function.
710 (auto_language_data): Remove la_name_of_this initializer.
711 (auto_language::name_of_this): New member function.
712 * language.h (language_data): Delete la_name_of_this member
714 (language_defn::name_of_this): New member function.
715 * m2-lang.c (m2_language_data): Remove la_name_of_this
717 * objc-lang.c (objc_language_data): Likewise.
718 (objc_language::name_of_this): New member function.
719 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
721 * p-lang.c (pascal_language_data): Likewise.
722 (pascal_language::name_of_this): New member function.
723 * rust-lang.c (rust_language_data): Remove la_name_of_this
725 * symtab.c (lookup_language_this): Update call to name_of_this.
726 (lookup_symbol_aux): Likewise.
727 * valops.c (value_of_this): Likewise.
729 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
731 * ada-lang.c (ada_language_data): Remove
732 la_struct_too_deep_ellipsis initializer.
733 (ada_language::struct_too_deep_ellipsis): New member function.
734 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
736 (cplus_language_data): Likewise.
737 (asm_language_data): Likewise.
738 (minimal_language_data): Likewise.
739 * cp-valprint.c (cp_print_value): Update call to
740 struct_too_deep_ellipsis.
741 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
743 * f-lang.c (f_language_data): Likewise.
744 (f_language::struct_too_deep_ellipsis): New member function.
745 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
747 * language.c (unknown_language_data): Likewise.
748 (auto_language_data): Likewise.
749 * language.h (language_data): Delete la_struct_too_deep_ellipsis
751 (language_defn::struct_too_deep_ellipsis): New member function.
752 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
754 * objc-lang.c (objc_language_data): Likewise.
755 * opencl-lang.c (opencl_language_data): Likewise.
756 * p-lang.c (pascal_language_data): Likewise.
757 * rust-lang.c (rust_language_data): Likewise.
758 * valprint.c (val_print_check_max_depth): Update call to
759 struct_too_deep_ellipsis.
761 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
763 * MAINTAINERS (Write After Approval): Add myself.
765 2020-09-15 Tom Tromey <tom@tromey.com>
767 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
770 2020-09-15 Tom Tromey <tom@tromey.com>
772 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
773 and TYPE_CODE_METHODPTR cases.
774 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
775 (c_value_print_inner): Update.
776 * valprint.c (generic_value_print_memberptr): New function, from
777 c_value_print_memberptr.
778 (generic_value_print): Use it. Call cplus_print_method_ptr.
780 2020-09-15 Tom Tromey <tromey@adacore.com>
782 * python/python-internal.h (PyInt_FromLong): Remove define.
783 * python/py-value.c (convert_value_from_python): Use
784 gdb_py_object_from_longest.
785 * python/py-type.c (typy_get_code): Use
786 gdb_py_object_from_longest.
787 * python/py-symtab.c (salpy_get_line): Use
788 gdb_py_object_from_longest.
789 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
790 gdb_py_object_from_longest.
791 * python/py-record.c (recpy_gap_reason_code): Use
792 gdb_py_object_from_longest.
793 * python/py-record-btrace.c (recpy_bt_insn_size)
794 (recpy_bt_func_level, btpy_list_count): Use
795 gdb_py_object_from_longest.
796 * python/py-infthread.c (gdbpy_create_ptid_object): Use
797 gdb_py_object_from_longest. Fix error handling.
798 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
799 gdb_py_object_from_longest.
800 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
801 gdb_py_object_from_longest.
802 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
803 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
804 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
806 2020-09-15 Tom Tromey <tromey@adacore.com>
808 * python/python.c (gdbpy_parameter_value): Use
809 gdb_py_object_from_ulongest.
811 2020-09-15 Tom Tromey <tromey@adacore.com>
813 * python/py-infevents.c (create_register_changed_event_object):
814 Use gdb_py_object_from_longest.
815 * python/py-exitedevent.c (create_exited_event_object): Use
816 gdb_py_object_from_longest.
818 2020-09-15 Tom Tromey <tromey@adacore.com>
820 * python/python.c (gdbpy_parameter_value): Use
821 gdb_py_object_from_longest.
822 * python/py-type.c (convert_field, typy_range): Use
823 gdb_py_object_from_longest.
824 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
825 gdb_py_object_from_longest.
826 * python/py-lazy-string.c (stpy_get_length): Use
827 gdb_py_object_from_longest.
828 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
829 gdb_py_object_from_longest.
830 * python/py-infevents.c (create_memory_changed_event_object): Use
831 gdb_py_object_from_longest.
832 * python/py-inferior.c (infpy_get_num): Use
833 gdb_py_object_from_longest.
834 (infpy_get_pid): Likewise.
836 2020-09-15 Tom Tromey <tromey@adacore.com>
838 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
840 * python/py-value.c (valpy_long): Use
841 gdb_py_object_from_ulongest.
842 * python/py-symtab.c (salpy_get_pc): Use
843 gdb_py_object_from_ulongest.
844 (salpy_get_last): Likewise.
845 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
846 gdb_py_object_from_ulongest.
847 * python/py-lazy-string.c (stpy_get_address): Use
848 gdb_py_object_from_ulongest.
849 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
850 * python/py-arch.c (archpy_disassemble): Use
851 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
854 2020-09-15 Tom Tromey <tromey@adacore.com>
856 * python/python-internal.h (gdb_py_long_from_longest): Remove
858 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
859 * python/py-type.c (convert_field, typy_get_sizeof): Use
860 gdb_py_object_from_longest.
861 * python/py-record-btrace.c (btpy_list_index): Use
862 gdb_py_object_from_longest.
864 2020-09-15 Tom Tromey <tromey@adacore.com>
866 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
867 * python/py-record.c (recpy_element_number): Use
868 gdb_py_object_from_longest.
869 (recpy_gap_number): Likewise.
871 2020-09-15 Tom Tromey <tromey@adacore.com>
873 * top.c (ui::ui): Update.
874 (highest_ui_num): Remove.
875 * top.h (struct ui) <num>: Remove.
877 2020-09-15 Tom Tromey <tromey@adacore.com>
879 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
880 * ui-style.c (ansi_regex_text): Now array.
881 * rust-exp.y (number_regex_text): Now array.
882 * linespec.c (linespec_quote_characters): Now array.
883 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
886 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
888 * debuginfod-support.c (debuginfod_client_deleter): New.
889 (debuginfod_client_up): New.
890 (debuginfod_init): Return debuginfod_client_up.
891 (debuginfod_source_query): Adjust.
892 (debuginfod_debuginfo_query): Adjust.
894 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
896 * debuginfod-support.c (debuginfod_source_query): Use
899 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
901 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
902 with `type::instance_flags`.
904 2020-09-14 Michael Mullin <masmullin@gmail.com>
906 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
907 Remove baton parameter.
909 2020-09-14 Pedro Alves <pedro@palves.net>
911 * Makefile.in (SELFTESTS_SRCS): Add
912 unittests/enum-flags-selftests.c.
913 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
914 btrace_function_flags instead of enum btrace_function_flag.
915 * compile/compile-c-types.c (convert_qualified): Use
917 * compile/compile-cplus-symbols.c (convert_one_symbol)
918 (convert_symbol_bmsym):
919 * compile/compile-cplus-types.c (compile_cplus_convert_method)
920 (compile_cplus_convert_struct_or_union_methods)
921 (compile_cplus_instance::convert_qualified_base):
922 * go-exp.y (parse_string_or_char): Add cast to int.
923 * unittests/enum-flags-selftests.c: New file.
924 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
925 type to btrace_thread_flags from btrace_thread_flag.
926 (record_btrace_cancel_resume, record_btrace_step_thread): Change
927 local's type to btrace_thread_flags from btrace_thread_flag. Add
930 2020-09-14 Pedro Alves <pedro@palves.net>
932 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
933 * gdbtypes.c (address_space_name_to_int): Rename to ...
934 (address_space_name_to_type_instance_flags): ... this.
935 (address_space_int_to_name): Rename to ...
936 (address_space_type_instance_flags_to_name): ... this.
937 * gdbtypes.h (address_space_name_to_int): Rename to ...
938 (address_space_name_to_type_instance_flags): ... this.
939 (address_space_int_to_name): Rename to ...
940 (address_space_type_instance_flags_to_name): ... this.
941 * type-stack.c (type_stack::insert): Adjust to rename.
942 * type-stack.h (type_stack::insert): Likewise.
944 2020-09-14 Pedro Alves <pedro@palves.net>
945 Andrew Burgess <andrew.burgess@embecosm.com>
947 * avr-tdep.c (avr_address_class_type_flags): Return
949 (avr_address_class_type_flags_to_name): Take a
951 (avr_address_class_name_to_type_flags): Return bool and take a
953 * d-lang.c (build_d_types): Use type::set_instance_flags.
954 * ft32-tdep.c (ft32_address_class_type_flags): Return
956 (ft32_address_class_type_flags_to_name): Take a
958 (ft32_address_class_name_to_type_flags): Return bool and take a
960 (ft32_gdbarch_init): Use type::set_instance_flags.
961 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
962 * gdbarch.h, gdbarch.c: Regenerate.
963 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
964 (address_class_name_to_type_flags): Use type_instance_flags and
966 * gdbtypes.c (address_space_name_to_int)
967 (address_space_int_to_name, make_qualified_type): Use
969 (make_qualified_type): Use type_instance_flags and
970 type::set_instance_flags.
971 (make_type_with_address_space, make_cv_type, make_vector_type)
972 (check_typedef): Use type_instance_flags.
973 (recursive_dump_type): Cast type_instance_flags to unsigned for
975 (copy_type_recursive): Use type::set_instance_flags.
976 (gdbtypes_post_init): Use type::set_instance_flags.
977 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
978 <m_instance_flags>: ... this.
979 <instance_flags, set_instance_flags>: New methods.
980 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
981 (SET_TYPE_INSTANCE_FLAGS): New.
982 (address_space_name_to_int, address_space_int_to_name)
983 (make_type_with_address_space): Pass flags using
984 type_instance_flags instead of int.
985 * stabsread.c (cleanup_undefined_types_noname): Use
986 type::set_instance_flags.
987 * s390-tdep.c (s390_address_class_type_flags): Return
989 (s390_address_class_type_flags_to_name): Take a
991 (s390_address_class_name_to_type_flags): Return bool and take a
993 * type-stack.c (type_stack::follow_types): Use
995 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
997 2020-09-14 Tom Tromey <tromey@adacore.com>
999 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1000 * x86-tdep.c (x86_is_thunk_register_name)
1001 (x86_in_indirect_branch_thunk): Update.
1002 * sparc64-tdep.c (sparc64_fpu_register_names)
1003 (sparc64_cp0_register_names, sparc64_register_names)
1004 (sparc64_pseudo_register_names): Now const.
1005 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1006 cp0_registers_num>: Now const.
1007 * sparc-tdep.c (sparc_core_register_names)
1008 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1009 (sparc32_pseudo_register_names): Now const.
1010 (validate_tdesc_registers): Update.
1011 * rust-lang.c (rust_extensions): Now const.
1012 * p-lang.c (p_extensions): Now const.
1013 * objc-lang.c (objc_extensions): Now const.
1014 * nto-tdep.c (nto_thread_state_str): Now const.
1015 * moxie-tdep.c (moxie_register_names): Now const.
1016 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1018 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1019 (mips_linux_reg_names): Now const.
1020 (mips_gdbarch_init): Update.
1021 * microblaze-tdep.c (microblaze_register_names): Now const.
1022 * m68k-tdep.c (m68k_register_names): Now const.
1023 * m32r-tdep.c (m32r_register_names): Now const.
1024 * ia64-tdep.c (ia64_register_names): Now const.
1025 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1026 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1027 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1028 ymm_avx512_register_names, pkeys_register_names>: Now const.
1029 * i386-tdep.c (i386_register_names, i386_zmm_names)
1030 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1031 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1032 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1033 * f-lang.c (f_extensions): Now const.
1034 * d-lang.c (d_extensions): Now const.
1035 * csky-tdep.c (csky_register_names): Now const.
1036 * charset.c (default_charset_names, charset_enum): Now const.
1037 (_initialize_charset): Update.
1038 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1040 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1041 (bsd_uthread_solib_loaded): Update.
1042 (bsd_uthread_state): Now const.
1043 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1044 (amd64_ymm_avx512_names, amd64_ymmh_names)
1045 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1046 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1047 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1048 (amd64_dword_names): Now const.
1049 * agent.c (can_use_agent_enum): Now const.
1050 * ada-tasks.c (task_states, long_task_states): Now const.
1051 * ada-lang.c (known_runtime_file_name_patterns)
1052 (known_auxiliary_function_name_patterns, attribute_names)
1053 (standard_exc, ada_extensions): Now const.
1055 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1057 * bcache.h (struct bcache) <bcache>: Remove constructor.
1058 <m_hash_function, m_compare_function>: Remove.
1059 <~bcache>: Make virtual.
1060 <compare>: Remove static method, introduce virtual method.
1061 <default_hash>: Remove.
1062 <hash>: New virtual method.
1063 * bcache.c (bcache::expand_hash_table): Update.
1064 (bcache::insert): Update.
1065 (bcache::hash): New.
1066 (bcache::compare): Update comment and parameter names.
1067 * gdbtypes.c (types_deeply_equal): Update.
1068 * psymtab.h (struct psymbol_bcache): New struct.
1069 (class psymtab_storage) <psymtab_storage>: Make default.
1070 <psymbol_cache>: Change type to psymbol_bcache.
1071 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1072 (psymbol_hash): Change to...
1073 (psymbol_bcache::hash): ... this.
1074 (psymbol_compare): Change to...
1075 (psymbol_bcache::compare): ... this.
1077 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1079 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1080 checking for initial lwp.
1082 2020-09-14 Tom Tromey <tromey@adacore.com>
1084 * m68k-tdep.c (m68k_extract_return_value): Use
1085 pointer_result_regnum.
1086 (m68k_store_return_value): Likewise.
1087 (m68k_reg_struct_return_p): Handle vectors and arrays.
1088 (m68k_return_value): Handle arrays.
1089 (m68k_svr4_return_value): Fix single-element aggregate handling.
1090 Handle long double. Adjust for embedded ABI.
1091 (m68k_svr4_init_abi): Set pointer_result_regnum.
1092 (m68k_embedded_init_abi): New function.
1093 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1094 (m68k_osabi_sniffer): New function.
1095 (_initialize_m68k_tdep): Register osabi sniffer.
1096 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1099 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1101 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1102 with gdb::unique_xmalloc_ptr<char>.
1104 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1106 * xml-support.h (xml_fetch_another): Change type to be a
1108 (xml_process_xincludes): Remove baton parameter.
1109 (xml_fetch_content_from_file): Change baton parameter to
1111 * xml-support.c (struct xinclude_parsing_data)
1112 <xinclude_parsing_data>: Remove baton parameter.
1113 <fetcher_baton>: Remove.
1114 (xinclude_start_include): Adjust.
1115 (xml_process_xincludes): Adjust.
1116 (xml_fetch_content_from_file): Replace baton parameter with
1118 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1119 (xml_init_syscalls_info): Use a lambda.
1120 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1121 (file_read_description_xml): Use a lambda.
1122 (fetch_available_features_from_target): Change baton parameter
1124 (target_read_description_xml): Use a lambda.
1125 (target_fetch_description_xml): Use a lambda.
1126 (string_read_description_xml): Update.
1128 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1130 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1131 uses with type::endianity_is_not_default.
1133 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1135 * gdbtypes.h (struct type) <endianity_is_not_default,
1136 set_endianity_is_not_default>: New methods.
1137 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1138 type::endianity_is_not_default, change all write call sites to
1139 use type::set_endianity_is_not_default.
1141 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1143 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1144 uses with type::is_fixed_instance.
1146 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1148 * gdbtypes.h (struct type) <is_fixed_instance,
1149 set_is_fixed_instance>: New methods.
1150 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1151 write call sites to use type::set_is_fixed_instance.
1153 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1155 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1156 uses with type::is_gnu_ifunc.
1158 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1160 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1161 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1162 use type::set_is_gnu_ifunc.
1164 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1166 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1167 uses with type::stub_is_supported.
1169 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1171 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1172 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1173 use type::set_stub_is_supported.
1175 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1177 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1178 uses with type::is_vector.
1180 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1182 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1183 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1184 use type::set_is_vector.
1186 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1188 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1189 uses with type::has_varargs.
1191 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1193 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1194 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1195 use type::set_has_varargs.
1197 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1199 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1200 uses with type::is_prototyped.
1202 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1204 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1206 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1207 call sites to use type::set_is_prototyped.
1209 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1211 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1212 uses with type::target_is_stub.
1214 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1216 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1218 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1219 sites to use type::set_target_is_stub.
1221 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1223 * gdbtypes.h (TYPE_STUB): Remove, replace all
1224 uses with type::is_stub.
1226 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1228 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1229 (TYPE_STUB): Use type::is_stub, change all write call sites to
1230 use type::set_is_stub.
1232 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1234 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1235 type::has_no_signedness.
1237 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1239 * gdbtypes.h (struct type) <has_no_signedness,
1240 set_has_no_signedness>: New methods.
1241 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1242 call sites to use type::set_has_no_signedness.
1244 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1246 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1249 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1251 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1253 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1254 sites to use type::set_is_unsigned.
1256 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1257 Adam Renquinha <arenquinha@cimeq.qc.ca>
1259 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1260 pointer and stack frame offset when unwinding.
1262 2020-09-13 Pedro Alves <pedro@palves.net>
1264 * NEWS: Document "-break-insert --qualified".
1265 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1267 2020-09-13 Pedro Alves <pedro@palves.net>
1269 * linespec.c (classify_mtype, compare_msyms): Delete.
1270 (search_minsyms_for_name): Remove classification logic. Instead
1271 filter out trampoline symbols if we also found an external
1272 function of the same name.
1274 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1276 * NEWS: Create a new section for the next release branch.
1277 Rename the section of the current branch, now that it has
1280 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1282 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1283 * version.in: Bump version to 11.0.50.DATE-git.
1285 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1287 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1289 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1290 Felix Willgerodt <Felix.Willgerodt@intel.com>
1292 * gdbarch.sh: Added bfloat16 type.
1293 * gdbarch.c: Regenerated.
1294 * gdbarch.h: Regenerated.
1295 * gdbtypes.c (floatformats_bfloat16): New struct.
1296 (gdbtypes_post_init): Add builtin_bfloat16.
1297 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1298 (floatformats_bfloat16): New struct.
1299 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1300 (i386_ymm_type): Add field "v16_bfloat16"
1301 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1302 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1303 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1304 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1305 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1306 * features/i386/64bit-avx512.c: Regenerated.
1307 * features/i386/64bit-sse.xml: Add bfloat16 type.
1308 * features/i386/64bit-sse.c: Regenerated.
1310 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1312 * i386-tdep.c (i386_zmm_type): Fix field names.
1313 (i386_ymm_type): Fix field names.
1315 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1317 * breakpoint.c: Fix typo in the help message of the
1318 "set breakpoint condition-evaluation" command.
1320 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1322 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1323 * (nbsd_nat_target::pid_to_exec_file)
1324 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1325 (nbsd_nat_target::post_startup_inferior)
1326 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1327 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1328 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1329 * (nbsd_thread_lister): Remove.
1331 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1333 * fork-inferior.c (startup_inferior): Avoid double free.
1335 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1337 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1338 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1340 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1342 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1343 * netbsd-nat.c: Include <sys/ptrace.h>.
1344 * (netbsd_nat::enable_proc_events): Add.
1346 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1348 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1349 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1350 (netbsd_nat::for_each_thread): Add.
1351 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1352 "gdbsupport/common-debug.h".
1353 * (netbsd_nat::netbsd_thread_lister)
1354 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1355 (netbsd_nat::for_each_thread): Add.
1357 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1359 * netbsd-nat.h: Include <unistd.h>.
1360 * (netbsd_nat::pid_to_exec_file): Add.
1361 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1362 * (netbsd_nat::pid_to_exec_file) Add.
1364 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1366 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1368 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1370 * netbsd-nat.h: New file.
1371 * netbsd-nat.c: Likewise.
1373 2020-09-09 Tom Tromey <tromey@adacore.com>
1375 * ada-lang.c (remove_extra_symbols): Do not increment when
1378 2020-09-08 Tom Tromey <tromey@adacore.com>
1380 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1382 2020-09-08 Tom Tromey <tromey@adacore.com>
1385 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1386 (gdb_bfd_init_data): New function.
1387 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1389 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1391 * infrun.c (fetch_inferior_event): Use
1392 `switch_to_target_no_thread` to switch the target.
1394 2020-09-06 Tom Tromey <tom@tromey.com>
1396 * symfile.h (dwarf2_free_objfile): Don't declare.
1398 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1400 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1401 to match 16 byte real/complex type generated by Flang compiler.
1403 2020-09-03 Tom de Vries <tdevries@suse.de>
1406 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1407 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1409 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1411 * maint.c (index_digits): New function.
1412 (struct maint_print_section_data): Remove.
1413 (print_bfd_section_info): Remove print_data parameter, add arg
1415 (print_objfile_section_info): Likewise.
1416 (print_bfd_section_info_maybe_relocated): Likewise (plus
1418 (maintenance_info_sections): Adjust calls.
1420 2020-09-02 Tom Tromey <tromey@adacore.com>
1422 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1424 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1426 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1428 * bcache.h (struct bcache) <insert>: Change type of `added` to
1430 * bcache.c (bcache::insert): Likewise.
1431 * gdbtypes.c (check_types_worklist): Adjust.
1432 * psymtab.c (add_psymbol_to_bcache): Adjust.
1434 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1436 * corelow.c (unordered_set): Include.
1437 (class core_target): Add field 'm_core_unavailable_mappings'.
1438 (core_target::build_file_mappings): Print only one warning
1439 per inaccessible file. Add unavailable/broken mappings
1440 to m_core_unavailable_mappings.
1441 (core_target::xfer_partial): Call...
1442 (core_target::xfer_memory_via_mappings): New method.
1444 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1446 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1449 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1451 * dwarf2/read.c (struct field_info): Fix indentation.
1453 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1455 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1456 ordering in comment.
1457 * frame.c (frame_id_eq): Fix indentation.
1459 2020-08-31 Scott Linder <scott@scottlinder.com>
1460 Simon Marchi <simon.marchi@efficios.com>
1462 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1463 inline frame ids in outer frame.
1465 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1467 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1468 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1469 (outer_frame_id): Use FID_STACK_OUTER instead of
1471 (frame_id_p): Don't check for outer_frame_id.
1473 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1475 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1476 regnum/frame in value. Call allocate_value_lazy.
1477 * frame.c (frame_unwind_register_value): Use
1478 val_print_not_saved.
1480 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1482 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1484 2020-08-29 Pedro Alves <pedro@palves.net>
1486 * progspace.c (print_program_space): Use all_inferiors. Switch to
1487 the inferior before calling target_pid_to_str.
1489 2020-08-28 Tom Tromey <tom@tromey.com>
1491 * xcoffread.c (xcoff_end_psymtab): Update comment.
1492 * dbxread.c (dbx_end_psymtab): Update comment.
1494 2020-08-28 Tom de Vries <tdevries@suse.de>
1497 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1499 (create_breakpoint): Same.
1500 (base_breakpoint_decode_location): Same.
1501 (bkpt_create_sals_from_location): Same.
1502 (bkpt_decode_location): Same.
1503 (bkpt_probe_create_sals_from_location): Same.
1504 (bkpt_probe_decode_location): Same.
1505 (tracepoint_create_sals_from_location): Same.
1506 (tracepoint_decode_location): Same.
1507 (tracepoint_probe_decode_location): Same.
1508 (strace_marker_create_sals_from_location): Same.
1509 (strace_marker_decode_location): Same.
1510 (create_sals_from_location_default): Same.
1511 (decode_location_default): Same.
1512 * breakpoint.h (struct breakpoint_ops): Same.
1513 (create_breakpoint): Same.
1514 * linespec.h (decode_line_full): Same.
1515 * linespec.c (decode_line_full): Same. Throw error if
1516 result.size () == 0.
1518 2020-08-27 Pedro Alves <pedro@palves.net>
1521 * breakpoint.c (until_break_fsm) <location_breakpoint,
1522 caller_breakpoint>: Delete fields.
1523 <breakpoints>: New field.
1524 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1525 two individual breakpoints.
1526 (until_break_fsm::should_stop): Loop over breakpoints in the
1528 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1530 (until_break_command): Handle location expanding into multiple
1533 2020-08-27 Pedro Alves <pedro@palves.net>
1536 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1537 bp_until breakpoints user-specified locations. Update intro
1540 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1542 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1543 gdb_bfd_sections): New.
1544 * maint.c (print_bfd_section_info): Change param type to
1545 maint_print_section_data.
1546 (print_objfile_section_info): Likewise.
1547 (print_bfd_section_info_maybe_relocated): Likewise.
1548 (maintenance_info_sections): Use gdb_bfd_sections.
1550 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1552 * MAINTAINERS: Add ARC target and maintainer.
1554 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1556 * configure.tgt: ARC support for GNU/Linux.
1557 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1558 * arc-linux-tdep.c: New file.
1559 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1560 * arc-tdep.c (arc_write_pc): Use it.
1562 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1564 * arc-tdep.c (arc_check_for_hardware_loop): New.
1565 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1567 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1569 * arc-tdep.h: Include "gdbarch.h".
1571 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1574 (arc_gdbarch_features): New class to stir the selection of target XML.
1575 (arc_create_target_description): Use FEATURES to choose XML target.
1576 (arc_lookup_target_description): Use arc_create_target_description
1577 to create _new_ target descriptions or return the already created
1578 ones if the FEATURES is the same.
1579 * arch/arc.c: Implementation of prototypes described above.
1580 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1581 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1582 * arc-tdep.c (*_feature_name): Make feature names consistent.
1583 (arc_register_feature): A new struct to hold information about
1584 registers of a particular target/feature.
1585 (arc_check_tdesc_feature): Check if XML provides registers in
1586 compliance with ARC_REGISTER_FEATURE structs.
1587 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1588 (determine_*_reg_feature_set): Which feature name to look for.
1589 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1590 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1591 to expected ISA enums to be used in arc_gdbarch_features structs.
1592 * features/Makefile (FEATURE_XMLFILES): Add new files.
1593 * gdb/features/arc/v1-aux.c: New file.
1594 * gdb/features/arc/v1-aux.xml: Likewise.
1595 * gdb/features/arc/v1-core.c: Likewise.
1596 * gdb/features/arc/v1-core.xml: Likewise.
1597 * gdb/features/arc/v2-aux.c: Likewise.
1598 * gdb/features/arc/v2-aux.xml: Likewise.
1599 * gdb/features/arc/v2-core.c: Likewise.
1600 * gdb/features/arc/v2-core.xml: Likewise.
1601 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1603 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1604 Andrew Burgess <andrew.burgess@embecosm.com>
1607 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1608 an assert. Remove single element array indexing pattern as the
1609 MULTI_SUBSCRIPT support will handle this case too.
1611 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1613 * value.h (valprint_check_validity): Move declaration from
1615 * valprint.h (valprint_check_validity): ... to here.
1617 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1619 * debug.h: New file.
1620 * debug.c (debug_prefixed_vprintf): New function.
1621 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1622 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1624 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1626 * infrun.h (infrun_debug_printf_1): New function declaration.
1627 (infrun_debug_printf): New macro.
1628 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1630 (infrun_debug_printf): New function.
1631 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1632 (handle_jit_event): Likewise.
1634 2020-08-21 Mark Wielaard <mark@klomp.org>
1636 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1638 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1640 * frame.c (enum class frame_id_status): New.
1641 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1642 (fprintf_frame): Update.
1643 (compute_frame_id): Set frame id status to "computing" on entry.
1644 Set it back to "not_computed" on failure and to "computed" on
1646 (get_frame_id): Assert the frame id is not being computed.
1647 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1648 (create_new_frame): Likewise.
1649 (frame_cleanup_after_sniffer): Update assert.
1651 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1653 * regcache.c (pid_ptid_regcache_map): New type.
1654 (target_ptid_regcache_map): Remove.
1655 (target_pid_ptid_regcache_map): New type.
1656 (regcaches): Change type to target_pid_ptid_regcache_map.
1657 (get_thread_arch_aspace_regcache): Update.
1658 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1660 (regcaches_size): Update.
1661 (regcache_count): Update.
1662 (registers_changed_ptid_target_pid_test): New.
1663 (_initialize_regcache): Register new test.
1665 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1667 * regcache.c (regcache_count): New.
1668 (struct regcache_test_data): New.
1669 (regcache_test_data_up): New.
1670 (populate_regcaches_for_test): New.
1671 (regcaches_test): Remove.
1672 (get_thread_arch_aspace_regcache_test): New.
1673 (registers_changed_ptid_all_test): New.
1674 (registers_changed_ptid_target_test): New.
1675 (registers_changed_ptid_target_ptid_test): New.
1676 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1677 (_initialize_regcache): Register new tests.
1679 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1681 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1682 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1683 gdbarch and aspace parameter. Use current inferior's aspace.
1684 Validate regcache's arch value.
1685 (regcaches_test): Update.
1687 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1689 * regcache.c (regcaches_test): Call registers_changed.
1691 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1693 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1695 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1697 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1698 to find the end of prologue for flang compiled binaries.
1699 * arm-tdep.c (arm_skip_prologue): Likewise.
1700 * i386-tdep.c (i386_skip_prologue): Likewise.
1701 * producer.c (producer_is_llvm): New function.
1702 (producer_parsing_tests): Added new tests for clang/flang.
1703 * producer.h (producer_is_llvm): New declaration.
1705 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1707 * linux-nat.c (linux_nat_debug_printf): New function.
1708 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1710 2020-08-18 Aaron Merey <amerey@redhat.com>
1712 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1713 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1714 (CLIBS): Add DEBUGINFOD_LIBS.
1716 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1718 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1721 2020-08-17 Tom Tromey <tromey@adacore.com>
1723 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1724 ada_get_decoded_value returns NULL.
1726 2020-08-17 Tom Tromey <tromey@adacore.com>
1728 * python/py-inferior.c (infpy_search_memory): Use
1729 gdb_py_object_from_ulongest.
1730 * python/py-infevents.c (create_inferior_call_event_object)
1731 (create_memory_changed_event_object): Use
1732 gdb_py_object_from_ulongest.
1733 * python/py-linetable.c (ltpy_entry_get_pc): Use
1734 gdb_py_object_from_ulongest.
1736 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1738 * loc.c (class symbol_needs_eval_context): Fix indentation.
1740 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1742 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1745 2020-08-17 Tom de Vries <tdevries@suse.de>
1748 * gdbtypes.c (dump_dynamic_prop): New function.
1749 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1751 2020-08-15 Tom de Vries <tdevries@suse.de>
1754 * stack.c (print_frame_args): Temporarily set the selected
1755 frame to FRAME while printing the frame's arguments.
1757 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1759 PR breakpoints/26385
1760 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1761 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1763 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1765 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1766 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1767 and >= to check return value instead of == -1 and != -1.
1769 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1771 * utils.h (class gdb_argv) <as_array_view>: New method.
1772 * utils.c (gdb_argv_as_array_view_test): New.
1773 (_initialize_utils): Register selftest.
1774 * maint.c (maintenance_selftest): Use the new method.
1776 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1778 * target.h (supports_dumpcore, dumpcore): New
1779 function declarations.
1780 * target.c (supports_dumpcore, dumpcore): New
1782 * target-delegates.c: Rebuild.
1783 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1784 and target_dumpcore ().
1786 2020-08-13 Aaron Merey <amerey@redhat.com>
1788 * debuginfod-support.c: Replace global variables with user_data.
1790 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1792 * maint.c (maintenance_selftest): Split args and pass array_view
1795 2020-08-12 Luis Machado <luis.machado@linaro.org>
1797 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1799 Use %s and pulongest to print the length.
1801 2020-08-12 Pedro Alves <palves@redhat.com>
1803 * NEWS: Move "Multi-target debugging support" item to the
1804 "Changes since GDB 9" section.
1806 2020-08-12 Pedro Alves <palves@redhat.com>
1809 * progspace.c (program_space::remove_objfile): Invalidate the
1812 2020-08-11 Tom de Vries <tdevries@suse.de>
1814 * MAINTAINERS: Mark ms1 as deleted.
1816 2020-08-10 Luis Machado <luis.machado@linaro.org>
1820 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1822 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1823 movz/str/stur/stp skipping behavior.
1825 2020-08-10 Luis Machado <luis.machado@linaro.org>
1827 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1828 struct user_sve_header instead of struct sve_context.
1830 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1832 * read.h (dwarf2_fetch_die_loc_sect_off,
1833 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1834 `void *` parameter with function_view.
1835 * read.c (dwarf2_fetch_die_loc_sect_off,
1836 dwarf2_fetch_die_loc_cu_off): Likewise.
1837 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1838 (per_cu_dwarf_call): Adjust.
1839 (get_frame_address_in_block_wrapper): Remove.
1840 (indirect_synthetic_pointer): Adjust.
1841 (get_ax_pc): Remove.
1842 (dwarf2_compile_expr_to_ax): Adjust.
1844 2020-08-08 Tom de Vries <tdevries@suse.de>
1847 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1849 * regcache.c (get_thread_arch_aspace_regcache): Same.
1851 2020-08-07 Tom Tromey <tromey@adacore.com>
1853 * ravenscar-thread.c
1854 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1856 (ravenscar_thread_target::wait): Check
1857 runtime_initialized.
1858 (ravenscar_thread_target::prepare_to_store)
1859 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1860 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1861 (ravenscar_thread_target::stopped_by_watchpoint)
1862 (ravenscar_thread_target::stopped_data_address)
1863 (ravenscar_thread_target::core_of_thread): Use
1864 scoped_restore_current_thread and
1865 set_base_thread_from_ravenscar_task.
1867 2020-08-07 Tom Tromey <tromey@adacore.com>
1869 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1871 2020-08-07 Tom Tromey <tromey@adacore.com>
1873 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1874 update_inferior_ptid before update_thread_list.
1875 (temporarily_change_regcache_ptid): New class.
1876 (ravenscar_thread_target::fetch_registers)
1877 (ravenscar_thread_target::store_registers)
1878 (ravenscar_thread_target::prepare_to_store): Use base thread when
1879 forwarding operation.
1881 2020-08-07 Tom Tromey <tromey@adacore.com>
1883 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1886 2020-08-07 Tom Tromey <tromey@adacore.com>
1888 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1890 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1892 (ravenscar_thread_target::add_thread): Rename from
1893 ravenscar_add_thread.
1894 (ravenscar_thread_target::update_thread_list): Use a lambda.
1895 (ravenscar_thread_target::xfer_partial): New method.
1897 2020-08-07 Tom Tromey <tromey@adacore.com>
1899 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1901 (iterate_over_live_ada_tasks): Change type of argument.
1902 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1905 2020-08-07 Tom Tromey <tromey@adacore.com>
1907 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1909 (ravenscar_thread_target::extra_thread_info): Remove.
1910 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1911 defer to target beneath for non-Ravenscar threads.
1913 2020-08-07 Tom Tromey <tromey@adacore.com>
1915 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1916 get_base_thread_from_ravenscar_task>: Now methods.
1917 <m_cpu_map>: New member.
1918 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1919 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1920 (ravenscar_thread_target::task_is_currently_active): Update.
1921 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1923 (ravenscar_thread_target::add_active_thread): Put initial thread
1926 2020-08-07 Tom Tromey <tromey@adacore.com>
1928 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1931 2020-08-07 Tom Tromey <tromey@adacore.com>
1933 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1934 runtime_initialized.
1936 2020-08-07 Tom Tromey <tromey@adacore.com>
1938 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1940 (ravenscar_thread_target::add_active_thread): Now public.
1941 (ravenscar_inferior_created): Call add_active_thread after pushing
1944 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1946 * regcache.c (ptid_regcache_map): New type.
1947 (target_ptid_regcache_map): New type.
1948 (regcaches): Change type to target_ptid_regcache_map.
1949 (get_thread_arch_aspace_regcache): Update to regcaches' new
1951 (regcache_thread_ptid_changed): Likewise.
1952 (registers_changed_ptid): Likewise.
1953 (regcaches_size): Likewise.
1954 (regcaches_test): Update.
1955 (regcache_thread_ptid_changed): Update.
1956 * regcache.h (regcache_up): New type.
1957 * gdbsupport/ptid.h (hash_ptid): New struct.
1959 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1961 * observable.h (thread_ptid_changed): Add parameter
1962 `process_stratum_target *`.
1963 * infrun.c (infrun_thread_ptid_changed): Add parameter
1964 `process_stratum_target *` and use it.
1965 (selftests): New namespace.
1966 (infrun_thread_ptid_changed): New function.
1967 (_initialize_infrun): Register selftest.
1968 * regcache.c (regcache_thread_ptid_changed): Add parameter
1969 `process_stratum_target *` and use it.
1970 (regcache_thread_ptid_changed): New function.
1971 (_initialize_regcache): Register selftest.
1972 * thread.c (thread_change_ptid): Pass target to
1973 thread_ptid_changed observable.
1975 2020-08-06 Caroline Tice <cmtice@google.com>
1977 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1978 (struct dwp_sections): Update field comments. Add loclists and
1980 (struct virtual_v2_dwo_sections): Rename struct to
1981 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1982 size & offset fields for loclists and rnglists.
1983 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1984 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1985 skipping dummy type units.
1986 (create_dwp_hash_table): Update the large comment above the function to
1987 discuss Version 5 DWP files as well, with references. Update all the
1988 version checks in the function to check for version 5 as well. Add new
1989 section at the end to create dwp hash table for version 5.
1990 (create_dwp_v2_section): Rename function to
1991 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1992 Add V5 to error message text.
1993 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1994 into calls to create_dwp_v2_or_v5_section.
1995 (create_dwo_unit_in_dwp_v5): New function.
1996 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1997 check for version2; add else clause to handle version 5.
1998 (open_and_init_dwo_file): Add code to check dwarf version & only call
1999 create_debug_types_hash_table (with sections.types) if version is not 5;
2000 else call create_debug_type_hash_table, with sections.info.
2001 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2003 (dwarf2_locate_v5_dwp_sections): New function.
2004 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2005 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2007 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2009 * regcache.h (class regcache): Remove friend
2010 registers_changed_ptid.
2011 <regcache_thread_ptid_changed>: Remove.
2012 <regcaches>: Remove.
2013 * regcache.c (regcache::regcaches): Rename to...
2014 (regcaches): ... this. Make static.
2015 (get_thread_arch_aspace_regcache): Update.
2016 (regcache::regcache_thread_ptid_changed): Rename to...
2017 (regcache_thread_ptid_changed): ... this. Update.
2018 (class regcache_access): Remove.
2019 (regcaches_test): Update.
2020 (_initialize_regcache): Update.
2021 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2024 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2026 * regcache.h (class regcache) <current_regcache>: Rename to...
2027 <regcaches>: ... this. Move doc here.
2028 * regcache.c (regcache::current_regcache) Rename to...
2029 (regcache::regcaches): ... this. Move doc to header.
2030 (get_thread_arch_aspace_regcache): Update.
2031 (regcache::regcache_thread_ptid_changed): Update.
2032 (registers_changed_ptid): Update.
2033 (class regcache_access) <current_regcache_size>: Rename to...
2034 <regcaches_size>: ... this.
2035 (current_regcache_test): Rename to...
2036 (regcaches_test): ... this.
2037 (_initialize_regcache): Update.
2039 2020-08-06 Victor Collod <vcollod@nvidia.com>
2041 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2043 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2045 * corelow.c (core_target::build_file_mappings): Don't output
2046 null pathname in warning.
2048 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2050 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2051 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2052 gdb.dwarf2/dw2-single-line-discriminators.exp,
2053 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2055 2020-08-05 Tom Tromey <tromey@adacore.com>
2058 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2059 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2060 Fix off-by-one and type size errors in ordinary case.
2062 2020-08-05 Tom de Vries <tdevries@suse.de>
2064 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2065 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2067 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2069 * frame.h (frame_id_p): Return bool.
2070 (frame_id_artificial_p): Return bool.
2071 (frame_id_eq): Return bool.
2072 (has_stack_frames): Return bool.
2073 (get_selected_frame): Fix typo in comment.
2074 (get_frame_pc_if_available): Return bool.
2075 (get_frame_address_in_block_if_available): Return bool.
2076 (get_frame_func_if_available): Return bool.
2077 (read_frame_register_unsigned): Return bool.
2078 (get_frame_register_bytes): Return bool.
2079 (safe_frame_unwind_memory): Return bool.
2080 (deprecated_frame_register_read): Return bool.
2081 (frame_unwinder_is): Return bool.
2082 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2084 <this_id::p>: Likewise.
2086 (frame_stash_add): Return bool.
2087 (get_frame_id): Use bool.
2088 (frame_id_build_special) Use bool.
2089 (frame_id_build_unavailable_stack): Use bool.
2090 (frame_id_build): Use bool.
2091 (frame_id_p): Return bool, use true/false instead of 1/0.
2092 (frame_id_artificial_p): Likewise.
2093 (frame_id_eq): Likewise.
2094 (frame_id_inner): Likewise.
2095 (get_frame_func_if_available): Likewise.
2096 (read_frame_register_unsigned): Likewise.
2097 (deprecated_frame_register_read): Likewise.
2098 (get_frame_register_bytes): Likewise.
2099 (has_stack_frames): Likewise.
2100 (inside_main_func): Likewise.
2101 (inside_entry_func): Likewise.
2102 (get_frame_pc_if_available): Likewise.
2103 (get_frame_address_in_block_if_available): Likewise.
2104 (frame_unwinder_is): Likewise.
2105 (safe_frame_unwind_memory): Likewise.
2106 (frame_unwind_arch): Likewise.
2108 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2110 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2111 type to cached_copy_status.
2112 (fprintf_frame): Adjust.
2113 (get_frame_func_if_available): Adjust.
2114 (frame_cleanup_after_sniffer): Adjust.
2116 2020-08-04 Mark Wielaard <mark@klomp.org>
2118 * MAINTAINERS (Write After Approval): Update email address.
2120 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2122 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2123 dynamic_prop::const_val.
2125 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2127 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2130 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2132 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2134 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2136 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2138 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2139 Jose E. Marchesi <jose.marchesi@oracle.com>
2141 * configure.tgt: Add entry for bpf-*-*.
2142 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2143 (ALLDEPFILES): Add bpf-tdep.c.
2144 * bpf-tdep.c: New file.
2145 * MAINTAINERS: Add bpf target and maintainer.
2146 * NEWS: Mention the support for the new target.
2148 2020-08-04 Tom de Vries <tdevries@suse.de>
2151 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2154 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2156 * syscalls/freebsd.xml: Regenerate.
2158 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2160 * syscalls/update-freebsd.sh: Fix usage and year range.
2162 2020-08-03 Tom de Vries <tdevries@suse.de>
2165 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2166 DW_LNE_lo_user/DW_LNE_hi_user range.
2168 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2171 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2174 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2176 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2178 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2180 * breakpoint.c (set_breakpoint_condition): Update the condition
2181 expressions after checking that the input condition string parses
2182 successfully and does not contain junk at the end.
2184 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2186 * breakpoint.c (set_breakpoint_condition): Update the
2187 condition string after parsing the new condition successfully.
2189 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2191 * proc-api.c (_STRUCTURED_PROC): Don't define.
2192 * proc-events.c: Likewise.
2193 * proc-flags.c: Likewise.
2194 * proc-why.c: Likewise.
2195 * procfs.c: Likewise.
2197 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2198 * configure, config.in: Regenerate.
2200 2020-07-30 Tom de Vries <tdevries@suse.de>
2203 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2204 m_red/m_green/m_blue in a union.
2206 2020-07-29 Tom de Vries <tdevries@suse.de>
2209 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2211 2020-07-28 Tom Tromey <tromey@adacore.com>
2214 * symtab.h (find_pc_partial_function_sym): Declare.
2215 * cli/cli-cmds.c (disassemble_command): Use
2216 find_pc_partial_function_sym. Check asm_demangle.
2217 * blockframe.c (cache_pc_function_sym): New global.
2218 (cache_pc_function_name): Remove.
2219 (clear_pc_function_cache): Update.
2220 (find_pc_partial_function_sym): New function, from
2221 find_pc_partial_function.
2222 (find_pc_partial_function): Rewrite using
2223 find_pc_partial_function_sym.
2225 2020-07-28 Tom Tromey <tromey@adacore.com>
2227 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2230 2020-07-28 Tom Tromey <tromey@adacore.com>
2232 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2233 <DW_OP_GNU_variable_value>: Cast to address type.
2235 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2237 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2238 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2239 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2240 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2241 (nbsd_get_siginfo_type): New.
2242 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2243 (_initialize_nbsd_tdep): New.
2245 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2248 * configure: Regenerated.
2250 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2253 * configure: Regenerated.
2255 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2257 * python/py-frame.c: Remove 'user-regs.h' include.
2258 (frapy_read_register): Rewrite to make use of
2259 gdbpy_parse_register_id.
2260 * python/py-registers.c (gdbpy_parse_register_id): New function,
2261 moved here from python/py-unwind.c. Updated the return type, and
2262 also accepts register descriptor objects.
2263 * python/py-unwind.c: Remove 'user-regs.h' include.
2264 (pyuw_parse_register_id): Moved to python/py-registers.c.
2265 (unwind_infopy_add_saved_register): Update to use
2266 gdbpy_parse_register_id.
2267 (pending_framepy_read_register): Likewise.
2268 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2270 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2272 * python/py-registers.c: Add 'user-regs.h' include.
2273 (register_descriptor_iter_find): New function.
2274 (register_descriptor_iterator_object_methods): New static global
2276 (register_descriptor_iterator_object_type): Add pointer to methods
2279 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2281 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2282 for all architectures on FreeBSD 11.3 and later.
2284 2020-07-27 Tom Tromey <tromey@adacore.com>
2286 * gcore.h (load_corefile): Don't declare.
2288 2020-07-27 Tom de Vries <tdevries@suse.de>
2290 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2291 * config.in: Regenerate.
2292 * configure: Regenerate.
2294 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2296 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2297 ws2tcpip.h. When checking whether socklen_t type is defined, use
2298 ws2tcpip.h if it is available and sys/socket.h isn't.
2299 * configure: Regenerate.
2300 * config.in: Regenerate.
2302 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2306 * valops.c (value_ind): Pass address to
2307 readjust_indirect_value_type.
2308 * value.c (readjust_indirect_value_type): Make parameter
2309 non-const, and add extra address parameter. Resolve original type
2311 * value.h (readjust_indirect_value_type): Update function
2312 signature and comment.
2314 2020-07-25 Tom de Vries <tdevries@suse.de>
2317 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2320 2020-07-24 Aaron Merey <amerey@redhat.com>
2322 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2323 * configure: Rebuild.
2325 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2328 * corelow.c (_initialize_corelow): Add period to help text
2329 for "maintenance print core-file-backed-mappings".
2331 2020-07-23 Pedro Alves <pedro@palves.net>
2333 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2334 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2336 * frame.c (frame_cache_generation, get_frame_cache_generation):
2338 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2339 (get_prev_frame_if_no_cycle): On exception, don't touch
2340 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2341 * frame.h (get_frame_cache_generation): Declare.
2343 2020-07-23 Tom de Vries <tdevries@suse.de>
2346 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2347 New default constructor.
2349 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2351 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2352 exclude non-statement entries.
2354 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2356 * NEWS (New commands): Mention new command
2357 "maintenance print core-file-backed-mappings".
2359 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2361 * corelow.c (gdbcmd.h): Include.
2362 (core_target::info_proc_mappings): New method.
2363 (get_current_core_target): New function.
2364 (maintenance_print_core_file_backed_mappings): New function.
2365 (_initialize_corelow): Add core-file-backed-mappings to
2366 "maint print" commands.
2368 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2370 * linux-tdep.c (dump_note_entry_p): New function.
2371 (linux_dump_mapping_p_ftype): New typedef.
2372 (linux_find_memory_regions_full): Add new parameter,
2373 should_dump_mapping_p.
2374 (linux_find_memory_regions): Adjust call to
2375 linux_find_memory_regions_full.
2376 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2377 call to linux_find_memory_regions_full.
2379 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2381 * corelow.c (solist.h, unordered_map): Include.
2382 (class core_target): Add field m_core_file_mappings and
2383 method build_file_mappings.
2384 (core_target::core_target): Call build_file_mappings.
2385 (core_target::~core_target): Free memory associated with
2386 m_core_file_mappings.
2387 (core_target::build_file_mappings): New method.
2388 (core_target::xfer_partial): Use m_core_file_mappings
2389 for memory transfers.
2390 * linux-tdep.c (linux_read_core_file_mappings): New
2392 (linux_core_info_proc_mappings): Rewrite to use
2393 linux_read_core_file_mappings.
2394 (linux_init_abi): Register linux_read_core_file_mappings.
2396 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2398 * arch-utils.c (default_read_core_file_mappings): New function.
2399 * arch-utils.c (default_read_core_file_mappings): Declare.
2400 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2401 * gdbarch.h, gdbarch.c: Regenerate.
2403 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2406 * corelow.c (core_target:xfer_partial): Revise
2407 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2408 case after first checking the stratum beneath the core
2410 (has_all_memory): Return true.
2411 * target.c (raw_memory_xfer_partial): Revise comment
2412 regarding use of has_all_memory.
2414 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2416 * exec.h (section_table_xfer_memory): Revise declaration,
2417 replacing section name parameter with an optional callback
2419 * exec.c (section_table_xfer_memory): Likewise.
2420 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2421 of section_table_xfer_memory.
2423 2020-07-22 Tom Tromey <tromey@adacore.com>
2425 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2426 lookup_symbol_search_name.
2428 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2430 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2431 redundant local variable.
2432 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2433 reference, not pointer, update code accordingly.
2435 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2436 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2438 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2439 * jit.c (jit_breakpoint_re_set_internal): Use the
2440 `skip_jit_symbol_lookup` field.
2442 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2443 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2445 * jit.c (jit_read_descriptor): Define the descriptor address once,
2447 (jit_breakpoint_deleted): Move the declaration of the loop variable
2448 `iter` into the loop header.
2449 (jit_breakpoint_re_set_internal): Move the declaration of the local
2450 variable `objf_data` to the first point of definition.
2451 (jit_event_handler): Move the declaration of local variables
2452 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2453 Rename `objf` to `jited`.
2455 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2457 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2459 * jit.c (get_jiter_objfile_data): Update.
2461 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2462 Simon Marchi <simon.marchi@polymtl.ca>
2464 * jit.c (struct jit_program_space_data): Remove.
2465 (jit_program_space_key): Remove.
2466 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2468 (get_jit_program_space_data): Remove.
2469 (jit_breakpoint_deleted): Iterate on all of the program space's
2471 (jit_inferior_init): Likewise.
2472 (jit_breakpoint_re_set_internal): Likewise. Also change return
2474 (jit_breakpoint_re_set): Pass current_program_space to
2475 jit_breakpoint_re_set_internal.
2477 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2479 * jit.h (struct jiter_objfile_data) <cached_code_address,
2480 jit_breakpoint>: Move to here from ...
2481 * jit.c (jit_program_space_data): ... here.
2482 (jiter_objfile_data::~jiter_objfile_data): Update.
2483 (jit_breakpoint_deleted): Update.
2484 (jit_breakpoint_re_set_internal): Update.
2486 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2488 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2490 (jit_read_descriptor): Remove NULL check.
2491 (jit_event_handler): Add an assertion.
2493 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2495 * jit.h (struct jit_objfile_data): Split into...
2496 (struct jiter_objfile_data): ... this ...
2497 (struct jited_objfile_data): ... and this.
2498 * objfiles.h (struct objfile) <jit_data>: Remove.
2499 <jiter_data, jited_data>: New fields.
2500 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2501 (jiter_objfile_data::~jiter_objfile_data): ... this.
2502 (get_jit_objfile_data): Rename to ...
2503 (get_jiter_objfile_data): ... this.
2504 (add_objfile_entry): Update.
2505 (jit_read_descriptor): Use get_jiter_objfile_data.
2506 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2507 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2508 (jit_inferior_exit_hook): Use objfile's jited_data field.
2510 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2512 * jit.h: Forward-declare `struct minimal_symbol`.
2513 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2514 constructor, destructor, and an objfile* field.
2515 * jit.c (jit_objfile_data): Remove.
2516 (struct jit_objfile_data): Migrate from here to jit.h.
2517 (jit_objfile_data::~jit_objfile_data): New destructor
2518 implementation with code moved from free_objfile_data.
2519 (free_objfile_data): Delete.
2520 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2521 (jit_find_objf_with_entry_addr): Ditto.
2522 (jit_inferior_exit_hook): Ditto.
2523 (_initialize_jit): Remove the call to
2524 register_objfile_data_with_cleanup.
2525 * objfiles.h (struct objfile) <jit_data>: New field.
2527 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2529 * jit.h: Forward-declare `struct objfile`.
2530 (jit_event_handler): Add a second parameter, the JITer objfile.
2531 * jit.c (jit_read_descriptor): Change the signature to take the
2532 JITer objfile as an argument instead of the jit_program_space_data.
2533 (jit_inferior_init): Update the call to jit_read_descriptor.
2534 (jit_event_handler): Use the new JITer objfile argument when calling
2535 jit_read_descriptor.
2536 * breakpoint.c (handle_jit_event): Update the call to
2537 jit_event_handler to pass the JITer objfile.
2539 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2541 * gdbarch.c: Regenerate.
2542 * gdbarch.h: Regenerate.
2543 * gdbarch.sh (handle_segmentation_fault): Remove method.
2544 * infrun.c (handle_segmentation_fault): Remove.
2545 (print_signal_received_reason): Remove call to
2546 handle_segmentation_fault.
2548 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2550 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2551 Rename to sparc64_linux_report_signal_info and add siggnal
2553 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2554 instead of sparc64_linux_handle_segmentation_fault.
2556 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2558 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2559 i386_linux_report_signal_info instead of
2560 i386_linux_handle_segmentation_fault.
2561 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2562 to i386_linux_report_signal_info and add siggnal argument.
2563 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2564 of i386_linux_handle_segmentation_fault.
2565 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2566 to i386_linux_report_signal_info and add siggnal argument.
2568 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2570 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2573 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2575 * gdbarch.c: Regenerate.
2576 * gdbarch.h: Regenerate.
2577 * gdbarch.sh (report_signal_info): New method.
2578 * infrun.c (print_signal_received_reason): Invoke gdbarch
2579 report_signal_info hook if present.
2581 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2583 * python/py-registers.c : Add 'unordered_map' include.
2584 (gdbpy_new_reggroup): Renamed to...
2585 (gdbpy_get_reggroup): ...this. Update to only create register
2586 group descriptors when needed.
2587 (gdbpy_reggroup_iter_next): Update.
2589 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2591 * python/py-registers.c (gdbpy_register_object_data): New static
2593 (gdbpy_register_object_data_init): New function.
2594 (gdbpy_new_register_descriptor): Renamed to...
2595 (gdbpy_get_register_descriptor): ...this, and update to reuse
2596 existing register descriptors where possible.
2597 (gdbpy_register_descriptor_iter_next): Update.
2598 (gdbpy_initialize_registers): Register new gdbarch data.
2600 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2602 * linux-nat.c (stopped_pids): Make static.
2604 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2607 * gdbtypes.c (ada_discrete_type_low_bound,
2608 ada_discrete_type_high_bound): Handle undefined bounds.
2610 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2612 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2614 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2617 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2619 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2620 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2621 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2622 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2623 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2626 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2628 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2629 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2630 which are deprecated in Guile 3.0.
2631 * configure.ac (try_guile_versions): Add "guile-3.0".
2632 * configure (try_guile_versions): Regenerate.
2633 * NEWS: Update entry.
2635 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2636 Doug Evans <dje@google.com>
2639 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2640 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2641 USING_GUILE_BEFORE_2_2.
2642 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2643 Change type to 'scm_t_port_type *'.
2644 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2645 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2646 parameter and honor it. Update callers.
2647 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2648 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2650 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2651 USING_GUILE_BEFORE_2_2.
2652 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2653 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2654 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2655 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2656 and 'SCM_PORT_TYPE'.
2657 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2658 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2659 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2660 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2661 [!USING_GUILE_BEFORE_2_2]: New functions.
2662 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2663 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2664 'gdbscm_memory_port_read'.
2665 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2666 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2667 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2669 (ioscm_init_memory_port): Remove.
2670 (ioscm_init_memory_port_stream): New function
2671 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2673 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2674 Return scm_from_uint (0).
2675 (gdbscm_set_memory_port_read_buffer_size_x)
2676 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2677 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2678 Return scm_from_uint (0).
2679 (gdbscm_set_memory_port_write_buffer_size_x)
2680 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2681 * configure.ac (try_guile_versions): Add "guile-2.2".
2682 * configure: Regenerate.
2685 2020-07-18 Tom Tromey <tom@tromey.com>
2687 * linux-nat.c (linux_multi_process): Remove.
2688 (linux_nat_target::supports_multi_process): Return true.
2690 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2692 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2693 (riscv_lookup_target_description): Return pointer out of
2695 * target-descriptions.c (allocate_target_description): Add
2697 (target_desc_deleter::operator()): Likewise.
2698 * target-descriptions.h (struct target_desc_deleter): Moved to
2700 (target_desc_up): Likewise.
2702 2020-07-17 Tom Tromey <tromey@adacore.com>
2704 * linux-nat.c (linux_nat_target::supports_non_stop)
2705 (linux_nat_target::always_non_stop_p): Use "true".
2706 (linux_nat_target::supports_disable_randomization): Use "true" and
2709 2020-07-16 Caroline Tice <cmtice@google.com>
2711 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2712 (RNGLIST_HEADER_SIZE64): New constant definition.
2713 (struct dwop_section_names): Add rnglists_dwo.
2714 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2715 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2716 (struct dwo_sections): Add rnglists field.
2717 (read_attribut_reprocess): Add tag parameter.
2718 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2719 (cu_debug_rnglists_section): New function (decl & definition).
2720 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2721 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2722 die whose range is being checked; get rnglist section from
2723 cu_debug_rnglists_section, to get from either objfile or dwo file as
2724 appropriate. Add cases for DW_RLE_base_addressx,
2725 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2726 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2727 test inside if-condition and updating complaint message.
2728 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2729 dwarf2_rnglists_process.
2730 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2731 dwarf2_ranges_process.
2732 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2733 need_ranges_base and update comment appropriately. Also pass die tag
2734 to dwarf2_ranges_read.
2735 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2736 need_ranges_base and update comment appropriately. Also pass die tag
2737 to dwarf2_ranges_process.
2738 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2739 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2740 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2741 need_ranges_base and update comment appropriately. Also pass die tag
2742 to read_attribute_reprocess and dwarf2_ranges_read.
2743 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2744 and update function comment appropriately.
2745 (read_loclist_index): Call read_loclists_rnglists_header instead of
2746 read_loclist_header.
2747 (read_rnglist_index): New function.
2748 (read_attribute_reprocess): Add tag parameter. Add code for
2749 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2750 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2752 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2754 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2757 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2759 * arch-utils.c (show_architecture): Update formatting of messages.
2761 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2763 * gdbtypes.h (struct type) <bounds>: Handle array and string
2765 * ada-lang.c (assign_aggregate): Use type::bounds on
2767 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2768 * c-varobj.c (c_number_of_children): Likewise.
2769 (c_describe_child): Likewise.
2770 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2771 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2772 (f_type_print_base): Likewise.
2773 * f-valprint.c (f77_array_offset_tbl): Likewise.
2774 (f77_get_upperbound): Likewise.
2775 (f77_print_array_1): Likewise.
2776 * guile/scm-type.c (gdbscm_type_range): Likewise.
2777 * m2-typeprint.c (m2_array): Likewise.
2778 (m2_is_long_set_of_type): Likewise.
2779 * m2-valprint.c (get_long_set_bounds): Likewise.
2780 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2781 * python/py-type.c (typy_range): Likewise.
2782 * rust-lang.c (rust_internal_print_type): Likewise.
2783 * type-stack.c (type_stack::follow_types): Likewise.
2784 * valarith.c (value_subscripted_rvalue): Likewise.
2785 * valops.c (value_cast): Likewise.
2787 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2789 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2790 callers to use the equivalent accessor methods.
2792 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2794 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2795 (struct type) <bit_stride>: New method.
2796 (TYPE_BIT_STRIDE): Remove.
2797 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2799 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2801 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2802 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2803 callers to use the equivalent accessor methods instead.
2805 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2807 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2808 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2809 callers to use the equivalent accessor methods instead.
2811 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2813 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2814 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2815 to use dynamic_prop::kind.
2817 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2819 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2820 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2821 to get the bound property's kind and check against
2824 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2826 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2827 all callers to use type::range_bounds followed by
2828 dynamic_prop::{low,high}.
2830 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2832 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2833 const_val, set_const_val, baton, set_locexpr, set_loclist,
2834 set_addr_offset, variant_parts, set_variant_parts,
2835 original_type, set_original_type>: New methods.
2836 <kind>: Rename to...
2837 <m_kind>: ... this. Update all users to use the new methods
2839 <data>: Rename to...
2840 <m_data>: ... this. Update all users to use the new methods
2843 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2845 * gdbtypes.c (get_discrete_bounds): Return failure if
2846 the range type's bounds are not both defined and constant
2848 (get_array_bounds): Update comment. Remove undefined bound check.
2850 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2852 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2853 the type::bounds method directly.
2855 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2857 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2858 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2859 are used to set the range type's bounds to use set_bounds.
2861 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2863 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2865 2020-07-10 Pedro Alves <pedro@palves.net>
2867 * gdbthread.h (inferior_ref): Define.
2868 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2869 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2871 (scoped_restore_current_thread::restore):
2872 Adjust to gdb::ref_ptr.
2873 (scoped_restore_current_thread::~scoped_restore_current_thread):
2874 Remove manual decref handling.
2875 (scoped_restore_current_thread::scoped_restore_current_thread):
2877 inferior_ref::new_reference/thread_info_ref::new_reference.
2878 Incref the thread before calling get_frame_id instead of after.
2879 Let TARGET_CLOSE_ERROR propagate.
2881 2020-07-10 Pedro Alves <pedro@palves.net>
2883 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2884 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2885 NOT_AVAILABLE_ERROR.
2886 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2887 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2889 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2890 Pedro Alves <pedro@palves.net>
2893 * infrun.c (threads_are_resumed_pending_p): Delete.
2894 (do_target_wait): Remove threads_are_executing and
2895 threads_are_resumed_pending_p checks from the inferior_matches
2896 lambda. Update comments.
2898 2020-07-10 Pedro Alves <pedro@palves.net>
2901 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2904 2020-07-10 Pedro Alves <pedro@palves.net>
2907 * infrun.c (handle_no_resumed): Handle multiple targets.
2909 2020-07-10 Pedro Alves <pedro@palves.net>
2912 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2915 2020-07-10 Pedro Alves <pedro@palves.net>
2918 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2919 threads, not all threads.
2921 2020-07-10 Pedro Alves <pedro@palves.net>
2924 * remote.c (remote_target::open_1): Pass remote target pointer as
2925 data to create_async_event_handler.
2926 (remote_async_inferior_event_handler): Mark async event handler
2927 before returning if the remote target still has either pending
2928 events or unacknowledged notifications.
2930 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2932 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2934 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2937 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2939 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2942 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2944 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2945 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2946 AT_FREEBSD_PS_STRINGS.
2948 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2950 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2951 of debugfile path on Windows.
2953 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2955 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2958 2020-07-08 Tom Tromey <tromey@adacore.com>
2960 * ada-lang.c (ada_exception_message_1): Use read_memory.
2962 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2965 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2966 special handling for inline frames.
2967 * findvar.c (value_of_register_lazy): Skip inline frames when
2968 creating lazy register values.
2969 * frame.c (frame_id_computed_p): Delete definition.
2970 * frame.h (frame_id_computed_p): Delete declaration.
2972 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2974 * NEWS: Mention additions to Python API.
2975 * python/py-arch.c (archpy_register_groups): New function.
2976 (arch_object_methods): Add 'register_groups' method.
2977 * python/py-registers.c (reggroup_iterator_object): New struct.
2978 (reggroup_object): New struct.
2979 (gdbpy_new_reggroup): New function.
2980 (gdbpy_reggroup_to_string): New function.
2981 (gdbpy_reggroup_name): New function.
2982 (gdbpy_reggroup_iter): New function.
2983 (gdbpy_reggroup_iter_next): New function.
2984 (gdbpy_new_reggroup_iterator): New function
2985 (gdbpy_initialize_registers): Register new types.
2986 (reggroup_iterator_object_type): Define new Python type.
2987 (gdbpy_reggroup_getset): New static global.
2988 (reggroup_object_type): Define new Python type.
2989 * python/python-internal.h
2991 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2993 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2994 * python/py-arch.c (archpy_registers): New function.
2995 (arch_object_methods): Add 'registers' method.
2996 * python/py-registers.c: New file.
2997 * python/python-internal.h
2998 (gdbpy_new_register_descriptor_iterator): Declare.
2999 (gdbpy_initialize_registers): Declare.
3000 * python/python.c (do_start_initialization): Call
3001 gdbpy_initialize_registers.
3002 * NEWS: Mention additions to the Python API.
3004 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3006 * NEWS: Mention new Python API method.
3007 * python/py-unwind.c (pending_framepy_architecture): New function.
3008 (pending_frame_object_methods): Add architecture method.
3010 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3012 * gdbarch.c: Regenerate.
3013 * gdbarch.h: Regenerate.
3014 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3015 (gdbarch_data): Use internal_error for the case where
3016 deprecated_set_gdbarch_data was originally needed.
3017 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3018 and use passed in obstack.
3019 (libunwind_frame_set_descr): Should no longer get back NULL from
3021 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3023 * user-regs.c (user_regs_init): Update parameters, and use passed
3025 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3026 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3028 2020-07-06 Tom de Vries <tdevries@suse.de>
3030 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3031 End-Of-Sequence in lte_is_less_than.
3032 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3033 "gdb: Don't reorder line table entries too much when sorting".
3035 2020-07-06 Tom de Vries <tdevries@suse.de>
3038 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3040 2020-07-05 Tom de Vries <tdevries@suse.de>
3043 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3044 std::uncaught_exceptions instead of deprecated
3045 std::uncaught_exception.
3047 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3049 * macroexp.h (macro_stringify): Return
3050 gdb::unique_xmalloc_ptr<char>.
3051 * macroexp.c (macro_stringify): Likewise.
3052 * macrotab.c (fixup_definition): Update.
3054 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3056 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3057 (lex_one_token): Update.
3058 * macroexp.c (struct macro_buffer) <release>: Return
3059 gdb::unique_xmalloc_ptr<char>.
3060 (macro_stringify): Update.
3061 (macro_expand): Update.
3062 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3063 * macroexp.h (macro_expand_next): Likewise.
3065 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3067 * macroexp.h (macro_lookup_ftype): Remove.
3068 (macro_expand, macro_expand_once, macro_expand_next): Remove
3069 lookup function parameters, add scope parameter.
3070 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3071 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3072 * macroscope.h (standard_macro_lookup): Change parameter type
3074 * macroscope.c (standard_macro_lookup): Likewise.
3075 * c-exp.y (lex_one_token): Update.
3076 * macrocmd.c (macro_expand_command): Likewise.
3077 (macro_expand_once_command): Likewise.
3079 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3081 * inf-loop.c (inferior_event_handler): Remove client_data param.
3082 * inf-loop.h (inferior_event_handler): Likewise.
3083 * infcmd.c (step_1): Adjust.
3084 * infrun.c (proceed): Adjust.
3085 (fetch_inferior_event): Remove client_data param.
3086 (infrun_async_inferior_event_handler): Adjust.
3087 * infrun.h (fetch_inferior_event): Remove `void *` param.
3088 * linux-nat.c (handle_target_event): Adjust.
3089 * record-btrace.c (record_btrace_handle_async_inferior_event):
3091 * record-full.c (record_full_async_inferior_event_handler):
3093 * remote.c (remote_async_inferior_event_handler): Adjust.
3095 2020-07-01 Tom Tromey <tom@tromey.com>
3097 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3098 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3100 2020-07-01 Tom Tromey <tom@tromey.com>
3102 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3104 (tui_win_info::make_window): Merge with
3105 tui_gen_win_info::make_window.
3106 (tui_win_info::make_visible): Move from tui_gen_win_info.
3107 * tui/tui-win.c (tui_win_info::max_width): Move from
3109 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3111 <window_factory>: Likewise.
3112 * tui/tui-layout.c (tui_win_info::resize): Move from
3114 (make_standard_window): Change return type.
3115 (get_locator_window, tui_get_window_by_name): Likewise.
3116 (tui_layout_window::apply): Remove a cast.
3117 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3118 (struct tui_win_info): Merge with tui_gen_win_info.
3119 (struct tui_gen_win_info): Remove.
3121 2020-07-01 Tom Tromey <tom@tromey.com>
3123 * tui/tui-stack.h (struct tui_locator_window): Derive from
3125 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3126 <can_box>: New method.
3128 2020-07-01 Tom Tromey <tom@tromey.com>
3130 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3132 2020-07-01 Tom Tromey <tom@tromey.com>
3134 * tui/tui-regs.c (tui_data_window::display_registers_from)
3135 (tui_data_window::display_registers_from)
3136 (tui_data_window::first_data_item_displayed)
3137 (tui_data_window::delete_data_content_windows): Update.
3138 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3140 (tui_data_window::check_register_values): Update.
3141 (tui_data_item_window::rerender): Add parameters. Update.
3142 (tui_data_item_window::refresh_window): Remove.
3143 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3145 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3147 <refresh_window, max_height, min_height>: Remove.
3148 <rerender>: Add parameters.
3149 <x, y, visible>: New members.
3150 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3151 <m_item_width>: New member.
3153 2020-07-01 Tom Tromey <tom@tromey.com>
3155 * tui/tui-regs.c (tui_data_window::show_register_group)
3156 (tui_data_window::check_register_values): Update.
3157 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3160 2020-07-01 Tom Tromey <tom@tromey.com>
3162 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3165 2020-07-01 Tom Tromey <tom@tromey.com>
3167 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3168 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3170 2020-07-01 Tom Tromey <tom@tromey.com>
3172 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3173 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3174 (struct tui_line_or_address): Move from tui-data.h.
3175 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3176 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3177 (tui_cmd_window, tui_source_window_base, tui_source_window)
3178 (tui_disasm_window): Don't declare.
3179 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3181 (SINGLE_KEY): Move to tui-stack.c.
3183 2020-07-01 Tom Tromey <tom@tromey.com>
3185 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3187 * tui/tui-regs.c (class tab_expansion_file): New.
3188 (tab_expansion_file::write): New method.
3189 (tui_register_format): Change return type. Use
3191 (tui_get_register, tui_data_window::display_registers_from)
3192 (tui_data_item_window::rerender): Update.
3193 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3194 * tui/tui-io.c (tui_expand_tabs): Remove.
3196 2020-07-01 Tom Tromey <tom@tromey.com>
3198 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3200 2020-07-01 Fangrui Song <maskray@google.com>
3202 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3204 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3206 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3207 forms for DW_AT_associated and DW_AT_allocated attributes,
3208 which is already checked in function attr_to_dynamic_prop.
3210 2020-06-30 Tom Tromey <tromey@adacore.com>
3212 * dwarf2/read.c (quirk_rust_enum): Correctly call
3213 alloc_rust_variant for default-less enum.
3215 2020-06-30 Tom Tromey <tromey@adacore.com>
3218 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3221 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3223 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3224 * gdbarch.h: Re-generate.
3226 2020-06-28 Tom Tromey <tom@tromey.com>
3228 * command.h (cmd_types): Remove.
3229 (cmd_type): Don't declare.
3230 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3232 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3233 * cli/cli-decode.c (cmd_type): Remove.
3235 2020-06-27 Pedro Alves <palves@redhat.com>
3237 * fork-child.c (prefork_hook): Adjust.
3238 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3240 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3241 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3242 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3243 Remove declarations.
3244 (struct inferior) <set_tty, tty>: New methods.
3245 (struct inferior) <terminal>: Rename to ...
3246 (struct inferior) <m_terminal>: ... this and make private.
3247 * main.c (captured_main_1): Adjust.
3248 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3249 (mi_cmd_inferior_tty_show): Adjust.
3250 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3251 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3253 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3255 * configure.ac: Add --enable-libctf: handle --disable-static
3257 * acinclude.m4: sinclude ../config/enable.m4.
3258 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3259 (LIBCTF): Substitute in.
3260 (CTF_DEPS): New, likewise.
3261 (CLIBS): libctf needs symbols from libbfd: move earlier.
3262 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3264 * ctfread.c: Surround in ENABLE_LIBCTF.
3265 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3266 * configure: Regenerate.
3267 * config.in: Likewise.
3269 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3271 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3273 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3275 * inferior.h (struct inferior) <terminal>: Change type to
3276 gdb::unique_xmalloc_ptr<char>.
3277 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3278 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3279 field, adjust to unique pointer.
3280 (get_inferior_io_terminal): Adjust to unique pointer.
3282 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3284 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3285 registers, not just the known core set of registers.
3287 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3289 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3290 fflags, frm, and fcsr registers.
3291 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3293 (riscv_tdesc_unknown_reg): New function.
3294 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3295 tdesc_use_registers.
3296 * riscv-tdep.h (struct gdbarch_tdep): Add
3297 unknown_csrs_first_regnum, unknown_csrs_count,
3298 duplicate_fflags_regnum, duplicate_frm_regnum, and
3299 duplicate_fcsr_regnum fields.
3301 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3303 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3304 callback, use the callback (when not null) to help number unknown
3306 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3307 (tdesc_use_registers): Add extra parameter to declaration.
3309 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3311 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3313 (class riscv_pending_register_alias): Likewise.
3314 (riscv_register_feature::register_info): Change 'required_p' field
3315 to 'required', and change its type. Add 'check' member function.
3316 (riscv_register_feature::register_info::check): Define new member
3318 (riscv_xreg_feature): Change initialisation of 'required' field.
3319 (riscv_freg_feature): Likewise.
3320 (riscv_virtual_feature): Likewise.
3321 (riscv_csr_feature): Likewise.
3322 (riscv_check_tdesc_feature): Take extra parameter, the csr
3323 tdesc_feature, rewrite the function to use the new
3324 riscv_register_feature::register_info::check function.
3325 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3327 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3329 * features/Makefile: Remove all references to the deleted files
3331 * features/riscv/32bit-csr.c: Deleted.
3332 * features/riscv/32bit-csr.xml: Deleted.
3333 * features/riscv/64bit-csr.c: Deleted.
3334 * features/riscv/64bit-csr.xml: Deleted.
3335 * features/riscv/rebuild-csr-xml.sh: Deleted.
3337 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3339 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3340 whitespace error for declaration of names member variable.
3341 (struct riscv_register_feature): Add new prefer_first_name member
3342 variable, and fix whitespace error in declaration of registers.
3343 (riscv_xreg_feature): Initialize prefer_first_name field.
3344 (riscv_freg_feature): Likewise.
3345 (riscv_virtual_feature): Likewise.
3346 (riscv_csr_feature): Likewise.
3347 (riscv_register_name): Expand on comments. Remove register name
3348 modifications for CSR and virtual registers.
3350 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3352 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3355 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3357 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3359 (class riscv_pending_register_alias): New class.
3360 (riscv_check_tdesc_feature): Take vector of pending aliases and
3361 populate it as appropriate.
3362 (riscv_setup_register_aliases): Delete.
3363 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3364 to riscv_check_tdesc_feature in all cases. Use the vector to
3365 create the register aliases.
3367 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3369 * sol2-tdep.c (sol2_static_transform_name): Remove.
3370 (sol2_init_abi): Don't register it.
3371 * gdbarch.sh (static_transform_name): Remove.
3372 * gdbarch.c, gdbarch.h: Regenerate.
3374 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3375 gdbarch_static_transform_name.
3376 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3377 * stabsread.c (define_symbol) <'X'>: Remove.
3378 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3381 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3382 <'S'>: Remove call to gdbarch_static_transform_name.
3384 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3386 * procfs.c (procfs_pre_trace): New function.
3387 (procfs_target::create_inferior): Pass it to fork_inferior.
3389 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3391 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3392 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3393 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3394 sol2-tdep.o, sparc-sol2-tdep.o.
3395 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3396 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3397 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3398 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3400 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3402 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3403 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3405 Remove calls to set_gdbarch_skip_solib_resolver,
3406 set_gdbarch_core_pid_to_str.
3407 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3408 (i386_sol2_static_transform_name): Remove.
3409 (i386_sol2_init_abi): Call sol2_init_abi.
3410 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3411 set_gdbarch_static_transform_name,
3412 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3413 Use sol2_sigtramp_p.
3414 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3415 (sol2_sigtramp_p): New function.
3416 (sol2_static_transform_name): New function.
3417 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3418 (sol2_init_abi): New function.
3419 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3420 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3421 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3422 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3423 (sparc_sol2_static_transform_name): Remove.
3424 (sparc32_sol2_init_abi): Call sol2_init_abi.
3425 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3426 set_gdbarch_static_transform_name,
3427 set_gdbarch_skip_solib_resolver,
3428 set_gdbarch_core_pid_to_str.
3429 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3430 (sparc_sol2_static_transform_name): Remove
3431 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3432 call sol2_sigtramp_p.
3433 (sparc64_sol2_init_abi): Call sol2_init_abi.
3434 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3435 set_gdbarch_static_transform_name,
3436 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3438 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3440 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3441 * exec.c (validate_exec_file): If from_tty, set both
3442 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3443 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3444 and from_tty, unconditionally ask a confirmation.
3446 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3448 * target-descriptions.c (tdesc_architecture_name): Protect against
3449 NULL pointer dereference.
3450 (maint_print_xml_tdesc_cmd): New function.
3451 (_initialize_target_descriptions): Register new 'maint print
3452 xml-tdesc' command and give it the filename completer.
3453 * NEWS: Mention new 'maint print xml-tdesc' command.
3455 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3457 * target-descriptions.c (class tdesc_compatible_info): New class.
3458 (struct target_desc): Change type of compatible vector.
3459 (tdesc_compatible_p): Update for change in type of
3460 target_desc::compatible.
3461 (tdesc_compatible_info_list): New function.
3462 (tdesc_compatible_info_arch_name): New function.
3463 (tdesc_add_compatible): Update for change in type of
3464 target_desc::compatible.
3465 (print_c_tdesc::visit_pre): Likewise.
3467 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3469 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3470 whitespace to underscore.
3471 (maint_print_c_tdesc_cmd): Use fake filename for target
3472 descriptions that came from the target.
3473 (_initialize_target_descriptions): Add filename command completion
3474 for 'maint print c-tdesc'.
3476 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3478 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3481 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3483 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3485 (dwarf2_find_location_expression): Likewise.
3486 (call_site_parameter_matches): Likewise.
3487 (dwarf2_compile_expr_to_ax): Likewise.
3488 (disassemble_dwarf_expression): Likewise.
3489 (loclist_describe_location): Likewise.
3491 2020-06-23 Pedro Alves <palves@redhat.com>
3493 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3494 progspace-and-thread.h. Include scoped-mock-context.h instead.
3495 (register_to_value_test): Use scoped_mock_context.
3496 * regcache.c: Include "scoped-mock-context.h".
3497 (cooked_read_test): Don't error out if a target is already pushed.
3498 Use scoped_mock_context. Adjust.
3499 * scoped-mock-context.h: New file.
3501 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3503 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3505 (ada_language::is_string_type_p): New member function.
3506 * c-lang.c (c_language_data): Delete la_is_string_type_p
3508 (cplus_language_data): Likewise.
3509 (asm_language_data): Likewise.
3510 (minimal_language_data): Likewise.
3511 * d-lang.c (d_language_data): Likewise.
3512 * f-lang.c (f_is_string_type_p): Delete function, implementation
3513 moved to f_language::is_string_type_p.
3514 (f_language_data): Delete la_is_string_type_p initializer.
3515 (f_language::is_string_type_p): New member function,
3516 implementation from f_is_string_type_p.
3517 * go-lang.c (go_is_string_type_p): Delete function, implementation
3518 moved to go_language::is_string_type_p.
3519 (go_language_data): Delete la_is_string_type_p initializer.
3520 (go_language::is_string_type_p): New member function,
3521 implementation from go_is_string_type_p.
3522 * language.c (language_defn::is_string_type_p): Define new member
3524 (default_is_string_type_p): Make static, add comment copied from
3526 (unknown_language_data): Delete la_is_string_type_p initializer.
3527 (unknown_language::is_string_type_p): New member function.
3528 (auto_language_data): Delete la_is_string_type_p initializer.
3529 (auto_language::is_string_type_p): New member function.
3530 * language.h (language_data): Delete la_is_string_type_p field.
3531 (language_defn::is_string_type_p): Declare new function.
3532 (default_is_string_type_p): Delete desclaration, move comment to
3534 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3535 moved to m2_language::is_string_type_p.
3536 (m2_language_data): Delete la_is_string_type_p initializer.
3537 (m2_language::is_string_type_p): New member function,
3538 implementation from m2_is_string_type_p.
3539 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3541 * opencl-lang.c (opencl_language_data): Likewise.
3542 * p-lang.c (pascal_is_string_type_p): Delete function,
3543 implementation moved to pascal_language::is_string_type_p.
3544 (pascal_language_data): Delete la_is_string_type_p initializer.
3545 (pascal_language::is_string_type_p): New member function,
3546 implementation from pascal_is_string_type_p.
3547 * rust-lang.c (rust_is_string_type_p): Delete function,
3548 implementation moved to rust_language::is_string_type_p.
3549 (rust_language_data): Delete la_is_string_type_p initializer.
3550 (rust_language::is_string_type_p): New member function,
3551 implementation from rust_is_string_type_p.
3552 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3555 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3557 * ada-lang.c (ada_language_data): Delete la_print_typedef
3559 (ada_language::print_typedef): New member function.
3560 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3561 (cplus_language_data): Likewise.
3562 (asm_language_data): Likewise.
3563 (minimal_language_data): Likewise.
3564 * d-lang.c (d_language_data): Likewise.
3565 * f-lang.c (f_language_data): Likewise.
3566 (f_language::print_typedef): New member function.
3567 * go-lang.c (go_language_data): Delete la_print_typedef
3569 * language.c (language_defn::print_typedef): Define member
3571 (unknown_language_data): Delete la_print_typedef initializer.
3572 (unknown_language::print_typedef): New member function.
3573 (auto_language_data): Delete la_print_typedef initializer.
3574 (auto_language::print_typedef): New member function.
3575 * language.h (language_data): Delete la_print_typedef field.
3576 (language_defn::print_typedef): Declare new member function.
3577 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3578 (default_print_typedef): Delete declaration.
3579 * m2-lang.c (m2_language_data): Delete la_print_typedef
3581 (m2_language::print_typedef): New member function.
3582 * objc-lang.c (objc_language_data): Delete la_print_typedef
3584 * opencl-lang.c (opencl_language_data): Likewise.
3585 * p-lang.c (pascal_language_data): Likewise.
3586 (pascal_language::print_typedef): New member function.
3587 * rust-lang.c (rust_print_typedef): Delete function,
3588 implementation moved to rust_language::print_typedef.
3589 (rust_language): Delete la_print_typedef initializer.
3590 (rust_language::print_typedef): New member function,
3591 implementation from rust_print_typedef.
3592 * typeprint.c (default_print_typedef): Delete.
3594 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3596 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3597 (ada_language::printstr): New member function.
3598 * c-lang.c (c_language_data): Delete la_printstr initializer.
3599 (cplus_language_data): Likewise.
3600 (asm_language_data): Likewise.
3601 (minimal_language_data): Likewise.
3602 * d-lang.c (d_language_data): Likewise.
3603 * f-lang.c (f_printstr): Rename to f_language::printstr.
3604 (f_language_data): Delete la_printstr initializer.
3605 (f_language::printstr): New member function, implementation from
3607 * go-lang.c (go_language_data): Delete la_printstr initializer.
3608 * language.c (language_defn::printstr): Define new member
3610 (unk_lang_printstr): Delete.
3611 (unknown_language_data): Delete la_printstr initializer.
3612 (unknown_language::printstr): New member function.
3613 (auto_language_data): Delete la_printstr initializer.
3614 (auto_language::printstr): New member function.
3615 * language.h (language_data): Delete la_printstr field.
3616 (language_defn::printstr): Declare new member function.
3617 (LA_PRINT_STRING): Update call to printstr.
3618 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3619 (m2_language_data): Delete la_printstr initializer.
3620 (m2_language::printstr): New member function, implementation from
3622 * objc-lang.c (objc_language_data): Delete la_printstr
3624 * opencl-lang.c (opencl_language_data): Likewise.
3625 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3626 (pascal_language_data): Delete la_printstr initializer.
3627 (pascal_language::printstr): New member function, implementation
3628 from pascal_printstr.
3629 * p-lang.h (pascal_printstr): Delete declaration.
3630 * rust-lang.c (rust_printstr): Update header comment.
3631 (rust_language_data): Delete la_printstr initializer.
3632 (rust_language::printstr): New member function.
3634 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3636 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3637 (ada_language::printchar): New member function.
3638 * c-lang.c (c_language_data): Delete la_printchar initializer.
3639 (cplus_language_data): Likewise.
3640 (asm_language_data): Likewise.
3641 (minimal_language_data): Likewise.
3642 * d-lang.c (d_language_data): Likewise.
3643 * f-lang.c (f_printchar): Rename to f_language::printchar.
3644 (f_language_data): Delete la_printchar initializer.
3645 (f_language::printchar): New member function, implementation from
3647 * go-lang.c (go_language_data): Delete la_printchar initializer.
3648 * language.c (unk_lang_printchar): Delete.
3649 (language_defn::printchar): Define new member function.
3650 (unknown_language_data): Delete la_printchar initializer.
3651 (unknown_language::printchar): New member function.
3652 (auto_language_data): Delete la_printchar initializer.
3653 (auto_language::printchar): New member function.
3654 * language.h (language_data): Delete la_printchar field.
3655 (language_defn::printchar): Declare new member function.
3656 (LA_PRINT_CHAR): Update call to printchar.
3657 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3658 (m2_language::printchar): New member function.
3659 * objc-lang.c (objc_language_data): Delete la_printchar
3661 * opencl-lang.c (opencl_language_data): Likewise.
3662 * p-lang.c (pascal_language_data): Delete la_printchar
3664 (pascal_language::printchar): New member function.
3665 * rust-lang.c (rust_printchar): Rename to
3666 rust_language::printchar.
3667 (rust_language_data): Delete la_printchar initializer.
3668 (rust_language::printchar): New member function, implementation
3669 from rust_printchar.
3671 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3673 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3674 (ada_language_data): Delete la_emitchar initializer.
3675 (ada_language::emitchar): New member function, implementation from
3677 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3678 (cplus_language_data): Likewise.
3679 (asm_language_data): Likewise.
3680 (minimal_language_data): Likewise.
3681 * d-lang.c (d_language_data): Likewise.
3682 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3683 (f_language_data): Delete la_emitchar initializer.
3684 (f_language::emitchar): New member function, implementation from
3686 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3687 * language.c (unk_lang_emit_char): Delete.
3688 (language_defn::emitchar): New member function definition.
3689 (unknown_language_data): Delete la_emitchar initializer.
3690 (unknown_language::emitchar): New member function.
3691 (auto_language_data): Delete la_emitchar initializer.
3692 (auto_language::emitchar): New member function.
3693 * language.h (language_data): Delete la_emitchar field.
3694 (language_defn::emitchar): New member field declaration.
3695 (LA_EMIT_CHAR): Update call to emitchar.
3696 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3697 (m2_language_data): Delete la_emitchar initializer.
3698 (m2_language::emitchar): New member function, implementation from
3700 * objc-lang.c (objc_language_data): Delete la_emitchar
3702 * opencl-lang.c (opencl_language_data): Likewise.
3703 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3704 (pascal_language_data): Delete la_emitchar initializer.
3705 (pascal_language::emitchar): New member function, implementation
3706 from pascal_emit_char.
3707 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3708 (rust_language_data): Delete la_emitchar initializer.
3709 (rust_language::emitchar): New member function, implementation
3712 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3714 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3715 (ada_language_data): Delete la_post_parser initializer.
3716 (ada_language::post_parser): New member function.
3717 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3718 (cplus_language_data): Likewise.
3719 (asm_language_data): Likewise.
3720 (minimal_language_data): Likewise.
3721 * d-lang.c (d_language_data): Likewise.
3722 * f-lang.c (f_language_data): Likewise.
3723 * go-lang.c (go_language_data): Likewise.
3724 * language.c (unknown_language_data): Likewise.
3725 (auto_language_data): Likewise.
3726 * language.h (language_data): Delete la_post_parser field.
3727 (language_defn::post_parser): New member function.
3728 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3729 * objc-lang.c (objc_language_data): Likewise.
3730 * opencl-lang.c (opencl_language_data): Likewise.
3731 * p-lang.c (pascal_language_data): Likewise.
3732 * parse.c (parse_exp_in_context): Update call to post_parser.
3733 (null_post_parser): Delete definition.
3734 * parser-defs.h (null_post_parser): Delete declaration.
3735 * rust-lang.c (rust_language_data): Delete la_post_parser
3738 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3740 * ada-lang.c (parse): Rename to ada_language::parser.
3741 (ada_language_data): Delete la_parser initializer.
3742 (ada_language::parser): New member function, implementation from
3744 * c-lang.c (c_language_data): Delete la_parser initializer.
3745 (cplus_language_data): Likewise.
3746 (asm_language_data): Likewise.
3747 (minimal_language_data): Likewise.
3748 * d-lang.c (d_language_data): Likewise.
3749 (d_language::parser): New member function.
3750 * f-lang.c (f_language_data): Delete la_parser initializer.
3751 (f_language::parser): New member function.
3752 * go-lang.c (go_language_data): Delete la_parser initializer.
3753 (go_language::parser): New member function.
3754 * language.c (unk_lang_parser): Delete.
3755 (language_defn::parser): Define new member function.
3756 (unknown_language_data): Delete la_parser initializer.
3757 (unknown_language::parser): New member function.
3758 (auto_language_data): Delete la_parser initializer.
3759 (auto_language::parser): New member function.
3760 * language.h (language_data): Delete la_parser field.
3761 (language_defn::parser): Declare new member function.
3762 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3763 (m2_language::parser): New member function.
3764 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3765 * opencl-lang.c (opencl_language_data): Likewise.
3766 * p-lang.c (pascal_language_data): Likewise.
3767 (pascal_language::parser): New member function.
3768 * parse.c (parse_exp_in_context): Update call to parser.
3769 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3770 (rust_language::parser): New member function.
3772 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3774 * top.c (print_gdb_configuration): Print --with-python-libdir
3775 configuration value.
3777 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3779 * NEWS: Mention change to the alias command.
3781 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3783 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3784 (alias_command_completer)
3785 (make_alias_options_def_group): New functions.
3786 (alias_opts, alias_option_defs): New struct and array.
3787 (alias_usage_error): Update usage.
3788 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3789 Use option framework.
3790 (_initialize_cli_cmds): Update alias command help.
3791 Update aliases command help.
3793 Add NULL for new default_args lookup_cmd argument.
3794 (valid_command_p): Rename to validate_aliased_command.
3795 Add NULL for new default_args lookup_cmd argument. Verify that the
3796 aliased_command has no default args.
3797 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3798 (lookup_cmd_1, lookup_cmd): New argument default_args.
3800 Add NULL for new default_args lookup_cmd argument.
3801 (print_help_for_command): Show default args under the layout
3802 alias some_alias = some_aliased_cmd some_alias_default_arg.
3803 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3804 xfree default_args in destructor.
3805 * cli/cli-script.c (process_next_line, do_define_command):
3806 Add NULL for new default_args lookup_cmd argument.
3807 * command.h: Declare new default_args argument in lookup_cmd
3809 * completer.c (complete_line_internal_1):
3810 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3811 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3812 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3814 * infcmd.c (_initialize_infcmd): Likewise.
3815 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3816 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3817 * python/py-param.c (add_setshow_generic): Likewise.
3818 * remote.c (_initialize_remote): Likewise.
3819 * top.c (execute_command): Prepend default_args if command has some.
3821 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3822 * tracepoint.c (validate_actionline, encode_actions_1):
3823 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3825 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3827 * jit.c (jit_read_descriptor): Use bool as the return type.
3828 (jit_breakpoint_re_set_internal): Use bool as the return type.
3829 Invert the return value logic; return true if the jit breakpoint
3830 has been successfully initialized.
3831 (jit_inferior_init): Update the call to
3832 jit_breakpoint_re_set_internal.
3834 2020-06-22 Pedro Alves <palves@redhat.com>
3837 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3838 Use the current inferior instead. Don't return
3839 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3841 * sol-thread.c (sol_thread_target::wait): Don't reference
3843 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3844 (sol_update_thread_list_callback): Use the current inferior's pid
3845 instead of inferior_ptid.
3847 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3849 * procfs.c: Cleanup many comments.
3851 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3852 (AFTER_WATCHFLAG): Replace by value.
3854 (MAIN_PROC_NAME_FORMAT): Inline ...
3855 (create_procinfo): ... here.
3857 (procfs_debug_inferior): Remove SYS_exec handling.
3858 (syscall_is_exec): Likewise.
3859 (procfs_set_exec_trap): Likewise.
3861 (syscall_is_lwp_exit): Inline in callers.
3862 (syscall_is_exit): Likewise.
3863 (syscall_is_exec): Likewise.
3864 (syscall_is_lwp_create): Likewise.
3866 (invalidate_cache): Remove #if 0 code.
3868 (make_signal_thread_runnable): Remove.
3869 (procfs_target::resume): Remove #if 0 code.
3871 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3874 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3876 (procfs_target::create_inferior): ... here.
3878 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3880 * exec.c (validate_exec_file): Ensure the build-id is up to
3881 date by calling reopen_exec_file (that checks file timestamp
3882 to decide to re-read the file).
3884 2020-06-18 Pedro Alves <palves@redhat.com>
3887 * gdbthread.h (delete_thread, delete_thread_silent)
3888 (find_thread_ptid): Update comments.
3889 * thread.c (current_thread_): New global.
3890 (is_current_thread): Move higher, and reimplement.
3891 (inferior_thread): Reimplement.
3892 (set_thread_exited): Use bool. Add assertions.
3893 (add_thread_silent): Simplify thread-reuse handling by always
3894 calling delete_thread.
3895 (delete_thread): Remove intro comment.
3896 (find_thread_ptid): Skip exited threads.
3897 (switch_to_thread_no_regs): Write to current_thread_.
3898 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3899 INFERIOR_PTID. Clear current_thread_.
3901 2020-06-18 Pedro Alves <palves@redhat.com>
3903 * aix-thread.c (pd_update): Use switch_to_thread.
3905 2020-06-18 Pedro Alves <palves@redhat.com>
3907 * ravenscar-thread.c (ravenscar_thread_target): Update.
3908 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3909 (ravenscar_thread_target::add_active_thread): ... this. Don't
3910 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3911 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3913 2020-06-18 Pedro Alves <palves@redhat.com>
3915 * nat/windows-nat.c (current_windows_thread): Remove.
3916 * nat/windows-nat.h (current_windows_thread): Remove.
3917 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3919 (display_selectors): Adjust to fetch the current
3920 windows_thread_info based on inferior_ptid.
3921 (fake_create_process): No longer write to current_windows_thread.
3922 (windows_nat_target::get_windows_debug_event):
3923 Don't set inferior_ptid or current_windows_thread.
3924 (windows_nat_target::wait): Adjust to not rely on
3925 current_windows_thread.
3926 (do_initial_windows_stuff): Now a method of windows_nat_target.
3927 Switch to the last_ptid thread.
3928 (windows_nat_target::attach): Adjust.
3929 (windows_nat_target::detach): Use switch_to_no_thread instead of
3930 writing to inferior_ptid directly.
3931 (windows_nat_target::create_inferior): Adjust.
3933 2020-06-18 Pedro Alves <palves@redhat.com>
3935 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3937 2020-06-18 Pedro Alves <palves@redhat.com>
3939 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3940 after creating it, instead of writing to inferior_ptid. Don't
3941 write to inferior_ptid.
3943 2020-06-18 Pedro Alves <palves@redhat.com>
3945 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3947 2020-06-18 Pedro Alves <palves@redhat.com>
3949 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3950 it, instead of writing to inferior_ptid.
3952 2020-06-18 Pedro Alves <palves@redhat.com>
3954 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3957 2020-06-18 Pedro Alves <palves@redhat.com>
3959 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3960 instead of writing to inferior_ptid directly.
3962 2020-06-18 Pedro Alves <palves@redhat.com>
3964 * corelow.c (core_target::close): Use switch_to_no_thread instead
3965 of writing to inferior_ptid directly.
3966 (add_to_thread_list, core_target_open): Use switch_to_thread
3967 instead of writing to inferior_ptid directly.
3969 2020-06-18 Pedro Alves <palves@redhat.com>
3971 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3973 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3975 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3976 inferior_ptid directly.
3977 (darwin_nat_target::init_thread_list): Switch to thread, instead
3978 of writing to inferior_ptid.
3979 (darwin_nat_target::attach): Don't write to inferior_ptid.
3980 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3982 2020-06-18 Pedro Alves <palves@redhat.com>
3984 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3986 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3987 Instead use switch_to_thread.
3988 (gnu_nat_target::detach): Use switch_to_no_thread
3989 instead of writing to inferior_ptid directly. Used passed-in
3990 inferior instead of looking up the inferior by pid.
3992 2020-06-18 Pedro Alves <palves@redhat.com>
3994 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3997 2020-06-18 Pedro Alves <palves@redhat.com>
3999 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4001 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4003 (nto_procfs_target::detach): Avoid referencing
4004 inferior_ptid. Use switch_to_no_thread instead of writing to
4005 inferior_ptid directly.
4006 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4007 instead of writing to inferior_ptid directly.
4008 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4011 2020-06-18 Pedro Alves <palves@redhat.com>
4013 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4014 after creating it, instead of writing to inferior_ptid.
4015 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4016 to inferior_ptid directly.
4017 (gdbsim_target::wait): Don't write to inferior_ptid.
4019 2020-06-18 Pedro Alves <palves@redhat.com>
4021 * remote.c (remote_target::remote_notice_new_inferior): Use
4022 switch_to_thread instead of writing to inferior_ptid directly.
4023 (remote_target::add_current_inferior_and_thread): Use
4024 switch_to_no_thread instead of writing to inferior_ptid directly.
4025 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4026 and switch_to_thread instead of using set_current_inferior or
4027 writing to inferior_ptid directly.
4029 2020-06-18 Pedro Alves <palves@redhat.com>
4031 * tracectf.c (ctf_target_open): Switch to added thread instead of
4032 writing to inferior_ptid directly.
4033 (ctf_target::close): Use switch_to_no_thread instead of writing to
4034 inferior_ptid directly.
4036 2020-06-18 Pedro Alves <palves@redhat.com>
4038 * tracefile-tfile.c (tfile_target_open): Don't write to
4039 inferior_ptid directly, instead switch to added thread.
4040 (tfile_target::close): Use switch_to_no_thread instead of writing
4041 to inferior_ptid directly.
4043 2020-06-18 Pedro Alves <palves@redhat.com>
4045 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4046 (procfs_target::detach): Use switch_to_no_thread
4047 instead of writing to inferior_ptid directly.
4048 (do_attach): Change return type to void. Switch to the added
4050 (procfs_target::create_inferior): Switch to the added thread.
4051 (procfs_do_thread_registers): Don't write to inferior_ptid.
4053 2020-06-18 Pedro Alves <palves@redhat.com>
4055 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4056 of writing to inferior_ptid.
4057 (scoped_restore_exited_inferior): Delete.
4058 (handle_vfork_child_exec_or_exit): Simplify using
4059 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4060 instead of writing to inferior_ptid.
4061 (THREAD_STOPPED_BY): Delete.
4062 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4063 (thread_stopped_by_hw_breakpoint): Delete.
4064 (save_waitstatus): Use
4065 scoped_restore_current_thread+switch_to_thread, and call
4066 target_stopped_by_watchpoint instead of
4067 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4068 instead of thread_stopped_by_sw_breakpoint, and
4069 target_stopped_by_hw_breakpoint instead of
4070 thread_stopped_by_hw_breakpoint.
4071 (handle_inferior_event)
4072 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4073 inferior_ptid directly, nor
4074 set_current_inferior/set_current_program_space. Use
4075 switch_to_thread / switch_to_inferior_no_thread instead.
4077 2020-06-18 Pedro Alves <palves@redhat.com>
4079 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4080 instead of writing to inferior_ptid.
4082 2020-06-18 Pedro Alves <palves@redhat.com>
4084 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4086 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4087 to the added thread.
4088 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4089 instead of writing to inferior_ptid.
4091 2020-06-18 Pedro Alves <palves@redhat.com>
4093 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4094 (register_to_value_test): Mock a program_space too. Heap-allocate
4095 the address space. Don't write to inferior_ptid. Use
4096 switch_to_thread instead.
4098 2020-06-18 Pedro Alves <palves@redhat.com>
4100 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4102 (find_signalled_thread()): New, factored out from
4103 linux_make_corefile_notes and adjusted to handle exited threads.
4104 (linux_make_corefile_notes): Adjust to use the new
4105 find_signalled_thread.
4107 2020-06-18 Pedro Alves <palves@redhat.com>
4109 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4110 of saving/restoring inferior_ptid.
4112 2020-06-17 Tom Tromey <tom@tromey.com>
4114 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4115 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4117 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4119 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4121 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4124 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4126 * regformats/reg-arm.dat: Remove.
4127 * regformats/reg-bfin.dat: Remove.
4128 * regformats/reg-cris.dat: Remove.
4129 * regformats/reg-crisv32.dat: Remove.
4130 * regformats/reg-m32r.dat: Remove.
4131 * regformats/reg-tilegx.dat: Remove.
4132 * regformats/reg-tilegx32.dat: Remove.
4134 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4136 * features/Makefile (WHICH): Remove arm files.
4137 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4138 * regformats/arm/arm-with-neon.dat: Remove.
4139 * regformats/arm/arm-with-vfpv2.dat: Remove.
4140 * regformats/arm/arm-with-vfpv3.dat: Remove.
4142 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4144 * features/Makefile (XMLTOC): Remove rx.xml.
4146 2020-06-17 Pedro Alves <palves@redhat.com>
4148 * gdbthread.h (thread_control_state) <trap_expected> Update
4151 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4153 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4154 ada_language::lookup_symbol_nonlocal.
4155 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4156 (ada_language::lookup_symbol_nonlocal): New member function,
4157 implementation from ada_lookup_symbol_nonlocal.
4158 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4160 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4162 (cplus_language::lookup_symbol_nonlocal): New member function.
4163 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4164 (minimal_language_data) Likewise.
4165 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4166 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4168 (d_language::lookup_symbol_nonlocal): New member function.
4169 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4171 (f_language::lookup_symbol_nonlocal): New member function.
4172 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4174 * language.c (unknown_language_data): Likewise.
4175 (auto_language_data): Likewise.
4176 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4178 (language_defn::lookup_symbol_nonlocal): New member function.
4179 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4181 * objc-lang.c (objc_language_data): Likewise.
4182 * opencl-lang.c (opencl_language_data): Likewise.
4183 * p-lang.c (pascal_language_data): Likewise.
4184 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4185 rust_language::lookup_symbol_nonlocal.
4186 (rust_language_data): Delete la_lookup_symbol_nonlocal
4188 (rust_language::lookup_symbol_nonlocal): New member function,
4189 implementation from rust_lookup_symbol_nonlocal.
4190 * symtab.c (lookup_symbol_aux): Update call to
4191 lookup_symbol_nonlocal.
4192 (basic_lookup_symbol_nonlocal): Rename to...
4193 (language_defn::lookup_symbol_nonlocal): ...this, and update
4194 header comment. Remove language_defn parameter, and replace with
4196 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4198 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4200 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4202 (ada_language::value_print_inner): New member function.
4203 * c-lang.c (c_language_data): Delete la_value_print_inner
4205 (cplus_language_data): Likewise.
4206 (asm_language_data): Likewise.
4207 (minimal_language_data): Likewise.
4208 * d-lang.c (d_language_data): Likewise.
4209 (d_language::value_print_inner): New member function.
4210 * f-lang.c (f_language_data): Delete la_value_print_inner
4212 (f_language::value_print_inner): New member function.
4213 * f-lang.h (f_value_print_innner): Rename to...
4214 (f_value_print_inner): ...this (note spelling of 'inner').
4215 * f-valprint.c (f_value_print_innner): Rename to...
4216 (f_value_print_inner): ...this (note spelling of 'inner').
4217 * go-lang.c (go_language_data): Delete la_value_print_inner
4219 (go_language::value_print_inner): New member function.
4220 * language.c (language_defn::value_print_inner): Define new member
4222 (unk_lang_value_print_inner): Delete.
4223 (unknown_language_data): Delete la_value_print_inner initializer.
4224 (unknown_language::value_print_inner): New member function.
4225 (auto_language_data): Delete la_value_print_inner initializer.
4226 (auto_language::value_print_inner): New member function.
4227 * language.h (language_data): Delete la_value_print_inner field.
4228 (language_defn::value_print_inner): Delcare new member function.
4229 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4231 (m2_language::value_print_inner): New member function.
4232 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4234 * opencl-lang.c (opencl_language_data): Likewise.
4235 * p-lang.c (pascal_language_data): Likewise.
4236 (pascal_language::value_print_inner): New member function.
4237 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4239 (rust_language::value_print_inner): New member function.
4240 * valprint.c (do_val_print): Update call to value_print_inner.
4242 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4244 * ada-lang.c (ada_language_data): Delete la_value_print
4246 (ada_language::value_print): New member function.
4247 * c-lang.c (c_language_data): Delete la_value_print initializer.
4248 (cplus_language_data): Likewise.
4249 (asm_language_data): Likewise.
4250 (minimal_language_data): Likewise.
4251 * d-lang.c (d_language_data): Likewise.
4252 * f-lang.c (f_language_data): Likewise.
4253 * go-lang.c (go_language_data): Likewise.
4254 * language.c (unk_lang_value_print): Delete.
4255 (language_defn::value_print): Define new member function.
4256 (unknown_language_data): Delete la_value_print initializer.
4257 (unknown_language::value_print): New member function.
4258 (auto_language_data): Delete la_value_print initializer.
4259 (auto_language::value_print): New member function.
4260 * language.h (language_data): Delete la_value_print field.
4261 (language_defn::value_print): Declare new member function.
4262 (LA_VALUE_PRINT): Update call to value_print.
4263 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4264 * objc-lang.c (objc_language_data): Likewise.
4265 * opencl-lang.c (opencl_language_data): Likewise.
4266 * p-lang.c (pascal_language_data): Likewise.
4267 (pascal_language::value_print): New member function.
4268 * rust-lang.c (rust_language_data): Delete la_value_print
4271 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4273 * ada-lang.c (ada_watch_location_expression): Rename to
4274 ada_language::watch_location_expression.
4275 (ada_language_data): Delete la_watch_location_expression
4277 (ada_language::watch_location_expression): New member function,
4278 implementation from ada_watch_location_expression.
4279 * breakpoint.c (watch_command_1): Update call to
4280 watch_location_expression.
4281 * c-lang.c (c_watch_location_expression): Rename to
4282 language_defn::watch_location_expression.
4283 (c_language_data): Delete la_watch_location_expression
4285 (cplus_language_data): Likewise.
4286 (asm_language_data): Likewise.
4287 (minimal_language_data): Likewise.
4288 * c-lang.h (c_watch_location_expression): Delete declaration.
4289 * d-lang.c (d_language_data): Delete la_watch_location_expression
4291 * f-lang.c (f_language_data): Likewise.
4292 * go-lang.c (go_language_data): Likewise.
4293 * language.c (language_defn::watch_location_expression): Member
4294 function implementation from c_watch_location_expression.
4295 (unknown_language_data): Delete la_watch_location_expression
4297 (auto_language_data): Likewise.
4298 * language.h (language_data): Delete la_watch_location_expression
4300 (language_defn::watch_location_expression): Declare new member
4302 * m2-lang.c (m2_language_data): Delete
4303 la_watch_location_expression initializer.
4304 * objc-lang.c (objc_language_data): Likewise.
4305 * opencl-lang.c (opencl_language_data): Likewise.
4306 * p-lang.c (pascal_language_data): Likewise.
4307 * rust-lang.c (rust_watch_location_expression): Rename to
4308 rust_language::watch_location_expression.
4309 (rust_language_data): Delete la_watch_location_expression
4311 (rust_language::watch_location_expression): New member function,
4312 implementation from rust_watch_location_expression.
4314 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4316 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4317 ada_language::collect_symbol_completion_matches.
4318 (ada_language_data): Delete la_collect_symbol_completion_matches
4320 (ada_language::collect_symbol_completion_matches): New member
4321 function, implementation from
4322 ada_collect_symbol_completion_matches.
4323 * c-lang.c (c_language_data): Delete
4324 la_collect_symbol_completion_matches initializer.
4325 (cplus_language_data): Likewise.
4326 (asm_language_data): Likewise.
4327 (minimal_language_data): Likewise.
4328 * d-lang.c (d_language_data): Likewise.
4329 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4330 f_language::collect_symbol_completion_matches.
4331 (f_language_data): Delete la_collect_symbol_completion_matches
4333 (f_language::collect_symbol_completion_matches) New member
4334 function, implementation from f_collect_symbol_completion_matches.
4335 * go-lang.c (go_language_data): Delete
4336 la_collect_symbol_completion_matches initializer.
4337 * language.c (unknown_language_data): Likewise.
4338 (auto_language_data): Likewise.
4339 * language.h (language_data): Delete
4340 la_collect_symbol_completion_matches field.
4341 (language_defn::collect_symbol_completion_matches): New member
4343 * m2-lang.c (m2_language_data): Delete
4344 la_collect_symbol_completion_matches initializer.
4345 * objc-lang.c (objc_language_data): Likewise.
4346 * opencl-lang.c (opencl_language_data): Likewise.
4347 * p-lang.c (pascal_language_data): Likewise.
4348 * rust-lang.c (rust_language_data): Likewise.
4349 * symtab.c (default_collect_symbol_completion_matches): Delete.
4350 (collect_symbol_completion_matches): Update call to
4351 collect_symbol_completion_matches.
4352 (collect_symbol_completion_matches_type): Likewise.
4353 * symtab.h (default_collect_symbol_completion_matches): Delete
4356 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4358 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4359 (ada_language_data): Delete la_word_break_characters initializer.
4360 (ada_language::word_break_characters): New member function.
4361 * c-lang.c (c_language_data): Delete la_word_break_characters
4363 (cplus_language_data): Likewise.
4364 (asm_language_data): Likewise.
4365 (minimal_language_data): Likewise.
4366 * completer.c: Update global comment.
4367 (advance_to_expression_complete_word_point): Update call to
4368 word_break_characters.
4369 (complete_files_symbols): Likewise.
4370 (complete_line_internal_1): Likewise.
4371 (default_completer_handle_brkchars): Likewise.
4372 (skip_quoted_chars): Likewise.
4373 * d-lang.c (d_language_data): Delete la_word_break_characters
4375 * f-lang.c (f_word_break_characters): Delete.
4376 (f_language_data): Delete la_word_break_characters initializer.
4377 (f_language::word_break_characters): New member function.
4378 * go-lang.c (go_language_data): Delete la_word_break_characters
4380 * language.c (unknown_language_data): Likewise.
4381 (auto_language_data): Likewise.
4382 * language.h (default_word_break_characters): Move declaration to
4383 earlier in the file.
4384 (language_data): Delete la_word_break_characters field.
4385 (language_defn::word_break_characters): New member function.
4386 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4388 * objc-lang.c (objc_language_data): Likewise.
4389 * opencl-lang.c (opencl_language_data): Likewise.
4390 * p-lang.c (pascal_language_data): Likewise.
4391 * rust-lang.c (rust_language_data): Likewise.
4393 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4395 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4396 (ada_language_data): Delete la_get_symbol_name_matcher
4398 (language_defn::get_symbol_name_matcher_inner): New member
4400 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4402 (cplus_language_data): Likewise.
4403 (cplus_language::get_symbol_name_matcher_inner): New member
4405 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4406 (minimal_language_data): Likewise.
4407 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4408 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4410 * dictionary.c (iter_match_first_hashed): Update call to
4411 get_symbol_name_matcher.
4412 (iter_match_next_hashed): Likewise.
4413 (iter_match_next_linear): Likewise.
4414 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4415 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4417 (f_language::get_symbol_name_matcher_inner): New member function.
4418 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4420 * language.c (default_symbol_name_matcher): Update header comment,
4422 (language_defn::get_symbol_name_matcher): New definition.
4423 (language_defn::get_symbol_name_matcher_inner): Likewise.
4424 (get_symbol_name_matcher): Delete.
4425 (unknown_language_data): Delete la_get_symbol_name_matcher
4427 (auto_language_data): Likewise.
4428 * language.h (language_data): Delete la_get_symbol_name_matcher
4430 (language_defn::get_symbol_name_matcher): New member function.
4431 (language_defn::get_symbol_name_matcher_inner): Likewise.
4432 (default_symbol_name_matcher): Delete declaration.
4433 * linespec.c (find_methods): Update call to
4434 get_symbol_name_matcher.
4435 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4437 * minsyms.c (lookup_minimal_symbol): Update call to
4438 get_symbol_name_matcher.
4439 (iterate_over_minimal_symbols): Likewise.
4440 * objc-lang.c (objc_language_data): Delete
4441 la_get_symbol_name_matcher initializer.
4442 * opencl-lang.c (opencl_language_data): Likewise.
4443 * p-lang.c (pascal_language_data): Likewise.
4444 * psymtab.c (psymbol_name_matches): Update call to
4445 get_symbol_name_matcher.
4446 * rust-lang.c (rust_language_data): Delete
4447 la_get_symbol_name_matcher initializer.
4448 * symtab.c (symbol_matches_search_name): Update call to
4449 get_symbol_name_matcher.
4450 (compare_symbol_name): Likewise.
4452 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4454 * ada-lang.c (ada_language_data): Delete la_compute_program
4456 * c-lang.c (c_language_data): Likewise.
4457 (c_language::compute_program): New member function.
4458 (cplus_language_data): Delete la_compute_program initializer.
4459 (cplus_language::compute_program): New member function.
4460 (asm_language_data): Delete la_compute_program initializer.
4461 (minimal_language_data): Likewise.
4462 * c-lang.h (c_compute_program): Update comment.
4463 (cplus_compute_program): Likewise.
4464 * compile/compile-c-support.c (c_compute_program): Likewise.
4465 (cplus_compute_program): Likewise.
4466 * compile/compile.c (compile_to_object): Update call to
4468 * d-lang.c (d_language_data): Delete la_compute_program
4470 * f-lang.c (f_language_data): Likewise.
4471 * go-lang.c (go_language_data): Likewise.
4472 * language.c (unknown_language_data): Likewise.
4473 (auto_language_data): Likewise.
4474 * language.h (language_data): Delete la_compute_program field.
4475 (language_defn::compute_program): New member function.
4476 * m2-lang.c (m2_language_data): Delete la_compute_program
4478 * objc-lang.c (objc_language_data): Likewise.
4479 * opencl-lang.c (opencl_language_data): Likewise.
4480 * p-lang.c (pascal_language_data): Likewise.
4481 * rust-lang.c (rust_language_data): Likewise.
4483 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4485 * ada-lang.c (ada_language_data) Delete
4486 la_class_name_from_physname initializer.
4487 * c-lang.c (c_language_data): Likewise.
4488 (cplus_language_data): Likewise.
4489 (cplus_language::class_name_from_physname): New member function.
4490 (asm_language_data): Delete la_class_name_from_physname
4492 (minimal_language_data): Likewise.
4493 * d-lang.c (d_language_data): Likewise.
4494 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4495 method on language_defn class.
4496 (guess_full_die_structure_name): Likewise.
4497 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4499 * go-lang.c (go_language_data): Likewise.
4500 * language.c (language_class_name_from_physname): Delete.
4501 (unk_lang_class_name): Delete.
4502 (unknown_language_data): Delete la_class_name_from_physname
4504 (auto_language_data): Likewise.
4505 * language.h (language_data): Delete la_class_name_from_physname
4507 (language_defn::class_name_from_physname): New function.
4508 (language_class_name_from_physname): Delete declaration.
4509 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4511 * objc-lang.c (objc_language_data): Likewise.
4512 * opencl-lang.c (opencl_language_data): Likewise.
4513 * p-lang.c (pascal_language_data): Likewise.
4514 * rust-lang.c (rust_language_data): Likewise.
4516 2020-06-16 Tom Tromey <tom@tromey.com>
4518 * tui/tui-data.h (STATUS_NAME): New macro.
4519 * tui/tui-layout.c (tui_remove_some_windows)
4520 (initialize_known_windows, tui_register_window)
4521 (tui_layout_split::remove_windows, initialize_layouts)
4522 (tui_new_layout_command): Don't use hard-coded window names.
4524 2020-06-16 Tom Tromey <tom@tromey.com>
4527 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4528 tui_initialize_readline. Only run once. Call rl_initialize.
4529 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4530 tui_initialize_readline.
4531 * tui/tui-io.c (tui_setup_io): Call
4532 tui_ensure_readline_initialized.
4533 * tui/tui-interp.c (tui_interp::init): Update.
4535 2020-06-16 Tom Tromey <tom@tromey.com>
4537 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4538 Also preserve the status window.
4540 2020-06-16 Tom Tromey <tom@tromey.com>
4542 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4543 where m_window==nullptr.
4545 2020-06-15 Tom Tromey <tromey@adacore.com>
4547 * windows-nat.c (windows_nat::handle_output_debug_string):
4549 (windows_nat::handle_ms_vc_exception): Update.
4550 * target.h (target_read_string): Change API.
4551 * target.c (target_read_string): Change API.
4552 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4554 * solib-frv.c (frv_current_sos): Update.
4555 * solib-dsbt.c (dsbt_current_sos): Update.
4556 * solib-darwin.c (darwin_current_sos): Update.
4557 * linux-thread-db.c (inferior_has_bug): Update.
4558 * expprint.c (print_subexp_standard): Update.
4559 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4560 (ada_exception_message_1): Update.
4562 2020-06-15 Tom Tromey <tromey@adacore.com>
4564 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4566 2020-06-15 Tom Tromey <tromey@adacore.com>
4568 * valprint.c (read_string): Update comment.
4569 * target.c (MIN): Remove.
4570 (target_read_string): Rewrite.
4572 2020-06-15 Tom Tromey <tromey@adacore.com>
4574 * corefile.c (read_memory_string): Remove.
4575 * ada-valprint.c (ada_value_print_ptr): Update.
4576 * ada-lang.h (ada_tag_name): Change return type.
4577 * ada-lang.c (type_from_tag): Update.
4578 (ada_tag_name_from_tsd): Change return type. Use
4580 (ada_tag_name): Likewise.
4581 * gdbcore.h (read_memory_string): Don't declare.
4583 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4585 * symtab.c (rbreak_command): Ignore Windows drive colon.
4587 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4589 * NEWS: Mention removed GDBserver host support.
4591 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4593 * features/riscv/rebuild-csr-xml.sh: Updated.
4595 2020-06-11 Tom Tromey <tom@tromey.com>
4598 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4600 2020-06-09 Jonny Grant <jg@jguk.org>
4601 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4603 * main.c (captured_main_1): Don't print new line after help.
4604 (print_gdb_help): add mailing list and IRC channel information
4605 to --help. Add new lines between items in the footer. Remove
4606 quotes around bug url.
4608 2020-06-11 Keith Seitz <keiths@redhat.com>
4611 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4612 Resolve typedefs for type length calculations.
4614 2020-06-10 Tom de Vries <tdevries@suse.de>
4617 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4618 (write_psymbols): Enable .gdb_index for ada.
4619 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4622 2020-06-10 Tom de Vries <tdevries@suse.de>
4624 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4625 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4626 namei" instead of "const char *name" argument.
4627 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4628 dw2_symtab_iter_init.
4630 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4632 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4633 to use type::field and field::type instead.
4635 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4637 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4638 to use field::type instead.
4640 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4642 * gdbtypes.h (struct field) <type, set_type>: New methods.
4643 Rename `type` field to...
4644 <m_type>: ... this. Change references throughout to use type or
4646 (FIELD_TYPE): Use field::type. Change call sites that modify
4647 the field's type to use field::set_type instead.
4649 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4651 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4652 to use type::index_type instead.
4654 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4656 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4658 (TYPE_INDEX_TYPE): Use type::index_type.
4659 * gdbtypes.c (create_array_type_with_stride): Likewise.
4661 2020-06-07 Tom Tromey <tom@tromey.com>
4663 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4665 (generic_value_print): Update.
4667 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4669 Revert commit 982a38f60b0.
4670 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4672 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4674 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4675 avoid use after free.
4677 2020-06-05 Tom de Vries <tdevries@suse.de>
4681 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4683 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4685 (dwarf2_read_debug_names): Likewise.
4686 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4687 object when re-using a per_bfd object with an index.
4689 2020-06-03 Tom de Vries <tdevries@suse.de>
4692 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4694 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4697 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4699 * ada-lang.c (ada_language_data): Delete skip_trampoline
4701 * c-lang.c (c_language_data): Likewise.
4702 (cplus_language_data): Likewise.
4703 (cplus_language::skip_trampoline): New member function.
4704 (asm_language_data): Delete skip_trampoline initializer.
4705 (minimal_language_data): Likewise.
4706 * d-lang.c (d_language_data): Likewise.
4707 * f-lang.c (f_language_data): Likewise.
4708 * go-lang.c (go_language_data): Likewise.
4709 * language.c (unk_lang_trampoline): Delete function.
4710 (skip_language_trampoline): Update.
4711 (unknown_language_data): Delete skip_trampoline initializer.
4712 (auto_language_data): Likewise.
4713 * language.h (language_data): Delete skip_trampoline field.
4714 (language_defn::skip_trampoline): New function.
4715 * m2-lang.c (m2_language_data): Delete skip_trampoline
4717 * objc-lang.c (objc_skip_trampoline): Delete function, move
4718 implementation to objc_language::skip_trampoline.
4719 (objc_language_data): Delete skip_trampoline initializer.
4720 (objc_language::skip_trampoline): New member function with
4721 implementation from objc_skip_trampoline.
4722 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4724 * p-lang.c (pascal_language_data): Likewise.
4725 * rust-lang.c (rust_language_data): Likewise.
4727 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4729 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4730 (ada_language::demangle): New member function.
4731 * c-lang.c (c_language_data): Delete la_demangle initializer.
4732 (cplus_language_data): Delete la_demangle initializer.
4733 (cplus_language::demangle): New member function.
4734 (asm_language_data): Delete la_demangle initializer.
4735 (minimal_language_data): Delete la_demangle initializer.
4736 * d-lang.c (d_language_data): Delete la_demangle initializer.
4737 (d_language::demangle): New member function.
4738 * f-lang.c (f_language_data): Delete la_demangle initializer.
4739 (f_language::demangle): New member function.
4740 * go-lang.c (go_language_data): Delete la_demangle initializer.
4741 (go_language::demangle): New member function.
4742 * language.c (language_demangle): Update.
4743 (unk_lang_demangle): Delete.
4744 (unknown_language_data): Delete la_demangle initializer.
4745 (unknown_language::demangle): New member function.
4746 (auto_language_data): Delete la_demangle initializer.
4747 (auto_language::demangle): New member function.
4748 * language.h (language_data): Delete la_demangle field.
4749 (language_defn::demangle): New function.
4750 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4751 * objc-lang.c (objc_language_data): Delete la_demangle
4753 (objc_language::demangle): New member function.
4754 * opencl-lang.c (opencl_language_data): Delete la_demangle
4756 * p-lang.c (pascal_language_data): Likewise.
4757 * rust-lang.c (rust_language_data): Likewise.
4758 (rust_language::demangle): New member function.
4760 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4762 * ada-lang.c (ada_language_data): Delete la_print_type
4764 (ada_language::print_type): New member function.
4765 * c-lang.c (c_language_data): Delete la_print_type initializer.
4766 (c_language::print_type): New member function.
4767 (cplus_language_data): Delete la_print_type initializer.
4768 (cplus_language::print_type): New member function.
4769 (asm_language_data): Delete la_print_type initializer.
4770 (asm_language::print_type): New member function.
4771 (minimal_language_data): Delete la_print_type initializer.
4772 (minimal_language::print_type): New member function.
4773 * d-lang.c (d_language_data): Delete la_print_type initializer.
4774 (d_language::print_type): New member function.
4775 * f-lang.c (f_language_data): Delete la_print_type initializer.
4776 (f_language::print_type): New member function.
4777 * go-lang.c (go_language_data): Delete la_print_type initializer.
4778 (go_language::print_type): New member function.
4779 * language.c (unk_lang_print_type): Delete.
4780 (unknown_language_data): Delete la_print_type initializer.
4781 (unknown_language::print_type): New member function.
4782 (auto_language_data): Delete la_print_type initializer.
4783 (auto_language::print_type): New member function.
4784 * language.h (language_data): Delete la_print_type field.
4785 (language_defn::print_type): New function.
4786 (LA_PRINT_TYPE): Update.
4787 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4788 (m2_language::print_type): New member function.
4789 * objc-lang.c (objc_language_data): Delete la_print_type
4791 (objc_language::print_type): New member function.
4792 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4793 to opencl_language::print_type.
4794 (opencl_language_data): Delete la_print_type initializer.
4795 (opencl_language::print_type): New member function, implementation
4796 from opencl_print_type.
4797 * p-lang.c (pascal_language_data): Delete la_print_type
4799 (pascal_language::print_type): New member function.
4800 * rust-lang.c (rust_print_type): Delete, implementation moved to
4801 rust_language::print_type.
4802 (rust_language_data): Delete la_print_type initializer.
4803 (rust_language::print_type): New member function, implementation
4804 from rust_print_type.
4806 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4808 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4809 implementation moves to...
4810 (ada_language::sniff_from_mangled_name): ...here. Update return
4812 (ada_language_data): Delete la_sniff_from_mangled_name
4814 * c-lang.c (c_language_data): Likewise.
4815 (cplus_language_data): Likewise.
4816 (cplus_language::sniff_from_mangled_name): New member function,
4817 implementation taken from gdb_sniff_from_mangled_name.
4818 (asm_language_data): Delete la_sniff_from_mangled_name
4820 (minimal_language_data): Likewise.
4821 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4822 implementation moves to cplus_language::sniff_from_mangled_name.
4823 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4824 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4826 (d_language::sniff_from_mangled_name): ...here.
4827 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4828 * f-lang.c (f_language_data): Likewise.
4829 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4831 (go_language::sniff_from_mangled_name): ...here.
4832 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4833 * language.c (language_sniff_from_mangled_name): Delete.
4834 (unknown_language_data): Delete la_sniff_from_mangled_name
4836 (auto_language_data): Likewise.
4837 * language.h (language_data): Delete la_sniff_from_mangled_name
4839 (language_defn::sniff_from_mangled_name): New function.
4840 (language_sniff_from_mangled_name): Delete declaration.
4841 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4843 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4844 implementation moves to...
4845 (objc_language::sniff_from_mangled_name): ...here.
4846 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4847 * opencl-lang.c (opencl_language_data): Likewise.
4848 * p-lang.c (pascal_language_data): Likewise.
4849 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4850 implementation moves to...
4851 (rust_language::sniff_from_mangled_name): ...here.
4852 (rust_language_data): Delete la_sniff_from_mangled_name
4854 * symtab.c (symbol_find_demangled_name): Call
4855 sniff_from_mangled_name member function.
4857 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4859 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4861 * c-lang.c (c_language_data): Likewise.
4862 (cplus_language_data): Likewise.
4863 (cplus_language::search_name_hash): New member function.
4864 (asm_language_data): Delete la_search_name_hash initializer.
4865 (minimal_language_data): Likewise.
4866 * d-lang.c (d_language_data): Likewise.
4867 * dictionary.c (default_search_name_hash): Rename to...
4868 (language_defn::search_name_hash): ...this.
4869 * f-lang.c (f_language_data): Likewise.
4870 (f_language::search_name_hash): New member function.
4871 * go-lang.c (go_language_data): Delete la_search_name_hash
4873 * language.c (unknown_language_data): Likewise.
4874 (auto_language_data): Likewise.
4875 * language.h (struct language_data): Delete la_search_name_hash
4877 (language_defn::search_name_hash): Declare new member function.
4878 (default_search_name_hash): Delete declaration.
4879 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4881 * objc-lang.c (objc_language_data): Likewise.
4882 * opencl-lang.c (opencl_language_data): Likewise.
4883 * p-lang.c (pascal_language_data): Likewise.
4884 * rust-lang.c (rust_language_data): Likewise.
4885 * symtab.c (search_name_hash): Update call.
4887 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4889 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4891 * c-lang.c (class compile_instance): Declare.
4892 (c_language_data): Delete la_get_compile_instance initializer.
4893 (c_language::get_compile_instance): New member function.
4894 (cplus_language_data): Delete la_get_compile_instance initializer.
4895 (cplus_language::get_compile_instance): New member function.
4896 (asm_language_data): Delete la_get_compile_instance initializer.
4897 (minimal_language_data): Likewise.
4898 * c-lang.h (c_get_compile_context): Update comment.
4899 (cplus_get_compile_context): Update comment.
4900 * compile/compile.c (compile_to_object): Update calls, don't rely
4901 on function pointer being NULL.
4902 * d-lang.c (d_language_data): Delete la_get_compile_instance
4904 * f-lang.c (f_language_data): Likewise.
4905 * go-lang.c (go_language_data): Likewise.
4906 * language.c (unknown_language_data): Likewise.
4907 (auto_language_data): Likewise.
4908 * language.h (language_data): Delete la_get_compile_instance field.
4909 (language_defn::get_compile_instance): New member function.
4910 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
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.
4917 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4919 * ada-lang.c (ada_add_all_symbols): Update comment.
4920 (ada_iterate_over_symbols): Delete, move implementation to...
4921 (ada_language::iterate_over_symbols): ...here, a new member
4922 function, rewrite to use range based for loop.
4923 (ada_language_data): Delete la_iterate_over_symbols initializer.
4924 * c-lang.c (c_language_data): Likewise.
4925 (cplus_language_data): Likewise.
4926 (asm_language_data): Likewise.
4927 (minimal_language_data): Likewise.
4928 * d-lang.c (d_language_data): Likewise.
4929 * f-lang.c (f_language_data): Likewise.
4930 * go-lang.c (go_language_data): Likewise.
4931 * language.c (unknown_language_data): Likewise.
4932 (auto_language_data): Likewise.
4933 * language.h (language_data): Delete la_iterate_over_symbols field.
4934 (language_defn::iterate_over_symbols): New member function.
4935 (LA_ITERATE_OVER_SYMBOLS): Update.
4936 * linespec.c (iterate_over_all_matching_symtabs): Update.
4937 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4939 * objc-lang.c (objc_language_data): Likewise.
4940 * opencl-lang.c (opencl_language_data): Likewise.
4941 * p-lang.c (pascal_language_data): Likewise.
4942 * rust-lang.c (rust_language_data): Likewise.
4944 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4946 * ada-lang.c (ada_language_data): Delete
4947 la_lookup_transparent_type initializer.
4948 * c-lang.c (c_language_data): Likewise.
4949 (cplus_language_data): Likewise.
4950 (cplus_language::lookup_transparent_type): New member function.
4951 (asm_language_data): Delete la_lookup_transparent_type
4953 (minimal_language_data): Likewise.
4954 * d-lang.c (d_language_data): Likewise.
4955 * f-lang.c (f_language_data): Likewise.
4956 * go-lang.c (go_language_data): Likewise.
4957 * language.c (unknown_language_data): Likewise.
4958 (auto_language_data): Likewise.
4959 * language.h (struct language_data): Delete
4960 la_lookup_transparent_type field.
4961 (language_defn::lookup_transparent_type): New member function.
4962 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4964 * objc-lang.c (objc_language_data): Likewise.
4965 * opencl-lang.c (opencl_language_data): Likewise.
4966 * p-lang.c (pascal_language_data): Likewise.
4967 * rust-lang.c (rust_language_data): Likewise.
4968 * symtab.c (symbol_matches_domain): Update call.
4970 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4972 * ada-lang.c (ada_language_arch_info): Delete function, move
4973 implementation to...
4974 (ada_language::language_arch_info): ...here, a new member
4976 (ada_language_data): Delete la_language_arch_info.
4977 * c-lang.c (c_language_data): Likewise.
4978 (c_language::language_arch_info): New member function.
4979 (cplus_language_arch_info): Delete function, move
4980 implementation to...
4981 (cplus_language::language_arch_info): ...here, a new member
4983 (cplus_language_data): Delete la_language_arch_info.
4984 (asm_language_data): Likewise.
4985 (asm_language::language_arch_info): New member function.
4986 (minimal_language_data): Delete la_language_arch_info.
4987 (minimal_language::language_arch_info): New member function.
4988 * d-lang.c (d_language_arch_info): Delete function, move
4989 implementation to...
4990 (d_language::language_arch_info): ...here, a new member
4992 (d_language_data): Delete la_language_arch_info.
4993 * f-lang.c (f_language_arch_info): Delete function, move
4994 implementation to...
4995 (f_language::language_arch_info): ...here, a new member
4997 (f_language_data): Delete la_language_arch_info.
4998 * go-lang.c (go_language_arch_info): Delete function, move
4999 implementation to...
5000 (go_language::language_arch_info): ...here, a new member
5002 (go_language_data): Delete la_language_arch_info.
5003 * language.c (unknown_language_data): Likewise.
5004 (unknown_language::language_arch_info): New member function.
5005 (auto_language_data): Delete la_language_arch_info.
5006 (auto_language::language_arch_info): New member function.
5007 (language_gdbarch_post_init): Update call to
5008 la_language_arch_info.
5009 * language.h (language_data): Delete la_language_arch_info
5011 (language_defn::language_arch_info): New function.
5012 * m2-lang.c (m2_language_arch_info): Delete function, move
5013 implementation to...
5014 (m2_language::language_arch_info): ...here, a new member
5016 (m2_language_data): Delete la_language_arch_info.
5017 * objc-lang.c (objc_language_arch_info): Delete function, move
5018 implementation to...
5019 (objc_language::language_arch_info): ...here, a new member
5021 (objc_language_data): Delete la_language_arch_info.
5022 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5023 implementation to...
5024 (opencl_language::language_arch_info): ...here, a new member
5026 (opencl_language_data): Delete la_language_arch_info.
5027 * p-lang.c (pascal_language_arch_info): Delete function, move
5028 implementation to...
5029 (pascal_language::language_arch_info): ...here, a new member
5031 (pascal_language_data): Delete la_language_arch_info.
5032 * rust-lang.c (rust_language_arch_info): Delete function, move
5033 implementation to...
5034 (rust_language::language_arch_info): ...here, a new member
5036 (rust_language_data): Delete la_language_arch_info.
5038 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5040 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5042 * c-lang.c (c_language_data): Likewise.
5043 (cplus_language_data): Likewise.
5044 (cplus_language::pass_by_reference_info): New method.
5045 (asm_language_data): Delete la_pass_by_reference initializer.
5046 (minimal_language_data): Likewise.
5047 * cp-abi.c (cp_pass_by_reference): Remove use of
5048 default_pass_by_reference.
5049 * d-lang.c (d_language_data): Likewise.
5050 * f-lang.c (f_language_data): Likewise.
5051 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5052 default_pass_by_reference.
5053 * go-lang.c (go_language_data): Likewise.
5054 * language.c (language_pass_by_reference): Update.
5055 (default_pass_by_reference): Delete.
5056 (unknown_language_data): Delete la_pass_by_reference
5058 (auto_language_data): Likewise.
5059 * language.h (struct language_data): Delete la_pass_by_reference
5061 (language_defn::pass_by_reference_info): New member function.
5062 (default_pass_by_reference): Delete declaration.
5063 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5065 * objc-lang.c (objc_language_data): Likewise.
5066 * opencl-lang.c (opencl_language_data): Likewise.
5067 * p-lang.c (pascal_language_data): Likewise.
5068 * rust-lang.c (rust_language_data): Likewise.
5070 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5072 * ada-lang.c (ada_read_var_value): Delete function, move
5073 implementation to...
5074 (ada_language::read_var_value): ...here.
5075 (ada_language_data): Delete la_read_var_value initializer.
5076 * c-lang.c (c_language_data): Likewise.
5077 (cplus_language_data): Likewise.
5078 (minimal_language_data): Likewise.
5079 * d-lang.c (d_language_data): Likewise.
5080 * f-lang.c (f_language_data): Likewise.
5081 * findvar.c (default_read_var_value): Rename to...
5082 (language_defn::read_var_value): ...this.
5083 * findvar.c (read_var_value): Update header comment, and change to
5084 call member function instead of function pointer.
5085 * go-lang.c (go_language_data): Likewise.
5086 * language.c (unknown_language_data): Delete la_read_var_value
5088 (auto_language_data): Likewise.
5089 * language.h (struct language_data): Delete la_read_var_value
5091 (language_defn::read_var_value): New member function.
5092 (default_read_var_value): Delete declaration.
5093 * m2-lang.c (m2_language_data): Delete la_read_var_value
5095 * objc-lang.c (objc_language_data): Likewise.
5096 * opencl-lang.c (opencl_language_data): Likewise.
5097 * p-lang.c (pascal_language_data): Likewise.
5098 * rust-lang.c (rust_language_data): Likewise.
5099 * value.h (default_read_var_value): Delete declaration.
5101 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5103 * ada-lang.c (ada_print_array_index): Delete function, move
5104 implementation to...
5105 (ada_language::print_array_index): ...here.
5106 (ada_language_data): Delete la_print_array_index initializer.
5107 * c-lang.c (c_language_data): Likewise.
5108 (cplus_language_data): Likewise.
5109 (minimal_language_data): Likewise.
5110 * d-lang.c (d_language_data): Likewise.
5111 * f-lang.c (f_language_data): Likewise.
5112 * go-lang.c (go_language_data): Likewise.
5113 * language.c (default_print_array_index): Delete function, move
5114 implementation to...
5115 (language_defn::print_array_index): ...here.
5116 (unknown_language_data): Delete la_print_array_index initializer.
5117 (auto_language_data): Likewise.
5118 * language.h (struct language_data): Delete la_print_array_index
5120 (language_defn::print_array_index): New member function.
5121 (LA_PRINT_ARRAY_INDEX): Update.
5122 (default_print_array_index): Delete declaration.
5123 * m2-lang.c (m2_language_data): Delete la_print_array_index
5125 * objc-lang.c (objc_language_data): Likewise.
5126 * opencl-lang.c (opencl_language_data): Likewise.
5127 * p-lang.c (pascal_language_data): Likewise.
5128 * rust-lang.c (rust_language_data): Likewise.
5130 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5132 * gdb/ada-lang.c (ada_language_defn): Convert to...
5133 (ada_language_data): ...this.
5134 (class ada_language): New class.
5135 (ada_language_defn): New static global.
5136 * gdb/c-lang.c (c_language_defn): Convert to...
5137 (c_language_data): ...this.
5138 (class c_language): New class.
5139 (c_language_defn): New static global.
5140 (cplus_language_defn): Convert to...
5141 (cplus_language_data): ...this.
5142 (class cplus_language): New class.
5143 (cplus_language_defn): New static global.
5144 (asm_language_defn): Convert to...
5145 (asm_language_data): ...this.
5146 (class asm_language): New class.
5147 (asm_language_defn): New static global.
5148 (minimal_language_defn): Convert to...
5149 (minimal_language_data): ...this.
5150 (class minimal_language): New class.
5151 (minimal_language_defn): New static global.
5152 * gdb/d-lang.c (d_language_defn): Convert to...
5153 (d_language_data): ...this.
5154 (class d_language): New class.
5155 (d_language_defn): New static global.
5156 * gdb/f-lang.c (f_language_defn): Convert to...
5157 (f_language_data): ...this.
5158 (class f_language): New class.
5159 (f_language_defn): New static global.
5160 * gdb/go-lang.c (go_language_defn): Convert to...
5161 (go_language_data): ...this.
5162 (class go_language): New class.
5163 (go_language_defn): New static global.
5164 * gdb/language.c (unknown_language_defn): Remove declaration.
5165 (current_language): Initialize to nullptr, real initialization is
5166 moved to _initialize_language.
5167 (languages): Delete global.
5168 (language_defn::languages): Define.
5169 (set_language_command): Use language_defn::languages.
5170 (set_language): Likewise.
5171 (range_error): Likewise.
5172 (language_enum): Likewise.
5173 (language_def): Likewise.
5174 (add_set_language_command): Use language_def::languages for the
5175 language list, and language_def to lookup language pointers.
5176 (skip_language_trampoline): Use language_defn::languages.
5177 (unknown_language_defn): Convert to...
5178 (unknown_language_data): ...this.
5179 (class unknown_language): New class.
5180 (unknown_language_defn): New static global.
5181 (auto_language_defn): Convert to...
5182 (auto_language_data): ...this.
5183 (class auto_language): New class.
5184 (auto_language_defn): New static global.
5185 (language_gdbarch_post_init): Use language_defn::languages.
5186 (_initialize_language): Initialize current_language.
5187 * gdb/language.h (struct language_defn): Rename to...
5188 (struct language_data): ...this.
5189 (struct language_defn): New.
5190 (auto_language_defn): Delete.
5191 (unknown_language_defn): Delete.
5192 (minimal_language_defn): Delete.
5193 (ada_language_defn): Delete.
5194 (asm_language_defn): Delete.
5195 (c_language_defn): Delete.
5196 (cplus_language_defn): Delete.
5197 (d_language_defn): Delete.
5198 (f_language_defn): Delete.
5199 (go_language_defn): Delete.
5200 (m2_language_defn): Delete.
5201 (objc_language_defn): Delete.
5202 (opencl_language_defn): Delete.
5203 (pascal_language_defn): Delete.
5204 (rust_language_defn): Delete.
5205 * gdb/m2-lang.c (m2_language_defn): Convert to...
5206 (m2_language_data): ...this.
5207 (class m2_language): New class.
5208 (m2_language_defn): New static global.
5209 * gdb/objc-lang.c (objc_language_defn): Convert to...
5210 (objc_language_data): ...this.
5211 (class objc_language): New class.
5212 (objc_language_defn): New static global.
5213 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5214 (opencl_language_data): ...this.
5215 (class opencl_language): New class.
5216 (opencl_language_defn): New static global.
5217 * gdb/p-lang.c (pascal_language_defn): Convert to...
5218 (pascal_language_data): ...this.
5219 (class pascal_language): New class.
5220 (pascal_language_defn): New static global.
5221 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5222 language pointer, update comment format.
5223 * gdb/rust-lang.c (rust_language_defn): Convert to...
5224 (rust_language_data): ...this.
5225 (class rust_language): New class.
5226 (rust_language_defn): New static global.
5228 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5230 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5232 <m_stmt_at_address>: New member variable.
5233 (lnp_state_machine::record_line): Don't record some lines, update
5234 tracking of is_stmt at the same address.
5235 (lnp_state_machine::lnp_state_machine): Initialise new member
5238 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5240 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5241 "-include gnu-nat-mig.h".
5242 * gnu-nat-mig.h: New file.
5243 * gnu-nat.c: Include "gnu-nat-mig.h".
5244 (exc_server, msg_reply_server, notify_server,
5245 process_reply_server): Remove declarations.
5247 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5249 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5250 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5251 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5252 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5253 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5254 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5255 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5256 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5257 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5258 to gnu_nat_target class.
5259 * gnu-nat.c: Likewise.
5260 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5261 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5262 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5264 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5265 instead of `gnu_target'.
5267 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5269 * i386-gnu-tdep.c: Include "gdbcore.h"
5270 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5271 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5272 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5273 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5274 i386_gnu_sigcontext_addr): New functions
5275 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5276 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5279 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5281 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5282 before fork_inferior call. Avoid calling it if target_is_pushed returns
5285 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5287 * gnu-nat.h (gnu_target): New variable declaration.
5288 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5290 * gnu-nat.c (gnu_target): New variable.
5291 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5292 add_thread_silent, and add_thread calls.
5293 (gnu_nat_target::create_inferior): Pass gnu_target to
5294 add_thread_silent, thread_change_ptid call.
5295 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5298 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5300 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5301 (gnu_nat_target::find_memory_regions): Remove unused
5302 `old_address' variable.
5304 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5306 * gnu-nat.c: Include "gdbarch.h".
5308 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5310 * reply_mig_hack.awk (Error return): Cast function through
5311 void *, to bypass compiler function call check.
5313 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5315 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5316 $(srcdir)/reply_mig_hack.awk.
5318 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5320 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5322 2020-05-30 Jonny Grant <jg@jguk.org>
5324 * configure.ac (ACX_BUGURL): change bug URL to https.
5326 2020-05-30 Pedro Alves <palves@redhat.com>
5328 * cp-support.c (replace_typedefs_template): New.
5329 (replace_typedefs_qualified_name): Handle
5330 DEMANGLE_COMPONENT_TEMPLATE.
5332 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5334 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5335 dwarf2/index-cache.h, dwarf2/index-write.c,
5336 dwarf2/index-write.h, dwarf2/line-header.c,
5337 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5338 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5339 variables and fields from `dwarf2_per_objfile` to just
5340 `per_objfile` throughout.
5342 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5344 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5345 <push_dwarf_reg_entry_value>: Add comment.
5347 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5348 Keith Seitz <keiths@redhat.com>
5350 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5351 instead of PyEval_ReleaseLock.
5352 (class gdbpy_gil): Move to earlier in file.
5353 (finalize_python): Set gdb_python_initialized.
5354 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5355 when not initialized.
5357 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5359 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5360 <push_dwarf_reg_entry_value>: Remove assert. Override
5361 per_objfile with caller_per_objfile.
5363 2020-05-28 Tom de Vries <tdevries@suse.de>
5365 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5366 PR gold/15646 workaround to symbol kind "type".
5368 2020-05-27 Tom Tromey <tromey@adacore.com>
5370 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5372 2020-05-27 Tom Tromey <tromey@adacore.com>
5374 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5375 Use htab_find_with_hash.
5376 <add_abbrev>: Remove "abbrev_number" parameter.
5377 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5378 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5379 (hash_abbrev): Add comment.
5380 (abbrev_table::lookup_abbrev): Move to header file.
5381 (abbrev_table::read): Update.
5383 2020-05-27 Tom Tromey <tromey@adacore.com>
5385 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5387 <canonical_name>: New member.
5388 <raw_name>: Rename from "name".
5389 (partial_die_info): Initialize canonical_name.
5390 (scan_partial_symbols): Check raw_name.
5391 (partial_die_parent_scope, partial_die_full_name)
5392 (add_partial_symbol, add_partial_subprogram)
5393 (add_partial_enumeration, load_partial_dies): Use "name" method.
5394 (partial_die_info::name): New method.
5395 (partial_die_info::read, guess_partial_die_structure_name)
5396 (partial_die_info::fixup): Update.
5398 2020-05-27 Tom Tromey <tromey@adacore.com>
5400 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5401 <get_ref_die_offset>: Inline.
5402 <get_ref_die_offset_complaint>: New method.
5403 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5404 (attribute::get_ref_die_offset_complaint): Rename from
5405 get_ref_die_offset. Just issue complaint.
5407 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5409 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5411 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5413 * exec.c (exec_file_attach): Use errno value of first openp failure.
5415 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5417 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5418 Don't close thread handle.
5420 2020-05-27 Tom Tromey <tom@tromey.com>
5421 Simon Marchi <simon.marchi@efficios.com>
5423 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5425 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5427 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5428 dwarf2_per_bfd_objfile_data_key>: New globals.
5429 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5430 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5431 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5433 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5434 short-circuit when sharing.
5435 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5436 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5438 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5440 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5442 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5443 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5445 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5447 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5448 build_name_components, find_name_components_bounds>:
5449 Add per_objfile parameter.
5450 (struct mapped_index) <symbol_name_at>: Likewise.
5451 (struct mapped_debug_names): Remove constructor.
5452 <dwarf2_per_objfile>: Remove field.
5453 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5454 (mapped_index_base::find_name_components_bounds,
5455 mapped_index_base::build_name_components,
5456 dw2_expand_symtabs_matching_symbol): Likewise.
5457 (class mock_mapped_index) <symbol_name_at>: Likewise.
5458 (check_match): Likewise.
5459 (check_find_bounds_finds): Likewise.
5460 (test_mapped_index_find_name_component_bounds): Update.
5461 (CHECK_MATCH): Update.
5462 (dw2_expand_symtabs_matching): Update.
5463 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5464 per_objfile parameter.
5465 <find_vec_in_debug_names>: Likewise.
5466 <m_per_objfile>: New field.
5467 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5469 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5470 (dw2_debug_names_iterator::next): Update.
5471 (dw2_debug_names_lookup_symbol): Update.
5472 (dw2_debug_names_expand_symtabs_for_function): Update.
5473 (dw2_debug_names_map_matching_symbols): Update.
5474 (dw2_debug_names_expand_symtabs_matching): Update.
5475 (dwarf2_read_debug_names): Update.
5477 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5479 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5480 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5481 move to dwarf2_per_objfile.
5482 <read_in_chain>: Remove.
5483 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5484 remove_all_cus, age_comp_units>: New methods.
5485 <m_dwarf2_cus>: New member.
5486 (struct dwarf2_per_cu_data) <cu>: Remove.
5487 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5488 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5489 moved to methods of dwarf2_per_objfile.
5490 (dwarf2_clear_marks): Remove.
5491 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5492 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5493 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5494 (dwarf2_per_objfile::remove_all_cus): New.
5495 (class free_cached_comp_units) <~free_cached_comp_units>:
5498 (dw2_do_instantiate_symtab): Adjust.
5499 (fill_in_sig_entry_from_dwo_entry): Adjust.
5500 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5501 (cutu_reader::cutu_reader): Likewise.
5502 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5503 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5504 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5505 and dwarf2_per_objfile::age_comp_units.
5506 (load_partial_comp_unit): Update.
5507 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5508 (process_queue): Likewise.
5509 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5511 (dwarf2_read_addr_index): Likewise.
5512 (follow_die_offset): Likewise.
5513 (dwarf2_fetch_die_loc_sect_off): Likewise.
5514 (dwarf2_fetch_constant_bytes): Likewise.
5515 (dwarf2_fetch_die_type_sect_off): Likewise.
5516 (follow_die_sig_1): Likewise.
5517 (load_full_type_unit): Likewise.
5518 (read_signatured_type): Likewise.
5519 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5520 (dwarf2_cu::~dwarf2_cu): Remove.
5521 (dwarf2_per_objfile::get_cu): New.
5522 (dwarf2_per_objfile::set_cu): New.
5523 (age_cached_comp_units): Rename to...
5524 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5525 to std::unordered_map.
5526 (free_one_cached_comp_unit): Rename to...
5527 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5528 to std::unordered_map.
5529 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5530 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5531 a dwarf2_per_objfile in data.
5532 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5533 (dwarf2_clear_marks): Remove.
5535 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5537 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5538 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5539 (init_tu_and_read_dwo_dies): Likewise.
5540 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5541 (cutu_reader::cutu_reader): Likewise.
5542 (load_partial_comp_unit): Likewise.
5543 (process_psymtab_comp_unit): Update.
5544 (build_type_psymtabs_1): Update.
5545 (process_skeletonless_type_unit): Update.
5546 (load_full_comp_unit): Update.
5547 (find_partial_die): Update.
5548 (dwarf2_read_addr_index): Update.
5549 (read_signatured_type): Update.
5551 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5553 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5554 m_header_read_in>: New fields.
5555 <get_header>: New method.
5556 * dwarf2/read.c (per_cu_header_read_in): Remove.
5557 (dwarf2_per_cu_data::get_header): New.
5558 (dwarf2_per_cu_data::addr_size): Update.
5559 (dwarf2_per_cu_data::offset_size): Update.
5560 (dwarf2_per_cu_data::ref_addr_size): Update.
5562 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5564 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5565 (dw2_do_instantiate_symtab): Update.
5566 (queue_and_load_all_dwo_tus): Change parameter from
5567 dwarf2_per_cu_data to dwarf2_cu.
5568 (dwarf2_fetch_die_loc_sect_off): Update.
5569 (dwarf2_fetch_constant_bytes): Update.
5570 (dwarf2_fetch_die_type_sect_off): Update.
5572 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5574 * dwarf2/read.c (process_full_comp_unit,
5575 process_full_type_unit): Remove per_cu, per_objfile paramters.
5576 Add dwarf2_cu parameter.
5577 (process_queue): Update.
5579 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5581 * dwarf2/read.c (create_cu_from_index_list): Replace
5582 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5583 (create_cus_from_index_list): Likewise.
5584 (create_cus_from_index): Likewise.
5585 (create_signatured_type_table_from_index): Likewise.
5586 (create_cus_from_debug_names_list): Likewise.
5587 (create_cus_from_debug_names): Likewise.
5588 (dwarf2_read_gdb_index): Update.
5589 (dwarf2_read_debug_names): Update.
5591 2020-05-27 Tom Tromey <tom@tromey.com>
5592 Simon Marchi <simon.marchi@efficios.com>
5594 * dwarf2/read.h (struct dwarf2_per_objfile)
5595 <get_type_for_signatured_type, set_type_for_signatured_type>:
5597 <m_type_map>: New member.
5598 (struct signatured_type) <type>: Remove.
5600 (dwarf2_per_objfile::get_type_for_signatured_type,
5601 dwarf2_per_objfile::set_type_for_signatured_type): New.
5602 (get_signatured_type): Use new methods.
5604 2020-05-27 Tom Tromey <tom@tromey.com>
5605 Simon Marchi <simon.marchi@efficios.com>
5607 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5608 (struct dwarf2_per_objfile) <type_units>: New member.
5609 <get_type_unit_group_unshareable>: New method.
5610 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5611 num_symtabs, symtabs>: Remove; move to
5612 type_unit_group_unshareable.
5613 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5614 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5615 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5617 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5619 * dwarf2/read.h (struct dwarf2_per_cu_data):
5620 <dwarf2_per_objfile>: Remove.
5621 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5623 (create_signatured_type_table_from_index): Likewise.
5624 (create_signatured_type_table_from_debug_names): Likewise.
5625 (create_debug_type_hash_table): Likewise.
5626 (fill_in_sig_entry_from_dwo_entry): Likewise.
5627 (create_type_unit_group): Likewise.
5628 (read_comp_units_from_section): Likewise.
5629 (create_cus_hash_table): Likewise.
5631 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5633 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5634 dwarf2_per_cu_data::dwarf2_per_objfile.
5635 (compute_compunit_symtab_includes): Likewise.
5636 (dwarf2_cu::start_symtab): Likewise.
5638 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5640 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5642 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5643 (read_namespace_alias): Update.
5644 (lookup_die_type): Update.
5645 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5646 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5648 (disassemble_dwarf_expression): Update.
5650 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5652 * dwarf2/read.h (struct dwarf2_queue_item): Add
5653 dwarf2_per_objfile parameter, assign new parameter.
5654 <per_objfile>: New field.
5655 * dwarf2/read.c (free_one_cached_comp_unit): Add
5656 dwarf2_per_objfile parameter.
5657 (queue_comp_unit): Likewise.
5658 (dw2_do_instantiate_symtab): Update.
5659 (process_psymtab_comp_unit): Update.
5660 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5661 (process_imported_unit_die): Update.
5662 (queue_and_load_dwo_tu): Update.
5663 (follow_die_offset): Update.
5664 (follow_die_sig_1): Update.
5666 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5668 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5669 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5670 (read_call_site_scope): Assign per_objfile.
5671 (dwarf2_per_cu_data::objfile): Remove.
5672 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5673 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5674 dwarf2_per_objfile parameter.
5675 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5676 dwarf2_per_objfile parameter.
5677 (dwarf_expr_reg_to_entry_parameter): Add output
5678 dwarf2_per_objfile parameter.
5679 (locexpr_get_frame_base): Update.
5680 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5681 <push_dwarf_reg_entry_value>: Update.
5682 <call_site_to_target_addr>: Update.
5683 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5685 (value_of_dwarf_reg_entry): Update.
5686 (rw_pieced_value): Update.
5687 (indirect_synthetic_pointer): Update.
5688 (dwarf2_evaluate_property): Update.
5689 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5691 (locexpr_read_variable): Update.
5692 (locexpr_get_symbol_read_needs): Update.
5693 (loclist_read_variable): Update.
5695 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5697 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5698 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5699 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5701 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5702 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5703 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5705 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5706 sect_variable_value): Add dwarf2_per_objfile parameter.
5707 (class dwarf_evaluate_loc_desc) <dwarf_call,
5708 dwarf_variable_value>: Update.
5709 (fetch_const_value_from_synthetic_pointer): Add
5710 dwarf2_per_objfile parameter.
5711 (fetch_const_value_from_synthetic_pointer): Update.
5712 (coerced_pieced_ref): Update.
5713 (class symbol_needs_eval_context) <dwarf_call,
5714 dwarf_variable_value>: Update.
5715 (dwarf2_compile_expr_to_ax): Update.
5717 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5719 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5721 (dwarf2_evaluate_loc_desc_full): Update.
5723 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5725 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5727 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5728 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5729 dwarf2_per_objfile parameter.
5730 (decode_debug_loc_dwo_addresses): Likewise.
5731 (dwarf2_find_location_expression): Update.
5732 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5733 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5735 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5737 (locexpr_describe_location_1): Likewise.
5738 (locexpr_describe_location): Update.
5740 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5742 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5744 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5745 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5746 (dwarf2_compile_property_to_c): Update.
5747 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5748 use text offset from objfile.
5749 (locexpr_tracepoint_var_ref): Update.
5750 (locexpr_generate_c_location): Update.
5751 (loclist_describe_location): Update.
5752 (loclist_tracepoint_var_ref): Update.
5753 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5754 dwarf2_per_objfile parameter.
5755 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5756 use text offset from objfile.
5757 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5759 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5761 * dwarf2/expr.h (struct dwarf_expr_context)
5762 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5764 <per_objfile>: New member.
5765 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5766 dwarf2_per_objfile parameter. Don't set offset, set
5768 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5769 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5770 a dwarf2_per_objfile object instead of an offset.
5771 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5773 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5774 to dwarf2_expr_executor constructor. Don't set offset.
5775 (dwarf2_fetch_cfa_info): Update.
5776 (struct dwarf2_frame_cache) <text_offset>: Remove.
5777 <per_objfile>: New field.
5778 (dwarf2_frame_cache): Update.
5779 (dwarf2_frame_prev_register): Update.
5780 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5781 <dwarf_evaluate_loc_desc>: Add constructor.
5782 (dwarf2_evaluate_loc_desc_full): Update.
5783 (dwarf2_locexpr_baton_eval): Update.
5784 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5786 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5788 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5790 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5791 addr_sized_int_type>: Move to dwarf2_cu.
5792 <int_type>: Move to dwarf2_per_objfile.
5793 (struct dwarf2_per_objfile) <int_type>: Move here.
5794 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5795 addr_sized_int_type>: Move here.
5796 (read_func_scope): Update.
5797 (read_array_type): Update.
5798 (read_tag_string_type): Update.
5799 (attr_to_dynamic_prop): Update.
5800 (dwarf2_per_cu_data::int_type): Rename to...
5801 (dwarf2_per_objfile::int_type): ... this.
5802 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5803 (dwarf2_cu::addr_sized_int_type): ... this.
5804 (read_subrange_type): Update.
5805 (dwarf2_per_cu_data::addr_type): Rename to...
5806 (dwarf2_cu::addr_type): ... this.
5807 (set_die_type): Update.
5809 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5811 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5812 data through per_cu->cu.
5814 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5816 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5817 dwarf2_per_cu_data parameter fo dwarf2_cu.
5818 (lookup_dwo_type_unit): Likewise.
5819 (read_cutu_die_from_dwo): Likewise.
5820 (lookup_dwo_unit): Likewise.
5821 (open_and_init_dwo_file): Likewise.
5822 (lookup_dwo_cutu): Likewise.
5823 (lookup_dwo_comp_unit): Likewise.
5824 (lookup_dwo_type_unit): Likewise.
5825 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5826 (cutu_reader::cutu_reader): Update.
5828 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5830 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5832 (process_full_type_unit): Likewise.
5833 (process_queue): Update.
5835 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5837 * dwarf2/read.c (recursively_compute_inclusions): Add
5838 dwarf2_per_objfile parameter.
5839 (compute_compunit_symtab_includes): Likewise.
5840 (process_cu_includes): Update.
5842 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5844 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5846 (create_type_unit_group): Update.
5847 (process_psymtab_comp_unit_reader): Update.
5848 (build_type_psymtabs_reader): Update.
5850 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5852 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5853 object through m_this_cu->cu.
5855 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5857 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5859 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5861 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5863 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5864 per_objfile parameter.
5865 (load_full_type_unit): Add per_objfile parameter.
5866 (read_signatured_type): Likewise.
5867 (load_full_comp_unit): Likewise.
5868 (load_cu): Likewise.
5869 (dw2_do_instantiate_symtab): Likewise.
5870 (dw2_get_file_names): Likewise.
5871 (dw2_map_symtabs_matching_filename): Update.
5872 (dw_expand_symtabs_matching_file_matcher): Update.
5873 (dw2_map_symbol_filenames): Update.
5874 (process_psymtab_comp_unit): Add per_objfile parameter.
5875 (build_type_psymtabs_1): Update.
5876 (process_skeletonless_type_unit): Update.
5877 (dwarf2_build_psymtabs_hard): Update.
5878 (load_partial_comp_unit): Add per_objfile parameter.
5879 (scan_partial_symbols): Update.
5880 (load_full_comp_unit): Add per_objfile parameter.
5881 (process_imported_unit_die): Update.
5882 (create_cus_hash_table): Update.
5883 (find_partial_die): Update.
5884 (dwarf2_read_addr_index): Update.
5885 (follow_die_offset): Update.
5886 (dwarf2_fetch_die_loc_sect_off): Update.
5887 (dwarf2_fetch_constant_bytes): Update.
5888 (dwarf2_fetch_die_type_sect_off): Update.
5889 (follow_die_sig_1): Update.
5890 (load_full_type_unit): Add per_objfile parameter.
5891 (read_signatured_type): Likewise.
5893 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5895 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5898 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5900 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5901 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5902 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5904 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5905 (create_cus_from_index): Update.
5906 (dwarf2_read_gdb_index): Update.
5907 (create_cus_from_debug_names): Update.
5908 (dwarf2_read_debug_names): Update.
5909 (get_abbrev_section_for_cu): Update.
5910 (create_all_comp_units): Update.
5911 (read_attribute_value): Update.
5912 (get_debug_line_section): Update.
5913 * dwarf2/index-cache.c (index_cache::store): Update.
5914 * dwarf2/index-write.c (save_gdb_index_command): Update.
5915 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5917 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5919 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5921 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5922 dwarf2_per_cu_data::per_bfd.
5923 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5924 (create_type_unit_group): Likewise.
5925 (queue_comp_unit): Remove reference to
5926 per_cu->dwarf2_per_objfile.
5927 (maybe_queue_comp_unit): Likewise.
5928 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5929 (create_cus_hash_table): Assign new field.
5931 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5933 * dwarf2/read.c: Replace
5934 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5935 dwarf2_cu->per_objfile throughout.
5937 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5939 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5940 parameter, don't use per_cu->dwarf2_per_objfile.
5941 (dw2_instantiate_symtab): Likewise.
5942 (dw2_find_last_source_symtab): Update.
5943 (dw2_map_expand_apply): Update.
5944 (dw2_lookup_symbol): Update.
5945 (dw2_expand_symtabs_for_function): Update.
5946 (dw2_expand_all_symtabs): Update.
5947 (dw2_expand_symtabs_with_fullname): Update.
5948 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5949 don't use per_cu->dwarf2_per_objfile.
5950 (dw2_expand_marked_cus): Update.
5951 (dw2_find_pc_sect_compunit_symtab): Update.
5952 (dw2_debug_names_lookup_symbol): Update.
5953 (dw2_debug_names_expand_symtabs_for_function): Update.
5954 (dw2_debug_names_map_matching_symbols): Update.
5955 (dwarf2_psymtab::expand_psymtab): Update.
5957 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5959 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5960 <per_objfile>: New member.
5961 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5962 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5964 (cutu_reader::cutu_reader): Update.
5965 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5967 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5969 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5970 struct dwarf2_per_objfile.
5971 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5973 * dwarf2/read.c (set_die_type): Update.
5974 (get_die_type_at_offset): Update.
5976 2020-05-27 Tom Tromey <tom@tromey.com>
5977 Simon Marchi <simon.marchi@efficios.com>
5979 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5981 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5982 get_symtab, set_symtab>: New methods.
5983 <m_symtabs>: New field.
5984 (struct dwarf2_psymtab): Derive from partial_symtab.
5985 <readin_p, get_compunit_symtab>: Declare methods.
5986 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5987 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5989 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5990 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5991 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5992 (dw2_symtab_iter_next, dw2_print_stats)
5993 (dw2_expand_symtabs_with_fullname)
5994 (dw2_expand_symtabs_matching_one)
5995 (dw_expand_symtabs_matching_file_matcher)
5996 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5997 (dw2_debug_names_iterator::next)
5998 (dw2_debug_names_map_matching_symbols)
5999 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6000 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6001 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6003 (get_compunit_symtab, process_full_comp_unit)
6004 (process_full_type_unit): Update.
6005 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6007 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6009 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6010 then introduce a new dwarf2_per_objfile type.
6011 <read_line_string>: Move to the new dwarf2_per_objfile type.
6012 <objfile>: Likewise.
6013 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6014 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6015 dwarf2_per_objfile->per_bfd.
6016 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6017 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6018 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6019 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6020 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6021 (dwarf2_per_objfile::locate_sections): Rename to...
6022 (dwarf2_per_bfd::locate_sections): ... this.
6023 (dwarf2_per_objfile::get_cutu): Rename to...
6024 (dwarf2_per_bfd::get_cutu): ... this.
6025 (dwarf2_per_objfile::get_cu): Rename to...
6026 (dwarf2_per_bfd::get_cu): ... this.
6027 (dwarf2_per_objfile::get_tu): Rename to...
6028 (dwarf2_per_bfd::get_tu): ... this.
6029 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6030 (dwarf2_per_bfd::allocate_per_cu): ... this.
6031 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6032 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6033 (get_gdb_index_contents_ftype): Change parameter from
6034 dwarf2_per_objfile to dwarf2_per_bfd.
6035 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6036 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6038 2020-05-27 Tom Tromey <tom@tromey.com>
6039 Simon Marchi <simon.marchi@efficios.com>
6041 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6042 (allocate_piece_closure): Set "per_objfile" member.
6043 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6044 (locexpr_describe_location, loclist_describe_location): Use new
6046 * dwarf2/read.c (read_call_site_scope)
6047 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6048 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6049 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6050 handle_data_member_location): Set per_objfile member.
6051 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6053 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6055 2020-05-27 Tom Tromey <tom@tromey.com>
6057 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6058 allocate_signatured_type>: Declare new methods.
6059 <m_num_psymtabs>: New member.
6060 (struct dwarf2_per_cu_data) <index>: New member.
6061 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6062 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6063 (create_cu_from_index_list): Use allocate_per_cu.
6064 (create_signatured_type_table_from_index)
6065 (create_signatured_type_table_from_debug_names)
6066 (create_debug_type_hash_table, add_type_unit)
6067 (read_comp_units_from_section): Use allocate_signatured_type.
6069 2020-05-27 Tom Tromey <tom@tromey.com>
6071 * psymtab.c (partial_map_expand_apply)
6072 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6073 (psym_lookup_global_symbol_language)
6074 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6075 (psym_print_stats, psym_expand_symtabs_for_function)
6076 (psym_map_symbol_filenames, psym_map_matching_symbols)
6077 (psym_expand_symtabs_matching)
6078 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6079 (maintenance_check_psymtabs): Update.
6080 * psympriv.h (struct partial_symtab) <readin_p,
6081 get_compunit_symtab>: Add objfile parameter.
6082 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6084 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6085 get_compunit_symtab>: Likewise.
6086 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6088 2020-05-27 Tom Tromey <tom@tromey.com>
6090 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6092 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6093 (create_cu_from_index_list)
6094 (create_signatured_type_table_from_index)
6095 (create_signatured_type_table_from_debug_names)
6096 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6097 (dwarf2_create_include_psymtab)
6098 (create_debug_type_hash_table, add_type_unit)
6099 (create_type_unit_group, read_comp_units_from_section)
6100 (dwarf2_compute_name, create_cus_hash_table)
6101 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6102 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6104 (dw2_get_real_path): Likewise. Change argument to
6107 2020-05-27 Luis Machado <luis.machado@linaro.org>
6110 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6111 for ldrd (immediate).
6113 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6115 * command.h: Add comment giving the name of class_tui.
6116 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6117 create the fake command for the help for class_tui.
6119 2020-05-26 Tom Tromey <tromey@adacore.com>
6121 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6122 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6123 (val_atr): New function.
6124 (value_val_atr): Use it.
6125 * ada-valprint.c (print_optional_low_bound): Change low bound
6127 (val_print_packed_array_elements): Don't call discrete_position.
6128 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6129 discrete_position for enum types.
6130 * language.c (default_print_array_index): Change type.
6131 * language.h (struct language_defn) <la_print_array_index>: Add
6132 index_type parameter, change type of index_value.
6133 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6134 (default_print_array_index): Update.
6135 * valprint.c (maybe_print_array_index): Don't call
6136 value_from_longest. Update.
6137 (value_print_array_elements): Don't call discrete_position.
6139 2020-05-26 Tom Tromey <tromey@adacore.com>
6141 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6142 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6144 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6147 * avr-tdep.c (avr_integer_to_address): Return data or code
6148 address accordingly to the second 'type' argument of the
6151 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6153 * infcmd.c, inferior.h: (construct_inferior_arguments):
6154 Moved function from here to gdbsupport/common-inferior.{h,cc}
6156 2020-05-23 Tom Tromey <tom@tromey.com>
6158 Revert commit eca1f90c:
6159 * NEWS: Remove entry for completion styling.
6160 * completer.c (_rl_completion_prefix_display_length): Move
6162 (gdb_fnprint): Revert.
6163 (gdb_display_match_list_1): Likewise.
6164 * cli/cli-style.c (completion_prefix_style)
6165 (completion_difference_style, completion_suffix_style): Remove.
6166 (_initialize_cli_style): Revert.
6167 * cli/cli-style.h (completion_prefix_style)
6168 (completion_difference_style, completion_suffix_style): Don't
6171 2020-05-24 Pedro Alves <palves@redhat.com>
6173 * symtab.c (completion_list_add_name): Return boolean indication
6174 of whether the symbol matched.
6175 (completion_list_add_symbol): Don't try to remove C++ aliases if
6176 the symbol didn't match in the first place.
6177 * symtab.h (completion_list_add_name): Return bool.
6179 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6181 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6184 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6188 2020-05-23 Tom Tromey <tom@tromey.com>
6190 * NEWS: Add entry for completion styling.
6191 * completer.c (_rl_completion_prefix_display_length): Move
6192 declaration earlier.
6193 (gdb_fnprint): Use completion_style.
6194 (gdb_display_match_list_1): Likewise.
6195 * cli/cli-style.c (completion_prefix_style)
6196 (completion_difference_style, completion_suffix_style): New
6198 (_initialize_cli_style): Register new globals.
6199 * cli/cli-style.h (completion_prefix_style)
6200 (completion_difference_style, completion_suffix_style): Declare.
6202 2020-05-23 Pedro Alves <palves@redhat.com>
6204 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6205 (parse_escape): Use ISDIGIT instead of isdigit.
6206 (puts_debug): Use gdb_isprint instead of isprint.
6207 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6208 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6209 ISSPACE instead of isspace.
6210 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6212 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6213 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6214 instead of isxdigit and ISDIGIT instead of isdigit.
6216 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6218 * gdbtypes.h (struct type) <field>: New method.
6219 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6222 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6224 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6225 (TYPE_FIELDS): Use type::fields. Change all call sites that
6226 modify the propery to use type::set_fields instead.
6228 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6230 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6231 type::num_fields instead.
6233 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6235 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6237 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6238 that modify the number of fields to use type::set_num_fields
6241 2020-05-22 Tom Tromey <tromey@adacore.com>
6243 * compile/compile-object-load.h (munmap_list_free): Don't
6246 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6248 * annotate.c (annotate_source_line): Update return type, add call
6249 to update current symtab and line.
6250 * annotate.h (annotate_source_line): Update return type, and
6251 extend header comment.
6252 * source.c (info_line_command): Check annotation_level before
6253 calling annotate_source_line.
6254 * stack.c (print_frame_info): If calling annotate_source_line
6255 returns true, then don't print any other source line information.
6257 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6259 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6261 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6263 * coffread.c (patch_type): Remove NULL check before xfree.
6264 * corefile.c (set_gnutarget): Likewise.
6265 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6266 * exec.c (build_section_table): Likewise.
6267 * remote.c (remote_target::pass_signals): Likewise.
6268 * utils.c (n_spaces): Likewise.
6269 * cli/cli-script.c (document_command): Likewise.
6270 * i386-windows-tdep.c (core_process_module_section): Likewise.
6271 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6273 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6275 * symfile.c (reread_symbols): Clear objfile's section_offsets
6276 vector and section indices, re-compute them by calling
6279 2020-05-20 Tom Tromey <tromey@adacore.com>
6281 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6282 (desc_one_bound, desc_index_type): Compute field name.
6284 2020-05-20 Tom de Vries <tdevries@suse.de>
6287 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6289 2020-05-20 Alan Modra <amodra@gmail.com>
6292 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6294 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6295 passed to bfd_set_filename.
6296 * symfile-mem.c (add_vsyscall_page): Likewise for string
6297 passed to symbol_file_add_from_memory.
6298 (symbol_file_add_from_memory): Make name param a const char* and
6301 2020-05-20 Alan Modra <amodra@gmail.com>
6303 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6304 rather than accessing bfd->filename directly.
6305 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6306 and use bfd_section_name.
6307 * dwarf2/frame.c (decode_frame_entry): Likewise.
6308 * exec.c (exec_set_section_address): Likewise.
6309 * solib-aix.c (solib_aix_bfd_open): Likewise.
6310 * stap-probe.c (get_stap_base_address): Likewise.
6311 * symfile.c (reread_symbols): Likewise.
6313 2020-05-19 Tom Tromey <tromey@adacore.com>
6315 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6317 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6319 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6321 2020-05-19 Pedro Alves <palves@redhat.com>
6323 * NEWS (set exec-file-mismatch): Adjust entry.
6324 * exec.c: Include "build-id.h".
6325 (validate_exec_file): Try to match build IDs instead of filenames.
6326 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6327 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6328 and pass down 'warn_if_slow'.
6329 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6330 gdb_bfd_open_closure to pass it down.
6331 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6333 2020-05-19 Pedro Alves <palves@redhat.com>
6335 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6336 * target.c (target_fileio_open_1): Rename to target_fileio_open
6337 and make extern. Use bool.
6338 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6339 (target_fileio_read_alloc_1): Adjust.
6340 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6341 (target_fileio_open_warn_if_slow): Delete declaration.
6343 2020-05-19 Pedro Alves <palves@redhat.com>
6345 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6348 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6350 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6351 whether disp is negative.
6353 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6355 * symfile.h (struct symfile_segment_data)
6356 <~symfile_segment_data>: Remove.
6357 <segment_info>: Change to std::vector.
6358 * symfile.c (default_symfile_segments): Update.
6359 * elfread.c (elf_symfile_segments): Update.
6361 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6363 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6365 <segment_bases, segment_sizes>: Remove.
6366 * symfile.c (default_symfile_segments): Update.
6367 * elfread.c (elf_symfile_segments): Update.
6368 * remote.c (remote_target::get_offsets): Update.
6369 * solib-target.c (solib_target_relocate_section_addresses):
6372 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6374 * symfile.h (struct symfile_segment_data): Initialize fields.
6375 <~symfile_segment_data>: Add.
6376 (symfile_segment_data_up): New.
6377 (struct sym_fns) <sym_segments>: Return a
6378 symfile_segment_data_up.
6379 (default_symfile_segments): Return a symfile_segment_data_up.
6380 (free_symfile_segment_data): Remove.
6381 (get_symfile_segment_data): Return a symfile_segment_data_up.
6382 * symfile.c (default_symfile_segments): Likewise.
6383 (get_symfile_segment_data): Likewise.
6384 (free_symfile_segment_data): Remove.
6385 (symfile_find_segment_sections): Update.
6386 * elfread.c (elf_symfile_segments): Return a
6387 symfile_segment_data_up.
6388 * remote.c (remote_target::get_offsets): Update.
6389 * solib-target.c (solib_target_relocate_section_addresses):
6391 * symfile-debug.c (debug_sym_segments): Return a
6392 symfile_segment_data_up.
6394 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6397 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6398 Hardcode register numbers.
6401 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6402 procfs_find_LDT_entry): Remove.
6403 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6404 procfs_find_LDT_entry): Remove.
6405 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6408 2020-05-17 Pedro Alves <palves@redhat.com>
6409 Andrew Burgess <andrew.burgess@embecosm.com>
6410 Keno Fischer <keno@juliacomputing.com>
6413 * breakpoint.c (build_target_condition_list): Update comments.
6414 (build_target_command_list): Update comments and skip matching
6416 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6417 a separate function. Simplify "set breakpoint auto-hw off"
6419 (insert_breakpoints): Update comment.
6420 (tracepoint_locations_match): New parameter. For breakpoints,
6421 compare location types too, if the caller wants to.
6422 (handle_automatic_hardware_breakpoints): New functions.
6423 (bp_location_is_less_than): Also sort by location type and
6424 hardware breakpoint length.
6425 (update_global_location_list): Handle "set breakpoint auto-hw on"
6427 (update_breakpoint_locations): Ask breakpoint_locations_match to
6428 ignore location types.
6430 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6432 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6435 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6437 * gdbtypes.h (struct type) <name, set_name>: New methods.
6438 (TYPE_CODE): Use type::name. Change all call sites used to set
6439 the name to use type::set_name instead.
6441 2020-05-16 Tom Tromey <tom@tromey.com>
6443 * top.c (quit_force): Update.
6444 * infrun.c (handle_no_resumed): Update.
6445 * top.h (all_uis): New function.
6448 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6450 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6452 2020-05-16 Pedro Alves <palves@redhat.com>
6455 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6457 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6459 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6461 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6462 (sparc64_adi_info): Likewise.
6464 2020-05-15 Tom Tromey <tom@tromey.com>
6466 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6468 (lookup_objfile_from_block): Remove.
6469 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6470 (lookup_global_symbol): Use block_objfile.
6471 * symtab.h (lookup_objfile_from_block): Don't declare.
6472 * printcmd.c (clear_dangling_display_expressions): Use
6474 * parse.c (operator_check_standard): Use block_objfile.
6476 2020-05-15 Tom Tromey <tom@tromey.com>
6478 * language.c (language_alloc_type_symbol): Set
6480 * symtab.c (initialize_objfile_symbol): Remove.
6481 (allocate_symbol): Remove.
6482 (allocate_template_symbol): Remove.
6483 * dwarf2/read.c (fixup_go_packaging): Use "new".
6484 (new_symbol): Use "new".
6485 (read_variable): Don't call initialize_objfile_symbol. Use
6487 (read_func_scope): Use "new".
6488 * xcoffread.c (process_xcoff_symbol): Don't call
6489 initialize_objfile_symbol.
6490 (SYMBOL_DUP): Remove.
6491 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6493 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6494 (allocate_template_symbol): Don't declare.
6495 (struct symbol): Add copy constructor. Change defaults.
6496 * jit.c (finalize_symtab): Use "new".
6497 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6499 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6500 (common_block_end): Use "new".
6501 * mdebugread.c (parse_symbol): Use "new".
6502 (new_symbol): Likewise.
6504 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6506 * NEWS: Mention changes to help and apropos.
6508 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6510 * command.h (enum command_class): Improve comments, document
6511 that class_alias is for user-defined aliases, give the class
6512 name for each class, remove unused class_xdb.
6513 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6514 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6516 * infcmd.c (_initialize_infcmd): Likewise.
6517 * reverse.c (_initialize_reverse): Likewise.
6518 * stack.c (_initialize_stack): Likewise.
6519 * symfile.c (_initialize_symfile): Likewise.
6520 * tracepoint.c (_initialize_tracepoint): Likewise.
6522 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6524 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6525 when their aliased command is traversed.
6526 (help_cmd): Add fput_command_names_styled call to
6527 output command name and aliases when command has an alias.
6529 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6531 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6532 * cli/cli-decode.c (help_cmd_list): Declare as static,
6533 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6534 a command together with the command.
6535 (fput_command_name_styled, fput_command_names_styled): New functions.
6536 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6537 fput_command_name_styled.
6538 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6539 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6541 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6543 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6544 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6545 * command.h (cmd_show_list): Likewise.
6546 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6547 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6549 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6551 * unittests/command-def-selftests.c (traverse_command_structure):
6552 Verify all commands of a list have the same prefix command and
6553 that only the top cmdlist commands have a null prefix.
6555 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6557 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6558 as prefix, not one of its aliases.
6559 (set_cmd_prefix): Remove.
6560 (do_add_cmd): Centralize the setting of the prefix of a command, when
6561 command is defined after its full chain of prefix commands.
6562 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6563 (add_setshow_cmd_full): Likewise.
6564 (update_prefix_field_of_prefixed_commands): New function.
6565 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6566 update_prefix_field_of_prefixed_commands.
6567 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6568 addresses of remote_set_cmdlist and remote_show_cmdlist given
6569 as argument, not the address of an argument.
6570 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6571 * gdb/remote.c (_initialize_remote): Likewise.
6573 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6575 * cli/cli-cmds.c (alias_command): Check for an existing alias
6576 using lookup_cmd_composition, as valid_command_p is too strict
6577 and forbids aliases that are the prefix of an existing alias
6579 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6580 command is properly recognised as a valid command.
6582 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6584 * unittests/help-doc-selftests.c: Rename to
6585 unittests/command-def-selftests.c
6586 * unittests/command-def-selftests.c (help_doc_tests): Update some
6588 (command_structure_tests, traverse_command_structure): New namespace
6590 (command_structure_invariants_tests): New function.
6591 (_initialize_command_def_selftests) Renamed from
6592 _initialize_help_doc_selftests, register command_structure_invariants
6595 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6597 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6600 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6602 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6603 ada_is_fixed_point_type. Update all callers.
6604 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6606 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6608 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6609 print_fixed_point_type. Update all callers.
6610 * ada-valprint.c (ada_value_print_num): Replace call to
6611 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6613 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6615 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6617 (cpu_supports_bts): Add CV_AMD case.
6619 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6620 Simon Marchi <simon.marchi@efficios.com>
6622 * infrun.c (stop_all_threads): Collect multiple wait events at
6625 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6627 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6630 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6632 * gdbtypes.h (struct type) <code, set_code>: New methods.
6633 (TYPE_CODE): Use type::code. Change all call sites used to set
6634 the code to use type::set_code instead.
6636 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6637 Tom de Vries <tdevries@suse.de>
6638 Pedro Alves <palves@redhat.com>
6641 * infrun.c (stop_all_threads): Do NOT ignore
6642 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6643 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6645 (handle_no_resumed): Remove code handling a live inferior with no
6647 * remote.c (has_single_non_exited_thread): New.
6648 (remote_target::update_thread_list): Do not delete a thread if is
6649 the last thread of the process.
6650 * thread.c (thread_select): Call delete_exited_threads instead of
6653 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6655 * infrun.c (stop_all_threads): Enable/disable thread events of all
6656 targets. Move a debug message denoting the end of the function
6657 into the SCOPED_EXIT block.
6659 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6661 * process-stratum-target.h: Include <set>.
6662 (all_non_exited_process_targets, switch_to_target_no_thread): New
6663 function declarations.
6664 * process-stratum-target.c (all_non_exited_process_targets)
6665 (switch_to_target_no_thread): New function implementations.
6667 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6669 * infrun.c (handle_inferior_event): Extract out a piece of code
6671 (mark_non_executing_threads): ...this new function.
6673 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6675 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6678 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6680 * regcache.c (regcache_read_pc_protected): New function
6681 implementation that returns 0 if the PC cannot read via
6683 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6684 instead of 'regcache_read_pc'.
6685 (keep_going_pass_signal): Ditto.
6687 2020-05-13 Tom Tromey <tromey@adacore.com>
6689 * ada-lang.c (align_value): Remove.
6690 (ada_template_to_fixed_record_type_1): Use align_up.
6692 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6694 * async-event.c: Update the copyright year.
6695 * async-event.h: Update the copyright year.
6697 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6699 * objfiles.h (is_addr_in_objfile,
6700 shared_objfile_contains_address_p): Return bool.
6701 * objfile.c (is_addr_in_objfile,
6702 shared_objfile_contains_address_p): Return bool.
6704 2020-05-11 Tom Tromey <tromey@adacore.com>
6706 * cli/cli-cmds.c (info_command): Restore.
6707 (_initialize_cli_cmds): Use add_prefix_command for "info".
6708 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6710 2020-05-11 Tom Tromey <tromey@adacore.com>
6712 * ada-lang.c (ada_value_primitive_field): Now public.
6713 * ada-lang.h (ada_value_primitive_field): Declare.
6714 * ada-valprint.c (print_field_values): Use
6715 ada_value_primitive_field for wrapper fields.
6717 2020-05-11 Tom de Vries <tdevries@suse.de>
6719 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6722 2020-05-11 Tom de Vries <tdevries@suse.de>
6725 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6726 with length 0, if not gdb-produced.
6727 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6729 2020-05-09 Tom de Vries <tdevries@suse.de>
6732 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6735 2020-05-09 Tom Tromey <tom@tromey.com>
6737 * top.c (server_command): Now bool.
6738 * top.h (server_command): Now bool.
6740 2020-05-08 Tom Tromey <tromey@adacore.com>
6742 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6743 already being processed.
6745 2020-05-08 Tom Tromey <tom@tromey.com>
6747 * printcmd.c (struct display) <next>: Remove.
6748 <display>: New constructor.
6749 <exp_string>: Now a std::string.
6750 <enabled_p>: Now a bool.
6751 (display_number): Move definition earlier.
6752 (displays): Rename from display_chain. Now a std::vector.
6753 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6754 (display_command): Update.
6755 (do_one_display, disable_display)
6756 (enable_disable_display_command, do_enable_disable_display):
6758 (free_display): Remove.
6759 (clear_displays): Rewrite.
6760 (delete_display): Update.
6761 (map_display_numbers): Use function_view. Remove "data"
6763 (do_delete_display): Remove.
6764 (undisplay_command): Update.
6765 (do_one_display, do_displays, disable_display)
6766 (info_display_command): Update.
6767 (do_enable_disable_display): Remove.
6768 (enable_disable_display_command)
6769 (clear_dangling_display_expressions): Update.
6771 2020-05-08 Tom Tromey <tom@tromey.com>
6773 * symtab.c (set_symbol_cache_size)
6774 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6775 (maintenance_print_symbol_cache_statistics): Update.
6776 * symmisc.c (print_symbol_bcache_statistics)
6777 (print_objfile_statistics, maintenance_print_objfiles)
6778 (maintenance_info_symtabs, maintenance_check_symtabs)
6779 (maintenance_expand_symtabs, maintenance_info_line_tables):
6781 * symfile-debug.c (set_debug_symfile): Update.
6782 * source.c (forget_cached_source_info): Update.
6783 * python/python.c (gdbpy_progspaces): Update.
6784 * psymtab.c (maintenance_info_psymtabs): Update.
6785 * probe.c (parse_probes): Update.
6786 * linespec.c (iterate_over_all_matching_symtabs)
6787 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6788 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6789 * exec.c (exec_target::close): Update.
6790 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6791 * breakpoint.c (print_one_breakpoint_location)
6792 (create_longjmp_master_breakpoint)
6793 (create_std_terminate_master_breakpoint): Update.
6794 * progspace.c (program_spaces): Now a std::vector.
6795 (maybe_new_address_space): Update.
6796 (add_program_space): Remove.
6797 (program_space::program_space): Update.
6798 (remove_program_space): Update.
6799 (number_of_program_spaces): Remove.
6800 (print_program_space, update_address_spaces): Update.
6801 * progspace.h (program_spaces): Change type.
6802 (ALL_PSPACES): Remove.
6803 (number_of_program_spaces): Don't declare.
6804 (struct program_space) <next>: Remove.
6806 2020-05-08 Tom Tromey <tom@tromey.com>
6808 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6809 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6810 (enable_break): Update.
6811 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6812 (frv_fdpic_find_canonical_descriptor): Update.
6813 (frv_fetch_objfile_link_map): Update.
6814 * progspace.c (program_space::free_all_objfiles): Update.
6815 (program_space::solibs): New method.
6816 * progspace.h (struct program_space) <solibs>: New method.
6817 * solist.h (master_so_list): Don't declare.
6818 (ALL_SO_LIBS): Remove.
6819 * solib.h (so_list_head): Remove.
6820 (update_solib_list): Update comment.
6821 * solib.c (master_so_list): Remove.
6822 (solib_used, update_solib_list, solib_add)
6823 (info_sharedlibrary_command, clear_solib)
6824 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6826 2020-05-08 Tom Tromey <tom@tromey.com>
6828 * extension.c (extension_languages): Now a std::array.
6829 (ALL_EXTENSION_LANGUAGES): Remove.
6830 (get_ext_lang_defn, get_ext_lang_of_file)
6831 (eval_ext_lang_from_control_command): Update.
6832 (finish_ext_lang_initialization)
6833 (auto_load_ext_lang_scripts_for_objfile)
6834 (ext_lang_type_printers::ext_lang_type_printers)
6835 (apply_ext_lang_type_printers)
6836 (ext_lang_type_printers::~ext_lang_type_printers)
6837 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6838 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6839 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6840 (get_matching_xmethod_workers, ext_lang_colorize)
6841 (ext_lang_before_prompt): Update.
6842 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6844 2020-05-08 Tom Tromey <tom@tromey.com>
6846 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6848 <swap_string, m_string>: Remove.
6849 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6851 * stabsread.c (define_symbol, read_type): Update.
6852 * linespec.c (find_linespec_symbols): Update.
6853 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6854 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6855 * dbxread.c (read_dbx_symtab): Update.
6856 * cp-support.h (cp_canonicalize_string_full)
6857 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6858 Return unique_xmalloc_ptr.
6859 * cp-support.c (inspect_type): Update.
6860 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6861 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6863 * c-typeprint.c (print_name_maybe_canonical): Update.
6864 * break-catch-throw.c (check_status_exception_catchpoint):
6867 2020-05-08 Tom de Vries <tdevries@suse.de>
6869 * infrun.c (follow_fork): Copy current_line and current_symtab to
6872 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6874 * async-event.c (struct async_signal_handler, struct
6875 async_event_handler): Reformat, remove typedef.
6877 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6879 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6880 access thistype->main_type->dyn_prop_list directly.
6882 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6884 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6885 (remove_dyn_prop): Remove. Update all users to use
6886 type::remove_dyn_prop.
6887 * gdbtypes.c (remove_dyn_prop): Rename to...
6888 (type::remove_dyn_prop): ... this.
6890 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6892 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6893 (add_dyn_prop): Remove. Update all users to use
6895 * gdbtypes.c (add_dyn_prop): Rename to...
6896 (type::add_dyn_prop): ... this.
6898 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6900 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6901 (get_dyn_prop): Remove. Update all users to use
6903 * gdbtypes.c (get_dyn_prop): Rename to...
6904 (type::dyn_prop): ... this.
6906 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6908 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6910 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6912 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6913 instruction, skip it if it's there.
6915 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6917 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6919 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6921 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6922 * gdbtypes.c (recursive_dump_type): Remove use of
6925 2020-05-03 Tom Tromey <tom@tromey.com>
6927 * breakpoint.c (catch_command, tcatch_command): Remove.
6928 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6929 add_show_prefix_cmd.
6930 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6931 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6933 (add_internal_problem_command): Use add_basic_prefix_cmd,
6934 add_show_prefix_cmd.
6935 * mips-tdep.c (set_mipsfpu_command): Remove.
6936 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6937 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6938 (_initialize_index_cache): Use add_basic_prefix_cmd.
6939 * memattr.c (dummy_cmd): Remove.
6940 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6941 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6942 (_initialize_tui_win): Use add_basic_prefix_cmd,
6943 add_show_prefix_cmd.
6944 * cli/cli-logging.c (set_logging_command): Remove.
6945 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6946 add_show_prefix_cmd.
6947 (show_logging_command): Remove.
6948 * target.c (target_command): Remove.
6949 (add_target): Use add_basic_prefix_cmd.
6951 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6953 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6955 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6957 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6960 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6962 * nbsd-nat.c (nbsd_enable_proc_events)
6963 (nbsd_nat_target::post_startup_inferior): Add.
6964 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6965 (nbsd_nat_target::update_thread_list): Rewrite.
6966 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6967 "PTRACE_LWP_CREATE".
6968 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6970 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6972 * stack.c (_initialize_stack): Remove duplicated creation
6973 of "frame" command and "f" alias.
6975 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6978 * gdbtypes.c (check_typedef): Calculate size of array of
6981 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6984 * i386-tdep.c (i386_push_dummy_call): Call
6985 i386_thiscall_push_dummy_call.
6986 (i386_thiscall_push_dummy_call): New function.
6987 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6988 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6989 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6991 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6993 * gdbarch.sh (do_read): Add shellcheck disable directive for
6996 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6998 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6999 "referenced but not assigned" warning.
7001 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7003 * gdbarch.sh: Remove code that sets fallbackdefault.
7005 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7007 * gdbarch.sh: Use shell operators && and || instead of
7010 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7012 * gdbarch.sh: Use $(...) instead of `...`.
7014 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7016 * gdbarch.sh: Use double quotes around variables.
7018 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7020 * gdbarch.sh: Use %s with printf, instead of variables in the
7023 2020-04-29 Tom Tromey <tromey@adacore.com>
7026 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7028 (read_enumeration_type): Call
7029 update_enumeration_type_from_children later. Update comments.
7030 (process_enumeration_scope): Don't create type fields.
7032 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7034 * nbsd-tdep.c: Include "xml-syscall.h".
7035 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7037 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7039 * nbsd-nat.c: Include "sys/wait.h".
7040 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7041 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7042 (nbsd_nat_target::remove_exec_catchpoint)
7043 (nbsd_nat_target::set_syscall_catchpoint): Add.
7044 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7045 (nbsd_nat_target::insert_exec_catchpoint)
7046 (nbsd_nat_target::remove_exec_catchpoint)
7047 (nbsd_nat_target::set_syscall_catchpoint): Add.
7048 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7049 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7050 `nbsd_get_syscall_number'.
7052 2020-04-29 Tom Tromey <tom@tromey.com>
7054 * stack.c (print_block_frame_labels): Remove.
7056 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7059 * ada-valprint.c (val_print_packed_array_elements): Move array
7060 end bracket to new line.
7061 (ada_val_print_string): Remove extra spaces before first array
7063 * c-valprint.c (c_value_print_array): Likewise.
7064 * m2-valprint.c (m2_print_array_contents): Likewise.
7065 (m2_value_print_inner): Likewise.
7066 * p-valprint.c (pascal_value_print_inner): Likewise.
7067 * valprint.c (generic_val_print_array): Likewise.
7068 (value_print_array_elements): Move first array element and array
7069 end bracket to new line.
7071 2020-04-29 Tom de Vries <tdevries@suse.de>
7074 * linespec.c (find_method): Fix ix calculation.
7076 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7078 * syscalls/update-netbsd.sh: New file.
7079 * syscalls/netbsd.xml: Regenerate.
7080 * data-directory/Makefile.in: Register `netbsd.xml' in
7083 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7085 * syscalls/update-freebsd.sh: Add double quotes.
7087 2020-04-28 Tom Tromey <tom@tromey.com>
7090 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7091 (cmdpy_init): Allow class_tui.
7093 2020-04-28 Mark Williams <mark@myosotissp.com>
7096 * dwarf2read.c: Add missing assingments to list_in_scope when
7097 start_symtab was already called.
7099 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7102 * dwarf2/read.c (offset_map_type): Use
7103 gdb:hash_enum<sect_offset> as hash function.
7105 2020-04-28 Tom de Vries <tdevries@suse.de>
7107 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7108 with DW_AT_signature.
7110 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7112 * configure.ac: Remove check for fs_base/gs_base in
7114 * configure: Re-generate.
7115 * config.in: Re-generate.
7116 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7117 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7118 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7120 2020-04-27 Luis Machado <luis.machado@linaro.org>
7122 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7123 problematic inline frame unwinding situation.
7124 * frame.c (frame_id_computed_p): New function.
7125 * frame.h (frame_id_computed_p): New prototype.
7127 2020-04-26 Tom Tromey <tom@tromey.com>
7129 * command.h (enum command_class) <class_pseudo>: Remove.
7131 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7133 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7136 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7138 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7139 `PT_GET_PROCESS_STATE' block.
7141 2020-04-24 Tom Tromey <tom@tromey.com>
7143 * symtab.h (symbol_get_demangled_name): Don't declare.
7144 * symtab.c (symbol_get_demangled_name): Remove.
7145 (general_symbol_info::natural_name)
7146 (general_symbol_info::demangled_name): Update.
7148 2020-04-24 Tom Tromey <tom@tromey.com>
7151 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7153 2020-04-24 Tom Tromey <tom@tromey.com>
7156 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7158 (new_symbol): Likewise.
7159 * compile/compile-object-load.c (get_out_value_type): Use
7160 symbol_matches_search_name.
7162 2020-04-24 Tom Tromey <tom@tromey.com>
7164 * dwarf2/read.c (add_partial_symbol): Do not call
7165 compute_and_set_names.
7167 2020-04-24 Tom Tromey <tom@tromey.com>
7169 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7172 2020-04-24 Tom Tromey <tom@tromey.com>
7174 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7175 (add_psymbol_to_list): New overload. Make old overload call new
7177 * psympriv.h (add_psymbol_to_list): New overload.
7179 2020-04-24 Tom Tromey <tom@tromey.com>
7181 * dwarf2/read.c (partial_die_info::read) <case
7182 DW_AT_linkage_name>: Use value_as_string.
7183 (dwarf2_string_attr): Use value_as_string.
7184 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7186 * dwarf2/attribute.c (attribute::value_as_string): New method.
7188 2020-04-24 Tom Tromey <tom@tromey.com>
7190 * symtab.c (general_symbol_info::natural_name)
7191 (general_symbol_info::demangled_name): Check for language_rust.
7193 2020-04-24 Tom Tromey <tom@tromey.com>
7195 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7196 (dwarf2_physname): ... from here.
7197 (partial_die_info::read): Add Rust "{" hack.
7199 2020-04-24 Tom Tromey <tom@tromey.com>
7201 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7203 (symbol_set_demangled_name): Don't declare.
7204 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7205 symbol_set_demangled_name.
7206 (general_symbol_info::set_language)
7207 (general_symbol_info::compute_and_set_names): Update.
7208 * minsyms.c (minimal_symbol_reader::install): Update.
7209 * dwarf2/read.c (new_symbol): Update.
7211 2020-04-24 Tom Tromey <tromey@adacore.com>
7214 * python/py-type.c (convert_field): Handle
7215 FIELD_LOC_KIND_DWARF_BLOCK.
7216 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7217 (typy_get_dynamic): Nw function.
7218 (type_object_getset): Add "dynamic".
7221 2020-04-24 Tom Tromey <tromey@adacore.com>
7223 * ada-typeprint.c (print_choices, print_variant_part)
7224 (print_record_field_types_dynamic): New functions.
7225 (print_record_field_types): Use print_record_field_types_dynamic.
7227 2020-04-24 Tom Tromey <tromey@adacore.com>
7229 * dwarf2/read.c (handle_data_member_location): New overload.
7230 (dwarf2_add_field): Use it.
7231 (decode_locdesc): Add "computed" parameter. Update comment.
7232 * gdbtypes.c (is_dynamic_type_internal): Also look for
7233 FIELD_LOC_KIND_DWARF_BLOCK.
7234 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7235 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7236 virtual base classes.
7237 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7238 FIELD_LOC_KIND_DWARF_BLOCK.
7240 2020-04-24 Tom Tromey <tromey@adacore.com>
7242 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7243 * gdbtypes.c (is_dynamic_type_internal): Check
7244 TYPE_HAS_DYNAMIC_LENGTH.
7245 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7246 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7248 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7251 2020-04-24 Tom Tromey <tromey@adacore.com>
7253 * dwarf2/read.c (struct variant_field): Rewrite.
7254 (struct variant_part_builder): New.
7255 (struct nextfield): Remove "variant" field. Add "offset".
7256 (struct field_info): Add "current_variant_part" and
7258 (alloc_discriminant_info): Remove.
7259 (alloc_rust_variant): New function.
7260 (quirk_rust_enum): Update.
7261 (dwarf2_add_field): Set "offset" member. Don't handle
7262 DW_TAG_variant_part.
7263 (offset_map_type): New typedef.
7264 (convert_variant_range, create_one_variant)
7265 (create_one_variant_part, create_variant_parts)
7266 (add_variant_property): New functions.
7267 (dwarf2_attach_fields_to_type): Call add_variant_property.
7268 (read_structure_type): Don't handle DW_TAG_variant_part.
7269 (handle_variant_part, handle_variant): New functions.
7270 (handle_struct_member_die): Use them.
7271 (process_structure_scope): Don't handle variant parts.
7272 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7273 (struct discriminant_info): Remove.
7274 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7275 (struct main_type) <flag_discriminated_union>: Remove.
7276 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7277 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7278 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7280 * valops.c (value_union_variant): Remove.
7281 * value.h (value_union_variant): Don't declare.
7283 2020-04-24 Tom Tromey <tromey@adacore.com>
7285 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7286 (ada_value_primitive_packed_val): Update.
7287 * ada-valprint.c (ada_value_print_1): Update.
7288 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7289 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7290 just an address. Use evaluate_for_locexpr_baton.
7291 (dwarf2_evaluate_property): Update.
7292 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7294 * findvar.c (default_read_var_value): Update.
7295 * gdbtypes.c (compute_variant_fields_inner)
7296 (resolve_dynamic_type_internal): Update.
7297 (resolve_dynamic_type): Change type of valaddr parameter.
7298 * gdbtypes.h (resolve_dynamic_type): Update.
7299 * valarith.c (value_subscripted_rvalue): Update.
7300 * value.c (value_from_contents_and_address): Update.
7302 2020-04-24 Tom Tromey <tromey@adacore.com>
7304 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7305 "push_initial_value" parameter.
7306 (dwarf2_evaluate_property): Likewise.
7307 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7309 2020-04-24 Tom Tromey <tromey@adacore.com>
7311 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7312 (variant::matches, compute_variant_fields_recurse)
7313 (compute_variant_fields_inner, compute_variant_fields): New
7315 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7316 Use resolved_type after type is made.
7317 (operator==): Add new cases.
7318 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7319 (struct discriminant_range, struct variant, struct variant_part):
7321 (union dynamic_prop_data) <variant_parts, original_type>: New
7323 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7324 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7326 * value.c (unpack_bits_as_long): Now public.
7327 * value.h (unpack_bits_as_long): Declare.
7329 2020-04-24 Tom Tromey <tromey@adacore.com>
7331 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7332 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7334 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7336 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7338 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7340 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7341 (remove_fork_catchpoint, post_startup_inferior)
7342 (post_attach): Move...
7343 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7344 (remove_fork_catchpoint, post_startup_inferior)
7345 (post_attach): ...here.
7346 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7347 (remove_fork_catchpoint, post_startup_inferior)
7348 (post_attach): Move...
7349 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7350 (remove_fork_catchpoint, post_startup_inferior)
7351 (post_attach): ...here.
7353 2020-04-24 Tom Tromey <tromey@adacore.com>
7355 * nat/windows-nat.h (struct windows_thread_info)
7356 <pc_adjusted>: New member.
7357 * windows-nat.c (windows_fetch_one_register): Check
7359 (windows_nat_target::get_windows_debug_event)
7360 (windows_nat_target::wait): Set pc_adjusted.
7362 2020-04-24 Tom de Vries <tdevries@suse.de>
7364 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7365 Run gdb-add-index inside temp dir.
7367 2020-04-23 Tom Tromey <tromey@adacore.com>
7369 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7372 2020-04-23 Luis Machado <luis.machado@linaro.org>
7374 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7375 get_frame_register instead of gdbarch_unwind_pc.
7377 2020-04-23 Tom de Vries <tdevries@suse.de>
7379 * symtab.c (lookup_global_symbol): Prefer def over decl.
7381 2020-04-23 Tom de Vries <tdevries@suse.de>
7384 * block.c (best_symbol, better_symbol): Promote to external.
7385 * block.h (best_symbol, better_symbol): Declare.
7386 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7389 2020-04-23 Tom Tromey <tromey@adacore.com>
7392 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7393 "const char *", not a "const std::string &".
7394 <name_and_matcher::operator==>: Update.
7395 * unittests/lookup_name_info-selftests.c: Change type of
7398 2020-04-23 Tom Tromey <tom@tromey.com>
7400 * inferior.h (iterate_over_inferiors): Don't declare.
7401 * inferior.c (iterate_over_inferiors): Remove.
7402 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7404 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7405 use iterate_over_inferiors.
7406 (darwin_resume_inferior_it)
7407 (struct resume_inferior_threads_param)
7408 (darwin_resume_inferior_threads_it): Remove.
7409 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7411 2020-04-23 Tom de Vries <tdevries@suse.de>
7413 * blockframe.c (find_pc_partial_function): Use
7414 find_pc_sect_compunit_symtab rather than
7415 objfile->sf->qf->find_pc_sect_compunit_symtab.
7417 2020-04-22 Tom de Vries <tdevries@suse.de>
7420 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7423 2020-04-22 Tom de Vries <tdevries@suse.de>
7426 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7429 2020-04-22 Tom de Vries <tdevries@suse.de>
7432 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7433 CU if already created.
7435 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7437 * infrun.c (displaced_step_fixup): Switch to the event_thread
7438 before calling displaced_step_restore, not after.
7440 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7442 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7443 its inferior is not recorded by us.
7444 (record_btrace_target_open): Replace call to
7445 all_non_exited_threads () with call to current_inferior
7446 ()->non_exited_threads ().
7447 (record_btrace_target::stop_recording): Likewise.
7448 (record_btrace_target::close): Likewise.
7449 (record_btrace_target::wait): Likewise.
7450 (record_btrace_target::record_stop_replaying): Likewise.
7452 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7454 * btrace.c (btrace_enable): Throw an error on double enables and
7455 when enabling recording fails.
7456 (btrace_disable): Throw an error if the thread is not recorded.
7458 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7460 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7461 request if we do not have a thread_info.
7463 2020-04-21 Tom de Vries <tdevries@suse.de>
7467 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7468 exception in get_frame_id.
7470 2020-04-20 Tom Tromey <tromey@adacore.com>
7472 * python/python.c (struct gdbpy_event): Mark move constructor as
7474 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7475 constructor as noexcept.
7476 * completer.h (struct completion_result): Mark move constructor as
7478 * completer.c (completion_result::completion_result): Use
7479 initialization style. Don't call reset_match_list.
7481 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7483 * MAINTAINERS (Write After Approval): Add myself.
7485 2020-04-18 Tom Tromey <tom@tromey.com>
7487 * windows-tdep.c (init_w32_command_list)
7488 (w32_prefix_command_valid): Restore.
7489 (_initialize_windows_tdep): Call init_w32_command_list.
7491 2020-04-18 Tom Tromey <tom@tromey.com>
7493 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7494 * value.c (value_fn_field): Update.
7495 * valops.c (find_function_in_inferior)
7496 (value_allocate_space_in_inferior): Update.
7497 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7499 * tui/tui-source.c (tui_source_window::set_contents): Update.
7500 * symtab.c (lookup_global_or_static_symbol)
7501 (find_function_start_sal_1, skip_prologue_sal)
7502 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7503 * symmisc.c (dump_msymbols, dump_symtab_1)
7504 (maintenance_print_one_line_table): Update.
7505 * symfile.c (init_entry_point_info, section_is_mapped)
7506 (list_overlays_command, simple_read_overlay_table)
7507 (simple_overlay_update_1): Update.
7508 * stap-probe.c (handle_stap_probe): Update.
7509 * stabsread.c (dbx_init_float_type, define_symbol)
7510 (read_one_struct_field, read_enum_type, read_range_type): Update.
7511 * source.c (info_line_command): Update.
7512 * python/python.c (gdbpy_source_objfile_script)
7513 (gdbpy_execute_objfile_script): Update.
7514 * python/py-type.c (save_objfile_types): Update.
7515 * python/py-objfile.c (py_free_objfile): Update.
7516 * python/py-inferior.c (python_new_objfile): Update.
7517 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7518 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7519 (maintenance_check_psymtabs): Update.
7520 * printcmd.c (info_address_command): Update.
7521 * objfiles.h (struct objfile) <arch>: New method, from
7523 (get_objfile_arch): Don't declare.
7524 * objfiles.c (get_objfile_arch): Remove.
7525 (filter_overlapping_sections): Update.
7526 * minsyms.c (msymbol_is_function): Update.
7527 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7528 (output_nondebug_symbol): Update.
7529 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7530 (mdebug_expand_psymtab): Update.
7531 * machoread.c (macho_add_oso_symfile): Update.
7532 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7534 * linux-fork.c (checkpoint_command): Update.
7535 * linespec.c (convert_linespec_to_sals): Update.
7536 * jit.c (finalize_symtab): Update.
7537 * infrun.c (insert_exception_resume_from_probe): Update.
7538 * ia64-tdep.c (ia64_find_unwind_table): Update.
7539 * hppa-tdep.c (internalize_unwinds): Update.
7540 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7542 * gcore.c (call_target_sbrk): Update.
7543 * elfread.c (record_minimal_symbol, elf_symtab_read)
7544 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7545 (elf_gnu_ifunc_resolve_by_got): Update.
7546 * dwarf2/read.c (create_addrmap_from_index)
7547 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7548 (read_debug_names_from_section)
7549 (process_psymtab_comp_unit_reader, add_partial_symbol)
7550 (add_partial_subprogram, process_full_comp_unit)
7551 (read_file_scope, read_func_scope, read_lexical_block_scope)
7552 (read_call_site_scope, dwarf2_ranges_read)
7553 (dwarf2_record_block_ranges, dwarf2_add_field)
7554 (mark_common_block_symbol_computed, read_tag_pointer_type)
7555 (read_tag_string_type, dwarf2_init_float_type)
7556 (dwarf2_init_complex_target_type, read_base_type)
7557 (partial_die_info::read, partial_die_info::read)
7558 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7559 (dwarf2_fetch_die_loc_sect_off): Update.
7560 * dwarf2/loc.c (dwarf2_find_location_expression)
7561 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7562 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7563 (dwarf2_loc_desc_get_symbol_read_needs)
7564 (locexpr_describe_location_piece, locexpr_describe_location_1)
7565 (loclist_describe_location): Update.
7566 * dwarf2/index-write.c (write_debug_names): Update.
7567 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7568 * dtrace-probe.c (dtrace_process_dof): Update.
7569 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7570 (process_one_symbol): Update.
7571 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7572 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7573 (coff_read_enum_type): Update.
7574 * cli/cli-cmds.c (edit_command, list_command): Update.
7575 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7576 * breakpoint.c (create_overlay_event_breakpoint)
7577 (create_longjmp_master_breakpoint)
7578 (create_std_terminate_master_breakpoint)
7579 (create_exception_master_breakpoint, get_sal_arch): Update.
7580 * block.c (block_gdbarch): Update.
7581 * annotate.c (annotate_source_line): Update.
7583 2020-04-17 Tom Tromey <tromey@adacore.com>
7585 * auto-load.c (show_auto_load_cmd): Remove.
7586 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7587 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7588 (maintenance_print_arc_command): Remove.
7589 * tui/tui-win.c (tui_command): Remove.
7590 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7591 * tui/tui-layout.c (tui_layout_command): Remove.
7592 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7593 * python/python.c (user_set_python, user_show_python): Remove.
7594 (_initialize_python): Use add_basic_prefix_cmd,
7595 add_show_prefix_cmd.
7596 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7597 (install_gdb_commands): Use add_basic_prefix_cmd,
7598 add_show_prefix_cmd.
7599 (info_guile_command): Remove.
7600 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7601 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7602 add_show_prefix_cmd.
7603 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7604 Remove do_set and do_show parameters.
7605 * cli/cli-style.c (set_style, show_style): Remove.
7606 (_initialize_cli_style): Use add_basic_prefix_cmd,
7607 add_show_prefix_cmd.
7608 (cli_style_option::add_setshow_commands): Remove do_set and
7610 (cli_style_option::add_setshow_commands): Use
7611 add_basic_prefix_cmd, add_show_prefix_cmd.
7612 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7613 (set_style_name): Remove.
7614 * cli/cli-dump.c (dump_command, append_command): Remove.
7615 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7616 (tekhex_dump_command, binary_dump_command)
7617 (binary_append_command): Remove.
7618 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7619 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7620 (init_w32_command_list): Remove; move into ...
7621 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7622 * valprint.c (set_print, show_print, set_print_raw)
7623 (show_print_raw): Remove.
7624 (_initialize_valprint): Use add_basic_prefix_cmd,
7625 add_show_prefix_cmd.
7626 * typeprint.c (set_print_type, show_print_type): Remove.
7627 (_initialize_typeprint): Use add_basic_prefix_cmd,
7628 add_show_prefix_cmd.
7629 * record.c (set_record_command, show_record_command): Remove.
7630 (_initialize_record): Use add_basic_prefix_cmd,
7631 add_show_prefix_cmd.
7632 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7633 add_show_prefix_cmd.
7634 (info_command, show_command, set_debug, show_debug): Remove.
7635 * top.h (set_history, show_history): Don't declare.
7636 * top.c (set_history, show_history): Remove.
7637 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7638 (unset_tdesc_cmd): Remove.
7639 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7640 add_show_prefix_cmd.
7641 * symtab.c (info_module_command): Remove.
7642 (_initialize_symtab): Use add_basic_prefix_cmd.
7643 * symfile.c (overlay_command): Remove.
7644 (_initialize_symfile): Use add_basic_prefix_cmd.
7645 * sparc64-tdep.c (info_adi_command): Remove.
7646 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7647 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7648 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7649 add_show_prefix_cmd.
7650 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7651 (_initialize_serial): Use add_basic_prefix_cmd,
7652 add_show_prefix_cmd.
7653 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7654 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7655 add_show_prefix_cmd.
7656 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7657 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7658 add_show_prefix_cmd.
7659 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7660 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7661 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7662 add_show_prefix_cmd.
7663 * remote.c (remote_command, set_remote_cmd): Remove.
7664 (_initialize_remote): Use add_basic_prefix_cmd.
7665 * record-full.c (set_record_full_command)
7666 (show_record_full_command): Remove.
7667 (_initialize_record_full): Use add_basic_prefix_cmd,
7668 add_show_prefix_cmd.
7669 * record-btrace.c (cmd_set_record_btrace)
7670 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7671 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7672 (cmd_show_record_btrace_pt): Remove.
7673 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7674 add_show_prefix_cmd.
7675 * ravenscar-thread.c (set_ravenscar_command)
7676 (show_ravenscar_command): Remove.
7677 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7678 add_show_prefix_cmd.
7679 * mips-tdep.c (show_mips_command, set_mips_command)
7680 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7681 add_show_prefix_cmd.
7682 * maint.c (maintenance_command, maintenance_info_command)
7683 (maintenance_check_command, maintenance_print_command)
7684 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7685 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7686 add_show_prefix_cmd.
7687 (show_per_command_cmd): Remove.
7688 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7690 (maintenance_show_test_settings_cmd): Remove.
7691 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7692 add_show_prefix_cmd.
7693 * maint-test-options.c (maintenance_test_options_command):
7695 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7696 * macrocmd.c (macro_command): Remove
7697 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7698 * language.c (set_check, show_check): Remove.
7699 (_initialize_language): Use add_basic_prefix_cmd,
7700 add_show_prefix_cmd.
7701 * infcmd.c (unset_command): Remove.
7702 (_initialize_infcmd): Use add_basic_prefix_cmd.
7703 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7704 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7705 add_show_prefix_cmd.
7706 * go32-nat.c (go32_info_dos_command): Remove.
7707 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7708 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7709 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7710 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7711 (_initialize_frame): Use add_basic_prefix_cmd,
7712 add_show_prefix_cmd.
7713 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7714 (_initialize_dcache): Use add_basic_prefix_cmd,
7715 add_show_prefix_cmd.
7716 * cp-support.c (maint_cplus_command): Remove.
7717 (_initialize_cp_support): Use add_basic_prefix_cmd.
7718 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7719 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7720 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7721 add_basic_prefix_cmd, add_show_prefix_cmd.
7722 * breakpoint.c (save_command): Remove.
7723 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7724 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7725 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7726 add_show_prefix_cmd.
7727 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7728 (set_ada_command, show_ada_command): Remove.
7729 (_initialize_ada_language): Use add_basic_prefix_cmd,
7730 add_show_prefix_cmd.
7731 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7733 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7735 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7736 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7738 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7740 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7743 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7745 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7746 import table is not at beginning of .idata section.
7748 2020-04-16 Pedro Alves <palves@redhat.com>
7750 * inferior.c (delete_inferior): Use delete operator directly
7751 instead of delete_program_space.
7752 * progspace.c (add_program_space): New, factored out from
7753 program_space::program_space.
7754 (remove_program_space): New, factored out from
7755 delete_program_space.
7756 (program_space::program_space): Remove intro comment. Rewrite.
7757 (program_space::~program_space): Remove intro comment. Call
7758 remove_program_space.
7759 (delete_program_space): Delete.
7760 * progspace.h (program_space::program_space): Make explicit. Move
7761 intro comment here, adjusted.
7762 (program_space::~program_space): Move intro comment here,
7764 (delete_program_space): Remove.
7766 2020-04-16 Tom Tromey <tromey@adacore.com>
7768 * windows-nat.c (windows_nat::handle_access_violation): New
7770 * nat/windows-nat.h (handle_access_violation): Declare.
7771 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7772 windows-nat.c. Call handle_access_violation.
7774 2020-04-16 Tom de Vries <tdevries@suse.de>
7777 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7778 CUs without psymtab.
7780 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7782 * python/python.c (do_start_initialization): Don't call
7783 PyEval_InitThreads for Python 3.9 and beyond.
7785 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7787 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7789 (obsd_nat_target::wait): Likewise.
7791 2020-04-15 Tom Tromey <tromey@adacore.com>
7793 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7794 (DEBUG_EXCEPT): Use debug_printf.
7796 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7798 * completer.c (class completion_tracker::completion_hash_entry)
7799 <hash_name>: New member function.
7800 (completion_tracker::discard_completions): New callback to hash a
7801 completion_hash_entry, pass this to htab_create_alloc.
7803 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7805 * windows-nat.c (windows_make_so): Warn rather than stopping with
7806 an error if realpath() fails.
7808 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7810 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7811 (nbsd_nat_target::info_proc): Add do_status.
7813 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7814 Tom de Vries <tdevries@suse.de>
7817 * psympriv.h (struct partial_symtab::read_symtab)
7818 (struct partial_symtab::expand_psymtab)
7819 (struct partial_symtab::read_dependencies): Update comments.
7820 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7821 read_symtab for includer.
7822 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7823 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7824 (struct dwarf2_include_psymtab::m_readin): Remove.
7825 (struct dwarf2_include_psymtab::includer): New member function.
7826 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7828 2020-04-14 Tom de Vries <tdevries@suse.de>
7831 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7832 with NULL symbol_matcher and lookup_name.
7833 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7835 * dwarf2/read.c (dw2_expand_symtabs_matching)
7836 (dw2_debug_names_expand_symtabs_matching): Same.
7837 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7838 Make lookup_name a pointer. Update comment.
7839 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7840 lookup_name being a pointer.
7841 * symfile.c (expand_symtabs_matching): Same.
7842 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7843 * linespec.c (iterate_over_all_matching_symtabs): Same.
7845 2020-04-13 Tom Tromey <tom@tromey.com>
7847 * run-on-main-thread.c: Update include.
7848 * unittests/main-thread-selftests.c: Update include.
7849 * tui/tui-win.c: Update include.
7850 * tui/tui-io.c: Update include.
7851 * tui/tui-interp.c: Update include.
7852 * tui/tui-hooks.c: Update include.
7853 * top.h: Update include.
7854 * top.c: Update include.
7855 * ser-base.c: Update include.
7856 * remote.c: Update include.
7857 * remote-notif.c: Update include.
7858 * remote-fileio.c: Update include.
7859 * record-full.c: Update include.
7860 * record-btrace.c: Update include.
7861 * python/python.c: Update include.
7862 * posix-hdep.c: Update include.
7863 * mingw-hdep.c: Update include.
7864 * mi/mi-main.c: Update include.
7865 * mi/mi-interp.c: Update include.
7866 * main.c: Update include.
7867 * linux-nat.c: Update include.
7868 * interps.c: Update include.
7869 * infrun.c: Update include.
7870 * inf-loop.c: Update include.
7871 * event-top.c: Update include.
7872 * event-loop.c: Move to ../gdbsupport/.
7873 * event-loop.h: Move to ../gdbsupport/.
7874 * async-event.h: Update include.
7875 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7877 2020-04-13 Tom Tromey <tom@tromey.com>
7879 * tui/tui-win.c: Include async-event.h.
7880 * remote.c: Include async-event.h.
7881 * remote-notif.c: Include async-event.h.
7882 * record-full.c: Include async-event.h.
7883 * record-btrace.c: Include async-event.h.
7884 * infrun.c: Include async-event.h.
7885 * event-top.c: Include async-event.h.
7886 * event-loop.h: Move some declarations to async-event.h.
7887 * event-loop.c: Don't include ser-event.h or top.h. Move some
7888 code to async-event.c.
7889 * async-event.h: New file.
7890 * async-event.c: New file.
7891 * Makefile.in (COMMON_SFILES): Add async-event.c.
7892 (HFILES_NO_SRCDIR): Add async-event.h.
7894 2020-04-13 Tom Tromey <tom@tromey.com>
7896 * utils.c (flush_streams): New function.
7897 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7899 2020-04-13 Tom Tromey <tom@tromey.com>
7901 * event-loop.c (handle_file_event): Use warning, not
7904 2020-04-13 Tom Tromey <tom@tromey.com>
7906 * event-loop.c: Include <chrono>.
7908 2020-04-13 Tom Tromey <tom@tromey.com>
7910 * gdb_select.h: Move to ../gdbsupport/.
7911 * event-loop.c: Update include path.
7912 * top.c: Update include path.
7913 * ser-base.c: Update include path.
7914 * ui-file.c: Update include path.
7915 * ser-tcp.c: Update include path.
7916 * guile/scm-ports.c: Update include path.
7917 * posix-hdep.c: Update include path.
7918 * ser-unix.c: Update include path.
7919 * gdb_usleep.c: Update include path.
7920 * mingw-hdep.c: Update include path.
7921 * inflow.c: Update include path.
7922 * infrun.c: Update include path.
7923 * event-top.c: Update include path.
7925 2020-04-13 Tom Tromey <tom@tromey.com>
7927 * configure: Rebuild.
7928 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7930 2020-04-13 Tom Tromey <tom@tromey.com>
7932 * event-loop.h (start_event_loop): Don't declare.
7933 * event-loop.c (start_event_loop): Move...
7934 * main.c (start_event_loop): ...here. Now static.
7936 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7938 * MAINTAINERS: Update my email address.
7940 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7942 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7945 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7947 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7948 (nbsd_nat_target::info_proc): Add do_cmdline.
7950 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7952 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7953 (nbsd_nat_target::info_proc): Add do_cwd.
7955 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7957 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7959 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7961 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7962 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7963 (nbsd_nat_target::info_proc): New functions.
7964 * nbsd-nat.c (kinfo_get_vmmap): New function.
7965 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7966 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7967 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7968 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7970 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7971 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7972 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7973 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7974 (KINFO_VME_FLAG_GROWS_DOWN): New.
7976 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7978 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7981 2020-04-10 Tom Tromey <tromey@adacore.com>
7983 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7985 2020-04-10 Tom Tromey <tromey@adacore.com>
7987 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7988 separate debug files.
7990 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7992 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7994 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7996 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7997 Check for STATUS_WX86_BREAKPOINT.
7998 (windows_nat_target::wait): Same.
8000 2020-04-10 Tom de Vries <tdevries@suse.de>
8003 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8005 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8007 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8008 (Write After Approval): Remove Tom de Vries.
8010 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8013 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8015 * buildsym.c (record_line): Fix undefined behavior and preserve
8018 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8020 * auxv.h (svr4_auxv_parse): New.
8021 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8022 and generic_auxv_parse.
8023 (svr4_auxv_parse): Add.
8024 * obsd-tdep.c: Include "auxv.h".
8025 (obsd_auxv_parse): Remove.
8026 (obsd_init_abi): Remove comment.
8027 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8028 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8029 * nbsd-tdep.c: Include "auxv.h".
8030 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8032 2020-04-08 Tom Tromey <tromey@adacore.com>
8034 * nat/windows-nat.h (last_wait_event): Don't declare.
8035 (wait_for_debug_event): Update comment.
8036 * nat/windows-nat.c (last_wait_event): Now static.
8038 2020-04-08 Tom Tromey <tromey@adacore.com>
8040 * windows-nat.c (wait_for_debug_event): Move to
8042 * nat/windows-nat.h (wait_for_debug_event): Declare.
8043 * nat/windows-nat.c (wait_for_debug_event): Move from
8044 windows-nat.c. No longer static.
8046 2020-04-08 Tom Tromey <tromey@adacore.com>
8048 * windows-nat.c (get_windows_debug_event): Use
8050 * nat/windows-nat.h (fetch_pending_stop): Declare.
8051 * nat/windows-nat.c (fetch_pending_stop): New function.
8053 2020-04-08 Tom Tromey <tromey@adacore.com>
8055 * windows-nat.c (windows_continue): Use matching_pending_stop and
8056 continue_last_debug_event.
8057 * nat/windows-nat.h (matching_pending_stop)
8058 (continue_last_debug_event): Declare.
8059 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8060 (matching_pending_stop, continue_last_debug_event): New
8063 2020-04-08 Tom Tromey <tromey@adacore.com>
8065 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8066 (handle_exception_result): Move to nat/windows-nat.h.
8067 (DEBUG_EXCEPTION_SIMPLE): Remove.
8068 (windows_nat::handle_ms_vc_exception): New function.
8069 (handle_exception): Move to nat/windows-nat.c.
8070 (get_windows_debug_event): Update.
8071 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8073 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8074 (handle_exception_result): Move from windows-nat.c.
8075 (handle_exception): Declare.
8076 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8077 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8080 2020-04-08 Tom Tromey <tromey@adacore.com>
8082 * windows-nat.c (exception_count, event_count): Remove.
8083 (handle_exception, get_windows_debug_event)
8084 (do_initial_windows_stuff): Update.
8086 2020-04-08 Tom Tromey <tromey@adacore.com>
8088 * windows-nat.c (windows_nat::handle_load_dll)
8089 (windows_nat::handle_unload_dll): Rename. No longer static.
8090 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8093 2020-04-08 Tom Tromey <tromey@adacore.com>
8095 * complaints.h (stop_whining): Declare at top-level.
8096 (complaint): Don't declare stop_whining.
8098 2020-04-08 Tom Tromey <tromey@adacore.com>
8100 * windows-nat.c (windows_nat::handle_output_debug_string):
8101 Rename. No longer static.
8102 * nat/windows-nat.h (handle_output_debug_string): Declare.
8104 2020-04-08 Tom Tromey <tromey@adacore.com>
8106 * windows-nat.c (current_process_handle, current_process_id)
8107 (main_thread_id, last_sig, current_event, last_wait_event)
8108 (current_windows_thread, desired_stop_thread_id, pending_stops)
8109 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8110 (display_selectors, fake_create_process)
8111 (get_windows_debug_event): Update.
8112 * nat/windows-nat.h (current_process_handle, current_process_id)
8113 (main_thread_id, last_sig, current_event, last_wait_event)
8114 (current_windows_thread, desired_stop_thread_id, pending_stops)
8115 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8116 * nat/windows-nat.c (current_process_handle, current_process_id)
8117 (main_thread_id, last_sig, current_event, last_wait_event)
8118 (current_windows_thread, desired_stop_thread_id, pending_stops)
8119 (siginfo_er): New globals. Move from windows-nat.c.
8121 2020-04-08 Tom Tromey <tromey@adacore.com>
8123 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8124 (handle_load_dll): Update.
8125 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8127 2020-04-08 Tom Tromey <tromey@adacore.com>
8129 * windows-nat.c (enum thread_disposition_type): Move to
8131 (windows_nat::thread_rec): Rename from thread_rec. No longer
8133 (windows_add_thread, windows_nat_target::fetch_registers)
8134 (windows_nat_target::store_registers, handle_exception)
8135 (windows_nat_target::resume, get_windows_debug_event)
8136 (windows_nat_target::get_tib_address)
8137 (windows_nat_target::thread_name)
8138 (windows_nat_target::thread_alive): Update.
8139 * nat/windows-nat.h (enum thread_disposition_type): Move from
8141 (thread_rec): Declare.
8143 2020-04-08 Tom Tromey <tromey@adacore.com>
8145 * windows-nat.c: Add "using namespace".
8146 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8147 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8149 2020-04-08 Tom Tromey <tromey@adacore.com>
8151 * nat/windows-nat.h (struct windows_thread_info): Declare
8153 * nat/windows-nat.c (~windows_thread_info): New.
8155 2020-04-08 Tom Tromey <tromey@adacore.com>
8158 * windows-nat.c (current_event): Update comment.
8159 (last_wait_event, desired_stop_thread_id): New globals.
8160 (struct pending_stop): New.
8161 (pending_stops): New global.
8162 (windows_nat_target) <stopped_by_sw_breakpoint>
8163 <supports_stopped_by_sw_breakpoint>: New methods.
8164 (windows_fetch_one_register): Add assertions. Adjust PC.
8165 (windows_continue): Handle pending stops. Suspend other threads
8166 when stepping. Use last_wait_event
8167 (wait_for_debug_event): New function.
8168 (get_windows_debug_event): Use wait_for_debug_event. Handle
8169 pending stops. Queue spurious stops.
8170 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8171 (windows_nat_target::kill): Use wait_for_debug_event.
8172 * nat/windows-nat.h (struct windows_thread_info)
8173 <stopped_at_software_breakpoint>: New field.
8174 * nat/windows-nat.c (windows_thread_info::resume): Clear
8175 stopped_at_software_breakpoint.
8177 2020-04-08 Tom Tromey <tromey@adacore.com>
8179 * windows-nat.c (enum thread_disposition_type): New.
8180 (thread_rec): Replace "get_context" parameter with "disposition";
8182 (windows_add_thread, windows_nat_target::fetch_registers)
8183 (windows_nat_target::store_registers, handle_exception)
8184 (windows_nat_target::resume, get_windows_debug_event)
8185 (windows_nat_target::get_tib_address)
8186 (windows_nat_target::thread_name)
8187 (windows_nat_target::thread_alive): Update.
8189 2020-04-08 Tom Tromey <tromey@adacore.com>
8191 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8192 (windows_continue): Use windows_continue::resume.
8193 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8194 resume>: Declare new methods.
8195 * nat/windows-nat.c: New file.
8196 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8198 2020-04-08 Tom Tromey <tromey@adacore.com>
8200 * windows-nat.c (windows_add_thread, windows_delete_thread)
8201 (windows_nat_target::fetch_registers)
8202 (windows_nat_target::store_registers, fake_create_process)
8203 (windows_nat_target::resume, windows_nat_target::resume)
8204 (get_windows_debug_event, windows_nat_target::wait)
8205 (windows_nat_target::pid_to_str)
8206 (windows_nat_target::get_tib_address)
8207 (windows_nat_target::get_ada_task_ptid)
8208 (windows_nat_target::thread_name)
8209 (windows_nat_target::thread_alive): Use lwp, not tid.
8211 2020-04-08 Tom Tromey <tromey@adacore.com>
8213 * windows-nat.c (handle_exception)
8214 (windows_nat_target::thread_name): Update.
8215 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8216 <name>: Now unique_xmalloc_ptr.
8218 2020-04-08 Tom Tromey <tromey@adacore.com>
8220 * windows-nat.c (thread_rec)
8221 (windows_nat_target::fetch_registers): Update.
8222 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8224 <debug_registers_changed, reload_context>: Now bool.
8226 2020-04-08 Tom Tromey <tromey@adacore.com>
8228 * windows-nat.c (windows_add_thread): Use new.
8229 (windows_init_thread_list, windows_delete_thread): Use delete.
8230 (get_windows_debug_event): Update.
8231 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8232 destructor, and initializers.
8234 2020-04-08 Tom Tromey <tromey@adacore.com>
8236 * windows-nat.c (struct windows_thread_info): Remove.
8237 * nat/windows-nat.h: New file.
8239 2020-04-08 Tom Tromey <tromey@adacore.com>
8241 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8242 (thread_rec, windows_add_thread, windows_delete_thread)
8243 (windows_continue): Update.
8245 2020-04-08 Tom Tromey <tromey@adacore.com>
8247 * windows-nat.c (struct windows_thread_info): Remove typedef.
8248 (thread_head): Remove.
8249 (thread_list): New global.
8250 (thread_rec, windows_add_thread, windows_init_thread_list)
8251 (windows_delete_thread, windows_continue): Update.
8253 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8255 * windows-tdep.h (windows_init_abi): Add comment.
8256 (cygwin_init_abi): New declaration.
8257 * windows-tdep.c: Split signal enumeration in two, one for
8258 Windows and one for Cygwin.
8259 (windows_gdb_signal_to_target): Only deal with signal of the
8261 (cygwin_gdb_signal_to_target): New function.
8262 (windows_init_abi): Rename to windows_init_abi_common, don't set
8263 gdb_signal_to_target gdbarch method. Add new new function with
8265 (cygwin_init_abi): New function.
8266 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8267 comment. Don't call windows_init_abi.
8268 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8269 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8270 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8271 i386_windows_init_abi_common, don't call windows_init_abi. Add
8272 a new function of this name.
8273 (i386_cygwin_init_abi): New function.
8274 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8277 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8279 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8281 (dwarf2_read_gdb_index): Update.
8283 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8285 * nbsd-tdep.c: Include "objfiles.h".
8286 (nbsd_skip_solib_resolver): New.
8287 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8289 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8291 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8292 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8293 with DW_LLE_base_addressx are being emitted in DWARFv5.
8294 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8295 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8298 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8300 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8301 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8302 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8303 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8304 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8305 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8306 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8309 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8311 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8312 (read_loclist_index): New function definition.
8313 (lookup_loclist_base): New function definition.
8314 (read_loclist_header): New function definition.
8315 (dwarf2_cu): Add loclist_base and loclist_header field.
8316 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8317 (read_full_die_1): Read the value of DW_AT_loclists_base.
8318 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8319 (read_attribute_value): Handle DW_FORM_loclistx.
8320 (skip_one_die): Handle DW_FORM_loclistx.
8321 (loclist_header): New structure declaration.
8322 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8324 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8326 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8327 constructor. Remove `addr` parameter from other constructor and
8328 add `per_cu` parameter.
8329 * dwarf2/read.c (create_partial_symtab): Update.
8331 2020-04-07 Tom de Vries <tdevries@suse.de>
8334 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8335 (partial_die_info::fixup): Inherit has_const_value.
8337 2020-04-07 Tom de Vries <tdevries@suse.de>
8339 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8340 symbols without address.
8342 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8344 * nbsd-nat.h (struct thread_info): Add forward declaration.
8345 (nbsd_nat_target::thread_alive): Add.
8346 (nbsd_nat_target::thread_name): Likewise.
8347 (nbsd_nat_target::update_thread_list): Likewise.
8348 (update_thread_list::post_attach): Likewise.
8349 (post_attach::pid_to_str): Likewise.
8350 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8351 (nbsd_thread_lister): Add.
8352 (nbsd_nat_target::thread_alive): Likewise.
8353 (nbsd_nat_target::thread_name): Likewise.
8354 (nbsd_add_threads): Likewise.
8355 (update_thread_list::post_attach): Likewise.
8356 (nbsd_nat_target::update_thread_list): Likewise.
8357 (post_attach::pid_to_str): Likewise.
8359 2020-04-06 Tom Tromey <tromey@adacore.com>
8361 * ada-valprint.c (print_variant_part): Extract the variant field.
8362 (print_field_values): Use the field as the outer value when
8365 2020-04-06 Tom Tromey <tromey@adacore.com>
8367 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8368 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8369 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8370 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8371 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8373 2020-04-06 Tom Tromey <tromey@adacore.com>
8375 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8378 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8380 * nbsd-tdep.c: Include "gdbarch.h".
8381 Define enum with NetBSD signal numbers.
8382 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8383 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8384 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8385 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8386 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8387 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8388 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8389 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8390 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8391 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8392 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8393 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8395 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8398 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8400 2020-04-03 Tom Tromey <tromey@adacore.com>
8402 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8403 Read constant block.
8405 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8407 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8408 (gdb_bfd_get_full_section_contents): New declaration.
8409 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8410 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8411 gdb_bfd_get_full_section_contents.
8413 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8415 * exec.c (build_section_table): Replace internal_error with
8417 (section_table_xfer_memory_partial): Likewise.
8418 * mdebugread.c (parse_partial_symbols): Likewise.
8419 * psymtab.c (lookup_partial_symbol): Likewise.
8420 * utils.c (wrap_here): Likewise.
8422 2020-04-02 Tom Tromey <tromey@adacore.com>
8424 * f-lang.c (build_fortran_types): Use arch_type to initialize
8425 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8427 2020-04-02 Tom Tromey <tromey@adacore.com>
8429 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8432 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8433 Bernd Edlinger <bernd.edlinger@hotmail.de>
8434 Tom Tromey <tromey@adacore.com>
8436 * buildsym.c (buildsym_compunit::record_line): Remove
8439 2020-04-02 Tom de Vries <tdevries@suse.de>
8442 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8444 2020-04-02 Tom de Vries <tdevries@suse.de>
8446 * dwarf2/read.c (dwarf2_gdb_index_functions,
8447 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8449 * psymtab.c (psym_lookup_global_symbol_language): New function.
8450 (psym_functions): Init psym_lookup_global_symbol_language with
8451 psym_lookup_global_symbol_language.
8452 * symfile-debug.c (debug_sym_quick_functions): Init
8453 lookup_global_symbol_language with NULL.
8454 * symfile.c (set_initial_language): Remove fixme comment.
8455 * symfile.h (struct quick_symbol_functions): Add
8456 lookup_global_symbol_language.
8457 * symtab.c (find_quick_global_symbol_language): New function.
8458 (find_main_name): Use find_quick_global_symbol_language.
8460 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8462 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8464 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8466 * buildsym.c (record_line): Fix undefined behavior and preserve
8469 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8471 * buildsym.c (record_line): Fix the resizing condition.
8473 2020-04-01 Tom Tromey <tom@tromey.com>
8475 * value.h (value_literal_complex): Add comment.
8476 * valops.c (value_literal_complex): Refer to value.h.
8478 2020-04-01 Tom Tromey <tom@tromey.com>
8480 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8481 (scalar_type): New rule, from typebase.
8482 (typebase): Use scalar_type. Recognize complex types.
8483 (field_name): Handle FLOAT_KEYWORD.
8484 (ident_tokens): Add _Complex and __complex__.
8486 2020-04-01 Tom Tromey <tom@tromey.com>
8489 * valarith.c (promotion_type, complex_binop): New functions.
8490 (scalar_binop): Handle complex numbers. Use promotion_type.
8491 (value_pos, value_neg, value_complement): Handle complex numbers.
8493 2020-04-01 Tom Tromey <tom@tromey.com>
8495 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8496 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8497 (parse_number): Handle complex numbers.
8499 2020-04-01 Tom Tromey <tom@tromey.com>
8501 * c-valprint.c (c_decorations): Change complex suffix to "i".
8503 2020-04-01 Tom Tromey <tom@tromey.com>
8505 * valprint.c (generic_value_print_complex): Use accessors.
8506 * value.h (value_real_part, value_imaginary_part): Declare.
8507 * valops.c (value_real_part, value_imaginary_part): New
8509 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8511 2020-04-01 Tom Tromey <tom@tromey.com>
8513 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8514 (read_range_type): Update.
8515 * mdebugread.c (basic_type): Update.
8516 * go-lang.c (build_go_types): Use init_complex_type.
8517 * gdbtypes.h (struct main_type) <complex_type>: New member.
8518 (init_complex_type): Update.
8519 (arch_complex_type): Don't declare.
8520 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8521 Make name if none given. Use alloc_type_copy. Look for cached
8523 (arch_complex_type): Remove.
8524 (gdbtypes_post_init): Use init_complex_type.
8525 * f-lang.c (build_fortran_types): Use init_complex_type.
8526 * dwarf2/read.c (read_base_type): Update.
8527 * d-lang.c (build_d_types): Use init_complex_type.
8528 * ctfread.c (read_base_type): Update.
8530 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8532 * infrun.c (stop_all_threads): Update assertion, plus when
8533 stopping threads, take into account that we might be trying
8534 to stop an all-stop target.
8535 (stop_waiting): Call 'stop_all_threads' if there exists a
8538 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8540 * target.h (exists_non_stop_target): New function declaration.
8541 * target.c (exists_non_stop_target): New function.
8543 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8546 * eval.c (is_integral_or_integral_reference): New function.
8547 (evaluate_subexp_standard): Allow integer references in
8550 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8552 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8553 check for no ptid in the stop reply when the target is non-stop.
8555 2020-04-01 Tom Tromey <tromey@adacore.com>
8557 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8558 "name" parameter to rvalue reference. Initialize m_name_holder.
8559 <lookup_name_info>: New overloads.
8560 <name>: Return gdb::string_view.
8561 <c_str>: New method.
8562 <make_ignore_params>: Update.
8563 <search_name_hash>: Update.
8564 <language_lookup_name>: Return const char *.
8565 <m_name>: Change type.
8566 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8567 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8568 (lookup_name_info::match_any): Update.
8569 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8571 * minsyms.c (linkage_name_str): Update.
8572 * language.c (default_symbol_name_matcher): Update.
8573 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8575 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8576 (ada_lookup_name_info::ada_lookup_name_info): Update.
8577 (literal_symbol_name_matcher): Update.
8579 2020-04-01 Tom Tromey <tromey@adacore.com>
8581 * psymtab.c (psymtab_search_name): Remove function.
8582 (psym_lookup_symbol): Create search name and lookup name here.
8583 (lookup_partial_symbol): Remove "name" parameter; add
8585 (psym_expand_symtabs_for_function): Update.
8587 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8590 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8592 2020-03-31 Tom Tromey <tromey@adacore.com>
8594 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8597 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8599 * features/riscv/32bit-csr.xml: Regenerated.
8600 * features/riscv/64bit-csr.xml: Regenerated.
8602 2020-03-30 Tom Tromey <tromey@adacore.com>
8604 * ada-valprint.c (print_variant_part): Update.
8605 * ada-lang.h (ada_which_variant_applies): Update.
8606 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8607 outer_valaddr parameters; replace with "outer" value parameter.
8608 (to_fixed_variant_branch_type): Update.
8610 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8612 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8613 <list>. Remove inclusion of observable.h.
8614 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8615 (struct arch_lwp_info): New struct.
8616 (class ppc_linux_dreg_interface): New class.
8617 (struct ppc_linux_process_info): New struct.
8618 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8619 <low_new_clone, low_forget_process, low_prepare_to_resume>
8620 <copy_thread_dreg_state, mark_thread_stale>
8621 <mark_debug_registers_changed, register_hw_breakpoint>
8622 <clear_hw_breakpoint, register_wp, clear_wp>
8623 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8624 <num_memory_accesses, get_trigger_type>
8625 <create_watchpoint_request, hwdebug_point_cmp>
8626 <init_arch_lwp_info, get_arch_lwp_info>
8627 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8629 <struct ptid_hash>: New inner struct.
8630 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8632 (saved_dabr_value, hwdebug_info, max_slots_number)
8633 (struct hw_break_tuple, struct thread_points, ppc_threads)
8634 (have_ptrace_hwdebug_interface)
8635 (hwdebug_find_thread_points_by_tid)
8636 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8637 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8638 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8639 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8640 use m_dreg_interface.
8641 (hwdebug_point_cmp): Change to...
8642 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8643 reference arguments instead of pointers.
8644 (ppc_linux_nat_target::ranged_break_num_registers): Use
8646 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8647 m_dreg_interface. Call register_hw_breakpoint.
8648 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8649 m_dreg_interface. Call clear_hw_breakpoint.
8650 (get_trigger_type): Change to...
8651 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8653 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8654 use m_dreg_interface. Call register_hw_breakpoint.
8655 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8656 use m_dreg_interface. Call clear_hw_breakpoint.
8657 (can_use_watchpoint_cond_accel): Change to...
8658 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8659 method. Update comment, use m_dreg_interface and
8661 (calculate_dvc): Change to...
8662 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8664 (num_memory_accesses): Change to...
8665 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8666 (check_condition): Change to...
8667 (ppc_linux_nat_target::check_condition): ...this method.
8668 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8669 comment, use m_dreg_interface.
8670 (create_watchpoint_request): Change to...
8671 (ppc_linux_nat_target::create_watchpoint_request): ...this
8672 method. Use m_dreg_interface.
8673 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8674 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8675 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8676 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8677 (ppc_linux_nat_target::low_forget_process)
8678 (ppc_linux_nat_target::low_new_fork)
8679 (ppc_linux_nat_target::low_new_clone)
8680 (ppc_linux_nat_target::low_delete_thread)
8681 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8682 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8683 only call mark_thread_stale.
8684 (ppc_linux_thread_exit): Remove.
8685 (ppc_linux_nat_target::stopped_data_address): Change to...
8686 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8687 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8688 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8689 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8690 comment. Call low_stopped_data_address.
8691 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8693 (ppc_linux_nat_target::masked_watch_num_registers): Use
8695 (ppc_linux_nat_target::copy_thread_dreg_state)
8696 (ppc_linux_nat_target::mark_thread_stale)
8697 (ppc_linux_nat_target::mark_debug_registers_changed)
8698 (ppc_linux_nat_target::register_hw_breakpoint)
8699 (ppc_linux_nat_target::clear_hw_breakpoint)
8700 (ppc_linux_nat_target::register_wp)
8701 (ppc_linux_nat_target::clear_wp)
8702 (ppc_linux_nat_target::init_arch_lwp_info)
8703 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8704 (_initialize_ppc_linux_nat): Remove observer callback.
8706 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8708 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8709 (ppc_linux_nat_target::auxv_parse)
8710 (ppc_linux_nat_target::read_description)
8711 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8714 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8716 * linux-nat.h (low_new_clone): New method.
8717 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8719 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8721 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8722 (dbx_expand_psymtab): ... this.
8723 (start_psymtab): Update.
8724 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8725 (mdebug_expand_psymtab): ... this.
8726 (parse_partial_symbols): Update.
8727 (new_psymtab): Update.
8728 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8729 (xcoff_expand_psymtab): ... this.
8730 (xcoff_start_psymtab): Update.
8732 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8734 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8735 <expand_dependencies>: ... this.
8736 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8737 (partial_symtab::expand_dependencies): ... this.
8738 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8740 (dwarf2_psymtab::expand_psymtab): Update.
8741 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8742 * mdebugread.c (psymtab_to_symtab_1): Update.
8743 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8745 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8747 * psympriv.h (discard_psymtab): Remove.
8748 * dbxread.c (dbx_end_psymtab): Update.
8749 * xcoffread.c (xcoff_end_psymtab): Update.
8751 2020-03-28 Tom Tromey <tom@tromey.com>
8753 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8756 2020-03-28 Tom Tromey <tom@tromey.com>
8758 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8760 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8762 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8764 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8766 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8768 2020-03-26 Tom Tromey <tom@tromey.com>
8770 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8771 (mark_common_block_symbol_computed, read_tag_string_type)
8772 (attr_to_dynamic_prop, read_subrange_type): Update.
8773 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8774 to be methods on struct attribute.
8775 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8776 (read_call_site_scope, partial_die_info::read)
8777 (partial_die_info::read, lookup_die_type, follow_die_ref):
8779 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8780 from dwarf2_get_ref_die_offset.
8781 (attribute::constant_value): New method, from
8782 dwarf2_get_attr_constant_value.
8783 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8785 <constant_value>: New method.
8787 2020-03-26 Tom Tromey <tom@tromey.com>
8789 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8790 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8791 (dwarf_type_encoding_name): Move to stringify.c.
8792 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8793 * dwarf2/stringify.c: New file.
8794 * dwarf2/stringify.h: New file.
8796 2020-03-26 Tom Tromey <tom@tromey.com>
8798 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8801 2020-03-26 Tom Tromey <tom@tromey.com>
8803 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8805 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8806 (lookup_ranges_base): Likewise.
8807 (read_cutu_die_from_dwo, read_full_die_1): Update.
8809 2020-03-26 Tom Tromey <tom@tromey.com>
8811 * dwarf2/read.c (read_import_statement, read_file_scope)
8812 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8813 (read_lexical_block_scope, read_call_site_scope)
8814 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8815 (handle_struct_member_die, process_structure_scope)
8816 (update_enumeration_type_from_children)
8817 (process_enumeration_scope, read_array_type, read_common_block)
8818 (read_namespace, read_module, read_subroutine_type): Update.
8819 (sibling_die): Remove.
8821 2020-03-26 Tom Tromey <tom@tromey.com>
8823 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8824 (build_type_psymtabs_reader, read_structure_type)
8825 (read_enumeration_type, read_full_die_1): Update.
8826 (dwarf2_attr_no_follow): Move to die.h.
8827 * dwarf2/die.h (struct die_info) <attr>: New method.
8829 2020-03-26 Tom Tromey <tom@tromey.com>
8831 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8832 <base_address>: Now an optional.
8833 (dwarf2_find_base_address, dwarf2_rnglists_process)
8834 (dwarf2_ranges_process, fill_in_loclist_baton)
8835 (dwarf2_symbol_mark_computed): Update.
8837 2020-03-26 Tom Tromey <tom@tromey.com>
8839 * dwarf2/read.c (struct die_info): Move to die.h.
8840 * dwarf2/die.h: New file.
8842 2020-03-26 Tom Tromey <tom@tromey.com>
8844 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8846 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8847 Move to line-header.c.
8848 (read_checked_initial_length_and_offset, read_formatted_entries):
8850 (dwarf_decode_line_header): Split into two.
8851 * dwarf2/line-header.c
8852 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8854 (read_checked_initial_length_and_offset, read_formatted_entries):
8856 (dwarf_decode_line_header): New function, split from read.c.
8858 2020-03-26 Tom Tromey <tom@tromey.com>
8860 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8862 * dwarf2/read.c (read_attribute_value): Update.
8863 (dwarf2_per_objfile::read_line_string): Rename from
8864 read_indirect_line_string.
8865 (read_formatted_entries): Update.
8867 2020-03-26 Tom Tromey <tom@tromey.com>
8869 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8872 2020-03-26 Tom Tromey <tom@tromey.com>
8874 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8876 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8877 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8880 2020-03-26 Tom Tromey <tom@tromey.com>
8882 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8883 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8884 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8885 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8887 2020-03-26 Tom Tromey <tom@tromey.com>
8889 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8890 file_names_size, file_full_name, file_file_name>: Use const.
8891 <file_name_at, file_names>: Add const overload.
8892 * dwarf2/line-header.c (line_header::file_file_name)
8893 (line_header::file_full_name): Update.
8895 2020-03-26 Tom Tromey <tom@tromey.com>
8897 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8898 (macro_start_file, consume_improper_spaces)
8899 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8900 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8901 (dwarf_decode_macros): Move to macro.c.
8902 * dwarf2/macro.c: New file.
8903 * dwarf2/macro.h: New file.
8904 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8906 2020-03-26 Tom Tromey <tom@tromey.com>
8908 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8910 * dwarf2/section.c: New method. From
8911 read_indirect_string_at_offset_from.
8912 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8913 (read_indirect_string_at_offset_from): Move to section.c.
8914 (read_indirect_string_at_offset): Rewrite.
8915 (read_indirect_line_string_at_offset): Remove.
8916 (read_indirect_string, read_indirect_line_string)
8917 (dwarf_decode_macro_bytes): Update.
8919 2020-03-26 Tom Tromey <tom@tromey.com>
8921 * dwarf2/section.h (struct dwarf2_section_info)
8922 <overload_complaint>: Declare.
8923 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8924 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8925 Rename from dwarf2_section_buffer_overflow_complaint.
8926 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8927 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8929 2020-03-26 Tom Tromey <tom@tromey.com>
8931 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8933 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8935 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8938 2020-03-26 Tom Tromey <tom@tromey.com>
8940 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8942 2020-03-26 Tom Tromey <tom@tromey.com>
8944 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8946 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8948 (dwarf_decode_macros): Update.
8950 2020-03-26 Tom Tromey <tom@tromey.com>
8952 * dwarf2/read.c (read_attribute_value): Update.
8953 (read_indirect_string_from_dwz): Move to dwz.c; change into
8955 (dwarf_decode_macro_bytes): Update.
8956 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8957 * dwarf2/dwz.c: New file.
8958 * Makefile.in (COMMON_SFILES): Add dwz.c.
8960 2020-03-26 Tom Tromey <tom@tromey.com>
8962 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8963 * dwarf2/read.c: Add include.
8964 * dwarf2/index-write.c: Add include.
8965 * dwarf2/index-cache.c: Add include.
8966 * dwarf2/dwz.h: New file.
8968 2020-03-25 Tom Tromey <tom@tromey.com>
8970 * compile/compile-object-load.c (get_out_value_type): Mention
8971 correct symbol name in error message.
8973 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8975 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8977 2020-03-25 Tom de Vries <tdevries@suse.de>
8979 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8980 * symmisc.c (dump_symtab_1): Print user and includes fields.
8981 (maintenance_info_symtabs): Same.
8983 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8986 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8987 (riscv_regcache_cooked_write): New function.
8988 (riscv_push_dummy_call): Use new function.
8989 (riscv_return_value): Likewise.
8991 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8993 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8994 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8995 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8996 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8997 * infrun.c (follow_fork): Likewise.
8998 (follow_fork_inferior): Likewise.
8999 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9000 * linux-nat.h (class linux_nat_target): Likewise.
9001 * remote.c (class remote_target) <follow_fork>: Likewise.
9002 (remote_target::follow_fork): Likewise.
9003 * target-delegates.c: Re-generate.
9004 * target.c (default_follow_fork): Likewise.
9005 (target_follow_fork): Likewise.
9006 * target.h (struct target_ops) <follow_fork>: Likewise.
9007 (target_follow_fork): Likewise.
9009 2020-03-24 Tom de Vries <tdevries@suse.de>
9011 * psymtab.c (maintenance_info_psymtabs): Print user field.
9013 2020-03-20 Tom Tromey <tromey@adacore.com>
9015 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9017 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9020 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9022 * ptrace.m4: Don't check for ptrace declaration.
9023 * config.in: Re-generate.
9024 * configure: Re-generate.
9025 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9028 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9030 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9032 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9033 * sparc-nat.c (gdb_ptrace): Likewise.
9034 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9036 2020-03-20 Tom Tromey <tromey@adacore.com>
9038 * c-exp.y (lex_one_token): Fix assert.
9040 2020-03-20 Tom Tromey <tromey@adacore.com>
9042 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9043 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9046 2020-03-20 Tom Tromey <tromey@adacore.com>
9048 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9050 2020-03-20 Tom Tromey <tromey@adacore.com>
9052 * ada-valprint.c (print_variant_part): Remove parameters; switch
9054 (print_field_values): Likewise.
9055 (ada_val_print_struct_union): Likewise.
9056 (ada_value_print_1): Update.
9058 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9060 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9061 nbsd_nat_target instead of inf_ptrace_target.
9062 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9065 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9067 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9068 it to the ptrace call.
9069 * (store_registers): Likewise.
9071 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9073 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9074 it to the ptrace call.
9075 * (store_registers): Likewise.
9077 2020-03-19 Luis Machado <luis.machado@linaro.org>
9079 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9080 valid, fetch vg value from ptrace.
9082 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9083 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9084 * inf-ptrace.c: Likewise.
9085 * (gdb_ptrace): Add.
9086 * (inf_ptrace_target::resume): Update.
9087 * (inf_ptrace_target::xfer_partial): Likewise.
9088 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9089 * (inf_ptrace_peek_poke): Update.
9091 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9093 * x86-bsd-nat.c (gdb_ptrace): New.
9094 * (x86bsd_dr_set): Add new argument `ptid'.
9095 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9096 x86bsd_dr_set_addr): Update.
9098 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9100 * remote.c (remote_target::process_stop_reply): Handle events for
9101 all threads differently.
9103 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9105 * completer.c (completion_tracker::remove_completion): Define new
9107 * completer.h (completion_tracker::remove_completion): Declare new
9109 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9110 when adding a C++ function symbol.
9112 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9114 * completer.c (completion_tracker::completion_hash_entry): Define
9116 (advance_to_filename_complete_word_point): Call
9117 recompute_lowest_common_denominator.
9118 (completion_tracker::completion_tracker): Call discard_completions
9119 to setup the hash table.
9120 (completion_tracker::discard_completions): Allow for being called
9121 from the constructor, pass new equal function, and element deleter
9122 when constructing the hash table. Initialise new class member
9124 (completion_tracker::maybe_add_completion): Remove use of
9125 m_entries_vec, and store more information into m_entries_hash.
9126 (completion_tracker::recompute_lcd_visitor): New function, most
9127 content taken from...
9128 (completion_tracker::recompute_lowest_common_denominator):
9129 ...here, this now just visits each item in the hash calling the
9131 (completion_tracker::build_completion_result): Remove use of
9132 m_entries_vec, call recompute_lowest_common_denominator.
9133 * completer.h (completion_tracker::have_completions): Remove use
9135 (completion_tracker::completion_hash_entry): Declare new class.
9136 (completion_tracker::recompute_lowest_common_denominator): Change
9138 (completion_tracker::recompute_lcd_visitor): Declare new function.
9139 (completion_tracker::m_entries_vec): Delete.
9140 (completion_tracker::m_entries_hash): Initialize to NULL.
9141 (completion_tracker::m_lowest_common_denominator_valid): New
9143 (completion_tracker::m_lowest_common_denominator_max_length): New
9146 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9148 * regformats/regdef.h: Put reg in gdb namespace.
9150 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9152 * i386-bsd-nat.c (gdb_ptrace): New.
9153 * (i386bsd_fetch_inferior_registers,
9154 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9155 * (i386bsd_fetch_inferior_registers,
9156 i386bsd_store_inferior_registers) Use gdb_ptrace.
9158 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9160 * amd64-bsd-nat.c (gdb_ptrace): New.
9161 * (amd64bsd_fetch_inferior_registers,
9162 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9163 * (amd64bsd_fetch_inferior_registers,
9164 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9166 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9168 * user-regs.c (user_reg::read): Rename to...
9169 (user_reg::xread): ...this.
9170 * (append_user_reg): Rename argument `read' to `xread'.
9171 * (user_reg_add_builtin): Likewise.
9172 * (user_reg_add): Likewise.
9173 * (value_of_user_reg): Likewise.
9175 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9177 * sparc-nat.c (gdb_ptrace): New.
9178 * sparc-nat.c (sparc_fetch_inferior_registers)
9179 (sparc_store_inferior_registers) Remove obsolete comment.
9180 * sparc-nat.c (sparc_fetch_inferior_registers)
9181 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9182 * sparc-nat.c (sparc_fetch_inferior_registers)
9183 (sparc_store_inferior_registers) Use gdb_ptrace.
9185 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9187 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9188 it to the ptrace call.
9189 * sh-nbsd-nat.c (store_registers): Likewise.
9191 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9193 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9194 nbsd_nat_target instead of inf_ptrace_target.
9195 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9198 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9200 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9202 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9204 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9206 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9208 2020-03-17 Tom de Vries <tdevries@suse.de>
9211 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9213 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9215 (process_imported_unit_die): Skip import of c++ CUs.
9217 2020-03-16 Tom Tromey <tom@tromey.com>
9219 * p-valprint.c (pascal_object_print_value): Initialize
9222 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9223 Shahab Vahedi <shahab@synopsys.com>
9225 * Makefile.in: Add arch/arc.o
9226 * configure.tgt: Likewise.
9227 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9228 (_initialize_arc_tdep): Don't initialize old target descriptions.
9229 (arc_read_description): New function to cache target descriptions.
9230 * arc-tdep.h (arc_read_description): Add proto type.
9231 * arch/arc.c: New file.
9232 * arch/arc.h: Likewise.
9233 * features/Makefile: Replace old target descriptions with new.
9234 * features/arc-arcompact.c: Remove.
9235 * features/arc-arcompact.xml: Likewise.
9236 * features/arc-v2.c: Likewise
9237 * features/arc-v2.xml: Likewise
9238 * features/arc/aux-arcompact.xml: New file.
9239 * features/arc/aux-v2.xml: Likewise.
9240 * features/arc/core-arcompact.xml: Likewise.
9241 * features/arc/core-v2.xml: Likewise.
9242 * features/arc/aux-arcompact.c: Generate.
9243 * features/arc/aux-v2.c: Likewise.
9244 * features/arc/core-arcompact.c: Likewise.
9245 * features/arc/core-v2.c: Likewise.
9246 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9248 2020-03-16 Tom Tromey <tromey@adacore.com>
9251 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9252 putting value into bcache.
9254 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9257 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9259 (amd64_windows_init_abi_common): ... this. Don't set size of
9261 (amd64_windows_init_abi): New function.
9262 (amd64_cygwin_init_abi): New function.
9263 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9265 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9268 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9270 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9271 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9272 (pe_import_directory_entry): New struct type.
9273 (is_linked_with_cygwin_dll): New function.
9274 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9275 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9276 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9278 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9280 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9281 i386_cygwin_core_osabi_sniffer.
9283 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9285 * i386-cygwin-tdep.c: Rename to...
9286 * i386-windows-tdep.c: ... this.
9287 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9288 i386-windows-tdep.c.
9289 * configure.tgt: Likewise.
9291 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9293 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9294 * osabi.c (gdb_osabi_names): Add "Windows".
9295 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9296 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9297 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9298 i386_cygwin_osabi_sniffer.
9299 (_initialize_i386_cygwin_tdep): Register OS ABI
9300 GDB_OSABI_WINDOWS for i386.
9301 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9302 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9303 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9305 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9306 when the target matches '*-*-mingw*'.
9308 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9310 * defs.h (enum gdb_osabi): Move to...
9311 * osabi.h (enum gdb_osabi): ... here.
9312 * gdbarch.sh: Include osabi.h in gdbarch.h.
9313 * gdbarch.h: Re-generate.
9315 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9317 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9319 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9321 2020-03-14 Tom Tromey <tom@tromey.com>
9323 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9325 (c_type_print_modifier): Likewise. Add "language" parameter.
9326 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9327 (c_type_print_base_1): Update.
9328 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9330 * type-stack.c (type_stack::insert): Handle tp_atomic and
9332 (type_stack::follow_type_instance_flags): Likewise.
9333 (type_stack::follow_types): Likewise. Merge type-following code.
9334 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9335 (space_identifier, cv_with_space_id)
9336 (const_or_volatile_or_space_identifier_noopt)
9337 (const_or_volatile_or_space_identifier): Remove.
9338 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9340 (ptr_operator, typebase): Update.
9341 (enum token_flag) <FLAG_C>: New constant.
9342 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9344 (lex_one_token): Handle FLAG_C.
9346 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9348 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9349 it to the ptrace call.
9350 * m68k-bsd-nat.c (store_registers): Likewise.
9352 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9354 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9356 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9357 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9358 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9360 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9362 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9363 nbsd_nat_target instead of inf_ptrace_target.
9364 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9367 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9369 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9372 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9374 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9375 it to the ptrace call.
9376 * alpha-bsd-nat.c (store_registers): Likewise.
9378 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9380 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9382 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9383 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9384 fill_fpregset): Likewise.
9386 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9388 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9389 nbsd_nat_target instead of inf_ptrace_target.
9390 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9393 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9395 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9398 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9400 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9401 it to the ptrace call.
9402 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9403 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9404 * arm-nbsd-nat.c (store_register): Likewise.
9405 * arm-nbsd-nat.c (store_regs): Likewise.
9406 * arm-nbsd-nat.c (store_fp_register): Likewise.
9407 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9409 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9411 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9412 nbsd_nat_target instead of inf_ptrace_target.
9413 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9416 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9418 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9419 it to the ptrace call.
9420 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9422 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9424 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9425 it to the ptrace call.
9426 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9428 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9430 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9432 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9434 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9436 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9437 instead of inf_ptrace_target.
9438 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9441 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9443 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9446 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9448 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9451 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9453 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9456 2020-03-13 Tom Tromey <tom@tromey.com>
9458 * value.h (val_print): Don't declare.
9459 * valprint.h (val_print_array_elements)
9460 (val_print_scalar_formatted, generic_val_print): Don't declare.
9461 * valprint.c (generic_val_print_array): Take a struct value.
9462 (generic_val_print_ptr, generic_val_print_memberptr)
9463 (generic_val_print_bool, generic_val_print_int)
9464 (generic_val_print_char, generic_val_print_complex)
9465 (generic_val_print): Remove.
9466 (generic_value_print): Update.
9467 (do_val_print): Remove unused parameters. Don't call
9469 (val_print): Remove.
9470 (common_val_print): Update. Don't call value_check_printable.
9471 (val_print_scalar_formatted, val_print_array_elements): Remove.
9472 * rust-lang.c (rust_val_print): Remove.
9473 (rust_language_defn): Update.
9474 * p-valprint.c (pascal_val_print): Remove.
9475 (pascal_value_print_inner): Update.
9476 (pascal_object_print_val_fields, pascal_object_print_val):
9478 (pascal_object_print_static_field): Update.
9479 * p-lang.h (pascal_val_print): Don't declare.
9480 * p-lang.c (pascal_language_defn): Update.
9481 * opencl-lang.c (opencl_language_defn): Update.
9482 * objc-lang.c (objc_language_defn): Update.
9483 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9484 * m2-lang.h (m2_val_print): Don't declare.
9485 * m2-lang.c (m2_language_defn): Update.
9486 * language.h (struct language_defn) <la_val_print>: Remove.
9487 * language.c (unk_lang_value_print_inner): Rename. Change
9489 (unknown_language_defn, auto_language_defn): Update.
9490 * go-valprint.c (go_val_print): Remove.
9491 * go-lang.h (go_val_print): Don't declare.
9492 * go-lang.c (go_language_defn): Update.
9493 * f-valprint.c (f_val_print): Remove.
9494 * f-lang.h (f_value_print): Don't declare.
9495 * f-lang.c (f_language_defn): Update.
9496 * d-valprint.c (d_val_print): Remove.
9497 * d-lang.h (d_value_print): Don't declare.
9498 * d-lang.c (d_language_defn): Update.
9499 * cp-valprint.c (cp_print_value_fields)
9500 (cp_print_value_fields_rtti, cp_print_value): Remove.
9501 (cp_print_static_field): Update.
9502 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9503 (c_val_print_struct, c_val_print_union, c_val_print_int)
9504 (c_val_print_memberptr, c_val_print): Remove.
9505 * c-lang.h (c_val_print_array, cp_print_value_fields)
9506 (cp_print_value_fields_rtti): Don't declare.
9507 * c-lang.c (c_language_defn, cplus_language_defn)
9508 (asm_language_defn, minimal_language_defn): Update.
9509 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9510 (ada_val_print_enum): Take a struct value.
9511 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9512 (ada_val_print): Remove.
9513 (ada_value_print_1): Update.
9514 (printable_val_type): Remove.
9515 * ada-lang.h (ada_val_print): Don't declare.
9516 * ada-lang.c (ada_language_defn): Update.
9518 2020-03-13 Tom Tromey <tom@tromey.com>
9520 * valprint.c (do_val_print): Update.
9521 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9523 (value_to_value_object_no_release): Declare.
9524 * python/py-value.c (value_to_value_object_no_release): New
9526 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9528 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9530 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9532 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9534 (gdbscm_apply_val_pretty_printer): Take a struct value.
9535 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9537 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9539 * extension-priv.h (struct extension_language_ops)
9540 <apply_val_pretty_printer>: Take a struct value.
9541 * cp-valprint.c (cp_print_value): Create a struct value.
9542 (cp_print_value): Update.
9544 2020-03-13 Tom Tromey <tom@tromey.com>
9546 * ada-valprint.c (print_field_values): Call common_val_print.
9548 2020-03-13 Tom Tromey <tom@tromey.com>
9550 * ada-valprint.c (val_print_packed_array_elements): Remove
9551 bitoffset and val parameters. Call common_val_print.
9552 (ada_val_print_string): Remove offset, address, and original_value
9554 (ada_val_print_array): Update.
9555 (ada_value_print_array): New function.
9556 (ada_value_print_1): Call it.
9558 2020-03-13 Tom Tromey <tom@tromey.com>
9560 * ada-valprint.c (ada_value_print): Use common_val_print.
9562 2020-03-13 Tom Tromey <tom@tromey.com>
9564 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9566 2020-03-13 Tom Tromey <tom@tromey.com>
9568 * ada-valprint.c (ada_value_print_num): New function.
9569 (ada_value_print_1): Use it.
9571 2020-03-13 Tom Tromey <tom@tromey.com>
9573 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9575 2020-03-13 Tom Tromey <tom@tromey.com>
9577 * ada-valprint.c (ada_value_print_ptr): New function.
9578 (ada_value_print_1): Use it.
9580 2020-03-13 Tom Tromey <tom@tromey.com>
9582 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9583 call common_val_print.
9584 (ada_val_print_1): Update.
9585 (ada_value_print_1): New function.
9586 (ada_value_print_inner): Rewrite.
9588 2020-03-13 Tom Tromey <tom@tromey.com>
9590 * cp-valprint.c (cp_print_value_fields): Update.
9591 (cp_print_value): New function.
9593 2020-03-13 Tom Tromey <tom@tromey.com>
9595 * m2-valprint.c (m2_value_print_inner): Use
9596 cp_print_value_fields.
9597 * cp-valprint.c (cp_print_value_fields): New function.
9598 * c-valprint.c (c_value_print_struct): New function.
9599 (c_value_print_inner): Use c_value_print_struct.
9600 * c-lang.h (cp_print_value_fields): Declare.
9602 2020-03-13 Tom Tromey <tom@tromey.com>
9604 * c-valprint.c (c_value_print_array): New function.
9605 (c_value_print_inner): Use it.
9607 2020-03-13 Tom Tromey <tom@tromey.com>
9609 * c-valprint.c (c_value_print_memberptr): New function.
9610 (c_value_print_inner): Use it.
9612 2020-03-13 Tom Tromey <tom@tromey.com>
9614 * c-valprint.c (c_value_print_int): New function.
9615 (c_value_print_inner): Use it.
9617 2020-03-13 Tom Tromey <tom@tromey.com>
9619 * c-valprint.c (c_value_print_ptr): New function.
9620 (c_value_print_inner): Use it.
9622 2020-03-13 Tom Tromey <tom@tromey.com>
9624 * c-valprint.c (c_value_print_inner): Rewrite.
9626 2020-03-13 Tom Tromey <tom@tromey.com>
9628 * valprint.c (generic_value_print_complex): New function.
9629 (generic_value_print): Use it.
9631 2020-03-13 Tom Tromey <tom@tromey.com>
9633 * valprint.c (generic_val_print_float): Don't call
9634 val_print_scalar_formatted.
9635 (generic_val_print, generic_value_print): Update.
9637 2020-03-13 Tom Tromey <tom@tromey.com>
9639 * valprint.c (generic_value_print_char): New function
9640 (generic_value_print): Use it.
9642 2020-03-13 Tom Tromey <tom@tromey.com>
9644 * valprint.c (generic_value_print_int): New function.
9645 (generic_value_print): Use it.
9647 2020-03-13 Tom Tromey <tom@tromey.com>
9649 * valprint.c (generic_value_print_bool): New function.
9650 (generic_value_print): Use it.
9652 2020-03-13 Tom Tromey <tom@tromey.com>
9654 * valprint.c (generic_val_print_func): Simplify.
9655 (generic_val_print, generic_value_print): Update.
9657 2020-03-13 Tom Tromey <tom@tromey.com>
9659 * valprint.c (generic_val_print_flags): Remove.
9660 (generic_val_print, generic_value_print): Update.
9661 (val_print_type_code_flags): Add original_value parameter.
9663 2020-03-13 Tom Tromey <tom@tromey.com>
9665 * valprint.c (generic_val_print): Update.
9666 (generic_value_print): Update.
9667 * valprint.c (generic_val_print_enum): Don't call
9668 val_print_scalar_formatted.
9670 2020-03-13 Tom Tromey <tom@tromey.com>
9672 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9673 * valprint.c (generic_value_print_ptr): New function.
9675 2020-03-13 Tom Tromey <tom@tromey.com>
9677 * valprint.c (generic_value_print): Rewrite.
9679 2020-03-13 Tom Tromey <tom@tromey.com>
9681 * p-valprint.c (pascal_object_print_value_fields)
9682 (pascal_object_print_value): New functions.
9684 2020-03-13 Tom Tromey <tom@tromey.com>
9686 * p-valprint.c (pascal_value_print_inner): Rewrite.
9688 2020-03-13 Tom Tromey <tom@tromey.com>
9690 * f-valprint.c (f_value_print_innner): Rewrite.
9692 2020-03-13 Tom Tromey <tom@tromey.com>
9694 * m2-valprint.c (m2_print_unbounded_array): New overload.
9695 (m2_print_unbounded_array): Update.
9696 (m2_print_array_contents): Take a struct value.
9697 (m2_value_print_inner): Rewrite.
9699 2020-03-13 Tom Tromey <tom@tromey.com>
9701 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9702 (d_value_print_inner): New function.
9703 * d-lang.h (d_value_print_inner): Declare.
9704 * d-lang.c (d_language_defn): Use d_value_print_inner.
9706 2020-03-13 Tom Tromey <tom@tromey.com>
9708 * go-valprint.c (go_value_print_inner): New function.
9709 * go-lang.h (go_value_print_inner): Declare.
9710 * go-lang.c (go_language_defn): Use go_value_print_inner.
9712 2020-03-13 Tom Tromey <tom@tromey.com>
9714 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9716 (rust_val_print): Rewrite.
9717 (rust_value_print_inner): New function, from rust_val_print.
9718 (rust_language_defn): Use rust_value_print_inner.
9720 2020-03-13 Tom Tromey <tom@tromey.com>
9722 * ada-valprint.c (ada_value_print_inner): New function.
9723 * ada-lang.h (ada_value_print_inner): Declare.
9724 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9726 2020-03-13 Tom Tromey <tom@tromey.com>
9728 * f-valprint.c (f_value_print_innner): New function.
9729 * f-lang.h (f_value_print_innner): Declare.
9730 * f-lang.c (f_language_defn): Use f_value_print_innner.
9732 2020-03-13 Tom Tromey <tom@tromey.com>
9734 * p-valprint.c (pascal_value_print_inner): New function.
9735 * p-lang.h (pascal_value_print_inner): Declare.
9736 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9738 2020-03-13 Tom Tromey <tom@tromey.com>
9740 * m2-valprint.c (m2_value_print_inner): New function.
9741 * m2-lang.h (m2_value_print_inner): Declare.
9742 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9744 2020-03-13 Tom Tromey <tom@tromey.com>
9746 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9747 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9748 * c-valprint.c (c_value_print_inner): New function.
9749 * c-lang.h (c_value_print_inner): Declare.
9750 * c-lang.c (c_language_defn, cplus_language_defn)
9751 (asm_language_defn, minimal_language_defn): Use
9752 c_value_print_inner.
9754 2020-03-13 Tom Tromey <tom@tromey.com>
9756 * p-valprint.c (pascal_object_print_value_fields): Now static.
9757 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9759 2020-03-13 Tom Tromey <tom@tromey.com>
9761 * c-valprint.c (c_val_print_array): Simplify.
9763 2020-03-13 Tom Tromey <tom@tromey.com>
9765 * valprint.c (value_print_array_elements): New function.
9766 * valprint.h (value_print_array_elements): Declare.
9768 2020-03-13 Tom Tromey <tom@tromey.com>
9770 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9771 * mips-tdep.c (mips_print_register): Use
9772 value_print_scalar_formatted.
9774 2020-03-13 Tom Tromey <tom@tromey.com>
9776 * valprint.h (value_print_scalar_formatted): Declare.
9777 * valprint.c (value_print_scalar_formatted): New function.
9779 2020-03-13 Tom Tromey <tom@tromey.com>
9781 * valprint.h (generic_value_print): Declare.
9782 * valprint.c (generic_value_print): New function.
9784 2020-03-13 Tom Tromey <tom@tromey.com>
9786 * valprint.c (do_val_print): Call la_value_print_inner, if
9788 * rust-lang.c (rust_language_defn): Update.
9789 * p-lang.c (pascal_language_defn): Update.
9790 * opencl-lang.c (opencl_language_defn): Update.
9791 * objc-lang.c (objc_language_defn): Update.
9792 * m2-lang.c (m2_language_defn): Update.
9793 * language.h (struct language_defn) <la_value_print_inner>: New
9795 * language.c (unknown_language_defn, auto_language_defn): Update.
9796 * go-lang.c (go_language_defn): Update.
9797 * f-lang.c (f_language_defn): Update.
9798 * d-lang.c (d_language_defn): Update.
9799 * c-lang.c (c_language_defn, cplus_language_defn)
9800 (asm_language_defn, minimal_language_defn): Update.
9801 * ada-lang.c (ada_language_defn): Update.
9803 2020-03-13 Tom Tromey <tom@tromey.com>
9805 * c-valprint.c (c_value_print): Use common_val_print.
9807 2020-03-13 Tom Tromey <tom@tromey.com>
9809 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9811 2020-03-13 Tom Tromey <tom@tromey.com>
9813 * f-valprint.c (f77_print_array_1, f_val_print): Use
9816 2020-03-13 Tom Tromey <tom@tromey.com>
9818 * riscv-tdep.c (riscv_print_one_register_info): Use
9821 2020-03-13 Tom Tromey <tom@tromey.com>
9823 * mi/mi-main.c (output_register): Use common_val_print.
9825 2020-03-13 Tom Tromey <tom@tromey.com>
9827 * infcmd.c (default_print_one_register_info): Use
9830 2020-03-13 Tom Tromey <tom@tromey.com>
9832 * valprint.h (common_val_print_checked): Declare.
9833 * valprint.c (common_val_print_checked): New function.
9834 * stack.c (print_frame_arg): Use common_val_print_checked.
9836 2020-03-13 Tom Tromey <tom@tromey.com>
9838 * valprint.c (do_val_print): New function, from val_print.
9839 (val_print): Use do_val_print.
9840 (common_val_print): Use do_val_print.
9842 2020-03-13 Tom Tromey <tom@tromey.com>
9844 * valprint.c (value_print): Use scoped_value_mark.
9846 2020-03-13 Tom de Vries <tdevries@suse.de>
9849 * psymtab.c (partial_symtab::partial_symtab): Don't set
9850 globals_offset and statics_offset. Push element onto
9851 current_global_psymbols and current_static_psymbols stacks.
9852 (concat): New function.
9853 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9854 element from current_global_psymbols and current_static_psymbols
9855 stacks. Concat popped elements to global_psymbols and
9857 (add_psymbol_to_list): Use current_global_psymbols and
9858 current_static_psymbols stacks.
9859 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9860 current_static_psymbols fields.
9862 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9864 * corelow.c (sniff_core_bfd): Remove.
9865 (class core_target) <m_core_vec>: Remove.
9866 (core_target::core_target): Update.
9867 (core_file_fns): Remove.
9868 (deprecated_add_core_fns): Remove.
9869 (default_core_sniffer): Remove.
9870 (sniff_core_bfd): Remove.
9871 (default_check_format): Remove.
9872 (gdb_check_format): Remove.
9873 (core_target_open): Update.
9874 (core_target::get_core_register_section): Update.
9875 (get_core_registers_cb): Update.
9876 (core_target::fetch_registers): Update.
9877 * gdbcore.h (struct core_fns): Remove.
9878 (deprecated_add_core_fns): Remove.
9879 (default_core_sniffer): Remove.
9880 (default_check_format): Remove.
9882 2020-03-12 Tom Tromey <tom@tromey.com>
9884 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9886 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9888 2020-03-12 Tom Tromey <tom@tromey.com>
9890 * remote.c (remote_target::download_tracepoint)
9891 (remote_target::enable_tracepoint)
9892 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9893 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9896 2020-03-12 Tom Tromey <tom@tromey.com>
9898 * symfile-mem.c: Update CORE_ADDR size assert.
9900 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9902 * selftest.m4: Move to gdbsupport/.
9903 * acinclude.m4: Update path to selftest.m4.
9905 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9907 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9908 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9909 gdbarch-selfselftests.c and selftest-arch.c.
9910 (SUBDIR_UNITTESTS_OBS): Rename to...
9911 (SELFTESTS_OBS): ... this.
9912 (COMMON_SFILES): Remove disasm-selftests.c and
9913 gdbarch-selftests.c.
9914 * configure.ac: Don't add selftest-arch.{c,o} to
9916 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9917 preprocessor conditions.
9919 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9921 * configure.ac: Don't source bfd/development.sh.
9922 * selftest.m4: Modify comment.
9923 * configure: Re-generate.
9925 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9927 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9928 not "true" or "false".
9929 * configure: Re-generate.
9931 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9933 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9934 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9935 renamed to arm_nbsd_supply_gregset.
9936 (fetch_register): Update to call arm_nbsd_supply_gregset.
9937 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9938 (arm_netbsd_nat_target::fetch_registers): Update.
9939 (fetch_elfcore_registers): Removed.
9940 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9941 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9942 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9943 not require NetBSD system headers.
9944 (arm_nbsd_regset): New struct.
9945 (arm_nbsd_iterate_over_regset_sections): New function.
9946 (arm_netbsd_init_abi_common): Updated to call
9947 set_gdbarch_iterate_over_regset_sections.
9948 * arm-nbsd-tdep.h: New file.
9950 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9952 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9955 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9957 * configure: Re-generate.
9959 2020-03-11 Tom Tromey <tromey@adacore.com>
9961 * ada-typeprint.c (print_choices): Fix comment.
9963 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9965 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9966 previous item in the list, when the list has no items.
9968 2020-03-11 Tom de Vries <tdevries@suse.de>
9970 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9971 PROP_LOCLIST handling code.
9973 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9975 * buildsym-legacy.c (record_line): Pass extra parameter to
9977 * buildsym.c (buildsym_compunit::record_line): Take an extra
9978 parameter, reduce duplication in the line table, and record the
9979 is_stmt flag in the line table.
9980 * buildsym.h (buildsym_compunit::record_line): Add extra
9982 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9983 non-statement lines.
9984 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9985 this to the symtab builder.
9986 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9987 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9988 through to dwarf_record_line_1.
9989 * infrun.c (process_event_stop_test): When stepping, don't stop at
9990 a non-statement instruction, and only refresh the step info when
9991 we land in the middle of a line's range. Also add an extra
9993 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9995 * record-btrace.c (btrace_find_line_range): Only record lines
9996 marked as is-statement.
9997 * stack.c (frame_show_address): Show the frame address if we are
9998 in a non-statement sal.
9999 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10000 (maintenance_print_one_line_table): Print a header for the is_stmt
10001 column, and include is_stmt information in the output.
10002 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10003 preference to non-statements.
10004 (find_pcs_for_symtab_line): Prefer is-statement entries.
10005 (find_line_common): Likewise.
10006 * symtab.h (struct linetable_entry): Add is_stmt field.
10007 (struct symtab_and_line): Likewise.
10008 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10009 arranging the line table.
10011 2020-03-07 Tom de Vries <tdevries@suse.de>
10013 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10016 2020-03-07 Tom Tromey <tom@tromey.com>
10018 * valops.c (value_literal_complex): Remove obsolete comment.
10019 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10022 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10024 * infrun.h: Forward-declare thread_info.
10025 (set_step_info): Add thread_info parameter, add doc.
10026 * infrun.c (set_step_info): Add thread_info parameter, move doc
10028 * infrun.c (process_event_stop_test): Pass thread to
10029 set_step_info call.
10030 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10032 (prepare_one_step): Add thread_info parameter, pass it to
10033 set_step_frame and prepare_one_step (recursive) call.
10034 (step_1): Pass thread to prepare_one_step call.
10035 (step_command_fsm::should_stop): Pass thread to
10037 (until_next_fsm): Pass thread to set_step_frame call.
10038 (finish_command): Pass thread to set_step_info call.
10040 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10042 * windows-tdep.c (windows_solib_create_inferior_hook):
10043 Check if inferior is running.
10045 2020-03-06 Tom de Vries <tdevries@suse.de>
10047 * NEWS: Fix "the the".
10050 2020-03-06 Tom de Vries <tdevries@suse.de>
10052 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10054 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10056 * .dir-locals.el: Add a comment referencing the other copies of
10059 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10061 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10064 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10066 * .gitattributes: New file.
10068 2020-03-04 Tom Tromey <tom@tromey.com>
10070 * symmisc.c (print_symbol_bcache_statistics)
10071 (print_objfile_statistics): Update.
10072 * symfile.c (allocate_symtab): Use intern.
10073 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10074 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10075 macro_cache>: Remove.
10076 <string_cache>: New member.
10077 (struct objfile) <intern>: New methods.
10078 * elfread.c (elf_symtab_read): Use intern.
10079 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10080 (dwarf2_compute_name, dwarf2_physname)
10081 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10083 (guess_partial_die_structure_name): Update.
10084 (partial_die_info::fixup): Intern name.
10085 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10087 (dwarf2_name): Intern name. Update.
10088 * buildsym.c (buildsym_compunit::get_macro_table): Use
10091 2020-03-04 Tom Tromey <tom@tromey.com>
10093 * jit.c (bfd_open_from_target_memory): Make "target" const.
10094 * corefile.c (gnutarget): Now const.
10095 * gdbcore.h (gnutarget): Now const.
10097 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10099 * NEWS: Mention support for WOW64 processes.
10100 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10101 (amd64_windows_segment_register_p): Remove static.
10102 (_initialize_amd64_windows_nat): Update.
10103 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10104 * i386-windows-nat.c (context_offset): Update.
10105 (i386_mappings): Rename and remove static.
10106 (i386_windows_segment_register_p): Remove static.
10107 (_initialize_i386_windows_nat): Update.
10108 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10109 (STATUS_WX86_SINGLE_STEP): New macro.
10110 (EnumProcessModulesEx): New macro.
10111 (Wow64SuspendThread): New macro.
10112 (Wow64GetThreadContext): New macro.
10113 (Wow64SetThreadContext): New macro.
10114 (Wow64GetThreadSelectorEntry): New macro.
10115 (windows_set_context_register_offsets): Add static.
10116 (windows_set_segment_register_p): Likewise.
10117 (windows_add_thread): Adapt for WOW64 processes.
10118 (windows_fetch_one_register): Likewise.
10119 (windows_nat_target::fetch_registers): Likewise.
10120 (windows_store_one_register): Likewise.
10121 (display_selector): Likewise.
10122 (display_selectors): Likewise.
10123 (handle_exception): Likewise.
10124 (windows_continue): Likewise.
10125 (windows_nat_target::resume): Likewise.
10126 (windows_add_all_dlls): Likewise.
10127 (do_initial_windows_stuff): Likewise.
10128 (windows_nat_target::attach): Likewise.
10129 (windows_get_exec_module_filename): Likewise.
10130 (windows_nat_target::create_inferior): Likewise.
10131 (windows_xfer_siginfo): Likewise.
10132 (_initialize_loadable): Initialize Wow64SuspendThread,
10133 Wow64GetThreadContext, Wow64SetThreadContext,
10134 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10135 * windows-nat.h (windows_set_context_register_offsets):
10136 Remove declaration.
10137 (windows_set_segment_register_p): Likewise.
10138 (i386_windows_segment_register_p): Add declaration.
10139 (amd64_windows_segment_register_p): Likewise.
10141 2020-03-04 Luis Machado <luis.machado@linaro.org>
10143 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10144 in "info registers" for AArch64/ARM.
10146 The change caused "info registers" to not print GPR's.
10150 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10152 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10153 when reg->group is empty and reggroup is not.
10155 2020-03-03 Tom Tromey <tromey@adacore.com>
10157 * dwarf2/frame.c (struct dwarf2_frame_cache)
10158 <checked_tailcall_bottom, entry_cfa_sp_offset,
10159 entry_cfa_sp_offset_p>: Remove members.
10160 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10161 (dwarf2_frame_prev_register): Don't call
10162 dwarf2_tailcall_sniffer_first.
10163 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10164 * frame-unwind.c (add_unwinder): New fuction.
10165 (frame_unwind_init): Use it. Add tailcall unwinder.
10167 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10168 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10170 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10171 value should be printed as true.
10173 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10175 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10176 (windows_init_abi): Set and use windows_so_ops.
10178 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10180 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10181 when verifying if dealing with a convenience variable.
10183 2020-03-03 Luis Machado <luis.machado@linaro.org>
10185 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10187 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10189 * infrun.c (gdbarch_supports_displaced_stepping): New.
10190 (use_displaced_stepping): Break up conditions in smaller pieces.
10191 Use gdbarch_supports_displaced_stepping.
10192 (displaced_step_prepare_throw): Use
10193 gdbarch_supports_displaced_stepping.
10195 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10197 * NEWS: Mention new behaviour of the history filename.
10198 * top.c (write_history_p): Add comment.
10199 (show_write_history_p): Add header comment, give a different
10200 message when history writing is on, but the history filename is
10202 (history_filename): Add comment.
10203 (history_filename_empty): New function.
10204 (show_history_filename): Add header comment, give a different
10205 message when the filename is empty.
10206 (init_history): Compare history_filename against nullptr, and only
10207 read history if the filename is not empty.
10208 (set_history_filename): Add header comment, and only make
10209 non-empty filenames absolute.
10210 (init_main): Make the filename argument to 'set history filename'
10213 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10215 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10216 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10217 (fetch_fp_register): Update.
10218 (fetch_fp_regs): Update.
10219 (store_fp_register): Update.
10220 (store_fp_regs): Update.
10221 (arm_netbsd_nat_target::read_description): New function.
10222 (fetch_elfcore_registers): Update.
10224 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10226 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10227 general_thread if the stop reply is missing a thread-id.
10228 (remote_target::process_stop_reply): Use the first non-exited
10229 thread if the target didn't pass a thread-id.
10230 * infrun.c (do_target_wait): Move call to
10231 switch_to_inferior_no_thread to ....
10232 (do_target_wait_1): ... here.
10234 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10236 * debuginfod-support.c: Include defs.h first.
10238 2020-02-28 Tom de Vries <tdevries@suse.de>
10240 * symfile.c (set_initial_language): Use default language for lookup.
10242 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10244 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10245 reader variable, pass `this` to read_cutu_die_from_dwo.
10247 2020-02-27 Aaron Merey <amerey@redhat.com>
10249 * source.c (open_source_file): Check for nullptr when computing
10252 2020-02-27 Tom Tromey <tromey@adacore.com>
10254 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10256 (dwarf2_add_field): Don't update nfields.
10257 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10259 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10261 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10264 2020-02-26 Tom Tromey <tom@tromey.com>
10266 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10267 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10268 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10269 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10272 2020-02-26 Tom Tromey <tom@tromey.com>
10274 * dwarf2/index-write.c (psym_index_map): Change type.
10275 (add_address_entry_worker, write_one_signatured_type)
10276 (recursively_count_psymbols, recursively_write_psymbols)
10277 (class debug_names, psyms_seen_size, write_gdbindex)
10278 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10280 2020-02-26 Aaron Merey <amerey@redhat.com>
10282 * Makefile.in: Handle optional debuginfod support.
10284 * README: Add --with-debuginfod summary.
10285 * config.in: Regenerate.
10286 * configure: Regenerate.
10287 * configure.ac: Handle optional debuginfod support.
10288 * debuginfod-support.c: debuginfod helper functions.
10289 * debuginfod-support.h: Ditto.
10290 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10292 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10293 when a dwz file cannot be found.
10294 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10295 debuginfo file cannot be found.
10296 * source.c (open_source_file): Query debuginfod servers when a
10297 source file cannot be found.
10298 * top.c (print_gdb_configuration): Include
10299 --{with,without}-debuginfod in the output.
10301 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10303 * thread.c (thr_try_catch_cmd): Print thread name.
10305 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10307 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10308 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10309 dwarf2_fetch_die_type_sect_off): Move to...
10310 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10311 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10312 dwarf2_fetch_die_type_sect_off): ... here.
10313 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10314 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10315 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10317 2020-02-26 Tom de Vries <tdevries@suse.de>
10320 * symfile.c (set_initial_language): Exit-early if
10321 language_mode == language_mode_manual.
10323 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10325 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10326 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10327 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10329 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10331 * gdbtypes.c (create_array_type_with_stride): Handle negative
10333 * valarith.c (value_subscripted_rvalue): Likewise.
10335 2020-02-25 Luis Machado <luis.machado@linaro.org>
10337 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10339 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10341 * loc.h (dwarf2_get_die_type): Move to...
10342 * read.h (dwarf2_get_die_type): ... here.
10343 * read.c (dwarf2_get_die_type): Move doc to header.
10345 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10347 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10348 'gnulib/Makefile.in' to the list.
10350 2020-02-24 Tom Tromey <tom@tromey.com>
10352 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10354 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10357 2020-02-24 Tom Tromey <tom@tromey.com>
10359 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10361 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10362 (dw2_do_instantiate_symtab, dw2_get_file_names)
10363 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10365 2020-02-24 Tom Tromey <tom@tromey.com>
10367 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10368 make_scoped_restore.
10369 (dwarf2_psymtab::read_symtab): Don't clear
10370 reading_partial_symbols.
10372 2020-02-24 Tom de Vries <tdevries@suse.de>
10375 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10377 2020-02-24 Tom de Vries <tdevries@suse.de>
10379 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10380 commands layout next/prev/regs.
10382 2020-02-22 Tom Tromey <tom@tromey.com>
10384 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10385 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10387 2020-02-22 Tom Tromey <tom@tromey.com>
10389 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10391 2020-02-22 Tom Tromey <tom@tromey.com>
10393 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10394 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10395 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10396 * tui/tui.c (_initialize_tui): Add usage text.
10398 2020-02-22 Tom Tromey <tom@tromey.com>
10400 * tui/tui-win.c (tui_set_focus_command)
10401 (tui_set_win_height_command): Use error_no_arg.
10402 (_initialize_tui_win): Update help text.
10403 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10405 2020-02-22 Tom Tromey <tom@tromey.com>
10407 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10408 * tui/tui-disasm.h (struct tui_disasm_window)
10409 <display_start_addr>: Declare.
10410 * tui/tui-source.h (struct tui_source_window)
10411 <display_start_addr>: Declare.
10412 * tui/tui-winsource.h (struct tui_source_window_base)
10413 <show_source_line, display_start_addr>: New methods.
10414 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10415 Rename and move to protected section.
10416 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10417 (tui_source_window_base::do_erase_source_content): Update.
10418 (tui_source_window_base::show_source_line): Now a method.
10419 (tui_source_window_base::show_source_content)
10420 (tui_source_window_base::tui_source_window_base)
10421 (tui_source_window_base::rerender)
10422 (tui_source_window_base::refill)
10423 (tui_source_window_base::do_scroll_horizontal)
10424 (tui_source_window_base::set_is_exec_point_at)
10425 (tui_source_window_base::update_breakpoint_info)
10426 (tui_source_window_base::update_exec_info): Update.
10427 * tui/tui-source.c (tui_source_window::set_contents)
10428 (tui_source_window::showing_source_p)
10429 (tui_source_window::do_scroll_vertical)
10430 (tui_source_window::location_matches_p)
10431 (tui_source_window::line_is_displayed): Update.
10432 (tui_source_window::display_start_addr): New method.
10433 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10434 (tui_disasm_window::do_scroll_vertical)
10435 (tui_disasm_window::location_matches_p): Update.
10436 (tui_disasm_window::display_start_addr): New method.
10438 2020-02-22 Tom Tromey <tom@tromey.com>
10440 * NEWS: Add entry for gdb.register_window_type.
10441 * tui/tui-layout.h (window_factory): New typedef.
10442 (tui_register_window): Declare.
10443 * tui/tui-layout.c (saved_tui_windows): New global.
10444 (tui_apply_current_layout): Use it.
10445 (tui_register_window): New function.
10446 * python/python.c (do_start_initialization): Call
10447 gdbpy_initialize_tui.
10448 (python_GdbMethods): Add "register_window_type" function.
10449 * python/python-internal.h (gdbpy_register_tui_window)
10450 (gdbpy_initialize_tui): Declare.
10451 * python/py-tui.c: New file.
10452 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10454 2020-02-22 Tom Tromey <tom@tromey.com>
10456 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10458 2020-02-22 Tom Tromey <tom@tromey.com>
10460 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10461 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10462 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10463 (tui_set_win_focus_to): Move from tui-win.c.
10465 2020-02-22 Tom Tromey <tom@tromey.com>
10467 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10469 (known_window_types): New global.
10470 (tui_get_window_by_name): Reimplement.
10471 (initialize_known_windows): New function.
10472 (validate_window_name): Rewrite.
10473 (_initialize_tui_layout): Call initialize_known_windows.
10475 2020-02-22 Tom Tromey <tom@tromey.com>
10477 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10479 * tui/tui-winsource.h (struct tui_source_window_base)
10480 <tui_source_window_base>: Remove parameter.
10481 * tui/tui-winsource.c
10482 (tui_source_window_base::tui_source_window_base): Remove
10484 (tui_source_window_base::refill): Update.
10485 * tui/tui-stack.h (struct tui_locator_window)
10486 <tui_locator_window>: Update.
10487 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10488 Default the constructor.
10489 * tui/tui-regs.h (struct tui_data_item_window)
10490 <tui_data_item_window>: Default the constructor.
10491 (struct tui_data_window) <tui_data_window>: Likewise.
10492 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10493 Default the constructor.
10494 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10495 Default the constructor.
10497 (struct tui_win_info) <tui_win_info>: Default the constructor.
10498 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10499 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10500 Default the constructor.
10502 2020-02-22 Tom Tromey <tom@tromey.com>
10504 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10505 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10506 * tui/tui-win.c (tui_resize_all): Don't call
10507 tui_delete_invisible_windows.
10508 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10510 (tui_set_layout): Update.
10511 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10512 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10513 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10515 2020-02-22 Tom Tromey <tom@tromey.com>
10517 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10520 2020-02-22 Tom Tromey <tom@tromey.com>
10522 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10524 2020-02-22 Tom Tromey <tom@tromey.com>
10526 * tui/tui-winsource.h (struct tui_source_window_iterator)
10527 <inner_iterator>: New etytypedef.
10528 <tui_source_window_iterator>: Take "end" parameter.
10529 <tui_source_window_iterator>: Take iterator.
10530 <operator*, advance>: Update.
10531 <m_iter>: Change type.
10532 <m_end>: New field.
10533 (struct tui_source_windows) <begin, end>: Update.
10534 * tui/tui-layout.c (tui_windows): New global.
10535 (tui_apply_current_layout): Clear tui_windows.
10536 (tui_layout_window::apply): Update tui_windows.
10537 * tui/tui-data.h (tui_windows): Declare.
10538 (all_tui_windows): Now inline function.
10539 (class tui_window_iterator, struct all_tui_windows): Remove.
10541 2020-02-22 Tom Tromey <tom@tromey.com>
10544 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10545 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10547 (class tui_layout_window) <get_sizes>: Likewise.
10548 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10550 <get_sizes>: Add "height" argument.
10551 <m_vertical>: New field.
10552 * tui/tui-layout.c (tui_layout_split::clone): Update.
10553 (tui_layout_split::get_sizes): Add "height" argument.
10554 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10555 (tui_new_layout_command): Parse "-horizontal".
10556 (_initialize_tui_layout): Update help string.
10557 (tui_layout_split::specification): Add "-horizontal" when needed.
10558 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10560 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10563 2020-02-22 Tom Tromey <tom@tromey.com>
10565 * tui/tui-layout.h (enum tui_adjust_result): New.
10566 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10567 (class tui_layout_window) <adjust_size>: Return
10568 tui_adjust_result. Rewrite.
10569 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10570 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10572 2020-02-22 Tom Tromey <tom@tromey.com>
10574 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10575 parameter and return types.
10576 (class tui_layout_base) <specification>: Add "depth".
10577 (class tui_layout_window) <specification>: Add "depth".
10578 (class tui_layout_split) <specification>: Add "depth".
10579 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10581 (tui_new_layout_command): Parse sub-layouts.
10582 (_initialize_tui_layout): Update help string.
10583 (tui_layout_window::specification): Add "depth".
10584 (add_layout_command): Update.
10586 2020-02-22 Tom Tromey <tom@tromey.com>
10588 * NEWS: Add "tui new-layout" item.
10589 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10590 Add new-layout command to help text.
10591 (validate_window_name): New function.
10592 (tui_new_layout_command): New function.
10593 (_initialize_tui_layout): Register "new-layout".
10594 (tui_layout_window::specification): New method.
10595 (tui_layout_window::specification): New method.
10596 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10598 (class tui_layout_window) <specification>: New method.
10599 (class tui_layout_split) <specification>: New method.
10601 2020-02-22 Tom Tromey <tom@tromey.com>
10603 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10604 * tui/tui-win.c (window_name_completer): Update comment.
10605 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10607 (class tui_layout_window) <replace_window>: Likewise.
10608 (class tui_layout_split) <replace_window>: Likewise.
10609 (tui_set_layout): Don't declare.
10610 (tui_set_initial_layout): Declare function.
10611 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10612 (asm_regs_layout): New globals.
10613 (tui_current_layout, show_layout): Remove.
10614 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10615 (find_layout, tui_apply_layout): New function.
10616 (layout_completer): Remove.
10617 (tui_next_layout): Reimplement.
10618 (tui_next_layout_command): New function.
10619 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10620 (tui_regs_layout): Reimplement.
10621 (tui_regs_layout_command): New function.
10622 (extract_display_start_addr): Rewrite.
10623 (next_layout, prev_layout): Remove.
10624 (tui_layout_window::replace_window): New method.
10625 (tui_layout_split::replace_window): New method.
10626 (destroy_layout): New function.
10627 (layout_list): New global.
10628 (add_layout_command): New function.
10629 (initialize_layouts): Update.
10630 (tui_layout_command): New function.
10631 (_initialize_tui_layout): Install "layout" commands.
10632 * tui/tui-data.h (enum tui_layout_type): Remove.
10633 (tui_current_layout): Don't declare.
10635 2020-02-22 Tom Tromey <tom@tromey.com>
10637 * tui/tui-regs.c (tui_reg_layout): Remove.
10638 (tui_reg_command): Use tui_regs_layout.
10639 * tui/tui-layout.h (tui_reg_command): Declare.
10640 * tui/tui-layout.c (tui_reg_command): New function.
10642 2020-02-22 Tom Tromey <tom@tromey.com>
10644 * tui/tui.c (tui_rl_delete_other_windows): Call
10645 tui_remove_some_windows.
10646 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10648 (class tui_layout_window) <remove_windows>: New method.
10649 (class tui_layout_split) <remove_windows>: Declare.
10650 (tui_remove_some_windows): Declare.
10651 * tui/tui-layout.c (tui_remove_some_windows): New function.
10652 (tui_layout_split::remove_windows): New method.
10654 2020-02-22 Tom Tromey <tom@tromey.com>
10656 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10657 * tui/tui-layout.h (tui_next_layout): Declare.
10658 * tui/tui-layout.c (tui_next_layout): New function.
10660 2020-02-22 Tom Tromey <tom@tromey.com>
10662 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10663 correct coordinates.
10665 2020-02-22 Tom Tromey <tom@tromey.com>
10667 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10668 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10671 2020-02-22 Tom Tromey <tom@tromey.com>
10673 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10674 TUI_DISASM_WIN, not tui_win_list.
10676 2020-02-22 Tom Tromey <tom@tromey.com>
10678 * valprint.c (generic_val_print_enum_1)
10679 (val_print_type_code_flags): Style member names.
10680 * rust-lang.c (val_print_struct, rust_print_enum)
10681 (rust_print_struct_def, rust_internal_print_type): Style member
10683 * p-valprint.c (pascal_object_print_value_fields): Style member
10684 names. Only call fprintf_symbol_filtered for static members.
10685 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10686 * f-valprint.c (f_val_print): Style member names.
10687 * f-typeprint.c (f_type_print_base): Style member names.
10688 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10689 call fprintf_symbol_filtered for static members.
10690 (cp_print_class_member): Style member names.
10691 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10693 * ada-valprint.c (ada_print_scalar): Style enum names.
10694 (ada_val_print_enum): Likewise.
10695 * ada-typeprint.c (print_enum_type): Style enum names.
10697 2020-02-21 Tom Tromey <tom@tromey.com>
10699 * psympriv.h (struct partial_symtab): Update comment.
10701 2020-02-21 Tom Tromey <tromey@adacore.com>
10703 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10706 2020-02-21 Tom de Vries <tdevries@suse.de>
10709 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10710 if dependencies[i]->user != NULL.
10712 2020-02-21 Ali Tamur <tamur@google.com>
10714 * dwarf2/read.c (dwarf2_name): Add null check.
10716 2020-02-20 Tom Tromey <tom@tromey.com>
10718 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10719 ">=", in binary search.
10720 (dwarf2_find_containing_comp_unit): New overload.
10721 (run_test): New self-test.
10722 (_initialize_dwarf2_read): Register new test.
10724 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10726 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10727 * riscv-tdep.h: Likewise.
10728 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10730 * features/riscv/64bit-csr.xml: Regenerated.
10732 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10733 Tom Tromey <tom@tromey.com>
10735 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10736 of 'fputc_unfiltered'.
10737 (putchar_unfiltered): Call 'fputc_unfiltered'.
10738 (fputc_unfiltered): Call 'fputs_unfiltered'.
10740 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10742 * config.in: Regenerate.
10743 * configure: Regenerate.
10744 * configure.ac: Add --with-python-libdir option.
10745 * main.c: Use WITH_PYTHON_LIBDIR.
10747 2020-02-19 Tom Tromey <tom@tromey.com>
10749 * symtab.c (general_symbol_info::compute_and_set_names): Use
10750 obstack_strndup. Simplify call to symbol_set_demangled_name.
10752 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10754 * dwarf2/read.c (allocate_signatured_type_table,
10755 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10756 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10757 Remove objfile parameter, update all callers.
10759 2020-02-19 Doug Evans <dje@google.com>
10762 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10763 rust_enum_variant calculation.
10765 2020-02-19 Tom Tromey <tromey@adacore.com>
10767 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10769 2020-02-19 Tom Tromey <tromey@adacore.com>
10771 * ada-lang.c (cache_symbol): Use obstack_strdup.
10773 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10775 * configure: Regenerate.
10777 2020-02-19 Tom Tromey <tromey@adacore.com>
10779 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10782 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10784 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10786 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10788 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10789 if GDBSERVER is not defined.
10790 (riscv_tdesc_cache): Likewise, also store const target_desc.
10791 (STATIC_IN_GDB): Define.
10792 (riscv_create_target_description): Update declaration with
10794 (riscv_lookup_target_description): New function, only define if
10795 GDBSERVER is not defined.
10796 * arch/riscv.h (riscv_create_target_description): Declare only
10797 when GDBSERVER is defined.
10798 (riscv_lookup_target_description): New declaration when GDBSERVER
10800 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10801 (riscv_linux_read_features): ...this, and return
10802 riscv_gdbarch_features instead of target_desc.
10803 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10804 (riscv_linux_read_description): Rename to...
10805 (riscv_linux_read_features): ...this.
10806 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10807 Update to use riscv_gdbarch_features and
10808 riscv_lookup_target_description.
10809 * riscv-tdep.c (riscv_find_default_target_description): Use
10810 riscv_lookup_target_description instead of
10811 riscv_create_target_description.
10813 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10815 * valprint.c (generic_val_print_enum_1): When printing a flag
10816 enum with value 0 and there is no enumerator with value 0, print
10817 just "0" instead of "(unknown: 0x0)".
10819 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10821 * valprint.c (generic_val_print_enum_1): Print unknown part of
10824 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10826 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10827 flag enums to contain duplicate enumerators.
10828 * valprint.c (generic_val_print_enum_1): Update comment.
10830 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10832 * dwarf2/read.c: Include "count-one-bits.h".
10833 (update_enumeration_type_from_children): If an enumerator has
10834 multiple bits set, don't treat the enumeration as a "flag enum".
10835 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10836 of flag enums have 0 or 1 bit set.
10838 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10840 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10842 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10843 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10844 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10845 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10846 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10848 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10850 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10852 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10854 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10855 displaced_step_closure_up.
10856 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10857 (struct displaced_step_closure_up):
10858 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10859 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10860 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10862 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10863 * gdbarch.c, gdbarch.h: Re-generate.
10864 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10865 displaced_step_closure_up.
10866 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10867 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10868 * infrun.h (displaced_step_closure_up): New type alias.
10869 (struct displaced_step_inferior_state) <step_closure>: Change
10870 type to displaced_step_closure_up.
10871 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10872 displaced_step_closure_up.
10873 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10875 2020-02-14 Tom Tromey <tom@tromey.com>
10877 * minidebug.c (gnu_debug_key): New global.
10878 (find_separate_debug_file_in_section): Use it.
10880 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10882 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10884 * gdbarch.c: Re-generate.
10885 * gdbarch.h: Re-generate.
10886 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10888 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10889 type to std::unique_ptr.
10890 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10891 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10892 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10893 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10894 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10895 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10896 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10897 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10898 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10900 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10902 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10904 (displaced_step_clear): Rename to...
10905 (displaced_step_reset): ... this. Just call displaced->reset ().
10906 (displaced_step_clear_cleanup): Rename to...
10907 (displaced_step_reset_cleanup): ... this.
10908 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10909 (displaced_step_fixup): Likewise.
10910 (resume_1): Likewise.
10911 (handle_inferior_event): Restore child's memory before calling
10912 displaced_step_fixup on the parent.
10913 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10914 to std::unique_ptr.
10915 <step_closure>: Change type to std::unique_ptr.
10917 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10919 * arm-tdep.c: Include count-one-bits.h.
10920 (cleanup_block_store_pc): Use count_one_bits.
10921 (cleanup_block_load_pc): Use count_one_bits.
10922 (arm_copy_block_xfer): Use count_one_bits.
10923 (thumb2_copy_block_xfer): Use count_one_bits.
10924 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10925 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10926 (thumb_get_next_pcs_raw): Use count_one_bits.
10927 (arm_get_next_pcs_raw): Use count_one_bits_l.
10928 * arch/arm.c (bitcount): Remove.
10929 * arch/arm.h (bitcount): Remove.
10931 2020-02-14 Tom Tromey <tromey@adacore.com>
10933 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10935 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10936 * dwarf2/loc.c (call_site_find_chain_1): Return
10937 unique_xmalloc_ptr.
10938 (call_site_find_chain): Likewise.
10940 2020-02-14 Richard Biener <rguenther@suse.de>
10942 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10943 on expression with division operators.
10945 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10947 * MAINTAINERS (Write After Approval): Adding myself.
10949 2020-02-12 Tom Tromey <tom@tromey.com>
10951 * event-loop.c (event_data, gdb_event, event_handler_func):
10954 2020-02-12 Tom Tromey <tom@tromey.com>
10956 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10957 (dwarf2_frame_objfile_data): Add comment.
10958 (find_comp_unit, set_comp_unit): New functions.
10959 (dwarf2_frame_find_fde): Use find_comp_unit.
10960 (dwarf2_build_frame_info): Use set_comp_unit.
10962 2020-02-12 Tom Tromey <tom@tromey.com>
10964 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10965 (comp_unit): Don't initialize objfile.
10966 (execute_cfa_program): Add text_offset parameter.
10967 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10968 (dwarf2_frame_cache): Update.
10969 (dwarf2_build_frame_info): Don't set "objfile" member.
10971 2020-02-12 Tom Tromey <tom@tromey.com>
10973 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10974 (decode_frame_entry): Likewise.
10975 (dwarf2_build_frame_info): Update.
10977 2020-02-12 Tom Tromey <tom@tromey.com>
10979 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10980 (decode_frame_entry_1): Use the comp_unit obstack.
10982 2020-02-12 Tom Tromey <tom@tromey.com>
10984 * dwarf2/frame.c (struct comp_unit): Add initializers and
10986 (dwarf2_frame_objfile_data): Store a comp_unit.
10987 (dwarf2_frame_find_fde): Update.
10988 (dwarf2_build_frame_info): Use "new".
10990 2020-02-12 Tom Tromey <tom@tromey.com>
10992 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10993 (dwarf2_fde_table): Typedef for std::vector.
10994 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10995 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10996 (decode_frame_entry): Update.
10997 (dwarf2_build_frame_info): Use "new".
10999 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11001 * arm-tdep.c (arm_gdbarch_init): Update.
11002 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11003 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11004 have_neon, is_m>: Change to bool.
11006 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11008 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11010 2020-02-12 Tom Tromey <tom@tromey.com>
11012 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11014 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11016 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11017 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11019 2020-02-11 Tom Tromey <tom@tromey.com>
11021 * psymtab.h: Update comment.
11023 2020-02-11 Tom Tromey <tom@tromey.com>
11025 * gdb_obstack.h (struct auto_obstack): Use
11026 DISABLE_COPY_AND_ASSIGN.
11028 2020-02-11 Tom Tromey <tom@tromey.com>
11030 * dwarf2/frame.h (struct objfile): Don't forward declare.
11032 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11034 * cris-tdep.c (cris_supply_gregset): Change signature to match
11035 what struct regset expects.
11036 (cris_regset): New struct.
11037 (fetch_core_registers): Remove.
11038 (cris_iterate_over_regset_sections): New function.
11039 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11040 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11042 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11044 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11047 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11049 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11051 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11053 * configure: Re-generate.
11055 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11057 * configure: Re-generate.
11059 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11061 * acinclude: Update warning.m4 path.
11062 * warning.m4: Move to gdbsupport.
11064 2020-02-11 Tom Tromey <tromey@adacore.com>
11066 * remote.c (remote_console_output): Update.
11067 * printcmd.c (printf_command): Update.
11068 * event-loop.c (gdb_wait_for_event): Update.
11069 * linux-nat.c (sigchld_handler): Update.
11070 * remote-sim.c (gdb_os_write_stdout): Update.
11071 (gdb_os_flush_stdout): Update.
11072 (gdb_os_flush_stderr): Update.
11073 (gdb_os_write_stderr): Update.
11074 * exceptions.c (print_exception): Update.
11075 * remote-fileio.c (remote_fileio_func_read): Update.
11076 (remote_fileio_func_write): Update.
11077 * tui/tui.c (tui_enable): Update.
11078 * tui/tui-interp.c (tui_interp::init): Update.
11079 * utils.c (init_page_info): Update.
11080 (putchar_unfiltered, fputc_unfiltered): Update.
11081 (gdb_flush): Update.
11082 (emit_style_escape): Update.
11083 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11084 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11085 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11086 (stderr_file::write): Update.
11087 (stderr_file::puts): Update.
11088 * ui-file.h (ui_file_isatty, ui_file_write)
11089 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11090 (ui_file_puts): Don't declare.
11092 2020-02-10 Tom de Vries <tdevries@suse.de>
11094 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11095 sentinel to char *.
11097 2020-02-09 Tom de Vries <tdevries@suse.de>
11099 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11100 filename if it matches "<artificial>".
11102 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11104 * windows-tdep.c (struct enum_value_name): New struct.
11105 (create_enum): New function.
11106 (windows_get_siginfo_type): Create and use enum types.
11108 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11110 * NEWS: Mention $_siginfo support for Windows.
11111 * windows-nat.c (handle_exception): Set siginfo_er.
11112 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11113 (windows_xfer_siginfo): New function.
11114 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11115 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11116 (init_windows_gdbarch_data): New function.
11117 (get_windows_gdbarch_data): New function.
11118 (windows_get_siginfo_type): New function.
11119 (windows_init_abi): Register windows_get_siginfo_type.
11120 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11122 2020-02-08 Tom Tromey <tom@tromey.com>
11124 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11125 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11126 <keep>: Declare method.
11127 <m_keep>: Remove member.
11128 <~cutu_reader>: Remove.
11129 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11130 (cutu_reader::cutu_reader): Update.
11131 (cutu_reader::keep): Rename from ~cutu_reader.
11132 (process_psymtab_comp_unit, build_type_psymtabs_1)
11133 (process_skeletonless_type_unit, load_partial_comp_unit)
11134 (load_full_comp_unit, dwarf2_read_addr_index)
11135 (read_signatured_type): Update.
11137 2020-02-08 Tom Tromey <tom@tromey.com>
11139 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11140 "want_partial_unit" parameter.
11141 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11142 Inline check for DW_TAG_partial_unit.
11143 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11145 2020-02-08 Tom Tromey <tom@tromey.com>
11147 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11149 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11152 2020-02-08 Tom Tromey <tom@tromey.com>
11154 * dwarf2/read.c (read_address): Move to comp-unit.c.
11155 (dwarf2_rnglists_process, dwarf2_ranges_process)
11156 (read_attribute_value, dwarf_decode_lines_1)
11157 (var_decode_location, decode_locdesc): Update.
11158 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11159 read.c. Remove "cu" parameter.
11160 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11163 2020-02-08 Tom Tromey <tom@tromey.com>
11165 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11166 (read_indirect_line_string): Update.
11167 * dwarf2/comp-unit.c (read_offset): Remove.
11168 (read_comp_unit_head): Update.
11169 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11171 (read_offset): Don't declare.
11173 2020-02-08 Tom Tromey <tom@tromey.com>
11175 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11176 * dwarf2/read.c (struct comp_unit_head): Move to
11177 dwarf2/comp-unit.h.
11178 (enum class rcuh_kind): Move to comp-unit.h.
11179 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11180 (read_comp_unit_head, error_check_comp_unit_head)
11181 (read_and_check_comp_unit_head): Move to comp-unit.c.
11182 (read_offset, dwarf_unit_type_name): Likewise.
11183 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11184 (cutu_reader::cutu_reader, read_call_site_scope)
11185 (find_partial_die, follow_die_offset): Update.
11186 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11188 2020-02-08 Tom Tromey <tom@tromey.com>
11190 * dwarf2/read.c (read_offset_1): Move to leb.c.
11191 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11192 (dwarf_decode_macro_bytes): Update.
11193 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11194 * dwarf2/leb.h (read_offset): Declare.
11196 2020-02-08 Tom Tromey <tom@tromey.com>
11198 * dwarf2/read.c (dwarf2_section_size): Remove.
11199 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11201 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11203 2020-02-08 Tom Tromey <tom@tromey.com>
11205 * dwarf2/read.c (read_initial_length): Move to leb.c.
11206 * dwarf2/leb.h (read_initial_length): Declare.
11207 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11208 handle_nonstd parameter.
11209 * dwarf2/frame.c (read_initial_length): Remove.
11210 (decode_frame_entry_1): Update.
11212 2020-02-08 Tom Tromey <tom@tromey.com>
11214 * dwarf2/loc.c (dwarf2_find_location_expression)
11215 (dwarf_evaluate_loc_desc::get_tls_address)
11216 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11217 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11218 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11219 (dwarf2_compile_property_to_c)
11220 (dwarf2_loc_desc_get_symbol_read_needs)
11221 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11222 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11223 (loclist_describe_location, loclist_tracepoint_var_ref)
11224 (loclist_generate_c_location): Update.
11225 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11226 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11227 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11228 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11229 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11230 (dwarf2_per_cu_data::addr_size)
11231 (dwarf2_per_cu_data::ref_addr_size)
11232 (dwarf2_per_cu_data::text_offset)
11233 (dwarf2_per_cu_data::addr_type): Now methods.
11234 (per_cu_header_read_in): Make per_cu "const".
11235 (dwarf2_version): Remove.
11236 (dwarf2_per_cu_data::int_type): Now a method.
11237 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11238 (set_die_type, read_array_type, read_subrange_index_type)
11239 (read_tag_string_type, read_subrange_type): Update.
11240 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11241 offset_size, ref_addr_size, text_offset, addr_type, version,
11242 objfile, int_type, addr_sized_int_type>: Declare methods.
11244 2020-02-08 Tom Tromey <tom@tromey.com>
11246 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11249 2020-02-08 Tom Tromey <tom@tromey.com>
11251 * dwarf2/read.h (dwarf_line_debug): Declare.
11252 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11253 * dwarf2/read.c: Move line_header code to new files.
11254 (dwarf_line_debug): No longer static.
11255 * dwarf2/line-header.c: New file.
11256 * dwarf2/line-header.h: New file.
11258 2020-02-08 Tom Tromey <tom@tromey.com>
11260 * dwarf2/read.c (struct line_header) <file_full_name,
11261 file_file_name>: Return unique_xmalloc_ptr.
11262 (line_header::file_file_name): Update.
11263 (line_header::file_full_name): Update.
11264 (dw2_get_file_names_reader): Update.
11265 (macro_start_file): Update.
11267 2020-02-08 Tom Tromey <tom@tromey.com>
11269 * dwarf2/read.c (struct line_header) <file_full_name,
11270 file_file_name>: Declare methods.
11271 (dw2_get_file_names_reader): Update.
11272 (file_file_name): Now a method.
11273 (file_full_name): Likewise.
11274 (macro_start_file): Update.
11276 2020-02-08 Tom Tromey <tom@tromey.com>
11278 * dwarf2/read.c (dwarf_always_disassemble)
11279 (show_dwarf_always_disassemble): Move to loc.c.
11280 (_initialize_dwarf2_read): Move "always-disassemble" registration
11282 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11283 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11285 (show_dwarf_always_disassemble): Move from read.c.
11286 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11288 2020-02-08 Tom Tromey <tom@tromey.com>
11290 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11291 (create_quick_file_names_table): Return htab_up.
11292 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11294 * dwarf2/read.h (struct dwarf2_per_objfile)
11295 <quick_file_names_table>: Now htab_up.
11297 2020-02-08 Tom Tromey <tom@tromey.com>
11299 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11301 2020-02-08 Tom Tromey <tom@tromey.com>
11303 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11305 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11306 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11307 (abbrev_table::abbrev_table): No longer inline.
11308 (ABBREV_HASH_SIZE): Remove.
11309 (abbrev_table::m_abbrevs): Now an htab_up.
11311 2020-02-08 Tom Tromey <tom@tromey.com>
11313 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11314 (cutu_reader): Update.
11315 (build_type_psymtabs_1): Update.
11316 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11317 (abbrev_table::alloc_abbrev): Update.
11318 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11319 (abbrev_table::read): New static method, renamed from
11320 abbrev_table_read_table.
11321 (abbrev_table::alloc_abbrev)
11322 (abbrev_table::add_abbrev): Now private.
11323 (abbrev_table::abbrev_table): Now private.
11324 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11326 2020-02-08 Tom Tromey <tom@tromey.com>
11328 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11329 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11332 2020-02-08 Tom Tromey <tom@tromey.com>
11334 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11336 (lookup_dwo_unit_in_dwp): Update.
11337 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11340 2020-02-08 Tom Tromey <tom@tromey.com>
11342 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11345 2020-02-08 Tom Tromey <tom@tromey.com>
11347 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11349 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11350 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11351 Change type to htab_up.
11353 2020-02-08 Tom Tromey <tom@tromey.com>
11355 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11356 htab_up. Don't allocate on obstack.
11357 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11358 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11359 Change type to htab_up.
11361 2020-02-08 Tom Tromey <tom@tromey.com>
11363 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11364 Change type to htab_up.
11365 * dwarf2/read.c (create_signatured_type_table_from_index)
11366 (create_signatured_type_table_from_debug_names)
11367 (create_all_type_units, add_type_unit)
11368 (lookup_dwo_signatured_type, lookup_signatured_type)
11369 (process_skeletonless_type_unit): Update.
11370 (create_debug_type_hash_table, create_debug_types_hash_table):
11371 Change type of types_htab.
11372 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11373 htab_up. Don't allocate on obstack.
11374 (create_cus_hash_table): Change type of cus_htab parameter.
11375 (struct dwo_file) <cus, tus>: Now htab_up.
11376 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11377 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11378 (queue_and_load_all_dwo_tus): Update.
11379 * dwarf2/index-write.c (write_gdbindex): Update.
11380 (write_debug_names): Update.
11382 2020-02-08 Tom Tromey <tom@tromey.com>
11384 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11385 dwarf2/read.c. Remove "next" member. Add constructor ntad
11387 (struct dwarf2_per_objfile) <queue>: New member.
11388 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11390 (dwarf2_queue, dwarf2_queue_tail): Remove.
11391 (class dwarf2_queue_guard): Add parameter to constructor. Use
11392 DISABLE_COPY_AND_ASSIGN.
11393 <m_per_objfile>: New member.
11394 <~dwarf2_queue_guard>: Rewrite.
11395 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11397 (~dwarf2_queue_item): New.
11399 2020-02-08 Tom Tromey <tom@tromey.com>
11401 * dwarf2/read.c (struct die_info) <has_children>: New member.
11402 (dw2_get_file_names_reader): Remove has_children.
11403 (dw2_get_file_names): Update.
11404 (read_cutu_die_from_dwo): Remove has_children.
11405 (cutu_reader::init_tu_and_read_dwo_dies)
11406 (cutu_reader::cutu_reader): Update.
11407 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11408 Remove has_children.
11409 (build_type_psymtabs_1, process_skeletonless_type_unit)
11410 (load_partial_comp_unit, load_full_comp_unit): Update.
11411 (create_dwo_cu_reader): Remove has_children.
11412 (create_cus_hash_table, read_die_and_children): Update.
11413 (read_full_die_1,read_full_die): Remove has_children.
11414 (read_signatured_type): Update.
11415 (class cutu_reader) <has_children>: Remove.
11417 2020-02-08 Tom Tromey <tom@tromey.com>
11419 * dwarf2/expr.c: Rename from dwarf2expr.c.
11420 * dwarf2/expr.h: Rename from dwarf2expr.h.
11421 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11422 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11423 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11424 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11425 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11426 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11427 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11428 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11429 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11430 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11431 * dwarf2/loc.c: Rename from dwarf2loc.c.
11432 * dwarf2/loc.h: Rename from dwarf2loc.h.
11433 * dwarf2/read.c: Rename from dwarf2read.c.
11434 * dwarf2/read.h: Rename from dwarf2read.h.
11435 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11436 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11437 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11438 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11439 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11440 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11441 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11442 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11443 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11444 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11445 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11446 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11447 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11449 * Makefile.in (COMMON_SFILES): Update.
11450 (HFILES_NO_SRCDIR): Update.
11452 2020-02-08 Tom Tromey <tom@tromey.com>
11454 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11455 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11457 2020-02-08 Tom Tromey <tom@tromey.com>
11459 * dwarf2read.h (struct die_info): Don't declare.
11461 2020-02-08 Tom Tromey <tom@tromey.com>
11463 * dwarf2read.h (die_info_ptr): Remove typedef.
11465 2020-02-08 Tom Tromey <tom@tromey.com>
11467 * dwarf2read.c (read_call_site_scope)
11468 (handle_data_member_location, dwarf2_add_member_fn)
11469 (mark_common_block_symbol_computed, read_common_block)
11470 (attr_to_dynamic_prop, partial_die_info::read)
11471 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11472 (dwarf2_symbol_mark_computed, set_die_type): Update.
11473 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11475 (attr_form_is_block): Don't declare.
11476 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11478 2020-02-08 Tom Tromey <tom@tromey.com>
11480 * dwarf2read.c (dwarf2_find_base_address, )
11481 (read_call_site_scope, rust_containing_type)
11482 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11483 (handle_data_member_location, dwarf2_add_member_fn)
11484 (get_alignment, read_structure_type, process_structure_scope)
11485 (mark_common_block_symbol_computed, read_common_block)
11486 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11487 (partial_die_info::read, read_attribute_value, new_symbol)
11488 (lookup_die_type, dwarf2_get_ref_die_offset)
11489 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11490 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11491 (dwarf2_symbol_mark_computed): Update.
11492 * dwarf2/attribute.h (struct attribute) <value_as_address,
11493 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11495 (value_as_address, attr_form_is_section_offset)
11496 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11497 * dwarf2/attribute.c (attribute::value_as_address)
11498 (attribute::form_is_section_offset, attribute::form_is_constant)
11499 (attribute::form_is_ref): Now methods.
11501 2020-02-08 Tom Tromey <tom@tromey.com>
11503 * dwarf2read.c (struct attribute, DW_STRING)
11504 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11505 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11506 (attr_form_is_block, attr_form_is_section_offset)
11507 (attr_form_is_constant, attr_form_is_ref): Move.
11508 * dwarf2/attribute.h: New file.
11509 * dwarf2/attribute.c: New file, from dwarf2read.c.
11510 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11512 2020-02-08 Tom Tromey <tom@tromey.com>
11514 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11515 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11517 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11518 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11519 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11521 * dwarf2/abbrev.h: New file.
11522 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11523 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11525 2020-02-08 Tom Tromey <tom@tromey.com>
11527 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11528 (dwarf2_section_size, dwarf2_get_section_info)
11529 (create_signatured_type_table_from_debug_names)
11530 (create_addrmap_from_aranges, read_debug_names_from_section)
11531 (get_gdb_index_contents_from_section, read_comp_unit_head)
11532 (error_check_comp_unit_head, read_abbrev_offset)
11533 (create_debug_type_hash_table, init_cu_die_reader)
11534 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11535 (read_comp_units_from_section, create_cus_hash_table)
11536 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11537 (create_dwp_v2_section, dwarf2_rnglists_process)
11538 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11539 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11540 (read_indirect_string_from_dwz, read_addr_index_1)
11541 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11542 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11543 (fill_in_loclist_baton): Update.
11544 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11545 get_containing_section, get_bfd_owner, get_bfd_section,
11546 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11547 (dwarf2_read_section, get_section_name, get_section_file_name)
11548 (get_containing_section, get_section_bfd_owner)
11549 (get_section_bfd_section, get_section_name, get_section_file_name)
11550 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11552 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11553 (dwarf2_section_info::get_bfd_owner)
11554 (dwarf2_section_info::get_bfd_section)
11555 (dwarf2_section_info::get_name)
11556 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11557 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11558 (dwarf2_section_info::read): Now methods.
11559 * dwarf-index-write.c (class debug_names): Update.
11561 2020-02-08 Tom Tromey <tom@tromey.com>
11563 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11564 Move to dwarf2/section.h.
11565 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11566 (get_section_bfd_section, get_section_name)
11567 (get_section_file_name, get_section_id, get_section_flags)
11568 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11570 * dwarf2/section.h: New file.
11571 * dwarf2/section.c: New file, from dwarf2read.c.
11572 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11574 2020-02-08 Tom Tromey <tom@tromey.com>
11576 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11577 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11578 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11579 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11580 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11581 * dwarf2/leb.h: New file, from dwarf2read.c.
11582 * dwarf2/leb.c: New file, from dwarf2read.c.
11583 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11585 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11586 (COMMON_SFILES): Add dwarf2/leb.c.
11588 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11592 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11595 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11596 * gdb/remote.c (remote_console_output): Update.
11597 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11598 (ui_file_puts): ...this.
11599 * gdb/ui-file.h (ui_file_puts): Add declaration.
11600 * gdb/utils.c (emit_style_escape): Update.
11601 (flush_wrap_buffer): Update.
11602 (fputs_maybe_filtered): Update.
11603 (fputs_unfiltered): Add function.
11605 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11607 * gdb/event-loop.c (gdb_wait_for_event): Update.
11608 * gdb/printcmd.c (printf_command): Update.
11609 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11610 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11611 (gdb_os_flush_stderr): Update.
11612 * gdb/remote.c (remote_console_output): Update.
11613 * gdb/ui-file.c (gdb_flush): Rename to...
11614 (ui_file_flush): ...this.
11615 (stderr_file::write): Update.
11616 (stderr_file::puts): Update.
11617 * gdb/ui-file.h (gdb_flush): Rename to...
11618 (ui_file_flush): ...this.
11619 * gdb/utils.c (gdb_flush): Add function.
11620 * gdb/utils.h (gdb_flush): Add declaration.
11622 2020-02-07 Tom Tromey <tromey@adacore.com>
11624 PR breakpoints/24915:
11625 * source.c (find_and_open_source): Do not check basenames_may_differ.
11627 2020-02-07 Tom Tromey <tom@tromey.com>
11629 * README: Update gdbserver documentation.
11630 * gdbserver: Move to top level.
11631 * configure.tgt (build_gdbserver): Remove.
11632 * configure.ac: Remove --enable-gdbserver.
11633 * configure: Rebuild.
11634 * Makefile.in (distclean): Don't mention gdbserver.
11636 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11638 * source-cache.c (source_cache::ensure): Surround
11639 get_plain_source_lines with a try/catch.
11640 (source_cache::get_line_charpos): Get rid of try/catch
11641 and only check for the return value of "ensure".
11642 * tui/tui-source.c (tui_source_window::set_contents):
11643 Simplify "nlines" calculation.
11645 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11647 * MAINTAINERS (Write After Approval): Add myself.
11649 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11651 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11654 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11656 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11658 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11660 * nat/riscv-linux-tdesc.h: New file.
11661 * nat/riscv-linux-tdesc.c: New file, taking code from...
11662 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11664 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11667 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11669 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11670 we don't set the fake simulator ptid to the null_ptid.
11672 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11674 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11675 * gdbthread.h (class thread_info) <resumed>: Likewise.
11676 * infrun.c (resume_1): Likewise.
11677 (proceed): Likewise.
11678 (infrun_thread_stop_requested): Likewise.
11679 (stop_all_threads): Likewise.
11680 (handle_inferior_event): Likewise.
11681 (restart_threads): Likewise.
11682 (finish_step_over): Likewise.
11683 (keep_going_stepped_thread): Likewise.
11684 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11685 (linux_handle_extended_wait): Likewise.
11686 * record-btrace.c (get_thread_current_frame_id): Likewise.
11687 * record-full.c (record_full_wait_1): Likewise.
11688 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11689 * target.c (target_resume): Likewise.
11690 * thread.c (set_running_thread): Likewise.
11692 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11694 * f-valprint.c (f77_print_array_1): Changed datatype of index
11695 variable to LONGEST from int to enable it to contain bound
11698 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11700 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11701 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11702 offsets according to FLEN determined.
11703 (riscv_linux_nat_target::read_description): Determine FLEN
11705 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11706 according to FLEN determined.
11707 (riscv_linux_nat_target::store_registers): Likewise.
11709 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11711 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11712 when reg->group is empty and reggroup is not.
11714 2020-01-31 Tom Tromey <tromey@adacore.com>
11716 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11717 Call beneath target's mourn_inferior after unpushing.
11719 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11722 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11723 have enough lines to fill the screen, still return the lowest
11726 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11728 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11729 '-', '<', and '>' commands.
11731 2020-01-29 Pedro Alves <palves@redhat.com>
11732 Sergio Durigan Junior <sergiodj@redhat.com>
11734 * infcmd.c (construct_inferior_arguments): Assert that
11735 'argc' is greater than 0.
11737 2020-01-29 Luis Machado <luis.machado@linaro.org>
11739 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11740 (BRK_INSN_MASK): Define to 0xd4200000.
11741 (aarch64_program_breakpoint_here_p): New function.
11742 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11743 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11745 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11747 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11748 call gdbarch_program_breakpoint_here_p.
11749 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11750 default_program_breakpoint_here_p, changed return type to bool and
11752 * breakpoint.h (program_breakpoint_here): Moved prototype to
11753 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11754 return type to bool.
11755 * gdbarch.c: Regenerate.
11756 * gdbarch.h: Regenerate.
11757 * gdbarch.sh (program_breakpoint_here_p): New method.
11758 * infrun.c (handle_signal_stop): Call
11759 gdbarch_program_breakpoint_here_p.
11761 2020-01-26 Tom Tromey <tom@tromey.com>
11763 * ctfread.c (struct ctf_fp_info): Reindent.
11764 (_initialize_ctfread): Remove.
11766 2020-01-26 Tom Tromey <tom@tromey.com>
11768 * psymtab.c (partial_map_expand_apply)
11769 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11770 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11771 (psym_print_stats, psym_expand_symtabs_for_function)
11772 (psym_map_symbol_filenames, psym_map_matching_symbols)
11773 (psym_expand_symtabs_matching)
11774 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11775 (maintenance_check_psymtabs): Use new methods.
11776 * psympriv.h (struct partial_symtab) <readin_p,
11777 get_compunit_symtab>: New methods.
11778 <readin, compunit_symtab>: Remove members.
11779 (struct standard_psymtab): New.
11780 (struct legacy_psymtab): Derive from standard_psymtab.
11781 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11783 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11785 2020-01-26 Tom Tromey <tom@tromey.com>
11787 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11788 read_dependencies. Add assert.
11789 * psymtab.c (partial_symtab::read_dependencies): New method.
11790 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11792 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11793 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11795 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11798 2020-01-26 Tom Tromey <tom@tromey.com>
11800 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11801 Call expand_psymtab.
11802 (xcoff_read_symtab): Call expand_psymtab.
11803 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11804 legacy_expand_psymtab.
11805 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11807 (struct legacy_psymtab) <expand_psymtab>: Implement.
11808 <legacy_expand_psymtab>: New member.
11809 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11810 (parse_partial_symbols): Set legacy_expand_psymtab.
11811 (psymtab_to_symtab_1): Change argument order. Call
11813 (new_psymtab): Set legacy_expand_psymtab.
11814 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11815 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11817 (dwarf2_psymtab::expand_psymtab): Rename from
11818 psymtab_to_symtab_1. Call expand_psymtab.
11819 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11820 (dbx_end_psymtab): Likewise.
11821 (dbx_psymtab_to_symtab_1): Change argument order. Call
11823 (dbx_read_symtab): Call expand_psymtab.
11824 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11825 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11826 (ctf_psymtab::read_symtab): Call expand_psymtab.
11828 2020-01-26 Tom Tromey <tom@tromey.com>
11830 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11831 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11833 * mdebugread.c (mdebug_read_symtab): Remove prints.
11834 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11836 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11838 2020-01-26 Tom Tromey <tom@tromey.com>
11840 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11841 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11842 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11844 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11845 * psymtab.c (psymtab_to_symtab): Call method.
11846 (dump_psymtab): Update.
11847 * psympriv.h (struct partial_symtab): Add virtual destructor.
11848 <read_symtab>: New method.
11849 (struct legacy_symtab): New.
11850 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11851 (struct pst_map) <pst>: Now a legacy_psymtab.
11852 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11853 (new_psymtab): Use legacy_psymtab.
11854 * dwarf2read.h (struct dwarf2_psymtab): New.
11855 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11856 * dwarf2read.c (dwarf2_create_include_psymtab)
11857 (dwarf2_build_include_psymtabs, create_type_unit_group)
11858 (create_partial_symtab, process_psymtab_comp_unit_reader)
11859 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11860 (set_partial_user): Use dwarf2_psymtab.
11861 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11862 (psymtab_to_symtab_1, process_full_comp_unit)
11863 (process_full_type_unit, dwarf2_ranges_read)
11864 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11865 (dwarf_decode_lines): Use dwarf2_psymtab.
11866 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11867 (add_address_entry_worker, write_one_signatured_type)
11868 (recursively_count_psymbols, recursively_write_psymbols)
11869 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11870 (write_debug_names): Likewise.
11871 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11872 <pst>: Now a legacy_psymtab.
11873 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11874 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11875 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11876 * ctfread.c (struct ctf_psymtab): New.
11877 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11879 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11880 (create_partial_symtab): Return a ctf_psymtab.
11881 (scan_partial_symbols): Update.
11883 2020-01-26 Tom Tromey <tom@tromey.com>
11885 * xcoffread.c (xcoff_start_psymtab): Use new.
11886 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11887 renamed from start_psymtab_common.
11888 * psympriv.h (struct partial_symtab): Add new constructor.
11889 (start_psymtab_common): Don't declare.
11890 * mdebugread.c (parse_partial_symbols): Use new.
11891 * dwarf2read.c (create_partial_symtab): Use new.
11892 * dbxread.c (start_psymtab): Use new.
11893 * ctfread.c (create_partial_symtab): Use new.
11895 2020-01-26 Tom Tromey <tom@tromey.com>
11897 * xcoffread.c (xcoff_end_psymtab): Use new.
11898 * psymtab.c (start_psymtab_common): Use new.
11899 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11901 * psympriv.h (struct partial_symtab): Add parameters to
11902 constructor. Don't inline.
11903 (allocate_psymtab): Don't declare.
11904 * mdebugread.c (new_psymtab): Use new.
11905 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11906 * dbxread.c (dbx_end_psymtab): Use new.
11908 2020-01-26 Tom Tromey <tom@tromey.com>
11910 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11911 allocate_psymtab. Update documentation.
11912 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11913 allocate_psymtab. Do not use new.
11914 (allocate_psymtab): Use new. Update.
11916 2020-01-26 Tom Tromey <tom@tromey.com>
11918 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11919 * psymtab.c (psym_print_stats): Update.
11920 * psympriv.h (struct partial_symtab) <readin,
11921 psymtabs_addrmap_supported, anonymous>: Now bool.
11922 * mdebugread.c (psymtab_to_symtab_1): Update.
11923 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11924 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11925 (process_full_comp_unit, process_full_type_unit): Update.
11926 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11927 * ctfread.c (psymtab_to_symtab): Update.
11929 2020-01-26 Tom Tromey <tom@tromey.com>
11931 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11932 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11933 * psymtab.c (psymtab_storage): Delete psymtabs.
11934 (psymtab_storage::allocate_psymtab): Use new.
11935 (psymtab_storage::discard_psymtab): Use delete.
11936 * psympriv.h (struct partial_symtab): Add constructor and
11939 2020-01-26 Tom Tromey <tom@tromey.com>
11941 * machoread.c: Do not include psympriv.h.
11943 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11945 * NEWS: Mention the new option and the set/show commands.
11947 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11949 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11950 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11951 (validate_exec_file): New variables, enums, functions.
11952 (exec_file_locate_attach, print_section_info): Style the filenames.
11953 (_initialize_exec): Install show_exec_file_mismatch_command and
11954 set_exec_file_mismatch_command.
11955 * gdbcore.h (validate_exec_file): Declare.
11956 * infcmd.c (attach_command): Call validate_exec_file.
11957 * remote.c ( remote_target::remote_add_inferior): Likewise.
11959 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11961 * frame.c (find_frame_sal): Move call to get_next_frame into more
11963 * inline-frame.c (inilne_state) <inline_state>: Update argument
11965 (inilne_state) <skipped_symbol>: Rename to...
11966 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11967 (skip_inline_frames): Build vector of skipped symbols and use this
11968 to reate the inline_state.
11969 (inline_skipped_symbol): Add a comment and some assertions, fetch
11970 skipped symbol from the list.
11972 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11974 * buildsym.c (lte_is_less_than): Delete.
11975 (buildsym_compunit::end_symtab_with_blockvector): Create local
11976 lambda function to sort line table entries, and use
11977 std::stable_sort instead of std::sort.
11978 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11979 markers when looking for a previous line.
11981 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11983 * dwarf2read.c (lnp_state_machine::record_line): Include
11984 end_sequence parameter in debug print out. Record the line if we
11985 are at an end_sequence marker even if it's not the start of a
11987 * symmisc.c (maintenance_print_one_line_table): Print end of
11988 sequence markers with 'END' not '0'.
11990 2020-01-24 Pedro Alves <palves@redhat.com>
11993 * thread.c (scoped_restore_current_thread::restore): Use
11994 switch_to_inferior_no_thread.
11995 * exec.c: Include "progspace-and-thread.h".
11996 (add_target_sections, remove_target_sections):
11997 scoped_restore_current_pspace_and_thread instead of
11998 scoped_restore_current_thread.
11999 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12000 and aspace to the inferior before calling clone_program_space.
12001 Remove stale comment.
12003 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12005 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12006 (arm_netbsd_nat_target::fetch_registers): ...this.
12007 (arm_nbsd_nat_target::store_registers): Rename to...
12008 (arm_netbsd_nat_target::store_registers): ...this.
12010 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12012 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12015 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12017 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12019 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12021 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12022 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12023 the correct replacement (iterate_over_regset_sections).
12024 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12027 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12030 * gdb/python/python.c (execute_gdb_command): Call
12031 async_enable_stdin in catch block.
12033 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12035 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12036 SWITCH_THRU_ALL_UIS.
12038 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12041 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12042 comment, add extra parameter, and update to store previous symbol
12044 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12045 add extra parameter.
12046 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12047 remove unneeded parameter, add try/catch around gdb_print_insn,
12048 rewrite to add items to asm_lines vector.
12049 (tui_find_backward_disassembly_start_address): New function.
12050 (tui_find_disassembly_address): Updated throughout.
12051 (tui_disasm_window::set_contents): Update for changes to
12053 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12054 number of lines to scroll.
12056 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12058 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12059 (SECT_OFF_DATA): Likewise.
12060 (SECT_OFF_RODATA): Likewise.
12061 (SECT_OFF_TEXT): Likewise.
12062 (SECT_OFF_BSS): Likewise.
12063 (struct objfile) <text_section_offset, data_section_offset>: New
12065 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12066 objfile::text_section_offset.
12067 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12068 * coffread.c (coff_symtab_read): Likewise.
12069 (enter_linenos): Likewise.
12070 (process_coff_symbol): Likewise.
12071 * ctfread.c (get_objfile_text_range): Likewise.
12072 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12073 Use objfile::data_section_offset.
12074 * dwarf2-frame.c (execute_cfa_program): Use
12075 objfile::text_section_offset.
12076 (dwarf2_frame_find_fde): Likewise.
12077 * dwarf2read.c (create_addrmap_from_index): Likewise.
12078 (create_addrmap_from_aranges): Likewise.
12079 (dw2_find_pc_sect_compunit_symtab): Likewise.
12080 (process_psymtab_comp_unit_reader): Likewise.
12081 (add_partial_symbol): Likewise.
12082 (add_partial_subprogram): Likewise.
12083 (process_full_comp_unit): Likewise.
12084 (read_file_scope): Likewise.
12085 (read_func_scope): Likewise.
12086 (read_lexical_block_scope): Likewise.
12087 (read_call_site_scope): Likewise.
12088 (dwarf2_rnglists_process): Likewise.
12089 (dwarf2_ranges_process): Likewise.
12090 (dwarf2_ranges_read): Likewise.
12091 (dwarf_decode_lines_1): Likewise.
12092 (new_symbol): Likewise.
12093 (dwarf2_fetch_die_loc_sect_off): Likewise.
12094 (dwarf2_per_cu_text_offset): Likewise.
12095 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12096 * hppa-tdep.c (read_unwind_info): Likewise.
12097 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12098 * psympriv.h (struct partial_symtab): Likewise.
12099 * psymtab.c (find_pc_sect_psymtab): Likewise.
12100 * solib-svr4.c (enable_break): Likewise.
12101 * stap-probe.c (relocate_address): Use
12102 objfile::data_section_offset.
12103 * xcoffread.c (enter_line_range): Use
12104 objfile::text_section_offset.
12105 (read_xcoff_symtab): Likewise.
12107 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12109 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12110 declaration to narrower scopes.
12112 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12114 * darwin-nat.h (struct darwin_exception_msg, enum
12115 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12117 (class darwin_nat_target) <wait_1, check_new_threads,
12118 decode_exception_message, decode_message, stop_inferior,
12119 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12120 * darwin-nat.c (darwin_check_new_threads): Rename to...
12121 (darwin_nat_target::check_new_threads): ... this.
12122 (darwin_suspend_inferior_it): Remove.
12123 (darwin_decode_exception_message): Rename to...
12124 (darwin_nat_target::decode_exception_message): ... this.
12125 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12126 (darwin_decode_message): Rename to...
12127 (darwin_nat_target::decode_message): ... this.
12128 (cancel_breakpoint): Rename to...
12129 (darwin_nat_target::cancel_breakpoint): ... this.
12130 (darwin_wait): Rename to...
12131 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12132 instead of iterate_over_inferiors.
12133 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12134 (darwin_stop_inferior): Rename to...
12135 (darwin_nat_target::stop_inferior): ... this.
12136 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12137 (darwin_init_thread_list): Rename to...
12138 (darwin_nat_target::init_thread_list): ... this.
12139 (darwin_ptrace_him): Rename to...
12140 (darwin_nat_target::ptrace_him): ... this.
12141 (darwin_nat_target::create_inferior): Pass lambda function to
12143 (darwin_nat_target::detach): Call stop_inferior instead of
12144 darwin_stop_inferior.
12145 * fork-inferior.h (fork_inferior): Change init_trace_fun
12146 parameter to gdb::function_view.
12147 * fork-inferior.c (fork_inferior): Likewise.
12149 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12151 * i386-cygwin-tdep.c (core_process_module_section): Update.
12152 * windows-nat.c (struct lm_info_windows): Add text_offset.
12153 (windows_xfer_shared_libraries): Update.
12154 * windows-tdep.c (windows_xfer_shared_library):
12155 Add text_offset_cached argument.
12156 * windows-tdep.h (windows_xfer_shared_library): Update.
12158 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12160 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12162 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12164 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12165 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12166 replace with range-based for.
12167 (gdbsim_interrupt_inferior): Remove.
12168 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12169 with a range-based for. Inline code from
12170 gdbsim_interrupt_inferior.
12172 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12174 * infrun.c (proceed): Fix indentation.
12176 2020-01-21 Tom Tromey <tromey@adacore.com>
12178 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12179 * python/python.c (python_extension_ops): Update.
12180 (gdbpy_colorize): New function.
12181 * python/lib/gdb/__init__.py (colorize): New function.
12182 * extension.h (ext_lang_colorize): Declare.
12183 * extension.c (ext_lang_colorize): New function.
12184 * extension-priv.h (struct extension_language_ops) <colorize>: New
12186 * cli/cli-style.c (_initialize_cli_style): Update help text.
12188 2020-01-21 Luis Machado <luis.machado@linaro.org>
12190 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12191 <cond>: Change type to bool.
12192 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12193 (aarch64_displaced_step_cb): Likewise.
12194 (aarch64_displaced_step_tb): Likewise.
12196 2020-01-21 Luis Machado <luis.machado@linaro.org>
12198 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12201 2020-01-21 Luis Machado <luis.machado@linaro.org>
12203 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12204 <pc_adjust>: Adjust the documentation.
12205 (aarch64_displaced_step_fixup): Check if PC really moved before
12208 2020-01-19 Tom Tromey <tom@tromey.com>
12210 * disasm.c (~gdb_disassembler): New destructor.
12211 (gdb_buffered_insn_length): Call disassemble_free_target.
12212 * disasm.h (class gdb_disassembler): Declare destructor. Use
12213 DISABLE_COPY_AND_ASSIGN.
12215 2020-01-19 Tom Tromey <tom@tromey.com>
12217 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12218 (die_reader_func_ftype): Remove.
12219 (cutu_reader): New class.
12220 (dw2_get_file_names_reader): Remove "data" parameter.
12221 (dw2_get_file_names): Use cutu_reader.
12222 (create_debug_type_hash_table): Update.
12223 (read_cutu_die_from_dwo): Update comment.
12224 (lookup_dwo_unit): Add dwo_name parameter.
12225 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12226 die_reader_func_ftype and data parameters.
12227 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12228 Remove die_reader_func_ftype and data parameters.
12229 (~cutu_reader): New; from init_cutu_and_read_dies.
12230 (cutu_reader::cutu_reader): Rename from
12231 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12232 and data parameters.
12233 (init_cutu_and_read_dies_simple): Remove.
12234 (struct process_psymtab_comp_unit_data): Remove.
12235 (process_psymtab_comp_unit_reader): Remove data parameter; add
12236 want_partial_unit and pretend_language parameters.
12237 (process_psymtab_comp_unit): Use cutu_reader.
12238 (build_type_psymtabs_reader): Remove data parameter.
12239 (build_type_psymtabs_1): Use cutu_reader.
12240 (process_skeletonless_type_unit): Likewise.
12241 (load_partial_comp_unit_reader): Remove.
12242 (load_partial_comp_unit): Use cutu_reader.
12243 (load_full_comp_unit_reader): Remove.
12244 (load_full_comp_unit): Use cutu_reader.
12245 (struct create_dwo_cu_data): Remove.
12246 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12247 dwo_unit parameters.
12248 (create_cus_hash_table): Use cutu_reader.
12249 (struct dwarf2_read_addr_index_data): Remove.
12250 (dwarf2_read_addr_index_reader): Remove.
12251 (dwarf2_read_addr_index): Use cutu_reader.
12252 (read_signatured_type_reader): Remove.
12253 (read_signatured_type): Use cutu_reader.
12255 2020-01-19 Tom Tromey <tom@tromey.com>
12257 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12258 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12259 (tui_wrefresh): Declare.
12260 * tui/tui-wingeneral.c (suppress_output): New global.
12261 (tui_suppress_output, ~tui_suppress_output): New constructor and
12263 (tui_wrefresh): New function.
12264 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12265 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12266 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12268 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12270 (tui_data_window::no_refresh): New method.
12271 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12272 (tui_reg_command): Use tui_suppress_output
12273 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12274 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12276 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12278 2020-01-19 Tom Tromey <tom@tromey.com>
12280 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12281 Handle case where symtab is null.
12283 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12285 * linux-fork.c (one_fork_p): Simplify.
12287 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12289 * top.c (struct qt_args): Remove.
12290 (kill_or_detach): Change return type to void, replace `void *`
12291 parameter with a proper one.
12292 (print_inferior_quit_action): Likewise.
12293 (quit_confirm): Use range-based for loop to iterate over inferiors.
12294 (quit_force): Likewise.
12296 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12298 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12299 `void *` parameter with proper parameters.
12300 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12301 (print_one_inferior): Change return type to void, replace `void *`
12302 parameter with proper parameters.
12303 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12305 (get_other_inferior): Remove.
12306 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12309 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12311 * mi/mi-interp.c (report_initial_inferior): Remove.
12312 (mi_interp::init): Use range-based for to iterate over inferiors.
12314 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12316 * python/py-inferior.c (build_inferior_list): Remove.
12317 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12319 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12321 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12322 (btrace_stitch_trace): Likewise.
12323 * charset.c (intermediate_encoding): Likewise (vaild).
12324 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12325 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12326 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12328 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12330 * windows-tdep.c (windows_get_tlb_type):
12331 Add rtl_user_process_parameters type.
12333 2020-01-16 Pedro Alves <palves@redhat.com>
12334 Norbert Lange <nolange79@gmail.com>
12337 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12338 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12339 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12340 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12341 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12342 (ps_plog): Redeclare exported functions with default visibility.
12344 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12346 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12347 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12349 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12351 * infcmd.c (post_create_inferior): Use get_thread_regcache
12352 instead of get_current_regcache.
12354 2020-01-14 Tom Tromey <tom@tromey.com>
12357 * python/python.c (gdbpy_decode_line): Treat empty string the same
12360 2020-01-14 Tom Tromey <tom@tromey.com>
12362 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12364 2020-01-14 Tom Tromey <tom@tromey.com>
12366 * nat/linux-btrace.c: Don't include <config.h>.
12367 * nat/linux-ptrace.c: Don't include <config.h>.
12368 * nat/x86-linux-dregs.c: Don't include <config.h>.
12370 2020-01-14 Tom Tromey <tom@tromey.com>
12372 * configure: Rebuild.
12373 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12375 2020-01-14 Tom Tromey <tom@tromey.com>
12377 * nat/x86-linux-dregs.c: Include configh.h.
12378 * nat/linux-ptrace.c: Include configh.h.
12379 * nat/linux-btrace.c: Include configh.h.
12380 * defs.h: Include config.h, bfd.h.
12381 * configure.ac: Don't source common.host.
12382 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12383 * configure: Rebuild.
12384 * acinclude.m4: Update path.
12385 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12386 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12387 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12388 (CLIBS): Add LIBSUPPORT.
12390 (COMMON_SFILES): Remove gdbsupport files.
12391 (HFILES_NO_SRCDIR): Likewise.
12392 (stamp-version): Update path to create-version.sh.
12393 (ALLDEPFILES): Remove gdbsupport files.
12395 2020-01-14 Tom Tromey <tom@tromey.com>
12397 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12398 USE_WIN32API when needed.
12399 * configure.ac (USE_WIN32API): Don't define.
12400 (WIN32LIBS): Use WIN32APILIBS.
12401 * configure: Rebuild.
12403 2020-01-14 Tom Tromey <tom@tromey.com>
12405 * configure: Rebuild.
12406 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12408 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12410 * skip.c (skip_function_command): Make skip w/o arguments use the
12411 name of the inlined function if pc is inside any inlined function.
12413 2020-01-14 Luis Machado <luis.machado@linaro.org>
12415 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12416 * infrun.c (resume_1): Likewise.
12417 (handle_inferior_event): Remove stale comment.
12418 * linux-nat.c (linux_nat_target::resume): Update comments.
12419 (save_stop_reason): Likewise.
12420 (linux_nat_filter_event): Likewise.
12421 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12423 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12425 * elfread.c (record_minimal_symbol): Set section index to 0 for
12426 non-allocatable sections.
12429 2020-01-13 Ali Tamur <tamur@google.com>
12431 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12432 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12433 to gdb::optional. Update comments.
12434 (dwo_file): Update comments.
12435 (read_attribute): Update API to take an additional out parameter,
12436 need_reprocess. This is used to mark attributes that need other
12437 attributes (e.g. str_offsets_base) for correct computation which may not
12438 have been read yet.
12439 (read_attribute_reprocess): New function declaration.
12440 (read_addr_index): Likewise.
12441 (read_dwo_str_index): Likewise.
12442 (read_stub_str_index): Likewise.
12443 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12444 (lookup_addr_base): New function definition.
12445 (lookup_ranges_base): Likewise.
12446 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12447 lookup_ranges_base.
12448 (init_cutu_and_read_dies): Update comments.
12449 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12450 unit. This is used to inherit parent's str_offsets_base and addr_base.
12452 (init_cutu_and_read_dies_simple): Reflect API changes.
12453 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12454 (create_cus_hash_table): Change API to take parent compile unit.
12455 Reflect API changes.
12456 (open_and_init_dwo_file): Reflect API changes.
12457 (dwarf2_get_pc_bounds): Update comments.
12458 (dwarf2_record_block_ranges): Likewise.
12459 (read_full_die_1): Change implementation to reprocess attributes that
12460 need str_offsets_base and addr_base.
12461 (partial_die_info::read): Likewise.
12462 (read_attribute_reprocess): New function definition.
12463 (read_attribute_value): Change API to take an additional out parameter,
12464 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12465 when a non-dwo compile unit has index based attributes.
12466 (read_attribute): Reflect API changes.
12467 (read_addr_index_1): Reflect API changes. Update comments.
12468 (dwarf2_read_addr_index_data): Reflect API changes.
12469 (dwarf2_read_addr_index): Likewise.
12470 (read_str_index): Change API and implementation. This becomes a helper
12471 to be used by the new string index related methods. Update error
12472 message and comments.
12473 (read_dwo_str_index): New function definition.
12474 (read_stub_str_index): Likewise.
12475 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12476 * symfile.h (dwarf2_debug_sections): Likewise.
12477 * xcoffread.c (dwarf2_debug_sections): Likewise.
12479 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12481 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12482 core_reg_sect type to gdb_byte *.
12483 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12484 * cris-tdep.c (fetch_core_registers): Likewise.
12485 * corelow.c (core_target::get_core_register_section): Change
12486 type of `contents` to gdb::byte_vector.
12488 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12490 * tui/tui-wingeneral.c (box_win): Position the title in the center
12493 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12495 * corelow.c (core_target::get_core_register_section): Use
12496 std::vector instead of alloca.
12498 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12500 * warning.m4: Add -Wmissing-declarations to build_warnings.
12501 * configure: Re-generate.
12503 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12505 * python/python.c (init__gdb_module): Add declaration.
12507 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12509 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12510 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12511 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12512 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12513 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12514 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12515 * ada-exp.y (_initialize_ada_exp): Add declaration.
12516 * ada-lang.c (_initialize_ada_language): Add declaration.
12517 * ada-tasks.c (_initialize_tasks): Add declaration.
12518 * agent.c (_initialize_agent): Add declaration.
12519 * aix-thread.c (_initialize_aix_thread): Add declaration.
12520 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12521 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12522 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12523 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12524 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12525 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12526 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12527 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12528 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12529 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12530 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12531 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12532 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12533 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12534 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12535 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12536 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12537 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12538 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12539 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12540 * annotate.c (_initialize_annotate): Add declaration.
12541 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12542 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12543 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12544 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12545 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12546 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12547 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12548 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12549 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12550 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12551 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12552 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12553 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12554 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12555 * auto-load.c (_initialize_auto_load): Add declaration.
12556 * auxv.c (_initialize_auxv): Add declaration.
12557 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12558 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12559 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12560 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12561 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12562 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12563 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12564 * breakpoint.c (_initialize_breakpoint): Add declaration.
12565 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12566 * btrace.c (_initialize_btrace): Add declaration.
12567 * charset.c (_initialize_charset): Add declaration.
12568 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12569 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12570 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12571 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12572 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12573 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12574 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12575 * coffread.c (_initialize_coffread): Add declaration.
12576 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12577 * compile/compile.c (_initialize_compile): Add declaration.
12578 * complaints.c (_initialize_complaints): Add declaration.
12579 * completer.c (_initialize_completer): Add declaration.
12580 * copying.c (_initialize_copying): Add declaration.
12581 * corefile.c (_initialize_core): Add declaration.
12582 * corelow.c (_initialize_corelow): Add declaration.
12583 * cp-abi.c (_initialize_cp_abi): Add declaration.
12584 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12585 * cp-support.c (_initialize_cp_support): Add declaration.
12586 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12587 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12588 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12589 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12590 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12591 * ctfread.c (_initialize_ctfread): Add declaration.
12592 * d-lang.c (_initialize_d_language): Add declaration.
12593 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12594 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12595 * dbxread.c (_initialize_dbxread): Add declaration.
12596 * dcache.c (_initialize_dcache): Add declaration.
12597 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12598 * disasm.c (_initialize_disasm): Add declaration.
12599 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12600 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12601 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12602 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12603 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12604 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12605 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12606 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12607 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12608 * elfread.c (_initialize_elfread): Add declaration.
12609 * exec.c (_initialize_exec): Add declaration.
12610 * extension.c (_initialize_extension): Add declaration.
12611 * f-lang.c (_initialize_f_language): Add declaration.
12612 * f-valprint.c (_initialize_f_valprint): Add declaration.
12613 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12614 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12615 * filesystem.c (_initialize_filesystem): Add declaration.
12616 * findcmd.c (_initialize_mem_search): Add declaration.
12617 * findvar.c (_initialize_findvar): Add declaration.
12618 * fork-child.c (_initialize_fork_child): Add declaration.
12619 * frame-base.c (_initialize_frame_base): Add declaration.
12620 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12621 * frame.c (_initialize_frame): Add declaration.
12622 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12623 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12624 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12625 * gcore.c (_initialize_gcore): Add declaration.
12626 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12627 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12628 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12629 * gdbarch.c (_initialize_gdbarch): Add declaration.
12630 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12631 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12632 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12633 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12634 * go-lang.c (_initialize_go_language): Add declaration.
12635 * go32-nat.c (_initialize_go32_nat): Add declaration.
12636 * guile/guile.c (_initialize_guile): Add declaration.
12637 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12638 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12639 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12640 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12641 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12642 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12643 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12644 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12645 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12646 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12647 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12648 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12649 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12650 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12651 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12652 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12653 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12654 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12655 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12656 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12657 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12658 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12659 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12660 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12661 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12662 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12663 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12664 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12665 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12666 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12667 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12668 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12669 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12670 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12671 * infcall.c (_initialize_infcall): Add declaration.
12672 * infcmd.c (_initialize_infcmd): Add declaration.
12673 * inflow.c (_initialize_inflow): Add declaration.
12674 * infrun.c (_initialize_infrun): Add declaration.
12675 * interps.c (_initialize_interpreter): Add declaration.
12676 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12677 * jit.c (_initialize_jit): Add declaration.
12678 * language.c (_initialize_language): Add declaration.
12679 * linux-fork.c (_initialize_linux_fork): Add declaration.
12680 * linux-nat.c (_initialize_linux_nat): Add declaration.
12681 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12682 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12683 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12684 * m2-lang.c (_initialize_m2_language): Add declaration.
12685 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12686 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12687 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12688 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12689 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12690 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12691 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12692 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12693 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12694 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12695 * machoread.c (_initialize_machoread): Add declaration.
12696 * macrocmd.c (_initialize_macrocmd): Add declaration.
12697 * macroscope.c (_initialize_macroscope): Add declaration.
12698 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12699 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12700 * maint.c (_initialize_maint_cmds): Add declaration.
12701 * mdebugread.c (_initialize_mdebugread): Add declaration.
12702 * memattr.c (_initialize_mem): Add declaration.
12703 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12704 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12705 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12706 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12707 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12708 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12709 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12710 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12711 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12712 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12713 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12714 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12715 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12716 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12717 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12718 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12719 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12720 * mipsread.c (_initialize_mipsread): Add declaration.
12721 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12722 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12723 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12724 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12725 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12726 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12727 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12728 * nto-procfs.c (_initialize_procfs): Add declaration.
12729 * objc-lang.c (_initialize_objc_language): Add declaration.
12730 * observable.c (_initialize_observer): Add declaration.
12731 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12732 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12733 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12734 * osabi.c (_initialize_gdb_osabi): Add declaration.
12735 * osdata.c (_initialize_osdata): Add declaration.
12736 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12737 * parse.c (_initialize_parse): Add declaration.
12738 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12739 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12740 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12741 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12742 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12743 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12744 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12745 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12746 * printcmd.c (_initialize_printcmd): Add declaration.
12747 * probe.c (_initialize_probe): Add declaration.
12748 * proc-api.c (_initialize_proc_api): Add declaration.
12749 * proc-events.c (_initialize_proc_events): Add declaration.
12750 * proc-service.c (_initialize_proc_service): Add declaration.
12751 * procfs.c (_initialize_procfs): Add declaration.
12752 * producer.c (_initialize_producer): Add declaration.
12753 * psymtab.c (_initialize_psymtab): Add declaration.
12754 * python/python.c (_initialize_python): Add declaration.
12755 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12756 * record-btrace.c (_initialize_record_btrace): Add declaration.
12757 * record-full.c (_initialize_record_full): Add declaration.
12758 * record.c (_initialize_record): Add declaration.
12759 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12760 * regcache.c (_initialize_regcache): Add declaration.
12761 * reggroups.c (_initialize_reggroup): Add declaration.
12762 * remote-notif.c (_initialize_notif): Add declaration.
12763 * remote-sim.c (_initialize_remote_sim): Add declaration.
12764 * remote.c (_initialize_remote): Add declaration.
12765 * reverse.c (_initialize_reverse): Add declaration.
12766 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12767 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12768 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12769 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12770 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12771 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12772 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12773 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12775 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12776 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12777 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12778 * rust-exp.y (_initialize_rust_exp): Add declaration.
12779 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12780 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12781 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12782 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12783 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12784 * score-tdep.c (_initialize_score_tdep): Add declaration.
12785 * ser-go32.c (_initialize_ser_dos): Add declaration.
12786 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12787 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12788 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12789 * ser-uds.c (_initialize_ser_socket): Add declaration.
12790 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12791 * serial.c (_initialize_serial): Add declaration.
12792 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12793 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12794 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12795 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12796 * skip.c (_initialize_step_skip): Add declaration.
12797 * sol-thread.c (_initialize_sol_thread): Add declaration.
12798 * solib-aix.c (_initialize_solib_aix): Add declaration.
12799 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12800 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12801 * solib-frv.c (_initialize_frv_solib): Add declaration.
12802 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12803 * solib-target.c (_initialize_solib_target): Add declaration.
12804 * solib.c (_initialize_solib): Add declaration.
12805 * source-cache.c (_initialize_source_cache): Add declaration.
12806 * source.c (_initialize_source): Add declaration.
12807 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12808 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12809 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12810 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12811 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12812 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12813 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12814 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12815 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12816 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12817 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12818 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12819 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12820 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12821 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12822 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12823 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12824 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12825 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12826 * stabsread.c (_initialize_stabsread): Add declaration.
12827 * stack.c (_initialize_stack): Add declaration.
12828 * stap-probe.c (_initialize_stap_probe): Add declaration.
12829 * std-regs.c (_initialize_frame_reg): Add declaration.
12830 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12831 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12832 * symfile.c (_initialize_symfile): Add declaration.
12833 * symmisc.c (_initialize_symmisc): Add declaration.
12834 * symtab.c (_initialize_symtab): Add declaration.
12835 * target.c (_initialize_target): Add declaration.
12836 * target-connection.c (_initialize_target_connection): Add
12838 * target-dcache.c (_initialize_target_dcache): Add declaration.
12839 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12840 * thread.c (_initialize_thread): Add declaration.
12841 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12842 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12843 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12844 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12845 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12846 * tracectf.c (_initialize_ctf): Add declaration.
12847 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12848 * tracefile.c (_initialize_tracefile): Add declaration.
12849 * tracepoint.c (_initialize_tracepoint): Add declaration.
12850 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12851 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12852 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12853 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12854 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12855 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12856 * tui/tui.c (_initialize_tui): Add declaration.
12857 * typeprint.c (_initialize_typeprint): Add declaration.
12858 * ui-style.c (_initialize_ui_style): Add declaration.
12859 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12860 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12861 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12862 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12863 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12864 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12865 * unittests/filtered_iterator-selftests.c
12866 (_initialize_filtered_iterator_selftests): Add declaration.
12867 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12868 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12869 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12870 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12871 * unittests/main-thread-selftests.c
12872 (_initialize_main_thread_selftests): Add declaration.
12873 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12874 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12875 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12876 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12877 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12878 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12879 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12880 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12881 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12882 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12883 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12884 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12885 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12886 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12887 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12889 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12890 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12891 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12892 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12893 * user-regs.c (_initialize_user_regs): Add declaration.
12894 * utils.c (_initialize_utils): Add declaration.
12895 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12896 * valops.c (_initialize_valops): Add declaration.
12897 * valprint.c (_initialize_valprint): Add declaration.
12898 * value.c (_initialize_values): Add declaration.
12899 * varobj.c (_initialize_varobj): Add declaration.
12900 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12901 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12902 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12903 * windows-nat.c (_initialize_windows_nat): Add declaration.
12904 (_initialize_check_for_gdb_ini): Add declaration.
12905 (_initialize_loadable): Add declaration.
12906 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12907 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12908 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12909 * xcoffread.c (_initialize_xcoffread): Add declaration.
12910 * xml-support.c (_initialize_xml_support): Add declaration.
12911 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12912 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12913 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12914 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12916 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12918 * regformats/regdat.sh: Generate declaration for init function.
12920 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12922 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12924 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12925 close_one_inferior>: New methods.
12926 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12927 pass down target to find_inferior_pid.
12928 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12929 Pass down target to find_inferior_ptid.
12930 (gdbsim_target::create_inferior): Pass down target to
12932 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12933 target down to find_inferior_ptid and switch_to_thread.
12934 (gdbsim_target::close): Update to call close_one_inferior.
12935 (struct resume_data): Remove.
12936 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12937 directly, rather than through a void pointer.
12938 (gdbsim_target::resume): Update to call resume_one_inferior.
12940 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12942 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12944 2020-01-12 Pedro Alves <palves@redhat.com>
12946 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12947 directly for the current inferior instead of
12948 discard_all_inferiors.
12949 (discard_all_inferiors): Delete.
12951 2020-01-11 Tom Tromey <tom@tromey.com>
12953 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12954 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12955 deprecated_safe_get_selected_frame.
12957 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12959 * inferior.c (print_inferior): Switch inferior before printing it.
12961 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12962 Pedro Alves <palves@redhat.com>
12964 * progspace-and-thread.c (switch_to_program_space_and_thread):
12965 Assert there's an inferior for PSPACE. Use
12966 switch_to_inferior_no_thread to switch the inferior too.
12967 * progspace.c (program_space::~program_space): Call
12968 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12969 (program_space::free_all_objfiles): Don't call clear_symtab_users
12971 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12973 2020-01-10 Pedro Alves <palves@redhat.com>
12975 * NEWS: Mention multi-target debugging, "info connections", and
12976 "add-inferior -no-connection".
12978 2020-01-10 Pedro Alves <palves@redhat.com>
12980 * infrun.c: Include "target-connection.h".
12981 (check_multi_target_resumption): New.
12982 (proceed): Call it.
12983 * target-connection.c (make_target_connection_string): Make
12985 * target-connection.h (make_target_connection_string): Declare.
12987 2020-01-10 Pedro Alves <palves@redhat.com>
12989 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12990 * inferior.c (uiout_field_connection): New function.
12991 (print_inferior): Add new "connection-id" column.
12992 (add_inferior_command): Show connection number/string of added
12994 * process-stratum-target.h
12995 (process_stratum_target::connection_string): New virtual method.
12996 (process_stratum_target::connection_number): New field.
12997 * remote.c (remote_target::connection_string): New override.
12998 * target-connection.c: New file.
12999 * target-connection.h: New file.
13000 * target.c (decref_target): Remove process_stratum targets from
13001 the connection list.
13002 (target_stack::push): Add process_stratum targets to the
13005 2020-01-10 Pedro Alves <palves@redhat.com>
13008 2016-04-12 Pedro Alves <palves@redhat.com>
13009 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13010 Remove references to name.
13011 * serial.h (struct serial) <name>: Delete.
13013 2020-01-10 Pedro Alves <palves@redhat.com>
13015 * gdbarch-selftests.c (register_to_value_test): Remove "target
13016 already pushed" check.
13018 2020-01-10 Pedro Alves <palves@redhat.com>
13019 John Baldwin <jhb@FreeBSD.org>
13021 * aarch64-linux-nat.c
13022 (aarch64_linux_nat_target::thread_architecture): Adjust.
13023 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13024 (task_command_1): Likewise.
13025 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13026 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13027 (aix_thread_target::store_registers)
13028 (aix_thread_target::thread_alive): Adjust.
13029 * amd64-fbsd-tdep.c: Include "inferior.h".
13030 (amd64fbsd_get_thread_local_address): Pass down target.
13031 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13032 thread's gdbarch instead of target_gdbarch.
13033 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13034 get_last_target_status.
13035 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13036 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13038 (update_inserted_breakpoint_locations): Skip if inferiors with no
13040 (update_global_location_list): When handling moribund locations,
13041 find representative inferior for location's pspace, and use thread
13042 count of its process_stratum target.
13043 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13044 * bsd-uthread.c (bsd_uthread_target::wait): Use
13045 as_process_stratum_target and adjust thread_change_ptid and
13047 (bsd_uthread_target::update_thread_list): Use
13048 as_process_stratum_target and adjust find_thread_ptid,
13049 thread_change_ptid and add_thread calls.
13050 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13051 find_thread_ptid call.
13052 * corelow.c (add_to_thread_list): Adjust add_thread call.
13053 (core_target_open): Adjust add_thread_silent and thread_count
13055 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13056 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13057 * event-top.c (async_disconnect): Pop targets from all inferiors.
13058 * exec.c (add_target_sections): Push exec target on all inferiors
13059 sharing the program space.
13060 (remove_target_sections): Remove the exec target from all
13061 inferiors sharing the program space.
13062 (exec_on_vfork): New.
13063 * exec.h (exec_on_vfork): Declare.
13064 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13066 (fbsd_nat_target::update_thread_list): Adjust.
13067 (fbsd_nat_target::resume): Adjust.
13068 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13070 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13071 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13072 get_thread_arch_regcache call.
13073 * fork-child.c (gdb_startup_inferior): Pass target down to
13074 startup_inferior and set_executing.
13075 * gdbthread.h (struct process_stratum_target): Forward declare.
13076 (add_thread, add_thread_silent, add_thread_with_info)
13077 (in_thread_list): Add process_stratum_target parameter.
13078 (find_thread_ptid(inferior*, ptid_t)): New overload.
13079 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13081 (all_threads()): Delete overload.
13082 (all_threads, all_non_exited_threads): Add process_stratum_target
13084 (all_threads_safe): Use brace initialization.
13085 (thread_count): Add process_stratum_target parameter.
13086 (set_resumed, set_running, set_stop_requested, set_executing)
13087 (threads_are_executing, finish_thread_state): Add
13088 process_stratum_target parameter.
13089 (switch_to_thread): Use is_current_thread.
13090 * i386-fbsd-tdep.c: Include "inferior.h".
13091 (i386fbsd_get_thread_local_address): Pass down target.
13092 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13093 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13094 have_inferiors check.
13095 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13096 (inf_ptrace_target::attach): Adjust.
13097 * infcall.c (run_inferior_call): Adjust.
13098 * infcmd.c (run_command_1): Pass target to
13099 scoped_finish_thread_state.
13100 (proceed_thread_callback): Skip inferiors with no execution.
13101 (continue_command): Rename 'all_threads' local to avoid hiding
13102 'all_threads' function. Adjust get_last_target_status call.
13103 (prepare_one_step): Adjust set_running call.
13104 (signal_command): Use user_visible_resume_target. Compare thread
13105 pointers instead of inferior_ptid.
13106 (info_program_command): Adjust to pass down target.
13107 (attach_command): Mark target's 'thread_executing' flag.
13108 (stop_current_target_threads_ns): New, factored out from ...
13109 (interrupt_target_1): ... this. Switch inferior before making
13112 (struct all_inferiors_iterator, struct all_inferiors_range)
13113 (struct all_inferiors_safe_range)
13114 (struct all_non_exited_inferiors_range): Filter on
13115 process_stratum_target too. Remove explicit.
13116 * inferior.c (inferior::inferior): Push dummy target on target
13118 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13119 Add process_stratum_target parameter, and pass it down.
13120 (have_live_inferiors): Adjust.
13121 (switch_to_inferior_and_push_target): New.
13122 (add_inferior_command, clone_inferior_command): Handle
13123 "-no-connection" parameter. Use
13124 switch_to_inferior_and_push_target.
13125 (_initialize_inferior): Mention "-no-connection" option in
13126 the help of "add-inferior" and "clone-inferior" commands.
13127 * inferior.h: Include "process-stratum-target.h".
13128 (interrupt_target_1): Use bool.
13129 (struct inferior) <push_target, unpush_target, target_is_pushed,
13130 find_target_beneath, top_target, process_target, target_at,
13132 (discard_all_inferiors): Delete.
13133 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13134 (all_inferiors, all_non_exited_inferiors): Add
13135 process_stratum_target parameter.
13136 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13137 (target_last_proc_target): New global.
13138 (follow_fork_inferior): Push target on new inferior. Pass target
13139 to add_thread_silent. Call exec_on_vfork. Handle target's
13141 (follow_fork): Adjust get_last_target_status call. Also consider
13143 (follow_exec): Push target on new inferior.
13144 (struct execution_control_state) <target>: New field.
13145 (user_visible_resume_target): New.
13146 (do_target_resume): Call target_async.
13147 (resume_1): Set target's threads_executing flag. Consider resume
13149 (commit_resume_all_targets): New.
13150 (proceed): Also consider resume target. Skip threads of inferiors
13151 with no execution. Commit resumtion in all targets.
13152 (start_remote): Pass current inferior to wait_for_inferior.
13153 (infrun_thread_stop_requested): Consider target as well. Pass
13154 thread_info pointer to clear_inline_frame_state instead of ptid.
13155 (infrun_thread_thread_exit): Consider target as well.
13156 (random_pending_event_thread): New inferior parameter. Use it.
13157 (do_target_wait): Rename to ...
13158 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13160 (threads_are_resumed_pending_p, do_target_wait): New.
13161 (prepare_for_detach): Adjust calls.
13162 (wait_for_inferior): New inferior parameter. Handle it. Use
13163 do_target_wait_1 instead of do_target_wait.
13164 (fetch_inferior_event): Adjust. Switch to representative
13165 inferior. Pass target down.
13166 (set_last_target_status): Add process_stratum_target parameter.
13167 Save target in global.
13168 (get_last_target_status): Add process_stratum_target parameter and
13170 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13171 (context_switch): Check inferior_ptid == null_ptid before calling
13173 (get_inferior_stop_soon): Pass down target.
13174 (wait_one): Rename to ...
13175 (poll_one_curr_target): ... this.
13176 (struct wait_one_event): New.
13178 (stop_all_threads): Adjust.
13179 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13181 (switch_back_to_stepped_thread): Also consider target.
13182 (print_stop_event): Update.
13183 (normal_stop): Update. Also consider the resume target.
13184 * infrun.h (wait_for_inferior): Remove declaration.
13185 (user_visible_resume_target): New declaration.
13186 (get_last_target_status, set_last_target_status): New
13187 process_stratum_target parameter.
13188 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13189 process_stratum_target parameter, and use it.
13190 (clear_inline_frame_state (thread_info*)): New.
13191 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13192 process_stratum_target parameter.
13193 (clear_inline_frame_state (thread_info*)): Declare.
13194 * linux-fork.c (delete_checkpoint_command): Pass target down to
13196 (checkpoint_command): Adjust.
13197 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13198 instead of just tweaking inferior_ptid.
13199 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13200 (exit_lwp): Pass target down to find_thread_ptid.
13201 (attach_proc_task_lwp_callback): Pass target down to
13202 add_thread/set_running/set_executing.
13203 (linux_nat_target::attach): Pass target down to
13204 thread_change_ptid.
13205 (get_detach_signal): Pass target down to find_thread_ptid.
13206 Consider last target status's target.
13207 (linux_resume_one_lwp_throw, resume_lwp)
13208 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13209 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13210 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13211 (linux_nat_target::async_wait_fd): New.
13212 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13214 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13215 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13216 * linux-thread-db.c (struct thread_db_info::process_target): New
13218 (add_thread_db_info): Save target.
13219 (get_thread_db_info): New process_stratum_target parameter. Also
13221 (delete_thread_db_info): New process_stratum_target parameter.
13223 (thread_from_lwp): Adjust to pass down target.
13224 (thread_db_notice_clone): Pass down target.
13225 (check_thread_db_callback): Pass down target.
13226 (try_thread_db_load_1): Always push the thread_db target.
13227 (try_thread_db_load, record_thread): Pass target down.
13228 (thread_db_target::detach): Pass target down. Always unpush the
13230 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13231 target down. Always unpush the thread_db target.
13232 (find_new_threads_callback, thread_db_find_new_threads_2)
13233 (thread_db_target::update_thread_list): Pass target down.
13234 (thread_db_target::pid_to_str): Pass current inferior down.
13235 (thread_db_target::get_thread_local_address): Pass target down.
13236 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13238 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13239 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13240 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13241 (procfs_init_inferior): Rename to ...
13242 (procfs_target::procfs_init_inferior): ... this and adjust.
13243 (procfs_target::create_inferior, procfs_notice_thread)
13244 (procfs_do_thread_registers): Adjust.
13245 * ppc-fbsd-tdep.c: Include "inferior.h".
13246 (ppcfbsd_get_thread_local_address): Pass down target.
13247 * proc-service.c (ps_xfer_memory): Switch current inferior and
13248 program space as well.
13249 (get_ps_regcache): Pass target down.
13250 * process-stratum-target.c
13251 (process_stratum_target::thread_address_space)
13252 (process_stratum_target::thread_architecture): Pass target down.
13253 * process-stratum-target.h
13254 (process_stratum_target::threads_executing): New field.
13255 (as_process_stratum_target): New.
13256 * ravenscar-thread.c
13257 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13258 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13260 * record-btrace.c (record_btrace_target::info_record): Adjust.
13261 (record_btrace_target::record_method)
13262 (record_btrace_target::record_is_replaying)
13263 (record_btrace_target::fetch_registers)
13264 (get_thread_current_frame_id, record_btrace_target::resume)
13265 (record_btrace_target::wait, record_btrace_target::stop): Pass
13267 * record-full.c (record_full_wait_1): Switch to event thread.
13269 * regcache.c (regcache::regcache)
13270 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13271 process_stratum_target parameter and handle it.
13272 (current_thread_target): New global.
13273 (get_thread_regcache): Add process_stratum_target parameter and
13274 handle it. Switch inferior before calling target method.
13275 (get_thread_regcache): Pass target down.
13276 (get_thread_regcache_for_ptid): Pass target down.
13277 (registers_changed_ptid): Add process_stratum_target parameter and
13279 (registers_changed_thread, registers_changed): Pass target down.
13280 (test_get_thread_arch_aspace_regcache): New.
13281 (current_regcache_test): Define a couple local test_target_ops
13282 instances and use them for testing.
13283 (readwrite_regcache): Pass process_stratum_target parameter.
13284 (cooked_read_test, cooked_write_test): Pass mock_target down.
13285 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13286 (get_thread_arch_aspace_regcache): Add process_stratum_target
13288 (regcache::target): New method.
13289 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13290 (regcache::registers_changed_ptid): Add process_stratum_target
13292 (regcache::m_target): New field.
13293 (registers_changed_ptid): Add process_stratum_target parameter.
13294 * remote.c (remote_state::supports_vCont_probed): New field.
13295 (remote_target::async_wait_fd): New method.
13296 (remote_unpush_and_throw): Add remote_target parameter.
13297 (get_current_remote_target): Adjust.
13298 (remote_target::remote_add_inferior): Push target.
13299 (remote_target::remote_add_thread)
13300 (remote_target::remote_notice_new_inferior)
13301 (get_remote_thread_info): Pass target down.
13302 (remote_target::update_thread_list): Skip threads of inferiors
13303 bound to other targets. (remote_target::close): Don't discard
13304 inferiors. (remote_target::add_current_inferior_and_thread)
13305 (remote_target::process_initial_stop_replies)
13306 (remote_target::start_remote)
13307 (remote_target::remote_serial_quit_handler): Pass down target.
13308 (remote_target::remote_unpush_target): New remote_target
13309 parameter. Unpush the target from all inferiors.
13310 (remote_target::remote_unpush_and_throw): New remote_target
13311 parameter. Pass it down.
13312 (remote_target::open_1): Check whether the current inferior has
13313 execution instead of checking whether any inferior is live. Pass
13315 (remote_target::remote_detach_1): Pass down target. Use
13316 remote_unpush_target.
13317 (extended_remote_target::attach): Pass down target.
13318 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13319 (remote_target::append_resumption): Pass down target.
13320 (remote_target::append_pending_thread_resumptions)
13321 (remote_target::remote_resume_with_hc, remote_target::resume)
13322 (remote_target::commit_resume): Pass down target.
13323 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13324 (remote_target::interrupt_query)
13325 (remote_target::remove_new_fork_children)
13326 (remote_target::check_pending_events_prevent_wildcard_vcont)
13327 (remote_target::remote_parse_stop_reply)
13328 (remote_target::process_stop_reply): Pass down target.
13329 (first_remote_resumed_thread): New remote_target parameter. Pass
13331 (remote_target::wait_as): Pass down target.
13332 (unpush_and_perror): New remote_target parameter. Pass it down.
13333 (remote_target::readchar, remote_target::remote_serial_write)
13334 (remote_target::getpkt_or_notif_sane_1)
13335 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13337 (remote_target::mourn_inferior): Pass down target. Use
13338 remote_unpush_target.
13339 (remote_target::core_of_thread)
13340 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13341 (remote_target::pid_to_exec_file)
13342 (remote_target::thread_handle_to_thread_info): Pass down target.
13343 (remote_target::async_wait_fd): New.
13344 * riscv-fbsd-tdep.c: Include "inferior.h".
13345 (riscv_fbsd_get_thread_local_address): Pass down target.
13346 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13347 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13348 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13350 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13351 * solib-svr4.c (enable_break): Pass down target.
13352 * spu-multiarch.c (parse_spufs_run): Pass down target.
13353 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13354 * target-delegates.c: Regenerate.
13355 * target.c (g_target_stack): Delete.
13356 (current_top_target): Return the current inferior's top target.
13357 (target_has_execution_1): Refer to the passed-in inferior's top
13359 (target_supports_terminal_ours): Check whether the initial
13360 inferior was already created.
13361 (decref_target): New.
13362 (target_stack::push): Incref/decref the target.
13363 (push_target, push_target, unpush_target): Adjust.
13364 (target_stack::unpush): Defref target.
13365 (target_is_pushed): Return bool. Adjust to refer to the current
13366 inferior's target stack.
13367 (dispose_inferior): Delete, and inline parts ...
13368 (target_preopen): ... here. Only dispose of the current inferior.
13369 (target_detach): Hold strong target reference while detaching.
13371 (target_thread_name): Add assertion.
13372 (target_resume): Pass down target.
13373 (target_ops::beneath, find_target_at): Adjust to refer to the
13374 current inferior's target stack.
13375 (get_dummy_target): New.
13376 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13377 has a thread running.
13378 (initialize_targets): Rename to ...
13379 (_initialize_target): ... this.
13380 * target.h: Include "gdbsupport/refcounted-object.h".
13381 (struct target_ops): Inherit refcounted_object.
13382 (target_ops::shortname, target_ops::longname): Make const.
13383 (target_ops::async_wait_fd): New method.
13384 (decref_target): Declare.
13385 (struct target_ops_ref_policy): New.
13386 (target_ops_ref): New typedef.
13387 (get_dummy_target): Declare function.
13388 (target_is_pushed): Return bool.
13389 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13390 (all_matching_threads_iterator::all_matching_threads_iterator):
13391 Handle filter target.
13392 * thread-iter.h (struct all_matching_threads_iterator, struct
13393 all_matching_threads_range, class all_non_exited_threads_range):
13394 Filter by target too. Remove explicit.
13395 * thread.c (threads_executing): Delete.
13396 (inferior_thread): Pass down current inferior.
13397 (clear_thread_inferior_resources): Pass down thread pointer
13399 (add_thread_silent, add_thread_with_info, add_thread): Add
13400 process_stratum_target parameter. Use it for thread and inferior
13402 (is_current_thread): New.
13403 (thread_info::deletable): Use it.
13404 (find_thread_ptid, thread_count, in_thread_list)
13405 (thread_change_ptid, set_resumed, set_running): New
13406 process_stratum_target parameter. Pass it down.
13407 (set_executing): New process_stratum_target parameter. Pass it
13408 down. Adjust reference to 'threads_executing'.
13409 (threads_are_executing): New process_stratum_target parameter.
13410 Adjust reference to 'threads_executing'.
13411 (set_stop_requested, finish_thread_state): New
13412 process_stratum_target parameter. Pass it down.
13413 (switch_to_thread): Also match inferior.
13414 (switch_to_thread): New process_stratum_target parameter. Pass it
13416 (update_threads_executing): Reimplement.
13417 * top.c (quit_force): Pop targets from all inferior.
13418 (gdb_init): Don't call initialize_targets.
13419 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13421 (windows_add_thread, windows_delete_thread): Adjust.
13422 (get_windows_debug_event): Rename to ...
13423 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13424 * tracefile-tfile.c (tfile_target_open): Pass down target.
13425 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13427 (switch_to_thread): Add process_stratum_target parameter.
13428 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13430 (mi_on_resume): Pass target down.
13431 * nat/fork-inferior.c (startup_inferior): Add
13432 process_stratum_target parameter. Pass it down.
13433 * nat/fork-inferior.h (startup_inferior): Add
13434 process_stratum_target parameter.
13435 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13437 2020-01-10 Pedro Alves <palves@redhat.com>
13439 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13440 directly. Instead find the first thread in the thread list and
13441 use switch_to_thread.
13443 2020-01-10 Pedro Alves <palves@redhat.com>
13445 * remote.c (remote_target::remote_add_inferior): Don't bind a
13446 process to the current inferior if the current inferior is already
13447 bound to a process.
13449 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13450 Pedro Alves <palves@redhat.com>
13452 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13453 If no process is specified, return null_ptid instead of
13455 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13456 TARGET_WAITKIND_SIGNALLED with no pid.
13458 2020-01-10 Pedro Alves <palves@redhat.com>
13460 * remote.c (first_remote_resumed_thread): New.
13461 (remote_target::wait_as): Use it as default event_ptid instead of
13464 2020-01-10 Pedro Alves <palves@redhat.com>
13466 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13468 2020-01-10 Pedro Alves <palves@redhat.com>
13470 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13473 2020-01-10 Pedro Alves <palves@redhat.com>
13475 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13476 ptid to get_last_target_status.
13477 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13478 ptid to get_last_target_status.
13479 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13480 get_last_target_status.
13481 (info_program_command): Don't pass a target_waitstatus to
13482 get_last_target_status.
13483 * infrun.c (init_wait_for_inferior): Use
13484 nullify_last_target_wait_ptid.
13485 (get_last_target_status): Handle nullptr arguments.
13486 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13487 (print_stop_event): Don't pass a ptid to get_last_target_status.
13488 (normal_stop): Don't pass a ptid to get_last_target_status.
13489 * infrun.h (get_last_target_status, set_last_target_status): Move
13490 comments here and update.
13491 (nullify_last_target_wait_ptid): Declare.
13492 * linux-fork.c (fork_load_infrun_state): Remove local extern
13493 declaration of nullify_last_target_wait_ptid.
13494 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13495 to get_last_target_status.
13497 2020-01-10 Pedro Alves <palves@redhat.com>
13499 * gdbthread.h (scoped_restore_current_thread)
13500 <dont_restore, restore, m_dont_restore>: Declare.
13501 * thread.c (thread_alive): Add assertion. Return bool.
13502 (switch_to_thread_if_alive): New.
13503 (prune_threads): Switch inferior/thread.
13504 (print_thread_info_1): Switch thread before calling target methods.
13505 (scoped_restore_current_thread::restore): New, factored out from
13507 (scoped_restore_current_thread::~scoped_restore_current_thread):
13509 (scoped_restore_current_thread::scoped_restore_current_thread):
13511 (thread_apply_all_command, thread_select): Use
13512 switch_to_thread_if_alive.
13513 * infrun.c (proceed, restart_threads, handle_signal_stop)
13514 (switch_back_to_stepped_thread): Switch current thread before
13515 calling target methods.
13517 2020-01-10 Pedro Alves <palves@redhat.com>
13519 * inferior.c (switch_to_inferior_no_thread): New function,
13520 factored out from ...
13521 (inferior_command): ... here.
13522 * inferior.h (switch_to_inferior_no_thread): Declare.
13523 * mi/mi-main.c (run_one_inferior): Use
13524 switch_to_inferior_no_thread.
13526 2020-01-10 Pedro Alves <palves@redhat.com>
13528 * infcmd.c (kill_command): Remove dead code.
13530 2020-01-10 Pedro Alves <palves@redhat.com>
13532 * remote.c (remote_target::mourn_inferior): No longer check
13533 whether the target is running.
13535 2020-01-10 Pedro Alves <palves@redhat.com>
13537 * corelow.c (core_target::has_execution): Change parameter type to
13539 * inferior.c (number_of_live_inferiors): Use
13540 inferior::has_execution instead of target_has_execution_1.
13541 * inferior.h (inferior::has_execution): New.
13542 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13543 inferior::has_execution instead of target_has_execution_1.
13544 * process-stratum-target.c
13545 (process_stratum_target::has_execution): Change parameter type to
13546 inferior pointer. Check the inferior's PID instead of
13548 * process-stratum-target.h
13549 (process_stratum_target::has_execution): Change parameter type to
13551 * record-full.c (record_full_core_target::has_execution): Change
13552 parameter type to inferior pointer.
13553 * target.c (target_has_execution_1): Change parameter type to
13555 (target_has_execution_current): Adjust.
13556 * target.h (target_ops::has_execution): Change parameter type to
13558 (target_has_execution_1): Change parameter type to inferior
13559 pointer. Change return type to bool.
13560 * tracefile.h (tracefile_target::has_execution): Change parameter
13561 type to inferior pointer.
13563 2020-01-10 Pedro Alves <palves@redhat.com>
13565 * exceptions.c (print_flush): Remove current_top_target() check.
13567 2020-01-10 Pedro Alves <palves@redhat.com>
13569 * remote.c (show_remote_exec_file): Show the current inferior's
13570 exec-file instead of the command variable's value.
13572 2020-01-10 Pedro Alves <palves@redhat.com>
13574 * record-full.c (record_full_resume_ptid): New global.
13575 (record_full_target::resume): Set it.
13576 (record_full_wait_1): Use record_full_resume_ptid instead of
13579 2020-01-10 Pedro Alves <palves@redhat.com>
13581 * gdbthread.h (scoped_restore_current_thread)
13582 <dont_restore, restore, m_dont_restore>: Declare.
13583 * thread.c (thread_alive): Add assertion. Return bool.
13584 (switch_to_thread_if_alive): New.
13585 (prune_threads): Switch inferior/thread.
13586 (print_thread_info_1): Switch thread before calling target methods.
13587 (scoped_restore_current_thread::restore): New, factored out from
13589 (scoped_restore_current_thread::~scoped_restore_current_thread):
13591 (scoped_restore_current_thread::scoped_restore_current_thread):
13593 (thread_apply_all_command, thread_select): Use
13594 switch_to_thread_if_alive.
13596 2020-01-10 George Barrett <bob@bob131.so>
13598 * stap-probe.c (stap_modify_semaphore): Don't check for null
13600 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13601 for null semaphores.
13603 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13605 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13606 all source windows, and maintain horizontal scroll status while
13609 2020-01-09 Tom Tromey <tom@tromey.com>
13612 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13613 update_source_window, not print_source_lines.
13615 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13617 * tui/tui.c (tui_enable): Register tui hooks after calling
13620 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13622 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13624 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13626 * thread.c (print_thread_info_1): Fix indentation.
13628 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13630 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13631 unique_xmalloc_ptr outside the if to always free the demangled name.
13633 2020-01-08 Tom Tromey <tromey@adacore.com>
13635 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13636 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13637 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13638 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13640 (section_offsets): New typedef.
13641 * symtab.c (fixup_section, get_msymbol_address): Update.
13642 * symmisc.c (dump_msymbols): Update.
13643 * symfile.h (relative_addr_info_to_section_offsets)
13644 (symfile_map_offsets_to_segments): Update.
13645 * symfile.c (build_section_addr_info_from_objfile)
13646 (init_objfile_sect_indices): Update.
13647 (struct place_section_arg): Change type of "offsets".
13648 (place_section): Update.
13649 (relative_addr_info_to_section_offsets): Change type of
13650 "section_offsets". Remove "num_sections" parameter.
13651 (default_symfile_offsets, syms_from_objfile_1)
13652 (set_objfile_default_section_offset): Update.
13653 (reread_symbols): No need to preserve section offsets by hand.
13654 (symfile_map_offsets_to_segments): Change type of "offsets".
13655 * stap-probe.c (relocate_address): Update.
13656 * stabsread.h (process_one_symbol): Update.
13657 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13658 (solib_target_relocate_section_addresses): Update.
13659 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13661 * solib-frv.c (frv_relocate_main_executable): Update.
13662 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13663 * solib-aix.c (solib_aix_get_section_offsets): Change return
13665 (solib_aix_solib_create_inferior_hook): Update.
13666 * remote.c (remote_target::get_offsets): Update.
13667 * psymtab.c (find_pc_sect_psymtab): Update.
13668 * psympriv.h (struct partial_symbol) <address, text_low,
13669 text_high>: Update.
13670 * objfiles.h (obj_section_offset): Update.
13671 (struct objfile) <section_offsets>: Change type.
13672 <num_sections>: Remove.
13673 (objfile_relocate): Update.
13674 * objfiles.c (entry_point_address_query): Update
13675 (relocate_one_symbol): Change type of "section_offsets".
13676 (objfile_relocate1, objfile_relocate1): Change type of
13678 (objfile_rebase1): Update.
13679 * mipsread.c (mipscoff_symfile_read): Update.
13680 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13682 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13683 (parse_external, psymtab_to_symtab_1): Update.
13684 * machoread.c (macho_symfile_offsets): Update.
13685 * ia64-tdep.c (ia64_find_unwind_table): Update.
13686 * hppa-tdep.c (read_unwind_info): Update.
13687 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13688 * dwarf2read.c (create_addrmap_from_index)
13689 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13690 (process_psymtab_comp_unit_reader, add_partial_symbol)
13691 (add_partial_subprogram, process_full_comp_unit)
13692 (read_file_scope, read_func_scope, read_lexical_block_scope)
13693 (read_call_site_scope, dwarf2_rnglists_process)
13694 (dwarf2_ranges_process, dwarf2_ranges_read)
13695 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13696 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13698 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13700 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13701 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13702 (process_one_symbol): Change type of "section_offsets".
13703 * ctfread.c (get_objfile_text_range): Update.
13704 * coffread.c (coff_symtab_read, enter_linenos)
13705 (process_coff_symbol): Update.
13706 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13707 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13709 2020-01-08 Tom Tromey <tromey@adacore.com>
13711 * dwarf2read.c (parse_macro_definition): Use std::string.
13712 (parse_macro_definition): Likewise.
13714 2020-01-08 Tom Tromey <tromey@adacore.com>
13716 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13717 (ATTR_ALLOC_CHUNK): Remove.
13719 2020-01-08 Tom Tromey <tromey@adacore.com>
13721 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13723 2020-01-08 Tom Tromey <tromey@adacore.com>
13725 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13726 (dwarf2_compute_name, open_dwo_file): Likewise.
13727 (process_enumeration_scope): Use std::vector.
13728 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13729 (partial_die_info::fixup, dwarf2_start_subfile)
13730 (guess_full_die_structure_name, dwarf2_name): Likewise.
13731 (determine_prefix): Update.
13732 (guess_full_die_structure_name): Make return type const.
13733 (partial_die_full_name): Return unique_xmalloc_ptr.
13734 (DW_FIELD_ALLOC_CHUNK): Remove.
13736 2020-01-07 Tom Tromey <tromey@adacore.com>
13739 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13741 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13743 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13745 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13747 * stack.c (print_frame_info): Move disassemble_next_line code
13748 inside source_print block.
13750 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13752 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13753 gdb/signals.h, as we are now using native signal symbols.
13755 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13757 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13758 overflow by an early check of content vs threshold.
13759 * tui/tui-source.c (tui_source_window::line_is_displayed):
13762 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13764 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13766 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13768 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13769 export table if no section contains it's RVA.
13771 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13773 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13775 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13777 * source.c (print_source_lines_base): Set last_line_listed.
13779 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13781 * tui/tui-disasm.c: Remove trailing spaces.
13783 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13784 Pedro Alves <palves@redhat.com>
13786 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13787 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13788 (windows_gdb_signal_to_target): New function, uses the above
13789 enumeration to convert GDB internal signal codes to equivalent
13791 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13792 * windows-nat.c: Include "gdb_wait.h".
13793 (get_windows_debug_event): Extract the fatal exception from the
13794 exit status and convert to the equivalent Posix signal number.
13795 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13796 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13797 * gdbsupport/gdb_wait.c: New file, implements
13798 windows_status_to_termsig.
13799 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13800 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13802 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13804 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13807 2020-01-05 Luis Machado <luis.machado@linaro.org>
13809 * aarch64-linux-nat.c
13810 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13811 and bfd_mach_aarch64.
13813 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13815 * ui-file.c (stdio_file::can_emit_style_escape)
13816 (tee_file::can_emit_style_escape): Ensure style is used also on
13817 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13819 * main.c (set_gdb_data_directory): Use file style to output the
13820 warning that the given pathname is not a directory.
13821 * top.c (show_history_filename, gdb_safe_append_history)
13822 (show_gdb_datadir): Use file style.
13824 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13826 * solib-target.c (struct lm_info_target):
13827 Change offsets to be a unique_xmalloc_ptr.
13828 (solib_target_relocate_section_addresses): Update.
13830 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13832 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13834 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13836 * MAINTAINERS (Write After Approval): Add myself.
13838 2020-01-02 Luis Machado <luis.machado@linaro.org>
13840 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13841 Cell BE architecture.
13842 * target.h (struct target_ops) <thread_architecture>: Likewise.
13844 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13846 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13848 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13850 * MAINTAINERS (Write After Approval): Add myself.
13852 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13854 * gdbarch.sh: Update copyright year range of generated files.
13856 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13858 Update copyright year range in all GDB files.
13860 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13862 * copyright.py: Convert to Python 3.
13864 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13866 * copyright.py: Adapt after move of gnulib directory from gdb
13867 directory to toplevel directory.
13869 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13871 * copyright.py (main): Exit if run from the wrong directory.
13873 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13875 * top.c (print_gdb_version): Change copyright year to 2020.
13877 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13879 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13881 For older changes see ChangeLog-2019.
13887 version-control: never