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