1 2020-09-19 Tom Tromey <tom@tromey.com>
3 * elfread.c (elf_locate_sections): Change parameters.
4 (elf_symfile_read): Use foreach.
6 2020-09-19 Tom Tromey <tom@tromey.com>
8 * cli/cli-dump.c (struct callback_data): Remove.
9 (restore_one_section): Rename from restore_section_callback.
11 (restore_binary_file): Change parameters.
12 (restore_command): Use foreach.
14 2020-09-19 Tom Tromey <tom@tromey.com>
16 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
17 (gcore_copy_callback): Likewise.
18 (gcore_memory_sections): Use foreach.
20 2020-09-19 Tom Tromey <tom@tromey.com>
22 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
23 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
25 (generic_elf_osabi_sniffer): Use foreach.
26 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
27 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
29 2020-09-19 Tom Tromey <tom@tromey.com>
31 * dwarf2/read.c (locate_dwz_sections): Change parameters.
32 (dwarf2_get_dwz_file): Use foreach.
33 (dwarf2_locate_dwo_sections): Change parameters.
34 (open_and_init_dwo_file): Use foreach.
35 (dwarf2_locate_common_dwp_sections): Change parameters.
36 (open_and_init_dwp_file): Use foreach.
38 2020-09-19 Tom Tromey <tom@tromey.com>
40 * symfile.h: (find_lowest_section): Don't declare.
41 * symfile.c (find_lowest_section): Now static. Change
43 (struct place_section_arg): Remove.
44 (place_section): Change parameters.
45 (addr_info_make_relative): Use foreach.
46 (symfile_dummy_outputs): Remove.
47 (default_symfile_relocate): Use foreach.
49 2020-09-19 Tom Tromey <tom@tromey.com>
51 * objfiles.c (add_to_objfile_sections): Rename from
52 add_to_objfile_sections_full.
53 (add_to_objfile_sections): Remove.
54 (build_objfile_section_table): Use foreach.
56 2020-09-19 Tom Tromey <tom@tromey.com>
58 * stap-probe.c (get_stap_base_address_1): Remove.
59 (get_stap_base_address): Use foreach.
61 2020-09-19 Tom Tromey <tom@tromey.com>
63 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
65 (gdb_bfd_close_or_warn): Use foreach.
67 2020-09-19 Tom Tromey <tom@tromey.com>
69 * corelow.c (add_to_thread_list): Change parameters.
70 (core_target_open): Use foreach.
72 2020-09-19 Tom Tromey <tom@tromey.com>
74 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
77 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
79 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
82 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
84 * eval.c: Remove 'f-lang.h' include.
85 (value_f90_subarray): Moved to f-lang.c.
86 (eval_call): Renamed to...
87 (evaluate_subexp_do_call): ...this, is no longer static, header
88 comment moved into header file.
89 (evaluate_funcall): Update call to eval_call.
90 (skip_undetermined_arglist): Moved to f-lang.c.
91 (fortran_value_subarray): Likewise.
92 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
93 moved to evaluate_subexp_f.
94 (calc_f77_array_dims): Moved to f-lang.c
95 * expprint.c (print_subexp_funcall): New function.
96 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
97 moved to print_subexp_f, OP_FUNCALL uses new function.
98 (dump_subexp_body_funcall): New function.
99 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
100 moved to dump_subexp_f, OP_FUNCALL uses new function.
101 * expression.h (evaluate_subexp_do_call): Declare.
102 * f-lang.c (value_f90_subarray): Moved from eval.c.
103 (skip_undetermined_arglist): Likewise.
104 (calc_f77_array_dims): Likewise.
105 (fortran_value_subarray): Likewise.
106 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
107 (operator_length_f): Likewise.
108 (print_subexp_f): Likewise.
109 (dump_subexp_body_f): Likewise.
110 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
111 declaration of this operation to here.
112 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
113 support moved to operator_length_f.
114 * parser-defs.h (dump_subexp_body_funcall): Declare.
115 (print_subexp_funcall): Declare.
116 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
117 fortran-operator.def.
119 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
121 * eval.c (fortran_value_subarray): New function, content is taken
123 (evaluate_subexp_standard): ...here, in two places. Now arrays
124 and strings both call the new function.
125 (calc_f77_array_dims): Add header comment, handle strings.
127 2020-09-18 Victor Collod <vcollod@nvidia.com>
130 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
131 (i386_analyze_prologue): Call i386_skip_endbr.
133 2020-09-18 Tom Tromey <tromey@adacore.com>
135 * windows-nat.c (struct windows_nat_target) <wait>: Update.
136 (windows_nat_target::wait): Update.
137 * target/wait.h (enum target_wait_flag): New. Use
139 * target/target.h (target_wait): Change type of options.
140 * target.h (target_options_to_string, default_target_wait):
142 (struct target_ops) <wait>: Change type of options.
143 * target.c (target_wait, default_target_wait, do_option): Change
145 (target_options_to_string): Likewise.
146 * target-delegates.c: Rebuild.
147 * target-debug.h (target_debug_print_target_wait_flags): Rename
148 from target_debug_print_options.
149 * sol-thread.c (class sol_thread_target) <wait>: Update.
150 (sol_thread_target::wait): Update.
151 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
152 (rs6000_nat_target::wait): Update.
153 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
155 (remote_target::wait_ns, remote_target::wait_as): Change type of
157 (remote_target::wait): Update.
158 * remote-sim.c (struct gdbsim_target) <wait>: Update.
159 (gdbsim_target::wait): Update.
160 * record-full.c (class record_full_base_target) <wait>: Update.
161 (record_full_wait_1): Change type of "options".
162 (record_full_base_target::wait): Update.
163 * record-btrace.c (class record_btrace_target) <wait>: Update.
164 (record_btrace_target::wait): Update.
165 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
167 (ravenscar_thread_target::wait): Update.
168 * procfs.c (class procfs_target) <wait>: Update.
169 (procfs_target::wait): Update.
170 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
171 * obsd-nat.c (obsd_nat_target::wait): Update.
172 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
173 (nto_procfs_target::wait): Update.
174 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
175 * nbsd-nat.c (nbsd_wait): Change type of "options".
176 (nbsd_nat_target::wait): Update.
177 * linux-thread-db.c (class thread_db_target) <wait>: Update.
178 (thread_db_target::wait): Update.
179 * linux-nat.h (class linux_nat_target) <wait>: Update.
180 * linux-nat.c (linux_nat_target::wait): Update.
181 (linux_nat_wait_1): Update.
182 * infrun.c (do_target_wait_1, do_target_wait): Change type of
184 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
185 * inf-ptrace.c (inf_ptrace_target::wait): Update.
186 * go32-nat.c (struct go32_nat_target) <wait>: Update.
187 (go32_nat_target::wait): Update.
188 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
189 * gnu-nat.c (gnu_nat_target::wait): Update.
190 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
191 * fbsd-nat.c (fbsd_nat_target::wait): Update.
192 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
193 * darwin-nat.c (darwin_nat_target::wait): Update.
194 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
195 (bsd_uthread_target::wait): Update.
196 * aix-thread.c (class aix_thread_target) <wait>: Update.
197 (aix_thread_target::wait): Update.
199 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
201 * compile/compile-object-run.c (create_copied_type_recursive): New
203 (compile_object_run): Use new function.
205 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
207 * NEWS: Mention x86_64 Cygwin core file support.
209 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
211 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
212 (core_process_module_section): Handle NOTE_INFO_MODULE64.
214 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
216 * windows-tdep.h: Add prototypes.
217 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
218 (i386_windows_core_pid_to_str): Move and rename ...
219 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
220 (windows_core_pid_to_str): ... and here.
221 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
223 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
224 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
225 (amd64_windows_init_abi_common): ... and register.
227 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
229 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
230 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
232 2020-09-18 Pedro Alves <pedro@palves.net>
235 * thread.c (thread_find_command): Switch inferior before calling
238 2020-09-17 Tom Tromey <tromey@adacore.com>
240 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
241 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
242 (tdesc_arch_data_up): New typedef.
243 (tdesc_use_registers, tdesc_data_alloc): Update.
244 (tdesc_data_cleanup): Don't declare.
245 * target-descriptions.c (tdesc_data_alloc): Return a
247 (tdesc_arch_data_deleter::operator()): Rename from
248 tdesc_data_cleanup. Change argument type.
249 (tdesc_use_registers): Change early_data to an rvalue reference.
250 (tdesc_use_registers): Don't use delete.
251 * sparc-tdep.c (sparc32_gdbarch_init): Update.
252 * s390-tdep.c (s390_gdbarch_init): Update.
253 * rx-tdep.c (rx_gdbarch_init): Update.
254 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
255 * riscv-tdep.c (riscv_gdbarch_init): Update.
256 * or1k-tdep.c (or1k_gdbarch_init): Update.
257 * nios2-tdep.c (nios2_gdbarch_init): Update.
258 * nds32-tdep.c (nds32_gdbarch_init): Update.
259 * mips-tdep.c (mips_gdbarch_init): Update.
260 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
261 * m68k-tdep.c (m68k_gdbarch_init): Update.
262 * i386-tdep.c (i386_gdbarch_init): Update.
263 * arm-tdep.c (arm_gdbarch_init): Update.
264 * arc-tdep.c (arc_tdesc_init): Update.
265 (arc_gdbarch_init): Update.
266 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
268 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
270 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
273 2020-09-17 Tom Tromey <tom@tromey.com>
275 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
277 2020-09-17 Tom Tromey <tom@tromey.com>
279 * value.c (preserve_values): Update.
280 * python/py-type.c (save_objfile_types): Update.
281 * guile/scm-type.c (save_objfile_types): Update.
282 * gdbtypes.h (create_copied_types_hash): Return htab_up.
283 * gdbtypes.c (create_copied_types_hash): Return htab_up.
284 * compile/compile-object-run.c (compile_object_run): Update.
286 2020-09-17 Tom Tromey <tom@tromey.com>
288 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
290 <m_table>: Now htab_up.
291 * typeprint.c (typedef_hash_table::recursively_update)
292 (typedef_hash_table::add_template_parameters)
293 (typedef_hash_table::typedef_hash_table): Update.
294 (typedef_hash_table::~typedef_hash_table): Remove.
295 (typedef_hash_table::typedef_hash_table)
296 (typedef_hash_table::find_global_typedef)
297 (typedef_hash_table::find_typedef): Update.
299 2020-09-17 Tom Tromey <tom@tromey.com>
301 * target-descriptions.c (tdesc_use_registers): Use htab_up.
303 2020-09-17 Tom Tromey <tom@tromey.com>
305 * linespec.c (class decode_compound_collector)
306 <~decode_compound_collector>: Remove.
307 <m_unique_syms>: Now htab_up.
308 (decode_compound_collector::operator ()): Update.
309 (class symtab_collector) <~symtab_collector>: Remove.
310 <m_symtab_table>: Now htab_up.
311 (symtab_collector::operator ()): Update.
313 2020-09-17 Tom Tromey <tom@tromey.com>
315 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
316 (filename_seen_cache::clear): Update.
317 (~filename_seen_cache): Remove.
318 (filename_seen_cache::seen): Update.
319 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
321 <~filename_seen_cache>: Remove.
324 2020-09-17 Tom Tromey <tom@tromey.com>
326 * completer.c (completion_tracker::discard_completions)
327 (completion_tracker::~completion_tracker)
328 (completion_tracker::maybe_add_completion)
329 (completion_tracker::remove_completion)
330 (completion_tracker::recompute_lowest_common_denominator)
331 (completion_tracker::build_completion_result): Update.
332 * completer.h (class completion_tracker) <have_completions>:
334 <m_entries_hash>: Now htab_up.
336 2020-09-17 Tom Tromey <tom@tromey.com>
338 * breakpoint.c (ambiguous_names_p): Use htab_up.
340 2020-09-17 Tom Tromey <tom@tromey.com>
342 * auto-load.c (struct auto_load_pspace_info)
343 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
344 <loaded_script_files, loaded_script_texts>: Change type to
346 (~auto_load_pspace_info) Remove.
347 (init_loaded_scripts_info, maybe_add_script_file)
348 (maybe_add_script_text, auto_load_info_scripts): Update.
350 2020-09-17 Tom Tromey <tromey@adacore.com>
352 * c-exp.y (name_obstack): Now static.
354 2020-09-17 Chungyi Chi <demonic@csie.io>
356 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
358 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
360 * breakpoint.h (init_catchpoint): Change int parameter to bool.
361 (add_solib_catchpoint): Likewise.
362 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
364 (add_solib_catchpoint): Change int parameter/variable to bool.
365 (catch_load_or_unload): Likewise.
366 (init_catchpoint): Likewise.
367 (create_fork_vfork_event_catchpoint): Likewise.
368 (catch_fork_command_1): Likewise.
369 (catch_exec_command_1): Likewise.
371 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
373 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
374 Change instance_flags to m_instance_flags.
376 2020-09-16 Tom Tromey <tromey@adacore.com>
379 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
381 2020-09-16 John Baldwin <jhb@FreeBSD.org>
383 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
385 (fbsd_nat_target::insert_exec_catchpoint)
386 (fbsd_nat_target::remove_exec_catchpoint): Always define.
387 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
388 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
390 2020-09-16 John Baldwin <jhb@FreeBSD.org>
392 * configure.ac: Remove check for kinfo_getvmmap().
393 * configure, config.in: Regenerate.
394 * fbsd-nat.c (fbsd_read_mapping): Remove
395 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
396 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
397 kinfo_get_vmmap() are always present.
399 2020-09-16 John Baldwin <jhb@FreeBSD.org>
401 * fbsd-nat.c: Always include support for
402 TARGET_OBJECT_SIGNAL_INFO.
404 2020-09-16 John Baldwin <jhb@FreeBSD.org>
406 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
407 sysctl and remove procfs fallback.
409 2020-09-16 John Baldwin <jhb@FreeBSD.org>
411 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
412 * fbsd-nat.h: Likewise.
414 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
416 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
419 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
421 * ada-lang.c (ada_language_data): Delete.
422 (ada_language): Remove references to ada_language_data.
423 * c-lang.c (c_language_data): Delete.
424 (c_language): Remove references to c_language_data.
425 (cplus_language_data): Delete.
426 (cplus_language): Remove references to cplus_language_data.
427 (asm_language_data): Delete.
428 (asm_language): Remove references to asm_language_data.
429 (minimal_language_data): Delete.
430 (minimal_language): Remove references to minimal_language_data.
431 * d-lang.c (d_language_data): Delete.
432 (d_language): Remove references to d_language_data.
433 * f-lang.c (f_language_data): Delete.
434 (f_language): Remove references to f_language_data.
435 * go-lang.c (go_language_data): Delete.
436 (go_language): Remove references to go_language_data.
437 * language.c (unknown_language_data): Delete.
438 (unknown_language): Remove references to unknown_language_data.
439 (auto_language_data): Delete.
440 (auto_language): Remove references to auto_language_data.
441 * language.h (language_data): Delete struct.
442 (language_defn): No longer inherit from language_data.
443 * m2-lang.c (m2_language_data): Delete.
444 (m2_language): Remove references to m2_language_data.
445 * objc-lang.c (objc_language_data): Delete.
446 (objc_language): Remove references to objc_language_data.
447 * opencl-lang.c (opencl_language_data): Delete.
448 (opencl_language): Remove references to opencl_language_data.
449 * p-lang.c (pascal_language_data): Delete.
450 (pascal_language): Remove references to pascal_language_data.
451 * rust-lang.c (rust_language_data): Delete.
452 (rust_language): Remove references to rust_language_data.
454 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
456 * ada-lang.c (ada_language_data): Remove la_op_print_tab
458 (ada_language::opcode_print_table): New member function.
459 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
460 (c_language::opcode_print_table): New member function.
461 (cplus_language_data): Remove la_op_print_tab initializer.
462 (cplus_language::opcode_print_table): New member function.
463 (asm_language_data): Remove la_op_print_tab initializer.
464 (asm_language::opcode_print_table): New member function.
465 (minimal_language_data): Remove la_op_print_tab initializer.
466 (minimal_language::opcode_print_table): New member function.
467 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
468 (d_language::opcode_print_table): New member function.
469 * expprint.c (print_subexp_standard): Update call to
471 (op_string): Likewise.
472 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
473 (f_language::opcode_print_table): New member function.
474 * go-lang.c (go_language_data): Remove la_op_print_tab
476 (go_language::opcode_print_table): New member function.
477 * language.c (unknown_language_data): Remove la_op_print_tab
479 (unknown_language::opcode_print_table): New member function.
480 (auto_language_data): Remove la_op_print_tab initializer.
481 (auto_language::opcode_print_table): New member function.
482 * language.h (language_data): Remove la_op_print_tab field.
483 (language_defn::opcode_print_table): Declare new member function.
484 * m2-lang.c (m2_language_data): Remove la_op_print_tab
486 (m2_language::opcode_print_table): New member function.
487 * objc-lang.c (objc_language_data): Remove la_op_print_tab
489 (objc_language::opcode_print_table): New member function.
490 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
492 (opencl_language::opcode_print_table): New member function.
493 * p-lang.c (pascal_language_data): Remove la_op_print_tab
495 (pascal_language::opcode_print_table): New member function.
496 * rust-lang.c (rust_language_data): Remove la_op_print_tab
498 (rust_language::opcode_print_table): New member function.
500 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
502 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
503 (ada_language::expression_ops): New member function.
504 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
505 (c_language::expression_ops): New member function.
506 (cplus_language_data): Remove la_exp_desc initializer.
507 (cplus_language::expression_ops): New member function.
508 (asm_language_data): Remove la_exp_desc initializer.
509 (asm_language::expression_ops): New member function.
510 (minimal_language_data): Remove la_exp_desc initializer.
511 (minimal_language::expression_ops): New member function.
512 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
513 (d_language::expression_ops): New member function.
514 * eval.c (evaluate_subexp): Update call to expression_ops.
515 * expprint.c (print_subexp): Likewise.
517 (dump_subexp_body): Likewise.
518 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
519 (f_language::expression_ops): New member function.
520 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
521 (go_language::expression_ops): New member function.
522 * language.c (language_defn::expression_ops): New function.
523 (unknown_language_data): Remove la_exp_desc initializer.
524 (auto_language_data): Likewise.
525 * language.h (language_data): Remove la_exp_desc field.
526 (language_defn::expression_ops): Declare new member function.
527 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
528 (m2_language::expression_ops): New member function.
529 * objc-lang.c (objc_language_data): Remove la_exp_desc
531 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
533 (opencl_language::expression_ops): New member function.
534 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
535 * parse.c (operator_length): Update call to expression_ops.
536 (exp_iterate): Likewise.
537 * rust-lang.c (rust_language_data): Remove la_exp_desc
539 (ruse_language::expression_ops): New member function.
541 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
543 * ada-lang.c (ada_language_data): Remove la_varobj_ops
545 (ada_language::varobj_ops): New member function.
546 * c-lang.c (c_language_data): Remove la_varobj_ops
548 (cplus_language_data): Likewise.
549 (cplus_language::varobj_ops): New member function.
550 (asm_language_data): Remove la_varobj_ops initializer.
551 (minimal_language_data): Likewise.
552 * d-lang.c (d_language_data): Likewise.
553 * f-lang.c (f_language_data): Likewise.
554 * go-lang.c (go_language_data): Likewise.
555 * language.c (language_defn::varobj_ops): New function.
556 (unknown_language_data): Remove la_varobj_ops
558 (auto_language_data): Likewise.
559 * language.h (language_data): Remove la_varobj_ops field.
560 (language_defn::varobj_ops): Declare new member function.
561 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
562 * objc-lang.c (objc_language_data): Likewise.
563 * opencl-lang.c (opencl_language_data): Likewise.
564 * p-lang.c (pascal_language_data): Likewise.
565 * rust-lang.c (rust_language_data): Likewise.
566 * varobj.c (varobj_create): Update call to varobj_ops.
567 * varobj.h (default_varobj_ops): Delete define.
569 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
571 * ada-lang.c (ada_language_data): Remove la_macro_expansion
573 * c-lang.c (c_language_data): Likewise.
574 (c_language::macro_expansion): New member function.
575 (cplus_language_data): Likewise.
576 (cplus_language::macro_expansion): New member function.
577 (asm_language_data): Likewise.
578 (asm_language::macro_expansion): New member function.
579 (minimal_language_data): Likewise.
580 (minimal_language::macro_expansion): New member function.
581 * d-lang.c (d_language_data): Remove la_macro_expansion
583 * f-lang.c (f_language_data): Likewise.
584 * go-lang.c (go_language_data): Likewise.
585 * language.c (unknown_language_data): Likewise.
586 (auto_language_data): Likewise.
587 * language.h (language_data): Remove la_macro_expansion field.
588 (language_defn::macro_expansion): New member function.
589 * m2-lang.c (m2_language_data): Remove la_macro_expansion
591 * objc-lang.c (objc_language_data): Likewise.
592 (objc_language::macro_expansion): New member function.
593 * opencl-lang.c (opencl_language_data): Likewise.
594 (opencl_language::macro_expansion): New member function.
595 * p-lang.c (pascal_language_data): Remove la_macro_expansion
597 * rust-lang.c (rust_language_data): Likewise.
598 * symtab.c (default_collect_symbol_completion_matches_break_on):
599 Update call to macro_expansion.
601 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
603 * ada-lang.c (ada_language_data): Remove la_array_ordering
605 * c-lang.c (c_language_data): Likewise.
606 (cplus_language_data): Likewise.
607 (asm_language_data): Likewise.
608 (minimal_language_data): Likewise.
609 * d-lang.c (d_language_data): Likewise.
610 * dwarf2/read.c (read_array_order): Update for call to
612 * f-lang.c (f_language_data): Remove la_array_ordering
614 (f_language::array_ordering): New member function.
615 * go-lang.c (go_language_data): Remove la_array_ordering
617 * language.c (unknown_language_data): Likewise.
618 (auto_language_data): Likewise.
619 * language.h (language_data): Delete la_array_ordering field.
620 (language_defn::array_ordering): New member function.
621 * m2-lang.c (m2_language_data): Remove la_array_ordering
623 * objc-lang.c (objc_language_data): Likewise.
624 * opencl-lang.c (opencl_language_data): Likewise.
625 * p-lang.c (pascal_language_data): Likewise.
626 * rust-lang.c (rust_language_data): Likewise.
628 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
630 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
632 * c-lang.c (c_language_data): Likewise.
633 (cplus_language_data): Likewise.
634 (asm_language_data): Likewise.
635 (minimal_language_data): Likewise.
636 * d-lang.c (d_language_data): Likewise.
637 * f-lang.c (f_language_data): Likewise.
638 (f_language::case_sensitivity): New member function.
639 * go-lang.c (go_language_data): Remove la_case_sensitivity
641 * language.c (enum case_mode): Moved here from language.h.
642 (case_mode): Make static.
643 (show_case_command): Update for case_sensitivity being a method.
644 (set_case_command): Likewise.
645 (set_range_case): Likewise.
646 (unknown_language_data): Remove la_case_sensitivity initializer.
647 (auto_language_data): Likewise.
648 * language.h (case_mode): Delete, move enum declaration to
650 (language_data): Delete la_case_sensitivity field.
651 (language_defn::case_sensitivity): New member function.
652 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
654 * objc-lang.c (objc_language_data): Likewise.
655 * opencl-lang.c (opencl_language_data): Likewise.
656 * p-lang.c (pascal_language_data): Likewise.
657 * rust-lang.c (rust_language_data): Likewise.
659 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
661 * ada-lang.c (ada_language_data): Remove la_range_check
663 * c-lang.c (c_language_data): Likewise.
664 (cplus_language_data): Likewise.
665 (asm_language_data): Likewise.
666 (minimal_language_data): Likewise.
667 * d-lang.c (d_language_data): Likewise.
668 * f-lang.c (f_language_data): Likewise.
669 (f_language::range_checking_on_by_default): New member function.
670 * go-lang.c (go_language_data): Remove la_range_check initializer.
671 * language.c (enum range_mode): Moved here from language.h.
672 (range_mode): Made static.
673 (show_range_command): Update to use
674 range_checking_on_by_default.
675 (set_range_command): Likewise.
676 (set_range_case): Likewise.
677 (unknown_language_data): Remove la_range_check initializer.
678 (auto_language_data): Likewise.
679 * language.h (range_mode): Delete. Enum definition moved to
681 (language_data): Remove la_range_check field.
682 (language_defn::range_checking_on_by_default): New member
684 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
685 (m2_language::range_checking_on_by_default): New member function.
686 * objc-lang.c (objc_language_data): Remove la_range_check
688 * opencl-lang.c (opencl_language_data): Likewise.
689 * p-lang.c (pascal_language_data): Likewise.
690 (pascal_language::range_checking_on_by_default): New member
692 * rust-lang.c (rust_language_data): Remove la_range_check
694 (rust_language::range_checking_on_by_default): New member
697 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
699 * dwarf2/read.c (dwarf2_physname): Remove special case for
701 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
704 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
706 * ada-lang.c (ada_language_data): Remove
707 la_store_sym_names_in_linkage_form_p initializer.
708 (ada_language::store_sym_names_in_linkage_form_p): New member
710 * c-lang.c (c_language_data): Remove
711 la_store_sym_names_in_linkage_form_p initializer.
712 (c_language::store_sym_names_in_linkage_form_p): New member
714 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
716 (asm_language_data): Likewise.
717 (asm_language::store_sym_names_in_linkage_form_p): New member
719 (minimal_language_data): Remove
720 la_store_sym_names_in_linkage_form_p initializer.
721 (minimal_language::store_sym_names_in_linkage_form_p): New member
723 * d-lang.c (d_language_data): Remove
724 la_store_sym_names_in_linkage_form_p initializer.
725 * dwarf2/read.c (dwarf2_physname): Update call to
726 store_sym_names_in_linkage_form_p.
727 * f-lang.c (f_language_data): Remove
728 la_store_sym_names_in_linkage_form_p initializer.
729 * go-lang.c (go_language_data): Remove
730 la_store_sym_names_in_linkage_form_p initializer.
731 * language.c (unknown_language_data): Remove
732 la_store_sym_names_in_linkage_form_p initializer.
733 (unknown_language::store_sym_names_in_linkage_form_p): New member
735 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
737 (auto_language::store_sym_names_in_linkage_form_p): New member
739 * language.h (language_data): Remove
740 la_store_sym_names_in_linkage_form_p member variable.
741 (language_defn::store_sym_names_in_linkage_form_p): New member
743 * m2-lang.c (m2_language_data): Remove
744 la_store_sym_names_in_linkage_form_p initializer.
745 * objc-lang.c (objc_language_data): Likewise.
746 * opencl-lang.c (opencl_language_data): Likewise.
747 * p-lang.c (pascal_language_data): Likewise.
748 * rust-lang.c (rust_language_data): Likewise.
750 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
752 * ada-lang.c (ada_language_data): Remove string_lower_bound
754 * c-lang.c (c_language_data): Likewise.
755 (cplus_language_data): Likewise.
756 (asm_language_data): Likewise.
757 (minimal_language_data): Likewise.
758 * d-lang.c (d_language_data): Likewise.
759 * f-lang.c (f_language_data): Likewise.
760 * go-lang.c (go_language_data): Likewise.
761 * language.c (unknown_language_data): Likewise.
762 (auto_language_data): Likewise.
763 * language.h (language_data): Remove string_lower_bound field.
764 (language_defn::string_lower_bound): New member function.
765 * m2-lang.c (m2_language_data): Remove string_lower_bound
767 (m2_language::string_lower_bound): New member function.
768 * objc-lang.c (objc_language_data): Remove string_lower_bound
770 * opencl-lang.c (opencl_language_data): Likewise.
771 * p-lang.c (pascal_language_data): Likewise.
772 * rust-lang.c (rust_language_data): Likewise.
773 * valops.c (value_cstring): Update call to string_lower_bound.
774 (value_string): Likewise.
775 * value.c (allocate_repeated_value): Likewise.
777 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
779 * valops.c (value_repeat): Fix incorrect argument name in comment.
781 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
783 * ada-lang.c (ada_language_data): Remove c_style_arrays
785 (ada_language::c_style_arrays_p): New member fuction.
786 * c-lang.c (c_language_data): Remove c_style_arrays
788 (cplus_language_data): Likewise.
789 (asm_language_data): Likewise.
790 (minimal_language_data): Likewise.
791 * d-lang.c (d_language_data): Likewise.
792 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
793 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
794 (f_language::c_style_arrays_p): New member function.
795 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
796 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
797 * language.c (unknown_language_data): Remove c_style_arrays
799 (auto_language_data): Likewise.
800 * language.h (language_data): Remove c_style_arrays field.
801 (language_defn::c_style_arrays_p): New member function.
802 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
803 (m2_language::c_style_arrays_p): New member function.
804 * objc-lang.c (objc_language_data): Remove c_style_arrays
806 * opencl-lang.c (opencl_language_data): Likewise.
807 * p-lang.c (pascal_language_data): Likewise.
808 * rust-lang.c (rust_language_data): Likewise.
809 * valarith.c (value_subscript): Update call to c_style_arrays_p,
810 and update local variable to a bool.
811 * valops.c (value_cast): Update call to c_style_arrays_p.
812 (value_array): Likewise.
813 * value.c (coerce_array): Likewise.
815 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
817 * ada-lang.c (ada_language_data): Remove la_language initializer.
818 * c-lang.c (c_language_data): Likewise.
819 (cplus_language_data): Likewise.
820 (asm_language_data): Likewise.
821 (minimal_language_data): Likewise.
822 * d-lang.c (d_language_data): Likewise.
823 * f-lang.c (f_language_data): Likewise.
824 * go-lang.c (go_language_data): Likewise.
825 * language.c (unknown_language_data): Likewise.
826 (auto_language_data): Likewise.
827 * language.h (language_data): Remove la_language field.
828 (language_defn::language_defn): Initialise la_language field.
829 (language_defn::la_language): New member variable.
830 * m2-lang.c (m2_language_data): Remove la_language field.
831 * objc-lang.c (objc_language_data): Likewise.
832 * opencl-lang.c (opencl_language_data): Likewise.
833 * p-lang.c (pascal_language_data): Likewise.
834 * rust-lang.c (rust_language_data): Likewise.
836 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
838 * ada-lang.c (ada_extensions): Delete, moved into
839 ada_language::filename_extensions.
840 (ada_language_data): Remove la_filename_extensions initializer.
841 (ada_language::filename_extensions): New member function.
842 * c-lang.c (c_extensions): Delete, moved into
843 c_language::filename_extensions.
844 (c_language_data): Remove la_filename_extensions initializer.
845 (c_language::filename_extensions): New member function.
846 (cplus_extensions): Delete, moved into
847 cplus_language::filename_extensions.
848 (cplus_language_data): Remove la_filename_extensions initializer.
849 (cplus_language::filename_extensions): New member function.
850 (asm_extensions): Delete, moved into
851 asm_language::filename_extensions.
852 (asm_language_data): Remove la_filename_extensions initializer.
853 (asm_language::filename_extensions): New member function.
854 (minimal_language_data): Remove la_filename_extensions
856 * d-lang.c (d_extensions): Delete, moved into
857 d_language::filename_extensions.
858 (d_language_data): Remove la_filename_extensions initializer.
859 (d_language::filename_extensions): New member function.
860 * f-lang.c (f_extensions): Delete, moved into
861 f_language::filename_extensions.
862 (f_language_data): Remove la_filename_extensions initializer.
863 (f_language::filename_extensions): New member function.
864 * go-lang.c (go_language_data): Remove la_filename_extensions
866 * language.c (add_set_language_command): Update now that
867 filename_extensions returns a vector.
868 (unknown_language_data): Remove la_filename_extensions
870 (auto_language_data): Likewise.
871 * language.h (language_data): Remove la_filename_extensions field.
872 (language_defn::filename_extensions): New member function.
873 * m2-lang.c (m2_language_data): Remove la_filename_extensions
875 * objc-lang.c (objc_extensions): Delete, moved into
876 objc_language::filename_extensions.
877 (objc_language_data): Remove la_filename_extensions initializer.
878 (objc_language::filename_extensions): New member function.
879 * opencl-lang.c (opencl_language_data): Remove
880 la_filename_extensions initializer.
881 * p-lang.c (pascal_extensions): Delete, moved into
882 pascal_language::filename_extensions.
883 (pascal_language_data): Remove la_filename_extensions initializer.
884 (pascal_language::filename_extensions): New member function.
885 * rust-lang.c (rust_extensions): Delete, moved into
886 rust_language::filename_extensions.
887 (rust_language_data): Remove la_filename_extensions initializer.
888 (rust_language::filename_extensions): New member function.
889 * symfile.c (add_filename_language): Add new assert.
891 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
893 * ada-lang.c (ada_language_data): Remove la_name and
894 la_natural_name initializers.
895 (ada_language::name): New member function.
896 (ada_language::natural_name): New member function.
897 * c-lang.c (c_language_data): Remove la_name and
898 la_natural_name initializers.
899 (c_language::name): New member function.
900 (c_language::natural_name): New member function.
901 (cplus_language_data): Remove la_name and
902 la_natural_name initializers.
903 (cplus_language::name): New member function.
904 (cplus_language::natural_name): New member function.
905 (asm_language_data): Remove la_name and
906 la_natural_name initializers.
907 (asm_language::name): New member function.
908 (asm_language::natural_name): New member function.
909 (minimal_language_data): Remove la_name and
910 la_natural_name initializers.
911 (minimal_language::name): New member function.
912 (minimal_language::natural_name): New member function.
913 * compile/compile.c (compile_to_object): Update call to
915 * d-lang.c (d_language_data): Remove la_name and
916 la_natural_name initializers.
917 (d_language::name): New member function.
918 (d_language::natural_name): New member function.
919 * expprint.c (print_subexp_standard): Update call to
921 (dump_raw_expression): Likewise
922 (dump_prefix_expression): Likewise.
923 * f-lang.c (f_language_data): Remove la_name and
924 la_natural_name initializers.
925 (f_language::name): New member function.
926 (f_language::natural_name): New member function.
927 * go-lang.c (go_language_data): Remove la_name and
928 la_natural_name initializers.
929 (go_language::name): New member function.
930 (go_language::natural_name): New member function.
931 * language.c (show_language_command): Update call to
933 (set_language_command): Likewise.
934 (language_enum): Likewise.
935 (language_str): Likewise.
936 (add_set_language_command): Likewise, use
937 language_defn::natural_name in the doc string.
938 (unknown_language_data): Remove la_name and
939 la_natural_name initializers.
940 (unknown_language::name): New member function.
941 (unknown_language::natural_name): New member function.
942 (auto_language_data): Remove la_name and
943 la_natural_name initializers.
944 (auto_language::name): New member function.
945 (auto_language::natural_name): New member function.
946 (language_lookup_primitive_type_as_symbol): Update call to
948 * language.h (language_data): Remove la_name and la_natural_name
950 (language_defn::name): New member function.
951 (language_defn::natural_name): New member function.
952 * m2-lang.c (m2_language_data): Remove la_name and
953 la_natural_name initializers.
954 (m2_language::name): New member function.
955 (m2_language::natural_name): New member function.
956 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
957 language_defn::natural_name.
958 * objc-lang.c (objc_language_data): Remove la_name and
959 la_natural_name initializers.
960 (objc_language::name): New member function.
961 (objc_language::natural_name): New member function.
962 * opencl-lang.c (opencl_language_data): Remove la_name and
963 la_natural_name initializers.
964 (opencl_language::name): New member function.
965 (opencl_language::natural_name): New member function.
966 * p-lang.c (pascal_language_data): Remove la_name and
967 la_natural_name initializers.
968 (pascal_language::name): New member function.
969 (pascal_language::natural_name): New member function.
970 * rust-lang.c (rust_language_data): Remove la_name and
971 la_natural_name initializers.
972 (rust_language::name): New member function.
973 (rust_language::natural_name): New member function.
974 * symtab.c (lookup_language_this): Update call to
977 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
979 * ada-lang.c (ada_language_data): Remove la_name_of_this
981 * ax-gdb.c (gen_expr): Update call to name_of_this.
982 * c-exp.y (classify_name): Likewise.
983 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
984 (cplus_language_data): Likewise.
985 (cplus_language::name_of_this): New member function.
986 (asm_language_data): Remove la_name_of_this initializer.
987 (minimal_language_data): Likewise.
988 * d-lang.c (d_language_data): Likewise.
989 (d_language::name_of_this): New member function.
990 * expprint.c (print_subexp_standard): Update call to name_of_this.
991 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
992 * go-lang.c (go_language_data): Likewise.
993 * language.c (unknown_language_data): Likewise.
994 (unknown_language::name_of_this): New member function.
995 (auto_language_data): Remove la_name_of_this initializer.
996 (auto_language::name_of_this): New member function.
997 * language.h (language_data): Delete la_name_of_this member
999 (language_defn::name_of_this): New member function.
1000 * m2-lang.c (m2_language_data): Remove la_name_of_this
1002 * objc-lang.c (objc_language_data): Likewise.
1003 (objc_language::name_of_this): New member function.
1004 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1006 * p-lang.c (pascal_language_data): Likewise.
1007 (pascal_language::name_of_this): New member function.
1008 * rust-lang.c (rust_language_data): Remove la_name_of_this
1010 * symtab.c (lookup_language_this): Update call to name_of_this.
1011 (lookup_symbol_aux): Likewise.
1012 * valops.c (value_of_this): Likewise.
1014 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1016 * ada-lang.c (ada_language_data): Remove
1017 la_struct_too_deep_ellipsis initializer.
1018 (ada_language::struct_too_deep_ellipsis): New member function.
1019 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1021 (cplus_language_data): Likewise.
1022 (asm_language_data): Likewise.
1023 (minimal_language_data): Likewise.
1024 * cp-valprint.c (cp_print_value): Update call to
1025 struct_too_deep_ellipsis.
1026 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1028 * f-lang.c (f_language_data): Likewise.
1029 (f_language::struct_too_deep_ellipsis): New member function.
1030 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1032 * language.c (unknown_language_data): Likewise.
1033 (auto_language_data): Likewise.
1034 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1036 (language_defn::struct_too_deep_ellipsis): New member function.
1037 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1039 * objc-lang.c (objc_language_data): Likewise.
1040 * opencl-lang.c (opencl_language_data): Likewise.
1041 * p-lang.c (pascal_language_data): Likewise.
1042 * rust-lang.c (rust_language_data): Likewise.
1043 * valprint.c (val_print_check_max_depth): Update call to
1044 struct_too_deep_ellipsis.
1046 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1048 * MAINTAINERS (Write After Approval): Add myself.
1050 2020-09-15 Tom Tromey <tom@tromey.com>
1052 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1055 2020-09-15 Tom Tromey <tom@tromey.com>
1057 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1058 and TYPE_CODE_METHODPTR cases.
1059 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1060 (c_value_print_inner): Update.
1061 * valprint.c (generic_value_print_memberptr): New function, from
1062 c_value_print_memberptr.
1063 (generic_value_print): Use it. Call cplus_print_method_ptr.
1065 2020-09-15 Tom Tromey <tromey@adacore.com>
1067 * python/python-internal.h (PyInt_FromLong): Remove define.
1068 * python/py-value.c (convert_value_from_python): Use
1069 gdb_py_object_from_longest.
1070 * python/py-type.c (typy_get_code): Use
1071 gdb_py_object_from_longest.
1072 * python/py-symtab.c (salpy_get_line): Use
1073 gdb_py_object_from_longest.
1074 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1075 gdb_py_object_from_longest.
1076 * python/py-record.c (recpy_gap_reason_code): Use
1077 gdb_py_object_from_longest.
1078 * python/py-record-btrace.c (recpy_bt_insn_size)
1079 (recpy_bt_func_level, btpy_list_count): Use
1080 gdb_py_object_from_longest.
1081 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1082 gdb_py_object_from_longest. Fix error handling.
1083 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1084 gdb_py_object_from_longest.
1085 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1086 gdb_py_object_from_longest.
1087 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1088 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1089 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1091 2020-09-15 Tom Tromey <tromey@adacore.com>
1093 * python/python.c (gdbpy_parameter_value): Use
1094 gdb_py_object_from_ulongest.
1096 2020-09-15 Tom Tromey <tromey@adacore.com>
1098 * python/py-infevents.c (create_register_changed_event_object):
1099 Use gdb_py_object_from_longest.
1100 * python/py-exitedevent.c (create_exited_event_object): Use
1101 gdb_py_object_from_longest.
1103 2020-09-15 Tom Tromey <tromey@adacore.com>
1105 * python/python.c (gdbpy_parameter_value): Use
1106 gdb_py_object_from_longest.
1107 * python/py-type.c (convert_field, typy_range): Use
1108 gdb_py_object_from_longest.
1109 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1110 gdb_py_object_from_longest.
1111 * python/py-lazy-string.c (stpy_get_length): Use
1112 gdb_py_object_from_longest.
1113 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1114 gdb_py_object_from_longest.
1115 * python/py-infevents.c (create_memory_changed_event_object): Use
1116 gdb_py_object_from_longest.
1117 * python/py-inferior.c (infpy_get_num): Use
1118 gdb_py_object_from_longest.
1119 (infpy_get_pid): Likewise.
1121 2020-09-15 Tom Tromey <tromey@adacore.com>
1123 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1125 * python/py-value.c (valpy_long): Use
1126 gdb_py_object_from_ulongest.
1127 * python/py-symtab.c (salpy_get_pc): Use
1128 gdb_py_object_from_ulongest.
1129 (salpy_get_last): Likewise.
1130 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1131 gdb_py_object_from_ulongest.
1132 * python/py-lazy-string.c (stpy_get_address): Use
1133 gdb_py_object_from_ulongest.
1134 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1135 * python/py-arch.c (archpy_disassemble): Use
1136 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1139 2020-09-15 Tom Tromey <tromey@adacore.com>
1141 * python/python-internal.h (gdb_py_long_from_longest): Remove
1143 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1144 * python/py-type.c (convert_field, typy_get_sizeof): Use
1145 gdb_py_object_from_longest.
1146 * python/py-record-btrace.c (btpy_list_index): Use
1147 gdb_py_object_from_longest.
1149 2020-09-15 Tom Tromey <tromey@adacore.com>
1151 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1152 * python/py-record.c (recpy_element_number): Use
1153 gdb_py_object_from_longest.
1154 (recpy_gap_number): Likewise.
1156 2020-09-15 Tom Tromey <tromey@adacore.com>
1158 * top.c (ui::ui): Update.
1159 (highest_ui_num): Remove.
1160 * top.h (struct ui) <num>: Remove.
1162 2020-09-15 Tom Tromey <tromey@adacore.com>
1164 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1165 * ui-style.c (ansi_regex_text): Now array.
1166 * rust-exp.y (number_regex_text): Now array.
1167 * linespec.c (linespec_quote_characters): Now array.
1168 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1171 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1173 * debuginfod-support.c (debuginfod_client_deleter): New.
1174 (debuginfod_client_up): New.
1175 (debuginfod_init): Return debuginfod_client_up.
1176 (debuginfod_source_query): Adjust.
1177 (debuginfod_debuginfo_query): Adjust.
1179 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1181 * debuginfod-support.c (debuginfod_source_query): Use
1182 make_unique_xstrdup.
1184 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1186 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1187 with `type::instance_flags`.
1189 2020-09-14 Michael Mullin <masmullin@gmail.com>
1191 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1192 Remove baton parameter.
1194 2020-09-14 Pedro Alves <pedro@palves.net>
1196 * Makefile.in (SELFTESTS_SRCS): Add
1197 unittests/enum-flags-selftests.c.
1198 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1199 btrace_function_flags instead of enum btrace_function_flag.
1200 * compile/compile-c-types.c (convert_qualified): Use
1202 * compile/compile-cplus-symbols.c (convert_one_symbol)
1203 (convert_symbol_bmsym):
1204 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1205 (compile_cplus_convert_struct_or_union_methods)
1206 (compile_cplus_instance::convert_qualified_base):
1207 * go-exp.y (parse_string_or_char): Add cast to int.
1208 * unittests/enum-flags-selftests.c: New file.
1209 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1210 type to btrace_thread_flags from btrace_thread_flag.
1211 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1212 local's type to btrace_thread_flags from btrace_thread_flag. Add
1215 2020-09-14 Pedro Alves <pedro@palves.net>
1217 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1218 * gdbtypes.c (address_space_name_to_int): Rename to ...
1219 (address_space_name_to_type_instance_flags): ... this.
1220 (address_space_int_to_name): Rename to ...
1221 (address_space_type_instance_flags_to_name): ... this.
1222 * gdbtypes.h (address_space_name_to_int): Rename to ...
1223 (address_space_name_to_type_instance_flags): ... this.
1224 (address_space_int_to_name): Rename to ...
1225 (address_space_type_instance_flags_to_name): ... this.
1226 * type-stack.c (type_stack::insert): Adjust to rename.
1227 * type-stack.h (type_stack::insert): Likewise.
1229 2020-09-14 Pedro Alves <pedro@palves.net>
1230 Andrew Burgess <andrew.burgess@embecosm.com>
1232 * avr-tdep.c (avr_address_class_type_flags): Return
1233 type_instance_flags.
1234 (avr_address_class_type_flags_to_name): Take a
1235 type_instance_flags.
1236 (avr_address_class_name_to_type_flags): Return bool and take a
1237 type_instance_flags.
1238 * d-lang.c (build_d_types): Use type::set_instance_flags.
1239 * ft32-tdep.c (ft32_address_class_type_flags): Return
1240 type_instance_flags.
1241 (ft32_address_class_type_flags_to_name): Take a
1242 type_instance_flags.
1243 (ft32_address_class_name_to_type_flags): Return bool and take a
1244 type_instance_flags.
1245 (ft32_gdbarch_init): Use type::set_instance_flags.
1246 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1247 * gdbarch.h, gdbarch.c: Regenerate.
1248 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1249 (address_class_name_to_type_flags): Use type_instance_flags and
1251 * gdbtypes.c (address_space_name_to_int)
1252 (address_space_int_to_name, make_qualified_type): Use
1253 type_instance_flags.
1254 (make_qualified_type): Use type_instance_flags and
1255 type::set_instance_flags.
1256 (make_type_with_address_space, make_cv_type, make_vector_type)
1257 (check_typedef): Use type_instance_flags.
1258 (recursive_dump_type): Cast type_instance_flags to unsigned for
1260 (copy_type_recursive): Use type::set_instance_flags.
1261 (gdbtypes_post_init): Use type::set_instance_flags.
1262 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1263 <m_instance_flags>: ... this.
1264 <instance_flags, set_instance_flags>: New methods.
1265 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1266 (SET_TYPE_INSTANCE_FLAGS): New.
1267 (address_space_name_to_int, address_space_int_to_name)
1268 (make_type_with_address_space): Pass flags using
1269 type_instance_flags instead of int.
1270 * stabsread.c (cleanup_undefined_types_noname): Use
1271 type::set_instance_flags.
1272 * s390-tdep.c (s390_address_class_type_flags): Return
1273 type_instance_flags.
1274 (s390_address_class_type_flags_to_name): Take a
1275 type_instance_flags.
1276 (s390_address_class_name_to_type_flags): Return bool and take a
1277 type_instance_flags.
1278 * type-stack.c (type_stack::follow_types): Use
1279 type_instance_flags.
1280 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1282 2020-09-14 Tom Tromey <tromey@adacore.com>
1284 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1285 * x86-tdep.c (x86_is_thunk_register_name)
1286 (x86_in_indirect_branch_thunk): Update.
1287 * sparc64-tdep.c (sparc64_fpu_register_names)
1288 (sparc64_cp0_register_names, sparc64_register_names)
1289 (sparc64_pseudo_register_names): Now const.
1290 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1291 cp0_registers_num>: Now const.
1292 * sparc-tdep.c (sparc_core_register_names)
1293 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1294 (sparc32_pseudo_register_names): Now const.
1295 (validate_tdesc_registers): Update.
1296 * rust-lang.c (rust_extensions): Now const.
1297 * p-lang.c (p_extensions): Now const.
1298 * objc-lang.c (objc_extensions): Now const.
1299 * nto-tdep.c (nto_thread_state_str): Now const.
1300 * moxie-tdep.c (moxie_register_names): Now const.
1301 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1303 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1304 (mips_linux_reg_names): Now const.
1305 (mips_gdbarch_init): Update.
1306 * microblaze-tdep.c (microblaze_register_names): Now const.
1307 * m68k-tdep.c (m68k_register_names): Now const.
1308 * m32r-tdep.c (m32r_register_names): Now const.
1309 * ia64-tdep.c (ia64_register_names): Now const.
1310 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1311 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1312 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1313 ymm_avx512_register_names, pkeys_register_names>: Now const.
1314 * i386-tdep.c (i386_register_names, i386_zmm_names)
1315 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1316 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1317 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1318 * f-lang.c (f_extensions): Now const.
1319 * d-lang.c (d_extensions): Now const.
1320 * csky-tdep.c (csky_register_names): Now const.
1321 * charset.c (default_charset_names, charset_enum): Now const.
1322 (_initialize_charset): Update.
1323 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1325 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1326 (bsd_uthread_solib_loaded): Update.
1327 (bsd_uthread_state): Now const.
1328 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1329 (amd64_ymm_avx512_names, amd64_ymmh_names)
1330 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1331 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1332 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1333 (amd64_dword_names): Now const.
1334 * agent.c (can_use_agent_enum): Now const.
1335 * ada-tasks.c (task_states, long_task_states): Now const.
1336 * ada-lang.c (known_runtime_file_name_patterns)
1337 (known_auxiliary_function_name_patterns, attribute_names)
1338 (standard_exc, ada_extensions): Now const.
1340 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1342 * bcache.h (struct bcache) <bcache>: Remove constructor.
1343 <m_hash_function, m_compare_function>: Remove.
1344 <~bcache>: Make virtual.
1345 <compare>: Remove static method, introduce virtual method.
1346 <default_hash>: Remove.
1347 <hash>: New virtual method.
1348 * bcache.c (bcache::expand_hash_table): Update.
1349 (bcache::insert): Update.
1350 (bcache::hash): New.
1351 (bcache::compare): Update comment and parameter names.
1352 * gdbtypes.c (types_deeply_equal): Update.
1353 * psymtab.h (struct psymbol_bcache): New struct.
1354 (class psymtab_storage) <psymtab_storage>: Make default.
1355 <psymbol_cache>: Change type to psymbol_bcache.
1356 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1357 (psymbol_hash): Change to...
1358 (psymbol_bcache::hash): ... this.
1359 (psymbol_compare): Change to...
1360 (psymbol_bcache::compare): ... this.
1362 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1364 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1365 checking for initial lwp.
1367 2020-09-14 Tom Tromey <tromey@adacore.com>
1369 * m68k-tdep.c (m68k_extract_return_value): Use
1370 pointer_result_regnum.
1371 (m68k_store_return_value): Likewise.
1372 (m68k_reg_struct_return_p): Handle vectors and arrays.
1373 (m68k_return_value): Handle arrays.
1374 (m68k_svr4_return_value): Fix single-element aggregate handling.
1375 Handle long double. Adjust for embedded ABI.
1376 (m68k_svr4_init_abi): Set pointer_result_regnum.
1377 (m68k_embedded_init_abi): New function.
1378 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1379 (m68k_osabi_sniffer): New function.
1380 (_initialize_m68k_tdep): Register osabi sniffer.
1381 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1384 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1386 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1387 with gdb::unique_xmalloc_ptr<char>.
1389 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1391 * xml-support.h (xml_fetch_another): Change type to be a
1393 (xml_process_xincludes): Remove baton parameter.
1394 (xml_fetch_content_from_file): Change baton parameter to
1396 * xml-support.c (struct xinclude_parsing_data)
1397 <xinclude_parsing_data>: Remove baton parameter.
1398 <fetcher_baton>: Remove.
1399 (xinclude_start_include): Adjust.
1400 (xml_process_xincludes): Adjust.
1401 (xml_fetch_content_from_file): Replace baton parameter with
1403 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1404 (xml_init_syscalls_info): Use a lambda.
1405 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1406 (file_read_description_xml): Use a lambda.
1407 (fetch_available_features_from_target): Change baton parameter
1409 (target_read_description_xml): Use a lambda.
1410 (target_fetch_description_xml): Use a lambda.
1411 (string_read_description_xml): Update.
1413 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1415 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1416 uses with type::endianity_is_not_default.
1418 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1420 * gdbtypes.h (struct type) <endianity_is_not_default,
1421 set_endianity_is_not_default>: New methods.
1422 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1423 type::endianity_is_not_default, change all write call sites to
1424 use type::set_endianity_is_not_default.
1426 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1428 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1429 uses with type::is_fixed_instance.
1431 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1433 * gdbtypes.h (struct type) <is_fixed_instance,
1434 set_is_fixed_instance>: New methods.
1435 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1436 write call sites to use type::set_is_fixed_instance.
1438 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1440 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1441 uses with type::is_gnu_ifunc.
1443 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1445 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1446 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1447 use type::set_is_gnu_ifunc.
1449 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1451 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1452 uses with type::stub_is_supported.
1454 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1456 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1457 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1458 use type::set_stub_is_supported.
1460 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1462 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1463 uses with type::is_vector.
1465 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1467 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1468 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1469 use type::set_is_vector.
1471 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1473 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1474 uses with type::has_varargs.
1476 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1478 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1479 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1480 use type::set_has_varargs.
1482 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1484 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1485 uses with type::is_prototyped.
1487 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1489 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1491 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1492 call sites to use type::set_is_prototyped.
1494 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1496 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1497 uses with type::target_is_stub.
1499 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1501 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1503 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1504 sites to use type::set_target_is_stub.
1506 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1508 * gdbtypes.h (TYPE_STUB): Remove, replace all
1509 uses with type::is_stub.
1511 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1513 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1514 (TYPE_STUB): Use type::is_stub, change all write call sites to
1515 use type::set_is_stub.
1517 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1519 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1520 type::has_no_signedness.
1522 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1524 * gdbtypes.h (struct type) <has_no_signedness,
1525 set_has_no_signedness>: New methods.
1526 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1527 call sites to use type::set_has_no_signedness.
1529 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1531 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1534 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1536 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1538 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1539 sites to use type::set_is_unsigned.
1541 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1542 Adam Renquinha <arenquinha@cimeq.qc.ca>
1544 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1545 pointer and stack frame offset when unwinding.
1547 2020-09-13 Pedro Alves <pedro@palves.net>
1549 * NEWS: Document "-break-insert --qualified".
1550 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1552 2020-09-13 Pedro Alves <pedro@palves.net>
1554 * linespec.c (classify_mtype, compare_msyms): Delete.
1555 (search_minsyms_for_name): Remove classification logic. Instead
1556 filter out trampoline symbols if we also found an external
1557 function of the same name.
1559 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1561 * NEWS: Create a new section for the next release branch.
1562 Rename the section of the current branch, now that it has
1565 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1567 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1568 * version.in: Bump version to 11.0.50.DATE-git.
1570 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1572 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1574 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1575 Felix Willgerodt <Felix.Willgerodt@intel.com>
1577 * gdbarch.sh: Added bfloat16 type.
1578 * gdbarch.c: Regenerated.
1579 * gdbarch.h: Regenerated.
1580 * gdbtypes.c (floatformats_bfloat16): New struct.
1581 (gdbtypes_post_init): Add builtin_bfloat16.
1582 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1583 (floatformats_bfloat16): New struct.
1584 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1585 (i386_ymm_type): Add field "v16_bfloat16"
1586 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1587 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1588 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1589 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1590 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1591 * features/i386/64bit-avx512.c: Regenerated.
1592 * features/i386/64bit-sse.xml: Add bfloat16 type.
1593 * features/i386/64bit-sse.c: Regenerated.
1595 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1597 * i386-tdep.c (i386_zmm_type): Fix field names.
1598 (i386_ymm_type): Fix field names.
1600 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1602 * breakpoint.c: Fix typo in the help message of the
1603 "set breakpoint condition-evaluation" command.
1605 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1607 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1608 * (nbsd_nat_target::pid_to_exec_file)
1609 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1610 (nbsd_nat_target::post_startup_inferior)
1611 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1612 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1613 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1614 * (nbsd_thread_lister): Remove.
1616 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1618 * fork-inferior.c (startup_inferior): Avoid double free.
1620 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1622 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1623 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1625 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1627 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1628 * netbsd-nat.c: Include <sys/ptrace.h>.
1629 * (netbsd_nat::enable_proc_events): Add.
1631 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1633 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1634 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1635 (netbsd_nat::for_each_thread): Add.
1636 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1637 "gdbsupport/common-debug.h".
1638 * (netbsd_nat::netbsd_thread_lister)
1639 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1640 (netbsd_nat::for_each_thread): Add.
1642 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1644 * netbsd-nat.h: Include <unistd.h>.
1645 * (netbsd_nat::pid_to_exec_file): Add.
1646 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1647 * (netbsd_nat::pid_to_exec_file) Add.
1649 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1651 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1653 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1655 * netbsd-nat.h: New file.
1656 * netbsd-nat.c: Likewise.
1658 2020-09-09 Tom Tromey <tromey@adacore.com>
1660 * ada-lang.c (remove_extra_symbols): Do not increment when
1663 2020-09-08 Tom Tromey <tromey@adacore.com>
1665 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1667 2020-09-08 Tom Tromey <tromey@adacore.com>
1670 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1671 (gdb_bfd_init_data): New function.
1672 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1674 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1676 * infrun.c (fetch_inferior_event): Use
1677 `switch_to_target_no_thread` to switch the target.
1679 2020-09-06 Tom Tromey <tom@tromey.com>
1681 * symfile.h (dwarf2_free_objfile): Don't declare.
1683 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1685 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1686 to match 16 byte real/complex type generated by Flang compiler.
1688 2020-09-03 Tom de Vries <tdevries@suse.de>
1691 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1692 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1694 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1696 * maint.c (index_digits): New function.
1697 (struct maint_print_section_data): Remove.
1698 (print_bfd_section_info): Remove print_data parameter, add arg
1700 (print_objfile_section_info): Likewise.
1701 (print_bfd_section_info_maybe_relocated): Likewise (plus
1703 (maintenance_info_sections): Adjust calls.
1705 2020-09-02 Tom Tromey <tromey@adacore.com>
1707 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1709 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1711 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1713 * bcache.h (struct bcache) <insert>: Change type of `added` to
1715 * bcache.c (bcache::insert): Likewise.
1716 * gdbtypes.c (check_types_worklist): Adjust.
1717 * psymtab.c (add_psymbol_to_bcache): Adjust.
1719 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1721 * corelow.c (unordered_set): Include.
1722 (class core_target): Add field 'm_core_unavailable_mappings'.
1723 (core_target::build_file_mappings): Print only one warning
1724 per inaccessible file. Add unavailable/broken mappings
1725 to m_core_unavailable_mappings.
1726 (core_target::xfer_partial): Call...
1727 (core_target::xfer_memory_via_mappings): New method.
1729 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1731 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1734 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1736 * dwarf2/read.c (struct field_info): Fix indentation.
1738 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1740 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1741 ordering in comment.
1742 * frame.c (frame_id_eq): Fix indentation.
1744 2020-08-31 Scott Linder <scott@scottlinder.com>
1745 Simon Marchi <simon.marchi@efficios.com>
1747 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1748 inline frame ids in outer frame.
1750 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1752 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1753 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1754 (outer_frame_id): Use FID_STACK_OUTER instead of
1756 (frame_id_p): Don't check for outer_frame_id.
1758 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1760 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1761 regnum/frame in value. Call allocate_value_lazy.
1762 * frame.c (frame_unwind_register_value): Use
1763 val_print_not_saved.
1765 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1767 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1769 2020-08-29 Pedro Alves <pedro@palves.net>
1771 * progspace.c (print_program_space): Use all_inferiors. Switch to
1772 the inferior before calling target_pid_to_str.
1774 2020-08-28 Tom Tromey <tom@tromey.com>
1776 * xcoffread.c (xcoff_end_psymtab): Update comment.
1777 * dbxread.c (dbx_end_psymtab): Update comment.
1779 2020-08-28 Tom de Vries <tdevries@suse.de>
1782 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1784 (create_breakpoint): Same.
1785 (base_breakpoint_decode_location): Same.
1786 (bkpt_create_sals_from_location): Same.
1787 (bkpt_decode_location): Same.
1788 (bkpt_probe_create_sals_from_location): Same.
1789 (bkpt_probe_decode_location): Same.
1790 (tracepoint_create_sals_from_location): Same.
1791 (tracepoint_decode_location): Same.
1792 (tracepoint_probe_decode_location): Same.
1793 (strace_marker_create_sals_from_location): Same.
1794 (strace_marker_decode_location): Same.
1795 (create_sals_from_location_default): Same.
1796 (decode_location_default): Same.
1797 * breakpoint.h (struct breakpoint_ops): Same.
1798 (create_breakpoint): Same.
1799 * linespec.h (decode_line_full): Same.
1800 * linespec.c (decode_line_full): Same. Throw error if
1801 result.size () == 0.
1803 2020-08-27 Pedro Alves <pedro@palves.net>
1806 * breakpoint.c (until_break_fsm) <location_breakpoint,
1807 caller_breakpoint>: Delete fields.
1808 <breakpoints>: New field.
1809 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1810 two individual breakpoints.
1811 (until_break_fsm::should_stop): Loop over breakpoints in the
1813 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1815 (until_break_command): Handle location expanding into multiple
1818 2020-08-27 Pedro Alves <pedro@palves.net>
1821 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1822 bp_until breakpoints user-specified locations. Update intro
1825 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1827 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1828 gdb_bfd_sections): New.
1829 * maint.c (print_bfd_section_info): Change param type to
1830 maint_print_section_data.
1831 (print_objfile_section_info): Likewise.
1832 (print_bfd_section_info_maybe_relocated): Likewise.
1833 (maintenance_info_sections): Use gdb_bfd_sections.
1835 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1837 * MAINTAINERS: Add ARC target and maintainer.
1839 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1841 * configure.tgt: ARC support for GNU/Linux.
1842 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1843 * arc-linux-tdep.c: New file.
1844 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1845 * arc-tdep.c (arc_write_pc): Use it.
1847 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1849 * arc-tdep.c (arc_check_for_hardware_loop): New.
1850 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1852 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1854 * arc-tdep.h: Include "gdbarch.h".
1856 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1859 (arc_gdbarch_features): New class to stir the selection of target XML.
1860 (arc_create_target_description): Use FEATURES to choose XML target.
1861 (arc_lookup_target_description): Use arc_create_target_description
1862 to create _new_ target descriptions or return the already created
1863 ones if the FEATURES is the same.
1864 * arch/arc.c: Implementation of prototypes described above.
1865 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1866 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1867 * arc-tdep.c (*_feature_name): Make feature names consistent.
1868 (arc_register_feature): A new struct to hold information about
1869 registers of a particular target/feature.
1870 (arc_check_tdesc_feature): Check if XML provides registers in
1871 compliance with ARC_REGISTER_FEATURE structs.
1872 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1873 (determine_*_reg_feature_set): Which feature name to look for.
1874 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1875 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1876 to expected ISA enums to be used in arc_gdbarch_features structs.
1877 * features/Makefile (FEATURE_XMLFILES): Add new files.
1878 * gdb/features/arc/v1-aux.c: New file.
1879 * gdb/features/arc/v1-aux.xml: Likewise.
1880 * gdb/features/arc/v1-core.c: Likewise.
1881 * gdb/features/arc/v1-core.xml: Likewise.
1882 * gdb/features/arc/v2-aux.c: Likewise.
1883 * gdb/features/arc/v2-aux.xml: Likewise.
1884 * gdb/features/arc/v2-core.c: Likewise.
1885 * gdb/features/arc/v2-core.xml: Likewise.
1886 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1888 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1889 Andrew Burgess <andrew.burgess@embecosm.com>
1892 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1893 an assert. Remove single element array indexing pattern as the
1894 MULTI_SUBSCRIPT support will handle this case too.
1896 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1898 * value.h (valprint_check_validity): Move declaration from
1900 * valprint.h (valprint_check_validity): ... to here.
1902 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1904 * debug.h: New file.
1905 * debug.c (debug_prefixed_vprintf): New function.
1906 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1907 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1909 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1911 * infrun.h (infrun_debug_printf_1): New function declaration.
1912 (infrun_debug_printf): New macro.
1913 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1915 (infrun_debug_printf): New function.
1916 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1917 (handle_jit_event): Likewise.
1919 2020-08-21 Mark Wielaard <mark@klomp.org>
1921 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1923 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1925 * frame.c (enum class frame_id_status): New.
1926 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1927 (fprintf_frame): Update.
1928 (compute_frame_id): Set frame id status to "computing" on entry.
1929 Set it back to "not_computed" on failure and to "computed" on
1931 (get_frame_id): Assert the frame id is not being computed.
1932 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1933 (create_new_frame): Likewise.
1934 (frame_cleanup_after_sniffer): Update assert.
1936 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1938 * regcache.c (pid_ptid_regcache_map): New type.
1939 (target_ptid_regcache_map): Remove.
1940 (target_pid_ptid_regcache_map): New type.
1941 (regcaches): Change type to target_pid_ptid_regcache_map.
1942 (get_thread_arch_aspace_regcache): Update.
1943 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1945 (regcaches_size): Update.
1946 (regcache_count): Update.
1947 (registers_changed_ptid_target_pid_test): New.
1948 (_initialize_regcache): Register new test.
1950 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1952 * regcache.c (regcache_count): New.
1953 (struct regcache_test_data): New.
1954 (regcache_test_data_up): New.
1955 (populate_regcaches_for_test): New.
1956 (regcaches_test): Remove.
1957 (get_thread_arch_aspace_regcache_test): New.
1958 (registers_changed_ptid_all_test): New.
1959 (registers_changed_ptid_target_test): New.
1960 (registers_changed_ptid_target_ptid_test): New.
1961 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1962 (_initialize_regcache): Register new tests.
1964 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1966 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1967 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1968 gdbarch and aspace parameter. Use current inferior's aspace.
1969 Validate regcache's arch value.
1970 (regcaches_test): Update.
1972 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1974 * regcache.c (regcaches_test): Call registers_changed.
1976 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1978 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1980 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1982 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1983 to find the end of prologue for flang compiled binaries.
1984 * arm-tdep.c (arm_skip_prologue): Likewise.
1985 * i386-tdep.c (i386_skip_prologue): Likewise.
1986 * producer.c (producer_is_llvm): New function.
1987 (producer_parsing_tests): Added new tests for clang/flang.
1988 * producer.h (producer_is_llvm): New declaration.
1990 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1992 * linux-nat.c (linux_nat_debug_printf): New function.
1993 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1995 2020-08-18 Aaron Merey <amerey@redhat.com>
1997 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1998 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1999 (CLIBS): Add DEBUGINFOD_LIBS.
2001 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2003 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2006 2020-08-17 Tom Tromey <tromey@adacore.com>
2008 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2009 ada_get_decoded_value returns NULL.
2011 2020-08-17 Tom Tromey <tromey@adacore.com>
2013 * python/py-inferior.c (infpy_search_memory): Use
2014 gdb_py_object_from_ulongest.
2015 * python/py-infevents.c (create_inferior_call_event_object)
2016 (create_memory_changed_event_object): Use
2017 gdb_py_object_from_ulongest.
2018 * python/py-linetable.c (ltpy_entry_get_pc): Use
2019 gdb_py_object_from_ulongest.
2021 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2023 * loc.c (class symbol_needs_eval_context): Fix indentation.
2025 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2027 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2030 2020-08-17 Tom de Vries <tdevries@suse.de>
2033 * gdbtypes.c (dump_dynamic_prop): New function.
2034 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2036 2020-08-15 Tom de Vries <tdevries@suse.de>
2039 * stack.c (print_frame_args): Temporarily set the selected
2040 frame to FRAME while printing the frame's arguments.
2042 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2044 PR breakpoints/26385
2045 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2046 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2048 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2050 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2051 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2052 and >= to check return value instead of == -1 and != -1.
2054 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2056 * utils.h (class gdb_argv) <as_array_view>: New method.
2057 * utils.c (gdb_argv_as_array_view_test): New.
2058 (_initialize_utils): Register selftest.
2059 * maint.c (maintenance_selftest): Use the new method.
2061 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2063 * target.h (supports_dumpcore, dumpcore): New
2064 function declarations.
2065 * target.c (supports_dumpcore, dumpcore): New
2067 * target-delegates.c: Rebuild.
2068 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2069 and target_dumpcore ().
2071 2020-08-13 Aaron Merey <amerey@redhat.com>
2073 * debuginfod-support.c: Replace global variables with user_data.
2075 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2077 * maint.c (maintenance_selftest): Split args and pass array_view
2080 2020-08-12 Luis Machado <luis.machado@linaro.org>
2082 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2084 Use %s and pulongest to print the length.
2086 2020-08-12 Pedro Alves <palves@redhat.com>
2088 * NEWS: Move "Multi-target debugging support" item to the
2089 "Changes since GDB 9" section.
2091 2020-08-12 Pedro Alves <palves@redhat.com>
2094 * progspace.c (program_space::remove_objfile): Invalidate the
2097 2020-08-11 Tom de Vries <tdevries@suse.de>
2099 * MAINTAINERS: Mark ms1 as deleted.
2101 2020-08-10 Luis Machado <luis.machado@linaro.org>
2105 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2107 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2108 movz/str/stur/stp skipping behavior.
2110 2020-08-10 Luis Machado <luis.machado@linaro.org>
2112 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2113 struct user_sve_header instead of struct sve_context.
2115 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2117 * read.h (dwarf2_fetch_die_loc_sect_off,
2118 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2119 `void *` parameter with function_view.
2120 * read.c (dwarf2_fetch_die_loc_sect_off,
2121 dwarf2_fetch_die_loc_cu_off): Likewise.
2122 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2123 (per_cu_dwarf_call): Adjust.
2124 (get_frame_address_in_block_wrapper): Remove.
2125 (indirect_synthetic_pointer): Adjust.
2126 (get_ax_pc): Remove.
2127 (dwarf2_compile_expr_to_ax): Adjust.
2129 2020-08-08 Tom de Vries <tdevries@suse.de>
2132 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2134 * regcache.c (get_thread_arch_aspace_regcache): Same.
2136 2020-08-07 Tom Tromey <tromey@adacore.com>
2138 * ravenscar-thread.c
2139 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2141 (ravenscar_thread_target::wait): Check
2142 runtime_initialized.
2143 (ravenscar_thread_target::prepare_to_store)
2144 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2145 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2146 (ravenscar_thread_target::stopped_by_watchpoint)
2147 (ravenscar_thread_target::stopped_data_address)
2148 (ravenscar_thread_target::core_of_thread): Use
2149 scoped_restore_current_thread and
2150 set_base_thread_from_ravenscar_task.
2152 2020-08-07 Tom Tromey <tromey@adacore.com>
2154 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2156 2020-08-07 Tom Tromey <tromey@adacore.com>
2158 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2159 update_inferior_ptid before update_thread_list.
2160 (temporarily_change_regcache_ptid): New class.
2161 (ravenscar_thread_target::fetch_registers)
2162 (ravenscar_thread_target::store_registers)
2163 (ravenscar_thread_target::prepare_to_store): Use base thread when
2164 forwarding operation.
2166 2020-08-07 Tom Tromey <tromey@adacore.com>
2168 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2171 2020-08-07 Tom Tromey <tromey@adacore.com>
2173 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2175 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2177 (ravenscar_thread_target::add_thread): Rename from
2178 ravenscar_add_thread.
2179 (ravenscar_thread_target::update_thread_list): Use a lambda.
2180 (ravenscar_thread_target::xfer_partial): New method.
2182 2020-08-07 Tom Tromey <tromey@adacore.com>
2184 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2186 (iterate_over_live_ada_tasks): Change type of argument.
2187 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2190 2020-08-07 Tom Tromey <tromey@adacore.com>
2192 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2194 (ravenscar_thread_target::extra_thread_info): Remove.
2195 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2196 defer to target beneath for non-Ravenscar threads.
2198 2020-08-07 Tom Tromey <tromey@adacore.com>
2200 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2201 get_base_thread_from_ravenscar_task>: Now methods.
2202 <m_cpu_map>: New member.
2203 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2204 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2205 (ravenscar_thread_target::task_is_currently_active): Update.
2206 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2208 (ravenscar_thread_target::add_active_thread): Put initial thread
2211 2020-08-07 Tom Tromey <tromey@adacore.com>
2213 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2216 2020-08-07 Tom Tromey <tromey@adacore.com>
2218 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2219 runtime_initialized.
2221 2020-08-07 Tom Tromey <tromey@adacore.com>
2223 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2225 (ravenscar_thread_target::add_active_thread): Now public.
2226 (ravenscar_inferior_created): Call add_active_thread after pushing
2229 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2231 * regcache.c (ptid_regcache_map): New type.
2232 (target_ptid_regcache_map): New type.
2233 (regcaches): Change type to target_ptid_regcache_map.
2234 (get_thread_arch_aspace_regcache): Update to regcaches' new
2236 (regcache_thread_ptid_changed): Likewise.
2237 (registers_changed_ptid): Likewise.
2238 (regcaches_size): Likewise.
2239 (regcaches_test): Update.
2240 (regcache_thread_ptid_changed): Update.
2241 * regcache.h (regcache_up): New type.
2242 * gdbsupport/ptid.h (hash_ptid): New struct.
2244 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2246 * observable.h (thread_ptid_changed): Add parameter
2247 `process_stratum_target *`.
2248 * infrun.c (infrun_thread_ptid_changed): Add parameter
2249 `process_stratum_target *` and use it.
2250 (selftests): New namespace.
2251 (infrun_thread_ptid_changed): New function.
2252 (_initialize_infrun): Register selftest.
2253 * regcache.c (regcache_thread_ptid_changed): Add parameter
2254 `process_stratum_target *` and use it.
2255 (regcache_thread_ptid_changed): New function.
2256 (_initialize_regcache): Register selftest.
2257 * thread.c (thread_change_ptid): Pass target to
2258 thread_ptid_changed observable.
2260 2020-08-06 Caroline Tice <cmtice@google.com>
2262 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2263 (struct dwp_sections): Update field comments. Add loclists and
2265 (struct virtual_v2_dwo_sections): Rename struct to
2266 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2267 size & offset fields for loclists and rnglists.
2268 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2269 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2270 skipping dummy type units.
2271 (create_dwp_hash_table): Update the large comment above the function to
2272 discuss Version 5 DWP files as well, with references. Update all the
2273 version checks in the function to check for version 5 as well. Add new
2274 section at the end to create dwp hash table for version 5.
2275 (create_dwp_v2_section): Rename function to
2276 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2277 Add V5 to error message text.
2278 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2279 into calls to create_dwp_v2_or_v5_section.
2280 (create_dwo_unit_in_dwp_v5): New function.
2281 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2282 check for version2; add else clause to handle version 5.
2283 (open_and_init_dwo_file): Add code to check dwarf version & only call
2284 create_debug_types_hash_table (with sections.types) if version is not 5;
2285 else call create_debug_type_hash_table, with sections.info.
2286 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2288 (dwarf2_locate_v5_dwp_sections): New function.
2289 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2290 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2292 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2294 * regcache.h (class regcache): Remove friend
2295 registers_changed_ptid.
2296 <regcache_thread_ptid_changed>: Remove.
2297 <regcaches>: Remove.
2298 * regcache.c (regcache::regcaches): Rename to...
2299 (regcaches): ... this. Make static.
2300 (get_thread_arch_aspace_regcache): Update.
2301 (regcache::regcache_thread_ptid_changed): Rename to...
2302 (regcache_thread_ptid_changed): ... this. Update.
2303 (class regcache_access): Remove.
2304 (regcaches_test): Update.
2305 (_initialize_regcache): Update.
2306 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2309 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2311 * regcache.h (class regcache) <current_regcache>: Rename to...
2312 <regcaches>: ... this. Move doc here.
2313 * regcache.c (regcache::current_regcache) Rename to...
2314 (regcache::regcaches): ... this. Move doc to header.
2315 (get_thread_arch_aspace_regcache): Update.
2316 (regcache::regcache_thread_ptid_changed): Update.
2317 (registers_changed_ptid): Update.
2318 (class regcache_access) <current_regcache_size>: Rename to...
2319 <regcaches_size>: ... this.
2320 (current_regcache_test): Rename to...
2321 (regcaches_test): ... this.
2322 (_initialize_regcache): Update.
2324 2020-08-06 Victor Collod <vcollod@nvidia.com>
2326 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2328 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2330 * corelow.c (core_target::build_file_mappings): Don't output
2331 null pathname in warning.
2333 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2335 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2336 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2337 gdb.dwarf2/dw2-single-line-discriminators.exp,
2338 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2340 2020-08-05 Tom Tromey <tromey@adacore.com>
2343 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2344 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2345 Fix off-by-one and type size errors in ordinary case.
2347 2020-08-05 Tom de Vries <tdevries@suse.de>
2349 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2350 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2352 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2354 * frame.h (frame_id_p): Return bool.
2355 (frame_id_artificial_p): Return bool.
2356 (frame_id_eq): Return bool.
2357 (has_stack_frames): Return bool.
2358 (get_selected_frame): Fix typo in comment.
2359 (get_frame_pc_if_available): Return bool.
2360 (get_frame_address_in_block_if_available): Return bool.
2361 (get_frame_func_if_available): Return bool.
2362 (read_frame_register_unsigned): Return bool.
2363 (get_frame_register_bytes): Return bool.
2364 (safe_frame_unwind_memory): Return bool.
2365 (deprecated_frame_register_read): Return bool.
2366 (frame_unwinder_is): Return bool.
2367 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2369 <this_id::p>: Likewise.
2371 (frame_stash_add): Return bool.
2372 (get_frame_id): Use bool.
2373 (frame_id_build_special) Use bool.
2374 (frame_id_build_unavailable_stack): Use bool.
2375 (frame_id_build): Use bool.
2376 (frame_id_p): Return bool, use true/false instead of 1/0.
2377 (frame_id_artificial_p): Likewise.
2378 (frame_id_eq): Likewise.
2379 (frame_id_inner): Likewise.
2380 (get_frame_func_if_available): Likewise.
2381 (read_frame_register_unsigned): Likewise.
2382 (deprecated_frame_register_read): Likewise.
2383 (get_frame_register_bytes): Likewise.
2384 (has_stack_frames): Likewise.
2385 (inside_main_func): Likewise.
2386 (inside_entry_func): Likewise.
2387 (get_frame_pc_if_available): Likewise.
2388 (get_frame_address_in_block_if_available): Likewise.
2389 (frame_unwinder_is): Likewise.
2390 (safe_frame_unwind_memory): Likewise.
2391 (frame_unwind_arch): Likewise.
2393 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2395 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2396 type to cached_copy_status.
2397 (fprintf_frame): Adjust.
2398 (get_frame_func_if_available): Adjust.
2399 (frame_cleanup_after_sniffer): Adjust.
2401 2020-08-04 Mark Wielaard <mark@klomp.org>
2403 * MAINTAINERS (Write After Approval): Update email address.
2405 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2407 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2408 dynamic_prop::const_val.
2410 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2412 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2415 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2417 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2419 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2421 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2423 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2424 Jose E. Marchesi <jose.marchesi@oracle.com>
2426 * configure.tgt: Add entry for bpf-*-*.
2427 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2428 (ALLDEPFILES): Add bpf-tdep.c.
2429 * bpf-tdep.c: New file.
2430 * MAINTAINERS: Add bpf target and maintainer.
2431 * NEWS: Mention the support for the new target.
2433 2020-08-04 Tom de Vries <tdevries@suse.de>
2436 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2439 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2441 * syscalls/freebsd.xml: Regenerate.
2443 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2445 * syscalls/update-freebsd.sh: Fix usage and year range.
2447 2020-08-03 Tom de Vries <tdevries@suse.de>
2450 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2451 DW_LNE_lo_user/DW_LNE_hi_user range.
2453 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2456 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2459 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2461 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2463 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2465 * breakpoint.c (set_breakpoint_condition): Update the condition
2466 expressions after checking that the input condition string parses
2467 successfully and does not contain junk at the end.
2469 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2471 * breakpoint.c (set_breakpoint_condition): Update the
2472 condition string after parsing the new condition successfully.
2474 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2476 * proc-api.c (_STRUCTURED_PROC): Don't define.
2477 * proc-events.c: Likewise.
2478 * proc-flags.c: Likewise.
2479 * proc-why.c: Likewise.
2480 * procfs.c: Likewise.
2482 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2483 * configure, config.in: Regenerate.
2485 2020-07-30 Tom de Vries <tdevries@suse.de>
2488 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2489 m_red/m_green/m_blue in a union.
2491 2020-07-29 Tom de Vries <tdevries@suse.de>
2494 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2496 2020-07-28 Tom Tromey <tromey@adacore.com>
2499 * symtab.h (find_pc_partial_function_sym): Declare.
2500 * cli/cli-cmds.c (disassemble_command): Use
2501 find_pc_partial_function_sym. Check asm_demangle.
2502 * blockframe.c (cache_pc_function_sym): New global.
2503 (cache_pc_function_name): Remove.
2504 (clear_pc_function_cache): Update.
2505 (find_pc_partial_function_sym): New function, from
2506 find_pc_partial_function.
2507 (find_pc_partial_function): Rewrite using
2508 find_pc_partial_function_sym.
2510 2020-07-28 Tom Tromey <tromey@adacore.com>
2512 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2515 2020-07-28 Tom Tromey <tromey@adacore.com>
2517 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2518 <DW_OP_GNU_variable_value>: Cast to address type.
2520 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2522 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2523 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2524 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2525 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2526 (nbsd_get_siginfo_type): New.
2527 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2528 (_initialize_nbsd_tdep): New.
2530 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2533 * configure: Regenerated.
2535 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2538 * configure: Regenerated.
2540 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2542 * python/py-frame.c: Remove 'user-regs.h' include.
2543 (frapy_read_register): Rewrite to make use of
2544 gdbpy_parse_register_id.
2545 * python/py-registers.c (gdbpy_parse_register_id): New function,
2546 moved here from python/py-unwind.c. Updated the return type, and
2547 also accepts register descriptor objects.
2548 * python/py-unwind.c: Remove 'user-regs.h' include.
2549 (pyuw_parse_register_id): Moved to python/py-registers.c.
2550 (unwind_infopy_add_saved_register): Update to use
2551 gdbpy_parse_register_id.
2552 (pending_framepy_read_register): Likewise.
2553 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2555 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2557 * python/py-registers.c: Add 'user-regs.h' include.
2558 (register_descriptor_iter_find): New function.
2559 (register_descriptor_iterator_object_methods): New static global
2561 (register_descriptor_iterator_object_type): Add pointer to methods
2564 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2566 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2567 for all architectures on FreeBSD 11.3 and later.
2569 2020-07-27 Tom Tromey <tromey@adacore.com>
2571 * gcore.h (load_corefile): Don't declare.
2573 2020-07-27 Tom de Vries <tdevries@suse.de>
2575 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2576 * config.in: Regenerate.
2577 * configure: Regenerate.
2579 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2581 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2582 ws2tcpip.h. When checking whether socklen_t type is defined, use
2583 ws2tcpip.h if it is available and sys/socket.h isn't.
2584 * configure: Regenerate.
2585 * config.in: Regenerate.
2587 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2591 * valops.c (value_ind): Pass address to
2592 readjust_indirect_value_type.
2593 * value.c (readjust_indirect_value_type): Make parameter
2594 non-const, and add extra address parameter. Resolve original type
2596 * value.h (readjust_indirect_value_type): Update function
2597 signature and comment.
2599 2020-07-25 Tom de Vries <tdevries@suse.de>
2602 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2605 2020-07-24 Aaron Merey <amerey@redhat.com>
2607 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2608 * configure: Rebuild.
2610 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2613 * corelow.c (_initialize_corelow): Add period to help text
2614 for "maintenance print core-file-backed-mappings".
2616 2020-07-23 Pedro Alves <pedro@palves.net>
2618 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2619 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2621 * frame.c (frame_cache_generation, get_frame_cache_generation):
2623 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2624 (get_prev_frame_if_no_cycle): On exception, don't touch
2625 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2626 * frame.h (get_frame_cache_generation): Declare.
2628 2020-07-23 Tom de Vries <tdevries@suse.de>
2631 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2632 New default constructor.
2634 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2636 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2637 exclude non-statement entries.
2639 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2641 * NEWS (New commands): Mention new command
2642 "maintenance print core-file-backed-mappings".
2644 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2646 * corelow.c (gdbcmd.h): Include.
2647 (core_target::info_proc_mappings): New method.
2648 (get_current_core_target): New function.
2649 (maintenance_print_core_file_backed_mappings): New function.
2650 (_initialize_corelow): Add core-file-backed-mappings to
2651 "maint print" commands.
2653 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2655 * linux-tdep.c (dump_note_entry_p): New function.
2656 (linux_dump_mapping_p_ftype): New typedef.
2657 (linux_find_memory_regions_full): Add new parameter,
2658 should_dump_mapping_p.
2659 (linux_find_memory_regions): Adjust call to
2660 linux_find_memory_regions_full.
2661 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2662 call to linux_find_memory_regions_full.
2664 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2666 * corelow.c (solist.h, unordered_map): Include.
2667 (class core_target): Add field m_core_file_mappings and
2668 method build_file_mappings.
2669 (core_target::core_target): Call build_file_mappings.
2670 (core_target::~core_target): Free memory associated with
2671 m_core_file_mappings.
2672 (core_target::build_file_mappings): New method.
2673 (core_target::xfer_partial): Use m_core_file_mappings
2674 for memory transfers.
2675 * linux-tdep.c (linux_read_core_file_mappings): New
2677 (linux_core_info_proc_mappings): Rewrite to use
2678 linux_read_core_file_mappings.
2679 (linux_init_abi): Register linux_read_core_file_mappings.
2681 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2683 * arch-utils.c (default_read_core_file_mappings): New function.
2684 * arch-utils.c (default_read_core_file_mappings): Declare.
2685 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2686 * gdbarch.h, gdbarch.c: Regenerate.
2688 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2691 * corelow.c (core_target:xfer_partial): Revise
2692 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2693 case after first checking the stratum beneath the core
2695 (has_all_memory): Return true.
2696 * target.c (raw_memory_xfer_partial): Revise comment
2697 regarding use of has_all_memory.
2699 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2701 * exec.h (section_table_xfer_memory): Revise declaration,
2702 replacing section name parameter with an optional callback
2704 * exec.c (section_table_xfer_memory): Likewise.
2705 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2706 of section_table_xfer_memory.
2708 2020-07-22 Tom Tromey <tromey@adacore.com>
2710 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2711 lookup_symbol_search_name.
2713 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2715 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2716 redundant local variable.
2717 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2718 reference, not pointer, update code accordingly.
2720 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2721 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2723 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2724 * jit.c (jit_breakpoint_re_set_internal): Use the
2725 `skip_jit_symbol_lookup` field.
2727 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2728 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2730 * jit.c (jit_read_descriptor): Define the descriptor address once,
2732 (jit_breakpoint_deleted): Move the declaration of the loop variable
2733 `iter` into the loop header.
2734 (jit_breakpoint_re_set_internal): Move the declaration of the local
2735 variable `objf_data` to the first point of definition.
2736 (jit_event_handler): Move the declaration of local variables
2737 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2738 Rename `objf` to `jited`.
2740 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2742 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2744 * jit.c (get_jiter_objfile_data): Update.
2746 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2747 Simon Marchi <simon.marchi@polymtl.ca>
2749 * jit.c (struct jit_program_space_data): Remove.
2750 (jit_program_space_key): Remove.
2751 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2753 (get_jit_program_space_data): Remove.
2754 (jit_breakpoint_deleted): Iterate on all of the program space's
2756 (jit_inferior_init): Likewise.
2757 (jit_breakpoint_re_set_internal): Likewise. Also change return
2759 (jit_breakpoint_re_set): Pass current_program_space to
2760 jit_breakpoint_re_set_internal.
2762 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2764 * jit.h (struct jiter_objfile_data) <cached_code_address,
2765 jit_breakpoint>: Move to here from ...
2766 * jit.c (jit_program_space_data): ... here.
2767 (jiter_objfile_data::~jiter_objfile_data): Update.
2768 (jit_breakpoint_deleted): Update.
2769 (jit_breakpoint_re_set_internal): Update.
2771 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2773 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2775 (jit_read_descriptor): Remove NULL check.
2776 (jit_event_handler): Add an assertion.
2778 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2780 * jit.h (struct jit_objfile_data): Split into...
2781 (struct jiter_objfile_data): ... this ...
2782 (struct jited_objfile_data): ... and this.
2783 * objfiles.h (struct objfile) <jit_data>: Remove.
2784 <jiter_data, jited_data>: New fields.
2785 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2786 (jiter_objfile_data::~jiter_objfile_data): ... this.
2787 (get_jit_objfile_data): Rename to ...
2788 (get_jiter_objfile_data): ... this.
2789 (add_objfile_entry): Update.
2790 (jit_read_descriptor): Use get_jiter_objfile_data.
2791 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2792 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2793 (jit_inferior_exit_hook): Use objfile's jited_data field.
2795 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2797 * jit.h: Forward-declare `struct minimal_symbol`.
2798 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2799 constructor, destructor, and an objfile* field.
2800 * jit.c (jit_objfile_data): Remove.
2801 (struct jit_objfile_data): Migrate from here to jit.h.
2802 (jit_objfile_data::~jit_objfile_data): New destructor
2803 implementation with code moved from free_objfile_data.
2804 (free_objfile_data): Delete.
2805 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2806 (jit_find_objf_with_entry_addr): Ditto.
2807 (jit_inferior_exit_hook): Ditto.
2808 (_initialize_jit): Remove the call to
2809 register_objfile_data_with_cleanup.
2810 * objfiles.h (struct objfile) <jit_data>: New field.
2812 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2814 * jit.h: Forward-declare `struct objfile`.
2815 (jit_event_handler): Add a second parameter, the JITer objfile.
2816 * jit.c (jit_read_descriptor): Change the signature to take the
2817 JITer objfile as an argument instead of the jit_program_space_data.
2818 (jit_inferior_init): Update the call to jit_read_descriptor.
2819 (jit_event_handler): Use the new JITer objfile argument when calling
2820 jit_read_descriptor.
2821 * breakpoint.c (handle_jit_event): Update the call to
2822 jit_event_handler to pass the JITer objfile.
2824 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2826 * gdbarch.c: Regenerate.
2827 * gdbarch.h: Regenerate.
2828 * gdbarch.sh (handle_segmentation_fault): Remove method.
2829 * infrun.c (handle_segmentation_fault): Remove.
2830 (print_signal_received_reason): Remove call to
2831 handle_segmentation_fault.
2833 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2835 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2836 Rename to sparc64_linux_report_signal_info and add siggnal
2838 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2839 instead of sparc64_linux_handle_segmentation_fault.
2841 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2843 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2844 i386_linux_report_signal_info instead of
2845 i386_linux_handle_segmentation_fault.
2846 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2847 to i386_linux_report_signal_info and add siggnal argument.
2848 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2849 of i386_linux_handle_segmentation_fault.
2850 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2851 to i386_linux_report_signal_info and add siggnal argument.
2853 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2855 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2858 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2860 * gdbarch.c: Regenerate.
2861 * gdbarch.h: Regenerate.
2862 * gdbarch.sh (report_signal_info): New method.
2863 * infrun.c (print_signal_received_reason): Invoke gdbarch
2864 report_signal_info hook if present.
2866 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2868 * python/py-registers.c : Add 'unordered_map' include.
2869 (gdbpy_new_reggroup): Renamed to...
2870 (gdbpy_get_reggroup): ...this. Update to only create register
2871 group descriptors when needed.
2872 (gdbpy_reggroup_iter_next): Update.
2874 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2876 * python/py-registers.c (gdbpy_register_object_data): New static
2878 (gdbpy_register_object_data_init): New function.
2879 (gdbpy_new_register_descriptor): Renamed to...
2880 (gdbpy_get_register_descriptor): ...this, and update to reuse
2881 existing register descriptors where possible.
2882 (gdbpy_register_descriptor_iter_next): Update.
2883 (gdbpy_initialize_registers): Register new gdbarch data.
2885 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2887 * linux-nat.c (stopped_pids): Make static.
2889 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2892 * gdbtypes.c (ada_discrete_type_low_bound,
2893 ada_discrete_type_high_bound): Handle undefined bounds.
2895 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2897 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2899 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2902 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2904 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2905 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2906 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2907 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2908 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2911 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2913 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2914 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2915 which are deprecated in Guile 3.0.
2916 * configure.ac (try_guile_versions): Add "guile-3.0".
2917 * configure (try_guile_versions): Regenerate.
2918 * NEWS: Update entry.
2920 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2921 Doug Evans <dje@google.com>
2924 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2925 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2926 USING_GUILE_BEFORE_2_2.
2927 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2928 Change type to 'scm_t_port_type *'.
2929 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2930 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2931 parameter and honor it. Update callers.
2932 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2933 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2935 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2936 USING_GUILE_BEFORE_2_2.
2937 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2938 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2939 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2940 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2941 and 'SCM_PORT_TYPE'.
2942 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2943 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2944 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2945 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2946 [!USING_GUILE_BEFORE_2_2]: New functions.
2947 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2948 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2949 'gdbscm_memory_port_read'.
2950 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2951 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2952 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2954 (ioscm_init_memory_port): Remove.
2955 (ioscm_init_memory_port_stream): New function
2956 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2958 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2959 Return scm_from_uint (0).
2960 (gdbscm_set_memory_port_read_buffer_size_x)
2961 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2962 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2963 Return scm_from_uint (0).
2964 (gdbscm_set_memory_port_write_buffer_size_x)
2965 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2966 * configure.ac (try_guile_versions): Add "guile-2.2".
2967 * configure: Regenerate.
2970 2020-07-18 Tom Tromey <tom@tromey.com>
2972 * linux-nat.c (linux_multi_process): Remove.
2973 (linux_nat_target::supports_multi_process): Return true.
2975 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2977 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2978 (riscv_lookup_target_description): Return pointer out of
2980 * target-descriptions.c (allocate_target_description): Add
2982 (target_desc_deleter::operator()): Likewise.
2983 * target-descriptions.h (struct target_desc_deleter): Moved to
2985 (target_desc_up): Likewise.
2987 2020-07-17 Tom Tromey <tromey@adacore.com>
2989 * linux-nat.c (linux_nat_target::supports_non_stop)
2990 (linux_nat_target::always_non_stop_p): Use "true".
2991 (linux_nat_target::supports_disable_randomization): Use "true" and
2994 2020-07-16 Caroline Tice <cmtice@google.com>
2996 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2997 (RNGLIST_HEADER_SIZE64): New constant definition.
2998 (struct dwop_section_names): Add rnglists_dwo.
2999 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3000 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3001 (struct dwo_sections): Add rnglists field.
3002 (read_attribut_reprocess): Add tag parameter.
3003 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3004 (cu_debug_rnglists_section): New function (decl & definition).
3005 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3006 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3007 die whose range is being checked; get rnglist section from
3008 cu_debug_rnglists_section, to get from either objfile or dwo file as
3009 appropriate. Add cases for DW_RLE_base_addressx,
3010 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3011 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3012 test inside if-condition and updating complaint message.
3013 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3014 dwarf2_rnglists_process.
3015 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3016 dwarf2_ranges_process.
3017 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3018 need_ranges_base and update comment appropriately. Also pass die tag
3019 to dwarf2_ranges_read.
3020 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3021 need_ranges_base and update comment appropriately. Also pass die tag
3022 to dwarf2_ranges_process.
3023 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3024 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3025 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3026 need_ranges_base and update comment appropriately. Also pass die tag
3027 to read_attribute_reprocess and dwarf2_ranges_read.
3028 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3029 and update function comment appropriately.
3030 (read_loclist_index): Call read_loclists_rnglists_header instead of
3031 read_loclist_header.
3032 (read_rnglist_index): New function.
3033 (read_attribute_reprocess): Add tag parameter. Add code for
3034 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3035 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3037 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3039 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3042 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3044 * arch-utils.c (show_architecture): Update formatting of messages.
3046 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3048 * gdbtypes.h (struct type) <bounds>: Handle array and string
3050 * ada-lang.c (assign_aggregate): Use type::bounds on
3052 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3053 * c-varobj.c (c_number_of_children): Likewise.
3054 (c_describe_child): Likewise.
3055 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3056 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3057 (f_type_print_base): Likewise.
3058 * f-valprint.c (f77_array_offset_tbl): Likewise.
3059 (f77_get_upperbound): Likewise.
3060 (f77_print_array_1): Likewise.
3061 * guile/scm-type.c (gdbscm_type_range): Likewise.
3062 * m2-typeprint.c (m2_array): Likewise.
3063 (m2_is_long_set_of_type): Likewise.
3064 * m2-valprint.c (get_long_set_bounds): Likewise.
3065 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3066 * python/py-type.c (typy_range): Likewise.
3067 * rust-lang.c (rust_internal_print_type): Likewise.
3068 * type-stack.c (type_stack::follow_types): Likewise.
3069 * valarith.c (value_subscripted_rvalue): Likewise.
3070 * valops.c (value_cast): Likewise.
3072 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3074 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3075 callers to use the equivalent accessor methods.
3077 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3079 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3080 (struct type) <bit_stride>: New method.
3081 (TYPE_BIT_STRIDE): Remove.
3082 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3084 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3086 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3087 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3088 callers to use the equivalent accessor methods instead.
3090 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3092 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3093 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3094 callers to use the equivalent accessor methods instead.
3096 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3098 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3099 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3100 to use dynamic_prop::kind.
3102 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3104 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3105 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3106 to get the bound property's kind and check against
3109 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3111 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3112 all callers to use type::range_bounds followed by
3113 dynamic_prop::{low,high}.
3115 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3117 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3118 const_val, set_const_val, baton, set_locexpr, set_loclist,
3119 set_addr_offset, variant_parts, set_variant_parts,
3120 original_type, set_original_type>: New methods.
3121 <kind>: Rename to...
3122 <m_kind>: ... this. Update all users to use the new methods
3124 <data>: Rename to...
3125 <m_data>: ... this. Update all users to use the new methods
3128 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3130 * gdbtypes.c (get_discrete_bounds): Return failure if
3131 the range type's bounds are not both defined and constant
3133 (get_array_bounds): Update comment. Remove undefined bound check.
3135 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3137 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3138 the type::bounds method directly.
3140 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3142 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3143 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3144 are used to set the range type's bounds to use set_bounds.
3146 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3148 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3150 2020-07-10 Pedro Alves <pedro@palves.net>
3152 * gdbthread.h (inferior_ref): Define.
3153 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3154 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3156 (scoped_restore_current_thread::restore):
3157 Adjust to gdb::ref_ptr.
3158 (scoped_restore_current_thread::~scoped_restore_current_thread):
3159 Remove manual decref handling.
3160 (scoped_restore_current_thread::scoped_restore_current_thread):
3162 inferior_ref::new_reference/thread_info_ref::new_reference.
3163 Incref the thread before calling get_frame_id instead of after.
3164 Let TARGET_CLOSE_ERROR propagate.
3166 2020-07-10 Pedro Alves <pedro@palves.net>
3168 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3169 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3170 NOT_AVAILABLE_ERROR.
3171 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3172 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3174 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3175 Pedro Alves <pedro@palves.net>
3178 * infrun.c (threads_are_resumed_pending_p): Delete.
3179 (do_target_wait): Remove threads_are_executing and
3180 threads_are_resumed_pending_p checks from the inferior_matches
3181 lambda. Update comments.
3183 2020-07-10 Pedro Alves <pedro@palves.net>
3186 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3189 2020-07-10 Pedro Alves <pedro@palves.net>
3192 * infrun.c (handle_no_resumed): Handle multiple targets.
3194 2020-07-10 Pedro Alves <pedro@palves.net>
3197 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3200 2020-07-10 Pedro Alves <pedro@palves.net>
3203 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3204 threads, not all threads.
3206 2020-07-10 Pedro Alves <pedro@palves.net>
3209 * remote.c (remote_target::open_1): Pass remote target pointer as
3210 data to create_async_event_handler.
3211 (remote_async_inferior_event_handler): Mark async event handler
3212 before returning if the remote target still has either pending
3213 events or unacknowledged notifications.
3215 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3217 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3219 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3222 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3224 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3227 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3229 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3230 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3231 AT_FREEBSD_PS_STRINGS.
3233 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3235 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3236 of debugfile path on Windows.
3238 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3240 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3243 2020-07-08 Tom Tromey <tromey@adacore.com>
3245 * ada-lang.c (ada_exception_message_1): Use read_memory.
3247 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3250 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3251 special handling for inline frames.
3252 * findvar.c (value_of_register_lazy): Skip inline frames when
3253 creating lazy register values.
3254 * frame.c (frame_id_computed_p): Delete definition.
3255 * frame.h (frame_id_computed_p): Delete declaration.
3257 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3259 * NEWS: Mention additions to Python API.
3260 * python/py-arch.c (archpy_register_groups): New function.
3261 (arch_object_methods): Add 'register_groups' method.
3262 * python/py-registers.c (reggroup_iterator_object): New struct.
3263 (reggroup_object): New struct.
3264 (gdbpy_new_reggroup): New function.
3265 (gdbpy_reggroup_to_string): New function.
3266 (gdbpy_reggroup_name): New function.
3267 (gdbpy_reggroup_iter): New function.
3268 (gdbpy_reggroup_iter_next): New function.
3269 (gdbpy_new_reggroup_iterator): New function
3270 (gdbpy_initialize_registers): Register new types.
3271 (reggroup_iterator_object_type): Define new Python type.
3272 (gdbpy_reggroup_getset): New static global.
3273 (reggroup_object_type): Define new Python type.
3274 * python/python-internal.h
3276 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3278 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3279 * python/py-arch.c (archpy_registers): New function.
3280 (arch_object_methods): Add 'registers' method.
3281 * python/py-registers.c: New file.
3282 * python/python-internal.h
3283 (gdbpy_new_register_descriptor_iterator): Declare.
3284 (gdbpy_initialize_registers): Declare.
3285 * python/python.c (do_start_initialization): Call
3286 gdbpy_initialize_registers.
3287 * NEWS: Mention additions to the Python API.
3289 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3291 * NEWS: Mention new Python API method.
3292 * python/py-unwind.c (pending_framepy_architecture): New function.
3293 (pending_frame_object_methods): Add architecture method.
3295 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3297 * gdbarch.c: Regenerate.
3298 * gdbarch.h: Regenerate.
3299 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3300 (gdbarch_data): Use internal_error for the case where
3301 deprecated_set_gdbarch_data was originally needed.
3302 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3303 and use passed in obstack.
3304 (libunwind_frame_set_descr): Should no longer get back NULL from
3306 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3308 * user-regs.c (user_regs_init): Update parameters, and use passed
3310 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3311 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3313 2020-07-06 Tom de Vries <tdevries@suse.de>
3315 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3316 End-Of-Sequence in lte_is_less_than.
3317 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3318 "gdb: Don't reorder line table entries too much when sorting".
3320 2020-07-06 Tom de Vries <tdevries@suse.de>
3323 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3325 2020-07-05 Tom de Vries <tdevries@suse.de>
3328 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3329 std::uncaught_exceptions instead of deprecated
3330 std::uncaught_exception.
3332 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3334 * macroexp.h (macro_stringify): Return
3335 gdb::unique_xmalloc_ptr<char>.
3336 * macroexp.c (macro_stringify): Likewise.
3337 * macrotab.c (fixup_definition): Update.
3339 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3341 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3342 (lex_one_token): Update.
3343 * macroexp.c (struct macro_buffer) <release>: Return
3344 gdb::unique_xmalloc_ptr<char>.
3345 (macro_stringify): Update.
3346 (macro_expand): Update.
3347 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3348 * macroexp.h (macro_expand_next): Likewise.
3350 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3352 * macroexp.h (macro_lookup_ftype): Remove.
3353 (macro_expand, macro_expand_once, macro_expand_next): Remove
3354 lookup function parameters, add scope parameter.
3355 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3356 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3357 * macroscope.h (standard_macro_lookup): Change parameter type
3359 * macroscope.c (standard_macro_lookup): Likewise.
3360 * c-exp.y (lex_one_token): Update.
3361 * macrocmd.c (macro_expand_command): Likewise.
3362 (macro_expand_once_command): Likewise.
3364 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3366 * inf-loop.c (inferior_event_handler): Remove client_data param.
3367 * inf-loop.h (inferior_event_handler): Likewise.
3368 * infcmd.c (step_1): Adjust.
3369 * infrun.c (proceed): Adjust.
3370 (fetch_inferior_event): Remove client_data param.
3371 (infrun_async_inferior_event_handler): Adjust.
3372 * infrun.h (fetch_inferior_event): Remove `void *` param.
3373 * linux-nat.c (handle_target_event): Adjust.
3374 * record-btrace.c (record_btrace_handle_async_inferior_event):
3376 * record-full.c (record_full_async_inferior_event_handler):
3378 * remote.c (remote_async_inferior_event_handler): Adjust.
3380 2020-07-01 Tom Tromey <tom@tromey.com>
3382 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3383 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3385 2020-07-01 Tom Tromey <tom@tromey.com>
3387 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3389 (tui_win_info::make_window): Merge with
3390 tui_gen_win_info::make_window.
3391 (tui_win_info::make_visible): Move from tui_gen_win_info.
3392 * tui/tui-win.c (tui_win_info::max_width): Move from
3394 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3396 <window_factory>: Likewise.
3397 * tui/tui-layout.c (tui_win_info::resize): Move from
3399 (make_standard_window): Change return type.
3400 (get_locator_window, tui_get_window_by_name): Likewise.
3401 (tui_layout_window::apply): Remove a cast.
3402 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3403 (struct tui_win_info): Merge with tui_gen_win_info.
3404 (struct tui_gen_win_info): Remove.
3406 2020-07-01 Tom Tromey <tom@tromey.com>
3408 * tui/tui-stack.h (struct tui_locator_window): Derive from
3410 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3411 <can_box>: New method.
3413 2020-07-01 Tom Tromey <tom@tromey.com>
3415 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3417 2020-07-01 Tom Tromey <tom@tromey.com>
3419 * tui/tui-regs.c (tui_data_window::display_registers_from)
3420 (tui_data_window::display_registers_from)
3421 (tui_data_window::first_data_item_displayed)
3422 (tui_data_window::delete_data_content_windows): Update.
3423 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3425 (tui_data_window::check_register_values): Update.
3426 (tui_data_item_window::rerender): Add parameters. Update.
3427 (tui_data_item_window::refresh_window): Remove.
3428 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3430 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3432 <refresh_window, max_height, min_height>: Remove.
3433 <rerender>: Add parameters.
3434 <x, y, visible>: New members.
3435 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3436 <m_item_width>: New member.
3438 2020-07-01 Tom Tromey <tom@tromey.com>
3440 * tui/tui-regs.c (tui_data_window::show_register_group)
3441 (tui_data_window::check_register_values): Update.
3442 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3445 2020-07-01 Tom Tromey <tom@tromey.com>
3447 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3450 2020-07-01 Tom Tromey <tom@tromey.com>
3452 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3453 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3455 2020-07-01 Tom Tromey <tom@tromey.com>
3457 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3458 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3459 (struct tui_line_or_address): Move from tui-data.h.
3460 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3461 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3462 (tui_cmd_window, tui_source_window_base, tui_source_window)
3463 (tui_disasm_window): Don't declare.
3464 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3466 (SINGLE_KEY): Move to tui-stack.c.
3468 2020-07-01 Tom Tromey <tom@tromey.com>
3470 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3472 * tui/tui-regs.c (class tab_expansion_file): New.
3473 (tab_expansion_file::write): New method.
3474 (tui_register_format): Change return type. Use
3476 (tui_get_register, tui_data_window::display_registers_from)
3477 (tui_data_item_window::rerender): Update.
3478 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3479 * tui/tui-io.c (tui_expand_tabs): Remove.
3481 2020-07-01 Tom Tromey <tom@tromey.com>
3483 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3485 2020-07-01 Fangrui Song <maskray@google.com>
3487 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3489 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3491 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3492 forms for DW_AT_associated and DW_AT_allocated attributes,
3493 which is already checked in function attr_to_dynamic_prop.
3495 2020-06-30 Tom Tromey <tromey@adacore.com>
3497 * dwarf2/read.c (quirk_rust_enum): Correctly call
3498 alloc_rust_variant for default-less enum.
3500 2020-06-30 Tom Tromey <tromey@adacore.com>
3503 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3506 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3508 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3509 * gdbarch.h: Re-generate.
3511 2020-06-28 Tom Tromey <tom@tromey.com>
3513 * command.h (cmd_types): Remove.
3514 (cmd_type): Don't declare.
3515 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3517 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3518 * cli/cli-decode.c (cmd_type): Remove.
3520 2020-06-27 Pedro Alves <palves@redhat.com>
3522 * fork-child.c (prefork_hook): Adjust.
3523 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3525 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3526 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3527 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3528 Remove declarations.
3529 (struct inferior) <set_tty, tty>: New methods.
3530 (struct inferior) <terminal>: Rename to ...
3531 (struct inferior) <m_terminal>: ... this and make private.
3532 * main.c (captured_main_1): Adjust.
3533 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3534 (mi_cmd_inferior_tty_show): Adjust.
3535 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3536 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3538 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3540 * configure.ac: Add --enable-libctf: handle --disable-static
3542 * acinclude.m4: sinclude ../config/enable.m4.
3543 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3544 (LIBCTF): Substitute in.
3545 (CTF_DEPS): New, likewise.
3546 (CLIBS): libctf needs symbols from libbfd: move earlier.
3547 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3549 * ctfread.c: Surround in ENABLE_LIBCTF.
3550 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3551 * configure: Regenerate.
3552 * config.in: Likewise.
3554 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3556 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3558 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3560 * inferior.h (struct inferior) <terminal>: Change type to
3561 gdb::unique_xmalloc_ptr<char>.
3562 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3563 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3564 field, adjust to unique pointer.
3565 (get_inferior_io_terminal): Adjust to unique pointer.
3567 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3569 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3570 registers, not just the known core set of registers.
3572 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3574 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3575 fflags, frm, and fcsr registers.
3576 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3578 (riscv_tdesc_unknown_reg): New function.
3579 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3580 tdesc_use_registers.
3581 * riscv-tdep.h (struct gdbarch_tdep): Add
3582 unknown_csrs_first_regnum, unknown_csrs_count,
3583 duplicate_fflags_regnum, duplicate_frm_regnum, and
3584 duplicate_fcsr_regnum fields.
3586 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3588 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3589 callback, use the callback (when not null) to help number unknown
3591 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3592 (tdesc_use_registers): Add extra parameter to declaration.
3594 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3596 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3598 (class riscv_pending_register_alias): Likewise.
3599 (riscv_register_feature::register_info): Change 'required_p' field
3600 to 'required', and change its type. Add 'check' member function.
3601 (riscv_register_feature::register_info::check): Define new member
3603 (riscv_xreg_feature): Change initialisation of 'required' field.
3604 (riscv_freg_feature): Likewise.
3605 (riscv_virtual_feature): Likewise.
3606 (riscv_csr_feature): Likewise.
3607 (riscv_check_tdesc_feature): Take extra parameter, the csr
3608 tdesc_feature, rewrite the function to use the new
3609 riscv_register_feature::register_info::check function.
3610 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3612 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3614 * features/Makefile: Remove all references to the deleted files
3616 * features/riscv/32bit-csr.c: Deleted.
3617 * features/riscv/32bit-csr.xml: Deleted.
3618 * features/riscv/64bit-csr.c: Deleted.
3619 * features/riscv/64bit-csr.xml: Deleted.
3620 * features/riscv/rebuild-csr-xml.sh: Deleted.
3622 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3624 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3625 whitespace error for declaration of names member variable.
3626 (struct riscv_register_feature): Add new prefer_first_name member
3627 variable, and fix whitespace error in declaration of registers.
3628 (riscv_xreg_feature): Initialize prefer_first_name field.
3629 (riscv_freg_feature): Likewise.
3630 (riscv_virtual_feature): Likewise.
3631 (riscv_csr_feature): Likewise.
3632 (riscv_register_name): Expand on comments. Remove register name
3633 modifications for CSR and virtual registers.
3635 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3637 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3640 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3642 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3644 (class riscv_pending_register_alias): New class.
3645 (riscv_check_tdesc_feature): Take vector of pending aliases and
3646 populate it as appropriate.
3647 (riscv_setup_register_aliases): Delete.
3648 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3649 to riscv_check_tdesc_feature in all cases. Use the vector to
3650 create the register aliases.
3652 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3654 * sol2-tdep.c (sol2_static_transform_name): Remove.
3655 (sol2_init_abi): Don't register it.
3656 * gdbarch.sh (static_transform_name): Remove.
3657 * gdbarch.c, gdbarch.h: Regenerate.
3659 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3660 gdbarch_static_transform_name.
3661 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3662 * stabsread.c (define_symbol) <'X'>: Remove.
3663 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3666 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3667 <'S'>: Remove call to gdbarch_static_transform_name.
3669 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3671 * procfs.c (procfs_pre_trace): New function.
3672 (procfs_target::create_inferior): Pass it to fork_inferior.
3674 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3676 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3677 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3678 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3679 sol2-tdep.o, sparc-sol2-tdep.o.
3680 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3681 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3682 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3683 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3685 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3687 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3688 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3690 Remove calls to set_gdbarch_skip_solib_resolver,
3691 set_gdbarch_core_pid_to_str.
3692 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3693 (i386_sol2_static_transform_name): Remove.
3694 (i386_sol2_init_abi): Call sol2_init_abi.
3695 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3696 set_gdbarch_static_transform_name,
3697 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3698 Use sol2_sigtramp_p.
3699 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3700 (sol2_sigtramp_p): New function.
3701 (sol2_static_transform_name): New function.
3702 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3703 (sol2_init_abi): New function.
3704 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3705 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3706 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3707 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3708 (sparc_sol2_static_transform_name): Remove.
3709 (sparc32_sol2_init_abi): Call sol2_init_abi.
3710 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3711 set_gdbarch_static_transform_name,
3712 set_gdbarch_skip_solib_resolver,
3713 set_gdbarch_core_pid_to_str.
3714 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3715 (sparc_sol2_static_transform_name): Remove
3716 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3717 call sol2_sigtramp_p.
3718 (sparc64_sol2_init_abi): Call sol2_init_abi.
3719 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3720 set_gdbarch_static_transform_name,
3721 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3723 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3725 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3726 * exec.c (validate_exec_file): If from_tty, set both
3727 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3728 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3729 and from_tty, unconditionally ask a confirmation.
3731 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3733 * target-descriptions.c (tdesc_architecture_name): Protect against
3734 NULL pointer dereference.
3735 (maint_print_xml_tdesc_cmd): New function.
3736 (_initialize_target_descriptions): Register new 'maint print
3737 xml-tdesc' command and give it the filename completer.
3738 * NEWS: Mention new 'maint print xml-tdesc' command.
3740 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3742 * target-descriptions.c (class tdesc_compatible_info): New class.
3743 (struct target_desc): Change type of compatible vector.
3744 (tdesc_compatible_p): Update for change in type of
3745 target_desc::compatible.
3746 (tdesc_compatible_info_list): New function.
3747 (tdesc_compatible_info_arch_name): New function.
3748 (tdesc_add_compatible): Update for change in type of
3749 target_desc::compatible.
3750 (print_c_tdesc::visit_pre): Likewise.
3752 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3754 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3755 whitespace to underscore.
3756 (maint_print_c_tdesc_cmd): Use fake filename for target
3757 descriptions that came from the target.
3758 (_initialize_target_descriptions): Add filename command completion
3759 for 'maint print c-tdesc'.
3761 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3763 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3766 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3768 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3770 (dwarf2_find_location_expression): Likewise.
3771 (call_site_parameter_matches): Likewise.
3772 (dwarf2_compile_expr_to_ax): Likewise.
3773 (disassemble_dwarf_expression): Likewise.
3774 (loclist_describe_location): Likewise.
3776 2020-06-23 Pedro Alves <palves@redhat.com>
3778 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3779 progspace-and-thread.h. Include scoped-mock-context.h instead.
3780 (register_to_value_test): Use scoped_mock_context.
3781 * regcache.c: Include "scoped-mock-context.h".
3782 (cooked_read_test): Don't error out if a target is already pushed.
3783 Use scoped_mock_context. Adjust.
3784 * scoped-mock-context.h: New file.
3786 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3788 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3790 (ada_language::is_string_type_p): New member function.
3791 * c-lang.c (c_language_data): Delete la_is_string_type_p
3793 (cplus_language_data): Likewise.
3794 (asm_language_data): Likewise.
3795 (minimal_language_data): Likewise.
3796 * d-lang.c (d_language_data): Likewise.
3797 * f-lang.c (f_is_string_type_p): Delete function, implementation
3798 moved to f_language::is_string_type_p.
3799 (f_language_data): Delete la_is_string_type_p initializer.
3800 (f_language::is_string_type_p): New member function,
3801 implementation from f_is_string_type_p.
3802 * go-lang.c (go_is_string_type_p): Delete function, implementation
3803 moved to go_language::is_string_type_p.
3804 (go_language_data): Delete la_is_string_type_p initializer.
3805 (go_language::is_string_type_p): New member function,
3806 implementation from go_is_string_type_p.
3807 * language.c (language_defn::is_string_type_p): Define new member
3809 (default_is_string_type_p): Make static, add comment copied from
3811 (unknown_language_data): Delete la_is_string_type_p initializer.
3812 (unknown_language::is_string_type_p): New member function.
3813 (auto_language_data): Delete la_is_string_type_p initializer.
3814 (auto_language::is_string_type_p): New member function.
3815 * language.h (language_data): Delete la_is_string_type_p field.
3816 (language_defn::is_string_type_p): Declare new function.
3817 (default_is_string_type_p): Delete desclaration, move comment to
3819 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3820 moved to m2_language::is_string_type_p.
3821 (m2_language_data): Delete la_is_string_type_p initializer.
3822 (m2_language::is_string_type_p): New member function,
3823 implementation from m2_is_string_type_p.
3824 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3826 * opencl-lang.c (opencl_language_data): Likewise.
3827 * p-lang.c (pascal_is_string_type_p): Delete function,
3828 implementation moved to pascal_language::is_string_type_p.
3829 (pascal_language_data): Delete la_is_string_type_p initializer.
3830 (pascal_language::is_string_type_p): New member function,
3831 implementation from pascal_is_string_type_p.
3832 * rust-lang.c (rust_is_string_type_p): Delete function,
3833 implementation moved to rust_language::is_string_type_p.
3834 (rust_language_data): Delete la_is_string_type_p initializer.
3835 (rust_language::is_string_type_p): New member function,
3836 implementation from rust_is_string_type_p.
3837 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3840 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3842 * ada-lang.c (ada_language_data): Delete la_print_typedef
3844 (ada_language::print_typedef): New member function.
3845 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3846 (cplus_language_data): Likewise.
3847 (asm_language_data): Likewise.
3848 (minimal_language_data): Likewise.
3849 * d-lang.c (d_language_data): Likewise.
3850 * f-lang.c (f_language_data): Likewise.
3851 (f_language::print_typedef): New member function.
3852 * go-lang.c (go_language_data): Delete la_print_typedef
3854 * language.c (language_defn::print_typedef): Define member
3856 (unknown_language_data): Delete la_print_typedef initializer.
3857 (unknown_language::print_typedef): New member function.
3858 (auto_language_data): Delete la_print_typedef initializer.
3859 (auto_language::print_typedef): New member function.
3860 * language.h (language_data): Delete la_print_typedef field.
3861 (language_defn::print_typedef): Declare new member function.
3862 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3863 (default_print_typedef): Delete declaration.
3864 * m2-lang.c (m2_language_data): Delete la_print_typedef
3866 (m2_language::print_typedef): New member function.
3867 * objc-lang.c (objc_language_data): Delete la_print_typedef
3869 * opencl-lang.c (opencl_language_data): Likewise.
3870 * p-lang.c (pascal_language_data): Likewise.
3871 (pascal_language::print_typedef): New member function.
3872 * rust-lang.c (rust_print_typedef): Delete function,
3873 implementation moved to rust_language::print_typedef.
3874 (rust_language): Delete la_print_typedef initializer.
3875 (rust_language::print_typedef): New member function,
3876 implementation from rust_print_typedef.
3877 * typeprint.c (default_print_typedef): Delete.
3879 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3881 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3882 (ada_language::printstr): New member function.
3883 * c-lang.c (c_language_data): Delete la_printstr initializer.
3884 (cplus_language_data): Likewise.
3885 (asm_language_data): Likewise.
3886 (minimal_language_data): Likewise.
3887 * d-lang.c (d_language_data): Likewise.
3888 * f-lang.c (f_printstr): Rename to f_language::printstr.
3889 (f_language_data): Delete la_printstr initializer.
3890 (f_language::printstr): New member function, implementation from
3892 * go-lang.c (go_language_data): Delete la_printstr initializer.
3893 * language.c (language_defn::printstr): Define new member
3895 (unk_lang_printstr): Delete.
3896 (unknown_language_data): Delete la_printstr initializer.
3897 (unknown_language::printstr): New member function.
3898 (auto_language_data): Delete la_printstr initializer.
3899 (auto_language::printstr): New member function.
3900 * language.h (language_data): Delete la_printstr field.
3901 (language_defn::printstr): Declare new member function.
3902 (LA_PRINT_STRING): Update call to printstr.
3903 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3904 (m2_language_data): Delete la_printstr initializer.
3905 (m2_language::printstr): New member function, implementation from
3907 * objc-lang.c (objc_language_data): Delete la_printstr
3909 * opencl-lang.c (opencl_language_data): Likewise.
3910 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3911 (pascal_language_data): Delete la_printstr initializer.
3912 (pascal_language::printstr): New member function, implementation
3913 from pascal_printstr.
3914 * p-lang.h (pascal_printstr): Delete declaration.
3915 * rust-lang.c (rust_printstr): Update header comment.
3916 (rust_language_data): Delete la_printstr initializer.
3917 (rust_language::printstr): New member function.
3919 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3921 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3922 (ada_language::printchar): New member function.
3923 * c-lang.c (c_language_data): Delete la_printchar initializer.
3924 (cplus_language_data): Likewise.
3925 (asm_language_data): Likewise.
3926 (minimal_language_data): Likewise.
3927 * d-lang.c (d_language_data): Likewise.
3928 * f-lang.c (f_printchar): Rename to f_language::printchar.
3929 (f_language_data): Delete la_printchar initializer.
3930 (f_language::printchar): New member function, implementation from
3932 * go-lang.c (go_language_data): Delete la_printchar initializer.
3933 * language.c (unk_lang_printchar): Delete.
3934 (language_defn::printchar): Define new member function.
3935 (unknown_language_data): Delete la_printchar initializer.
3936 (unknown_language::printchar): New member function.
3937 (auto_language_data): Delete la_printchar initializer.
3938 (auto_language::printchar): New member function.
3939 * language.h (language_data): Delete la_printchar field.
3940 (language_defn::printchar): Declare new member function.
3941 (LA_PRINT_CHAR): Update call to printchar.
3942 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3943 (m2_language::printchar): New member function.
3944 * objc-lang.c (objc_language_data): Delete la_printchar
3946 * opencl-lang.c (opencl_language_data): Likewise.
3947 * p-lang.c (pascal_language_data): Delete la_printchar
3949 (pascal_language::printchar): New member function.
3950 * rust-lang.c (rust_printchar): Rename to
3951 rust_language::printchar.
3952 (rust_language_data): Delete la_printchar initializer.
3953 (rust_language::printchar): New member function, implementation
3954 from rust_printchar.
3956 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3958 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3959 (ada_language_data): Delete la_emitchar initializer.
3960 (ada_language::emitchar): New member function, implementation from
3962 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3963 (cplus_language_data): Likewise.
3964 (asm_language_data): Likewise.
3965 (minimal_language_data): Likewise.
3966 * d-lang.c (d_language_data): Likewise.
3967 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3968 (f_language_data): Delete la_emitchar initializer.
3969 (f_language::emitchar): New member function, implementation from
3971 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3972 * language.c (unk_lang_emit_char): Delete.
3973 (language_defn::emitchar): New member function definition.
3974 (unknown_language_data): Delete la_emitchar initializer.
3975 (unknown_language::emitchar): New member function.
3976 (auto_language_data): Delete la_emitchar initializer.
3977 (auto_language::emitchar): New member function.
3978 * language.h (language_data): Delete la_emitchar field.
3979 (language_defn::emitchar): New member field declaration.
3980 (LA_EMIT_CHAR): Update call to emitchar.
3981 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3982 (m2_language_data): Delete la_emitchar initializer.
3983 (m2_language::emitchar): New member function, implementation from
3985 * objc-lang.c (objc_language_data): Delete la_emitchar
3987 * opencl-lang.c (opencl_language_data): Likewise.
3988 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3989 (pascal_language_data): Delete la_emitchar initializer.
3990 (pascal_language::emitchar): New member function, implementation
3991 from pascal_emit_char.
3992 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3993 (rust_language_data): Delete la_emitchar initializer.
3994 (rust_language::emitchar): New member function, implementation
3997 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3999 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4000 (ada_language_data): Delete la_post_parser initializer.
4001 (ada_language::post_parser): New member function.
4002 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4003 (cplus_language_data): Likewise.
4004 (asm_language_data): Likewise.
4005 (minimal_language_data): Likewise.
4006 * d-lang.c (d_language_data): Likewise.
4007 * f-lang.c (f_language_data): Likewise.
4008 * go-lang.c (go_language_data): Likewise.
4009 * language.c (unknown_language_data): Likewise.
4010 (auto_language_data): Likewise.
4011 * language.h (language_data): Delete la_post_parser field.
4012 (language_defn::post_parser): New member function.
4013 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4014 * objc-lang.c (objc_language_data): Likewise.
4015 * opencl-lang.c (opencl_language_data): Likewise.
4016 * p-lang.c (pascal_language_data): Likewise.
4017 * parse.c (parse_exp_in_context): Update call to post_parser.
4018 (null_post_parser): Delete definition.
4019 * parser-defs.h (null_post_parser): Delete declaration.
4020 * rust-lang.c (rust_language_data): Delete la_post_parser
4023 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4025 * ada-lang.c (parse): Rename to ada_language::parser.
4026 (ada_language_data): Delete la_parser initializer.
4027 (ada_language::parser): New member function, implementation from
4029 * c-lang.c (c_language_data): Delete la_parser initializer.
4030 (cplus_language_data): Likewise.
4031 (asm_language_data): Likewise.
4032 (minimal_language_data): Likewise.
4033 * d-lang.c (d_language_data): Likewise.
4034 (d_language::parser): New member function.
4035 * f-lang.c (f_language_data): Delete la_parser initializer.
4036 (f_language::parser): New member function.
4037 * go-lang.c (go_language_data): Delete la_parser initializer.
4038 (go_language::parser): New member function.
4039 * language.c (unk_lang_parser): Delete.
4040 (language_defn::parser): Define new member function.
4041 (unknown_language_data): Delete la_parser initializer.
4042 (unknown_language::parser): New member function.
4043 (auto_language_data): Delete la_parser initializer.
4044 (auto_language::parser): New member function.
4045 * language.h (language_data): Delete la_parser field.
4046 (language_defn::parser): Declare new member function.
4047 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4048 (m2_language::parser): New member function.
4049 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4050 * opencl-lang.c (opencl_language_data): Likewise.
4051 * p-lang.c (pascal_language_data): Likewise.
4052 (pascal_language::parser): New member function.
4053 * parse.c (parse_exp_in_context): Update call to parser.
4054 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4055 (rust_language::parser): New member function.
4057 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4059 * top.c (print_gdb_configuration): Print --with-python-libdir
4060 configuration value.
4062 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4064 * NEWS: Mention change to the alias command.
4066 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4068 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4069 (alias_command_completer)
4070 (make_alias_options_def_group): New functions.
4071 (alias_opts, alias_option_defs): New struct and array.
4072 (alias_usage_error): Update usage.
4073 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4074 Use option framework.
4075 (_initialize_cli_cmds): Update alias command help.
4076 Update aliases command help.
4078 Add NULL for new default_args lookup_cmd argument.
4079 (valid_command_p): Rename to validate_aliased_command.
4080 Add NULL for new default_args lookup_cmd argument. Verify that the
4081 aliased_command has no default args.
4082 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4083 (lookup_cmd_1, lookup_cmd): New argument default_args.
4085 Add NULL for new default_args lookup_cmd argument.
4086 (print_help_for_command): Show default args under the layout
4087 alias some_alias = some_aliased_cmd some_alias_default_arg.
4088 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4089 xfree default_args in destructor.
4090 * cli/cli-script.c (process_next_line, do_define_command):
4091 Add NULL for new default_args lookup_cmd argument.
4092 * command.h: Declare new default_args argument in lookup_cmd
4094 * completer.c (complete_line_internal_1):
4095 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4096 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4097 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4099 * infcmd.c (_initialize_infcmd): Likewise.
4100 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4101 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4102 * python/py-param.c (add_setshow_generic): Likewise.
4103 * remote.c (_initialize_remote): Likewise.
4104 * top.c (execute_command): Prepend default_args if command has some.
4106 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4107 * tracepoint.c (validate_actionline, encode_actions_1):
4108 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4110 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4112 * jit.c (jit_read_descriptor): Use bool as the return type.
4113 (jit_breakpoint_re_set_internal): Use bool as the return type.
4114 Invert the return value logic; return true if the jit breakpoint
4115 has been successfully initialized.
4116 (jit_inferior_init): Update the call to
4117 jit_breakpoint_re_set_internal.
4119 2020-06-22 Pedro Alves <palves@redhat.com>
4122 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4123 Use the current inferior instead. Don't return
4124 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4126 * sol-thread.c (sol_thread_target::wait): Don't reference
4128 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4129 (sol_update_thread_list_callback): Use the current inferior's pid
4130 instead of inferior_ptid.
4132 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4134 * procfs.c: Cleanup many comments.
4136 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4137 (AFTER_WATCHFLAG): Replace by value.
4139 (MAIN_PROC_NAME_FORMAT): Inline ...
4140 (create_procinfo): ... here.
4142 (procfs_debug_inferior): Remove SYS_exec handling.
4143 (syscall_is_exec): Likewise.
4144 (procfs_set_exec_trap): Likewise.
4146 (syscall_is_lwp_exit): Inline in callers.
4147 (syscall_is_exit): Likewise.
4148 (syscall_is_exec): Likewise.
4149 (syscall_is_lwp_create): Likewise.
4151 (invalidate_cache): Remove #if 0 code.
4153 (make_signal_thread_runnable): Remove.
4154 (procfs_target::resume): Remove #if 0 code.
4156 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4159 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4161 (procfs_target::create_inferior): ... here.
4163 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4165 * exec.c (validate_exec_file): Ensure the build-id is up to
4166 date by calling reopen_exec_file (that checks file timestamp
4167 to decide to re-read the file).
4169 2020-06-18 Pedro Alves <palves@redhat.com>
4172 * gdbthread.h (delete_thread, delete_thread_silent)
4173 (find_thread_ptid): Update comments.
4174 * thread.c (current_thread_): New global.
4175 (is_current_thread): Move higher, and reimplement.
4176 (inferior_thread): Reimplement.
4177 (set_thread_exited): Use bool. Add assertions.
4178 (add_thread_silent): Simplify thread-reuse handling by always
4179 calling delete_thread.
4180 (delete_thread): Remove intro comment.
4181 (find_thread_ptid): Skip exited threads.
4182 (switch_to_thread_no_regs): Write to current_thread_.
4183 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4184 INFERIOR_PTID. Clear current_thread_.
4186 2020-06-18 Pedro Alves <palves@redhat.com>
4188 * aix-thread.c (pd_update): Use switch_to_thread.
4190 2020-06-18 Pedro Alves <palves@redhat.com>
4192 * ravenscar-thread.c (ravenscar_thread_target): Update.
4193 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4194 (ravenscar_thread_target::add_active_thread): ... this. Don't
4195 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4196 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4198 2020-06-18 Pedro Alves <palves@redhat.com>
4200 * nat/windows-nat.c (current_windows_thread): Remove.
4201 * nat/windows-nat.h (current_windows_thread): Remove.
4202 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4204 (display_selectors): Adjust to fetch the current
4205 windows_thread_info based on inferior_ptid.
4206 (fake_create_process): No longer write to current_windows_thread.
4207 (windows_nat_target::get_windows_debug_event):
4208 Don't set inferior_ptid or current_windows_thread.
4209 (windows_nat_target::wait): Adjust to not rely on
4210 current_windows_thread.
4211 (do_initial_windows_stuff): Now a method of windows_nat_target.
4212 Switch to the last_ptid thread.
4213 (windows_nat_target::attach): Adjust.
4214 (windows_nat_target::detach): Use switch_to_no_thread instead of
4215 writing to inferior_ptid directly.
4216 (windows_nat_target::create_inferior): Adjust.
4218 2020-06-18 Pedro Alves <palves@redhat.com>
4220 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4222 2020-06-18 Pedro Alves <palves@redhat.com>
4224 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4225 after creating it, instead of writing to inferior_ptid. Don't
4226 write to inferior_ptid.
4228 2020-06-18 Pedro Alves <palves@redhat.com>
4230 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4232 2020-06-18 Pedro Alves <palves@redhat.com>
4234 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4235 it, instead of writing to inferior_ptid.
4237 2020-06-18 Pedro Alves <palves@redhat.com>
4239 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4242 2020-06-18 Pedro Alves <palves@redhat.com>
4244 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4245 instead of writing to inferior_ptid directly.
4247 2020-06-18 Pedro Alves <palves@redhat.com>
4249 * corelow.c (core_target::close): Use switch_to_no_thread instead
4250 of writing to inferior_ptid directly.
4251 (add_to_thread_list, core_target_open): Use switch_to_thread
4252 instead of writing to inferior_ptid directly.
4254 2020-06-18 Pedro Alves <palves@redhat.com>
4256 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4258 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4260 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4261 inferior_ptid directly.
4262 (darwin_nat_target::init_thread_list): Switch to thread, instead
4263 of writing to inferior_ptid.
4264 (darwin_nat_target::attach): Don't write to inferior_ptid.
4265 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4267 2020-06-18 Pedro Alves <palves@redhat.com>
4269 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4271 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4272 Instead use switch_to_thread.
4273 (gnu_nat_target::detach): Use switch_to_no_thread
4274 instead of writing to inferior_ptid directly. Used passed-in
4275 inferior instead of looking up the inferior by pid.
4277 2020-06-18 Pedro Alves <palves@redhat.com>
4279 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4282 2020-06-18 Pedro Alves <palves@redhat.com>
4284 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4286 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4288 (nto_procfs_target::detach): Avoid referencing
4289 inferior_ptid. Use switch_to_no_thread instead of writing to
4290 inferior_ptid directly.
4291 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4292 instead of writing to inferior_ptid directly.
4293 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4296 2020-06-18 Pedro Alves <palves@redhat.com>
4298 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4299 after creating it, instead of writing to inferior_ptid.
4300 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4301 to inferior_ptid directly.
4302 (gdbsim_target::wait): Don't write to inferior_ptid.
4304 2020-06-18 Pedro Alves <palves@redhat.com>
4306 * remote.c (remote_target::remote_notice_new_inferior): Use
4307 switch_to_thread instead of writing to inferior_ptid directly.
4308 (remote_target::add_current_inferior_and_thread): Use
4309 switch_to_no_thread instead of writing to inferior_ptid directly.
4310 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4311 and switch_to_thread instead of using set_current_inferior or
4312 writing to inferior_ptid directly.
4314 2020-06-18 Pedro Alves <palves@redhat.com>
4316 * tracectf.c (ctf_target_open): Switch to added thread instead of
4317 writing to inferior_ptid directly.
4318 (ctf_target::close): Use switch_to_no_thread instead of writing to
4319 inferior_ptid directly.
4321 2020-06-18 Pedro Alves <palves@redhat.com>
4323 * tracefile-tfile.c (tfile_target_open): Don't write to
4324 inferior_ptid directly, instead switch to added thread.
4325 (tfile_target::close): Use switch_to_no_thread instead of writing
4326 to inferior_ptid directly.
4328 2020-06-18 Pedro Alves <palves@redhat.com>
4330 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4331 (procfs_target::detach): Use switch_to_no_thread
4332 instead of writing to inferior_ptid directly.
4333 (do_attach): Change return type to void. Switch to the added
4335 (procfs_target::create_inferior): Switch to the added thread.
4336 (procfs_do_thread_registers): Don't write to inferior_ptid.
4338 2020-06-18 Pedro Alves <palves@redhat.com>
4340 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4341 of writing to inferior_ptid.
4342 (scoped_restore_exited_inferior): Delete.
4343 (handle_vfork_child_exec_or_exit): Simplify using
4344 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4345 instead of writing to inferior_ptid.
4346 (THREAD_STOPPED_BY): Delete.
4347 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4348 (thread_stopped_by_hw_breakpoint): Delete.
4349 (save_waitstatus): Use
4350 scoped_restore_current_thread+switch_to_thread, and call
4351 target_stopped_by_watchpoint instead of
4352 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4353 instead of thread_stopped_by_sw_breakpoint, and
4354 target_stopped_by_hw_breakpoint instead of
4355 thread_stopped_by_hw_breakpoint.
4356 (handle_inferior_event)
4357 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4358 inferior_ptid directly, nor
4359 set_current_inferior/set_current_program_space. Use
4360 switch_to_thread / switch_to_inferior_no_thread instead.
4362 2020-06-18 Pedro Alves <palves@redhat.com>
4364 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4365 instead of writing to inferior_ptid.
4367 2020-06-18 Pedro Alves <palves@redhat.com>
4369 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4371 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4372 to the added thread.
4373 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4374 instead of writing to inferior_ptid.
4376 2020-06-18 Pedro Alves <palves@redhat.com>
4378 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4379 (register_to_value_test): Mock a program_space too. Heap-allocate
4380 the address space. Don't write to inferior_ptid. Use
4381 switch_to_thread instead.
4383 2020-06-18 Pedro Alves <palves@redhat.com>
4385 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4387 (find_signalled_thread()): New, factored out from
4388 linux_make_corefile_notes and adjusted to handle exited threads.
4389 (linux_make_corefile_notes): Adjust to use the new
4390 find_signalled_thread.
4392 2020-06-18 Pedro Alves <palves@redhat.com>
4394 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4395 of saving/restoring inferior_ptid.
4397 2020-06-17 Tom Tromey <tom@tromey.com>
4399 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4400 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4402 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4404 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4406 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4409 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4411 * regformats/reg-arm.dat: Remove.
4412 * regformats/reg-bfin.dat: Remove.
4413 * regformats/reg-cris.dat: Remove.
4414 * regformats/reg-crisv32.dat: Remove.
4415 * regformats/reg-m32r.dat: Remove.
4416 * regformats/reg-tilegx.dat: Remove.
4417 * regformats/reg-tilegx32.dat: Remove.
4419 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4421 * features/Makefile (WHICH): Remove arm files.
4422 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4423 * regformats/arm/arm-with-neon.dat: Remove.
4424 * regformats/arm/arm-with-vfpv2.dat: Remove.
4425 * regformats/arm/arm-with-vfpv3.dat: Remove.
4427 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4429 * features/Makefile (XMLTOC): Remove rx.xml.
4431 2020-06-17 Pedro Alves <palves@redhat.com>
4433 * gdbthread.h (thread_control_state) <trap_expected> Update
4436 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4438 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4439 ada_language::lookup_symbol_nonlocal.
4440 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4441 (ada_language::lookup_symbol_nonlocal): New member function,
4442 implementation from ada_lookup_symbol_nonlocal.
4443 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4445 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4447 (cplus_language::lookup_symbol_nonlocal): New member function.
4448 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4449 (minimal_language_data) Likewise.
4450 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4451 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4453 (d_language::lookup_symbol_nonlocal): New member function.
4454 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4456 (f_language::lookup_symbol_nonlocal): New member function.
4457 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4459 * language.c (unknown_language_data): Likewise.
4460 (auto_language_data): Likewise.
4461 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4463 (language_defn::lookup_symbol_nonlocal): New member function.
4464 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4466 * objc-lang.c (objc_language_data): Likewise.
4467 * opencl-lang.c (opencl_language_data): Likewise.
4468 * p-lang.c (pascal_language_data): Likewise.
4469 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4470 rust_language::lookup_symbol_nonlocal.
4471 (rust_language_data): Delete la_lookup_symbol_nonlocal
4473 (rust_language::lookup_symbol_nonlocal): New member function,
4474 implementation from rust_lookup_symbol_nonlocal.
4475 * symtab.c (lookup_symbol_aux): Update call to
4476 lookup_symbol_nonlocal.
4477 (basic_lookup_symbol_nonlocal): Rename to...
4478 (language_defn::lookup_symbol_nonlocal): ...this, and update
4479 header comment. Remove language_defn parameter, and replace with
4481 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4483 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4485 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4487 (ada_language::value_print_inner): New member function.
4488 * c-lang.c (c_language_data): Delete la_value_print_inner
4490 (cplus_language_data): Likewise.
4491 (asm_language_data): Likewise.
4492 (minimal_language_data): Likewise.
4493 * d-lang.c (d_language_data): Likewise.
4494 (d_language::value_print_inner): New member function.
4495 * f-lang.c (f_language_data): Delete la_value_print_inner
4497 (f_language::value_print_inner): New member function.
4498 * f-lang.h (f_value_print_innner): Rename to...
4499 (f_value_print_inner): ...this (note spelling of 'inner').
4500 * f-valprint.c (f_value_print_innner): Rename to...
4501 (f_value_print_inner): ...this (note spelling of 'inner').
4502 * go-lang.c (go_language_data): Delete la_value_print_inner
4504 (go_language::value_print_inner): New member function.
4505 * language.c (language_defn::value_print_inner): Define new member
4507 (unk_lang_value_print_inner): Delete.
4508 (unknown_language_data): Delete la_value_print_inner initializer.
4509 (unknown_language::value_print_inner): New member function.
4510 (auto_language_data): Delete la_value_print_inner initializer.
4511 (auto_language::value_print_inner): New member function.
4512 * language.h (language_data): Delete la_value_print_inner field.
4513 (language_defn::value_print_inner): Delcare new member function.
4514 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4516 (m2_language::value_print_inner): New member function.
4517 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4519 * opencl-lang.c (opencl_language_data): Likewise.
4520 * p-lang.c (pascal_language_data): Likewise.
4521 (pascal_language::value_print_inner): New member function.
4522 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4524 (rust_language::value_print_inner): New member function.
4525 * valprint.c (do_val_print): Update call to value_print_inner.
4527 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4529 * ada-lang.c (ada_language_data): Delete la_value_print
4531 (ada_language::value_print): New member function.
4532 * c-lang.c (c_language_data): Delete la_value_print initializer.
4533 (cplus_language_data): Likewise.
4534 (asm_language_data): Likewise.
4535 (minimal_language_data): Likewise.
4536 * d-lang.c (d_language_data): Likewise.
4537 * f-lang.c (f_language_data): Likewise.
4538 * go-lang.c (go_language_data): Likewise.
4539 * language.c (unk_lang_value_print): Delete.
4540 (language_defn::value_print): Define new member function.
4541 (unknown_language_data): Delete la_value_print initializer.
4542 (unknown_language::value_print): New member function.
4543 (auto_language_data): Delete la_value_print initializer.
4544 (auto_language::value_print): New member function.
4545 * language.h (language_data): Delete la_value_print field.
4546 (language_defn::value_print): Declare new member function.
4547 (LA_VALUE_PRINT): Update call to value_print.
4548 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4549 * objc-lang.c (objc_language_data): Likewise.
4550 * opencl-lang.c (opencl_language_data): Likewise.
4551 * p-lang.c (pascal_language_data): Likewise.
4552 (pascal_language::value_print): New member function.
4553 * rust-lang.c (rust_language_data): Delete la_value_print
4556 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4558 * ada-lang.c (ada_watch_location_expression): Rename to
4559 ada_language::watch_location_expression.
4560 (ada_language_data): Delete la_watch_location_expression
4562 (ada_language::watch_location_expression): New member function,
4563 implementation from ada_watch_location_expression.
4564 * breakpoint.c (watch_command_1): Update call to
4565 watch_location_expression.
4566 * c-lang.c (c_watch_location_expression): Rename to
4567 language_defn::watch_location_expression.
4568 (c_language_data): Delete la_watch_location_expression
4570 (cplus_language_data): Likewise.
4571 (asm_language_data): Likewise.
4572 (minimal_language_data): Likewise.
4573 * c-lang.h (c_watch_location_expression): Delete declaration.
4574 * d-lang.c (d_language_data): Delete la_watch_location_expression
4576 * f-lang.c (f_language_data): Likewise.
4577 * go-lang.c (go_language_data): Likewise.
4578 * language.c (language_defn::watch_location_expression): Member
4579 function implementation from c_watch_location_expression.
4580 (unknown_language_data): Delete la_watch_location_expression
4582 (auto_language_data): Likewise.
4583 * language.h (language_data): Delete la_watch_location_expression
4585 (language_defn::watch_location_expression): Declare new member
4587 * m2-lang.c (m2_language_data): Delete
4588 la_watch_location_expression initializer.
4589 * objc-lang.c (objc_language_data): Likewise.
4590 * opencl-lang.c (opencl_language_data): Likewise.
4591 * p-lang.c (pascal_language_data): Likewise.
4592 * rust-lang.c (rust_watch_location_expression): Rename to
4593 rust_language::watch_location_expression.
4594 (rust_language_data): Delete la_watch_location_expression
4596 (rust_language::watch_location_expression): New member function,
4597 implementation from rust_watch_location_expression.
4599 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4601 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4602 ada_language::collect_symbol_completion_matches.
4603 (ada_language_data): Delete la_collect_symbol_completion_matches
4605 (ada_language::collect_symbol_completion_matches): New member
4606 function, implementation from
4607 ada_collect_symbol_completion_matches.
4608 * c-lang.c (c_language_data): Delete
4609 la_collect_symbol_completion_matches initializer.
4610 (cplus_language_data): Likewise.
4611 (asm_language_data): Likewise.
4612 (minimal_language_data): Likewise.
4613 * d-lang.c (d_language_data): Likewise.
4614 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4615 f_language::collect_symbol_completion_matches.
4616 (f_language_data): Delete la_collect_symbol_completion_matches
4618 (f_language::collect_symbol_completion_matches) New member
4619 function, implementation from f_collect_symbol_completion_matches.
4620 * go-lang.c (go_language_data): Delete
4621 la_collect_symbol_completion_matches initializer.
4622 * language.c (unknown_language_data): Likewise.
4623 (auto_language_data): Likewise.
4624 * language.h (language_data): Delete
4625 la_collect_symbol_completion_matches field.
4626 (language_defn::collect_symbol_completion_matches): New member
4628 * m2-lang.c (m2_language_data): Delete
4629 la_collect_symbol_completion_matches initializer.
4630 * objc-lang.c (objc_language_data): Likewise.
4631 * opencl-lang.c (opencl_language_data): Likewise.
4632 * p-lang.c (pascal_language_data): Likewise.
4633 * rust-lang.c (rust_language_data): Likewise.
4634 * symtab.c (default_collect_symbol_completion_matches): Delete.
4635 (collect_symbol_completion_matches): Update call to
4636 collect_symbol_completion_matches.
4637 (collect_symbol_completion_matches_type): Likewise.
4638 * symtab.h (default_collect_symbol_completion_matches): Delete
4641 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4643 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4644 (ada_language_data): Delete la_word_break_characters initializer.
4645 (ada_language::word_break_characters): New member function.
4646 * c-lang.c (c_language_data): Delete la_word_break_characters
4648 (cplus_language_data): Likewise.
4649 (asm_language_data): Likewise.
4650 (minimal_language_data): Likewise.
4651 * completer.c: Update global comment.
4652 (advance_to_expression_complete_word_point): Update call to
4653 word_break_characters.
4654 (complete_files_symbols): Likewise.
4655 (complete_line_internal_1): Likewise.
4656 (default_completer_handle_brkchars): Likewise.
4657 (skip_quoted_chars): Likewise.
4658 * d-lang.c (d_language_data): Delete la_word_break_characters
4660 * f-lang.c (f_word_break_characters): Delete.
4661 (f_language_data): Delete la_word_break_characters initializer.
4662 (f_language::word_break_characters): New member function.
4663 * go-lang.c (go_language_data): Delete la_word_break_characters
4665 * language.c (unknown_language_data): Likewise.
4666 (auto_language_data): Likewise.
4667 * language.h (default_word_break_characters): Move declaration to
4668 earlier in the file.
4669 (language_data): Delete la_word_break_characters field.
4670 (language_defn::word_break_characters): New member function.
4671 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4673 * objc-lang.c (objc_language_data): Likewise.
4674 * opencl-lang.c (opencl_language_data): Likewise.
4675 * p-lang.c (pascal_language_data): Likewise.
4676 * rust-lang.c (rust_language_data): Likewise.
4678 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4680 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4681 (ada_language_data): Delete la_get_symbol_name_matcher
4683 (language_defn::get_symbol_name_matcher_inner): New member
4685 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4687 (cplus_language_data): Likewise.
4688 (cplus_language::get_symbol_name_matcher_inner): New member
4690 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4691 (minimal_language_data): Likewise.
4692 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4693 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4695 * dictionary.c (iter_match_first_hashed): Update call to
4696 get_symbol_name_matcher.
4697 (iter_match_next_hashed): Likewise.
4698 (iter_match_next_linear): Likewise.
4699 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4700 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4702 (f_language::get_symbol_name_matcher_inner): New member function.
4703 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4705 * language.c (default_symbol_name_matcher): Update header comment,
4707 (language_defn::get_symbol_name_matcher): New definition.
4708 (language_defn::get_symbol_name_matcher_inner): Likewise.
4709 (get_symbol_name_matcher): Delete.
4710 (unknown_language_data): Delete la_get_symbol_name_matcher
4712 (auto_language_data): Likewise.
4713 * language.h (language_data): Delete la_get_symbol_name_matcher
4715 (language_defn::get_symbol_name_matcher): New member function.
4716 (language_defn::get_symbol_name_matcher_inner): Likewise.
4717 (default_symbol_name_matcher): Delete declaration.
4718 * linespec.c (find_methods): Update call to
4719 get_symbol_name_matcher.
4720 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4722 * minsyms.c (lookup_minimal_symbol): Update call to
4723 get_symbol_name_matcher.
4724 (iterate_over_minimal_symbols): Likewise.
4725 * objc-lang.c (objc_language_data): Delete
4726 la_get_symbol_name_matcher initializer.
4727 * opencl-lang.c (opencl_language_data): Likewise.
4728 * p-lang.c (pascal_language_data): Likewise.
4729 * psymtab.c (psymbol_name_matches): Update call to
4730 get_symbol_name_matcher.
4731 * rust-lang.c (rust_language_data): Delete
4732 la_get_symbol_name_matcher initializer.
4733 * symtab.c (symbol_matches_search_name): Update call to
4734 get_symbol_name_matcher.
4735 (compare_symbol_name): Likewise.
4737 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4739 * ada-lang.c (ada_language_data): Delete la_compute_program
4741 * c-lang.c (c_language_data): Likewise.
4742 (c_language::compute_program): New member function.
4743 (cplus_language_data): Delete la_compute_program initializer.
4744 (cplus_language::compute_program): New member function.
4745 (asm_language_data): Delete la_compute_program initializer.
4746 (minimal_language_data): Likewise.
4747 * c-lang.h (c_compute_program): Update comment.
4748 (cplus_compute_program): Likewise.
4749 * compile/compile-c-support.c (c_compute_program): Likewise.
4750 (cplus_compute_program): Likewise.
4751 * compile/compile.c (compile_to_object): Update call to
4753 * d-lang.c (d_language_data): Delete la_compute_program
4755 * f-lang.c (f_language_data): Likewise.
4756 * go-lang.c (go_language_data): Likewise.
4757 * language.c (unknown_language_data): Likewise.
4758 (auto_language_data): Likewise.
4759 * language.h (language_data): Delete la_compute_program field.
4760 (language_defn::compute_program): New member function.
4761 * m2-lang.c (m2_language_data): Delete la_compute_program
4763 * objc-lang.c (objc_language_data): Likewise.
4764 * opencl-lang.c (opencl_language_data): Likewise.
4765 * p-lang.c (pascal_language_data): Likewise.
4766 * rust-lang.c (rust_language_data): Likewise.
4768 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4770 * ada-lang.c (ada_language_data) Delete
4771 la_class_name_from_physname initializer.
4772 * c-lang.c (c_language_data): Likewise.
4773 (cplus_language_data): Likewise.
4774 (cplus_language::class_name_from_physname): New member function.
4775 (asm_language_data): Delete la_class_name_from_physname
4777 (minimal_language_data): Likewise.
4778 * d-lang.c (d_language_data): Likewise.
4779 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4780 method on language_defn class.
4781 (guess_full_die_structure_name): Likewise.
4782 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4784 * go-lang.c (go_language_data): Likewise.
4785 * language.c (language_class_name_from_physname): Delete.
4786 (unk_lang_class_name): Delete.
4787 (unknown_language_data): Delete la_class_name_from_physname
4789 (auto_language_data): Likewise.
4790 * language.h (language_data): Delete la_class_name_from_physname
4792 (language_defn::class_name_from_physname): New function.
4793 (language_class_name_from_physname): Delete declaration.
4794 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4796 * objc-lang.c (objc_language_data): Likewise.
4797 * opencl-lang.c (opencl_language_data): Likewise.
4798 * p-lang.c (pascal_language_data): Likewise.
4799 * rust-lang.c (rust_language_data): Likewise.
4801 2020-06-16 Tom Tromey <tom@tromey.com>
4803 * tui/tui-data.h (STATUS_NAME): New macro.
4804 * tui/tui-layout.c (tui_remove_some_windows)
4805 (initialize_known_windows, tui_register_window)
4806 (tui_layout_split::remove_windows, initialize_layouts)
4807 (tui_new_layout_command): Don't use hard-coded window names.
4809 2020-06-16 Tom Tromey <tom@tromey.com>
4812 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4813 tui_initialize_readline. Only run once. Call rl_initialize.
4814 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4815 tui_initialize_readline.
4816 * tui/tui-io.c (tui_setup_io): Call
4817 tui_ensure_readline_initialized.
4818 * tui/tui-interp.c (tui_interp::init): Update.
4820 2020-06-16 Tom Tromey <tom@tromey.com>
4822 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4823 Also preserve the status window.
4825 2020-06-16 Tom Tromey <tom@tromey.com>
4827 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4828 where m_window==nullptr.
4830 2020-06-15 Tom Tromey <tromey@adacore.com>
4832 * windows-nat.c (windows_nat::handle_output_debug_string):
4834 (windows_nat::handle_ms_vc_exception): Update.
4835 * target.h (target_read_string): Change API.
4836 * target.c (target_read_string): Change API.
4837 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4839 * solib-frv.c (frv_current_sos): Update.
4840 * solib-dsbt.c (dsbt_current_sos): Update.
4841 * solib-darwin.c (darwin_current_sos): Update.
4842 * linux-thread-db.c (inferior_has_bug): Update.
4843 * expprint.c (print_subexp_standard): Update.
4844 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4845 (ada_exception_message_1): Update.
4847 2020-06-15 Tom Tromey <tromey@adacore.com>
4849 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4851 2020-06-15 Tom Tromey <tromey@adacore.com>
4853 * valprint.c (read_string): Update comment.
4854 * target.c (MIN): Remove.
4855 (target_read_string): Rewrite.
4857 2020-06-15 Tom Tromey <tromey@adacore.com>
4859 * corefile.c (read_memory_string): Remove.
4860 * ada-valprint.c (ada_value_print_ptr): Update.
4861 * ada-lang.h (ada_tag_name): Change return type.
4862 * ada-lang.c (type_from_tag): Update.
4863 (ada_tag_name_from_tsd): Change return type. Use
4865 (ada_tag_name): Likewise.
4866 * gdbcore.h (read_memory_string): Don't declare.
4868 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4870 * symtab.c (rbreak_command): Ignore Windows drive colon.
4872 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4874 * NEWS: Mention removed GDBserver host support.
4876 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4878 * features/riscv/rebuild-csr-xml.sh: Updated.
4880 2020-06-11 Tom Tromey <tom@tromey.com>
4883 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4885 2020-06-09 Jonny Grant <jg@jguk.org>
4886 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4888 * main.c (captured_main_1): Don't print new line after help.
4889 (print_gdb_help): add mailing list and IRC channel information
4890 to --help. Add new lines between items in the footer. Remove
4891 quotes around bug url.
4893 2020-06-11 Keith Seitz <keiths@redhat.com>
4896 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4897 Resolve typedefs for type length calculations.
4899 2020-06-10 Tom de Vries <tdevries@suse.de>
4902 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4903 (write_psymbols): Enable .gdb_index for ada.
4904 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4907 2020-06-10 Tom de Vries <tdevries@suse.de>
4909 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4910 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4911 namei" instead of "const char *name" argument.
4912 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4913 dw2_symtab_iter_init.
4915 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4917 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4918 to use type::field and field::type instead.
4920 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4922 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4923 to use field::type instead.
4925 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4927 * gdbtypes.h (struct field) <type, set_type>: New methods.
4928 Rename `type` field to...
4929 <m_type>: ... this. Change references throughout to use type or
4931 (FIELD_TYPE): Use field::type. Change call sites that modify
4932 the field's type to use field::set_type instead.
4934 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4936 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4937 to use type::index_type instead.
4939 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4941 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4943 (TYPE_INDEX_TYPE): Use type::index_type.
4944 * gdbtypes.c (create_array_type_with_stride): Likewise.
4946 2020-06-07 Tom Tromey <tom@tromey.com>
4948 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4950 (generic_value_print): Update.
4952 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4954 Revert commit 982a38f60b0.
4955 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4957 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4959 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4960 avoid use after free.
4962 2020-06-05 Tom de Vries <tdevries@suse.de>
4966 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4968 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4970 (dwarf2_read_debug_names): Likewise.
4971 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4972 object when re-using a per_bfd object with an index.
4974 2020-06-03 Tom de Vries <tdevries@suse.de>
4977 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4979 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4982 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4984 * ada-lang.c (ada_language_data): Delete skip_trampoline
4986 * c-lang.c (c_language_data): Likewise.
4987 (cplus_language_data): Likewise.
4988 (cplus_language::skip_trampoline): New member function.
4989 (asm_language_data): Delete skip_trampoline initializer.
4990 (minimal_language_data): Likewise.
4991 * d-lang.c (d_language_data): Likewise.
4992 * f-lang.c (f_language_data): Likewise.
4993 * go-lang.c (go_language_data): Likewise.
4994 * language.c (unk_lang_trampoline): Delete function.
4995 (skip_language_trampoline): Update.
4996 (unknown_language_data): Delete skip_trampoline initializer.
4997 (auto_language_data): Likewise.
4998 * language.h (language_data): Delete skip_trampoline field.
4999 (language_defn::skip_trampoline): New function.
5000 * m2-lang.c (m2_language_data): Delete skip_trampoline
5002 * objc-lang.c (objc_skip_trampoline): Delete function, move
5003 implementation to objc_language::skip_trampoline.
5004 (objc_language_data): Delete skip_trampoline initializer.
5005 (objc_language::skip_trampoline): New member function with
5006 implementation from objc_skip_trampoline.
5007 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5009 * p-lang.c (pascal_language_data): Likewise.
5010 * rust-lang.c (rust_language_data): Likewise.
5012 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5014 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5015 (ada_language::demangle): New member function.
5016 * c-lang.c (c_language_data): Delete la_demangle initializer.
5017 (cplus_language_data): Delete la_demangle initializer.
5018 (cplus_language::demangle): New member function.
5019 (asm_language_data): Delete la_demangle initializer.
5020 (minimal_language_data): Delete la_demangle initializer.
5021 * d-lang.c (d_language_data): Delete la_demangle initializer.
5022 (d_language::demangle): New member function.
5023 * f-lang.c (f_language_data): Delete la_demangle initializer.
5024 (f_language::demangle): New member function.
5025 * go-lang.c (go_language_data): Delete la_demangle initializer.
5026 (go_language::demangle): New member function.
5027 * language.c (language_demangle): Update.
5028 (unk_lang_demangle): Delete.
5029 (unknown_language_data): Delete la_demangle initializer.
5030 (unknown_language::demangle): New member function.
5031 (auto_language_data): Delete la_demangle initializer.
5032 (auto_language::demangle): New member function.
5033 * language.h (language_data): Delete la_demangle field.
5034 (language_defn::demangle): New function.
5035 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5036 * objc-lang.c (objc_language_data): Delete la_demangle
5038 (objc_language::demangle): New member function.
5039 * opencl-lang.c (opencl_language_data): Delete la_demangle
5041 * p-lang.c (pascal_language_data): Likewise.
5042 * rust-lang.c (rust_language_data): Likewise.
5043 (rust_language::demangle): New member function.
5045 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5047 * ada-lang.c (ada_language_data): Delete la_print_type
5049 (ada_language::print_type): New member function.
5050 * c-lang.c (c_language_data): Delete la_print_type initializer.
5051 (c_language::print_type): New member function.
5052 (cplus_language_data): Delete la_print_type initializer.
5053 (cplus_language::print_type): New member function.
5054 (asm_language_data): Delete la_print_type initializer.
5055 (asm_language::print_type): New member function.
5056 (minimal_language_data): Delete la_print_type initializer.
5057 (minimal_language::print_type): New member function.
5058 * d-lang.c (d_language_data): Delete la_print_type initializer.
5059 (d_language::print_type): New member function.
5060 * f-lang.c (f_language_data): Delete la_print_type initializer.
5061 (f_language::print_type): New member function.
5062 * go-lang.c (go_language_data): Delete la_print_type initializer.
5063 (go_language::print_type): New member function.
5064 * language.c (unk_lang_print_type): Delete.
5065 (unknown_language_data): Delete la_print_type initializer.
5066 (unknown_language::print_type): New member function.
5067 (auto_language_data): Delete la_print_type initializer.
5068 (auto_language::print_type): New member function.
5069 * language.h (language_data): Delete la_print_type field.
5070 (language_defn::print_type): New function.
5071 (LA_PRINT_TYPE): Update.
5072 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5073 (m2_language::print_type): New member function.
5074 * objc-lang.c (objc_language_data): Delete la_print_type
5076 (objc_language::print_type): New member function.
5077 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5078 to opencl_language::print_type.
5079 (opencl_language_data): Delete la_print_type initializer.
5080 (opencl_language::print_type): New member function, implementation
5081 from opencl_print_type.
5082 * p-lang.c (pascal_language_data): Delete la_print_type
5084 (pascal_language::print_type): New member function.
5085 * rust-lang.c (rust_print_type): Delete, implementation moved to
5086 rust_language::print_type.
5087 (rust_language_data): Delete la_print_type initializer.
5088 (rust_language::print_type): New member function, implementation
5089 from rust_print_type.
5091 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5093 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5094 implementation moves to...
5095 (ada_language::sniff_from_mangled_name): ...here. Update return
5097 (ada_language_data): Delete la_sniff_from_mangled_name
5099 * c-lang.c (c_language_data): Likewise.
5100 (cplus_language_data): Likewise.
5101 (cplus_language::sniff_from_mangled_name): New member function,
5102 implementation taken from gdb_sniff_from_mangled_name.
5103 (asm_language_data): Delete la_sniff_from_mangled_name
5105 (minimal_language_data): Likewise.
5106 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5107 implementation moves to cplus_language::sniff_from_mangled_name.
5108 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5109 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5111 (d_language::sniff_from_mangled_name): ...here.
5112 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5113 * f-lang.c (f_language_data): Likewise.
5114 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5116 (go_language::sniff_from_mangled_name): ...here.
5117 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5118 * language.c (language_sniff_from_mangled_name): Delete.
5119 (unknown_language_data): Delete la_sniff_from_mangled_name
5121 (auto_language_data): Likewise.
5122 * language.h (language_data): Delete la_sniff_from_mangled_name
5124 (language_defn::sniff_from_mangled_name): New function.
5125 (language_sniff_from_mangled_name): Delete declaration.
5126 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5128 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5129 implementation moves to...
5130 (objc_language::sniff_from_mangled_name): ...here.
5131 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5132 * opencl-lang.c (opencl_language_data): Likewise.
5133 * p-lang.c (pascal_language_data): Likewise.
5134 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5135 implementation moves to...
5136 (rust_language::sniff_from_mangled_name): ...here.
5137 (rust_language_data): Delete la_sniff_from_mangled_name
5139 * symtab.c (symbol_find_demangled_name): Call
5140 sniff_from_mangled_name member function.
5142 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5144 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5146 * c-lang.c (c_language_data): Likewise.
5147 (cplus_language_data): Likewise.
5148 (cplus_language::search_name_hash): New member function.
5149 (asm_language_data): Delete la_search_name_hash initializer.
5150 (minimal_language_data): Likewise.
5151 * d-lang.c (d_language_data): Likewise.
5152 * dictionary.c (default_search_name_hash): Rename to...
5153 (language_defn::search_name_hash): ...this.
5154 * f-lang.c (f_language_data): Likewise.
5155 (f_language::search_name_hash): New member function.
5156 * go-lang.c (go_language_data): Delete la_search_name_hash
5158 * language.c (unknown_language_data): Likewise.
5159 (auto_language_data): Likewise.
5160 * language.h (struct language_data): Delete la_search_name_hash
5162 (language_defn::search_name_hash): Declare new member function.
5163 (default_search_name_hash): Delete declaration.
5164 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5166 * objc-lang.c (objc_language_data): Likewise.
5167 * opencl-lang.c (opencl_language_data): Likewise.
5168 * p-lang.c (pascal_language_data): Likewise.
5169 * rust-lang.c (rust_language_data): Likewise.
5170 * symtab.c (search_name_hash): Update call.
5172 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5174 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5176 * c-lang.c (class compile_instance): Declare.
5177 (c_language_data): Delete la_get_compile_instance initializer.
5178 (c_language::get_compile_instance): New member function.
5179 (cplus_language_data): Delete la_get_compile_instance initializer.
5180 (cplus_language::get_compile_instance): New member function.
5181 (asm_language_data): Delete la_get_compile_instance initializer.
5182 (minimal_language_data): Likewise.
5183 * c-lang.h (c_get_compile_context): Update comment.
5184 (cplus_get_compile_context): Update comment.
5185 * compile/compile.c (compile_to_object): Update calls, don't rely
5186 on function pointer being NULL.
5187 * d-lang.c (d_language_data): Delete la_get_compile_instance
5189 * f-lang.c (f_language_data): Likewise.
5190 * go-lang.c (go_language_data): Likewise.
5191 * language.c (unknown_language_data): Likewise.
5192 (auto_language_data): Likewise.
5193 * language.h (language_data): Delete la_get_compile_instance field.
5194 (language_defn::get_compile_instance): New member function.
5195 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5197 * objc-lang.c (objc_language_data): Likewise.
5198 * opencl-lang.c (opencl_language_data): Likewise.
5199 * p-lang.c (pascal_language_data): Likewise.
5200 * rust-lang.c (rust_language_data): Likewise.
5202 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5204 * ada-lang.c (ada_add_all_symbols): Update comment.
5205 (ada_iterate_over_symbols): Delete, move implementation to...
5206 (ada_language::iterate_over_symbols): ...here, a new member
5207 function, rewrite to use range based for loop.
5208 (ada_language_data): Delete la_iterate_over_symbols initializer.
5209 * c-lang.c (c_language_data): Likewise.
5210 (cplus_language_data): Likewise.
5211 (asm_language_data): Likewise.
5212 (minimal_language_data): Likewise.
5213 * d-lang.c (d_language_data): Likewise.
5214 * f-lang.c (f_language_data): Likewise.
5215 * go-lang.c (go_language_data): Likewise.
5216 * language.c (unknown_language_data): Likewise.
5217 (auto_language_data): Likewise.
5218 * language.h (language_data): Delete la_iterate_over_symbols field.
5219 (language_defn::iterate_over_symbols): New member function.
5220 (LA_ITERATE_OVER_SYMBOLS): Update.
5221 * linespec.c (iterate_over_all_matching_symtabs): Update.
5222 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5224 * objc-lang.c (objc_language_data): Likewise.
5225 * opencl-lang.c (opencl_language_data): Likewise.
5226 * p-lang.c (pascal_language_data): Likewise.
5227 * rust-lang.c (rust_language_data): Likewise.
5229 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5231 * ada-lang.c (ada_language_data): Delete
5232 la_lookup_transparent_type initializer.
5233 * c-lang.c (c_language_data): Likewise.
5234 (cplus_language_data): Likewise.
5235 (cplus_language::lookup_transparent_type): New member function.
5236 (asm_language_data): Delete la_lookup_transparent_type
5238 (minimal_language_data): Likewise.
5239 * d-lang.c (d_language_data): Likewise.
5240 * f-lang.c (f_language_data): Likewise.
5241 * go-lang.c (go_language_data): Likewise.
5242 * language.c (unknown_language_data): Likewise.
5243 (auto_language_data): Likewise.
5244 * language.h (struct language_data): Delete
5245 la_lookup_transparent_type field.
5246 (language_defn::lookup_transparent_type): New member function.
5247 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5249 * objc-lang.c (objc_language_data): Likewise.
5250 * opencl-lang.c (opencl_language_data): Likewise.
5251 * p-lang.c (pascal_language_data): Likewise.
5252 * rust-lang.c (rust_language_data): Likewise.
5253 * symtab.c (symbol_matches_domain): Update call.
5255 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5257 * ada-lang.c (ada_language_arch_info): Delete function, move
5258 implementation to...
5259 (ada_language::language_arch_info): ...here, a new member
5261 (ada_language_data): Delete la_language_arch_info.
5262 * c-lang.c (c_language_data): Likewise.
5263 (c_language::language_arch_info): New member function.
5264 (cplus_language_arch_info): Delete function, move
5265 implementation to...
5266 (cplus_language::language_arch_info): ...here, a new member
5268 (cplus_language_data): Delete la_language_arch_info.
5269 (asm_language_data): Likewise.
5270 (asm_language::language_arch_info): New member function.
5271 (minimal_language_data): Delete la_language_arch_info.
5272 (minimal_language::language_arch_info): New member function.
5273 * d-lang.c (d_language_arch_info): Delete function, move
5274 implementation to...
5275 (d_language::language_arch_info): ...here, a new member
5277 (d_language_data): Delete la_language_arch_info.
5278 * f-lang.c (f_language_arch_info): Delete function, move
5279 implementation to...
5280 (f_language::language_arch_info): ...here, a new member
5282 (f_language_data): Delete la_language_arch_info.
5283 * go-lang.c (go_language_arch_info): Delete function, move
5284 implementation to...
5285 (go_language::language_arch_info): ...here, a new member
5287 (go_language_data): Delete la_language_arch_info.
5288 * language.c (unknown_language_data): Likewise.
5289 (unknown_language::language_arch_info): New member function.
5290 (auto_language_data): Delete la_language_arch_info.
5291 (auto_language::language_arch_info): New member function.
5292 (language_gdbarch_post_init): Update call to
5293 la_language_arch_info.
5294 * language.h (language_data): Delete la_language_arch_info
5296 (language_defn::language_arch_info): New function.
5297 * m2-lang.c (m2_language_arch_info): Delete function, move
5298 implementation to...
5299 (m2_language::language_arch_info): ...here, a new member
5301 (m2_language_data): Delete la_language_arch_info.
5302 * objc-lang.c (objc_language_arch_info): Delete function, move
5303 implementation to...
5304 (objc_language::language_arch_info): ...here, a new member
5306 (objc_language_data): Delete la_language_arch_info.
5307 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5308 implementation to...
5309 (opencl_language::language_arch_info): ...here, a new member
5311 (opencl_language_data): Delete la_language_arch_info.
5312 * p-lang.c (pascal_language_arch_info): Delete function, move
5313 implementation to...
5314 (pascal_language::language_arch_info): ...here, a new member
5316 (pascal_language_data): Delete la_language_arch_info.
5317 * rust-lang.c (rust_language_arch_info): Delete function, move
5318 implementation to...
5319 (rust_language::language_arch_info): ...here, a new member
5321 (rust_language_data): Delete la_language_arch_info.
5323 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5325 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5327 * c-lang.c (c_language_data): Likewise.
5328 (cplus_language_data): Likewise.
5329 (cplus_language::pass_by_reference_info): New method.
5330 (asm_language_data): Delete la_pass_by_reference initializer.
5331 (minimal_language_data): Likewise.
5332 * cp-abi.c (cp_pass_by_reference): Remove use of
5333 default_pass_by_reference.
5334 * d-lang.c (d_language_data): Likewise.
5335 * f-lang.c (f_language_data): Likewise.
5336 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5337 default_pass_by_reference.
5338 * go-lang.c (go_language_data): Likewise.
5339 * language.c (language_pass_by_reference): Update.
5340 (default_pass_by_reference): Delete.
5341 (unknown_language_data): Delete la_pass_by_reference
5343 (auto_language_data): Likewise.
5344 * language.h (struct language_data): Delete la_pass_by_reference
5346 (language_defn::pass_by_reference_info): New member function.
5347 (default_pass_by_reference): Delete declaration.
5348 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5350 * objc-lang.c (objc_language_data): Likewise.
5351 * opencl-lang.c (opencl_language_data): Likewise.
5352 * p-lang.c (pascal_language_data): Likewise.
5353 * rust-lang.c (rust_language_data): Likewise.
5355 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5357 * ada-lang.c (ada_read_var_value): Delete function, move
5358 implementation to...
5359 (ada_language::read_var_value): ...here.
5360 (ada_language_data): Delete la_read_var_value initializer.
5361 * c-lang.c (c_language_data): Likewise.
5362 (cplus_language_data): Likewise.
5363 (minimal_language_data): Likewise.
5364 * d-lang.c (d_language_data): Likewise.
5365 * f-lang.c (f_language_data): Likewise.
5366 * findvar.c (default_read_var_value): Rename to...
5367 (language_defn::read_var_value): ...this.
5368 * findvar.c (read_var_value): Update header comment, and change to
5369 call member function instead of function pointer.
5370 * go-lang.c (go_language_data): Likewise.
5371 * language.c (unknown_language_data): Delete la_read_var_value
5373 (auto_language_data): Likewise.
5374 * language.h (struct language_data): Delete la_read_var_value
5376 (language_defn::read_var_value): New member function.
5377 (default_read_var_value): Delete declaration.
5378 * m2-lang.c (m2_language_data): Delete la_read_var_value
5380 * objc-lang.c (objc_language_data): Likewise.
5381 * opencl-lang.c (opencl_language_data): Likewise.
5382 * p-lang.c (pascal_language_data): Likewise.
5383 * rust-lang.c (rust_language_data): Likewise.
5384 * value.h (default_read_var_value): Delete declaration.
5386 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5388 * ada-lang.c (ada_print_array_index): Delete function, move
5389 implementation to...
5390 (ada_language::print_array_index): ...here.
5391 (ada_language_data): Delete la_print_array_index initializer.
5392 * c-lang.c (c_language_data): Likewise.
5393 (cplus_language_data): Likewise.
5394 (minimal_language_data): Likewise.
5395 * d-lang.c (d_language_data): Likewise.
5396 * f-lang.c (f_language_data): Likewise.
5397 * go-lang.c (go_language_data): Likewise.
5398 * language.c (default_print_array_index): Delete function, move
5399 implementation to...
5400 (language_defn::print_array_index): ...here.
5401 (unknown_language_data): Delete la_print_array_index initializer.
5402 (auto_language_data): Likewise.
5403 * language.h (struct language_data): Delete la_print_array_index
5405 (language_defn::print_array_index): New member function.
5406 (LA_PRINT_ARRAY_INDEX): Update.
5407 (default_print_array_index): Delete declaration.
5408 * m2-lang.c (m2_language_data): Delete la_print_array_index
5410 * objc-lang.c (objc_language_data): Likewise.
5411 * opencl-lang.c (opencl_language_data): Likewise.
5412 * p-lang.c (pascal_language_data): Likewise.
5413 * rust-lang.c (rust_language_data): Likewise.
5415 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5417 * gdb/ada-lang.c (ada_language_defn): Convert to...
5418 (ada_language_data): ...this.
5419 (class ada_language): New class.
5420 (ada_language_defn): New static global.
5421 * gdb/c-lang.c (c_language_defn): Convert to...
5422 (c_language_data): ...this.
5423 (class c_language): New class.
5424 (c_language_defn): New static global.
5425 (cplus_language_defn): Convert to...
5426 (cplus_language_data): ...this.
5427 (class cplus_language): New class.
5428 (cplus_language_defn): New static global.
5429 (asm_language_defn): Convert to...
5430 (asm_language_data): ...this.
5431 (class asm_language): New class.
5432 (asm_language_defn): New static global.
5433 (minimal_language_defn): Convert to...
5434 (minimal_language_data): ...this.
5435 (class minimal_language): New class.
5436 (minimal_language_defn): New static global.
5437 * gdb/d-lang.c (d_language_defn): Convert to...
5438 (d_language_data): ...this.
5439 (class d_language): New class.
5440 (d_language_defn): New static global.
5441 * gdb/f-lang.c (f_language_defn): Convert to...
5442 (f_language_data): ...this.
5443 (class f_language): New class.
5444 (f_language_defn): New static global.
5445 * gdb/go-lang.c (go_language_defn): Convert to...
5446 (go_language_data): ...this.
5447 (class go_language): New class.
5448 (go_language_defn): New static global.
5449 * gdb/language.c (unknown_language_defn): Remove declaration.
5450 (current_language): Initialize to nullptr, real initialization is
5451 moved to _initialize_language.
5452 (languages): Delete global.
5453 (language_defn::languages): Define.
5454 (set_language_command): Use language_defn::languages.
5455 (set_language): Likewise.
5456 (range_error): Likewise.
5457 (language_enum): Likewise.
5458 (language_def): Likewise.
5459 (add_set_language_command): Use language_def::languages for the
5460 language list, and language_def to lookup language pointers.
5461 (skip_language_trampoline): Use language_defn::languages.
5462 (unknown_language_defn): Convert to...
5463 (unknown_language_data): ...this.
5464 (class unknown_language): New class.
5465 (unknown_language_defn): New static global.
5466 (auto_language_defn): Convert to...
5467 (auto_language_data): ...this.
5468 (class auto_language): New class.
5469 (auto_language_defn): New static global.
5470 (language_gdbarch_post_init): Use language_defn::languages.
5471 (_initialize_language): Initialize current_language.
5472 * gdb/language.h (struct language_defn): Rename to...
5473 (struct language_data): ...this.
5474 (struct language_defn): New.
5475 (auto_language_defn): Delete.
5476 (unknown_language_defn): Delete.
5477 (minimal_language_defn): Delete.
5478 (ada_language_defn): Delete.
5479 (asm_language_defn): Delete.
5480 (c_language_defn): Delete.
5481 (cplus_language_defn): Delete.
5482 (d_language_defn): Delete.
5483 (f_language_defn): Delete.
5484 (go_language_defn): Delete.
5485 (m2_language_defn): Delete.
5486 (objc_language_defn): Delete.
5487 (opencl_language_defn): Delete.
5488 (pascal_language_defn): Delete.
5489 (rust_language_defn): Delete.
5490 * gdb/m2-lang.c (m2_language_defn): Convert to...
5491 (m2_language_data): ...this.
5492 (class m2_language): New class.
5493 (m2_language_defn): New static global.
5494 * gdb/objc-lang.c (objc_language_defn): Convert to...
5495 (objc_language_data): ...this.
5496 (class objc_language): New class.
5497 (objc_language_defn): New static global.
5498 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5499 (opencl_language_data): ...this.
5500 (class opencl_language): New class.
5501 (opencl_language_defn): New static global.
5502 * gdb/p-lang.c (pascal_language_defn): Convert to...
5503 (pascal_language_data): ...this.
5504 (class pascal_language): New class.
5505 (pascal_language_defn): New static global.
5506 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5507 language pointer, update comment format.
5508 * gdb/rust-lang.c (rust_language_defn): Convert to...
5509 (rust_language_data): ...this.
5510 (class rust_language): New class.
5511 (rust_language_defn): New static global.
5513 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5515 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5517 <m_stmt_at_address>: New member variable.
5518 (lnp_state_machine::record_line): Don't record some lines, update
5519 tracking of is_stmt at the same address.
5520 (lnp_state_machine::lnp_state_machine): Initialise new member
5523 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5525 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5526 "-include gnu-nat-mig.h".
5527 * gnu-nat-mig.h: New file.
5528 * gnu-nat.c: Include "gnu-nat-mig.h".
5529 (exc_server, msg_reply_server, notify_server,
5530 process_reply_server): Remove declarations.
5532 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5534 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5535 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5536 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5537 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5538 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5539 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5540 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5541 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5542 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5543 to gnu_nat_target class.
5544 * gnu-nat.c: Likewise.
5545 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5546 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5547 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5549 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5550 instead of `gnu_target'.
5552 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5554 * i386-gnu-tdep.c: Include "gdbcore.h"
5555 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5556 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5557 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5558 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5559 i386_gnu_sigcontext_addr): New functions
5560 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5561 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5564 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5566 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5567 before fork_inferior call. Avoid calling it if target_is_pushed returns
5570 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5572 * gnu-nat.h (gnu_target): New variable declaration.
5573 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5575 * gnu-nat.c (gnu_target): New variable.
5576 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5577 add_thread_silent, and add_thread calls.
5578 (gnu_nat_target::create_inferior): Pass gnu_target to
5579 add_thread_silent, thread_change_ptid call.
5580 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5583 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5585 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5586 (gnu_nat_target::find_memory_regions): Remove unused
5587 `old_address' variable.
5589 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5591 * gnu-nat.c: Include "gdbarch.h".
5593 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5595 * reply_mig_hack.awk (Error return): Cast function through
5596 void *, to bypass compiler function call check.
5598 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5600 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5601 $(srcdir)/reply_mig_hack.awk.
5603 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5605 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5607 2020-05-30 Jonny Grant <jg@jguk.org>
5609 * configure.ac (ACX_BUGURL): change bug URL to https.
5611 2020-05-30 Pedro Alves <palves@redhat.com>
5613 * cp-support.c (replace_typedefs_template): New.
5614 (replace_typedefs_qualified_name): Handle
5615 DEMANGLE_COMPONENT_TEMPLATE.
5617 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5619 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5620 dwarf2/index-cache.h, dwarf2/index-write.c,
5621 dwarf2/index-write.h, dwarf2/line-header.c,
5622 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5623 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5624 variables and fields from `dwarf2_per_objfile` to just
5625 `per_objfile` throughout.
5627 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5629 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5630 <push_dwarf_reg_entry_value>: Add comment.
5632 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5633 Keith Seitz <keiths@redhat.com>
5635 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5636 instead of PyEval_ReleaseLock.
5637 (class gdbpy_gil): Move to earlier in file.
5638 (finalize_python): Set gdb_python_initialized.
5639 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5640 when not initialized.
5642 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5644 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5645 <push_dwarf_reg_entry_value>: Remove assert. Override
5646 per_objfile with caller_per_objfile.
5648 2020-05-28 Tom de Vries <tdevries@suse.de>
5650 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5651 PR gold/15646 workaround to symbol kind "type".
5653 2020-05-27 Tom Tromey <tromey@adacore.com>
5655 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5657 2020-05-27 Tom Tromey <tromey@adacore.com>
5659 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5660 Use htab_find_with_hash.
5661 <add_abbrev>: Remove "abbrev_number" parameter.
5662 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5663 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5664 (hash_abbrev): Add comment.
5665 (abbrev_table::lookup_abbrev): Move to header file.
5666 (abbrev_table::read): Update.
5668 2020-05-27 Tom Tromey <tromey@adacore.com>
5670 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5672 <canonical_name>: New member.
5673 <raw_name>: Rename from "name".
5674 (partial_die_info): Initialize canonical_name.
5675 (scan_partial_symbols): Check raw_name.
5676 (partial_die_parent_scope, partial_die_full_name)
5677 (add_partial_symbol, add_partial_subprogram)
5678 (add_partial_enumeration, load_partial_dies): Use "name" method.
5679 (partial_die_info::name): New method.
5680 (partial_die_info::read, guess_partial_die_structure_name)
5681 (partial_die_info::fixup): Update.
5683 2020-05-27 Tom Tromey <tromey@adacore.com>
5685 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5686 <get_ref_die_offset>: Inline.
5687 <get_ref_die_offset_complaint>: New method.
5688 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5689 (attribute::get_ref_die_offset_complaint): Rename from
5690 get_ref_die_offset. Just issue complaint.
5692 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5694 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5696 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5698 * exec.c (exec_file_attach): Use errno value of first openp failure.
5700 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5702 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5703 Don't close thread handle.
5705 2020-05-27 Tom Tromey <tom@tromey.com>
5706 Simon Marchi <simon.marchi@efficios.com>
5708 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5710 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5712 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5713 dwarf2_per_bfd_objfile_data_key>: New globals.
5714 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5715 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5716 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5718 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5719 short-circuit when sharing.
5720 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5721 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5723 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5725 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5727 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5728 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5730 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5732 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5733 build_name_components, find_name_components_bounds>:
5734 Add per_objfile parameter.
5735 (struct mapped_index) <symbol_name_at>: Likewise.
5736 (struct mapped_debug_names): Remove constructor.
5737 <dwarf2_per_objfile>: Remove field.
5738 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5739 (mapped_index_base::find_name_components_bounds,
5740 mapped_index_base::build_name_components,
5741 dw2_expand_symtabs_matching_symbol): Likewise.
5742 (class mock_mapped_index) <symbol_name_at>: Likewise.
5743 (check_match): Likewise.
5744 (check_find_bounds_finds): Likewise.
5745 (test_mapped_index_find_name_component_bounds): Update.
5746 (CHECK_MATCH): Update.
5747 (dw2_expand_symtabs_matching): Update.
5748 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5749 per_objfile parameter.
5750 <find_vec_in_debug_names>: Likewise.
5751 <m_per_objfile>: New field.
5752 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5754 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5755 (dw2_debug_names_iterator::next): Update.
5756 (dw2_debug_names_lookup_symbol): Update.
5757 (dw2_debug_names_expand_symtabs_for_function): Update.
5758 (dw2_debug_names_map_matching_symbols): Update.
5759 (dw2_debug_names_expand_symtabs_matching): Update.
5760 (dwarf2_read_debug_names): Update.
5762 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5764 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5765 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5766 move to dwarf2_per_objfile.
5767 <read_in_chain>: Remove.
5768 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5769 remove_all_cus, age_comp_units>: New methods.
5770 <m_dwarf2_cus>: New member.
5771 (struct dwarf2_per_cu_data) <cu>: Remove.
5772 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5773 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5774 moved to methods of dwarf2_per_objfile.
5775 (dwarf2_clear_marks): Remove.
5776 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5777 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5778 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5779 (dwarf2_per_objfile::remove_all_cus): New.
5780 (class free_cached_comp_units) <~free_cached_comp_units>:
5783 (dw2_do_instantiate_symtab): Adjust.
5784 (fill_in_sig_entry_from_dwo_entry): Adjust.
5785 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5786 (cutu_reader::cutu_reader): Likewise.
5787 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5788 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5789 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5790 and dwarf2_per_objfile::age_comp_units.
5791 (load_partial_comp_unit): Update.
5792 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5793 (process_queue): Likewise.
5794 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5796 (dwarf2_read_addr_index): Likewise.
5797 (follow_die_offset): Likewise.
5798 (dwarf2_fetch_die_loc_sect_off): Likewise.
5799 (dwarf2_fetch_constant_bytes): Likewise.
5800 (dwarf2_fetch_die_type_sect_off): Likewise.
5801 (follow_die_sig_1): Likewise.
5802 (load_full_type_unit): Likewise.
5803 (read_signatured_type): Likewise.
5804 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5805 (dwarf2_cu::~dwarf2_cu): Remove.
5806 (dwarf2_per_objfile::get_cu): New.
5807 (dwarf2_per_objfile::set_cu): New.
5808 (age_cached_comp_units): Rename to...
5809 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5810 to std::unordered_map.
5811 (free_one_cached_comp_unit): Rename to...
5812 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5813 to std::unordered_map.
5814 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5815 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5816 a dwarf2_per_objfile in data.
5817 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5818 (dwarf2_clear_marks): Remove.
5820 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5822 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5823 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5824 (init_tu_and_read_dwo_dies): Likewise.
5825 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5826 (cutu_reader::cutu_reader): Likewise.
5827 (load_partial_comp_unit): Likewise.
5828 (process_psymtab_comp_unit): Update.
5829 (build_type_psymtabs_1): Update.
5830 (process_skeletonless_type_unit): Update.
5831 (load_full_comp_unit): Update.
5832 (find_partial_die): Update.
5833 (dwarf2_read_addr_index): Update.
5834 (read_signatured_type): Update.
5836 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5838 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5839 m_header_read_in>: New fields.
5840 <get_header>: New method.
5841 * dwarf2/read.c (per_cu_header_read_in): Remove.
5842 (dwarf2_per_cu_data::get_header): New.
5843 (dwarf2_per_cu_data::addr_size): Update.
5844 (dwarf2_per_cu_data::offset_size): Update.
5845 (dwarf2_per_cu_data::ref_addr_size): Update.
5847 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5849 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5850 (dw2_do_instantiate_symtab): Update.
5851 (queue_and_load_all_dwo_tus): Change parameter from
5852 dwarf2_per_cu_data to dwarf2_cu.
5853 (dwarf2_fetch_die_loc_sect_off): Update.
5854 (dwarf2_fetch_constant_bytes): Update.
5855 (dwarf2_fetch_die_type_sect_off): Update.
5857 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5859 * dwarf2/read.c (process_full_comp_unit,
5860 process_full_type_unit): Remove per_cu, per_objfile paramters.
5861 Add dwarf2_cu parameter.
5862 (process_queue): Update.
5864 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5866 * dwarf2/read.c (create_cu_from_index_list): Replace
5867 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5868 (create_cus_from_index_list): Likewise.
5869 (create_cus_from_index): Likewise.
5870 (create_signatured_type_table_from_index): Likewise.
5871 (create_cus_from_debug_names_list): Likewise.
5872 (create_cus_from_debug_names): Likewise.
5873 (dwarf2_read_gdb_index): Update.
5874 (dwarf2_read_debug_names): Update.
5876 2020-05-27 Tom Tromey <tom@tromey.com>
5877 Simon Marchi <simon.marchi@efficios.com>
5879 * dwarf2/read.h (struct dwarf2_per_objfile)
5880 <get_type_for_signatured_type, set_type_for_signatured_type>:
5882 <m_type_map>: New member.
5883 (struct signatured_type) <type>: Remove.
5885 (dwarf2_per_objfile::get_type_for_signatured_type,
5886 dwarf2_per_objfile::set_type_for_signatured_type): New.
5887 (get_signatured_type): Use new methods.
5889 2020-05-27 Tom Tromey <tom@tromey.com>
5890 Simon Marchi <simon.marchi@efficios.com>
5892 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5893 (struct dwarf2_per_objfile) <type_units>: New member.
5894 <get_type_unit_group_unshareable>: New method.
5895 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5896 num_symtabs, symtabs>: Remove; move to
5897 type_unit_group_unshareable.
5898 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5899 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5900 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5902 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5904 * dwarf2/read.h (struct dwarf2_per_cu_data):
5905 <dwarf2_per_objfile>: Remove.
5906 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5908 (create_signatured_type_table_from_index): Likewise.
5909 (create_signatured_type_table_from_debug_names): Likewise.
5910 (create_debug_type_hash_table): Likewise.
5911 (fill_in_sig_entry_from_dwo_entry): Likewise.
5912 (create_type_unit_group): Likewise.
5913 (read_comp_units_from_section): Likewise.
5914 (create_cus_hash_table): Likewise.
5916 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5918 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5919 dwarf2_per_cu_data::dwarf2_per_objfile.
5920 (compute_compunit_symtab_includes): Likewise.
5921 (dwarf2_cu::start_symtab): Likewise.
5923 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5925 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5927 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5928 (read_namespace_alias): Update.
5929 (lookup_die_type): Update.
5930 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5931 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5933 (disassemble_dwarf_expression): Update.
5935 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5937 * dwarf2/read.h (struct dwarf2_queue_item): Add
5938 dwarf2_per_objfile parameter, assign new parameter.
5939 <per_objfile>: New field.
5940 * dwarf2/read.c (free_one_cached_comp_unit): Add
5941 dwarf2_per_objfile parameter.
5942 (queue_comp_unit): Likewise.
5943 (dw2_do_instantiate_symtab): Update.
5944 (process_psymtab_comp_unit): Update.
5945 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5946 (process_imported_unit_die): Update.
5947 (queue_and_load_dwo_tu): Update.
5948 (follow_die_offset): Update.
5949 (follow_die_sig_1): Update.
5951 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5953 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5954 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5955 (read_call_site_scope): Assign per_objfile.
5956 (dwarf2_per_cu_data::objfile): Remove.
5957 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5958 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5959 dwarf2_per_objfile parameter.
5960 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5961 dwarf2_per_objfile parameter.
5962 (dwarf_expr_reg_to_entry_parameter): Add output
5963 dwarf2_per_objfile parameter.
5964 (locexpr_get_frame_base): Update.
5965 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5966 <push_dwarf_reg_entry_value>: Update.
5967 <call_site_to_target_addr>: Update.
5968 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5970 (value_of_dwarf_reg_entry): Update.
5971 (rw_pieced_value): Update.
5972 (indirect_synthetic_pointer): Update.
5973 (dwarf2_evaluate_property): Update.
5974 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5976 (locexpr_read_variable): Update.
5977 (locexpr_get_symbol_read_needs): Update.
5978 (loclist_read_variable): Update.
5980 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5982 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5983 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5984 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5986 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5987 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5988 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5990 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5991 sect_variable_value): Add dwarf2_per_objfile parameter.
5992 (class dwarf_evaluate_loc_desc) <dwarf_call,
5993 dwarf_variable_value>: Update.
5994 (fetch_const_value_from_synthetic_pointer): Add
5995 dwarf2_per_objfile parameter.
5996 (fetch_const_value_from_synthetic_pointer): Update.
5997 (coerced_pieced_ref): Update.
5998 (class symbol_needs_eval_context) <dwarf_call,
5999 dwarf_variable_value>: Update.
6000 (dwarf2_compile_expr_to_ax): Update.
6002 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6004 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6006 (dwarf2_evaluate_loc_desc_full): Update.
6008 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6010 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6012 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6013 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6014 dwarf2_per_objfile parameter.
6015 (decode_debug_loc_dwo_addresses): Likewise.
6016 (dwarf2_find_location_expression): Update.
6017 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6018 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6020 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6022 (locexpr_describe_location_1): Likewise.
6023 (locexpr_describe_location): Update.
6025 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6027 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6029 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6030 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6031 (dwarf2_compile_property_to_c): Update.
6032 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6033 use text offset from objfile.
6034 (locexpr_tracepoint_var_ref): Update.
6035 (locexpr_generate_c_location): Update.
6036 (loclist_describe_location): Update.
6037 (loclist_tracepoint_var_ref): Update.
6038 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6039 dwarf2_per_objfile parameter.
6040 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6041 use text offset from objfile.
6042 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6044 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6046 * dwarf2/expr.h (struct dwarf_expr_context)
6047 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6049 <per_objfile>: New member.
6050 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6051 dwarf2_per_objfile parameter. Don't set offset, set
6053 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6054 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6055 a dwarf2_per_objfile object instead of an offset.
6056 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6058 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6059 to dwarf2_expr_executor constructor. Don't set offset.
6060 (dwarf2_fetch_cfa_info): Update.
6061 (struct dwarf2_frame_cache) <text_offset>: Remove.
6062 <per_objfile>: New field.
6063 (dwarf2_frame_cache): Update.
6064 (dwarf2_frame_prev_register): Update.
6065 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6066 <dwarf_evaluate_loc_desc>: Add constructor.
6067 (dwarf2_evaluate_loc_desc_full): Update.
6068 (dwarf2_locexpr_baton_eval): Update.
6069 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6071 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6073 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6075 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6076 addr_sized_int_type>: Move to dwarf2_cu.
6077 <int_type>: Move to dwarf2_per_objfile.
6078 (struct dwarf2_per_objfile) <int_type>: Move here.
6079 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6080 addr_sized_int_type>: Move here.
6081 (read_func_scope): Update.
6082 (read_array_type): Update.
6083 (read_tag_string_type): Update.
6084 (attr_to_dynamic_prop): Update.
6085 (dwarf2_per_cu_data::int_type): Rename to...
6086 (dwarf2_per_objfile::int_type): ... this.
6087 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6088 (dwarf2_cu::addr_sized_int_type): ... this.
6089 (read_subrange_type): Update.
6090 (dwarf2_per_cu_data::addr_type): Rename to...
6091 (dwarf2_cu::addr_type): ... this.
6092 (set_die_type): Update.
6094 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6096 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6097 data through per_cu->cu.
6099 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6101 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6102 dwarf2_per_cu_data parameter fo dwarf2_cu.
6103 (lookup_dwo_type_unit): Likewise.
6104 (read_cutu_die_from_dwo): Likewise.
6105 (lookup_dwo_unit): Likewise.
6106 (open_and_init_dwo_file): Likewise.
6107 (lookup_dwo_cutu): Likewise.
6108 (lookup_dwo_comp_unit): Likewise.
6109 (lookup_dwo_type_unit): Likewise.
6110 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6111 (cutu_reader::cutu_reader): Update.
6113 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6115 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6117 (process_full_type_unit): Likewise.
6118 (process_queue): Update.
6120 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6122 * dwarf2/read.c (recursively_compute_inclusions): Add
6123 dwarf2_per_objfile parameter.
6124 (compute_compunit_symtab_includes): Likewise.
6125 (process_cu_includes): Update.
6127 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6129 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6131 (create_type_unit_group): Update.
6132 (process_psymtab_comp_unit_reader): Update.
6133 (build_type_psymtabs_reader): Update.
6135 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6137 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6138 object through m_this_cu->cu.
6140 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6142 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6144 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6146 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6148 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6149 per_objfile parameter.
6150 (load_full_type_unit): Add per_objfile parameter.
6151 (read_signatured_type): Likewise.
6152 (load_full_comp_unit): Likewise.
6153 (load_cu): Likewise.
6154 (dw2_do_instantiate_symtab): Likewise.
6155 (dw2_get_file_names): Likewise.
6156 (dw2_map_symtabs_matching_filename): Update.
6157 (dw_expand_symtabs_matching_file_matcher): Update.
6158 (dw2_map_symbol_filenames): Update.
6159 (process_psymtab_comp_unit): Add per_objfile parameter.
6160 (build_type_psymtabs_1): Update.
6161 (process_skeletonless_type_unit): Update.
6162 (dwarf2_build_psymtabs_hard): Update.
6163 (load_partial_comp_unit): Add per_objfile parameter.
6164 (scan_partial_symbols): Update.
6165 (load_full_comp_unit): Add per_objfile parameter.
6166 (process_imported_unit_die): Update.
6167 (create_cus_hash_table): Update.
6168 (find_partial_die): Update.
6169 (dwarf2_read_addr_index): Update.
6170 (follow_die_offset): Update.
6171 (dwarf2_fetch_die_loc_sect_off): Update.
6172 (dwarf2_fetch_constant_bytes): Update.
6173 (dwarf2_fetch_die_type_sect_off): Update.
6174 (follow_die_sig_1): Update.
6175 (load_full_type_unit): Add per_objfile parameter.
6176 (read_signatured_type): Likewise.
6178 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6180 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6183 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6185 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6186 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6187 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6189 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6190 (create_cus_from_index): Update.
6191 (dwarf2_read_gdb_index): Update.
6192 (create_cus_from_debug_names): Update.
6193 (dwarf2_read_debug_names): Update.
6194 (get_abbrev_section_for_cu): Update.
6195 (create_all_comp_units): Update.
6196 (read_attribute_value): Update.
6197 (get_debug_line_section): Update.
6198 * dwarf2/index-cache.c (index_cache::store): Update.
6199 * dwarf2/index-write.c (save_gdb_index_command): Update.
6200 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6202 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6204 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6206 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6207 dwarf2_per_cu_data::per_bfd.
6208 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6209 (create_type_unit_group): Likewise.
6210 (queue_comp_unit): Remove reference to
6211 per_cu->dwarf2_per_objfile.
6212 (maybe_queue_comp_unit): Likewise.
6213 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6214 (create_cus_hash_table): Assign new field.
6216 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6218 * dwarf2/read.c: Replace
6219 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6220 dwarf2_cu->per_objfile throughout.
6222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6224 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6225 parameter, don't use per_cu->dwarf2_per_objfile.
6226 (dw2_instantiate_symtab): Likewise.
6227 (dw2_find_last_source_symtab): Update.
6228 (dw2_map_expand_apply): Update.
6229 (dw2_lookup_symbol): Update.
6230 (dw2_expand_symtabs_for_function): Update.
6231 (dw2_expand_all_symtabs): Update.
6232 (dw2_expand_symtabs_with_fullname): Update.
6233 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6234 don't use per_cu->dwarf2_per_objfile.
6235 (dw2_expand_marked_cus): Update.
6236 (dw2_find_pc_sect_compunit_symtab): Update.
6237 (dw2_debug_names_lookup_symbol): Update.
6238 (dw2_debug_names_expand_symtabs_for_function): Update.
6239 (dw2_debug_names_map_matching_symbols): Update.
6240 (dwarf2_psymtab::expand_psymtab): Update.
6242 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6244 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6245 <per_objfile>: New member.
6246 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6247 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6249 (cutu_reader::cutu_reader): Update.
6250 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6252 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6254 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6255 struct dwarf2_per_objfile.
6256 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6258 * dwarf2/read.c (set_die_type): Update.
6259 (get_die_type_at_offset): Update.
6261 2020-05-27 Tom Tromey <tom@tromey.com>
6262 Simon Marchi <simon.marchi@efficios.com>
6264 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6266 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6267 get_symtab, set_symtab>: New methods.
6268 <m_symtabs>: New field.
6269 (struct dwarf2_psymtab): Derive from partial_symtab.
6270 <readin_p, get_compunit_symtab>: Declare methods.
6271 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6272 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6274 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6275 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6276 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6277 (dw2_symtab_iter_next, dw2_print_stats)
6278 (dw2_expand_symtabs_with_fullname)
6279 (dw2_expand_symtabs_matching_one)
6280 (dw_expand_symtabs_matching_file_matcher)
6281 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6282 (dw2_debug_names_iterator::next)
6283 (dw2_debug_names_map_matching_symbols)
6284 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6285 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6286 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6288 (get_compunit_symtab, process_full_comp_unit)
6289 (process_full_type_unit): Update.
6290 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6292 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6294 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6295 then introduce a new dwarf2_per_objfile type.
6296 <read_line_string>: Move to the new dwarf2_per_objfile type.
6297 <objfile>: Likewise.
6298 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6299 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6300 dwarf2_per_objfile->per_bfd.
6301 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6302 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6303 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6304 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6305 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6306 (dwarf2_per_objfile::locate_sections): Rename to...
6307 (dwarf2_per_bfd::locate_sections): ... this.
6308 (dwarf2_per_objfile::get_cutu): Rename to...
6309 (dwarf2_per_bfd::get_cutu): ... this.
6310 (dwarf2_per_objfile::get_cu): Rename to...
6311 (dwarf2_per_bfd::get_cu): ... this.
6312 (dwarf2_per_objfile::get_tu): Rename to...
6313 (dwarf2_per_bfd::get_tu): ... this.
6314 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6315 (dwarf2_per_bfd::allocate_per_cu): ... this.
6316 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6317 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6318 (get_gdb_index_contents_ftype): Change parameter from
6319 dwarf2_per_objfile to dwarf2_per_bfd.
6320 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6321 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6323 2020-05-27 Tom Tromey <tom@tromey.com>
6324 Simon Marchi <simon.marchi@efficios.com>
6326 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6327 (allocate_piece_closure): Set "per_objfile" member.
6328 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6329 (locexpr_describe_location, loclist_describe_location): Use new
6331 * dwarf2/read.c (read_call_site_scope)
6332 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6333 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6334 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6335 handle_data_member_location): Set per_objfile member.
6336 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6338 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6340 2020-05-27 Tom Tromey <tom@tromey.com>
6342 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6343 allocate_signatured_type>: Declare new methods.
6344 <m_num_psymtabs>: New member.
6345 (struct dwarf2_per_cu_data) <index>: New member.
6346 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6347 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6348 (create_cu_from_index_list): Use allocate_per_cu.
6349 (create_signatured_type_table_from_index)
6350 (create_signatured_type_table_from_debug_names)
6351 (create_debug_type_hash_table, add_type_unit)
6352 (read_comp_units_from_section): Use allocate_signatured_type.
6354 2020-05-27 Tom Tromey <tom@tromey.com>
6356 * psymtab.c (partial_map_expand_apply)
6357 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6358 (psym_lookup_global_symbol_language)
6359 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6360 (psym_print_stats, psym_expand_symtabs_for_function)
6361 (psym_map_symbol_filenames, psym_map_matching_symbols)
6362 (psym_expand_symtabs_matching)
6363 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6364 (maintenance_check_psymtabs): Update.
6365 * psympriv.h (struct partial_symtab) <readin_p,
6366 get_compunit_symtab>: Add objfile parameter.
6367 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6369 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6370 get_compunit_symtab>: Likewise.
6371 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6373 2020-05-27 Tom Tromey <tom@tromey.com>
6375 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6377 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6378 (create_cu_from_index_list)
6379 (create_signatured_type_table_from_index)
6380 (create_signatured_type_table_from_debug_names)
6381 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6382 (dwarf2_create_include_psymtab)
6383 (create_debug_type_hash_table, add_type_unit)
6384 (create_type_unit_group, read_comp_units_from_section)
6385 (dwarf2_compute_name, create_cus_hash_table)
6386 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6387 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6389 (dw2_get_real_path): Likewise. Change argument to
6392 2020-05-27 Luis Machado <luis.machado@linaro.org>
6395 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6396 for ldrd (immediate).
6398 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6400 * command.h: Add comment giving the name of class_tui.
6401 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6402 create the fake command for the help for class_tui.
6404 2020-05-26 Tom Tromey <tromey@adacore.com>
6406 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6407 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6408 (val_atr): New function.
6409 (value_val_atr): Use it.
6410 * ada-valprint.c (print_optional_low_bound): Change low bound
6412 (val_print_packed_array_elements): Don't call discrete_position.
6413 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6414 discrete_position for enum types.
6415 * language.c (default_print_array_index): Change type.
6416 * language.h (struct language_defn) <la_print_array_index>: Add
6417 index_type parameter, change type of index_value.
6418 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6419 (default_print_array_index): Update.
6420 * valprint.c (maybe_print_array_index): Don't call
6421 value_from_longest. Update.
6422 (value_print_array_elements): Don't call discrete_position.
6424 2020-05-26 Tom Tromey <tromey@adacore.com>
6426 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6427 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6429 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6432 * avr-tdep.c (avr_integer_to_address): Return data or code
6433 address accordingly to the second 'type' argument of the
6436 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6438 * infcmd.c, inferior.h: (construct_inferior_arguments):
6439 Moved function from here to gdbsupport/common-inferior.{h,cc}
6441 2020-05-23 Tom Tromey <tom@tromey.com>
6443 Revert commit eca1f90c:
6444 * NEWS: Remove entry for completion styling.
6445 * completer.c (_rl_completion_prefix_display_length): Move
6447 (gdb_fnprint): Revert.
6448 (gdb_display_match_list_1): Likewise.
6449 * cli/cli-style.c (completion_prefix_style)
6450 (completion_difference_style, completion_suffix_style): Remove.
6451 (_initialize_cli_style): Revert.
6452 * cli/cli-style.h (completion_prefix_style)
6453 (completion_difference_style, completion_suffix_style): Don't
6456 2020-05-24 Pedro Alves <palves@redhat.com>
6458 * symtab.c (completion_list_add_name): Return boolean indication
6459 of whether the symbol matched.
6460 (completion_list_add_symbol): Don't try to remove C++ aliases if
6461 the symbol didn't match in the first place.
6462 * symtab.h (completion_list_add_name): Return bool.
6464 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6466 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6469 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6473 2020-05-23 Tom Tromey <tom@tromey.com>
6475 * NEWS: Add entry for completion styling.
6476 * completer.c (_rl_completion_prefix_display_length): Move
6477 declaration earlier.
6478 (gdb_fnprint): Use completion_style.
6479 (gdb_display_match_list_1): Likewise.
6480 * cli/cli-style.c (completion_prefix_style)
6481 (completion_difference_style, completion_suffix_style): New
6483 (_initialize_cli_style): Register new globals.
6484 * cli/cli-style.h (completion_prefix_style)
6485 (completion_difference_style, completion_suffix_style): Declare.
6487 2020-05-23 Pedro Alves <palves@redhat.com>
6489 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6490 (parse_escape): Use ISDIGIT instead of isdigit.
6491 (puts_debug): Use gdb_isprint instead of isprint.
6492 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6493 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6494 ISSPACE instead of isspace.
6495 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6497 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6498 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6499 instead of isxdigit and ISDIGIT instead of isdigit.
6501 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6503 * gdbtypes.h (struct type) <field>: New method.
6504 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6507 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6509 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6510 (TYPE_FIELDS): Use type::fields. Change all call sites that
6511 modify the propery to use type::set_fields instead.
6513 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6515 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6516 type::num_fields instead.
6518 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6520 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6522 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6523 that modify the number of fields to use type::set_num_fields
6526 2020-05-22 Tom Tromey <tromey@adacore.com>
6528 * compile/compile-object-load.h (munmap_list_free): Don't
6531 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6533 * annotate.c (annotate_source_line): Update return type, add call
6534 to update current symtab and line.
6535 * annotate.h (annotate_source_line): Update return type, and
6536 extend header comment.
6537 * source.c (info_line_command): Check annotation_level before
6538 calling annotate_source_line.
6539 * stack.c (print_frame_info): If calling annotate_source_line
6540 returns true, then don't print any other source line information.
6542 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6544 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6546 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6548 * coffread.c (patch_type): Remove NULL check before xfree.
6549 * corefile.c (set_gnutarget): Likewise.
6550 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6551 * exec.c (build_section_table): Likewise.
6552 * remote.c (remote_target::pass_signals): Likewise.
6553 * utils.c (n_spaces): Likewise.
6554 * cli/cli-script.c (document_command): Likewise.
6555 * i386-windows-tdep.c (core_process_module_section): Likewise.
6556 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6558 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6560 * symfile.c (reread_symbols): Clear objfile's section_offsets
6561 vector and section indices, re-compute them by calling
6564 2020-05-20 Tom Tromey <tromey@adacore.com>
6566 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6567 (desc_one_bound, desc_index_type): Compute field name.
6569 2020-05-20 Tom de Vries <tdevries@suse.de>
6572 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6574 2020-05-20 Alan Modra <amodra@gmail.com>
6577 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6579 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6580 passed to bfd_set_filename.
6581 * symfile-mem.c (add_vsyscall_page): Likewise for string
6582 passed to symbol_file_add_from_memory.
6583 (symbol_file_add_from_memory): Make name param a const char* and
6586 2020-05-20 Alan Modra <amodra@gmail.com>
6588 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6589 rather than accessing bfd->filename directly.
6590 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6591 and use bfd_section_name.
6592 * dwarf2/frame.c (decode_frame_entry): Likewise.
6593 * exec.c (exec_set_section_address): Likewise.
6594 * solib-aix.c (solib_aix_bfd_open): Likewise.
6595 * stap-probe.c (get_stap_base_address): Likewise.
6596 * symfile.c (reread_symbols): Likewise.
6598 2020-05-19 Tom Tromey <tromey@adacore.com>
6600 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6602 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6604 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6606 2020-05-19 Pedro Alves <palves@redhat.com>
6608 * NEWS (set exec-file-mismatch): Adjust entry.
6609 * exec.c: Include "build-id.h".
6610 (validate_exec_file): Try to match build IDs instead of filenames.
6611 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6612 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6613 and pass down 'warn_if_slow'.
6614 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6615 gdb_bfd_open_closure to pass it down.
6616 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6618 2020-05-19 Pedro Alves <palves@redhat.com>
6620 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6621 * target.c (target_fileio_open_1): Rename to target_fileio_open
6622 and make extern. Use bool.
6623 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6624 (target_fileio_read_alloc_1): Adjust.
6625 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6626 (target_fileio_open_warn_if_slow): Delete declaration.
6628 2020-05-19 Pedro Alves <palves@redhat.com>
6630 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6633 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6635 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6636 whether disp is negative.
6638 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6640 * symfile.h (struct symfile_segment_data)
6641 <~symfile_segment_data>: Remove.
6642 <segment_info>: Change to std::vector.
6643 * symfile.c (default_symfile_segments): Update.
6644 * elfread.c (elf_symfile_segments): Update.
6646 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6648 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6650 <segment_bases, segment_sizes>: Remove.
6651 * symfile.c (default_symfile_segments): Update.
6652 * elfread.c (elf_symfile_segments): Update.
6653 * remote.c (remote_target::get_offsets): Update.
6654 * solib-target.c (solib_target_relocate_section_addresses):
6657 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6659 * symfile.h (struct symfile_segment_data): Initialize fields.
6660 <~symfile_segment_data>: Add.
6661 (symfile_segment_data_up): New.
6662 (struct sym_fns) <sym_segments>: Return a
6663 symfile_segment_data_up.
6664 (default_symfile_segments): Return a symfile_segment_data_up.
6665 (free_symfile_segment_data): Remove.
6666 (get_symfile_segment_data): Return a symfile_segment_data_up.
6667 * symfile.c (default_symfile_segments): Likewise.
6668 (get_symfile_segment_data): Likewise.
6669 (free_symfile_segment_data): Remove.
6670 (symfile_find_segment_sections): Update.
6671 * elfread.c (elf_symfile_segments): Return a
6672 symfile_segment_data_up.
6673 * remote.c (remote_target::get_offsets): Update.
6674 * solib-target.c (solib_target_relocate_section_addresses):
6676 * symfile-debug.c (debug_sym_segments): Return a
6677 symfile_segment_data_up.
6679 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6682 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6683 Hardcode register numbers.
6686 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6687 procfs_find_LDT_entry): Remove.
6688 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6689 procfs_find_LDT_entry): Remove.
6690 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6693 2020-05-17 Pedro Alves <palves@redhat.com>
6694 Andrew Burgess <andrew.burgess@embecosm.com>
6695 Keno Fischer <keno@juliacomputing.com>
6698 * breakpoint.c (build_target_condition_list): Update comments.
6699 (build_target_command_list): Update comments and skip matching
6701 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6702 a separate function. Simplify "set breakpoint auto-hw off"
6704 (insert_breakpoints): Update comment.
6705 (tracepoint_locations_match): New parameter. For breakpoints,
6706 compare location types too, if the caller wants to.
6707 (handle_automatic_hardware_breakpoints): New functions.
6708 (bp_location_is_less_than): Also sort by location type and
6709 hardware breakpoint length.
6710 (update_global_location_list): Handle "set breakpoint auto-hw on"
6712 (update_breakpoint_locations): Ask breakpoint_locations_match to
6713 ignore location types.
6715 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6717 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6720 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6722 * gdbtypes.h (struct type) <name, set_name>: New methods.
6723 (TYPE_CODE): Use type::name. Change all call sites used to set
6724 the name to use type::set_name instead.
6726 2020-05-16 Tom Tromey <tom@tromey.com>
6728 * top.c (quit_force): Update.
6729 * infrun.c (handle_no_resumed): Update.
6730 * top.h (all_uis): New function.
6733 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6735 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6737 2020-05-16 Pedro Alves <palves@redhat.com>
6740 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6742 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6744 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6746 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6747 (sparc64_adi_info): Likewise.
6749 2020-05-15 Tom Tromey <tom@tromey.com>
6751 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6753 (lookup_objfile_from_block): Remove.
6754 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6755 (lookup_global_symbol): Use block_objfile.
6756 * symtab.h (lookup_objfile_from_block): Don't declare.
6757 * printcmd.c (clear_dangling_display_expressions): Use
6759 * parse.c (operator_check_standard): Use block_objfile.
6761 2020-05-15 Tom Tromey <tom@tromey.com>
6763 * language.c (language_alloc_type_symbol): Set
6765 * symtab.c (initialize_objfile_symbol): Remove.
6766 (allocate_symbol): Remove.
6767 (allocate_template_symbol): Remove.
6768 * dwarf2/read.c (fixup_go_packaging): Use "new".
6769 (new_symbol): Use "new".
6770 (read_variable): Don't call initialize_objfile_symbol. Use
6772 (read_func_scope): Use "new".
6773 * xcoffread.c (process_xcoff_symbol): Don't call
6774 initialize_objfile_symbol.
6775 (SYMBOL_DUP): Remove.
6776 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6778 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6779 (allocate_template_symbol): Don't declare.
6780 (struct symbol): Add copy constructor. Change defaults.
6781 * jit.c (finalize_symtab): Use "new".
6782 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6784 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6785 (common_block_end): Use "new".
6786 * mdebugread.c (parse_symbol): Use "new".
6787 (new_symbol): Likewise.
6789 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6791 * NEWS: Mention changes to help and apropos.
6793 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6795 * command.h (enum command_class): Improve comments, document
6796 that class_alias is for user-defined aliases, give the class
6797 name for each class, remove unused class_xdb.
6798 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6799 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6801 * infcmd.c (_initialize_infcmd): Likewise.
6802 * reverse.c (_initialize_reverse): Likewise.
6803 * stack.c (_initialize_stack): Likewise.
6804 * symfile.c (_initialize_symfile): Likewise.
6805 * tracepoint.c (_initialize_tracepoint): Likewise.
6807 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6809 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6810 when their aliased command is traversed.
6811 (help_cmd): Add fput_command_names_styled call to
6812 output command name and aliases when command has an alias.
6814 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6816 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6817 * cli/cli-decode.c (help_cmd_list): Declare as static,
6818 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6819 a command together with the command.
6820 (fput_command_name_styled, fput_command_names_styled): New functions.
6821 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6822 fput_command_name_styled.
6823 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6824 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6826 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6828 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6829 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6830 * command.h (cmd_show_list): Likewise.
6831 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6832 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6834 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6836 * unittests/command-def-selftests.c (traverse_command_structure):
6837 Verify all commands of a list have the same prefix command and
6838 that only the top cmdlist commands have a null prefix.
6840 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6842 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6843 as prefix, not one of its aliases.
6844 (set_cmd_prefix): Remove.
6845 (do_add_cmd): Centralize the setting of the prefix of a command, when
6846 command is defined after its full chain of prefix commands.
6847 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6848 (add_setshow_cmd_full): Likewise.
6849 (update_prefix_field_of_prefixed_commands): New function.
6850 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6851 update_prefix_field_of_prefixed_commands.
6852 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6853 addresses of remote_set_cmdlist and remote_show_cmdlist given
6854 as argument, not the address of an argument.
6855 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6856 * gdb/remote.c (_initialize_remote): Likewise.
6858 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6860 * cli/cli-cmds.c (alias_command): Check for an existing alias
6861 using lookup_cmd_composition, as valid_command_p is too strict
6862 and forbids aliases that are the prefix of an existing alias
6864 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6865 command is properly recognised as a valid command.
6867 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6869 * unittests/help-doc-selftests.c: Rename to
6870 unittests/command-def-selftests.c
6871 * unittests/command-def-selftests.c (help_doc_tests): Update some
6873 (command_structure_tests, traverse_command_structure): New namespace
6875 (command_structure_invariants_tests): New function.
6876 (_initialize_command_def_selftests) Renamed from
6877 _initialize_help_doc_selftests, register command_structure_invariants
6880 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6882 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6885 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6887 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6888 ada_is_fixed_point_type. Update all callers.
6889 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6891 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6893 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6894 print_fixed_point_type. Update all callers.
6895 * ada-valprint.c (ada_value_print_num): Replace call to
6896 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6898 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6900 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6902 (cpu_supports_bts): Add CV_AMD case.
6904 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6905 Simon Marchi <simon.marchi@efficios.com>
6907 * infrun.c (stop_all_threads): Collect multiple wait events at
6910 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6912 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6915 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6917 * gdbtypes.h (struct type) <code, set_code>: New methods.
6918 (TYPE_CODE): Use type::code. Change all call sites used to set
6919 the code to use type::set_code instead.
6921 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6922 Tom de Vries <tdevries@suse.de>
6923 Pedro Alves <palves@redhat.com>
6926 * infrun.c (stop_all_threads): Do NOT ignore
6927 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6928 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6930 (handle_no_resumed): Remove code handling a live inferior with no
6932 * remote.c (has_single_non_exited_thread): New.
6933 (remote_target::update_thread_list): Do not delete a thread if is
6934 the last thread of the process.
6935 * thread.c (thread_select): Call delete_exited_threads instead of
6938 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6940 * infrun.c (stop_all_threads): Enable/disable thread events of all
6941 targets. Move a debug message denoting the end of the function
6942 into the SCOPED_EXIT block.
6944 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6946 * process-stratum-target.h: Include <set>.
6947 (all_non_exited_process_targets, switch_to_target_no_thread): New
6948 function declarations.
6949 * process-stratum-target.c (all_non_exited_process_targets)
6950 (switch_to_target_no_thread): New function implementations.
6952 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6954 * infrun.c (handle_inferior_event): Extract out a piece of code
6956 (mark_non_executing_threads): ...this new function.
6958 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6960 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6963 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6965 * regcache.c (regcache_read_pc_protected): New function
6966 implementation that returns 0 if the PC cannot read via
6968 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6969 instead of 'regcache_read_pc'.
6970 (keep_going_pass_signal): Ditto.
6972 2020-05-13 Tom Tromey <tromey@adacore.com>
6974 * ada-lang.c (align_value): Remove.
6975 (ada_template_to_fixed_record_type_1): Use align_up.
6977 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6979 * async-event.c: Update the copyright year.
6980 * async-event.h: Update the copyright year.
6982 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6984 * objfiles.h (is_addr_in_objfile,
6985 shared_objfile_contains_address_p): Return bool.
6986 * objfile.c (is_addr_in_objfile,
6987 shared_objfile_contains_address_p): Return bool.
6989 2020-05-11 Tom Tromey <tromey@adacore.com>
6991 * cli/cli-cmds.c (info_command): Restore.
6992 (_initialize_cli_cmds): Use add_prefix_command for "info".
6993 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6995 2020-05-11 Tom Tromey <tromey@adacore.com>
6997 * ada-lang.c (ada_value_primitive_field): Now public.
6998 * ada-lang.h (ada_value_primitive_field): Declare.
6999 * ada-valprint.c (print_field_values): Use
7000 ada_value_primitive_field for wrapper fields.
7002 2020-05-11 Tom de Vries <tdevries@suse.de>
7004 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7007 2020-05-11 Tom de Vries <tdevries@suse.de>
7010 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7011 with length 0, if not gdb-produced.
7012 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7014 2020-05-09 Tom de Vries <tdevries@suse.de>
7017 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7020 2020-05-09 Tom Tromey <tom@tromey.com>
7022 * top.c (server_command): Now bool.
7023 * top.h (server_command): Now bool.
7025 2020-05-08 Tom Tromey <tromey@adacore.com>
7027 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7028 already being processed.
7030 2020-05-08 Tom Tromey <tom@tromey.com>
7032 * printcmd.c (struct display) <next>: Remove.
7033 <display>: New constructor.
7034 <exp_string>: Now a std::string.
7035 <enabled_p>: Now a bool.
7036 (display_number): Move definition earlier.
7037 (displays): Rename from display_chain. Now a std::vector.
7038 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7039 (display_command): Update.
7040 (do_one_display, disable_display)
7041 (enable_disable_display_command, do_enable_disable_display):
7043 (free_display): Remove.
7044 (clear_displays): Rewrite.
7045 (delete_display): Update.
7046 (map_display_numbers): Use function_view. Remove "data"
7048 (do_delete_display): Remove.
7049 (undisplay_command): Update.
7050 (do_one_display, do_displays, disable_display)
7051 (info_display_command): Update.
7052 (do_enable_disable_display): Remove.
7053 (enable_disable_display_command)
7054 (clear_dangling_display_expressions): Update.
7056 2020-05-08 Tom Tromey <tom@tromey.com>
7058 * symtab.c (set_symbol_cache_size)
7059 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7060 (maintenance_print_symbol_cache_statistics): Update.
7061 * symmisc.c (print_symbol_bcache_statistics)
7062 (print_objfile_statistics, maintenance_print_objfiles)
7063 (maintenance_info_symtabs, maintenance_check_symtabs)
7064 (maintenance_expand_symtabs, maintenance_info_line_tables):
7066 * symfile-debug.c (set_debug_symfile): Update.
7067 * source.c (forget_cached_source_info): Update.
7068 * python/python.c (gdbpy_progspaces): Update.
7069 * psymtab.c (maintenance_info_psymtabs): Update.
7070 * probe.c (parse_probes): Update.
7071 * linespec.c (iterate_over_all_matching_symtabs)
7072 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7073 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7074 * exec.c (exec_target::close): Update.
7075 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7076 * breakpoint.c (print_one_breakpoint_location)
7077 (create_longjmp_master_breakpoint)
7078 (create_std_terminate_master_breakpoint): Update.
7079 * progspace.c (program_spaces): Now a std::vector.
7080 (maybe_new_address_space): Update.
7081 (add_program_space): Remove.
7082 (program_space::program_space): Update.
7083 (remove_program_space): Update.
7084 (number_of_program_spaces): Remove.
7085 (print_program_space, update_address_spaces): Update.
7086 * progspace.h (program_spaces): Change type.
7087 (ALL_PSPACES): Remove.
7088 (number_of_program_spaces): Don't declare.
7089 (struct program_space) <next>: Remove.
7091 2020-05-08 Tom Tromey <tom@tromey.com>
7093 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7094 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7095 (enable_break): Update.
7096 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7097 (frv_fdpic_find_canonical_descriptor): Update.
7098 (frv_fetch_objfile_link_map): Update.
7099 * progspace.c (program_space::free_all_objfiles): Update.
7100 (program_space::solibs): New method.
7101 * progspace.h (struct program_space) <solibs>: New method.
7102 * solist.h (master_so_list): Don't declare.
7103 (ALL_SO_LIBS): Remove.
7104 * solib.h (so_list_head): Remove.
7105 (update_solib_list): Update comment.
7106 * solib.c (master_so_list): Remove.
7107 (solib_used, update_solib_list, solib_add)
7108 (info_sharedlibrary_command, clear_solib)
7109 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7111 2020-05-08 Tom Tromey <tom@tromey.com>
7113 * extension.c (extension_languages): Now a std::array.
7114 (ALL_EXTENSION_LANGUAGES): Remove.
7115 (get_ext_lang_defn, get_ext_lang_of_file)
7116 (eval_ext_lang_from_control_command): Update.
7117 (finish_ext_lang_initialization)
7118 (auto_load_ext_lang_scripts_for_objfile)
7119 (ext_lang_type_printers::ext_lang_type_printers)
7120 (apply_ext_lang_type_printers)
7121 (ext_lang_type_printers::~ext_lang_type_printers)
7122 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7123 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7124 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7125 (get_matching_xmethod_workers, ext_lang_colorize)
7126 (ext_lang_before_prompt): Update.
7127 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7129 2020-05-08 Tom Tromey <tom@tromey.com>
7131 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7133 <swap_string, m_string>: Remove.
7134 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7136 * stabsread.c (define_symbol, read_type): Update.
7137 * linespec.c (find_linespec_symbols): Update.
7138 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7139 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7140 * dbxread.c (read_dbx_symtab): Update.
7141 * cp-support.h (cp_canonicalize_string_full)
7142 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7143 Return unique_xmalloc_ptr.
7144 * cp-support.c (inspect_type): Update.
7145 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7146 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7148 * c-typeprint.c (print_name_maybe_canonical): Update.
7149 * break-catch-throw.c (check_status_exception_catchpoint):
7152 2020-05-08 Tom de Vries <tdevries@suse.de>
7154 * infrun.c (follow_fork): Copy current_line and current_symtab to
7157 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7159 * async-event.c (struct async_signal_handler, struct
7160 async_event_handler): Reformat, remove typedef.
7162 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7164 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7165 access thistype->main_type->dyn_prop_list directly.
7167 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7169 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7170 (remove_dyn_prop): Remove. Update all users to use
7171 type::remove_dyn_prop.
7172 * gdbtypes.c (remove_dyn_prop): Rename to...
7173 (type::remove_dyn_prop): ... this.
7175 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7177 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7178 (add_dyn_prop): Remove. Update all users to use
7180 * gdbtypes.c (add_dyn_prop): Rename to...
7181 (type::add_dyn_prop): ... this.
7183 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7185 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7186 (get_dyn_prop): Remove. Update all users to use
7188 * gdbtypes.c (get_dyn_prop): Rename to...
7189 (type::dyn_prop): ... this.
7191 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7193 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7195 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7197 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7198 instruction, skip it if it's there.
7200 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7202 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7204 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7206 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7207 * gdbtypes.c (recursive_dump_type): Remove use of
7210 2020-05-03 Tom Tromey <tom@tromey.com>
7212 * breakpoint.c (catch_command, tcatch_command): Remove.
7213 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7214 add_show_prefix_cmd.
7215 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7216 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7218 (add_internal_problem_command): Use add_basic_prefix_cmd,
7219 add_show_prefix_cmd.
7220 * mips-tdep.c (set_mipsfpu_command): Remove.
7221 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7222 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7223 (_initialize_index_cache): Use add_basic_prefix_cmd.
7224 * memattr.c (dummy_cmd): Remove.
7225 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7226 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7227 (_initialize_tui_win): Use add_basic_prefix_cmd,
7228 add_show_prefix_cmd.
7229 * cli/cli-logging.c (set_logging_command): Remove.
7230 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7231 add_show_prefix_cmd.
7232 (show_logging_command): Remove.
7233 * target.c (target_command): Remove.
7234 (add_target): Use add_basic_prefix_cmd.
7236 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7238 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7240 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7242 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7245 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7247 * nbsd-nat.c (nbsd_enable_proc_events)
7248 (nbsd_nat_target::post_startup_inferior): Add.
7249 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7250 (nbsd_nat_target::update_thread_list): Rewrite.
7251 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7252 "PTRACE_LWP_CREATE".
7253 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7255 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7257 * stack.c (_initialize_stack): Remove duplicated creation
7258 of "frame" command and "f" alias.
7260 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7263 * gdbtypes.c (check_typedef): Calculate size of array of
7266 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7269 * i386-tdep.c (i386_push_dummy_call): Call
7270 i386_thiscall_push_dummy_call.
7271 (i386_thiscall_push_dummy_call): New function.
7272 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7273 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7274 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7276 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7278 * gdbarch.sh (do_read): Add shellcheck disable directive for
7281 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7283 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7284 "referenced but not assigned" warning.
7286 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7288 * gdbarch.sh: Remove code that sets fallbackdefault.
7290 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7292 * gdbarch.sh: Use shell operators && and || instead of
7295 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7297 * gdbarch.sh: Use $(...) instead of `...`.
7299 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7301 * gdbarch.sh: Use double quotes around variables.
7303 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7305 * gdbarch.sh: Use %s with printf, instead of variables in the
7308 2020-04-29 Tom Tromey <tromey@adacore.com>
7311 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7313 (read_enumeration_type): Call
7314 update_enumeration_type_from_children later. Update comments.
7315 (process_enumeration_scope): Don't create type fields.
7317 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7319 * nbsd-tdep.c: Include "xml-syscall.h".
7320 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7322 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7324 * nbsd-nat.c: Include "sys/wait.h".
7325 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7326 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7327 (nbsd_nat_target::remove_exec_catchpoint)
7328 (nbsd_nat_target::set_syscall_catchpoint): Add.
7329 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7330 (nbsd_nat_target::insert_exec_catchpoint)
7331 (nbsd_nat_target::remove_exec_catchpoint)
7332 (nbsd_nat_target::set_syscall_catchpoint): Add.
7333 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7334 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7335 `nbsd_get_syscall_number'.
7337 2020-04-29 Tom Tromey <tom@tromey.com>
7339 * stack.c (print_block_frame_labels): Remove.
7341 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7344 * ada-valprint.c (val_print_packed_array_elements): Move array
7345 end bracket to new line.
7346 (ada_val_print_string): Remove extra spaces before first array
7348 * c-valprint.c (c_value_print_array): Likewise.
7349 * m2-valprint.c (m2_print_array_contents): Likewise.
7350 (m2_value_print_inner): Likewise.
7351 * p-valprint.c (pascal_value_print_inner): Likewise.
7352 * valprint.c (generic_val_print_array): Likewise.
7353 (value_print_array_elements): Move first array element and array
7354 end bracket to new line.
7356 2020-04-29 Tom de Vries <tdevries@suse.de>
7359 * linespec.c (find_method): Fix ix calculation.
7361 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7363 * syscalls/update-netbsd.sh: New file.
7364 * syscalls/netbsd.xml: Regenerate.
7365 * data-directory/Makefile.in: Register `netbsd.xml' in
7368 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7370 * syscalls/update-freebsd.sh: Add double quotes.
7372 2020-04-28 Tom Tromey <tom@tromey.com>
7375 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7376 (cmdpy_init): Allow class_tui.
7378 2020-04-28 Mark Williams <mark@myosotissp.com>
7381 * dwarf2read.c: Add missing assingments to list_in_scope when
7382 start_symtab was already called.
7384 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7387 * dwarf2/read.c (offset_map_type): Use
7388 gdb:hash_enum<sect_offset> as hash function.
7390 2020-04-28 Tom de Vries <tdevries@suse.de>
7392 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7393 with DW_AT_signature.
7395 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7397 * configure.ac: Remove check for fs_base/gs_base in
7399 * configure: Re-generate.
7400 * config.in: Re-generate.
7401 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7402 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7403 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7405 2020-04-27 Luis Machado <luis.machado@linaro.org>
7407 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7408 problematic inline frame unwinding situation.
7409 * frame.c (frame_id_computed_p): New function.
7410 * frame.h (frame_id_computed_p): New prototype.
7412 2020-04-26 Tom Tromey <tom@tromey.com>
7414 * command.h (enum command_class) <class_pseudo>: Remove.
7416 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7418 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7421 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7423 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7424 `PT_GET_PROCESS_STATE' block.
7426 2020-04-24 Tom Tromey <tom@tromey.com>
7428 * symtab.h (symbol_get_demangled_name): Don't declare.
7429 * symtab.c (symbol_get_demangled_name): Remove.
7430 (general_symbol_info::natural_name)
7431 (general_symbol_info::demangled_name): Update.
7433 2020-04-24 Tom Tromey <tom@tromey.com>
7436 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7438 2020-04-24 Tom Tromey <tom@tromey.com>
7441 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7443 (new_symbol): Likewise.
7444 * compile/compile-object-load.c (get_out_value_type): Use
7445 symbol_matches_search_name.
7447 2020-04-24 Tom Tromey <tom@tromey.com>
7449 * dwarf2/read.c (add_partial_symbol): Do not call
7450 compute_and_set_names.
7452 2020-04-24 Tom Tromey <tom@tromey.com>
7454 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7457 2020-04-24 Tom Tromey <tom@tromey.com>
7459 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7460 (add_psymbol_to_list): New overload. Make old overload call new
7462 * psympriv.h (add_psymbol_to_list): New overload.
7464 2020-04-24 Tom Tromey <tom@tromey.com>
7466 * dwarf2/read.c (partial_die_info::read) <case
7467 DW_AT_linkage_name>: Use value_as_string.
7468 (dwarf2_string_attr): Use value_as_string.
7469 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7471 * dwarf2/attribute.c (attribute::value_as_string): New method.
7473 2020-04-24 Tom Tromey <tom@tromey.com>
7475 * symtab.c (general_symbol_info::natural_name)
7476 (general_symbol_info::demangled_name): Check for language_rust.
7478 2020-04-24 Tom Tromey <tom@tromey.com>
7480 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7481 (dwarf2_physname): ... from here.
7482 (partial_die_info::read): Add Rust "{" hack.
7484 2020-04-24 Tom Tromey <tom@tromey.com>
7486 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7488 (symbol_set_demangled_name): Don't declare.
7489 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7490 symbol_set_demangled_name.
7491 (general_symbol_info::set_language)
7492 (general_symbol_info::compute_and_set_names): Update.
7493 * minsyms.c (minimal_symbol_reader::install): Update.
7494 * dwarf2/read.c (new_symbol): Update.
7496 2020-04-24 Tom Tromey <tromey@adacore.com>
7499 * python/py-type.c (convert_field): Handle
7500 FIELD_LOC_KIND_DWARF_BLOCK.
7501 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7502 (typy_get_dynamic): Nw function.
7503 (type_object_getset): Add "dynamic".
7506 2020-04-24 Tom Tromey <tromey@adacore.com>
7508 * ada-typeprint.c (print_choices, print_variant_part)
7509 (print_record_field_types_dynamic): New functions.
7510 (print_record_field_types): Use print_record_field_types_dynamic.
7512 2020-04-24 Tom Tromey <tromey@adacore.com>
7514 * dwarf2/read.c (handle_data_member_location): New overload.
7515 (dwarf2_add_field): Use it.
7516 (decode_locdesc): Add "computed" parameter. Update comment.
7517 * gdbtypes.c (is_dynamic_type_internal): Also look for
7518 FIELD_LOC_KIND_DWARF_BLOCK.
7519 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7520 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7521 virtual base classes.
7522 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7523 FIELD_LOC_KIND_DWARF_BLOCK.
7525 2020-04-24 Tom Tromey <tromey@adacore.com>
7527 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7528 * gdbtypes.c (is_dynamic_type_internal): Check
7529 TYPE_HAS_DYNAMIC_LENGTH.
7530 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7531 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7533 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7536 2020-04-24 Tom Tromey <tromey@adacore.com>
7538 * dwarf2/read.c (struct variant_field): Rewrite.
7539 (struct variant_part_builder): New.
7540 (struct nextfield): Remove "variant" field. Add "offset".
7541 (struct field_info): Add "current_variant_part" and
7543 (alloc_discriminant_info): Remove.
7544 (alloc_rust_variant): New function.
7545 (quirk_rust_enum): Update.
7546 (dwarf2_add_field): Set "offset" member. Don't handle
7547 DW_TAG_variant_part.
7548 (offset_map_type): New typedef.
7549 (convert_variant_range, create_one_variant)
7550 (create_one_variant_part, create_variant_parts)
7551 (add_variant_property): New functions.
7552 (dwarf2_attach_fields_to_type): Call add_variant_property.
7553 (read_structure_type): Don't handle DW_TAG_variant_part.
7554 (handle_variant_part, handle_variant): New functions.
7555 (handle_struct_member_die): Use them.
7556 (process_structure_scope): Don't handle variant parts.
7557 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7558 (struct discriminant_info): Remove.
7559 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7560 (struct main_type) <flag_discriminated_union>: Remove.
7561 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7562 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7563 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7565 * valops.c (value_union_variant): Remove.
7566 * value.h (value_union_variant): Don't declare.
7568 2020-04-24 Tom Tromey <tromey@adacore.com>
7570 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7571 (ada_value_primitive_packed_val): Update.
7572 * ada-valprint.c (ada_value_print_1): Update.
7573 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7574 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7575 just an address. Use evaluate_for_locexpr_baton.
7576 (dwarf2_evaluate_property): Update.
7577 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7579 * findvar.c (default_read_var_value): Update.
7580 * gdbtypes.c (compute_variant_fields_inner)
7581 (resolve_dynamic_type_internal): Update.
7582 (resolve_dynamic_type): Change type of valaddr parameter.
7583 * gdbtypes.h (resolve_dynamic_type): Update.
7584 * valarith.c (value_subscripted_rvalue): Update.
7585 * value.c (value_from_contents_and_address): Update.
7587 2020-04-24 Tom Tromey <tromey@adacore.com>
7589 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7590 "push_initial_value" parameter.
7591 (dwarf2_evaluate_property): Likewise.
7592 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7594 2020-04-24 Tom Tromey <tromey@adacore.com>
7596 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7597 (variant::matches, compute_variant_fields_recurse)
7598 (compute_variant_fields_inner, compute_variant_fields): New
7600 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7601 Use resolved_type after type is made.
7602 (operator==): Add new cases.
7603 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7604 (struct discriminant_range, struct variant, struct variant_part):
7606 (union dynamic_prop_data) <variant_parts, original_type>: New
7608 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7609 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7611 * value.c (unpack_bits_as_long): Now public.
7612 * value.h (unpack_bits_as_long): Declare.
7614 2020-04-24 Tom Tromey <tromey@adacore.com>
7616 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7617 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7619 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7621 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7623 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7625 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7626 (remove_fork_catchpoint, post_startup_inferior)
7627 (post_attach): Move...
7628 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7629 (remove_fork_catchpoint, post_startup_inferior)
7630 (post_attach): ...here.
7631 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7632 (remove_fork_catchpoint, post_startup_inferior)
7633 (post_attach): Move...
7634 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7635 (remove_fork_catchpoint, post_startup_inferior)
7636 (post_attach): ...here.
7638 2020-04-24 Tom Tromey <tromey@adacore.com>
7640 * nat/windows-nat.h (struct windows_thread_info)
7641 <pc_adjusted>: New member.
7642 * windows-nat.c (windows_fetch_one_register): Check
7644 (windows_nat_target::get_windows_debug_event)
7645 (windows_nat_target::wait): Set pc_adjusted.
7647 2020-04-24 Tom de Vries <tdevries@suse.de>
7649 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7650 Run gdb-add-index inside temp dir.
7652 2020-04-23 Tom Tromey <tromey@adacore.com>
7654 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7657 2020-04-23 Luis Machado <luis.machado@linaro.org>
7659 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7660 get_frame_register instead of gdbarch_unwind_pc.
7662 2020-04-23 Tom de Vries <tdevries@suse.de>
7664 * symtab.c (lookup_global_symbol): Prefer def over decl.
7666 2020-04-23 Tom de Vries <tdevries@suse.de>
7669 * block.c (best_symbol, better_symbol): Promote to external.
7670 * block.h (best_symbol, better_symbol): Declare.
7671 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7674 2020-04-23 Tom Tromey <tromey@adacore.com>
7677 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7678 "const char *", not a "const std::string &".
7679 <name_and_matcher::operator==>: Update.
7680 * unittests/lookup_name_info-selftests.c: Change type of
7683 2020-04-23 Tom Tromey <tom@tromey.com>
7685 * inferior.h (iterate_over_inferiors): Don't declare.
7686 * inferior.c (iterate_over_inferiors): Remove.
7687 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7689 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7690 use iterate_over_inferiors.
7691 (darwin_resume_inferior_it)
7692 (struct resume_inferior_threads_param)
7693 (darwin_resume_inferior_threads_it): Remove.
7694 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7696 2020-04-23 Tom de Vries <tdevries@suse.de>
7698 * blockframe.c (find_pc_partial_function): Use
7699 find_pc_sect_compunit_symtab rather than
7700 objfile->sf->qf->find_pc_sect_compunit_symtab.
7702 2020-04-22 Tom de Vries <tdevries@suse.de>
7705 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7708 2020-04-22 Tom de Vries <tdevries@suse.de>
7711 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7714 2020-04-22 Tom de Vries <tdevries@suse.de>
7717 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7718 CU if already created.
7720 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7722 * infrun.c (displaced_step_fixup): Switch to the event_thread
7723 before calling displaced_step_restore, not after.
7725 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7727 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7728 its inferior is not recorded by us.
7729 (record_btrace_target_open): Replace call to
7730 all_non_exited_threads () with call to current_inferior
7731 ()->non_exited_threads ().
7732 (record_btrace_target::stop_recording): Likewise.
7733 (record_btrace_target::close): Likewise.
7734 (record_btrace_target::wait): Likewise.
7735 (record_btrace_target::record_stop_replaying): Likewise.
7737 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7739 * btrace.c (btrace_enable): Throw an error on double enables and
7740 when enabling recording fails.
7741 (btrace_disable): Throw an error if the thread is not recorded.
7743 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7745 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7746 request if we do not have a thread_info.
7748 2020-04-21 Tom de Vries <tdevries@suse.de>
7752 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7753 exception in get_frame_id.
7755 2020-04-20 Tom Tromey <tromey@adacore.com>
7757 * python/python.c (struct gdbpy_event): Mark move constructor as
7759 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7760 constructor as noexcept.
7761 * completer.h (struct completion_result): Mark move constructor as
7763 * completer.c (completion_result::completion_result): Use
7764 initialization style. Don't call reset_match_list.
7766 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7768 * MAINTAINERS (Write After Approval): Add myself.
7770 2020-04-18 Tom Tromey <tom@tromey.com>
7772 * windows-tdep.c (init_w32_command_list)
7773 (w32_prefix_command_valid): Restore.
7774 (_initialize_windows_tdep): Call init_w32_command_list.
7776 2020-04-18 Tom Tromey <tom@tromey.com>
7778 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7779 * value.c (value_fn_field): Update.
7780 * valops.c (find_function_in_inferior)
7781 (value_allocate_space_in_inferior): Update.
7782 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7784 * tui/tui-source.c (tui_source_window::set_contents): Update.
7785 * symtab.c (lookup_global_or_static_symbol)
7786 (find_function_start_sal_1, skip_prologue_sal)
7787 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7788 * symmisc.c (dump_msymbols, dump_symtab_1)
7789 (maintenance_print_one_line_table): Update.
7790 * symfile.c (init_entry_point_info, section_is_mapped)
7791 (list_overlays_command, simple_read_overlay_table)
7792 (simple_overlay_update_1): Update.
7793 * stap-probe.c (handle_stap_probe): Update.
7794 * stabsread.c (dbx_init_float_type, define_symbol)
7795 (read_one_struct_field, read_enum_type, read_range_type): Update.
7796 * source.c (info_line_command): Update.
7797 * python/python.c (gdbpy_source_objfile_script)
7798 (gdbpy_execute_objfile_script): Update.
7799 * python/py-type.c (save_objfile_types): Update.
7800 * python/py-objfile.c (py_free_objfile): Update.
7801 * python/py-inferior.c (python_new_objfile): Update.
7802 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7803 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7804 (maintenance_check_psymtabs): Update.
7805 * printcmd.c (info_address_command): Update.
7806 * objfiles.h (struct objfile) <arch>: New method, from
7808 (get_objfile_arch): Don't declare.
7809 * objfiles.c (get_objfile_arch): Remove.
7810 (filter_overlapping_sections): Update.
7811 * minsyms.c (msymbol_is_function): Update.
7812 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7813 (output_nondebug_symbol): Update.
7814 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7815 (mdebug_expand_psymtab): Update.
7816 * machoread.c (macho_add_oso_symfile): Update.
7817 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7819 * linux-fork.c (checkpoint_command): Update.
7820 * linespec.c (convert_linespec_to_sals): Update.
7821 * jit.c (finalize_symtab): Update.
7822 * infrun.c (insert_exception_resume_from_probe): Update.
7823 * ia64-tdep.c (ia64_find_unwind_table): Update.
7824 * hppa-tdep.c (internalize_unwinds): Update.
7825 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7827 * gcore.c (call_target_sbrk): Update.
7828 * elfread.c (record_minimal_symbol, elf_symtab_read)
7829 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7830 (elf_gnu_ifunc_resolve_by_got): Update.
7831 * dwarf2/read.c (create_addrmap_from_index)
7832 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7833 (read_debug_names_from_section)
7834 (process_psymtab_comp_unit_reader, add_partial_symbol)
7835 (add_partial_subprogram, process_full_comp_unit)
7836 (read_file_scope, read_func_scope, read_lexical_block_scope)
7837 (read_call_site_scope, dwarf2_ranges_read)
7838 (dwarf2_record_block_ranges, dwarf2_add_field)
7839 (mark_common_block_symbol_computed, read_tag_pointer_type)
7840 (read_tag_string_type, dwarf2_init_float_type)
7841 (dwarf2_init_complex_target_type, read_base_type)
7842 (partial_die_info::read, partial_die_info::read)
7843 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7844 (dwarf2_fetch_die_loc_sect_off): Update.
7845 * dwarf2/loc.c (dwarf2_find_location_expression)
7846 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7847 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7848 (dwarf2_loc_desc_get_symbol_read_needs)
7849 (locexpr_describe_location_piece, locexpr_describe_location_1)
7850 (loclist_describe_location): Update.
7851 * dwarf2/index-write.c (write_debug_names): Update.
7852 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7853 * dtrace-probe.c (dtrace_process_dof): Update.
7854 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7855 (process_one_symbol): Update.
7856 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7857 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7858 (coff_read_enum_type): Update.
7859 * cli/cli-cmds.c (edit_command, list_command): Update.
7860 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7861 * breakpoint.c (create_overlay_event_breakpoint)
7862 (create_longjmp_master_breakpoint)
7863 (create_std_terminate_master_breakpoint)
7864 (create_exception_master_breakpoint, get_sal_arch): Update.
7865 * block.c (block_gdbarch): Update.
7866 * annotate.c (annotate_source_line): Update.
7868 2020-04-17 Tom Tromey <tromey@adacore.com>
7870 * auto-load.c (show_auto_load_cmd): Remove.
7871 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7872 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7873 (maintenance_print_arc_command): Remove.
7874 * tui/tui-win.c (tui_command): Remove.
7875 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7876 * tui/tui-layout.c (tui_layout_command): Remove.
7877 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7878 * python/python.c (user_set_python, user_show_python): Remove.
7879 (_initialize_python): Use add_basic_prefix_cmd,
7880 add_show_prefix_cmd.
7881 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7882 (install_gdb_commands): Use add_basic_prefix_cmd,
7883 add_show_prefix_cmd.
7884 (info_guile_command): Remove.
7885 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7886 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7887 add_show_prefix_cmd.
7888 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7889 Remove do_set and do_show parameters.
7890 * cli/cli-style.c (set_style, show_style): Remove.
7891 (_initialize_cli_style): Use add_basic_prefix_cmd,
7892 add_show_prefix_cmd.
7893 (cli_style_option::add_setshow_commands): Remove do_set and
7895 (cli_style_option::add_setshow_commands): Use
7896 add_basic_prefix_cmd, add_show_prefix_cmd.
7897 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7898 (set_style_name): Remove.
7899 * cli/cli-dump.c (dump_command, append_command): Remove.
7900 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7901 (tekhex_dump_command, binary_dump_command)
7902 (binary_append_command): Remove.
7903 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7904 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7905 (init_w32_command_list): Remove; move into ...
7906 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7907 * valprint.c (set_print, show_print, set_print_raw)
7908 (show_print_raw): Remove.
7909 (_initialize_valprint): Use add_basic_prefix_cmd,
7910 add_show_prefix_cmd.
7911 * typeprint.c (set_print_type, show_print_type): Remove.
7912 (_initialize_typeprint): Use add_basic_prefix_cmd,
7913 add_show_prefix_cmd.
7914 * record.c (set_record_command, show_record_command): Remove.
7915 (_initialize_record): Use add_basic_prefix_cmd,
7916 add_show_prefix_cmd.
7917 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7918 add_show_prefix_cmd.
7919 (info_command, show_command, set_debug, show_debug): Remove.
7920 * top.h (set_history, show_history): Don't declare.
7921 * top.c (set_history, show_history): Remove.
7922 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7923 (unset_tdesc_cmd): Remove.
7924 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7925 add_show_prefix_cmd.
7926 * symtab.c (info_module_command): Remove.
7927 (_initialize_symtab): Use add_basic_prefix_cmd.
7928 * symfile.c (overlay_command): Remove.
7929 (_initialize_symfile): Use add_basic_prefix_cmd.
7930 * sparc64-tdep.c (info_adi_command): Remove.
7931 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7932 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7933 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7934 add_show_prefix_cmd.
7935 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7936 (_initialize_serial): Use add_basic_prefix_cmd,
7937 add_show_prefix_cmd.
7938 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7939 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7940 add_show_prefix_cmd.
7941 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7942 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7943 add_show_prefix_cmd.
7944 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7945 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7946 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7947 add_show_prefix_cmd.
7948 * remote.c (remote_command, set_remote_cmd): Remove.
7949 (_initialize_remote): Use add_basic_prefix_cmd.
7950 * record-full.c (set_record_full_command)
7951 (show_record_full_command): Remove.
7952 (_initialize_record_full): Use add_basic_prefix_cmd,
7953 add_show_prefix_cmd.
7954 * record-btrace.c (cmd_set_record_btrace)
7955 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7956 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7957 (cmd_show_record_btrace_pt): Remove.
7958 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7959 add_show_prefix_cmd.
7960 * ravenscar-thread.c (set_ravenscar_command)
7961 (show_ravenscar_command): Remove.
7962 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7963 add_show_prefix_cmd.
7964 * mips-tdep.c (show_mips_command, set_mips_command)
7965 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7966 add_show_prefix_cmd.
7967 * maint.c (maintenance_command, maintenance_info_command)
7968 (maintenance_check_command, maintenance_print_command)
7969 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7970 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7971 add_show_prefix_cmd.
7972 (show_per_command_cmd): Remove.
7973 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7975 (maintenance_show_test_settings_cmd): Remove.
7976 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7977 add_show_prefix_cmd.
7978 * maint-test-options.c (maintenance_test_options_command):
7980 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7981 * macrocmd.c (macro_command): Remove
7982 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7983 * language.c (set_check, show_check): Remove.
7984 (_initialize_language): Use add_basic_prefix_cmd,
7985 add_show_prefix_cmd.
7986 * infcmd.c (unset_command): Remove.
7987 (_initialize_infcmd): Use add_basic_prefix_cmd.
7988 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7989 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7990 add_show_prefix_cmd.
7991 * go32-nat.c (go32_info_dos_command): Remove.
7992 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7993 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7994 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7995 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7996 (_initialize_frame): Use add_basic_prefix_cmd,
7997 add_show_prefix_cmd.
7998 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7999 (_initialize_dcache): Use add_basic_prefix_cmd,
8000 add_show_prefix_cmd.
8001 * cp-support.c (maint_cplus_command): Remove.
8002 (_initialize_cp_support): Use add_basic_prefix_cmd.
8003 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8004 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8005 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8006 add_basic_prefix_cmd, add_show_prefix_cmd.
8007 * breakpoint.c (save_command): Remove.
8008 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8009 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8010 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8011 add_show_prefix_cmd.
8012 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8013 (set_ada_command, show_ada_command): Remove.
8014 (_initialize_ada_language): Use add_basic_prefix_cmd,
8015 add_show_prefix_cmd.
8016 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8018 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8020 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8021 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8023 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8025 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8028 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8030 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8031 import table is not at beginning of .idata section.
8033 2020-04-16 Pedro Alves <palves@redhat.com>
8035 * inferior.c (delete_inferior): Use delete operator directly
8036 instead of delete_program_space.
8037 * progspace.c (add_program_space): New, factored out from
8038 program_space::program_space.
8039 (remove_program_space): New, factored out from
8040 delete_program_space.
8041 (program_space::program_space): Remove intro comment. Rewrite.
8042 (program_space::~program_space): Remove intro comment. Call
8043 remove_program_space.
8044 (delete_program_space): Delete.
8045 * progspace.h (program_space::program_space): Make explicit. Move
8046 intro comment here, adjusted.
8047 (program_space::~program_space): Move intro comment here,
8049 (delete_program_space): Remove.
8051 2020-04-16 Tom Tromey <tromey@adacore.com>
8053 * windows-nat.c (windows_nat::handle_access_violation): New
8055 * nat/windows-nat.h (handle_access_violation): Declare.
8056 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8057 windows-nat.c. Call handle_access_violation.
8059 2020-04-16 Tom de Vries <tdevries@suse.de>
8062 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8063 CUs without psymtab.
8065 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8067 * python/python.c (do_start_initialization): Don't call
8068 PyEval_InitThreads for Python 3.9 and beyond.
8070 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8072 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8074 (obsd_nat_target::wait): Likewise.
8076 2020-04-15 Tom Tromey <tromey@adacore.com>
8078 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8079 (DEBUG_EXCEPT): Use debug_printf.
8081 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8083 * completer.c (class completion_tracker::completion_hash_entry)
8084 <hash_name>: New member function.
8085 (completion_tracker::discard_completions): New callback to hash a
8086 completion_hash_entry, pass this to htab_create_alloc.
8088 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8090 * windows-nat.c (windows_make_so): Warn rather than stopping with
8091 an error if realpath() fails.
8093 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8095 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8096 (nbsd_nat_target::info_proc): Add do_status.
8098 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8099 Tom de Vries <tdevries@suse.de>
8102 * psympriv.h (struct partial_symtab::read_symtab)
8103 (struct partial_symtab::expand_psymtab)
8104 (struct partial_symtab::read_dependencies): Update comments.
8105 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8106 read_symtab for includer.
8107 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8108 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8109 (struct dwarf2_include_psymtab::m_readin): Remove.
8110 (struct dwarf2_include_psymtab::includer): New member function.
8111 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8113 2020-04-14 Tom de Vries <tdevries@suse.de>
8116 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8117 with NULL symbol_matcher and lookup_name.
8118 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8120 * dwarf2/read.c (dw2_expand_symtabs_matching)
8121 (dw2_debug_names_expand_symtabs_matching): Same.
8122 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8123 Make lookup_name a pointer. Update comment.
8124 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8125 lookup_name being a pointer.
8126 * symfile.c (expand_symtabs_matching): Same.
8127 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8128 * linespec.c (iterate_over_all_matching_symtabs): Same.
8130 2020-04-13 Tom Tromey <tom@tromey.com>
8132 * run-on-main-thread.c: Update include.
8133 * unittests/main-thread-selftests.c: Update include.
8134 * tui/tui-win.c: Update include.
8135 * tui/tui-io.c: Update include.
8136 * tui/tui-interp.c: Update include.
8137 * tui/tui-hooks.c: Update include.
8138 * top.h: Update include.
8139 * top.c: Update include.
8140 * ser-base.c: Update include.
8141 * remote.c: Update include.
8142 * remote-notif.c: Update include.
8143 * remote-fileio.c: Update include.
8144 * record-full.c: Update include.
8145 * record-btrace.c: Update include.
8146 * python/python.c: Update include.
8147 * posix-hdep.c: Update include.
8148 * mingw-hdep.c: Update include.
8149 * mi/mi-main.c: Update include.
8150 * mi/mi-interp.c: Update include.
8151 * main.c: Update include.
8152 * linux-nat.c: Update include.
8153 * interps.c: Update include.
8154 * infrun.c: Update include.
8155 * inf-loop.c: Update include.
8156 * event-top.c: Update include.
8157 * event-loop.c: Move to ../gdbsupport/.
8158 * event-loop.h: Move to ../gdbsupport/.
8159 * async-event.h: Update include.
8160 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8162 2020-04-13 Tom Tromey <tom@tromey.com>
8164 * tui/tui-win.c: Include async-event.h.
8165 * remote.c: Include async-event.h.
8166 * remote-notif.c: Include async-event.h.
8167 * record-full.c: Include async-event.h.
8168 * record-btrace.c: Include async-event.h.
8169 * infrun.c: Include async-event.h.
8170 * event-top.c: Include async-event.h.
8171 * event-loop.h: Move some declarations to async-event.h.
8172 * event-loop.c: Don't include ser-event.h or top.h. Move some
8173 code to async-event.c.
8174 * async-event.h: New file.
8175 * async-event.c: New file.
8176 * Makefile.in (COMMON_SFILES): Add async-event.c.
8177 (HFILES_NO_SRCDIR): Add async-event.h.
8179 2020-04-13 Tom Tromey <tom@tromey.com>
8181 * utils.c (flush_streams): New function.
8182 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8184 2020-04-13 Tom Tromey <tom@tromey.com>
8186 * event-loop.c (handle_file_event): Use warning, not
8189 2020-04-13 Tom Tromey <tom@tromey.com>
8191 * event-loop.c: Include <chrono>.
8193 2020-04-13 Tom Tromey <tom@tromey.com>
8195 * gdb_select.h: Move to ../gdbsupport/.
8196 * event-loop.c: Update include path.
8197 * top.c: Update include path.
8198 * ser-base.c: Update include path.
8199 * ui-file.c: Update include path.
8200 * ser-tcp.c: Update include path.
8201 * guile/scm-ports.c: Update include path.
8202 * posix-hdep.c: Update include path.
8203 * ser-unix.c: Update include path.
8204 * gdb_usleep.c: Update include path.
8205 * mingw-hdep.c: Update include path.
8206 * inflow.c: Update include path.
8207 * infrun.c: Update include path.
8208 * event-top.c: Update include path.
8210 2020-04-13 Tom Tromey <tom@tromey.com>
8212 * configure: Rebuild.
8213 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8215 2020-04-13 Tom Tromey <tom@tromey.com>
8217 * event-loop.h (start_event_loop): Don't declare.
8218 * event-loop.c (start_event_loop): Move...
8219 * main.c (start_event_loop): ...here. Now static.
8221 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8223 * MAINTAINERS: Update my email address.
8225 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8227 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8230 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8232 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8233 (nbsd_nat_target::info_proc): Add do_cmdline.
8235 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8237 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8238 (nbsd_nat_target::info_proc): Add do_cwd.
8240 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8242 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8244 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8246 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8247 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8248 (nbsd_nat_target::info_proc): New functions.
8249 * nbsd-nat.c (kinfo_get_vmmap): New function.
8250 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8251 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8252 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8253 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8255 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8256 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8257 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8258 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8259 (KINFO_VME_FLAG_GROWS_DOWN): New.
8261 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8263 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8266 2020-04-10 Tom Tromey <tromey@adacore.com>
8268 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8270 2020-04-10 Tom Tromey <tromey@adacore.com>
8272 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8273 separate debug files.
8275 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8277 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8279 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8281 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8282 Check for STATUS_WX86_BREAKPOINT.
8283 (windows_nat_target::wait): Same.
8285 2020-04-10 Tom de Vries <tdevries@suse.de>
8288 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8290 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8292 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8293 (Write After Approval): Remove Tom de Vries.
8295 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8298 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8300 * buildsym.c (record_line): Fix undefined behavior and preserve
8303 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8305 * auxv.h (svr4_auxv_parse): New.
8306 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8307 and generic_auxv_parse.
8308 (svr4_auxv_parse): Add.
8309 * obsd-tdep.c: Include "auxv.h".
8310 (obsd_auxv_parse): Remove.
8311 (obsd_init_abi): Remove comment.
8312 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8313 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8314 * nbsd-tdep.c: Include "auxv.h".
8315 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8317 2020-04-08 Tom Tromey <tromey@adacore.com>
8319 * nat/windows-nat.h (last_wait_event): Don't declare.
8320 (wait_for_debug_event): Update comment.
8321 * nat/windows-nat.c (last_wait_event): Now static.
8323 2020-04-08 Tom Tromey <tromey@adacore.com>
8325 * windows-nat.c (wait_for_debug_event): Move to
8327 * nat/windows-nat.h (wait_for_debug_event): Declare.
8328 * nat/windows-nat.c (wait_for_debug_event): Move from
8329 windows-nat.c. No longer static.
8331 2020-04-08 Tom Tromey <tromey@adacore.com>
8333 * windows-nat.c (get_windows_debug_event): Use
8335 * nat/windows-nat.h (fetch_pending_stop): Declare.
8336 * nat/windows-nat.c (fetch_pending_stop): New function.
8338 2020-04-08 Tom Tromey <tromey@adacore.com>
8340 * windows-nat.c (windows_continue): Use matching_pending_stop and
8341 continue_last_debug_event.
8342 * nat/windows-nat.h (matching_pending_stop)
8343 (continue_last_debug_event): Declare.
8344 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8345 (matching_pending_stop, continue_last_debug_event): New
8348 2020-04-08 Tom Tromey <tromey@adacore.com>
8350 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8351 (handle_exception_result): Move to nat/windows-nat.h.
8352 (DEBUG_EXCEPTION_SIMPLE): Remove.
8353 (windows_nat::handle_ms_vc_exception): New function.
8354 (handle_exception): Move to nat/windows-nat.c.
8355 (get_windows_debug_event): Update.
8356 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8358 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8359 (handle_exception_result): Move from windows-nat.c.
8360 (handle_exception): Declare.
8361 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8362 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8365 2020-04-08 Tom Tromey <tromey@adacore.com>
8367 * windows-nat.c (exception_count, event_count): Remove.
8368 (handle_exception, get_windows_debug_event)
8369 (do_initial_windows_stuff): Update.
8371 2020-04-08 Tom Tromey <tromey@adacore.com>
8373 * windows-nat.c (windows_nat::handle_load_dll)
8374 (windows_nat::handle_unload_dll): Rename. No longer static.
8375 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8378 2020-04-08 Tom Tromey <tromey@adacore.com>
8380 * complaints.h (stop_whining): Declare at top-level.
8381 (complaint): Don't declare stop_whining.
8383 2020-04-08 Tom Tromey <tromey@adacore.com>
8385 * windows-nat.c (windows_nat::handle_output_debug_string):
8386 Rename. No longer static.
8387 * nat/windows-nat.h (handle_output_debug_string): Declare.
8389 2020-04-08 Tom Tromey <tromey@adacore.com>
8391 * windows-nat.c (current_process_handle, current_process_id)
8392 (main_thread_id, last_sig, current_event, last_wait_event)
8393 (current_windows_thread, desired_stop_thread_id, pending_stops)
8394 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8395 (display_selectors, fake_create_process)
8396 (get_windows_debug_event): Update.
8397 * nat/windows-nat.h (current_process_handle, current_process_id)
8398 (main_thread_id, last_sig, current_event, last_wait_event)
8399 (current_windows_thread, desired_stop_thread_id, pending_stops)
8400 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8401 * nat/windows-nat.c (current_process_handle, current_process_id)
8402 (main_thread_id, last_sig, current_event, last_wait_event)
8403 (current_windows_thread, desired_stop_thread_id, pending_stops)
8404 (siginfo_er): New globals. Move from windows-nat.c.
8406 2020-04-08 Tom Tromey <tromey@adacore.com>
8408 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8409 (handle_load_dll): Update.
8410 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8412 2020-04-08 Tom Tromey <tromey@adacore.com>
8414 * windows-nat.c (enum thread_disposition_type): Move to
8416 (windows_nat::thread_rec): Rename from thread_rec. No longer
8418 (windows_add_thread, windows_nat_target::fetch_registers)
8419 (windows_nat_target::store_registers, handle_exception)
8420 (windows_nat_target::resume, get_windows_debug_event)
8421 (windows_nat_target::get_tib_address)
8422 (windows_nat_target::thread_name)
8423 (windows_nat_target::thread_alive): Update.
8424 * nat/windows-nat.h (enum thread_disposition_type): Move from
8426 (thread_rec): Declare.
8428 2020-04-08 Tom Tromey <tromey@adacore.com>
8430 * windows-nat.c: Add "using namespace".
8431 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8432 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8434 2020-04-08 Tom Tromey <tromey@adacore.com>
8436 * nat/windows-nat.h (struct windows_thread_info): Declare
8438 * nat/windows-nat.c (~windows_thread_info): New.
8440 2020-04-08 Tom Tromey <tromey@adacore.com>
8443 * windows-nat.c (current_event): Update comment.
8444 (last_wait_event, desired_stop_thread_id): New globals.
8445 (struct pending_stop): New.
8446 (pending_stops): New global.
8447 (windows_nat_target) <stopped_by_sw_breakpoint>
8448 <supports_stopped_by_sw_breakpoint>: New methods.
8449 (windows_fetch_one_register): Add assertions. Adjust PC.
8450 (windows_continue): Handle pending stops. Suspend other threads
8451 when stepping. Use last_wait_event
8452 (wait_for_debug_event): New function.
8453 (get_windows_debug_event): Use wait_for_debug_event. Handle
8454 pending stops. Queue spurious stops.
8455 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8456 (windows_nat_target::kill): Use wait_for_debug_event.
8457 * nat/windows-nat.h (struct windows_thread_info)
8458 <stopped_at_software_breakpoint>: New field.
8459 * nat/windows-nat.c (windows_thread_info::resume): Clear
8460 stopped_at_software_breakpoint.
8462 2020-04-08 Tom Tromey <tromey@adacore.com>
8464 * windows-nat.c (enum thread_disposition_type): New.
8465 (thread_rec): Replace "get_context" parameter with "disposition";
8467 (windows_add_thread, windows_nat_target::fetch_registers)
8468 (windows_nat_target::store_registers, handle_exception)
8469 (windows_nat_target::resume, get_windows_debug_event)
8470 (windows_nat_target::get_tib_address)
8471 (windows_nat_target::thread_name)
8472 (windows_nat_target::thread_alive): Update.
8474 2020-04-08 Tom Tromey <tromey@adacore.com>
8476 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8477 (windows_continue): Use windows_continue::resume.
8478 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8479 resume>: Declare new methods.
8480 * nat/windows-nat.c: New file.
8481 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8483 2020-04-08 Tom Tromey <tromey@adacore.com>
8485 * windows-nat.c (windows_add_thread, windows_delete_thread)
8486 (windows_nat_target::fetch_registers)
8487 (windows_nat_target::store_registers, fake_create_process)
8488 (windows_nat_target::resume, windows_nat_target::resume)
8489 (get_windows_debug_event, windows_nat_target::wait)
8490 (windows_nat_target::pid_to_str)
8491 (windows_nat_target::get_tib_address)
8492 (windows_nat_target::get_ada_task_ptid)
8493 (windows_nat_target::thread_name)
8494 (windows_nat_target::thread_alive): Use lwp, not tid.
8496 2020-04-08 Tom Tromey <tromey@adacore.com>
8498 * windows-nat.c (handle_exception)
8499 (windows_nat_target::thread_name): Update.
8500 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8501 <name>: Now unique_xmalloc_ptr.
8503 2020-04-08 Tom Tromey <tromey@adacore.com>
8505 * windows-nat.c (thread_rec)
8506 (windows_nat_target::fetch_registers): Update.
8507 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8509 <debug_registers_changed, reload_context>: Now bool.
8511 2020-04-08 Tom Tromey <tromey@adacore.com>
8513 * windows-nat.c (windows_add_thread): Use new.
8514 (windows_init_thread_list, windows_delete_thread): Use delete.
8515 (get_windows_debug_event): Update.
8516 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8517 destructor, and initializers.
8519 2020-04-08 Tom Tromey <tromey@adacore.com>
8521 * windows-nat.c (struct windows_thread_info): Remove.
8522 * nat/windows-nat.h: New file.
8524 2020-04-08 Tom Tromey <tromey@adacore.com>
8526 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8527 (thread_rec, windows_add_thread, windows_delete_thread)
8528 (windows_continue): Update.
8530 2020-04-08 Tom Tromey <tromey@adacore.com>
8532 * windows-nat.c (struct windows_thread_info): Remove typedef.
8533 (thread_head): Remove.
8534 (thread_list): New global.
8535 (thread_rec, windows_add_thread, windows_init_thread_list)
8536 (windows_delete_thread, windows_continue): Update.
8538 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8540 * windows-tdep.h (windows_init_abi): Add comment.
8541 (cygwin_init_abi): New declaration.
8542 * windows-tdep.c: Split signal enumeration in two, one for
8543 Windows and one for Cygwin.
8544 (windows_gdb_signal_to_target): Only deal with signal of the
8546 (cygwin_gdb_signal_to_target): New function.
8547 (windows_init_abi): Rename to windows_init_abi_common, don't set
8548 gdb_signal_to_target gdbarch method. Add new new function with
8550 (cygwin_init_abi): New function.
8551 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8552 comment. Don't call windows_init_abi.
8553 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8554 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8555 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8556 i386_windows_init_abi_common, don't call windows_init_abi. Add
8557 a new function of this name.
8558 (i386_cygwin_init_abi): New function.
8559 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8562 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8564 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8566 (dwarf2_read_gdb_index): Update.
8568 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8570 * nbsd-tdep.c: Include "objfiles.h".
8571 (nbsd_skip_solib_resolver): New.
8572 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8574 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8576 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8577 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8578 with DW_LLE_base_addressx are being emitted in DWARFv5.
8579 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8580 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8583 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8585 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8586 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8587 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8588 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8589 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8590 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8591 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8594 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8596 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8597 (read_loclist_index): New function definition.
8598 (lookup_loclist_base): New function definition.
8599 (read_loclist_header): New function definition.
8600 (dwarf2_cu): Add loclist_base and loclist_header field.
8601 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8602 (read_full_die_1): Read the value of DW_AT_loclists_base.
8603 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8604 (read_attribute_value): Handle DW_FORM_loclistx.
8605 (skip_one_die): Handle DW_FORM_loclistx.
8606 (loclist_header): New structure declaration.
8607 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8609 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8611 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8612 constructor. Remove `addr` parameter from other constructor and
8613 add `per_cu` parameter.
8614 * dwarf2/read.c (create_partial_symtab): Update.
8616 2020-04-07 Tom de Vries <tdevries@suse.de>
8619 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8620 (partial_die_info::fixup): Inherit has_const_value.
8622 2020-04-07 Tom de Vries <tdevries@suse.de>
8624 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8625 symbols without address.
8627 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8629 * nbsd-nat.h (struct thread_info): Add forward declaration.
8630 (nbsd_nat_target::thread_alive): Add.
8631 (nbsd_nat_target::thread_name): Likewise.
8632 (nbsd_nat_target::update_thread_list): Likewise.
8633 (update_thread_list::post_attach): Likewise.
8634 (post_attach::pid_to_str): Likewise.
8635 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8636 (nbsd_thread_lister): Add.
8637 (nbsd_nat_target::thread_alive): Likewise.
8638 (nbsd_nat_target::thread_name): Likewise.
8639 (nbsd_add_threads): Likewise.
8640 (update_thread_list::post_attach): Likewise.
8641 (nbsd_nat_target::update_thread_list): Likewise.
8642 (post_attach::pid_to_str): Likewise.
8644 2020-04-06 Tom Tromey <tromey@adacore.com>
8646 * ada-valprint.c (print_variant_part): Extract the variant field.
8647 (print_field_values): Use the field as the outer value when
8650 2020-04-06 Tom Tromey <tromey@adacore.com>
8652 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8653 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8654 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8655 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8656 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8658 2020-04-06 Tom Tromey <tromey@adacore.com>
8660 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8663 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8665 * nbsd-tdep.c: Include "gdbarch.h".
8666 Define enum with NetBSD signal numbers.
8667 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8668 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8669 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8670 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8671 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8672 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8673 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8674 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8675 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8676 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8677 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8678 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8680 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8683 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8685 2020-04-03 Tom Tromey <tromey@adacore.com>
8687 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8688 Read constant block.
8690 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8692 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8693 (gdb_bfd_get_full_section_contents): New declaration.
8694 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8695 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8696 gdb_bfd_get_full_section_contents.
8698 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8700 * exec.c (build_section_table): Replace internal_error with
8702 (section_table_xfer_memory_partial): Likewise.
8703 * mdebugread.c (parse_partial_symbols): Likewise.
8704 * psymtab.c (lookup_partial_symbol): Likewise.
8705 * utils.c (wrap_here): Likewise.
8707 2020-04-02 Tom Tromey <tromey@adacore.com>
8709 * f-lang.c (build_fortran_types): Use arch_type to initialize
8710 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8712 2020-04-02 Tom Tromey <tromey@adacore.com>
8714 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8717 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8718 Bernd Edlinger <bernd.edlinger@hotmail.de>
8719 Tom Tromey <tromey@adacore.com>
8721 * buildsym.c (buildsym_compunit::record_line): Remove
8724 2020-04-02 Tom de Vries <tdevries@suse.de>
8727 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8729 2020-04-02 Tom de Vries <tdevries@suse.de>
8731 * dwarf2/read.c (dwarf2_gdb_index_functions,
8732 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8734 * psymtab.c (psym_lookup_global_symbol_language): New function.
8735 (psym_functions): Init psym_lookup_global_symbol_language with
8736 psym_lookup_global_symbol_language.
8737 * symfile-debug.c (debug_sym_quick_functions): Init
8738 lookup_global_symbol_language with NULL.
8739 * symfile.c (set_initial_language): Remove fixme comment.
8740 * symfile.h (struct quick_symbol_functions): Add
8741 lookup_global_symbol_language.
8742 * symtab.c (find_quick_global_symbol_language): New function.
8743 (find_main_name): Use find_quick_global_symbol_language.
8745 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8747 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8749 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8751 * buildsym.c (record_line): Fix undefined behavior and preserve
8754 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8756 * buildsym.c (record_line): Fix the resizing condition.
8758 2020-04-01 Tom Tromey <tom@tromey.com>
8760 * value.h (value_literal_complex): Add comment.
8761 * valops.c (value_literal_complex): Refer to value.h.
8763 2020-04-01 Tom Tromey <tom@tromey.com>
8765 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8766 (scalar_type): New rule, from typebase.
8767 (typebase): Use scalar_type. Recognize complex types.
8768 (field_name): Handle FLOAT_KEYWORD.
8769 (ident_tokens): Add _Complex and __complex__.
8771 2020-04-01 Tom Tromey <tom@tromey.com>
8774 * valarith.c (promotion_type, complex_binop): New functions.
8775 (scalar_binop): Handle complex numbers. Use promotion_type.
8776 (value_pos, value_neg, value_complement): Handle complex numbers.
8778 2020-04-01 Tom Tromey <tom@tromey.com>
8780 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8781 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8782 (parse_number): Handle complex numbers.
8784 2020-04-01 Tom Tromey <tom@tromey.com>
8786 * c-valprint.c (c_decorations): Change complex suffix to "i".
8788 2020-04-01 Tom Tromey <tom@tromey.com>
8790 * valprint.c (generic_value_print_complex): Use accessors.
8791 * value.h (value_real_part, value_imaginary_part): Declare.
8792 * valops.c (value_real_part, value_imaginary_part): New
8794 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8796 2020-04-01 Tom Tromey <tom@tromey.com>
8798 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8799 (read_range_type): Update.
8800 * mdebugread.c (basic_type): Update.
8801 * go-lang.c (build_go_types): Use init_complex_type.
8802 * gdbtypes.h (struct main_type) <complex_type>: New member.
8803 (init_complex_type): Update.
8804 (arch_complex_type): Don't declare.
8805 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8806 Make name if none given. Use alloc_type_copy. Look for cached
8808 (arch_complex_type): Remove.
8809 (gdbtypes_post_init): Use init_complex_type.
8810 * f-lang.c (build_fortran_types): Use init_complex_type.
8811 * dwarf2/read.c (read_base_type): Update.
8812 * d-lang.c (build_d_types): Use init_complex_type.
8813 * ctfread.c (read_base_type): Update.
8815 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8817 * infrun.c (stop_all_threads): Update assertion, plus when
8818 stopping threads, take into account that we might be trying
8819 to stop an all-stop target.
8820 (stop_waiting): Call 'stop_all_threads' if there exists a
8823 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8825 * target.h (exists_non_stop_target): New function declaration.
8826 * target.c (exists_non_stop_target): New function.
8828 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8831 * eval.c (is_integral_or_integral_reference): New function.
8832 (evaluate_subexp_standard): Allow integer references in
8835 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8837 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8838 check for no ptid in the stop reply when the target is non-stop.
8840 2020-04-01 Tom Tromey <tromey@adacore.com>
8842 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8843 "name" parameter to rvalue reference. Initialize m_name_holder.
8844 <lookup_name_info>: New overloads.
8845 <name>: Return gdb::string_view.
8846 <c_str>: New method.
8847 <make_ignore_params>: Update.
8848 <search_name_hash>: Update.
8849 <language_lookup_name>: Return const char *.
8850 <m_name>: Change type.
8851 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8852 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8853 (lookup_name_info::match_any): Update.
8854 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8856 * minsyms.c (linkage_name_str): Update.
8857 * language.c (default_symbol_name_matcher): Update.
8858 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8860 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8861 (ada_lookup_name_info::ada_lookup_name_info): Update.
8862 (literal_symbol_name_matcher): Update.
8864 2020-04-01 Tom Tromey <tromey@adacore.com>
8866 * psymtab.c (psymtab_search_name): Remove function.
8867 (psym_lookup_symbol): Create search name and lookup name here.
8868 (lookup_partial_symbol): Remove "name" parameter; add
8870 (psym_expand_symtabs_for_function): Update.
8872 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8875 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8877 2020-03-31 Tom Tromey <tromey@adacore.com>
8879 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8882 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8884 * features/riscv/32bit-csr.xml: Regenerated.
8885 * features/riscv/64bit-csr.xml: Regenerated.
8887 2020-03-30 Tom Tromey <tromey@adacore.com>
8889 * ada-valprint.c (print_variant_part): Update.
8890 * ada-lang.h (ada_which_variant_applies): Update.
8891 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8892 outer_valaddr parameters; replace with "outer" value parameter.
8893 (to_fixed_variant_branch_type): Update.
8895 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8897 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8898 <list>. Remove inclusion of observable.h.
8899 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8900 (struct arch_lwp_info): New struct.
8901 (class ppc_linux_dreg_interface): New class.
8902 (struct ppc_linux_process_info): New struct.
8903 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8904 <low_new_clone, low_forget_process, low_prepare_to_resume>
8905 <copy_thread_dreg_state, mark_thread_stale>
8906 <mark_debug_registers_changed, register_hw_breakpoint>
8907 <clear_hw_breakpoint, register_wp, clear_wp>
8908 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8909 <num_memory_accesses, get_trigger_type>
8910 <create_watchpoint_request, hwdebug_point_cmp>
8911 <init_arch_lwp_info, get_arch_lwp_info>
8912 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8914 <struct ptid_hash>: New inner struct.
8915 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8917 (saved_dabr_value, hwdebug_info, max_slots_number)
8918 (struct hw_break_tuple, struct thread_points, ppc_threads)
8919 (have_ptrace_hwdebug_interface)
8920 (hwdebug_find_thread_points_by_tid)
8921 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8922 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8923 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8924 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8925 use m_dreg_interface.
8926 (hwdebug_point_cmp): Change to...
8927 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8928 reference arguments instead of pointers.
8929 (ppc_linux_nat_target::ranged_break_num_registers): Use
8931 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8932 m_dreg_interface. Call register_hw_breakpoint.
8933 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8934 m_dreg_interface. Call clear_hw_breakpoint.
8935 (get_trigger_type): Change to...
8936 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8938 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8939 use m_dreg_interface. Call register_hw_breakpoint.
8940 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8941 use m_dreg_interface. Call clear_hw_breakpoint.
8942 (can_use_watchpoint_cond_accel): Change to...
8943 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8944 method. Update comment, use m_dreg_interface and
8946 (calculate_dvc): Change to...
8947 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8949 (num_memory_accesses): Change to...
8950 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8951 (check_condition): Change to...
8952 (ppc_linux_nat_target::check_condition): ...this method.
8953 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8954 comment, use m_dreg_interface.
8955 (create_watchpoint_request): Change to...
8956 (ppc_linux_nat_target::create_watchpoint_request): ...this
8957 method. Use m_dreg_interface.
8958 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8959 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8960 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8961 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8962 (ppc_linux_nat_target::low_forget_process)
8963 (ppc_linux_nat_target::low_new_fork)
8964 (ppc_linux_nat_target::low_new_clone)
8965 (ppc_linux_nat_target::low_delete_thread)
8966 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8967 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8968 only call mark_thread_stale.
8969 (ppc_linux_thread_exit): Remove.
8970 (ppc_linux_nat_target::stopped_data_address): Change to...
8971 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8972 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8973 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8974 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8975 comment. Call low_stopped_data_address.
8976 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8978 (ppc_linux_nat_target::masked_watch_num_registers): Use
8980 (ppc_linux_nat_target::copy_thread_dreg_state)
8981 (ppc_linux_nat_target::mark_thread_stale)
8982 (ppc_linux_nat_target::mark_debug_registers_changed)
8983 (ppc_linux_nat_target::register_hw_breakpoint)
8984 (ppc_linux_nat_target::clear_hw_breakpoint)
8985 (ppc_linux_nat_target::register_wp)
8986 (ppc_linux_nat_target::clear_wp)
8987 (ppc_linux_nat_target::init_arch_lwp_info)
8988 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8989 (_initialize_ppc_linux_nat): Remove observer callback.
8991 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8993 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8994 (ppc_linux_nat_target::auxv_parse)
8995 (ppc_linux_nat_target::read_description)
8996 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8999 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9001 * linux-nat.h (low_new_clone): New method.
9002 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9004 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9006 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9007 (dbx_expand_psymtab): ... this.
9008 (start_psymtab): Update.
9009 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9010 (mdebug_expand_psymtab): ... this.
9011 (parse_partial_symbols): Update.
9012 (new_psymtab): Update.
9013 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9014 (xcoff_expand_psymtab): ... this.
9015 (xcoff_start_psymtab): Update.
9017 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9019 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9020 <expand_dependencies>: ... this.
9021 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9022 (partial_symtab::expand_dependencies): ... this.
9023 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9025 (dwarf2_psymtab::expand_psymtab): Update.
9026 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9027 * mdebugread.c (psymtab_to_symtab_1): Update.
9028 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9030 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9032 * psympriv.h (discard_psymtab): Remove.
9033 * dbxread.c (dbx_end_psymtab): Update.
9034 * xcoffread.c (xcoff_end_psymtab): Update.
9036 2020-03-28 Tom Tromey <tom@tromey.com>
9038 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9041 2020-03-28 Tom Tromey <tom@tromey.com>
9043 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9045 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9047 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9049 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9051 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9053 2020-03-26 Tom Tromey <tom@tromey.com>
9055 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9056 (mark_common_block_symbol_computed, read_tag_string_type)
9057 (attr_to_dynamic_prop, read_subrange_type): Update.
9058 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9059 to be methods on struct attribute.
9060 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9061 (read_call_site_scope, partial_die_info::read)
9062 (partial_die_info::read, lookup_die_type, follow_die_ref):
9064 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9065 from dwarf2_get_ref_die_offset.
9066 (attribute::constant_value): New method, from
9067 dwarf2_get_attr_constant_value.
9068 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9070 <constant_value>: New method.
9072 2020-03-26 Tom Tromey <tom@tromey.com>
9074 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9075 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9076 (dwarf_type_encoding_name): Move to stringify.c.
9077 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9078 * dwarf2/stringify.c: New file.
9079 * dwarf2/stringify.h: New file.
9081 2020-03-26 Tom Tromey <tom@tromey.com>
9083 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9086 2020-03-26 Tom Tromey <tom@tromey.com>
9088 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9090 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9091 (lookup_ranges_base): Likewise.
9092 (read_cutu_die_from_dwo, read_full_die_1): Update.
9094 2020-03-26 Tom Tromey <tom@tromey.com>
9096 * dwarf2/read.c (read_import_statement, read_file_scope)
9097 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9098 (read_lexical_block_scope, read_call_site_scope)
9099 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9100 (handle_struct_member_die, process_structure_scope)
9101 (update_enumeration_type_from_children)
9102 (process_enumeration_scope, read_array_type, read_common_block)
9103 (read_namespace, read_module, read_subroutine_type): Update.
9104 (sibling_die): Remove.
9106 2020-03-26 Tom Tromey <tom@tromey.com>
9108 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9109 (build_type_psymtabs_reader, read_structure_type)
9110 (read_enumeration_type, read_full_die_1): Update.
9111 (dwarf2_attr_no_follow): Move to die.h.
9112 * dwarf2/die.h (struct die_info) <attr>: New method.
9114 2020-03-26 Tom Tromey <tom@tromey.com>
9116 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9117 <base_address>: Now an optional.
9118 (dwarf2_find_base_address, dwarf2_rnglists_process)
9119 (dwarf2_ranges_process, fill_in_loclist_baton)
9120 (dwarf2_symbol_mark_computed): Update.
9122 2020-03-26 Tom Tromey <tom@tromey.com>
9124 * dwarf2/read.c (struct die_info): Move to die.h.
9125 * dwarf2/die.h: New file.
9127 2020-03-26 Tom Tromey <tom@tromey.com>
9129 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9131 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9132 Move to line-header.c.
9133 (read_checked_initial_length_and_offset, read_formatted_entries):
9135 (dwarf_decode_line_header): Split into two.
9136 * dwarf2/line-header.c
9137 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9139 (read_checked_initial_length_and_offset, read_formatted_entries):
9141 (dwarf_decode_line_header): New function, split from read.c.
9143 2020-03-26 Tom Tromey <tom@tromey.com>
9145 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9147 * dwarf2/read.c (read_attribute_value): Update.
9148 (dwarf2_per_objfile::read_line_string): Rename from
9149 read_indirect_line_string.
9150 (read_formatted_entries): Update.
9152 2020-03-26 Tom Tromey <tom@tromey.com>
9154 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9157 2020-03-26 Tom Tromey <tom@tromey.com>
9159 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9161 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9162 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9165 2020-03-26 Tom Tromey <tom@tromey.com>
9167 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9168 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9169 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9170 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9172 2020-03-26 Tom Tromey <tom@tromey.com>
9174 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9175 file_names_size, file_full_name, file_file_name>: Use const.
9176 <file_name_at, file_names>: Add const overload.
9177 * dwarf2/line-header.c (line_header::file_file_name)
9178 (line_header::file_full_name): Update.
9180 2020-03-26 Tom Tromey <tom@tromey.com>
9182 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9183 (macro_start_file, consume_improper_spaces)
9184 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9185 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9186 (dwarf_decode_macros): Move to macro.c.
9187 * dwarf2/macro.c: New file.
9188 * dwarf2/macro.h: New file.
9189 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9191 2020-03-26 Tom Tromey <tom@tromey.com>
9193 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9195 * dwarf2/section.c: New method. From
9196 read_indirect_string_at_offset_from.
9197 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9198 (read_indirect_string_at_offset_from): Move to section.c.
9199 (read_indirect_string_at_offset): Rewrite.
9200 (read_indirect_line_string_at_offset): Remove.
9201 (read_indirect_string, read_indirect_line_string)
9202 (dwarf_decode_macro_bytes): Update.
9204 2020-03-26 Tom Tromey <tom@tromey.com>
9206 * dwarf2/section.h (struct dwarf2_section_info)
9207 <overload_complaint>: Declare.
9208 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9209 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9210 Rename from dwarf2_section_buffer_overflow_complaint.
9211 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9212 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9214 2020-03-26 Tom Tromey <tom@tromey.com>
9216 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9218 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9220 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9223 2020-03-26 Tom Tromey <tom@tromey.com>
9225 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9227 2020-03-26 Tom Tromey <tom@tromey.com>
9229 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9231 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9233 (dwarf_decode_macros): Update.
9235 2020-03-26 Tom Tromey <tom@tromey.com>
9237 * dwarf2/read.c (read_attribute_value): Update.
9238 (read_indirect_string_from_dwz): Move to dwz.c; change into
9240 (dwarf_decode_macro_bytes): Update.
9241 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9242 * dwarf2/dwz.c: New file.
9243 * Makefile.in (COMMON_SFILES): Add dwz.c.
9245 2020-03-26 Tom Tromey <tom@tromey.com>
9247 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9248 * dwarf2/read.c: Add include.
9249 * dwarf2/index-write.c: Add include.
9250 * dwarf2/index-cache.c: Add include.
9251 * dwarf2/dwz.h: New file.
9253 2020-03-25 Tom Tromey <tom@tromey.com>
9255 * compile/compile-object-load.c (get_out_value_type): Mention
9256 correct symbol name in error message.
9258 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9260 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9262 2020-03-25 Tom de Vries <tdevries@suse.de>
9264 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9265 * symmisc.c (dump_symtab_1): Print user and includes fields.
9266 (maintenance_info_symtabs): Same.
9268 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9271 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9272 (riscv_regcache_cooked_write): New function.
9273 (riscv_push_dummy_call): Use new function.
9274 (riscv_return_value): Likewise.
9276 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9278 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9279 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9280 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9281 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9282 * infrun.c (follow_fork): Likewise.
9283 (follow_fork_inferior): Likewise.
9284 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9285 * linux-nat.h (class linux_nat_target): Likewise.
9286 * remote.c (class remote_target) <follow_fork>: Likewise.
9287 (remote_target::follow_fork): Likewise.
9288 * target-delegates.c: Re-generate.
9289 * target.c (default_follow_fork): Likewise.
9290 (target_follow_fork): Likewise.
9291 * target.h (struct target_ops) <follow_fork>: Likewise.
9292 (target_follow_fork): Likewise.
9294 2020-03-24 Tom de Vries <tdevries@suse.de>
9296 * psymtab.c (maintenance_info_psymtabs): Print user field.
9298 2020-03-20 Tom Tromey <tromey@adacore.com>
9300 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9302 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9305 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9307 * ptrace.m4: Don't check for ptrace declaration.
9308 * config.in: Re-generate.
9309 * configure: Re-generate.
9310 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9313 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9315 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9317 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9318 * sparc-nat.c (gdb_ptrace): Likewise.
9319 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9321 2020-03-20 Tom Tromey <tromey@adacore.com>
9323 * c-exp.y (lex_one_token): Fix assert.
9325 2020-03-20 Tom Tromey <tromey@adacore.com>
9327 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9328 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9331 2020-03-20 Tom Tromey <tromey@adacore.com>
9333 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9335 2020-03-20 Tom Tromey <tromey@adacore.com>
9337 * ada-valprint.c (print_variant_part): Remove parameters; switch
9339 (print_field_values): Likewise.
9340 (ada_val_print_struct_union): Likewise.
9341 (ada_value_print_1): Update.
9343 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9345 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9346 nbsd_nat_target instead of inf_ptrace_target.
9347 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9350 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9352 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9353 it to the ptrace call.
9354 * (store_registers): Likewise.
9356 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9358 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9359 it to the ptrace call.
9360 * (store_registers): Likewise.
9362 2020-03-19 Luis Machado <luis.machado@linaro.org>
9364 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9365 valid, fetch vg value from ptrace.
9367 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9368 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9369 * inf-ptrace.c: Likewise.
9370 * (gdb_ptrace): Add.
9371 * (inf_ptrace_target::resume): Update.
9372 * (inf_ptrace_target::xfer_partial): Likewise.
9373 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9374 * (inf_ptrace_peek_poke): Update.
9376 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9378 * x86-bsd-nat.c (gdb_ptrace): New.
9379 * (x86bsd_dr_set): Add new argument `ptid'.
9380 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9381 x86bsd_dr_set_addr): Update.
9383 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9385 * remote.c (remote_target::process_stop_reply): Handle events for
9386 all threads differently.
9388 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9390 * completer.c (completion_tracker::remove_completion): Define new
9392 * completer.h (completion_tracker::remove_completion): Declare new
9394 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9395 when adding a C++ function symbol.
9397 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9399 * completer.c (completion_tracker::completion_hash_entry): Define
9401 (advance_to_filename_complete_word_point): Call
9402 recompute_lowest_common_denominator.
9403 (completion_tracker::completion_tracker): Call discard_completions
9404 to setup the hash table.
9405 (completion_tracker::discard_completions): Allow for being called
9406 from the constructor, pass new equal function, and element deleter
9407 when constructing the hash table. Initialise new class member
9409 (completion_tracker::maybe_add_completion): Remove use of
9410 m_entries_vec, and store more information into m_entries_hash.
9411 (completion_tracker::recompute_lcd_visitor): New function, most
9412 content taken from...
9413 (completion_tracker::recompute_lowest_common_denominator):
9414 ...here, this now just visits each item in the hash calling the
9416 (completion_tracker::build_completion_result): Remove use of
9417 m_entries_vec, call recompute_lowest_common_denominator.
9418 * completer.h (completion_tracker::have_completions): Remove use
9420 (completion_tracker::completion_hash_entry): Declare new class.
9421 (completion_tracker::recompute_lowest_common_denominator): Change
9423 (completion_tracker::recompute_lcd_visitor): Declare new function.
9424 (completion_tracker::m_entries_vec): Delete.
9425 (completion_tracker::m_entries_hash): Initialize to NULL.
9426 (completion_tracker::m_lowest_common_denominator_valid): New
9428 (completion_tracker::m_lowest_common_denominator_max_length): New
9431 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9433 * regformats/regdef.h: Put reg in gdb namespace.
9435 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9437 * i386-bsd-nat.c (gdb_ptrace): New.
9438 * (i386bsd_fetch_inferior_registers,
9439 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9440 * (i386bsd_fetch_inferior_registers,
9441 i386bsd_store_inferior_registers) Use gdb_ptrace.
9443 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9445 * amd64-bsd-nat.c (gdb_ptrace): New.
9446 * (amd64bsd_fetch_inferior_registers,
9447 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9448 * (amd64bsd_fetch_inferior_registers,
9449 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9451 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9453 * user-regs.c (user_reg::read): Rename to...
9454 (user_reg::xread): ...this.
9455 * (append_user_reg): Rename argument `read' to `xread'.
9456 * (user_reg_add_builtin): Likewise.
9457 * (user_reg_add): Likewise.
9458 * (value_of_user_reg): Likewise.
9460 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9462 * sparc-nat.c (gdb_ptrace): New.
9463 * sparc-nat.c (sparc_fetch_inferior_registers)
9464 (sparc_store_inferior_registers) Remove obsolete comment.
9465 * sparc-nat.c (sparc_fetch_inferior_registers)
9466 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9467 * sparc-nat.c (sparc_fetch_inferior_registers)
9468 (sparc_store_inferior_registers) Use gdb_ptrace.
9470 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9472 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9473 it to the ptrace call.
9474 * sh-nbsd-nat.c (store_registers): Likewise.
9476 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9478 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9479 nbsd_nat_target instead of inf_ptrace_target.
9480 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9483 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9485 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9487 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9489 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9491 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9493 2020-03-17 Tom de Vries <tdevries@suse.de>
9496 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9498 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9500 (process_imported_unit_die): Skip import of c++ CUs.
9502 2020-03-16 Tom Tromey <tom@tromey.com>
9504 * p-valprint.c (pascal_object_print_value): Initialize
9507 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9508 Shahab Vahedi <shahab@synopsys.com>
9510 * Makefile.in: Add arch/arc.o
9511 * configure.tgt: Likewise.
9512 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9513 (_initialize_arc_tdep): Don't initialize old target descriptions.
9514 (arc_read_description): New function to cache target descriptions.
9515 * arc-tdep.h (arc_read_description): Add proto type.
9516 * arch/arc.c: New file.
9517 * arch/arc.h: Likewise.
9518 * features/Makefile: Replace old target descriptions with new.
9519 * features/arc-arcompact.c: Remove.
9520 * features/arc-arcompact.xml: Likewise.
9521 * features/arc-v2.c: Likewise
9522 * features/arc-v2.xml: Likewise
9523 * features/arc/aux-arcompact.xml: New file.
9524 * features/arc/aux-v2.xml: Likewise.
9525 * features/arc/core-arcompact.xml: Likewise.
9526 * features/arc/core-v2.xml: Likewise.
9527 * features/arc/aux-arcompact.c: Generate.
9528 * features/arc/aux-v2.c: Likewise.
9529 * features/arc/core-arcompact.c: Likewise.
9530 * features/arc/core-v2.c: Likewise.
9531 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9533 2020-03-16 Tom Tromey <tromey@adacore.com>
9536 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9537 putting value into bcache.
9539 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9542 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9544 (amd64_windows_init_abi_common): ... this. Don't set size of
9546 (amd64_windows_init_abi): New function.
9547 (amd64_cygwin_init_abi): New function.
9548 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9550 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9553 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9555 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9556 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9557 (pe_import_directory_entry): New struct type.
9558 (is_linked_with_cygwin_dll): New function.
9559 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9560 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9561 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9563 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9565 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9566 i386_cygwin_core_osabi_sniffer.
9568 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9570 * i386-cygwin-tdep.c: Rename to...
9571 * i386-windows-tdep.c: ... this.
9572 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9573 i386-windows-tdep.c.
9574 * configure.tgt: Likewise.
9576 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9578 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9579 * osabi.c (gdb_osabi_names): Add "Windows".
9580 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9581 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9582 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9583 i386_cygwin_osabi_sniffer.
9584 (_initialize_i386_cygwin_tdep): Register OS ABI
9585 GDB_OSABI_WINDOWS for i386.
9586 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9587 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9588 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9590 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9591 when the target matches '*-*-mingw*'.
9593 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9595 * defs.h (enum gdb_osabi): Move to...
9596 * osabi.h (enum gdb_osabi): ... here.
9597 * gdbarch.sh: Include osabi.h in gdbarch.h.
9598 * gdbarch.h: Re-generate.
9600 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9602 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9604 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9606 2020-03-14 Tom Tromey <tom@tromey.com>
9608 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9610 (c_type_print_modifier): Likewise. Add "language" parameter.
9611 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9612 (c_type_print_base_1): Update.
9613 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9615 * type-stack.c (type_stack::insert): Handle tp_atomic and
9617 (type_stack::follow_type_instance_flags): Likewise.
9618 (type_stack::follow_types): Likewise. Merge type-following code.
9619 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9620 (space_identifier, cv_with_space_id)
9621 (const_or_volatile_or_space_identifier_noopt)
9622 (const_or_volatile_or_space_identifier): Remove.
9623 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9625 (ptr_operator, typebase): Update.
9626 (enum token_flag) <FLAG_C>: New constant.
9627 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9629 (lex_one_token): Handle FLAG_C.
9631 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9633 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9634 it to the ptrace call.
9635 * m68k-bsd-nat.c (store_registers): Likewise.
9637 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9639 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9641 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9642 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9643 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9645 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9647 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9648 nbsd_nat_target instead of inf_ptrace_target.
9649 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9652 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9654 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9657 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9659 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9660 it to the ptrace call.
9661 * alpha-bsd-nat.c (store_registers): Likewise.
9663 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9665 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9667 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9668 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9669 fill_fpregset): Likewise.
9671 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9673 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9674 nbsd_nat_target instead of inf_ptrace_target.
9675 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9678 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9680 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9683 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9685 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9686 it to the ptrace call.
9687 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9688 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9689 * arm-nbsd-nat.c (store_register): Likewise.
9690 * arm-nbsd-nat.c (store_regs): Likewise.
9691 * arm-nbsd-nat.c (store_fp_register): Likewise.
9692 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9694 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9696 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9697 nbsd_nat_target instead of inf_ptrace_target.
9698 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9701 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9703 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9704 it to the ptrace call.
9705 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9707 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9709 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9710 it to the ptrace call.
9711 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9713 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9715 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9717 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9719 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9721 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9722 instead of inf_ptrace_target.
9723 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9726 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9728 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9731 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9733 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9736 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9738 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9741 2020-03-13 Tom Tromey <tom@tromey.com>
9743 * value.h (val_print): Don't declare.
9744 * valprint.h (val_print_array_elements)
9745 (val_print_scalar_formatted, generic_val_print): Don't declare.
9746 * valprint.c (generic_val_print_array): Take a struct value.
9747 (generic_val_print_ptr, generic_val_print_memberptr)
9748 (generic_val_print_bool, generic_val_print_int)
9749 (generic_val_print_char, generic_val_print_complex)
9750 (generic_val_print): Remove.
9751 (generic_value_print): Update.
9752 (do_val_print): Remove unused parameters. Don't call
9754 (val_print): Remove.
9755 (common_val_print): Update. Don't call value_check_printable.
9756 (val_print_scalar_formatted, val_print_array_elements): Remove.
9757 * rust-lang.c (rust_val_print): Remove.
9758 (rust_language_defn): Update.
9759 * p-valprint.c (pascal_val_print): Remove.
9760 (pascal_value_print_inner): Update.
9761 (pascal_object_print_val_fields, pascal_object_print_val):
9763 (pascal_object_print_static_field): Update.
9764 * p-lang.h (pascal_val_print): Don't declare.
9765 * p-lang.c (pascal_language_defn): Update.
9766 * opencl-lang.c (opencl_language_defn): Update.
9767 * objc-lang.c (objc_language_defn): Update.
9768 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9769 * m2-lang.h (m2_val_print): Don't declare.
9770 * m2-lang.c (m2_language_defn): Update.
9771 * language.h (struct language_defn) <la_val_print>: Remove.
9772 * language.c (unk_lang_value_print_inner): Rename. Change
9774 (unknown_language_defn, auto_language_defn): Update.
9775 * go-valprint.c (go_val_print): Remove.
9776 * go-lang.h (go_val_print): Don't declare.
9777 * go-lang.c (go_language_defn): Update.
9778 * f-valprint.c (f_val_print): Remove.
9779 * f-lang.h (f_value_print): Don't declare.
9780 * f-lang.c (f_language_defn): Update.
9781 * d-valprint.c (d_val_print): Remove.
9782 * d-lang.h (d_value_print): Don't declare.
9783 * d-lang.c (d_language_defn): Update.
9784 * cp-valprint.c (cp_print_value_fields)
9785 (cp_print_value_fields_rtti, cp_print_value): Remove.
9786 (cp_print_static_field): Update.
9787 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9788 (c_val_print_struct, c_val_print_union, c_val_print_int)
9789 (c_val_print_memberptr, c_val_print): Remove.
9790 * c-lang.h (c_val_print_array, cp_print_value_fields)
9791 (cp_print_value_fields_rtti): Don't declare.
9792 * c-lang.c (c_language_defn, cplus_language_defn)
9793 (asm_language_defn, minimal_language_defn): Update.
9794 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9795 (ada_val_print_enum): Take a struct value.
9796 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9797 (ada_val_print): Remove.
9798 (ada_value_print_1): Update.
9799 (printable_val_type): Remove.
9800 * ada-lang.h (ada_val_print): Don't declare.
9801 * ada-lang.c (ada_language_defn): Update.
9803 2020-03-13 Tom Tromey <tom@tromey.com>
9805 * valprint.c (do_val_print): Update.
9806 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9808 (value_to_value_object_no_release): Declare.
9809 * python/py-value.c (value_to_value_object_no_release): New
9811 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9813 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9815 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9817 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9819 (gdbscm_apply_val_pretty_printer): Take a struct value.
9820 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9822 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9824 * extension-priv.h (struct extension_language_ops)
9825 <apply_val_pretty_printer>: Take a struct value.
9826 * cp-valprint.c (cp_print_value): Create a struct value.
9827 (cp_print_value): Update.
9829 2020-03-13 Tom Tromey <tom@tromey.com>
9831 * ada-valprint.c (print_field_values): Call common_val_print.
9833 2020-03-13 Tom Tromey <tom@tromey.com>
9835 * ada-valprint.c (val_print_packed_array_elements): Remove
9836 bitoffset and val parameters. Call common_val_print.
9837 (ada_val_print_string): Remove offset, address, and original_value
9839 (ada_val_print_array): Update.
9840 (ada_value_print_array): New function.
9841 (ada_value_print_1): Call it.
9843 2020-03-13 Tom Tromey <tom@tromey.com>
9845 * ada-valprint.c (ada_value_print): Use common_val_print.
9847 2020-03-13 Tom Tromey <tom@tromey.com>
9849 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9851 2020-03-13 Tom Tromey <tom@tromey.com>
9853 * ada-valprint.c (ada_value_print_num): New function.
9854 (ada_value_print_1): Use it.
9856 2020-03-13 Tom Tromey <tom@tromey.com>
9858 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9860 2020-03-13 Tom Tromey <tom@tromey.com>
9862 * ada-valprint.c (ada_value_print_ptr): New function.
9863 (ada_value_print_1): Use it.
9865 2020-03-13 Tom Tromey <tom@tromey.com>
9867 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9868 call common_val_print.
9869 (ada_val_print_1): Update.
9870 (ada_value_print_1): New function.
9871 (ada_value_print_inner): Rewrite.
9873 2020-03-13 Tom Tromey <tom@tromey.com>
9875 * cp-valprint.c (cp_print_value_fields): Update.
9876 (cp_print_value): New function.
9878 2020-03-13 Tom Tromey <tom@tromey.com>
9880 * m2-valprint.c (m2_value_print_inner): Use
9881 cp_print_value_fields.
9882 * cp-valprint.c (cp_print_value_fields): New function.
9883 * c-valprint.c (c_value_print_struct): New function.
9884 (c_value_print_inner): Use c_value_print_struct.
9885 * c-lang.h (cp_print_value_fields): Declare.
9887 2020-03-13 Tom Tromey <tom@tromey.com>
9889 * c-valprint.c (c_value_print_array): New function.
9890 (c_value_print_inner): Use it.
9892 2020-03-13 Tom Tromey <tom@tromey.com>
9894 * c-valprint.c (c_value_print_memberptr): New function.
9895 (c_value_print_inner): Use it.
9897 2020-03-13 Tom Tromey <tom@tromey.com>
9899 * c-valprint.c (c_value_print_int): New function.
9900 (c_value_print_inner): Use it.
9902 2020-03-13 Tom Tromey <tom@tromey.com>
9904 * c-valprint.c (c_value_print_ptr): New function.
9905 (c_value_print_inner): Use it.
9907 2020-03-13 Tom Tromey <tom@tromey.com>
9909 * c-valprint.c (c_value_print_inner): Rewrite.
9911 2020-03-13 Tom Tromey <tom@tromey.com>
9913 * valprint.c (generic_value_print_complex): New function.
9914 (generic_value_print): Use it.
9916 2020-03-13 Tom Tromey <tom@tromey.com>
9918 * valprint.c (generic_val_print_float): Don't call
9919 val_print_scalar_formatted.
9920 (generic_val_print, generic_value_print): Update.
9922 2020-03-13 Tom Tromey <tom@tromey.com>
9924 * valprint.c (generic_value_print_char): New function
9925 (generic_value_print): Use it.
9927 2020-03-13 Tom Tromey <tom@tromey.com>
9929 * valprint.c (generic_value_print_int): New function.
9930 (generic_value_print): Use it.
9932 2020-03-13 Tom Tromey <tom@tromey.com>
9934 * valprint.c (generic_value_print_bool): New function.
9935 (generic_value_print): Use it.
9937 2020-03-13 Tom Tromey <tom@tromey.com>
9939 * valprint.c (generic_val_print_func): Simplify.
9940 (generic_val_print, generic_value_print): Update.
9942 2020-03-13 Tom Tromey <tom@tromey.com>
9944 * valprint.c (generic_val_print_flags): Remove.
9945 (generic_val_print, generic_value_print): Update.
9946 (val_print_type_code_flags): Add original_value parameter.
9948 2020-03-13 Tom Tromey <tom@tromey.com>
9950 * valprint.c (generic_val_print): Update.
9951 (generic_value_print): Update.
9952 * valprint.c (generic_val_print_enum): Don't call
9953 val_print_scalar_formatted.
9955 2020-03-13 Tom Tromey <tom@tromey.com>
9957 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9958 * valprint.c (generic_value_print_ptr): New function.
9960 2020-03-13 Tom Tromey <tom@tromey.com>
9962 * valprint.c (generic_value_print): Rewrite.
9964 2020-03-13 Tom Tromey <tom@tromey.com>
9966 * p-valprint.c (pascal_object_print_value_fields)
9967 (pascal_object_print_value): New functions.
9969 2020-03-13 Tom Tromey <tom@tromey.com>
9971 * p-valprint.c (pascal_value_print_inner): Rewrite.
9973 2020-03-13 Tom Tromey <tom@tromey.com>
9975 * f-valprint.c (f_value_print_innner): Rewrite.
9977 2020-03-13 Tom Tromey <tom@tromey.com>
9979 * m2-valprint.c (m2_print_unbounded_array): New overload.
9980 (m2_print_unbounded_array): Update.
9981 (m2_print_array_contents): Take a struct value.
9982 (m2_value_print_inner): Rewrite.
9984 2020-03-13 Tom Tromey <tom@tromey.com>
9986 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9987 (d_value_print_inner): New function.
9988 * d-lang.h (d_value_print_inner): Declare.
9989 * d-lang.c (d_language_defn): Use d_value_print_inner.
9991 2020-03-13 Tom Tromey <tom@tromey.com>
9993 * go-valprint.c (go_value_print_inner): New function.
9994 * go-lang.h (go_value_print_inner): Declare.
9995 * go-lang.c (go_language_defn): Use go_value_print_inner.
9997 2020-03-13 Tom Tromey <tom@tromey.com>
9999 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10001 (rust_val_print): Rewrite.
10002 (rust_value_print_inner): New function, from rust_val_print.
10003 (rust_language_defn): Use rust_value_print_inner.
10005 2020-03-13 Tom Tromey <tom@tromey.com>
10007 * ada-valprint.c (ada_value_print_inner): New function.
10008 * ada-lang.h (ada_value_print_inner): Declare.
10009 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10011 2020-03-13 Tom Tromey <tom@tromey.com>
10013 * f-valprint.c (f_value_print_innner): New function.
10014 * f-lang.h (f_value_print_innner): Declare.
10015 * f-lang.c (f_language_defn): Use f_value_print_innner.
10017 2020-03-13 Tom Tromey <tom@tromey.com>
10019 * p-valprint.c (pascal_value_print_inner): New function.
10020 * p-lang.h (pascal_value_print_inner): Declare.
10021 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10023 2020-03-13 Tom Tromey <tom@tromey.com>
10025 * m2-valprint.c (m2_value_print_inner): New function.
10026 * m2-lang.h (m2_value_print_inner): Declare.
10027 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10029 2020-03-13 Tom Tromey <tom@tromey.com>
10031 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10032 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10033 * c-valprint.c (c_value_print_inner): New function.
10034 * c-lang.h (c_value_print_inner): Declare.
10035 * c-lang.c (c_language_defn, cplus_language_defn)
10036 (asm_language_defn, minimal_language_defn): Use
10037 c_value_print_inner.
10039 2020-03-13 Tom Tromey <tom@tromey.com>
10041 * p-valprint.c (pascal_object_print_value_fields): Now static.
10042 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10044 2020-03-13 Tom Tromey <tom@tromey.com>
10046 * c-valprint.c (c_val_print_array): Simplify.
10048 2020-03-13 Tom Tromey <tom@tromey.com>
10050 * valprint.c (value_print_array_elements): New function.
10051 * valprint.h (value_print_array_elements): Declare.
10053 2020-03-13 Tom Tromey <tom@tromey.com>
10055 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10056 * mips-tdep.c (mips_print_register): Use
10057 value_print_scalar_formatted.
10059 2020-03-13 Tom Tromey <tom@tromey.com>
10061 * valprint.h (value_print_scalar_formatted): Declare.
10062 * valprint.c (value_print_scalar_formatted): New function.
10064 2020-03-13 Tom Tromey <tom@tromey.com>
10066 * valprint.h (generic_value_print): Declare.
10067 * valprint.c (generic_value_print): New function.
10069 2020-03-13 Tom Tromey <tom@tromey.com>
10071 * valprint.c (do_val_print): Call la_value_print_inner, if
10073 * rust-lang.c (rust_language_defn): Update.
10074 * p-lang.c (pascal_language_defn): Update.
10075 * opencl-lang.c (opencl_language_defn): Update.
10076 * objc-lang.c (objc_language_defn): Update.
10077 * m2-lang.c (m2_language_defn): Update.
10078 * language.h (struct language_defn) <la_value_print_inner>: New
10080 * language.c (unknown_language_defn, auto_language_defn): Update.
10081 * go-lang.c (go_language_defn): Update.
10082 * f-lang.c (f_language_defn): Update.
10083 * d-lang.c (d_language_defn): Update.
10084 * c-lang.c (c_language_defn, cplus_language_defn)
10085 (asm_language_defn, minimal_language_defn): Update.
10086 * ada-lang.c (ada_language_defn): Update.
10088 2020-03-13 Tom Tromey <tom@tromey.com>
10090 * c-valprint.c (c_value_print): Use common_val_print.
10092 2020-03-13 Tom Tromey <tom@tromey.com>
10094 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10096 2020-03-13 Tom Tromey <tom@tromey.com>
10098 * f-valprint.c (f77_print_array_1, f_val_print): Use
10101 2020-03-13 Tom Tromey <tom@tromey.com>
10103 * riscv-tdep.c (riscv_print_one_register_info): Use
10106 2020-03-13 Tom Tromey <tom@tromey.com>
10108 * mi/mi-main.c (output_register): Use common_val_print.
10110 2020-03-13 Tom Tromey <tom@tromey.com>
10112 * infcmd.c (default_print_one_register_info): Use
10115 2020-03-13 Tom Tromey <tom@tromey.com>
10117 * valprint.h (common_val_print_checked): Declare.
10118 * valprint.c (common_val_print_checked): New function.
10119 * stack.c (print_frame_arg): Use common_val_print_checked.
10121 2020-03-13 Tom Tromey <tom@tromey.com>
10123 * valprint.c (do_val_print): New function, from val_print.
10124 (val_print): Use do_val_print.
10125 (common_val_print): Use do_val_print.
10127 2020-03-13 Tom Tromey <tom@tromey.com>
10129 * valprint.c (value_print): Use scoped_value_mark.
10131 2020-03-13 Tom de Vries <tdevries@suse.de>
10134 * psymtab.c (partial_symtab::partial_symtab): Don't set
10135 globals_offset and statics_offset. Push element onto
10136 current_global_psymbols and current_static_psymbols stacks.
10137 (concat): New function.
10138 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10139 element from current_global_psymbols and current_static_psymbols
10140 stacks. Concat popped elements to global_psymbols and
10142 (add_psymbol_to_list): Use current_global_psymbols and
10143 current_static_psymbols stacks.
10144 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10145 current_static_psymbols fields.
10147 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10149 * corelow.c (sniff_core_bfd): Remove.
10150 (class core_target) <m_core_vec>: Remove.
10151 (core_target::core_target): Update.
10152 (core_file_fns): Remove.
10153 (deprecated_add_core_fns): Remove.
10154 (default_core_sniffer): Remove.
10155 (sniff_core_bfd): Remove.
10156 (default_check_format): Remove.
10157 (gdb_check_format): Remove.
10158 (core_target_open): Update.
10159 (core_target::get_core_register_section): Update.
10160 (get_core_registers_cb): Update.
10161 (core_target::fetch_registers): Update.
10162 * gdbcore.h (struct core_fns): Remove.
10163 (deprecated_add_core_fns): Remove.
10164 (default_core_sniffer): Remove.
10165 (default_check_format): Remove.
10167 2020-03-12 Tom Tromey <tom@tromey.com>
10169 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10171 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10173 2020-03-12 Tom Tromey <tom@tromey.com>
10175 * remote.c (remote_target::download_tracepoint)
10176 (remote_target::enable_tracepoint)
10177 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10178 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10181 2020-03-12 Tom Tromey <tom@tromey.com>
10183 * symfile-mem.c: Update CORE_ADDR size assert.
10185 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10187 * selftest.m4: Move to gdbsupport/.
10188 * acinclude.m4: Update path to selftest.m4.
10190 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10192 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10193 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10194 gdbarch-selfselftests.c and selftest-arch.c.
10195 (SUBDIR_UNITTESTS_OBS): Rename to...
10196 (SELFTESTS_OBS): ... this.
10197 (COMMON_SFILES): Remove disasm-selftests.c and
10198 gdbarch-selftests.c.
10199 * configure.ac: Don't add selftest-arch.{c,o} to
10201 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10202 preprocessor conditions.
10204 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10206 * configure.ac: Don't source bfd/development.sh.
10207 * selftest.m4: Modify comment.
10208 * configure: Re-generate.
10210 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10212 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10213 not "true" or "false".
10214 * configure: Re-generate.
10216 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10218 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10219 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10220 renamed to arm_nbsd_supply_gregset.
10221 (fetch_register): Update to call arm_nbsd_supply_gregset.
10222 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10223 (arm_netbsd_nat_target::fetch_registers): Update.
10224 (fetch_elfcore_registers): Removed.
10225 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10226 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10227 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10228 not require NetBSD system headers.
10229 (arm_nbsd_regset): New struct.
10230 (arm_nbsd_iterate_over_regset_sections): New function.
10231 (arm_netbsd_init_abi_common): Updated to call
10232 set_gdbarch_iterate_over_regset_sections.
10233 * arm-nbsd-tdep.h: New file.
10235 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10237 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10240 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10242 * configure: Re-generate.
10244 2020-03-11 Tom Tromey <tromey@adacore.com>
10246 * ada-typeprint.c (print_choices): Fix comment.
10248 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10250 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10251 previous item in the list, when the list has no items.
10253 2020-03-11 Tom de Vries <tdevries@suse.de>
10255 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10256 PROP_LOCLIST handling code.
10258 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10260 * buildsym-legacy.c (record_line): Pass extra parameter to
10262 * buildsym.c (buildsym_compunit::record_line): Take an extra
10263 parameter, reduce duplication in the line table, and record the
10264 is_stmt flag in the line table.
10265 * buildsym.h (buildsym_compunit::record_line): Add extra
10267 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10268 non-statement lines.
10269 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10270 this to the symtab builder.
10271 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10272 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10273 through to dwarf_record_line_1.
10274 * infrun.c (process_event_stop_test): When stepping, don't stop at
10275 a non-statement instruction, and only refresh the step info when
10276 we land in the middle of a line's range. Also add an extra
10278 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10280 * record-btrace.c (btrace_find_line_range): Only record lines
10281 marked as is-statement.
10282 * stack.c (frame_show_address): Show the frame address if we are
10283 in a non-statement sal.
10284 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10285 (maintenance_print_one_line_table): Print a header for the is_stmt
10286 column, and include is_stmt information in the output.
10287 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10288 preference to non-statements.
10289 (find_pcs_for_symtab_line): Prefer is-statement entries.
10290 (find_line_common): Likewise.
10291 * symtab.h (struct linetable_entry): Add is_stmt field.
10292 (struct symtab_and_line): Likewise.
10293 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10294 arranging the line table.
10296 2020-03-07 Tom de Vries <tdevries@suse.de>
10298 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10301 2020-03-07 Tom Tromey <tom@tromey.com>
10303 * valops.c (value_literal_complex): Remove obsolete comment.
10304 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10307 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10309 * infrun.h: Forward-declare thread_info.
10310 (set_step_info): Add thread_info parameter, add doc.
10311 * infrun.c (set_step_info): Add thread_info parameter, move doc
10313 * infrun.c (process_event_stop_test): Pass thread to
10314 set_step_info call.
10315 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10317 (prepare_one_step): Add thread_info parameter, pass it to
10318 set_step_frame and prepare_one_step (recursive) call.
10319 (step_1): Pass thread to prepare_one_step call.
10320 (step_command_fsm::should_stop): Pass thread to
10322 (until_next_fsm): Pass thread to set_step_frame call.
10323 (finish_command): Pass thread to set_step_info call.
10325 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10327 * windows-tdep.c (windows_solib_create_inferior_hook):
10328 Check if inferior is running.
10330 2020-03-06 Tom de Vries <tdevries@suse.de>
10332 * NEWS: Fix "the the".
10335 2020-03-06 Tom de Vries <tdevries@suse.de>
10337 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10339 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10341 * .dir-locals.el: Add a comment referencing the other copies of
10344 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10346 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10349 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10351 * .gitattributes: New file.
10353 2020-03-04 Tom Tromey <tom@tromey.com>
10355 * symmisc.c (print_symbol_bcache_statistics)
10356 (print_objfile_statistics): Update.
10357 * symfile.c (allocate_symtab): Use intern.
10358 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10359 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10360 macro_cache>: Remove.
10361 <string_cache>: New member.
10362 (struct objfile) <intern>: New methods.
10363 * elfread.c (elf_symtab_read): Use intern.
10364 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10365 (dwarf2_compute_name, dwarf2_physname)
10366 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10368 (guess_partial_die_structure_name): Update.
10369 (partial_die_info::fixup): Intern name.
10370 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10372 (dwarf2_name): Intern name. Update.
10373 * buildsym.c (buildsym_compunit::get_macro_table): Use
10376 2020-03-04 Tom Tromey <tom@tromey.com>
10378 * jit.c (bfd_open_from_target_memory): Make "target" const.
10379 * corefile.c (gnutarget): Now const.
10380 * gdbcore.h (gnutarget): Now const.
10382 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10384 * NEWS: Mention support for WOW64 processes.
10385 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10386 (amd64_windows_segment_register_p): Remove static.
10387 (_initialize_amd64_windows_nat): Update.
10388 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10389 * i386-windows-nat.c (context_offset): Update.
10390 (i386_mappings): Rename and remove static.
10391 (i386_windows_segment_register_p): Remove static.
10392 (_initialize_i386_windows_nat): Update.
10393 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10394 (STATUS_WX86_SINGLE_STEP): New macro.
10395 (EnumProcessModulesEx): New macro.
10396 (Wow64SuspendThread): New macro.
10397 (Wow64GetThreadContext): New macro.
10398 (Wow64SetThreadContext): New macro.
10399 (Wow64GetThreadSelectorEntry): New macro.
10400 (windows_set_context_register_offsets): Add static.
10401 (windows_set_segment_register_p): Likewise.
10402 (windows_add_thread): Adapt for WOW64 processes.
10403 (windows_fetch_one_register): Likewise.
10404 (windows_nat_target::fetch_registers): Likewise.
10405 (windows_store_one_register): Likewise.
10406 (display_selector): Likewise.
10407 (display_selectors): Likewise.
10408 (handle_exception): Likewise.
10409 (windows_continue): Likewise.
10410 (windows_nat_target::resume): Likewise.
10411 (windows_add_all_dlls): Likewise.
10412 (do_initial_windows_stuff): Likewise.
10413 (windows_nat_target::attach): Likewise.
10414 (windows_get_exec_module_filename): Likewise.
10415 (windows_nat_target::create_inferior): Likewise.
10416 (windows_xfer_siginfo): Likewise.
10417 (_initialize_loadable): Initialize Wow64SuspendThread,
10418 Wow64GetThreadContext, Wow64SetThreadContext,
10419 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10420 * windows-nat.h (windows_set_context_register_offsets):
10421 Remove declaration.
10422 (windows_set_segment_register_p): Likewise.
10423 (i386_windows_segment_register_p): Add declaration.
10424 (amd64_windows_segment_register_p): Likewise.
10426 2020-03-04 Luis Machado <luis.machado@linaro.org>
10428 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10429 in "info registers" for AArch64/ARM.
10431 The change caused "info registers" to not print GPR's.
10435 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10437 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10438 when reg->group is empty and reggroup is not.
10440 2020-03-03 Tom Tromey <tromey@adacore.com>
10442 * dwarf2/frame.c (struct dwarf2_frame_cache)
10443 <checked_tailcall_bottom, entry_cfa_sp_offset,
10444 entry_cfa_sp_offset_p>: Remove members.
10445 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10446 (dwarf2_frame_prev_register): Don't call
10447 dwarf2_tailcall_sniffer_first.
10448 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10449 * frame-unwind.c (add_unwinder): New fuction.
10450 (frame_unwind_init): Use it. Add tailcall unwinder.
10452 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10453 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10455 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10456 value should be printed as true.
10458 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10460 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10461 (windows_init_abi): Set and use windows_so_ops.
10463 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10465 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10466 when verifying if dealing with a convenience variable.
10468 2020-03-03 Luis Machado <luis.machado@linaro.org>
10470 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10472 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10474 * infrun.c (gdbarch_supports_displaced_stepping): New.
10475 (use_displaced_stepping): Break up conditions in smaller pieces.
10476 Use gdbarch_supports_displaced_stepping.
10477 (displaced_step_prepare_throw): Use
10478 gdbarch_supports_displaced_stepping.
10480 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10482 * NEWS: Mention new behaviour of the history filename.
10483 * top.c (write_history_p): Add comment.
10484 (show_write_history_p): Add header comment, give a different
10485 message when history writing is on, but the history filename is
10487 (history_filename): Add comment.
10488 (history_filename_empty): New function.
10489 (show_history_filename): Add header comment, give a different
10490 message when the filename is empty.
10491 (init_history): Compare history_filename against nullptr, and only
10492 read history if the filename is not empty.
10493 (set_history_filename): Add header comment, and only make
10494 non-empty filenames absolute.
10495 (init_main): Make the filename argument to 'set history filename'
10498 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10500 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10501 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10502 (fetch_fp_register): Update.
10503 (fetch_fp_regs): Update.
10504 (store_fp_register): Update.
10505 (store_fp_regs): Update.
10506 (arm_netbsd_nat_target::read_description): New function.
10507 (fetch_elfcore_registers): Update.
10509 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10511 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10512 general_thread if the stop reply is missing a thread-id.
10513 (remote_target::process_stop_reply): Use the first non-exited
10514 thread if the target didn't pass a thread-id.
10515 * infrun.c (do_target_wait): Move call to
10516 switch_to_inferior_no_thread to ....
10517 (do_target_wait_1): ... here.
10519 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10521 * debuginfod-support.c: Include defs.h first.
10523 2020-02-28 Tom de Vries <tdevries@suse.de>
10525 * symfile.c (set_initial_language): Use default language for lookup.
10527 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10529 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10530 reader variable, pass `this` to read_cutu_die_from_dwo.
10532 2020-02-27 Aaron Merey <amerey@redhat.com>
10534 * source.c (open_source_file): Check for nullptr when computing
10537 2020-02-27 Tom Tromey <tromey@adacore.com>
10539 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10541 (dwarf2_add_field): Don't update nfields.
10542 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10544 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10546 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10549 2020-02-26 Tom Tromey <tom@tromey.com>
10551 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10552 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10553 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10554 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10557 2020-02-26 Tom Tromey <tom@tromey.com>
10559 * dwarf2/index-write.c (psym_index_map): Change type.
10560 (add_address_entry_worker, write_one_signatured_type)
10561 (recursively_count_psymbols, recursively_write_psymbols)
10562 (class debug_names, psyms_seen_size, write_gdbindex)
10563 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10565 2020-02-26 Aaron Merey <amerey@redhat.com>
10567 * Makefile.in: Handle optional debuginfod support.
10569 * README: Add --with-debuginfod summary.
10570 * config.in: Regenerate.
10571 * configure: Regenerate.
10572 * configure.ac: Handle optional debuginfod support.
10573 * debuginfod-support.c: debuginfod helper functions.
10574 * debuginfod-support.h: Ditto.
10575 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10577 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10578 when a dwz file cannot be found.
10579 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10580 debuginfo file cannot be found.
10581 * source.c (open_source_file): Query debuginfod servers when a
10582 source file cannot be found.
10583 * top.c (print_gdb_configuration): Include
10584 --{with,without}-debuginfod in the output.
10586 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10588 * thread.c (thr_try_catch_cmd): Print thread name.
10590 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10592 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10593 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10594 dwarf2_fetch_die_type_sect_off): Move to...
10595 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10596 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10597 dwarf2_fetch_die_type_sect_off): ... here.
10598 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10599 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10600 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10602 2020-02-26 Tom de Vries <tdevries@suse.de>
10605 * symfile.c (set_initial_language): Exit-early if
10606 language_mode == language_mode_manual.
10608 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10610 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10611 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10612 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10614 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10616 * gdbtypes.c (create_array_type_with_stride): Handle negative
10618 * valarith.c (value_subscripted_rvalue): Likewise.
10620 2020-02-25 Luis Machado <luis.machado@linaro.org>
10622 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10624 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10626 * loc.h (dwarf2_get_die_type): Move to...
10627 * read.h (dwarf2_get_die_type): ... here.
10628 * read.c (dwarf2_get_die_type): Move doc to header.
10630 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10632 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10633 'gnulib/Makefile.in' to the list.
10635 2020-02-24 Tom Tromey <tom@tromey.com>
10637 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10639 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10642 2020-02-24 Tom Tromey <tom@tromey.com>
10644 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10646 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10647 (dw2_do_instantiate_symtab, dw2_get_file_names)
10648 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10650 2020-02-24 Tom Tromey <tom@tromey.com>
10652 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10653 make_scoped_restore.
10654 (dwarf2_psymtab::read_symtab): Don't clear
10655 reading_partial_symbols.
10657 2020-02-24 Tom de Vries <tdevries@suse.de>
10660 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10662 2020-02-24 Tom de Vries <tdevries@suse.de>
10664 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10665 commands layout next/prev/regs.
10667 2020-02-22 Tom Tromey <tom@tromey.com>
10669 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10670 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10672 2020-02-22 Tom Tromey <tom@tromey.com>
10674 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10676 2020-02-22 Tom Tromey <tom@tromey.com>
10678 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10679 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10680 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10681 * tui/tui.c (_initialize_tui): Add usage text.
10683 2020-02-22 Tom Tromey <tom@tromey.com>
10685 * tui/tui-win.c (tui_set_focus_command)
10686 (tui_set_win_height_command): Use error_no_arg.
10687 (_initialize_tui_win): Update help text.
10688 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10690 2020-02-22 Tom Tromey <tom@tromey.com>
10692 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10693 * tui/tui-disasm.h (struct tui_disasm_window)
10694 <display_start_addr>: Declare.
10695 * tui/tui-source.h (struct tui_source_window)
10696 <display_start_addr>: Declare.
10697 * tui/tui-winsource.h (struct tui_source_window_base)
10698 <show_source_line, display_start_addr>: New methods.
10699 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10700 Rename and move to protected section.
10701 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10702 (tui_source_window_base::do_erase_source_content): Update.
10703 (tui_source_window_base::show_source_line): Now a method.
10704 (tui_source_window_base::show_source_content)
10705 (tui_source_window_base::tui_source_window_base)
10706 (tui_source_window_base::rerender)
10707 (tui_source_window_base::refill)
10708 (tui_source_window_base::do_scroll_horizontal)
10709 (tui_source_window_base::set_is_exec_point_at)
10710 (tui_source_window_base::update_breakpoint_info)
10711 (tui_source_window_base::update_exec_info): Update.
10712 * tui/tui-source.c (tui_source_window::set_contents)
10713 (tui_source_window::showing_source_p)
10714 (tui_source_window::do_scroll_vertical)
10715 (tui_source_window::location_matches_p)
10716 (tui_source_window::line_is_displayed): Update.
10717 (tui_source_window::display_start_addr): New method.
10718 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10719 (tui_disasm_window::do_scroll_vertical)
10720 (tui_disasm_window::location_matches_p): Update.
10721 (tui_disasm_window::display_start_addr): New method.
10723 2020-02-22 Tom Tromey <tom@tromey.com>
10725 * NEWS: Add entry for gdb.register_window_type.
10726 * tui/tui-layout.h (window_factory): New typedef.
10727 (tui_register_window): Declare.
10728 * tui/tui-layout.c (saved_tui_windows): New global.
10729 (tui_apply_current_layout): Use it.
10730 (tui_register_window): New function.
10731 * python/python.c (do_start_initialization): Call
10732 gdbpy_initialize_tui.
10733 (python_GdbMethods): Add "register_window_type" function.
10734 * python/python-internal.h (gdbpy_register_tui_window)
10735 (gdbpy_initialize_tui): Declare.
10736 * python/py-tui.c: New file.
10737 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10739 2020-02-22 Tom Tromey <tom@tromey.com>
10741 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10743 2020-02-22 Tom Tromey <tom@tromey.com>
10745 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10746 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10747 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10748 (tui_set_win_focus_to): Move from tui-win.c.
10750 2020-02-22 Tom Tromey <tom@tromey.com>
10752 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10754 (known_window_types): New global.
10755 (tui_get_window_by_name): Reimplement.
10756 (initialize_known_windows): New function.
10757 (validate_window_name): Rewrite.
10758 (_initialize_tui_layout): Call initialize_known_windows.
10760 2020-02-22 Tom Tromey <tom@tromey.com>
10762 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10764 * tui/tui-winsource.h (struct tui_source_window_base)
10765 <tui_source_window_base>: Remove parameter.
10766 * tui/tui-winsource.c
10767 (tui_source_window_base::tui_source_window_base): Remove
10769 (tui_source_window_base::refill): Update.
10770 * tui/tui-stack.h (struct tui_locator_window)
10771 <tui_locator_window>: Update.
10772 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10773 Default the constructor.
10774 * tui/tui-regs.h (struct tui_data_item_window)
10775 <tui_data_item_window>: Default the constructor.
10776 (struct tui_data_window) <tui_data_window>: Likewise.
10777 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10778 Default the constructor.
10779 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10780 Default the constructor.
10782 (struct tui_win_info) <tui_win_info>: Default the constructor.
10783 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10784 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10785 Default the constructor.
10787 2020-02-22 Tom Tromey <tom@tromey.com>
10789 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10790 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10791 * tui/tui-win.c (tui_resize_all): Don't call
10792 tui_delete_invisible_windows.
10793 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10795 (tui_set_layout): Update.
10796 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10797 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10798 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10800 2020-02-22 Tom Tromey <tom@tromey.com>
10802 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10805 2020-02-22 Tom Tromey <tom@tromey.com>
10807 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10809 2020-02-22 Tom Tromey <tom@tromey.com>
10811 * tui/tui-winsource.h (struct tui_source_window_iterator)
10812 <inner_iterator>: New etytypedef.
10813 <tui_source_window_iterator>: Take "end" parameter.
10814 <tui_source_window_iterator>: Take iterator.
10815 <operator*, advance>: Update.
10816 <m_iter>: Change type.
10817 <m_end>: New field.
10818 (struct tui_source_windows) <begin, end>: Update.
10819 * tui/tui-layout.c (tui_windows): New global.
10820 (tui_apply_current_layout): Clear tui_windows.
10821 (tui_layout_window::apply): Update tui_windows.
10822 * tui/tui-data.h (tui_windows): Declare.
10823 (all_tui_windows): Now inline function.
10824 (class tui_window_iterator, struct all_tui_windows): Remove.
10826 2020-02-22 Tom Tromey <tom@tromey.com>
10829 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10830 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10832 (class tui_layout_window) <get_sizes>: Likewise.
10833 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10835 <get_sizes>: Add "height" argument.
10836 <m_vertical>: New field.
10837 * tui/tui-layout.c (tui_layout_split::clone): Update.
10838 (tui_layout_split::get_sizes): Add "height" argument.
10839 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10840 (tui_new_layout_command): Parse "-horizontal".
10841 (_initialize_tui_layout): Update help string.
10842 (tui_layout_split::specification): Add "-horizontal" when needed.
10843 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10845 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10848 2020-02-22 Tom Tromey <tom@tromey.com>
10850 * tui/tui-layout.h (enum tui_adjust_result): New.
10851 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10852 (class tui_layout_window) <adjust_size>: Return
10853 tui_adjust_result. Rewrite.
10854 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10855 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10857 2020-02-22 Tom Tromey <tom@tromey.com>
10859 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10860 parameter and return types.
10861 (class tui_layout_base) <specification>: Add "depth".
10862 (class tui_layout_window) <specification>: Add "depth".
10863 (class tui_layout_split) <specification>: Add "depth".
10864 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10866 (tui_new_layout_command): Parse sub-layouts.
10867 (_initialize_tui_layout): Update help string.
10868 (tui_layout_window::specification): Add "depth".
10869 (add_layout_command): Update.
10871 2020-02-22 Tom Tromey <tom@tromey.com>
10873 * NEWS: Add "tui new-layout" item.
10874 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10875 Add new-layout command to help text.
10876 (validate_window_name): New function.
10877 (tui_new_layout_command): New function.
10878 (_initialize_tui_layout): Register "new-layout".
10879 (tui_layout_window::specification): New method.
10880 (tui_layout_window::specification): New method.
10881 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10883 (class tui_layout_window) <specification>: New method.
10884 (class tui_layout_split) <specification>: New method.
10886 2020-02-22 Tom Tromey <tom@tromey.com>
10888 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10889 * tui/tui-win.c (window_name_completer): Update comment.
10890 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10892 (class tui_layout_window) <replace_window>: Likewise.
10893 (class tui_layout_split) <replace_window>: Likewise.
10894 (tui_set_layout): Don't declare.
10895 (tui_set_initial_layout): Declare function.
10896 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10897 (asm_regs_layout): New globals.
10898 (tui_current_layout, show_layout): Remove.
10899 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10900 (find_layout, tui_apply_layout): New function.
10901 (layout_completer): Remove.
10902 (tui_next_layout): Reimplement.
10903 (tui_next_layout_command): New function.
10904 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10905 (tui_regs_layout): Reimplement.
10906 (tui_regs_layout_command): New function.
10907 (extract_display_start_addr): Rewrite.
10908 (next_layout, prev_layout): Remove.
10909 (tui_layout_window::replace_window): New method.
10910 (tui_layout_split::replace_window): New method.
10911 (destroy_layout): New function.
10912 (layout_list): New global.
10913 (add_layout_command): New function.
10914 (initialize_layouts): Update.
10915 (tui_layout_command): New function.
10916 (_initialize_tui_layout): Install "layout" commands.
10917 * tui/tui-data.h (enum tui_layout_type): Remove.
10918 (tui_current_layout): Don't declare.
10920 2020-02-22 Tom Tromey <tom@tromey.com>
10922 * tui/tui-regs.c (tui_reg_layout): Remove.
10923 (tui_reg_command): Use tui_regs_layout.
10924 * tui/tui-layout.h (tui_reg_command): Declare.
10925 * tui/tui-layout.c (tui_reg_command): New function.
10927 2020-02-22 Tom Tromey <tom@tromey.com>
10929 * tui/tui.c (tui_rl_delete_other_windows): Call
10930 tui_remove_some_windows.
10931 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10933 (class tui_layout_window) <remove_windows>: New method.
10934 (class tui_layout_split) <remove_windows>: Declare.
10935 (tui_remove_some_windows): Declare.
10936 * tui/tui-layout.c (tui_remove_some_windows): New function.
10937 (tui_layout_split::remove_windows): New method.
10939 2020-02-22 Tom Tromey <tom@tromey.com>
10941 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10942 * tui/tui-layout.h (tui_next_layout): Declare.
10943 * tui/tui-layout.c (tui_next_layout): New function.
10945 2020-02-22 Tom Tromey <tom@tromey.com>
10947 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10948 correct coordinates.
10950 2020-02-22 Tom Tromey <tom@tromey.com>
10952 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10953 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10956 2020-02-22 Tom Tromey <tom@tromey.com>
10958 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10959 TUI_DISASM_WIN, not tui_win_list.
10961 2020-02-22 Tom Tromey <tom@tromey.com>
10963 * valprint.c (generic_val_print_enum_1)
10964 (val_print_type_code_flags): Style member names.
10965 * rust-lang.c (val_print_struct, rust_print_enum)
10966 (rust_print_struct_def, rust_internal_print_type): Style member
10968 * p-valprint.c (pascal_object_print_value_fields): Style member
10969 names. Only call fprintf_symbol_filtered for static members.
10970 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10971 * f-valprint.c (f_val_print): Style member names.
10972 * f-typeprint.c (f_type_print_base): Style member names.
10973 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10974 call fprintf_symbol_filtered for static members.
10975 (cp_print_class_member): Style member names.
10976 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10978 * ada-valprint.c (ada_print_scalar): Style enum names.
10979 (ada_val_print_enum): Likewise.
10980 * ada-typeprint.c (print_enum_type): Style enum names.
10982 2020-02-21 Tom Tromey <tom@tromey.com>
10984 * psympriv.h (struct partial_symtab): Update comment.
10986 2020-02-21 Tom Tromey <tromey@adacore.com>
10988 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10991 2020-02-21 Tom de Vries <tdevries@suse.de>
10994 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10995 if dependencies[i]->user != NULL.
10997 2020-02-21 Ali Tamur <tamur@google.com>
10999 * dwarf2/read.c (dwarf2_name): Add null check.
11001 2020-02-20 Tom Tromey <tom@tromey.com>
11003 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11004 ">=", in binary search.
11005 (dwarf2_find_containing_comp_unit): New overload.
11006 (run_test): New self-test.
11007 (_initialize_dwarf2_read): Register new test.
11009 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11011 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11012 * riscv-tdep.h: Likewise.
11013 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11015 * features/riscv/64bit-csr.xml: Regenerated.
11017 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11018 Tom Tromey <tom@tromey.com>
11020 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11021 of 'fputc_unfiltered'.
11022 (putchar_unfiltered): Call 'fputc_unfiltered'.
11023 (fputc_unfiltered): Call 'fputs_unfiltered'.
11025 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11027 * config.in: Regenerate.
11028 * configure: Regenerate.
11029 * configure.ac: Add --with-python-libdir option.
11030 * main.c: Use WITH_PYTHON_LIBDIR.
11032 2020-02-19 Tom Tromey <tom@tromey.com>
11034 * symtab.c (general_symbol_info::compute_and_set_names): Use
11035 obstack_strndup. Simplify call to symbol_set_demangled_name.
11037 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11039 * dwarf2/read.c (allocate_signatured_type_table,
11040 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11041 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11042 Remove objfile parameter, update all callers.
11044 2020-02-19 Doug Evans <dje@google.com>
11047 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11048 rust_enum_variant calculation.
11050 2020-02-19 Tom Tromey <tromey@adacore.com>
11052 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11054 2020-02-19 Tom Tromey <tromey@adacore.com>
11056 * ada-lang.c (cache_symbol): Use obstack_strdup.
11058 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11060 * configure: Regenerate.
11062 2020-02-19 Tom Tromey <tromey@adacore.com>
11064 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11067 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11069 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11071 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11073 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11074 if GDBSERVER is not defined.
11075 (riscv_tdesc_cache): Likewise, also store const target_desc.
11076 (STATIC_IN_GDB): Define.
11077 (riscv_create_target_description): Update declaration with
11079 (riscv_lookup_target_description): New function, only define if
11080 GDBSERVER is not defined.
11081 * arch/riscv.h (riscv_create_target_description): Declare only
11082 when GDBSERVER is defined.
11083 (riscv_lookup_target_description): New declaration when GDBSERVER
11085 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11086 (riscv_linux_read_features): ...this, and return
11087 riscv_gdbarch_features instead of target_desc.
11088 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11089 (riscv_linux_read_description): Rename to...
11090 (riscv_linux_read_features): ...this.
11091 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11092 Update to use riscv_gdbarch_features and
11093 riscv_lookup_target_description.
11094 * riscv-tdep.c (riscv_find_default_target_description): Use
11095 riscv_lookup_target_description instead of
11096 riscv_create_target_description.
11098 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11100 * valprint.c (generic_val_print_enum_1): When printing a flag
11101 enum with value 0 and there is no enumerator with value 0, print
11102 just "0" instead of "(unknown: 0x0)".
11104 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11106 * valprint.c (generic_val_print_enum_1): Print unknown part of
11109 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11111 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11112 flag enums to contain duplicate enumerators.
11113 * valprint.c (generic_val_print_enum_1): Update comment.
11115 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11117 * dwarf2/read.c: Include "count-one-bits.h".
11118 (update_enumeration_type_from_children): If an enumerator has
11119 multiple bits set, don't treat the enumeration as a "flag enum".
11120 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11121 of flag enums have 0 or 1 bit set.
11123 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11125 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11127 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11128 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11129 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11130 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11131 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11133 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11135 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11137 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11139 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11140 displaced_step_closure_up.
11141 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11142 (struct displaced_step_closure_up):
11143 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11144 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11145 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11147 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11148 * gdbarch.c, gdbarch.h: Re-generate.
11149 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11150 displaced_step_closure_up.
11151 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11152 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11153 * infrun.h (displaced_step_closure_up): New type alias.
11154 (struct displaced_step_inferior_state) <step_closure>: Change
11155 type to displaced_step_closure_up.
11156 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11157 displaced_step_closure_up.
11158 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11160 2020-02-14 Tom Tromey <tom@tromey.com>
11162 * minidebug.c (gnu_debug_key): New global.
11163 (find_separate_debug_file_in_section): Use it.
11165 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11167 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11169 * gdbarch.c: Re-generate.
11170 * gdbarch.h: Re-generate.
11171 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11173 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11174 type to std::unique_ptr.
11175 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11176 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11177 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11178 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11179 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11180 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11181 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11182 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11183 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11185 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11187 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11189 (displaced_step_clear): Rename to...
11190 (displaced_step_reset): ... this. Just call displaced->reset ().
11191 (displaced_step_clear_cleanup): Rename to...
11192 (displaced_step_reset_cleanup): ... this.
11193 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11194 (displaced_step_fixup): Likewise.
11195 (resume_1): Likewise.
11196 (handle_inferior_event): Restore child's memory before calling
11197 displaced_step_fixup on the parent.
11198 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11199 to std::unique_ptr.
11200 <step_closure>: Change type to std::unique_ptr.
11202 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11204 * arm-tdep.c: Include count-one-bits.h.
11205 (cleanup_block_store_pc): Use count_one_bits.
11206 (cleanup_block_load_pc): Use count_one_bits.
11207 (arm_copy_block_xfer): Use count_one_bits.
11208 (thumb2_copy_block_xfer): Use count_one_bits.
11209 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11210 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11211 (thumb_get_next_pcs_raw): Use count_one_bits.
11212 (arm_get_next_pcs_raw): Use count_one_bits_l.
11213 * arch/arm.c (bitcount): Remove.
11214 * arch/arm.h (bitcount): Remove.
11216 2020-02-14 Tom Tromey <tromey@adacore.com>
11218 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11220 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11221 * dwarf2/loc.c (call_site_find_chain_1): Return
11222 unique_xmalloc_ptr.
11223 (call_site_find_chain): Likewise.
11225 2020-02-14 Richard Biener <rguenther@suse.de>
11227 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11228 on expression with division operators.
11230 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11232 * MAINTAINERS (Write After Approval): Adding myself.
11234 2020-02-12 Tom Tromey <tom@tromey.com>
11236 * event-loop.c (event_data, gdb_event, event_handler_func):
11239 2020-02-12 Tom Tromey <tom@tromey.com>
11241 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11242 (dwarf2_frame_objfile_data): Add comment.
11243 (find_comp_unit, set_comp_unit): New functions.
11244 (dwarf2_frame_find_fde): Use find_comp_unit.
11245 (dwarf2_build_frame_info): Use set_comp_unit.
11247 2020-02-12 Tom Tromey <tom@tromey.com>
11249 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11250 (comp_unit): Don't initialize objfile.
11251 (execute_cfa_program): Add text_offset parameter.
11252 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11253 (dwarf2_frame_cache): Update.
11254 (dwarf2_build_frame_info): Don't set "objfile" member.
11256 2020-02-12 Tom Tromey <tom@tromey.com>
11258 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11259 (decode_frame_entry): Likewise.
11260 (dwarf2_build_frame_info): Update.
11262 2020-02-12 Tom Tromey <tom@tromey.com>
11264 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11265 (decode_frame_entry_1): Use the comp_unit obstack.
11267 2020-02-12 Tom Tromey <tom@tromey.com>
11269 * dwarf2/frame.c (struct comp_unit): Add initializers and
11271 (dwarf2_frame_objfile_data): Store a comp_unit.
11272 (dwarf2_frame_find_fde): Update.
11273 (dwarf2_build_frame_info): Use "new".
11275 2020-02-12 Tom Tromey <tom@tromey.com>
11277 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11278 (dwarf2_fde_table): Typedef for std::vector.
11279 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11280 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11281 (decode_frame_entry): Update.
11282 (dwarf2_build_frame_info): Use "new".
11284 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11286 * arm-tdep.c (arm_gdbarch_init): Update.
11287 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11288 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11289 have_neon, is_m>: Change to bool.
11291 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11293 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11295 2020-02-12 Tom Tromey <tom@tromey.com>
11297 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11299 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11301 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11302 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11304 2020-02-11 Tom Tromey <tom@tromey.com>
11306 * psymtab.h: Update comment.
11308 2020-02-11 Tom Tromey <tom@tromey.com>
11310 * gdb_obstack.h (struct auto_obstack): Use
11311 DISABLE_COPY_AND_ASSIGN.
11313 2020-02-11 Tom Tromey <tom@tromey.com>
11315 * dwarf2/frame.h (struct objfile): Don't forward declare.
11317 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11319 * cris-tdep.c (cris_supply_gregset): Change signature to match
11320 what struct regset expects.
11321 (cris_regset): New struct.
11322 (fetch_core_registers): Remove.
11323 (cris_iterate_over_regset_sections): New function.
11324 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11325 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11327 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11329 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11332 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11334 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11336 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11338 * configure: Re-generate.
11340 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11342 * configure: Re-generate.
11344 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11346 * acinclude: Update warning.m4 path.
11347 * warning.m4: Move to gdbsupport.
11349 2020-02-11 Tom Tromey <tromey@adacore.com>
11351 * remote.c (remote_console_output): Update.
11352 * printcmd.c (printf_command): Update.
11353 * event-loop.c (gdb_wait_for_event): Update.
11354 * linux-nat.c (sigchld_handler): Update.
11355 * remote-sim.c (gdb_os_write_stdout): Update.
11356 (gdb_os_flush_stdout): Update.
11357 (gdb_os_flush_stderr): Update.
11358 (gdb_os_write_stderr): Update.
11359 * exceptions.c (print_exception): Update.
11360 * remote-fileio.c (remote_fileio_func_read): Update.
11361 (remote_fileio_func_write): Update.
11362 * tui/tui.c (tui_enable): Update.
11363 * tui/tui-interp.c (tui_interp::init): Update.
11364 * utils.c (init_page_info): Update.
11365 (putchar_unfiltered, fputc_unfiltered): Update.
11366 (gdb_flush): Update.
11367 (emit_style_escape): Update.
11368 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11369 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11370 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11371 (stderr_file::write): Update.
11372 (stderr_file::puts): Update.
11373 * ui-file.h (ui_file_isatty, ui_file_write)
11374 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11375 (ui_file_puts): Don't declare.
11377 2020-02-10 Tom de Vries <tdevries@suse.de>
11379 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11380 sentinel to char *.
11382 2020-02-09 Tom de Vries <tdevries@suse.de>
11384 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11385 filename if it matches "<artificial>".
11387 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11389 * windows-tdep.c (struct enum_value_name): New struct.
11390 (create_enum): New function.
11391 (windows_get_siginfo_type): Create and use enum types.
11393 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11395 * NEWS: Mention $_siginfo support for Windows.
11396 * windows-nat.c (handle_exception): Set siginfo_er.
11397 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11398 (windows_xfer_siginfo): New function.
11399 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11400 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11401 (init_windows_gdbarch_data): New function.
11402 (get_windows_gdbarch_data): New function.
11403 (windows_get_siginfo_type): New function.
11404 (windows_init_abi): Register windows_get_siginfo_type.
11405 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11407 2020-02-08 Tom Tromey <tom@tromey.com>
11409 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11410 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11411 <keep>: Declare method.
11412 <m_keep>: Remove member.
11413 <~cutu_reader>: Remove.
11414 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11415 (cutu_reader::cutu_reader): Update.
11416 (cutu_reader::keep): Rename from ~cutu_reader.
11417 (process_psymtab_comp_unit, build_type_psymtabs_1)
11418 (process_skeletonless_type_unit, load_partial_comp_unit)
11419 (load_full_comp_unit, dwarf2_read_addr_index)
11420 (read_signatured_type): Update.
11422 2020-02-08 Tom Tromey <tom@tromey.com>
11424 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11425 "want_partial_unit" parameter.
11426 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11427 Inline check for DW_TAG_partial_unit.
11428 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11430 2020-02-08 Tom Tromey <tom@tromey.com>
11432 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11434 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11437 2020-02-08 Tom Tromey <tom@tromey.com>
11439 * dwarf2/read.c (read_address): Move to comp-unit.c.
11440 (dwarf2_rnglists_process, dwarf2_ranges_process)
11441 (read_attribute_value, dwarf_decode_lines_1)
11442 (var_decode_location, decode_locdesc): Update.
11443 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11444 read.c. Remove "cu" parameter.
11445 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11448 2020-02-08 Tom Tromey <tom@tromey.com>
11450 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11451 (read_indirect_line_string): Update.
11452 * dwarf2/comp-unit.c (read_offset): Remove.
11453 (read_comp_unit_head): Update.
11454 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11456 (read_offset): Don't declare.
11458 2020-02-08 Tom Tromey <tom@tromey.com>
11460 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11461 * dwarf2/read.c (struct comp_unit_head): Move to
11462 dwarf2/comp-unit.h.
11463 (enum class rcuh_kind): Move to comp-unit.h.
11464 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11465 (read_comp_unit_head, error_check_comp_unit_head)
11466 (read_and_check_comp_unit_head): Move to comp-unit.c.
11467 (read_offset, dwarf_unit_type_name): Likewise.
11468 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11469 (cutu_reader::cutu_reader, read_call_site_scope)
11470 (find_partial_die, follow_die_offset): Update.
11471 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11473 2020-02-08 Tom Tromey <tom@tromey.com>
11475 * dwarf2/read.c (read_offset_1): Move to leb.c.
11476 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11477 (dwarf_decode_macro_bytes): Update.
11478 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11479 * dwarf2/leb.h (read_offset): Declare.
11481 2020-02-08 Tom Tromey <tom@tromey.com>
11483 * dwarf2/read.c (dwarf2_section_size): Remove.
11484 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11486 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11488 2020-02-08 Tom Tromey <tom@tromey.com>
11490 * dwarf2/read.c (read_initial_length): Move to leb.c.
11491 * dwarf2/leb.h (read_initial_length): Declare.
11492 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11493 handle_nonstd parameter.
11494 * dwarf2/frame.c (read_initial_length): Remove.
11495 (decode_frame_entry_1): Update.
11497 2020-02-08 Tom Tromey <tom@tromey.com>
11499 * dwarf2/loc.c (dwarf2_find_location_expression)
11500 (dwarf_evaluate_loc_desc::get_tls_address)
11501 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11502 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11503 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11504 (dwarf2_compile_property_to_c)
11505 (dwarf2_loc_desc_get_symbol_read_needs)
11506 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11507 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11508 (loclist_describe_location, loclist_tracepoint_var_ref)
11509 (loclist_generate_c_location): Update.
11510 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11511 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11512 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11513 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11514 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11515 (dwarf2_per_cu_data::addr_size)
11516 (dwarf2_per_cu_data::ref_addr_size)
11517 (dwarf2_per_cu_data::text_offset)
11518 (dwarf2_per_cu_data::addr_type): Now methods.
11519 (per_cu_header_read_in): Make per_cu "const".
11520 (dwarf2_version): Remove.
11521 (dwarf2_per_cu_data::int_type): Now a method.
11522 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11523 (set_die_type, read_array_type, read_subrange_index_type)
11524 (read_tag_string_type, read_subrange_type): Update.
11525 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11526 offset_size, ref_addr_size, text_offset, addr_type, version,
11527 objfile, int_type, addr_sized_int_type>: Declare methods.
11529 2020-02-08 Tom Tromey <tom@tromey.com>
11531 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11534 2020-02-08 Tom Tromey <tom@tromey.com>
11536 * dwarf2/read.h (dwarf_line_debug): Declare.
11537 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11538 * dwarf2/read.c: Move line_header code to new files.
11539 (dwarf_line_debug): No longer static.
11540 * dwarf2/line-header.c: New file.
11541 * dwarf2/line-header.h: New file.
11543 2020-02-08 Tom Tromey <tom@tromey.com>
11545 * dwarf2/read.c (struct line_header) <file_full_name,
11546 file_file_name>: Return unique_xmalloc_ptr.
11547 (line_header::file_file_name): Update.
11548 (line_header::file_full_name): Update.
11549 (dw2_get_file_names_reader): Update.
11550 (macro_start_file): Update.
11552 2020-02-08 Tom Tromey <tom@tromey.com>
11554 * dwarf2/read.c (struct line_header) <file_full_name,
11555 file_file_name>: Declare methods.
11556 (dw2_get_file_names_reader): Update.
11557 (file_file_name): Now a method.
11558 (file_full_name): Likewise.
11559 (macro_start_file): Update.
11561 2020-02-08 Tom Tromey <tom@tromey.com>
11563 * dwarf2/read.c (dwarf_always_disassemble)
11564 (show_dwarf_always_disassemble): Move to loc.c.
11565 (_initialize_dwarf2_read): Move "always-disassemble" registration
11567 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11568 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11570 (show_dwarf_always_disassemble): Move from read.c.
11571 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11573 2020-02-08 Tom Tromey <tom@tromey.com>
11575 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11576 (create_quick_file_names_table): Return htab_up.
11577 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11579 * dwarf2/read.h (struct dwarf2_per_objfile)
11580 <quick_file_names_table>: Now htab_up.
11582 2020-02-08 Tom Tromey <tom@tromey.com>
11584 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11586 2020-02-08 Tom Tromey <tom@tromey.com>
11588 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11590 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11591 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11592 (abbrev_table::abbrev_table): No longer inline.
11593 (ABBREV_HASH_SIZE): Remove.
11594 (abbrev_table::m_abbrevs): Now an htab_up.
11596 2020-02-08 Tom Tromey <tom@tromey.com>
11598 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11599 (cutu_reader): Update.
11600 (build_type_psymtabs_1): Update.
11601 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11602 (abbrev_table::alloc_abbrev): Update.
11603 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11604 (abbrev_table::read): New static method, renamed from
11605 abbrev_table_read_table.
11606 (abbrev_table::alloc_abbrev)
11607 (abbrev_table::add_abbrev): Now private.
11608 (abbrev_table::abbrev_table): Now private.
11609 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11611 2020-02-08 Tom Tromey <tom@tromey.com>
11613 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11614 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11617 2020-02-08 Tom Tromey <tom@tromey.com>
11619 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11621 (lookup_dwo_unit_in_dwp): Update.
11622 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11625 2020-02-08 Tom Tromey <tom@tromey.com>
11627 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11630 2020-02-08 Tom Tromey <tom@tromey.com>
11632 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11634 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11635 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11636 Change type to htab_up.
11638 2020-02-08 Tom Tromey <tom@tromey.com>
11640 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11641 htab_up. Don't allocate on obstack.
11642 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11643 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11644 Change type to htab_up.
11646 2020-02-08 Tom Tromey <tom@tromey.com>
11648 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11649 Change type to htab_up.
11650 * dwarf2/read.c (create_signatured_type_table_from_index)
11651 (create_signatured_type_table_from_debug_names)
11652 (create_all_type_units, add_type_unit)
11653 (lookup_dwo_signatured_type, lookup_signatured_type)
11654 (process_skeletonless_type_unit): Update.
11655 (create_debug_type_hash_table, create_debug_types_hash_table):
11656 Change type of types_htab.
11657 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11658 htab_up. Don't allocate on obstack.
11659 (create_cus_hash_table): Change type of cus_htab parameter.
11660 (struct dwo_file) <cus, tus>: Now htab_up.
11661 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11662 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11663 (queue_and_load_all_dwo_tus): Update.
11664 * dwarf2/index-write.c (write_gdbindex): Update.
11665 (write_debug_names): Update.
11667 2020-02-08 Tom Tromey <tom@tromey.com>
11669 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11670 dwarf2/read.c. Remove "next" member. Add constructor ntad
11672 (struct dwarf2_per_objfile) <queue>: New member.
11673 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11675 (dwarf2_queue, dwarf2_queue_tail): Remove.
11676 (class dwarf2_queue_guard): Add parameter to constructor. Use
11677 DISABLE_COPY_AND_ASSIGN.
11678 <m_per_objfile>: New member.
11679 <~dwarf2_queue_guard>: Rewrite.
11680 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11682 (~dwarf2_queue_item): New.
11684 2020-02-08 Tom Tromey <tom@tromey.com>
11686 * dwarf2/read.c (struct die_info) <has_children>: New member.
11687 (dw2_get_file_names_reader): Remove has_children.
11688 (dw2_get_file_names): Update.
11689 (read_cutu_die_from_dwo): Remove has_children.
11690 (cutu_reader::init_tu_and_read_dwo_dies)
11691 (cutu_reader::cutu_reader): Update.
11692 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11693 Remove has_children.
11694 (build_type_psymtabs_1, process_skeletonless_type_unit)
11695 (load_partial_comp_unit, load_full_comp_unit): Update.
11696 (create_dwo_cu_reader): Remove has_children.
11697 (create_cus_hash_table, read_die_and_children): Update.
11698 (read_full_die_1,read_full_die): Remove has_children.
11699 (read_signatured_type): Update.
11700 (class cutu_reader) <has_children>: Remove.
11702 2020-02-08 Tom Tromey <tom@tromey.com>
11704 * dwarf2/expr.c: Rename from dwarf2expr.c.
11705 * dwarf2/expr.h: Rename from dwarf2expr.h.
11706 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11707 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11708 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11709 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11710 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11711 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11712 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11713 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11714 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11715 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11716 * dwarf2/loc.c: Rename from dwarf2loc.c.
11717 * dwarf2/loc.h: Rename from dwarf2loc.h.
11718 * dwarf2/read.c: Rename from dwarf2read.c.
11719 * dwarf2/read.h: Rename from dwarf2read.h.
11720 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11721 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11722 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11723 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11724 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11725 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11726 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11727 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11728 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11729 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11730 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11731 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11732 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11734 * Makefile.in (COMMON_SFILES): Update.
11735 (HFILES_NO_SRCDIR): Update.
11737 2020-02-08 Tom Tromey <tom@tromey.com>
11739 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11740 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11742 2020-02-08 Tom Tromey <tom@tromey.com>
11744 * dwarf2read.h (struct die_info): Don't declare.
11746 2020-02-08 Tom Tromey <tom@tromey.com>
11748 * dwarf2read.h (die_info_ptr): Remove typedef.
11750 2020-02-08 Tom Tromey <tom@tromey.com>
11752 * dwarf2read.c (read_call_site_scope)
11753 (handle_data_member_location, dwarf2_add_member_fn)
11754 (mark_common_block_symbol_computed, read_common_block)
11755 (attr_to_dynamic_prop, partial_die_info::read)
11756 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11757 (dwarf2_symbol_mark_computed, set_die_type): Update.
11758 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11760 (attr_form_is_block): Don't declare.
11761 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11763 2020-02-08 Tom Tromey <tom@tromey.com>
11765 * dwarf2read.c (dwarf2_find_base_address, )
11766 (read_call_site_scope, rust_containing_type)
11767 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11768 (handle_data_member_location, dwarf2_add_member_fn)
11769 (get_alignment, read_structure_type, process_structure_scope)
11770 (mark_common_block_symbol_computed, read_common_block)
11771 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11772 (partial_die_info::read, read_attribute_value, new_symbol)
11773 (lookup_die_type, dwarf2_get_ref_die_offset)
11774 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11775 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11776 (dwarf2_symbol_mark_computed): Update.
11777 * dwarf2/attribute.h (struct attribute) <value_as_address,
11778 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11780 (value_as_address, attr_form_is_section_offset)
11781 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11782 * dwarf2/attribute.c (attribute::value_as_address)
11783 (attribute::form_is_section_offset, attribute::form_is_constant)
11784 (attribute::form_is_ref): Now methods.
11786 2020-02-08 Tom Tromey <tom@tromey.com>
11788 * dwarf2read.c (struct attribute, DW_STRING)
11789 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11790 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11791 (attr_form_is_block, attr_form_is_section_offset)
11792 (attr_form_is_constant, attr_form_is_ref): Move.
11793 * dwarf2/attribute.h: New file.
11794 * dwarf2/attribute.c: New file, from dwarf2read.c.
11795 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11797 2020-02-08 Tom Tromey <tom@tromey.com>
11799 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11800 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11802 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11803 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11804 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11806 * dwarf2/abbrev.h: New file.
11807 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11808 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11810 2020-02-08 Tom Tromey <tom@tromey.com>
11812 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11813 (dwarf2_section_size, dwarf2_get_section_info)
11814 (create_signatured_type_table_from_debug_names)
11815 (create_addrmap_from_aranges, read_debug_names_from_section)
11816 (get_gdb_index_contents_from_section, read_comp_unit_head)
11817 (error_check_comp_unit_head, read_abbrev_offset)
11818 (create_debug_type_hash_table, init_cu_die_reader)
11819 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11820 (read_comp_units_from_section, create_cus_hash_table)
11821 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11822 (create_dwp_v2_section, dwarf2_rnglists_process)
11823 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11824 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11825 (read_indirect_string_from_dwz, read_addr_index_1)
11826 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11827 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11828 (fill_in_loclist_baton): Update.
11829 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11830 get_containing_section, get_bfd_owner, get_bfd_section,
11831 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11832 (dwarf2_read_section, get_section_name, get_section_file_name)
11833 (get_containing_section, get_section_bfd_owner)
11834 (get_section_bfd_section, get_section_name, get_section_file_name)
11835 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11837 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11838 (dwarf2_section_info::get_bfd_owner)
11839 (dwarf2_section_info::get_bfd_section)
11840 (dwarf2_section_info::get_name)
11841 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11842 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11843 (dwarf2_section_info::read): Now methods.
11844 * dwarf-index-write.c (class debug_names): Update.
11846 2020-02-08 Tom Tromey <tom@tromey.com>
11848 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11849 Move to dwarf2/section.h.
11850 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11851 (get_section_bfd_section, get_section_name)
11852 (get_section_file_name, get_section_id, get_section_flags)
11853 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11855 * dwarf2/section.h: New file.
11856 * dwarf2/section.c: New file, from dwarf2read.c.
11857 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11859 2020-02-08 Tom Tromey <tom@tromey.com>
11861 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11862 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11863 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11864 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11865 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11866 * dwarf2/leb.h: New file, from dwarf2read.c.
11867 * dwarf2/leb.c: New file, from dwarf2read.c.
11868 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11870 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11871 (COMMON_SFILES): Add dwarf2/leb.c.
11873 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11877 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11880 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11881 * gdb/remote.c (remote_console_output): Update.
11882 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11883 (ui_file_puts): ...this.
11884 * gdb/ui-file.h (ui_file_puts): Add declaration.
11885 * gdb/utils.c (emit_style_escape): Update.
11886 (flush_wrap_buffer): Update.
11887 (fputs_maybe_filtered): Update.
11888 (fputs_unfiltered): Add function.
11890 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11892 * gdb/event-loop.c (gdb_wait_for_event): Update.
11893 * gdb/printcmd.c (printf_command): Update.
11894 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11895 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11896 (gdb_os_flush_stderr): Update.
11897 * gdb/remote.c (remote_console_output): Update.
11898 * gdb/ui-file.c (gdb_flush): Rename to...
11899 (ui_file_flush): ...this.
11900 (stderr_file::write): Update.
11901 (stderr_file::puts): Update.
11902 * gdb/ui-file.h (gdb_flush): Rename to...
11903 (ui_file_flush): ...this.
11904 * gdb/utils.c (gdb_flush): Add function.
11905 * gdb/utils.h (gdb_flush): Add declaration.
11907 2020-02-07 Tom Tromey <tromey@adacore.com>
11909 PR breakpoints/24915:
11910 * source.c (find_and_open_source): Do not check basenames_may_differ.
11912 2020-02-07 Tom Tromey <tom@tromey.com>
11914 * README: Update gdbserver documentation.
11915 * gdbserver: Move to top level.
11916 * configure.tgt (build_gdbserver): Remove.
11917 * configure.ac: Remove --enable-gdbserver.
11918 * configure: Rebuild.
11919 * Makefile.in (distclean): Don't mention gdbserver.
11921 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11923 * source-cache.c (source_cache::ensure): Surround
11924 get_plain_source_lines with a try/catch.
11925 (source_cache::get_line_charpos): Get rid of try/catch
11926 and only check for the return value of "ensure".
11927 * tui/tui-source.c (tui_source_window::set_contents):
11928 Simplify "nlines" calculation.
11930 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11932 * MAINTAINERS (Write After Approval): Add myself.
11934 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11936 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11939 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11941 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11943 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11945 * nat/riscv-linux-tdesc.h: New file.
11946 * nat/riscv-linux-tdesc.c: New file, taking code from...
11947 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11949 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11952 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11954 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11955 we don't set the fake simulator ptid to the null_ptid.
11957 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11959 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11960 * gdbthread.h (class thread_info) <resumed>: Likewise.
11961 * infrun.c (resume_1): Likewise.
11962 (proceed): Likewise.
11963 (infrun_thread_stop_requested): Likewise.
11964 (stop_all_threads): Likewise.
11965 (handle_inferior_event): Likewise.
11966 (restart_threads): Likewise.
11967 (finish_step_over): Likewise.
11968 (keep_going_stepped_thread): Likewise.
11969 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11970 (linux_handle_extended_wait): Likewise.
11971 * record-btrace.c (get_thread_current_frame_id): Likewise.
11972 * record-full.c (record_full_wait_1): Likewise.
11973 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11974 * target.c (target_resume): Likewise.
11975 * thread.c (set_running_thread): Likewise.
11977 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11979 * f-valprint.c (f77_print_array_1): Changed datatype of index
11980 variable to LONGEST from int to enable it to contain bound
11983 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11985 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11986 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11987 offsets according to FLEN determined.
11988 (riscv_linux_nat_target::read_description): Determine FLEN
11990 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11991 according to FLEN determined.
11992 (riscv_linux_nat_target::store_registers): Likewise.
11994 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11996 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11997 when reg->group is empty and reggroup is not.
11999 2020-01-31 Tom Tromey <tromey@adacore.com>
12001 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12002 Call beneath target's mourn_inferior after unpushing.
12004 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12007 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12008 have enough lines to fill the screen, still return the lowest
12011 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12013 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12014 '-', '<', and '>' commands.
12016 2020-01-29 Pedro Alves <palves@redhat.com>
12017 Sergio Durigan Junior <sergiodj@redhat.com>
12019 * infcmd.c (construct_inferior_arguments): Assert that
12020 'argc' is greater than 0.
12022 2020-01-29 Luis Machado <luis.machado@linaro.org>
12024 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12025 (BRK_INSN_MASK): Define to 0xd4200000.
12026 (aarch64_program_breakpoint_here_p): New function.
12027 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12028 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12030 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12032 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12033 call gdbarch_program_breakpoint_here_p.
12034 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12035 default_program_breakpoint_here_p, changed return type to bool and
12037 * breakpoint.h (program_breakpoint_here): Moved prototype to
12038 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12039 return type to bool.
12040 * gdbarch.c: Regenerate.
12041 * gdbarch.h: Regenerate.
12042 * gdbarch.sh (program_breakpoint_here_p): New method.
12043 * infrun.c (handle_signal_stop): Call
12044 gdbarch_program_breakpoint_here_p.
12046 2020-01-26 Tom Tromey <tom@tromey.com>
12048 * ctfread.c (struct ctf_fp_info): Reindent.
12049 (_initialize_ctfread): Remove.
12051 2020-01-26 Tom Tromey <tom@tromey.com>
12053 * psymtab.c (partial_map_expand_apply)
12054 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12055 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12056 (psym_print_stats, psym_expand_symtabs_for_function)
12057 (psym_map_symbol_filenames, psym_map_matching_symbols)
12058 (psym_expand_symtabs_matching)
12059 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12060 (maintenance_check_psymtabs): Use new methods.
12061 * psympriv.h (struct partial_symtab) <readin_p,
12062 get_compunit_symtab>: New methods.
12063 <readin, compunit_symtab>: Remove members.
12064 (struct standard_psymtab): New.
12065 (struct legacy_psymtab): Derive from standard_psymtab.
12066 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12068 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12070 2020-01-26 Tom Tromey <tom@tromey.com>
12072 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12073 read_dependencies. Add assert.
12074 * psymtab.c (partial_symtab::read_dependencies): New method.
12075 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12077 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12078 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12080 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12083 2020-01-26 Tom Tromey <tom@tromey.com>
12085 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12086 Call expand_psymtab.
12087 (xcoff_read_symtab): Call expand_psymtab.
12088 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12089 legacy_expand_psymtab.
12090 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12092 (struct legacy_psymtab) <expand_psymtab>: Implement.
12093 <legacy_expand_psymtab>: New member.
12094 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12095 (parse_partial_symbols): Set legacy_expand_psymtab.
12096 (psymtab_to_symtab_1): Change argument order. Call
12098 (new_psymtab): Set legacy_expand_psymtab.
12099 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12100 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12102 (dwarf2_psymtab::expand_psymtab): Rename from
12103 psymtab_to_symtab_1. Call expand_psymtab.
12104 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12105 (dbx_end_psymtab): Likewise.
12106 (dbx_psymtab_to_symtab_1): Change argument order. Call
12108 (dbx_read_symtab): Call expand_psymtab.
12109 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12110 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12111 (ctf_psymtab::read_symtab): Call expand_psymtab.
12113 2020-01-26 Tom Tromey <tom@tromey.com>
12115 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12116 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12118 * mdebugread.c (mdebug_read_symtab): Remove prints.
12119 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12121 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12123 2020-01-26 Tom Tromey <tom@tromey.com>
12125 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12126 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12127 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12129 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12130 * psymtab.c (psymtab_to_symtab): Call method.
12131 (dump_psymtab): Update.
12132 * psympriv.h (struct partial_symtab): Add virtual destructor.
12133 <read_symtab>: New method.
12134 (struct legacy_symtab): New.
12135 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12136 (struct pst_map) <pst>: Now a legacy_psymtab.
12137 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12138 (new_psymtab): Use legacy_psymtab.
12139 * dwarf2read.h (struct dwarf2_psymtab): New.
12140 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12141 * dwarf2read.c (dwarf2_create_include_psymtab)
12142 (dwarf2_build_include_psymtabs, create_type_unit_group)
12143 (create_partial_symtab, process_psymtab_comp_unit_reader)
12144 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12145 (set_partial_user): Use dwarf2_psymtab.
12146 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12147 (psymtab_to_symtab_1, process_full_comp_unit)
12148 (process_full_type_unit, dwarf2_ranges_read)
12149 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12150 (dwarf_decode_lines): Use dwarf2_psymtab.
12151 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12152 (add_address_entry_worker, write_one_signatured_type)
12153 (recursively_count_psymbols, recursively_write_psymbols)
12154 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12155 (write_debug_names): Likewise.
12156 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12157 <pst>: Now a legacy_psymtab.
12158 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12159 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12160 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12161 * ctfread.c (struct ctf_psymtab): New.
12162 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12164 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12165 (create_partial_symtab): Return a ctf_psymtab.
12166 (scan_partial_symbols): Update.
12168 2020-01-26 Tom Tromey <tom@tromey.com>
12170 * xcoffread.c (xcoff_start_psymtab): Use new.
12171 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12172 renamed from start_psymtab_common.
12173 * psympriv.h (struct partial_symtab): Add new constructor.
12174 (start_psymtab_common): Don't declare.
12175 * mdebugread.c (parse_partial_symbols): Use new.
12176 * dwarf2read.c (create_partial_symtab): Use new.
12177 * dbxread.c (start_psymtab): Use new.
12178 * ctfread.c (create_partial_symtab): Use new.
12180 2020-01-26 Tom Tromey <tom@tromey.com>
12182 * xcoffread.c (xcoff_end_psymtab): Use new.
12183 * psymtab.c (start_psymtab_common): Use new.
12184 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12186 * psympriv.h (struct partial_symtab): Add parameters to
12187 constructor. Don't inline.
12188 (allocate_psymtab): Don't declare.
12189 * mdebugread.c (new_psymtab): Use new.
12190 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12191 * dbxread.c (dbx_end_psymtab): Use new.
12193 2020-01-26 Tom Tromey <tom@tromey.com>
12195 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12196 allocate_psymtab. Update documentation.
12197 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12198 allocate_psymtab. Do not use new.
12199 (allocate_psymtab): Use new. Update.
12201 2020-01-26 Tom Tromey <tom@tromey.com>
12203 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12204 * psymtab.c (psym_print_stats): Update.
12205 * psympriv.h (struct partial_symtab) <readin,
12206 psymtabs_addrmap_supported, anonymous>: Now bool.
12207 * mdebugread.c (psymtab_to_symtab_1): Update.
12208 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12209 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12210 (process_full_comp_unit, process_full_type_unit): Update.
12211 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12212 * ctfread.c (psymtab_to_symtab): Update.
12214 2020-01-26 Tom Tromey <tom@tromey.com>
12216 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12217 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12218 * psymtab.c (psymtab_storage): Delete psymtabs.
12219 (psymtab_storage::allocate_psymtab): Use new.
12220 (psymtab_storage::discard_psymtab): Use delete.
12221 * psympriv.h (struct partial_symtab): Add constructor and
12224 2020-01-26 Tom Tromey <tom@tromey.com>
12226 * machoread.c: Do not include psympriv.h.
12228 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12230 * NEWS: Mention the new option and the set/show commands.
12232 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12234 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12235 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12236 (validate_exec_file): New variables, enums, functions.
12237 (exec_file_locate_attach, print_section_info): Style the filenames.
12238 (_initialize_exec): Install show_exec_file_mismatch_command and
12239 set_exec_file_mismatch_command.
12240 * gdbcore.h (validate_exec_file): Declare.
12241 * infcmd.c (attach_command): Call validate_exec_file.
12242 * remote.c ( remote_target::remote_add_inferior): Likewise.
12244 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12246 * frame.c (find_frame_sal): Move call to get_next_frame into more
12248 * inline-frame.c (inilne_state) <inline_state>: Update argument
12250 (inilne_state) <skipped_symbol>: Rename to...
12251 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12252 (skip_inline_frames): Build vector of skipped symbols and use this
12253 to reate the inline_state.
12254 (inline_skipped_symbol): Add a comment and some assertions, fetch
12255 skipped symbol from the list.
12257 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12259 * buildsym.c (lte_is_less_than): Delete.
12260 (buildsym_compunit::end_symtab_with_blockvector): Create local
12261 lambda function to sort line table entries, and use
12262 std::stable_sort instead of std::sort.
12263 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12264 markers when looking for a previous line.
12266 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12268 * dwarf2read.c (lnp_state_machine::record_line): Include
12269 end_sequence parameter in debug print out. Record the line if we
12270 are at an end_sequence marker even if it's not the start of a
12272 * symmisc.c (maintenance_print_one_line_table): Print end of
12273 sequence markers with 'END' not '0'.
12275 2020-01-24 Pedro Alves <palves@redhat.com>
12278 * thread.c (scoped_restore_current_thread::restore): Use
12279 switch_to_inferior_no_thread.
12280 * exec.c: Include "progspace-and-thread.h".
12281 (add_target_sections, remove_target_sections):
12282 scoped_restore_current_pspace_and_thread instead of
12283 scoped_restore_current_thread.
12284 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12285 and aspace to the inferior before calling clone_program_space.
12286 Remove stale comment.
12288 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12290 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12291 (arm_netbsd_nat_target::fetch_registers): ...this.
12292 (arm_nbsd_nat_target::store_registers): Rename to...
12293 (arm_netbsd_nat_target::store_registers): ...this.
12295 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12297 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12300 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12302 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12304 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12306 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12307 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12308 the correct replacement (iterate_over_regset_sections).
12309 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12312 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12315 * gdb/python/python.c (execute_gdb_command): Call
12316 async_enable_stdin in catch block.
12318 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12320 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12321 SWITCH_THRU_ALL_UIS.
12323 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12326 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12327 comment, add extra parameter, and update to store previous symbol
12329 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12330 add extra parameter.
12331 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12332 remove unneeded parameter, add try/catch around gdb_print_insn,
12333 rewrite to add items to asm_lines vector.
12334 (tui_find_backward_disassembly_start_address): New function.
12335 (tui_find_disassembly_address): Updated throughout.
12336 (tui_disasm_window::set_contents): Update for changes to
12338 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12339 number of lines to scroll.
12341 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12343 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12344 (SECT_OFF_DATA): Likewise.
12345 (SECT_OFF_RODATA): Likewise.
12346 (SECT_OFF_TEXT): Likewise.
12347 (SECT_OFF_BSS): Likewise.
12348 (struct objfile) <text_section_offset, data_section_offset>: New
12350 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12351 objfile::text_section_offset.
12352 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12353 * coffread.c (coff_symtab_read): Likewise.
12354 (enter_linenos): Likewise.
12355 (process_coff_symbol): Likewise.
12356 * ctfread.c (get_objfile_text_range): Likewise.
12357 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12358 Use objfile::data_section_offset.
12359 * dwarf2-frame.c (execute_cfa_program): Use
12360 objfile::text_section_offset.
12361 (dwarf2_frame_find_fde): Likewise.
12362 * dwarf2read.c (create_addrmap_from_index): Likewise.
12363 (create_addrmap_from_aranges): Likewise.
12364 (dw2_find_pc_sect_compunit_symtab): Likewise.
12365 (process_psymtab_comp_unit_reader): Likewise.
12366 (add_partial_symbol): Likewise.
12367 (add_partial_subprogram): Likewise.
12368 (process_full_comp_unit): Likewise.
12369 (read_file_scope): Likewise.
12370 (read_func_scope): Likewise.
12371 (read_lexical_block_scope): Likewise.
12372 (read_call_site_scope): Likewise.
12373 (dwarf2_rnglists_process): Likewise.
12374 (dwarf2_ranges_process): Likewise.
12375 (dwarf2_ranges_read): Likewise.
12376 (dwarf_decode_lines_1): Likewise.
12377 (new_symbol): Likewise.
12378 (dwarf2_fetch_die_loc_sect_off): Likewise.
12379 (dwarf2_per_cu_text_offset): Likewise.
12380 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12381 * hppa-tdep.c (read_unwind_info): Likewise.
12382 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12383 * psympriv.h (struct partial_symtab): Likewise.
12384 * psymtab.c (find_pc_sect_psymtab): Likewise.
12385 * solib-svr4.c (enable_break): Likewise.
12386 * stap-probe.c (relocate_address): Use
12387 objfile::data_section_offset.
12388 * xcoffread.c (enter_line_range): Use
12389 objfile::text_section_offset.
12390 (read_xcoff_symtab): Likewise.
12392 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12394 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12395 declaration to narrower scopes.
12397 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12399 * darwin-nat.h (struct darwin_exception_msg, enum
12400 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12402 (class darwin_nat_target) <wait_1, check_new_threads,
12403 decode_exception_message, decode_message, stop_inferior,
12404 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12405 * darwin-nat.c (darwin_check_new_threads): Rename to...
12406 (darwin_nat_target::check_new_threads): ... this.
12407 (darwin_suspend_inferior_it): Remove.
12408 (darwin_decode_exception_message): Rename to...
12409 (darwin_nat_target::decode_exception_message): ... this.
12410 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12411 (darwin_decode_message): Rename to...
12412 (darwin_nat_target::decode_message): ... this.
12413 (cancel_breakpoint): Rename to...
12414 (darwin_nat_target::cancel_breakpoint): ... this.
12415 (darwin_wait): Rename to...
12416 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12417 instead of iterate_over_inferiors.
12418 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12419 (darwin_stop_inferior): Rename to...
12420 (darwin_nat_target::stop_inferior): ... this.
12421 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12422 (darwin_init_thread_list): Rename to...
12423 (darwin_nat_target::init_thread_list): ... this.
12424 (darwin_ptrace_him): Rename to...
12425 (darwin_nat_target::ptrace_him): ... this.
12426 (darwin_nat_target::create_inferior): Pass lambda function to
12428 (darwin_nat_target::detach): Call stop_inferior instead of
12429 darwin_stop_inferior.
12430 * fork-inferior.h (fork_inferior): Change init_trace_fun
12431 parameter to gdb::function_view.
12432 * fork-inferior.c (fork_inferior): Likewise.
12434 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12436 * i386-cygwin-tdep.c (core_process_module_section): Update.
12437 * windows-nat.c (struct lm_info_windows): Add text_offset.
12438 (windows_xfer_shared_libraries): Update.
12439 * windows-tdep.c (windows_xfer_shared_library):
12440 Add text_offset_cached argument.
12441 * windows-tdep.h (windows_xfer_shared_library): Update.
12443 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12445 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12447 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12449 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12450 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12451 replace with range-based for.
12452 (gdbsim_interrupt_inferior): Remove.
12453 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12454 with a range-based for. Inline code from
12455 gdbsim_interrupt_inferior.
12457 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12459 * infrun.c (proceed): Fix indentation.
12461 2020-01-21 Tom Tromey <tromey@adacore.com>
12463 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12464 * python/python.c (python_extension_ops): Update.
12465 (gdbpy_colorize): New function.
12466 * python/lib/gdb/__init__.py (colorize): New function.
12467 * extension.h (ext_lang_colorize): Declare.
12468 * extension.c (ext_lang_colorize): New function.
12469 * extension-priv.h (struct extension_language_ops) <colorize>: New
12471 * cli/cli-style.c (_initialize_cli_style): Update help text.
12473 2020-01-21 Luis Machado <luis.machado@linaro.org>
12475 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12476 <cond>: Change type to bool.
12477 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12478 (aarch64_displaced_step_cb): Likewise.
12479 (aarch64_displaced_step_tb): Likewise.
12481 2020-01-21 Luis Machado <luis.machado@linaro.org>
12483 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12486 2020-01-21 Luis Machado <luis.machado@linaro.org>
12488 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12489 <pc_adjust>: Adjust the documentation.
12490 (aarch64_displaced_step_fixup): Check if PC really moved before
12493 2020-01-19 Tom Tromey <tom@tromey.com>
12495 * disasm.c (~gdb_disassembler): New destructor.
12496 (gdb_buffered_insn_length): Call disassemble_free_target.
12497 * disasm.h (class gdb_disassembler): Declare destructor. Use
12498 DISABLE_COPY_AND_ASSIGN.
12500 2020-01-19 Tom Tromey <tom@tromey.com>
12502 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12503 (die_reader_func_ftype): Remove.
12504 (cutu_reader): New class.
12505 (dw2_get_file_names_reader): Remove "data" parameter.
12506 (dw2_get_file_names): Use cutu_reader.
12507 (create_debug_type_hash_table): Update.
12508 (read_cutu_die_from_dwo): Update comment.
12509 (lookup_dwo_unit): Add dwo_name parameter.
12510 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12511 die_reader_func_ftype and data parameters.
12512 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12513 Remove die_reader_func_ftype and data parameters.
12514 (~cutu_reader): New; from init_cutu_and_read_dies.
12515 (cutu_reader::cutu_reader): Rename from
12516 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12517 and data parameters.
12518 (init_cutu_and_read_dies_simple): Remove.
12519 (struct process_psymtab_comp_unit_data): Remove.
12520 (process_psymtab_comp_unit_reader): Remove data parameter; add
12521 want_partial_unit and pretend_language parameters.
12522 (process_psymtab_comp_unit): Use cutu_reader.
12523 (build_type_psymtabs_reader): Remove data parameter.
12524 (build_type_psymtabs_1): Use cutu_reader.
12525 (process_skeletonless_type_unit): Likewise.
12526 (load_partial_comp_unit_reader): Remove.
12527 (load_partial_comp_unit): Use cutu_reader.
12528 (load_full_comp_unit_reader): Remove.
12529 (load_full_comp_unit): Use cutu_reader.
12530 (struct create_dwo_cu_data): Remove.
12531 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12532 dwo_unit parameters.
12533 (create_cus_hash_table): Use cutu_reader.
12534 (struct dwarf2_read_addr_index_data): Remove.
12535 (dwarf2_read_addr_index_reader): Remove.
12536 (dwarf2_read_addr_index): Use cutu_reader.
12537 (read_signatured_type_reader): Remove.
12538 (read_signatured_type): Use cutu_reader.
12540 2020-01-19 Tom Tromey <tom@tromey.com>
12542 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12543 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12544 (tui_wrefresh): Declare.
12545 * tui/tui-wingeneral.c (suppress_output): New global.
12546 (tui_suppress_output, ~tui_suppress_output): New constructor and
12548 (tui_wrefresh): New function.
12549 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12550 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12551 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12553 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12555 (tui_data_window::no_refresh): New method.
12556 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12557 (tui_reg_command): Use tui_suppress_output
12558 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12559 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12561 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12563 2020-01-19 Tom Tromey <tom@tromey.com>
12565 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12566 Handle case where symtab is null.
12568 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12570 * linux-fork.c (one_fork_p): Simplify.
12572 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12574 * top.c (struct qt_args): Remove.
12575 (kill_or_detach): Change return type to void, replace `void *`
12576 parameter with a proper one.
12577 (print_inferior_quit_action): Likewise.
12578 (quit_confirm): Use range-based for loop to iterate over inferiors.
12579 (quit_force): Likewise.
12581 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12583 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12584 `void *` parameter with proper parameters.
12585 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12586 (print_one_inferior): Change return type to void, replace `void *`
12587 parameter with proper parameters.
12588 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12590 (get_other_inferior): Remove.
12591 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12594 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12596 * mi/mi-interp.c (report_initial_inferior): Remove.
12597 (mi_interp::init): Use range-based for to iterate over inferiors.
12599 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12601 * python/py-inferior.c (build_inferior_list): Remove.
12602 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12604 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12606 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12607 (btrace_stitch_trace): Likewise.
12608 * charset.c (intermediate_encoding): Likewise (vaild).
12609 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12610 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12611 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12613 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12615 * windows-tdep.c (windows_get_tlb_type):
12616 Add rtl_user_process_parameters type.
12618 2020-01-16 Pedro Alves <palves@redhat.com>
12619 Norbert Lange <nolange79@gmail.com>
12622 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12623 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12624 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12625 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12626 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12627 (ps_plog): Redeclare exported functions with default visibility.
12629 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12631 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12632 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12634 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12636 * infcmd.c (post_create_inferior): Use get_thread_regcache
12637 instead of get_current_regcache.
12639 2020-01-14 Tom Tromey <tom@tromey.com>
12642 * python/python.c (gdbpy_decode_line): Treat empty string the same
12645 2020-01-14 Tom Tromey <tom@tromey.com>
12647 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12649 2020-01-14 Tom Tromey <tom@tromey.com>
12651 * nat/linux-btrace.c: Don't include <config.h>.
12652 * nat/linux-ptrace.c: Don't include <config.h>.
12653 * nat/x86-linux-dregs.c: Don't include <config.h>.
12655 2020-01-14 Tom Tromey <tom@tromey.com>
12657 * configure: Rebuild.
12658 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12660 2020-01-14 Tom Tromey <tom@tromey.com>
12662 * nat/x86-linux-dregs.c: Include configh.h.
12663 * nat/linux-ptrace.c: Include configh.h.
12664 * nat/linux-btrace.c: Include configh.h.
12665 * defs.h: Include config.h, bfd.h.
12666 * configure.ac: Don't source common.host.
12667 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12668 * configure: Rebuild.
12669 * acinclude.m4: Update path.
12670 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12671 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12672 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12673 (CLIBS): Add LIBSUPPORT.
12675 (COMMON_SFILES): Remove gdbsupport files.
12676 (HFILES_NO_SRCDIR): Likewise.
12677 (stamp-version): Update path to create-version.sh.
12678 (ALLDEPFILES): Remove gdbsupport files.
12680 2020-01-14 Tom Tromey <tom@tromey.com>
12682 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12683 USE_WIN32API when needed.
12684 * configure.ac (USE_WIN32API): Don't define.
12685 (WIN32LIBS): Use WIN32APILIBS.
12686 * configure: Rebuild.
12688 2020-01-14 Tom Tromey <tom@tromey.com>
12690 * configure: Rebuild.
12691 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12693 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12695 * skip.c (skip_function_command): Make skip w/o arguments use the
12696 name of the inlined function if pc is inside any inlined function.
12698 2020-01-14 Luis Machado <luis.machado@linaro.org>
12700 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12701 * infrun.c (resume_1): Likewise.
12702 (handle_inferior_event): Remove stale comment.
12703 * linux-nat.c (linux_nat_target::resume): Update comments.
12704 (save_stop_reason): Likewise.
12705 (linux_nat_filter_event): Likewise.
12706 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12708 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12710 * elfread.c (record_minimal_symbol): Set section index to 0 for
12711 non-allocatable sections.
12714 2020-01-13 Ali Tamur <tamur@google.com>
12716 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12717 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12718 to gdb::optional. Update comments.
12719 (dwo_file): Update comments.
12720 (read_attribute): Update API to take an additional out parameter,
12721 need_reprocess. This is used to mark attributes that need other
12722 attributes (e.g. str_offsets_base) for correct computation which may not
12723 have been read yet.
12724 (read_attribute_reprocess): New function declaration.
12725 (read_addr_index): Likewise.
12726 (read_dwo_str_index): Likewise.
12727 (read_stub_str_index): Likewise.
12728 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12729 (lookup_addr_base): New function definition.
12730 (lookup_ranges_base): Likewise.
12731 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12732 lookup_ranges_base.
12733 (init_cutu_and_read_dies): Update comments.
12734 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12735 unit. This is used to inherit parent's str_offsets_base and addr_base.
12737 (init_cutu_and_read_dies_simple): Reflect API changes.
12738 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12739 (create_cus_hash_table): Change API to take parent compile unit.
12740 Reflect API changes.
12741 (open_and_init_dwo_file): Reflect API changes.
12742 (dwarf2_get_pc_bounds): Update comments.
12743 (dwarf2_record_block_ranges): Likewise.
12744 (read_full_die_1): Change implementation to reprocess attributes that
12745 need str_offsets_base and addr_base.
12746 (partial_die_info::read): Likewise.
12747 (read_attribute_reprocess): New function definition.
12748 (read_attribute_value): Change API to take an additional out parameter,
12749 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12750 when a non-dwo compile unit has index based attributes.
12751 (read_attribute): Reflect API changes.
12752 (read_addr_index_1): Reflect API changes. Update comments.
12753 (dwarf2_read_addr_index_data): Reflect API changes.
12754 (dwarf2_read_addr_index): Likewise.
12755 (read_str_index): Change API and implementation. This becomes a helper
12756 to be used by the new string index related methods. Update error
12757 message and comments.
12758 (read_dwo_str_index): New function definition.
12759 (read_stub_str_index): Likewise.
12760 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12761 * symfile.h (dwarf2_debug_sections): Likewise.
12762 * xcoffread.c (dwarf2_debug_sections): Likewise.
12764 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12766 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12767 core_reg_sect type to gdb_byte *.
12768 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12769 * cris-tdep.c (fetch_core_registers): Likewise.
12770 * corelow.c (core_target::get_core_register_section): Change
12771 type of `contents` to gdb::byte_vector.
12773 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12775 * tui/tui-wingeneral.c (box_win): Position the title in the center
12778 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12780 * corelow.c (core_target::get_core_register_section): Use
12781 std::vector instead of alloca.
12783 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12785 * warning.m4: Add -Wmissing-declarations to build_warnings.
12786 * configure: Re-generate.
12788 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12790 * python/python.c (init__gdb_module): Add declaration.
12792 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12794 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12795 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12796 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12797 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12798 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12799 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12800 * ada-exp.y (_initialize_ada_exp): Add declaration.
12801 * ada-lang.c (_initialize_ada_language): Add declaration.
12802 * ada-tasks.c (_initialize_tasks): Add declaration.
12803 * agent.c (_initialize_agent): Add declaration.
12804 * aix-thread.c (_initialize_aix_thread): Add declaration.
12805 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12806 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12807 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12808 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12809 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12810 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12811 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12812 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12813 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12814 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12815 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12816 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12817 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12818 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12819 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12820 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12821 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12822 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12823 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12824 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12825 * annotate.c (_initialize_annotate): Add declaration.
12826 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12827 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12828 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12829 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12830 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12831 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12832 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12833 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12834 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12835 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12836 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12837 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12838 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12839 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12840 * auto-load.c (_initialize_auto_load): Add declaration.
12841 * auxv.c (_initialize_auxv): Add declaration.
12842 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12843 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12844 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12845 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12846 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12847 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12848 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12849 * breakpoint.c (_initialize_breakpoint): Add declaration.
12850 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12851 * btrace.c (_initialize_btrace): Add declaration.
12852 * charset.c (_initialize_charset): Add declaration.
12853 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12854 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12855 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12856 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12857 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12858 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12859 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12860 * coffread.c (_initialize_coffread): Add declaration.
12861 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12862 * compile/compile.c (_initialize_compile): Add declaration.
12863 * complaints.c (_initialize_complaints): Add declaration.
12864 * completer.c (_initialize_completer): Add declaration.
12865 * copying.c (_initialize_copying): Add declaration.
12866 * corefile.c (_initialize_core): Add declaration.
12867 * corelow.c (_initialize_corelow): Add declaration.
12868 * cp-abi.c (_initialize_cp_abi): Add declaration.
12869 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12870 * cp-support.c (_initialize_cp_support): Add declaration.
12871 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12872 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12873 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12874 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12875 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12876 * ctfread.c (_initialize_ctfread): Add declaration.
12877 * d-lang.c (_initialize_d_language): Add declaration.
12878 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12879 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12880 * dbxread.c (_initialize_dbxread): Add declaration.
12881 * dcache.c (_initialize_dcache): Add declaration.
12882 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12883 * disasm.c (_initialize_disasm): Add declaration.
12884 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12885 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12886 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12887 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12888 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12889 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12890 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12891 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12892 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12893 * elfread.c (_initialize_elfread): Add declaration.
12894 * exec.c (_initialize_exec): Add declaration.
12895 * extension.c (_initialize_extension): Add declaration.
12896 * f-lang.c (_initialize_f_language): Add declaration.
12897 * f-valprint.c (_initialize_f_valprint): Add declaration.
12898 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12899 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12900 * filesystem.c (_initialize_filesystem): Add declaration.
12901 * findcmd.c (_initialize_mem_search): Add declaration.
12902 * findvar.c (_initialize_findvar): Add declaration.
12903 * fork-child.c (_initialize_fork_child): Add declaration.
12904 * frame-base.c (_initialize_frame_base): Add declaration.
12905 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12906 * frame.c (_initialize_frame): Add declaration.
12907 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12908 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12909 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12910 * gcore.c (_initialize_gcore): Add declaration.
12911 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12912 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12913 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12914 * gdbarch.c (_initialize_gdbarch): Add declaration.
12915 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12916 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12917 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12918 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12919 * go-lang.c (_initialize_go_language): Add declaration.
12920 * go32-nat.c (_initialize_go32_nat): Add declaration.
12921 * guile/guile.c (_initialize_guile): Add declaration.
12922 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12923 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12924 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12925 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12926 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12927 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12928 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12929 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12930 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12931 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12932 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12933 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12934 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12935 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12936 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12937 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12938 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12939 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12940 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12941 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12942 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12943 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12944 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12945 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12946 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12947 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12948 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12949 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12950 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12951 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12952 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12953 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12954 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12955 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12956 * infcall.c (_initialize_infcall): Add declaration.
12957 * infcmd.c (_initialize_infcmd): Add declaration.
12958 * inflow.c (_initialize_inflow): Add declaration.
12959 * infrun.c (_initialize_infrun): Add declaration.
12960 * interps.c (_initialize_interpreter): Add declaration.
12961 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12962 * jit.c (_initialize_jit): Add declaration.
12963 * language.c (_initialize_language): Add declaration.
12964 * linux-fork.c (_initialize_linux_fork): Add declaration.
12965 * linux-nat.c (_initialize_linux_nat): Add declaration.
12966 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12967 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12968 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12969 * m2-lang.c (_initialize_m2_language): Add declaration.
12970 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12971 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12972 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12973 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12974 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12975 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12976 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12977 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12978 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12979 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12980 * machoread.c (_initialize_machoread): Add declaration.
12981 * macrocmd.c (_initialize_macrocmd): Add declaration.
12982 * macroscope.c (_initialize_macroscope): Add declaration.
12983 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12984 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12985 * maint.c (_initialize_maint_cmds): Add declaration.
12986 * mdebugread.c (_initialize_mdebugread): Add declaration.
12987 * memattr.c (_initialize_mem): Add declaration.
12988 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12989 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12990 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12991 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12992 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12993 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12994 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12995 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12996 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12997 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12998 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12999 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13000 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13001 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13002 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13003 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13004 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13005 * mipsread.c (_initialize_mipsread): Add declaration.
13006 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13007 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13008 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13009 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13010 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13011 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13012 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13013 * nto-procfs.c (_initialize_procfs): Add declaration.
13014 * objc-lang.c (_initialize_objc_language): Add declaration.
13015 * observable.c (_initialize_observer): Add declaration.
13016 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13017 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13018 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13019 * osabi.c (_initialize_gdb_osabi): Add declaration.
13020 * osdata.c (_initialize_osdata): Add declaration.
13021 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13022 * parse.c (_initialize_parse): Add declaration.
13023 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13024 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13025 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13026 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13027 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13028 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13029 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13030 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13031 * printcmd.c (_initialize_printcmd): Add declaration.
13032 * probe.c (_initialize_probe): Add declaration.
13033 * proc-api.c (_initialize_proc_api): Add declaration.
13034 * proc-events.c (_initialize_proc_events): Add declaration.
13035 * proc-service.c (_initialize_proc_service): Add declaration.
13036 * procfs.c (_initialize_procfs): Add declaration.
13037 * producer.c (_initialize_producer): Add declaration.
13038 * psymtab.c (_initialize_psymtab): Add declaration.
13039 * python/python.c (_initialize_python): Add declaration.
13040 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13041 * record-btrace.c (_initialize_record_btrace): Add declaration.
13042 * record-full.c (_initialize_record_full): Add declaration.
13043 * record.c (_initialize_record): Add declaration.
13044 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13045 * regcache.c (_initialize_regcache): Add declaration.
13046 * reggroups.c (_initialize_reggroup): Add declaration.
13047 * remote-notif.c (_initialize_notif): Add declaration.
13048 * remote-sim.c (_initialize_remote_sim): Add declaration.
13049 * remote.c (_initialize_remote): Add declaration.
13050 * reverse.c (_initialize_reverse): Add declaration.
13051 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13052 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13053 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13054 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13055 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13056 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13057 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13058 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13060 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13061 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13062 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13063 * rust-exp.y (_initialize_rust_exp): Add declaration.
13064 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13065 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13066 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13067 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13068 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13069 * score-tdep.c (_initialize_score_tdep): Add declaration.
13070 * ser-go32.c (_initialize_ser_dos): Add declaration.
13071 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13072 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13073 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13074 * ser-uds.c (_initialize_ser_socket): Add declaration.
13075 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13076 * serial.c (_initialize_serial): Add declaration.
13077 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13078 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13079 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13080 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13081 * skip.c (_initialize_step_skip): Add declaration.
13082 * sol-thread.c (_initialize_sol_thread): Add declaration.
13083 * solib-aix.c (_initialize_solib_aix): Add declaration.
13084 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13085 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13086 * solib-frv.c (_initialize_frv_solib): Add declaration.
13087 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13088 * solib-target.c (_initialize_solib_target): Add declaration.
13089 * solib.c (_initialize_solib): Add declaration.
13090 * source-cache.c (_initialize_source_cache): Add declaration.
13091 * source.c (_initialize_source): Add declaration.
13092 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13093 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13094 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13095 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13096 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13097 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13098 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13099 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13100 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13101 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13102 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13103 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13104 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13105 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13106 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13107 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13108 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13109 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13110 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13111 * stabsread.c (_initialize_stabsread): Add declaration.
13112 * stack.c (_initialize_stack): Add declaration.
13113 * stap-probe.c (_initialize_stap_probe): Add declaration.
13114 * std-regs.c (_initialize_frame_reg): Add declaration.
13115 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13116 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13117 * symfile.c (_initialize_symfile): Add declaration.
13118 * symmisc.c (_initialize_symmisc): Add declaration.
13119 * symtab.c (_initialize_symtab): Add declaration.
13120 * target.c (_initialize_target): Add declaration.
13121 * target-connection.c (_initialize_target_connection): Add
13123 * target-dcache.c (_initialize_target_dcache): Add declaration.
13124 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13125 * thread.c (_initialize_thread): Add declaration.
13126 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13127 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13128 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13129 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13130 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13131 * tracectf.c (_initialize_ctf): Add declaration.
13132 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13133 * tracefile.c (_initialize_tracefile): Add declaration.
13134 * tracepoint.c (_initialize_tracepoint): Add declaration.
13135 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13136 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13137 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13138 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13139 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13140 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13141 * tui/tui.c (_initialize_tui): Add declaration.
13142 * typeprint.c (_initialize_typeprint): Add declaration.
13143 * ui-style.c (_initialize_ui_style): Add declaration.
13144 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13145 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13146 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13147 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13148 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13149 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13150 * unittests/filtered_iterator-selftests.c
13151 (_initialize_filtered_iterator_selftests): Add declaration.
13152 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13153 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13154 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13155 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13156 * unittests/main-thread-selftests.c
13157 (_initialize_main_thread_selftests): Add declaration.
13158 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13159 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13160 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13161 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13162 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13163 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13164 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13165 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13166 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13167 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13168 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13169 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13170 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13171 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13172 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13174 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13175 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13176 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13177 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13178 * user-regs.c (_initialize_user_regs): Add declaration.
13179 * utils.c (_initialize_utils): Add declaration.
13180 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13181 * valops.c (_initialize_valops): Add declaration.
13182 * valprint.c (_initialize_valprint): Add declaration.
13183 * value.c (_initialize_values): Add declaration.
13184 * varobj.c (_initialize_varobj): Add declaration.
13185 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13186 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13187 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13188 * windows-nat.c (_initialize_windows_nat): Add declaration.
13189 (_initialize_check_for_gdb_ini): Add declaration.
13190 (_initialize_loadable): Add declaration.
13191 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13192 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13193 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13194 * xcoffread.c (_initialize_xcoffread): Add declaration.
13195 * xml-support.c (_initialize_xml_support): Add declaration.
13196 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13197 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13198 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13199 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13201 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13203 * regformats/regdat.sh: Generate declaration for init function.
13205 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13207 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13209 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13210 close_one_inferior>: New methods.
13211 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13212 pass down target to find_inferior_pid.
13213 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13214 Pass down target to find_inferior_ptid.
13215 (gdbsim_target::create_inferior): Pass down target to
13217 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13218 target down to find_inferior_ptid and switch_to_thread.
13219 (gdbsim_target::close): Update to call close_one_inferior.
13220 (struct resume_data): Remove.
13221 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13222 directly, rather than through a void pointer.
13223 (gdbsim_target::resume): Update to call resume_one_inferior.
13225 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13227 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13229 2020-01-12 Pedro Alves <palves@redhat.com>
13231 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13232 directly for the current inferior instead of
13233 discard_all_inferiors.
13234 (discard_all_inferiors): Delete.
13236 2020-01-11 Tom Tromey <tom@tromey.com>
13238 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13239 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13240 deprecated_safe_get_selected_frame.
13242 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13244 * inferior.c (print_inferior): Switch inferior before printing it.
13246 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13247 Pedro Alves <palves@redhat.com>
13249 * progspace-and-thread.c (switch_to_program_space_and_thread):
13250 Assert there's an inferior for PSPACE. Use
13251 switch_to_inferior_no_thread to switch the inferior too.
13252 * progspace.c (program_space::~program_space): Call
13253 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13254 (program_space::free_all_objfiles): Don't call clear_symtab_users
13256 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13258 2020-01-10 Pedro Alves <palves@redhat.com>
13260 * NEWS: Mention multi-target debugging, "info connections", and
13261 "add-inferior -no-connection".
13263 2020-01-10 Pedro Alves <palves@redhat.com>
13265 * infrun.c: Include "target-connection.h".
13266 (check_multi_target_resumption): New.
13267 (proceed): Call it.
13268 * target-connection.c (make_target_connection_string): Make
13270 * target-connection.h (make_target_connection_string): Declare.
13272 2020-01-10 Pedro Alves <palves@redhat.com>
13274 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13275 * inferior.c (uiout_field_connection): New function.
13276 (print_inferior): Add new "connection-id" column.
13277 (add_inferior_command): Show connection number/string of added
13279 * process-stratum-target.h
13280 (process_stratum_target::connection_string): New virtual method.
13281 (process_stratum_target::connection_number): New field.
13282 * remote.c (remote_target::connection_string): New override.
13283 * target-connection.c: New file.
13284 * target-connection.h: New file.
13285 * target.c (decref_target): Remove process_stratum targets from
13286 the connection list.
13287 (target_stack::push): Add process_stratum targets to the
13290 2020-01-10 Pedro Alves <palves@redhat.com>
13293 2016-04-12 Pedro Alves <palves@redhat.com>
13294 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13295 Remove references to name.
13296 * serial.h (struct serial) <name>: Delete.
13298 2020-01-10 Pedro Alves <palves@redhat.com>
13300 * gdbarch-selftests.c (register_to_value_test): Remove "target
13301 already pushed" check.
13303 2020-01-10 Pedro Alves <palves@redhat.com>
13304 John Baldwin <jhb@FreeBSD.org>
13306 * aarch64-linux-nat.c
13307 (aarch64_linux_nat_target::thread_architecture): Adjust.
13308 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13309 (task_command_1): Likewise.
13310 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13311 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13312 (aix_thread_target::store_registers)
13313 (aix_thread_target::thread_alive): Adjust.
13314 * amd64-fbsd-tdep.c: Include "inferior.h".
13315 (amd64fbsd_get_thread_local_address): Pass down target.
13316 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13317 thread's gdbarch instead of target_gdbarch.
13318 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13319 get_last_target_status.
13320 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13321 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13323 (update_inserted_breakpoint_locations): Skip if inferiors with no
13325 (update_global_location_list): When handling moribund locations,
13326 find representative inferior for location's pspace, and use thread
13327 count of its process_stratum target.
13328 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13329 * bsd-uthread.c (bsd_uthread_target::wait): Use
13330 as_process_stratum_target and adjust thread_change_ptid and
13332 (bsd_uthread_target::update_thread_list): Use
13333 as_process_stratum_target and adjust find_thread_ptid,
13334 thread_change_ptid and add_thread calls.
13335 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13336 find_thread_ptid call.
13337 * corelow.c (add_to_thread_list): Adjust add_thread call.
13338 (core_target_open): Adjust add_thread_silent and thread_count
13340 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13341 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13342 * event-top.c (async_disconnect): Pop targets from all inferiors.
13343 * exec.c (add_target_sections): Push exec target on all inferiors
13344 sharing the program space.
13345 (remove_target_sections): Remove the exec target from all
13346 inferiors sharing the program space.
13347 (exec_on_vfork): New.
13348 * exec.h (exec_on_vfork): Declare.
13349 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13351 (fbsd_nat_target::update_thread_list): Adjust.
13352 (fbsd_nat_target::resume): Adjust.
13353 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13355 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13356 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13357 get_thread_arch_regcache call.
13358 * fork-child.c (gdb_startup_inferior): Pass target down to
13359 startup_inferior and set_executing.
13360 * gdbthread.h (struct process_stratum_target): Forward declare.
13361 (add_thread, add_thread_silent, add_thread_with_info)
13362 (in_thread_list): Add process_stratum_target parameter.
13363 (find_thread_ptid(inferior*, ptid_t)): New overload.
13364 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13366 (all_threads()): Delete overload.
13367 (all_threads, all_non_exited_threads): Add process_stratum_target
13369 (all_threads_safe): Use brace initialization.
13370 (thread_count): Add process_stratum_target parameter.
13371 (set_resumed, set_running, set_stop_requested, set_executing)
13372 (threads_are_executing, finish_thread_state): Add
13373 process_stratum_target parameter.
13374 (switch_to_thread): Use is_current_thread.
13375 * i386-fbsd-tdep.c: Include "inferior.h".
13376 (i386fbsd_get_thread_local_address): Pass down target.
13377 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13378 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13379 have_inferiors check.
13380 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13381 (inf_ptrace_target::attach): Adjust.
13382 * infcall.c (run_inferior_call): Adjust.
13383 * infcmd.c (run_command_1): Pass target to
13384 scoped_finish_thread_state.
13385 (proceed_thread_callback): Skip inferiors with no execution.
13386 (continue_command): Rename 'all_threads' local to avoid hiding
13387 'all_threads' function. Adjust get_last_target_status call.
13388 (prepare_one_step): Adjust set_running call.
13389 (signal_command): Use user_visible_resume_target. Compare thread
13390 pointers instead of inferior_ptid.
13391 (info_program_command): Adjust to pass down target.
13392 (attach_command): Mark target's 'thread_executing' flag.
13393 (stop_current_target_threads_ns): New, factored out from ...
13394 (interrupt_target_1): ... this. Switch inferior before making
13397 (struct all_inferiors_iterator, struct all_inferiors_range)
13398 (struct all_inferiors_safe_range)
13399 (struct all_non_exited_inferiors_range): Filter on
13400 process_stratum_target too. Remove explicit.
13401 * inferior.c (inferior::inferior): Push dummy target on target
13403 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13404 Add process_stratum_target parameter, and pass it down.
13405 (have_live_inferiors): Adjust.
13406 (switch_to_inferior_and_push_target): New.
13407 (add_inferior_command, clone_inferior_command): Handle
13408 "-no-connection" parameter. Use
13409 switch_to_inferior_and_push_target.
13410 (_initialize_inferior): Mention "-no-connection" option in
13411 the help of "add-inferior" and "clone-inferior" commands.
13412 * inferior.h: Include "process-stratum-target.h".
13413 (interrupt_target_1): Use bool.
13414 (struct inferior) <push_target, unpush_target, target_is_pushed,
13415 find_target_beneath, top_target, process_target, target_at,
13417 (discard_all_inferiors): Delete.
13418 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13419 (all_inferiors, all_non_exited_inferiors): Add
13420 process_stratum_target parameter.
13421 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13422 (target_last_proc_target): New global.
13423 (follow_fork_inferior): Push target on new inferior. Pass target
13424 to add_thread_silent. Call exec_on_vfork. Handle target's
13426 (follow_fork): Adjust get_last_target_status call. Also consider
13428 (follow_exec): Push target on new inferior.
13429 (struct execution_control_state) <target>: New field.
13430 (user_visible_resume_target): New.
13431 (do_target_resume): Call target_async.
13432 (resume_1): Set target's threads_executing flag. Consider resume
13434 (commit_resume_all_targets): New.
13435 (proceed): Also consider resume target. Skip threads of inferiors
13436 with no execution. Commit resumtion in all targets.
13437 (start_remote): Pass current inferior to wait_for_inferior.
13438 (infrun_thread_stop_requested): Consider target as well. Pass
13439 thread_info pointer to clear_inline_frame_state instead of ptid.
13440 (infrun_thread_thread_exit): Consider target as well.
13441 (random_pending_event_thread): New inferior parameter. Use it.
13442 (do_target_wait): Rename to ...
13443 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13445 (threads_are_resumed_pending_p, do_target_wait): New.
13446 (prepare_for_detach): Adjust calls.
13447 (wait_for_inferior): New inferior parameter. Handle it. Use
13448 do_target_wait_1 instead of do_target_wait.
13449 (fetch_inferior_event): Adjust. Switch to representative
13450 inferior. Pass target down.
13451 (set_last_target_status): Add process_stratum_target parameter.
13452 Save target in global.
13453 (get_last_target_status): Add process_stratum_target parameter and
13455 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13456 (context_switch): Check inferior_ptid == null_ptid before calling
13458 (get_inferior_stop_soon): Pass down target.
13459 (wait_one): Rename to ...
13460 (poll_one_curr_target): ... this.
13461 (struct wait_one_event): New.
13463 (stop_all_threads): Adjust.
13464 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13466 (switch_back_to_stepped_thread): Also consider target.
13467 (print_stop_event): Update.
13468 (normal_stop): Update. Also consider the resume target.
13469 * infrun.h (wait_for_inferior): Remove declaration.
13470 (user_visible_resume_target): New declaration.
13471 (get_last_target_status, set_last_target_status): New
13472 process_stratum_target parameter.
13473 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13474 process_stratum_target parameter, and use it.
13475 (clear_inline_frame_state (thread_info*)): New.
13476 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13477 process_stratum_target parameter.
13478 (clear_inline_frame_state (thread_info*)): Declare.
13479 * linux-fork.c (delete_checkpoint_command): Pass target down to
13481 (checkpoint_command): Adjust.
13482 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13483 instead of just tweaking inferior_ptid.
13484 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13485 (exit_lwp): Pass target down to find_thread_ptid.
13486 (attach_proc_task_lwp_callback): Pass target down to
13487 add_thread/set_running/set_executing.
13488 (linux_nat_target::attach): Pass target down to
13489 thread_change_ptid.
13490 (get_detach_signal): Pass target down to find_thread_ptid.
13491 Consider last target status's target.
13492 (linux_resume_one_lwp_throw, resume_lwp)
13493 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13494 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13495 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13496 (linux_nat_target::async_wait_fd): New.
13497 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13499 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13500 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13501 * linux-thread-db.c (struct thread_db_info::process_target): New
13503 (add_thread_db_info): Save target.
13504 (get_thread_db_info): New process_stratum_target parameter. Also
13506 (delete_thread_db_info): New process_stratum_target parameter.
13508 (thread_from_lwp): Adjust to pass down target.
13509 (thread_db_notice_clone): Pass down target.
13510 (check_thread_db_callback): Pass down target.
13511 (try_thread_db_load_1): Always push the thread_db target.
13512 (try_thread_db_load, record_thread): Pass target down.
13513 (thread_db_target::detach): Pass target down. Always unpush the
13515 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13516 target down. Always unpush the thread_db target.
13517 (find_new_threads_callback, thread_db_find_new_threads_2)
13518 (thread_db_target::update_thread_list): Pass target down.
13519 (thread_db_target::pid_to_str): Pass current inferior down.
13520 (thread_db_target::get_thread_local_address): Pass target down.
13521 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13523 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13524 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13525 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13526 (procfs_init_inferior): Rename to ...
13527 (procfs_target::procfs_init_inferior): ... this and adjust.
13528 (procfs_target::create_inferior, procfs_notice_thread)
13529 (procfs_do_thread_registers): Adjust.
13530 * ppc-fbsd-tdep.c: Include "inferior.h".
13531 (ppcfbsd_get_thread_local_address): Pass down target.
13532 * proc-service.c (ps_xfer_memory): Switch current inferior and
13533 program space as well.
13534 (get_ps_regcache): Pass target down.
13535 * process-stratum-target.c
13536 (process_stratum_target::thread_address_space)
13537 (process_stratum_target::thread_architecture): Pass target down.
13538 * process-stratum-target.h
13539 (process_stratum_target::threads_executing): New field.
13540 (as_process_stratum_target): New.
13541 * ravenscar-thread.c
13542 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13543 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13545 * record-btrace.c (record_btrace_target::info_record): Adjust.
13546 (record_btrace_target::record_method)
13547 (record_btrace_target::record_is_replaying)
13548 (record_btrace_target::fetch_registers)
13549 (get_thread_current_frame_id, record_btrace_target::resume)
13550 (record_btrace_target::wait, record_btrace_target::stop): Pass
13552 * record-full.c (record_full_wait_1): Switch to event thread.
13554 * regcache.c (regcache::regcache)
13555 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13556 process_stratum_target parameter and handle it.
13557 (current_thread_target): New global.
13558 (get_thread_regcache): Add process_stratum_target parameter and
13559 handle it. Switch inferior before calling target method.
13560 (get_thread_regcache): Pass target down.
13561 (get_thread_regcache_for_ptid): Pass target down.
13562 (registers_changed_ptid): Add process_stratum_target parameter and
13564 (registers_changed_thread, registers_changed): Pass target down.
13565 (test_get_thread_arch_aspace_regcache): New.
13566 (current_regcache_test): Define a couple local test_target_ops
13567 instances and use them for testing.
13568 (readwrite_regcache): Pass process_stratum_target parameter.
13569 (cooked_read_test, cooked_write_test): Pass mock_target down.
13570 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13571 (get_thread_arch_aspace_regcache): Add process_stratum_target
13573 (regcache::target): New method.
13574 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13575 (regcache::registers_changed_ptid): Add process_stratum_target
13577 (regcache::m_target): New field.
13578 (registers_changed_ptid): Add process_stratum_target parameter.
13579 * remote.c (remote_state::supports_vCont_probed): New field.
13580 (remote_target::async_wait_fd): New method.
13581 (remote_unpush_and_throw): Add remote_target parameter.
13582 (get_current_remote_target): Adjust.
13583 (remote_target::remote_add_inferior): Push target.
13584 (remote_target::remote_add_thread)
13585 (remote_target::remote_notice_new_inferior)
13586 (get_remote_thread_info): Pass target down.
13587 (remote_target::update_thread_list): Skip threads of inferiors
13588 bound to other targets. (remote_target::close): Don't discard
13589 inferiors. (remote_target::add_current_inferior_and_thread)
13590 (remote_target::process_initial_stop_replies)
13591 (remote_target::start_remote)
13592 (remote_target::remote_serial_quit_handler): Pass down target.
13593 (remote_target::remote_unpush_target): New remote_target
13594 parameter. Unpush the target from all inferiors.
13595 (remote_target::remote_unpush_and_throw): New remote_target
13596 parameter. Pass it down.
13597 (remote_target::open_1): Check whether the current inferior has
13598 execution instead of checking whether any inferior is live. Pass
13600 (remote_target::remote_detach_1): Pass down target. Use
13601 remote_unpush_target.
13602 (extended_remote_target::attach): Pass down target.
13603 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13604 (remote_target::append_resumption): Pass down target.
13605 (remote_target::append_pending_thread_resumptions)
13606 (remote_target::remote_resume_with_hc, remote_target::resume)
13607 (remote_target::commit_resume): Pass down target.
13608 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13609 (remote_target::interrupt_query)
13610 (remote_target::remove_new_fork_children)
13611 (remote_target::check_pending_events_prevent_wildcard_vcont)
13612 (remote_target::remote_parse_stop_reply)
13613 (remote_target::process_stop_reply): Pass down target.
13614 (first_remote_resumed_thread): New remote_target parameter. Pass
13616 (remote_target::wait_as): Pass down target.
13617 (unpush_and_perror): New remote_target parameter. Pass it down.
13618 (remote_target::readchar, remote_target::remote_serial_write)
13619 (remote_target::getpkt_or_notif_sane_1)
13620 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13622 (remote_target::mourn_inferior): Pass down target. Use
13623 remote_unpush_target.
13624 (remote_target::core_of_thread)
13625 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13626 (remote_target::pid_to_exec_file)
13627 (remote_target::thread_handle_to_thread_info): Pass down target.
13628 (remote_target::async_wait_fd): New.
13629 * riscv-fbsd-tdep.c: Include "inferior.h".
13630 (riscv_fbsd_get_thread_local_address): Pass down target.
13631 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13632 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13633 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13635 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13636 * solib-svr4.c (enable_break): Pass down target.
13637 * spu-multiarch.c (parse_spufs_run): Pass down target.
13638 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13639 * target-delegates.c: Regenerate.
13640 * target.c (g_target_stack): Delete.
13641 (current_top_target): Return the current inferior's top target.
13642 (target_has_execution_1): Refer to the passed-in inferior's top
13644 (target_supports_terminal_ours): Check whether the initial
13645 inferior was already created.
13646 (decref_target): New.
13647 (target_stack::push): Incref/decref the target.
13648 (push_target, push_target, unpush_target): Adjust.
13649 (target_stack::unpush): Defref target.
13650 (target_is_pushed): Return bool. Adjust to refer to the current
13651 inferior's target stack.
13652 (dispose_inferior): Delete, and inline parts ...
13653 (target_preopen): ... here. Only dispose of the current inferior.
13654 (target_detach): Hold strong target reference while detaching.
13656 (target_thread_name): Add assertion.
13657 (target_resume): Pass down target.
13658 (target_ops::beneath, find_target_at): Adjust to refer to the
13659 current inferior's target stack.
13660 (get_dummy_target): New.
13661 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13662 has a thread running.
13663 (initialize_targets): Rename to ...
13664 (_initialize_target): ... this.
13665 * target.h: Include "gdbsupport/refcounted-object.h".
13666 (struct target_ops): Inherit refcounted_object.
13667 (target_ops::shortname, target_ops::longname): Make const.
13668 (target_ops::async_wait_fd): New method.
13669 (decref_target): Declare.
13670 (struct target_ops_ref_policy): New.
13671 (target_ops_ref): New typedef.
13672 (get_dummy_target): Declare function.
13673 (target_is_pushed): Return bool.
13674 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13675 (all_matching_threads_iterator::all_matching_threads_iterator):
13676 Handle filter target.
13677 * thread-iter.h (struct all_matching_threads_iterator, struct
13678 all_matching_threads_range, class all_non_exited_threads_range):
13679 Filter by target too. Remove explicit.
13680 * thread.c (threads_executing): Delete.
13681 (inferior_thread): Pass down current inferior.
13682 (clear_thread_inferior_resources): Pass down thread pointer
13684 (add_thread_silent, add_thread_with_info, add_thread): Add
13685 process_stratum_target parameter. Use it for thread and inferior
13687 (is_current_thread): New.
13688 (thread_info::deletable): Use it.
13689 (find_thread_ptid, thread_count, in_thread_list)
13690 (thread_change_ptid, set_resumed, set_running): New
13691 process_stratum_target parameter. Pass it down.
13692 (set_executing): New process_stratum_target parameter. Pass it
13693 down. Adjust reference to 'threads_executing'.
13694 (threads_are_executing): New process_stratum_target parameter.
13695 Adjust reference to 'threads_executing'.
13696 (set_stop_requested, finish_thread_state): New
13697 process_stratum_target parameter. Pass it down.
13698 (switch_to_thread): Also match inferior.
13699 (switch_to_thread): New process_stratum_target parameter. Pass it
13701 (update_threads_executing): Reimplement.
13702 * top.c (quit_force): Pop targets from all inferior.
13703 (gdb_init): Don't call initialize_targets.
13704 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13706 (windows_add_thread, windows_delete_thread): Adjust.
13707 (get_windows_debug_event): Rename to ...
13708 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13709 * tracefile-tfile.c (tfile_target_open): Pass down target.
13710 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13712 (switch_to_thread): Add process_stratum_target parameter.
13713 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13715 (mi_on_resume): Pass target down.
13716 * nat/fork-inferior.c (startup_inferior): Add
13717 process_stratum_target parameter. Pass it down.
13718 * nat/fork-inferior.h (startup_inferior): Add
13719 process_stratum_target parameter.
13720 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13722 2020-01-10 Pedro Alves <palves@redhat.com>
13724 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13725 directly. Instead find the first thread in the thread list and
13726 use switch_to_thread.
13728 2020-01-10 Pedro Alves <palves@redhat.com>
13730 * remote.c (remote_target::remote_add_inferior): Don't bind a
13731 process to the current inferior if the current inferior is already
13732 bound to a process.
13734 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13735 Pedro Alves <palves@redhat.com>
13737 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13738 If no process is specified, return null_ptid instead of
13740 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13741 TARGET_WAITKIND_SIGNALLED with no pid.
13743 2020-01-10 Pedro Alves <palves@redhat.com>
13745 * remote.c (first_remote_resumed_thread): New.
13746 (remote_target::wait_as): Use it as default event_ptid instead of
13749 2020-01-10 Pedro Alves <palves@redhat.com>
13751 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13753 2020-01-10 Pedro Alves <palves@redhat.com>
13755 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13758 2020-01-10 Pedro Alves <palves@redhat.com>
13760 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13761 ptid to get_last_target_status.
13762 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13763 ptid to get_last_target_status.
13764 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13765 get_last_target_status.
13766 (info_program_command): Don't pass a target_waitstatus to
13767 get_last_target_status.
13768 * infrun.c (init_wait_for_inferior): Use
13769 nullify_last_target_wait_ptid.
13770 (get_last_target_status): Handle nullptr arguments.
13771 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13772 (print_stop_event): Don't pass a ptid to get_last_target_status.
13773 (normal_stop): Don't pass a ptid to get_last_target_status.
13774 * infrun.h (get_last_target_status, set_last_target_status): Move
13775 comments here and update.
13776 (nullify_last_target_wait_ptid): Declare.
13777 * linux-fork.c (fork_load_infrun_state): Remove local extern
13778 declaration of nullify_last_target_wait_ptid.
13779 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13780 to get_last_target_status.
13782 2020-01-10 Pedro Alves <palves@redhat.com>
13784 * gdbthread.h (scoped_restore_current_thread)
13785 <dont_restore, restore, m_dont_restore>: Declare.
13786 * thread.c (thread_alive): Add assertion. Return bool.
13787 (switch_to_thread_if_alive): New.
13788 (prune_threads): Switch inferior/thread.
13789 (print_thread_info_1): Switch thread before calling target methods.
13790 (scoped_restore_current_thread::restore): New, factored out from
13792 (scoped_restore_current_thread::~scoped_restore_current_thread):
13794 (scoped_restore_current_thread::scoped_restore_current_thread):
13796 (thread_apply_all_command, thread_select): Use
13797 switch_to_thread_if_alive.
13798 * infrun.c (proceed, restart_threads, handle_signal_stop)
13799 (switch_back_to_stepped_thread): Switch current thread before
13800 calling target methods.
13802 2020-01-10 Pedro Alves <palves@redhat.com>
13804 * inferior.c (switch_to_inferior_no_thread): New function,
13805 factored out from ...
13806 (inferior_command): ... here.
13807 * inferior.h (switch_to_inferior_no_thread): Declare.
13808 * mi/mi-main.c (run_one_inferior): Use
13809 switch_to_inferior_no_thread.
13811 2020-01-10 Pedro Alves <palves@redhat.com>
13813 * infcmd.c (kill_command): Remove dead code.
13815 2020-01-10 Pedro Alves <palves@redhat.com>
13817 * remote.c (remote_target::mourn_inferior): No longer check
13818 whether the target is running.
13820 2020-01-10 Pedro Alves <palves@redhat.com>
13822 * corelow.c (core_target::has_execution): Change parameter type to
13824 * inferior.c (number_of_live_inferiors): Use
13825 inferior::has_execution instead of target_has_execution_1.
13826 * inferior.h (inferior::has_execution): New.
13827 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13828 inferior::has_execution instead of target_has_execution_1.
13829 * process-stratum-target.c
13830 (process_stratum_target::has_execution): Change parameter type to
13831 inferior pointer. Check the inferior's PID instead of
13833 * process-stratum-target.h
13834 (process_stratum_target::has_execution): Change parameter type to
13836 * record-full.c (record_full_core_target::has_execution): Change
13837 parameter type to inferior pointer.
13838 * target.c (target_has_execution_1): Change parameter type to
13840 (target_has_execution_current): Adjust.
13841 * target.h (target_ops::has_execution): Change parameter type to
13843 (target_has_execution_1): Change parameter type to inferior
13844 pointer. Change return type to bool.
13845 * tracefile.h (tracefile_target::has_execution): Change parameter
13846 type to inferior pointer.
13848 2020-01-10 Pedro Alves <palves@redhat.com>
13850 * exceptions.c (print_flush): Remove current_top_target() check.
13852 2020-01-10 Pedro Alves <palves@redhat.com>
13854 * remote.c (show_remote_exec_file): Show the current inferior's
13855 exec-file instead of the command variable's value.
13857 2020-01-10 Pedro Alves <palves@redhat.com>
13859 * record-full.c (record_full_resume_ptid): New global.
13860 (record_full_target::resume): Set it.
13861 (record_full_wait_1): Use record_full_resume_ptid instead of
13864 2020-01-10 Pedro Alves <palves@redhat.com>
13866 * gdbthread.h (scoped_restore_current_thread)
13867 <dont_restore, restore, m_dont_restore>: Declare.
13868 * thread.c (thread_alive): Add assertion. Return bool.
13869 (switch_to_thread_if_alive): New.
13870 (prune_threads): Switch inferior/thread.
13871 (print_thread_info_1): Switch thread before calling target methods.
13872 (scoped_restore_current_thread::restore): New, factored out from
13874 (scoped_restore_current_thread::~scoped_restore_current_thread):
13876 (scoped_restore_current_thread::scoped_restore_current_thread):
13878 (thread_apply_all_command, thread_select): Use
13879 switch_to_thread_if_alive.
13881 2020-01-10 George Barrett <bob@bob131.so>
13883 * stap-probe.c (stap_modify_semaphore): Don't check for null
13885 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13886 for null semaphores.
13888 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13890 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13891 all source windows, and maintain horizontal scroll status while
13894 2020-01-09 Tom Tromey <tom@tromey.com>
13897 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13898 update_source_window, not print_source_lines.
13900 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13902 * tui/tui.c (tui_enable): Register tui hooks after calling
13905 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13907 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13909 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13911 * thread.c (print_thread_info_1): Fix indentation.
13913 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13915 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13916 unique_xmalloc_ptr outside the if to always free the demangled name.
13918 2020-01-08 Tom Tromey <tromey@adacore.com>
13920 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13921 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13922 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13923 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13925 (section_offsets): New typedef.
13926 * symtab.c (fixup_section, get_msymbol_address): Update.
13927 * symmisc.c (dump_msymbols): Update.
13928 * symfile.h (relative_addr_info_to_section_offsets)
13929 (symfile_map_offsets_to_segments): Update.
13930 * symfile.c (build_section_addr_info_from_objfile)
13931 (init_objfile_sect_indices): Update.
13932 (struct place_section_arg): Change type of "offsets".
13933 (place_section): Update.
13934 (relative_addr_info_to_section_offsets): Change type of
13935 "section_offsets". Remove "num_sections" parameter.
13936 (default_symfile_offsets, syms_from_objfile_1)
13937 (set_objfile_default_section_offset): Update.
13938 (reread_symbols): No need to preserve section offsets by hand.
13939 (symfile_map_offsets_to_segments): Change type of "offsets".
13940 * stap-probe.c (relocate_address): Update.
13941 * stabsread.h (process_one_symbol): Update.
13942 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13943 (solib_target_relocate_section_addresses): Update.
13944 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13946 * solib-frv.c (frv_relocate_main_executable): Update.
13947 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13948 * solib-aix.c (solib_aix_get_section_offsets): Change return
13950 (solib_aix_solib_create_inferior_hook): Update.
13951 * remote.c (remote_target::get_offsets): Update.
13952 * psymtab.c (find_pc_sect_psymtab): Update.
13953 * psympriv.h (struct partial_symbol) <address, text_low,
13954 text_high>: Update.
13955 * objfiles.h (obj_section_offset): Update.
13956 (struct objfile) <section_offsets>: Change type.
13957 <num_sections>: Remove.
13958 (objfile_relocate): Update.
13959 * objfiles.c (entry_point_address_query): Update
13960 (relocate_one_symbol): Change type of "section_offsets".
13961 (objfile_relocate1, objfile_relocate1): Change type of
13963 (objfile_rebase1): Update.
13964 * mipsread.c (mipscoff_symfile_read): Update.
13965 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13967 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13968 (parse_external, psymtab_to_symtab_1): Update.
13969 * machoread.c (macho_symfile_offsets): Update.
13970 * ia64-tdep.c (ia64_find_unwind_table): Update.
13971 * hppa-tdep.c (read_unwind_info): Update.
13972 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13973 * dwarf2read.c (create_addrmap_from_index)
13974 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13975 (process_psymtab_comp_unit_reader, add_partial_symbol)
13976 (add_partial_subprogram, process_full_comp_unit)
13977 (read_file_scope, read_func_scope, read_lexical_block_scope)
13978 (read_call_site_scope, dwarf2_rnglists_process)
13979 (dwarf2_ranges_process, dwarf2_ranges_read)
13980 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13981 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13983 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13985 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13986 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13987 (process_one_symbol): Change type of "section_offsets".
13988 * ctfread.c (get_objfile_text_range): Update.
13989 * coffread.c (coff_symtab_read, enter_linenos)
13990 (process_coff_symbol): Update.
13991 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13992 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13994 2020-01-08 Tom Tromey <tromey@adacore.com>
13996 * dwarf2read.c (parse_macro_definition): Use std::string.
13997 (parse_macro_definition): Likewise.
13999 2020-01-08 Tom Tromey <tromey@adacore.com>
14001 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14002 (ATTR_ALLOC_CHUNK): Remove.
14004 2020-01-08 Tom Tromey <tromey@adacore.com>
14006 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14008 2020-01-08 Tom Tromey <tromey@adacore.com>
14010 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14011 (dwarf2_compute_name, open_dwo_file): Likewise.
14012 (process_enumeration_scope): Use std::vector.
14013 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14014 (partial_die_info::fixup, dwarf2_start_subfile)
14015 (guess_full_die_structure_name, dwarf2_name): Likewise.
14016 (determine_prefix): Update.
14017 (guess_full_die_structure_name): Make return type const.
14018 (partial_die_full_name): Return unique_xmalloc_ptr.
14019 (DW_FIELD_ALLOC_CHUNK): Remove.
14021 2020-01-07 Tom Tromey <tromey@adacore.com>
14024 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14026 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14028 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14030 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14032 * stack.c (print_frame_info): Move disassemble_next_line code
14033 inside source_print block.
14035 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14037 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14038 gdb/signals.h, as we are now using native signal symbols.
14040 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14042 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14043 overflow by an early check of content vs threshold.
14044 * tui/tui-source.c (tui_source_window::line_is_displayed):
14047 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14049 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14051 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14053 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14054 export table if no section contains it's RVA.
14056 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14058 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14060 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14062 * source.c (print_source_lines_base): Set last_line_listed.
14064 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14066 * tui/tui-disasm.c: Remove trailing spaces.
14068 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14069 Pedro Alves <palves@redhat.com>
14071 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14072 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14073 (windows_gdb_signal_to_target): New function, uses the above
14074 enumeration to convert GDB internal signal codes to equivalent
14076 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14077 * windows-nat.c: Include "gdb_wait.h".
14078 (get_windows_debug_event): Extract the fatal exception from the
14079 exit status and convert to the equivalent Posix signal number.
14080 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14081 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14082 * gdbsupport/gdb_wait.c: New file, implements
14083 windows_status_to_termsig.
14084 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14085 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14087 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14089 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14092 2020-01-05 Luis Machado <luis.machado@linaro.org>
14094 * aarch64-linux-nat.c
14095 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14096 and bfd_mach_aarch64.
14098 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14100 * ui-file.c (stdio_file::can_emit_style_escape)
14101 (tee_file::can_emit_style_escape): Ensure style is used also on
14102 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14104 * main.c (set_gdb_data_directory): Use file style to output the
14105 warning that the given pathname is not a directory.
14106 * top.c (show_history_filename, gdb_safe_append_history)
14107 (show_gdb_datadir): Use file style.
14109 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14111 * solib-target.c (struct lm_info_target):
14112 Change offsets to be a unique_xmalloc_ptr.
14113 (solib_target_relocate_section_addresses): Update.
14115 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14117 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14119 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14121 * MAINTAINERS (Write After Approval): Add myself.
14123 2020-01-02 Luis Machado <luis.machado@linaro.org>
14125 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14126 Cell BE architecture.
14127 * target.h (struct target_ops) <thread_architecture>: Likewise.
14129 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14131 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14133 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14135 * MAINTAINERS (Write After Approval): Add myself.
14137 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14139 * gdbarch.sh: Update copyright year range of generated files.
14141 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14143 Update copyright year range in all GDB files.
14145 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14147 * copyright.py: Convert to Python 3.
14149 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14151 * copyright.py: Adapt after move of gnulib directory from gdb
14152 directory to toplevel directory.
14154 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14156 * copyright.py (main): Exit if run from the wrong directory.
14158 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14160 * top.c (print_gdb_version): Change copyright year to 2020.
14162 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14164 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14166 For older changes see ChangeLog-2019.
14172 version-control: never