Change get_objfile_arch to a method on objfile
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-04-18 Tom Tromey <tom@tromey.com>
2
3 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
4 * value.c (value_fn_field): Update.
5 * valops.c (find_function_in_inferior)
6 (value_allocate_space_in_inferior): Update.
7 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8 Update.
9 * tui/tui-source.c (tui_source_window::set_contents): Update.
10 * symtab.c (lookup_global_or_static_symbol)
11 (find_function_start_sal_1, skip_prologue_sal)
12 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
13 * symmisc.c (dump_msymbols, dump_symtab_1)
14 (maintenance_print_one_line_table): Update.
15 * symfile.c (init_entry_point_info, section_is_mapped)
16 (list_overlays_command, simple_read_overlay_table)
17 (simple_overlay_update_1): Update.
18 * stap-probe.c (handle_stap_probe): Update.
19 * stabsread.c (dbx_init_float_type, define_symbol)
20 (read_one_struct_field, read_enum_type, read_range_type): Update.
21 * source.c (info_line_command): Update.
22 * python/python.c (gdbpy_source_objfile_script)
23 (gdbpy_execute_objfile_script): Update.
24 * python/py-type.c (save_objfile_types): Update.
25 * python/py-objfile.c (py_free_objfile): Update.
26 * python/py-inferior.c (python_new_objfile): Update.
27 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
28 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
29 (maintenance_check_psymtabs): Update.
30 * printcmd.c (info_address_command): Update.
31 * objfiles.h (struct objfile) <arch>: New method, from
32 get_objfile_arch.
33 (get_objfile_arch): Don't declare.
34 * objfiles.c (get_objfile_arch): Remove.
35 (filter_overlapping_sections): Update.
36 * minsyms.c (msymbol_is_function): Update.
37 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
38 (output_nondebug_symbol): Update.
39 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
40 (mdebug_expand_psymtab): Update.
41 * machoread.c (macho_add_oso_symfile): Update.
42 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
43 Update.
44 * linux-fork.c (checkpoint_command): Update.
45 * linespec.c (convert_linespec_to_sals): Update.
46 * jit.c (finalize_symtab): Update.
47 * infrun.c (insert_exception_resume_from_probe): Update.
48 * ia64-tdep.c (ia64_find_unwind_table): Update.
49 * hppa-tdep.c (internalize_unwinds): Update.
50 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
51 Update.
52 * gcore.c (call_target_sbrk): Update.
53 * elfread.c (record_minimal_symbol, elf_symtab_read)
54 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
55 (elf_gnu_ifunc_resolve_by_got): Update.
56 * dwarf2/read.c (create_addrmap_from_index)
57 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
58 (read_debug_names_from_section)
59 (process_psymtab_comp_unit_reader, add_partial_symbol)
60 (add_partial_subprogram, process_full_comp_unit)
61 (read_file_scope, read_func_scope, read_lexical_block_scope)
62 (read_call_site_scope, dwarf2_ranges_read)
63 (dwarf2_record_block_ranges, dwarf2_add_field)
64 (mark_common_block_symbol_computed, read_tag_pointer_type)
65 (read_tag_string_type, dwarf2_init_float_type)
66 (dwarf2_init_complex_target_type, read_base_type)
67 (partial_die_info::read, partial_die_info::read)
68 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
69 (dwarf2_fetch_die_loc_sect_off): Update.
70 * dwarf2/loc.c (dwarf2_find_location_expression)
71 (class dwarf_evaluate_loc_desc, rw_pieced_value)
72 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
73 (dwarf2_loc_desc_get_symbol_read_needs)
74 (locexpr_describe_location_piece, locexpr_describe_location_1)
75 (loclist_describe_location): Update.
76 * dwarf2/index-write.c (write_debug_names): Update.
77 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
78 * dtrace-probe.c (dtrace_process_dof): Update.
79 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
80 (process_one_symbol): Update.
81 * ctfread.c (ctf_init_float_type, read_base_type): Update.
82 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
83 (coff_read_enum_type): Update.
84 * cli/cli-cmds.c (edit_command, list_command): Update.
85 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
86 * breakpoint.c (create_overlay_event_breakpoint)
87 (create_longjmp_master_breakpoint)
88 (create_std_terminate_master_breakpoint)
89 (create_exception_master_breakpoint, get_sal_arch): Update.
90 * block.c (block_gdbarch): Update.
91 * annotate.c (annotate_source_line): Update.
92
93 2020-04-17 Tom Tromey <tromey@adacore.com>
94
95 * auto-load.c (show_auto_load_cmd): Remove.
96 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
97 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
98 (maintenance_print_arc_command): Remove.
99 * tui/tui-win.c (tui_command): Remove.
100 (tui_get_cmd_list): Use add_basic_prefix_cmd.
101 * tui/tui-layout.c (tui_layout_command): Remove.
102 (_initialize_tui_layout): Use add_basic_prefix_cmd.
103 * python/python.c (user_set_python, user_show_python): Remove.
104 (_initialize_python): Use add_basic_prefix_cmd,
105 add_show_prefix_cmd.
106 * guile/guile.c (set_guile_command, show_guile_command): Remove.
107 (install_gdb_commands): Use add_basic_prefix_cmd,
108 add_show_prefix_cmd.
109 (info_guile_command): Remove.
110 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
111 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
112 add_show_prefix_cmd.
113 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
114 Remove do_set and do_show parameters.
115 * cli/cli-style.c (set_style, show_style): Remove.
116 (_initialize_cli_style): Use add_basic_prefix_cmd,
117 add_show_prefix_cmd.
118 (cli_style_option::add_setshow_commands): Remove do_set and
119 do_show parameters.
120 (cli_style_option::add_setshow_commands): Use
121 add_basic_prefix_cmd, add_show_prefix_cmd.
122 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
123 (set_style_name): Remove.
124 * cli/cli-dump.c (dump_command, append_command): Remove.
125 (srec_dump_command, ihex_dump_command, verilog_dump_command)
126 (tekhex_dump_command, binary_dump_command)
127 (binary_append_command): Remove.
128 (_initialize_cli_dump): Use add_basic_prefix_cmd.
129 * windows-tdep.c (w32_prefix_command_valid): Remove global.
130 (init_w32_command_list): Remove; move into ...
131 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
132 * valprint.c (set_print, show_print, set_print_raw)
133 (show_print_raw): Remove.
134 (_initialize_valprint): Use add_basic_prefix_cmd,
135 add_show_prefix_cmd.
136 * typeprint.c (set_print_type, show_print_type): Remove.
137 (_initialize_typeprint): Use add_basic_prefix_cmd,
138 add_show_prefix_cmd.
139 * record.c (set_record_command, show_record_command): Remove.
140 (_initialize_record): Use add_basic_prefix_cmd,
141 add_show_prefix_cmd.
142 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
143 add_show_prefix_cmd.
144 (info_command, show_command, set_debug, show_debug): Remove.
145 * top.h (set_history, show_history): Don't declare.
146 * top.c (set_history, show_history): Remove.
147 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
148 (unset_tdesc_cmd): Remove.
149 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
150 add_show_prefix_cmd.
151 * symtab.c (info_module_command): Remove.
152 (_initialize_symtab): Use add_basic_prefix_cmd.
153 * symfile.c (overlay_command): Remove.
154 (_initialize_symfile): Use add_basic_prefix_cmd.
155 * sparc64-tdep.c (info_adi_command): Remove.
156 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
157 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
158 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
159 add_show_prefix_cmd.
160 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
161 (_initialize_serial): Use add_basic_prefix_cmd,
162 add_show_prefix_cmd.
163 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
164 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
165 add_show_prefix_cmd.
166 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
167 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
168 add_show_prefix_cmd.
169 * riscv-tdep.c (show_riscv_command, set_riscv_command)
170 (show_debug_riscv_command, set_debug_riscv_command): Remove.
171 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
172 add_show_prefix_cmd.
173 * remote.c (remote_command, set_remote_cmd): Remove.
174 (_initialize_remote): Use add_basic_prefix_cmd.
175 * record-full.c (set_record_full_command)
176 (show_record_full_command): Remove.
177 (_initialize_record_full): Use add_basic_prefix_cmd,
178 add_show_prefix_cmd.
179 * record-btrace.c (cmd_set_record_btrace)
180 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
181 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
182 (cmd_show_record_btrace_pt): Remove.
183 (_initialize_record_btrace): Use add_basic_prefix_cmd,
184 add_show_prefix_cmd.
185 * ravenscar-thread.c (set_ravenscar_command)
186 (show_ravenscar_command): Remove.
187 (_initialize_ravenscar): Use add_basic_prefix_cmd,
188 add_show_prefix_cmd.
189 * mips-tdep.c (show_mips_command, set_mips_command)
190 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
191 add_show_prefix_cmd.
192 * maint.c (maintenance_command, maintenance_info_command)
193 (maintenance_check_command, maintenance_print_command)
194 (maintenance_set_cmd, maintenance_show_cmd): Remove.
195 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
196 add_show_prefix_cmd.
197 (show_per_command_cmd): Remove.
198 * maint-test-settings.c (maintenance_set_test_settings_cmd):
199 Remove.
200 (maintenance_show_test_settings_cmd): Remove.
201 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
202 add_show_prefix_cmd.
203 * maint-test-options.c (maintenance_test_options_command):
204 Remove.
205 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
206 * macrocmd.c (macro_command): Remove
207 (_initialize_macrocmd): Use add_basic_prefix_cmd.
208 * language.c (set_check, show_check): Remove.
209 (_initialize_language): Use add_basic_prefix_cmd,
210 add_show_prefix_cmd.
211 * infcmd.c (unset_command): Remove.
212 (_initialize_infcmd): Use add_basic_prefix_cmd.
213 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
214 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
215 add_show_prefix_cmd.
216 * go32-nat.c (go32_info_dos_command): Remove.
217 (_initialize_go32_nat): Use add_basic_prefix_cmd.
218 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
219 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
220 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
221 (_initialize_frame): Use add_basic_prefix_cmd,
222 add_show_prefix_cmd.
223 * dcache.c (set_dcache_command, show_dcache_command): Remove.
224 (_initialize_dcache): Use add_basic_prefix_cmd,
225 add_show_prefix_cmd.
226 * cp-support.c (maint_cplus_command): Remove.
227 (_initialize_cp_support): Use add_basic_prefix_cmd.
228 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
229 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
230 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
231 add_basic_prefix_cmd, add_show_prefix_cmd.
232 * breakpoint.c (save_command): Remove.
233 (_initialize_breakpoint): Use add_basic_prefix_cmd.
234 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
235 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
236 add_show_prefix_cmd.
237 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
238 (set_ada_command, show_ada_command): Remove.
239 (_initialize_ada_language): Use add_basic_prefix_cmd,
240 add_show_prefix_cmd.
241 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
242
243 2020-04-16 Kamil Rytarowski <n54@gmx.com>
244
245 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
246 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
247
248 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
249
250 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
251 warning messages.
252
253 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
254
255 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
256 import table is not at beginning of .idata section.
257
258 2020-04-16 Pedro Alves <palves@redhat.com>
259
260 * inferior.c (delete_inferior): Use delete operator directly
261 instead of delete_program_space.
262 * progspace.c (add_program_space): New, factored out from
263 program_space::program_space.
264 (remove_program_space): New, factored out from
265 delete_program_space.
266 (program_space::program_space): Remove intro comment. Rewrite.
267 (program_space::~program_space): Remove intro comment. Call
268 remove_program_space.
269 (delete_program_space): Delete.
270 * progspace.h (program_space::program_space): Make explicit. Move
271 intro comment here, adjusted.
272 (program_space::~program_space): Move intro comment here,
273 adjusted.
274 (delete_program_space): Remove.
275
276 2020-04-16 Tom Tromey <tromey@adacore.com>
277
278 * windows-nat.c (windows_nat::handle_access_violation): New
279 function.
280 * nat/windows-nat.h (handle_access_violation): Declare.
281 * nat/windows-nat.c (handle_exception): Move Cygwin code to
282 windows-nat.c. Call handle_access_violation.
283
284 2020-04-16 Tom de Vries <tdevries@suse.de>
285
286 PR symtab/25791
287 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
288 CUs without psymtab.
289
290 2020-04-16 Kevin Buettner <kevinb@redhat.com>
291
292 * python/python.c (do_start_initialization): Don't call
293 PyEval_InitThreads for Python 3.9 and beyond.
294
295 2020-04-15 Kamil Rytarowski <n54@gmx.com>
296
297 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
298 thread functions.
299 (obsd_nat_target::wait): Likewise.
300
301 2020-04-15 Tom Tromey <tromey@adacore.com>
302
303 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
304 (DEBUG_EXCEPT): Use debug_printf.
305
306 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
307
308 * completer.c (class completion_tracker::completion_hash_entry)
309 <hash_name>: New member function.
310 (completion_tracker::discard_completions): New callback to hash a
311 completion_hash_entry, pass this to htab_create_alloc.
312
313 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
314
315 * windows-nat.c (windows_make_so): Warn rather than stopping with
316 an error if realpath() fails.
317
318 2020-04-14 Kamil Rytarowski <n54@gmx.com>
319
320 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
321 (nbsd_nat_target::info_proc): Add do_status.
322
323 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
324 Tom de Vries <tdevries@suse.de>
325
326 PR symtab/25718
327 * psympriv.h (struct partial_symtab::read_symtab)
328 (struct partial_symtab::expand_psymtab)
329 (struct partial_symtab::read_dependencies): Update comments.
330 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
331 read_symtab for includer.
332 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
333 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
334 (struct dwarf2_include_psymtab::m_readin): Remove.
335 (struct dwarf2_include_psymtab::includer): New member function.
336 (dwarf2_psymtab::expand_psymtab): Assert !readin.
337
338 2020-04-14 Tom de Vries <tdevries@suse.de>
339
340 PR symtab/25720
341 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
342 with NULL symbol_matcher and lookup_name.
343 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
344 and lookup_name.
345 * dwarf2/read.c (dw2_expand_symtabs_matching)
346 (dw2_debug_names_expand_symtabs_matching): Same.
347 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
348 Make lookup_name a pointer. Update comment.
349 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
350 lookup_name being a pointer.
351 * symfile.c (expand_symtabs_matching): Same.
352 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
353 * linespec.c (iterate_over_all_matching_symtabs): Same.
354
355 2020-04-13 Tom Tromey <tom@tromey.com>
356
357 * run-on-main-thread.c: Update include.
358 * unittests/main-thread-selftests.c: Update include.
359 * tui/tui-win.c: Update include.
360 * tui/tui-io.c: Update include.
361 * tui/tui-interp.c: Update include.
362 * tui/tui-hooks.c: Update include.
363 * top.h: Update include.
364 * top.c: Update include.
365 * ser-base.c: Update include.
366 * remote.c: Update include.
367 * remote-notif.c: Update include.
368 * remote-fileio.c: Update include.
369 * record-full.c: Update include.
370 * record-btrace.c: Update include.
371 * python/python.c: Update include.
372 * posix-hdep.c: Update include.
373 * mingw-hdep.c: Update include.
374 * mi/mi-main.c: Update include.
375 * mi/mi-interp.c: Update include.
376 * main.c: Update include.
377 * linux-nat.c: Update include.
378 * interps.c: Update include.
379 * infrun.c: Update include.
380 * inf-loop.c: Update include.
381 * event-top.c: Update include.
382 * event-loop.c: Move to ../gdbsupport/.
383 * event-loop.h: Move to ../gdbsupport/.
384 * async-event.h: Update include.
385 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
386
387 2020-04-13 Tom Tromey <tom@tromey.com>
388
389 * tui/tui-win.c: Include async-event.h.
390 * remote.c: Include async-event.h.
391 * remote-notif.c: Include async-event.h.
392 * record-full.c: Include async-event.h.
393 * record-btrace.c: Include async-event.h.
394 * infrun.c: Include async-event.h.
395 * event-top.c: Include async-event.h.
396 * event-loop.h: Move some declarations to async-event.h.
397 * event-loop.c: Don't include ser-event.h or top.h. Move some
398 code to async-event.c.
399 * async-event.h: New file.
400 * async-event.c: New file.
401 * Makefile.in (COMMON_SFILES): Add async-event.c.
402 (HFILES_NO_SRCDIR): Add async-event.h.
403
404 2020-04-13 Tom Tromey <tom@tromey.com>
405
406 * utils.c (flush_streams): New function.
407 * event-loop.c (gdb_wait_for_event): Call flush_streams.
408
409 2020-04-13 Tom Tromey <tom@tromey.com>
410
411 * event-loop.c (handle_file_event): Use warning, not
412 printf_unfiltered.
413
414 2020-04-13 Tom Tromey <tom@tromey.com>
415
416 * event-loop.c: Include <chrono>.
417
418 2020-04-13 Tom Tromey <tom@tromey.com>
419
420 * gdb_select.h: Move to ../gdbsupport/.
421 * event-loop.c: Update include path.
422 * top.c: Update include path.
423 * ser-base.c: Update include path.
424 * ui-file.c: Update include path.
425 * ser-tcp.c: Update include path.
426 * guile/scm-ports.c: Update include path.
427 * posix-hdep.c: Update include path.
428 * ser-unix.c: Update include path.
429 * gdb_usleep.c: Update include path.
430 * mingw-hdep.c: Update include path.
431 * inflow.c: Update include path.
432 * infrun.c: Update include path.
433 * event-top.c: Update include path.
434
435 2020-04-13 Tom Tromey <tom@tromey.com>
436
437 * configure: Rebuild.
438 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
439
440 2020-04-13 Tom Tromey <tom@tromey.com>
441
442 * event-loop.h (start_event_loop): Don't declare.
443 * event-loop.c (start_event_loop): Move...
444 * main.c (start_event_loop): ...here. Now static.
445
446 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
447
448 * MAINTAINERS: Update my email address.
449
450 2020-04-12 Kamil Rytarowski <n54@gmx.com>
451
452 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
453 IP_ALL.
454
455 2020-04-12 Kamil Rytarowski <n54@gmx.com>
456
457 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
458 (nbsd_nat_target::info_proc): Add do_cmdline.
459
460 2020-04-12 Kamil Rytarowski <n54@gmx.com>
461
462 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
463 (nbsd_nat_target::info_proc): Add do_cwd.
464
465 2020-04-12 Kamil Rytarowski <n54@gmx.com>
466
467 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
468
469 2020-04-11 Kamil Rytarowski <n54@gmx.com>
470
471 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
472 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
473 (nbsd_nat_target::info_proc): New functions.
474 * nbsd-nat.c (kinfo_get_vmmap): New function.
475 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
476 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
477 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
478 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
479 functions.
480 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
481 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
482 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
483 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
484 (KINFO_VME_FLAG_GROWS_DOWN): New.
485
486 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
487
488 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
489 bit shift.
490
491 2020-04-10 Tom Tromey <tromey@adacore.com>
492
493 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
494
495 2020-04-10 Tom Tromey <tromey@adacore.com>
496
497 * symtab.c (get_symbol_address, get_msymbol_address): Skip
498 separate debug files.
499
500 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
501
502 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
503 Move to...
504 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
505 ... here.
506 * windows-nat.c (windows_nat_target::get_windows_debug_event):
507 Check for STATUS_WX86_BREAKPOINT.
508 (windows_nat_target::wait): Same.
509
510 2020-04-10 Tom de Vries <tdevries@suse.de>
511
512 PR cli/25808
513 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
514
515 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
516
517 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
518 (Write After Approval): Remove Tom de Vries.
519
520 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
521
522 revert partially:
523 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
524
525 * buildsym.c (record_line): Fix undefined behavior and preserve
526 lines at eof.
527
528 2020-04-09 Kamil Rytarowski <n54@gmx.com>
529
530 * auxv.h (svr4_auxv_parse): New.
531 * auxv.c (default_auxv_parse): Split into default_auxv_parse
532 and generic_auxv_parse.
533 (svr4_auxv_parse): Add.
534 * obsd-tdep.c: Include "auxv.h".
535 (obsd_auxv_parse): Remove.
536 (obsd_init_abi): Remove comment.
537 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
538 from `obsd_auxv_parse' to `svr4_auxv_parse'.
539 * nbsd-tdep.c: Include "auxv.h".
540 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
541
542 2020-04-08 Tom Tromey <tromey@adacore.com>
543
544 * nat/windows-nat.h (last_wait_event): Don't declare.
545 (wait_for_debug_event): Update comment.
546 * nat/windows-nat.c (last_wait_event): Now static.
547
548 2020-04-08 Tom Tromey <tromey@adacore.com>
549
550 * windows-nat.c (wait_for_debug_event): Move to
551 nat/windows-nat.c.
552 * nat/windows-nat.h (wait_for_debug_event): Declare.
553 * nat/windows-nat.c (wait_for_debug_event): Move from
554 windows-nat.c. No longer static.
555
556 2020-04-08 Tom Tromey <tromey@adacore.com>
557
558 * windows-nat.c (get_windows_debug_event): Use
559 fetch_pending_stop.
560 * nat/windows-nat.h (fetch_pending_stop): Declare.
561 * nat/windows-nat.c (fetch_pending_stop): New function.
562
563 2020-04-08 Tom Tromey <tromey@adacore.com>
564
565 * windows-nat.c (windows_continue): Use matching_pending_stop and
566 continue_last_debug_event.
567 * nat/windows-nat.h (matching_pending_stop)
568 (continue_last_debug_event): Declare.
569 * nat/windows-nat.c (DEBUG_EVENTS): New define.
570 (matching_pending_stop, continue_last_debug_event): New
571 functions.
572
573 2020-04-08 Tom Tromey <tromey@adacore.com>
574
575 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
576 (handle_exception_result): Move to nat/windows-nat.h.
577 (DEBUG_EXCEPTION_SIMPLE): Remove.
578 (windows_nat::handle_ms_vc_exception): New function.
579 (handle_exception): Move to nat/windows-nat.c.
580 (get_windows_debug_event): Update.
581 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
582 nat/windows-nat.c.
583 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
584 (handle_exception_result): Move from windows-nat.c.
585 (handle_exception): Declare.
586 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
587 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
588 windows-nat.c.
589
590 2020-04-08 Tom Tromey <tromey@adacore.com>
591
592 * windows-nat.c (exception_count, event_count): Remove.
593 (handle_exception, get_windows_debug_event)
594 (do_initial_windows_stuff): Update.
595
596 2020-04-08 Tom Tromey <tromey@adacore.com>
597
598 * windows-nat.c (windows_nat::handle_load_dll)
599 (windows_nat::handle_unload_dll): Rename. No longer static.
600 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
601 Declare.
602
603 2020-04-08 Tom Tromey <tromey@adacore.com>
604
605 * complaints.h (stop_whining): Declare at top-level.
606 (complaint): Don't declare stop_whining.
607
608 2020-04-08 Tom Tromey <tromey@adacore.com>
609
610 * windows-nat.c (windows_nat::handle_output_debug_string):
611 Rename. No longer static.
612 * nat/windows-nat.h (handle_output_debug_string): Declare.
613
614 2020-04-08 Tom Tromey <tromey@adacore.com>
615
616 * windows-nat.c (current_process_handle, current_process_id)
617 (main_thread_id, last_sig, current_event, last_wait_event)
618 (current_windows_thread, desired_stop_thread_id, pending_stops)
619 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
620 (display_selectors, fake_create_process)
621 (get_windows_debug_event): Update.
622 * nat/windows-nat.h (current_process_handle, current_process_id)
623 (main_thread_id, last_sig, current_event, last_wait_event)
624 (current_windows_thread, desired_stop_thread_id, pending_stops)
625 (struct pending_stop, siginfo_er): Move from windows-nat.c.
626 * nat/windows-nat.c (current_process_handle, current_process_id)
627 (main_thread_id, last_sig, current_event, last_wait_event)
628 (current_windows_thread, desired_stop_thread_id, pending_stops)
629 (siginfo_er): New globals. Move from windows-nat.c.
630
631 2020-04-08 Tom Tromey <tromey@adacore.com>
632
633 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
634 (handle_load_dll): Update.
635 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
636
637 2020-04-08 Tom Tromey <tromey@adacore.com>
638
639 * windows-nat.c (enum thread_disposition_type): Move to
640 nat/windows-nat.h.
641 (windows_nat::thread_rec): Rename from thread_rec. No longer
642 static.
643 (windows_add_thread, windows_nat_target::fetch_registers)
644 (windows_nat_target::store_registers, handle_exception)
645 (windows_nat_target::resume, get_windows_debug_event)
646 (windows_nat_target::get_tib_address)
647 (windows_nat_target::thread_name)
648 (windows_nat_target::thread_alive): Update.
649 * nat/windows-nat.h (enum thread_disposition_type): Move from
650 windows-nat.c.
651 (thread_rec): Declare.
652
653 2020-04-08 Tom Tromey <tromey@adacore.com>
654
655 * windows-nat.c: Add "using namespace".
656 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
657 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
658
659 2020-04-08 Tom Tromey <tromey@adacore.com>
660
661 * nat/windows-nat.h (struct windows_thread_info): Declare
662 destructor.
663 * nat/windows-nat.c (~windows_thread_info): New.
664
665 2020-04-08 Tom Tromey <tromey@adacore.com>
666
667 PR gdb/22992
668 * windows-nat.c (current_event): Update comment.
669 (last_wait_event, desired_stop_thread_id): New globals.
670 (struct pending_stop): New.
671 (pending_stops): New global.
672 (windows_nat_target) <stopped_by_sw_breakpoint>
673 <supports_stopped_by_sw_breakpoint>: New methods.
674 (windows_fetch_one_register): Add assertions. Adjust PC.
675 (windows_continue): Handle pending stops. Suspend other threads
676 when stepping. Use last_wait_event
677 (wait_for_debug_event): New function.
678 (get_windows_debug_event): Use wait_for_debug_event. Handle
679 pending stops. Queue spurious stops.
680 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
681 (windows_nat_target::kill): Use wait_for_debug_event.
682 * nat/windows-nat.h (struct windows_thread_info)
683 <stopped_at_software_breakpoint>: New field.
684 * nat/windows-nat.c (windows_thread_info::resume): Clear
685 stopped_at_software_breakpoint.
686
687 2020-04-08 Tom Tromey <tromey@adacore.com>
688
689 * windows-nat.c (enum thread_disposition_type): New.
690 (thread_rec): Replace "get_context" parameter with "disposition";
691 change type.
692 (windows_add_thread, windows_nat_target::fetch_registers)
693 (windows_nat_target::store_registers, handle_exception)
694 (windows_nat_target::resume, get_windows_debug_event)
695 (windows_nat_target::get_tib_address)
696 (windows_nat_target::thread_name)
697 (windows_nat_target::thread_alive): Update.
698
699 2020-04-08 Tom Tromey <tromey@adacore.com>
700
701 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
702 (windows_continue): Use windows_continue::resume.
703 * nat/windows-nat.h (struct windows_thread_info) <suspend,
704 resume>: Declare new methods.
705 * nat/windows-nat.c: New file.
706 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
707
708 2020-04-08 Tom Tromey <tromey@adacore.com>
709
710 * windows-nat.c (windows_add_thread, windows_delete_thread)
711 (windows_nat_target::fetch_registers)
712 (windows_nat_target::store_registers, fake_create_process)
713 (windows_nat_target::resume, windows_nat_target::resume)
714 (get_windows_debug_event, windows_nat_target::wait)
715 (windows_nat_target::pid_to_str)
716 (windows_nat_target::get_tib_address)
717 (windows_nat_target::get_ada_task_ptid)
718 (windows_nat_target::thread_name)
719 (windows_nat_target::thread_alive): Use lwp, not tid.
720
721 2020-04-08 Tom Tromey <tromey@adacore.com>
722
723 * windows-nat.c (handle_exception)
724 (windows_nat_target::thread_name): Update.
725 * nat/windows-nat.h (windows_thread_info): Remove destructor.
726 <name>: Now unique_xmalloc_ptr.
727
728 2020-04-08 Tom Tromey <tromey@adacore.com>
729
730 * windows-nat.c (thread_rec)
731 (windows_nat_target::fetch_registers): Update.
732 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
733 Update comment.
734 <debug_registers_changed, reload_context>: Now bool.
735
736 2020-04-08 Tom Tromey <tromey@adacore.com>
737
738 * windows-nat.c (windows_add_thread): Use new.
739 (windows_init_thread_list, windows_delete_thread): Use delete.
740 (get_windows_debug_event): Update.
741 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
742 destructor, and initializers.
743
744 2020-04-08 Tom Tromey <tromey@adacore.com>
745
746 * windows-nat.c (struct windows_thread_info): Remove.
747 * nat/windows-nat.h: New file.
748
749 2020-04-08 Tom Tromey <tromey@adacore.com>
750
751 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
752 (thread_rec, windows_add_thread, windows_delete_thread)
753 (windows_continue): Update.
754
755 2020-04-08 Tom Tromey <tromey@adacore.com>
756
757 * windows-nat.c (struct windows_thread_info): Remove typedef.
758 (thread_head): Remove.
759 (thread_list): New global.
760 (thread_rec, windows_add_thread, windows_init_thread_list)
761 (windows_delete_thread, windows_continue): Update.
762
763 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
764
765 * windows-tdep.h (windows_init_abi): Add comment.
766 (cygwin_init_abi): New declaration.
767 * windows-tdep.c: Split signal enumeration in two, one for
768 Windows and one for Cygwin.
769 (windows_gdb_signal_to_target): Only deal with signal of the
770 Windows OS ABI.
771 (cygwin_gdb_signal_to_target): New function.
772 (windows_init_abi): Rename to windows_init_abi_common, don't set
773 gdb_signal_to_target gdbarch method. Add new new function with
774 this name.
775 (cygwin_init_abi): New function.
776 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
777 comment. Don't call windows_init_abi.
778 (amd64_windows_init_abi): Add comment, call windows_init_abi.
779 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
780 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
781 i386_windows_init_abi_common, don't call windows_init_abi. Add
782 a new function of this name.
783 (i386_cygwin_init_abi): New function.
784 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
785 OS ABI Cygwin.
786
787 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
788
789 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
790 parameter.c.
791 (dwarf2_read_gdb_index): Update.
792
793 2020-04-07 Kamil Rytarowski <n54@gmx.com>
794
795 * nbsd-tdep.c: Include "objfiles.h".
796 (nbsd_skip_solib_resolver): New.
797 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
798
799 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
800
801 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
802 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
803 with DW_LLE_base_addressx are being emitted in DWARFv5.
804 Add the newly added kind DW_LOC_OFFSET_PAIR also.
805 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
806 unsigned integer.
807
808 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
809
810 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
811 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
812 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
813 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
814 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
815 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
816 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
817
818
819 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
820
821 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
822 (read_loclist_index): New function definition.
823 (lookup_loclist_base): New function definition.
824 (read_loclist_header): New function definition.
825 (dwarf2_cu): Add loclist_base and loclist_header field.
826 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
827 (read_full_die_1): Read the value of DW_AT_loclists_base.
828 (read_attribute_reprocess): Handle DW_FORM_loclistx.
829 (read_attribute_value): Handle DW_FORM_loclistx.
830 (skip_one_die): Handle DW_FORM_loclistx.
831 (loclist_header): New structure declaration.
832 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
833
834 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
835
836 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
837 constructor. Remove `addr` parameter from other constructor and
838 add `per_cu` parameter.
839 * dwarf2/read.c (create_partial_symtab): Update.
840
841 2020-04-07 Tom de Vries <tdevries@suse.de>
842
843 PR symtab/25796
844 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
845 (partial_die_info::fixup): Inherit has_const_value.
846
847 2020-04-07 Tom de Vries <tdevries@suse.de>
848
849 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
850 symbols without address.
851
852 2020-04-06 Kamil Rytarowski <n54@gmx.com>
853
854 * nbsd-nat.h (struct thread_info): Add forward declaration.
855 (nbsd_nat_target::thread_alive): Add.
856 (nbsd_nat_target::thread_name): Likewise.
857 (nbsd_nat_target::update_thread_list): Likewise.
858 (update_thread_list::post_attach): Likewise.
859 (post_attach::pid_to_str): Likewise.
860 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
861 (nbsd_thread_lister): Add.
862 (nbsd_nat_target::thread_alive): Likewise.
863 (nbsd_nat_target::thread_name): Likewise.
864 (nbsd_add_threads): Likewise.
865 (update_thread_list::post_attach): Likewise.
866 (nbsd_nat_target::update_thread_list): Likewise.
867 (post_attach::pid_to_str): Likewise.
868
869 2020-04-06 Tom Tromey <tromey@adacore.com>
870
871 * ada-valprint.c (print_variant_part): Extract the variant field.
872 (print_field_values): Use the field as the outer value when
873 recursing.
874
875 2020-04-06 Tom Tromey <tromey@adacore.com>
876
877 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
878 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
879 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
880 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
881 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
882
883 2020-04-06 Tom Tromey <tromey@adacore.com>
884
885 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
886 TYPE_CODE_ERROR.
887
888 2020-04-06 Kamil Rytarowski <n54@gmx.com>
889
890 * nbsd-tdep.c: Include "gdbarch.h".
891 Define enum with NetBSD signal numbers.
892 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
893 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
894 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
895 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
896 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
897 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
898 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
899 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
900 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
901 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
902 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
903 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
904
905 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
906
907 PR gdb/25325
908 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
909
910 2020-04-03 Tom Tromey <tromey@adacore.com>
911
912 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
913 Read constant block.
914
915 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
916
917 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
918 (gdb_bfd_get_full_section_contents): New declaration.
919 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
920 * windows-tdep.c (is_linked_with_cygwin_dll): Use
921 gdb_bfd_get_full_section_contents.
922
923 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
924
925 * exec.c (build_section_table): Replace internal_error with
926 gdb_assert.
927 (section_table_xfer_memory_partial): Likewise.
928 * mdebugread.c (parse_partial_symbols): Likewise.
929 * psymtab.c (lookup_partial_symbol): Likewise.
930 * utils.c (wrap_here): Likewise.
931
932 2020-04-02 Tom Tromey <tromey@adacore.com>
933
934 * f-lang.c (build_fortran_types): Use arch_type to initialize
935 builtin_complex_s32 in the TYPE_CODE_ERROR case.
936
937 2020-04-02 Tom Tromey <tromey@adacore.com>
938
939 * dwarf2/read.c (partial_die_info::read): Do not create a vector
940 of attributes.
941
942 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
943 Bernd Edlinger <bernd.edlinger@hotmail.de>
944 Tom Tromey <tromey@adacore.com>
945
946 * buildsym.c (buildsym_compunit::record_line): Remove
947 deduplication code.
948
949 2020-04-02 Tom de Vries <tdevries@suse.de>
950
951 PR ada/24671
952 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
953
954 2020-04-02 Tom de Vries <tdevries@suse.de>
955
956 * dwarf2/read.c (dwarf2_gdb_index_functions,
957 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
958 NULL.
959 * psymtab.c (psym_lookup_global_symbol_language): New function.
960 (psym_functions): Init psym_lookup_global_symbol_language with
961 psym_lookup_global_symbol_language.
962 * symfile-debug.c (debug_sym_quick_functions): Init
963 lookup_global_symbol_language with NULL.
964 * symfile.c (set_initial_language): Remove fixme comment.
965 * symfile.h (struct quick_symbol_functions): Add
966 lookup_global_symbol_language.
967 * symtab.c (find_quick_global_symbol_language): New function.
968 (find_main_name): Use find_quick_global_symbol_language.
969
970 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
971
972 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
973
974 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
975
976 * buildsym.c (record_line): Fix undefined behavior and preserve
977 lines at eof.
978
979 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
980
981 * buildsym.c (record_line): Fix the resizing condition.
982
983 2020-04-01 Tom Tromey <tom@tromey.com>
984
985 * value.h (value_literal_complex): Add comment.
986 * valops.c (value_literal_complex): Refer to value.h.
987
988 2020-04-01 Tom Tromey <tom@tromey.com>
989
990 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
991 (scalar_type): New rule, from typebase.
992 (typebase): Use scalar_type. Recognize complex types.
993 (field_name): Handle FLOAT_KEYWORD.
994 (ident_tokens): Add _Complex and __complex__.
995
996 2020-04-01 Tom Tromey <tom@tromey.com>
997
998 PR exp/25299:
999 * valarith.c (promotion_type, complex_binop): New functions.
1000 (scalar_binop): Handle complex numbers. Use promotion_type.
1001 (value_pos, value_neg, value_complement): Handle complex numbers.
1002
1003 2020-04-01 Tom Tromey <tom@tromey.com>
1004
1005 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
1006 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
1007 (parse_number): Handle complex numbers.
1008
1009 2020-04-01 Tom Tromey <tom@tromey.com>
1010
1011 * c-valprint.c (c_decorations): Change complex suffix to "i".
1012
1013 2020-04-01 Tom Tromey <tom@tromey.com>
1014
1015 * valprint.c (generic_value_print_complex): Use accessors.
1016 * value.h (value_real_part, value_imaginary_part): Declare.
1017 * valops.c (value_real_part, value_imaginary_part): New
1018 functions.
1019 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
1020
1021 2020-04-01 Tom Tromey <tom@tromey.com>
1022
1023 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
1024 (read_range_type): Update.
1025 * mdebugread.c (basic_type): Update.
1026 * go-lang.c (build_go_types): Use init_complex_type.
1027 * gdbtypes.h (struct main_type) <complex_type>: New member.
1028 (init_complex_type): Update.
1029 (arch_complex_type): Don't declare.
1030 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
1031 Make name if none given. Use alloc_type_copy. Look for cached
1032 complex type.
1033 (arch_complex_type): Remove.
1034 (gdbtypes_post_init): Use init_complex_type.
1035 * f-lang.c (build_fortran_types): Use init_complex_type.
1036 * dwarf2/read.c (read_base_type): Update.
1037 * d-lang.c (build_d_types): Use init_complex_type.
1038 * ctfread.c (read_base_type): Update.
1039
1040 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1041
1042 * infrun.c (stop_all_threads): Update assertion, plus when
1043 stopping threads, take into account that we might be trying
1044 to stop an all-stop target.
1045 (stop_waiting): Call 'stop_all_threads' if there exists a
1046 non-stop target.
1047
1048 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1049
1050 * target.h (exists_non_stop_target): New function declaration.
1051 * target.c (exists_non_stop_target): New function.
1052
1053 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
1054
1055 PR gdb/24789
1056 * eval.c (is_integral_or_integral_reference): New function.
1057 (evaluate_subexp_standard): Allow integer references in
1058 pointer arithmetic.
1059
1060 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1061
1062 * remote.c (remote_target::remote_parse_stop_reply): Remove the
1063 check for no ptid in the stop reply when the target is non-stop.
1064
1065 2020-04-01 Tom Tromey <tromey@adacore.com>
1066
1067 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
1068 "name" parameter to rvalue reference. Initialize m_name_holder.
1069 <lookup_name_info>: New overloads.
1070 <name>: Return gdb::string_view.
1071 <c_str>: New method.
1072 <make_ignore_params>: Update.
1073 <search_name_hash>: Update.
1074 <language_lookup_name>: Return const char *.
1075 <m_name>: Change type.
1076 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
1077 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
1078 (lookup_name_info::match_any): Update.
1079 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
1080 Update.
1081 * minsyms.c (linkage_name_str): Update.
1082 * language.c (default_symbol_name_matcher): Update.
1083 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
1084 Update.
1085 * ada-lang.c (ada_fold_name): Change parameter to string_view.
1086 (ada_lookup_name_info::ada_lookup_name_info): Update.
1087 (literal_symbol_name_matcher): Update.
1088
1089 2020-04-01 Tom Tromey <tromey@adacore.com>
1090
1091 * psymtab.c (psymtab_search_name): Remove function.
1092 (psym_lookup_symbol): Create search name and lookup name here.
1093 (lookup_partial_symbol): Remove "name" parameter; add
1094 lookup_name.
1095 (psym_expand_symtabs_for_function): Update.
1096
1097 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
1098
1099 PR tui/25597:
1100 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
1101
1102 2020-03-31 Tom Tromey <tromey@adacore.com>
1103
1104 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
1105 memcpy.
1106
1107 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
1108
1109 * features/riscv/32bit-csr.xml: Regenerated.
1110 * features/riscv/64bit-csr.xml: Regenerated.
1111
1112 2020-03-30 Tom Tromey <tromey@adacore.com>
1113
1114 * ada-valprint.c (print_variant_part): Update.
1115 * ada-lang.h (ada_which_variant_applies): Update.
1116 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
1117 outer_valaddr parameters; replace with "outer" value parameter.
1118 (to_fixed_variant_branch_type): Update.
1119
1120 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1121
1122 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
1123 <list>. Remove inclusion of observable.h.
1124 (PPC_DEBUG_CURRENT_VERSION): Move up define.
1125 (struct arch_lwp_info): New struct.
1126 (class ppc_linux_dreg_interface): New class.
1127 (struct ppc_linux_process_info): New struct.
1128 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
1129 <low_new_clone, low_forget_process, low_prepare_to_resume>
1130 <copy_thread_dreg_state, mark_thread_stale>
1131 <mark_debug_registers_changed, register_hw_breakpoint>
1132 <clear_hw_breakpoint, register_wp, clear_wp>
1133 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
1134 <num_memory_accesses, get_trigger_type>
1135 <create_watchpoint_request, hwdebug_point_cmp>
1136 <init_arch_lwp_info, get_arch_lwp_info>
1137 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
1138 methods.
1139 <struct ptid_hash>: New inner struct.
1140 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
1141 members.
1142 (saved_dabr_value, hwdebug_info, max_slots_number)
1143 (struct hw_break_tuple, struct thread_points, ppc_threads)
1144 (have_ptrace_hwdebug_interface)
1145 (hwdebug_find_thread_points_by_tid)
1146 (hwdebug_insert_point, hwdebug_remove_point): Remove.
1147 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
1148 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
1149 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
1150 use m_dreg_interface.
1151 (hwdebug_point_cmp): Change to...
1152 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
1153 reference arguments instead of pointers.
1154 (ppc_linux_nat_target::ranged_break_num_registers): Use
1155 m_dreg_interface.
1156 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
1157 m_dreg_interface. Call register_hw_breakpoint.
1158 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
1159 m_dreg_interface. Call clear_hw_breakpoint.
1160 (get_trigger_type): Change to...
1161 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
1162 comment.
1163 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
1164 use m_dreg_interface. Call register_hw_breakpoint.
1165 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
1166 use m_dreg_interface. Call clear_hw_breakpoint.
1167 (can_use_watchpoint_cond_accel): Change to...
1168 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
1169 method. Update comment, use m_dreg_interface and
1170 m_process_info.
1171 (calculate_dvc): Change to...
1172 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
1173 m_dreg_interface.
1174 (num_memory_accesses): Change to...
1175 (ppc_linux_nat_target::num_memory_accesses): ...this method.
1176 (check_condition): Change to...
1177 (ppc_linux_nat_target::check_condition): ...this method.
1178 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
1179 comment, use m_dreg_interface.
1180 (create_watchpoint_request): Change to...
1181 (ppc_linux_nat_target::create_watchpoint_request): ...this
1182 method. Use m_dreg_interface.
1183 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
1184 m_dreg_interface. Call register_hw_breakpoint or register_wp.
1185 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
1186 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
1187 (ppc_linux_nat_target::low_forget_process)
1188 (ppc_linux_nat_target::low_new_fork)
1189 (ppc_linux_nat_target::low_new_clone)
1190 (ppc_linux_nat_target::low_delete_thread)
1191 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
1192 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
1193 only call mark_thread_stale.
1194 (ppc_linux_thread_exit): Remove.
1195 (ppc_linux_nat_target::stopped_data_address): Change to...
1196 (ppc_linux_nat_target::low_stopped_data_address): This. Add
1197 comment, use m_dreg_interface and m_thread_hw_breakpoints.
1198 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
1199 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
1200 comment. Call low_stopped_data_address.
1201 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
1202 m_dreg_interface.
1203 (ppc_linux_nat_target::masked_watch_num_registers): Use
1204 m_dreg_interface.
1205 (ppc_linux_nat_target::copy_thread_dreg_state)
1206 (ppc_linux_nat_target::mark_thread_stale)
1207 (ppc_linux_nat_target::mark_debug_registers_changed)
1208 (ppc_linux_nat_target::register_hw_breakpoint)
1209 (ppc_linux_nat_target::clear_hw_breakpoint)
1210 (ppc_linux_nat_target::register_wp)
1211 (ppc_linux_nat_target::clear_wp)
1212 (ppc_linux_nat_target::init_arch_lwp_info)
1213 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
1214 (_initialize_ppc_linux_nat): Remove observer callback.
1215
1216 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1217
1218 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
1219 (ppc_linux_nat_target::auxv_parse)
1220 (ppc_linux_nat_target::read_description)
1221 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1222 Move up.
1223
1224 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1225
1226 * linux-nat.h (low_new_clone): New method.
1227 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
1228
1229 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1230
1231 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
1232 (dbx_expand_psymtab): ... this.
1233 (start_psymtab): Update.
1234 * mdebugread.c (psymtab_to_symtab_1): Rename to...
1235 (mdebug_expand_psymtab): ... this.
1236 (parse_partial_symbols): Update.
1237 (new_psymtab): Update.
1238 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
1239 (xcoff_expand_psymtab): ... this.
1240 (xcoff_start_psymtab): Update.
1241
1242 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1243
1244 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
1245 <expand_dependencies>: ... this.
1246 * psymtab.c (partial_symtab::read_dependencies): Rename to...
1247 (partial_symtab::expand_dependencies): ... this.
1248 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
1249 Update.
1250 (dwarf2_psymtab::expand_psymtab): Update.
1251 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
1252 * mdebugread.c (psymtab_to_symtab_1): Update.
1253 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1254
1255 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1256
1257 * psympriv.h (discard_psymtab): Remove.
1258 * dbxread.c (dbx_end_psymtab): Update.
1259 * xcoffread.c (xcoff_end_psymtab): Update.
1260
1261 2020-03-28 Tom Tromey <tom@tromey.com>
1262
1263 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
1264 comment.
1265
1266 2020-03-28 Tom Tromey <tom@tromey.com>
1267
1268 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
1269
1270 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
1271
1272 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
1273
1274 2020-03-26 John Baldwin <jhb@FreeBSD.org>
1275
1276 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
1277
1278 2020-03-26 Tom Tromey <tom@tromey.com>
1279
1280 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
1281 (mark_common_block_symbol_computed, read_tag_string_type)
1282 (attr_to_dynamic_prop, read_subrange_type): Update.
1283 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
1284 to be methods on struct attribute.
1285 (skip_one_die, process_imported_unit_die, read_namespace_alias)
1286 (read_call_site_scope, partial_die_info::read)
1287 (partial_die_info::read, lookup_die_type, follow_die_ref):
1288 Update.
1289 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
1290 from dwarf2_get_ref_die_offset.
1291 (attribute::constant_value): New method, from
1292 dwarf2_get_attr_constant_value.
1293 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
1294 Declare method.
1295 <constant_value>: New method.
1296
1297 2020-03-26 Tom Tromey <tom@tromey.com>
1298
1299 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
1300 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
1301 (dwarf_type_encoding_name): Move to stringify.c.
1302 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
1303 * dwarf2/stringify.c: New file.
1304 * dwarf2/stringify.h: New file.
1305
1306 2020-03-26 Tom Tromey <tom@tromey.com>
1307
1308 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
1309 Rewrite.
1310
1311 2020-03-26 Tom Tromey <tom@tromey.com>
1312
1313 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
1314 methods.
1315 * dwarf2/read.c (lookup_addr_base): Move to die.h.
1316 (lookup_ranges_base): Likewise.
1317 (read_cutu_die_from_dwo, read_full_die_1): Update.
1318
1319 2020-03-26 Tom Tromey <tom@tromey.com>
1320
1321 * dwarf2/read.c (read_import_statement, read_file_scope)
1322 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
1323 (read_lexical_block_scope, read_call_site_scope)
1324 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
1325 (handle_struct_member_die, process_structure_scope)
1326 (update_enumeration_type_from_children)
1327 (process_enumeration_scope, read_array_type, read_common_block)
1328 (read_namespace, read_module, read_subroutine_type): Update.
1329 (sibling_die): Remove.
1330
1331 2020-03-26 Tom Tromey <tom@tromey.com>
1332
1333 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
1334 (build_type_psymtabs_reader, read_structure_type)
1335 (read_enumeration_type, read_full_die_1): Update.
1336 (dwarf2_attr_no_follow): Move to die.h.
1337 * dwarf2/die.h (struct die_info) <attr>: New method.
1338
1339 2020-03-26 Tom Tromey <tom@tromey.com>
1340
1341 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
1342 <base_address>: Now an optional.
1343 (dwarf2_find_base_address, dwarf2_rnglists_process)
1344 (dwarf2_ranges_process, fill_in_loclist_baton)
1345 (dwarf2_symbol_mark_computed): Update.
1346
1347 2020-03-26 Tom Tromey <tom@tromey.com>
1348
1349 * dwarf2/read.c (struct die_info): Move to die.h.
1350 * dwarf2/die.h: New file.
1351
1352 2020-03-26 Tom Tromey <tom@tromey.com>
1353
1354 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
1355 * dwarf2/read.c
1356 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1357 Move to line-header.c.
1358 (read_checked_initial_length_and_offset, read_formatted_entries):
1359 Likewise.
1360 (dwarf_decode_line_header): Split into two.
1361 * dwarf2/line-header.c
1362 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1363 Move from read.c.
1364 (read_checked_initial_length_and_offset, read_formatted_entries):
1365 Likewise.
1366 (dwarf_decode_line_header): New function, split from read.c.
1367
1368 2020-03-26 Tom Tromey <tom@tromey.com>
1369
1370 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
1371 Declare method.
1372 * dwarf2/read.c (read_attribute_value): Update.
1373 (dwarf2_per_objfile::read_line_string): Rename from
1374 read_indirect_line_string.
1375 (read_formatted_entries): Update.
1376
1377 2020-03-26 Tom Tromey <tom@tromey.com>
1378
1379 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
1380 variable.
1381
1382 2020-03-26 Tom Tromey <tom@tromey.com>
1383
1384 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
1385 const.
1386 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
1387 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
1388 parameter const.
1389
1390 2020-03-26 Tom Tromey <tom@tromey.com>
1391
1392 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
1393 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
1394 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
1395 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
1396
1397 2020-03-26 Tom Tromey <tom@tromey.com>
1398
1399 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
1400 file_names_size, file_full_name, file_file_name>: Use const.
1401 <file_name_at, file_names>: Add const overload.
1402 * dwarf2/line-header.c (line_header::file_file_name)
1403 (line_header::file_full_name): Update.
1404
1405 2020-03-26 Tom Tromey <tom@tromey.com>
1406
1407 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
1408 (macro_start_file, consume_improper_spaces)
1409 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
1410 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
1411 (dwarf_decode_macros): Move to macro.c.
1412 * dwarf2/macro.c: New file.
1413 * dwarf2/macro.h: New file.
1414 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
1415
1416 2020-03-26 Tom Tromey <tom@tromey.com>
1417
1418 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
1419 method.
1420 * dwarf2/section.c: New method. From
1421 read_indirect_string_at_offset_from.
1422 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
1423 (read_indirect_string_at_offset_from): Move to section.c.
1424 (read_indirect_string_at_offset): Rewrite.
1425 (read_indirect_line_string_at_offset): Remove.
1426 (read_indirect_string, read_indirect_line_string)
1427 (dwarf_decode_macro_bytes): Update.
1428
1429 2020-03-26 Tom Tromey <tom@tromey.com>
1430
1431 * dwarf2/section.h (struct dwarf2_section_info)
1432 <overload_complaint>: Declare.
1433 (dwarf2_section_buffer_overflow_complaint): Don't declare.
1434 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
1435 Rename from dwarf2_section_buffer_overflow_complaint.
1436 * dwarf2/read.c (skip_one_die, partial_die_info::read)
1437 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
1438
1439 2020-03-26 Tom Tromey <tom@tromey.com>
1440
1441 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
1442 Declare.
1443 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
1444 Move from read.c.
1445 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
1446 to section.c.
1447
1448 2020-03-26 Tom Tromey <tom@tromey.com>
1449
1450 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
1451
1452 2020-03-26 Tom Tromey <tom@tromey.com>
1453
1454 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
1455 "builder".
1456 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
1457 parameter.
1458 (dwarf_decode_macros): Update.
1459
1460 2020-03-26 Tom Tromey <tom@tromey.com>
1461
1462 * dwarf2/read.c (read_attribute_value): Update.
1463 (read_indirect_string_from_dwz): Move to dwz.c; change into
1464 method.
1465 (dwarf_decode_macro_bytes): Update.
1466 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
1467 * dwarf2/dwz.c: New file.
1468 * Makefile.in (COMMON_SFILES): Add dwz.c.
1469
1470 2020-03-26 Tom Tromey <tom@tromey.com>
1471
1472 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
1473 * dwarf2/read.c: Add include.
1474 * dwarf2/index-write.c: Add include.
1475 * dwarf2/index-cache.c: Add include.
1476 * dwarf2/dwz.h: New file.
1477
1478 2020-03-25 Tom Tromey <tom@tromey.com>
1479
1480 * compile/compile-object-load.c (get_out_value_type): Mention
1481 correct symbol name in error message.
1482
1483 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
1484
1485 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
1486
1487 2020-03-25 Tom de Vries <tdevries@suse.de>
1488
1489 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
1490 * symmisc.c (dump_symtab_1): Print user and includes fields.
1491 (maintenance_info_symtabs): Same.
1492
1493 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
1494
1495 PR gdb/25534
1496 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
1497 (riscv_regcache_cooked_write): New function.
1498 (riscv_push_dummy_call): Use new function.
1499 (riscv_return_value): Likewise.
1500
1501 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1502
1503 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
1504 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
1505 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
1506 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
1507 * infrun.c (follow_fork): Likewise.
1508 (follow_fork_inferior): Likewise.
1509 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
1510 * linux-nat.h (class linux_nat_target): Likewise.
1511 * remote.c (class remote_target) <follow_fork>: Likewise.
1512 (remote_target::follow_fork): Likewise.
1513 * target-delegates.c: Re-generate.
1514 * target.c (default_follow_fork): Likewise.
1515 (target_follow_fork): Likewise.
1516 * target.h (struct target_ops) <follow_fork>: Likewise.
1517 (target_follow_fork): Likewise.
1518
1519 2020-03-24 Tom de Vries <tdevries@suse.de>
1520
1521 * psymtab.c (maintenance_info_psymtabs): Print user field.
1522
1523 2020-03-20 Tom Tromey <tromey@adacore.com>
1524
1525 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
1526 const.
1527 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
1528 const.
1529
1530 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
1531
1532 * ptrace.m4: Don't check for ptrace declaration.
1533 * config.in: Re-generate.
1534 * configure: Re-generate.
1535 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
1536 not defined.
1537
1538 2020-03-20 Kamil Rytarowski <n54@gmx.com>
1539
1540 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
1541 `PTRACE_TYPE_RET'.
1542 * i386-bsd-nat.c (gdb_ptrace): Likewise.
1543 * sparc-nat.c (gdb_ptrace): Likewise.
1544 * x86-bsd-nat.c (gdb_ptrace): Likewise.
1545
1546 2020-03-20 Tom Tromey <tromey@adacore.com>
1547
1548 * c-exp.y (lex_one_token): Fix assert.
1549
1550 2020-03-20 Tom Tromey <tromey@adacore.com>
1551
1552 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
1553 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
1554 strncpy call.
1555
1556 2020-03-20 Tom Tromey <tromey@adacore.com>
1557
1558 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
1559
1560 2020-03-20 Tom Tromey <tromey@adacore.com>
1561
1562 * ada-valprint.c (print_variant_part): Remove parameters; switch
1563 to value-based API.
1564 (print_field_values): Likewise.
1565 (ada_val_print_struct_union): Likewise.
1566 (ada_value_print_1): Update.
1567
1568 2020-03-20 Kamil Rytarowski <n54@gmx.com>
1569
1570 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
1571 nbsd_nat_target instead of inf_ptrace_target.
1572 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1573 nbsd_nat_target.
1574
1575 2020-03-20 Kamil Rytarowski <n54@gmx.com>
1576
1577 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
1578 it to the ptrace call.
1579 * (store_registers): Likewise.
1580
1581 2020-03-20 Kamil Rytarowski <n54@gmx.com>
1582
1583 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
1584 it to the ptrace call.
1585 * (store_registers): Likewise.
1586
1587 2020-03-19 Luis Machado <luis.machado@linaro.org>
1588
1589 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
1590 valid, fetch vg value from ptrace.
1591
1592 2020-03-19 Kamil Rytarowski <n54@gmx.com>
1593 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
1594 * inf-ptrace.c: Likewise.
1595 * (gdb_ptrace): Add.
1596 * (inf_ptrace_target::resume): Update.
1597 * (inf_ptrace_target::xfer_partial): Likewise.
1598 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
1599 * (inf_ptrace_peek_poke): Update.
1600
1601 2020-03-19 Kamil Rytarowski <n54@gmx.com>
1602
1603 * x86-bsd-nat.c (gdb_ptrace): New.
1604 * (x86bsd_dr_set): Add new argument `ptid'.
1605 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
1606 x86bsd_dr_set_addr): Update.
1607
1608 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1609
1610 * remote.c (remote_target::process_stop_reply): Handle events for
1611 all threads differently.
1612
1613 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1614
1615 * completer.c (completion_tracker::remove_completion): Define new
1616 function.
1617 * completer.h (completion_tracker::remove_completion): Declare new
1618 function.
1619 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
1620 when adding a C++ function symbol.
1621
1622 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1623
1624 * completer.c (completion_tracker::completion_hash_entry): Define
1625 new class.
1626 (advance_to_filename_complete_word_point): Call
1627 recompute_lowest_common_denominator.
1628 (completion_tracker::completion_tracker): Call discard_completions
1629 to setup the hash table.
1630 (completion_tracker::discard_completions): Allow for being called
1631 from the constructor, pass new equal function, and element deleter
1632 when constructing the hash table. Initialise new class member
1633 variables.
1634 (completion_tracker::maybe_add_completion): Remove use of
1635 m_entries_vec, and store more information into m_entries_hash.
1636 (completion_tracker::recompute_lcd_visitor): New function, most
1637 content taken from...
1638 (completion_tracker::recompute_lowest_common_denominator):
1639 ...here, this now just visits each item in the hash calling the
1640 above visitor.
1641 (completion_tracker::build_completion_result): Remove use of
1642 m_entries_vec, call recompute_lowest_common_denominator.
1643 * completer.h (completion_tracker::have_completions): Remove use
1644 of m_entries_vec.
1645 (completion_tracker::completion_hash_entry): Declare new class.
1646 (completion_tracker::recompute_lowest_common_denominator): Change
1647 function signature.
1648 (completion_tracker::recompute_lcd_visitor): Declare new function.
1649 (completion_tracker::m_entries_vec): Delete.
1650 (completion_tracker::m_entries_hash): Initialize to NULL.
1651 (completion_tracker::m_lowest_common_denominator_valid): New
1652 member variable.
1653 (completion_tracker::m_lowest_common_denominator_max_length): New
1654 member variable.
1655
1656 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1657
1658 * regformats/regdef.h: Put reg in gdb namespace.
1659
1660 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1661
1662 * i386-bsd-nat.c (gdb_ptrace): New.
1663 * (i386bsd_fetch_inferior_registers,
1664 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
1665 * (i386bsd_fetch_inferior_registers,
1666 i386bsd_store_inferior_registers) Use gdb_ptrace.
1667
1668 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1669
1670 * amd64-bsd-nat.c (gdb_ptrace): New.
1671 * (amd64bsd_fetch_inferior_registers,
1672 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
1673 * (amd64bsd_fetch_inferior_registers,
1674 amd64bsd_store_inferior_registers) Use gdb_ptrace.
1675
1676 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1677
1678 * user-regs.c (user_reg::read): Rename to...
1679 (user_reg::xread): ...this.
1680 * (append_user_reg): Rename argument `read' to `xread'.
1681 * (user_reg_add_builtin): Likewise.
1682 * (user_reg_add): Likewise.
1683 * (value_of_user_reg): Likewise.
1684
1685 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1686
1687 * sparc-nat.c (gdb_ptrace): New.
1688 * sparc-nat.c (sparc_fetch_inferior_registers)
1689 (sparc_store_inferior_registers) Remove obsolete comment.
1690 * sparc-nat.c (sparc_fetch_inferior_registers)
1691 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
1692 * sparc-nat.c (sparc_fetch_inferior_registers)
1693 (sparc_store_inferior_registers) Use gdb_ptrace.
1694
1695 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1696
1697 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
1698 it to the ptrace call.
1699 * sh-nbsd-nat.c (store_registers): Likewise.
1700
1701 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1702
1703 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
1704 nbsd_nat_target instead of inf_ptrace_target.
1705 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1706 nbsd_nat_target.
1707
1708 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1709
1710 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
1711
1712 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1713
1714 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
1715 <sys/sysctl.h>.
1716 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
1717
1718 2020-03-17 Tom de Vries <tdevries@suse.de>
1719
1720 PR gdb/23710
1721 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
1722 fields.
1723 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
1724 fields.
1725 (process_imported_unit_die): Skip import of c++ CUs.
1726
1727 2020-03-16 Tom Tromey <tom@tromey.com>
1728
1729 * p-valprint.c (pascal_object_print_value): Initialize
1730 base_value.
1731
1732 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
1733 Shahab Vahedi <shahab@synopsys.com>
1734
1735 * Makefile.in: Add arch/arc.o
1736 * configure.tgt: Likewise.
1737 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
1738 (_initialize_arc_tdep): Don't initialize old target descriptions.
1739 (arc_read_description): New function to cache target descriptions.
1740 * arc-tdep.h (arc_read_description): Add proto type.
1741 * arch/arc.c: New file.
1742 * arch/arc.h: Likewise.
1743 * features/Makefile: Replace old target descriptions with new.
1744 * features/arc-arcompact.c: Remove.
1745 * features/arc-arcompact.xml: Likewise.
1746 * features/arc-v2.c: Likewise
1747 * features/arc-v2.xml: Likewise
1748 * features/arc/aux-arcompact.xml: New file.
1749 * features/arc/aux-v2.xml: Likewise.
1750 * features/arc/core-arcompact.xml: Likewise.
1751 * features/arc/core-v2.xml: Likewise.
1752 * features/arc/aux-arcompact.c: Generate.
1753 * features/arc/aux-v2.c: Likewise.
1754 * features/arc/core-arcompact.c: Likewise.
1755 * features/arc/core-v2.c: Likewise.
1756 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
1757
1758 2020-03-16 Tom Tromey <tromey@adacore.com>
1759
1760 PR gdb/25663:
1761 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
1762 putting value into bcache.
1763
1764 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
1765
1766 PR gdb/21500
1767 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
1768 to...
1769 (amd64_windows_init_abi_common): ... this. Don't set size of
1770 long type.
1771 (amd64_windows_init_abi): New function.
1772 (amd64_cygwin_init_abi): New function.
1773 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
1774 the Cygwin OS ABI.
1775 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
1776 comment.
1777
1778 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
1779
1780 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
1781 * windows-tdep.c (CYGWIN_DLL_NAME): New.
1782 (pe_import_directory_entry): New struct type.
1783 (is_linked_with_cygwin_dll): New function.
1784 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
1785 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
1786 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
1787
1788 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
1789
1790 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
1791 i386_cygwin_core_osabi_sniffer.
1792
1793 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
1794
1795 * i386-cygwin-tdep.c: Rename to...
1796 * i386-windows-tdep.c: ... this.
1797 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
1798 i386-windows-tdep.c.
1799 * configure.tgt: Likewise.
1800
1801 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
1802
1803 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
1804 * osabi.c (gdb_osabi_names): Add "Windows".
1805 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
1806 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
1807 (i386_cygwin_core_osabi_sniffer): New function, extracted from
1808 i386_cygwin_osabi_sniffer.
1809 (_initialize_i386_cygwin_tdep): Register OS ABI
1810 GDB_OSABI_WINDOWS for i386.
1811 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
1812 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
1813 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
1814 for x86-64.
1815 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
1816 when the target matches '*-*-mingw*'.
1817
1818 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
1819
1820 * defs.h (enum gdb_osabi): Move to...
1821 * osabi.h (enum gdb_osabi): ... here.
1822 * gdbarch.sh: Include osabi.h in gdbarch.h.
1823 * gdbarch.h: Re-generate.
1824
1825 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
1826
1827 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
1828 function.
1829 (_initialize_amd64_windows_tdep): Register osabi sniffer.
1830
1831 2020-03-14 Tom Tromey <tom@tromey.com>
1832
1833 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
1834 for C++.
1835 (c_type_print_modifier): Likewise. Add "language" parameter.
1836 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
1837 (c_type_print_base_1): Update.
1838 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
1839 constants.
1840 * type-stack.c (type_stack::insert): Handle tp_atomic and
1841 tp_restrict.
1842 (type_stack::follow_type_instance_flags): Likewise.
1843 (type_stack::follow_types): Likewise. Merge type-following code.
1844 * c-exp.y (RESTRICT, ATOMIC): New tokens.
1845 (space_identifier, cv_with_space_id)
1846 (const_or_volatile_or_space_identifier_noopt)
1847 (const_or_volatile_or_space_identifier): Remove.
1848 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
1849 rules.
1850 (ptr_operator, typebase): Update.
1851 (enum token_flag) <FLAG_C>: New constant.
1852 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
1853 "_Atomic".
1854 (lex_one_token): Handle FLAG_C.
1855
1856 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1857
1858 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
1859 it to the ptrace call.
1860 * m68k-bsd-nat.c (store_registers): Likewise.
1861
1862 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1863
1864 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
1865 gdb_byte *.
1866 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1867 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
1868 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
1869
1870 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1871
1872 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
1873 nbsd_nat_target instead of inf_ptrace_target.
1874 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1875 nbsd_nat_target.
1876
1877 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1878
1879 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
1880 register_t.
1881
1882 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1883
1884 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
1885 it to the ptrace call.
1886 * alpha-bsd-nat.c (store_registers): Likewise.
1887
1888 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1889
1890 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
1891 includes.
1892 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
1893 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
1894 fill_fpregset): Likewise.
1895
1896 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1897
1898 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
1899 nbsd_nat_target instead of inf_ptrace_target.
1900 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1901 nbsd_nat_target.
1902
1903 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1904
1905 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
1906 register_t.
1907
1908 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1909
1910 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
1911 it to the ptrace call.
1912 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
1913 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
1914 * arm-nbsd-nat.c (store_register): Likewise.
1915 * arm-nbsd-nat.c (store_regs): Likewise.
1916 * arm-nbsd-nat.c (store_fp_register): Likewise.
1917 * arm-nbsd-nat.c (store_fp_regs): Likewise.
1918
1919 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1920
1921 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
1922 nbsd_nat_target instead of inf_ptrace_target.
1923 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1924 nbsd_nat_target.
1925
1926 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1927
1928 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
1929 it to the ptrace call.
1930 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
1931
1932 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1933
1934 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
1935 it to the ptrace call.
1936 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
1937
1938 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1939
1940 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
1941 gdb_byte *.
1942 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
1943
1944 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1945
1946 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
1947 instead of inf_ptrace_target.
1948 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1949 nbsd_nat_target.
1950
1951 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1952
1953 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
1954 register_t.
1955
1956 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1957
1958 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
1959 register_t.
1960
1961 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1962
1963 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
1964 register_t.
1965
1966 2020-03-13 Tom Tromey <tom@tromey.com>
1967
1968 * value.h (val_print): Don't declare.
1969 * valprint.h (val_print_array_elements)
1970 (val_print_scalar_formatted, generic_val_print): Don't declare.
1971 * valprint.c (generic_val_print_array): Take a struct value.
1972 (generic_val_print_ptr, generic_val_print_memberptr)
1973 (generic_val_print_bool, generic_val_print_int)
1974 (generic_val_print_char, generic_val_print_complex)
1975 (generic_val_print): Remove.
1976 (generic_value_print): Update.
1977 (do_val_print): Remove unused parameters. Don't call
1978 la_val_print.
1979 (val_print): Remove.
1980 (common_val_print): Update. Don't call value_check_printable.
1981 (val_print_scalar_formatted, val_print_array_elements): Remove.
1982 * rust-lang.c (rust_val_print): Remove.
1983 (rust_language_defn): Update.
1984 * p-valprint.c (pascal_val_print): Remove.
1985 (pascal_value_print_inner): Update.
1986 (pascal_object_print_val_fields, pascal_object_print_val):
1987 Remove.
1988 (pascal_object_print_static_field): Update.
1989 * p-lang.h (pascal_val_print): Don't declare.
1990 * p-lang.c (pascal_language_defn): Update.
1991 * opencl-lang.c (opencl_language_defn): Update.
1992 * objc-lang.c (objc_language_defn): Update.
1993 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
1994 * m2-lang.h (m2_val_print): Don't declare.
1995 * m2-lang.c (m2_language_defn): Update.
1996 * language.h (struct language_defn) <la_val_print>: Remove.
1997 * language.c (unk_lang_value_print_inner): Rename. Change
1998 argument types.
1999 (unknown_language_defn, auto_language_defn): Update.
2000 * go-valprint.c (go_val_print): Remove.
2001 * go-lang.h (go_val_print): Don't declare.
2002 * go-lang.c (go_language_defn): Update.
2003 * f-valprint.c (f_val_print): Remove.
2004 * f-lang.h (f_value_print): Don't declare.
2005 * f-lang.c (f_language_defn): Update.
2006 * d-valprint.c (d_val_print): Remove.
2007 * d-lang.h (d_value_print): Don't declare.
2008 * d-lang.c (d_language_defn): Update.
2009 * cp-valprint.c (cp_print_value_fields)
2010 (cp_print_value_fields_rtti, cp_print_value): Remove.
2011 (cp_print_static_field): Update.
2012 * c-valprint.c (c_val_print_array, c_val_print_ptr)
2013 (c_val_print_struct, c_val_print_union, c_val_print_int)
2014 (c_val_print_memberptr, c_val_print): Remove.
2015 * c-lang.h (c_val_print_array, cp_print_value_fields)
2016 (cp_print_value_fields_rtti): Don't declare.
2017 * c-lang.c (c_language_defn, cplus_language_defn)
2018 (asm_language_defn, minimal_language_defn): Update.
2019 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
2020 (ada_val_print_enum): Take a struct value.
2021 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
2022 (ada_val_print): Remove.
2023 (ada_value_print_1): Update.
2024 (printable_val_type): Remove.
2025 * ada-lang.h (ada_val_print): Don't declare.
2026 * ada-lang.c (ada_language_defn): Update.
2027
2028 2020-03-13 Tom Tromey <tom@tromey.com>
2029
2030 * valprint.c (do_val_print): Update.
2031 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
2032 a struct value.
2033 (value_to_value_object_no_release): Declare.
2034 * python/py-value.c (value_to_value_object_no_release): New
2035 function.
2036 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
2037 struct value.
2038 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
2039 function.
2040 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
2041 a struct value.
2042 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
2043 Declare.
2044 (gdbscm_apply_val_pretty_printer): Take a struct value.
2045 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
2046 value.
2047 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
2048 value.
2049 * extension-priv.h (struct extension_language_ops)
2050 <apply_val_pretty_printer>: Take a struct value.
2051 * cp-valprint.c (cp_print_value): Create a struct value.
2052 (cp_print_value): Update.
2053
2054 2020-03-13 Tom Tromey <tom@tromey.com>
2055
2056 * ada-valprint.c (print_field_values): Call common_val_print.
2057
2058 2020-03-13 Tom Tromey <tom@tromey.com>
2059
2060 * ada-valprint.c (val_print_packed_array_elements): Remove
2061 bitoffset and val parameters. Call common_val_print.
2062 (ada_val_print_string): Remove offset, address, and original_value
2063 parameters.
2064 (ada_val_print_array): Update.
2065 (ada_value_print_array): New function.
2066 (ada_value_print_1): Call it.
2067
2068 2020-03-13 Tom Tromey <tom@tromey.com>
2069
2070 * ada-valprint.c (ada_value_print): Use common_val_print.
2071
2072 2020-03-13 Tom Tromey <tom@tromey.com>
2073
2074 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
2075
2076 2020-03-13 Tom Tromey <tom@tromey.com>
2077
2078 * ada-valprint.c (ada_value_print_num): New function.
2079 (ada_value_print_1): Use it.
2080
2081 2020-03-13 Tom Tromey <tom@tromey.com>
2082
2083 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
2084
2085 2020-03-13 Tom Tromey <tom@tromey.com>
2086
2087 * ada-valprint.c (ada_value_print_ptr): New function.
2088 (ada_value_print_1): Use it.
2089
2090 2020-03-13 Tom Tromey <tom@tromey.com>
2091
2092 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
2093 call common_val_print.
2094 (ada_val_print_1): Update.
2095 (ada_value_print_1): New function.
2096 (ada_value_print_inner): Rewrite.
2097
2098 2020-03-13 Tom Tromey <tom@tromey.com>
2099
2100 * cp-valprint.c (cp_print_value_fields): Update.
2101 (cp_print_value): New function.
2102
2103 2020-03-13 Tom Tromey <tom@tromey.com>
2104
2105 * m2-valprint.c (m2_value_print_inner): Use
2106 cp_print_value_fields.
2107 * cp-valprint.c (cp_print_value_fields): New function.
2108 * c-valprint.c (c_value_print_struct): New function.
2109 (c_value_print_inner): Use c_value_print_struct.
2110 * c-lang.h (cp_print_value_fields): Declare.
2111
2112 2020-03-13 Tom Tromey <tom@tromey.com>
2113
2114 * c-valprint.c (c_value_print_array): New function.
2115 (c_value_print_inner): Use it.
2116
2117 2020-03-13 Tom Tromey <tom@tromey.com>
2118
2119 * c-valprint.c (c_value_print_memberptr): New function.
2120 (c_value_print_inner): Use it.
2121
2122 2020-03-13 Tom Tromey <tom@tromey.com>
2123
2124 * c-valprint.c (c_value_print_int): New function.
2125 (c_value_print_inner): Use it.
2126
2127 2020-03-13 Tom Tromey <tom@tromey.com>
2128
2129 * c-valprint.c (c_value_print_ptr): New function.
2130 (c_value_print_inner): Use it.
2131
2132 2020-03-13 Tom Tromey <tom@tromey.com>
2133
2134 * c-valprint.c (c_value_print_inner): Rewrite.
2135
2136 2020-03-13 Tom Tromey <tom@tromey.com>
2137
2138 * valprint.c (generic_value_print_complex): New function.
2139 (generic_value_print): Use it.
2140
2141 2020-03-13 Tom Tromey <tom@tromey.com>
2142
2143 * valprint.c (generic_val_print_float): Don't call
2144 val_print_scalar_formatted.
2145 (generic_val_print, generic_value_print): Update.
2146
2147 2020-03-13 Tom Tromey <tom@tromey.com>
2148
2149 * valprint.c (generic_value_print_char): New function
2150 (generic_value_print): Use it.
2151
2152 2020-03-13 Tom Tromey <tom@tromey.com>
2153
2154 * valprint.c (generic_value_print_int): New function.
2155 (generic_value_print): Use it.
2156
2157 2020-03-13 Tom Tromey <tom@tromey.com>
2158
2159 * valprint.c (generic_value_print_bool): New function.
2160 (generic_value_print): Use it.
2161
2162 2020-03-13 Tom Tromey <tom@tromey.com>
2163
2164 * valprint.c (generic_val_print_func): Simplify.
2165 (generic_val_print, generic_value_print): Update.
2166
2167 2020-03-13 Tom Tromey <tom@tromey.com>
2168
2169 * valprint.c (generic_val_print_flags): Remove.
2170 (generic_val_print, generic_value_print): Update.
2171 (val_print_type_code_flags): Add original_value parameter.
2172
2173 2020-03-13 Tom Tromey <tom@tromey.com>
2174
2175 * valprint.c (generic_val_print): Update.
2176 (generic_value_print): Update.
2177 * valprint.c (generic_val_print_enum): Don't call
2178 val_print_scalar_formatted.
2179
2180 2020-03-13 Tom Tromey <tom@tromey.com>
2181
2182 * valprint.c (generic_value_print): Call generic_value_print_ptr.
2183 * valprint.c (generic_value_print_ptr): New function.
2184
2185 2020-03-13 Tom Tromey <tom@tromey.com>
2186
2187 * valprint.c (generic_value_print): Rewrite.
2188
2189 2020-03-13 Tom Tromey <tom@tromey.com>
2190
2191 * p-valprint.c (pascal_object_print_value_fields)
2192 (pascal_object_print_value): New functions.
2193
2194 2020-03-13 Tom Tromey <tom@tromey.com>
2195
2196 * p-valprint.c (pascal_value_print_inner): Rewrite.
2197
2198 2020-03-13 Tom Tromey <tom@tromey.com>
2199
2200 * f-valprint.c (f_value_print_innner): Rewrite.
2201
2202 2020-03-13 Tom Tromey <tom@tromey.com>
2203
2204 * m2-valprint.c (m2_print_unbounded_array): New overload.
2205 (m2_print_unbounded_array): Update.
2206 (m2_print_array_contents): Take a struct value.
2207 (m2_value_print_inner): Rewrite.
2208
2209 2020-03-13 Tom Tromey <tom@tromey.com>
2210
2211 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
2212 (d_value_print_inner): New function.
2213 * d-lang.h (d_value_print_inner): Declare.
2214 * d-lang.c (d_language_defn): Use d_value_print_inner.
2215
2216 2020-03-13 Tom Tromey <tom@tromey.com>
2217
2218 * go-valprint.c (go_value_print_inner): New function.
2219 * go-lang.h (go_value_print_inner): Declare.
2220 * go-lang.c (go_language_defn): Use go_value_print_inner.
2221
2222 2020-03-13 Tom Tromey <tom@tromey.com>
2223
2224 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
2225 API.
2226 (rust_val_print): Rewrite.
2227 (rust_value_print_inner): New function, from rust_val_print.
2228 (rust_language_defn): Use rust_value_print_inner.
2229
2230 2020-03-13 Tom Tromey <tom@tromey.com>
2231
2232 * ada-valprint.c (ada_value_print_inner): New function.
2233 * ada-lang.h (ada_value_print_inner): Declare.
2234 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
2235
2236 2020-03-13 Tom Tromey <tom@tromey.com>
2237
2238 * f-valprint.c (f_value_print_innner): New function.
2239 * f-lang.h (f_value_print_innner): Declare.
2240 * f-lang.c (f_language_defn): Use f_value_print_innner.
2241
2242 2020-03-13 Tom Tromey <tom@tromey.com>
2243
2244 * p-valprint.c (pascal_value_print_inner): New function.
2245 * p-lang.h (pascal_value_print_inner): Declare.
2246 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
2247
2248 2020-03-13 Tom Tromey <tom@tromey.com>
2249
2250 * m2-valprint.c (m2_value_print_inner): New function.
2251 * m2-lang.h (m2_value_print_inner): Declare.
2252 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
2253
2254 2020-03-13 Tom Tromey <tom@tromey.com>
2255
2256 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
2257 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
2258 * c-valprint.c (c_value_print_inner): New function.
2259 * c-lang.h (c_value_print_inner): Declare.
2260 * c-lang.c (c_language_defn, cplus_language_defn)
2261 (asm_language_defn, minimal_language_defn): Use
2262 c_value_print_inner.
2263
2264 2020-03-13 Tom Tromey <tom@tromey.com>
2265
2266 * p-valprint.c (pascal_object_print_value_fields): Now static.
2267 * p-lang.h (pascal_object_print_value_fields): Don't declare.
2268
2269 2020-03-13 Tom Tromey <tom@tromey.com>
2270
2271 * c-valprint.c (c_val_print_array): Simplify.
2272
2273 2020-03-13 Tom Tromey <tom@tromey.com>
2274
2275 * valprint.c (value_print_array_elements): New function.
2276 * valprint.h (value_print_array_elements): Declare.
2277
2278 2020-03-13 Tom Tromey <tom@tromey.com>
2279
2280 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
2281 * mips-tdep.c (mips_print_register): Use
2282 value_print_scalar_formatted.
2283
2284 2020-03-13 Tom Tromey <tom@tromey.com>
2285
2286 * valprint.h (value_print_scalar_formatted): Declare.
2287 * valprint.c (value_print_scalar_formatted): New function.
2288
2289 2020-03-13 Tom Tromey <tom@tromey.com>
2290
2291 * valprint.h (generic_value_print): Declare.
2292 * valprint.c (generic_value_print): New function.
2293
2294 2020-03-13 Tom Tromey <tom@tromey.com>
2295
2296 * valprint.c (do_val_print): Call la_value_print_inner, if
2297 available.
2298 * rust-lang.c (rust_language_defn): Update.
2299 * p-lang.c (pascal_language_defn): Update.
2300 * opencl-lang.c (opencl_language_defn): Update.
2301 * objc-lang.c (objc_language_defn): Update.
2302 * m2-lang.c (m2_language_defn): Update.
2303 * language.h (struct language_defn) <la_value_print_inner>: New
2304 member.
2305 * language.c (unknown_language_defn, auto_language_defn): Update.
2306 * go-lang.c (go_language_defn): Update.
2307 * f-lang.c (f_language_defn): Update.
2308 * d-lang.c (d_language_defn): Update.
2309 * c-lang.c (c_language_defn, cplus_language_defn)
2310 (asm_language_defn, minimal_language_defn): Update.
2311 * ada-lang.c (ada_language_defn): Update.
2312
2313 2020-03-13 Tom Tromey <tom@tromey.com>
2314
2315 * c-valprint.c (c_value_print): Use common_val_print.
2316
2317 2020-03-13 Tom Tromey <tom@tromey.com>
2318
2319 * cp-valprint.c (cp_print_static_field): Use common_val_print.
2320
2321 2020-03-13 Tom Tromey <tom@tromey.com>
2322
2323 * f-valprint.c (f77_print_array_1, f_val_print): Use
2324 common_val_print.
2325
2326 2020-03-13 Tom Tromey <tom@tromey.com>
2327
2328 * riscv-tdep.c (riscv_print_one_register_info): Use
2329 common_val_print.
2330
2331 2020-03-13 Tom Tromey <tom@tromey.com>
2332
2333 * mi/mi-main.c (output_register): Use common_val_print.
2334
2335 2020-03-13 Tom Tromey <tom@tromey.com>
2336
2337 * infcmd.c (default_print_one_register_info): Use
2338 common_val_print.
2339
2340 2020-03-13 Tom Tromey <tom@tromey.com>
2341
2342 * valprint.h (common_val_print_checked): Declare.
2343 * valprint.c (common_val_print_checked): New function.
2344 * stack.c (print_frame_arg): Use common_val_print_checked.
2345
2346 2020-03-13 Tom Tromey <tom@tromey.com>
2347
2348 * valprint.c (do_val_print): New function, from val_print.
2349 (val_print): Use do_val_print.
2350 (common_val_print): Use do_val_print.
2351
2352 2020-03-13 Tom Tromey <tom@tromey.com>
2353
2354 * valprint.c (value_print): Use scoped_value_mark.
2355
2356 2020-03-13 Tom de Vries <tdevries@suse.de>
2357
2358 PR symtab/25646
2359 * psymtab.c (partial_symtab::partial_symtab): Don't set
2360 globals_offset and statics_offset. Push element onto
2361 current_global_psymbols and current_static_psymbols stacks.
2362 (concat): New function.
2363 (end_psymtab_common): Set globals_offset and statics_offset. Pop
2364 element from current_global_psymbols and current_static_psymbols
2365 stacks. Concat popped elements to global_psymbols and
2366 static_symbols.
2367 (add_psymbol_to_list): Use current_global_psymbols and
2368 current_static_psymbols stacks.
2369 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
2370 current_static_psymbols fields.
2371
2372 2020-03-12 Christian Biesinger <cbiesinger@google.com>
2373
2374 * corelow.c (sniff_core_bfd): Remove.
2375 (class core_target) <m_core_vec>: Remove.
2376 (core_target::core_target): Update.
2377 (core_file_fns): Remove.
2378 (deprecated_add_core_fns): Remove.
2379 (default_core_sniffer): Remove.
2380 (sniff_core_bfd): Remove.
2381 (default_check_format): Remove.
2382 (gdb_check_format): Remove.
2383 (core_target_open): Update.
2384 (core_target::get_core_register_section): Update.
2385 (get_core_registers_cb): Update.
2386 (core_target::fetch_registers): Update.
2387 * gdbcore.h (struct core_fns): Remove.
2388 (deprecated_add_core_fns): Remove.
2389 (default_core_sniffer): Remove.
2390 (default_check_format): Remove.
2391
2392 2020-03-12 Tom Tromey <tom@tromey.com>
2393
2394 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
2395 CORE_ADDR.
2396 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
2397
2398 2020-03-12 Tom Tromey <tom@tromey.com>
2399
2400 * remote.c (remote_target::download_tracepoint)
2401 (remote_target::enable_tracepoint)
2402 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
2403 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
2404 sprintf_vma.
2405
2406 2020-03-12 Tom Tromey <tom@tromey.com>
2407
2408 * symfile-mem.c: Update CORE_ADDR size assert.
2409
2410 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2411
2412 * selftest.m4: Move to gdbsupport/.
2413 * acinclude.m4: Update path to selftest.m4.
2414
2415 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2416
2417 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
2418 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
2419 gdbarch-selfselftests.c and selftest-arch.c.
2420 (SUBDIR_UNITTESTS_OBS): Rename to...
2421 (SELFTESTS_OBS): ... this.
2422 (COMMON_SFILES): Remove disasm-selftests.c and
2423 gdbarch-selftests.c.
2424 * configure.ac: Don't add selftest-arch.{c,o} to
2425 CONFIG_{SRCS,OBS}.
2426 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
2427 preprocessor conditions.
2428
2429 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2430
2431 * configure.ac: Don't source bfd/development.sh.
2432 * selftest.m4: Modify comment.
2433 * configure: Re-generate.
2434
2435 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2436
2437 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
2438 not "true" or "false".
2439 * configure: Re-generate.
2440
2441 2020-03-12 Christian Biesinger <cbiesinger@google.com>
2442
2443 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
2444 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
2445 renamed to arm_nbsd_supply_gregset.
2446 (fetch_register): Update to call arm_nbsd_supply_gregset.
2447 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
2448 (arm_netbsd_nat_target::fetch_registers): Update.
2449 (fetch_elfcore_registers): Removed.
2450 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
2451 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
2452 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
2453 not require NetBSD system headers.
2454 (arm_nbsd_regset): New struct.
2455 (arm_nbsd_iterate_over_regset_sections): New function.
2456 (arm_netbsd_init_abi_common): Updated to call
2457 set_gdbarch_iterate_over_regset_sections.
2458 * arm-nbsd-tdep.h: New file.
2459
2460 2020-03-11 Kevin Buettner <kevinb@redhat.com>
2461
2462 * symtab.c (find_pc_sect_line): Add check which prevents infinite
2463 recursion.
2464
2465 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2466
2467 * configure: Re-generate.
2468
2469 2020-03-11 Tom Tromey <tromey@adacore.com>
2470
2471 * ada-typeprint.c (print_choices): Fix comment.
2472
2473 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
2474
2475 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
2476 previous item in the list, when the list has no items.
2477
2478 2020-03-11 Tom de Vries <tdevries@suse.de>
2479
2480 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
2481 PROP_LOCLIST handling code.
2482
2483 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
2484
2485 * buildsym-legacy.c (record_line): Pass extra parameter to
2486 record_line.
2487 * buildsym.c (buildsym_compunit::record_line): Take an extra
2488 parameter, reduce duplication in the line table, and record the
2489 is_stmt flag in the line table.
2490 * buildsym.h (buildsym_compunit::record_line): Add extra
2491 parameter.
2492 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
2493 non-statement lines.
2494 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
2495 this to the symtab builder.
2496 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
2497 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
2498 through to dwarf_record_line_1.
2499 * infrun.c (process_event_stop_test): When stepping, don't stop at
2500 a non-statement instruction, and only refresh the step info when
2501 we land in the middle of a line's range. Also add an extra
2502 comment.
2503 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
2504 field.
2505 * record-btrace.c (btrace_find_line_range): Only record lines
2506 marked as is-statement.
2507 * stack.c (frame_show_address): Show the frame address if we are
2508 in a non-statement sal.
2509 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
2510 (maintenance_print_one_line_table): Print a header for the is_stmt
2511 column, and include is_stmt information in the output.
2512 * symtab.c (find_pc_sect_line): Find lines marked as statements in
2513 preference to non-statements.
2514 (find_pcs_for_symtab_line): Prefer is-statement entries.
2515 (find_line_common): Likewise.
2516 * symtab.h (struct linetable_entry): Add is_stmt field.
2517 (struct symtab_and_line): Likewise.
2518 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
2519 arranging the line table.
2520
2521 2020-03-07 Tom de Vries <tdevries@suse.de>
2522
2523 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
2524 DIE.
2525
2526 2020-03-07 Tom Tromey <tom@tromey.com>
2527
2528 * valops.c (value_literal_complex): Remove obsolete comment.
2529 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
2530 comment.
2531
2532 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
2533
2534 * infrun.h: Forward-declare thread_info.
2535 (set_step_info): Add thread_info parameter, add doc.
2536 * infrun.c (set_step_info): Add thread_info parameter, move doc
2537 to header.
2538 * infrun.c (process_event_stop_test): Pass thread to
2539 set_step_info call.
2540 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
2541 set_step_info.
2542 (prepare_one_step): Add thread_info parameter, pass it to
2543 set_step_frame and prepare_one_step (recursive) call.
2544 (step_1): Pass thread to prepare_one_step call.
2545 (step_command_fsm::should_stop): Pass thread to
2546 prepare_one_step.
2547 (until_next_fsm): Pass thread to set_step_frame call.
2548 (finish_command): Pass thread to set_step_info call.
2549
2550 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
2551
2552 * windows-tdep.c (windows_solib_create_inferior_hook):
2553 Check if inferior is running.
2554
2555 2020-03-06 Tom de Vries <tdevries@suse.de>
2556
2557 * NEWS: Fix "the the".
2558 * ctfread.c: Same.
2559
2560 2020-03-06 Tom de Vries <tdevries@suse.de>
2561
2562 * psymtab.c (psymtab_to_symtab): Don't print "done.".
2563
2564 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * .dir-locals.el: Add a comment referencing the other copies of
2567 this file.
2568
2569 2020-03-05 John Baldwin <jhb@FreeBSD.org>
2570
2571 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
2572 psargs.
2573
2574 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2575
2576 * .gitattributes: New file.
2577
2578 2020-03-04 Tom Tromey <tom@tromey.com>
2579
2580 * symmisc.c (print_symbol_bcache_statistics)
2581 (print_objfile_statistics): Update.
2582 * symfile.c (allocate_symtab): Use intern.
2583 * psymtab.c (partial_symtab::partial_symtab): Use intern.
2584 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
2585 macro_cache>: Remove.
2586 <string_cache>: New member.
2587 (struct objfile) <intern>: New methods.
2588 * elfread.c (elf_symtab_read): Use intern.
2589 * dwarf2/read.c (fixup_go_packaging): Intern package name.
2590 (dwarf2_compute_name, dwarf2_physname)
2591 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
2592 names.
2593 (guess_partial_die_structure_name): Update.
2594 (partial_die_info::fixup): Intern name.
2595 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
2596 name.
2597 (dwarf2_name): Intern name. Update.
2598 * buildsym.c (buildsym_compunit::get_macro_table): Use
2599 string_cache.
2600
2601 2020-03-04 Tom Tromey <tom@tromey.com>
2602
2603 * jit.c (bfd_open_from_target_memory): Make "target" const.
2604 * corefile.c (gnutarget): Now const.
2605 * gdbcore.h (gnutarget): Now const.
2606
2607 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
2608
2609 * NEWS: Mention support for WOW64 processes.
2610 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
2611 (amd64_windows_segment_register_p): Remove static.
2612 (_initialize_amd64_windows_nat): Update.
2613 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
2614 * i386-windows-nat.c (context_offset): Update.
2615 (i386_mappings): Rename and remove static.
2616 (i386_windows_segment_register_p): Remove static.
2617 (_initialize_i386_windows_nat): Update.
2618 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
2619 (STATUS_WX86_SINGLE_STEP): New macro.
2620 (EnumProcessModulesEx): New macro.
2621 (Wow64SuspendThread): New macro.
2622 (Wow64GetThreadContext): New macro.
2623 (Wow64SetThreadContext): New macro.
2624 (Wow64GetThreadSelectorEntry): New macro.
2625 (windows_set_context_register_offsets): Add static.
2626 (windows_set_segment_register_p): Likewise.
2627 (windows_add_thread): Adapt for WOW64 processes.
2628 (windows_fetch_one_register): Likewise.
2629 (windows_nat_target::fetch_registers): Likewise.
2630 (windows_store_one_register): Likewise.
2631 (display_selector): Likewise.
2632 (display_selectors): Likewise.
2633 (handle_exception): Likewise.
2634 (windows_continue): Likewise.
2635 (windows_nat_target::resume): Likewise.
2636 (windows_add_all_dlls): Likewise.
2637 (do_initial_windows_stuff): Likewise.
2638 (windows_nat_target::attach): Likewise.
2639 (windows_get_exec_module_filename): Likewise.
2640 (windows_nat_target::create_inferior): Likewise.
2641 (windows_xfer_siginfo): Likewise.
2642 (_initialize_loadable): Initialize Wow64SuspendThread,
2643 Wow64GetThreadContext, Wow64SetThreadContext,
2644 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
2645 * windows-nat.h (windows_set_context_register_offsets):
2646 Remove declaration.
2647 (windows_set_segment_register_p): Likewise.
2648 (i386_windows_segment_register_p): Add declaration.
2649 (amd64_windows_segment_register_p): Likewise.
2650
2651 2020-03-04 Luis Machado <luis.machado@linaro.org>
2652
2653 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
2654 in "info registers" for AArch64/ARM.
2655
2656 The change caused "info registers" to not print GPR's.
2657
2658 gdb/ChangeLog:
2659
2660 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
2661
2662 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
2663 when reg->group is empty and reggroup is not.
2664
2665 2020-03-03 Tom Tromey <tromey@adacore.com>
2666
2667 * dwarf2/frame.c (struct dwarf2_frame_cache)
2668 <checked_tailcall_bottom, entry_cfa_sp_offset,
2669 entry_cfa_sp_offset_p>: Remove members.
2670 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
2671 (dwarf2_frame_prev_register): Don't call
2672 dwarf2_tailcall_sniffer_first.
2673 (dwarf2_append_unwinders): Don't append tailcall unwinder.
2674 * frame-unwind.c (add_unwinder): New fuction.
2675 (frame_unwind_init): Use it. Add tailcall unwinder.
2676
2677 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
2678 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2679
2680 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
2681 value should be printed as true.
2682
2683 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
2684
2685 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
2686 (windows_init_abi): Set and use windows_so_ops.
2687
2688 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
2689
2690 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
2691 when verifying if dealing with a convenience variable.
2692
2693 2020-03-03 Luis Machado <luis.machado@linaro.org>
2694
2695 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
2696
2697 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2698
2699 * infrun.c (gdbarch_supports_displaced_stepping): New.
2700 (use_displaced_stepping): Break up conditions in smaller pieces.
2701 Use gdbarch_supports_displaced_stepping.
2702 (displaced_step_prepare_throw): Use
2703 gdbarch_supports_displaced_stepping.
2704
2705 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2706
2707 * NEWS: Mention new behaviour of the history filename.
2708 * top.c (write_history_p): Add comment.
2709 (show_write_history_p): Add header comment, give a different
2710 message when history writing is on, but the history filename is
2711 empty.
2712 (history_filename): Add comment.
2713 (history_filename_empty): New function.
2714 (show_history_filename): Add header comment, give a different
2715 message when the filename is empty.
2716 (init_history): Compare history_filename against nullptr, and only
2717 read history if the filename is not empty.
2718 (set_history_filename): Add header comment, and only make
2719 non-empty filenames absolute.
2720 (init_main): Make the filename argument to 'set history filename'
2721 optional.
2722
2723 2020-03-02 Christian Biesinger <cbiesinger@google.com>
2724
2725 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
2726 (arm_supply_vfpregset): ...this, and update to use VFP registers.
2727 (fetch_fp_register): Update.
2728 (fetch_fp_regs): Update.
2729 (store_fp_register): Update.
2730 (store_fp_regs): Update.
2731 (arm_netbsd_nat_target::read_description): New function.
2732 (fetch_elfcore_registers): Update.
2733
2734 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2735
2736 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
2737 general_thread if the stop reply is missing a thread-id.
2738 (remote_target::process_stop_reply): Use the first non-exited
2739 thread if the target didn't pass a thread-id.
2740 * infrun.c (do_target_wait): Move call to
2741 switch_to_inferior_no_thread to ....
2742 (do_target_wait_1): ... here.
2743
2744 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
2745
2746 * debuginfod-support.c: Include defs.h first.
2747
2748 2020-02-28 Tom de Vries <tdevries@suse.de>
2749
2750 * symfile.c (set_initial_language): Use default language for lookup.
2751
2752 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
2753
2754 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
2755 reader variable, pass `this` to read_cutu_die_from_dwo.
2756
2757 2020-02-27 Aaron Merey <amerey@redhat.com>
2758
2759 * source.c (open_source_file): Check for nullptr when computing
2760 srcpath.
2761
2762 2020-02-27 Tom Tromey <tromey@adacore.com>
2763
2764 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
2765 member.
2766 (dwarf2_add_field): Don't update nfields.
2767 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
2768
2769 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
2770
2771 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
2772 abs.
2773
2774 2020-02-26 Tom Tromey <tom@tromey.com>
2775
2776 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
2777 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
2778 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
2779 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
2780 per_cu_data.
2781
2782 2020-02-26 Tom Tromey <tom@tromey.com>
2783
2784 * dwarf2/index-write.c (psym_index_map): Change type.
2785 (add_address_entry_worker, write_one_signatured_type)
2786 (recursively_count_psymbols, recursively_write_psymbols)
2787 (class debug_names, psyms_seen_size, write_gdbindex)
2788 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
2789
2790 2020-02-26 Aaron Merey <amerey@redhat.com>
2791
2792 * Makefile.in: Handle optional debuginfod support.
2793 * NEWS: Update.
2794 * README: Add --with-debuginfod summary.
2795 * config.in: Regenerate.
2796 * configure: Regenerate.
2797 * configure.ac: Handle optional debuginfod support.
2798 * debuginfod-support.c: debuginfod helper functions.
2799 * debuginfod-support.h: Ditto.
2800 * doc/gdb.texinfo: Add --with-debuginfod to configure options
2801 summary.
2802 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
2803 when a dwz file cannot be found.
2804 * elfread.c (elf_symfile_read): Query debuginfod servers when a
2805 debuginfo file cannot be found.
2806 * source.c (open_source_file): Query debuginfod servers when a
2807 source file cannot be found.
2808 * top.c (print_gdb_configuration): Include
2809 --{with,without}-debuginfod in the output.
2810
2811 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
2812
2813 * thread.c (thr_try_catch_cmd): Print thread name.
2814
2815 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
2816
2817 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
2818 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2819 dwarf2_fetch_die_type_sect_off): Move to...
2820 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
2821 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2822 dwarf2_fetch_die_type_sect_off): ... here.
2823 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
2824 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
2825 dwarf2_fetch_die_type_sect_off): Move doc to header file.
2826
2827 2020-02-26 Tom de Vries <tdevries@suse.de>
2828
2829 PR gdb/25603
2830 * symfile.c (set_initial_language): Exit-early if
2831 language_mode == language_mode_manual.
2832
2833 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2834
2835 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
2836 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
2837 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
2838
2839 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2840
2841 * gdbtypes.c (create_array_type_with_stride): Handle negative
2842 array strides.
2843 * valarith.c (value_subscripted_rvalue): Likewise.
2844
2845 2020-02-25 Luis Machado <luis.machado@linaro.org>
2846
2847 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
2848
2849 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2850
2851 * loc.h (dwarf2_get_die_type): Move to...
2852 * read.h (dwarf2_get_die_type): ... here.
2853 * read.c (dwarf2_get_die_type): Move doc to header.
2854
2855 2020-02-25 Joel Brobecker <brobecker@adacore.com>
2856
2857 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
2858 'gnulib/Makefile.in' to the list.
2859
2860 2020-02-24 Tom Tromey <tom@tromey.com>
2861
2862 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
2863 Remove.
2864 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
2865 XOBNEWVEC.
2866
2867 2020-02-24 Tom Tromey <tom@tromey.com>
2868
2869 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
2870 New method.
2871 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
2872 (dw2_do_instantiate_symtab, dw2_get_file_names)
2873 (build_type_psymtab_dependencies, load_full_type_unit): Update.
2874
2875 2020-02-24 Tom Tromey <tom@tromey.com>
2876
2877 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
2878 make_scoped_restore.
2879 (dwarf2_psymtab::read_symtab): Don't clear
2880 reading_partial_symbols.
2881
2882 2020-02-24 Tom de Vries <tdevries@suse.de>
2883
2884 PR gdb/25592
2885 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
2886
2887 2020-02-24 Tom de Vries <tdevries@suse.de>
2888
2889 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
2890 commands layout next/prev/regs.
2891
2892 2020-02-22 Tom Tromey <tom@tromey.com>
2893
2894 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
2895 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
2896
2897 2020-02-22 Tom Tromey <tom@tromey.com>
2898
2899 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
2900
2901 2020-02-22 Tom Tromey <tom@tromey.com>
2902
2903 * tui/tui-win.c (_initialize_tui_win): Add usage text.
2904 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
2905 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
2906 * tui/tui.c (_initialize_tui): Add usage text.
2907
2908 2020-02-22 Tom Tromey <tom@tromey.com>
2909
2910 * tui/tui-win.c (tui_set_focus_command)
2911 (tui_set_win_height_command): Use error_no_arg.
2912 (_initialize_tui_win): Update help text.
2913 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
2914
2915 2020-02-22 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
2918 * tui/tui-disasm.h (struct tui_disasm_window)
2919 <display_start_addr>: Declare.
2920 * tui/tui-source.h (struct tui_source_window)
2921 <display_start_addr>: Declare.
2922 * tui/tui-winsource.h (struct tui_source_window_base)
2923 <show_source_line, display_start_addr>: New methods.
2924 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
2925 Rename and move to protected section.
2926 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
2927 (tui_source_window_base::do_erase_source_content): Update.
2928 (tui_source_window_base::show_source_line): Now a method.
2929 (tui_source_window_base::show_source_content)
2930 (tui_source_window_base::tui_source_window_base)
2931 (tui_source_window_base::rerender)
2932 (tui_source_window_base::refill)
2933 (tui_source_window_base::do_scroll_horizontal)
2934 (tui_source_window_base::set_is_exec_point_at)
2935 (tui_source_window_base::update_breakpoint_info)
2936 (tui_source_window_base::update_exec_info): Update.
2937 * tui/tui-source.c (tui_source_window::set_contents)
2938 (tui_source_window::showing_source_p)
2939 (tui_source_window::do_scroll_vertical)
2940 (tui_source_window::location_matches_p)
2941 (tui_source_window::line_is_displayed): Update.
2942 (tui_source_window::display_start_addr): New method.
2943 * tui/tui-disasm.c (tui_disasm_window::set_contents)
2944 (tui_disasm_window::do_scroll_vertical)
2945 (tui_disasm_window::location_matches_p): Update.
2946 (tui_disasm_window::display_start_addr): New method.
2947
2948 2020-02-22 Tom Tromey <tom@tromey.com>
2949
2950 * NEWS: Add entry for gdb.register_window_type.
2951 * tui/tui-layout.h (window_factory): New typedef.
2952 (tui_register_window): Declare.
2953 * tui/tui-layout.c (saved_tui_windows): New global.
2954 (tui_apply_current_layout): Use it.
2955 (tui_register_window): New function.
2956 * python/python.c (do_start_initialization): Call
2957 gdbpy_initialize_tui.
2958 (python_GdbMethods): Add "register_window_type" function.
2959 * python/python-internal.h (gdbpy_register_tui_window)
2960 (gdbpy_initialize_tui): Declare.
2961 * python/py-tui.c: New file.
2962 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
2963
2964 2020-02-22 Tom Tromey <tom@tromey.com>
2965
2966 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
2967
2968 2020-02-22 Tom Tromey <tom@tromey.com>
2969
2970 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
2971 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
2972 * tui/tui-data.c (tui_set_win_with_focus): Remove.
2973 (tui_set_win_focus_to): Move from tui-win.c.
2974
2975 2020-02-22 Tom Tromey <tom@tromey.com>
2976
2977 * tui/tui-layout.c (make_standard_window, get_locator_window): New
2978 functions.
2979 (known_window_types): New global.
2980 (tui_get_window_by_name): Reimplement.
2981 (initialize_known_windows): New function.
2982 (validate_window_name): Rewrite.
2983 (_initialize_tui_layout): Call initialize_known_windows.
2984
2985 2020-02-22 Tom Tromey <tom@tromey.com>
2986
2987 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
2988 Remove constants.
2989 * tui/tui-winsource.h (struct tui_source_window_base)
2990 <tui_source_window_base>: Remove parameter.
2991 * tui/tui-winsource.c
2992 (tui_source_window_base::tui_source_window_base): Remove
2993 parameter.
2994 (tui_source_window_base::refill): Update.
2995 * tui/tui-stack.h (struct tui_locator_window)
2996 <tui_locator_window>: Update.
2997 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
2998 Default the constructor.
2999 * tui/tui-regs.h (struct tui_data_item_window)
3000 <tui_data_item_window>: Default the constructor.
3001 (struct tui_data_window) <tui_data_window>: Likewise.
3002 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
3003 Default the constructor.
3004 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
3005 Default the constructor.
3006 <type>: Remove.
3007 (struct tui_win_info) <tui_win_info>: Default the constructor.
3008 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
3009 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
3010 Default the constructor.
3011
3012 2020-02-22 Tom Tromey <tom@tromey.com>
3013
3014 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
3015 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
3016 * tui/tui-win.c (tui_resize_all): Don't call
3017 tui_delete_invisible_windows.
3018 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
3019 done.
3020 (tui_set_layout): Update.
3021 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
3022 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
3023 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
3024
3025 2020-02-22 Tom Tromey <tom@tromey.com>
3026
3027 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
3028 correctly.
3029
3030 2020-02-22 Tom Tromey <tom@tromey.com>
3031
3032 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
3033
3034 2020-02-22 Tom Tromey <tom@tromey.com>
3035
3036 * tui/tui-winsource.h (struct tui_source_window_iterator)
3037 <inner_iterator>: New etytypedef.
3038 <tui_source_window_iterator>: Take "end" parameter.
3039 <tui_source_window_iterator>: Take iterator.
3040 <operator*, advance>: Update.
3041 <m_iter>: Change type.
3042 <m_end>: New field.
3043 (struct tui_source_windows) <begin, end>: Update.
3044 * tui/tui-layout.c (tui_windows): New global.
3045 (tui_apply_current_layout): Clear tui_windows.
3046 (tui_layout_window::apply): Update tui_windows.
3047 * tui/tui-data.h (tui_windows): Declare.
3048 (all_tui_windows): Now inline function.
3049 (class tui_window_iterator, struct all_tui_windows): Remove.
3050
3051 2020-02-22 Tom Tromey <tom@tromey.com>
3052
3053 PR tui/17850:
3054 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
3055 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
3056 "height" argument.
3057 (class tui_layout_window) <get_sizes>: Likewise.
3058 (class tui_layout_split) <tui_layout_split>: Add "vertical"
3059 argument.
3060 <get_sizes>: Add "height" argument.
3061 <m_vertical>: New field.
3062 * tui/tui-layout.c (tui_layout_split::clone): Update.
3063 (tui_layout_split::get_sizes): Add "height" argument.
3064 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
3065 (tui_new_layout_command): Parse "-horizontal".
3066 (_initialize_tui_layout): Update help string.
3067 (tui_layout_split::specification): Add "-horizontal" when needed.
3068 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
3069 argument.
3070 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
3071 New methods.
3072
3073 2020-02-22 Tom Tromey <tom@tromey.com>
3074
3075 * tui/tui-layout.h (enum tui_adjust_result): New.
3076 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
3077 (class tui_layout_window) <adjust_size>: Return
3078 tui_adjust_result. Rewrite.
3079 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
3080 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
3081
3082 2020-02-22 Tom Tromey <tom@tromey.com>
3083
3084 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
3085 parameter and return types.
3086 (class tui_layout_base) <specification>: Add "depth".
3087 (class tui_layout_window) <specification>: Add "depth".
3088 (class tui_layout_split) <specification>: Add "depth".
3089 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
3090 and return types.
3091 (tui_new_layout_command): Parse sub-layouts.
3092 (_initialize_tui_layout): Update help string.
3093 (tui_layout_window::specification): Add "depth".
3094 (add_layout_command): Update.
3095
3096 2020-02-22 Tom Tromey <tom@tromey.com>
3097
3098 * NEWS: Add "tui new-layout" item.
3099 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
3100 Add new-layout command to help text.
3101 (validate_window_name): New function.
3102 (tui_new_layout_command): New function.
3103 (_initialize_tui_layout): Register "new-layout".
3104 (tui_layout_window::specification): New method.
3105 (tui_layout_window::specification): New method.
3106 * tui/tui-layout.h (class tui_layout_base) <specification>: New
3107 method.
3108 (class tui_layout_window) <specification>: New method.
3109 (class tui_layout_split) <specification>: New method.
3110
3111 2020-02-22 Tom Tromey <tom@tromey.com>
3112
3113 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
3114 * tui/tui-win.c (window_name_completer): Update comment.
3115 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
3116 Declare method.
3117 (class tui_layout_window) <replace_window>: Likewise.
3118 (class tui_layout_split) <replace_window>: Likewise.
3119 (tui_set_layout): Don't declare.
3120 (tui_set_initial_layout): Declare function.
3121 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
3122 (asm_regs_layout): New globals.
3123 (tui_current_layout, show_layout): Remove.
3124 (tui_set_layout, tui_add_win_to_layout): Rewrite.
3125 (find_layout, tui_apply_layout): New function.
3126 (layout_completer): Remove.
3127 (tui_next_layout): Reimplement.
3128 (tui_next_layout_command): New function.
3129 (tui_set_initial_layout, tui_prev_layout_command): New functions.
3130 (tui_regs_layout): Reimplement.
3131 (tui_regs_layout_command): New function.
3132 (extract_display_start_addr): Rewrite.
3133 (next_layout, prev_layout): Remove.
3134 (tui_layout_window::replace_window): New method.
3135 (tui_layout_split::replace_window): New method.
3136 (destroy_layout): New function.
3137 (layout_list): New global.
3138 (add_layout_command): New function.
3139 (initialize_layouts): Update.
3140 (tui_layout_command): New function.
3141 (_initialize_tui_layout): Install "layout" commands.
3142 * tui/tui-data.h (enum tui_layout_type): Remove.
3143 (tui_current_layout): Don't declare.
3144
3145 2020-02-22 Tom Tromey <tom@tromey.com>
3146
3147 * tui/tui-regs.c (tui_reg_layout): Remove.
3148 (tui_reg_command): Use tui_regs_layout.
3149 * tui/tui-layout.h (tui_reg_command): Declare.
3150 * tui/tui-layout.c (tui_reg_command): New function.
3151
3152 2020-02-22 Tom Tromey <tom@tromey.com>
3153
3154 * tui/tui.c (tui_rl_delete_other_windows): Call
3155 tui_remove_some_windows.
3156 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
3157 Declare method.
3158 (class tui_layout_window) <remove_windows>: New method.
3159 (class tui_layout_split) <remove_windows>: Declare.
3160 (tui_remove_some_windows): Declare.
3161 * tui/tui-layout.c (tui_remove_some_windows): New function.
3162 (tui_layout_split::remove_windows): New method.
3163
3164 2020-02-22 Tom Tromey <tom@tromey.com>
3165
3166 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
3167 * tui/tui-layout.h (tui_next_layout): Declare.
3168 * tui/tui-layout.c (tui_next_layout): New function.
3169
3170 2020-02-22 Tom Tromey <tom@tromey.com>
3171
3172 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
3173 correct coordinates.
3174
3175 2020-02-22 Tom Tromey <tom@tromey.com>
3176
3177 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
3178 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
3179 DATA_WIN case.
3180
3181 2020-02-22 Tom Tromey <tom@tromey.com>
3182
3183 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
3184 TUI_DISASM_WIN, not tui_win_list.
3185
3186 2020-02-22 Tom Tromey <tom@tromey.com>
3187
3188 * valprint.c (generic_val_print_enum_1)
3189 (val_print_type_code_flags): Style member names.
3190 * rust-lang.c (val_print_struct, rust_print_enum)
3191 (rust_print_struct_def, rust_internal_print_type): Style member
3192 names.
3193 * p-valprint.c (pascal_object_print_value_fields): Style member
3194 names. Only call fprintf_symbol_filtered for static members.
3195 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
3196 * f-valprint.c (f_val_print): Style member names.
3197 * f-typeprint.c (f_type_print_base): Style member names.
3198 * cp-valprint.c (cp_print_value_fields): Style member names. Only
3199 call fprintf_symbol_filtered for static members.
3200 (cp_print_class_member): Style member names.
3201 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
3202 member names.
3203 * ada-valprint.c (ada_print_scalar): Style enum names.
3204 (ada_val_print_enum): Likewise.
3205 * ada-typeprint.c (print_enum_type): Style enum names.
3206
3207 2020-02-21 Tom Tromey <tom@tromey.com>
3208
3209 * psympriv.h (struct partial_symtab): Update comment.
3210
3211 2020-02-21 Tom Tromey <tromey@adacore.com>
3212
3213 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
3214 type is CORE_ADDR.
3215
3216 2020-02-21 Tom de Vries <tdevries@suse.de>
3217
3218 PR gdb/25534
3219 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
3220 if dependencies[i]->user != NULL.
3221
3222 2020-02-21 Ali Tamur <tamur@google.com>
3223
3224 * dwarf2/read.c (dwarf2_name): Add null check.
3225
3226 2020-02-20 Tom Tromey <tom@tromey.com>
3227
3228 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
3229 ">=", in binary search.
3230 (dwarf2_find_containing_comp_unit): New overload.
3231 (run_test): New self-test.
3232 (_initialize_dwarf2_read): Register new test.
3233
3234 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
3235
3236 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
3237 * riscv-tdep.h: Likewise.
3238 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
3239 rv32-only CSR.
3240 * features/riscv/64bit-csr.xml: Regenerated.
3241
3242 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3243 Tom Tromey <tom@tromey.com>
3244
3245 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
3246 of 'fputc_unfiltered'.
3247 (putchar_unfiltered): Call 'fputc_unfiltered'.
3248 (fputc_unfiltered): Call 'fputs_unfiltered'.
3249
3250 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
3251
3252 * config.in: Regenerate.
3253 * configure: Regenerate.
3254 * configure.ac: Add --with-python-libdir option.
3255 * main.c: Use WITH_PYTHON_LIBDIR.
3256
3257 2020-02-19 Tom Tromey <tom@tromey.com>
3258
3259 * symtab.c (general_symbol_info::compute_and_set_names): Use
3260 obstack_strndup. Simplify call to symbol_set_demangled_name.
3261
3262 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
3263
3264 * dwarf2/read.c (allocate_signatured_type_table,
3265 allocate_dwo_unit_table, allocate_type_unit_groups_table,
3266 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
3267 Remove objfile parameter, update all callers.
3268
3269 2020-02-19 Doug Evans <dje@google.com>
3270
3271 PR rust/25535
3272 * rust-lang.c (rust_print_enum): Apply embedded_offset to
3273 rust_enum_variant calculation.
3274
3275 2020-02-19 Tom Tromey <tromey@adacore.com>
3276
3277 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
3278
3279 2020-02-19 Tom Tromey <tromey@adacore.com>
3280
3281 * ada-lang.c (cache_symbol): Use obstack_strdup.
3282
3283 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3284
3285 * configure: Regenerate.
3286
3287 2020-02-19 Tom Tromey <tromey@adacore.com>
3288
3289 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
3290 NULL check.
3291
3292 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3293
3294 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
3295
3296 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3297
3298 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
3299 if GDBSERVER is not defined.
3300 (riscv_tdesc_cache): Likewise, also store const target_desc.
3301 (STATIC_IN_GDB): Define.
3302 (riscv_create_target_description): Update declaration with
3303 STATIC_IN_GDB.
3304 (riscv_lookup_target_description): New function, only define if
3305 GDBSERVER is not defined.
3306 * arch/riscv.h (riscv_create_target_description): Declare only
3307 when GDBSERVER is defined.
3308 (riscv_lookup_target_description): New declaration when GDBSERVER
3309 is not defined.
3310 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
3311 (riscv_linux_read_features): ...this, and return
3312 riscv_gdbarch_features instead of target_desc.
3313 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
3314 (riscv_linux_read_description): Rename to...
3315 (riscv_linux_read_features): ...this.
3316 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
3317 Update to use riscv_gdbarch_features and
3318 riscv_lookup_target_description.
3319 * riscv-tdep.c (riscv_find_default_target_description): Use
3320 riscv_lookup_target_description instead of
3321 riscv_create_target_description.
3322
3323 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3324
3325 * valprint.c (generic_val_print_enum_1): When printing a flag
3326 enum with value 0 and there is no enumerator with value 0, print
3327 just "0" instead of "(unknown: 0x0)".
3328
3329 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3330
3331 * valprint.c (generic_val_print_enum_1): Print unknown part of
3332 flag enum in hex.
3333
3334 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3335
3336 * dwarf2/read.c (update_enumeration_type_from_children): Allow
3337 flag enums to contain duplicate enumerators.
3338 * valprint.c (generic_val_print_enum_1): Update comment.
3339
3340 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3341
3342 * dwarf2/read.c: Include "count-one-bits.h".
3343 (update_enumeration_type_from_children): If an enumerator has
3344 multiple bits set, don't treat the enumeration as a "flag enum".
3345 * valprint.c (generic_val_print_enum_1): Assert that enumerators
3346 of flag enums have 0 or 1 bit set.
3347
3348 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
3349
3350 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
3351 conversion.
3352 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3353 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3354 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3355 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3356 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3357
3358 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3359
3360 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
3361
3362 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
3363
3364 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
3365 displaced_step_closure_up.
3366 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3367 (struct displaced_step_closure_up):
3368 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3369 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3370 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
3371 Likewise.
3372 * gdbarch.sh (displaced_step_copy_insn): Likewise.
3373 * gdbarch.c, gdbarch.h: Re-generate.
3374 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
3375 displaced_step_closure_up.
3376 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3377 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3378 * infrun.h (displaced_step_closure_up): New type alias.
3379 (struct displaced_step_inferior_state) <step_closure>: Change
3380 type to displaced_step_closure_up.
3381 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
3382 displaced_step_closure_up.
3383 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3384
3385 2020-02-14 Tom Tromey <tom@tromey.com>
3386
3387 * minidebug.c (gnu_debug_key): New global.
3388 (find_separate_debug_file_in_section): Use it.
3389
3390 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
3391
3392 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
3393 std::unique_ptr.
3394 * gdbarch.c: Re-generate.
3395 * gdbarch.h: Re-generate.
3396 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
3397 change.
3398 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
3399 type to std::unique_ptr.
3400 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3401 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3402 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3403 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3404 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
3405 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3406 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3407 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3408 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3409
3410 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
3411
3412 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
3413 std::unique_ptr.
3414 (displaced_step_clear): Rename to...
3415 (displaced_step_reset): ... this. Just call displaced->reset ().
3416 (displaced_step_clear_cleanup): Rename to...
3417 (displaced_step_reset_cleanup): ... this.
3418 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
3419 (displaced_step_fixup): Likewise.
3420 (resume_1): Likewise.
3421 (handle_inferior_event): Restore child's memory before calling
3422 displaced_step_fixup on the parent.
3423 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
3424 to std::unique_ptr.
3425 <step_closure>: Change type to std::unique_ptr.
3426
3427 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
3428
3429 * arm-tdep.c: Include count-one-bits.h.
3430 (cleanup_block_store_pc): Use count_one_bits.
3431 (cleanup_block_load_pc): Use count_one_bits.
3432 (arm_copy_block_xfer): Use count_one_bits.
3433 (thumb2_copy_block_xfer): Use count_one_bits.
3434 (thumb_copy_pop_pc_16bit): Use count_one_bits.
3435 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
3436 (thumb_get_next_pcs_raw): Use count_one_bits.
3437 (arm_get_next_pcs_raw): Use count_one_bits_l.
3438 * arch/arm.c (bitcount): Remove.
3439 * arch/arm.h (bitcount): Remove.
3440
3441 2020-02-14 Tom Tromey <tromey@adacore.com>
3442
3443 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
3444 Update.
3445 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
3446 * dwarf2/loc.c (call_site_find_chain_1): Return
3447 unique_xmalloc_ptr.
3448 (call_site_find_chain): Likewise.
3449
3450 2020-02-14 Richard Biener <rguenther@suse.de>
3451
3452 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
3453 on expression with division operators.
3454
3455 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3456
3457 * MAINTAINERS (Write After Approval): Adding myself.
3458
3459 2020-02-12 Tom Tromey <tom@tromey.com>
3460
3461 * event-loop.c (event_data, gdb_event, event_handler_func):
3462 Remove.
3463
3464 2020-02-12 Tom Tromey <tom@tromey.com>
3465
3466 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
3467 (dwarf2_frame_objfile_data): Add comment.
3468 (find_comp_unit, set_comp_unit): New functions.
3469 (dwarf2_frame_find_fde): Use find_comp_unit.
3470 (dwarf2_build_frame_info): Use set_comp_unit.
3471
3472 2020-02-12 Tom Tromey <tom@tromey.com>
3473
3474 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
3475 (comp_unit): Don't initialize objfile.
3476 (execute_cfa_program): Add text_offset parameter.
3477 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
3478 (dwarf2_frame_cache): Update.
3479 (dwarf2_build_frame_info): Don't set "objfile" member.
3480
3481 2020-02-12 Tom Tromey <tom@tromey.com>
3482
3483 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
3484 (decode_frame_entry): Likewise.
3485 (dwarf2_build_frame_info): Update.
3486
3487 2020-02-12 Tom Tromey <tom@tromey.com>
3488
3489 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
3490 (decode_frame_entry_1): Use the comp_unit obstack.
3491
3492 2020-02-12 Tom Tromey <tom@tromey.com>
3493
3494 * dwarf2/frame.c (struct comp_unit): Add initializers and
3495 constructor.
3496 (dwarf2_frame_objfile_data): Store a comp_unit.
3497 (dwarf2_frame_find_fde): Update.
3498 (dwarf2_build_frame_info): Use "new".
3499
3500 2020-02-12 Tom Tromey <tom@tromey.com>
3501
3502 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
3503 (dwarf2_fde_table): Typedef for std::vector.
3504 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
3505 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
3506 (decode_frame_entry): Update.
3507 (dwarf2_build_frame_info): Use "new".
3508
3509 2020-02-12 Christian Biesinger <cbiesinger@google.com>
3510
3511 * arm-tdep.c (arm_gdbarch_init): Update.
3512 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
3513 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
3514 have_neon, is_m>: Change to bool.
3515
3516 2020-02-12 Christian Biesinger <cbiesinger@google.com>
3517
3518 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
3519
3520 2020-02-12 Tom Tromey <tom@tromey.com>
3521
3522 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
3523
3524 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3525
3526 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
3527 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
3528
3529 2020-02-11 Tom Tromey <tom@tromey.com>
3530
3531 * psymtab.h: Update comment.
3532
3533 2020-02-11 Tom Tromey <tom@tromey.com>
3534
3535 * gdb_obstack.h (struct auto_obstack): Use
3536 DISABLE_COPY_AND_ASSIGN.
3537
3538 2020-02-11 Tom Tromey <tom@tromey.com>
3539
3540 * dwarf2/frame.h (struct objfile): Don't forward declare.
3541
3542 2020-02-11 Christian Biesinger <cbiesinger@google.com>
3543
3544 * cris-tdep.c (cris_supply_gregset): Change signature to match
3545 what struct regset expects.
3546 (cris_regset): New struct.
3547 (fetch_core_registers): Remove.
3548 (cris_iterate_over_regset_sections): New function.
3549 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
3550 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
3551
3552 2020-02-11 Christian Biesinger <cbiesinger@google.com>
3553
3554 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
3555 registers.
3556
3557 2020-02-11 Christian Biesinger <cbiesinger@google.com>
3558
3559 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
3560
3561 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3562
3563 * configure: Re-generate.
3564
3565 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3566
3567 * configure: Re-generate.
3568
3569 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3570
3571 * acinclude: Update warning.m4 path.
3572 * warning.m4: Move to gdbsupport.
3573
3574 2020-02-11 Tom Tromey <tromey@adacore.com>
3575
3576 * remote.c (remote_console_output): Update.
3577 * printcmd.c (printf_command): Update.
3578 * event-loop.c (gdb_wait_for_event): Update.
3579 * linux-nat.c (sigchld_handler): Update.
3580 * remote-sim.c (gdb_os_write_stdout): Update.
3581 (gdb_os_flush_stdout): Update.
3582 (gdb_os_flush_stderr): Update.
3583 (gdb_os_write_stderr): Update.
3584 * exceptions.c (print_exception): Update.
3585 * remote-fileio.c (remote_fileio_func_read): Update.
3586 (remote_fileio_func_write): Update.
3587 * tui/tui.c (tui_enable): Update.
3588 * tui/tui-interp.c (tui_interp::init): Update.
3589 * utils.c (init_page_info): Update.
3590 (putchar_unfiltered, fputc_unfiltered): Update.
3591 (gdb_flush): Update.
3592 (emit_style_escape): Update.
3593 (flush_wrap_buffer, fputs_maybe_filtered): Update.
3594 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
3595 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
3596 (stderr_file::write): Update.
3597 (stderr_file::puts): Update.
3598 * ui-file.h (ui_file_isatty, ui_file_write)
3599 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
3600 (ui_file_puts): Don't declare.
3601
3602 2020-02-10 Tom de Vries <tdevries@suse.de>
3603
3604 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
3605 sentinel to char *.
3606
3607 2020-02-09 Tom de Vries <tdevries@suse.de>
3608
3609 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
3610 filename if it matches "<artificial>".
3611
3612 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3613
3614 * windows-tdep.c (struct enum_value_name): New struct.
3615 (create_enum): New function.
3616 (windows_get_siginfo_type): Create and use enum types.
3617
3618 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3619
3620 * NEWS: Mention $_siginfo support for Windows.
3621 * windows-nat.c (handle_exception): Set siginfo_er.
3622 (windows_nat_target::mourn_inferior): Reset siginfo_er.
3623 (windows_xfer_siginfo): New function.
3624 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
3625 * windows-tdep.c (struct windows_gdbarch_data): New struct.
3626 (init_windows_gdbarch_data): New function.
3627 (get_windows_gdbarch_data): New function.
3628 (windows_get_siginfo_type): New function.
3629 (windows_init_abi): Register windows_get_siginfo_type.
3630 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
3631
3632 2020-02-08 Tom Tromey <tom@tromey.com>
3633
3634 * dwarf2/read.c (class cutu_reader) <cutu_reader,
3635 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
3636 <keep>: Declare method.
3637 <m_keep>: Remove member.
3638 <~cutu_reader>: Remove.
3639 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3640 (cutu_reader::cutu_reader): Update.
3641 (cutu_reader::keep): Rename from ~cutu_reader.
3642 (process_psymtab_comp_unit, build_type_psymtabs_1)
3643 (process_skeletonless_type_unit, load_partial_comp_unit)
3644 (load_full_comp_unit, dwarf2_read_addr_index)
3645 (read_signatured_type): Update.
3646
3647 2020-02-08 Tom Tromey <tom@tromey.com>
3648
3649 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
3650 "want_partial_unit" parameter.
3651 (process_psymtab_comp_unit): Change want_partial_unit to bool.
3652 Inline check for DW_TAG_partial_unit.
3653 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
3654
3655 2020-02-08 Tom Tromey <tom@tromey.com>
3656
3657 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
3658 read.c.
3659 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
3660 read.c.
3661
3662 2020-02-08 Tom Tromey <tom@tromey.com>
3663
3664 * dwarf2/read.c (read_address): Move to comp-unit.c.
3665 (dwarf2_rnglists_process, dwarf2_ranges_process)
3666 (read_attribute_value, dwarf_decode_lines_1)
3667 (var_decode_location, decode_locdesc): Update.
3668 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
3669 read.c. Remove "cu" parameter.
3670 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
3671 method.
3672
3673 2020-02-08 Tom Tromey <tom@tromey.com>
3674
3675 * dwarf2/read.c (read_attribute_value, read_indirect_string)
3676 (read_indirect_line_string): Update.
3677 * dwarf2/comp-unit.c (read_offset): Remove.
3678 (read_comp_unit_head): Update.
3679 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
3680 method.
3681 (read_offset): Don't declare.
3682
3683 2020-02-08 Tom Tromey <tom@tromey.com>
3684
3685 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
3686 * dwarf2/read.c (struct comp_unit_head): Move to
3687 dwarf2/comp-unit.h.
3688 (enum class rcuh_kind): Move to comp-unit.h.
3689 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
3690 (read_comp_unit_head, error_check_comp_unit_head)
3691 (read_and_check_comp_unit_head): Move to comp-unit.c.
3692 (read_offset, dwarf_unit_type_name): Likewise.
3693 (create_debug_type_hash_table, read_cutu_die_from_dwo)
3694 (cutu_reader::cutu_reader, read_call_site_scope)
3695 (find_partial_die, follow_die_offset): Update.
3696 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
3697
3698 2020-02-08 Tom Tromey <tom@tromey.com>
3699
3700 * dwarf2/read.c (read_offset_1): Move to leb.c.
3701 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
3702 (dwarf_decode_macro_bytes): Update.
3703 * dwarf2/leb.c (read_offset): Rename; move from read.c.
3704 * dwarf2/leb.h (read_offset): Declare.
3705
3706 2020-02-08 Tom Tromey <tom@tromey.com>
3707
3708 * dwarf2/read.c (dwarf2_section_size): Remove.
3709 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
3710 Update.
3711 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
3712
3713 2020-02-08 Tom Tromey <tom@tromey.com>
3714
3715 * dwarf2/read.c (read_initial_length): Move to leb.c.
3716 * dwarf2/leb.h (read_initial_length): Declare.
3717 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
3718 handle_nonstd parameter.
3719 * dwarf2/frame.c (read_initial_length): Remove.
3720 (decode_frame_entry_1): Update.
3721
3722 2020-02-08 Tom Tromey <tom@tromey.com>
3723
3724 * dwarf2/loc.c (dwarf2_find_location_expression)
3725 (dwarf_evaluate_loc_desc::get_tls_address)
3726 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
3727 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
3728 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
3729 (dwarf2_compile_property_to_c)
3730 (dwarf2_loc_desc_get_symbol_read_needs)
3731 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
3732 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
3733 (loclist_describe_location, loclist_tracepoint_var_ref)
3734 (loclist_generate_c_location): Update.
3735 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
3736 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
3737 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
3738 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
3739 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
3740 (dwarf2_per_cu_data::addr_size)
3741 (dwarf2_per_cu_data::ref_addr_size)
3742 (dwarf2_per_cu_data::text_offset)
3743 (dwarf2_per_cu_data::addr_type): Now methods.
3744 (per_cu_header_read_in): Make per_cu "const".
3745 (dwarf2_version): Remove.
3746 (dwarf2_per_cu_data::int_type): Now a method.
3747 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
3748 (set_die_type, read_array_type, read_subrange_index_type)
3749 (read_tag_string_type, read_subrange_type): Update.
3750 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
3751 offset_size, ref_addr_size, text_offset, addr_type, version,
3752 objfile, int_type, addr_sized_int_type>: Declare methods.
3753
3754 2020-02-08 Tom Tromey <tom@tromey.com>
3755
3756 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
3757 Move earlier.
3758
3759 2020-02-08 Tom Tromey <tom@tromey.com>
3760
3761 * dwarf2/read.h (dwarf_line_debug): Declare.
3762 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
3763 * dwarf2/read.c: Move line_header code to new files.
3764 (dwarf_line_debug): No longer static.
3765 * dwarf2/line-header.c: New file.
3766 * dwarf2/line-header.h: New file.
3767
3768 2020-02-08 Tom Tromey <tom@tromey.com>
3769
3770 * dwarf2/read.c (struct line_header) <file_full_name,
3771 file_file_name>: Return unique_xmalloc_ptr.
3772 (line_header::file_file_name): Update.
3773 (line_header::file_full_name): Update.
3774 (dw2_get_file_names_reader): Update.
3775 (macro_start_file): Update.
3776
3777 2020-02-08 Tom Tromey <tom@tromey.com>
3778
3779 * dwarf2/read.c (struct line_header) <file_full_name,
3780 file_file_name>: Declare methods.
3781 (dw2_get_file_names_reader): Update.
3782 (file_file_name): Now a method.
3783 (file_full_name): Likewise.
3784 (macro_start_file): Update.
3785
3786 2020-02-08 Tom Tromey <tom@tromey.com>
3787
3788 * dwarf2/read.c (dwarf_always_disassemble)
3789 (show_dwarf_always_disassemble): Move to loc.c.
3790 (_initialize_dwarf2_read): Move "always-disassemble" registration
3791 to loc.c.
3792 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
3793 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
3794 static.
3795 (show_dwarf_always_disassemble): Move from read.c.
3796 (_initialize_dwarf2loc): Move always-disassemble from read.c.
3797
3798 2020-02-08 Tom Tromey <tom@tromey.com>
3799
3800 * dwarf2/read.c (~dwarf2_per_objfile): Update.
3801 (create_quick_file_names_table): Return htab_up.
3802 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
3803 Update.
3804 * dwarf2/read.h (struct dwarf2_per_objfile)
3805 <quick_file_names_table>: Now htab_up.
3806
3807 2020-02-08 Tom Tromey <tom@tromey.com>
3808
3809 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
3810
3811 2020-02-08 Tom Tromey <tom@tromey.com>
3812
3813 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
3814 Rewrite.
3815 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
3816 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
3817 (abbrev_table::abbrev_table): No longer inline.
3818 (ABBREV_HASH_SIZE): Remove.
3819 (abbrev_table::m_abbrevs): Now an htab_up.
3820
3821 2020-02-08 Tom Tromey <tom@tromey.com>
3822
3823 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
3824 (cutu_reader): Update.
3825 (build_type_psymtabs_1): Update.
3826 * dwarf2/abbrev.c (abbrev_table::read): Rename.
3827 (abbrev_table::alloc_abbrev): Update.
3828 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
3829 (abbrev_table::read): New static method, renamed from
3830 abbrev_table_read_table.
3831 (abbrev_table::alloc_abbrev)
3832 (abbrev_table::add_abbrev): Now private.
3833 (abbrev_table::abbrev_table): Now private.
3834 (abbrev_table::m_abbrev_obstack): Now private. Rename.
3835
3836 2020-02-08 Tom Tromey <tom@tromey.com>
3837
3838 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
3839 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
3840 htab_up.
3841
3842 2020-02-08 Tom Tromey <tom@tromey.com>
3843
3844 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
3845 htab_up.
3846 (lookup_dwo_unit_in_dwp): Update.
3847 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
3848 on obstack.
3849
3850 2020-02-08 Tom Tromey <tom@tromey.com>
3851
3852 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
3853 obstack.
3854
3855 2020-02-08 Tom Tromey <tom@tromey.com>
3856
3857 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
3858 line_header_hash.
3859 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
3860 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
3861 Change type to htab_up.
3862
3863 2020-02-08 Tom Tromey <tom@tromey.com>
3864
3865 * dwarf2/read.c (allocate_type_unit_groups_table): Return
3866 htab_up. Don't allocate on obstack.
3867 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
3868 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
3869 Change type to htab_up.
3870
3871 2020-02-08 Tom Tromey <tom@tromey.com>
3872
3873 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
3874 Change type to htab_up.
3875 * dwarf2/read.c (create_signatured_type_table_from_index)
3876 (create_signatured_type_table_from_debug_names)
3877 (create_all_type_units, add_type_unit)
3878 (lookup_dwo_signatured_type, lookup_signatured_type)
3879 (process_skeletonless_type_unit): Update.
3880 (create_debug_type_hash_table, create_debug_types_hash_table):
3881 Change type of types_htab.
3882 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
3883 htab_up. Don't allocate on obstack.
3884 (create_cus_hash_table): Change type of cus_htab parameter.
3885 (struct dwo_file) <cus, tus>: Now htab_up.
3886 (lookup_dwo_signatured_type, lookup_dwo_cutu)
3887 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
3888 (queue_and_load_all_dwo_tus): Update.
3889 * dwarf2/index-write.c (write_gdbindex): Update.
3890 (write_debug_names): Update.
3891
3892 2020-02-08 Tom Tromey <tom@tromey.com>
3893
3894 * dwarf2/read.h (struct dwarf2_queue_item): Move from
3895 dwarf2/read.c. Remove "next" member. Add constructor ntad
3896 destructor.
3897 (struct dwarf2_per_objfile) <queue>: New member.
3898 * dwarf2/read.c (struct dwarf2_queue_item): Move to
3899 dwarf2/read.h.
3900 (dwarf2_queue, dwarf2_queue_tail): Remove.
3901 (class dwarf2_queue_guard): Add parameter to constructor. Use
3902 DISABLE_COPY_AND_ASSIGN.
3903 <m_per_objfile>: New member.
3904 <~dwarf2_queue_guard>: Rewrite.
3905 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
3906 Update.
3907 (~dwarf2_queue_item): New.
3908
3909 2020-02-08 Tom Tromey <tom@tromey.com>
3910
3911 * dwarf2/read.c (struct die_info) <has_children>: New member.
3912 (dw2_get_file_names_reader): Remove has_children.
3913 (dw2_get_file_names): Update.
3914 (read_cutu_die_from_dwo): Remove has_children.
3915 (cutu_reader::init_tu_and_read_dwo_dies)
3916 (cutu_reader::cutu_reader): Update.
3917 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
3918 Remove has_children.
3919 (build_type_psymtabs_1, process_skeletonless_type_unit)
3920 (load_partial_comp_unit, load_full_comp_unit): Update.
3921 (create_dwo_cu_reader): Remove has_children.
3922 (create_cus_hash_table, read_die_and_children): Update.
3923 (read_full_die_1,read_full_die): Remove has_children.
3924 (read_signatured_type): Update.
3925 (class cutu_reader) <has_children>: Remove.
3926
3927 2020-02-08 Tom Tromey <tom@tromey.com>
3928
3929 * dwarf2/expr.c: Rename from dwarf2expr.c.
3930 * dwarf2/expr.h: Rename from dwarf2expr.h.
3931 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
3932 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
3933 * dwarf2/frame.c: Rename from dwarf2-frame.c.
3934 * dwarf2/frame.h: Rename from dwarf2-frame.h.
3935 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
3936 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
3937 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
3938 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
3939 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
3940 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
3941 * dwarf2/loc.c: Rename from dwarf2loc.c.
3942 * dwarf2/loc.h: Rename from dwarf2loc.h.
3943 * dwarf2/read.c: Rename from dwarf2read.c.
3944 * dwarf2/read.h: Rename from dwarf2read.h.
3945 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
3946 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
3947 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
3948 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
3949 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
3950 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
3951 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
3952 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
3953 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
3954 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
3955 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
3956 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
3957 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
3958 Update.
3959 * Makefile.in (COMMON_SFILES): Update.
3960 (HFILES_NO_SRCDIR): Update.
3961
3962 2020-02-08 Tom Tromey <tom@tromey.com>
3963
3964 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
3965 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
3966
3967 2020-02-08 Tom Tromey <tom@tromey.com>
3968
3969 * dwarf2read.h (struct die_info): Don't declare.
3970
3971 2020-02-08 Tom Tromey <tom@tromey.com>
3972
3973 * dwarf2read.h (die_info_ptr): Remove typedef.
3974
3975 2020-02-08 Tom Tromey <tom@tromey.com>
3976
3977 * dwarf2read.c (read_call_site_scope)
3978 (handle_data_member_location, dwarf2_add_member_fn)
3979 (mark_common_block_symbol_computed, read_common_block)
3980 (attr_to_dynamic_prop, partial_die_info::read)
3981 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
3982 (dwarf2_symbol_mark_computed, set_die_type): Update.
3983 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
3984 method.
3985 (attr_form_is_block): Don't declare.
3986 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
3987
3988 2020-02-08 Tom Tromey <tom@tromey.com>
3989
3990 * dwarf2read.c (dwarf2_find_base_address, )
3991 (read_call_site_scope, rust_containing_type)
3992 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3993 (handle_data_member_location, dwarf2_add_member_fn)
3994 (get_alignment, read_structure_type, process_structure_scope)
3995 (mark_common_block_symbol_computed, read_common_block)
3996 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
3997 (partial_die_info::read, read_attribute_value, new_symbol)
3998 (lookup_die_type, dwarf2_get_ref_die_offset)
3999 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
4000 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
4001 (dwarf2_symbol_mark_computed): Update.
4002 * dwarf2/attribute.h (struct attribute) <value_as_address,
4003 form_is_section_offset, form_is_constant, form_is_ref>: Declare
4004 methods.
4005 (value_as_address, attr_form_is_section_offset)
4006 (attr_form_is_constant, attr_form_is_ref): Don't declare.
4007 * dwarf2/attribute.c (attribute::value_as_address)
4008 (attribute::form_is_section_offset, attribute::form_is_constant)
4009 (attribute::form_is_ref): Now methods.
4010
4011 2020-02-08 Tom Tromey <tom@tromey.com>
4012
4013 * dwarf2read.c (struct attribute, DW_STRING)
4014 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
4015 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
4016 (attr_form_is_block, attr_form_is_section_offset)
4017 (attr_form_is_constant, attr_form_is_ref): Move.
4018 * dwarf2/attribute.h: New file.
4019 * dwarf2/attribute.c: New file, from dwarf2read.c.
4020 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
4021
4022 2020-02-08 Tom Tromey <tom@tromey.com>
4023
4024 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
4025 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
4026 Move.
4027 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
4028 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
4029 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
4030 abbrev.c.
4031 * dwarf2/abbrev.h: New file.
4032 * dwarf2/abbrev.c: New file, from dwarf2read.c.
4033 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
4034
4035 2020-02-08 Tom Tromey <tom@tromey.com>
4036
4037 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
4038 (dwarf2_section_size, dwarf2_get_section_info)
4039 (create_signatured_type_table_from_debug_names)
4040 (create_addrmap_from_aranges, read_debug_names_from_section)
4041 (get_gdb_index_contents_from_section, read_comp_unit_head)
4042 (error_check_comp_unit_head, read_abbrev_offset)
4043 (create_debug_type_hash_table, init_cu_die_reader)
4044 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
4045 (read_comp_units_from_section, create_cus_hash_table)
4046 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4047 (create_dwp_v2_section, dwarf2_rnglists_process)
4048 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
4049 (abbrev_table_read_table, read_indirect_string_at_offset_from)
4050 (read_indirect_string_from_dwz, read_addr_index_1)
4051 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
4052 (dwarf_decode_macro_bytes, dwarf_decode_macros)
4053 (fill_in_loclist_baton): Update.
4054 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
4055 get_containing_section, get_bfd_owner, get_bfd_section,
4056 get_file_name, get_id, get_flags, empty, read>: Declare methods.
4057 (dwarf2_read_section, get_section_name, get_section_file_name)
4058 (get_containing_section, get_section_bfd_owner)
4059 (get_section_bfd_section, get_section_name, get_section_file_name)
4060 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
4061 declare.
4062 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
4063 (dwarf2_section_info::get_bfd_owner)
4064 (dwarf2_section_info::get_bfd_section)
4065 (dwarf2_section_info::get_name)
4066 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
4067 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
4068 (dwarf2_section_info::read): Now methods.
4069 * dwarf-index-write.c (class debug_names): Update.
4070
4071 2020-02-08 Tom Tromey <tom@tromey.com>
4072
4073 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
4074 Move to dwarf2/section.h.
4075 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
4076 (get_section_bfd_section, get_section_name)
4077 (get_section_file_name, get_section_id, get_section_flags)
4078 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
4079 dwarf2/section.c.
4080 * dwarf2/section.h: New file.
4081 * dwarf2/section.c: New file, from dwarf2read.c.
4082 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
4083
4084 2020-02-08 Tom Tromey <tom@tromey.com>
4085
4086 * dwarf2read.h (read_unsigned_leb128): Don't declare.
4087 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
4088 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
4089 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
4090 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
4091 * dwarf2/leb.h: New file, from dwarf2read.c.
4092 * dwarf2/leb.c: New file, from dwarf2read.c.
4093 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
4094 Remove.
4095 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
4096 (COMMON_SFILES): Add dwarf2/leb.c.
4097
4098 2020-02-08 Joel Brobecker <brobecker@adacore.com>
4099
4100 GDB 9.1 released.
4101
4102 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4103
4104 PR gdb/25190:
4105 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
4106 * gdb/remote.c (remote_console_output): Update.
4107 * gdb/ui-file.c (fputs_unfiltered): Rename to...
4108 (ui_file_puts): ...this.
4109 * gdb/ui-file.h (ui_file_puts): Add declaration.
4110 * gdb/utils.c (emit_style_escape): Update.
4111 (flush_wrap_buffer): Update.
4112 (fputs_maybe_filtered): Update.
4113 (fputs_unfiltered): Add function.
4114
4115 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4116
4117 * gdb/event-loop.c (gdb_wait_for_event): Update.
4118 * gdb/printcmd.c (printf_command): Update.
4119 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
4120 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
4121 (gdb_os_flush_stderr): Update.
4122 * gdb/remote.c (remote_console_output): Update.
4123 * gdb/ui-file.c (gdb_flush): Rename to...
4124 (ui_file_flush): ...this.
4125 (stderr_file::write): Update.
4126 (stderr_file::puts): Update.
4127 * gdb/ui-file.h (gdb_flush): Rename to...
4128 (ui_file_flush): ...this.
4129 * gdb/utils.c (gdb_flush): Add function.
4130 * gdb/utils.h (gdb_flush): Add declaration.
4131
4132 2020-02-07 Tom Tromey <tromey@adacore.com>
4133
4134 PR breakpoints/24915:
4135 * source.c (find_and_open_source): Do not check basenames_may_differ.
4136
4137 2020-02-07 Tom Tromey <tom@tromey.com>
4138
4139 * README: Update gdbserver documentation.
4140 * gdbserver: Move to top level.
4141 * configure.tgt (build_gdbserver): Remove.
4142 * configure.ac: Remove --enable-gdbserver.
4143 * configure: Rebuild.
4144 * Makefile.in (distclean): Don't mention gdbserver.
4145
4146 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
4147
4148 * source-cache.c (source_cache::ensure): Surround
4149 get_plain_source_lines with a try/catch.
4150 (source_cache::get_line_charpos): Get rid of try/catch
4151 and only check for the return value of "ensure".
4152 * tui/tui-source.c (tui_source_window::set_contents):
4153 Simplify "nlines" calculation.
4154
4155 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
4156
4157 * MAINTAINERS (Write After Approval): Add myself.
4158
4159 2020-02-05 Christian Biesinger <cbiesinger@google.com>
4160
4161 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
4162 function call.
4163
4164 2020-02-05 Christian Biesinger <cbiesinger@google.com>
4165
4166 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
4167
4168 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
4169
4170 * nat/riscv-linux-tdesc.h: New file.
4171 * nat/riscv-linux-tdesc.c: New file, taking code from...
4172 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
4173 ... here.
4174 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
4175 NATDEPFILES.
4176
4177 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
4178
4179 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
4180 we don't set the fake simulator ptid to the null_ptid.
4181
4182 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
4183
4184 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
4185 * gdbthread.h (class thread_info) <resumed>: Likewise.
4186 * infrun.c (resume_1): Likewise.
4187 (proceed): Likewise.
4188 (infrun_thread_stop_requested): Likewise.
4189 (stop_all_threads): Likewise.
4190 (handle_inferior_event): Likewise.
4191 (restart_threads): Likewise.
4192 (finish_step_over): Likewise.
4193 (keep_going_stepped_thread): Likewise.
4194 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
4195 (linux_handle_extended_wait): Likewise.
4196 * record-btrace.c (get_thread_current_frame_id): Likewise.
4197 * record-full.c (record_full_wait_1): Likewise.
4198 * remote.c (remote_target::process_initial_stop_replies): Likewise.
4199 * target.c (target_resume): Likewise.
4200 * thread.c (set_running_thread): Likewise.
4201
4202 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4203
4204 * f-valprint.c (f77_print_array_1): Changed datatype of index
4205 variable to LONGEST from int to enable it to contain bound
4206 values correctly.
4207
4208 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
4209
4210 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
4211 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
4212 offsets according to FLEN determined.
4213 (riscv_linux_nat_target::read_description): Determine FLEN
4214 dynamically.
4215 (riscv_linux_nat_target::fetch_registers): Size regset buffer
4216 according to FLEN determined.
4217 (riscv_linux_nat_target::store_registers): Likewise.
4218
4219 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
4220
4221 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
4222 when reg->group is empty and reggroup is not.
4223
4224 2020-01-31 Tom Tromey <tromey@adacore.com>
4225
4226 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
4227 Call beneath target's mourn_inferior after unpushing.
4228
4229 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
4230
4231 PR tui/9765
4232 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
4233 have enough lines to fill the screen, still return the lowest
4234 address we found.
4235
4236 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
4237
4238 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
4239 '-', '<', and '>' commands.
4240
4241 2020-01-29 Pedro Alves <palves@redhat.com>
4242 Sergio Durigan Junior <sergiodj@redhat.com>
4243
4244 * infcmd.c (construct_inferior_arguments): Assert that
4245 'argc' is greater than 0.
4246
4247 2020-01-29 Luis Machado <luis.machado@linaro.org>
4248
4249 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
4250 (BRK_INSN_MASK): Define to 0xd4200000.
4251 (aarch64_program_breakpoint_here_p): New function.
4252 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
4253 * arch-utils.c (default_program_breakpoint_here_p): Moved from
4254 breakpoint.c.
4255 * arch-utils.h (default_program_breakpoint_here_p): Moved from
4256 breakpoint.h
4257 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
4258 call gdbarch_program_breakpoint_here_p.
4259 (program_breakpoint_here): Moved to arch-utils.c, renamed to
4260 default_program_breakpoint_here_p, changed return type to bool and
4261 simplified.
4262 * breakpoint.h (program_breakpoint_here): Moved prototype to
4263 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
4264 return type to bool.
4265 * gdbarch.c: Regenerate.
4266 * gdbarch.h: Regenerate.
4267 * gdbarch.sh (program_breakpoint_here_p): New method.
4268 * infrun.c (handle_signal_stop): Call
4269 gdbarch_program_breakpoint_here_p.
4270
4271 2020-01-26 Tom Tromey <tom@tromey.com>
4272
4273 * ctfread.c (struct ctf_fp_info): Reindent.
4274 (_initialize_ctfread): Remove.
4275
4276 2020-01-26 Tom Tromey <tom@tromey.com>
4277
4278 * psymtab.c (partial_map_expand_apply)
4279 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4280 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4281 (psym_print_stats, psym_expand_symtabs_for_function)
4282 (psym_map_symbol_filenames, psym_map_matching_symbols)
4283 (psym_expand_symtabs_matching)
4284 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4285 (maintenance_check_psymtabs): Use new methods.
4286 * psympriv.h (struct partial_symtab) <readin_p,
4287 get_compunit_symtab>: New methods.
4288 <readin, compunit_symtab>: Remove members.
4289 (struct standard_psymtab): New.
4290 (struct legacy_psymtab): Derive from standard_psymtab.
4291 * dwarf2read.h (struct dwarf2_psymtab): Derive from
4292 standard_psymtab.
4293 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
4294
4295 2020-01-26 Tom Tromey <tom@tromey.com>
4296
4297 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
4298 read_dependencies. Add assert.
4299 * psymtab.c (partial_symtab::read_dependencies): New method.
4300 * psympriv.h (struct partial_symtab) <read_dependencies>: New
4301 method.
4302 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
4303 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
4304 read_dependencies.
4305 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
4306 Add assert.
4307
4308 2020-01-26 Tom Tromey <tom@tromey.com>
4309
4310 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
4311 Call expand_psymtab.
4312 (xcoff_read_symtab): Call expand_psymtab.
4313 (xcoff_start_psymtab, xcoff_end_psymtab): Set
4314 legacy_expand_psymtab.
4315 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
4316 method.
4317 (struct legacy_psymtab) <expand_psymtab>: Implement.
4318 <legacy_expand_psymtab>: New member.
4319 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
4320 (parse_partial_symbols): Set legacy_expand_psymtab.
4321 (psymtab_to_symtab_1): Change argument order. Call
4322 expand_psymtab.
4323 (new_psymtab): Set legacy_expand_psymtab.
4324 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
4325 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
4326 expand_psymtab.
4327 (dwarf2_psymtab::expand_psymtab): Rename from
4328 psymtab_to_symtab_1. Call expand_psymtab.
4329 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
4330 (dbx_end_psymtab): Likewise.
4331 (dbx_psymtab_to_symtab_1): Change argument order. Call
4332 expand_psymtab.
4333 (dbx_read_symtab): Call expand_psymtab.
4334 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
4335 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
4336 (ctf_psymtab::read_symtab): Call expand_psymtab.
4337
4338 2020-01-26 Tom Tromey <tom@tromey.com>
4339
4340 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
4341 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
4342 messages.
4343 * mdebugread.c (mdebug_read_symtab): Remove prints.
4344 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
4345 assert.
4346 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
4347
4348 2020-01-26 Tom Tromey <tom@tromey.com>
4349
4350 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
4351 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
4352 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
4353 legacy_symtab.
4354 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
4355 * psymtab.c (psymtab_to_symtab): Call method.
4356 (dump_psymtab): Update.
4357 * psympriv.h (struct partial_symtab): Add virtual destructor.
4358 <read_symtab>: New method.
4359 (struct legacy_symtab): New.
4360 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
4361 (struct pst_map) <pst>: Now a legacy_psymtab.
4362 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
4363 (new_psymtab): Use legacy_psymtab.
4364 * dwarf2read.h (struct dwarf2_psymtab): New.
4365 (struct dwarf2_per_cu_data) <psymtab>: Use it.
4366 * dwarf2read.c (dwarf2_create_include_psymtab)
4367 (dwarf2_build_include_psymtabs, create_type_unit_group)
4368 (create_partial_symtab, process_psymtab_comp_unit_reader)
4369 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
4370 (set_partial_user): Use dwarf2_psymtab.
4371 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
4372 (psymtab_to_symtab_1, process_full_comp_unit)
4373 (process_full_type_unit, dwarf2_ranges_read)
4374 (dwarf2_get_pc_bounds, psymtab_include_file_name)
4375 (dwarf_decode_lines): Use dwarf2_psymtab.
4376 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
4377 (add_address_entry_worker, write_one_signatured_type)
4378 (recursively_count_psymbols, recursively_write_psymbols)
4379 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
4380 (write_debug_names): Likewise.
4381 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
4382 <pst>: Now a legacy_psymtab.
4383 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
4384 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
4385 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
4386 * ctfread.c (struct ctf_psymtab): New.
4387 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
4388 ctf_psymtab.
4389 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
4390 (create_partial_symtab): Return a ctf_psymtab.
4391 (scan_partial_symbols): Update.
4392
4393 2020-01-26 Tom Tromey <tom@tromey.com>
4394
4395 * xcoffread.c (xcoff_start_psymtab): Use new.
4396 * psymtab.c (partial_symtab::partial_symtab): New constructor,
4397 renamed from start_psymtab_common.
4398 * psympriv.h (struct partial_symtab): Add new constructor.
4399 (start_psymtab_common): Don't declare.
4400 * mdebugread.c (parse_partial_symbols): Use new.
4401 * dwarf2read.c (create_partial_symtab): Use new.
4402 * dbxread.c (start_psymtab): Use new.
4403 * ctfread.c (create_partial_symtab): Use new.
4404
4405 2020-01-26 Tom Tromey <tom@tromey.com>
4406
4407 * xcoffread.c (xcoff_end_psymtab): Use new.
4408 * psymtab.c (start_psymtab_common): Use new.
4409 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
4410 Update.
4411 * psympriv.h (struct partial_symtab): Add parameters to
4412 constructor. Don't inline.
4413 (allocate_psymtab): Don't declare.
4414 * mdebugread.c (new_psymtab): Use new.
4415 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
4416 * dbxread.c (dbx_end_psymtab): Use new.
4417
4418 2020-01-26 Tom Tromey <tom@tromey.com>
4419
4420 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
4421 allocate_psymtab. Update documentation.
4422 * psymtab.c (psymtab_storage::install_psymtab): Rename from
4423 allocate_psymtab. Do not use new.
4424 (allocate_psymtab): Use new. Update.
4425
4426 2020-01-26 Tom Tromey <tom@tromey.com>
4427
4428 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4429 * psymtab.c (psym_print_stats): Update.
4430 * psympriv.h (struct partial_symtab) <readin,
4431 psymtabs_addrmap_supported, anonymous>: Now bool.
4432 * mdebugread.c (psymtab_to_symtab_1): Update.
4433 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
4434 (build_type_psymtabs_reader, psymtab_to_symtab_1)
4435 (process_full_comp_unit, process_full_type_unit): Update.
4436 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
4437 * ctfread.c (psymtab_to_symtab): Update.
4438
4439 2020-01-26 Tom Tromey <tom@tromey.com>
4440
4441 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
4442 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
4443 * psymtab.c (psymtab_storage): Delete psymtabs.
4444 (psymtab_storage::allocate_psymtab): Use new.
4445 (psymtab_storage::discard_psymtab): Use delete.
4446 * psympriv.h (struct partial_symtab): Add constructor and
4447 initializers.
4448
4449 2020-01-26 Tom Tromey <tom@tromey.com>
4450
4451 * machoread.c: Do not include psympriv.h.
4452
4453 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4454
4455 * NEWS: Mention the new option and the set/show commands.
4456
4457 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4458
4459 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
4460 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
4461 (validate_exec_file): New variables, enums, functions.
4462 (exec_file_locate_attach, print_section_info): Style the filenames.
4463 (_initialize_exec): Install show_exec_file_mismatch_command and
4464 set_exec_file_mismatch_command.
4465 * gdbcore.h (validate_exec_file): Declare.
4466 * infcmd.c (attach_command): Call validate_exec_file.
4467 * remote.c ( remote_target::remote_add_inferior): Likewise.
4468
4469 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4470
4471 * frame.c (find_frame_sal): Move call to get_next_frame into more
4472 inner scope.
4473 * inline-frame.c (inilne_state) <inline_state>: Update argument
4474 types.
4475 (inilne_state) <skipped_symbol>: Rename to...
4476 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
4477 (skip_inline_frames): Build vector of skipped symbols and use this
4478 to reate the inline_state.
4479 (inline_skipped_symbol): Add a comment and some assertions, fetch
4480 skipped symbol from the list.
4481
4482 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4483
4484 * buildsym.c (lte_is_less_than): Delete.
4485 (buildsym_compunit::end_symtab_with_blockvector): Create local
4486 lambda function to sort line table entries, and use
4487 std::stable_sort instead of std::sort.
4488 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
4489 markers when looking for a previous line.
4490
4491 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4492
4493 * dwarf2read.c (lnp_state_machine::record_line): Include
4494 end_sequence parameter in debug print out. Record the line if we
4495 are at an end_sequence marker even if it's not the start of a
4496 statement.
4497 * symmisc.c (maintenance_print_one_line_table): Print end of
4498 sequence markers with 'END' not '0'.
4499
4500 2020-01-24 Pedro Alves <palves@redhat.com>
4501
4502 PR gdb/25410
4503 * thread.c (scoped_restore_current_thread::restore): Use
4504 switch_to_inferior_no_thread.
4505 * exec.c: Include "progspace-and-thread.h".
4506 (add_target_sections, remove_target_sections):
4507 scoped_restore_current_pspace_and_thread instead of
4508 scoped_restore_current_thread.
4509 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
4510 and aspace to the inferior before calling clone_program_space.
4511 Remove stale comment.
4512
4513 2020-01-24 Christian Biesinger <cbiesinger@google.com>
4514
4515 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
4516 (arm_netbsd_nat_target::fetch_registers): ...this.
4517 (arm_nbsd_nat_target::store_registers): Rename to...
4518 (arm_netbsd_nat_target::store_registers): ...this.
4519
4520 2020-01-24 Christian Biesinger <cbiesinger@google.com>
4521
4522 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4523 register_t.
4524
4525 2020-01-24 Christian Biesinger <cbiesinger@google.com>
4526
4527 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
4528 Update comment.
4529 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
4530 Likewise.
4531 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
4532 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
4533 the correct replacement (iterate_over_regset_sections).
4534 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
4535 Update comment.
4536
4537 2020-01-24 Graham Markall <graham.markall@embecosm.com>
4538
4539 PR gdb/23718
4540 * gdb/python/python.c (execute_gdb_command): Call
4541 async_enable_stdin in catch block.
4542
4543 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4544
4545 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
4546 SWITCH_THRU_ALL_UIS.
4547
4548 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4549
4550 PR tui/9765
4551 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
4552 comment, add extra parameter, and update to store previous symbol
4553 when appropriate.
4554 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
4555 add extra parameter.
4556 * tui/tui-disasm.c (tui_disassemble): Update header comment,
4557 remove unneeded parameter, add try/catch around gdb_print_insn,
4558 rewrite to add items to asm_lines vector.
4559 (tui_find_backward_disassembly_start_address): New function.
4560 (tui_find_disassembly_address): Updated throughout.
4561 (tui_disasm_window::set_contents): Update for changes to
4562 tui_disassemble.
4563 (tui_disasm_window::do_scroll_vertical): No need to adjust the
4564 number of lines to scroll.
4565
4566 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4567
4568 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
4569 (SECT_OFF_DATA): Likewise.
4570 (SECT_OFF_RODATA): Likewise.
4571 (SECT_OFF_TEXT): Likewise.
4572 (SECT_OFF_BSS): Likewise.
4573 (struct objfile) <text_section_offset, data_section_offset>: New
4574 methods.
4575 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
4576 objfile::text_section_offset.
4577 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
4578 * coffread.c (coff_symtab_read): Likewise.
4579 (enter_linenos): Likewise.
4580 (process_coff_symbol): Likewise.
4581 * ctfread.c (get_objfile_text_range): Likewise.
4582 * dtrace-probe.c (dtrace_probe::get_relocated_address):
4583 Use objfile::data_section_offset.
4584 * dwarf2-frame.c (execute_cfa_program): Use
4585 objfile::text_section_offset.
4586 (dwarf2_frame_find_fde): Likewise.
4587 * dwarf2read.c (create_addrmap_from_index): Likewise.
4588 (create_addrmap_from_aranges): Likewise.
4589 (dw2_find_pc_sect_compunit_symtab): Likewise.
4590 (process_psymtab_comp_unit_reader): Likewise.
4591 (add_partial_symbol): Likewise.
4592 (add_partial_subprogram): Likewise.
4593 (process_full_comp_unit): Likewise.
4594 (read_file_scope): Likewise.
4595 (read_func_scope): Likewise.
4596 (read_lexical_block_scope): Likewise.
4597 (read_call_site_scope): Likewise.
4598 (dwarf2_rnglists_process): Likewise.
4599 (dwarf2_ranges_process): Likewise.
4600 (dwarf2_ranges_read): Likewise.
4601 (dwarf_decode_lines_1): Likewise.
4602 (new_symbol): Likewise.
4603 (dwarf2_fetch_die_loc_sect_off): Likewise.
4604 (dwarf2_per_cu_text_offset): Likewise.
4605 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4606 * hppa-tdep.c (read_unwind_info): Likewise.
4607 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
4608 * psympriv.h (struct partial_symtab): Likewise.
4609 * psymtab.c (find_pc_sect_psymtab): Likewise.
4610 * solib-svr4.c (enable_break): Likewise.
4611 * stap-probe.c (relocate_address): Use
4612 objfile::data_section_offset.
4613 * xcoffread.c (enter_line_range): Use
4614 objfile::text_section_offset.
4615 (read_xcoff_symtab): Likewise.
4616
4617 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
4618
4619 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
4620 declaration to narrower scopes.
4621
4622 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
4623
4624 * darwin-nat.h (struct darwin_exception_msg, enum
4625 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
4626 Move up.
4627 (class darwin_nat_target) <wait_1, check_new_threads,
4628 decode_exception_message, decode_message, stop_inferior,
4629 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
4630 * darwin-nat.c (darwin_check_new_threads): Rename to...
4631 (darwin_nat_target::check_new_threads): ... this.
4632 (darwin_suspend_inferior_it): Remove.
4633 (darwin_decode_exception_message): Rename to...
4634 (darwin_nat_target::decode_exception_message): ... this.
4635 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
4636 (darwin_decode_message): Rename to...
4637 (darwin_nat_target::decode_message): ... this.
4638 (cancel_breakpoint): Rename to...
4639 (darwin_nat_target::cancel_breakpoint): ... this.
4640 (darwin_wait): Rename to...
4641 (darwin_nat_target::wait_1): ... this. Use range-based for loop
4642 instead of iterate_over_inferiors.
4643 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
4644 (darwin_stop_inferior): Rename to...
4645 (darwin_nat_target::stop_inferior): ... this.
4646 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
4647 (darwin_init_thread_list): Rename to...
4648 (darwin_nat_target::init_thread_list): ... this.
4649 (darwin_ptrace_him): Rename to...
4650 (darwin_nat_target::ptrace_him): ... this.
4651 (darwin_nat_target::create_inferior): Pass lambda function to
4652 fork_inferior.
4653 (darwin_nat_target::detach): Call stop_inferior instead of
4654 darwin_stop_inferior.
4655 * fork-inferior.h (fork_inferior): Change init_trace_fun
4656 parameter to gdb::function_view.
4657 * fork-inferior.c (fork_inferior): Likewise.
4658
4659 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
4660
4661 * i386-cygwin-tdep.c (core_process_module_section): Update.
4662 * windows-nat.c (struct lm_info_windows): Add text_offset.
4663 (windows_xfer_shared_libraries): Update.
4664 * windows-tdep.c (windows_xfer_shared_library):
4665 Add text_offset_cached argument.
4666 * windows-tdep.h (windows_xfer_shared_library): Update.
4667
4668 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
4669
4670 * gdbarch.sh: Add declaration for _initialize_gdbarch.
4671
4672 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
4675 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
4676 replace with range-based for.
4677 (gdbsim_interrupt_inferior): Remove.
4678 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
4679 with a range-based for. Inline code from
4680 gdbsim_interrupt_inferior.
4681
4682 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * infrun.c (proceed): Fix indentation.
4685
4686 2020-01-21 Tom Tromey <tromey@adacore.com>
4687
4688 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
4689 * python/python.c (python_extension_ops): Update.
4690 (gdbpy_colorize): New function.
4691 * python/lib/gdb/__init__.py (colorize): New function.
4692 * extension.h (ext_lang_colorize): Declare.
4693 * extension.c (ext_lang_colorize): New function.
4694 * extension-priv.h (struct extension_language_ops) <colorize>: New
4695 member.
4696 * cli/cli-style.c (_initialize_cli_style): Update help text.
4697
4698 2020-01-21 Luis Machado <luis.machado@linaro.org>
4699
4700 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
4701 <cond>: Change type to bool.
4702 (aarch64_displaced_step_b_cond): Update cond to use bool type.
4703 (aarch64_displaced_step_cb): Likewise.
4704 (aarch64_displaced_step_tb): Likewise.
4705
4706 2020-01-21 Luis Machado <luis.machado@linaro.org>
4707
4708 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
4709 output.
4710
4711 2020-01-21 Luis Machado <luis.machado@linaro.org>
4712
4713 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
4714 <pc_adjust>: Adjust the documentation.
4715 (aarch64_displaced_step_fixup): Check if PC really moved before
4716 adjusting it.
4717
4718 2020-01-19 Tom Tromey <tom@tromey.com>
4719
4720 * disasm.c (~gdb_disassembler): New destructor.
4721 (gdb_buffered_insn_length): Call disassemble_free_target.
4722 * disasm.h (class gdb_disassembler): Declare destructor. Use
4723 DISABLE_COPY_AND_ASSIGN.
4724
4725 2020-01-19 Tom Tromey <tom@tromey.com>
4726
4727 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
4728 (die_reader_func_ftype): Remove.
4729 (cutu_reader): New class.
4730 (dw2_get_file_names_reader): Remove "data" parameter.
4731 (dw2_get_file_names): Use cutu_reader.
4732 (create_debug_type_hash_table): Update.
4733 (read_cutu_die_from_dwo): Update comment.
4734 (lookup_dwo_unit): Add dwo_name parameter.
4735 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
4736 die_reader_func_ftype and data parameters.
4737 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
4738 Remove die_reader_func_ftype and data parameters.
4739 (~cutu_reader): New; from init_cutu_and_read_dies.
4740 (cutu_reader::cutu_reader): Rename from
4741 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
4742 and data parameters.
4743 (init_cutu_and_read_dies_simple): Remove.
4744 (struct process_psymtab_comp_unit_data): Remove.
4745 (process_psymtab_comp_unit_reader): Remove data parameter; add
4746 want_partial_unit and pretend_language parameters.
4747 (process_psymtab_comp_unit): Use cutu_reader.
4748 (build_type_psymtabs_reader): Remove data parameter.
4749 (build_type_psymtabs_1): Use cutu_reader.
4750 (process_skeletonless_type_unit): Likewise.
4751 (load_partial_comp_unit_reader): Remove.
4752 (load_partial_comp_unit): Use cutu_reader.
4753 (load_full_comp_unit_reader): Remove.
4754 (load_full_comp_unit): Use cutu_reader.
4755 (struct create_dwo_cu_data): Remove.
4756 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
4757 dwo_unit parameters.
4758 (create_cus_hash_table): Use cutu_reader.
4759 (struct dwarf2_read_addr_index_data): Remove.
4760 (dwarf2_read_addr_index_reader): Remove.
4761 (dwarf2_read_addr_index): Use cutu_reader.
4762 (read_signatured_type_reader): Remove.
4763 (read_signatured_type): Use cutu_reader.
4764
4765 2020-01-19 Tom Tromey <tom@tromey.com>
4766
4767 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
4768 * tui/tui-wingeneral.h (class tui_suppress_output): New.
4769 (tui_wrefresh): Declare.
4770 * tui/tui-wingeneral.c (suppress_output): New global.
4771 (tui_suppress_output, ~tui_suppress_output): New constructor and
4772 destructor.
4773 (tui_wrefresh): New function.
4774 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
4775 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
4776 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
4777 method.
4778 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
4779 tui_wrefresh.
4780 (tui_data_window::no_refresh): New method.
4781 (tui_data_item_window::refresh_window): Call tui_wrefresh.
4782 (tui_reg_command): Use tui_suppress_output
4783 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
4784 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
4785 method.
4786 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
4787
4788 2020-01-19 Tom Tromey <tom@tromey.com>
4789
4790 * tui/tui-winsource.c (tui_update_source_windows_with_line):
4791 Handle case where symtab is null.
4792
4793 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
4794
4795 * linux-fork.c (one_fork_p): Simplify.
4796
4797 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
4798
4799 * top.c (struct qt_args): Remove.
4800 (kill_or_detach): Change return type to void, replace `void *`
4801 parameter with a proper one.
4802 (print_inferior_quit_action): Likewise.
4803 (quit_confirm): Use range-based for loop to iterate over inferiors.
4804 (quit_force): Likewise.
4805
4806 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
4807
4808 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
4809 `void *` parameter with proper parameters.
4810 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
4811 (print_one_inferior): Change return type to void, replace `void *`
4812 parameter with proper parameters.
4813 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
4814 inferiors.
4815 (get_other_inferior): Remove.
4816 (mi_cmd_remove_inferior): Use range-based loop to iterate over
4817 inferiors.
4818
4819 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
4820
4821 * mi/mi-interp.c (report_initial_inferior): Remove.
4822 (mi_interp::init): Use range-based for to iterate over inferiors.
4823
4824 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
4825
4826 * python/py-inferior.c (build_inferior_list): Remove.
4827 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
4828
4829 2020-01-16 Christian Biesinger <cbiesinger@google.com>
4830
4831 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
4832 (btrace_stitch_trace): Likewise.
4833 * charset.c (intermediate_encoding): Likewise (vaild).
4834 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
4835 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
4836 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
4837
4838 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
4839
4840 * windows-tdep.c (windows_get_tlb_type):
4841 Add rtl_user_process_parameters type.
4842
4843 2020-01-16 Pedro Alves <palves@redhat.com>
4844 Norbert Lange <nolange79@gmail.com>
4845
4846 PR build/24805
4847 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
4848 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
4849 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
4850 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
4851 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
4852 (ps_plog): Redeclare exported functions with default visibility.
4853
4854 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
4855
4856 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
4857 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
4858
4859 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * infcmd.c (post_create_inferior): Use get_thread_regcache
4862 instead of get_current_regcache.
4863
4864 2020-01-14 Tom Tromey <tom@tromey.com>
4865
4866 PR symtab/12535:
4867 * python/python.c (gdbpy_decode_line): Treat empty string the same
4868 as no argument.
4869
4870 2020-01-14 Tom Tromey <tom@tromey.com>
4871
4872 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
4873
4874 2020-01-14 Tom Tromey <tom@tromey.com>
4875
4876 * nat/linux-btrace.c: Don't include <config.h>.
4877 * nat/linux-ptrace.c: Don't include <config.h>.
4878 * nat/x86-linux-dregs.c: Don't include <config.h>.
4879
4880 2020-01-14 Tom Tromey <tom@tromey.com>
4881
4882 * configure: Rebuild.
4883 * configure.ac: Move many checks to ../gdbsupport/common.m4.
4884
4885 2020-01-14 Tom Tromey <tom@tromey.com>
4886
4887 * nat/x86-linux-dregs.c: Include configh.h.
4888 * nat/linux-ptrace.c: Include configh.h.
4889 * nat/linux-btrace.c: Include configh.h.
4890 * defs.h: Include config.h, bfd.h.
4891 * configure.ac: Don't source common.host.
4892 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
4893 * configure: Rebuild.
4894 * acinclude.m4: Update path.
4895 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
4896 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
4897 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
4898 (CLIBS): Add LIBSUPPORT.
4899 (CDEPS): Likewise.
4900 (COMMON_SFILES): Remove gdbsupport files.
4901 (HFILES_NO_SRCDIR): Likewise.
4902 (stamp-version): Update path to create-version.sh.
4903 (ALLDEPFILES): Remove gdbsupport files.
4904
4905 2020-01-14 Tom Tromey <tom@tromey.com>
4906
4907 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
4908 USE_WIN32API when needed.
4909 * configure.ac (USE_WIN32API): Don't define.
4910 (WIN32LIBS): Use WIN32APILIBS.
4911 * configure: Rebuild.
4912
4913 2020-01-14 Tom Tromey <tom@tromey.com>
4914
4915 * configure: Rebuild.
4916 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
4917
4918 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4919
4920 * skip.c (skip_function_command): Make skip w/o arguments use the
4921 name of the inlined function if pc is inside any inlined function.
4922
4923 2020-01-14 Luis Machado <luis.machado@linaro.org>
4924
4925 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
4926 * infrun.c (resume_1): Likewise.
4927 (handle_inferior_event): Remove stale comment.
4928 * linux-nat.c (linux_nat_target::resume): Update comments.
4929 (save_stop_reason): Likewise.
4930 (linux_nat_filter_event): Likewise.
4931 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
4932
4933 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4934
4935 * elfread.c (record_minimal_symbol): Set section index to 0 for
4936 non-allocatable sections.
4937
4938
4939 2020-01-13 Ali Tamur <tamur@google.com>
4940
4941 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
4942 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
4943 to gdb::optional. Update comments.
4944 (dwo_file): Update comments.
4945 (read_attribute): Update API to take an additional out parameter,
4946 need_reprocess. This is used to mark attributes that need other
4947 attributes (e.g. str_offsets_base) for correct computation which may not
4948 have been read yet.
4949 (read_attribute_reprocess): New function declaration.
4950 (read_addr_index): Likewise.
4951 (read_dwo_str_index): Likewise.
4952 (read_stub_str_index): Likewise.
4953 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
4954 (lookup_addr_base): New function definition.
4955 (lookup_ranges_base): Likewise.
4956 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
4957 lookup_ranges_base.
4958 (init_cutu_and_read_dies): Update comments.
4959 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
4960 unit. This is used to inherit parent's str_offsets_base and addr_base.
4961 Update comments.
4962 (init_cutu_and_read_dies_simple): Reflect API changes.
4963 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
4964 (create_cus_hash_table): Change API to take parent compile unit.
4965 Reflect API changes.
4966 (open_and_init_dwo_file): Reflect API changes.
4967 (dwarf2_get_pc_bounds): Update comments.
4968 (dwarf2_record_block_ranges): Likewise.
4969 (read_full_die_1): Change implementation to reprocess attributes that
4970 need str_offsets_base and addr_base.
4971 (partial_die_info::read): Likewise.
4972 (read_attribute_reprocess): New function definition.
4973 (read_attribute_value): Change API to take an additional out parameter,
4974 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
4975 when a non-dwo compile unit has index based attributes.
4976 (read_attribute): Reflect API changes.
4977 (read_addr_index_1): Reflect API changes. Update comments.
4978 (dwarf2_read_addr_index_data): Reflect API changes.
4979 (dwarf2_read_addr_index): Likewise.
4980 (read_str_index): Change API and implementation. This becomes a helper
4981 to be used by the new string index related methods. Update error
4982 message and comments.
4983 (read_dwo_str_index): New function definition.
4984 (read_stub_str_index): Likewise.
4985 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
4986 * symfile.h (dwarf2_debug_sections): Likewise.
4987 * xcoffread.c (dwarf2_debug_sections): Likewise.
4988
4989 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4990
4991 * gdbcore.h (struct core_fns) <core_read_registers>: Change
4992 core_reg_sect type to gdb_byte *.
4993 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
4994 * cris-tdep.c (fetch_core_registers): Likewise.
4995 * corelow.c (core_target::get_core_register_section): Change
4996 type of `contents` to gdb::byte_vector.
4997
4998 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * tui/tui-wingeneral.c (box_win): Position the title in the center
5001 of the border.
5002
5003 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5004
5005 * corelow.c (core_target::get_core_register_section): Use
5006 std::vector instead of alloca.
5007
5008 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5009
5010 * warning.m4: Add -Wmissing-declarations to build_warnings.
5011 * configure: Re-generate.
5012
5013 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5014
5015 * python/python.c (init__gdb_module): Add declaration.
5016
5017 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5018
5019 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
5020 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
5021 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
5022 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
5023 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
5024 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
5025 * ada-exp.y (_initialize_ada_exp): Add declaration.
5026 * ada-lang.c (_initialize_ada_language): Add declaration.
5027 * ada-tasks.c (_initialize_tasks): Add declaration.
5028 * agent.c (_initialize_agent): Add declaration.
5029 * aix-thread.c (_initialize_aix_thread): Add declaration.
5030 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
5031 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
5032 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
5033 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
5034 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
5035 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5036 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
5037 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
5038 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
5039 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
5040 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
5041 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
5042 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
5043 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
5044 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
5045 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
5046 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
5047 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
5048 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
5049 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
5050 * annotate.c (_initialize_annotate): Add declaration.
5051 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
5052 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
5053 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
5054 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
5055 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
5056 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
5057 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
5058 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
5059 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
5060 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
5061 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
5062 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
5063 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5064 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
5065 * auto-load.c (_initialize_auto_load): Add declaration.
5066 * auxv.c (_initialize_auxv): Add declaration.
5067 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
5068 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
5069 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
5070 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
5071 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
5072 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
5073 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
5074 * breakpoint.c (_initialize_breakpoint): Add declaration.
5075 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
5076 * btrace.c (_initialize_btrace): Add declaration.
5077 * charset.c (_initialize_charset): Add declaration.
5078 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
5079 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5080 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5081 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
5082 * cli/cli-script.c (_initialize_cli_script): Add declaration.
5083 * cli/cli-style.c (_initialize_cli_style): Add declaration.
5084 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
5085 * coffread.c (_initialize_coffread): Add declaration.
5086 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
5087 * compile/compile.c (_initialize_compile): Add declaration.
5088 * complaints.c (_initialize_complaints): Add declaration.
5089 * completer.c (_initialize_completer): Add declaration.
5090 * copying.c (_initialize_copying): Add declaration.
5091 * corefile.c (_initialize_core): Add declaration.
5092 * corelow.c (_initialize_corelow): Add declaration.
5093 * cp-abi.c (_initialize_cp_abi): Add declaration.
5094 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
5095 * cp-support.c (_initialize_cp_support): Add declaration.
5096 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
5097 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
5098 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
5099 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
5100 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
5101 * ctfread.c (_initialize_ctfread): Add declaration.
5102 * d-lang.c (_initialize_d_language): Add declaration.
5103 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
5104 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
5105 * dbxread.c (_initialize_dbxread): Add declaration.
5106 * dcache.c (_initialize_dcache): Add declaration.
5107 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
5108 * disasm.c (_initialize_disasm): Add declaration.
5109 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
5110 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
5111 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
5112 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
5113 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
5114 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
5115 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
5116 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
5117 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
5118 * elfread.c (_initialize_elfread): Add declaration.
5119 * exec.c (_initialize_exec): Add declaration.
5120 * extension.c (_initialize_extension): Add declaration.
5121 * f-lang.c (_initialize_f_language): Add declaration.
5122 * f-valprint.c (_initialize_f_valprint): Add declaration.
5123 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
5124 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
5125 * filesystem.c (_initialize_filesystem): Add declaration.
5126 * findcmd.c (_initialize_mem_search): Add declaration.
5127 * findvar.c (_initialize_findvar): Add declaration.
5128 * fork-child.c (_initialize_fork_child): Add declaration.
5129 * frame-base.c (_initialize_frame_base): Add declaration.
5130 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5131 * frame.c (_initialize_frame): Add declaration.
5132 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
5133 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
5134 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
5135 * gcore.c (_initialize_gcore): Add declaration.
5136 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
5137 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
5138 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
5139 * gdbarch.c (_initialize_gdbarch): Add declaration.
5140 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
5141 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
5142 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
5143 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
5144 * go-lang.c (_initialize_go_language): Add declaration.
5145 * go32-nat.c (_initialize_go32_nat): Add declaration.
5146 * guile/guile.c (_initialize_guile): Add declaration.
5147 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5148 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
5149 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
5150 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
5151 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
5152 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
5153 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
5154 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
5155 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
5156 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
5157 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
5158 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
5159 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
5160 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
5161 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
5162 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
5163 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
5164 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
5165 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
5166 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
5167 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
5168 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
5169 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
5170 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
5171 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
5172 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
5173 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
5174 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
5175 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
5176 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
5177 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
5178 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
5179 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
5180 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
5181 * infcall.c (_initialize_infcall): Add declaration.
5182 * infcmd.c (_initialize_infcmd): Add declaration.
5183 * inflow.c (_initialize_inflow): Add declaration.
5184 * infrun.c (_initialize_infrun): Add declaration.
5185 * interps.c (_initialize_interpreter): Add declaration.
5186 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
5187 * jit.c (_initialize_jit): Add declaration.
5188 * language.c (_initialize_language): Add declaration.
5189 * linux-fork.c (_initialize_linux_fork): Add declaration.
5190 * linux-nat.c (_initialize_linux_nat): Add declaration.
5191 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
5192 * linux-thread-db.c (_initialize_thread_db): Add declaration.
5193 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
5194 * m2-lang.c (_initialize_m2_language): Add declaration.
5195 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
5196 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
5197 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
5198 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
5199 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5200 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
5201 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
5202 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
5203 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
5204 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5205 * machoread.c (_initialize_machoread): Add declaration.
5206 * macrocmd.c (_initialize_macrocmd): Add declaration.
5207 * macroscope.c (_initialize_macroscope): Add declaration.
5208 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
5209 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
5210 * maint.c (_initialize_maint_cmds): Add declaration.
5211 * mdebugread.c (_initialize_mdebugread): Add declaration.
5212 * memattr.c (_initialize_mem): Add declaration.
5213 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
5214 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
5215 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
5216 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
5217 * mi/mi-main.c (_initialize_mi_main): Add declaration.
5218 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
5219 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
5220 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
5221 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
5222 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
5223 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
5224 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
5225 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
5226 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
5227 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5228 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
5229 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
5230 * mipsread.c (_initialize_mipsread): Add declaration.
5231 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
5232 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
5233 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
5234 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
5235 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
5236 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
5237 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
5238 * nto-procfs.c (_initialize_procfs): Add declaration.
5239 * objc-lang.c (_initialize_objc_language): Add declaration.
5240 * observable.c (_initialize_observer): Add declaration.
5241 * opencl-lang.c (_initialize_opencl_language): Add declaration.
5242 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
5243 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
5244 * osabi.c (_initialize_gdb_osabi): Add declaration.
5245 * osdata.c (_initialize_osdata): Add declaration.
5246 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5247 * parse.c (_initialize_parse): Add declaration.
5248 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
5249 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
5250 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
5251 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
5252 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
5253 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
5254 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
5255 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
5256 * printcmd.c (_initialize_printcmd): Add declaration.
5257 * probe.c (_initialize_probe): Add declaration.
5258 * proc-api.c (_initialize_proc_api): Add declaration.
5259 * proc-events.c (_initialize_proc_events): Add declaration.
5260 * proc-service.c (_initialize_proc_service): Add declaration.
5261 * procfs.c (_initialize_procfs): Add declaration.
5262 * producer.c (_initialize_producer): Add declaration.
5263 * psymtab.c (_initialize_psymtab): Add declaration.
5264 * python/python.c (_initialize_python): Add declaration.
5265 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
5266 * record-btrace.c (_initialize_record_btrace): Add declaration.
5267 * record-full.c (_initialize_record_full): Add declaration.
5268 * record.c (_initialize_record): Add declaration.
5269 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
5270 * regcache.c (_initialize_regcache): Add declaration.
5271 * reggroups.c (_initialize_reggroup): Add declaration.
5272 * remote-notif.c (_initialize_notif): Add declaration.
5273 * remote-sim.c (_initialize_remote_sim): Add declaration.
5274 * remote.c (_initialize_remote): Add declaration.
5275 * reverse.c (_initialize_reverse): Add declaration.
5276 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
5277 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
5278 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
5279 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
5280 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
5281 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
5282 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
5283 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
5284 Add declaration.
5285 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
5286 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
5287 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
5288 * rust-exp.y (_initialize_rust_exp): Add declaration.
5289 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
5290 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
5291 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
5292 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
5293 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
5294 * score-tdep.c (_initialize_score_tdep): Add declaration.
5295 * ser-go32.c (_initialize_ser_dos): Add declaration.
5296 * ser-mingw.c (_initialize_ser_windows): Add declaration.
5297 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
5298 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
5299 * ser-uds.c (_initialize_ser_socket): Add declaration.
5300 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
5301 * serial.c (_initialize_serial): Add declaration.
5302 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
5303 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
5304 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
5305 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
5306 * skip.c (_initialize_step_skip): Add declaration.
5307 * sol-thread.c (_initialize_sol_thread): Add declaration.
5308 * solib-aix.c (_initialize_solib_aix): Add declaration.
5309 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
5310 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
5311 * solib-frv.c (_initialize_frv_solib): Add declaration.
5312 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5313 * solib-target.c (_initialize_solib_target): Add declaration.
5314 * solib.c (_initialize_solib): Add declaration.
5315 * source-cache.c (_initialize_source_cache): Add declaration.
5316 * source.c (_initialize_source): Add declaration.
5317 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
5318 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
5319 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
5320 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
5321 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
5322 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
5323 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
5324 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
5325 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
5326 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
5327 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
5328 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
5329 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
5330 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
5331 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
5332 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
5333 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
5334 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
5335 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
5336 * stabsread.c (_initialize_stabsread): Add declaration.
5337 * stack.c (_initialize_stack): Add declaration.
5338 * stap-probe.c (_initialize_stap_probe): Add declaration.
5339 * std-regs.c (_initialize_frame_reg): Add declaration.
5340 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
5341 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
5342 * symfile.c (_initialize_symfile): Add declaration.
5343 * symmisc.c (_initialize_symmisc): Add declaration.
5344 * symtab.c (_initialize_symtab): Add declaration.
5345 * target.c (_initialize_target): Add declaration.
5346 * target-connection.c (_initialize_target_connection): Add
5347 declaration.
5348 * target-dcache.c (_initialize_target_dcache): Add declaration.
5349 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
5350 * thread.c (_initialize_thread): Add declaration.
5351 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
5352 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
5353 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
5354 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
5355 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
5356 * tracectf.c (_initialize_ctf): Add declaration.
5357 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
5358 * tracefile.c (_initialize_tracefile): Add declaration.
5359 * tracepoint.c (_initialize_tracepoint): Add declaration.
5360 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
5361 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
5362 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
5363 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
5364 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
5365 * tui/tui-win.c (_initialize_tui_win): Add declaration.
5366 * tui/tui.c (_initialize_tui): Add declaration.
5367 * typeprint.c (_initialize_typeprint): Add declaration.
5368 * ui-style.c (_initialize_ui_style): Add declaration.
5369 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
5370 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
5371 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
5372 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
5373 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
5374 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
5375 * unittests/filtered_iterator-selftests.c
5376 (_initialize_filtered_iterator_selftests): Add declaration.
5377 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
5378 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
5379 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
5380 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
5381 * unittests/main-thread-selftests.c
5382 (_initialize_main_thread_selftests): Add declaration.
5383 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
5384 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
5385 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
5386 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
5387 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
5388 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
5389 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
5390 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
5391 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
5392 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
5393 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
5394 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
5395 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
5396 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
5397 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
5398 declaration.
5399 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
5400 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
5401 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
5402 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
5403 * user-regs.c (_initialize_user_regs): Add declaration.
5404 * utils.c (_initialize_utils): Add declaration.
5405 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
5406 * valops.c (_initialize_valops): Add declaration.
5407 * valprint.c (_initialize_valprint): Add declaration.
5408 * value.c (_initialize_values): Add declaration.
5409 * varobj.c (_initialize_varobj): Add declaration.
5410 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
5411 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
5412 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5413 * windows-nat.c (_initialize_windows_nat): Add declaration.
5414 (_initialize_check_for_gdb_ini): Add declaration.
5415 (_initialize_loadable): Add declaration.
5416 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
5417 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
5418 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
5419 * xcoffread.c (_initialize_xcoffread): Add declaration.
5420 * xml-support.c (_initialize_xml_support): Add declaration.
5421 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
5422 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
5423 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
5424 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
5425
5426 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5427
5428 * regformats/regdat.sh: Generate declaration for init function.
5429
5430 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5431
5432 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
5433 up.
5434 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
5435 close_one_inferior>: New methods.
5436 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
5437 pass down target to find_inferior_pid.
5438 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
5439 Pass down target to find_inferior_ptid.
5440 (gdbsim_target::create_inferior): Pass down target to
5441 add_thread_silent.
5442 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
5443 target down to find_inferior_ptid and switch_to_thread.
5444 (gdbsim_target::close): Update to call close_one_inferior.
5445 (struct resume_data): Remove.
5446 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
5447 directly, rather than through a void pointer.
5448 (gdbsim_target::resume): Update to call resume_one_inferior.
5449
5450 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5451
5452 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
5453
5454 2020-01-12 Pedro Alves <palves@redhat.com>
5455
5456 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
5457 directly for the current inferior instead of
5458 discard_all_inferiors.
5459 (discard_all_inferiors): Delete.
5460
5461 2020-01-11 Tom Tromey <tom@tromey.com>
5462
5463 * tui/tui-wingeneral.c (box_win): Check cli_styling.
5464 * tui/tui-winsource.c (tui_source_window_base::refill): Use
5465 deprecated_safe_get_selected_frame.
5466
5467 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5468
5469 * inferior.c (print_inferior): Switch inferior before printing it.
5470
5471 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
5472 Pedro Alves <palves@redhat.com>
5473
5474 * progspace-and-thread.c (switch_to_program_space_and_thread):
5475 Assert there's an inferior for PSPACE. Use
5476 switch_to_inferior_no_thread to switch the inferior too.
5477 * progspace.c (program_space::~program_space): Call
5478 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
5479 (program_space::free_all_objfiles): Don't call clear_symtab_users
5480 here.
5481 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
5482
5483 2020-01-10 Pedro Alves <palves@redhat.com>
5484
5485 * NEWS: Mention multi-target debugging, "info connections", and
5486 "add-inferior -no-connection".
5487
5488 2020-01-10 Pedro Alves <palves@redhat.com>
5489
5490 * infrun.c: Include "target-connection.h".
5491 (check_multi_target_resumption): New.
5492 (proceed): Call it.
5493 * target-connection.c (make_target_connection_string): Make
5494 extern.
5495 * target-connection.h (make_target_connection_string): Declare.
5496
5497 2020-01-10 Pedro Alves <palves@redhat.com>
5498
5499 * Makefile.in (COMMON_SFILES): Add target-connection.c.
5500 * inferior.c (uiout_field_connection): New function.
5501 (print_inferior): Add new "connection-id" column.
5502 (add_inferior_command): Show connection number/string of added
5503 inferior.
5504 * process-stratum-target.h
5505 (process_stratum_target::connection_string): New virtual method.
5506 (process_stratum_target::connection_number): New field.
5507 * remote.c (remote_target::connection_string): New override.
5508 * target-connection.c: New file.
5509 * target-connection.h: New file.
5510 * target.c (decref_target): Remove process_stratum targets from
5511 the connection list.
5512 (target_stack::push): Add process_stratum targets to the
5513 connection list.
5514
5515 2020-01-10 Pedro Alves <palves@redhat.com>
5516
5517 Revert:
5518 2016-04-12 Pedro Alves <palves@redhat.com>
5519 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
5520 Remove references to name.
5521 * serial.h (struct serial) <name>: Delete.
5522
5523 2020-01-10 Pedro Alves <palves@redhat.com>
5524
5525 * gdbarch-selftests.c (register_to_value_test): Remove "target
5526 already pushed" check.
5527
5528 2020-01-10 Pedro Alves <palves@redhat.com>
5529 John Baldwin <jhb@FreeBSD.org>
5530
5531 * aarch64-linux-nat.c
5532 (aarch64_linux_nat_target::thread_architecture): Adjust.
5533 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
5534 (task_command_1): Likewise.
5535 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
5536 (aix_thread_target::wait, aix_thread_target::fetch_registers)
5537 (aix_thread_target::store_registers)
5538 (aix_thread_target::thread_alive): Adjust.
5539 * amd64-fbsd-tdep.c: Include "inferior.h".
5540 (amd64fbsd_get_thread_local_address): Pass down target.
5541 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
5542 thread's gdbarch instead of target_gdbarch.
5543 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
5544 get_last_target_status.
5545 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
5546 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
5547 inferiors.
5548 (update_inserted_breakpoint_locations): Skip if inferiors with no
5549 execution.
5550 (update_global_location_list): When handling moribund locations,
5551 find representative inferior for location's pspace, and use thread
5552 count of its process_stratum target.
5553 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
5554 * bsd-uthread.c (bsd_uthread_target::wait): Use
5555 as_process_stratum_target and adjust thread_change_ptid and
5556 add_thread calls.
5557 (bsd_uthread_target::update_thread_list): Use
5558 as_process_stratum_target and adjust find_thread_ptid,
5559 thread_change_ptid and add_thread calls.
5560 * btrace.c (maint_btrace_packet_history_cmd): Adjust
5561 find_thread_ptid call.
5562 * corelow.c (add_to_thread_list): Adjust add_thread call.
5563 (core_target_open): Adjust add_thread_silent and thread_count
5564 calls.
5565 (core_target::pid_to_str): Adjust find_inferior_ptid call.
5566 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
5567 * event-top.c (async_disconnect): Pop targets from all inferiors.
5568 * exec.c (add_target_sections): Push exec target on all inferiors
5569 sharing the program space.
5570 (remove_target_sections): Remove the exec target from all
5571 inferiors sharing the program space.
5572 (exec_on_vfork): New.
5573 * exec.h (exec_on_vfork): Declare.
5574 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
5575 Pass it down.
5576 (fbsd_nat_target::update_thread_list): Adjust.
5577 (fbsd_nat_target::resume): Adjust.
5578 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
5579 down.
5580 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
5581 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
5582 get_thread_arch_regcache call.
5583 * fork-child.c (gdb_startup_inferior): Pass target down to
5584 startup_inferior and set_executing.
5585 * gdbthread.h (struct process_stratum_target): Forward declare.
5586 (add_thread, add_thread_silent, add_thread_with_info)
5587 (in_thread_list): Add process_stratum_target parameter.
5588 (find_thread_ptid(inferior*, ptid_t)): New overload.
5589 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
5590 parameter.
5591 (all_threads()): Delete overload.
5592 (all_threads, all_non_exited_threads): Add process_stratum_target
5593 parameter.
5594 (all_threads_safe): Use brace initialization.
5595 (thread_count): Add process_stratum_target parameter.
5596 (set_resumed, set_running, set_stop_requested, set_executing)
5597 (threads_are_executing, finish_thread_state): Add
5598 process_stratum_target parameter.
5599 (switch_to_thread): Use is_current_thread.
5600 * i386-fbsd-tdep.c: Include "inferior.h".
5601 (i386fbsd_get_thread_local_address): Pass down target.
5602 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
5603 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
5604 have_inferiors check.
5605 * inf-ptrace.c (inf_ptrace_target::create_inferior)
5606 (inf_ptrace_target::attach): Adjust.
5607 * infcall.c (run_inferior_call): Adjust.
5608 * infcmd.c (run_command_1): Pass target to
5609 scoped_finish_thread_state.
5610 (proceed_thread_callback): Skip inferiors with no execution.
5611 (continue_command): Rename 'all_threads' local to avoid hiding
5612 'all_threads' function. Adjust get_last_target_status call.
5613 (prepare_one_step): Adjust set_running call.
5614 (signal_command): Use user_visible_resume_target. Compare thread
5615 pointers instead of inferior_ptid.
5616 (info_program_command): Adjust to pass down target.
5617 (attach_command): Mark target's 'thread_executing' flag.
5618 (stop_current_target_threads_ns): New, factored out from ...
5619 (interrupt_target_1): ... this. Switch inferior before making
5620 target calls.
5621 * inferior-iter.h
5622 (struct all_inferiors_iterator, struct all_inferiors_range)
5623 (struct all_inferiors_safe_range)
5624 (struct all_non_exited_inferiors_range): Filter on
5625 process_stratum_target too. Remove explicit.
5626 * inferior.c (inferior::inferior): Push dummy target on target
5627 stack.
5628 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
5629 Add process_stratum_target parameter, and pass it down.
5630 (have_live_inferiors): Adjust.
5631 (switch_to_inferior_and_push_target): New.
5632 (add_inferior_command, clone_inferior_command): Handle
5633 "-no-connection" parameter. Use
5634 switch_to_inferior_and_push_target.
5635 (_initialize_inferior): Mention "-no-connection" option in
5636 the help of "add-inferior" and "clone-inferior" commands.
5637 * inferior.h: Include "process-stratum-target.h".
5638 (interrupt_target_1): Use bool.
5639 (struct inferior) <push_target, unpush_target, target_is_pushed,
5640 find_target_beneath, top_target, process_target, target_at,
5641 m_stack>: New.
5642 (discard_all_inferiors): Delete.
5643 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
5644 (all_inferiors, all_non_exited_inferiors): Add
5645 process_stratum_target parameter.
5646 * infrun.c: Include "gdb_select.h" and <unordered_map>.
5647 (target_last_proc_target): New global.
5648 (follow_fork_inferior): Push target on new inferior. Pass target
5649 to add_thread_silent. Call exec_on_vfork. Handle target's
5650 reference count.
5651 (follow_fork): Adjust get_last_target_status call. Also consider
5652 target.
5653 (follow_exec): Push target on new inferior.
5654 (struct execution_control_state) <target>: New field.
5655 (user_visible_resume_target): New.
5656 (do_target_resume): Call target_async.
5657 (resume_1): Set target's threads_executing flag. Consider resume
5658 target.
5659 (commit_resume_all_targets): New.
5660 (proceed): Also consider resume target. Skip threads of inferiors
5661 with no execution. Commit resumtion in all targets.
5662 (start_remote): Pass current inferior to wait_for_inferior.
5663 (infrun_thread_stop_requested): Consider target as well. Pass
5664 thread_info pointer to clear_inline_frame_state instead of ptid.
5665 (infrun_thread_thread_exit): Consider target as well.
5666 (random_pending_event_thread): New inferior parameter. Use it.
5667 (do_target_wait): Rename to ...
5668 (do_target_wait_1): ... this. Add inferior parameter, and pass it
5669 down.
5670 (threads_are_resumed_pending_p, do_target_wait): New.
5671 (prepare_for_detach): Adjust calls.
5672 (wait_for_inferior): New inferior parameter. Handle it. Use
5673 do_target_wait_1 instead of do_target_wait.
5674 (fetch_inferior_event): Adjust. Switch to representative
5675 inferior. Pass target down.
5676 (set_last_target_status): Add process_stratum_target parameter.
5677 Save target in global.
5678 (get_last_target_status): Add process_stratum_target parameter and
5679 handle it.
5680 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
5681 (context_switch): Check inferior_ptid == null_ptid before calling
5682 inferior_thread().
5683 (get_inferior_stop_soon): Pass down target.
5684 (wait_one): Rename to ...
5685 (poll_one_curr_target): ... this.
5686 (struct wait_one_event): New.
5687 (wait_one): New.
5688 (stop_all_threads): Adjust.
5689 (handle_no_resumed, handle_inferior_event): Adjust to consider the
5690 event's target.
5691 (switch_back_to_stepped_thread): Also consider target.
5692 (print_stop_event): Update.
5693 (normal_stop): Update. Also consider the resume target.
5694 * infrun.h (wait_for_inferior): Remove declaration.
5695 (user_visible_resume_target): New declaration.
5696 (get_last_target_status, set_last_target_status): New
5697 process_stratum_target parameter.
5698 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
5699 process_stratum_target parameter, and use it.
5700 (clear_inline_frame_state (thread_info*)): New.
5701 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
5702 process_stratum_target parameter.
5703 (clear_inline_frame_state (thread_info*)): Declare.
5704 * linux-fork.c (delete_checkpoint_command): Pass target down to
5705 find_thread_ptid.
5706 (checkpoint_command): Adjust.
5707 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
5708 instead of just tweaking inferior_ptid.
5709 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
5710 (exit_lwp): Pass target down to find_thread_ptid.
5711 (attach_proc_task_lwp_callback): Pass target down to
5712 add_thread/set_running/set_executing.
5713 (linux_nat_target::attach): Pass target down to
5714 thread_change_ptid.
5715 (get_detach_signal): Pass target down to find_thread_ptid.
5716 Consider last target status's target.
5717 (linux_resume_one_lwp_throw, resume_lwp)
5718 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
5719 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
5720 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
5721 (linux_nat_target::async_wait_fd): New.
5722 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
5723 target down.
5724 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
5725 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
5726 * linux-thread-db.c (struct thread_db_info::process_target): New
5727 field.
5728 (add_thread_db_info): Save target.
5729 (get_thread_db_info): New process_stratum_target parameter. Also
5730 match target.
5731 (delete_thread_db_info): New process_stratum_target parameter.
5732 Also match target.
5733 (thread_from_lwp): Adjust to pass down target.
5734 (thread_db_notice_clone): Pass down target.
5735 (check_thread_db_callback): Pass down target.
5736 (try_thread_db_load_1): Always push the thread_db target.
5737 (try_thread_db_load, record_thread): Pass target down.
5738 (thread_db_target::detach): Pass target down. Always unpush the
5739 thread_db target.
5740 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
5741 target down. Always unpush the thread_db target.
5742 (find_new_threads_callback, thread_db_find_new_threads_2)
5743 (thread_db_target::update_thread_list): Pass target down.
5744 (thread_db_target::pid_to_str): Pass current inferior down.
5745 (thread_db_target::get_thread_local_address): Pass target down.
5746 (thread_db_target::resume, maintenance_check_libthread_db): Pass
5747 target down.
5748 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
5749 * procfs.c (procfs_target::procfs_init_inferior): Declare.
5750 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
5751 (procfs_init_inferior): Rename to ...
5752 (procfs_target::procfs_init_inferior): ... this and adjust.
5753 (procfs_target::create_inferior, procfs_notice_thread)
5754 (procfs_do_thread_registers): Adjust.
5755 * ppc-fbsd-tdep.c: Include "inferior.h".
5756 (ppcfbsd_get_thread_local_address): Pass down target.
5757 * proc-service.c (ps_xfer_memory): Switch current inferior and
5758 program space as well.
5759 (get_ps_regcache): Pass target down.
5760 * process-stratum-target.c
5761 (process_stratum_target::thread_address_space)
5762 (process_stratum_target::thread_architecture): Pass target down.
5763 * process-stratum-target.h
5764 (process_stratum_target::threads_executing): New field.
5765 (as_process_stratum_target): New.
5766 * ravenscar-thread.c
5767 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
5768 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
5769 down.
5770 * record-btrace.c (record_btrace_target::info_record): Adjust.
5771 (record_btrace_target::record_method)
5772 (record_btrace_target::record_is_replaying)
5773 (record_btrace_target::fetch_registers)
5774 (get_thread_current_frame_id, record_btrace_target::resume)
5775 (record_btrace_target::wait, record_btrace_target::stop): Pass
5776 target down.
5777 * record-full.c (record_full_wait_1): Switch to event thread.
5778 Pass target down.
5779 * regcache.c (regcache::regcache)
5780 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
5781 process_stratum_target parameter and handle it.
5782 (current_thread_target): New global.
5783 (get_thread_regcache): Add process_stratum_target parameter and
5784 handle it. Switch inferior before calling target method.
5785 (get_thread_regcache): Pass target down.
5786 (get_thread_regcache_for_ptid): Pass target down.
5787 (registers_changed_ptid): Add process_stratum_target parameter and
5788 handle it.
5789 (registers_changed_thread, registers_changed): Pass target down.
5790 (test_get_thread_arch_aspace_regcache): New.
5791 (current_regcache_test): Define a couple local test_target_ops
5792 instances and use them for testing.
5793 (readwrite_regcache): Pass process_stratum_target parameter.
5794 (cooked_read_test, cooked_write_test): Pass mock_target down.
5795 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
5796 (get_thread_arch_aspace_regcache): Add process_stratum_target
5797 parameter.
5798 (regcache::target): New method.
5799 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
5800 (regcache::registers_changed_ptid): Add process_stratum_target
5801 parameter.
5802 (regcache::m_target): New field.
5803 (registers_changed_ptid): Add process_stratum_target parameter.
5804 * remote.c (remote_state::supports_vCont_probed): New field.
5805 (remote_target::async_wait_fd): New method.
5806 (remote_unpush_and_throw): Add remote_target parameter.
5807 (get_current_remote_target): Adjust.
5808 (remote_target::remote_add_inferior): Push target.
5809 (remote_target::remote_add_thread)
5810 (remote_target::remote_notice_new_inferior)
5811 (get_remote_thread_info): Pass target down.
5812 (remote_target::update_thread_list): Skip threads of inferiors
5813 bound to other targets. (remote_target::close): Don't discard
5814 inferiors. (remote_target::add_current_inferior_and_thread)
5815 (remote_target::process_initial_stop_replies)
5816 (remote_target::start_remote)
5817 (remote_target::remote_serial_quit_handler): Pass down target.
5818 (remote_target::remote_unpush_target): New remote_target
5819 parameter. Unpush the target from all inferiors.
5820 (remote_target::remote_unpush_and_throw): New remote_target
5821 parameter. Pass it down.
5822 (remote_target::open_1): Check whether the current inferior has
5823 execution instead of checking whether any inferior is live. Pass
5824 target down.
5825 (remote_target::remote_detach_1): Pass down target. Use
5826 remote_unpush_target.
5827 (extended_remote_target::attach): Pass down target.
5828 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
5829 (remote_target::append_resumption): Pass down target.
5830 (remote_target::append_pending_thread_resumptions)
5831 (remote_target::remote_resume_with_hc, remote_target::resume)
5832 (remote_target::commit_resume): Pass down target.
5833 (remote_target::remote_stop_ns): Check supports_vCont_probed.
5834 (remote_target::interrupt_query)
5835 (remote_target::remove_new_fork_children)
5836 (remote_target::check_pending_events_prevent_wildcard_vcont)
5837 (remote_target::remote_parse_stop_reply)
5838 (remote_target::process_stop_reply): Pass down target.
5839 (first_remote_resumed_thread): New remote_target parameter. Pass
5840 it down.
5841 (remote_target::wait_as): Pass down target.
5842 (unpush_and_perror): New remote_target parameter. Pass it down.
5843 (remote_target::readchar, remote_target::remote_serial_write)
5844 (remote_target::getpkt_or_notif_sane_1)
5845 (remote_target::kill_new_fork_children, remote_target::kill): Pass
5846 down target.
5847 (remote_target::mourn_inferior): Pass down target. Use
5848 remote_unpush_target.
5849 (remote_target::core_of_thread)
5850 (remote_target::remote_btrace_maybe_reopen): Pass down target.
5851 (remote_target::pid_to_exec_file)
5852 (remote_target::thread_handle_to_thread_info): Pass down target.
5853 (remote_target::async_wait_fd): New.
5854 * riscv-fbsd-tdep.c: Include "inferior.h".
5855 (riscv_fbsd_get_thread_local_address): Pass down target.
5856 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
5857 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
5858 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
5859 Adjust.
5860 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
5861 * solib-svr4.c (enable_break): Pass down target.
5862 * spu-multiarch.c (parse_spufs_run): Pass down target.
5863 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
5864 * target-delegates.c: Regenerate.
5865 * target.c (g_target_stack): Delete.
5866 (current_top_target): Return the current inferior's top target.
5867 (target_has_execution_1): Refer to the passed-in inferior's top
5868 target.
5869 (target_supports_terminal_ours): Check whether the initial
5870 inferior was already created.
5871 (decref_target): New.
5872 (target_stack::push): Incref/decref the target.
5873 (push_target, push_target, unpush_target): Adjust.
5874 (target_stack::unpush): Defref target.
5875 (target_is_pushed): Return bool. Adjust to refer to the current
5876 inferior's target stack.
5877 (dispose_inferior): Delete, and inline parts ...
5878 (target_preopen): ... here. Only dispose of the current inferior.
5879 (target_detach): Hold strong target reference while detaching.
5880 Pass target down.
5881 (target_thread_name): Add assertion.
5882 (target_resume): Pass down target.
5883 (target_ops::beneath, find_target_at): Adjust to refer to the
5884 current inferior's target stack.
5885 (get_dummy_target): New.
5886 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
5887 has a thread running.
5888 (initialize_targets): Rename to ...
5889 (_initialize_target): ... this.
5890 * target.h: Include "gdbsupport/refcounted-object.h".
5891 (struct target_ops): Inherit refcounted_object.
5892 (target_ops::shortname, target_ops::longname): Make const.
5893 (target_ops::async_wait_fd): New method.
5894 (decref_target): Declare.
5895 (struct target_ops_ref_policy): New.
5896 (target_ops_ref): New typedef.
5897 (get_dummy_target): Declare function.
5898 (target_is_pushed): Return bool.
5899 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
5900 (all_matching_threads_iterator::all_matching_threads_iterator):
5901 Handle filter target.
5902 * thread-iter.h (struct all_matching_threads_iterator, struct
5903 all_matching_threads_range, class all_non_exited_threads_range):
5904 Filter by target too. Remove explicit.
5905 * thread.c (threads_executing): Delete.
5906 (inferior_thread): Pass down current inferior.
5907 (clear_thread_inferior_resources): Pass down thread pointer
5908 instead of ptid_t.
5909 (add_thread_silent, add_thread_with_info, add_thread): Add
5910 process_stratum_target parameter. Use it for thread and inferior
5911 searches.
5912 (is_current_thread): New.
5913 (thread_info::deletable): Use it.
5914 (find_thread_ptid, thread_count, in_thread_list)
5915 (thread_change_ptid, set_resumed, set_running): New
5916 process_stratum_target parameter. Pass it down.
5917 (set_executing): New process_stratum_target parameter. Pass it
5918 down. Adjust reference to 'threads_executing'.
5919 (threads_are_executing): New process_stratum_target parameter.
5920 Adjust reference to 'threads_executing'.
5921 (set_stop_requested, finish_thread_state): New
5922 process_stratum_target parameter. Pass it down.
5923 (switch_to_thread): Also match inferior.
5924 (switch_to_thread): New process_stratum_target parameter. Pass it
5925 down.
5926 (update_threads_executing): Reimplement.
5927 * top.c (quit_force): Pop targets from all inferior.
5928 (gdb_init): Don't call initialize_targets.
5929 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
5930 Declare.
5931 (windows_add_thread, windows_delete_thread): Adjust.
5932 (get_windows_debug_event): Rename to ...
5933 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
5934 * tracefile-tfile.c (tfile_target_open): Pass down target.
5935 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
5936 Forward declare.
5937 (switch_to_thread): Add process_stratum_target parameter.
5938 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
5939 parameter. Use it.
5940 (mi_on_resume): Pass target down.
5941 * nat/fork-inferior.c (startup_inferior): Add
5942 process_stratum_target parameter. Pass it down.
5943 * nat/fork-inferior.h (startup_inferior): Add
5944 process_stratum_target parameter.
5945 * python/py-threadevent.c (py_get_event_thread): Pass target down.
5946
5947 2020-01-10 Pedro Alves <palves@redhat.com>
5948
5949 * remote.c (remote_target::start_remote): Don't set inferior_ptid
5950 directly. Instead find the first thread in the thread list and
5951 use switch_to_thread.
5952
5953 2020-01-10 Pedro Alves <palves@redhat.com>
5954
5955 * remote.c (remote_target::remote_add_inferior): Don't bind a
5956 process to the current inferior if the current inferior is already
5957 bound to a process.
5958
5959 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5960 Pedro Alves <palves@redhat.com>
5961
5962 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
5963 If no process is specified, return null_ptid instead of
5964 inferior_ptid.
5965 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
5966 TARGET_WAITKIND_SIGNALLED with no pid.
5967
5968 2020-01-10 Pedro Alves <palves@redhat.com>
5969
5970 * remote.c (first_remote_resumed_thread): New.
5971 (remote_target::wait_as): Use it as default event_ptid instead of
5972 inferior_ptid.
5973
5974 2020-01-10 Pedro Alves <palves@redhat.com>
5975
5976 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
5977
5978 2020-01-10 Pedro Alves <palves@redhat.com>
5979
5980 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
5981 not -1.
5982
5983 2020-01-10 Pedro Alves <palves@redhat.com>
5984
5985 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
5986 ptid to get_last_target_status.
5987 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
5988 ptid to get_last_target_status.
5989 * infcmd.c (continue_command): Don't pass a target_waitstatus to
5990 get_last_target_status.
5991 (info_program_command): Don't pass a target_waitstatus to
5992 get_last_target_status.
5993 * infrun.c (init_wait_for_inferior): Use
5994 nullify_last_target_wait_ptid.
5995 (get_last_target_status): Handle nullptr arguments.
5996 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
5997 (print_stop_event): Don't pass a ptid to get_last_target_status.
5998 (normal_stop): Don't pass a ptid to get_last_target_status.
5999 * infrun.h (get_last_target_status, set_last_target_status): Move
6000 comments here and update.
6001 (nullify_last_target_wait_ptid): Declare.
6002 * linux-fork.c (fork_load_infrun_state): Remove local extern
6003 declaration of nullify_last_target_wait_ptid.
6004 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
6005 to get_last_target_status.
6006
6007 2020-01-10 Pedro Alves <palves@redhat.com>
6008
6009 * gdbthread.h (scoped_restore_current_thread)
6010 <dont_restore, restore, m_dont_restore>: Declare.
6011 * thread.c (thread_alive): Add assertion. Return bool.
6012 (switch_to_thread_if_alive): New.
6013 (prune_threads): Switch inferior/thread.
6014 (print_thread_info_1): Switch thread before calling target methods.
6015 (scoped_restore_current_thread::restore): New, factored out from
6016 ...
6017 (scoped_restore_current_thread::~scoped_restore_current_thread):
6018 ... this.
6019 (scoped_restore_current_thread::scoped_restore_current_thread):
6020 Add assertion.
6021 (thread_apply_all_command, thread_select): Use
6022 switch_to_thread_if_alive.
6023 * infrun.c (proceed, restart_threads, handle_signal_stop)
6024 (switch_back_to_stepped_thread): Switch current thread before
6025 calling target methods.
6026
6027 2020-01-10 Pedro Alves <palves@redhat.com>
6028
6029 * inferior.c (switch_to_inferior_no_thread): New function,
6030 factored out from ...
6031 (inferior_command): ... here.
6032 * inferior.h (switch_to_inferior_no_thread): Declare.
6033 * mi/mi-main.c (run_one_inferior): Use
6034 switch_to_inferior_no_thread.
6035
6036 2020-01-10 Pedro Alves <palves@redhat.com>
6037
6038 * infcmd.c (kill_command): Remove dead code.
6039
6040 2020-01-10 Pedro Alves <palves@redhat.com>
6041
6042 * remote.c (remote_target::mourn_inferior): No longer check
6043 whether the target is running.
6044
6045 2020-01-10 Pedro Alves <palves@redhat.com>
6046
6047 * corelow.c (core_target::has_execution): Change parameter type to
6048 inferior pointer.
6049 * inferior.c (number_of_live_inferiors): Use
6050 inferior::has_execution instead of target_has_execution_1.
6051 * inferior.h (inferior::has_execution): New.
6052 * linux-thread-db.c (thread_db_target::update_thread_list): Use
6053 inferior::has_execution instead of target_has_execution_1.
6054 * process-stratum-target.c
6055 (process_stratum_target::has_execution): Change parameter type to
6056 inferior pointer. Check the inferior's PID instead of
6057 inferior_ptid.
6058 * process-stratum-target.h
6059 (process_stratum_target::has_execution): Change parameter type to
6060 inferior pointer.
6061 * record-full.c (record_full_core_target::has_execution): Change
6062 parameter type to inferior pointer.
6063 * target.c (target_has_execution_1): Change parameter type to
6064 inferior pointer.
6065 (target_has_execution_current): Adjust.
6066 * target.h (target_ops::has_execution): Change parameter type to
6067 inferior pointer.
6068 (target_has_execution_1): Change parameter type to inferior
6069 pointer. Change return type to bool.
6070 * tracefile.h (tracefile_target::has_execution): Change parameter
6071 type to inferior pointer.
6072
6073 2020-01-10 Pedro Alves <palves@redhat.com>
6074
6075 * exceptions.c (print_flush): Remove current_top_target() check.
6076
6077 2020-01-10 Pedro Alves <palves@redhat.com>
6078
6079 * remote.c (show_remote_exec_file): Show the current inferior's
6080 exec-file instead of the command variable's value.
6081
6082 2020-01-10 Pedro Alves <palves@redhat.com>
6083
6084 * record-full.c (record_full_resume_ptid): New global.
6085 (record_full_target::resume): Set it.
6086 (record_full_wait_1): Use record_full_resume_ptid instead of
6087 inferior_ptid.
6088
6089 2020-01-10 Pedro Alves <palves@redhat.com>
6090
6091 * gdbthread.h (scoped_restore_current_thread)
6092 <dont_restore, restore, m_dont_restore>: Declare.
6093 * thread.c (thread_alive): Add assertion. Return bool.
6094 (switch_to_thread_if_alive): New.
6095 (prune_threads): Switch inferior/thread.
6096 (print_thread_info_1): Switch thread before calling target methods.
6097 (scoped_restore_current_thread::restore): New, factored out from
6098 ...
6099 (scoped_restore_current_thread::~scoped_restore_current_thread):
6100 ... this.
6101 (scoped_restore_current_thread::scoped_restore_current_thread):
6102 Add assertion.
6103 (thread_apply_all_command, thread_select): Use
6104 switch_to_thread_if_alive.
6105
6106 2020-01-10 George Barrett <bob@bob131.so>
6107
6108 * stap-probe.c (stap_modify_semaphore): Don't check for null
6109 semaphores.
6110 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
6111 for null semaphores.
6112
6113 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6114
6115 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
6116 all source windows, and maintain horizontal scroll status while
6117 doing so.
6118
6119 2020-01-09 Tom Tromey <tom@tromey.com>
6120
6121 PR tui/18932:
6122 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
6123 update_source_window, not print_source_lines.
6124
6125 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6126
6127 * tui/tui.c (tui_enable): Register tui hooks after calling
6128 tui_display_main.
6129
6130 2020-01-09 Christian Biesinger <cbiesinger@google.com>
6131
6132 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
6133
6134 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
6135
6136 * thread.c (print_thread_info_1): Fix indentation.
6137
6138 2020-01-09 Christian Biesinger <cbiesinger@google.com>
6139
6140 * symtab.c (general_symbol_info::compute_and_set_names): Move the
6141 unique_xmalloc_ptr outside the if to always free the demangled name.
6142
6143 2020-01-08 Tom Tromey <tromey@adacore.com>
6144
6145 * xcoffread.c (enter_line_range, read_xcoff_symtab)
6146 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
6147 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
6148 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
6149 Remove.
6150 (section_offsets): New typedef.
6151 * symtab.c (fixup_section, get_msymbol_address): Update.
6152 * symmisc.c (dump_msymbols): Update.
6153 * symfile.h (relative_addr_info_to_section_offsets)
6154 (symfile_map_offsets_to_segments): Update.
6155 * symfile.c (build_section_addr_info_from_objfile)
6156 (init_objfile_sect_indices): Update.
6157 (struct place_section_arg): Change type of "offsets".
6158 (place_section): Update.
6159 (relative_addr_info_to_section_offsets): Change type of
6160 "section_offsets". Remove "num_sections" parameter.
6161 (default_symfile_offsets, syms_from_objfile_1)
6162 (set_objfile_default_section_offset): Update.
6163 (reread_symbols): No need to preserve section offsets by hand.
6164 (symfile_map_offsets_to_segments): Change type of "offsets".
6165 * stap-probe.c (relocate_address): Update.
6166 * stabsread.h (process_one_symbol): Update.
6167 * solib-target.c (struct lm_info_target) <offsets>: Change type.
6168 (solib_target_relocate_section_addresses): Update.
6169 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
6170 Update.
6171 * solib-frv.c (frv_relocate_main_executable): Update.
6172 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6173 * solib-aix.c (solib_aix_get_section_offsets): Change return
6174 type.
6175 (solib_aix_solib_create_inferior_hook): Update.
6176 * remote.c (remote_target::get_offsets): Update.
6177 * psymtab.c (find_pc_sect_psymtab): Update.
6178 * psympriv.h (struct partial_symbol) <address, text_low,
6179 text_high>: Update.
6180 * objfiles.h (obj_section_offset): Update.
6181 (struct objfile) <section_offsets>: Change type.
6182 <num_sections>: Remove.
6183 (objfile_relocate): Update.
6184 * objfiles.c (entry_point_address_query): Update
6185 (relocate_one_symbol): Change type of "section_offsets".
6186 (objfile_relocate1, objfile_relocate1): Change type of
6187 "new_offsets".
6188 (objfile_rebase1): Update.
6189 * mipsread.c (mipscoff_symfile_read): Update.
6190 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
6191 parameter.
6192 * mdebugread.c (parse_symbol): Change type of "section_offsets".
6193 (parse_external, psymtab_to_symtab_1): Update.
6194 * machoread.c (macho_symfile_offsets): Update.
6195 * ia64-tdep.c (ia64_find_unwind_table): Update.
6196 * hppa-tdep.c (read_unwind_info): Update.
6197 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
6198 * dwarf2read.c (create_addrmap_from_index)
6199 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6200 (process_psymtab_comp_unit_reader, add_partial_symbol)
6201 (add_partial_subprogram, process_full_comp_unit)
6202 (read_file_scope, read_func_scope, read_lexical_block_scope)
6203 (read_call_site_scope, dwarf2_rnglists_process)
6204 (dwarf2_ranges_process, dwarf2_ranges_read)
6205 (dwarf_decode_lines_1, var_decode_location, new_symbol)
6206 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
6207 Update.
6208 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
6209 Update.
6210 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
6211 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
6212 (process_one_symbol): Change type of "section_offsets".
6213 * ctfread.c (get_objfile_text_range): Update.
6214 * coffread.c (coff_symtab_read, enter_linenos)
6215 (process_coff_symbol): Update.
6216 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6217 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
6218
6219 2020-01-08 Tom Tromey <tromey@adacore.com>
6220
6221 * dwarf2read.c (parse_macro_definition): Use std::string.
6222 (parse_macro_definition): Likewise.
6223
6224 2020-01-08 Tom Tromey <tromey@adacore.com>
6225
6226 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
6227 (ATTR_ALLOC_CHUNK): Remove.
6228
6229 2020-01-08 Tom Tromey <tromey@adacore.com>
6230
6231 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
6232
6233 2020-01-08 Tom Tromey <tromey@adacore.com>
6234
6235 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
6236 (dwarf2_compute_name, open_dwo_file): Likewise.
6237 (process_enumeration_scope): Use std::vector.
6238 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
6239 (partial_die_info::fixup, dwarf2_start_subfile)
6240 (guess_full_die_structure_name, dwarf2_name): Likewise.
6241 (determine_prefix): Update.
6242 (guess_full_die_structure_name): Make return type const.
6243 (partial_die_full_name): Return unique_xmalloc_ptr.
6244 (DW_FIELD_ALLOC_CHUNK): Remove.
6245
6246 2020-01-07 Tom Tromey <tromey@adacore.com>
6247
6248 PR build/24937:
6249 * stap-probe.c (class stap_static_probe_ops): Add constructor.
6250
6251 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
6252
6253 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
6254
6255 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
6256
6257 * stack.c (print_frame_info): Move disassemble_next_line code
6258 inside source_print block.
6259
6260 2020-01-06 Eli Zaretskii <eliz@gnu.org>
6261
6262 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
6263 gdb/signals.h, as we are now using native signal symbols.
6264
6265 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
6266
6267 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
6268 overflow by an early check of content vs threshold.
6269 * tui/tui-source.c (tui_source_window::line_is_displayed):
6270 Likewise.
6271
6272 2020-01-06 Eli Zaretskii <eliz@gnu.org>
6273
6274 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
6275
6276 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
6277
6278 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
6279 export table if no section contains it's RVA.
6280
6281 2020-01-06 Eli Zaretskii <eliz@gnu.org>
6282
6283 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
6284
6285 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
6286
6287 * source.c (print_source_lines_base): Set last_line_listed.
6288
6289 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
6290
6291 * tui/tui-disasm.c: Remove trailing spaces.
6292
6293 2020-01-06 Eli Zaretskii <eliz@gnu.org>
6294 Pedro Alves <palves@redhat.com>
6295
6296 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
6297 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
6298 (windows_gdb_signal_to_target): New function, uses the above
6299 enumeration to convert GDB internal signal codes to equivalent
6300 Windows codes.
6301 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
6302 * windows-nat.c: Include "gdb_wait.h".
6303 (get_windows_debug_event): Extract the fatal exception from the
6304 exit status and convert to the equivalent Posix signal number.
6305 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
6306 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
6307 * gdbsupport/gdb_wait.c: New file, implements
6308 windows_status_to_termsig.
6309 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
6310 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
6311
6312 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
6313
6314 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
6315 show_layout.
6316
6317 2020-01-05 Luis Machado <luis.machado@linaro.org>
6318
6319 * aarch64-linux-nat.c
6320 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
6321 and bfd_mach_aarch64.
6322
6323 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6324
6325 * ui-file.c (stdio_file::can_emit_style_escape)
6326 (tee_file::can_emit_style_escape): Ensure style is used also on
6327 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
6328 to gdb_stdout.
6329 * main.c (set_gdb_data_directory): Use file style to output the
6330 warning that the given pathname is not a directory.
6331 * top.c (show_history_filename, gdb_safe_append_history)
6332 (show_gdb_datadir): Use file style.
6333
6334 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
6335
6336 * solib-target.c (struct lm_info_target):
6337 Change offsets to be a unique_xmalloc_ptr.
6338 (solib_target_relocate_section_addresses): Update.
6339
6340 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
6341
6342 * windows-nat.c (windows_clear_solib): Free so_list linked list.
6343
6344 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6345
6346 * MAINTAINERS (Write After Approval): Add myself.
6347
6348 2020-01-02 Luis Machado <luis.machado@linaro.org>
6349
6350 * proc-service.c (get_ps_regcache): Remove reference to obsolete
6351 Cell BE architecture.
6352 * target.h (struct target_ops) <thread_architecture>: Likewise.
6353
6354 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
6355
6356 * Makefile.in: Use INSTALL_PROGRAM_ENV.
6357
6358 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
6359
6360 * MAINTAINERS (Write After Approval): Add myself.
6361
6362 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6363
6364 * gdbarch.sh: Update copyright year range of generated files.
6365
6366 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6367
6368 Update copyright year range in all GDB files.
6369
6370 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6371
6372 * copyright.py: Convert to Python 3.
6373
6374 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6375
6376 * copyright.py: Adapt after move of gnulib directory from gdb
6377 directory to toplevel directory.
6378
6379 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6380
6381 * copyright.py (main): Exit if run from the wrong directory.
6382
6383 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6384
6385 * top.c (print_gdb_version): Change copyright year to 2020.
6386
6387 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6388
6389 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
6390
6391 For older changes see ChangeLog-2019.
6392 \f
6393 Local Variables:
6394 mode: change-log
6395 left-margin: 8
6396 fill-column: 74
6397 version-control: never
6398 coding: utf-8
6399 End:
This page took 0.170139 seconds and 4 git commands to generate.